:root {
  --ink: #172331;
  --muted: #657284;
  --line: #d5dde6;
  --panel: #ffffff;
  --soft: #f4f7fa;
  --navy: #17324d;
  --blue: #21618c;
  --green: #237a57;
  --orange: #b35c1e;
  --yellow: #fff3c4;
  --danger: #ad2f2f;
  --shadow: 0 16px 36px rgba(31, 54, 78, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef3f7;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 14px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--navy);
  color: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.brand-block {
  min-width: 240px;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 92px;
  height: 50px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 4px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #b8d3e5;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 22px;
  line-height: 1.1;
}

h2 {
  font-size: 15px;
}

.topbar-actions,
.button-row,
.backup-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.year-switcher {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.year-switcher .button.ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.year-switcher .button.active,
.year-switcher .button.secondary.active {
  background: #ffffff;
  color: var(--navy);
  border-color: #ffffff;
}

.reference-date {
  color: #dceaf3;
}

label {
  display: grid;
  gap: 6px;
  color: #344454;
  font-size: 12px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 8px 10px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 97, 140, 0.12);
}

.reference-date input {
  min-width: 160px;
  background: #ffffff;
}

.button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 8px 13px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.button.primary {
  background: var(--blue);
}

.button.secondary {
  background: #536579;
}

.button.danger {
  background: var(--danger);
}

.button.ghost {
  background: #edf3f7;
  color: var(--blue);
  border: 1px solid #c8d7e2;
}

.button.ghost.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

.button:hover {
  filter: brightness(0.95);
}

.button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.4);
  opacity: 0.6;
}

.focus-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.home-panel {
  margin: 12px 0 0;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
}

.home-action {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.home-action span,
.home-action strong {
  display: block;
}

.home-action span {
  color: var(--blue);
  font-size: 22px;
  font-weight: 900;
}

.home-action strong {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.home-action:hover,
.home-action.active {
  border-color: var(--blue);
  box-shadow: 0 16px 36px rgba(33, 97, 140, 0.16);
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.home-stat-screen {
  min-height: 260px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-stat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.home-stat-header span,
.home-stat-header strong {
  display: block;
}

.home-stat-header > div:first-child span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-stat-header > div:first-child strong {
  margin-top: 3px;
  color: var(--ink);
  font-size: 15px;
}

.home-logo-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}

.home-logo-row:not(.international):not(.mixed) .national-logo {
  display: inline-flex;
  min-width: 48px;
}

.home-logo-row.international span,
.home-logo-row.mixed span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 7px;
  border-radius: 5px;
  background: #edf3f7;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.home-logo-row.international span:nth-child(1) {
  background: #fff1de;
  color: #b35c1e;
}

.home-logo-row.international span:nth-child(2) {
  background: #e9f6f0;
  color: #237a57;
}

.home-logo-row.international span:nth-child(3) {
  background: #eaf2fb;
  color: #21618c;
}

.home-logo-row.mixed span:first-child {
  background: #eaf2fb;
  color: #21618c;
}

.home-logo-row.mixed span:last-child {
  background: #fff1de;
  color: #b35c1e;
}

.home-chart {
  position: relative;
  height: 150px;
  margin-top: 14px;
  border: 1px solid #e1e9f1;
  border-radius: 8px;
  background:
    repeating-linear-gradient(to top, transparent 0, transparent 35px, #e8eef4 36px),
    linear-gradient(180deg, #fbfdff, #f6f9fc);
  overflow: hidden;
}

.home-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 18px 18px 12px;
}

.chart-bar {
  flex: 1;
  min-width: 18px;
  border-radius: 6px 6px 2px 2px;
}

.chart-bar.latam {
  background: linear-gradient(180deg, #26377f, #17245f);
}

.chart-bar.gol {
  background: linear-gradient(180deg, #f6a735, #f47b20);
}

.chart-bar.azul {
  background: linear-gradient(180deg, #15a9df, #005daa);
}

.home-line-chart i {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(33, 97, 140, 0.35);
}

.line-segment {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  transform-origin: left center;
}

.line-segment.one {
  left: 9%;
  bottom: 35%;
  width: 31%;
  transform: rotate(14deg);
}

.line-segment.two {
  left: 39%;
  bottom: 43%;
  width: 25%;
  transform: rotate(24deg);
}

.line-segment.three {
  left: 56%;
  bottom: 65%;
  width: 33%;
  transform: rotate(7deg);
}

.home-donut-chart {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.home-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) 0 65%, var(--orange) 65% 88%, #d8e2eb 88% 100%);
}

.home-donut::after {
  position: absolute;
  content: "";
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
}

.home-donut span {
  position: relative;
  z-index: 1;
  color: var(--navy);
  font-size: 20px;
  font-weight: 900;
}

.home-donut-metrics {
  display: grid;
  gap: 9px;
}

.home-donut-metrics span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.home-donut-metrics b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}

.home-donut-metrics span:nth-child(2) b {
  background: var(--orange);
}

.home-donut-metrics span:nth-child(3) b {
  background: #9aa8b5;
}

.home-chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.advp-panel {
  margin: 12px 0 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.advp-import-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 12px;
  margin-top: 12px;
}

.advp-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.advp-file-picker {
  margin-top: 10px;
  border: 1px dashed #afbfcd;
  border-radius: 8px;
  background: #f7fafc;
}

.advp-status {
  min-height: 18px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.advp-import-summary {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
  padding-right: 3px;
}

.advp-import-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e2ebf2;
  border-radius: 8px;
  padding: 10px;
  background: #f9fbfd;
}

.advp-import-item.active {
  border-color: var(--blue);
  background: #eef6fb;
}

.advp-import-item strong,
.advp-import-item span,
.advp-import-item small {
  display: block;
}

.advp-import-item strong {
  color: var(--ink);
  font-size: 13px;
}

.advp-import-item span,
.advp-import-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.advp-preview-card {
  margin-top: 12px;
}

.advp-standard-card {
  margin-top: 12px;
}

.advp-standard-summary {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.advp-filter-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  background: #f7fafc;
  border: 1px solid #e2ebf2;
  border-radius: 8px;
}

.advp-filter-grid > * {
  min-width: 0;
}

.advp-filter-grid .button {
  align-self: end;
}

.advp-multi-filter {
  position: relative;
  align-self: end;
}

.advp-multi-filter-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd8e4;
  border-radius: 6px;
  padding: 8px 10px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.advp-multi-filter-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advp-multi-filter-button b {
  color: var(--muted);
  font-size: 11px;
}

.advp-multi-filter.open .advp-multi-filter-button {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 97, 140, 0.12);
}

.advp-multi-filter-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 20;
  display: none;
  width: min(420px, calc(100vw - 48px));
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #cbd8e4;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(31, 54, 78, 0.16);
}

.advp-multi-filter:nth-child(n + 5) .advp-multi-filter-menu {
  right: 0;
  left: auto;
}

.advp-multi-filter.open .advp-multi-filter-menu {
  display: grid;
  gap: 4px;
}

.advp-multi-filter-search {
  position: sticky;
  top: 0;
  z-index: 1;
  width: 100%;
  min-height: 42px;
  margin-bottom: 8px;
  border: 1px solid #cbd8e4;
  border-radius: 6px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.advp-multi-filter-search:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 97, 140, 0.12);
}

.advp-multi-filter-menu label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}

