/* Azure edition: motion follows system accessibility preferences. */
:root{--ink:#152448;--muted:#72809e;--green:#315eeb;--lime:#a5d9ff;--paper:#f3f6ff;--line:#e2e8f6;--bs-primary:#315eeb;--bs-primary-rgb:49,94,235}
body{background:radial-gradient(ellipse at 100% 0,#dfebff 0,transparent 40%),#f4f7fd;color:var(--ink)}
.sidebar{background:linear-gradient(165deg,#091b49,#123a85 70%,#1d5fa8);color:#c6d9ff;box-shadow:8px 0 32px #193e6e12}.brand-symbol{background:linear-gradient(135deg,#94e7ff,#c0b8ff);color:#102954}.brand-dot{color:#98dfff}.workspace-name{border-color:#ffffff20}.nav-item{color:#c6d6ef;transition:background .2s,transform .2s}.nav-item:hover,.nav-item.selected{background:linear-gradient(110deg,#436bf077,#56b7ef35);color:white;box-shadow:inset 3px 0 #87ddff;transform:translateX(2px)}.nav-caption,.workspace-label,.sidebar-bottom small{color:#9db9de}.sidebar-bottom{color:#bed5f4}.status-dot{background:#8be2ff;box-shadow:0 0 12px #8be2ff}.topbar{background:#ffffffc9;backdrop-filter:blur(18px)}
.panel,.metric,.module-card{border-color:#e2e8f6;box-shadow:0 8px 28px #18386608;border-radius:18px}.metric{position:relative;overflow:hidden;transition:transform .25s,box-shadow .25s}.metric:hover,.module-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px #1e50a51a}.metric:first-child{background:linear-gradient(125deg,#2451d9,#488bee);border:0;color:white}.metric:first-child .metric-label,.metric:first-child small,.metric:first-child .metric-mark{color:#dceaff}.metric-label,.metric small{color:#7585a5}.hero-strip{background:linear-gradient(110deg,#dfe9ff,#e6e7ff 55%,#d8f1ff);border-color:#d7e3ff;position:relative;overflow:hidden}.hero-strip p,.hero-pill{color:#425e91}.hero-strip:after{content:'';position:absolute;right:20%;top:-75px;width:220px;height:220px;border-radius:50%;border:35px solid #ffffff35;pointer-events:none}.btn-primary{background:linear-gradient(115deg,#3156df,#287de3);border-color:transparent;box-shadow:0 5px 12px #3156df22;--bs-btn-hover-bg:#2344bf;--bs-btn-active-bg:#2344bf}.btn{transition:transform .18s,box-shadow .18s}.btn:hover{transform:translateY(-1px)}.btn-outline-secondary{--bs-btn-color:#526688;--bs-btn-border-color:#dce4f4;--bs-btn-hover-bg:#eaf0fe;--bs-btn-hover-color:#274591;--bs-btn-hover-border-color:#bacbed}.form-control:focus,.form-select:focus{border-color:#6c91f5;box-shadow:0 0 0 4px #4275ff15}.table th,.grid-tools{background:#f5f8ff;color:#667da3}.table td{color:#425778;border-color:#eef2fa}.table td strong{color:#1a3159}.table tbody tr:hover{background:#f2f6ff}.role-pill,.badge-status{background:#edf2ff;color:#365cb0}.tab-row .btn.active{background:#e4ecff;color:#254bb6;border-color:#cddaff}.record-avatar{background:linear-gradient(145deg,#ddeaff,#dcdfff);color:#4262a3}.progress-bar{background:linear-gradient(90deg,#5278eb,#5ac6ef)}.login-story{background:radial-gradient(circle at 20% 30%,#356cbe88,transparent 50%),linear-gradient(145deg,#091b49,#204da0)}.login-form{background:#f5f8ff}.login-story p,.login-story small,.login-story .eyebrow{color:#c0d6fa}.journey-line{color:#a6dfff}.sort-button:hover{color:#315eeb}.invoice-top{border-color:#315eeb}.form-label{color:#435b81}.module-card span{color:#497bea}
#live-map{height:440px;border-radius:18px;background:#e9eff9;z-index:1}.live-banner{display:flex;align-items:center;gap:10px;color:#4977ba;font-size:12px}.live-dot{width:8px;height:8px;border-radius:50%;background:#4786ee;box-shadow:0 0 0 5px #4786ee15;animation:pulse 2s infinite}.main-content{animation:enter .45s ease backwards}.metric:nth-child(2){animation-delay:.04s}.metric:nth-child(3){animation-delay:.08s}.metric:nth-child(4){animation-delay:.12s}@keyframes enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes pulse{50%{box-shadow:0 0 0 9px #4786ee00}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media print{body{background:white}.metric:first-child{background:white;color:#152448}.hero-strip:after{display:none}}
@media print{body.print-commercial #content > :not(#platform-invoice){display:none!important}.leaflet-control-container,.btn{display:none!important}}

/* The form must shrink inside the scrollable Bootstrap dialog. */
.trip-pin{border:2px solid white;border-radius:50% 50% 50% 0;box-shadow:0 3px 12px #1235;text-align:center;line-height:26px;font-weight:800;color:white;background:#3169dd}.trip-pin.pickup{background:#147d60}.trip-pin.drop{background:#c84153}.trip-pin.current{background:#3169dd}a.metric{color:inherit}#map-pickup-results,#map-drop-results{max-height:220px;overflow:auto}
#track-driver{min-width:220px}#track-window{min-width:170px}#track-map-error:not(:empty){padding:12px;background:#fff3cd;border-radius:12px;margin-bottom:12px}#track-status{font-weight:600}#track-gps{color:#365cb0}
#editor .modal-content > form{display:flex;flex-direction:column;min-height:0;overflow:hidden}#editor .modal-body{overflow-y:auto}#editor .modal-footer{flex-shrink:0}
/* Same-origin record dialogs keep list context while using existing validated workflows. */
.record-dialog-frame{display:block;width:100%;height:75vh;border:0;background:#f5f7fb}
.dialog-page .sidebar,.dialog-page .topbar{display:none!important}
.dialog-page .shell{margin-left:0!important}
.dialog-page main{padding:20px!important}
.dialog-page .page-heading{margin-bottom:16px}
.attendance-scroll{overflow:auto;max-height:70vh}.attendance-grid{min-width:2400px}.attendance-grid th:first-child{position:sticky;left:0;background:#fff;z-index:2;min-width:180px}.attendance-grid thead th{position:sticky;top:0;background:#eaf0ff;z-index:3}.attendance-grid td{min-width:120px;vertical-align:top}.attendance-grid small{font-size:11px}
