.sidebar {
  width: var(--mz-sidebar-width, 290px);
  flex: 0 0 var(--mz-sidebar-width, 290px);
  min-height: 100vh;
  background: linear-gradient(180deg, #062a2a 0%, #052e2b 45%, #064e3b 100%);
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.28);
  transition: width 160ms ease, flex-basis 160ms ease;
}

.flex-grow-1 {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(90deg, #062a2a 0%, #064e3b 55%, #052e2b 100%);
  border-bottom: 1px solid rgba(167, 243, 208, 0.18);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.22);
}

.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(167, 243, 208, 0.16);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.22);
  flex: 0 0 auto;
  font-weight: 800;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(236, 253, 245, 0.98);
}

.brand-subtitle {
  font-size: 12px;
  color: rgba(209, 250, 229, 0.72);
}

.sidebar-nav {
  padding: 10px 10px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  color: rgba(209, 250, 229, 0.86);
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.1;
  font-size: 15px;
  position: relative;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, padding 160ms ease;
}

.sidebar-link i.bi {
  font-size: 20px;
  line-height: 1;
  opacity: 0.95;
}

.sidebar-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-link:hover {
  background: rgba(167, 243, 208, 0.10);
  color: rgba(236, 253, 245, 0.98);
}

.sidebar-link.active {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.22);
  font-weight: 600;
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.92);
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid rgba(167, 243, 208, 0.16);
}

.sidebar-user {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(167, 243, 208, 0.08);
  border: 1px solid rgba(167, 243, 208, 0.14);
  margin-bottom: 10px;
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.26);
  color: rgba(236, 253, 245, 0.95);
  flex: 0 0 auto;
}

.sidebar-user-meta {
  min-width: 0;
}

.sidebar-user-name {
  font-weight: 700;
  font-size: 13px;
  color: rgba(236, 253, 245, 0.96);
  line-height: 1.1;
}

.sidebar-user-subtitle {
  font-size: 12px;
  color: rgba(209, 250, 229, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.topbar-user {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(209, 250, 229, 0.10);
  border: 1px solid rgba(209, 250, 229, 0.18);
  color: rgba(236, 253, 245, 0.92);
}

.topbar-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.95);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
  display: inline-block;
}

.sidebar .sidebar-brand,
.sidebar .sidebar-nav,
.sidebar .sidebar-footer {
  transition: padding 160ms ease;
}

body.sidebar-collapsed .sidebar {
  width: var(--mz-sidebar-collapsed-width, 84px);
  flex: 0 0 var(--mz-sidebar-collapsed-width, 84px);
}

body.sidebar-collapsed .sidebar .brand-title,
body.sidebar-collapsed .sidebar .brand-subtitle,
body.sidebar-collapsed .sidebar .sidebar-user-meta,
body.sidebar-collapsed .sidebar .sidebar-label,
body.sidebar-collapsed .sidebar .sidebar-user-subtitle {
  display: none !important;
}

body.sidebar-collapsed .sidebar .sidebar-brand {
  justify-content: center;
  padding: 14px 10px;
}

body.sidebar-collapsed .sidebar .sidebar-nav {
  padding: 10px 8px;
}

body.sidebar-collapsed .sidebar .sidebar-link {
  justify-content: center;
  gap: 0;
  padding: 10px 10px;
}

body.sidebar-collapsed .sidebar .sidebar-link::before {
  left: 0;
  top: 8px;
  bottom: 8px;
}

body.sidebar-collapsed .sidebar .sidebar-footer {
  padding: 12px 10px;
}

body.sidebar-collapsed .sidebar .sidebar-user {
  justify-content: center;
}

body.sidebar-collapsed .sidebar .btn.sidebar-logout-btn {
  padding-left: 10px;
  padding-right: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.sidebar-logout-btn i.bi {
  font-size: 16px;
}

.sidebar-footer .btn-outline-secondary {
  border-color: rgba(209, 250, 229, 0.22);
  color: rgba(236, 253, 245, 0.92);
}

.sidebar-footer .btn-outline-secondary:hover,
.sidebar-footer .btn-outline-secondary:focus {
  background: rgba(209, 250, 229, 0.10);
  border-color: rgba(209, 250, 229, 0.30);
  color: rgba(236, 253, 245, 0.98);
}

.admin-footer {
  border-top: 1px solid rgba(167, 243, 208, 0.18);
  background: linear-gradient(90deg, #062a2a 0%, #052e2b 55%, #064e3b 100%);
  box-shadow: 0 -10px 28px rgba(2, 6, 23, 0.12);
}

.topbar .fw-semibold {
  color: rgba(236, 253, 245, 0.98);
  letter-spacing: 0.2px;
}

.topbar .text-secondary {
  color: rgba(209, 250, 229, 0.72) !important;
}

.topbar .btn-outline-secondary {
  border-color: rgba(209, 250, 229, 0.22);
  color: rgba(236, 253, 245, 0.92);
}

.topbar .btn-outline-secondary:hover,
.topbar .btn-outline-secondary:focus {
  background: rgba(209, 250, 229, 0.10);
  border-color: rgba(209, 250, 229, 0.30);
  color: rgba(236, 253, 245, 0.98);
}

.admin-footer .text-secondary {
  color: rgba(209, 250, 229, 0.72) !important;
}

.kpi-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
}

.card {
  border-radius: 16px;
}

.card.shadow-sm {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
}

.table thead th {
  font-weight: 600;
}

.auth-body {
  background: radial-gradient(1200px 500px at 20% 10%, rgba(16, 185, 129, 0.25), transparent 60%),
    radial-gradient(900px 420px at 80% 20%, rgba(20, 184, 166, 0.18), transparent 55%),
    linear-gradient(180deg, #041312 0%, #062a2a 45%, #052e2b 100%);
  min-height: 100vh;
}

.auth-shell {
  max-width: 1040px;
}

.auth-promo {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.55), rgba(4, 19, 18, 0.78));
  border: 1px solid rgba(167, 243, 208, 0.18);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
  color: rgba(236, 253, 245, 0.92);
}

.auth-promo-inner {
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.auth-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.15;
}

.auth-subtitle {
  color: rgba(209, 250, 229, 0.72);
  font-size: 14px;
  margin-top: 10px;
  max-width: 52ch;
}

.auth-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-point {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(167, 243, 208, 0.08);
  border: 1px solid rgba(167, 243, 208, 0.14);
}

.auth-point-icon {
  width: 34px;
  height: 34px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.26);
  color: rgba(236, 253, 245, 0.95);
  flex: 0 0 auto;
}

.auth-note {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(167, 243, 208, 0.16);
  color: rgba(209, 250, 229, 0.78);
}

.auth-card {
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28) !important;
}

.auth-steps {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-step {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(167, 243, 208, 0.10);
  border: 1px solid rgba(167, 243, 208, 0.18);
  color: rgba(15, 23, 42, 0.62);
}

.auth-step.active {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.30);
  color: rgba(4, 120, 87, 0.95);
}

.auth-step-line {
  width: 40px;
  height: 2px;
  background: rgba(167, 243, 208, 0.22);
  border-radius: 999px;
}

.auth-badge {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(20, 184, 166, 0.10);
  border: 1px solid rgba(20, 184, 166, 0.18);
  color: rgba(15, 23, 42, 0.78);
}

.auth-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 14px;
}
