/* 운행 통계 카드 (라이트/다크 공통 — 색은 theme.css·dark.css 의 변수를 따라감) */
.stats_card {
    background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-1);
    margin: 14px 12px 6px; padding: 12px 10px 10px; cursor: pointer;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.stats_card:active { background: var(--fill); }
.st_header { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 6px; }
.st_title { font-size: 14px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.st_more  { font-size: 11px; color: var(--ink-3); }
.st_table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; font-size: 12.5px; color: var(--ink); }
.st_table th { font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 4px 0 6px; border-bottom: 1px solid var(--line); }
.st_table td { padding: 8px 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.st_table tr + tr td { border-top: 1px solid var(--line); }
.st_table th:first-child, .st_table td:first-child { width: 17%; }
.st_date { font-weight: 800 !important; }
.st_date small { display: block; font-size: 10px; font-weight: 500; color: var(--ink-3); }
.st_date.sun, .st_date.sun small { color: #E5484D; }
.st_date.sat, .st_date.sat small { color: #3B82F6; }
.st_foot { padding: 6px 4px 0; font-size: 10px; color: var(--ink-3); }
.st_empty { padding: 18px 0; text-align: center; font-size: 12px; color: var(--ink-3); }

/* ---- 한 달 보기 팝업 (하단 시트) ---- */
:root { --st-line: #3B82F6; --st-area: rgba(59,130,246,.14); }
html.dark-mode { --st-line: #FEE500; --st-area: rgba(254,229,0,.12); }
html.st_lock, html.st_lock body { overflow: hidden; }
.st_modal { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; padding: 16px; }
.st_modal.open { display: flex; }
.st_sheet {
    width: 100%; max-width: 560px; max-height: 86vh; display: flex; flex-direction: column;
    background: var(--bg); color: var(--ink); border-radius: 22px; box-shadow: 0 10px 40px rgba(0,0,0,.35);
    border: 1px solid var(--line); animation: stUp .2s ease-out;
}
@keyframes stUp { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.st_sheet_head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.st_close { border: 0; background: var(--fill); color: var(--ink-2); width: 30px; height: 30px; border-radius: 50%; font-size: 14px; line-height: 30px; padding: 0; }
.st_sheet_body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 14px 16px; }
.st_period { font-size: 12px; color: var(--ink-2); padding: 0 4px 10px; }
.st_tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st_tile { background: var(--fill); border-radius: 14px; padding: 10px 8px; text-align: center; }
.st_tl { font-size: 11px; color: var(--ink-2); }
.st_tv { font-size: 18px; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; }
.st_tv small { font-size: 11px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.st_sub { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 16px 4px 6px; }
.st_chart { width: 100%; height: auto; display: block; }
.st_grid { stroke: var(--line); stroke-width: 1; }
.st_axis { fill: var(--ink-3); font-size: 9px; }
.st_line { fill: none; stroke: var(--st-line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.st_area { fill: var(--st-area); stroke: none; }
.st_dot { fill: var(--st-line); }
.st_table_full th { position: sticky; top: 0; background: var(--bg); z-index: 1; }
.st_table_full td { padding: 7px 0; font-size: 12px; }

/* 다크: 표 머리글은 배경과 같은 색 + 옅은 회색 글자 (popup-dark.css 의 노란 th 규칙 무효화) */
html.dark-mode .st_table th { background: transparent; color: var(--ink-3); border-bottom: 1px solid var(--line); }
html.dark-mode .st_table_full th { background: var(--bg); }
html.dark-mode .st_table { background: transparent; box-shadow: none; }
html.dark-mode .st_table td { color: var(--ink); border-bottom: 0; }
html.dark-mode .st_table td.st_date.sun { color: #FF6B6B; }
html.dark-mode .st_table td.st_date.sat { color: #6AA6FF; }

/* ---- 메인 카드: 5칸, 큰 글씨, 주말 색 없음 ---- */
.st_main th { font-size: 12px; padding: 4px 0 8px; }
.st_main td { font-size: 17px; font-weight: 700; padding: 11px 0; }
.st_main td.st_date { font-size: 15px; white-space: nowrap; }
.st_main td.st_date small { display: inline; font-size: 12px; margin-left: 1px; }   /* 10/05(월) 한 줄로 */
.st_main th:first-child, .st_main td:first-child { width: 27%; }