:root { --sb-w: 240px; --brand: #4f46e5; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --bg: #f5f6fa; }
body { background: var(--bg); color: var(--ink); font-size: .94rem; }
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sb-w); background: #111827; color: #cbd5e1; flex: none; position: fixed; inset: 0 auto 0 0; overflow-y: auto; z-index: 1040; transition: transform .2s; }
.sidebar .brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.25rem; color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.sidebar .brand i { color: #818cf8; font-size: 1.4rem; }
.sidebar .nav-label { padding: 1rem 1.25rem .35rem; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.sidebar a.nav-link { color: #cbd5e1; padding: .55rem 1.25rem; display: flex; gap: .7rem; align-items: center; border-left: 3px solid transparent; }
.sidebar a.nav-link:hover { background: #1f2937; color: #fff; }
.sidebar a.nav-link.active { background: #1f2937; color: #fff; border-left-color: #818cf8; }
.main { margin-left: var(--sb-w); flex: 1; min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 1.25rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 1030; }
.content { padding: 1.5rem 1.25rem 3rem; max-width: 1280px; }
.card { border: 1px solid var(--line); border-radius: .75rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.card-header { background: transparent; font-weight: 600; }
.stat { padding: 1rem 1.15rem; }
.stat .label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.stat .value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.table > :not(caption) > * > * { padding: .65rem .75rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.page-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.4rem; font-weight: 700; margin: 0; }
.badge-status { font-weight: 600; }
.scan-box { border: 2px dashed #c7d2fe; background: #eef2ff; border-radius: .75rem; }
#scanner-region { width: 100%; min-height: 240px; background: #000; border-radius: .5rem; overflow: hidden; }
.pos-total { font-size: 2rem; font-weight: 800; }
.form-label { font-weight: 600; font-size: .85rem; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1rem; background: linear-gradient(135deg, #1e1b4b, #4f46e5); }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  .main { margin-left: 0; }
  .content { padding: 1rem .75rem 3rem; }
}
@media print { .sidebar, .topbar, .no-print { display: none !important; } .main { margin: 0; } .content { padding: 0; } body { background: #fff; } .card { border: 0; box-shadow: none; } }
