html,body{margin:0;background:#f4f4f5}app-root{--bg: #f4f4f5;--card: #fff;--line: #e4e4e7;--ink: #09090b;--muted: #71717a;--soft: #f4f4f5;--good: #15803d;--good-bg: #dcfce7;--bad: #b91c1c;--bad-bg: #fee2e2;display:block;min-height:100vh;background:var(--bg);color:var(--ink);font:14px/1.45 Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif}svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{font:inherit;color:inherit;cursor:pointer}.muted{color:var(--muted)}.shell{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.side{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:18px;padding:20px 14px;background:var(--card);border-right:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;padding:0 6px}.mark{width:36px;height:36px;border-radius:10px;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800;font-size:11px;letter-spacing:.04em}.brand-name{display:flex;flex-direction:column;font-weight:700;font-size:14px;line-height:1.15}.brand-name small{color:var(--muted);font-weight:500;font-size:12px}nav{display:flex;flex-direction:column;gap:2px}.nav-item{display:flex;align-items:center;gap:10px;height:38px;padding:0 10px;border-radius:9px;color:var(--muted);font-weight:500;text-decoration:none;cursor:pointer}.nav-item:hover:not(.disabled){background:var(--soft);color:var(--ink)}.nav-item.active{background:var(--ink);color:#fff}.nav-item.disabled{cursor:default;opacity:.7}.nav-item em{margin-left:auto;font-style:normal;font-size:10px;font-weight:600;padding:2px 6px;border-radius:6px;background:var(--soft);color:var(--muted)}.me{margin-top:auto;display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:12px}.avatar{width:32px;height:32px;border-radius:50%;background:var(--soft);display:grid;place-items:center;font-weight:700}.me-text{display:flex;flex-direction:column;min-width:0;font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis}.me-text small{color:var(--muted);font-weight:500}.main{padding:24px 28px 40px;min-width:0}.page-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}.crumb{margin:0;color:var(--muted);font-size:12px;font-weight:500}h1{margin:0;font-size:24px;font-weight:700;letter-spacing:-.02em}h2{margin:0 0 6px;font-size:16px}.menu-btn{display:none;width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:var(--card);place-items:center}.card{background:var(--card);border:1px solid var(--line);border-radius:16px}.empty{padding:28px;max-width:520px}.btn{height:38px;padding:0 16px;border:0;border-radius:10px;background:var(--ink);color:#fff;font-weight:600}.toast{margin:0 0 14px;padding:10px 14px;border-radius:10px;background:var(--good-bg);color:var(--good);font-weight:500}.toast.error{background:var(--bad-bg);color:var(--bad)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.stat{padding:16px 18px;display:flex;flex-direction:column;gap:4px}.stat .label{color:var(--muted);font-size:12px;font-weight:500}.stat strong{font-size:30px;font-weight:700;letter-spacing:-.03em;line-height:1.1}.stat .sub{color:var(--muted);font-size:12px}.list{overflow:hidden}.list-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;border-bottom:1px solid var(--line)}.tabs{display:flex;gap:4px;padding:4px;background:var(--soft);border-radius:10px}.tabs button{white-space:nowrap;height:30px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-weight:600;font-size:13px}.tabs button span{margin-left:4px;font-weight:500;opacity:.8}.tabs button.on{background:var(--card);color:var(--ink);box-shadow:0 1px 2px #00000014}.filters{display:flex;gap:8px;flex-wrap:wrap}select,.search{height:36px;border:1px solid var(--line);border-radius:10px;background:var(--card);font:inherit}select{padding:0 10px}.search{display:flex;align-items:center;gap:6px;padding:0 10px;color:var(--muted)}.search input{border:0;outline:0;font:inherit;width:180px;background:transparent;color:var(--ink)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th{text-align:left;padding:10px 16px;font-size:12px;font-weight:500;color:var(--muted);border-bottom:1px solid var(--line);white-space:nowrap}td{padding:10px 16px;border-bottom:1px solid var(--line);vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafafa}tr.off .prod strong{color:var(--muted)}tr.busy{opacity:.55}.num{text-align:right;white-space:nowrap}.prod{display:flex;align-items:center;gap:12px;min-width:220px}.prod img,.no-photo{width:40px;height:40px;border-radius:10px;object-fit:cover;border:1px solid var(--line);flex-shrink:0}.no-photo{display:grid;place-items:center;font-size:8px;color:var(--muted);text-align:center;background:var(--soft)}.prod span{display:flex;flex-direction:column}.prod small{color:var(--muted);font-size:12px}.price{display:inline-flex;align-items:center;gap:2px;height:32px;padding:0 8px;border:1px solid var(--line);border-radius:8px}.price:focus-within{border-color:var(--ink)}.price .cur{color:var(--muted)}.price input{width:60px;border:0;outline:0;font:inherit;font-weight:600;text-align:right;background:transparent}.pct{display:block;color:var(--muted);font-size:11px;margin-top:2px}.chip{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border:0;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}.chip i{width:6px;height:6px;border-radius:50%;background:currentColor}.chip.good{background:var(--good-bg);color:var(--good)}.chip.bad{background:var(--bad-bg);color:var(--bad)}.switch{width:38px;height:22px;padding:2px;border:0;border-radius:999px;background:#d4d4d8;transition:background .15s}.switch span{display:block;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:transform .15s}.switch.on{background:var(--ink)}.switch.on span{transform:translate(16px)}.none{text-align:center;color:var(--muted);padding:28px}.foot{margin:0;padding:12px 16px;border-top:1px solid var(--line);font-size:12px}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:860px){.shell{grid-template-columns:1fr}.side{position:fixed;z-index:20;inset:0 auto 0 0;width:240px;transform:translate(-100%);transition:transform .2s;box-shadow:0 0 40px #00000026}.menu-open .side{transform:none}.menu-btn{display:grid}.main{padding:16px}.search input{width:120px}}@media(max-width:640px){thead{display:none}table,tbody{display:block}tbody tr{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:10px 12px;padding:12px;border-bottom:1px solid var(--line)}tbody tr:last-child{border-bottom:0}td{display:block;padding:0;border:0}td:nth-child(1){grid-column:1 / -1}td:nth-child(2),td:nth-child(3){display:none}td.num{text-align:left}.pct{display:inline;margin:0 0 0 6px}.prod{min-width:0}.none{grid-column:1 / -1}}@media(max-width:520px){.stats{gap:10px}.stat strong{font-size:24px}.list-head{padding:12px}.tabs{width:100%;overflow-x:auto}.filters,select,.search{width:100%}.search input{flex:1;width:auto}}.scrim{position:fixed;inset:0;z-index:15;background:#0000004d}@media(min-width:861px){.scrim{display:none}}@media print{app-root{background:#fff}.side,.page-head,.stats,.toast,.scrim,.list{display:none!important}.shell{display:block}.main{padding:0}}
