:root { --navy:#0f2a5c; --navy2:#16397d; --blue:#1d5fe0; --bg:#f3f6fc; }
body { background: var(--bg); font-family: 'Segoe UI', system-ui, sans-serif; }
.sidebar { width: 240px; background: linear-gradient(180deg, var(--navy) 0%, #0b1d40 100%); color:#dbe6ff;
  position: fixed; inset: 0 auto 0 0; flex-direction: column; padding: 18px 12px; z-index: 1045; }
.offcanvas.sidebar { position: fixed; }
.brand { display:flex; gap:10px; align-items:center; padding: 4px 10px 18px; color:#fff; }
.brand i { font-size: 2rem; color:#5aa0ff; }
.brand strong { font-size:1.3rem; display:block; line-height:1; }
.brand small { opacity:.8; }
.sidebar .nav-link { color:#cfdcff; border-radius:10px; padding:10px 14px; display:flex; gap:12px; align-items:center; margin-bottom:2px; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.08); color:#fff; }
.sidebar .nav-link.active { background: var(--blue); color:#fff; font-weight:600; }
.side-foot { margin-top:auto; display:flex; gap:10px; background: rgba(255,255,255,.07); border-radius:10px; padding:12px; font-size:.8rem; }
.main { margin-left: 240px; min-height: 100vh; }
@media (max-width: 991px) { .main { margin-left: 0; } }
.topbar { background:#fff; display:flex; align-items:center; gap:14px; padding: 12px 24px; border-bottom:1px solid #e6ecf7; position:sticky; top:0; z-index:100; }
.topbar .search { position:relative; width: 380px; }
.topbar .search i { position:absolute; left:12px; top:9px; color:#778; }
.topbar .search input { padding-left:36px; border-radius:10px; background:#f6f8fd; }
.notif { position:absolute; top:-6px; right:-10px; font-size:.6rem; }
.avatar { width:38px; height:38px; border-radius:50%; background: var(--blue); color:#fff; display:grid; place-items:center; font-weight:700; }
.content { padding: 24px; }
.card { border:1px solid #e6ecf7; border-radius:14px; box-shadow: 0 1px 3px rgba(20,40,90,.04); }
.stat { border-radius:14px; padding:18px; display:flex; align-items:center; gap:14px; border:1px solid transparent; }
.stat i { font-size:1.8rem; width:56px; height:56px; border-radius:50%; display:grid; place-items:center; background:rgba(255,255,255,.7); }
.stat .n { font-size:2rem; font-weight:700; line-height:1; }
.stat.blue { background:#e3edff; border-color:#c9dbff; color:#1d4ed8; }
.stat.green { background:#dff6e8; border-color:#bde8cf; color:#15803d; }
.stat.orange { background:#fff0d9; border-color:#fadcab; color:#b45309; }
.stat.red { background:#ffe4e4; border-color:#f8c4c4; color:#b91c1c; }
.stat .t { color:#334; }
.donut { width:170px; height:170px; border-radius:50%; position:relative; flex:none; }
.donut::after { content:attr(data-total); position:absolute; inset:28px; background:#fff; border-radius:50%; display:grid; place-items:center; font-size:1.8rem; font-weight:700; }
.dot { display:inline-block; width:11px; height:11px; border-radius:50%; margin-right:6px; }
.timeline .item { display:flex; gap:12px; padding:9px 0; border-bottom:1px dashed #e5eaf5; }
.timeline .item:last-child { border:0; }
.timeline .ic { width:34px; height:34px; border-radius:50%; background:#e3edff; color:var(--blue); display:grid; place-items:center; flex:none; }
.table > :not(caption) > * > * { padding: .7rem .75rem; vertical-align: middle; }
.table thead th { background:#f3f6fc; font-size:.82rem; text-transform: uppercase; letter-spacing:.03em; color:#556; }
.qr-box canvas, .qr-box img { max-width:100%; height:auto; }
.label-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap:12px; }
.label-item { border:1px dashed #99a; background:#fff; padding:10px; text-align:center; border-radius:8px; break-inside: avoid; }
.label-item .qr { display:flex; justify-content:center; }
#reader { max-width: 420px; margin: 0 auto; }
@media print { .sidebar, .topbar, .no-print, .offcanvas { display:none !important; } .main { margin:0; } .content { padding:0; } body{background:#fff;} }
