:root{
  --rt-dark:#0f172a; --rt-dark2:#1e293b; --rt-accent:#2563eb; --rt-accent2:#f59e0b;
}
body{ background:#f1f5f9; font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; }
#wrapper{ min-height:100vh; }
.sidebar{
  width:260px; min-width:260px; background:linear-gradient(180deg,var(--rt-dark),var(--rt-dark2));
  color:#e2e8f0;
}
.sidebar .brand{ color:#fff; }
.brand-badge{
  width:40px;height:40px;border-radius:12px;background:var(--rt-accent);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:700;letter-spacing:.5px;
}
.sidebar .nav-link{ color:#cbd5e1; border-radius:10px; padding:.55rem .8rem; font-size:.93rem; }
.sidebar .nav-link:hover{ background:rgba(255,255,255,.07); color:#fff; }
.sidebar .nav-link.active{ background:var(--rt-accent); color:#fff; }
.content{ min-width:0; }
.topbar{ background:#fff; border-bottom:1px solid #e2e8f0; position:sticky; top:0; z-index:10; }
.card{ border:0; border-radius:14px; box-shadow:0 1px 3px rgba(15,23,42,.08); }
.card-header{ background:#fff; border-bottom:1px solid #eef2f7; font-weight:600; border-radius:14px 14px 0 0 !important; }
.stat-card .stat-value{ font-size:1.65rem; font-weight:700; line-height:1.1; }
.stat-card .stat-label{ font-size:.78rem; text-transform:uppercase; letter-spacing:.06em; color:#64748b; }
.stat-icon{ width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.25rem; }
.table>thead th{ font-size:.75rem; text-transform:uppercase; letter-spacing:.04em; color:#64748b; background:#f8fafc; }
.table td,.table th{ vertical-align:middle; }
.badge-soft{ background:#e0e7ff; color:#3730a3; font-weight:600; }
.badge-soft-warn{ background:#fef3c7; color:#92400e; font-weight:600; }
.money{ font-variant-numeric:tabular-nums; white-space:nowrap; }
.invoice-sheet{ background:#fff; max-width:900px; margin:0 auto; padding:36px; border-radius:12px; box-shadow:0 4px 18px rgba(15,23,42,.08); }
.invoice-sheet h2{ letter-spacing:.08em; }
@media print{
  .sidebar,.topbar,footer,.no-print{ display:none !important; }
  body{ background:#fff; }
  .invoice-sheet{ box-shadow:none; max-width:100%; padding:0; }
  main.p-4{ padding:0 !important; }
  #wrapper{ display:block !important; }
}
