:root {
  --ink: #0e1c26;
  --ink-soft: #51616c;
  --muted: #83909a;
  --line: #dce5e9;
  --surface: #ffffff;
  --canvas: #eef3f5;
  --navy: #071a29;
  --navy-2: #0c2638;
  --lime: #ccf42c;
  --lime-dark: #a7ca06;
  --blue: #2796ec;
  --yellow: #f3bd38;
  --red: #ed5c62;
  --green: #3cc588;
  --shadow: 0 18px 40px rgba(14, 28, 38, .06);
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; display: flex; flex-direction: column; width: 254px; padding: 28px 16px 18px; color: #f7fbfc; background: var(--navy); }
.brand-lockup, .mobile-brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: flex; align-items: flex-end; gap: 3px; width: 24px; height: 26px; }
.brand-mark span { display: block; width: 5px; border-radius: 3px; background: var(--lime); transform: skew(-22deg); }
.brand-mark span:nth-child(1) { height: 13px; opacity: .7; }.brand-mark span:nth-child(2) { height: 20px; }.brand-mark span:nth-child(3) { height: 26px; opacity: .84; }
.brand-name { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; letter-spacing: .04em; }.brand-name span { color: var(--lime); }.brand-subtitle { margin-top: 2px; color: #79909e; font-size: 9px; font-weight: 600; letter-spacing: .2em; }
.session-card { margin-top: 38px; padding: 14px 13px; border: 1px solid rgba(203, 243, 45, .18); border-radius: 10px; background: rgba(197, 236, 43, .07); }
.session-card__top { display: flex; align-items: center; gap: 7px; color: var(--lime); font-size: 12px; font-weight: 700; }.session-badge { margin-left: auto; padding: 3px 6px; border-radius: 4px; color: #b6d91d; background: rgba(204, 244, 44, .1); font-size: 9px; letter-spacing: .08em; }
.session-card strong { display: block; margin-top: 11px; font-size: 13px; color: white; }.session-card > span:last-child { display: block; margin-top: 4px; color: #86a0ad; font-size: 11px; line-height: 1.4; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(204,244,44,.11); }.live-dot--small { width: 6px; height: 6px; box-shadow: none; }
.main-nav { display: grid; gap: 5px; margin-top: 29px; }.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px; border: 0; border-radius: 8px; color: #8ca1ac; background: transparent; text-align: left; transition: .2s ease; }.nav-item:hover { color: white; background: rgba(255,255,255,.06); }.nav-item.is-active { color: var(--lime); background: rgba(204,244,44,.1); }.nav-icon { width: 18px; font-size: 21px; line-height: 1; }.nav-count { margin-left: auto; padding: 2px 7px; border-radius: 10px; color: #9aadb8; background: rgba(255,255,255,.07); font-size: 11px; }.nav-item.is-active .nav-count { color: var(--lime); background: rgba(204,244,44,.12); }
.sidebar-bottom { margin-top: auto; }.privacy-note { display: flex; gap: 9px; margin: 0 5px 20px; padding: 11px 8px; border-top: 1px solid rgba(255,255,255,.08); color: #78909d; }.privacy-note strong, .privacy-note span { display: block; }.privacy-note strong { color: #a8bbc4; font-size: 11px; }.privacy-note span { margin-top: 3px; font-size: 10px; line-height: 1.35; }.privacy-icon { color: var(--lime); font-size: 19px; }.sidebar-ghost { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 8px; border: 0; color: #91a4ae; background: transparent; font-size: 12px; text-align: left; }.sidebar-ghost:hover { color: white; }.sidebar-ghost span { font-size: 18px; }.user-mini { display: flex; align-items: center; gap: 9px; margin-top: 15px; padding: 12px 8px 0; border-top: 1px solid rgba(255,255,255,.08); }.user-mini strong, .user-mini span { display: block; }.user-mini strong { font-size: 12px; }.user-mini span { margin-top: 2px; color: #8196a1; font-size: 10px; }.chevron { margin-left: auto; color: #718893 !important; font-size: 17px !important; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border: 0; border-radius: 50%; color: #163034; background: #d8ea72; font-size: 10px; font-weight: 700; }.avatar--manager { color: #06312e; background: #bef0a8; }.avatar--top { width: 34px; height: 34px; }
.main-content { min-width: 0; width: calc(100% - 254px); margin-left: 254px; }.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 80px; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.72); }.breadcrumb { display: flex; align-items: center; gap: 11px; color: #95a0a6; font-size: 13px; }.breadcrumb strong { color: var(--ink); font-weight: 600; }.breadcrumb-separator { color: #bcc6ca; }.topbar-actions { display: flex; align-items: center; gap: 15px; }.last-sync { display: flex; align-items: center; gap: 7px; color: #8b979d; font-size: 11px; }.last-sync strong { color: var(--ink); font-weight: 600; }.sync-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }.icon-button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft); background: var(--surface); font-size: 18px; }.mobile-brand { display: none; }
.view { display: none; padding: 38px 42px 50px; }.view.is-visible { display: block; }.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 29px; }.page-intro--compact { align-items: center; }.eyebrow { display: flex; align-items: center; gap: 13px; margin-bottom: 9px; color: #7e8d96; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }.eyebrow-live { display: inline-flex; align-items: center; gap: 7px; color: #27a671; font-size: 10px; letter-spacing: .1em; }.eyebrow-live i { width: 5px; height: 5px; border-radius: 50%; background: #27c98a; }.page-intro h1 { margin: 0; color: var(--navy); font-family: 'Space Grotesk', sans-serif; font-size: clamp(27px, 3vw, 39px); line-height: 1.1; letter-spacing: -.045em; }.page-intro p { margin: 9px 0 0; color: var(--ink-soft); font-size: 14px; }.intro-actions { display: flex; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 700; transition: .2s ease; }.button--primary { color: #132300; background: var(--lime); box-shadow: 0 7px 16px rgba(159, 195, 28, .18); }.button--primary:hover { background: #dafa40; transform: translateY(-1px); }.button--secondary { color: var(--ink); border-color: var(--line); background: white; }.button--secondary:hover { border-color: #aebdc4; background: #f7fafb; }.button--full { width: 100%; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 17px; }.stat-card { padding: 17px 18px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }.stat-card__label { display: flex; align-items: center; gap: 8px; color: #78868f; font-size: 12px; font-weight: 600; }.help-dot { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: auto; border: 1px solid #c9d4d8; border-radius: 50%; color: #91a0a7; font-size: 9px; }.stat-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: 15px; }.stat-icon--green { color: #1f9a64; background: #e4f8ee; }.stat-icon--blue { color: #197fca; background: #e4f3ff; }.stat-icon--yellow { color: #aa7b0b; background: #fff6d9; }.stat-icon--red { color: #cf4c53; background: #ffeaec; }.stat-number { margin-top: 12px; color: var(--navy); font-family: 'Space Grotesk', sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -.05em; }.stat-total { color: #98a6ad; font-size: 16px; font-weight: 500; letter-spacing: -.02em; }.stat-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #96a2a7; font-size: 11px; }.trend { color: #24a76b; font-weight: 700; }.status-key { width: 6px; height: 6px; border-radius: 50%; }.status-key--blue { background: var(--blue); }.status-key--yellow { background: var(--yellow); }.status-key--red { background: var(--red); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(290px, .78fr); gap: 17px; }.panel { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 15px; }.panel-kicker { color: #8a989f; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }.panel-kicker .live-dot { margin-right: 6px; }.panel h2 { margin: 5px 0 0; color: var(--navy); font-family: 'Space Grotesk', sans-serif; font-size: 17px; letter-spacing: -.03em; }.map-actions { display: flex; gap: 7px; }.small-button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: #63727b; background: #fff; font-size: 11px; font-weight: 600; }.small-button:hover { border-color: #b7c7cd; color: var(--ink); }.small-button--icon { width: 31px; padding: 0; font-size: 17px; }.map-wrap { position: relative; height: 355px; overflow: hidden; border-radius: 0 0 9px 9px; background: #dfe8e5; }.map-wrap::after { position: absolute; z-index: 401; inset: 0; pointer-events: none; box-shadow: inset 0 0 45px rgba(5,24,33,.08); content: ''; }.map-wrap #map { width: 100%; height: 100%; background: #dce9e8; }.leaflet-container { font-family: 'DM Sans', sans-serif; }.leaflet-control-zoom { margin: 14px !important; border: 0 !important; box-shadow: 0 4px 15px rgba(18,45,58,.15) !important; }.leaflet-control-zoom a { color: var(--navy) !important; border: 0 !important; }.map-overlay { position: absolute; z-index: 500; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.85); border-radius: 7px; color: #31505a; background: rgba(255,255,255,.86); box-shadow: 0 5px 18px rgba(25,57,66,.1); font-size: 11px; }.map-overlay--top { top: 14px; left: 14px; }.map-live-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(60,197,136,.12); }.map-legend { position: absolute; z-index: 500; right: 14px; bottom: 13px; display: flex; gap: 12px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.8); border-radius: 6px; color: #53666e; background: rgba(255,255,255,.89); font-size: 10px; }.map-legend span { display: inline-flex; align-items: center; gap: 4px; }.legend-pin { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }.legend-pin--blue { background: var(--blue); }.legend-pin--yellow { background: var(--yellow); }.legend-pin--red { background: var(--red); }.map-fallback-message { display: none; position: absolute; inset: 0; z-index: 402; place-items: center; color: #71858d; background: linear-gradient(135deg, #dfecea, #d4e1df); font-size: 13px; }.map-pin { position: relative; display: flex; align-items: center; gap: 5px; }.map-pin__label { padding: 4px 6px; border: 1px solid rgba(255,255,255,.7); border-radius: 5px; color: #173241; background: rgba(255,255,255,.91); box-shadow: 0 2px 9px rgba(20,48,62,.18); font-size: 10px; font-weight: 700; white-space: nowrap; }.map-pin__dot { width: 14px; height: 14px; border: 3px solid white; border-radius: 50%; box-shadow: 0 2px 5px rgba(0,0,0,.28); }.map-pin--blue .map-pin__dot { background: var(--blue); }.map-pin--yellow .map-pin__dot { background: var(--yellow); }.map-pin--red .map-pin__dot { background: var(--red); }.map-pin--green .map-pin__dot { background: var(--green); }.leaflet-div-icon { border: 0 !important; background: transparent !important; }
.side-panel { display: flex; flex-direction: column; min-height: 0; }.side-panel .panel-header { padding-bottom: 12px; }.inline-count { display: inline-block; margin-left: 5px; padding: 3px 7px; border-radius: 10px; color: #1c9f6c; background: #eaf9f1; font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 700; vertical-align: middle; }.text-button { border: 0; color: #69808b; background: transparent; font-size: 11px; font-weight: 700; }.text-button:hover { color: var(--ink); }.text-button span, .panel-footer-button span { margin-left: 4px; color: var(--lime-dark); font-size: 17px; }.rider-list { overflow: auto; max-height: 298px; padding: 0 20px; }.rider-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #edf1f2; }.rider-row:last-child { border-bottom: 0; }.rider-row__body { min-width: 0; flex: 1; }.rider-row__name { color: var(--ink); font-size: 12px; font-weight: 700; }.rider-row__meta { display: flex; align-items: center; gap: 5px; margin-top: 2px; color: #84929a; font-size: 10px; }.rider-status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }.rider-status-dot--blue { background: var(--blue); }.rider-status-dot--yellow { background: var(--yellow); }.rider-status-dot--red { background: var(--red); }.rider-status-dot--green { background: var(--green); }.rider-status-dot--gray { background: #b9c3c8; }.rider-row__status { padding: 4px 7px; border-radius: 5px; font-size: 9px; font-weight: 700; white-space: nowrap; }.status-pill--blue { color: #1579bb; background: #e7f4ff; }.status-pill--yellow { color: #9a710d; background: #fff5d6; }.status-pill--red { color: #c14b52; background: #ffeaec; }.status-pill--green { color: #208c5f; background: #e5f8ee; }.status-pill--gray { color: #829098; background: #f0f3f4; }.panel-footer-button { width: 100%; margin-top: auto; padding: 13px 20px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; color: #647984; background: #fbfcfc; font-size: 11px; font-weight: 700; text-align: left; }.panel-footer-button:hover { color: var(--ink); background: #f4f8f8; }
.bottom-grid { display: grid; grid-template-columns: minmax(0, 1.52fr) minmax(290px, .78fr); gap: 17px; margin-top: 17px; }.orders-panel .panel-header, .quick-panel { padding: 18px 20px; }.orders-table { padding: 0 20px 5px; }.table-row { display: grid; grid-template-columns: 1fr 1.2fr .9fr auto; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid #edf1f2; }.table-row--head { min-height: 29px; border-top: 0; color: #9aa6ab; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }.table-cell { min-width: 0; color: #5e717a; font-size: 11px; }.table-cell strong { color: var(--ink); font-size: 12px; }.table-cell small { display: block; margin-top: 3px; color: #9aa6ab; font-size: 10px; }.order-id { color: #9aa6ab !important; font-family: 'Space Grotesk', sans-serif; font-size: 10px !important; }.order-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 5px; font-size: 10px; font-weight: 700; white-space: nowrap; }.quick-panel p { margin: 10px 0 18px; color: #72828a; font-size: 12px; line-height: 1.5; }.quick-hint { display: flex; gap: 7px; margin-top: 15px; padding-top: 12px; border-top: 1px solid #edf1f2; color: #8a989f; font-size: 10px; line-height: 1.4; }.quick-hint span { color: var(--lime-dark); font-size: 16px; }
.riders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -5px 0 17px; padding: 14px 17px; border: 1px solid var(--line); border-radius: 9px; background: white; }.toolbar-summary { display: flex; gap: 7px; color: #8d9aa1; font-size: 12px; }.toolbar-summary strong { color: var(--navy); }.toolbar-actions { display: flex; gap: 7px; }.riders-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }.rider-card { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }.rider-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.rider-card__person { display: flex; align-items: center; gap: 10px; }.rider-card__name { color: var(--navy); font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; }.rider-card__phone { margin-top: 3px; color: #8b9aa2; font-size: 11px; }.rider-card__number { color: #a2b0b6; font-size: 10px; font-weight: 700; }.rider-card__status { display: flex; align-items: center; gap: 7px; margin: 16px 0 13px; padding: 9px 10px; border-radius: 7px; background: #f5f8f8; color: #62747c; font-size: 11px; }.rider-card__footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf1f2; padding-top: 11px; }.rider-card__footer span { color: #8d9ba1; font-size: 10px; }.toggle { position: relative; width: 34px; height: 19px; border: 0; border-radius: 20px; background: #cbd6da; }.toggle::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; content: ''; }.toggle.is-on { background: var(--lime-dark); }.toggle.is-on::after { left: 18px; }.rider-card.is-off { opacity: .65; }
.orders-summary-strip { display: flex; gap: 1px; margin: -5px 0 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--line); }.orders-summary-strip > div { display: flex; flex-direction: column; gap: 5px; min-width: 140px; flex: 1; padding: 14px 18px; background: white; }.orders-summary-strip span { color: #8b989e; font-size: 11px; }.orders-summary-strip strong { color: var(--navy); font-family: 'Space Grotesk', sans-serif; font-size: 25px; }.orders-full-panel { padding-bottom: 12px; }.orders-table--full { padding-top: 4px; }.empty-state { padding: 38px 15px; color: #8a989f; text-align: center; font-size: 12px; }.empty-state strong { display: block; margin-bottom: 5px; color: var(--navy); font-family: 'Space Grotesk', sans-serif; font-size: 16px; }
.modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(2, 15, 24, .58); backdrop-filter: blur(4px); }.modal-backdrop.is-open { display: flex; }.modal { position: relative; width: min(100%, 520px); max-height: min(720px, calc(100vh - 40px)); overflow: auto; padding: 26px; border: 1px solid rgba(255,255,255,.6); border-radius: 14px; background: white; box-shadow: 0 22px 65px rgba(0,0,0,.25); }.modal--day { width: min(100%, 550px); }.modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; color: #819098; background: #f1f5f5; font-size: 21px; }.modal-close:hover { color: var(--ink); background: #e7eeee; }.modal-kicker { color: var(--lime-dark); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }.modal h2 { margin: 7px 0 6px; color: var(--navy); font-family: 'Space Grotesk', sans-serif; font-size: 24px; letter-spacing: -.04em; }.modal-lead { margin: 0; color: #71818a; font-size: 13px; line-height: 1.45; }.day-modal-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 10px 12px; border-radius: 7px; color: #64777f; background: #f4f8f7; font-size: 11px; }.day-modal-meta span { display: flex; align-items: center; gap: 7px; }.day-modal-meta strong { color: #1b9a67; }.modal-riders-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-height: 310px; overflow: auto; margin-top: 13px; padding: 2px; }.rider-check { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: white; }.rider-check:hover { border-color: #bfd0d2; }.rider-check.is-selected { border-color: rgba(169, 202, 6, .6); background: #fbffe7; }.rider-check input { accent-color: var(--lime-dark); }.rider-check__name { color: var(--ink); font-size: 11px; font-weight: 700; }.rider-check__phone { display: block; margin-top: 2px; color: #89979e; font-size: 9px; }.modal-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }.form-label { display: block; margin: 17px 0 6px; color: #4d626d; font-size: 11px; font-weight: 700; }.form-label span { color: #9cbd12; }.form-label .optional { color: #a8b3b7; font-size: 10px; font-weight: 400; }.text-input, select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; outline: none; color: var(--ink); background: white; font-size: 13px; }.text-input:focus, select:focus { border-color: #a9c50c; box-shadow: 0 0 0 3px rgba(204,244,44,.16); }.select-wrap { position: relative; }.select-wrap select { appearance: none; padding-right: 30px; }.select-wrap > span { position: absolute; top: 11px; right: 12px; color: #74868d; pointer-events: none; }.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.address-preview, .consent-callout { display: flex; align-items: flex-start; gap: 9px; margin-top: 17px; padding: 11px 12px; border-radius: 7px; color: #667a83; background: #f1f7f6; }.address-preview__icon { color: #51a886; font-size: 18px; }.address-preview strong, .address-preview span, .consent-callout strong, .consent-callout span { display: block; }.address-preview strong, .consent-callout strong { color: #38555e; font-size: 11px; }.address-preview span, .consent-callout span { margin-top: 3px; font-size: 10px; line-height: 1.35; }.consent-callout > span { margin: 0; color: var(--lime-dark); font-size: 19px; }.consent-callout { background: #fbffe8; }
.toast { position: fixed; z-index: 1200; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 9px; min-width: 220px; padding: 12px 14px; border: 1px solid rgba(204,244,44,.35); border-radius: 8px; color: white; background: var(--navy); box-shadow: 0 13px 30px rgba(4,22,32,.24); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .24s ease; }.toast.is-visible { opacity: 1; transform: translateY(0); }.toast-icon { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; color: #1a3100; background: var(--lime); font-size: 11px; font-weight: 800; }
@media (max-width: 1150px) { .sidebar { width: 220px; }.main-content { width: calc(100% - 220px); margin-left: 220px; }.topbar, .view { padding-left: 28px; padding-right: 28px; }.workspace-grid, .bottom-grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .85fr); }.stat-grid { gap: 9px; }.stat-card { padding-left: 13px; padding-right: 13px; } }
@media (max-width: 900px) { .sidebar { position: static; width: 64px; padding: 20px 10px; }.brand-lockup { justify-content: center; }.brand-lockup > div:last-child, .session-card, .main-nav .nav-item span:not(.nav-icon), .sidebar-bottom { display: none; }.main-nav { margin-top: 32px; }.nav-item { justify-content: center; padding: 12px 0; }.nav-icon { margin: 0; }.nav-count { display: none; }.main-content { width: calc(100% - 64px); margin-left: 0; }.topbar { padding-left: 20px; padding-right: 20px; }.workspace-grid, .bottom-grid { grid-template-columns: 1fr; }.side-panel { min-height: 300px; }.rider-list { max-height: 330px; }.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .sidebar { display: none; }.main-content { width: 100%; }.topbar { min-height: 65px; padding: 0 16px; }.mobile-brand { display: flex; color: var(--navy); font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700; }.mobile-brand .brand-mark { transform: scale(.8); transform-origin: left center; margin-right: -4px; }.accent-text { color: var(--lime-dark); }.breadcrumb, .last-sync, .topbar-actions > .icon-button { display: none; }.topbar-actions { margin-left: auto; }.view { padding: 25px 16px 35px; }.page-intro { display: block; margin-bottom: 22px; }.page-intro h1 { font-size: 30px; }.intro-actions { margin-top: 18px; }.intro-actions .button { flex: 1; padding: 0 10px; }.stat-grid { gap: 8px; }.stat-card { padding: 13px; }.stat-number { font-size: 26px; }.stat-foot { font-size: 10px; }.panel-header { padding: 15px; }.map-wrap { height: 310px; }.map-legend { right: 8px; bottom: 8px; gap: 6px; padding: 7px; }.map-legend span { font-size: 9px; }.table-row { grid-template-columns: 1fr .95fr auto; gap: 8px; }.table-row > .table-cell:nth-child(2) { display: none; }.orders-table { padding-left: 15px; padding-right: 15px; }.quick-panel { padding: 16px; }.riders-toolbar { display: block; }.toolbar-actions { margin-top: 12px; }.riders-grid { grid-template-columns: 1fr; }.orders-summary-strip > div { min-width: 0; padding: 12px; }.orders-summary-strip span { font-size: 10px; }.orders-summary-strip strong { font-size: 22px; }.modal-riders-list { grid-template-columns: 1fr; }.modal { padding: 23px 18px; }.toast { right: 16px; bottom: 16px; left: 16px; }.order-status { font-size: 9px; } }

/* Sidebar compatta: lascia sempre visibile il collegamento Assistenza 24H. */
@media (min-width: 1151px) { .sidebar { width:232px; padding:18px 12px 12px; } .main-content { width:calc(100% - 232px); margin-left:232px; } .main-nav { margin-top:16px; gap:2px; } .nav-item { min-height:40px; padding:9px 8px; font-size:13px; } .sidebar-bottom .user-mini { margin-top:8px; padding-top:9px; } }
@media (min-width: 901px) and (max-width:1150px) { .sidebar { width:210px; padding:16px 10px 10px; } .main-content { width:calc(100% - 210px); margin-left:210px; } .main-nav { margin-top:14px; gap:1px; } .nav-item { min-height:38px; padding:8px 7px; font-size:12px; } .sidebar-bottom .user-mini { margin-top:6px; padding-top:8px; } }

.intro-actions { flex-wrap: wrap; justify-content: flex-end; }
.rider-card__footer { gap: 10px; }
.rider-card__turn { display: flex; align-items: center; gap: 9px; }
.card-action { padding: 4px 0; border: 0; color: #7d9910; background: transparent; font-size: 10px; font-weight: 800; }
.card-action:hover { color: var(--ink); }
.toggle { flex: 0 0 auto; }
.riders-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; padding: 40px; border: 1px dashed #cbd7db; border-radius: 12px; color: #87959c; background: rgba(255,255,255,.7); text-align: center; }
.riders-empty__icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 50%; color: #233800; background: var(--lime); font-size: 27px; }
.riders-empty strong { color: var(--navy); font-family: 'Space Grotesk', sans-serif; font-size: 18px; }
.riders-empty span { margin: 7px 0 18px; font-size: 13px; }
.modal-empty { grid-column: 1 / -1; padding: 25px; border: 1px dashed var(--line); border-radius: 8px; color: #84929a; text-align: center; font-size: 12px; }
