:root{--ink:#1c2230;--muted:#5b6472;--line:#e3e5e8;--bg:#f4f5f7;--brand:#1f4e8c;--soft:#e8eff8;--ok:#17603c;--okbg:#e5f4ec;--err:#8a2323;--errbg:#fbeaea}*{box-sizing:border-box}body{margin:0;font-family:Be Vietnam Pro,Segoe UI,system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:14px}a{color:var(--brand)}button,input{font:inherit}:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.boot,.muted{color:var(--muted)}.boot{padding:40px}.shell{display:grid;grid-template-columns:232px 1fr;grid-template-rows:56px 1fr;min-height:100vh}.top{grid-column:1 / 3;display:flex;align-items:center;gap:16px;padding:0 20px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}.brand{display:flex;gap:10px;align-items:center}.brand .mark{width:32px;height:32px;border-radius:8px;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:700;font-size:12px}.brand div{display:flex;flex-direction:column;line-height:1.2}.brand small,.me small{color:var(--muted);font-size:12px}.grow{flex:1}.switch{position:relative}.switch>button{height:38px;padding:0 14px;border:1px solid #d3d7dd;border-radius:8px;background:#fff;font-weight:600;cursor:pointer}.switch ul{position:absolute;right:0;top:44px;list-style:none;margin:0;padding:6px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px #141e3224;min-width:240px}.switch li button{width:100%;text-align:left;padding:10px;border:0;background:none;border-radius:8px;cursor:pointer;display:flex;flex-direction:column;font-weight:600}.switch li button:hover{background:var(--soft)}.switch li small{font-weight:400;color:var(--muted)}.me{display:flex;gap:8px;align-items:center}.me>span{width:32px;height:32px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:600}.me div{display:flex;flex-direction:column;line-height:1.2}.me button{border:0;background:none;padding:0;color:var(--brand);font-size:12px;cursor:pointer;text-align:left}.side{background:#fff;border-right:1px solid var(--line);padding:12px 10px;display:flex;flex-direction:column;gap:14px}.side h2{font-size:11px;letter-spacing:.06em;color:var(--muted);margin:0;padding:4px 10px;text-transform:uppercase}.side a{display:block;padding:9px 10px;border-radius:8px;text-decoration:none;color:var(--ink);font-weight:500}.side a.sub{padding-left:26px;font-size:13px;color:#4a5260}.side a.active{background:var(--soft);color:var(--brand);font-weight:600}.main{padding:24px 32px 40px;min-width:0}.page{display:flex;flex-direction:column;gap:16px}.head h1,.page>h1{margin:0;font-size:24px;text-transform:none}.head p{margin:4px 0 0;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:6px}.card span,.card small{color:var(--muted)}.card strong{font-size:26px}.card strong.muted{font-size:18px}.hint{color:var(--muted);font-size:13px}.empty{background:#fff;border:1px dashed #b9c0ca;border-radius:12px;padding:40px;text-align:center;color:var(--muted)}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.pad{padding:16px 18px}.panel h2{font-size:15px;margin:0 0 10px}.tabs{display:flex;gap:4px;padding:0 12px;border-bottom:1px solid var(--line)}.tabs button{height:44px;padding:0 12px;border:0;border-bottom:2px solid transparent;background:none;color:var(--muted);cursor:pointer;font-weight:500}.tabs button[aria-selected=true]{border-bottom-color:var(--brand);color:var(--brand);font-weight:600}.toolbar{display:flex;gap:8px;padding:12px 16px;border-bottom:1px solid var(--line)}.toolbar input{flex:1;height:38px;padding:0 12px;border:1px solid #d3d7dd;border-radius:8px}.toolbar button{height:38px;padding:0 16px;border:1px solid #d3d7dd;border-radius:8px;background:#fff;cursor:pointer}.bulk{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:12px 16px;background:#eef3fa;border-bottom:1px solid #cfdcee}.chip{height:32px;padding:0 12px;border:1px solid #c3c8cf;border-radius:8px;background:#fff;cursor:pointer;font-weight:600}.chip.on{background:var(--brand);border-color:var(--brand);color:#fff}.primary{height:32px;padding:0 14px;border:0;border-radius:8px;background:var(--brand);color:#fff;font-weight:600;cursor:pointer}.secondary{height:32px;padding:0 14px;border:1px solid var(--brand);border-radius:8px;background:#fff;color:var(--brand);font-weight:600;cursor:pointer}.primary:disabled,.secondary:disabled{opacity:.45;cursor:not-allowed}.link{border:0;background:none;color:#4a5260;cursor:pointer}.okmsg,.err{padding:10px 16px;font-weight:600;font-size:13px}.okmsg{background:var(--okbg);color:var(--ok)}.err{background:var(--errbg);color:var(--err);border-radius:8px}.grid{width:100%;border-collapse:collapse}.grid th{text-align:left;font-size:12px;color:var(--muted);background:#f8f9fa;padding:10px 12px;font-weight:600}.grid td{padding:10px 12px;border-top:1px solid #eef0f2;vertical-align:middle}.grid tr.selected td{background:#f5f8fd}.grid input[type=checkbox]{width:18px;height:18px;accent-color:var(--brand)}.prod{display:flex;gap:10px;align-items:center}.prod img,.noimg{width:40px;height:50px;border-radius:6px;object-fit:cover;flex-shrink:0}.noimg{background:#eef0f2;color:var(--muted);font-size:9px;display:grid;place-items:center;text-align:center}.prod div{display:flex;flex-direction:column;gap:2px}.prod a{font-weight:600;text-decoration:none}.prod small{color:var(--muted);font-size:12px}.chips{display:flex;gap:6px}.mini{min-width:40px;padding:0 6px;height:28px;border-radius:6px;border:1px solid #d3d7dd;background:#fff;color:#6b7380;font-size:11px;font-weight:700;cursor:pointer}.mini.on{background:var(--brand);border-color:var(--brand);color:#fff}.pager{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:12px 16px;border-top:1px solid var(--line);color:#4a5260}.pager span:first-child{margin-right:auto}.pager button{width:34px;height:34px;border:1px solid #d3d7dd;border-radius:8px;background:#fff;cursor:pointer}.cols{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}.cols>div{display:flex;flex-direction:column;gap:16px}.imgs{display:flex;flex-wrap:wrap;gap:8px}.imgs img{width:96px;height:120px;object-fit:cover;border-radius:8px}.login{min-height:100vh;display:grid;place-items:center;padding:20px}.login form{width:min(380px,100%);background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px;display:flex;flex-direction:column;gap:14px}.login h1{margin:0;font-size:22px}.login p{margin:0;color:var(--muted)}.login label{display:flex;flex-direction:column;gap:6px;font-weight:500;font-size:13px}.login input{height:42px;padding:0 12px;border:1px solid #d3d7dd;border-radius:8px}.login button{height:44px;border:0;border-radius:8px;background:var(--brand);color:#fff;font-weight:600;cursor:pointer}@media(max-width:800px){.shell{grid-template-columns:1fr}.side{display:none}.stats,.cols{grid-template-columns:1fr}.main{padding:16px}}
