/* 흥아타이어판매 공통 화면: 로고 적색, 중립 배경, 동일한 제목 체계. */
@font-face{font-family:HatsSans;src:url('/static/HatsSans.woff2') format('woff2');font-display:swap;font-weight:100 900}
:root{--brand:#e91335;--brand-action:#bd1230;--brand-hover:#9f1028;--brand-soft:#fff0f3;--brand-ink:#292629;--brand-muted:#686168;--brand-line:#e3dfe1;--brand-canvas:#f7f6f6;--brand-table:#f1eeef;--brand-border:#bcb4b8;--brand-bar:#cfc5c8;--ink:var(--brand-ink);--navy:var(--brand-action);--blue:var(--brand-action);--red:var(--brand);--red-dark:var(--brand-action);--focus:var(--brand-action);--muted:var(--brand-muted);--line:var(--brand-line);--border:var(--brand-line);--surface:var(--brand-canvas);--soft:var(--brand-canvas);--back:var(--brand-canvas);--paper:#fff;font-family:HatsSans,'Malgun Gothic',sans-serif;scrollbar-color:#bcb4b8 var(--brand-canvas)}
body{font-family:HatsSans,'Malgun Gothic',sans-serif;color:var(--brand-ink);background:var(--brand-canvas)}
::selection{background:var(--brand-action);color:#fff}input,textarea{caret-color:var(--brand-action)}:focus-visible{outline:3px solid var(--brand-action);outline-offset:3px}input::placeholder,textarea::placeholder{color:var(--brand-muted)}
::-webkit-scrollbar-thumb{background:#bcb4b8}::-webkit-scrollbar-track{background:var(--brand-canvas)}
.app-sidebar{background:#352a2e;color:#fff}.sidebar-brand{color:#fff}.sidebar-brand span,.sidebar-label,.system-link,.sidebar-tools button,.sidebar-account button{color:#e7dde1}.system-link:hover,.sidebar-collapse:hover,.sidebar-tools button:hover,.sidebar-account button:hover{background:#514047;color:#fff}.system-link.active{background:var(--brand);color:#fff}.sidebar-collapse{color:#fff}.sidebar-account,.sidebar-tools{border-color:#645159}.sidebar-logout{color:#e7dde1!important}
.primary,.fc-save{background:var(--brand-action);border-color:var(--brand-action);color:#fff}.primary:hover,.fc-save:hover{background:var(--brand-hover);color:#fff}
.module-header h1,.daily-heading h1,.ops-heading h1,.heading h1{font-size:26px;line-height:1.3;font-weight:750;letter-spacing:-.03em;color:var(--brand-ink)}
.module-header>p,.daily-heading p,.ops-heading p,.heading p{font-size:13px;line-height:1.5;color:var(--brand-muted)}
.ops-heading .eyebrow{display:none}.ops-shell,.daily-shell{max-width:1600px;padding:20px 28px 24px}.ops-heading{margin-bottom:20px}.daily-heading{margin-bottom:12px}.sync-state{background:#f1eeef;color:var(--brand-muted)}
@media(max-width:760px){.ops-shell,.daily-shell{padding:16px 12px 22px}.module-header h1,.daily-heading h1,.ops-heading h1,.heading h1{font-size:23px}}

/* 주말 표시는 매출 증감 색상과 별도로 날짜의 의미를 유지합니다. */
.weekdays span:last-child,.day-card.saturday .day-number{color:#526a8c}
@media(max-width:620px){.day-total{white-space:normal;overflow:visible;overflow-wrap:anywhere;font-size:10px;line-height:1.3}.plan-row>div:last-child strong{font-size:13px}}
/* 모든 업무 메뉴는 제목 중심의 같은 간결한 헤더를 사용합니다. */
.module-header{padding:20px 28px 0;background:var(--brand-canvas);border-bottom:0}.module-header>p,.ops-heading #page-description,.ops-heading .sync-state{display:none}.module-header nav{margin-top:14px}.module-header .nav{padding-bottom:12px}.module-header h1,.ops-heading h1,.workspace-heading h1{font-size:26px;line-height:1.3;font-weight:750;letter-spacing:-.03em;margin:0;color:var(--brand-ink)}.ops-heading{min-height:38px;margin-bottom:16px}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:4px 0 16px}.workspace-heading .heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.workspace-heading button{min-height:34px;padding:6px 10px;font-size:12px}.workspace-heading .source-stamp,.workspace-heading .source-stamp strong{font-size:10px;font-weight:400;color:var(--brand-muted)}.workspace-heading .source-stamp{margin-right:12px}.daily-title-group{display:flex;align-items:center;gap:18px;flex-shrink:0}.daily-title-group select{min-height:34px;padding:5px 28px 5px 10px;font-size:13px;border-color:var(--brand-border)}
@media(max-width:760px){.module-header{padding:16px 12px 0}.module-header h1,.ops-heading h1,.workspace-heading h1{font-size:23px}.workspace-heading{flex-wrap:wrap}.workspace-heading .heading-actions{justify-content:flex-start}.workspace-heading .source-stamp{display:none}.daily-title-group{gap:10px}.daily-title-group select{max-width:105px}.daily-shell #source-note{max-width:35%}}
.shared-data-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0 14px;font-size:11px;color:var(--brand-muted)}.shared-data-bar>span:first-child{flex:1}.shared-data-bar button{min-height:30px;padding:4px 9px;font-size:11px;background:white;border:1px solid var(--brand-border);color:var(--brand-action);border-radius:5px}.shared-data-bar .provisional{color:#9b6500}.shared-load-error{position:fixed;inset:0;z-index:9999;background:var(--brand-canvas);padding:40px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:18px}.shared-load-error button{background:var(--brand-action);color:white;padding:12px 20px;border:0;border-radius:6px}.fc-stale{padding:12px;background:#fff4df;color:#785321}.fc-stale button{margin-left:12px}
#sales-data-dialog{width:min(1100px,calc(100vw - 24px));max-height:90dvh;padding:0;border:1px solid var(--brand-line);border-radius:10px;color:var(--brand-ink);background:white;font:13px/1.6 HatsSans,'Malgun Gothic',sans-serif}#sales-data-dialog::backdrop{background:#29262988}#sales-data-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;border-bottom:1px solid var(--brand-line);position:sticky;top:0;background:white;z-index:3}#sales-data-dialog h2{margin:0;font-size:22px}#sales-data-dialog h3{font-size:16px;margin:20px 0 12px}.data-manager-body{padding:20px 22px}#sales-data-dialog p{margin:10px 0}.data-scroll{overflow:auto;margin:16px 0}#sales-data-dialog table{width:100%;border-collapse:collapse;font-size:12px;min-width:750px}#sales-data-dialog td,#sales-data-dialog th{padding:10px;border-bottom:1px solid var(--brand-line);text-align:left;vertical-align:top}#sales-data-dialog th{background:var(--brand-table)}#sales-data-dialog td small{display:block;font-size:10px;color:var(--brand-muted)}#sales-data-dialog input,#sales-data-dialog select,#sales-data-dialog button{font:inherit;min-height:36px;border:1px solid var(--brand-border);border-radius:5px;padding:6px 10px;background:white;color:var(--brand-ink);max-width:100%}#sales-data-dialog button{cursor:pointer}#sales-data-dialog button:disabled{opacity:.5;cursor:default}#sales-data-dialog input[type=checkbox]{min-height:0;accent-color:var(--brand-action)}#sales-data-dialog #data-save,#sales-data-dialog #data-reload{background:var(--brand-action);color:white;border-color:var(--brand-action)}.data-controls{display:flex;gap:16px;flex-wrap:wrap;margin:14px 0}.data-controls label,#data-mapping label{display:grid;gap:5px}#data-mapping{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}#data-preview{margin:16px 0;padding:0 14px;border-left:1px solid var(--brand-line)}#data-message{font-weight:650;color:var(--brand-action)}#data-history{max-height:200px;overflow:auto}@media(max-width:650px){#data-mapping{grid-template-columns:1fr 1fr}.data-controls label{width:100%}.data-manager-body{padding:14px}#sales-data-dialog>header{padding:14px}#sales-data-dialog h2{font-size:19px}}
.data-upload-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px}#sales-data-dialog .data-upload-title h3{margin:0}.data-template-button{display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;border:1px solid var(--brand-border);border-radius:5px;color:var(--brand-action);text-decoration:none;font-weight:650;white-space:nowrap}.data-template-button:hover{background:var(--brand-soft)}.data-template-help{font-size:12px;color:var(--brand-muted)}
.management-tabs{display:flex;gap:24px;border-bottom:1px solid var(--brand-border);margin:0 0 24px}.management-tabs button{padding:12px 4px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--brand-muted);font-weight:700;min-height:44px}.management-tabs button[aria-selected=true]{border-bottom-color:var(--brand-action);color:var(--brand-ink)}.management-frame{display:block;width:100%;min-height:650px;border:0;background:var(--brand-canvas)}#management-data-panel[hidden],#management-employees-panel[hidden]{display:none!important}
#admin-page>.page-heading{display:none}.management-embedded .ops-heading,.management-embedded #customers-view>:not(.master-panel),.management-embedded [hidden]{display:none!important}
#app:has(#requests-page:not([hidden])) .module-header{display:none}#app:has(#requests-page:not([hidden])) #main{padding:0;max-width:none}#requests-page{margin:0;max-width:none}
.onboarding-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}.onboarding-actions h2{flex:1;margin:0}.staff-onboarding-panel{grid-column:1/-1;margin-top:24px}#staff-reset-confirm{width:auto;min-height:0;margin-right:6px}#first-access-dialog input{width:100%}#first-access-dialog [hidden]{display:none!important}#staff-reset-dialog #staff-reset-confirm{width:auto}#first-access-dialog,#staff-reset-dialog{max-height:90vh;overflow:auto}
/* Keep data-table headers aligned consistently across HATS modules. */
body table thead th{ text-align:center !important; }