.advp-multi-filter-menu label:hover {
  background: #f1f6fa;
}

.advp-multi-filter-menu input {
  width: 14px;
  height: 14px;
}

.advp-multi-filter-menu p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.advp-filter-grid label small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.advp-active-filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 0;
}

.advp-filter-chip {
  min-height: 26px;
  border: 1px solid #d7e3ed;
  border-radius: 999px;
  padding: 4px 9px;
  background: #eef6fb;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.advp-filter-chip span {
  margin-left: 4px;
  color: var(--muted);
}

.advp-filter-chip.muted {
  cursor: default;
  color: var(--muted);
  background: #f2f5f8;
}

.advp-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.advp-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.advp-breakdown-card {
  border: 1px solid #e2ebf2;
  border-radius: 8px;
  padding: 10px;
  background: #f9fbfd;
}

.advp-breakdown-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
}

.advp-breakdown-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid #e8eef4;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.advp-breakdown-card div:first-of-type {
  border-top: 0;
}

.advp-breakdown-card strong {
  color: var(--blue);
}

.advp-breakdown-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.advp-dashboard-section {
  margin: 10px 0;
  border: 1px solid #e2ebf2;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.advp-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.advp-dashboard-card {
  min-height: 280px;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.advp-dashboard-card-wide {
  grid-column: span 2;
  min-height: auto;
}

.advp-executive-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 8px;
}

.advp-executive-grid article {
  border: 1px solid #dfe8f1;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.advp-executive-grid span,
.advp-executive-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.advp-executive-grid strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
}

.advp-dashboard-tabs {
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.advp-tab-radio {
  display: none;
}

.advp-tab-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  border-bottom: 1px solid #edf2f6;
  padding-bottom: 10px;
}

.advp-tab-list label {
  min-height: 34px;
  border: 1px solid #d7e3ed;
  border-radius: 999px;
  padding: 8px 13px;
  background: #f5f9fc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

#advpTabLeadTime:checked ~ .advp-tab-list label[for="advpTabLeadTime"],
#advpTabAirlines:checked ~ .advp-tab-list label[for="advpTabAirlines"],
#advpTabRoutes:checked ~ .advp-tab-list label[for="advpTabRoutes"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.advp-tab-panel {
  display: none;
}

#advpTabLeadTime:checked ~ .advp-tab-panels [data-tab-panel="leadtime"],
#advpTabAirlines:checked ~ .advp-tab-panels [data-tab-panel="airlines"],
#advpTabRoutes:checked ~ .advp-tab-panels [data-tab-panel="routes"] {
  display: block;
}

.advp-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px;
}

.advp-route-volume-card {
  min-height: auto;
}

.advp-route-volume-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.advp-route-volume-routes {
  grid-column: span 2;
}

.advp-route-volume-grid section {
  border: 1px solid #e2ebf2;
  border-radius: 8px;
  padding: 10px;
  background: #fbfdff;
}

.advp-route-volume-grid h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.advp-route-volume-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 178px;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid #edf2f6;
}

.advp-route-volume-row:first-of-type {
  border-top: 0;
}

.advp-route-volume-row span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.advp-route-volume-row span b,
.advp-route-volume-row span small {
  display: block;
}

.advp-route-volume-row span small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.advp-route-volume-row strong {
  color: var(--blue);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.advp-route-volume-row em {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: #e8f0f6;
  overflow: hidden;
}

.advp-route-volume-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #4d96bd);
}

.advp-dashboard-title,
.advp-dashboard-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.advp-dashboard-title h3 {
  margin: 0;
  color: #1f5d49;
  font-size: 15px;
  font-weight: 900;
}

.advp-dashboard-title span,
.advp-dashboard-legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.advp-dashboard-legend {
  justify-content: flex-end;
  margin: 8px 0;
}

.advp-dashboard-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.advp-dashboard-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.advp-comparison-board {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(420px, 1.7fr);
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf2f6;
}

.advp-comparison-summary {
  display: grid;
  gap: 8px;
  align-content: start;
}

.advp-comparison-summary article {
  display: grid;
  gap: 6px;
  border: 1px solid #e2ebf2;
  border-radius: 8px;
  padding: 9px;
  background: #f8fbfd;
}

.advp-comparison-summary article > div,
.advp-comparison-row {
  display: grid;
  align-items: center;
  gap: 8px;
}

.advp-comparison-summary article > div {
  grid-template-columns: minmax(0, 1fr) auto;
}

