:root {
  --brand: #0f766e;
  --brand-dark: #0b4f4a;
  --sidebar-w: 260px;
}

body { background: #f4f6fb; font-family: 'Segoe UI', Arial, sans-serif; }
.wrapper { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--brand-dark), var(--brand));
  color: #fff;
  position: fixed; top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  z-index: 1000;
  transition: transform .2s ease;
}
.sidebar-brand { padding: 18px 16px; font-size: 1.05rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.15); }
.sidebar .nav-link { color: rgba(255,255,255,.85); padding: 8px 18px; font-size: .88rem; border-left: 3px solid transparent; }
.sidebar .nav-link i { margin-right: 8px; width: 18px; display: inline-block; }
.sidebar .nav-link:hover, .sidebar .nav-link.active { background: rgba(255,255,255,.12); border-left-color: #fff; color: #fff; }
.sidebar .nav-heading { display: block; padding: 10px 18px 4px; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.55); }

.main-content { margin-left: var(--sidebar-w); flex: 1; min-width: 0; }
.top-navbar { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 8px 16px; }
.page-body { padding: 22px; }

@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main-content { margin-left: 0; }
}

.stat-card { background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: 0 2px 10px rgba(0,0,0,.05); border-left: 4px solid var(--brand); height: 100%; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-card .stat-label { color: #6b7280; font-size: .82rem; }
.stat-card .stat-icon { font-size: 1.7rem; opacity: .25; }

.card { border: none; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.card-header { background: #fff; border-bottom: 1px solid #eef0f4; font-weight: 600; border-radius: 12px 12px 0 0 !important; }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.login-card { max-width: 420px; width: 100%; border-radius: 14px; }

.notif-dropdown { width: 320px; max-height: 400px; overflow-y: auto; }

table.table th { white-space: nowrap; }
.small-muted { color: #6b7280; font-size: .82rem; }

/* Printable invoice */
@media print {
  .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  body { background: #fff; }
}
.invoice-box { background: #fff; border-radius: 10px; padding: 30px; max-width: 850px; margin: 0 auto; }
