/* Aytemiz visual refinement. Layout and operational flows live in style.css. */
:root {
  --font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --navy: #152f43;
  --navy2: #23495f;
  --red: #df3545;
  --bg: #f4f6f9;
  --ink: #1d3447;
  --muted: #5f7486;
  --line: #e5ebf0;
  --green: #287b61;
  --radius: 18px;
  font-family: var(--font-ui);
  color-scheme: light;
}
body, button, input, select, textarea, dialog { font-family: var(--font-ui); }
body { background: var(--bg); color: var(--ink); line-height: 1.5; }
button, input, select, textarea { letter-spacing: 0; }
::selection { background: #e4ecf3; color: #152f43; }

/* Equal-width figures make kilometre and payment columns easier to scan. */
.stat-value, .km-cell, .numeric, .payment-total strong, .fee-total strong,
.statement-row strong, .driver-km-grid strong, .queue-stat strong,
.km-result strong, .km-entry input, .detail-grid dd, .import-summary strong,
.driver-work-status strong, .statement-km-row strong {
  font-variant-numeric: lining-nums tabular-nums;
}

.sidebar { background: #142d42; border-right: 1px solid #10283c; }
.brand-logo { border-radius: 12px; padding: 9px 11px; }
.brand-caption { color: #a8bdcc; font-size: 8px; letter-spacing: 1.35px; margin-top: 13px; }
.nav-label { color: #8fa9bc; font-size: 10px; letter-spacing: 1.6px; }
.nav-item { min-height: 46px; border-radius: 11px; color: #b9cbd8; font-weight: 550; }
.nav-item.active { background: #ffffff10; box-shadow: inset 3px 0 0 #f15b67; color: #fff; }
.nav-item.active svg { color: #ff8e97; }
.nav-item .count { border-radius: 6px; background: #ffffff16; }
.help-card { border-radius: 14px; border-color: #ffffff18; background: #ffffff03; }
.help-card strong { font-weight: 650; }
.help-card p, .profile small { color: #a8bdcc; }
.profile strong { font-weight: 700; }
.avatar { border: 1px solid #dce6ed; font-weight: 750; background: #edf3f7; }
.topbar { border-bottom-color: #e4ebf1; box-shadow: 0 2px 10px #18384e03; }
.breadcrumb { font-size: 12px; }
.breadcrumb strong { color: #38556c; font-weight: 650; }
.top-button { color: #607b8e; border-color: #e3eaf0; }
.live-pill { font-weight: 700; letter-spacing: .35px; border-radius: 7px; }

.eyebrow { font-size: 10px; font-weight: 750; color: #718497; letter-spacing: 1.5px; }
.hero { gap: 24px; }
.hero > div:first-child { min-width: 0; }
.hero h1 { font-size: 30px; font-weight: 750; line-height: 1.25; letter-spacing: -1.05px; }
.hero p { color: #5b7387; font-size: 13px; line-height: 1.75; }
.connection-note { border: 1px solid #e5edf3; background: #edf3f7; padding: 10px 13px; border-radius: 9px; color: #526e83; }
.connection-note svg { color: #718da0; }
.connection-note button { color: #4e6e86; font-weight: 600; }

.btn { border-radius: 10px; font-weight: 700; letter-spacing: -.1px; }
.btn:not(.secondary):not(.ghost):not(.red) { box-shadow: 0 2px 3px #142d4210; }
.btn.secondary { border-color: #dfe7ee; color: #36536b; box-shadow: 0 1px 2px #17374e04; }
.btn.secondary:hover { border-color: #c8d6e0; background: #f5f8fb; }
.btn.red { background: var(--red); }
.btn.ghost { box-shadow: none; }
.month-control { border-radius: 10px; border-color: #dfe7ee; }
.month-control label { font-weight: 650; }
.text-link { font-weight: 650; }

.card, .stat { box-shadow: 0 3px 12px #18384e04; }
.stat { border-color: #e3eaf0; }
.stat-head { color: #61768a; font-size: 12px; font-weight: 600; line-height: 1.5; }
.icon-box { width: 35px; height: 35px; border-radius: 11px; background: #edf3f7; color: #4a708a; }
.icon-box.teal { background: #eaf5ef; color: #398367; }
.icon-box.rose { background: #fceff1; color: #cc5a67; }
.icon-box.purple { background: #f1eff8; color: #8473ad; }
.stat-value { font-size: 31px; font-weight: 750; letter-spacing: -1.15px; line-height: 1.15; margin: 17px 0 10px; }
.stat-value small { font-size: 12px; font-weight: 500; color: #7d909f; }
.stat-foot { font-size: 11px; color: #5f7486; line-height: 1.65; }
.stat.accent { border-color: #dcebe4; background: #f7fbf9; }
.stat.accent .stat-value { color: #24785b; }
.card-header { padding-top: 23px; }
.card-header h2, .report-toolbar h2 { font-size: 15px; font-weight: 750; letter-spacing: -.35px; }
.card-header p, .report-toolbar p { font-size: 11px; color: #5f7486; line-height: 1.75; margin-top: 7px; }
.payment-stats { margin-top: 18px; margin-bottom: 21px; }
.payment-stats .stat { box-shadow: none; background: #fbfcfe; border-radius: 13px; }
.payment-stats .stat-value { font-size: clamp(22px, 2vw, 29px); font-weight: 750; white-space: normal; overflow-wrap: anywhere; }
.payment-total { background: #f7f9fc; padding-top: 19px; }
.payment-total span { font-size: 12px; }
.payment-total strong { font-size: 21px; font-weight: 750; letter-spacing: -.6px; }
.payment-breakdown > .rate-note { background: #f7f9fc; color: #5b7387; font-size: 11px; padding-top: 11px; padding-bottom: 19px; }
.pending-banner { background: #fffaf0; border-color: #f0e5c9; color: #8b7449; font-size: 12px; border-radius: 13px; }

.trips-table { font-size: 12px; }
.trips-table th { background: #f7f9fc; font-size: 10px; font-weight: 750; color: #6c8295; letter-spacing: .7px; padding-top: 14px; padding-bottom: 14px; }
.trips-table td { color: #526c81; padding-top: 16px; padding-bottom: 16px; }
.trips-table tbody tr:hover { background: #f6f9fc; }
.trips-table .date-cell strong { font-size: 12px; font-weight: 650; }
.trips-table .date-cell small { color: #617789; font-size: 10px; }
.plate { background: #f1f5f8; border-color: #e1e9ef; color: #34556e; font-size: 11px; border-radius: 6px; font-weight: 750; letter-spacing: .45px; }
.crew { font-size: 11px; color: #5b7387; }
.km-cell { font-weight: 750; }
.status { font-size: 10px; padding: 6px 9px; border-radius: 7px; font-weight: 700; }
.status.approved { color: #287459; background: #edf7f1; }
.status.pending { color: #906923; background: #fcf4e4; }
.status.review { color: #b64959; background: #fceef0; }
.status.open { color: #386f94; background: #eaf3fa; }
.status.inactive { color: #5b7387; background: #eff3f6; }
.row-button { width: 31px; height: 31px; border: 1px solid #e7edf2; border-radius: 9px; color: #6c879b; background: #fff; }
.table-footer { font-size: 11px; color: #758b9d; background: #fcfdfe; }
.search-input, .filterbar select { border-color: #dfe7ee; border-radius: 10px; background: #fff; }
.search-input input, .filterbar select { font-size: 12px; color: #4e6b81; }
.search-input:focus-within { border-color: #789ab2; outline: 2px solid #dce9f2; outline-offset: 1px; }
.report-tabs button { font-size: 12px; font-weight: 650; color: #5b7387; }
.report-tabs button.selected { color: #254c68; font-weight: 750; }
.report-tabs button span { color: #5b7387; }
.reports-table td, .definitions-table td { font-size: 12px; }
.reports-table .numeric b { font-weight: 750; }
.report-name { font-weight: 700; color: #3f617b; }
.report-name small, .definitions-table .report-name small { color: #5f7486; font-size: 11px; }
.report-rule { color: #5f7486; font-size: 11px; }
.definition-actions .text-link { min-height: 36px; padding: 5px 0; font-size: 11px; }
.transport-tag, .user-role { font-size: 11px; border-radius: 7px; }
.definition-import-strip { border-radius: 12px; background: #f4f8fb; }
.definition-import-strip p, .import-template-note p { font-size: 12px; color: #5b7387; }
.definition-account-note { color: #637e93; }
.footer { font-size: 10px; color: #7e92a2; }

.journey-card { background: #17384f; box-shadow: 0 6px 18px #17384f12; }
.journey-card h2 { font-weight: 700; letter-spacing: -.65px; }
.journey-card p { color: #b4c9d8; }
.journey-kicker { color: #b5cad9; font-weight: 700; }
.journey-card .active-plate { font-weight: 750; }
.driver-km-grid strong { font-weight: 750; letter-spacing: -.8px; }
.driver-work-status { border-top-style: solid; }
.fee-row { font-size: 12px; }
.fee-row strong { font-weight: 700; }
.fee-total strong { font-weight: 750; }
.chart-summary, .legend { color: #5b7387; font-size: 11px; }
.queue-stat { border-radius: 14px; }
.queue-stat strong { font-weight: 750; }
.queue-stat.selected { border-color: #587e98; }
.archive-row strong, .drive-status-grid strong { font-weight: 700; }

dialog { border-radius: 20px; box-shadow: 0 24px 80px #142d4233; }
.modal-head h2 { font-size: 22px; font-weight: 750; letter-spacing: -.7px; line-height: 1.35; }
.modal-head p { color: #5b7387; font-size: 12px; }
.modal-footer { background: #f7f9fc; }
.field label, .field-label { color: #46667e; font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea { font-size: 13px; border-color: #dbe5ed; border-radius: 10px; }
.field small { color: #5b7387; font-size: 11px; }
.field input[readonly], .field input:disabled { color: #637c90; }
.crew-option { border-radius: 11px; }
.crew-option:has(input:checked) { background: #f0f6fa; border-color: #688ba5; }
.departure-checklist { border-radius: 13px; background: #f7fafd; }
.departure-checklist legend { font-weight: 750; }
.departure-question input { accent-color: #244e6a; }
.detail-grid dt { color: #738a9d; font-weight: 600; }
.detail-grid dd { color: #375b75; font-weight: 650; }
.detail-note, .audit li { color: #627f94; }
.audit small { color: #788fa1; }

.auth-story { background: #142d42; }
.auth-story>img { border-radius: 12px; }
.auth-story h1 { font-weight: 750; letter-spacing: -.055em; }
.auth-card h2 { font-weight: 750; letter-spacing: -.045em; }
.auth-card>.eyebrow { color: #cf2b3b; }
.auth-card .field input { border-radius: 10px; }
.auth-main { background: #f8fafc; }
.auth-footnote, .auth-hint { color: #6a8193; }

@media (min-width: 761px) and (max-width: 1250px) {
  .hero h1 { font-size: 28px; }
  .stat-value { font-size: 28px; }
  .stat-head { font-size: 11px; }
  .stat-foot { font-size: 10px; }
}
@media (min-width: 761px) {
  .nav-item { font-size: 13px; }
  .btn { font-size: 12px; }
  .btn.small { font-size: 11px; }
}
@media (max-width: 760px) {
  .sidebar { background: #fff; border-right: 0; border-top-color: #e0e8f0; }
  .nav-item { min-height: 62px; border-radius: 10px; }
  .nav-item.active { background: #f2f6fa; box-shadow: none; color: #153b56; }
  .nav-item.active svg { color: #d92f42; }
  .nav-item:hover { background: #f4f7fa; color: #153b56; }
  .operator-sidebar .nav-item { font-size: 10px; }
  .driver-sidebar .nav-item { font-size: 12px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .hero { gap: 13px; }
  .hero h1 { font-size: 27px; line-height: 1.3; letter-spacing: -.85px; }
  .hero p { font-size: 12px; line-height: 1.75; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1px; }
  .stat { border-radius: 14px; }
  .stat-head { font-size: 11px; }
  .stat-value { font-size: 26px; letter-spacing: -.85px; }
  .stat.accent .stat-value { font-size: clamp(20px, 5.8vw, 24px); white-space: normal; overflow-wrap: anywhere; }
  .stat-foot { font-size: 10px; }
  .stat-head .icon-box { width: 27px; height: 27px; border-radius: 9px; }
  .card-header h2, .report-toolbar h2 { font-size: 15px; }
  .card-header p, .report-toolbar p { font-size: 11px; }
  .payment-stats { margin-top: 15px; }
  .payment-stats .stat-value { font-size: 28px; }
  .payment-stats .stat { padding: 18px; }
  .payment-total strong { font-size: 19px; }
  .payment-breakdown > .rate-note { font-size: 10px; }
  .connection-note { font-size: 11px; line-height: 1.7; }
  .pending-banner { font-size: 11px; }
  .filterbar input, .filterbar select { font-size: 14px; }
  .field label, .field-label { font-size: 14px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .field small { font-size: 12px; }
  .modal-head h2 { font-size: 23px; }
  .modal-head p { font-size: 13px; }
  dialog { border-radius: 0; }
  .report-tabs button { font-size: 11px; }
  .definition-stats .stat-value { font-size: 25px; }
  .definition-stats .stat-head { font-size: 10px; }
  .definition-stats .stat-foot { font-size: 9px; }
  .mobile-trip .plate { font-size: 15px; }
  .driver-home .journey-card h2 { font-size: 26px; }
  .driver-home .journey-card p { font-size: 14px; }
  .driver-km-grid strong { font-size: 25px; }
  .footer { font-size: 9px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .row-button, .nav-item { transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease; }
}