.advp-comparison-summary strong,
.advp-comparison-row strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.advp-comparison-summary strong i,
.advp-comparison-row strong i {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.advp-comparison-summary b {
  color: var(--blue);
  font-size: 12px;
}

.advp-total-track {
  height: 8px;
  border-radius: 999px;
  background: #e8f0f6;
  overflow: hidden;
}

.advp-total-track em {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.advp-comparison-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.advp-comparison-table {
  overflow-x: auto;
  border: 1px solid #e2ebf2;
  border-radius: 8px;
  background: #ffffff;
}

.advp-comparison-detail {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.advp-comparison-line-card {
  border: 1px solid #e2ebf2;
  border-radius: 8px;
  padding: 8px 10px 4px;
  background: #fbfdff;
}

.advp-comparison-line-svg {
  display: block;
  width: 100%;
  height: 160px;
}

.advp-comparison-line-svg .grid {
  stroke: #e7eef5;
  stroke-width: 1;
}

.advp-comparison-line-svg .axis {
  stroke: #cbd8e4;
  stroke-width: 1.4;
}

.advp-comparison-line-svg path {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advp-comparison-line-svg circle {
  stroke: #ffffff;
  stroke-width: 2;
}

.advp-comparison-line-svg text {
  fill: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.advp-comparison-row {
  grid-template-columns: minmax(100px, 1fr) 78px repeat(3, minmax(105px, 1fr));
  min-width: 650px;
  padding: 8px 10px;
  border-top: 1px solid #edf2f6;
}

.advp-comparison-row:first-child {
  border-top: 0;
}

.advp-comparison-head {
  background: var(--navy);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.advp-comparison-row > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.advp-comparison-row.advp-comparison-head > span,
.advp-comparison-row.advp-comparison-head > strong {
  color: #ffffff;
}

.advp-standard-table th,
.advp-preview-table th {
  color: #ffffff;
}

.advp-comparison-cell {
  position: relative;
  display: grid;
  gap: 2px;
  min-height: 34px;
  padding-bottom: 8px;
}

.advp-comparison-cell b {
  color: var(--ink);
  font-size: 12px;
}

.advp-comparison-cell small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.advp-comparison-cell em {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 5px;
  border-radius: 999px;
  opacity: 0.75;
}

.advp-percent-chart,
.advp-stacked-chart {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 18px;
  height: 190px;
  padding: 18px 12px 8px;
  border-top: 1px solid #edf2f6;
  background: repeating-linear-gradient(to top, transparent 0, transparent 43px, #ecf1f5 44px);
}

.advp-percent-bar,
.advp-stacked-column {
  display: grid;
  grid-template-rows: 1fr auto auto;
  justify-items: center;
  gap: 4px;
  width: 72px;
  height: 100%;
}

.advp-percent-bar > span,
.advp-stacked-bar {
  align-self: end;
  width: 34px;
  border-radius: 5px 5px 2px 2px;
  background: #009b72;
}

.advp-percent-bar strong,
.advp-stacked-column strong {
  color: var(--ink);
  font-size: 12px;
}

.advp-percent-bar small,
.advp-stacked-column small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.advp-stacked-bar {
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
  background: #edf3f7;
}

.advp-stacked-bar span {
  display: block;
  width: 100%;
}

.advp-line-svg {
  width: 100%;
  min-height: 260px;
  margin-top: 8px;
  border-top: 1px solid #edf2f6;
}

.advp-line-svg line {
  stroke: #ccd8e2;
  stroke-width: 1.5;
}

.advp-line-svg line.grid {
  stroke: #e8eef4;
  stroke-width: 1;
}

.advp-line-svg path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advp-line-svg text {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.advp-leadtime-card {
  margin: 10px 0;
  border: 1px solid #e2ebf2;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.advp-leadtime-chart {
  margin-top: 10px;
}

.advp-leadtime-bars {
  display: grid;
  gap: 10px;
}

.advp-leadtime-bar {
  display: grid;
  gap: 6px;
}

.advp-leadtime-bar > div:first-child,
.advp-leadtime-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.advp-leadtime-bar strong {
  color: var(--ink);
  font-size: 13px;
}

.advp-leadtime-bar span,
.advp-leadtime-footer {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.advp-leadtime-track {
  height: 16px;
  border-radius: 999px;
  background: #edf3f7;
  overflow: hidden;
}

.advp-leadtime-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #4d96bd);
}

.advp-leadtime-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e8eef4;
}

.advp-leadtime-footer .warning {
  color: var(--orange);
}

.advp-destination-card {
  margin: 10px 0;
  border: 1px solid #e2ebf2;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.advp-destination-card:empty {
  display: none;
}

.advp-destination-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
}

.advp-destination-airline {
  border: 1px solid #e2ebf2;
  border-radius: 8px;
  padding: 10px;
  background: #fbfdff;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.advp-destination-airline:hover,
.advp-destination-airline:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 8px 18px rgba(34, 95, 139, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.advp-destination-airline.active {
  border-color: var(--blue);
  background: #eef7fd;
}

.advp-destination-head,
.advp-destination-leader {
  display: grid;
  gap: 2px;
}

.advp-destination-head span,
.advp-destination-leader span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.advp-destination-head strong {
  color: var(--ink);
  font-size: 18px;
}

.advp-destination-head small,
.advp-destination-leader small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.advp-destination-leader {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e8eef4;
}

.advp-destination-leader strong {
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
}

.advp-destination-leader em {
  height: 7px;
  margin-top: 4px;
  border-radius: 999px;
  background: #e8f0f6;
  overflow: hidden;
}

.advp-destination-leader i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #4d96bd);
}

.advp-destination-list {
  margin-top: 8px;
}

.advp-destination-list div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid #edf2f6;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.advp-destination-list strong {
  color: var(--blue);
  white-space: nowrap;
}

.advp-origin-destination-card {
  margin: 10px 0;
  border: 1px solid #e2ebf2;
  border-radius: 8px;
  padding: 10px;
  background: #ffffff;
}

.advp-origin-destination-card:empty {
  display: none;
}

.advp-cross-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
}

.advp-cross-grid article {
  border: 1px solid #e2ebf2;
  border-radius: 8px;
  padding: 10px;
  background: #fbfdff;
}

.advp-cross-grid h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.advp-cross-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 120px;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid #edf2f6;
}

.advp-cross-row:first-of-type {
  border-top: 0;
}

.advp-cross-row span b,
.advp-cross-row span small {
  display: block;
}

.advp-cross-row span b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.advp-cross-row span small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.advp-cross-row strong {
  color: var(--blue);
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

.advp-cross-row em {
  grid-column: 1 / -1;
  height: 7px;
  border-radius: 999px;
  background: #e8f0f6;
  overflow: hidden;
}

.advp-cross-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #4d96bd);
}

.advp-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #eaf2fb;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.advp-chip.positive {
  background: #e7f4ee;
  color: var(--green);
}

.advp-chip.warning {
  background: #fff1de;
  color: var(--orange);
}

.advp-chip.muted {
  background: #eef3f7;
  color: var(--muted);
}

.advp-standard-table {
  max-height: 420px;
}

.advp-standard-table table {
  min-width: 980px;
}

.advp-table-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.advp-preview-table {
  margin-top: 10px;
  max-height: 360px;
}

.advp-preview-table table {
  min-width: 720px;
}

.advp-empty {
  display: grid;
  gap: 8px;
  min-height: 120px;
  align-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.advp-empty strong {
  color: var(--blue);
  font-size: 26px;
}

body.home-view .focus-strip,
body.home-view .summary-strip,
body.home-view .tabs,
body.home-view .tab-panel,
body.home-view #meta2026Panel,
body.home-view #yearComparisonPanel,
body.home-view #performancePanel,
body.home-view #advpPanel,
body.home-view #executiveDashPanel,
body.home-view .reference-date,
body.home-view #todayButton,
body.advp-view .focus-strip,
body.advp-view .summary-strip,
body.advp-view .tabs,
body.advp-view .tab-panel,
body.advp-view #meta2026Panel,
body.advp-view #yearComparisonPanel,
body.advp-view #performancePanel,
body.advp-view #homePanel,
body.advp-view #executiveDashPanel,
body.advp-view .reference-date,
body.advp-view #todayButton,
body.executive-dash-view .focus-strip,
body.executive-dash-view .summary-strip,
body.executive-dash-view .tabs,
body.executive-dash-view .tab-panel,
body.executive-dash-view #meta2026Panel,
body.executive-dash-view #yearComparisonPanel,
body.executive-dash-view #performancePanel,
body.executive-dash-view #homePanel,
body.executive-dash-view #advpPanel {
  display: none !important;
}

#executiveDashPanel[hidden],
body:not(.executive-dash-view) #executiveDashPanel {
  display: none !important;
}

.executive-dash-panel {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.executive-dash-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 220px 260px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #0b2747, #123e68);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.executive-dash-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.executive-plane-mark {
  display: grid;
  width: 64px;
  height: 58px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b86bd, #063d7a);
  color: #ffffff;
  font-size: 18px;
  font-weight: 1000;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.executive-dash-title h2 {
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.executive-dash-title p,
.executive-period-box span {
  margin: 5px 0 0;
  color: #b8dff4;
  font-weight: 900;
}

.executive-month-control {
  color: #dceaf3;
}

.executive-period-box {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.executive-period-box strong {
  font-size: 18px;
}

.executive-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 10px;
}

.executive-top-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.executive-top-summary article {
  min-height: 86px;
  padding: 12px;
  border: 1px solid #dbe6ef;
  border-left: 5px solid var(--blue);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.executive-top-summary article.positive {
  border-left-color: var(--green);
}

.executive-top-summary article.negative {
  border-left-color: var(--danger);
}

.executive-top-summary span,
.executive-top-summary small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.executive-top-summary strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: clamp(16px, 1.15vw, 22px);
  line-height: 1.1;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.executive-top-summary article.positive strong {
  color: var(--green);
}

.executive-top-summary article.negative strong {
  color: var(--danger);
}

.executive-kpi-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 104px;
  padding: 11px;
  border: 1px solid #dbe6ef;
  border-bottom: 4px solid var(--blue);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.executive-kpi-card.green {
  border-bottom-color: #1c9a45;
}

.executive-kpi-card.purple {
  border-bottom-color: #6f2dbd;
}

.executive-kpi-card.teal {
  border-bottom-color: #008c99;
}

.executive-kpi-card.gold {
  border-bottom-color: #d9a400;
}

.executive-kpi-card.red {
  border-bottom-color: var(--danger);
}

.executive-kpi-badge {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #0b5cab;
  color: #ffffff;
  font-size: 17px;
  font-weight: 1000;
}

.executive-kpi-card.green .executive-kpi-badge {
  background: #1c9a45;
}

.executive-kpi-card.purple .executive-kpi-badge {
  background: #6f2dbd;
}

.executive-kpi-card.teal .executive-kpi-badge {
  background: #008c99;
}

.executive-kpi-card.gold .executive-kpi-badge {
  background: #d9a400;
}

.executive-kpi-card.red .executive-kpi-badge {
  background: var(--danger);
}

.executive-kpi-card div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.executive-kpi-card span:not(.executive-kpi-badge),
.executive-kpi-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.executive-kpi-card strong {
  display: block;
  color: #0b5cab;
  font-size: clamp(16px, 1.15vw, 22px);
  line-height: 1.1;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.executive-kpi-card strong .trend-arrow {
  display: inline-block;
  margin-left: 7px;
  vertical-align: middle;
}

.executive-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(160px, 1fr));
  gap: 10px;
}

.executive-chart-card {
  grid-column: span 2;
  min-width: 0;
  min-height: 290px;
  padding: 12px;
  border: 1px solid #dbe6ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.executive-chart-card.wide {
  grid-column: span 3;
}

.executive-chart-card.full {
  grid-column: 1 / -1;
}

.executive-chart-card.table-card {
  grid-column: span 3;
}

.executive-chart-card.daily-card {
  grid-column: 1 / -1;
}

.executive-chart-card.payment-card {
  grid-column: 1 / -1;
  min-height: auto;
}

.executive-chart-card.evolution-card {
  min-height: 278px;
}

.executive-line-svg {
  display: block;
  width: 100%;
  min-height: 230px;
}

.executive-evolution-svg {
  display: block;
  width: 100%;
  min-height: 190px;
}

.executive-evolution-svg .grid {
  stroke: #d9e3ec;
  stroke-dasharray: 4 4;
}

.executive-evolution-svg .axis {
  stroke: #b9c8d6;
}

.executive-evolution-svg text {
  fill: #5f7081;
  font-size: 11px;
  font-weight: 800;
}

.executive-evolution-svg .axis-title {
  fill: var(--ink);
  font-size: 12px;
}

.executive-evolution-svg .daily-bar {
  fill: #1c6da1;
}

.executive-evolution-svg .current-bar {
  fill: #0b5cab;
}

.executive-evolution-svg .previous-bar {
  fill: #e37b2d;
  opacity: 0.82;
}

.executive-evolution-svg .current-area {
  fill: rgba(28, 109, 161, 0.12);
}

.executive-evolution-svg .current-line {
  stroke: #0b5cab;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.executive-evolution-svg .current-point {
  fill: #0b5cab;
  stroke: #ffffff;
  stroke-width: 2;
}

.executive-evolution-svg .value-label,
.executive-evolution-svg .cumulative-label {
  fill: var(--ink);
  font-size: 11px;
  font-weight: 1000;
}

.executive-evolution-svg .cumulative-line {
  stroke: #c56b23;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.executive-evolution-svg .cumulative-point {
  fill: #c56b23;
  stroke: #ffffff;
  stroke-width: 2;
}

.executive-evolution-svg .previous-line {
  stroke: #e37b2d;
  stroke-width: 3;
  stroke-dasharray: 7 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.executive-evolution-svg .previous-point {
  fill: #e37b2d;
  stroke: #ffffff;
  stroke-width: 1.5;
}

.executive-evolution-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin: 4px 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.executive-evolution-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.executive-evolution-legend i {
  display: inline-block;
  width: 18px;
  height: 10px;
  border-radius: 3px;
}

.executive-evolution-legend .bar {
  background: #1c6da1;
}

.executive-evolution-legend .line {
  height: 4px;
  background: #0b5cab;
}

.executive-evolution-legend .previous {
  height: 4px;
  background: #e37b2d;
}

.executive-evolution-legend strong {
  color: var(--blue);
}

.executive-evolution-summary,
.executive-ticket-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 6px;
  margin-top: 4px;
}

.executive-evolution-summary span,
.executive-ticket-summary span {
  display: grid;
  gap: 3px;
  padding: 7px 9px;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  background: #f8fbfd;
}

.executive-evolution-summary small,
.executive-ticket-summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.executive-evolution-summary strong,
.executive-ticket-summary strong {
  color: var(--ink);
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 1000;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.executive-evolution-summary .positive strong {
  color: var(--green);
}

.executive-evolution-summary .negative strong {
  color: var(--danger);
}

.executive-ticket-summary .total {
  border-left: 4px solid #6f2dbd;
}

.executive-ticket-summary .national {
  border-left: 4px solid #1c9a45;
}

.executive-ticket-summary .international {
  border-left: 4px solid #008c99;
}

.executive-ticket-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 10px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.executive-ticket-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.executive-ticket-legend i {
  width: 18px;
  height: 4px;
  border-radius: 99px;
}

.executive-ticket-svg {
  display: block;
  width: 100%;
  min-height: 250px;
}

.executive-ticket-svg .grid {
  stroke: #d9e3ec;
  stroke-dasharray: 4 4;
}

.executive-ticket-svg .axis {
  stroke: #b9c8d6;
}

.executive-ticket-svg text {
  fill: #596a7c;
  font-size: 11px;
  font-weight: 800;
}

.executive-chart-card.insight-card {
  min-height: auto;
}

.executive-insight-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.executive-insight-list li {
  position: relative;
  padding: 9px 10px 9px 30px;
  border: 1px solid #e3ebf2;
  border-radius: 8px;
  background: #f8fbfd;
  color: var(--ink);
  font-weight: 800;
}

.executive-insight-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.executive-line-svg .grid {
  stroke: #d9e3ec;
  stroke-dasharray: 4 4;
}

.executive-line-svg .axis {
  stroke: #b9c8d6;
}

.executive-line-svg text {
  fill: #596a7c;
  font-size: 11px;
  font-weight: 800;
}

.executive-line-svg .point-label {
  fill: var(--ink);
  font-size: 10px;
}

.executive-pie-wrap {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 220px;
}

.executive-pie {
  display: grid;
  width: 160px;
  height: 160px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#008c99 calc(var(--international) * 1%), #d9a400 0);
  color: #ffffff;
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.1);
}

.executive-pie strong,
.executive-pie span {
  grid-column: 1;
  grid-row: 1;
}

.executive-pie strong {
  align-self: center;
  font-size: 26px;
}

.executive-pie span {
  align-self: end;
  margin-bottom: 44px;
  font-size: 12px;
  font-weight: 900;
}

.executive-airline-share-wrap {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 220px;
}

.executive-airline-pie {
  display: grid;
  width: 160px;
  height: 160px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.14);
}

.executive-airline-pie strong,
.executive-airline-pie span {
  grid-column: 1;
  grid-row: 1;
  text-align: center;
}

.executive-airline-pie strong {
  align-self: center;
  max-width: 112px;
  font-size: 16px;
  line-height: 1.1;
}

.executive-airline-pie span {
  align-self: end;
  margin-bottom: 42px;
  font-size: 11px;
  font-weight: 900;
}

.executive-airline-share-list {
  display: grid;
  gap: 8px;
}

.executive-airline-share-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #e3ebf2;
  font-size: 12px;
  font-weight: 900;
}

.executive-airline-share-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.executive-airline-share-row i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.executive-airline-share-row strong {
  color: var(--blue);
}

.executive-airline-share-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 800;
}

.executive-airline-empty {
  min-height: 210px;
}

.executive-pie-legend,
.executive-segment-legend {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.executive-pie-legend span,
.executive-segment-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.executive-pie-legend strong {
  margin-left: auto;
  color: var(--blue);
}

.executive-pie-legend i,
.executive-segment-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.executive-pie-legend i.international,
.executive-segment-legend i.international {
  background: #008c99;
}

.executive-pie-legend i.national,
.executive-segment-legend i.national {
  background: #1c9a45;
}

.executive-segment-legend i.total {
  background: #0b5cab;
}

.executive-segment-legend {
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  margin-bottom: 10px;
}

.executive-segment-chart,
.executive-mini-bar-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 230px;
  overflow-x: auto;
  padding: 8px 4px 0;
  scrollbar-width: thin;
}

.executive-segment-day,
.executive-mini-bar {
  display: grid;
  min-width: 44px;
  gap: 6px;
  justify-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.executive-segment-bars,
.executive-mini-bar em {
  display: flex;
  align-items: end;
  gap: 3px;
  width: 38px;
  height: 176px;
  border-bottom: 1px solid #b9c8d6;
}

.executive-segment-bars i,
.executive-mini-bar i {
  display: block;
  width: 10px;
  border-radius: 3px 3px 0 0;
}

.executive-segment-bars .national {
  background: #1c9a45;
}

.executive-segment-bars .international {
  background: #008c99;
}

.executive-segment-bars .total {
  background: #0b5cab;
}

.executive-mini-bar em {
  justify-content: center;
}

.executive-mini-bar i {
  width: 22px;
}

.executive-mini-bar strong {
  color: var(--blue);
  font-size: 11px;
}

.executive-table-wrap {
  max-height: 290px;
}

.executive-daily-table-wrap {
  max-height: 360px;
}

.executive-daily-table-wrap table {
  min-width: 1120px;
}

.executive-table-wrap td {
  vertical-align: middle;
}

.executive-daily-sale-input {
  width: 100%;
  min-width: 118px;
  min-height: 30px;
  border: 1px solid #cbd7e5;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  text-align: right;
}

.executive-daily-sale-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 111, 166, 0.14);
  outline: none;
}

