/* CASH R2 — scoped solely to the cash-closing view (protected menus untouched). */
[data-view="cash"]{--cash-ink:#18314e;--cash-muted:#667c97;--cash-line:#dbe5f0;--cash-surface:#fff;--cash-tint:#f4f8fd;--cash-blue:#2179ce}
[data-view="cash"] .cash-report-title{border-left:4px solid #177fd2;padding-left:14px}
[data-view="cash"] .cash-report-title h1{font-weight:850;letter-spacing:-.03em}
[data-view="cash"] .cash-report{border:1px solid var(--cash-line);background:#fff;border-radius:13px;padding:14px 16px;margin:10px 0 17px;box-shadow:0 3px 12px #19395f0d;color:var(--cash-ink)}
[data-view="cash"] .cash-report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-bottom:12px;border-bottom:1px solid var(--cash-line);flex-wrap:wrap}
[data-view="cash"] .cash-report-toolbar-title{display:flex;flex-direction:column;gap:4px}
[data-view="cash"] .cash-report-toolbar-title strong{font-size:16px;color:#14375c}
[data-view="cash"] .cash-report-toolbar-title span{font-size:11px;color:var(--cash-muted)}
[data-view="cash"] .cash-report-actions{display:flex;flex-wrap:wrap;gap:6px}
[data-view="cash"] .cash-report-actions button{font-size:12px!important;min-height:35px;border-radius:7px!important;border-color:#c6dbef!important;color:#215177!important;background:#eef6fd!important;padding:6px 12px!important}
[data-view="cash"] #cashReportXlsx{background:#e3f5e9!important;color:#11623c!important;border-color:#b4dac3!important;font-weight:750!important}
[data-view="cash"] .cash-report-filter{display:grid;grid-template-columns:minmax(135px,1fr) minmax(135px,1fr) minmax(180px,1.15fr) auto;gap:9px;align-items:end;padding:12px 0 3px}
[data-view="cash"] .cash-report-filter label{font-size:12px;font-weight:750;color:#344965;display:grid;gap:5px}
[data-view="cash"] .cash-report-filter input,[data-view="cash"] .cash-report-filter select{width:100%;min-width:0;height:40px;background:#fff;border:1px solid #cbd8e8;border-radius:7px;padding:6px 9px;color:#1c334c}
[data-view="cash"] .cash-report-filter button{height:40px;padding:6px 18px;white-space:nowrap}
[data-view="cash"] .cash-report-error{color:#b42318;font-weight:700}
[data-view="cash"] #cashReportMessage{font-size:11px;margin:8px 0 4px}
[data-view="cash"] .cash-report-totals{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:12px 0 16px}
[data-view="cash"] .cash-report-kpi{border:1px solid #dbe7f1;border-top:3px solid #82b3e4;background:#f7faff;border-radius:8px;padding:11px;display:flex;flex-direction:column;gap:7px;min-width:0}
[data-view="cash"] .cash-report-kpi>span{font-size:11px;color:#596e83}
[data-view="cash"] .cash-report-kpi strong{font-size:clamp(14px,1.17vw,18px);color:#1c3e61;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
[data-view="cash"] .cash-report-kpi:nth-child(2){background:#edf6ff;border-color:#d3e8fa;border-top-color:#3088d9}
[data-view="cash"] .cash-report-kpi:nth-child(5){background:#eaf8ef;border-color:#cfecd9;border-top-color:#2e9c70}
[data-view="cash"] .cash-report-kpi.alert:nth-child(5){background:#fff0f0;border-color:#f1c8c8;border-top-color:#d54b4b}
[data-view="cash"] .cash-report-kpi.alert strong,[data-view="cash"] .cash-negative{color:#b42318!important;font-weight:850}
[data-view="cash"] .cash-report-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(280px,.7fr);gap:12px;margin-bottom:16px;align-items:start}
[data-view="cash"] .cash-report-calendar-wrap,[data-view="cash"] .cash-report-mini{border:1px solid var(--cash-line);background:#fff;border-radius:10px;padding:12px;min-width:0}
[data-view="cash"] .cash-report-calendar-wrap{background:#fafdff}
[data-view="cash"] .cash-report-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:1px 0 9px}
[data-view="cash"] .cash-report-section-head h2{font-size:14px;color:#163958;font-weight:850;margin:0}
[data-view="cash"] .cash-report-section-head small{font-size:11px;color:#4d6178;display:block;margin-top:4px}
[data-view="cash"] .cash-report-month-nav{display:flex;align-items:center;gap:8px;font-size:13px;white-space:nowrap}
[data-view="cash"] .cash-report-month-nav button{padding:0;width:29px;height:29px;border:1px solid #ccdaea;background:#fff;border-radius:6px;font-size:23px;color:#355b84;cursor:pointer}
[data-view="cash"] .cash-report-legend{display:flex;gap:10px 13px;flex-wrap:wrap;padding:7px 8px;background:#eef5fb;border-radius:7px;margin-bottom:9px}
[data-view="cash"] .cash-report-legend span{font-size:11px;color:#2e4863;display:flex;gap:5px;align-items:center;font-weight:700}
[data-view="cash"] .cash-report-legend i,[data-view="cash"] .cash-station-title i,[data-view="cash"] .cash-day-detail-grid i{width:9px;height:9px;border-radius:3px;display:inline-block;flex:none}
[data-view="cash"] .cash-report-weekdays,[data-view="cash"] .cash-report-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
[data-view="cash"] .cash-report-weekdays{text-align:center;padding:4px 0 6px;color:#60758d;font-size:11px}
[data-view="cash"] .cash-report-weekdays b:first-child{color:#c74646}
[data-view="cash"] .cash-report-days{position:relative}
[data-view="cash"] .cash-day{min-width:0;position:relative;min-height:130px;border:1px solid #dae5ef;background:#fff;border-radius:7px;padding:7px 5px;display:flex;flex-direction:column;gap:4px;align-items:stretch;text-align:left;cursor:pointer;color:#203e58;transition:border-color .15s,box-shadow .15s}
[data-view="cash"] .cash-day:hover:not(:disabled),[data-view="cash"] .cash-day:focus-visible{border-color:#2683c9;box-shadow:0 2px 7px #2563eb1e;z-index:1}
[data-view="cash"] .cash-day-number{font-size:13px;font-weight:900}
[data-view="cash"] .cash-day-counts{font-size:11px;color:#4d6178;letter-spacing:-.2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[data-view="cash"] .cash-day-stations{display:grid;gap:3px;overflow:hidden}
[data-view="cash"] .cash-day-station{display:flex;align-items:center;gap:3px;padding:2px 3px 2px 4px;font-size:11px;line-height:1.2;background:color-mix(in srgb,var(--cash-station-color),#fff 91%);border-left:3px solid var(--cash-station-color);color:#2b465e;border-radius:2px;min-width:0;white-space:nowrap}
[data-view="cash"] .cash-day-station>span{overflow:hidden;text-overflow:ellipsis}
[data-view="cash"] .cash-day-status{width:7px;height:7px;border-radius:50%;background:#8994a4;flex:none}
[data-view="cash"] .cash-day-status.good{background:#16805a}
[data-view="cash"] .cash-day-status.warn{background:#e6a235}
[data-view="cash"] .cash-day-status.bad{background:#d44545}
[data-view="cash"] .cash-day-status.missing{background:#9aaabc;border:1px solid #fff}
[data-view="cash"] .cash-day-more{font-size:11px;color:#546984}
[data-view="cash"] .cash-day.bad{background:#fffafa}
[data-view="cash"] .cash-day.warn{background:#fffcf5}
[data-view="cash"] .cash-day.good{background:#f7fdf9}
[data-view="cash"] .cash-day.partial{background:#f5f9ff}
[data-view="cash"] .cash-day.future{background:#f8f9fb}
[data-view="cash"] .cash-day.outside{opacity:.45;cursor:default}
[data-view="cash"] .cash-day.picked{outline:3px solid #2781d1;outline-offset:-3px}
[data-view="cash"] .cash-day-picked{position:absolute;top:5px;right:7px;color:#1769b3;font-size:13px}
[data-view="cash"] .cash-report-hover{position:fixed;z-index:99999!important;width:min(340px,calc(100vw - 24px));max-height:min(480px,75vh);overflow:auto;background:#fff;box-shadow:0 11px 36px #172a3f40;border:1px solid #c9d9e8;border-radius:11px;padding:13px;color:#223a56;font-size:12px;pointer-events:none}
[data-view="cash"] .cash-report-hover[hidden]{display:none!important}
[data-view="cash"] .cash-hover-title{font-size:14px;color:#163957}
[data-view="cash"] .cash-hover-count{margin:7px 0 10px;padding:7px;background:#eef5fb;border-radius:5px;font-size:11px}
[data-view="cash"] .cash-hover-station{display:grid;grid-template-columns:10px minmax(65px,1fr) auto;gap:3px 7px;align-items:center;padding:5px 0;border-bottom:1px solid #edf2f7}
[data-view="cash"] .cash-hover-station>em{grid-column:2;font-style:normal;color:#244c70;font-weight:800;font-variant-numeric:tabular-nums}
[data-view="cash"] .cash-hover-station>small{grid-column:3;color:#4d6178;font-size:11px}
[data-view="cash"] .cash-hover-dot{width:10px;height:10px;border-radius:3px}
[data-view="cash"] .cash-report-day-detail{margin-top:9px}
[data-view="cash"] .cash-report-day-detail:empty{display:none}
[data-view="cash"] .cash-report-day-detail>strong{display:block;font-size:12px;margin:5px 0 7px}
[data-view="cash"] .cash-day-detail-grid{display:flex;gap:6px;flex-wrap:wrap}
[data-view="cash"] .cash-day-detail-grid>span{display:flex;align-items:center;gap:5px;font-size:11px;border:1px solid #dfebf5;border-radius:6px;padding:6px;background:#fff}
[data-view="cash"] .cash-day-detail-grid small{font-size:11px;color:#4d6178}
[data-view="cash"] .cash-report-calendar-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
[data-view="cash"] .cash-report-calendar-bottom p{margin:0;font-size:11px}
[data-view="cash"] .cash-report-calendar-bottom button{white-space:nowrap;font-size:11px}
[data-view="cash"] .cash-report-station-row{padding:12px 10px;margin:8px 0 0;border:1px solid #dce6ef;border-left:4px solid var(--cash-station-color);background:#fbfdff;border-radius:7px;display:grid;gap:8px}
[data-view="cash"] .cash-station-title{display:flex;gap:7px;align-items:center;font-size:12px}
[data-view="cash"] .cash-station-title i{background:var(--cash-station-color)}
[data-view="cash"] .cash-station-title span{margin-left:auto;font-size:11px;color:#6f8298}
[data-view="cash"] .cash-station-amount{font-size:19px;font-weight:850;color:#164875;font-variant-numeric:tabular-nums;text-align:right}
[data-view="cash"] .cash-station-meta{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;font-size:11px;color:#4d6178}
[data-view="cash"] .cash-report-table-head{margin:12px 0 8px}
[data-view="cash"] .cash-report-table-head strong{font-size:12px;color:#305a80}
[data-view="cash"] .cash-report-table-scroll{width:100%;overflow:auto;border:1px solid #cbdbe9;border-radius:7px}
[data-view="cash"] .cash-report-table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px;white-space:nowrap;min-width:1100px}
[data-view="cash"] .cash-report-table th,[data-view="cash"] .cash-report-table td{padding:9px 9px;border-right:1px solid #e1e9f2;border-bottom:1px solid #e5edf5;text-align:center}
[data-view="cash"] .cash-report-table thead th{position:sticky;top:0;z-index:2;background:#224d76;color:white;font-size:11px}
[data-view="cash"] .cash-report-table tbody tr:nth-child(even){background:#f4f8fd}
[data-view="cash"] .cash-report-table tbody tr:hover{background:#e9f3fc}
[data-view="cash"] .cash-report-table .num{text-align:right;font-variant-numeric:tabular-nums}
[data-view="cash"] .cash-report-table .empty{color:#65758c;padding:23px;text-align:center}
[data-view="cash"] .cash-report-table tfoot{font-weight:800;background:#e4f0fb}
[data-view="cash"] .cash-report-table .cash-station-subtotal{background:#ecf6fc}
[data-view="cash"] .cash-report-table .cash-total-row{background:#1e4c78;color:#fff}
[data-view="cash"] .cash-status{display:inline-block;border-radius:6px;padding:3px 7px;font-size:11px;white-space:nowrap;background:#edf1f5;color:#4d6178}
[data-view="cash"] .cash-status.good{background:#e0f5e9;color:#0b784a}
[data-view="cash"] .cash-status.warn{background:#fff1d7;color:#a3650f}
[data-view="cash"] .cash-status.bad{background:#ffe8e8;color:#b32626}
[data-view="cash"] .cash-edit-title{margin:13px 0 9px;font-size:16px;color:#173a60;font-weight:850}
[data-view="cash"] #cashForm.cash-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(240px,280px)!important;align-items:start;gap:12px!important;background:#f9fbfe;border-radius:12px;border:1px solid #d9e5f0;padding:12px;margin:0 0 14px}
[data-view="cash"] #cashForm.cash-layout[hidden]{display:none!important}
[data-view="cash"] .cash-fields{min-width:0;display:grid;gap:10px}
[data-view="cash"] .cash-entry-section{min-width:0;border:1px solid #dce7f1;background:#fff;border-radius:10px;padding:11px}
[data-view="cash"] .cash-entry-basic{border-left:4px solid #408fd2}
[data-view="cash"] .cash-entry-money{border-left:4px solid #ec9d44}
[data-view="cash"] .cash-entry-compare{border-left:4px solid #8a78d5}
[data-view="cash"] .cash-entry-heading{display:flex;gap:9px;align-items:center;margin-bottom:10px}
[data-view="cash"] .cash-entry-heading>div{display:flex;flex-direction:column;gap:3px}
[data-view="cash"] .cash-entry-heading strong{font-size:13px;color:#203d5c}
[data-view="cash"] .cash-entry-heading small{font-size:11px;color:#4d6178}
[data-view="cash"] .cash-entry-step{display:grid;place-items:center;width:25px;height:25px;border-radius:7px;background:#ebf4fd;color:#2d6eb4;font-weight:850;font-size:12px}
[data-view="cash"] .cash-entry-money .cash-entry-step{background:#fff3df;color:#b96f1c}
[data-view="cash"] .cash-entry-compare .cash-entry-step{background:#f0ecfd;color:#6b57b9}
[data-view="cash"] .cash-entry-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
[data-view="cash"] .cash-entry-grid.basic{grid-template-columns:repeat(2,minmax(0,1fr))}
[data-view="cash"] .cash-entry-grid label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:11px;font-weight:750;color:#38506c;margin:0}
[data-view="cash"] .cash-entry-grid label input,[data-view="cash"] .cash-entry-grid label select{display:block;width:100%;min-width:0;height:43px;padding:8px 9px;box-sizing:border-box;border-radius:7px;border:1px solid #ccdbea;background:#fff;color:#173856;font-size:14px;font-weight:750;font-variant-numeric:tabular-nums}
[data-view="cash"] .cash-entry-grid label input:focus,[data-view="cash"] .cash-entry-grid label select:focus{outline:2px solid #74b3e8;outline-offset:0}
[data-view="cash"] .cash-entry-grid label small{display:block;min-height:28px;font-size:11px;font-weight:400;color:#4d6178;line-height:1.35;margin:0}
[data-view="cash"] .cash-entry-grid label:has(small) input{border-color:#c4d8e9}
[data-view="cash"] #baseFloat[readonly]{background:#f0f4f9;color:#596c83}
[data-view="cash"] .cash-reason-label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#3e5973}
[data-view="cash"] .cash-reason-label textarea{width:100%;min-height:48px;border:1px solid #d5e1ec;border-radius:7px;background:#fff;font-size:12px;padding:8px;box-sizing:border-box}
[data-view="cash"] .cash-save-button{min-height:44px!important;background:#147bc6!important;color:white!important;border-radius:7px!important}
[data-view="cash"] #cashForm .cash-summary{display:flex;flex-direction:column;gap:10px;top:16px;position:sticky}
[data-view="cash"] .cash-summary-heading{display:grid;gap:4px;padding:2px}
[data-view="cash"] .cash-summary-heading strong{font-size:14px;color:#163958}
[data-view="cash"] .cash-summary-heading small{font-size:11px;color:#4d6178}
[data-view="cash"] .cash-summary .difference-box{display:grid;gap:8px;padding:14px!important;margin:0!important;border-radius:9px!important;border:1px solid #d1e6f9!important;border-top:3px solid #4f9bde!important;background:#edf6ff!important;box-shadow:none!important}
[data-view="cash"] .cash-summary .difference-box span{font-size:11px;color:#38577a}
[data-view="cash"] .cash-summary .difference-box strong{font-size:clamp(20px,2vw,27px);text-align:right;line-height:1.2;letter-spacing:-.035em;white-space:nowrap;font-variant-numeric:tabular-nums}
[data-view="cash"] .cash-summary .cash-first-box{background:#fff8e9!important;border-color:#efdaaa!important;border-top-color:#e3aa4c!important}
[data-view="cash"] .cash-summary .cash-final-box{background:#ebf8f0!important;border-color:#c0e5d0!important;border-top-color:#209463!important}
[data-view="cash"] #cashDirection{font-size:11px;color:#597087;line-height:1.5;margin:2px 0}
@media(max-width:1320px){[data-view="cash"] .cash-report-totals{grid-template-columns:repeat(3,minmax(0,1fr))}[data-view="cash"] .cash-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){[data-view="cash"] .cash-report-layout{grid-template-columns:1fr}[data-view="cash"] #cashForm.cash-layout{grid-template-columns:minmax(0,1fr)!important}[data-view="cash"] #cashForm .cash-summary{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}[data-view="cash"] .cash-summary-heading,[data-view="cash"] #cashDirection,[data-view="cash"] #cashAnalysis{grid-column:1/-1}}
@media(max-width:690px){[data-view="cash"] .cash-report{padding:10px}[data-view="cash"] .cash-report-filter{grid-template-columns:repeat(2,minmax(0,1fr))}[data-view="cash"] .cash-report-actions{width:100%}[data-view="cash"] .cash-report-actions button{flex:1;min-width:100px;font-size:11px!important}[data-view="cash"] .cash-report-totals{grid-template-columns:repeat(2,minmax(0,1fr))}[data-view="cash"] .cash-day{min-height:80px;padding:4px 3px}[data-view="cash"] .cash-day-station{font-size:11px}[data-view="cash"] .cash-day-stations .cash-day-station:nth-child(n+3){display:none}[data-view="cash"] .cash-day-counts{font-size:11px}[data-view="cash"] .cash-day-number{font-size:11px}[data-view="cash"] .cash-report-calendar-bottom{flex-wrap:wrap}[data-view="cash"] .cash-report-filter label{font-size:11px}[data-view="cash"] .cash-report-filter label:nth-child(3){grid-column:1/-1}[data-view="cash"] .cash-report-filter #cashReportSearch{grid-column:1/-1}[data-view="cash"] #cashForm.cash-layout{padding:8px}[data-view="cash"] .cash-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}[data-view="cash"] .cash-entry-grid label input{font-size:13px}[data-view="cash"] #cashForm .cash-summary{grid-template-columns:1fr}[data-view="cash"] .cash-report-section-head small{display:none}}
@media(max-width:370px){[data-view="cash"] .cash-day-station{padding:2px 1px;border-left-width:2px}[data-view="cash"] .cash-day-counts{display:none}[data-view="cash"] .cash-day{min-height:66px}[data-view="cash"] .cash-entry-grid{grid-template-columns:1fr}}
@media print{[data-view="cash"] .cash-report-toolbar,[data-view="cash"] .cash-report-filter{display:none!important}}


/* R148 — 읽기 쉬움·터치(2026-10-29 점검): 작은 글씨 11px 이상, 연한 글씨 진하게, 주요 단추 44px */
[data-view="cash"] #cashReportPrint,[data-view="cash"] #cashReportXlsx,[data-view="cash"] #cashReportCsv,[data-view="cash"] #cashReportClearDates,[data-view="cash"] #cashReportPrevMonth,[data-view="cash"] #cashReportNextMonth{min-height:44px}
[data-view="cash"] #cashReportPrevMonth,[data-view="cash"] #cashReportNextMonth{min-width:44px}
[data-view="cash"] #cashReportSearch{background:#1456c8!important;color:#fff!important;min-height:44px}
[data-view="cash"] .cash-report-toolbar button{min-height:44px!important;height:auto!important}
[data-view="cash"] .cash-save-button{background:#0f67a8!important}
[data-view="cash"] .cash-report-title p{color:#4d6178!important}
@media(max-width:690px){[data-view="cash"] .cash-day-station,[data-view="cash"] .cash-day-counts,[data-view="cash"] .cash-day-more{font-size:11px!important}}
[data-view="cash"] #cashReportPrint,[data-view="cash"] #cashReportXlsx,[data-view="cash"] #cashReportCsv{min-height:44px!important;height:auto!important}
[data-view="cash"] .cash-save-button,[data-view="cash"] #cashReportSearch{background-image:none!important}
[data-view="cash"]{--cash-muted:#4d6178}
html body [data-view="cash"] .page-title p{color:#4d6178!important}
html body [data-view="cash"] #cashForm .cash-save-button{background:#0f67a8!important;background-image:none!important}
html body [data-view="cash"] .cash-entry-step{color:#7a4300!important}
/* R336 — 달력 칸 안 주유소 이름·요약이 '…'로 잘리지 않고 두 줄까지 보이게 한다 */
[data-view="cash"] .cash-day-station>span{white-space:normal;overflow-wrap:anywhere;word-break:keep-all;text-overflow:clip}
[data-view="cash"] .cash-day-counts{white-space:normal;text-overflow:clip;line-height:1.2}
/* R351 — 폰 달력 칸이 좁아 주유소 이름이 "무/한/대/주/유/소"처럼 한 글자씩 세로로 쌓여 읽을 수 없던 것 → 폰에서는 칸마다 주유소 색 점(상태 색)만 나란히 보이고 이름은 위 색 안내(범례)·날짜를 눌러 보는 상세에서 본다 */
@media(max-width:690px){
  [data-view="cash"] .cash-day-stations{display:flex;flex-wrap:wrap;gap:3px}
  [data-view="cash"] .cash-day-stations .cash-day-station,[data-view="cash"] .cash-day-stations .cash-day-station:nth-child(n+3){display:flex;flex:0 0 auto;width:14px;height:14px;padding:0;justify-content:center;align-items:center;border-left-width:0;border-radius:50%;background:var(--cash-station-color)}
  [data-view="cash"] .cash-day-stations .cash-day-station>span{display:none}
  [data-view="cash"] .cash-day-stations .cash-day-station .cash-day-status{margin:0;box-shadow:0 0 0 2px #fff}
}
