:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background:#f8fafc;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.container{max-width:1400px;margin:auto;padding:16px}.card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 3px 12px #0f172a0d;padding:18px;margin-bottom:14px}.header{display:flex;justify-content:space-between;gap:15px;align-items:center}.actions{display:flex;gap:8px;flex-wrap:wrap}.end{justify-content:flex-end}.muted{color:#64748b;font-size:.88rem}.status{position:sticky;top:8px;z-index:20;text-align:center;background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;padding:8px;border-radius:9px;margin-bottom:10px}.dashboard{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.kpi{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:14px}.kpi span{display:block;color:#64748b;font-size:.78rem;text-transform:uppercase;font-weight:700}.kpi b{display:block;font-size:1.45rem;margin-top:6px}.toolbar{display:flex;gap:8px;flex-wrap:wrap}.toolbar input{flex:1;min-width:260px}input,select,button{font:inherit;border-radius:8px;padding:10px;border:1px solid #cbd5e1;background:#fff}button{background:#2563eb;color:#fff;border:0;font-weight:700;cursor:pointer}button.secondary{background:#64748b}button.danger{background:#dc2626}button.green{background:#16a34a}button.blue{background:#0284c7}button.purple{background:#7c3aed}button.small{padding:6px 8px;font-size:.78rem;margin:2px}.link{background:transparent;color:#2563eb;margin-top:8px}.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.section-title h2{margin:0 0 5px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;margin-top:10px;min-width:950px}th,td{border-bottom:1px solid #e2e8f0;padding:9px;text-align:left}th{background:#f8fafc}code{font-family:ui-monospace,monospace;background:#f1f5f9;padding:2px 5px;border-radius:5px}details{border:1px solid #e2e8f0;border-radius:10px;margin:9px 0;overflow:hidden}summary{padding:12px;background:#f8fafc;cursor:pointer;display:flex;justify-content:space-between}.auth{min-height:100vh;display:grid;place-items:center;padding:20px;background:#f1f5f9}.auth-card{width:min(420px,100%);text-align:center}.logo{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;background:#2563eb;color:#fff;font-weight:900;font-size:1.4rem;margin:auto}.auth form{display:grid;gap:10px;margin-top:20px}.auth input{width:100%}.modal{position:fixed;inset:0;background:#0f172a8c;z-index:100;display:grid;place-items:center;padding:15px}.modal-card{background:#fff;border-radius:14px;padding:20px;width:min(720px,100%);max-height:92vh;overflow:auto}.modal-card.wide{width:min(1100px,100%)}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}.grid2 label{font-size:.82rem;font-weight:700}.grid2 input,.grid2 select{width:100%;margin-top:4px}.progress{height:12px;background:#e2e8f0;border-radius:99px;overflow:hidden}.progress div{height:100%;background:#16a34a}.count-card{border:1px solid #dbeafe;background:#f8fbff;border-radius:14px;padding:18px;text-align:center}.big-count{display:grid;grid-template-columns:60px 1fr 60px;gap:8px;margin:18px 0}.big-count button{font-size:1.8rem}.big-count input{text-align:center;font-size:2rem;font-weight:800}.badge{display:inline-block;padding:5px 9px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.78rem;font-weight:700}.success{padding:15px;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:10px;color:#166534}@media(max-width:800px){.dashboard{grid-template-columns:1fr 1fr}.header{align-items:flex-start;flex-direction:column}.grid2{grid-template-columns:1fr}}@media(max-width:480px){.container{padding:8px}.dashboard{grid-template-columns:1fr}.toolbar input{min-width:100%}}.inventory-banner{position:sticky;top:52px;z-index:18;margin-bottom:10px;padding:10px 12px;border-radius:10px;background:#f5f3ff;border:1px solid #ddd6fe;color:#5b21b6;font-size:.88rem}.inventory-note{padding:10px 12px;margin-bottom:12px;border-radius:9px;background:#f5f3ff;border:1px solid #ddd6fe;color:#5b21b6}.inventory-toolbar{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:8px;margin:14px 0}.inventory-stats{display:flex;gap:14px;flex-wrap:wrap;margin:8px 0 14px;color:#475569;font-size:.88rem}.danger-text{color:#b91c1c;font-weight:700}.inventory-warning{padding:14px;border:1px solid #fed7aa;background:#fff7ed;color:#9a3412;border-radius:10px}.counting-product{display:grid;grid-template-columns:150px 1fr;gap:18px;align-items:center;text-align:left}.counting-photo{width:150px;height:150px;object-fit:contain;border:1px solid #e2e8f0;border-radius:12px;background:#fff}.counting-photo-empty{width:150px;height:150px;border:1px dashed #cbd5e1;border-radius:12px;display:grid;place-items:center;background:#f8fafc;color:#94a3b8}.counting-shortcuts{display:flex;justify-content:center;gap:8px;margin:-6px 0 12px}.counting-shortcuts button{background:#e2e8f0;color:#334155}.counting-actions{justify-content:center}.next-preview{margin-top:12px;padding:10px;border-radius:9px;background:#f8fafc;color:#64748b;font-size:.82rem}.row-alert{background:#fff7ed}.photo-button{padding:0;background:transparent}.photo-thumb{width:54px;height:54px;object-fit:cover;border-radius:8px;border:1px solid #e2e8f0;display:block}@media(max-width:800px){.inventory-toolbar{grid-template-columns:1fr 1fr}.counting-product{grid-template-columns:1fr;text-align:center}.counting-photo,.counting-photo-empty{margin:auto;width:120px;height:120px}}@media(max-width:480px){.inventory-toolbar{grid-template-columns:1fr}.counting-actions button{width:100%}.big-count{grid-template-columns:58px 1fr 58px}.big-count input{font-size:1.7rem}}.admin-modal-card{position:relative;padding-top:28px}.modal-close-x{position:sticky;top:0;float:right;z-index:20;width:38px;height:38px;border-radius:999px;border:0;background:#dc2626;color:#fff;font-size:27px;line-height:34px;padding:0;box-shadow:0 4px 12px #0000002e}.modal-close-x:hover{background:#b91c1c}.location-warning{display:inline-block;padding:3px 7px;border-radius:7px;background:#fff7ed;color:#c2410c;font-weight:700}.row-actions{gap:5px;flex-wrap:wrap}button:disabled{opacity:.45;cursor:not-allowed}.kpi-action{color:#0f172a;text-align:left;width:100%}.kpi-action small{display:block;margin-top:8px;color:#2563eb}.kpi-action:hover,.kpi-action[aria-pressed=true]{background:#eff6ff;border-color:#2563eb}.kpi-action:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
