/* FINANCE R3 | 26 October 2026 | P1-locked figures + compact sticky navigation.
   Overrides R2 theme only. Never changes calculations or production configuration. */
:root { --sticky-divider: #e74b52; }
html { scroll-padding-top: 68px; }
.app-shell { padding-top: 4px; padding-bottom: 12px; }
.main-header {
  padding: 7px 14px;
  margin-bottom: 2px;
  border-radius: 15px;
  gap: 11px;
  min-height: 0;
}
.identity { gap: 12px; }
.seal { width: 62px; height: 62px; }
.agency { margin-bottom: 0; font-size: 15px; line-height: 1.16; }
.identity h1 { font-size: 24px; line-height: 1.14; }
.thai-title { font-size: 20px; }
.subhead { margin-top: 2px; font-size: 13px; }
.source-pill { padding: 6px 10px; font-size: 12px; }
.soft-button { padding: 7px 12px; font-size: 13px; }
.tabbar-wrap {
  position: sticky;
  top: 0;
  z-index: 150;
  isolation: isolate;
  background: #eaf2fb; /* Solid: scrolled content disappears behind navigation */
  margin: 0 0 8px;
  border: 0;
  border-bottom: 3px solid var(--sticky-divider);
  box-shadow: 0 4px 11px rgba(18, 50, 90, .09);
}
.tabbar-wrap::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 100vw;
  height: 3px;
  transform: translateX(-50%);
  background: var(--sticky-divider);
  pointer-events: none;
}
.tabbar { gap: 7px; padding: 3px 2px 4px; }
.tab {
  padding: 7px 12px;
  font-size: 15px;
  border-radius: 11px;
  gap: 7px;
  box-shadow: 0 2px 5px #234f7718;
}
.tab span { width: 23px; height: 23px; font-size: 11px; }
.section-heading { margin-bottom: 10px; gap: 12px; }
.section-heading h2 { font-size: 26px; }
.section-heading p { margin-top: 3px; font-size: 14px; }
.eyebrow { margin-bottom: 2px; }
.kpi-grid { gap: 10px; margin-bottom: 10px; }
.kpi-card { padding: 12px 14px 11px; }
.kpi-value { font-size: 31px; margin: 5px 0 0; line-height: 1.12; }
.kpi-unit { font-size: 13px; }
.kpi-sub { margin-top: 3px; font-size: 12px; }
.kpi-card::before { top: 9px; right: 10px; width: 30px; height: 30px; }
.kpi-card::after { top: 13px; right: 18px; font-size: 15px; }
.executive-pulse { padding: 10px 15px; margin-bottom: 11px; }
.pulse-icon { width: 39px; height: 39px; }
.dashboard-grid { gap: 12px; }
.panel { padding: 15px 17px 17px; }
.panel-head { margin-bottom: 10px; }
@media (max-width: 1180px) {
  .app-shell { padding-top: 3px; }
  .main-header { padding: 7px 10px; }
  .identity h1 { font-size: 21px; }
  .thai-title { font-size: 18px; }
  .tab { padding: 7px 10px; font-size: 14px; }
  .kpi-value { font-size: 28px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 57px; }
  .app-shell { padding: 2px 8px 12px; }
  .main-header { padding: 7px 9px; margin-bottom: 2px; border-radius: 12px; }
  .seal { width: 48px; height: 48px; }
  .identity { gap: 8px; }
  .identity h1 { font-size: 16px; }
  .agency { font-size: 12px; }
  .thai-title { font-size: 14px; }
  .subhead { font-size: 11px; }
  .tabbar-wrap { margin-bottom: 7px; }
  .tabbar { gap: 6px; padding: 3px 1px 3px; }
  .tab { padding: 7px 9px; font-size: 13px; border-radius: 9px; gap: 5px; }
  .tab span { width: 19px; height: 19px; font-size: 10px; }
  .section-heading { margin-bottom: 9px; }
  .section-heading h2 { font-size: 21px; }
  .kpi-card { padding: 10px 10px 9px; }
  .kpi-value { font-size: 23px; margin-top: 4px; }
  .kpi-label { font-size: 12px; }
  .kpi-card::before { width: 23px; height: 23px; top: 7px; right: 7px; }
  .kpi-card::after { top: 10px; right: 14px; font-size: 12px; }
  .executive-pulse { padding: 10px; }
  .panel { padding: 12px; }
}
@media print {
  .tabbar-wrap { position: static; box-shadow: none; }
  .tabbar-wrap::after { display: none; }
}
