:root{--bg:#0f1115;--text:#e9eef4;--muted:#9aa4b2;--card:rgba(255,255,255,.06);--line:rgba(255,255,255,.12);--shadow:0 10px 35px rgba(0,0,0,.35)}
*{box-sizing:border-box}html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--text);font:14px system-ui,-apple-system,Segoe UI,Roboto,Arial}
.backdrop{position:fixed;inset:0;z-index:-2;background:radial-gradient(60vw 60vw at 10% -10%,#2dd4bfb3 0%,transparent 40%),radial-gradient(60vw 60vw at 110% 110%,#818cf8aa 0%,transparent 40%),linear-gradient(180deg,#0b0d11 0%,#111319 100%)}
.orb,.orb2{position:fixed;border-radius:50%;filter:blur(50px);opacity:.35;pointer-events:none;z-index:-1;animation:float 14s ease-in-out infinite alternate}
.orb{width:380px;height:380px;left:-80px;top:-40px;background:#22d3ee66}
.orb2{width:420px;height:420px;right:-100px;bottom:-80px;background:#a78bfa55;animation-duration:18s}
@keyframes float{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(30px,-20px,0)}}
.avatar{position:fixed;top:16px;right:16px;width:52px;height:52px;border-radius:50%;overflow:hidden;border:2px solid #ffffff66;box-shadow:0 8px 24px rgba(0,0,0,.35)}
.avatar img{width:100%;height:100%;object-fit:cover}
.sidebar{position:fixed;inset:0 auto 0 0;width:240px;padding:12px;background:rgba(255,255,255,.05);border-right:1px solid var(--line);backdrop-filter:blur(8px);box-shadow:var(--shadow);transition:width .2s ease}
.side-top{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.hamb{width:42px;height:42px;border:1px solid var(--line);background:transparent;border-radius:12px;display:grid;place-items:center;cursor:pointer}
.hamb span{display:block;width:18px;height:2px;background:#eaf2f8;margin:3px;border-radius:2px}
.menu{display:flex;flex-direction:column;gap:6px}
.menu .item{display:flex;align-items:center;gap:10px;padding:10px;border-radius:12px;color:var(--text);text-decoration:none;border:1px solid transparent}
.menu .item:hover{background:rgba(255,255,255,.07);border-color:var(--line)}
.menu .item.active{background:linear-gradient(135deg,#22d3ee22,#14b8a622);border-color:#22d3ee66}
.menu .item svg{width:20px;height:20px;fill:currentColor}
body.collapsed .sidebar{width:78px}
body.collapsed .menu .item{justify-content:center}
body.collapsed .menu .item span{display:none}
.main{margin-left:240px;min-height:100vh;transition:margin-left .2s ease}
body.collapsed .main{margin-left:78px}
.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.03);backdrop-filter:blur(6px)}
.actions{display:flex;gap:8px;align-items:center}
.barcode{padding:12px 14px;border-radius:12px;width:320px;max-width:50vw;background:rgba(255,255,255,.08);border:1px solid var(--line);color:var(--text)}
.btn{padding:12px 14px;border-radius:12px;border:0;cursor:pointer;background:linear-gradient(135deg,#22d3ee,#14b8a6);color:#06232a;font-weight:700}
.btn.ghost{background:rgba(255,255,255,.08);color:var(--text);border:1px solid var(--line)}
.content{padding:16px}
.note{margin:8px 0;color:var(--muted)}
.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}
.tbl{width:100%;min-width:820px;border-collapse:collapse}
.tbl th,.tbl td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}
.tbl thead{background:rgba(255,255,255,.06)}
.tbl tbody tr:hover{background:rgba(255,255,255,.04)}
.r{text-align:right}.b{font-weight:700}
.qty{display:flex;align-items:center;gap:6px}
.qty input{width:64px;padding:8px;border-radius:10px;border:1px solid var(--line);background:rgba(255,255,255,.08);color:var(--text)}
.mini{padding:6px 10px;border-radius:8px;border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--text);cursor:pointer}
.mini.danger{border-color:#b91c1c66;background:#b91c1c22}
/* PRINT uchun kontrast */
@media print{
  :root{ --text:#000; --muted:#333; --line:#000; --card:#fff; }
  body{ background:#fff !important; color:#000 !important; }
  .sidebar,.topbar,.avatar,.toast,.backdrop,.orb,.orb2{ display:none !important; }
  .main{ margin:0 !important; }
  .table-wrap{ border:1px solid #000 !important; }
  .tbl{ min-width:auto !important; }
  .tbl th,.tbl td{ border-color:#000 !important; color:#000 !important; }
  .tbl thead{ background:#efefef !important; }
  .qty input{ background:#fff !important; color:#000 !important; border-color:#000 !important; }
  @page{ margin:10mm; }
}
