/* Autovise Black Car — portal (My Trips / Chauffeur / Dashboard).
   Shares the site design tokens from style.css. */
.p-wrap{max-width:960px;margin:0 auto;padding:28px 20px 64px}
.portal-nav{display:flex;gap:26px;font-weight:550}
.portal-nav a{padding:8px 2px}
.footer-links{display:flex;gap:22px;margin:10px 0 4px;font-weight:550}
.pay-banner{background:#17191c;color:#fff;border-radius:12px;padding:14px 18px;margin-bottom:18px;font-weight:550}
.pay-banner.err{background:#7a1f1f}
.tabs{display:flex;gap:8px;margin:6px 0 22px;flex-wrap:wrap}
.tab{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 18px;font-weight:600}
.tab.active{background:#17191c;color:#fff;border-color:#17191c}
.card{border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:16px;background:#fff}
.card h2{margin:0 0 6px;font-size:22px;letter-spacing:-.4px}
.card h3{margin:0 0 8px;font-size:17px}
.muted{color:var(--muted)}
.small{font-size:13.5px}
.msg{border-radius:10px;padding:11px 14px;margin:12px 0;font-weight:550;background:var(--soft)}
.msg.err{background:#fdecec;color:#7a1f1f}
.msg.ok{background:#e9f7ee;color:#14532d}
.btn{display:inline-block;background:#17191c;color:#fff;border:1px solid #17191c;border-radius:999px;padding:10px 20px;font-weight:600;text-align:center}
.btn:disabled{opacity:.45}
.btn.ghost{background:#fff;color:var(--ink);border-color:var(--line)}
.btn.danger{background:#7a1f1f;border-color:#7a1f1f}
.btn.gold{background:#8a6d1f;border-color:#8a6d1f}
.btn-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.field{margin-bottom:14px}
.field label{display:block;font-weight:600;margin-bottom:6px;font-size:14.5px}
.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 13px;background:#fff;color:var(--ink)}
.field textarea{min-height:74px;resize:vertical}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
@media(max-width:640px){.grid2{grid-template-columns:1fr}}
.pill{display:inline-block;border-radius:999px;padding:3px 11px;font-size:12.5px;font-weight:650;background:var(--soft);border:1px solid var(--line);vertical-align:middle}
.pill.dark{background:#17191c;color:#fff;border-color:#17191c}
.pill.gold{background:#f7ecd2;border-color:#e3cf96;color:#6b5310}
.pill.red{background:#fdecec;border-color:#f0c4c4;color:#7a1f1f}
.pill.green{background:#e9f7ee;border-color:#bfe6cc;color:#14532d}
.trip-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}
.trip-route{font-size:17px;font-weight:650;letter-spacing:-.2px}
.kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px 18px;margin-top:12px}
.kv div span{display:block;color:var(--muted);font-size:12.5px;font-weight:600;text-transform:uppercase;letter-spacing:.4px}
.kv div{font-weight:550}
.timeline{margin:14px 0 0;padding:0;list-style:none;border-top:1px solid var(--line)}
.timeline li{padding:8px 0;border-bottom:1px solid var(--line);font-size:14px}
.timeline li span{color:var(--muted);margin-right:8px;font-size:13px}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 14px;font-weight:600;font-size:14px}
.chip.active{background:#17191c;color:#fff;border-color:#17191c}
.search-row{display:flex;gap:10px;margin-bottom:16px}
.search-row input{flex:1;border:1px solid var(--line);border-radius:12px;padding:11px 13px}
details.action-box{border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-top:12px}
details.action-box summary{font-weight:650;cursor:pointer}
.stage-btn{font-size:16px;padding:13px 22px}
.code-once{background:#f7ecd2;border:1px solid #e3cf96;border-radius:12px;padding:14px 16px;font-weight:600;margin:12px 0}
.empty{border:1px dashed var(--line);border-radius:16px;padding:28px;text-align:center;color:var(--muted)}
a.tel{font-weight:650;text-decoration:underline}
/* Type scale-up (owner request, 2026-11-10) — matches style.css. */
.small{font-size:15px}
.field label{font-size:16px}
.pill{font-size:14px}
.kv div span{font-size:14px}
.timeline li{font-size:16px}
.timeline li span{font-size:15px}
.chip{font-size:16px}
.card h3{font-size:19px}

/* Quick add (paste a booking) — checkbox label inside a field. */
.field label.check{display:flex;gap:9px;align-items:center;font-weight:550}
.field label.check input{width:auto}

/* Send-quote channel picker: stacked checkbox lines. */
.check-col{display:flex;flex-direction:column;gap:8px}
.check-col label.check{display:flex;gap:9px;align-items:center;font-weight:550}
.check-col label.check input{width:auto}

/* Summary strip + sort select (owner request, 2026-11-11; decluttered same day) */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:28px}
.stat span{display:block;color:var(--muted);font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.4px}
.stat strong{display:block;font-size:31px;letter-spacing:-.5px;margin:4px 0 2px}
.stat em{font-style:normal;color:var(--muted);font-size:14px}
.search-row select{border:1px solid var(--line);border-radius:12px;padding:11px 10px;background:#fff;font-weight:600;font-size:15px}
.chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{white-space:nowrap;flex-shrink:0}
.card.rows{padding:6px 0}
.brow{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 20px;border-top:1px solid var(--line);cursor:pointer}
.brow:first-child{border-top:none}
.brow:hover{background:var(--soft)}
.brow-main{min-width:0}
.brow-side{text-align:right;flex-shrink:0}
.brow-price{font-weight:700;font-size:17px;margin-bottom:5px}

/* Partners (employee view + admin manager) */
.code-chip{background:#f7ecd2;border:1px solid #e3cf96;border-radius:12px;padding:10px 16px;text-align:center}
.code-chip span{display:block;font-size:12.5px;font-weight:600;text-transform:uppercase;letter-spacing:.4px;color:#6b5310}
.code-chip strong{display:block;font-size:26px;letter-spacing:1px;color:#17191c}
.steps{display:flex;gap:4px;margin:16px 0 8px;flex-wrap:wrap}
.step{flex:1;min-width:96px;text-align:center;padding:10px 4px;border-top:3px solid var(--line);color:var(--muted)}
.step .dot{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--soft);border:1px solid var(--line);font-weight:700;font-size:13px;margin-bottom:5px}
.step .step-label{display:block;font-size:13.5px;font-weight:600}
.step.done{border-top-color:#146c2e;color:#14532d}
.step.done .dot{background:#e9f7ee;border-color:#bfe6cc;color:#14532d}
.step.now{border-top-color:#c9a24d;color:var(--ink)}
.step.now .dot{background:#f7ecd2;border-color:#e3cf96;color:#6b5310}
.partner-co{border-top:1px solid var(--line);padding:16px 0 6px;margin-top:14px}
.staff-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.staff-row:last-child{border-bottom:none}
.staff-actions{margin-top:0}
.subhead{font-size:16px;margin:14px 0 6px}
.flight-live{margin-top:10px;padding:10px 12px;border:1px solid var(--line);border-left:3px solid #b98a1c;border-radius:10px;background:var(--soft);font-size:14px;line-height:1.45}
.flight-live .flight-late{color:#7a1f1f}

/* --- 2026-11-14 fix pass --- */
.portal-title{font-size:26px;letter-spacing:-.6px;font-weight:550;margin:6px 0 16px}

/* --- Phone text fit (owner request, 2026-11-15) --- */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
html,body{overflow-x:clip}
img,svg,video{max-width:100%}
input,select,textarea{max-width:100%}
h1,h2,h3{overflow-wrap:break-word}
.field input,.field select,.field textarea,.search-row input{font-size:16px}
@media(max-width:640px){
.portal-title{font-size:23px}
.stat strong{font-size:25px}
}

/* --- Small-phone fit pass 2: dashboard search/sort row (owner report, 2026-11-15) --- */
.search-row{flex-wrap:wrap}
.search-row input{min-width:0}
@media(max-width:640px){
.search-row input{flex:1 1 100%}
.search-row select{flex:1 1 100%;width:100%}
}

/* ===== Dark mode (2026-11-17) — theme variables flip in style.css ===== */
html[data-theme="dark"] .card,html[data-theme="dark"] .tab,html[data-theme="dark"] .chip,html[data-theme="dark"] .btn.ghost,html[data-theme="dark"] textarea,html[data-theme="dark"] select{background:#17191d;color:#eceef0}
html[data-theme="dark"] .tab.active,html[data-theme="dark"] .chip.active,html[data-theme="dark"] .btn{background:#c9a24b;color:#17191c;border-color:#c9a24b}
html[data-theme="dark"] .btn.danger{background:#7a1f1f;color:#fff;border-color:#7a1f1f}
html[data-theme="dark"] .msg.err{background:#3a1d1d;color:#e08a8a}
html[data-theme="dark"] .msg.ok{background:#1d2f24;color:#8fd0a5}
html[data-theme="dark"] .pill.gold,html[data-theme="dark"] .code-once,html[data-theme="dark"] .code-chip{background:#2e2a1a;border-color:#5c4d1e;color:#e8c877}
html[data-theme="dark"] .code-chip strong{color:#eceef0}
html[data-theme="dark"] .pill.red{background:#3a1d1d;border-color:#6e3434;color:#e08a8a}
html[data-theme="dark"] .pill.green{background:#1d2f24;border-color:#2f5c3d;color:#8fd0a5}
html[data-theme="dark"] .pill.dark{background:#eceef0;color:#17191c;border-color:#eceef0}
html[data-theme="dark"] .step.done{color:#8fd0a5}
html[data-theme="dark"] .flight-late{color:#e08a8a}
html[data-theme="dark"] input{background:#14161a;color:#eceef0;border-color:#2e3237}
