:root{font-family:system-ui,"Segoe UI",sans-serif;color:#15263b;background:#eef2f6;--navy:#11253d;--gold:#ffc74a;--rule:#d7e0e8}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}header{display:flex;justify-content:space-between;align-items:center;background:#0d1d30;color:white;padding:.8rem 1.6rem;gap:1rem;min-height:64px}.brand{color:white;text-decoration:none;font-weight:800;letter-spacing:.06em;white-space:nowrap}.brand b{color:var(--gold)}#toolbar{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}#shell{display:flex;min-height:calc(100vh - 64px)}nav{min-width:218px;width:218px;background:var(--navy);color:#fff;padding:1rem .8rem}nav button{display:block;color:#d7e3ef;background:none;border:0;text-align:start;width:100%;margin-bottom:.18rem;padding:.58rem .7rem}nav button[aria-current]{color:#0d1d30;background:var(--gold);font-weight:700}main{padding:clamp(1rem,3vw,2.4rem);min-width:0;flex:1;max-width:1500px;margin-inline:auto}h1{font-size:clamp(1.6rem,3vw,2.1rem);margin:0 0 1rem}h2{font-size:1.1rem;margin:.1rem 0 1rem}.panel,details.operation{background:#fff;border:1px solid var(--rule);border-radius:13px;padding:1rem;margin:0 0 1rem;box-shadow:0 2px 8px #18325208}.login{max-width:400px;margin:9vh auto}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:.7rem;margin-bottom:.75rem}label{display:flex;flex-direction:column;gap:.25rem;font-size:.88rem;font-weight:600}input,select,textarea{padding:.54rem .6rem;border:1px solid #aabac8;border-radius:7px;width:100%;min-width:0;background:white;color:#15263b}button{border:1px solid var(--rule);border-radius:7px;padding:.46rem .8rem;background:#fff;color:#15263b}button.primary{background:var(--gold);border-color:#e7ac24;font-weight:750}button:disabled{opacity:.55}.actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin:.5rem 0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:.89rem}th,td{text-align:start;padding:.53rem .62rem;border-bottom:1px solid var(--rule);vertical-align:top}th{background:#edf3f8;white-space:nowrap}td{overflow-wrap:anywhere}button.link{border:0;color:#175998;padding:.12rem .25rem}#notice{position:fixed;bottom:1rem;inset-inline-end:1rem;z-index:10;max-width:min(90vw,32rem);border-radius:8px;padding:.7rem 1rem;background:#13283a;color:white;box-shadow:0 3px 20px #0003}#notice:empty{display:none}#notice.error{background:#8b282f}dialog{border:1px solid var(--rule);border-radius:14px;padding:1.2rem;width:min(900px,95vw);max-height:90vh}dialog::backdrop{background:#071627a0}#close{float:inline-end}summary{font-weight:700;cursor:pointer}.items{border:1px solid var(--rule);padding:.7rem;margin:.7rem 0;border-radius:8px}.line{align-items:end}.muted{color:#536576}.low{color:#9d2b25;font-weight:700}.barcode{max-width:100%;height:auto}.slip{max-width:76mm}.kpis{display:flex;flex-wrap:wrap;gap:.75rem;margin-bottom:1rem}.kpi{background:#fff;border:1px solid var(--rule);border-radius:10px;padding:1rem;min-width:155px}.kpi strong{display:block;font-size:1.4rem;margin-top:.35rem}[hidden]{display:none!important}
@media(max-width:760px){header{padding:.65rem}#shell{flex-direction:column}nav{width:100%;min-width:0;display:flex;overflow:auto;padding:.4rem}nav button{width:auto;white-space:nowrap;margin:0 .13rem}main{width:100%;padding:1rem}.grid{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}}
@media print{body.printing header,body.printing #shell,body.printing #notice,dialog #close,dialog .print-controls{display:none!important}dialog[open]{position:static;max-height:none;max-width:100%;width:100%;border:0;padding:0;margin:0;overflow:visible}dialog::backdrop{display:none}.slip table{font-size:10px}.slip td,.slip th{padding:2px}body{background:#fff}}
.device-gallery{display:flex;flex-wrap:wrap;gap:12px}
.device-gallery figure{margin:0;max-width:160px}
.device-gallery img{display:block;width:160px;height:140px;object-fit:contain;border:1px solid var(--rule);border-radius:8px}