.executive-payment-table-wrap {
  max-height: none;
}

.executive-payment-table-wrap table {
  min-width: 980px;
}

.executive-payment-input {
  min-width: 112px;
}

.executive-table-wrap .total-row td {
  background: var(--navy);
  color: #ffffff;
  font-weight: 900;
}

.metric-card {
  min-height: 70px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid #7b8794;
  border-radius: 8px;
  padding: 10px;
  box-shadow: var(--shadow);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.metric-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.metric-card.accent-blue {
  border-left-color: var(--blue);
}

.metric-card.accent-green {
  border-left-color: var(--green);
}

.metric-card.accent-orange {
  border-left-color: var(--orange);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.meta-panel {
  margin: 0 0 10px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px;
  padding-top: 10px;
}

.meta-executive-grid {
  grid-template-columns: repeat(6, minmax(130px, 1fr));
}

.meta-filter-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 0 0;
}

.meta-filter-bar > span {
  padding-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.meta-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-heading {
  align-items: center;
}

.meta-heading > div {
  display: grid;
  gap: 3px;
}

.meta-heading h2 {
  margin: 0;
}

.meta-source-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6fb;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.meta-columns {
  display: grid;
  grid-template-columns: minmax(600px, 1.2fr) minmax(360px, 0.8fr);
  gap: 10px;
  margin-top: 10px;
}

.meta-primary-column,
.meta-secondary-column {
  display: grid;
  gap: 10px;
  align-content: start;
}

.meta-section {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.meta-columns .meta-section {
  margin-top: 0;
}

.meta-section > .section-heading {
  padding: 9px 12px;
}

.meta-table {
  min-width: 940px;
}

.meta-segment-table {
  min-width: 520px;
}

.meta-result-table {
  min-width: 860px;
}

.meta-revenue-table {
  min-width: 780px;
}

.meta-performance-table {
  min-width: 1240px;
}

.meta-performance-section {
  border-left: 4px solid var(--blue);
}

.meta-performance-section .section-heading {
  background: #f8fbfd;
}

.meta-backends-table {
  min-width: 980px;
}

.meta-revenue-input {
  width: 118px;
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid #cdd9e3;
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.meta-revenue-input:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(31, 109, 158, 0.16);
}

.backend-detail-cell {
  min-width: 560px;
  text-align: left !important;
}

.backend-entry-list {
  display: grid;
  gap: 6px;
}

.backend-entry-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 130px auto;
  gap: 6px;
  align-items: center;
}

.backend-name-input,
.backend-value-input {
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid #cdd9e3;
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.backend-value-input {
  text-align: right;
}

.backend-name-input:focus,
.backend-value-input:focus {
  border-color: var(--blue);
  outline: 2px solid rgba(31, 109, 158, 0.16);
}

.backend-add-button {
  min-width: 34px;
  min-height: 28px;
  padding: 4px 8px;
  font-size: 16px;
  line-height: 1;
}

.backend-delete-button {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 11px;
}

.meta-ranking-table,
.meta-detail-table {
  min-width: 1560px;
}

.meta-table td:first-child,
.meta-table th:first-child {
  text-align: left;
}

.meta-monthly-table td,
.meta-monthly-table th,
.meta-segment-table td,
.meta-segment-table th {
  padding-top: 7px;
  padding-bottom: 7px;
}

.meta-total-cell,
.meta-share-cell,
.meta-rc-cell {
  color: var(--blue);
  font-weight: 900;
}

.meta-delta {
  color: var(--muted);
  font-weight: 900;
}

.meta-delta.positive {
  color: var(--green);
}

.meta-delta.negative {
  color: var(--danger);
}

.meta-table tr.meta-row-positive td {
  background: #f0faf5 !important;
}

.meta-table tr.meta-row-negative td {
  background: #fff4f2 !important;
}

.meta-base-name {
  color: var(--text);
  font-weight: 900;
}

.meta-grand-total td,
.meta-total-row td {
  background: #eef6fb !important;
  color: var(--navy);
  font-weight: 900;
}

.meta-base-start td,
.meta-base-start .meta-base-group {
  border-top: 2px solid #bfd0dd;
}

.meta-base-group {
  min-width: 126px;
  text-align: left !important;
  vertical-align: top;
  background: #f8fbfd !important;
}

.meta-base-group strong,
.meta-base-group small {
  display: block;
  margin-top: 5px;
}

.meta-base-group small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.meta-metric-cell {
  color: var(--muted);
  font-weight: 900;
  text-align: left !important;
}

.year-comparison-panel {
  margin: 0 0 10px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.year-comparison-table {
  min-width: 1040px;
}

.performance-panel {
  margin: 0 0 10px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.performance-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px));
  gap: 10px;
  padding-top: 10px;
}

.performance-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.performance-executive-grid,
.performance-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.performance-executive-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--muted);
  border-radius: 8px;
  background: #ffffff;
}

