
:root{
  --bg:#f5f7fb;--card:#fff;--text:#152238;--muted:#667085;--border:#d8e0ea;
  --accent:#0b63ce;--accent-dark:#084d9c;--success:#087a55;--danger:#b42318;
  --warn:#9a6700;--shadow:0 14px 38px rgba(17,35,65,.09)
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text);font-size:11px}
button,input,select{font:inherit}
button{cursor:pointer}
a{color:var(--accent)}
.shell{width:100%;min-height:100vh;padding:16px}
.hero,.topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}
.branding{display:flex;flex-direction:column;align-items:flex-start}
.brand-logo{display:block;width:143px;height:auto}
.brand-subtitle{margin-top:1px;font-size:11px;font-style:italic;font-weight:400;color:#344054}
.header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.user-pill{display:flex;align-items:center;gap:8px;padding:6px 9px;background:#fff;border:1px solid var(--border);border-radius:999px;text-decoration:none;color:var(--text)}
.avatar{width:28px;height:28px;border-radius:50%;background:#102a43;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}
.btn{border:0;border-radius:10px;padding:9px 14px;min-height:40px;font-size:11px;font-weight:800}
.btn.primary{background:var(--accent);color:#fff}.btn.primary:hover{background:var(--accent-dark)}
.btn.secondary{background:#eef2f7;color:#344054}
.btn.ghost{background:#fff;border:1px solid var(--border);color:#344054}
.btn.danger{background:#fff0ef;color:var(--danger)}
.card{background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}
.progress{display:grid;grid-template-columns:repeat(4,1fr);background:#fbfcfe;border-bottom:1px solid var(--border)}
.progress-step{padding:14px 10px;text-align:center;color:#98a2b3;font-size:11px;font-weight:800}
.progress-step span{display:inline-flex;width:26px;height:26px;align-items:center;justify-content:center;border-radius:50%;background:#eef2f7;margin-right:5px}
.progress-step.active{color:var(--accent)}.progress-step.active span{background:var(--accent);color:#fff}
.progress-step.done{color:var(--success)}.progress-step.done span{background:#e8f7f0;color:var(--success)}
.content{padding:26px;width:100%;max-width:1400px;margin:0 auto}
.step{display:none}.step.active{display:block}
h1,h2,h3{font-size:14px;margin:0 0 14px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field.full{grid-column:1/-1}
label{display:block;font-weight:700;margin-bottom:6px}
input,select{width:100%;min-height:46px;border:1px solid var(--border);border-radius:10px;padding:10px 12px;background:#fff;color:var(--text);outline:none}
input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(11,99,206,.10)}
.actions{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px}
.right{display:flex;gap:8px;margin-left:auto}
.notice{margin-top:12px;padding:10px 12px;border-radius:10px;background:#eef6ff;color:#174f8a}
.notice.error{background:#fff0ef;color:var(--danger)}.notice.warn{background:#fff7e8;color:#8a5600}
.distance-box{display:none;margin-top:13px;padding:12px;border-radius:11px;background:#eef6ff;color:#174f8a}
.distance-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.distance-value{font-weight:900}
.maps-link{background:#fff;border:1px solid #b8d2f2;border-radius:8px;padding:6px 9px;font-weight:800;text-decoration:none}
.review-stack{display:flex;flex-direction:column;gap:9px;margin-bottom:18px}
.review-card{border:1px solid var(--border);border-radius:12px;background:#f8fafc;padding:12px 13px}
.review-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.review-inline{display:flex;align-items:center;gap:9px;min-width:0}.review-title{font-weight:800;color:#667085;white-space:nowrap}.review-title::after{content:":"}.review-value{font-weight:600;overflow-wrap:anywhere}
.review-sub{margin-top:4px;color:var(--muted)}
.edit-icon{width:32px;height:32px;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--accent);display:flex;align-items:center;justify-content:center}
.tabs{display:flex;gap:8px;margin-bottom:14px;border-bottom:1px solid var(--border);padding-bottom:9px}
.body-tab{border:1px solid var(--border);background:#fff;color:#475467;border-radius:999px;padding:7px 15px;font-weight:800}
.body-tab.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.vehicle-list{display:flex;flex-direction:column;gap:9px}
.vehicle-card{width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid var(--border);border-radius:12px;background:#fff;text-align:left}
.vehicle-card.selected{border-color:var(--accent);background:#eef6ff;box-shadow:0 0 0 2px rgba(11,99,206,.07)}
.vehicle-card.overloaded{background:#fff8ed;border-color:#f1c77c;opacity:.88;cursor:not-allowed}
.vehicle-main{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%}
.vehicle-info{min-width:0;flex:1}.vehicle-title{font-weight:900}.vehicle-meta{color:var(--muted);margin-top:3px}
.vehicle-visual{width:150px;min-width:150px;height:72px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #e4eaf2;border-radius:10px;padding:4px;overflow:hidden}
.vehicle-visual img{display:block;width:142px;height:64px;object-fit:contain}
.capacity-pill,.over-tag{padding:5px 8px;border-radius:999px;background:#eef2f7;color:#475467;font-weight:800;white-space:nowrap}
.over-tag{background:#fff0d8;color:#9a6700;margin-left:6px}
.price-panel{background:linear-gradient(135deg,#102a43,#0b63ce);color:#fff;border-radius:16px;padding:22px}
.price-label{font-weight:800;text-transform:uppercase;letter-spacing:.06em;opacity:.78}
.price-range{font-size:18px;font-weight:900;margin-top:7px}
.summary{margin-top:16px;border:1px solid var(--border);border-radius:13px;padding:12px 14px}
.summary-row{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;padding:8px 0;border-bottom:1px solid #edf0f4}
.summary-row:last-child{border-bottom:0}.summary-row span{color:var(--muted)}.summary-row strong{text-align:right;overflow-wrap:anywhere}
.page-card{max-width:1040px;margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:18px}
.auth-card{max-width:460px;margin:55px auto;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:22px}
.auth-card h1{margin-bottom:5px}.auth-card p{color:var(--muted);margin:0 0 18px}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:820px}.table th,.table td{padding:10px;border-bottom:1px solid #edf0f4;text-align:left;vertical-align:middle}.table th{font-size:10px;color:#667085;background:#f8fafc;text-transform:uppercase}.trip-id{font-weight:900}
.status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#eef2f7;color:#475467;font-size:10px;font-weight:800}.status.done{background:#e8f7f0;color:#087a55}.status.transit{background:#eef6ff;color:#174f8a}
.dashboard-tabs{display:flex;gap:8px;margin:15px 0;border-bottom:1px solid var(--border);padding-bottom:9px}.dashboard-tab{padding:7px 13px;border:1px solid var(--border);border-radius:999px;background:#fff;font-weight:800}.dashboard-tab.active{background:var(--accent);border-color:var(--accent);color:#fff}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}.kpi{background:#fff;border:1px solid var(--border);border-radius:12px;padding:13px}.kpi-label{font-size:10px;color:var(--muted);text-transform:uppercase;font-weight:800}.kpi-value{font-size:18px;font-weight:900;margin-top:5px}
.sidebar-layout{display:grid;grid-template-columns:190px 1fr;gap:14px}.sidebar{background:#fff;border:1px solid var(--border);border-radius:14px;padding:10px;height:max-content}.side-link{display:block;padding:10px;border-radius:9px;text-decoration:none;color:#344054;font-weight:800}.side-link.active,.side-link:hover{background:#eef6ff;color:var(--accent)}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}.toolbar .group{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.toolbar input{width:min(310px,75vw)}
.modal{display:none;position:fixed;inset:0;background:rgba(15,23,42,.58);z-index:1000;padding:16px;align-items:center;justify-content:center}.modal.open{display:flex}.modal-card{width:min(520px,100%);background:#fff;border-radius:16px;border:1px solid var(--border);padding:20px;box-shadow:0 24px 60px rgba(15,23,42,.24)}
.modal-tabs{display:flex;gap:7px;margin:10px 0 15px}.modal-tab{flex:1;border:1px solid var(--border);background:#fff;border-radius:9px;padding:8px;font-weight:800}.modal-tab.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.auth-pane{display:none}.auth-pane.active{display:block}
.loading{padding:20px;text-align:center;color:var(--muted)}
@media(max-width:800px){
  .form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.content{padding:20px 14px}
  .vehicle-main{gap:8px}.vehicle-visual{width:100px;min-width:100px;height:54px}.vehicle-visual img{width:94px;height:48px}
  .capacity-pill{display:none}.kpis{grid-template-columns:1fr 1fr}.sidebar-layout{grid-template-columns:1fr}.sidebar{display:flex;overflow:auto;gap:5px}.side-link{white-space:nowrap}
}
@media(max-width:480px){.progress-step{font-size:0}.progress-step span{margin:0}.kpis{grid-template-columns:1fr}.brand-logo{width:110px}}

/* ===== Full Edition Modern Playful UI ===== */
:root{--navy:#0b2340;--blue:#377cf6;--cyan:#1bb6c9;--mint:#33c990;--orange:#ff9b54;--purple:#7a6cf6;--pink:#f06ea9;--border:#dbe5ef;--muted:#6e7e91}
html,body{font-size:13px;background:radial-gradient(circle at 5% 3%,rgba(55,124,246,.11),transparent 25rem),radial-gradient(circle at 94% 7%,rgba(51,201,144,.10),transparent 22rem),#f4f8fd;color:#10213b}
.shell{max-width:none;width:100%;padding:20px 24px 34px}.hero,.topbar{padding:14px 18px;background:rgba(255,255,255,.92);border:1px solid rgba(219,229,240,.95);border-radius:24px;box-shadow:0 14px 36px rgba(24,52,84,.08);backdrop-filter:blur(12px)}
.brand-logo{width:164px}.brand-subtitle{font-style:normal;font-weight:900;color:#17395f}.brand-subtitle::before{content:'●';font-size:8px;color:var(--mint);margin-right:6px}.btn{border-radius:13px;min-height:42px;padding:10px 16px;transition:.16s ease}.btn:hover{transform:translateY(-1px)}.btn.primary{background:linear-gradient(135deg,var(--blue),#3158d7);box-shadow:0 8px 18px rgba(55,124,246,.20)}.btn.secondary{background:#edf4ff;color:#174f8a;border:1px solid #d5e4f8}.btn.ghost{border:1px solid #d9e3ee}.btn.compact{min-height:32px;padding:6px 9px;font-size:10px}
.card,.page-card,.auth-card{border-radius:24px;border-color:#dfe7f0;box-shadow:0 22px 60px rgba(23,53,88,.10)}.content{max-width:none;padding:34px 38px 40px}.step>h2{font-size:22px}.step>h2::after{content:'';display:block;width:44px;height:4px;margin-top:9px;border-radius:999px;background:linear-gradient(90deg,var(--blue),var(--cyan))}.step-eyebrow,.eyebrow,.section-kicker{font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#2a67c7}
.progress{padding:7px;gap:6px;background:linear-gradient(90deg,#f7fbff,#f5fffb)}.progress-step{border-radius:16px;padding:13px 10px}.progress-step.active{background:#fff;box-shadow:0 7px 20px rgba(24,72,126,.08)}.progress-step span{width:30px;height:30px}.progress-step:nth-child(1).active span{background:linear-gradient(135deg,var(--blue),#5a93ff)}.progress-step:nth-child(2).active span{background:linear-gradient(135deg,var(--purple),#9b8efc)}.progress-step:nth-child(3).active span{background:linear-gradient(135deg,var(--orange),#ffb47d)}.progress-step:nth-child(4).active span{background:linear-gradient(135deg,var(--mint),#69ddb5)}
input,select{min-height:48px;border-radius:14px;background:#fbfdff;border-color:#d7e1ec;padding:11px 13px}.schedule-grid{margin-bottom:18px;padding:16px;border:1px solid #dce6f0;border-radius:17px;background:linear-gradient(180deg,#f7faff,#f2f7fc)}.time-input-wrap{position:relative}.time-input-wrap input{padding-right:46px}.clock-icon{position:absolute;right:9px;top:50%;transform:translateY(-50%);width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:#eaf2ff;color:var(--blue);font-size:18px;pointer-events:none}
.location-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.location-panel{padding:18px;border:1px solid #dbe6f1;border-radius:22px;background:linear-gradient(180deg,#fff,#f9fcff);box-shadow:0 6px 18px rgba(20,55,92,.04)}.pickup-panel{border-top:4px solid var(--blue)}.drop-panel{border-top:4px solid var(--mint)}.location-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.location-panel-head h3{font-size:15px;margin:2px 0 0}.location-kicker{font-size:9px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:#4d6d91}.add-location-btn,.remove-location-btn{border:0;display:inline-flex;align-items:center;justify-content:center;font-weight:900}.add-location-btn{width:36px;height:36px;border-radius:13px;background:linear-gradient(135deg,var(--blue),var(--purple));color:#fff;font-size:20px;box-shadow:0 8px 20px rgba(55,124,246,.24)}.drop-panel .add-location-btn{background:linear-gradient(135deg,var(--mint),var(--cyan))}.add-location-btn:disabled{opacity:.35}.remove-location-btn{width:30px;height:30px;border-radius:10px;background:#fff0ef;color:#b42318;font-size:17px}.location-list{display:flex;flex-direction:column;gap:9px}.location-entry{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:8px;align-items:start}.location-entry:first-child{grid-template-columns:32px minmax(0,1fr)}.location-entry:first-child .remove-location-btn{display:none}.stop-sequence{display:flex;align-items:center;justify-content:center;width:30px;height:30px;margin-top:8px;border-radius:50%;font-size:10px;font-weight:900;background:#eaf2ff;color:#175bb7}.drop-panel .stop-sequence{background:#ecfaf6;color:#088569}.location-limit{margin:8px 0 0 40px;color:#8a98aa;font-size:9px}.location-input-wrap{position:relative;min-width:0}.recent-locations{display:none;align-items:center;flex-wrap:wrap;gap:6px;margin-top:7px}.recent-locations.show{display:flex}.recent-label{font-size:9px;font-weight:900;color:#7c8b9e;text-transform:uppercase}.recent-chip{max-width:220px;padding:5px 9px;border:1px solid #cfdae8;border-radius:999px;background:#f5f9ff;color:#234e7d;font-size:10px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.place-predictions{display:none;position:absolute;z-index:80;left:0;right:0;top:48px;background:#fff;border:1px solid #d9e4f2;border-radius:15px;box-shadow:0 18px 45px rgba(13,43,79,.16);overflow:hidden}.place-predictions.show{display:block}.place-option{width:100%;border:0;background:#fff;display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;text-align:left;padding:11px 12px;color:#17263a;border-bottom:1px solid #edf2f7}.place-option:hover{background:#f2f7ff}.place-option strong{display:block;font-size:12px}.place-option small{display:block;margin-top:2px;font-size:10px;color:#718096}.place-pin{width:26px;height:26px;border-radius:9px;background:#eaf2ff;color:#1769e0;display:flex;align-items:center;justify-content:center}.osm-attribution{padding:7px 11px;text-align:right;font-size:9px;color:#6f7e90;background:#fbfdff}
.distance-box{margin-top:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #d7e8ff;background:linear-gradient(90deg,#edf6ff,#effdf8);border-radius:17px}.distance-box strong{display:block;font-size:18px;margin-top:3px}.maps-link{border:0;background:#fff;box-shadow:0 3px 10px rgba(19,69,121,.10)}.review-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.review-card{position:relative;border-radius:16px;padding:14px 16px}.edit-icon{position:absolute;right:10px;top:10px}.vehicle-card{border-radius:19px}.vehicle-card:not(.overloaded):hover{transform:translateY(-3px)}.vehicle-card.selected{background:linear-gradient(90deg,#eef5ff,#f4fffb);border-color:#78a4ef}.price-panel{position:relative;overflow:hidden;background:linear-gradient(125deg,#102b4b,#2767d9 55%,#16a6bd);border-radius:20px;padding:28px}.price-range{font-size:28px}.price-note{margin-top:8px;opacity:.82}.summary{border-radius:17px;background:#fbfdff}.full-btn{width:100%;margin-top:14px}.auth-tabs{display:flex;gap:8px;margin:14px 0}.auth-tab{flex:1;border:1px solid var(--border);border-radius:10px;background:#fff;padding:9px;font-weight:800}.auth-tab.active{background:var(--blue);color:#fff}.admin-signin-float{position:fixed;right:18px;bottom:18px;z-index:40;padding:10px 14px;border-radius:999px;background:rgba(11,35,64,.92);color:#fff;text-decoration:none;font-size:10px;font-weight:800;box-shadow:0 12px 28px rgba(11,35,64,.25)}
.user-menu{position:relative}.user-menu summary{list-style:none;cursor:pointer}.user-menu-panel{position:absolute;right:0;top:calc(100% + 7px);min-width:150px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 18px 38px rgba(16,42,67,.16);padding:7px;z-index:80}.user-menu-panel a{display:block;padding:10px;border-radius:8px;text-decoration:none;color:#10213b;font-weight:800}.wide-card{max-width:none}.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.live-indicator{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:999px;background:#edf9f5;color:#087a55;font-weight:800;font-size:10px}.live-indicator span{width:8px;height:8px;border-radius:50%;background:#19a974;box-shadow:0 0 0 4px rgba(25,169,116,.12)}.dashboard-tab.active{background:linear-gradient(135deg,var(--blue),var(--purple))}.final-price{font-weight:900;color:#087a55;margin-top:5px}.offer-countdown{margin-top:6px;color:#9a6700;font-weight:900}.inline-actions{display:flex;gap:6px;margin-top:7px}.accept-btn{background:#087a55!important;color:#fff}.reject-btn{background:#fff0ef!important;color:#b42318}.rate-accepted-row td{background:#effbf6!important}.route-stops{display:flex;flex-direction:column;gap:6px;min-width:180px}.route-stop{display:grid;grid-template-columns:28px minmax(0,1fr);gap:7px}.stop-dot{display:inline-flex;align-items:center;justify-content:center;width:26px;height:22px;border-radius:7px;font-size:9px;font-weight:900}.stop-dot.pickup{background:#eaf2ff;color:#1457d9}.stop-dot.drop{background:#e9f8f3;color:#07805e}.live-toast{position:fixed;right:20px;top:88px;z-index:120;max-width:360px;padding:13px 17px;border-radius:16px;background:linear-gradient(135deg,#102b4b,#174d82);color:#fff;font-weight:800;opacity:0;transform:translateY(-10px);transition:.2s;box-shadow:0 18px 42px rgba(12,39,69,.27)}.live-toast.show{opacity:1;transform:translateY(0)}
/* permanent admin shell */.admin-body{background:#f3f6fa}.admin-body .shell{max-width:none;width:100%;padding:0;margin:0}.admin-body .topbar{position:fixed;z-index:30;left:236px;right:0;top:0;height:72px;margin:0;border-radius:0;border-width:0 0 1px;padding:10px 20px}.admin-body .topbar .branding{display:none}.admin-body .sidebar-layout{display:block}.admin-body .sidebar{position:fixed;z-index:40;left:0;top:0;bottom:0;width:236px;height:100vh;border-radius:0;padding:20px 14px;background:linear-gradient(180deg,#0d2a49,#0f3a62 55%,#0c2745);box-shadow:10px 0 30px rgba(13,40,70,.12)}.sidebar-brand{display:flex;height:74px;align-items:flex-start;padding:2px 9px 18px;margin-bottom:10px;border-bottom:1px solid rgba(255,255,255,.09)}.sidebar-brand img{width:145px;filter:brightness(0) invert(1)}.side-nav{display:flex;flex-direction:column;gap:6px}.side-link{display:flex!important;align-items:center;gap:11px;padding:13px 12px!important;margin:0!important;border-radius:13px!important;color:#cfdeef!important}.side-link.active{background:linear-gradient(110deg,var(--blue),var(--cyan))!important;color:#fff!important}.side-icon{display:flex;width:24px;height:24px;align-items:center;justify-content:center}.side-icon svg{width:19px;height:19px;fill:currentColor}.sidebar-foot{position:absolute;left:20px;bottom:20px;color:#7894af;font-size:9px;letter-spacing:.08em;text-transform:uppercase}.db-driver{display:inline-flex;margin-top:7px;padding:4px 7px;border-radius:999px;background:rgba(51,201,144,.16);color:#7ff0c1;font-size:8px;font-weight:900}.admin-body main{margin-left:236px;padding:92px 20px 28px;min-height:100vh;width:calc(100% - 236px)}.admin-body .page-card{max-width:none;margin:0;border-radius:18px}.kpis{gap:14px;margin:0 0 18px}.kpi{min-height:105px;border:0;box-shadow:0 10px 26px rgba(26,61,100,.07);position:relative;overflow:hidden}.kpi::after{content:'';position:absolute;left:0;top:0;width:6px;height:100%;background:linear-gradient(var(--blue),var(--purple))}.kpi:nth-child(2)::after{background:linear-gradient(var(--orange),#ffbe7b)}.kpi:nth-child(3)::after{background:linear-gradient(var(--cyan),var(--blue))}.kpi:nth-child(4)::after{background:linear-gradient(var(--mint),#7de0bb)}.toolbar h1{font-size:24px}.premium-table-wrap{border:1px solid #e0e8f1;border-radius:18px;overflow:auto;background:#fff}.table th{position:sticky;top:0;z-index:2;background:linear-gradient(180deg,#f7faff,#f1f6fb)}.admin-trip-table{min-width:1350px}.trip-table{min-width:1200px}.final-fare-form{display:flex;gap:6px;align-items:center;margin-top:7px}.final-fare-form input{min-width:120px}.status-form{margin-top:7px}.assign-btn{background:#087a55!important;color:#fff}.master-grid{display:grid;grid-template-columns:350px minmax(0,1fr);gap:22px}.master-form-card{padding:20px;border:1px solid #dce6f0;border-radius:18px;background:linear-gradient(180deg,#fbfdff,#f6f9fd)}.master-form-card .field{margin-top:11px}.section-title-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}.record-count{padding:6px 10px;border-radius:999px;background:#edf3f9;color:#56677f;font-size:10px;font-weight:800}.master-table{min-width:800px}.rate-table{min-width:1420px}.thumb-shell{display:flex;width:86px;height:58px;align-items:center;justify-content:center;border:1px solid #e0e7ef;border-radius:12px;background:#fff}.vehicle-thumb{width:82px;height:54px;object-fit:contain}.vehicle-id-pill{display:inline-flex;padding:4px 7px;border-radius:8px;background:#e9f1ff;color:#164f9f;font-size:10px;font-weight:900}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #cddaea;border-radius:10px;background:#f7fbff;color:#1457d9}.icon-btn svg{width:16px;height:16px;fill:currentColor}.rate-fields{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px}.empty-state{display:flex;flex-direction:column;gap:4px;padding:16px;border:1px solid #d0eadf;border-radius:14px;background:#eef8f4}.modal-card-xl{width:min(1040px,100%)}
.install-shell{max-width:1500px;margin:0 auto}.install-card{max-width:none}.install-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.install-panel{padding:16px;border:1px solid #e0e8f1;border-radius:18px;background:#fbfdff}.success-notice{background:#eaf9f3;border-color:#caecde;color:#087a55}.warning-notice{background:#fff7e8;border-color:#f4d9a7;color:#805315}
@media(max-width:1000px){.master-grid{grid-template-columns:1fr}.rate-fields{grid-template-columns:repeat(2,minmax(130px,1fr))}}
@media(max-width:900px){.location-grid,.review-grid{grid-template-columns:1fr}.content{padding:26px 20px}.admin-body .sidebar{width:190px}.admin-body .topbar{left:190px}.admin-body main{margin-left:190px;width:calc(100% - 190px)}.install-grid{grid-template-columns:1fr}}
@media(max-width:700px){.shell{padding:12px}.admin-body .sidebar{width:76px;padding:16px 9px}.admin-body .sidebar-brand img{width:52px}.admin-body .side-link{justify-content:center;padding:13px 8px!important}.admin-body .side-link>span:last-child,.sidebar-foot{display:none}.admin-body .topbar{left:76px}.admin-body main{margin-left:76px;width:calc(100% - 76px);padding:86px 10px 20px}.rate-fields{grid-template-columns:1fr}.content{padding:20px 14px 26px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* ===== v11 dashboard, compact admin, invoice-link & layout refinements ===== */
.dashboard-tab,.btn,.body-tab,.auth-tab,.side-link,.invoice-link,.admin-signin-float,.user-pill,.user-menu-panel a,.sidebar-brand{text-decoration:none!important}
.dashboard-tab:hover,.btn:hover,.body-tab:hover,.auth-tab:hover,.side-link:hover,.invoice-link:hover{text-decoration:none!important}

/* Public booking wording / admin access */
.location-panel-head h3{margin:0;font-size:15px;color:#17395f}
.admin-signin-float{right:16px;bottom:11px;padding:0;border:0;border-radius:0;background:transparent!important;color:#738196!important;box-shadow:none!important;font-size:9px;font-weight:700;letter-spacing:.02em;opacity:.78}
.admin-signin-float:hover{color:#17395f!important;opacity:1}
.invoice-link{display:inline-flex;align-items:center;justify-content:center;margin-top:2px;padding:6px 9px;border:1px solid #cfe0f3;border-radius:9px;background:#f2f7ff;color:#1858a6;font-size:10px;font-weight:900;white-space:nowrap}
.invoice-link::before{content:'▤';margin-right:5px;font-size:11px}

/* Admin sidebar reduced from 236px to 72px (about 70% smaller). */
.admin-body .sidebar{width:72px;padding:82px 7px 12px;background:linear-gradient(180deg,#0d2a49,#0f3a62 55%,#0c2745)}
.admin-body .side-nav{gap:9px}
.admin-body .side-link{display:flex!important;min-height:56px;padding:7px 4px!important;flex-direction:column;justify-content:center;gap:3px!important;text-align:center;border-radius:12px!important}
.admin-body .side-icon{width:24px;height:24px}
.admin-body .side-icon svg{width:20px;height:20px}
.admin-body .side-label{display:block!important;font-size:8px;font-weight:800;line-height:1.05;white-space:normal}
.admin-body .sidebar-foot,.sidebar-brand{display:none!important}
.admin-body .topbar{left:72px;height:68px;padding:8px 16px;background:rgba(255,255,255,.96)}
.admin-body .topbar .branding{display:flex!important;align-items:center;gap:10px}
.admin-body .topbar .brand-logo{width:112px}
.admin-body .topbar .brand-subtitle{font-size:9px;margin-top:1px}
.admin-body main{margin-left:72px;width:calc(100% - 72px);padding:82px 12px 22px}
.admin-body .page-card{padding:16px;border-radius:15px}
.admin-body .kpis{gap:8px;margin-bottom:10px;grid-template-columns:repeat(4,minmax(0,1fr))}
.admin-body .kpi{min-height:78px;padding:12px 14px;border-radius:13px}
.admin-body .kpi-value{font-size:22px}
.admin-body .kpi-label{font-size:9px}
.admin-body .table th,.admin-body .table td{padding:8px 7px;font-size:9.5px;line-height:1.28}
.admin-body .table th{font-size:8.5px}
.admin-body .admin-trip-table{min-width:0;width:100%}
.admin-body .route-stops{min-width:116px;gap:4px}
.admin-body .route-stop{grid-template-columns:23px minmax(0,1fr);gap:5px}
.admin-body .stop-dot{width:22px;height:19px;font-size:8px}
.admin-body .final-fare-form{flex-wrap:wrap;min-width:120px}
.admin-body .final-fare-form input{min-width:90px;width:105px;min-height:31px;padding:5px 7px}
.admin-body .status-form select{min-width:105px;min-height:31px;padding:5px 7px}
.admin-body .compact{padding:5px 7px;min-height:30px;font-size:9px}
.admin-body .user-pill{min-height:38px;padding:5px 9px 5px 6px}

/* Filter is intentionally above the Trip Management heading. */
.admin-filter-row{display:flex;justify-content:flex-end;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #edf1f5}
.admin-filter-row .group{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.admin-filter-row input{width:min(330px,45vw);min-height:36px;padding:7px 10px}
.admin-filter-row select{min-height:36px;padding:7px 10px}
.admin-filter-row .btn{min-height:36px;padding:7px 12px}
.admin-page-title{margin-bottom:12px}.admin-page-title h1{margin:2px 0 0;font-size:22px}

/* Master is table-first. Creation is done via modal popups. */
.master-page{min-height:calc(100vh - 104px)}
.master-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.master-topline h1{margin:2px 0 0;font-size:22px}.master-actions{display:flex;gap:8px}
.master-page .data-section{width:100%}.master-page .section-title-row{margin-top:4px}
.master-page .master-table{min-width:720px}.master-page .rate-table{min-width:1120px;font-size:9px}
.master-page .rate-table th,.master-page .rate-table td{padding:7px 6px}
.master-page .modal-card{max-height:88vh;overflow:auto}
.master-page .modal-card-xl{width:min(980px,calc(100vw - 110px))}
.master-page .rate-fields{grid-template-columns:repeat(4,minmax(120px,1fr));gap:9px}

/* Customer dashboard compact fit with new Invoice column. */
.dashboard-card .trip-table{min-width:1080px}
.dashboard-card .table th,.dashboard-card .table td{padding:10px 9px}
.dashboard-card .dashboard-tabs{border-bottom:0}
.dashboard-card .dashboard-tab{border-bottom:0!important}

@media(max-width:1000px){
  .admin-body .admin-trip-table{min-width:1150px}
  .master-page .rate-fields{grid-template-columns:repeat(2,minmax(130px,1fr))}
}
@media(max-width:700px){
  .admin-body .sidebar{width:64px;padding:76px 5px 10px}
  .admin-body .topbar{left:64px}
  .admin-body main{margin-left:64px;width:calc(100% - 64px);padding:78px 8px 18px}
  .admin-body .topbar .brand-subtitle{display:none}
  .admin-body .topbar .brand-logo{width:96px}
  .admin-body .kpis{grid-template-columns:1fr 1fr}
  .admin-filter-row{justify-content:stretch}.admin-filter-row .group{width:100%}.admin-filter-row input{width:100%;flex:1 1 100%}.admin-filter-row select,.admin-filter-row .btn{flex:1}
  .master-topline{align-items:flex-start}.master-page .modal-card-xl{width:min(96vw,720px)}.master-page .rate-fields{grid-template-columns:1fr}
}

/* ===== v12 profile, documents, heading filters & exports ===== */
textarea{width:100%;border:1px solid var(--border);border-radius:10px;padding:10px 12px;background:#fff;color:var(--text);outline:none;resize:vertical;font:inherit}textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(11,99,206,.10)}
.login-links{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:10px}.login-links a{font-weight:700;text-decoration:none}.login-links a:last-child{color:#0b63ce}.auth-switch{text-align:center;margin-top:18px;padding-top:14px;border-top:1px solid #edf0f4;color:var(--muted)}.auth-switch a{font-weight:800;text-decoration:none}.register-card{max-width:500px}
.profile-card{max-width:760px}.profile-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.profile-title h1{font-size:22px;margin:0}.profile-card .form-grid{margin-top:14px}
.document-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.bilti-link{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;border:1px solid #cde9de;border-radius:9px;background:#effaf5;color:#087a55;font-size:10px;font-weight:900;text-decoration:none!important;white-space:nowrap}.bilti-link::before{content:'▣';margin-right:5px}.bilti-link:hover{background:#e4f7ee}.dashboard-card .trip-table{min-width:1140px}

/* Admin heading-based filters */
.trip-filter-headings{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #e8edf3}.trip-filter-heading{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 12px;border-radius:10px;background:#f2f5f9;color:#5c6d82;font-size:10px;font-weight:900;text-decoration:none!important}.trip-filter-heading:hover{background:#e8f0fb;color:#174f8a}.trip-filter-heading.active{background:linear-gradient(135deg,#0b63ce,#6d63e7);color:#fff;box-shadow:0 6px 14px rgba(11,99,206,.16)}
.admin-page-head-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.admin-page-head-row h1{margin:0;font-size:22px}.admin-page-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.admin-search-form{display:flex;align-items:center;gap:7px}.admin-search-form input{width:min(300px,42vw);min-height:36px;padding:7px 10px}.admin-page-tools .btn{min-height:36px;padding:7px 11px}.user-table{min-width:1120px}
.master-topline{margin-bottom:10px}.master-topline h1{margin:0}.master-actions .btn{min-height:36px;padding:7px 11px}.master-page .section-title-row{align-items:center}.master-page .section-title-row h2{margin:0}.master-page .dashboard-tabs{margin-top:6px}

@media(max-width:700px){.admin-page-head-row{align-items:stretch}.admin-page-tools,.admin-search-form{width:100%}.admin-search-form input{width:100%;flex:1}.admin-page-tools>a.btn{flex:0 0 auto}.document-actions{flex-direction:column;align-items:stretch}.invoice-link,.bilti-link{width:100%}.profile-card .form-grid{grid-template-columns:1fr}}

.modal-head .muted{margin-top:4px;font-size:11px}.assign-btn{cursor:pointer}
