:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#21382f;background:#f5f7f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;border:1px solid #d5dfd8;background:white;color:#294d3d;border-radius:7px;padding:12px 18px;font-weight:600;font-size:14px}button:hover{background:#edf4ef}button:disabled{opacity:.6;cursor:wait}.primary{background:#18754d;color:white;border-color:#18754d}.primary:hover{background:#105e3c}header{height:84px;padding:0 5%;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #dce5de}.brand{display:flex;align-items:center;gap:12px;font-weight:750;letter-spacing:1.6px;font-size:16px}.logo{display:inline-grid;place-items:center;background:#18754d;color:white;width:36px;height:38px;border-radius:9px;font-size:24px;letter-spacing:-2px}.divider{height:24px;width:1px;background:#dce5de;margin:0 10px}.muted{color:#829087;font-size:14px;font-weight:400;letter-spacing:0}.account{display:flex;align-items:center;gap:20px;font-size:14px}.quiet{border:0;background:transparent;color:#758379;padding:9px}.workspace{max-width:1440px;margin:auto;padding:55px 5%}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.eyebrow{font-size:11px;font-weight:750;letter-spacing:2px;color:#64816c}h1{font-size:32px;letter-spacing:-1px;margin:10px 0}p{font-size:14px;color:#7a887e;line-height:1.7;margin:8px 0}.badge{display:inline-block;vertical-align:middle;font-size:12px;letter-spacing:0;font-weight:500;padding:6px 10px;margin-left:14px;background:#e5eee7;border-radius:20px;color:#568364}.actions{display:flex;gap:10px}.sheet{background:white;border:1px solid #dce5de;border-radius:10px;overflow:hidden;box-shadow:0 5px 20px #1c483004}.sheet-toolbar{padding:20px 22px;display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #dce5de;font-size:14px}.sheet-toolbar strong{font-weight:600;white-space:nowrap}.green-dot{display:inline-block;background:#279362;border-radius:50%;width:7px;height:7px;margin-right:9px}#status{color:#7e8d82;font-size:12px;text-align:right}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;min-width:750px;table-layout:fixed}th{background:#f7f9f7;color:#688071;text-align:left;font-size:12px;font-weight:600;padding:14px;border-right:1px solid #e5ebe6;border-bottom:1px solid #dce5de}th:nth-child(2){width:36%}th:nth-child(3){width:25%}th:last-child{width:50px}th span{font-size:10px;color:#93a397;margin-left:5px}.row-number{width:48px;text-align:center;color:#94a397;background:#fafbf9;font-size:12px}td{border-right:1px solid #e5ebe6;border-bottom:1px solid #e5ebe6;height:51px}td input{width:100%;height:50px;border:0;border-radius:0;padding:12px 14px;background:transparent;font-size:14px;color:#304b3e}td input:focus{outline:2px solid #26835b;outline-offset:-2px;background:#f3faf5}.number,.numeric{text-align:right}.delete{border:0;background:none;font-size:22px;font-weight:400;color:#9aaba0;padding:5px 13px}.delete:hover{color:#bb403e;background:#fff0ef}.add{border:0;background:transparent;color:#218459;margin:12px;font-weight:600}.sheet-footer{display:flex;justify-content:space-between;gap:15px;background:#fafcf9;border-top:1px solid #e5ebe6;padding:16px 22px;color:#8a998d;font-size:11px}#empty{padding:60px 20px;text-align:center;color:#839789;font-size:14px}.login{width:min(430px,calc(100% - 40px));margin:11vh auto}.login>.brand{margin-bottom:35px}.login-card{background:white;border:1px solid #dce5de;padding:34px;border-radius:12px;box-shadow:0 15px 50px #20422e06}.login h1{font-size:30px}.login form{margin-top:26px}.login label{display:block;font-size:14px;font-weight:500;margin:18px 0}.login input{display:block;width:100%;border:1px solid #d1ded4;border-radius:6px;padding:12px;margin-top:8px;outline-color:#26835b}.full{width:100%;display:flex;justify-content:space-between;margin-top:24px}.login small{display:block;text-align:center;color:#92a095;margin:25px 0;font-size:12px}.error{background:#fff1ef;color:#a2392d;padding:14px;font-size:14px;border-radius:6px;margin:14px 0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}button:focus-visible{outline:3px solid #70b88b;outline-offset:2px}@media(max-width:760px){header{height:auto;min-height:76px;padding:18px 5%;gap:15px}.muted,.divider,.account>span{display:none}.workspace{padding:30px 4%}.heading{align-items:flex-start;flex-direction:column}.actions{width:100%;flex-wrap:wrap}.actions button{flex:1}.sheet-footer{flex-direction:column}.sheet-toolbar{padding:16px}h1{font-size:28px}}
.category-row{--category-bg:#e3edff;--category-text:#264d91}.tone-1{--category-bg:#e3f3e5;--category-text:#296436}.tone-2{--category-bg:#ffecd9;--category-text:#864715}.tone-3{--category-bg:#ffe4e7;--category-text:#983545}.tone-4{--category-bg:#e8e3fa;--category-text:#594190}.tone-5{--category-bg:#faefd0;--category-text:#755714}.tone-6{--category-bg:#dff3f1;--category-text:#24675f}.tone-7{--category-bg:#e7ebef;--category-text:#465768}.category-row td{background:var(--category-bg);border-top:1px solid white;border-bottom:1px solid white}.category-bar{display:flex;align-items:center;padding:8px 10px;gap:10px}.category-bar .category-name{font-weight:750;color:var(--category-text);height:40px;flex:1;min-width:100px;font-size:15px;letter-spacing:.4px}.category-bar button{background:transparent;border:0;color:var(--category-text);white-space:nowrap;padding:8px 12px}.category-count{font-size:12px;color:var(--category-text);white-space:nowrap}.category-add:hover,.toggle:hover{background:#ffffff80}.category-bar input:focus{background:#ffffff80}.category-bar .toggle{font-size:20px}td input::placeholder{color:#a1aaa4;font-size:12px}
.scan-panel{background:#e9f3ec;border:1px solid #cddfd2;border-radius:10px;padding:20px;margin-bottom:24px;display:flex;align-items:center;gap:20px;flex-wrap:wrap}.scan-panel p{margin:5px 0}.scan-panel form{display:flex;gap:8px;flex:1;min-width:260px}.scan-panel input{flex:1;min-width:120px;border:1px solid #bccfc2;border-radius:6px;padding:12px}.scan-panel #scan-status{width:100%;color:#286c46;font-weight:600}th:last-child{width:85px}.row-actions{white-space:nowrap}.stock-button{padding:5px 8px;background:#e7f2e9;border:0;font-size:18px}.shelf-code{display:block;color:#718b7a;font-size:10px;padding:0 14px 7px}.history{margin-top:24px}.history p{border-bottom:1px solid #dae3dc;padding:10px}.history>div{max-height:350px;overflow:auto}dialog{border:1px solid #cddbd1;border-radius:14px;padding:28px;max-width:94vw;width:480px;color:#253e30;box-shadow:0 20px 90px #0003}dialog::backdrop{background:#102a2266}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-head h2{font-size:22px;margin:0 0 12px}.dialog-head button{border:0;font-size:22px;padding:5px 10px}dialog h3{font-size:18px;line-height:1.5;overflow-wrap:anywhere}dialog fieldset{border:1px solid #d5e1d8;padding:16px;margin:20px 0;display:flex;gap:22px}dialog label{font-size:14px}#quantity{display:block;width:100%;padding:14px;border:1px solid #bdcec3;border-radius:6px;font-size:26px;margin-top:8px}#adjust-preview{font-size:18px;color:#18754d;font-weight:600}#labels-dialog{width:950px;max-height:90vh}.label-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}.label-toolbar input,.label-toolbar select{padding:9px;border:1px solid #d0dbd3;border-radius:5px}#copies{width:65px}#label-search{flex:1;min-width:180px}.label-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #e0e7e2}.label-row>div{flex:1}.label-row strong{font-size:14px;display:block;overflow-wrap:anywhere}.label-row small{display:block;margin-top:5px;color:#6b8272}.label-row input{width:18px;height:18px}.label-row button{font-size:12px;padding:8px}#label-list{max-height:50vh;overflow:auto}#label-status{color:#18754d}#print-area{display:none}.shelf-label{box-sizing:border-box;break-inside:avoid;background:#fff;color:#000;padding:3mm;text-align:center;border:1px dashed #bbb;height:43mm;display:flex;flex-direction:column;align-items:center;justify-content:space-between;overflow:hidden}.shelf-label small{font-size:8px}.shelf-label strong{font-family:Arial,sans-serif;font-size:10px;line-height:1.15;overflow-wrap:anywhere;max-height:13mm;overflow:hidden}.shelf-label svg{max-width:100%;height:23mm;flex-shrink:0}
@page{size:A4;margin:8mm}@page thermal{size:70mm 40mm;margin:0}
@media print{body{background:#fff;margin:0}body>*{display:none!important}body>#print-area{display:grid!important;grid-template-columns:repeat(3,1fr);gap:2mm;width:100%}.thermal-print>#print-area{display:block!important;width:70mm}.thermal-print .shelf-label{page:thermal;width:70mm;height:40mm;border:0;break-after:page}.thermal-print .shelf-label:last-child{break-after:auto}}
@media(max-width:760px){.scan-panel{padding:14px}.scan-panel form{min-width:100%}.heading .actions{gap:6px}.heading .actions button{font-size:12px;padding:10px}.label-row{gap:8px}dialog{padding:20px}.label-toolbar button{font-size:12px}}

.label-preview{display:block;max-width:220px;height:45px;margin-top:6px;background:white}
