:root {
  --navy-950: #081a2d;
  --navy-900: #102a47;
  --navy-800: #183a60;
  --blue-600: #1774d1;
  --blue-500: #2589e8;
  --blue-100: #e9f4ff;
  --ink: #17263a;
  --muted: #6b7b8f;
  --line: #dfe7ef;
  --surface: #ffffff;
  --canvas: #f4f7fa;
  --green: #1b9c63;
  --green-soft: #e7f8f0;
  --yellow: #d69213;
  --yellow-soft: #fff5d9;
  --red: #d9404c;
  --red-soft: #fff0f1;
  --gray: #7c8796;
  --gray-soft: #edf0f3;
  --shadow: 0 10px 32px rgba(16, 42, 71, .08);
  --radius: 15px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .btn, a { -webkit-tap-highlight-color: transparent; }
.icon { flex: 0 0 auto; vertical-align: middle; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 258px; z-index: 50; display: flex; flex-direction: column; color: #d9e5f2; background: linear-gradient(180deg, var(--navy-950), #0c233d 70%, #0d2948); box-shadow: 12px 0 38px rgba(8, 26, 45, .13); }
.sidebar-head { height: 86px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand { min-width: 0; display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-logo { width: 198px; max-width: 100%; height: auto; display: block; padding: 7px 9px; border-radius: 10px; background: #fff; box-shadow: 0 6px 17px rgba(0,0,0,.14); }
.brand strong, .brand small { display: block; line-height: 1.12; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: #93b5d6; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.nav-label { margin: 26px 26px 10px; color: #6887a8; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.main-nav { display: grid; gap: 5px; padding: 0 13px; }
.main-nav a { position: relative; min-height: 47px; display: flex; align-items: center; gap: 13px; padding: 0 14px; border-radius: 10px; color: #9fb6cf; font-weight: 650; transition: .18s ease; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.055); }
.main-nav a.active { color: #fff; background: linear-gradient(90deg, rgba(37,137,232,.29), rgba(37,137,232,.11)); }
.main-nav a.active::before { content: ""; position: absolute; left: -13px; width: 4px; height: 26px; border-radius: 0 4px 4px 0; background: #3aa3ff; }
.sidebar-footer { margin-top: auto; padding: 18px 15px 21px; border-top: 1px solid rgba(255,255,255,.08); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; }
.avatar { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #fff; background: #226eaf; font-size: 13px; font-weight: 800; }
.user-chip strong, .user-chip small { display: block; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip strong { color: #edf5fd; font-size: 13px; }
.user-chip small { margin-top: 2px; color: #7897b7; font-size: 11px; }
.nav-logout { width: 100%; margin-top: 7px; padding: 10px; display: flex; align-items: center; gap: 11px; color: #91aac4; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.nav-logout:hover { color: #fff; background: rgba(255,255,255,.05); }
.sidebar-close, .mobile-menu { display: none !important; }
.sidebar-overlay { display: none; }

.main-content { min-height: 100vh; margin-left: 258px; }
.topbar { min-height: 86px; padding: 18px 34px; display: flex; align-items: center; gap: 16px; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.topbar h1 { margin: 0; font-size: clamp(21px, 2vw, 27px); line-height: 1.15; letter-spacing: -.035em; }
.topbar p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.today { padding-left: 20px; border-left: 1px solid var(--line); text-align: right; }
.today span, .today small { display: block; }
.today span { font-weight: 750; }
.today small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.page-content { max-width: 1620px; margin: 0 auto; padding: 28px 34px 50px; }

.action-row { min-height: 42px; margin-bottom: 19px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.row-actions, .legend, .view-tabs, .inline-search { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.legend { color: var(--muted); font-size: 12px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.traffic-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.traffic-dot.red { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.traffic-dot.yellow { background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-soft); }
.traffic-dot.green { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.view-tabs { padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #eaf0f5; }
.view-tabs a { padding: 8px 13px; display: flex; align-items: center; gap: 7px; border-radius: 8px; color: var(--muted); font-weight: 700; }
.view-tabs a.active { color: var(--navy-900); background: #fff; box-shadow: 0 3px 9px rgba(16,42,71,.1); }

.btn { min-height: 39px; padding: 8px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; font-weight: 750; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue-600), #1264ae); box-shadow: 0 7px 16px rgba(23,116,209,.2); }
.btn-primary:hover { box-shadow: 0 9px 20px rgba(23,116,209,.28); }
.btn-secondary { color: var(--navy-900); border-color: #cedbe7; background: #fff; }
.btn-secondary:hover { background: #f7fafc; }
.btn-ghost { color: var(--muted); border-color: transparent; background: transparent; }
.btn-ghost:hover { color: var(--ink); background: #edf2f6; }
.btn-whatsapp { color: #137743; background: #e7f8ef; border-color: #bdebd1; }
.btn-lg { min-height: 47px; padding: 11px 18px; }
.btn-sm { min-height: 32px; padding: 5px 9px; font-size: 12px; }
.icon-btn { width: 37px; height: 37px; padding: 0; display: inline-grid; place-items: center; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.icon-btn:hover { color: var(--blue-600); border-color: #b7d5ef; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-600); font-weight: 750; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 19px; }
.metric { min-height: 137px; padding: 20px; display: flex; align-items: flex-start; gap: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 17px rgba(16,42,71,.045); transition: transform .16s ease, box-shadow .16s ease; }
.metric:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.metric-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; color: #236aa7; border-radius: 12px; background: #e8f2fb; }
.metric-icon.blue { color: #287dc3; background: #e8f3fc; }
.metric-icon.amber { color: #b07108; background: #fff1cc; }
.metric-icon.teal { color: #158365; background: #e5f7f1; }
.metric span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.metric small { color: var(--muted); font-weight: 650; }
.metric strong { margin: 3px 0; font-size: 29px; line-height: 1.2; letter-spacing: -.04em; }
.metric em { color: #8391a2; font-size: 11px; font-style: normal; }
.metric-primary { color: #fff; border-color: transparent; background: linear-gradient(145deg, #153d65, #0d2947); }
.metric-primary .metric-icon { color: #fff; background: rgba(53,154,238,.22); }
.metric-primary small, .metric-primary em { color: #a8c2db; }

.panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 5px 18px rgba(16,42,71,.045); }
.panel.no-pad { padding: 0; overflow: hidden; }
.panel-head { margin-bottom: 19px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-head.padded { padding: 22px 22px 0; }
.panel h2, .panel h3 { margin: 0; letter-spacing: -.025em; }
.panel h2 { font-size: 18px; }
.panel h3 { font-size: 16px; }
.eyebrow { margin: 0 0 5px; color: var(--blue-600); font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.muted { color: var(--muted); }

.request-list { display: grid; }
.request-row { min-height: 75px; padding: 12px 4px; display: grid; grid-template-columns: 130px minmax(150px,1.15fr) minmax(220px,1.5fr) 95px 142px 25px; align-items: center; gap: 13px; border-top: 1px solid #edf1f5; }
.request-row:first-child { border-top: 0; }
.request-row:hover { background: #f8fbfd; }
.request-main, .request-route, .request-date { min-width: 0; }
.request-main strong, .request-main small, .request-route strong, .request-route small, .request-date strong, .request-date small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.request-main small, .request-route small, .request-date small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.request-route strong { font-size: 13px; }

.traffic { min-width: 112px; display: inline-flex; align-items: center; gap: 9px; }
.traffic > i { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; }
.traffic > span { display: flex; flex-direction: column; }
.traffic strong { font-size: 11px; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.traffic small { margin-top: 2px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.traffic-red > i { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.traffic-red strong { color: #bb2e39; }
.traffic-yellow > i { background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-soft); }
.traffic-yellow strong { color: #a96c05; }
.traffic-green > i { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.traffic-green strong { color: #138053; }
.traffic-gray > i { background: var(--gray); box-shadow: 0 0 0 4px var(--gray-soft); }
.traffic-gray strong { color: #66717f; }
.status { width: fit-content; padding: 5px 9px; display: inline-flex; align-items: center; border-radius: 999px; color: #47586a; background: #eef2f6; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status-new { color: #1865a6; background: #e5f2fd; }
.status-contacted, .status-quoted { color: #775c0b; background: #fff4d3; }
.status-pending_confirmation { color: #995416; background: #ffead7; }
.status-confirmed { color: #137549; background: #e4f7ed; }
.status-completed { color: #53616f; background: #ebeff3; }
.status-cancelled { color: #ad303a; background: #fdecee; }

.filter-bar { margin-bottom: 12px; padding: 12px; display: grid; grid-template-columns: minmax(230px,1fr) 175px 175px 140px 140px auto auto; gap: 8px; align-items: end; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.search-field { min-height: 40px; padding: 0 11px; display: flex; align-items: center; gap: 8px; border: 1px solid #ced9e4; border-radius: 9px; background: #fff; }
.search-field:focus-within { border-color: #69a9df; box-shadow: 0 0 0 3px #e5f2fc; }
.search-field input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; }
.date-filter { display: block; }
.date-filter span { display: block; margin-bottom: 2px; color: var(--muted); font-size: 10px; font-weight: 700; }
.results-summary { margin: 0 0 9px 3px; color: var(--muted); font-size: 12px; }
.results-summary strong { color: var(--ink); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 12px 15px; color: #78889a; background: #f7f9fb; border-bottom: 1px solid var(--line); font-size: 10px; text-align: left; letter-spacing: .06em; text-transform: uppercase; }
.data-table td { padding: 14px 15px; border-bottom: 1px solid #edf1f5; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafcfd; }
.data-table td strong, .data-table td small { display: block; }
.data-table td small { max-width: 280px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.table-title { color: var(--navy-900); font-weight: 800; }
.table-title:hover { color: var(--blue-600); }
.mobile-cards { display: none; }

label { display: grid; gap: 6px; color: #435467; font-size: 12px; font-weight: 750; }
label > span { color: var(--red); }
label small { color: var(--muted); font-weight: 500; }
label small a { color: var(--blue-600); font-weight: 750; }
input, select, textarea { width: 100%; color: var(--ink); border: 1px solid #cdd9e4; border-radius: 9px; background: #fff; outline: none; transition: border .15s ease, box-shadow .15s ease; }
input, select { min-height: 42px; padding: 9px 11px; }
textarea { padding: 10px 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #5da3df; box-shadow: 0 0 0 3px #e7f3fd; }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 15px; color: var(--navy-900); font-size: 16px; font-weight: 800; }
.form-grid { display: grid; gap: 17px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.span-2 { grid-column: span 2; }
.stack { display: grid; gap: 10px; }
.stack-lg { display: grid; gap: 17px; }
.form-layout { display: grid; grid-template-columns: minmax(0,1fr) 285px; align-items: start; gap: 20px; }
.form-section { padding: 23px; }
.section-number { margin: 0 0 4px; color: var(--blue-500); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.form-aside { min-width: 0; }
.sticky-card { position: sticky; top: 18px; }
.sticky-card > p:not(.eyebrow) { color: var(--muted); font-size: 12px; }
.traffic-preview { margin: 17px 0; padding: 14px; display: grid; gap: 13px; border-radius: 10px; background: #f6f9fb; }
.traffic-preview .traffic { min-width: 0; }
.form-aside .btn { width: 100%; margin-top: 8px; }
.narrow-form { max-width: 850px; margin: 0 auto; }
.form-actions { margin-top: 24px; padding-top: 19px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--line); }
.checkbox { display: flex; align-items: center; gap: 9px; }
.checkbox input { width: 18px; min-height: 18px; }
.checkbox span { color: var(--ink); }
.cancellation-field { display: none; }
.cancellation-field.visible { display: grid; }

.request-hero { margin-bottom: 19px; padding: 22px 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-left-width: 5px; border-radius: var(--radius); background: #fff; box-shadow: 0 5px 18px rgba(16,42,71,.045); }
.request-hero > div { display: flex; align-items: center; gap: 27px; }
.request-hero h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.traffic-border-red { border-left-color: var(--red); }
.traffic-border-yellow { border-left-color: var(--yellow); }
.traffic-border-green { border-left-color: var(--green); }
.traffic-border-gray { border-left-color: var(--gray); }
.quote-value { padding-left: 20px; border-left: 1px solid var(--line); }
.quote-value small, .quote-value strong { display: block; text-align: right; }
.quote-value small { color: var(--muted); font-size: 10px; }
.quote-value strong { font-size: 19px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 315px; align-items: start; gap: 19px; }
.route-map { padding: 10px 5px; display: grid; grid-template-columns: minmax(0,1fr) 65px minmax(0,1fr); align-items: center; }
.route-map > div { position: relative; padding-left: 26px; }
.route-map small, .route-map strong { display: block; }
.route-map small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.route-map strong { margin-top: 3px; }
.route-point { position: absolute; top: 7px; left: 2px; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--blue-500); background: var(--blue-500); }
.route-point.destination { box-shadow: 0 0 0 2px var(--navy-900); background: var(--navy-900); }
.route-line { height: 1px; background: repeating-linear-gradient(90deg,#91a5b9 0 5px,transparent 5px 10px); }
.stops-list { margin-top: 18px; padding: 13px 15px; border-radius: 10px; background: #f5f8fa; }
.stops-list > strong { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.stops-list ol { margin: 8px 0 0; padding-left: 22px; color: #536578; }
.stops-list li + li { margin-top: 5px; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.detail-grid > div { min-height: 73px; padding: 13px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid > div:nth-child(2n) { border-right: 0; }
.detail-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
dd { margin: 5px 0 0; font-weight: 700; overflow-wrap: anywhere; }
dd a { color: var(--blue-600); }
.flight-card { margin-top: 15px; padding: 14px 16px; display: flex; align-items: center; gap: 13px; color: #195f9a; border: 1px solid #cce4f7; border-radius: 11px; background: #edf7ff; }
.flight-card small, .flight-card strong, .flight-card span { display: block; }
.flight-card small { font-size: 10px; text-transform: uppercase; }
.flight-card span { color: #607a90; font-size: 11px; }
.inline-note { margin-top: 15px; padding: 14px 16px; border-left: 3px solid #5da3df; border-radius: 6px 10px 10px 6px; background: #f4f8fb; }
.inline-note.danger { border-left-color: var(--red); background: var(--red-soft); }
.inline-note p { margin: 5px 0 0; color: #526478; }
.note-form { margin-bottom: 15px; padding: 13px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 9px; border-radius: 11px; background: #f5f8fa; }
.note-form textarea { grid-row: 1; }
.timeline { display: grid; }
.timeline article { position: relative; padding: 13px 0; display: grid; grid-template-columns: 30px 1fr; gap: 7px; border-top: 1px solid #edf1f5; }
.timeline article > span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--blue-600); border-radius: 50%; background: var(--blue-100); }
.timeline p { margin: 0; }
.timeline small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.timeline.history article { grid-template-columns: 18px 1fr; padding-left: 2px; }
.timeline.history article::before { content: ""; position: absolute; top: 30px; bottom: -14px; left: 6px; width: 1px; background: var(--line); }
.timeline.history article:last-child::before { display: none; }
.timeline-dot { width: 9px !important; height: 9px !important; margin-top: 6px; background: var(--blue-500) !important; box-shadow: 0 0 0 4px var(--blue-100); }

.calendar-head { padding: 18px 22px; display: flex; align-items: center; justify-content: center; gap: 24px; border-bottom: 1px solid var(--line); }
.calendar-head h2 { min-width: 180px; text-align: center; text-transform: capitalize; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.calendar-weekdays { color: var(--muted); background: #f7f9fb; border-bottom: 1px solid var(--line); }
.calendar-weekdays span { padding: 9px; font-size: 10px; font-weight: 800; text-align: center; text-transform: uppercase; }
.calendar-day { min-height: 135px; padding: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.outside { background: #f8fafb; }
.calendar-day.outside .day-number { color: #b9c3cc; }
.calendar-day.today .day-number { color: #fff; background: var(--blue-600); }
.day-number { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 800; }
.day-events { margin-top: 5px; display: grid; gap: 4px; }
.calendar-event { min-width: 0; padding: 5px 7px; border-left: 3px solid; border-radius: 5px; }
.calendar-event strong, .calendar-event span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-event strong { font-size: 9px; }
.calendar-event span { margin-top: 1px; font-size: 10px; }
.event-red { color: #a62b35; border-color: var(--red); background: var(--red-soft); }
.event-yellow { color: #92600b; border-color: var(--yellow); background: var(--yellow-soft); }
.event-green { color: #16754d; border-color: var(--green); background: var(--green-soft); }
.event-gray { color: #66717f; border-color: var(--gray); background: var(--gray-soft); }
.more-events { color: var(--muted); font-size: 9px; }

.client-header { margin-bottom: 19px; display: flex; align-items: center; gap: 16px; }
.client-avatar { width: 60px; height: 60px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; border-radius: 16px; background: linear-gradient(145deg,var(--navy-800),var(--blue-600)); font-size: 18px; font-weight: 900; }
.client-header h2 { margin-bottom: 6px; font-size: 22px; }
.client-stat { margin-left: auto; padding-left: 25px; border-left: 1px solid var(--line); text-align: right; }
.client-stat small, .client-stat strong { display: block; }
.client-stat small { color: var(--muted); font-size: 10px; }
.client-stat strong { font-size: 26px; }
.detail-list { margin: 15px 0 0; }
.detail-list > div { padding: 11px 0; display: grid; grid-template-columns: 90px 1fr; gap: 10px; border-bottom: 1px solid #edf1f5; }
.detail-list > div:last-child { border-bottom: 0; }
.client-type { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.contact-list { margin-top: 14px; display: grid; }
.contact-list article { padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 9px; border-top: 1px solid #edf1f5; }
.contact-list strong, .contact-list small { display: block; }
.contact-list small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.compact-btn { width: 29px; height: 29px; font-size: 18px; }
.contact-add { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.contact-add summary { color: var(--blue-600); font-size: 12px; font-weight: 800; cursor: pointer; }
.contact-add form { margin-top: 13px; }

.settings-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(270px,.75fr); align-items: start; gap: 19px; }
.settings-grid > section:nth-child(3) { grid-column: 2; }
.user-list article { padding: 12px 0; display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 10px; border-top: 1px solid #edf1f5; }
.user-list article:first-child { border-top: 0; }
.user-list strong, .user-list small { display: block; }
.user-list small { color: var(--muted); font-size: 11px; }

.empty-state { padding: 55px 25px; display: grid; justify-items: center; text-align: center; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--blue-600); border-radius: 15px; background: var(--blue-100); }
.empty-state h3 { margin: 13px 0 3px; }
.empty-state p { max-width: 410px; margin: 0 0 17px; color: var(--muted); }
.alert { margin-bottom: 15px; padding: 12px 15px; border: 1px solid; border-radius: 10px; }
.alert-success { color: #146b45; border-color: #bee7d2; background: #eaf9f1; }
.alert-error { color: #9e3038; border-color: #f0c7ca; background: #fff0f1; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

.auth-body { min-height: 100vh; background: #eaf0f5; }
.login-shell, .install-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(340px,.9fr) minmax(440px,1.1fr); }
.login-brand, .install-brand { padding: clamp(40px,7vw,95px); display: flex; flex-direction: column; justify-content: center; color: #fff; background: radial-gradient(circle at 20% 10%,rgba(44,143,225,.38),transparent 35%), linear-gradient(145deg,#091b2f,#143c63); }
.login-brand .eyebrow, .install-brand .eyebrow { margin-top: 25px; color: #58aef3; }
.login-brand h1, .install-brand h1 { margin: 4px 0 15px; font-size: clamp(38px,5vw,66px); line-height: .98; letter-spacing: -.055em; }
.install-brand h1 { font-size: clamp(33px,4vw,52px); }
.login-brand > p:not(.eyebrow), .install-brand > p:not(.eyebrow) { max-width: 470px; color: #a8c0d8; font-size: 16px; }
.brand-logo-card { width: min(100%, 430px); padding: 17px 20px; border-radius: 17px; background: #fff; box-shadow: 0 12px 32px rgba(2,14,27,.22); }
.brand-logo-card img { width: 100%; height: auto; display: block; }
.login-logo-card { max-width: 400px; }
.login-signal { margin-top: 42px; display: flex; align-items: center; gap: 14px; color: #b6c9dc; font-size: 12px; }
.login-card, .install-card { padding: clamp(35px,8vw,115px); display: flex; flex-direction: column; justify-content: center; background: #fff; }
.login-card { max-width: none; }
.login-card > div:first-child, .login-card form, .login-card > .alert, .secure-note { width: min(100%,430px); margin-left: auto; margin-right: auto; }
.login-card h2 { margin: 0; font-size: 33px; letter-spacing: -.04em; }
.login-card > div:first-child > p:last-child { color: var(--muted); }
.secure-note { display: block; margin-top: 20px; color: #8c98a6; text-align: center; }
.install-shell { grid-template-columns: minmax(320px,.72fr) minmax(550px,1.28fr); }
.install-card { padding: clamp(30px,5vw,75px); }
.requirement-list { margin-top: 34px; display: grid; gap: 9px; }
.requirement { display: flex; align-items: center; gap: 10px; color: #b9ccdf; font-size: 12px; }
.requirement span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; }
.requirement.ok span { color: #6ee2aa; background: rgba(52,194,130,.15); }
.requirement.fail span { color: #ff939b; background: rgba(217,64,76,.16); }

@media (max-width: 1280px) {
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-bar { grid-template-columns: minmax(220px,1fr) repeat(2,160px) repeat(2,130px); }
  .filter-bar .btn { grid-row: 2; }
  .request-row { grid-template-columns: 125px minmax(140px,1fr) minmax(180px,1.3fr) 85px 130px 22px; }
  .request-row .status { display: none; }
  .request-row { grid-template-columns: 125px minmax(140px,1fr) minmax(180px,1.3fr) 85px 22px; }
}

@media (max-width: 980px) {
  .sidebar { transform: translateX(-102%); transition: transform .22s ease; }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-close, .mobile-menu { display: inline-grid !important; }
  .sidebar-head .brand-logo { width: 168px; }
  .sidebar-close { color: #a9bed2; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(8,26,45,.48); backdrop-filter: blur(2px); }
  body.sidebar-open .sidebar-overlay { display: block; }
  .main-content { margin-left: 0; }
  .topbar { padding: 15px 20px; justify-content: flex-start; }
  .topbar .today { margin-left: auto; }
  .page-content { padding: 22px 20px 40px; }
  .detail-layout, .form-layout { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .form-aside { grid-row: 1; }
  .form-aside .sticky-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 15px; }
  .form-aside .sticky-card .eyebrow, .form-aside .sticky-card h3, .form-aside .sticky-card p, .form-aside .traffic-preview { grid-column: 1; }
  .form-aside .sticky-card .btn { grid-column: 2; }
  .form-aside .traffic-preview { display: none; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-grid > section:nth-child(3) { grid-column: 1; }
  .install-shell, .login-shell { grid-template-columns: 1fr; }
  .login-brand, .install-brand { min-height: 330px; padding: 45px; }
  .login-brand h1 { font-size: 49px; }
  .login-card, .install-card { padding: 50px 30px; }
}

@media (max-width: 760px) {
  .topbar { min-height: 74px; }
  .topbar p, .today { display: none; }
  .page-content { padding: 17px 13px 35px; }
  .action-row { align-items: stretch; flex-direction: column; }
  .action-row > .btn { width: 100%; }
  .row-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .row-actions .btn { width: 100%; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .metric { min-height: 123px; padding: 15px; flex-direction: column; gap: 9px; }
  .metric-icon { width: 35px; height: 35px; }
  .metric strong { font-size: 24px; }
  .metric em { display: none; }
  .panel { padding: 17px; border-radius: 12px; }
  .panel.no-pad { padding: 0; }
  .legend { justify-content: center; padding: 7px 0; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .search-field { grid-column: span 2; }
  .date-filter { display: none; }
  .filter-bar .btn { grid-row: auto; }
  .desktop-table { display: none; }
  .mobile-cards { display: grid; }
  .mobile-request-card { padding: 15px; display: grid; gap: 5px; border-bottom: 1px solid var(--line); }
  .mobile-request-card:last-child { border-bottom: 0; }
  .mobile-card-head { margin-bottom: 5px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .mobile-request-card > strong { font-size: 15px; }
  .mobile-request-card > small { color: var(--muted); }
  .mobile-card-line { margin-top: 5px; display: flex; align-items: flex-start; gap: 7px; color: #55677a; font-size: 12px; }
  .form-grid.two, .detail-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .detail-grid > div { border-right: 0; }
  .detail-grid > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .form-aside .sticky-card { display: block; }
  .form-aside .sticky-card .btn { width: 100%; }
  .request-hero { padding: 17px; align-items: flex-start; flex-direction: column; }
  .request-hero > div { width: 100%; justify-content: space-between; gap: 15px; }
  .request-hero > div:first-child { align-items: flex-start; flex-direction: column-reverse; }
  .quote-value { margin-left: auto; }
  .route-map { grid-template-columns: 1fr; gap: 20px; }
  .route-line { width: 1px; height: 23px; margin-left: 7px; background: repeating-linear-gradient(180deg,#91a5b9 0 5px,transparent 5px 10px); }
  .note-form { grid-template-columns: 1fr; }
  .calendar-panel { overflow-x: auto !important; }
  .calendar-weekdays, .calendar-grid { min-width: 740px; }
  .calendar-day { min-height: 120px; }
  .client-header { align-items: flex-start; flex-wrap: wrap; }
  .client-stat { width: 100%; margin-left: 0; padding: 12px 0 0; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); border-left: 0; }
  .client-stat strong { font-size: 21px; }
  .panel-head.padded { padding: 17px 17px 0; }
  .user-list article { grid-template-columns: 38px 1fr auto; }
  .user-list article form { grid-column: 2 / 4; }
  .login-brand, .install-brand { min-height: 285px; padding: 35px 27px; }
  .login-brand h1 { font-size: 42px; }
  .login-signal { margin-top: 25px; flex-wrap: wrap; }
  .login-card, .install-card { padding: 40px 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
