/* Naakkii Ride: shared styles for the passenger, driver and manager apps */
:root {
  --teal: #0E3B43;
  --teal-2: #145561;
  --teal-3: #1D6B78;
  --yellow: #F5B700;
  --yellow-2: #FFD24A;
  --gold: #B88A00;
  --ink: #0E3B43;
  --text: #22393D;
  --muted: #5B7175;
  --faint: #8A9C9F;
  --line: #E3E9E8;
  --bg: #F4F7F6;
  --card: #FFFFFF;
  --green: #138A52;
  --green-bg: #E6F5EC;
  --red: #C62828;
  --red-bg: #FDECEC;
  --blue: #1565C0;
  --amber-bg: #FFF6D9;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(14, 59, 67, .14);
  --shadow-sm: 0 2px 10px rgba(14, 59, 67, .10);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; }
body.nr { overflow: hidden; overscroll-behavior: none; }
body.nr-manager { overflow: auto; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--teal-3); }
img { max-width: 100%; }
svg { flex-shrink: 0; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Splash & logo */
.nr-splash { position: fixed; inset: 0; display: grid; place-items: center; background: var(--teal); }
.nr-logo { font-weight: 800; font-size: 34px; letter-spacing: -1px; color: #fff; }
.nr-logo span { color: var(--yellow); margin-left: 2px; }
.nr-logo.sm { font-size: 20px; }
.nr-logo.dark { color: var(--teal); }

/* Layout */
#app { height: 100%; }
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.map { position: absolute; inset: 0; z-index: 1; background: #e8eeec; }
.leaflet-container { font-family: var(--font); background: #e8eeec; }
.leaflet-control-attribution { font-size: 9px !important; opacity: .7; }
.scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.pad { padding: 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.center { text-align: center; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; }
.bold { font-weight: 700; }
.xbold { font-weight: 800; }
.big { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }
.huge { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -.8px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.gap8 { gap: 8px; } .gap4 { gap: 4px; }
h1, h2, h3 { color: var(--ink); margin: 0; letter-spacing: -.3px; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 14px; font-weight: 700; font-size: 15.5px; cursor: pointer; text-decoration: none; transition: transform .08s, background .15s, opacity .15s; user-select: none; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.block { display: flex; width: 100%; }
.btn-primary { background: var(--yellow); color: var(--teal); }
.btn-primary:hover { background: var(--yellow-2); }
.btn-dark { background: var(--teal); color: #fff; }
.btn-dark:hover { background: var(--teal-2); }
.btn-light { background: #EEF2F1; color: var(--ink); }
.btn-light:hover { background: #E3E9E8; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-danger { background: var(--red-bg); color: var(--red); }
.btn-green { background: var(--green); color: #fff; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn.xl { min-height: 60px; font-size: 17px; border-radius: 16px; }
.btn .spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 0; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); cursor: pointer; position: relative; }
.icon-btn.flat { box-shadow: none; background: #EEF2F1; }
.icon-btn.dark { background: var(--teal); color: #fff; }
.icon-btn.red { background: var(--red); color: #fff; }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.action-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.action { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 0; background: #EEF2F1; border-radius: 14px; font-size: 12px; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: none; position: relative; }
.action .dot { position: absolute; top: 6px; right: calc(50% - 18px); width: 9px; height: 9px; border-radius: 50%; background: var(--red); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; outline: none; transition: border .15s; font-size: 16px; }
textarea.input { min-height: 90px; resize: vertical; }
.input:focus { border-color: var(--teal-3); }
.input.big { font-size: 22px; font-weight: 700; letter-spacing: 1px; min-height: 58px; }
.input-group { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.input-group:focus-within { border-color: var(--teal-3); }
.input-group .pre { display: flex; align-items: center; padding: 0 12px; background: #F4F7F6; font-weight: 700; color: var(--ink); border-right: 1.5px solid var(--line); }
.input-group .input { border: 0; border-radius: 0; }
.otp { letter-spacing: 12px; text-align: center; font-size: 28px; font-weight: 800; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--teal); }
.err { color: var(--red); font-size: 13px; font-weight: 600; }
.note { padding: 12px 14px; background: var(--amber-bg); border-radius: 12px; font-size: 13px; color: #6B5200; }
.note.green { background: var(--green-bg); color: #0D5E38; }
.note.red { background: var(--red-bg); color: var(--red); }
.note.teal { background: #E5F0F1; color: var(--teal); }
.file-tile { border: 1.5px dashed #C9D5D3; border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; background: #fff; }
.file-tile img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; }
.file-tile .ph { width: 54px; height: 54px; border-radius: 10px; background: #EEF2F1; display: grid; place-items: center; color: var(--muted); }
.file-tile.done { border-style: solid; border-color: var(--green); }

/* Top bar on map screens */
.topbar { position: absolute; top: calc(12px + var(--safe-t)); left: 12px; right: 12px; z-index: 20; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.pill.dark { background: var(--teal); color: #fff; }
.pill.yellow { background: var(--yellow); color: var(--teal); }
.pill.green { background: var(--green); color: #fff; }
.pill.red { background: var(--red); color: #fff; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70% { box-shadow: 0 0 0 10px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
.map-fabs { position: absolute; right: 12px; z-index: 15; display: flex; flex-direction: column; gap: 10px; transition: bottom .25s; }

/* Bottom sheet */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -8px 30px rgba(14, 59, 67, .16); padding: 10px 18px calc(18px + var(--safe-b)); max-height: 82%; display: flex; flex-direction: column; animation: sheetin .25s ease-out; }
.sheet::before { content: ''; display: block; width: 42px; height: 5px; border-radius: 3px; background: #D8E0DF; margin: 0 auto 12px; flex-shrink: 0; }
.sheet .scroll { margin: 0 -18px; padding: 0 18px; }
@keyframes sheetin { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.sheet-title { font-size: 19px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }

/* Center pin */
.center-pin { position: absolute; left: 50%; top: 50%; z-index: 12; transform: translate(-50%, -100%); pointer-events: none; display: flex; flex-direction: column; align-items: center; transition: transform .2s; }
.center-pin.lift { transform: translate(-50%, calc(-100% - 12px)); }
.center-pin .lbl { background: var(--teal); color: #fff; font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 10px; margin-bottom: 6px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--shadow-sm); }
.center-pin .stick { width: 4px; height: 20px; background: var(--teal); border-radius: 2px; }
.center-pin .head { width: 24px; height: 24px; border-radius: 50%; background: var(--yellow); border: 6px solid var(--teal); margin-bottom: -2px; }
.center-pin .shadow { width: 12px; height: 5px; border-radius: 50%; background: rgba(0,0,0,.25); margin-top: 2px; }

/* Map markers */
.mk { display: grid; place-items: center; }
.mk-pick { width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 6px solid var(--teal); box-shadow: var(--shadow-sm); }
.mk-drop { width: 22px; height: 22px; border-radius: 5px; background: var(--teal); border: 6px solid #fff; box-shadow: 0 0 0 2px var(--teal), var(--shadow-sm); }
.mk-me { width: 20px; height: 20px; border-radius: 50%; background: #1A73E8; border: 4px solid #fff; box-shadow: 0 0 0 6px rgba(26,115,232,.18), var(--shadow-sm); }
.mk-veh { width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; transition: transform .8s linear; }
.mk-veh.free { background: #fff; color: var(--teal); }
.mk-veh.busy { background: var(--teal); color: var(--yellow); }
.mk-veh.offer { background: var(--yellow); color: var(--teal); }
.mk-veh.stale { background: #ccd6d4; color: #5b7175; }
.mk-veh.mine { background: var(--teal); color: var(--yellow); border: 3px solid var(--yellow); width: 44px; height: 44px; }
.mk-label { background: #fff; padding: 4px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; box-shadow: var(--shadow-sm); white-space: nowrap; color: var(--ink); }
.pulse-ring { width: 120px; height: 120px; border-radius: 50%; background: rgba(245, 183, 0, .25); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

/* Lists */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--line); cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.li:last-child { border-bottom: 0; }
.li .ic { width: 40px; height: 40px; border-radius: 12px; background: #EEF2F1; display: grid; place-items: center; color: var(--teal); flex-shrink: 0; }
.li .t { font-weight: 700; color: var(--ink); }
.li .s { font-size: 12.5px; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; background: #EEF2F1; border: 0; font-weight: 600; font-size: 13px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--teal); color: #fff; }
.search-box { display: flex; align-items: center; gap: 12px; padding: 15px 16px; background: #EEF2F1; border-radius: 14px; font-weight: 700; font-size: 17px; color: var(--ink); cursor: pointer; border: 0; width: 100%; text-align: left; }
.route-inputs { position: relative; display: flex; flex-direction: column; gap: 8px; padding-left: 26px; }
.route-inputs::before { content: ''; position: absolute; left: 8px; top: 24px; bottom: 24px; width: 2px; background: #C9D5D3; }
.route-inputs .dot-a, .route-inputs .dot-b { position: absolute; left: 2px; width: 14px; height: 14px; }
.route-inputs .dot-a { top: 18px; border-radius: 50%; background: var(--yellow); border: 3.5px solid var(--teal); }
.route-inputs .dot-b { bottom: 18px; background: var(--teal); border-radius: 3px; }

/* Service options */
.svc { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; border: 2px solid transparent; cursor: pointer; background: none; width: 100%; text-align: left; }
.svc.on { border-color: var(--teal); background: #F2F7F6; }
.svc .vi { width: 58px; height: 44px; display: grid; place-items: center; color: var(--teal); }
.svc .nm { font-weight: 800; color: var(--ink); font-size: 16px; }
.svc .ds { font-size: 12.5px; color: var(--muted); }
.svc .pr { font-weight: 800; color: var(--ink); font-size: 16.5px; text-align: right; white-space: nowrap; }
.svc .pr s { display: block; font-weight: 600; color: var(--faint); font-size: 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; background: #EEF2F1; color: var(--ink); }
.tag.yellow { background: var(--yellow); color: var(--teal); }
.tag.green { background: var(--green-bg); color: var(--green); }
.tag.red { background: var(--red-bg); color: var(--red); }
.tag.teal { background: var(--teal); color: #fff; }
.tag.blue { background: #E3EEFB; color: var(--blue); }
.tag.grey { background: #EEF2F1; color: var(--muted); }

/* Driver/passenger cards */
.avatar { width: 54px; height: 54px; border-radius: 50%; background: #DDE6E4 center/cover no-repeat; display: grid; place-items: center; font-weight: 800; color: var(--teal); font-size: 20px; flex-shrink: 0; overflow: hidden; }
.avatar.sm { width: 40px; height: 40px; font-size: 15px; }
.avatar.lg { width: 76px; height: 76px; font-size: 28px; }
.plate { display: inline-block; padding: 6px 10px; border-radius: 8px; background: #fff; border: 2px solid var(--ink); font-weight: 800; letter-spacing: 1px; color: var(--ink); font-size: 15px; }
.stars { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink); font-size: 13px; }
.stars svg { color: var(--yellow); }
.rate-stars { display: flex; gap: 10px; justify-content: center; }
.rate-stars button { background: none; border: 0; padding: 4px; cursor: pointer; color: #D8E0DF; }
.rate-stars button.on { color: var(--yellow); }
.card { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.divider { height: 1px; background: var(--line); margin: 12px 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 700; color: var(--ink); text-align: right; }
.kv.total span { font-size: 17px; font-weight: 800; color: var(--ink); }

/* Searching animation */
.searching { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 4px; }
.radar { position: relative; width: 74px; height: 74px; display: grid; place-items: center; }
.radar::before, .radar::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--yellow); animation: ring 1.8s ease-out infinite; }
.radar::after { animation-delay: .9s; }
.radar .core { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; color: var(--yellow); }
.progress { height: 4px; border-radius: 2px; background: #EEF2F1; overflow: hidden; width: 100%; }
.progress > i { display: block; height: 100%; width: 40%; background: var(--yellow); border-radius: 2px; animation: indet 1.4s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* Overlays */
.overlay { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column; animation: fadein .18s ease-out; }
.overlay-head { display: flex; align-items: center; gap: 10px; padding: calc(12px + var(--safe-t)) 14px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.overlay-head h2 { font-size: 18px; flex: 1; }
.overlay-body { flex: 1; overflow-y: auto; padding: 18px; -webkit-overflow-scrolling: touch; }
.overlay-foot { padding: 12px 18px calc(14px + var(--safe-b)); border-top: 1px solid var(--line); background: #fff; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal-bg { position: fixed; inset: 0; z-index: 200; background: rgba(9, 32, 36, .55); display: flex; align-items: flex-end; justify-content: center; animation: fadein .15s; }
.modal { width: 100%; max-width: 520px; background: #fff; border-radius: 24px 24px 0 0; padding: 22px 20px calc(20px + var(--safe-b)); max-height: 92%; overflow-y: auto; animation: sheetin .22s ease-out; }
@media (min-width: 700px) { .modal-bg { align-items: center; } .modal { border-radius: 22px; } }
.drawer-bg { position: fixed; inset: 0; z-index: 150; background: rgba(9, 32, 36, .5); animation: fadein .15s; }
.drawer { position: absolute; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: #fff; display: flex; flex-direction: column; animation: slidein .2s ease-out; }
@keyframes slidein { from { transform: translateX(-100%); } to { transform: none; } }
.drawer-head { background: var(--teal); color: #fff; padding: calc(22px + var(--safe-t)) 20px 20px; }
.drawer-head .t { font-weight: 800; font-size: 18px; }
.drawer-head .s { opacity: .8; font-size: 13px; }
.drawer nav { flex: 1; overflow-y: auto; padding: 8px 10px; }
.drawer nav button, .drawer nav a { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 12px; border: 0; background: none; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--ink); cursor: pointer; text-decoration: none; text-align: left; }
.drawer nav button:hover, .drawer nav a:hover { background: #F2F6F5; }
.toast-wrap { position: fixed; left: 0; right: 0; top: calc(14px + var(--safe-t)); z-index: 400; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast { pointer-events: auto; background: var(--teal); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); max-width: 480px; animation: sheetin .2s; }
.toast.error { background: var(--red); }
.toast.ok { background: var(--green); }
.banner { position: absolute; left: 12px; right: 12px; top: calc(70px + var(--safe-t)); z-index: 25; padding: 12px 14px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 10px; }
.banner.yellow { background: var(--yellow); color: var(--teal); }
.banner.dark { background: var(--teal); color: #fff; }
.banner.red { background: var(--red); color: #fff; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 80%; padding: 10px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; word-wrap: break-word; }
.bubble.me { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: #EEF2F1; color: var(--ink); border-bottom-left-radius: 4px; }
.bubble .tm { display: block; font-size: 10.5px; opacity: .65; margin-top: 3px; }
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; }

/* Login */
.auth { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--teal); color: #fff; overflow-y: auto; }
.auth-hero { padding: calc(48px + var(--safe-t)) 24px 28px; }
.auth-hero h1 { color: #fff; font-size: 30px; margin-top: 26px; line-height: 1.15; }
.auth-hero p { color: rgba(255,255,255,.78); margin: 10px 0 0; }
.auth-card { flex: 1; background: #fff; color: var(--text); border-radius: 26px 26px 0 0; padding: 26px 22px calc(26px + var(--safe-b)); display: flex; flex-direction: column; gap: 16px; }
.auth-art { display: flex; gap: 10px; margin-top: 22px; }
.auth-art span { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: var(--yellow); }

/* Offer screen (driver) */
.offer { position: fixed; inset: 0; z-index: 300; background: var(--teal); color: #fff; display: flex; flex-direction: column; padding: calc(20px + var(--safe-t)) 20px calc(20px + var(--safe-b)); animation: fadein .2s; }
.offer .ring { position: relative; width: 96px; height: 96px; margin: 6px auto 0; }
.offer .ring svg { transform: rotate(-90deg); }
.offer .ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: var(--yellow); }
.offer .fare { font-size: 44px; font-weight: 800; letter-spacing: -1px; text-align: center; color: #fff; }
.offer .box { background: rgba(255,255,255,.08); border-radius: 18px; padding: 16px; }
.offer .muted { color: rgba(255,255,255,.7); }
.offer .addr { font-weight: 700; font-size: 16px; }
.go-btn { width: 100%; }
.wait-timer { font-variant-numeric: tabular-nums; }

/* Earnings */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); }
.stat .v { font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -.4px; }
.stat .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.seg { display: flex; background: #EEF2F1; border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* Manager dashboard */
.mg { display: flex; min-height: 100vh; background: var(--bg); }
.mg-side { width: 240px; flex-shrink: 0; background: var(--teal); color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.mg-side .brand { padding: 20px 20px 14px; }
.mg-side nav { flex: 1; overflow-y: auto; padding: 6px 10px 20px; }
.mg-side nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 0; background: none; color: rgba(255,255,255,.82); border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; }
.mg-side nav button:hover { background: rgba(255,255,255,.07); color: #fff; }
.mg-side nav button.on { background: rgba(245,183,0,.16); color: var(--yellow); }
.mg-side nav .badge { margin-left: auto; background: var(--yellow); color: var(--teal); border-radius: 999px; padding: 1px 8px; font-size: 11.5px; font-weight: 800; }
.mg-side nav .sec { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,.45); padding: 16px 12px 6px; font-weight: 700; }
.mg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mg-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 12px 22px; background: rgba(244,247,246,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.mg-top h1 { font-size: 20px; flex: 1; }
.mg-body { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.mg-menu-btn { display: none; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.kpi { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow-sm); }
.kpi .v { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.kpi .l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi.hl { background: var(--teal); }
.kpi.hl .v { color: var(--yellow); }
.kpi.hl .l { color: rgba(255,255,255,.75); }
.panel { background: #fff; border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-h h3 { flex: 1; }
.panel-b { padding: 18px; }
.mg-map { position: relative; height: 440px; }
.grid2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFCFB; white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #F7FAF9; }
.tbl .input { min-height: 38px; padding: 6px 10px; font-size: 14px; border-radius: 9px; width: 96px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.filters .input { min-height: 42px; width: auto; font-size: 14px; padding: 8px 12px; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; font-size: 13px; color: var(--muted); }
.side-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #fff; z-index: 120; box-shadow: -10px 0 40px rgba(14,59,67,.18); display: flex; flex-direction: column; animation: slideinr .2s ease-out; }
@keyframes slideinr { from { transform: translateX(100%); } to { transform: none; } }
.side-panel .overlay-body { padding: 20px; }
.timeline { display: flex; flex-direction: column; gap: 0; padding-left: 4px; }
.timeline div { position: relative; padding: 0 0 14px 20px; font-size: 13.5px; }
.timeline div::before { content: ''; position: absolute; left: 0; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.timeline div::after { content: ''; position: absolute; left: 4px; top: 17px; bottom: 0; width: 2px; background: var(--line); }
.timeline div:last-child::after { display: none; }
.timeline div.off::before { background: #D8E0DF; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.doc-grid figure { margin: 0; background: #F4F7F6; border-radius: 12px; overflow: hidden; cursor: zoom-in; }
.doc-grid img { width: 100%; height: 120px; object-fit: cover; display: block; }
.doc-grid figcaption { font-size: 12px; font-weight: 600; padding: 6px 10px; color: var(--muted); }
.chart { position: relative; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 170px; padding-top: 14px; border-bottom: 1px solid var(--line); }
.bars .slot { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; cursor: default; }
.bars .b { width: 100%; max-width: 24px; background: #0090A8; border-radius: 4px 4px 0 0; min-height: 1px; }
.bars .slot:hover .b { background: var(--teal); }
.bars .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-size: 11.5px; font-weight: 600; padding: 6px 9px; border-radius: 8px; white-space: nowrap; pointer-events: none; display: none; z-index: 5; box-shadow: var(--shadow-sm); }
.bars .slot:hover .tip { display: block; }
.axis-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); padding-top: 6px; }
.chart-max { position: absolute; top: 0; left: 0; font-size: 11px; color: var(--faint); }
.empty { padding: 36px 18px; text-align: center; color: var(--muted); }
.empty svg { color: #C9D5D3; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.search-results { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: #fff; border-radius: 12px; box-shadow: var(--shadow); margin-top: 4px; max-height: 260px; overflow-y: auto; }
.search-results button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; cursor: pointer; border-bottom: 1px solid var(--line); }
.search-results button:hover { background: #F4F7F6; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .mg-side { position: fixed; left: 0; top: 0; z-index: 130; transform: translateX(-100%); transition: transform .2s; }
  .mg-side.open { transform: none; box-shadow: 10px 0 40px rgba(0,0,0,.3); }
  .mg-menu-btn { display: grid; }
  .mg-body { padding: 14px; }
  .mg-top { padding: 10px 14px; }
  .mg-map { height: 340px; }
}
@media (min-width: 700px) {
  .nr-passenger .sheet, .nr-driver .sheet, .nr-track .sheet { left: 16px; right: auto; width: 420px; bottom: 16px; border-radius: 24px; }
}
.input-group .pre { white-space: nowrap; }
@media (min-width: 700px) {
  .auth { align-items: center; justify-content: center; padding: 40px 16px; }
  .auth-hero { width: 100%; max-width: 460px; padding: 0 4px 24px; }
  .auth-card { flex: 0 0 auto; width: 100%; max-width: 460px; border-radius: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
}
