@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/inter-latin.woff2') format('woff2');
}

@font-face { font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('/assets/manrope-latin.woff2') format('woff2'); }

:root {
  --navy: #0c2340;
  --ink: #152b43;
  --muted: #566a7c;
  --page: #f1f4f7;
  --surface: #fff;
  --sunken: #f7f9fb;
  --line: #dce4eb;
  --soft-line: #eaf0f5;
  --accent: #245f87;
  --accent-soft: #eaf2f8;
  --focus: #337aa7;
  --green: #1f6556;
  --green-soft: #e9f5f0;
  --amber: #825a16;
  --amber-soft: #fff5e0;
  --red: #9a414a;
  --red-soft: #fbeef0;
  --gray: #576574;
  --gray-soft: #edf0f3;
  --radius: 12px;
  --shadow: 0 2px 5px #0c234005, 0 14px 40px #0c234007;
  --z-sticky: 10;
  --z-toast: 40;
  color-scheme: light;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button, input, select, a { touch-action: manipulation; }
button, input, select { transition: background-color 150ms, border-color 150ms, box-shadow 150ms; }
button:focus-visible, a:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input:focus, select:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px #337aa71a; }
a { color: inherit; }
svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 15px; z-index: var(--z-toast); background: white; padding: 12px; border: 2px solid var(--accent); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow { display: block; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 39px; padding: 8px 13px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.button svg { width: 16px; height: 16px; }
.button:hover { background: var(--sunken); border-color: #b8c9d6; }
.button:active, .icon-button:active { background: var(--accent-soft); }
.button-primary { color: white; background: var(--navy); border-color: var(--navy); }
.button-primary:hover { background: #1b3d5e; border-color: #1b3d5e; }
.button-quiet { border-color: transparent; background: transparent; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 38px; min-width: 38px; height: 38px; padding: 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; }
.icon-button:hover { background: var(--accent-soft); }
.muted { color: var(--muted); }
.number { font-variant-numeric: tabular-nums; }

.startup { display: flex; min-height: 100dvh; align-items: center; justify-content: center; gap: 12px; color: var(--muted); font-size: 13px; }
.loader { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.appbar { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); min-height: 70px; padding: env(safe-area-inset-top) max(28px,env(safe-area-inset-right)) 0 max(28px,env(safe-area-inset-left)); align-items: center; gap: 20px; background: var(--navy); color: #fff; }
.brand-lockup { display: inline-flex; width: 173px; padding: 8px 0; }
.brand-lockup img { width: 100%; height: auto; object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 5px; }
.nav-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 19px; background: transparent; border: 0; border-radius: 11px; color: #c3d0df; font-size: 13px; font-weight: 700; white-space: nowrap; }
.nav-button svg { width: 18px; height: 18px; }
.nav-button:hover { color: white; background: #ffffff0d; }
.nav-button.is-active { background: #ffffff18; color: white; }
.appbar-actions { display: flex; align-items: center; gap: 12px; justify-self: end; }
.header-icon { color: #d0ddeb; }
.header-icon:hover { color: white; background: #ffffff18; }
.user-initials { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; border-radius: 50%; background: #ffffff17; border: 1px solid #ffffff24; font-size: 11px; font-weight: 800; }
.workspace { max-width: 1760px; margin: 0 auto; padding: 30px 28px 20px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.page-heading .eyebrow { margin-bottom: 5px; }
.page-heading h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.045em; font-weight: 800; }
.page-heading p { color: var(--muted); font-size: 12px; margin-top: 6px; }
.heading-meta { display: flex; align-items: center; gap: 14px; }
.sync-line { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; max-width: 280px; }
.sync-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.sync-line.is-stale .sync-dot { background: var(--amber); }
.sync-line.is-error .sync-dot { background: var(--red); }
.sync-line.is-refreshing .sync-dot { background: var(--accent); box-shadow: 0 0 0 3px #245f8714; }
.refresh-button { background: white; border-color: var(--line); }
.refresh-button.is-refreshing svg { animation: spin 1.2s linear infinite; }
.notice { padding: 11px 15px; margin: 0 0 14px; border: 1px solid #e8d8b7; border-radius: 10px; font-size: 12px; color: #785012; background: var(--amber-soft); }
.notice-error { color: var(--red); background: var(--red-soft); border-color: #e9c6cb; }

.calendar-card { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; overflow: clip; box-shadow: var(--shadow); }
.calendar-toolbar { padding: 18px 20px 15px; border-bottom: 1px solid var(--line); }
.toolbar-primary { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.view-switch { display: flex; padding: 4px; gap: 2px; background: var(--page); border-radius: 11px; flex: 0 0 auto; }
.view-button { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; border-radius: 8px; padding: 9px 17px; min-height: 35px; }
.view-button:hover { color: var(--navy); background: #e2eaf0; }
.view-button.is-active { color: white; background: var(--navy); box-shadow: 0 2px 4px #0c234016; }
.period-nav { display: flex; align-items: center; gap: 5px; }
.period-nav h2 { font-size: 16px; font-weight: 800; min-width: 164px; text-align: center; text-transform: capitalize; line-height: 1.35; }
.period-nav .icon-button { width: 32px; min-width: 32px; height: 36px; }
.period-nav svg { width: 17px; height: 17px; }
.today-button { margin-left: 6px; min-height: 35px; font-size: 11px; padding-inline: 13px; }
.toolbar-tools { display: flex; align-items: center; gap: 8px; }
.filter-toggle { display: none; }
.filter-count { color: white; background: var(--accent); font-size: 10px; min-width: 17px; border-radius: 20px; padding: 1px 5px; }
.toolbar-secondary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; }
.search-control { display: flex; align-items: center; gap: 9px; flex: 1 1 auto; max-width: 520px; height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--sunken); }
.search-control:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px #337aa710; }
.search-control svg { width: 17px; height: 17px; color: var(--muted); }
.search-control input { min-width: 0; width: 100%; height: 100%; padding: 0; font-size: 12px; border: 0; background: transparent; box-shadow: none; outline: none; }
.search-control input::placeholder { color: #617284; }
.date-controls { display: flex; align-items: center; gap: 9px; }
.field { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 10px; font-weight: 700; }
.field input, .field select { width: 100%; height: 38px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: var(--ink); font-size: 12px; font-weight: 600; }
.field select { cursor: pointer; }
.field input:disabled { color: var(--muted); background: var(--page); }
.date-field { display: flex; align-items: center; gap: 8px; }
.date-field input { width: auto; max-width: 160px; height: 38px; }
.history-button { font-size: 11px; min-height: 36px; }
.history-button[aria-pressed=true] { color: var(--accent); background: var(--accent-soft); }
.filter-row { display: flex; align-items: end; gap: 12px; margin-top: 15px; }
.filter-row .field { flex: 1 1 140px; }
.filter-row .client-filter { flex: 1.5 1 200px; }
.check-control { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 38px; color: var(--muted); font-size: 10px; font-weight: 600; cursor: pointer; }
.check-control input { accent-color: var(--navy); width: 14px; height: 14px; margin: 0; }
.clear-filters { font-size: 11px; min-height: 38px; padding-inline: 8px; color: var(--accent); }
.results-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; min-height: 42px; padding: 10px 20px; gap: 8px; border-bottom: 1px solid var(--soft-line); background: #fafbfd; }
.results-bar p { color: var(--muted); font-size: 11px; }
.results-bar p strong { color: var(--ink); font-weight: 800; }
.status-legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 10px; }
.status-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.legend-dot.confirmed { background: var(--accent); }
.legend-dot.flown { background: var(--green); }
.legend-dot.cancelled { background: #8b6470; }
.legend-dot.blocked { background: var(--gray); }
.calendar-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 20px; color: var(--muted); font-size: 10px; border-top: 1px solid var(--soft-line); }
.view-content { min-height: 400px; position: relative; }
.view-content.is-loading { opacity: .55; pointer-events: none; }
.view-content.is-loading::after { content: ''; display: block; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); animation: loading-line 1s ease-in-out infinite alternate; transform-origin: left; }
@keyframes loading-line { from { transform: scaleX(.1); } to { transform: scaleX(1); } }

.month-scroller, .week-scroller, .table-scroller { overflow-x: auto; overscroll-behavior-inline: contain; }
.month-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.weekday { padding: 12px 9px; color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; background: var(--sunken); border-bottom: 1px solid var(--line); }
.month-day { min-height: 150px; padding: 7px 7px 9px; border-right: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); min-width: 0; }
.month-day:nth-child(7n) { border-right: 0; }
.month-day.is-outside { background: #fbfcfd; }
.month-day.is-outside .day-number { color: #738291; }
.day-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; min-height: 25px; padding: 0 1px; }
.day-number { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 800; border-radius: 50%; }
.day-number:hover { background: var(--accent-soft); }
.is-today .day-number { color: white; background: var(--navy); }
.day-count { color: var(--muted); font-size: 9px; padding-right: 3px; }
.flight-chip { display: grid; width: 100%; gap: 3px; margin-bottom: 5px; padding: 7px 8px; text-align: left; border: 1px solid #d6e4f0; border-radius: 7px; color: #1c4665; background: #eff5fa; overflow: hidden; }
.flight-chip:hover { border-color: #8cb1cb; background: #e4eff7; }
.flight-chip.is-flown { color: #285c4e; border-color: #dbe9e1; background: #f0f7f3; }
.flight-chip.is-flown:hover { background: #e7f2ec; border-color: #9cbaa9; }
.flight-chip.is-cancelled { color: #76555f; background: #f6f1f3; border-color: #e9dee2; }
.flight-chip.is-cancelled:hover { background: #f0e5ea; border-color: #c4a5b1; }
.flight-chip.is-block { color: #586675; background: #f0f2f5; border-color: #e0e5eb; }
.flight-chip.is-block:hover { background: #e8edf2; border-color: #afbcc9; }
.chip-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; }
.chip-state { display: inline-block; font-size: 8px; font-weight: 700; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-route { font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-meta { display: flex; justify-content: space-between; gap: 5px; color: inherit; opacity: .9; font-size: 9px; white-space: nowrap; }
.chip-meta span { overflow: hidden; text-overflow: ellipsis; }
.chip-client { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; font-size: 9px; opacity: .85; }
.more-flights { width: 100%; min-height: 26px; padding: 4px 6px; border: 0; border-radius: 6px; color: var(--accent); background: transparent; font-size: 10px; font-weight: 800; text-align: left; }
.more-flights:hover { background: var(--accent-soft); }
.empty-day { color: #9aabba; font-size: 10px; margin: 10px 3px; }
.week-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); min-height: 420px; }
.week-column { min-width: 0; padding: 10px 8px; border-right: 1px solid var(--soft-line); }
.week-column:last-child { border-right: 0; }
.week-head { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); margin-bottom: 15px; font-size: 10px; }
.week-head strong { font-size: 19px; color: var(--ink); letter-spacing: -.04em; }
.week-head .day-number { width: 34px; height: 34px; }
.week-column.is-today { background: #f8fbfd; }
.week-column.is-today .week-head strong { background: var(--navy); color: white; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.week-column .flight-chip { padding: 11px 9px; gap: 5px; margin-bottom: 9px; }
.week-column .chip-route { white-space: normal; line-height: 1.4; }
.week-column .chip-client { white-space: normal; }
.day-agenda { padding: 10px 20px 20px; }
.agenda-date { display: flex; gap: 12px; align-items: center; padding: 18px 0 15px; font-size: 12px; font-weight: 800; }
.agenda-date span { color: var(--muted); font-size: 11px; font-weight: 500; }
.agenda-row { display: grid; grid-template-columns: 85px minmax(160px,1.5fr) minmax(110px,1fr) minmax(140px,1fr) 82px 100px 28px; align-items: center; width: 100%; gap: 18px; padding: 18px 0; border: 0; border-top: 1px solid var(--soft-line); background: transparent; text-align: left; }
.agenda-row:hover { background: var(--sunken); box-shadow: 14px 0 var(--sunken), -14px 0 var(--sunken); }
.agenda-time { display: flex; flex-direction: column; gap: 3px; }
.agenda-time strong { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.agenda-time small { font-size: 10px; color: var(--muted); }
.agenda-route { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.agenda-route strong { font-size: 13px; font-weight: 800; }
.agenda-route small { color: var(--muted); font-size: 10px; }
.agenda-aircraft, .agenda-client { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.agenda-aircraft strong, .agenda-client strong { font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.agenda-aircraft small, .agenda-client small { font-size: 10px; color: var(--muted); }
.agenda-pax { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--muted); }
.agenda-pax strong { font-size: 12px; color: var(--ink); }
.agenda-arrow { width: 15px; height: 15px; color: var(--muted); }
.state-pill { display: inline-flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; border-radius: 5px; padding: 4px 7px; font-size: 9px; line-height: 1.3; font-weight: 800; color: var(--accent); background: var(--accent-soft); white-space: nowrap; }
.state-pill.is-flown { background: var(--green-soft); color: var(--green); }
.state-pill.is-cancelled { background: #f4edf1; color: #825368; }
.state-pill.is-block { color: var(--gray); background: var(--gray-soft); }
.state-pill.is-pending { color: var(--amber); background: var(--amber-soft); }
.flight-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 960px; font-size: 11px; }
.flight-table th { padding: 12px 15px; font-size: 9px; font-weight: 800; color: var(--muted); background: var(--sunken); border-bottom: 1px solid var(--line); white-space: nowrap; }
.flight-table td { padding: 13px 15px; border-bottom: 1px solid var(--soft-line); vertical-align: middle; }
.flight-table tbody tr:hover { background: #f7fafc; }
.flight-table td strong, .flight-table td small { display: block; }
.flight-table td strong { font-size: 11px; font-weight: 700; }
.flight-table td small { margin-top: 4px; font-size: 9px; color: var(--muted); }
.table-route-button { display: block; padding: 0; border: 0; text-align: left; color: var(--ink); background: transparent; font-weight: 800; }
.table-route-button:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.table-date { font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty-state { min-height: 340px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 35px 24px; text-align: center; color: var(--muted); }
.empty-state > svg { width: 34px; height: 34px; color: #8199ad; margin-bottom: 4px; stroke-width: 1.3; }
.empty-state h3 { font-size: 16px; color: var(--ink); font-weight: 800; }
.empty-state p { font-size: 12px; max-width: 430px; }
.empty-state .button { margin-top: 4px; }
.skeleton-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); }
.skeleton-day { height: 155px; border-right: 1px solid var(--soft-line); border-bottom: 1px solid var(--soft-line); padding: 14px 9px; }
.skeleton-line { display: block; height: 12px; width: 55%; margin: 0 0 12px; background: var(--page); border-radius: 4px; }
.skeleton-line:nth-child(2) { width: 88%; height: 45px; }

.coverage-notice { margin-top: 15px; color: var(--muted); font-size: 11px; padding: 0 2px; }
.coverage-notice summary { cursor: pointer; width: fit-content; }
.coverage-notice ul { padding-left: 20px; max-width: 900px; }
.coverage-notice li { margin: 6px 0; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 25px; color: var(--muted); font-size: 10px; }
.page-footer > span:first-child { font-weight: 800; color: #64788b; }
.page-footer a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.page-footer a:hover { text-decoration: underline; }
.page-footer svg { width: 11px; height: 11px; }
.toast { position: fixed; z-index: var(--z-toast); left: 50%; bottom: max(24px,env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 10px; background: var(--navy); color: white; font-size: 12px; box-shadow: 0 8px 25px #0c23402b; }

.detail-dialog { width: min(780px,100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border: 0; border-left: 1px solid var(--line); padding: 0; color: var(--ink); background: var(--surface); box-shadow: -20px 0 60px #0c234020; overflow: auto; overscroll-behavior: contain; }
.detail-dialog[open] { display: flex; flex-direction: column; }
.detail-dialog::backdrop { background: #071c3157; }
.detail-head { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: max(23px,env(safe-area-inset-top)) 28px 20px; border-bottom: 1px solid var(--soft-line); background: var(--surface); }
.detail-head h2 { margin-top: 4px; font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.detail-head .eyebrow { font-size: 9px; }
.close-detail { border: 1px solid var(--line); flex-shrink: 0; }
.detail-hero { padding: 24px 28px; background: #f7fafc; }
.detail-route { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.detail-route-point { flex: 1; min-width: 0; }
.detail-route-point:last-child { text-align: right; }
.detail-route-point strong { display: block; font-size: 20px; letter-spacing: -.04em; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.detail-route-point span { display: block; color: var(--muted); font-size: 11px; margin-top: 8px; }
.route-line { flex: 0 1 90px; min-width: 35px; display: flex; align-items: center; gap: 8px; color: #7f9db4; }
.route-line::before, .route-line::after { content: ''; height: 1px; width: 100%; background: #c8d8e5; }
.route-line svg { width: 20px; height: 20px; }
.detail-hero-meta { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.detail-hero-meta > span { display: inline-flex; gap: 6px; align-items: center; }
.detail-hero-meta svg { width: 14px; height: 14px; }
.detail-tabs { display: flex; gap: 15px; flex-shrink: 0; overflow-x: auto; padding: 0 28px; border-bottom: 1px solid var(--line); background: var(--surface); }
.detail-tabs button { position: relative; min-height: 52px; padding: 14px 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; white-space: nowrap; }
.detail-tabs button:hover { color: var(--ink); }
.detail-tabs button[aria-selected=true] { color: var(--navy); }
.detail-tabs button[aria-selected=true]::after { content: ''; height: 2px; background: var(--navy); position: absolute; bottom: 0; left: 0; right: 0; }
.detail-panel { padding: 24px 28px; flex: 1; outline-offset: -3px; }
.detail-section { margin-bottom: 28px; }
.detail-section:last-child { margin-bottom: 0; }
.detail-section h3 { font-size: 12px; font-weight: 800; margin-bottom: 16px; }
.data-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px 24px; margin: 0; }
.data-pair { min-width: 0; }
.data-pair dt { font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.data-pair dd { font-size: 12px; color: var(--ink); margin: 0; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-line; }
.data-pair dd:empty::after { content: 'No informado'; color: var(--muted); }
.data-pair.wide { grid-column: 1/-1; }
.data-pair a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.detail-note { padding: 12px 14px; background: var(--sunken); border: 1px solid var(--soft-line); border-radius: 8px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.detail-note p + p { margin-top: 8px; }
.detail-section .detail-note { margin-top: 14px; }
.detail-notes { color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.detail-list { display: grid; gap: 0; }
.related-flight { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--soft-line); background: transparent; text-align: left; }
.related-flight:first-child { border-top: 1px solid var(--soft-line); }
.related-flight:hover { color: var(--accent); }
.related-flight.is-current { background: var(--sunken); padding-inline: 10px; border-radius: 7px; }
.related-flight > span:first-child { display: grid; gap: 4px; }
.related-flight strong { font-size: 12px; font-weight: 800; }
.related-flight small { font-size: 10px; color: var(--muted); }
.related-flight > span:last-child { flex-shrink: 0; }
.proforma-section { border-bottom: 1px solid var(--line); padding-bottom: 25px; margin-bottom: 25px; }
.proforma-section:last-child { border-bottom: 0; padding-bottom: 0; }
.proforma-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.proforma-title h3 { margin: 0; font-size: 14px; }
.money-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.money-currency { padding: 15px; background: var(--sunken); }
.money-currency + .money-currency { border-left: 1px solid var(--line); }
.money-currency h4 { margin: 0 0 12px; font-size: 10px; color: var(--muted); }
.money-currency p { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--muted); }
.money-currency p + p { margin-top: 8px; }
.money-currency strong { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 700; }
.detail-disclosure { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--soft-line); }
.detail-disclosure > summary { cursor: pointer; font-size: 11px; font-weight: 800; }
.detail-disclosure > .detail-table-scroll, .detail-disclosure > .data-grid { margin-top: 14px; }
.detail-table-scroll { overflow-x: auto; }
.detail-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 10px; }
.detail-table th { color: var(--muted); font-weight: 700; padding: 9px 7px; border-bottom: 1px solid var(--line); background: var(--sunken); white-space: nowrap; }
.detail-table td { padding: 10px 7px; border-bottom: 1px solid var(--soft-line); vertical-align: top; }
.detail-table small { display: block; color: var(--muted); margin-top: 3px; font-size: 9px; }
.detail-table .money { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.payment-item { border-top: 1px solid var(--soft-line); padding: 17px 0; }
.payment-title { display: flex; justify-content: space-between; gap: 10px; align-items: start; margin-bottom: 14px; }
.payment-title h4 { font-size: 12px; margin: 0; }
.payment-title p { color: var(--muted); font-size: 10px; margin-top: 4px; }
.payment-title > strong { font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.payment-item .data-grid { gap: 12px 20px; }
.payment-item .data-pair dd { font-size: 11px; }
.passenger-item { padding: 15px 0; border-bottom: 1px solid var(--soft-line); }
.passenger-item h4 { font-size: 12px; margin: 0 0 12px; }
.detail-foot { display: flex; justify-content: space-between; gap: 15px; padding: 16px 28px max(18px,env(safe-area-inset-bottom)); color: var(--muted); font-size: 10px; border-top: 1px solid var(--line); margin-top: auto; }
.detail-foot a { display: inline-flex; gap: 5px; align-items: center; text-decoration: none; }
.detail-foot a:hover { text-decoration: underline; }
.detail-foot svg { width: 12px; height: 12px; }

.login-screen { min-height: 100dvh; padding: 36px 28px; background: var(--navy); }
.login-brand { width: 180px; margin: 0 auto 38px; }
.login-brand img { display: block; width: 100%; height: auto; }
.login-shell { width: min(900px,100%); display: grid; grid-template-columns: 1fr 1fr; margin: 0 auto; border-radius: 20px; overflow: hidden; background: white; box-shadow: 0 25px 90px #03122435; }
.login-context { padding: 50px 42px 35px; background: #183754; color: #e1ecf4; min-height: 460px; display: flex; flex-direction: column; }
.login-plane { width: 74px; height: 74px; color: #80a6c1; margin-bottom: 26px; }
.login-kicker { font-size: 10px; letter-spacing: .05em; color: #b2cada; margin-bottom: 12px; }
.login-context h2 { font-size: 34px; letter-spacing: -.045em; line-height: 1.25; margin-bottom: 20px; color: white; }
.login-context > p:not(.login-kicker) { font-size: 12px; line-height: 1.8; color: #c2d4e1; }
.login-readonly { font-size: 10px; color: #a4c0d2; margin-top: auto; padding-top: 42px; }
.login-panel { padding: 55px 40px 35px; align-self: center; }
.login-panel h1 { font-size: 24px; letter-spacing: -.04em; line-height: 1.3; margin: 10px 0 14px; }
.login-panel > p:first-of-type { color: var(--muted); font-size: 12px; line-height: 1.75; margin-bottom: 28px; }
.login-field { margin-bottom: 17px; font-size: 11px; }
.login-field input { height: 44px; font-size: 13px; }
.login-submit, .google-login { width: 100%; min-height: 44px; }
.google-login { margin-bottom: 20px; }
.google-login svg { width: 16px; height: 16px; stroke: none; }
.login-feedback { font-size: 12px; color: var(--red); line-height: 1.7; margin: 18px 0 12px; }
.login-footnote { font-size: 10px; color: var(--muted); padding-top: 25px; border-top: 1px solid var(--soft-line); margin-top: 22px; }

@media (min-width:1500px) { .month-day { min-height: 170px; padding: 8px; } .flight-chip { padding: 8px 9px; } .chip-route { font-size: 12px; } .chip-meta,.chip-client { font-size: 10px; } }
@media (max-width:1150px) {
  .filter-row { flex-wrap: wrap; }
  .filter-row .field { flex-basis: 170px; }
  .filter-row .client-filter { flex-basis: 200px; }
  .check-control { margin-left: auto; }
  .month-grid { min-width: 875px; }
  .week-grid { min-width: 980px; }
  .appbar { padding-inline: 22px; }
  .nav-button { padding-inline: 15px; font-size: 12px; }
  .brand-lockup { width: 150px; }
  .agenda-row { grid-template-columns: 78px minmax(150px,1.5fr) minmax(90px,1fr) minmax(110px,1fr) 65px 85px 15px; gap: 12px; }
}
@media (max-width:800px) {
  .appbar { display: flex; flex-wrap: wrap; justify-content: space-between; padding-inline: 18px; gap: 0; }
  .brand-lockup { width: 147px; min-height: 66px; align-items: center; }
  .primary-nav { order: 3; flex-basis: 100%; justify-content: center; padding: 0 0 10px; gap: 4px; }
  .nav-button { flex: 1; min-height: 38px; }
  .appbar-actions { gap: 10px; }
  .header-icon { width: 33px; min-width: 33px; height: 35px; }
  .workspace { padding: 23px 16px 20px; }
  .page-heading { margin-bottom: 20px; }
  .page-heading h1 { font-size: 25px; }
  .heading-meta { flex-direction: column-reverse; align-items: flex-end; gap: 8px; }
  .sync-line { font-size: 9px; text-align: right; }
  .refresh-button { min-height: 34px; padding: 6px 10px; font-size: 10px; }
  .calendar-toolbar { padding: 14px; }
  .toolbar-primary { flex-wrap: wrap; gap: 13px 8px; }
  .view-switch { order: 1; }
  .view-button { padding-inline: 15px; }
  .toolbar-tools { order: 2; margin-left: auto; gap: 3px; }
  .period-nav { order: 3; justify-content: center; flex: 1 0 100%; }
  .period-nav h2 { min-width: 155px; }
  .toolbar-secondary { flex-wrap: wrap; margin-top: 13px; gap: 12px; }
  .search-control { max-width: none; flex-basis: 100%; }
  .date-controls { flex: 1 0 100%; justify-content: center; flex-wrap: wrap; gap: 8px; }
  .date-field { flex: 1; justify-content: center; }
  .date-field input { width: 100%; max-width: none; }
  .date-controls:has(#singleDateField:not([hidden])) { justify-content: center; }
  #singleDateField { flex: 0 1 260px; }
  .history-button { flex: 1 0 100%; }
  .filter-toggle { display: inline-flex; padding-inline: 9px; min-height: 36px; }
  .filter-row { display: none; border-top: 1px solid var(--soft-line); padding-top: 14px; }
  .filter-row.is-open { display: flex; }
  .filter-row .field, .filter-row .client-filter { flex: 1 0 calc(50% - 10px); width: calc(50% - 10px); }
  .check-control { margin-left: 0; flex: 1; }
  .results-bar { padding: 11px 14px; }
  .status-legend { font-size: 9px; gap: 10px; }
  .calendar-footer { align-items: start; padding-inline: 14px; flex-direction: column; font-size: 9px; gap: 5px; }
  .month-grid { min-width: 805px; }
  .month-day { min-height: 150px; }
  .month-scroller { scrollbar-width: thin; }
  .day-agenda { padding: 5px 17px 18px; }
  .agenda-row { grid-template-columns: 69px minmax(0,1fr) auto; gap: 8px 15px; position: relative; padding: 18px 0; }
  .agenda-time { grid-column: 1; grid-row: 1/3; align-self: start; }
  .agenda-route { grid-column: 2; grid-row: 1; padding-right: 5px; }
  .agenda-aircraft { grid-column: 2; grid-row: 2; display: flex; flex-direction: row; gap: 7px; flex-wrap: wrap; }
  .agenda-client { grid-column: 2; grid-row: 3; }
  .agenda-client small { display: none; }
  .agenda-pax { grid-column: 3; grid-row: 2; align-self: start; text-align: right; }
  .agenda-state { grid-column: 3; grid-row: 1; align-self: start; }
  .agenda-arrow { display: none; }
  .page-footer { font-size: 9px; }
  .login-context { padding: 38px 30px; }
  .login-panel { padding: 42px 30px; }
}
@media (max-width:540px) {
  .workspace { padding: 20px 10px 15px; }
  .page-heading { padding: 0 5px; gap: 10px; }
  .page-heading .eyebrow { font-size: 8px; }
  .page-heading p { font-size: 10px; }
  .sync-line { max-width: 155px; }
  .page-heading h1 { font-size: 26px; }
  .calendar-card { border-radius: 12px; }
  .view-button { padding: 8px 12px; font-size: 11px; min-height: 32px; }
  .toolbar-tools > .icon-button { display: none; }
  .filter-toggle { font-size: 11px; }
  .toolbar-primary { gap: 12px 4px; }
  .period-nav h2 { font-size: 15px; min-width: 150px; }
  .period-nav { gap: 1px; }
  .status-legend { gap: 8px; }
  .status-legend span { gap: 4px; }
  .legend-dot { width: 5px; height: 5px; }
  .month-grid { min-width: 760px; }
  .weekday { padding: 10px 7px; }
  .detail-dialog { border: 0; }
  .detail-head { padding: max(18px,env(safe-area-inset-top)) 18px 16px; }
  .detail-hero { padding: 20px 18px; }
  .detail-route { gap: 10px; }
  .detail-route-point strong { font-size: 18px; }
  .detail-route-point span { font-size: 10px; }
  .detail-hero-meta { gap: 12px; font-size: 10px; }
  .detail-tabs { padding-inline: 18px; gap: 17px; }
  .detail-tabs button { font-size: 10px; min-height: 47px; }
  .detail-panel { padding: 22px 18px; }
  .data-grid { gap: 15px 18px; }
  .data-pair dd { font-size: 11px; }
  .data-pair dt { font-size: 9px; }
  .detail-foot { padding-inline: 18px; }
  .money-currency { padding: 12px; }
  .money-currency p { display: grid; gap: 3px; }
  .page-footer { margin-top: 20px; padding-inline: 4px; }
  .page-footer > span:last-child { text-align: right; }
  .login-screen { padding: 30px 18px; }
  .login-brand { margin-bottom: 30px; width: 165px; }
  .login-shell { grid-template-columns: 1fr; border-radius: 16px; }
  .login-context { min-height: auto; padding: 25px; }
  .login-plane { display: none; }
  .login-kicker { margin-bottom: 8px; }
  .login-context h2 { font-size: 27px; margin-bottom: 12px; }
  .login-context h2 br { display: none; }
  .login-context > p:not(.login-kicker) { font-size: 11px; }
  .login-readonly { display: none; }
  .login-panel { padding: 32px 25px; }
  .login-panel h1 { font-size: 23px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media print { .appbar,.calendar-toolbar,.page-heading,.page-footer,.detail-dialog,.toast,.coverage-notice { display: none !important; } .workspace { padding: 0; } .calendar-card { border: 0; box-shadow: none; } .month-grid { min-width: 0; } .month-day { min-height: 130px; break-inside: avoid; } .flight-table { min-width: 0; font-size: 9px; } }
