:root {
  --navy: #091b33;
  --navy-2: #102846;
  --blue: #1976d2;
  --blue-2: #0d5dad;
  --cyan: #34a5d9;
  --orange: #e8912f;
  --red: #d94a4a;
  --green: #148468;
  --ink: #16263a;
  --muted: #708096;
  --line: #dce4ec;
  --bg: #f2f5f8;
  --card: #fff;
  --shadow: 0 10px 30px rgba(20, 44, 73, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 14px;
}
button, input, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }

main { min-width: 0; }
.topbar { height: 100px; padding: 20px 34px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 6px; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
h1 { margin: 0; font-size: 24px; letter-spacing: 1px; font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.view-switch { display: inline-flex; padding: 4px; background: #eef3f7; border-radius: 5px; }
.view-switch button { min-width: 96px; height: 34px; border: 0; color: #63758a; background: transparent; border-radius: 3px; font-weight: 600; font-size: 12px; }
.view-switch button.active { color: white; background: var(--navy-2); box-shadow: 0 4px 10px rgba(9,27,51,.15); }
.icon-button, .export-button { height: 38px; border: 1px solid var(--line); background: white; color: #40526a; }
.icon-button { width: 38px; border-radius: 4px; font-size: 20px; }
.export-button { border-color: var(--blue); color: var(--blue-2); padding: 0 16px; border-radius: 4px; font-weight: 600; }
.export-button span { margin-right: 6px; }
.avatar { width: 42px; height: 42px; margin-left: 8px; display: grid; place-items: center; border-radius: 50%; text-align: center; line-height: 13px; font-size: 10px; color: white; background: linear-gradient(145deg, #173d69, #1c79c6); }

.filter-bar {
  min-height: 74px; padding: 16px 34px; display: flex; align-items: center; gap: 14px;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 3px 10px rgba(18,43,70,.03);
}
.scope-switch, .small-toggle { display: inline-flex; padding: 3px; background: #edf2f6; border-radius: 4px; }
.scope-switch button, .small-toggle button { border: 0; padding: 9px 18px; color: #65758a; background: transparent; border-radius: 3px; }
.scope-switch button.active, .small-toggle button.active { color: white; background: var(--navy-2); box-shadow: 0 3px 8px rgba(7,27,52,.14); }
.divider { width: 1px; height: 28px; background: var(--line); margin: 0 2px; }
.airline-select { height: 40px; min-width: 110px; border: 1px solid #ccd6e0; color: var(--ink); background: #fafcfd; padding: 0 10px; border-radius: 4px; font-size: 13px; font-weight: 600; outline: 0; cursor: pointer; }
.date-field { height: 40px; width: 220px; display: flex; align-items: center; border: 1px solid #ccd6e0; background: #fafcfd; border-radius: 4px; overflow: visible; position: relative; }
.date-field span { flex-shrink: 0; padding: 0 11px; color: #75859a; border-right: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.date-field input { flex: 1; min-width: 0; width: 0; border: 0; outline: 0; background: transparent; padding: 0 9px; color: var(--ink); cursor: pointer; }
.date-field i { flex-shrink: 0; padding-right: 10px; color: #708096; font-style: normal; }
.date-range-picker { cursor: pointer; }
.date-dropdown {
  display: none; position: absolute; top: 44px; left: 0; min-width: 226px;
  padding: 14px 16px 12px; background: white; border: 1px solid #ccd6e0;
  border-radius: 5px; box-shadow: 0 12px 32px rgba(14,30,52,.14); z-index: 30;
}
.date-range-picker.open .date-dropdown { display: block; }
.date-range-picker.open { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25,118,210,.08); }
.date-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.date-row label { min-width: 20px; color: #5c6d82; font-size: 11px; font-weight: 600; }
.date-row input { width: 100%; height: 34px; padding: 0 8px; border: 1px solid #d2dce5; border-radius: 3px; font-size: 12px; color: var(--ink); background: #fafcfd; cursor: text; }
.date-confirm { width: 100%; height: 32px; margin-top: 4px; border: 0; color: white; background: var(--blue-2); border-radius: 3px; font-size: 12px; font-weight: 600; cursor: pointer; }
.compare-label { color: #93a0af; font-size: 12px; }
.query-button { height: 40px; border: 0; padding: 0 25px; border-radius: 4px; color: white; background: var(--blue-2); font-weight: 600; box-shadow: 0 5px 12px rgba(13,93,173,.2); }

.content { padding: 27px 34px 50px; max-width: 1700px; margin: 0 auto; }
.section-heading { margin: 0 0 18px; display: flex; align-items: center; justify-content: space-between; }
.section-heading > div { display: flex; align-items: center; gap: 13px; }
.section-index { color: #a3b2c1; font-size: 30px; font-family: Georgia, serif; line-height: 1; }
.section-heading h2 { margin: 0 0 3px; font-size: 18px; }
.section-heading p, .panel-head p { margin: 0; color: var(--muted); font-size: 12px; }
.prototype-badge { padding: 6px 10px; border: 1px solid #c7d6e6; color: #637b96; background: #f7fafc; border-radius: 3px; font-size: 11px; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.metric-card { min-width: 0; padding: 19px 20px 15px; border: 1px solid #e2e8ee; border-top: 3px solid #96a8ba; background: white; box-shadow: var(--shadow); }
.metric-card.primary { border-top-color: var(--blue); background: linear-gradient(135deg, #fff 60%, #f1f8fd); }
.drillable-card { cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; }
.drillable-card:hover { transform: translateY(-2px); border-color: #a9c8e2; box-shadow: 0 12px 30px rgba(20, 72, 119, .12); }
.metric-top { display: flex; justify-content: space-between; align-items: center; color: #5c6c80; font-size: 12px; }
.metric-top i { width: 28px; height: 28px; display: grid; place-items: center; color: #6d849d; background: #eef3f7; font-style: normal; border-radius: 50%; }
.metric-card strong { display: block; margin: 10px 0 13px; font-size: 28px; letter-spacing: .3px; }
.metric-card strong span { margin-left: 5px; color: #637386; font-size: 12px; font-weight: 500; }
.metric-foot { display: flex; gap: 7px; align-items: center; padding-top: 11px; border-top: 1px solid #edf1f4; color: #8491a0; font-size: 11px; }
.metric-foot > span { min-width: 0; flex: 1; }
.metric-foot b { padding: 3px 6px; border-radius: 2px; }
.metric-foot.down b { color: var(--green); background: #eaf7f3; }
.metric-foot.up b { color: var(--red); background: #fff0ef; }

.insight-grid { margin-top: 15px; display: grid; grid-template-columns: 1.55fr 1fr; gap: 15px; }
.panel { margin-top: 15px; background: white; border: 1px solid #e0e7ee; box-shadow: var(--shadow); }
.insight-grid .panel { margin-top: 0; }
.panel-head { min-height: 69px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e7edf2; }
.panel-head h3 { margin: 0 0 5px; font-size: 15px; }
.legend { display: flex; align-items: center; gap: 7px; color: #77889c; font-size: 10px; }
.legend span { width: 9px; height: 9px; margin-left: 7px; }
.legend .past { background: var(--navy-2); }
.legend .reduce { background: var(--cyan); }
.legend .increase { background: var(--orange); }
.waterfall { height: 244px; padding: 30px 35px 27px; display: flex; align-items: flex-end; position: relative; border-bottom: 1px solid #edf1f4; background: repeating-linear-gradient(to top, transparent 0, transparent 48px, #eef2f5 49px); }
.wf-column { height: 100%; width: 21%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.wf-column i { display: block; height: var(--height); margin-bottom: var(--offset); background: var(--navy-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.wf-column.negative i { background: var(--cyan); }
.wf-column.positive i { background: var(--orange); }
.wf-column.current i { background: var(--blue-2); }
.wf-value { position: absolute; bottom: calc(var(--height) + var(--offset) + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 700; }
.wf-column b { position: absolute; bottom: -22px; width: 100%; text-align: center; color: #596b80; font-size: 10px; font-weight: 500; }
.wf-connector { width: 5%; height: 1px; margin-bottom: var(--level); background: #aeb9c5; }
.chart-note { padding: 12px 20px; color: #69798d; font-size: 11px; }
.chart-note strong { color: var(--blue-2); }

.factor-main { padding: 25px 22px 19px; display: grid; grid-template-columns: 146px 1fr; gap: 18px; align-items: center; }
#breakdownContent { display: block; }
.breakdown-list { display: grid; gap: 12px; }
.breakdown-row { display: grid; grid-template-columns: 110px 1fr 82px 78px; gap: 10px; align-items: center; color: #52677c; font-size: 10px; }
.breakdown-row > div { height: 12px; background: #e9eef2; }
.breakdown-row > div i { height: 100%; display: block; background: linear-gradient(90deg, var(--blue-2), var(--cyan)); }
.breakdown-row strong, .breakdown-row em { text-align: right; font-size: 10px; font-style: normal; }
.donut { width: 136px; height: 136px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--cyan) 0 78%, var(--orange) 78%); position: relative; }
.donut::after { content: ""; width: 88px; height: 88px; position: absolute; border-radius: 50%; background: white; }
.donut div { position: relative; z-index: 1; text-align: center; }
.donut strong { display: block; font-size: 22px; }
.donut span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.factor-list > div { padding: 13px 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; border-bottom: 1px solid #e9eef2; }
.factor-list span { color: #5e7084; font-size: 11px; }
.factor-list i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 1px; }
.factor-list i.blue { background: var(--cyan); }
.factor-list i.orange { background: var(--orange); }
.factor-list strong { color: var(--ink); font-size: 12px; }
.factor-list b { grid-column: 2; color: #7b8a9b; font-size: 10px; text-align: right; }
.insight-callout { margin: 0 20px 18px; padding: 12px 14px; color: #4f6379; background: #edf6fc; border-left: 3px solid var(--blue); font-size: 11px; line-height: 1.6; }
.insight-callout span { margin-right: 8px; color: var(--blue-2); font-weight: 700; }

.small-toggle button { padding: 6px 13px; font-size: 11px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { height: 42px; padding: 0 16px; color: #637387; background: #f4f7f9; border-bottom: 1px solid #dfe6ec; font-size: 11px; font-weight: 600; text-align: right; vertical-align: middle; }
th:first-child, th:nth-child(2) { text-align: left; }
td { height: 47px; padding: 0 16px; border-bottom: 1px solid #edf1f4; color: #34475d; font-size: 12px; text-align: right; vertical-align: middle; }
td:first-child, td:nth-child(2) { text-align: left; }
tbody tr:hover { background: #f7fbfe; }
.row-label { font-weight: 600; color: #23384f; }
.positive-text { color: var(--red); }
.negative-text { color: var(--green); }
.pill { min-width: 58px; padding: 4px 7px; display: inline-block; border-radius: 2px; text-align: center; font-weight: 600; }
.pill.negative { color: var(--green); background: #eaf7f3; }
.pill.positive { color: var(--red); background: #fff0ef; }
.flight-chart { padding: 25px 30px 28px; display: grid; gap: 18px; }
.flight-chart.hidden, .hidden { display: none; }
.bar-row { display: grid; grid-template-columns: 78px 1fr 78px; gap: 12px; align-items: center; color: #52657a; font-size: 11px; }
.bar-track { height: 18px; background: #edf2f5; position: relative; }
.bar-track i { height: 100%; display: block; background: linear-gradient(90deg, var(--blue-2), var(--cyan)); }
.bar-row strong { text-align: right; color: #263c54; }

.subject-head { gap: 20px; }
.table-tools { display: flex; gap: 9px; }
.search-box { width: 180px; height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #d2dce5; background: #fafcfd; border-radius: 3px; }
.search-box span { color: #8190a1; font-size: 18px; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 11px; }
.table-tools select { height: 34px; min-width: 160px; border: 1px solid #d2dce5; color: #4e6278; background: #fafcfd; padding: 0 10px; border-radius: 3px; font-size: 11px; outline: 0; }
.subject-summary { padding: 11px 20px; display: flex; gap: 25px; color: #758498; background: #fbfcfd; border-bottom: 1px solid #e5ebf0; font-size: 11px; }
.subject-summary strong { color: #354a61; }
.subject-summary .good { color: var(--green); }
.subject-summary .bad { color: var(--red); }
.warning-text { color: #c47720 !important; }
.trend-note { margin-top: 10px; padding: 9px 12px; color: #79633e; background: #fff8eb; border-left: 3px solid var(--orange); font-size: 10px; }
.subject-table th:first-child { width: 38px; }
.subject-table th:nth-child(2) { text-align: left; }
.subject-table th:nth-child(3) { text-align: right; }
.subject-table td:first-child { width: 38px; text-align: center; }
.expand-button { width: 24px; height: 24px; border: 0; color: #4d657d; background: #eef3f7; border-radius: 2px; transition: .2s; }
.expand-button.open { transform: rotate(90deg); color: white; background: var(--blue-2); }
.level-one td { background: #f5f8fa; color: #21384f; font-weight: 700; }
.level-one td:first-child { border-left: 3px solid var(--blue-2); }
.second-level-row td { background: white; }
.second-level-row td:nth-child(2) { color: #65788c; font-size: 10px; }
.child-count { margin-left: 8px; padding: 2px 6px; color: #1767a7; background: #eaf4fb; border-radius: 8px; font-size: 9px; font-weight: 500; }
.third-level-row td { height: 42px; background: #f8fbfd; border-bottom-color: #e3eaf0; }
.third-level-row td:first-child { padding-left: 22px; }
.third-name { padding-left: 30px !important; color: #314a62; font-weight: 600; text-align: left !important; }
.third-name > span { margin-right: 8px; padding: 2px 5px; color: #7b8c9e; background: #e8eef3; border-radius: 2px; font-size: 9px; font-weight: 500; }
.expand-button.child { width: 20px; height: 20px; font-size: 10px; }
.hierarchy-table th:nth-child(7), .hierarchy-table td:nth-child(7) { font-weight: 600; }
.hierarchy-table th:nth-child(8), .hierarchy-table td:nth-child(8) { color: #7e8d9d; font-size: 10px; }
.detail-row td { height: auto; padding: 0; background: #f7fafc; }
.drilldown { padding: 16px 22px 20px 66px; border-bottom: 1px solid #dce5ed; }
.third-analysis { padding-left: 85px; border-left: 3px solid #36a2d0; }
.drill-source { margin-left: auto; color: #99a5b2; font-size: 9px; padding-top: 2px; }
.drill-tabs { display: flex; gap: 22px; margin-bottom: 14px; border-bottom: 1px solid #dae3eb; }
.drill-tabs button { padding: 0 2px 9px; border: 0; border-bottom: 2px solid transparent; color: #718297; background: transparent; font-size: 11px; }
.drill-tabs button.active { color: var(--blue-2); border-bottom-color: var(--blue-2); font-weight: 700; }
.drill-content { display: grid; grid-template-columns: minmax(220px, .7fr) 1.3fr; gap: 24px; }
.impact-card { padding: 15px; background: white; border: 1px solid #dfe7ed; }
.impact-card span { color: #718196; font-size: 10px; }
.impact-card strong { display: block; margin: 8px 0 5px; font-size: 21px; color: var(--green); }
.drill-data-gap { display: flex; flex-direction: column; justify-content: center; min-height: 104px; padding: 15px 18px; border: 1px dashed #c9d6e1; background: #f8fafc; }
.drill-data-gap strong { margin-bottom: 7px; color: #566d84; font-size: 13px; }
.drill-data-gap p { margin: 0 0 10px; color: #748598; font-size: 11px; line-height: 1.7; }
.drill-data-gap span { color: #9aa6b2; font-size: 9px; }
.impact-card p { margin: 0; color: #8a97a5; font-size: 10px; line-height: 1.6; }
.airport-drill-table { max-height: 380px; overflow-y: auto; }
.airport-drill-head { margin-bottom: 10px; display: flex; justify-content: space-between; color: #7d8c9d; font-size: 10px; }
.airport-drill-head span:last-child { color: #99a5b2; }
.airport-drill-table table { width: 100%; }
.airport-drill-table th { height: 34px; padding: 0 12px; font-size: 10px; }
.airport-drill-table td { height: 36px; padding: 0 12px; font-size: 11px; text-align: right; }
.airport-drill-table td:first-child { text-align: left; }
.airport-drill-table td:first-child b { display: inline-block; width: 18px; height: 18px; margin-right: 6px; text-align: center; color: #718398; background: #eef3f7; border-radius: 2px; font-size: 10px; line-height: 18px; }
.airport-drill-table td:nth-child(2) { text-align: right; }
.drill-mini-bar { display: flex; align-items: center; gap: 6px; min-width: 100px; }
.drill-mini-bar i { height: 6px; display: block; background: linear-gradient(90deg, var(--blue-2), var(--cyan)); border-radius: 3px; min-width: 1px; }
.drill-mini-bar span { color: #65788c; font-size: 10px; white-space: nowrap; }
.airport-drill-foot { margin-top: 10px; padding-top: 8px; border-top: 1px dashed #dce4ec; color: #8a97a5; font-size: 9px; }
.factor-view { padding: 12px 0; }
.factor-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; color: #65788c; font-size: 11px; }
.factor-tag { padding: 3px 8px; color: white; background: var(--blue-2); border-radius: 3px; font-size: 10px; font-weight: 700; }
.factor-table { width: 100%; margin-bottom: 14px; }
.factor-table th { height: 34px; padding: 0 10px; font-size: 10px; }
.factor-table td { height: 38px; padding: 0 10px; font-size: 11px; text-align: right; }
.factor-table td:first-child { text-align: left; }
.factor-insight { padding: 12px 14px; background: #f7fafc; border-left: 3px solid var(--blue); color: #4f6379; font-size: 11px; line-height: 1.7; }
.factor-insight span { margin-right: 8px; color: var(--blue-2); font-weight: 700; font-size: 10px; }
.factor-insight em { display: block; margin-top: 6px; color: #98a6b5; font-size: 9px; font-style: normal; }
.mini-bars { display: grid; gap: 9px; align-content: center; }
.mini-bar { display: grid; grid-template-columns: 130px 1fr 60px; gap: 10px; align-items: center; font-size: 10px; color: #596d82; }
.mini-bar div { height: 11px; background: #e6ecf1; }
.mini-bar i { height: 100%; display: block; background: var(--cyan); }
.mini-bar strong { text-align: right; font-size: 10px; color: #334a62; }
.empty-state { padding: 45px; text-align: center; color: #8795a5; }
.summary-drilldown { margin-top: 15px; background: white; border: 1px solid #d8e3ec; box-shadow: var(--shadow); }
.single-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.single-kpi { padding: 18px 20px; border: 1px solid #e0e7ee; border-top: 3px solid #8fa4b8; background: white; box-shadow: var(--shadow); }
.single-kpi.primary { border-top-color: var(--blue); background: linear-gradient(135deg, white, #f2f8fd); }
.single-kpi.warning { border-top-color: var(--orange); }
.single-kpi > span { color: #66788d; font-size: 11px; }
.single-kpi > strong { display: block; margin: 9px 0 7px; font-size: 26px; }
.single-kpi > strong small { margin-left: 5px; color: #748397; font-size: 11px; font-weight: 500; }
.single-kpi > small { color: #8592a1; font-size: 10px; }
.single-kpi > small b { margin-right: 4px; }
.single-method-note { padding: 10px 20px; color: #7b6a48; background: #fff9ef; border-bottom: 1px solid #ead9ba; font-size: 10px; }
.single-legend { display: flex; align-items: center; gap: 7px; color: #718297; font-size: 10px; }
.single-legend span { width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; }
.normal-dot { background: var(--green); }
.warning-dot { background: var(--orange); }
.critical-dot { background: var(--red); }
.single-matrix tbody tr { cursor: pointer; }
.single-matrix tbody tr.selected td { background: #edf6fc; }
.single-matrix th, .single-matrix td { text-align: right; }
.single-matrix th:first-child, .single-matrix td:first-child { text-align: left; }
.single-status { min-width: 48px; padding: 4px 8px; border: 0; color: white; border-radius: 10px; font-size: 9px; font-weight: 700; }
.single-status.normal { color: var(--green); background: #eaf7f3; }
.single-status.warning { background: var(--orange); }
.single-status.critical { background: var(--red); }
.single-dashboard-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 15px; }
.single-bar-chart { padding: 24px 22px 18px; display: grid; gap: 18px; }
.single-bar-row { display: grid; grid-template-columns: 76px 1fr 55px; gap: 12px; align-items: center; color: #53677c; font-size: 10px; }
.paired-bars { display: grid; gap: 5px; }
.paired-bars i { height: 14px; min-width: 2px; display: block; position: relative; border-radius: 0 2px 2px 0; }
.paired-bars i.current { background: linear-gradient(90deg, var(--blue-2), var(--cyan)); }
.paired-bars i.previous { background: #cdd7e0; }
.paired-bars b { position: absolute; left: calc(100% + 6px); top: 0; color: #53677c; font-size: 9px; white-space: nowrap; }
.single-bar-row > em { text-align: right; font-size: 10px; font-style: normal; font-weight: 700; }
.single-chart-note { display: flex; gap: 16px; padding-top: 4px; color: #7a899a; border-top: 1px dashed #dce4eb; font-size: 9px; }
.single-chart-note span { display: flex; align-items: center; gap: 5px; }
.single-chart-note i { width: 12px; height: 6px; display: inline-block; }
.single-chart-note i.current { background: var(--blue-2); }
.single-chart-note i.previous { background: #cdd7e0; }
.single-chart-note b { margin-left: auto; font-weight: 500; }
.movement-grid { padding: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.movement-card { padding: 13px; border: 1px solid #e1e8ee; background: #fbfcfd; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; }
.movement-card > div { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid #e8edf1; }
.movement-card strong { font-size: 11px; }
.movement-card span { color: #718196; font-size: 9px; }
.movement-card span b { display: block; margin-top: 3px; font-size: 11px; }
.single-detail-empty { padding: 50px 20px; text-align: center; color: #8795a4; }
.export-detail-button { height: 32px; padding: 0 13px; border: 1px solid var(--blue); color: var(--blue-2); background: white; border-radius: 3px; font-size: 10px; }
.single-detail-context { padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; color: #6e7f92; background: #f8fafc; border-bottom: 1px solid #e2e9ef; font-size: 10px; }
.single-detail-context strong { margin-right: 10px; color: #263d54; font-size: 13px; }
.single-detail-context b { color: var(--red); }
.single-detail-table th, .single-detail-table td { padding: 0 10px; text-align: center; font-size: 10px; }
.single-detail-table .subject-cell { max-width: 260px; white-space: normal; text-align: left; line-height: 1.5; }
.data-gap-panel { padding: 70px 30px; text-align: center; }
.data-gap-icon { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; color: #6f879e; background: #edf3f7; border-radius: 50%; font-size: 27px; }
.data-gap-panel h3 { margin: 0 0 10px; font-size: 17px; }
.data-gap-panel p { max-width: 680px; margin: 0 auto 22px; color: #718196; line-height: 1.8; font-size: 12px; }
.data-gap-panel > div:last-child { display: flex; justify-content: center; gap: 8px; align-items: center; color: #8896a5; font-size: 10px; }
.data-gap-panel > div:last-child b { padding: 5px 9px; color: #596d82; background: #f1f5f8; border-radius: 2px; }
.basis-pill { padding: 3px 7px; color: #1c6097; background: #eaf4fb; border-radius: 8px; font-size: 9px; font-weight: 700; }
.alert-table th, .alert-table td { padding-left: 11px; padding-right: 11px; text-align: center; }
.alert-table th:nth-child(6), .alert-table th:nth-child(7), .alert-table td:nth-child(6), .alert-table td:nth-child(7) { text-align: left; }
.flight-detail-block { padding: 15px 18px 18px; border-top: 2px solid #e7a34b; }
.flight-detail-head { margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.flight-detail-head strong { display: block; color: #263d54; font-size: 13px; }
.flight-detail-head div span, .flight-detail-head > span { color: #7d8c9d; font-size: 10px; }
.toast { position: fixed; right: 28px; bottom: 28px; padding: 12px 17px; color: white; background: var(--navy-2); border-radius: 4px; box-shadow: 0 8px 24px rgba(5,25,46,.25); opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; z-index: 20; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1200px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .insight-grid { grid-template-columns: 1fr; }
  .single-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .single-dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .topbar { height: auto; padding: 18px; }
  .top-actions .icon-button, .avatar { display: none; }
  .topbar { flex-wrap: wrap; gap: 14px; }
  .view-switch { order: 3; width: 100%; }
  .view-switch button { flex: 1; }
  h1 { font-size: 19px; }
  .filter-bar { padding: 12px 18px; flex-wrap: wrap; }
  .divider { display: none; }
  .date-field { width: calc(50% - 14px); min-width: 0; }
  .date-dropdown { min-width: 200px; }
  .query-button { width: 100%; }
  .content { padding: 20px 18px 35px; }
  .metric-grid { grid-template-columns: 1fr; }
  .single-kpi-grid { grid-template-columns: 1fr; }
  .movement-grid { grid-template-columns: 1fr; }
  .factor-main { grid-template-columns: 1fr; justify-items: center; }
  .factor-list { width: 100%; }
  .panel-head { align-items: flex-start; }
  .legend { display: none; }
  .subject-head { flex-direction: column; }
  .table-tools { width: 100%; }
  .search-box { flex: 1; }
  .subject-summary { flex-wrap: wrap; gap: 10px 20px; }
  .third-analysis { padding-left: 20px; }
  .drill-source { display: none; }
  .drilldown { padding-left: 20px; }
  .drill-content { grid-template-columns: 1fr; }
}