.performance-executive-card.good {
  border-left-color: var(--green);
}

.performance-executive-card.warning {
  border-left-color: var(--orange);
}

.performance-executive-card.danger {
  border-left-color: var(--danger);
}

.performance-executive-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.performance-executive-heading h3 {
  margin: 0;
  font-size: 16px;
}

.performance-executive-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.performance-semaphore {
  min-width: 96px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.performance-semaphore.good {
  background: #dff3e9;
  color: var(--green);
}

.performance-semaphore.warning {
  background: var(--yellow);
  color: var(--orange);
}

.performance-semaphore.danger {
  background: #f8dddd;
  color: var(--danger);
}

.performance-executive-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.performance-mini-metric {
  min-height: 78px;
  padding: 9px;
  border: 1px solid #e3eaf1;
  border-radius: 7px;
  background: #f9fbfd;
}

.performance-mini-metric span,
.performance-mini-metric small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.performance-mini-metric strong {
  display: block;
  margin: 3px 0;
  font-size: 17px;
  font-weight: 950;
}

.performance-section {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.performance-section > .section-heading {
  padding: 9px 12px;
  background: #f8fbfd;
}

.performance-table {
  min-width: 1280px;
}

.performance-chart-section {
  margin-top: 0;
}

.performance-productivity-chart {
  min-height: 230px;
}

.performance-chart-bar.good {
  fill: var(--green);
}

.performance-chart-bar.warning {
  fill: var(--orange);
}

.performance-chart-bar.danger {
  fill: var(--danger);
}

.performance-target-line {
  stroke: var(--navy);
  stroke-width: 2.4;
  stroke-dasharray: 7 5;
}

.performance-target-label {
  fill: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.year-comparison-panel .section-heading {
  align-items: end;
}

.year-comparison-panel .section-heading p {
  text-align: left;
}

.year-comparison-filter {
  display: grid;
  gap: 6px;
  min-width: min(560px, 100%);
}

.year-comparison-filter > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.year-comparison-filter-actions,
.year-comparison-months {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.year-comparison-filter-actions .button {
  min-height: 30px;
  padding: 5px 9px;
}

.month-toggle {
  min-width: 42px;
  min-height: 30px;
  border: 1px solid #c8d7e2;
  border-radius: 6px;
  background: #edf3f7;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.month-toggle.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

.year-comparison-executive-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.year-executive-card {
  min-height: 82px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid #7b8794;
  border-radius: 8px;
  background: #f9fbfd;
}

.year-executive-card.positive {
  border-left-color: var(--green);
}

.year-executive-card.negative {
  border-left-color: var(--danger);
}

.year-executive-card span,
.year-executive-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.year-executive-card strong {
  display: block;
  margin: 5px 0 3px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.year-executive-card.positive strong {
  color: var(--green);
}

.year-executive-card.negative strong {
  color: var(--danger);
}

.year-delta {
  font-weight: 900;
}

.year-delta.positive {
  color: var(--green);
}

.year-delta.negative {
  color: var(--danger);
}

.muted-value {
  color: var(--muted);
  font-weight: 800;
}

.summary-card {
  min-height: 64px;
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.summary-card span,
.summary-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.summary-card strong {
  display: block;
  margin: 4px 0 2px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.1;
}

.summary-card strong.positive,
.comparison-summary-card.positive strong {
  color: var(--green);
}

.summary-card strong.negative,
.comparison-summary-card.negative strong {
  color: var(--danger);
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 10px;
  background: #dfe8ef;
  border: 1px solid #cad7e1;
  border-radius: 8px;
}

.tab-button {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 7px 14px;
  background: transparent;
  color: #395067;
  font-weight: 800;
  cursor: pointer;
}

.tab-button.active {
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(23, 50, 77, 0.12);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.daily-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.daily-view-toolbar .button {
  min-height: 34px;
  padding: 7px 12px;
}

.daily-view-toolbar .button.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

body.daily-tab-active.daily-wide-mode .focus-strip,
body.daily-wide-mode #entryForm,
body.daily-wide-mode #tab-daily > .entries-panel:last-of-type {
  display: none;
}

body.entry-form-hidden #entryForm {
  display: none;
}

body.comparisons-hidden #dailyComparisonsPanel,
body.airlines-hidden #airlinePanel,
body.international-airlines-hidden #internationalAirlinePanel,
body.saved-entries-hidden #savedEntriesPanel {
  display: none;
}

body.daily-wide-mode #tab-daily .workspace-grid,
body.entry-form-hidden #tab-daily .workspace-grid {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-grid,
.holiday-layout,
.backup-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.entry-form,
.monthly-panel,
.entries-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.entry-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.entry-form.compact {
  align-content: start;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4ebf1;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.section-title-with-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.national-logo-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.national-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.national-logo-button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.national-logo-button:hover,
.national-logo-button:focus-visible,
.national-logo-button.active {
  outline: 2px solid rgba(25, 98, 145, 0.24);
  outline-offset: 2px;
  filter: saturate(1.08) brightness(1.02);
}

.national-logo-latam {
  background: linear-gradient(135deg, #17245f 0%, #17245f 62%, #c51b7d 62%, #c51b7d 100%);
}

.national-logo-gol {
  background: linear-gradient(135deg, #f47b20, #f4a326);
  color: #ffffff;
}

.national-logo-azul {
  background: linear-gradient(135deg, #005daa, #14a7e0);
}

.national-airline-heading {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.national-airline-heading .national-logo {
  min-width: 44px;
  height: 18px;
  padding: 0 6px;
  font-size: 9px;
}

.national-airline-name {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.national-airline-charts {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.national-airline-charts .section-heading {
  padding: 0 0 8px;
}

.national-airline-charts .section-heading h3 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 15px;
}

.national-airline-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 10px;
}

.form-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.airline-inputs {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: #f7fbf7;
  border: 1px solid #d7e8d8;
  border-radius: 8px;
}

.mini-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.mini-heading span {
  color: #214d3a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-heading small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.monthly-panel,
.entries-panel {
  overflow: hidden;
}

.monthly-panel > .section-heading,
.entries-panel > .section-heading {
  padding: 9px 12px;
}

.international-import-panel {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid #e4ebf1;
  background: #f8fbfd;
}

.international-import-fields {
  display: grid;
  grid-template-columns: 160px minmax(220px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.international-import-fields .button-row {
  justify-content: flex-end;
}

.import-status {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.international-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 9px 12px;
  border-bottom: 1px solid #e4ebf1;
  background: #ffffff;
}

.international-region-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.international-filter-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.international-filter-panel {
  padding: 10px 12px;
  border-bottom: 1px solid #e4ebf1;
  background: #f8fbfd;
}

.international-filter-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 8px;
}

.international-filter-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 6px;
  max-height: 230px;
  overflow: auto;
  padding-right: 4px;
}

.international-filter-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid #dce5ed;
  border-radius: 6px;
  background: #ffffff;
}

.international-filter-option input {
  width: auto;
  min-height: auto;
}

.international-filter-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.international-filter-option strong {
  color: var(--blue);
  font-size: 12px;
  white-space: nowrap;
}

.empty-filter {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.entries-panel {
  margin-top: 10px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  min-width: 860px;
}

th,
td {
  border-bottom: 1px solid #e0e7ee;
  padding: 5px 8px;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.15;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--navy);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.15;
}

td {
  background: #ffffff;
  font-size: 13px;
}

tbody tr:nth-child(even) td {
  background: #f8fbfd;
}

tr.period-row td {
  border-top: 2px solid #b8c7d4;
  background: #f6f9fc !important;
  color: var(--navy);
  font-weight: 900;
}

tr.total-row td {
  border-top: 2px solid var(--navy);
  background: #eaf3f9 !important;
  color: var(--navy);
  font-weight: 900;
}

th:first-child,
td:first-child {
  text-align: left;
}

.airline-table {
  min-width: 2260px;
}

.airline-table.year-comparison-mode {
  min-width: 1240px;
}

.airline-table.year-comparison-mode th,
.airline-table.year-comparison-mode td,
.international-airline-table.year-comparison-mode th,
.international-airline-table.year-comparison-mode td {
  white-space: nowrap;
}

.national-airline-table th:nth-child(7),
.national-airline-table td:nth-child(7),
.national-airline-table th:nth-child(13),
.national-airline-table td:nth-child(13) {
  border-right: 2px dotted #9fb3c4;
  padding-right: 14px;
}

.national-airline-table th:nth-child(8),
.national-airline-table td:nth-child(8),
.national-airline-table th:nth-child(14),
.national-airline-table td:nth-child(14) {
  padding-left: 14px;
}

.national-airline-table.year-comparison-mode th,
.national-airline-table.year-comparison-mode td {
  border-right: 0;
  padding-left: 8px;
  padding-right: 8px;
}

.international-airline-table {
  min-width: 1280px;
}

.international-airline-table.year-comparison-mode {
  min-width: 1640px;
}

.international-airline-table:not(.result-view) th:first-child,
.international-airline-table:not(.result-view) td:first-child {
  width: 300px;
  min-width: 300px;
}

.international-airline-table.year-comparison-mode:not(.result-view) th:first-child,
.international-airline-table.year-comparison-mode:not(.result-view) td:first-child {
  width: 78px;
  min-width: 78px;
  text-align: center;
}

.international-airline-table.year-comparison-mode:not(.result-view) th:nth-child(2),
.international-airline-table.year-comparison-mode:not(.result-view) td:nth-child(2) {
  width: 280px;
  min-width: 280px;
  text-align: left;
}

.international-airline-table:not(.result-view) th:nth-child(2),
.international-airline-table:not(.result-view) td:nth-child(2) {
  width: 120px;
  min-width: 120px;
  padding-left: 6px;
  text-align: left;
}

.international-airline-table:not(.result-view) th:nth-child(3),
.international-airline-table:not(.result-view) td:nth-child(3) {
  width: 90px;
  min-width: 90px;
}

.international-airline-table.year-comparison-mode:not(.result-view) th:nth-child(3),
.international-airline-table.year-comparison-mode:not(.result-view) td:nth-child(3) {
  width: auto;
  min-width: 120px;
}

.international-airline-table.result-view {
  min-width: 1900px;
}

.entries-table {
  min-width: 1360px;
}

.entries-table th:nth-child(3),
.entries-table td:nth-child(3),
.entries-table th:nth-child(5),
.entries-table td:nth-child(5),
.entries-table th:nth-child(7),
.entries-table td:nth-child(7),
.entries-table th:nth-child(9),
.entries-table td:nth-child(9),
.entries-table th:nth-child(11),
.entries-table td:nth-child(11),
.entries-table th:nth-child(13),
.entries-table td:nth-child(13) {
  width: 58px;
  min-width: 58px;
  padding-left: 4px;
  padding-right: 6px;
  text-align: center;
}

.market-share-value {
  color: var(--blue);
  font-weight: 900;
}

.trend-value {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.trend-arrow {
  width: 0;
  height: 0;
  flex: 0 0 auto;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.trend-arrow.trend-up {
  border-bottom: 8px solid var(--green);
}

.trend-arrow.trend-down {
  border-top: 8px solid var(--danger);
}

.best-final-margin {
  color: var(--green);
  font-weight: 900;
}

.ranked-airline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 2px 5px;
  border-radius: 6px;
  background: #e8f1f8;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.status {
  display: inline-flex;
  min-width: 84px;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
}

.status.active {
  background: #e2f3ec;
  color: #176046;
}

.status.future {
  background: #edf1f5;
  color: #596b7d;
}

.status.closed {
  background: #e7edf8;
  color: #254d84;
}

.status.risk {
  background: #fde8e3;
  color: var(--danger);
}

.status.annual {
  background: #d8eaf7;
  color: var(--navy);
}

.status.period {
  background: #edf3f7;
  color: #40576b;
}

.row-actions {
  display: inline-flex;
  gap: 6px;
}

.row-actions .button {
  min-height: 26px;
  padding: 4px 7px;
  font-size: 12px;
}

.daily-chart-panel {
  border-top: 1px solid #e4ebf1;
  padding: 10px 12px 12px;
  background: #ffffff;
}

.daily-chart-panel .section-heading {
  padding-bottom: 7px;
}

.comparison-filters {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(280px, 1.4fr) 90px 90px 120px auto;
  gap: 8px;
  align-items: start;
  padding: 10px 0;
}

.comparison-filters .button {
  min-height: 38px;
  align-self: end;
}

.comparison-hidden-select {
  display: none;
}

.comparison-month-picker > span {
  display: block;
  margin-bottom: 5px;
  color: #33465a;
  font-size: 12px;
  font-weight: 800;
}

.comparison-month-buttons {
  min-height: 96px;
  max-height: 112px;
  overflow: auto;
  padding: 7px;
  border: 1px solid #d5e0ea;
  border-radius: 7px;
  background: #f8fbfd;
}

.comparison-month-year {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 6px;
  align-items: start;
}

.comparison-month-year + .comparison-month-year {
  margin-top: 6px;
}

.comparison-month-year > span {
  padding-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.comparison-month-year > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

.comparison-month-chip {
  min-height: 26px;
  border: 1px solid #cddbe6;
  border-radius: 6px;
  background: #ffffff;
  color: #365068;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.comparison-month-chip.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.comparison-month-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.comparison-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.comparison-summary-card {
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid #dce6ee;
  border-radius: 6px;
  background: #f8fbfd;
}

.comparison-summary-card span,
.comparison-summary-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.comparison-summary-card strong {
  display: block;
  margin: 3px 0 1px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.1;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.comparison-chart-block {
  min-width: 0;
}

.chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
}

.chart-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
}

.legend-dot.current {
  background: var(--blue);
}

.legend-dot.previous {
  background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 10px);
}

.legend-dot.target {
  background: var(--navy);
}

.legend-dot.realized {
  background: var(--blue);
}

.legend-dot.revenue {
  height: 8px;
  background: var(--green);
}

.legend-dot.latam {
  background: #17245f;
}

.legend-dot.gol {
  background: #f47b20;
}

.legend-dot.azul {
  background: #0074ba;
}

.meta-chart-legend {
  padding: 8px 12px 0;
}

.chart-message {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.chart-message.warning {
  color: #8c5a1d;
}

.daily-chart {
  display: block;
  width: 100%;
  height: 220px;
  margin-top: 8px;
  border: 1px solid #e3ebf2;
  border-radius: 6px;
  background: #fbfdff;
}

.chart-grid {
  stroke: #e2eaf1;
  stroke-width: 1;
}

.chart-axis {
  stroke: #b8c7d4;
  stroke-width: 1;
}

.chart-axis-label {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line.current {
  stroke: var(--blue);
  stroke-width: 3;
}

.chart-line.previous {
  stroke: var(--orange);
  stroke-width: 2.6;
  stroke-dasharray: 6 5;
}

.chart-line.target {
  stroke: var(--navy);
  stroke-width: 2.6;
  stroke-dasharray: 7 5;
}

.chart-line.realized {
  stroke: var(--blue);
  stroke-width: 3;
}

.chart-point.current {
  fill: var(--blue);
  stroke: #ffffff;
  stroke-width: 1.2;
}

.chart-point.target {
  fill: var(--navy);
  stroke: #ffffff;
  stroke-width: 1;
}

.chart-point.realized {
  fill: var(--blue);
  stroke: #ffffff;
  stroke-width: 1.2;
}

.chart-point.previous {
  fill: var(--orange);
  stroke: #ffffff;
  stroke-width: 1;
}

.national-airline-chart .chart-line {
  stroke-width: 2.4;
  opacity: 0.42;
}

.national-airline-chart .chart-line.selected {
  stroke-width: 4;
  opacity: 1;
}

.national-airline-chart .chart-line.latam {
  stroke: #17245f;
}

.national-airline-chart .chart-line.gol {
  stroke: #f47b20;
}

.national-airline-chart .chart-line.azul {
  stroke: #0074ba;
}

.national-airline-chart .chart-point {
  stroke: #ffffff;
  stroke-width: 1.1;
  opacity: 0.55;
}

.national-airline-chart .chart-point.selected {
  opacity: 1;
  stroke-width: 1.4;
}

.national-airline-chart .chart-point.latam {
  fill: #17245f;
}

.national-airline-chart .chart-point.gol {
  fill: #f47b20;
}

.national-airline-chart .chart-point.azul {
  fill: #0074ba;
}

.national-airline-chart .chart-bar {
  opacity: 0.46;
}

.national-airline-chart .chart-bar.selected {
  opacity: 1;
}

.national-airline-chart .chart-bar.latam {
  fill: #17245f;
}

.national-airline-chart .chart-bar.gol {
  fill: #f47b20;
}

.national-airline-chart .chart-bar.azul {
  fill: #0074ba;
}

.chart-bar.current {
  fill: var(--blue);
}

.chart-bar.previous {
  fill: var(--orange);
  opacity: 0.72;
}

.chart-bar.revenue {
  fill: var(--green);
  opacity: 0.72;
}

.chart-delta {
  font-size: 12px;
  font-weight: 900;
}

.chart-delta.positive {
  fill: var(--green);
}

.chart-delta.negative {
  fill: var(--danger);
}

.empty-state {
  color: var(--muted);
  text-align: center !important;
  padding: 24px;
}

.negative {
  color: var(--danger);
}

.note-cell {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-picker {
  padding: 14px;
}

.backup-actions,
.danger-zone {
  padding: 14px;
}

.danger-zone {
  border-top: 1px solid #e4ebf1;
}

@media (max-width: 1100px) {
  .focus-strip {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .home-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .home-stats-grid {
    grid-template-columns: 1fr;
  }

  .summary-strip,
  .meta-grid {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .year-comparison-executive-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .executive-dash-hero,
  .executive-kpi-grid,
  .executive-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .executive-chart-card,
  .executive-chart-card.wide,
  .executive-chart-card.table-card {
    grid-column: auto;
  }

  .workspace-grid,
  .holiday-layout,
  .backup-grid,
  .advp-import-layout,
  .meta-columns {
    grid-template-columns: 1fr;
  }

  .comparison-grid,
  .national-airline-chart-grid,
  .performance-executive-grid,
  .performance-chart-grid,
  .advp-filter-grid,
  .advp-metrics-grid,
  .advp-breakdown-grid,
  .advp-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .advp-dashboard-card-wide {
    grid-column: auto;
  }

  .advp-executive-grid,
  .advp-tab-grid,
  .advp-destination-grid,
  .advp-cross-grid {
    grid-template-columns: 1fr;
  }

  .advp-comparison-board {
    grid-template-columns: 1fr;
  }

  .advp-route-volume-grid {
    grid-template-columns: 1fr;
  }

  .advp-route-volume-routes {
    grid-column: auto;
  }

  .performance-executive-metrics {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 680px) {
  .app-shell {
    padding: 10px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions,
  .button-row,
  .backup-actions {
    width: 100%;
  }

  .topbar-actions > *,
  .button-row > *,
  .backup-actions > * {
    flex: 1 1 140px;
  }

  .focus-strip {
    grid-template-columns: 1fr;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .home-donut-chart {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .performance-executive-metrics {
    grid-template-columns: 1fr;
  }

  .summary-strip,
  .meta-grid,
  .comparison-summary,
  .year-comparison-executive-grid {
    grid-template-columns: 1fr;
  }

  .executive-dash-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .executive-dash-title h2 {
    font-size: 22px;
  }

  .executive-period-box {
    justify-items: start;
  }

  .executive-pie-wrap,
  .executive-airline-share-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .executive-airline-share-list {
    width: 100%;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .daily-view-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tab-button {
    padding-inline: 8px;
  }

  .form-pair {
    grid-template-columns: 1fr;
  }

  .form-trio {
    grid-template-columns: 1fr;
  }

  .comparison-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-month-year > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .comparison-filters .button {
    grid-column: 1 / -1;
  }

  .international-import-fields {
    grid-template-columns: 1fr;
  }

  .international-filter-tools {
    grid-template-columns: 1fr;
  }

  .chart-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-message {
    text-align: left;
  }

  .daily-chart {
    height: 200px;
  }
}
