/* Taxi Yami — association admin panel */
html, body { height: 100%; }
body { background: var(--bg); }
.boot { height: 100vh; display: grid; place-items: center; background: var(--navy); color: #fff; }
.boot .wordmark { font-size: 48px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--navy); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::after { content: ""; position: absolute; right: -120px; bottom: -140px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,193,7,.14); }
.login-art .wordmark { font-size: 44px; }
.login-art h1 { font-size: 40px; line-height: 1.12; max-width: 520px; margin: 16px 0 14px; }
.login-art p { color: var(--tint-2); max-width: 460px; font-size: 16px; }
.login-art ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.login-art li { display: flex; gap: 12px; align-items: center; color: #fff; }
.login-art li i { width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; flex: none; }
.login-art li i svg { width: 18px; height: 18px; }
.login-form { display: grid; place-items: center; padding: 40px 24px; }
.login-form form { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 28px; margin-bottom: 6px; }
.demo-hint { display: flex; align-items: center; gap: 10px; background: var(--yellow-100); border-radius: 12px; padding: 10px 12px; font-size: 13px; margin-top: 16px; }
.demo-hint code { font-family: var(--mono); font-size: 12px; }
.demo-hint .btn { margin-left: auto; }
.err-box { background: var(--red-100); color: #9B2424; border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; font-weight: 600; }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-art { padding: 32px 24px; } .login-art h1 { font-size: 28px; } .login-art ul { display: none; } }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--navy-900); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 4px 10px 18px; }
.navs { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.side .brand .wordmark { font-size: 30px; }
.side .brand small { display: block; color: var(--tint-2); font-size: 12px; margin-top: 6px; line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #C9D6EE; text-decoration: none; font-weight: 700; font-size: 15px; }
.nav svg { width: 20px; height: 20px; flex: none; }
.nav:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav.active { background: var(--yellow); color: var(--ink); }
.nav .badge { margin-left: auto; background: var(--green); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; }
.nav.active .badge { background: var(--navy); }
.side .foot { margin-top: 10px; flex: none; border-top: 1px solid rgba(255,255,255,.1); padding: 14px 10px 0; font-size: 13px; color: var(--tint-2); }
.side .foot strong { color: #fff; display: block; }
.side .foot button { margin-top: 10px; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.side .foot button svg { width: 16px; height: 16px; }
.side .foot a { color: var(--yellow); }

.main { min-width: 0; display: flex; flex-direction: column; }
.head { display: flex; align-items: center; gap: 16px; padding: 22px 32px 6px; flex-wrap: wrap; }
.head h1 { font-size: 30px; }
.head .sub { color: var(--muted); font-size: 14px; }
.head .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.live i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(27,175,122,.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(27,175,122,0); } 100% { box-shadow: 0 0 0 0 rgba(27,175,122,0); } }
.page { padding: 18px 32px 40px; display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side, .main { min-width: 0; max-width: 100vw; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 2px; }
  .side .brand { padding: 4px 8px; width: 100%; display: flex; align-items: baseline; gap: 10px; }
  .side .brand .wordmark { font-size: 24px; }
  .side .brand small { margin: 0; }
  .navs { display: flex; flex-direction: row; gap: 4px; overflow-x: auto; width: 100%; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .navs::-webkit-scrollbar { display: none; }
  .nav { padding: 8px 12px; font-size: 13px; flex: none; }
  .side .foot { display: none; }
  .head h1 { font-size: 24px; }
  .head .right { margin-left: 0; }
  .kpi .v { font-size: 24px; }
  .route-row { grid-template-columns: 1fr; }
  .route-editor .emap { height: 300px; }
  .modal-wrap { padding: 8px; align-items: end; }
  .modal { max-height: calc(100dvh - 16px); border-radius: 18px; }
  .head, .page { padding-left: 16px; padding-right: 16px; }
}

/* ---------- cards / KPIs ---------- */
.grid { display: grid; gap: 16px; }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 1280px) { .g5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1100px) { .g2 { grid-template-columns: minmax(0, 1fr); } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .g5, .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g2 { grid-template-columns: minmax(0, 1fr); } .kpi { padding: 14px; } .kpi .v { font-size: 21px; } .kpi small { font-size: 10.5px; } }

.card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px 0; }
.card-h h3 { font-size: 18px; }
.card-h .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-b { padding: 16px 20px 20px; }
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi .v { font-family: var(--serif); font-size: 30px; font-weight: 700; margin-top: 6px; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; }
.kpi .d { font-size: 13px; color: var(--muted); margin-top: 4px; }
.kpi.navy { background: var(--navy); color: #fff; }
.kpi.navy small, .kpi.navy .d { color: var(--tint-2); }
.kpi.navy::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; border: 20px solid rgba(255,193,7,.18); pointer-events: none; }
.kpi.yellow { background: var(--yellow); }
.kpi.yellow small, .kpi.yellow .d { color: #5E4600; }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255,193,7,.9); } 100% { box-shadow: 0 0 0 16px rgba(255,193,7,0); } }

/* ---------- column chart ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: 240px; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .ax { font-size: 12px; fill: var(--muted); }
.chart .col { fill: var(--navy); pointer-events: none; }
.chart .col.today { fill: var(--navy); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .hit:hover + .col, .chart .col.hover { fill: #2F6FD6; }
.chart .cap { font-size: 12px; font-weight: 700; fill: var(--ink); }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 13px; box-shadow: var(--shadow-lg); white-space: nowrap; z-index: 5; transform: translate(-50%, -100%); margin-top: -10px; }
.tip b { font-size: 14px; }
.tip .r { display: flex; justify-content: space-between; gap: 16px; }
.tip .r span:first-child { color: #B8C2D3; }

/* ---------- split bar ---------- */
.splitbar { display: flex; gap: 2px; height: 18px; border-radius: 6px; overflow: hidden; background: #fff; }
.splitbar i { display: block; height: 100%; min-width: 2px; }
.legend { display: grid; gap: 10px; margin-top: 16px; }
.legend .r { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 10px; align-items: center; font-size: 14px; }
.legend .r i { width: 12px; height: 12px; border-radius: 3px; }
.legend .r .pct { color: var(--muted); font-size: 13px; min-width: 48px; text-align: right; }
.legend .r b { min-width: 90px; text-align: right; }
.legend .sub { grid-column: 2 / 5; font-size: 12px; color: var(--muted); margin-top: -6px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl.dense { font-size: 13px; }
.tbl .route-cell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fff; position: sticky; top: 0; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: default; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover { background: #F7F9FC; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .ref { font-family: var(--mono); font-size: 12px; color: var(--navy); font-weight: 700; }
.tbl .strong { font-weight: 700; }
.tbl tr.new { animation: rowIn 2.4s ease; }
@keyframes rowIn { 0% { background: var(--yellow-100); } 100% { background: transparent; } }
.tbl tfoot td { font-weight: 800; border-top: 2px solid var(--line); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .input, .toolbar select { width: auto; padding: 9px 12px; font-size: 14px; border-radius: 10px; }
.tabs { display: inline-flex; background: #E3E7EE; border-radius: 12px; padding: 4px; }
.tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; font-size: 14px; }
.tabs button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow); }

/* ---------- live map ---------- */
.live-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 16px; height: calc(100vh - 110px); min-height: 520px; }
.live-map { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.live-map .map { position: absolute; inset: 0; }
.live-side { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.map-legend { position: absolute; z-index: 500; left: 12px; bottom: 26px; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 12px; display: grid; gap: 6px; }
.map-legend div { display: flex; align-items: center; gap: 8px; }
.map-legend i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--navy); background: var(--yellow); }
.map-legend i.on_trip { border-color: var(--green); }
.map-legend i.offline { background: #D5DAE1; border-color: #9AA5B1; }
@media (max-width: 1100px) { .live-wrap { grid-template-columns: 1fr; height: auto; } .live-map { height: 460px; } }

.taxi { padding: 14px 16px; cursor: pointer; border: 2px solid transparent; }
.taxi:hover { border-color: var(--tint-2); }
.taxi.sel { border-color: var(--navy); }
.taxi .top { display: flex; align-items: center; gap: 10px; }
.taxi .serial { font-family: var(--mono); font-weight: 800; color: var(--navy); }
.taxi .top .pill { margin-left: auto; }
.taxi .meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.taxi .nums { display: flex; gap: 16px; margin-top: 8px; font-size: 13px; }
.taxi .nums b { display: block; font-size: 15px; }
.vet { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.vet span { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 7px; background: var(--green-100); color: #12805A; }
.vet span.bad { background: var(--red-100); color: var(--red); }
.cur { margin-top: 8px; background: var(--tint); border-radius: 10px; padding: 8px 10px; font-size: 13px; color: var(--navy); font-weight: 600; }
.cur.search { background: var(--yellow-100); color: #7A5600; }
.sec-title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 4px 4px -4px; }

/* ---------- routes ---------- */
.route-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.route-row:last-child { border-bottom: 0; }
.route-row h4 { margin: 0; font-family: var(--serif); font-size: 17px; }
.route-row .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 4px; }
.route-row .meta b { color: var(--ink); }
.route-row .acts { display: flex; gap: 8px; align-items: center; }
.route-row.off h4, .route-row.off .meta { opacity: .5; }
.fare-chip { background: var(--yellow-100); font-weight: 800; padding: 6px 10px; border-radius: 10px; font-size: 15px; }
.switch { position: relative; width: 46px; height: 26px; border-radius: 13px; background: #D5DAE1; border: 0; cursor: pointer; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s; }
.switch.on { background: var(--green); }
.switch.on::after { left: 23px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--bg); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--tint); color: var(--navy); }
.icon-btn.danger:hover { background: var(--red-100); color: var(--red); }

/* ---------- modal / drawer ---------- */
.modal-wrap { position: fixed; inset: 0; background: rgba(8,46,107,.55); z-index: 1000; display: grid; place-items: center; padding: 20px; animation: fadeIn .15s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); }
.modal.wide { max-width: 1080px; }
.modal-h { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-h h3 { font-size: 20px; }
.modal-h .icon-btn { margin-left: auto; }
.modal-b { padding: 20px 22px; }
.modal-f { padding: 14px 22px 20px; display: flex; gap: 10px; justify-content: flex-end; }
.route-editor { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.route-editor .emap { height: 480px; border-radius: 14px; overflow: hidden; position: relative; }
.route-editor .emap .map { position: absolute; inset: 0; }
.emap-hint { position: absolute; z-index: 500; top: 10px; left: 56px; right: 10px; background: rgba(255,255,255,.95); border-radius: 10px; padding: 8px 12px; font-size: 13px; box-shadow: var(--shadow); }
@media (max-width: 900px) { .route-editor { grid-template-columns: 1fr; } .route-editor .emap { height: 320px; } }
.pt-head { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 6px; font-size: 14px; }
.pt-head .mk { width: 22px; height: 22px; font-size: 11px; border-width: 2px; }
.search-row { display: flex; gap: 6px; }
.search-row .input { font-size: 14px; padding: 10px 12px; }
.results { border: 1px solid var(--line); border-radius: 10px; margin-top: 6px; max-height: 180px; overflow: auto; }
.results button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 9px 12px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--line); }
.results button:hover { background: var(--tint); }
.results button:last-child { border-bottom: 0; }
.calc { background: var(--bg); border-radius: 12px; padding: 12px; font-size: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.calc b { display: block; font-size: 16px; }

.drawer-wrap { position: fixed; inset: 0; background: rgba(8,46,107,.35); z-index: 1000; animation: fadeIn .15s; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: #fff; box-shadow: var(--shadow-lg); overflow-y: auto; animation: slideIn .2s ease; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.timeline { list-style: none; margin: 0; padding: 0 0 0 6px; }
.timeline li { position: relative; padding: 0 0 16px 24px; font-size: 14px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.timeline li.done::before { background: var(--green); }
.timeline li::after { content: ""; position: absolute; left: 5px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li small { display: block; color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv span { color: var(--muted); }

/* settings */
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 1000px) { .set-grid { grid-template-columns: 1fr; } }
.help { font-size: 13px; color: var(--muted); margin: -8px 0 14px; }
.preview { background: var(--bg); border-radius: 12px; padding: 14px; }
.danger-zone { border: 1.5px dashed #E8B4B4; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 12px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 1px; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }

/* ================= App Two: pickup zones ================= */
.zone-tag { display: inline-block; background: var(--yellow); color: var(--ink); font-family: var(--sans); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; vertical-align: middle; margin-left: 6px; }
.zmk { position: relative; display: inline-grid; place-items: center; border-radius: 50%; font-weight: 800; color: var(--ink); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.28); font-size: 14px; flex: none; }
.zmk.l0 { background: #D5DAE1; color: var(--muted); }
.zmk.l1 { background: #FFE08A; }
.zmk.l2 { background: var(--yellow); }
.zmk.l3 { background: var(--green); color: #fff; }
.zmk small { position: absolute; top: 100%; margin-top: 3px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.95); color: var(--ink); font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.map-legend .zmk { box-shadow: none; }
.hot { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hot:last-of-type { border-bottom: 0; }
.hot-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.hot-bar { height: 8px; background: var(--bg); border-radius: 4px; margin: 6px 0 4px; overflow: hidden; }
.hot-bar i { display: block; height: 100%; background: var(--yellow); border-radius: 4px; }
.route-checks { max-height: 230px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; }
.taxi .top .zmk { margin-right: 4px; }
@media (max-width: 400px) {
  .page { padding-left: 10px; padding-right: 10px; }
  .card-b { padding-left: 14px; padding-right: 14px; }
  .route-row { padding: 14px; }
  .route-row .acts { flex-wrap: wrap; }
  .set-grid .row { flex-wrap: wrap; }
  .set-grid .row > * { min-width: 90px; }
  .head .right { width: 100%; }
  .tabs button { padding: 7px 10px; }
}
@media (max-width: 700px) { .map-legend { font-size: 11px; padding: 6px 9px; gap: 3px; left: 8px; bottom: 22px; } .map-legend i, .map-legend .zmk { transform: scale(.8); } .live-map { height: 420px; } }

/* ---------- Owners Platform ---------- */
.seg { display: flex; background: #E3E7EE; border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.seg button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; }
.seg button svg { width: 17px; height: 17px; }
.seg button.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.login-form form.signup { max-width: 520px; }
.login-form:has(.signup) { align-items: start; overflow-y: auto; max-height: 100vh; }
.fs-h { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin: 18px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); }
form .fs-h:first-of-type { border-top: 0; padding-top: 0; }
.note-bar { display: flex; gap: 12px; align-items: center; background: var(--tint); color: var(--navy-900); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.note-bar > svg { width: 22px; height: 22px; flex: none; }
.note-bar > div { flex: 1; }
.note-bar.warn { background: var(--yellow-100); color: #6B4E00; }
.info-box { display: flex; gap: 10px; background: var(--tint); color: var(--navy-900); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.info-box svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.by-chip { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #EEF0F3; color: var(--muted); vertical-align: middle; }
.by-chip.mine { background: var(--green-100); color: #0F7A55; }
.payout-kpi .btn { margin-top: 10px; }
.payout-kpi .btn[disabled] { opacity: .55; }
.taxi-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.taxi-row:last-child { border-bottom: 0; }
.taxi-row .tr-main { flex: 1; min-width: 0; }
.taxi-row .tr-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.taxi-row .serial { font-family: var(--mono); font-weight: 800; color: var(--navy); }
.head .right { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 960px) { .login-form:has(.signup) { max-height: none; } }

/* ---- go-live: verification bar, documents, statements ---- */
.ok-box { background: var(--green-100); color: #0F6B4A; border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.warn-box { background: var(--yellow-100); color: #5E4600; border-radius: 10px; padding: 8px 10px; margin: 6px 0; font-weight: 600; }
.verify-bar { display: flex; align-items: center; gap: 12px; margin: 16px 32px 0; padding: 12px 16px; background: var(--yellow-100); border: 1px solid rgba(94,70,0,.12); border-radius: 14px; font-size: 14px; color: #5E4600; }
.verify-bar svg { width: 22px; height: 22px; flex: none; }
.verify-bar > div { flex: 1; }
.verify-bar a { color: #5E4600; }
.doc-fold { margin-top: 10px; }
.doc-fold summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--navy); list-style: none; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.doc-fold summary::before { content: "▸"; font-size: 12px; transition: transform .15s; }
.doc-fold[open] summary::before { transform: rotate(90deg); }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 10px; }
.doc { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.doc.ok { border-left-color: var(--green); }
.doc.warn { border-left-color: var(--yellow); }
.doc.bad { border-left-color: var(--red); }
.doc.wait { border-left-color: var(--navy-300, #7C9BD6); }
.doc-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-t .pill { margin-left: auto; }
.doc-l { margin: 4px 0 8px; }
.doc-a { display: flex; gap: 6px; flex-wrap: wrap; }
.doc-a .btn svg { width: 14px; height: 14px; }
.exp-soon { color: #9A6B00; font-weight: 700; }
.doc-tr td { padding-top: 0 !important; border-top: 0 !important; }
.tbl tr.tot td { font-weight: 800; border-top: 2px solid var(--navy); background: var(--tint); }
.statement { max-width: 1000px; }
.statement .wordmark.dark { color: var(--navy); font-size: 26px; }
.st-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.st-title { text-align: right; }
.st-title h2 { font-size: 22px; margin-bottom: 2px; }
.st-to { background: var(--tint); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin-bottom: 18px; }
.st-kpi .kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.st-kpi .kpi .v { font-size: 22px; }
.st-h { font-size: 15px; margin: 22px 0 8px; }
.invoice { margin-top: 26px; padding-top: 18px; border-top: 2px dashed var(--line); }
@media print {
  .side, .head .right, .verify-bar, .toast-wrap, .toast { display: none !important; }
  .app { display: block; }
  .page { padding: 0; }
  .card { box-shadow: none; border: 0; }
  .statement { max-width: none; }
  body { background: #fff; }
}

/* ---- support chat ---- */
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding: 4px 2px 12px; }
.chat-sys { text-align: center; padding: 4px 0; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--tint); border-bottom-left-radius: 4px; }
.bubble span { display: block; margin-top: 4px; opacity: .7; font-size: 11px; }
.chat-in { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.chat-in textarea { flex: 1; resize: none; font-family: inherit; }
.chat-in.hidden { display: none; }
.tbl tr.unread td b { font-weight: 800; }

/* =====================================================================
   Phone layout (the Owners app) — bottom navigation, stacked tables, sheets
   ===================================================================== */
.bottom-nav { display: none; }
.list-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.list-tools .input { flex: 1; min-width: 180px; }
.map-btn { position: absolute; z-index: 500; right: 12px; top: 12px; height: 40px; padding: 0 12px; border: 0; border-radius: 12px; background: #fff; color: var(--navy); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; box-shadow: var(--shadow); cursor: pointer; }
.map-btn svg { width: 18px; height: 18px; }
.map-btn.legend-toggle { top: 60px; width: 40px; padding: 0; justify-content: center; font-family: var(--serif); font-size: 18px; }
.map-legend.collapsed { display: none; }
@media (min-width: 701px) { .map-legend.collapsed { display: grid; } .map-btn.legend-toggle { display: none; } }
.ptr { position: fixed; top: calc(env(safe-area-inset-top) + 70px); left: 50%; transform: translateX(-50%) scale(calc(.5 + var(--p, 0) * .5)); width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; z-index: 950; opacity: var(--p, 0); }
.ptr.ready { background: var(--yellow); }
.sheet-wrap { position: fixed; inset: 0; background: rgba(8,46,107,.5); z-index: 1100; display: flex; align-items: flex-end; animation: fadeIn .15s; }
.sheet { width: 100%; background: #fff; border-radius: 22px 22px 0 0; padding: 10px 14px calc(16px + env(safe-area-inset-bottom)); max-height: 88dvh; overflow-y: auto; animation: sheetUp .22s ease; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet .grab { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 12px; }
.sheet-who { display: flex; flex-direction: column; padding: 4px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.sheet-who strong { font-size: 16px; } .sheet-who span { font-size: 13px; color: var(--muted); }
.sheet-list a { display: flex; align-items: center; gap: 14px; padding: 13px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 16px; min-height: 48px; }
.sheet-list a svg:first-child { width: 22px; height: 22px; color: var(--navy); flex: none; }
.sheet-list a svg:last-child { width: 18px; height: 18px; margin-left: auto; color: var(--muted-2); transform: scaleX(-1); }
.sheet-list a .badge { background: var(--green); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 999px; margin-left: auto; }
.sheet-list a .badge + svg { margin-left: 8px; }
.sheet-list a.on { background: var(--yellow-100); }
.sheet-list a:active { background: var(--bg); }
.sheet-foot { display: grid; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }

@media (max-width: 960px) {
  /* nothing may push the page sideways */
  html, body { overflow-x: hidden; max-width: 100vw; }
  .app, .main, .page, .card { max-width: 100%; min-width: 0; }
  .page > *, .card-b { overflow-wrap: anywhere; }
  .card-b img, .card-b svg:not(.leaflet-zoom-animated) { max-width: 100%; }
  /* header: brand + company only, always visible; the tab strip is replaced by the bottom bar */
  .side { position: fixed; top: 0; left: 0; right: 0; height: auto; z-index: 900; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; box-shadow: 0 2px 12px rgba(8,46,107,.18); }
  .main { padding-top: calc(58px + env(safe-area-inset-top)); }
  html { scroll-padding-top: calc(70px + env(safe-area-inset-top)); }
  .modal-wrap, .drawer-wrap, .sheet-wrap { z-index: 1100; }
  .side .navs { display: none; }
  .side .brand { padding: 2px 0; gap: 12px; }
  .side .brand .wordmark { font-size: 22px; }
  .side .brand small { font-size: 12px; line-height: 1.25; }
  .main { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .toasts { top: calc(66px + env(safe-area-inset-top)); }
  .head { padding: 16px 16px 4px; gap: 10px; }
  .head h1 { font-size: 22px; }
  .head .sub { font-size: 13px; }
  .head .right .btn { min-height: 44px; }
  .page { padding: 12px 16px 24px; gap: 14px; }
  .verify-bar { margin: 12px 16px 0; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(16,24,40,.06); }
  .bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; border: 0; background: none; color: var(--muted); text-decoration: none; font: inherit; font-size: 11px; font-weight: 700; border-radius: 12px; position: relative; }
  .bottom-nav svg { width: 24px; height: 24px; }
  .bottom-nav .active { color: var(--navy); }
  .bottom-nav .active svg { color: var(--navy); }
  .bottom-nav .active::before { content: ""; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 2px; background: var(--yellow); }
  .bottom-nav .dot { position: absolute; top: 4px; right: calc(50% - 16px); width: 9px; height: 9px; border-radius: 50%; background: var(--green); border: 2px solid #fff; }
  .bottom-nav .dot.hidden { display: none; }
  /* touch targets & legibility */
  .icon-btn { width: 44px; height: 44px; }
  .btn-sm { min-height: 40px; }
  .card a:not(.btn), .modal a:not(.btn), .drawer a:not(.btn) { padding: 9px 0; display: inline-block; }
  .by-chip, .zone-tag, .vet span { font-size: 12px; }
  .tbl .ref { font-size: 13px; }
  .leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; font-size: 20px !important; }
  .mk-taxi-label, .zmk small { font-size: 12px; }
  .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; } .tabs::-webkit-scrollbar { display: none; }
  .tabs button { padding: 9px 14px; white-space: nowrap; }
  .switch { width: 52px; height: 30px; } .switch::after { width: 24px; height: 24px; } .switch.on::after { left: 25px; }
  /* dashboard order: what needs me → numbers → busiest → trips → chart */
  .c-chart { order: 5; }
  .kpi .v { font-size: clamp(19px, 7vw, 28px); }
  .payout-kpi .btn { width: 100%; justify-content: center; }
  /* documents */
  .docs { grid-template-columns: 1fr; }
  .doc { padding: 12px 14px; }
  .doc-a { gap: 8px; } .doc-a .btn { flex: 1; min-height: 44px; justify-content: center; }
  /* lists */
  .route-row { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
  .route-row .acts { justify-content: flex-start; }
  .taxi-row { flex-direction: column; gap: 8px; }
  /* live map */
  .live-wrap { gap: 12px; } .live-map { height: 52vh; min-height: 340px; } .live-side { max-height: none; overflow: visible; }
  /* modals & drawers become bottom sheets */
  .modal-wrap { padding: 0; align-items: end; }
  .modal, .modal.wide { max-width: none; width: 100%; max-height: calc(100dvh - 24px); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: sheetUp .22s ease; }
  .modal-h { position: sticky; top: 0; background: #fff; z-index: 2; padding: 14px 18px; }
  .modal-h h3 { font-size: 18px; }
  .modal-b { overflow-y: auto; flex: 1; padding: 16px 18px; -webkit-overflow-scrolling: touch; }
  .modal-f { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .modal-f .btn { flex: 1; min-height: 46px; justify-content: center; }
  .drawer { width: 100%; top: 24px; border-radius: 22px 22px 0 0; animation: sheetUp .22s ease; padding-bottom: env(safe-area-inset-bottom); }
  .drawer .modal-h { position: sticky; top: 0; background: #fff; z-index: 2; }
  .drawer .modal-f { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); }
  .route-editor .emap { height: 46vh; min-height: 260px; }
  .chat { max-height: none; }
  /* statement on a phone */
  .st-head { flex-direction: column; } .st-title { text-align: left; }
  .statement .grid.g2 { grid-template-columns: 1fr; }
}

/* tables → stacked cards (phones). Each cell carries its heading in data-label. */
@media (max-width: 700px) {
  .tbl-wrap { overflow: visible; }
  .tbl td, .tbl th { white-space: normal; }
  .tbl:not(.resp) td.r { white-space: nowrap; }
  table.tbl.resp, .tbl.resp tbody, .tbl.resp tr, .tbl.resp td { display: block; }
  .tbl.resp thead { display: none; }
  .tbl.resp tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); position: relative; }
  .tbl.resp tbody tr:last-child { border-bottom: 0; }
  .tbl.resp td { padding: 0; border: 0; white-space: normal; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
  .tbl.resp td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 1px; }
  .tbl.resp td:first-child { grid-column: 1 / -1; font-weight: 700; font-size: 15px; }
  .tbl.resp td:first-child::before { display: none; }
  .tbl.resp td[colspan], .tbl.resp td.empty { grid-column: 1 / -1; }
  .tbl.resp td.r { text-align: left; }
  .tbl.resp td:empty, .tbl.resp td[data-label=""]::before { display: none; }
  .tbl.resp .route-cell { max-width: none; white-space: normal; }
  .tbl.resp tbody tr.click { padding-right: 28px; }
  .tbl.resp tbody tr.click::after { content: "›"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--muted-2); line-height: 1; }
  .tbl.resp tbody tr.click:active { background: var(--bg); }
  .tbl.resp tfoot { display: block; } .tbl.resp tfoot tr { display: flex; justify-content: space-between; padding: 10px 0; } .tbl.resp tfoot td { border: 0; padding: 0; }
  .tbl.resp tr.tot { display: flex; justify-content: space-between; background: var(--tint); border-radius: 10px; padding: 10px 12px; }
  .tbl.resp tr.tot td::before { display: none; }
  .tbl.resp tr.doc-tr { padding-top: 0; }
  .g4.kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; } .kpi small { font-size: 11px; }
  .card-h { padding: 14px 16px 0; } .card-b { padding: 12px 16px 16px; } .card-h h3 { font-size: 16px; }
  .card-h .right { flex-wrap: wrap; justify-content: flex-end; }
}


.app-ver { text-align: center; padding: 8px 0 0; font-size: 12px; } .app-ver a { color: var(--navy); font-weight: 700; }
@media (max-width: 700px) { .emap-hint { top: auto; bottom: 12px; left: 12px; right: 12px; font-size: 12.5px; } .emap .map-offline-note { bottom: auto; top: 8px; left: auto; right: 8px; max-width: 60%; } }
/* tables inside drawers / modals wrap instead of running out of the panel */
.drawer-b table.tbl, .modal-b table.tbl { width: 100%; }
.drawer-b .tbl th, .drawer-b .tbl td, .modal-b .tbl th, .modal-b .tbl td { white-space: normal; }
.drawer-b .tbl td.nowrap, .modal-b .tbl td.nowrap { white-space: nowrap; }
.btn.danger-text { color: var(--red); }
.close-acct .card-b p { margin-bottom: 12px; }
/* document upload: camera / picker buttons + chosen file */
.up-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.up-pick .btn { justify-content: center; gap: 8px; padding: 14px 10px; }
.up-pick .btn svg { width: 20px; height: 20px; flex: none; }
.up-pick .btn.hidden + .btn, .up-pick:has(.hidden) { grid-template-columns: 1fr; }
.up-chosen { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #F7F9FC; }
.up-chosen img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex: none; }
.up-chosen .up-pdf { width: 52px; height: 52px; border-radius: 8px; background: var(--red, #D32F2F); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.up-chosen div { flex: 1; min-width: 0; } .up-chosen b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.up-chosen small { color: var(--muted); font-size: 12.5px; }
.up-chosen .link { border: 0; background: none; color: var(--navy); font-weight: 700; cursor: pointer; padding: 6px; }
@media (max-width: 380px) { .up-pick { grid-template-columns: 1fr; } }

/* ---------- owner approval: taxi / driver cards, 3 steps, one message, document rows ---------- */
.vcard { padding: 18px 0; border-bottom: 1px solid var(--line); }
.vcard:first-child { padding-top: 4px; }
.vcard:last-child { border-bottom: 0; padding-bottom: 4px; }
.vc-h { display: flex; gap: 12px; align-items: flex-start; }
.vc-h > div { flex: 1; min-width: 0; }
.vc-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 16px; margin-bottom: 2px; }
.vc-title .serial { font-family: var(--mono); font-weight: 800; color: var(--navy); }
.vsteps { display: flex; gap: 8px; list-style: none; margin: 14px 0 10px; padding: 0; max-width: 640px; }
.vsteps li { flex: 1; min-width: 0; border-top: 4px solid var(--line); padding-top: 8px; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted-2); line-height: 1.2; }
.vsteps li span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #EEF0F3; color: var(--muted); }
.vsteps li.done { border-top-color: var(--green); color: #12805A; }
.vsteps li.done span { background: var(--green); color: #fff; }
.vsteps li.now { border-top-color: var(--yellow); color: var(--ink); }
.vsteps li.now span { background: var(--yellow); color: var(--ink); }
.vc-msg { border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; margin: 10px 0 12px; max-width: 900px; }
.vc-msg.todo { background: var(--tint); color: var(--navy-900); }
.vc-msg.wait { background: var(--yellow-100); color: #5E4600; }
.vc-msg.soon { background: var(--yellow-100); color: #5E4600; }
.vc-msg.bad { background: var(--red-100); color: #8E1F1F; }
.vc-msg.ok { background: var(--green-100); color: #0E6B4A; font-weight: 600; }
.drs { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 900px; background: #fff; }
.doc-fold .drs { margin-top: 8px; }
.dr { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.dr:first-child { border-top: 0; }
.dr-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: #fff; color: var(--muted); border: 2px dashed #C9CED6; }
.dr-dot svg { width: 15px; height: 15px; }
.dr.ok .dr-dot { background: var(--green); color: #fff; border: 0; }
.dr.wait .dr-dot { background: var(--yellow-100); color: #9A6B00; border: 0; }
.dr.bad .dr-dot { background: var(--red); color: #fff; border: 0; }
.dr.soon .dr-dot { background: var(--yellow); color: #5E4600; border: 0; }
.dr.opt .dr-dot { border-color: var(--line); }
.dr-m { flex: 1; min-width: 0; }
.dr-m b { display: block; font-size: 14px; }
.dr-m small { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; line-height: 1.35; }
.dr.bad small { color: var(--red); font-weight: 700; }
.dr.wait small, .dr.soon small { color: #9A6B00; font-weight: 600; }
.dr.todo small { color: var(--navy); font-weight: 600; }
.dr-a { flex: none; display: flex; align-items: center; gap: 12px; }
.dr-view { font-size: 13px; font-weight: 700; color: var(--navy); text-decoration: none; }
.dr-view:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .vsteps { gap: 5px; }
  .vsteps li { font-size: 11.5px; gap: 5px; align-items: flex-start; }
  .vsteps li span { width: 20px; height: 20px; font-size: 11px; }
  .dr { flex-wrap: wrap; row-gap: 8px; }
  .dr-a { width: 100%; padding-left: 38px; }
  .dr-a .btn { flex: 1; min-height: 42px; justify-content: center; }
  .vc-h .btn { flex: none; }
}

/* ---- association platform (assoc.js) ---- */
.portal-tabs { margin-bottom: 18px; }
.miss { margin: 6px 0 0; padding-left: 18px; }
.miss li { margin: 2px 0; }
.how { margin: 0; padding-left: 20px; line-height: 1.7; }
.how li { margin-bottom: 6px; }
.card-lite { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; font-size: 14px; background: #fff; }
.opt-bank { margin: 10px 0 4px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
.opt-bank summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.opt-bank[open] summary { margin-bottom: 10px; }
.note-bar .miss { font-weight: 400; }

/* Approval checklist (association portal) */
.appr-list { margin-top: 6px; }
.appr-row { display: flex; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); align-items: flex-start; font-size: 13.5px; }
.appr-row i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-weight: 900; font-size: 12px; background: #E3E7EE; color: var(--muted); }
.appr-row.approved i, .appr-row.ticked i { background: var(--green-100); color: #0F7A55; }
.appr-row.pending i { background: var(--tint); color: var(--navy); }
.appr-row.rejected i, .appr-row.expired i { background: #FBE3E3; color: var(--red); }
.appr-row strong { display: block; }
.appr-row span { display: block; color: var(--muted); font-size: 12.5px; }
.appr-row.rejected span, .appr-row.expired span { color: var(--red); font-weight: 600; }
.appr-row em { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: #7A5600; margin-top: 2px; }
.appr-bar > div { min-width: 0; flex: 1; }

/* Map compass (appears once the map is turned with two fingers; tap = north up) */
.compass-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 10px rgba(16,24,40,.2); display: none; align-items: center; justify-content: center; padding: 0; cursor: pointer; transition: transform .15s; }
.compass-btn svg { width: 22px; height: 22px; }
.compass-btn.on { display: inline-flex; }
