:root{--bg:#f7f4ed;--surface:#fffdf8;--white:#fff;--ink:#25261f;--muted:#716c60;--line:#e5ded1;--accent:#5b4935;--olive:#486342;--olive-bg:#e9efe3;--amber:#946527;--red:#a34632;--red-bg:#faeee6;--rad:15px;--shadow:0 2px 8px #302b2110}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Arial,"Noto Sans KR","Malgun Gothic","Apple SD Gothic Neo",sans-serif;font-size:15px;line-height:1.5}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9da67e;outline-offset:2px}a{color:var(--accent)}svg{width:20px;height:20px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--surface);border-right:1px solid var(--line);padding:26px 16px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;padding:2px 7px 24px}.logo{width:60px;height:60px;border-radius:10px;background:#fff;overflow:hidden;flex-shrink:0}.logo img,.auth-logo img{width:100%;height:100%;object-fit:cover;object-position:center}.brand strong{font-family:Georgia,serif;font-size:19px;letter-spacing:.035em}.brand span{display:block;font-size:10px;letter-spacing:.12em;font-weight:700;color:var(--muted)}.side-label{font-size:11px;letter-spacing:.14em;color:#8e8779;font-weight:bold;margin:22px 12px 9px}nav{display:flex;flex-direction:column;gap:6px}.nav{display:flex;align-items:center;gap:11px;border:0;background:transparent;color:#615c51;border-radius:9px;text-align:left;padding:12px 13px;min-height:45px;font-weight:600;white-space:nowrap}.nav:hover{background:#f2eee3}.nav.active{background:#e9e3d6;color:#433726}.sidebar-bottom{margin-top:auto;padding:12px 5px}.store{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:20px}.store-icon{height:38px;width:38px;border-radius:12px;display:grid;place-items:center;background:#ded2bd;font-family:Georgia,serif;font-size:23px}.store b,.store small{display:block}.store small{font-size:12px;color:var(--muted)}.side-note{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:7px;padding-top:17px}.dot{display:inline-block;width:8px;height:8px;background:#b88e54;border-radius:50%;flex-shrink:0}.topbar{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;background:var(--surface);position:sticky;top:0;z-index:5}.breadcrumb{font-size:13px;color:var(--muted)}.breadcrumb span{padding:0 8px;color:#bdb3a1}.breadcrumb b{color:var(--ink)}.top-actions{display:flex;gap:11px;align-items:center}.pos-status{display:flex;align-items:center;gap:7px;border:1px solid #e6d9c4;background:#fbf5e9;white-space:nowrap;padding:7px 10px;border-radius:20px;font-size:12px;color:#805a27}.icon-btn{display:grid;place-items:center;width:39px;height:39px;border:1px solid var(--line);border-radius:9px;color:var(--muted);background:var(--surface)}.workspace{max-width:1500px;margin:auto;padding:26px 32px 30px}.notice{background:#f2e9da;border:1px solid #e7d6bb;color:#71512f;border-radius:11px;padding:11px 15px;display:flex;gap:10px;align-items:center;font-size:13px;line-height:1.5}.notice>span:nth-child(2){flex:1}.text-btn{border:0;background:none;color:var(--accent);text-decoration:underline;font-size:13px;padding:5px;white-space:nowrap}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:30px 0 24px}.eyebrow{font-family:Georgia,serif;font-size:12px;letter-spacing:.14em;color:#9a805f;margin:0 0 8px;font-weight:bold}h1{font-size:32px;letter-spacing:-.045em;margin:0 0 6px;line-height:1.2}h2{font-size:20px;letter-spacing:-.035em;margin:0}h3{font-size:17px;margin:0 0 8px}.sub{color:var(--muted);margin:0;font-size:14px}.date-tools{display:flex;gap:7px;align-items:center}.date-tools input{min-width:132px}.primary,.ghost,.danger{border:1px solid transparent;min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 15px;border-radius:9px;font-weight:700;white-space:nowrap}.primary{background:var(--accent);color:#fffdf8}.primary:hover{background:#443625}.ghost{background:var(--surface);color:var(--ink);border-color:var(--line)}.ghost:hover,.icon-btn:hover{background:#ede8dc}.danger{background:#fff;color:var(--red);border-color:#e1c2b7}.small{width:35px;font-size:20px;padding:0}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--rad);box-shadow:var(--shadow);min-width:0}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:23px}.stat{padding:19px 20px 17px;position:relative}.stat .stat-icon{position:absolute;right:15px;top:16px;color:#957d5e;background:#f2eadb;border-radius:9px;width:32px;height:32px;display:grid;place-items:center}.stat-label{color:var(--muted);font-size:13px;font-weight:600;margin-bottom:10px}.stat .num{font-size:32px;font-weight:750;line-height:1.1;letter-spacing:-.04em;font-variant-numeric:tabular-nums}.num small{font-size:14px;margin-left:4px;font-weight:500;color:var(--muted)}.stat p{font-size:12px;color:var(--muted);margin:8px 0 0}.stat.accent{background:#e9eee2;border-color:#d7e1ca}.stat.accent .num{color:#3e5835}.stat.accent .stat-icon{background:#dbe5d2;color:#4e6541}.section{margin-bottom:22px}.panel-heading{padding:21px 22px 17px;display:flex;align-items:center;justify-content:space-between;gap:13px}.panel-heading p{font-size:13px;color:var(--muted);margin:4px 0 0}.panel-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.filterbar{padding:0 22px 14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.search{min-width:170px;flex:1;max-width:280px}.filterbar .count{margin-left:auto;color:var(--muted);font-size:12px}.seg{display:inline-flex;gap:3px;background:#eee9df;padding:3px;border-radius:9px}.seg button{border:0;background:transparent;color:var(--muted);border-radius:7px;padding:6px 11px;font-size:13px;font-weight:600;white-space:nowrap;min-height:34px}.seg button.active{background:var(--surface);box-shadow:0 1px 4px #402e1e13;color:#3e3327}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;min-width:665px;font-variant-numeric:tabular-nums}thead{background:#f1ede4;color:#736c5e;font-size:12px;white-space:nowrap}th{font-weight:700;padding:12px 14px}td{padding:13px 14px;border-bottom:1px solid #eee8dc;vertical-align:middle;text-align:right}th:first-child,td:first-child{padding-left:22px;text-align:left}th:not(:first-child){text-align:right}td:last-child,th:last-child{padding-right:22px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#faf6ed}.product{display:flex;align-items:center;gap:11px}.product-symbol{flex-shrink:0;display:grid;place-items:center;width:37px;height:37px;border-radius:10px;background:#efe4d0;font-size:21px}.product-symbol[data-cat="디저트"]{background:#f4e2d7}.product-symbol[data-cat="음료"]{background:#e3ead8}.product b{display:block;font-size:14px}.product small{display:block;color:var(--muted);font-size:12px}.pill{display:inline-block;border-radius:20px;padding:4px 9px;font-size:12px;font-weight:700;white-space:nowrap;background:#eee9df;color:#756e60}.pill.ok{background:var(--olive-bg);color:var(--olive)}.pill.low{background:#f8eed6;color:#91651f}.pill.sold,.pill.error{background:var(--red-bg);color:var(--red)}.stock-cell{min-width:112px}.stock-num{font-weight:750;color:var(--olive);font-size:17px}.stock-num.neg{color:var(--red)}.mini-bar{height:5px;border-radius:8px;background:#e8e4d9;overflow:hidden;margin:6px 0 0 auto;width:76px}.mini-bar i{display:block;height:100%;border-radius:8px;background:#91a67a}.mini-bar i.low{background:#ccaa62}.edit-btn{border:1px solid var(--line);background:transparent;border-radius:7px;padding:6px 10px;color:#6b5942;font-weight:bold;font-size:12px;min-height:32px}.table-foot{padding:12px 22px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}.two-col{display:grid;grid-template-columns:1.15fr 1fr;gap:18px;margin-bottom:22px}.ranking{padding:0 22px 18px}.rank-row{padding:12px 0;display:grid;grid-template-columns:26px minmax(90px,1.3fr) minmax(65px,1fr) 48px;align-items:center;gap:10px;border-bottom:1px solid #ede8dc}.rank-row:last-child{border:0}.rank-index{font-family:Georgia,serif;font-size:18px;color:#a09580;font-weight:700}.rank-row:nth-child(1) .rank-index{color:#9a7239}.rank-track{height:9px;border-radius:8px;overflow:hidden;background:#ece6d9}.rank-track i{display:block;background:#a9997b;height:100%;border-radius:8px}.rank-row:first-child .rank-track i{background:#7b8e64}.rank-qty{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}.rank-qty small{font-weight:400;color:var(--muted)}.chart-box{padding:5px 22px 20px}.chart{height:190px;display:flex;align-items:flex-end;justify-content:space-between;gap:5px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent 46px,#ece7dc 47px,#ece7dc 48px);padding:0 6px}.bar-col{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px}.bar-col .bar{width:min(30px,85%);min-height:2px;border-radius:5px 5px 0 0;background:#bcad91;transition:height .2s}.bar-col:last-child .bar{background:#6c8056}.bar-value{font-size:11px;color:var(--muted);white-space:nowrap}.chart-labels{display:flex;justify-content:space-between;padding:6px;color:var(--muted);font-size:10px;gap:5px}.chart-labels span{flex:1;text-align:center;white-space:nowrap}.summary-note{font-size:12px;color:var(--muted);margin:12px 0 0}.empty{padding:38px 22px;text-align:center;color:var(--muted)}.empty b{display:block;color:var(--ink);margin-bottom:6px}.entry-input{width:83px;text-align:right}input,select{border:1px solid #dbd3c4;border-radius:8px;background:#fffdf9;color:var(--ink);padding:9px 10px;min-height:41px;font-size:14px}input[type=number]{font-variant-numeric:tabular-nums}label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700;color:#514a3d}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-grid .full{grid-column:1/-1}.form-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.setting-card{padding:23px;display:flex;gap:20px;justify-content:space-between;align-items:flex-start;margin-bottom:15px}.setting-card p{font-size:14px;color:var(--muted);margin:6px 0;max-width:650px}.setting-card .actions{display:flex;gap:7px;flex-wrap:wrap}.status-line{display:flex;gap:6px;align-items:center;margin:10px 0 0}footer{padding:0 32px 24px;color:#8e8574;font-size:11px;letter-spacing:.035em}footer span{margin:0 5px}dialog{border:1px solid var(--line);border-radius:16px;width:min(510px,calc(100% - 32px));padding:24px;background:var(--surface);color:var(--ink);box-shadow:0 20px 80px #24231f30}dialog::backdrop{background:#25261f66}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-head .icon-btn{font-size:25px}#toast{position:fixed;bottom:24px;right:24px;z-index:30;background:#292d23;color:#fff;padding:14px 20px;border-radius:10px;box-shadow:0 6px 24px #0002;font-size:14px;max-width:calc(100% - 48px)}#authOverlay{position:fixed;inset:0;z-index:50;background:var(--bg);display:grid;place-items:center;padding:15px}#authOverlay[hidden],#toast[hidden]{display:none}.auth-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:30px;width:min(420px,100%);box-shadow:var(--shadow)}.auth-logo{height:100px;width:100px;margin:auto}.auth-card h1,.auth-card>p{text-align:center}.auth-card form{display:grid;gap:14px;margin-top:24px}#loginError{color:var(--red);margin:0;font-size:13px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.inline-warning{color:var(--red);font-size:13px}.badge-demo{color:#875f2b;background:#f0e4cc;padding:3px 7px;border-radius:5px;font-size:11px}.muted{color:var(--muted)}.row-status{white-space:nowrap}.negative{color:var(--red);font-weight:700}
@media(max-width:1050px){.shell{grid-template-columns:190px minmax(0,1fr)}.sidebar{padding-inline:10px}.brand{padding-inline:2px}.brand strong{font-size:16px}.logo{width:50px;height:50px}.workspace{padding:22px}.topbar{padding:0 22px}.stats{gap:10px}.stat{padding:17px 14px}.stat .stat-icon{right:10px;top:12px;width:25px;height:25px}.stat .stat-icon svg{width:16px}.stat .num{font-size:27px}.two-col{grid-template-columns:1fr 1fr;gap:12px}.panel-heading{padding:17px}.ranking,.chart-box{padding-inline:17px}}
@media(max-width:760px){.shell{display:block}.sidebar{position:static;height:auto;display:block;padding:10px 12px 8px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0 4px 9px}.brand .logo{height:42px;width:42px}.brand strong{font-size:16px}.side-label,.sidebar-bottom{display:none}nav{flex-direction:row;overflow:auto;gap:4px;scrollbar-width:thin}.nav{font-size:13px;padding:9px 10px;min-height:42px}.nav svg{width:17px;height:17px}.topbar{position:static;height:50px;padding:0 14px}.breadcrumb{font-size:11px}.top-actions{gap:7px}.pos-status{font-size:11px;padding:4px 8px}.topbar .icon-btn{width:33px;height:33px}.workspace{padding:15px 13px}.notice{font-size:12px;padding:9px 10px}.notice .text-btn{font-size:11px}.page-heading{align-items:flex-start;flex-direction:column;margin:24px 0 18px;gap:14px}h1{font-size:28px}.date-tools{width:100%;justify-content:flex-start}.date-tools input{flex:1}.stats{grid-template-columns:1fr 1fr;gap:9px;margin-bottom:16px}.stat{padding:15px}.stat-label{margin-bottom:6px;font-size:12px}.stat .num{font-size:27px}.stat p{font-size:11px}.two-col{grid-template-columns:1fr;gap:15px}.panel-heading{align-items:flex-start;flex-direction:column;padding:16px}.panel-actions{width:100%}.panel-actions .primary,.panel-actions .ghost{flex:1;min-height:44px}.filterbar{padding:0 16px 12px}.filterbar .search{max-width:none;min-width:110px}.filterbar .count{display:none}.setting-card{flex-direction:column;gap:12px}.ranking{padding:0 16px 16px}.chart-labels{font-size:9px}.section{margin-bottom:15px}footer{padding:0 14px 18px}.table-foot{padding:12px 16px}.seg button{min-height:36px}.entry-input{min-height:44px}.form-grid{gap:10px}}

.menu-image{width:48px;height:48px;object-fit:cover;border-radius:10px}.range-tools{padding:20px;display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin-bottom:20px}.range-tools label{display:grid;gap:8px}.range-tools p{margin:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9a6c2c;outline-offset:3px}@media(max-width:600px){.range-tools{display:grid;grid-template-columns:1fr}.panel-actions{flex-wrap:wrap}.range-tools input{width:100%}}

.stats{grid-template-columns:repeat(auto-fit,minmax(155px,1fr))}body{font-size:16px}.pill,.nav,.edit-btn,.stat-label,label{font-size:14px}.product-symbol{width:48px;height:48px}@media(max-width:760px){.stats{grid-template-columns:1fr 1fr}.stats .stat:last-child{grid-column:1/-1}}

.daily-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.daily-heading p{margin:0 0 4px;font-size:14px}.daily-status{font-weight:700}.daily-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.daily-stats .num{font-size:40px}.daily-alerts{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 22px}.daily-alerts span{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:7px 12px;font-size:14px}.daily-alerts b{margin-left:6px}.stock-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;padding:0 20px 20px}.stock-card{border:1px solid var(--line);border-radius:12px;padding:18px;background:white;min-width:0}.stock-card.attention{border-color:#c8a276;background:#fffaf0}.stock-card-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.stock-card .product b{font-size:17px}.stock-card-counts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.stock-card-counts span{display:block;color:var(--muted);font-size:14px}.stock-card-counts strong{display:block;font-variant-numeric:tabular-nums;font-size:38px;line-height:1.3;letter-spacing:-.04em}.stock-card-counts .remaining{color:var(--olive)}.stock-card-counts .neg{color:var(--red)}.stock-card-counts .sold-count{font-size:30px;padding-top:8px}.stock-card-counts small{font-size:16px;font-weight:400;margin-left:4px}.stock-card-note{font-size:13px;color:var(--muted);margin:12px 0}.stock-card-actions{display:flex;gap:6px;flex-wrap:wrap}.stock-card-actions button{min-height:44px;padding:9px 11px}.stock-card-actions .quick-sale{flex:1}.ledger-details summary,.daily-analysis>summary{padding:16px 20px;cursor:pointer;font-weight:700}.ledger-details{border-top:1px solid var(--line)}.daily-analysis{margin-top:10px}.menu-advanced{border-top:1px solid var(--line);padding-top:12px}.menu-advanced summary{cursor:pointer;font-size:14px;margin-bottom:12px}.menu-advanced label{margin:12px 0}.toast-undo{color:#fff;border:1px solid #ffffff66;background:transparent;padding:6px 10px;border-radius:7px;min-height:44px;margin-left:10px}@media(max-width:760px){.daily-heading{align-items:flex-start}.daily-heading>.primary{min-height:44px}.daily-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.daily-stats .stat:last-child{grid-column:auto}.daily-stats .stat{padding:12px 10px}.daily-stats .stat-icon,.daily-stats .stat p{display:none}.daily-stats .stat .num{font-size:29px}.daily-stats .stat-label{font-size:13px}.stock-cards{grid-template-columns:1fr;padding:0 14px 14px}.stock-card{padding:16px}.daily-heading .muted{font-size:12px}.daily-alerts{gap:6px}.daily-alerts span{padding:6px 8px}.daily-stats .num small{font-size:12px}}

.image-upload-preview{grid-column:1/-1;display:flex;align-items:center;gap:12px;min-width:0}.image-upload-preview img{width:80px;height:80px;object-fit:contain;border:1px solid var(--line);border-radius:10px;background:#eee}.image-upload-preview img[hidden]{display:none}.image-upload-preview p{font-size:14px;color:var(--muted);margin:0}.image-upload-preview img:not([hidden]){flex-shrink:0}
