/* ============================
   BPT 급여 명세서 - 스타일
   ============================ */

/* 리셋 */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* 공통 body */
body {
  font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  background: #f0f4f8;
  color: #222;
}

/* ── 로그인 페이지 ── */
body.login-page {
  font-size: 17px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-card { background: white; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.10); padding: 48px 40px; width: 400px; }
.login-card h2 { text-align: center; color: #1a3c6e; font-size: 26px; font-weight: 700; margin-bottom: 32px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 15px; color: #555; margin-bottom: 7px; }
.form-group input { width: 100%; padding: 13px 16px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 17px; outline: none; transition: border-color .2s; }
.form-group input:focus { border-color: #2563eb; }
.btn-login { width: 100%; padding: 14px; background: #2563eb; color: white; border: none; border-radius: 8px; font-size: 18px; cursor: pointer; font-weight: 700; margin-top: 8px; }
.btn-login:hover { background: #1d4ed8; }
.error { color: #dc2626; font-size: 15px; text-align: center; margin-top: 14px; }

/* ── 메인 페이지 ── */
body.main-page {
  font-size: 19px;
  display: flex;
  min-height: 100vh;
}

/* 사이드바 */
.sidebar { width: 220px; min-height: 100vh; background: linear-gradient(180deg, #4338ca 0%, #3730a3 100%); color: white; display: flex; flex-direction: column; flex-shrink: 0; }
.sidebar-header { padding: 28px 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.12); display: flex; flex-direction: column; align-items: center; text-align: center; }
.sidebar-header .logo { font-size: 20px; font-weight: 800; margin-bottom: 18px; }
.sidebar-header .pay-wordmark { width: 150px; height: 40px; padding: 7px 12px; background: #fff; border-radius: 12px; box-sizing: content-box; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22); }
.sidebar-header .user { font-size: 19px; font-weight: 700; opacity: 0.95; padding-left: 0; }
.sidebar-header .user-sabn { font-size: 15px; opacity: 0.7; margin-top: 4px; padding-left: 0; margin-bottom: 18px; }
.sidebar-nav { flex: 1; padding: 16px 0; }
.nav-section { font-size: 11px; color: rgba(255,255,255,0.45); padding: 12px 20px 6px; text-transform: uppercase; letter-spacing: 0.8px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 12px 20px; font-size: 15px; color: rgba(255,255,255,0.85); cursor: pointer; text-decoration: none; transition: background .15s; }
.nav-item:hover { background: rgba(255,255,255,0.10); }
.nav-item.active { background: rgba(255,255,255,0.18); color: white; font-weight: 700; border-left: 3px solid #c7d2fe; }
.nav-item .icon { font-size: 18px; width: 22px; text-align: center; }
.sidebar-header .logout-link { display: flex; justify-content: center; align-items: center; width: 100%; padding: 10px 0; font-size: 16px; font-weight: 700; color: white; background: rgba(255, 255, 255, 0.15); border-radius: 8px; text-decoration: none; transition: background .2s, transform .1s; }
.sidebar-header .logout-link:hover { background: rgba(255, 255, 255, 0.25); color: white; }
.sidebar-header .logout-link:active { transform: scale(0.97); }

/* 연도 서브메뉴 */
.year-list { padding: 4px 0 8px 52px; }
.year-list a { display: block; padding: 6px 0; font-size: 14px; color: rgba(255,255,255,0.65); text-decoration: none; }
.year-list a:hover, .year-list a.active { color: white; font-weight: 600; }

/* 메인 콘텐츠 */
.main { flex: 1; padding: 20px 28px; overflow-y: auto; }
.page-title { font-size: 22px; font-weight: 800; color: #1a3c6e; margin-bottom: 14px; }
.page-heading-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
.page-heading-row .page-title { margin-bottom: 0; padding-top: 7px; }
.page-action-area { display: grid; justify-items: end; gap: 5px; }
.page-actions { display: flex; gap: 8px; }
.page-action { min-height: 40px; padding: 8px 15px; border: 0; border-radius: 9px; font-size: 14px; font-weight: 800; cursor: pointer; transition: transform .1s, background .15s; }
.page-action:active { transform: translateY(1px); }
.page-action:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
.page-action:disabled { cursor: wait; opacity: 0.72; }
.print-action { background: #1e293b; color: white; }
.print-action:hover { background: #0f172a; }
.share-action { display: none; background: #fee500; color: #191919; }
.page-action-status { min-height: 18px; color: #475569; font-size: 12px; font-weight: 650; }

.card { background: white; border-radius: 14px; box-shadow: 0 2px 16px rgba(0,0,0,0.07); padding: 18px 24px; margin-bottom: 14px; }

/* 조회 기간 선택 */
.period-card { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.period-heading { min-width: 190px; padding-bottom: 2px; }
.period-heading strong { display: block; color: #1e293b; font-size: 17px; margin-bottom: 4px; }
.period-heading span { display: block; color: #64748b; font-size: 13px; line-height: 1.45; }
.period-selector { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(100px, 1fr) auto auto; gap: 10px; align-items: end; width: min(100%, 600px); }
.period-field { display: grid; gap: 6px; }
.period-field > span { color: #475569; font-size: 13px; font-weight: 700; }
.period-field select { width: 100%; min-height: 44px; padding: 9px 38px 9px 13px; border: 1.5px solid #cbd5e1; border-radius: 9px; background: white; color: #1e293b; font-size: 16px; font-weight: 700; outline: none; }
.period-field select:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14); }
.period-action { min-height: 44px; padding: 9px 20px; border: none; border-radius: 9px; background: #4338ca; color: white; font-size: 15px; font-weight: 800; cursor: pointer; transition: background .15s, transform .1s; }
.period-action:hover { background: #3730a3; }
.period-action:active { transform: translateY(1px); }
.period-nav { display: flex; gap: 8px; align-items: end; }
.period-nav-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; width: 44px; padding: 0; border: 1.5px solid #cbd5e1; border-radius: 9px; background: white; color: #4338ca; font-size: 24px; font-weight: 800; line-height: 1; cursor: pointer; transition: background .15s, border-color .15s; }
.period-nav-btn:hover:not(:disabled) { background: #eef2ff; border-color: #4338ca; }
.period-nav-btn:active:not(:disabled) { transform: translateY(1px); }
.period-nav-btn:disabled { opacity: .4; cursor: not-allowed; }
.period-action:focus-visible, .period-nav-btn:focus-visible, .nav-item:focus-visible, .logout-link:focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }
.year-filter { display: grid; grid-template-columns: minmax(180px, 260px) auto; justify-content: end; align-items: end; gap: 10px; }

/* 정보 스트립 */
.info-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.info-chip { background: #f8fafc; border: 1px solid #eef2f6; border-radius: 10px; padding: 6px 14px; display: flex; align-items: baseline; gap: 8px; }
.info-chip .lbl { font-size: 13px; color: #94a3b8; font-weight: 600; }
.info-chip .val { font-size: 17px; font-weight: 700; color: #1e293b; }

/* 히어로 (실지급액) */
.hero { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.hero-net { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); color: white; border-radius: 14px; padding: 16px 24px; box-shadow: 0 8px 24px rgba(22,163,74,0.28); }
.hero-net .h-lbl { font-size: 14px; opacity: 0.85; margin-bottom: 4px; font-weight: 600; }
.hero-net .h-val { font-size: 32px; font-weight: 900; letter-spacing: -1px; }
.hero-net .h-val small { font-size: 18px; font-weight: 700; opacity: 0.85; margin-left: 4px; }
.hero-stat { border-radius: 14px; padding: 14px 22px; display: flex; flex-direction: column; justify-content: center; }
.hero-stat.inc { background: #eff6ff; border: 1px solid #bfdbfe; }
.hero-stat.ded { background: #fef2f2; border: 1px solid #fecaca; }
.hero-stat .s-lbl { font-size: 14px; color: #64748b; margin-bottom: 4px; font-weight: 600; }
.hero-stat .s-val { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.hero-stat.inc .s-val { color: #1d4ed8; }
.hero-stat.ded .s-val { color: #dc2626; }

/* 소득/공제 2단 */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.detail-section { background: #fbfcfe; border: 1px solid #eef2f6; border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; }
.detail-section h3 { font-size: 17px; font-weight: 800; color: #1e293b; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.detail-section h3 .dot { width: 10px; height: 10px; border-radius: 50%; }
.detail-section h3 .dot.inc { background: #2563eb; }
.detail-section h3 .dot.ded { background: #dc2626; }
.detail-section .sec-sub { font-size: 13px; color: #94a3b8; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #eef2f6; }

.pay-row { padding: 7px 0; border-bottom: 1px solid #f1f5f9; }
.pay-row:last-child { border-bottom: none; }
.pay-row .pr-top { display: flex; justify-content: space-between; align-items: baseline; }
.pay-row .pr-name { font-size: 18px; font-weight: 600; color: #334155; }
.pay-row .pr-amt { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-row.inc .pr-amt { color: #2563eb; }
.pay-row.ded .pr-amt { color: #dc2626; }
.pay-row .pr-det { font-size: 15px; color: #a0aab8; margin-top: 3px; }
.pay-row .pr-bar { height: 5px; border-radius: 4px; background: #eef2f6; margin-top: 5px; overflow: hidden; }
.pay-row .pr-bar > span { display: block; height: 100%; border-radius: 4px; }
.pay-row.inc .pr-bar > span { background: linear-gradient(90deg, #60a5fa, #2563eb); }
.pay-row.ded .pr-bar > span { background: linear-gradient(90deg, #f87171, #dc2626); }

.sec-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 10px; border-top: 2px solid #e5e7eb; }
.sec-total .t-lbl { font-size: 15px; font-weight: 800; color: #1e293b; }
.sec-total .t-val { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sec-total.inc .t-val { color: #1d4ed8; }
.sec-total.ded .t-val { color: #dc2626; }

/* 연도별 합계 */
.year-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 28px; }
.summary-box { border-radius: 12px; padding: 18px 22px; text-align: center; }
.summary-box.inc { background: #eff6ff; border: 1px solid #bfdbfe; }
.summary-box.ded { background: #fef2f2; border: 1px solid #fecaca; }
.summary-box.net { background: #f0fdf4; border: 1px solid #bbf7d0; }
.summary-box .s-lbl { font-size: 14px; color: #666; margin-bottom: 6px; }
.summary-box .s-val { font-size: 26px; font-weight: 800; }
.summary-box.inc .s-val { color: #1d4ed8; }
.summary-box.ded .s-val { color: #dc2626; }
.summary-box.net .s-val { color: #16a34a; }

.month-table { width: 100%; border-collapse: collapse; font-size: 17px; }
.month-table th { background: #f1f5f9; padding: 14px 20px; text-align: right; font-size: 17px; font-weight: 700; color: #555; border-bottom: 2px solid #e2e8f0; }
.month-table th:first-child { text-align: center; width: 80px; }
.month-table td { padding: 14px 20px; text-align: right; border-bottom: 1px solid #f1f5f9; font-size: 17px; font-variant-numeric: tabular-nums; }
.month-table td:first-child { text-align: center; font-weight: 700; color: #1a3c6e; width: 80px; }
.month-table tr:hover td { background: #f8fafc; }
.month-table .inc-td { color: #2563eb; font-weight: 600; }
.month-table .ded-td { color: #dc2626; font-weight: 600; }
.month-table .net-td { color: #16a34a; font-weight: 700; }
.month-table tr.total-row td { background: #f1f5f9; font-weight: 800; font-size: 17px; border-top: 2px solid #e2e8f0; }

.table-scroll { overflow-x: auto; }
.detail-table { font-size: 16px; }
.detail-table th, .detail-table td { padding: 11px 14px; font-size: 15px; white-space: nowrap; }
.detail-table th.cat-th { color: #b91c1c; font-weight: 700; }
.detail-table td.cat-td { color: #dc2626; font-variant-numeric: tabular-nums; }
.detail-table tr.total-row .cat-td { font-weight: 800; }
.detail-table th.dedtot-th { color: #7c3aed; font-weight: 700; background: #f5f3ff; }
.detail-table td.dedtot-td { color: #7c3aed; font-weight: 700; background: #faf9ff; font-variant-numeric: tabular-nums; }
.detail-table tr.total-row .dedtot-td { font-weight: 800; background: #ede9fe; }

.detail-table td.year-td { white-space: nowrap; text-align: center; }
.detail-table th.diff-th { color: #475569; }
.detail-table td.diff-td { text-align: right; font-variant-numeric: tabular-nums; color: #94a3b8; }
.detail-table td.diff-td small { font-size: 12px; opacity: 0.85; }
.detail-table td.diff-td.up { color: #16a34a; font-weight: 700; }
.detail-table td.diff-td.down { color: #dc2626; font-weight: 700; }
.chart-title { font-size: 17px; font-weight: 800; color: #1e293b; margin-bottom: 14px; }
.chart-legend { display: flex; gap: 20px; margin-bottom: 16px; font-size: 14px; color: #475569; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.chart-legend .lg { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.chart-legend .lg.inc { background: #3b82f6; }
.chart-legend .lg.ded { background: #ef4444; }
.chart-legend .lg.net { background: #22c55e; }
.chart-scroll { overflow-x: auto; }
.bar-chart { width: 100%; min-width: 520px; height: 280px; }
.overview-hint { margin-top: 14px; font-size: 13px; color: #94a3b8; text-align: right; }
.no-data { text-align: center; padding: 50px; color: #aaa; font-size: 18px; }
.loading { text-align: center; padding: 60px; color: #888; font-size: 17px; }

/* ── 모바일 최적화 ── */
@media (max-width: 760px) {
  body.main-page { display: block; min-width: 0; font-size: 16px; background: #eef2f7; }

  .sidebar { width: 100%; min-height: 0; }
  .sidebar-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    align-items: center;
    padding: 14px 16px 12px;
    text-align: left;
  }
  .sidebar-header .logo { grid-column: 1; margin: 0 0 6px; font-size: 18px; }
  .sidebar-header .user { grid-column: 1; font-size: 16px; }
  .sidebar-header .user-sabn { grid-column: 1; margin: 2px 0 0; font-size: 13px; }
  .sidebar-header .logout-link {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: auto;
    min-height: 44px;
    padding: 10px 13px;
    font-size: 14px;
  }

  .sidebar-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 8px; }
  .nav-section, .year-list { display: none; }
  .nav-item { justify-content: center; gap: 5px; min-height: 44px; padding: 8px 5px; border-radius: 8px; font-size: 13px; text-align: center; }
  .nav-item.active { border-left: 0; background: rgba(255,255,255,0.22); box-shadow: inset 0 -3px 0 #c7d2fe; }
  .nav-item .icon { width: auto; font-size: 16px; }

  .main { width: 100%; padding: 14px 12px 28px; overflow: visible; }
  .page-title { margin: 2px 2px 12px; font-size: 20px; line-height: 1.35; }
  .page-heading-row { display: block; margin-bottom: 12px; }
  .page-heading-row .page-title { margin: 2px 2px 10px; padding-top: 0; }
  .page-action-area { justify-items: stretch; }
  .page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .page-action { flex: 1 1 180px; }
  .share-action, .print-action { align-items: center; justify-content: center; width: 100%; min-height: 48px; font-size: 15px; }
  .share-action { box-shadow: 0 3px 0 #d9c400; }
  .page-action-status { padding: 3px 2px 0; line-height: 1.45; text-align: center; }
  .card { padding: 15px; margin-bottom: 12px; border-radius: 12px; box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06); }

  .period-card { display: block; }
  .period-heading { min-width: 0; margin-bottom: 13px; }
  .period-heading strong { font-size: 16px; }
  .period-selector { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .period-field select { min-height: 48px; font-size: 16px; }
  .period-action { grid-column: 1 / -1; min-height: 48px; width: 100%; font-size: 16px; }
  .period-nav { grid-column: 1 / -1; }
  .period-nav-btn { flex: 1; min-height: 48px; width: auto; }
  .year-filter { grid-template-columns: 1fr; justify-content: stretch; }

  .info-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .info-chip { min-width: 0; padding: 8px 10px; flex-direction: column; align-items: flex-start; gap: 2px; }
  .info-chip .val { max-width: 100%; font-size: 15px; overflow-wrap: anywhere; }

  .hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .hero-net { grid-column: 1 / -1; padding: 18px; }
  .hero-net .h-val { font-size: clamp(27px, 8vw, 34px); }
  .hero-stat { min-width: 0; padding: 13px 12px; }
  .hero-stat .s-lbl { font-size: 13px; }
  .hero-stat .s-val { font-size: clamp(17px, 5vw, 22px); overflow-wrap: anywhere; }

  .detail-grid { grid-template-columns: 1fr; gap: 12px; }
  .detail-section { padding: 15px; }
  .pay-row { padding: 10px 0; }
  .pay-row .pr-top { gap: 12px; }
  .pay-row .pr-name { min-width: 0; font-size: 16px; }
  .pay-row .pr-amt { flex-shrink: 0; font-size: 17px; }
  .pay-row .pr-det { font-size: 13px; line-height: 1.45; }

  .year-summary-grid { grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
  .summary-box { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; }
  .summary-box .s-lbl { margin: 0; font-size: 13px; }
  .summary-box .s-val { font-size: clamp(19px, 6vw, 24px); text-align: right; overflow-wrap: anywhere; }

  .table-scroll { overflow: visible; }
  .detail-table, .detail-table tbody { display: block; width: 100%; }
  .detail-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .detail-table tbody { display: grid; gap: 10px; }
  .detail-table tr { display: block; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 11px; background: white; }
  .detail-table td,
  .detail-table td:first-child {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 9px 12px;
    border-bottom: 1px solid #f1f5f9;
    background: transparent;
    text-align: right;
    white-space: normal;
    font-size: 14px;
  }
  .detail-table td:last-child { border-bottom: 0; }
  .detail-table td::before {
    content: attr(data-label);
    flex: 0 0 40%;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
  }
  .detail-table td:first-child { background: #f8fafc; color: #1a3c6e; font-size: 16px; }
  .detail-table tr.total-row { border-color: #a5b4fc; }
  .detail-table tr.total-row td { background: #f5f3ff; font-size: 14px; border-top: 0; }
  .detail-table td.dedtot-td,
  .detail-table tr.total-row .dedtot-td { background: transparent; }
  .detail-table tr:hover td { background: inherit; }

  .chart-legend { flex-wrap: wrap; gap: 9px 14px; }
  .chart-scroll { margin: 0 -4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bar-chart { min-width: 460px; }
  .overview-hint { text-align: left; line-height: 1.45; }
  .no-data, .loading { padding: 36px 16px; font-size: 15px; }
}

/* 화면 폭이 아니라 실제 입력 장치로 모바일/컴퓨터 액션을 구분한다. */
@media (hover: none) and (pointer: coarse) {
  .share-action { display: flex; align-items: center; justify-content: center; }
  .print-action { display: none; }
}

@media (max-width: 380px) {
  .nav-item { flex-direction: column; gap: 2px; font-size: 12px; }
  .info-strip { grid-template-columns: 1fr; }
  .hero-stat .s-val { font-size: 16px; }
}

@media (max-width: 520px) {
  body.login-page { align-items: stretch; padding: 18px 12px; }
  .login-card { width: 100%; margin: auto; padding: 32px 22px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* ── 컴퓨터 인쇄용 ── */
@media print {
  @page { size: A4 portrait; margin: 10mm; }

  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  html, body { width: 100%; min-height: 0; background: white; }
  body.main-page { display: block; font-size: 12px; }
  .sidebar, .page-action-area, .period-card, .year-filter, .overview-hint { display: none !important; }
  .main { width: 100%; padding: 0; overflow: visible; }
  .page-heading-row { display: block; margin: 0 0 6mm; }
  .page-heading-row .page-title { margin: 0; padding: 0 0 3mm; border-bottom: 2px solid #1a3c6e; font-size: 20px; }
  .card { margin: 0 0 4mm; padding: 4mm; border: 1px solid #dbe2ea; border-radius: 8px; box-shadow: none; break-inside: avoid; }
  .info-strip { margin-bottom: 3mm; }
  .info-chip { padding: 4px 9px; }
  .hero { gap: 3mm; margin-bottom: 3mm; }
  .hero-net, .hero-stat { padding: 3mm 4mm; box-shadow: none; }
  .hero-net .h-val { font-size: 27px; }
  .hero-stat .s-val { font-size: 20px; }
  .detail-grid { grid-template-columns: 1fr 1fr; gap: 4mm; }
  .detail-section { padding: 3mm; break-inside: avoid; }
  .pay-row { padding: 4px 0; }
  .pay-row .pr-name { font-size: 14px; }
  .pay-row .pr-amt { font-size: 15px; }
  .pay-row .pr-det { font-size: 10px; }
  .pay-row .pr-bar { height: 3px; margin-top: 3px; }
  .sec-total .t-val { font-size: 16px; }
  .year-summary-grid { gap: 3mm; margin-bottom: 4mm; }
  .summary-box { padding: 3mm; }
  .summary-box .s-val { font-size: 20px; }
  .table-scroll, .chart-scroll { overflow: visible; }
  .detail-table { display: table; width: 100%; }
  .detail-table thead { display: table-header-group; position: static; width: auto; height: auto; clip: auto; overflow: visible; }
  .detail-table tbody { display: table-row-group; }
  .detail-table tr { display: table-row; }
  .detail-table th, .detail-table td, .detail-table td:first-child { display: table-cell; padding: 5px 7px; font-size: 10px; white-space: nowrap; }
  .detail-table td::before { display: none; content: none; }
  .bar-chart { min-width: 0; height: 210px; }
}
