/* ==========================================================================
   ui.css — 계정 · 권한, 빈 상태 · 오류 안내, 새 버전 알림 등 새로 더한 화면 요소
   기존 화면 색(주 색 #5046E5, 글자 #333 / #666 / #888, 선 #ddd)을 그대로 쓴다
   ========================================================================== */

.nowrap { white-space: nowrap; }
.muted { color: #888; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* 빈 상태 · 오류 안내: 제목 · 설명 · 다음 행동 버튼 */
.state-box { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 40px 16px; }
.state-title { font-size: 15px; font-weight: 600; color: #333; word-break: keep-all; }
.state-desc { font-size: 13px; color: #666; line-height: 1.6; max-width: 420px; word-break: keep-all; }
.state-box .btn { white-space: nowrap; }

/* 머리말 오른쪽 (이름 · 코드 변경 · 로그아웃) */
.hdr-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hdr-user { font-size: 13px; color: #666; white-space: nowrap; }
.login-help { margin-top: 10px; font-size: 12px; color: #888; word-break: keep-all; }

/* 두세 개 중 하나를 고르는 버튼 묶음 */
.seg { display: inline-flex; padding: 3px; background: #eef0f3; border-radius: 10px; gap: 2px; }
.seg-btn { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #555; cursor: pointer; white-space: nowrap; transition: background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.seg-btn:hover:not(:disabled) { color: #222; }
.seg-btn.active { background: #fff; color: #222; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg-btn:disabled { opacity: .45; cursor: not-allowed; }
.seg-btn:focus-visible { outline: 2px solid #5046E5; outline-offset: 1px; }

/* 칩: 글자 정중앙 */
.chip { display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 8px; border-radius: 6px; background: #f1f3f5; color: #444; font-size: 12px; line-height: 1; white-space: nowrap; vertical-align: middle; margin: 2px 0; }
.chip-strong { background: #ecebfd; color: #3f36c9; }
.chip-soft { background: #eef0f3; color: #666; }
.chip-warn { background: #fdf0e6; color: #a2531b; }

/* 표: 표 안에서만 스크롤, 머리 고정(불투명), 마지막 줄 선 */
.ux-table-wrap { overflow: auto; max-height: 100%; }
.ux-table-wrap > table { border: 0; margin: 0; }
.ux-table thead th { position: sticky; top: 0; z-index: 2; background: #f8f9fa; }
.ux-table tbody tr:last-child td { border-bottom: 1px solid #ddd; }
.ux-table th:last-child, .ux-table td:last-child { border-right: 0; }
.ux-table td { vertical-align: middle; }
.ux-table .acc-perms { text-align: center; white-space: normal; min-width: 220px; }

.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; padding-top: 10px; }
.pager-btn { min-width: 34px; height: 30px; padding: 0 8px; border: 1px solid #ddd; background: #fff; border-radius: 8px; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.pager-btn.active { background: #5046E5; border-color: #5046E5; color: #fff; }

/* 계정 · 권한 화면 */
.acc-card .card-title { margin-bottom: 10px; }
.acc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid #e9ecef; margin-bottom: 10px; }
.acc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.acc-actions .btn { white-space: nowrap; }
.acc-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.acc-body > .ux-table-wrap { flex: 1; min-height: 0; }
.acc-note { font-size: 12px; color: #666; line-height: 1.6; word-break: keep-all; margin: 0; }
.acc-sess-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-form { display: flex; flex-direction: column; gap: 10px; }
.acc-form .field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: #333; }
.acc-presets { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.acc-presets .btn { white-space: nowrap; }
.perm-cb { width: 18px; height: 18px; accent-color: #5046E5; cursor: pointer; vertical-align: middle; }
.perm-cb:disabled { cursor: not-allowed; }
.modal-footer .btn { white-space: nowrap; }

/* 새 버전 자동 업데이트 안내 */
.upd-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; background: rgba(17, 18, 22, .38); opacity: 0; transition: opacity .3s ease; padding: 16px; }
.upd-overlay.show { opacity: 1; }
.upd-card { position: relative; background: #fff; border-radius: 16px; padding: 28px 28px 24px; width: min(360px, 100%); text-align: center; box-shadow: 0 12px 40px rgba(0, 0, 0, .18); transform: translateY(8px) scale(.98); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.upd-overlay.show .upd-card { transform: none; }
.upd-ring { width: 120px; height: 120px; display: block; margin: 0 auto; transform: rotate(-90deg); }
.upd-ring-bg { fill: none; stroke: #eef0f3; stroke-width: 6; }
.upd-ring-fg { fill: none; stroke: #5046E5; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 0; animation: upd-ring 5s linear forwards; }
.upd-num { position: absolute; top: 28px; left: 0; right: 0; height: 120px; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 600; color: #222; font-variant-numeric: tabular-nums; }
.upd-num.tick { animation: upd-tick .5s cubic-bezier(.2, .8, .2, 1); }
.upd-title { margin-top: 16px; font-size: 17px; font-weight: 600; color: #222; word-break: keep-all; }
.upd-desc { margin-top: 6px; font-size: 13px; color: #666; word-break: keep-all; }
@keyframes upd-ring { to { stroke-dashoffset: 326.73; } }
@keyframes upd-tick { from { transform: scale(1.18); opacity: .4; } to { transform: none; opacity: 1; } }
.upd-reduce .upd-ring-fg, .upd-reduce .upd-num.tick { animation: none; }
.upd-reduce .upd-card { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .upd-overlay, .upd-card { transition: none; }
  .upd-ring-fg, .upd-num.tick { animation: none; }
}

/* 처리 중 표시: 화면 전체를 덮지 않고 위쪽 작은 알림만 (누르기는 잠깐 막아 두 번 저장되지 않게) */
.loading { background: transparent !important; align-items: flex-start !important; justify-content: center; padding-top: 70px; }
.busy-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 18px; background: #fff; color: #444; font-size: 13px; font-weight: 600; box-shadow: 0 8px 24px -6px rgba(15, 18, 30, .25), 0 0 0 1px rgba(15, 18, 30, .06); white-space: nowrap; animation: busyIn 220ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes busyIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.spinner-sm { width: 16px; height: 16px; border: 2px solid #e3e6ea; border-top-color: #5046E5; border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; display: inline-block; }
.modal-content.is-busy { position: relative; }
.modal-content.is-busy::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .6); border-radius: inherit; z-index: 5; }
.modal-content.is-busy::before { content: ''; position: absolute; top: 50%; left: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: 3px solid #e3e6ea; border-top-color: #5046E5; border-radius: 50%; animation: spin .8s linear infinite; z-index: 6; }
/* 영역 로딩: 불러오는 그 칸에만 */
.area-loading { display: flex; width: 100%; box-sizing: border-box; align-items: center; justify-content: center; gap: 10px; padding: 24px 16px; color: #8a8f98; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .busy-pill { animation: none; } }

/* ---------- 움직임: 팝업 · 탭 · 버튼 (짧고 부드럽게, 동작 줄이기 설정이면 끔) ---------- */
.modal.active { animation: veilIn 200ms ease-out both; }
.modal.active .modal-content { animation: sheetIn 320ms cubic-bezier(.22, 1, .36, 1) both; }
@keyframes veilIn { from { background-color: rgba(0, 0, 0, 0); } to { background-color: rgba(0, 0, 0, .5); } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
#tabContent > .card, #tabContent > div > .card { animation: fadeUp 260ms cubic-bezier(.22, 1, .36, 1) both; }
#tabContent > div > .card:nth-child(2) { animation-delay: 40ms; }
#tabContent > div > .card:nth-child(3) { animation-delay: 80ms; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.btn { transition: background-color 160ms ease-out, color 160ms ease-out, box-shadow 160ms ease-out, transform 120ms ease-out; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:focus-visible, .tab:focus-visible { outline: 2px solid #5046E5; outline-offset: 2px; }
.tab { transition: color 160ms ease-out, border-color 160ms ease-out; }
.toast { transition: opacity 240ms ease-out, transform 240ms cubic-bezier(.22, 1, .36, 1); transform: translateX(-50%) translateY(8px); }
.toast.active { transform: translateX(-50%) translateY(0); }
.state-box { animation: fadeUp 300ms cubic-bezier(.22, 1, .36, 1) both; }
.calendar-day { transition: background-color 160ms ease-out, transform 120ms ease-out; }
.calendar-day:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .modal.active, .modal.active .modal-content, #tabContent > .card, #tabContent > div > .card, .state-box { animation: none !important; }
  .btn, .tab, .toast, .calendar-day { transition: none !important; }
  .btn:active:not(:disabled), .calendar-day:active { transform: none; }
}

/* ---------- 휴대폰 폭 (360 등): 머리말 · 대시보드 요약이 넘치지 않게 ---------- */
.header h1 { white-space: nowrap; }
.dashboard-stats { gap: 10px; margin-bottom: 10px; }
.dashboard-stat .value { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 520px) {
  .header { padding: 10px 12px; gap: 8px; }
  .header h1 { font-size: 16px; }
  .hdr-user { display: none; }
  .hdr-right { gap: 6px; flex-wrap: nowrap; }
  .hdr-right .btn-sm, .header .btn-sm { padding: 6px 10px; }
  .hdr-icon { width: 30px; height: 30px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .dashboard-stats > .dashboard-stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .dashboard-stat { padding: 12px 8px; }
  .dashboard-stat .value { font-size: 17px; }
}

/* ---------- 다듬기 (2026-11-15): 입력칸 · 버튼 높이 맞추기, 글자 대비, 카드 선, 표 줄 표시 ---------- */
/* 기존 색(주 색 #5046E5) · 글꼴 · 배치는 그대로 두고 높이 · 선 · 대비 · 상태만 맞춘다 */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; color: #222; }
::selection { background: rgba(80, 70, 229, .18); }
input, textarea { caret-color: #5046E5; }

/* 카드: 흐린 그림자 대신 얇은 선 한 줄 + 옅은 그림자 (위치마다 같은 테두리) */
.card, .stat-card, .calendar-container {
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 0 0 1px rgba(16, 24, 40, .06);
}
.card-title { color: #222; }

/* 머리말 · 탭 */
.header { box-shadow: 0 1px 0 #eceef1; }
.tab { color: #5f6570; }
.tab:hover { color: #222; background: #fafafb; }
.tab.active { color: #5046E5; font-weight: 600; border-bottom: 0; box-shadow: inset 0 -2px 0 #5046E5; }

/* 입력칸: 고를 때 테두리 + 옅은 띠, 안내 글자는 읽히는 회색 */
.input-field { background-color: #fff; transition: border-color 160ms ease-out, box-shadow 160ms ease-out; }
.input-field:focus { border-color: #5046E5; box-shadow: 0 0 0 3px rgba(80, 70, 229, .14); outline: none; }
.input-field::placeholder, textarea::placeholder { color: #6b7079; }
.login-hint, .login-help { color: #5f6570; }
.input-field:disabled { background: #f3f4f6; color: #737880; cursor: not-allowed; }

/* 관리자 화면 칸 높이를 36px 하나로 (드롭다운 · 날짜 · 글자 칸이 33 · 37 · 42 로 제각각이던 것) */
#tabContent input.input-field:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#tabContent .ss-btn {
  height: 36px; min-height: 36px; padding-top: 0 !important; padding-bottom: 0 !important; font-size: 14px !important;
}

/* 버튼: 글자 · 아이콘 정중앙, 상태별 색 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; line-height: 1.2; }
.btn-block { display: flex; }
.btn-secondary:hover:not(:disabled) { background: #dfe3e8; }
.btn-danger:hover:not(:disabled) { background: #c82333; }
.btn-success:hover:not(:disabled) { background: #218838; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
#tabContent .btn-sm { min-height: 36px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
#tabContent td .btn-sm, .modal td .btn-sm { min-height: 28px; padding: 0 10px; font-size: 12px; }

/* 표: 숫자 자릿수 맞추기, 마우스를 올린 줄 표시 */
table { font-variant-numeric: tabular-nums; }
tbody tr { transition: background-color 120ms ease-out; }
tbody tr:hover { background: #f6f6fe; }

/* 작은 글자 키우기 (11px → 12px), 회색 글자 대비 */
.stat-label, .dashboard-stat .label, .preview-stat-label { font-size: 12px; color: #5f6570; }
.calendar-day .day-amount { font-size: 10px; }
.calendar-weekdays { color: #5f6570; }
.modal-close { color: #5f6570; }
.login-container h1 { font-size: 22px; font-weight: 600; color: #222; }

/* 라이더 화면 간격 10px (선지급 칸만 양옆이 화면 끝에 붙어 있던 것) */
#riderScreen .stats-container { padding: 10px; }
#riderScreen .calendar-container { margin: 10px; }
@media (max-width: 520px) {
  /* 휴대폰에서는 글자 칸 16px (작으면 아이폰이 화면을 확대한다) */
  #tabContent input.input-field:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { font-size: 16px !important; height: 40px; min-height: 40px; }
  /* 드롭다운은 버튼이라 확대되지 않는다. 14px 로 두고, 긴 글은 … 으로 자르지 않고 다음 줄로 넘긴다 */
  #tabContent .ss-btn { height: auto; min-height: 40px; padding-top: 6px !important; padding-bottom: 6px !important; }
  #tabContent .ss-btn .ss-label { white-space: normal; text-overflow: clip; line-height: 1.35; }
  #tabContent .btn-sm { min-height: 40px; }
  #tabContent td .btn-sm { min-height: 28px; }
}
@media (prefers-reduced-motion: reduce) { tbody tr { transition: none; } }

/* 통계 요약 칸: 금액은 한 줄로, 작은 제목은 12px */
.stat-tiles > div > div:first-child { font-size: 12px !important; }
.stat-tiles > div > div:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .stat-tiles > div { padding: 12px 8px !important; }
  .stat-tiles > div > div:last-child { font-size: 18px !important; }
}

/* =====================================================================
   2026-11-15 (2) 위쪽 한 줄 · 쪽 번호 · 표 가로 스크롤 없애기 · 테두리 한 겹 · 달력 · 라이더 요약 카드
   ===================================================================== */
:root { --line: #e3e6ea; }

/* ---------- 위쪽 한 줄: [제목] [작은 탭] [필터 · 버튼] ……… [총 N건] (uikit.js mergeBar, 라이더 · 통계는 .tb-row) ---------- */
.tb-bar, .tb-row { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px 10px !important; margin: 0 0 10px !important; padding: 0 0 10px !important; border-bottom: 1px solid var(--line) !important; }
.tb-bar > .tb-title, .tb-row > .tb-title-text { margin: 0 6px 0 0 !important; padding: 0 !important; border: 0 !important; white-space: nowrap; font-size: 16px; font-weight: 600; color: #222; display: inline-flex; align-items: center; gap: 8px; }
.tb-bar > .btn { min-height: 32px !important; padding: 0 12px !important; font-size: 13px !important; }
.tb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.tb-tools > div { display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px !important; margin: 0 !important; padding: 0 !important; }
.tb-tools.tb-right { margin-left: auto; }
.tb-count { margin-left: auto; font-size: 13px; color: #5f6570; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb-count:empty { display: none; }
.tb-tools.tb-right + .tb-count { margin-left: 10px; }
.tb-row > .btn:last-child { margin-left: auto; }
.tb-row > .tb-count:not(:empty) + .btn { margin-left: 10px; }
.list-count { flex-shrink: 0; margin: 0 0 10px; font-size: 13px; color: #5f6570; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tb-count .list-count { margin: 0; }
.won-note { display: none; }
.tb-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: #f59e0b; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
#tabContent.tab-fixed .tb-bar, #tabContent.tab-fixed .tb-row { flex-shrink: 0; }

/* ---------- 쪽 번호: ‹ 1 … 4 5 [6] 7 8 … 51 ›  1–100 / 5,061 ---------- */
.pg, .pager { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: nowrap; padding: 10px 0 0; flex-shrink: 0; }
.pg-btn, .pager-btn { min-width: 32px; height: 32px; padding: 0 6px; border: 0; background: transparent; border-radius: 8px; font-size: 13px; color: #3d4148; cursor: pointer; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; justify-content: center; transition: background-color 120ms ease-out, color 120ms ease-out; }
.pg-btn:hover:not(:disabled):not(.active), .pager-btn:hover:not(.active) { background: #f0f1f4; }
.pg-btn.active, .pager-btn.active { background: #5046E5; color: #fff; font-weight: 600; cursor: default; }
.pg-btn:disabled { color: #b8bcc4; cursor: default; }
.pg-btn:focus-visible, .pager-btn:focus-visible { outline: 2px solid #5046E5; outline-offset: 1px; }
.pg-gap { min-width: 20px; text-align: center; color: #8a8f98; font-size: 13px; }
.pg-info { margin-left: 10px; font-size: 12px; color: #5f6570; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .pg-info { display: none; } .pg-btn { min-width: 30px; height: 30px; } }

/* ---------- 표 테두리는 uikit.css 한 곳에서만 정한다 (표만 든 상자 .tbl-frame 이 바깥 네 변, 표는 안쪽 선) ---------- */

/* ---------- 표 가로 스크롤 없애기: 칸 여백을 줄이고, 칸이 많은 정산 표는 화면이 좁으면 글자를 조금 작게 · "원" 을 숨긴다 ---------- */
th, td { padding: 9px 8px; }
.dense-table th, .dense-table td { padding: 8px 5px; }
@media (max-width: 1600px) {
  .dense-table { font-size: 11.5px !important; }
  .dense-table th, .dense-table td { padding: 7px 4px; }
  .dense-table .won { display: none; }
  .won-note { display: inline; }
}
@media (max-width: 1366px) {
  .dense-table { font-size: 11px !important; }
  .dense-table th, .dense-table td { padding: 6px 3px; }
}

/* ---------- 달력: 칸 사이 선 한 줄, 마지막 주까지 7칸 (선이 두 겹 · 끊기던 것) ---------- */
.calendar-container { background: #fff; border-radius: 14px; overflow: hidden; }
.calendar-header { background: #fff; padding: 12px 12px 8px; }
.calendar-header #calendarTitle { font-size: 16px; font-weight: 600; color: #222; }
.calendar-weekdays { padding: 6px 0 8px; border-bottom: 1px solid var(--line); }
.calendar-day { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calendar-days > .calendar-day:nth-child(7n) { border-right: 0; }
.calendar-days > .calendar-day:nth-last-child(-n+7) { border-bottom: 0; }
.calendar-day.empty { background: #fafbfc; }
.calendar-day.has-settlement { background: #fff4e5; }
.calendar-day .day-amount { color: #5046E5; font-weight: 600; }

/* ---------- 라이더 화면: 요약 카드 한 장을 두 줄로 (이름 · 배달 | 달 실수령액 / 계좌 | 금액) + 선지급 ---------- */
#riderScreen .header { box-shadow: 0 1px 0 var(--line); }
.rider-summary { margin: 10px; padding: 12px 14px 10px; border-radius: 14px; background: #5046E5; color: #fff; box-shadow: 0 6px 16px -10px rgba(16, 24, 40, .45); }
.rs-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-width: 0; }
.rs-row + .rs-row { margin-top: 2px; }
.rs-name { display: inline-flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.rs-count { font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .85); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-count b { color: #fff; font-weight: 600; }
.rs-label { font-size: 12px; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.rs-bank { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; }
.rs-bank #riderBankInfo { overflow: hidden; text-overflow: ellipsis; }
.rs-amount { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-actions { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .22); display: flex; align-items: center; gap: 8px; }
.rs-actions-title { margin-right: auto; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rs-btn-ghost { background: rgba(255, 255, 255, .16) !important; color: #fff !important; }
.rs-btn-ghost:hover { background: rgba(255, 255, 255, .26) !important; }
.rs-btn { background: #fff !important; color: #3f36c9 !important; }
.rs-btn:hover { background: #eeedfd !important; }
.rider-summary .btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#riderScreen .calendar-container { margin: 0 10px 10px; }

/* ---------- 관리자 머리말: [관리자] [탭 메뉴] [이름 · ? · ! · 로그아웃] 한 줄 (2026-11-15 "탭 위로 올려"), 좁으면 탭만 아랫줄 ---------- */
#adminScreen > .header { padding-top: 0; padding-bottom: 0; min-height: 56px; gap: 0 16px; flex-wrap: nowrap; }
#adminScreen .hdr-tabs { flex: 1 1 auto; min-width: 0; align-self: stretch; display: flex; gap: 2px; background: transparent; border-bottom: 0; overflow-x: auto; scrollbar-width: none; }
#adminScreen .hdr-tabs::-webkit-scrollbar { display: none; }
#adminScreen .hdr-tabs .tab { flex: 0 0 auto; display: inline-flex; align-items: center; padding: 0 14px; font-size: 14px; }
@media (max-width: 1100px) {
  #adminScreen > .header { flex-wrap: wrap; padding: 8px 12px 0; }
  #adminScreen .hdr-tabs { order: 3; flex-basis: 100%; min-height: 44px; margin: 8px -12px 0; padding: 0 6px; border-top: 1px solid var(--line); }
}

/* ---------- 대시보드: 왼쪽 요약 숫자 · 최근 정산 / 오른쪽 올리기 · 업로드 현황 (2026-11-15) ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 10px; padding: 10px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dash-col > .card, .dash-uploads > .card { margin: 0 !important; }
.dash-uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
/* 상단 숫자 칸 · 최근 정산을 작게 ("상단 카드도 콤팩트하게") */
.dash-summary .card-title { margin-bottom: 10px; }
.dashboard-stats { gap: 10px; margin-bottom: 0; }
.dashboard-stat { padding: 10px 8px; border-radius: 10px; }
.dashboard-stat .value { font-size: 18px; }
.dashboard-stat .label { margin-top: 2px; }
.dash-summary h4 { margin: 14px 0 4px !important; font-size: 14px; }
.dash-summary .period-card { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; padding: 9px 2px; cursor: default; }
.dash-summary .period-card:last-child { border-bottom: 0; }
.dash-summary .period-card:hover { background: #fafafb; }
.dash-summary .period-info { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.dash-summary .period-info h4 { margin: 0 !important; font-size: 13px; font-weight: 600; white-space: nowrap; }
.dash-summary .period-info p { font-size: 12px; color: #5f6570; white-space: nowrap; }
.dash-summary .period-amount { font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- 통계 요약 칸 · 차감 합계 줄도 높이를 줄인다 ---------- */
.stat-tiles > div { padding: 8px 10px !important; border-radius: 10px !important; }
.stat-tiles > div > div:first-child { margin-bottom: 0 !important; }
@media (min-width: 521px) { .stat-tiles > div > div:last-child { font-size: clamp(15px, 1.1vw, 19px) !important; } }
#leaseSummary > div, #advanceSummary > div, #unpaidSummary > div { padding: 8px 12px !important; margin-bottom: 10px !important; }
@media (prefers-reduced-motion: reduce) { .pg-btn, .pager-btn { transition: none; } }

/* 통계 요약 칸 금액: 데스크톱에서도 칸 폭에 맞춰 글자 크기를 줄인다 (1280 폭에서 칸 밖으로 넘치던 것) */
@media (min-width: 521px) {
  .stat-tiles > div { padding: 12px 10px !important; }
  .stat-tiles > div > div:last-child { font-size: clamp(16px, 1.25vw, 22px) !important; }
}
/* 머리말: 버튼이 다 안 들어가면 버튼 묶음을 통째로 다음 줄로 (잘리지 않게) */
.header { flex-wrap: wrap; row-gap: 8px; }
.header > div:last-child, .header > .hdr-right { flex-wrap: nowrap !important; margin-left: auto; }
