:root {
  --bg: #0b1120;
  --sidebar: #0f172a;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --navy: #111827;
  --danger: #dc2626;
  --success: #059669;
  --info: #2563eb;
  --purple: #7c3aed;
  --shadow: 0 12px 32px rgba(15, 23, 42, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef2f7;
  color: var(--text);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 270px;
  background: linear-gradient(180deg, #111827 0%, #0b1120 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  box-shadow: 14px 0 30px rgba(15, 23, 42, .10);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 14px; font-weight: 900; font-size: 15px;
  background: linear-gradient(135deg, #fbbf24, #f97316); color: #111827;
  box-shadow: 0 8px 24px rgba(245, 158, 11, .25);
}
.brand strong, .brand span { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.02em; }
.brand span { color: #94a3b8; font-size: 13px; margin-top: 2px; }
.nav { display: grid; gap: 7px; margin-top: 24px; }
.nav-item {
  width: 100%; border: 0; background: transparent; color: #94a3b8;
  text-align: left; padding: 12px 14px; border-radius: 12px;
  display: flex; align-items: center; gap: 12px; font-weight: 700; transition: .2s ease;
}
.nav-item span { width: 22px; text-align: center; font-size: 18px; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { color: #111827; background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 8px 22px rgba(245, 158, 11, .18); }
.sidebar-footer { margin-top: auto; padding: 18px 10px 0; border-top: 1px solid rgba(255,255,255,.08); color: #64748b; }
.sidebar-footer small { font-size: 11px; }
.system-status { display: flex; align-items: center; gap: 8px; color: #cbd5e1; font-size: 12px; margin-bottom: 9px; }
.system-status i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.12); }

.main { margin-left: 270px; width: calc(100% - 270px); min-height: 100vh; }
.topbar {
  height: 84px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 25;
}
.topbar-left, .topbar-actions, .profile-chip { display: flex; align-items: center; }
.topbar-left { gap: 12px; }
.topbar-left h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.topbar-left p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.topbar-actions { gap: 14px; }
.profile-chip { gap: 10px; padding-left: 14px; border-left: 1px solid var(--line); }
.profile-chip strong, .profile-chip span { display: block; }
.profile-chip strong { font-size: 13px; }
.profile-chip span { color: var(--muted); font-size: 11px; margin-top: 2px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #111827; background: #fde68a; font-weight: 900; font-size: 13px; }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 12px; color: #334155; position: relative; }
.menu-toggle { display: none; }
.notification-btn span { position: absolute; right: -3px; top: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center; background: var(--danger); color: #fff; font-size: 10px; font-weight: 800; border: 2px solid #fff; }

.page { display: none; padding: 28px 30px 42px; }
.page.active { display: block; animation: pageIn .22s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.hero-panel {
  position: relative; overflow: hidden; min-height: 180px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-radius: 24px; padding: 32px 34px; color: #fff;
  background: radial-gradient(circle at 85% 20%, rgba(245,158,11,.28), transparent 30%), linear-gradient(135deg, #111827, #1e293b);
  box-shadow: var(--shadow); margin-bottom: 22px;
}
.hero-panel::after { content: "WG"; position: absolute; right: 22px; bottom: -48px; color: rgba(255,255,255,.035); font-weight: 1000; font-size: 190px; line-height: 1; pointer-events: none; }
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel h2 { margin: 8px 0 8px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.04em; }
.hero-panel p { margin: 0; color: #cbd5e1; max-width: 720px; line-height: 1.65; }
.eyebrow { font-size: 11px; letter-spacing: .16em; font-weight: 900; color: #fbbf24; }

.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; }
.kpi-card { background: var(--surface); border: 1px solid rgba(226,232,240,.8); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; }
.kpi-icon.orange { background: #fff7ed; color: #ea580c; }
.kpi-icon.red { background: #fef2f2; color: #dc2626; }
.kpi-icon.blue { background: #eff6ff; color: #2563eb; }
.kpi-icon.green { background: #ecfdf5; color: #059669; }
.kpi-icon.purple { background: #f5f3ff; color: #7c3aed; }
.kpi-trend { font-size: 11px; font-weight: 800; color: var(--muted); }
.kpi-value { font-size: 28px; font-weight: 900; margin: 16px 0 3px; letter-spacing: -.04em; }
.kpi-label { color: var(--muted); font-size: 12px; font-weight: 650; }

.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.panel { background: var(--surface); border: 1px solid rgba(226,232,240,.9); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel.no-padding { padding: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.panel h3, .panel-head h3 { margin: 0; font-size: 16px; }
.panel-head p, .panel > p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.link-btn { border: 0; background: transparent; color: var(--primary-dark); font-weight: 800; font-size: 12px; }

.btn { border: 0; border-radius: 12px; padding: 11px 15px; font-weight: 800; font-size: 12px; transition: .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #111827; background: linear-gradient(135deg, #fbbf24, #f59e0b); box-shadow: 0 7px 18px rgba(245,158,11,.20); }
.btn-primary:hover { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.btn-secondary { background: #fff; color: #334155; border: 1px solid var(--line); }
.btn-danger { color: #fff; background: #dc2626; }
.btn-sm { padding: 7px 10px; font-size: 11px; border-radius: 9px; }
.button-group { display: flex; flex-wrap: wrap; gap: 8px; }

.input { width: 100%; border: 1px solid #dbe2ea; background: #fff; color: var(--text); border-radius: 11px; padding: 11px 12px; outline: none; transition: .16s ease; }
.input:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.input.compact { width: auto; padding: 8px 10px; font-size: 12px; }
textarea.input { resize: vertical; line-height: 1.55; }
label { display: grid; gap: 7px; color: #334155; font-size: 12px; font-weight: 750; }

.bar-chart { height: 235px; display: flex; align-items: stretch; gap: 13px; padding: 16px 4px 2px; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; }
.bar-stack { height: 170px; width: 100%; max-width: 42px; display: flex; align-items: flex-end; justify-content: center; }
.bar { width: 100%; min-height: 4px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #fbbf24, #f59e0b); position: relative; transition: .25s ease; }
.bar:hover { filter: brightness(.95); }
.bar-value { font-size: 11px; font-weight: 900; }
.bar-label { color: var(--muted); font-size: 10px; white-space: nowrap; }

.donut-wrap { min-height: 235px; display: grid; place-items: center; }
.donut { width: 156px; height: 156px; border-radius: 50%; position: relative; display: grid; place-items: center; }
.donut::after { content: ""; position: absolute; inset: 23px; background: #fff; border-radius: 50%; }
.donut-center { position: relative; z-index: 1; text-align: center; }
.donut-center strong, .donut-center span { display: block; }
.donut-center strong { font-size: 25px; }
.donut-center span { font-size: 10px; color: var(--muted); }
.legend { display: grid; gap: 8px; margin-top: 16px; width: 100%; }
.legend-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.legend-label { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th { color: #64748b; background: #f8fafc; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
td { padding: 13px 14px; border-bottom: 1px solid #edf1f5; font-size: 12px; vertical-align: middle; }
tbody tr { transition: .15s ease; }
tbody tr.clickable:hover { background: #fffbeb; cursor: pointer; }
tbody tr:last-child td { border-bottom: 0; }
.report-title { max-width: 330px; }
.report-title strong, .report-title span { display: block; }
.report-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.report-title span { color: var(--muted); margin-top: 3px; font-size: 10px; }
.id-link { color: #0f172a; font-weight: 900; }
.report-type-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.report-division { color: #7a6240; font-size: 10px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.report-division-cell { color: #6f5225; font-size: 11px; font-weight: 850; white-space: nowrap; }
.report-table { min-width: 1120px; }

.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 850; white-space: nowrap; }
.badge-critical { color: #991b1b; background: #fee2e2; }
.badge-high { color: #c2410c; background: #ffedd5; }
.badge-medium { color: #a16207; background: #fef9c3; }
.badge-low { color: #166534; background: #dcfce7; }
.badge-open { color: #1d4ed8; background: #dbeafe; }
.badge-investigating { color: #6d28d9; background: #ede9fe; }
.badge-action-required { color: #b45309; background: #fef3c7; }
.badge-monitoring { color: #0369a1; background: #e0f2fe; }
.badge-resolved { color: #047857; background: #d1fae5; }
.badge-closed { color: #475569; background: #e2e8f0; }
.badge-incident { color: #b91c1c; background: #fee2e2; }
.badge-issue { color: #1d4ed8; background: #dbeafe; }
.sla-ok { color: #047857; font-weight: 850; }
.sla-warning { color: #d97706; font-weight: 850; }
.sla-overdue { color: #dc2626; font-weight: 900; }

.action-list { display: grid; gap: 10px; }
.action-item { padding: 13px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.action-item strong, .action-item span { display: block; }
.action-item strong { font-size: 12px; }
.action-item span { color: var(--muted); font-size: 10px; margin-top: 4px; }
.action-count { min-width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); font-weight: 900; }

.section-actions { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.search-wrap { position: relative; min-width: 280px; flex: 1; max-width: 520px; }
.search-wrap span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-wrap .input { padding-left: 37px; }
.filter-panel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.table-meta { display: flex; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.table-meta strong { font-size: 13px; }
.table-meta span { color: var(--muted); font-size: 11px; }
.empty-state { text-align: center; padding: 55px 20px; color: var(--muted); }
.empty-state div { font-size: 34px; }
.empty-state h3 { color: var(--text); margin: 10px 0 5px; }
.empty-state p { margin: 0; }

.form-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr); gap: 20px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.form-grid .full { grid-column: span 2; }
.form-sidebar { display: grid; gap: 16px; position: sticky; top: 110px; }
.form-sidebar .panel { display: grid; gap: 15px; }
.form-sidebar .panel h3 { margin-bottom: 2px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; }
.draft-badge { color: #a16207; background: #fef9c3; border-radius: 99px; padding: 6px 10px; font-size: 10px; font-weight: 850; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1050px; }
.stack-form { display: grid; gap: 15px; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; border-color: #fecaca; }
.danger-zone p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }

.horizontal-bars { display: grid; gap: 14px; }
.hbar-row { display: grid; grid-template-columns: 150px 1fr 34px; align-items: center; gap: 12px; font-size: 11px; }
.hbar-track { height: 9px; border-radius: 9px; background: #eef2f7; overflow: hidden; }
.hbar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fbbf24, #f97316); }
.hbar-row strong { text-align: right; }
.stat-stack { display: grid; gap: 10px; }
.stat-line { border: 1px solid var(--line); border-radius: 13px; padding: 13px; display: flex; justify-content: space-between; align-items: center; }
.stat-line span { color: var(--muted); font-size: 11px; }
.stat-line strong { font-size: 19px; }
.pic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pic-card { border: 1px solid var(--line); border-radius: 14px; padding: 15px; }
.pic-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.pic-card-head .avatar { width: 34px; height: 34px; border-radius: 10px; }
.pic-card strong, .pic-card span { display: block; }
.pic-card strong { font-size: 12px; }
.pic-card span { color: var(--muted); font-size: 10px; margin-top: 2px; }
.pic-load { display: flex; align-items: end; justify-content: space-between; }
.pic-load b { font-size: 23px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, .68); backdrop-filter: blur(5px); display: grid; place-items: center; padding: 22px; }
.modal { width: min(100%, 1100px); max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 22px; padding: 25px; position: relative; box-shadow: 0 28px 80px rgba(0,0,0,.24); }
.modal-lg { width: min(100%, 1050px); }
.modal-sm { width: min(100%, 430px); text-align: center; }
.modal-close { position: absolute; top: 15px; right: 15px; width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 22px; z-index: 2; }
.modal-actions { display: flex; justify-content: center; gap: 9px; margin-top: 20px; }
.confirm-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; font-weight: 1000; font-size: 23px; color: #991b1b; background: #fee2e2; }
.modal-sm h3 { margin: 0 0 8px; }
.modal-sm p { color: var(--muted); line-height: 1.55; }

.detail-header { padding-right: 42px; }
.detail-header-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.detail-header h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.detail-header p { color: var(--muted); margin: 8px 0 0; font-size: 12px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 20px; margin-top: 22px; }
.detail-main, .detail-side { display: grid; gap: 15px; align-content: start; }
.detail-card { border: 1px solid var(--line); border-radius: 15px; padding: 16px; }
.detail-card h4 { margin: 0 0 10px; font-size: 13px; }
.detail-card p { margin: 0; color: #475569; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.meta-list { display: grid; gap: 11px; }
.meta-row { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; }
.meta-row span { color: var(--muted); }
.meta-row strong { text-align: right; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; padding: 0 0 18px 24px; border-left: 1px solid #dbe2ea; margin-left: 5px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -5px; top: 2px; width: 9px; height: 9px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px #fff7ed; }
.timeline-item strong, .timeline-item span { display: block; }
.timeline-item strong { font-size: 11px; }
.timeline-item span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.detail-actions { display: grid; gap: 9px; }
.status-select-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.toast-container { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; }
.toast { min-width: 280px; max-width: 380px; background: #111827; color: #fff; border-radius: 13px; padding: 13px 15px; box-shadow: 0 16px 40px rgba(15,23,42,.24); display: flex; align-items: flex-start; gap: 10px; animation: toastIn .22s ease; }
.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }
.toast strong, .toast span { display: block; }
.toast strong { font-size: 12px; }
.toast span { color: #cbd5e1; font-size: 10px; margin-top: 3px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; width: 100%; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .dashboard-grid, .form-layout, .settings-grid { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
  .form-sidebar { position: static; }
  .section-actions { flex-direction: column; }
  .search-wrap { max-width: none; }
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .hero-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .topbar { height: 72px; padding: 0 16px; }
  .page { padding: 18px 14px 32px; }
  .profile-chip > div:last-child { display: none; }
  .profile-chip { padding-left: 8px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi-card { padding: 14px; }
  .kpi-value { font-size: 24px; }
  .filter-panel, .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: span 1; }
  .button-group { width: 100%; }
  .button-group .btn { flex: 1; }
  .hero-panel { padding: 24px 20px; }
  .hero-panel h2 { font-size: 25px; }
  .table-meta { align-items: flex-start; gap: 6px; flex-direction: column; }
  .pic-grid { grid-template-columns: 1fr; }
  .danger-zone { align-items: stretch; flex-direction: column; gap: 16px; }
  .hbar-row { grid-template-columns: 100px 1fr 28px; }
  .modal-backdrop { padding: 10px; }
  .modal { border-radius: 16px; padding: 18px; }
}

@media print {
  .sidebar, .topbar, .section-actions, .filter-panel, .table-meta span, .report-table th:last-child, .report-table td:last-child { display: none !important; }
  .main { margin: 0; width: 100%; }
  .page { display: none !important; padding: 0; }
  #reportsPage { display: block !important; }
  .panel { box-shadow: none; border: 0; }
  body { background: #fff; }
}

/* Authentication panel */
.auth-active {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(20, 184, 166, .16), transparent 26%),
    radial-gradient(circle at 86% 82%, rgba(37, 99, 235, .16), transparent 31%),
    linear-gradient(135deg, #061a2a 0%, #0a2a43 46%, #132d63 100%);
}
.auth-screen {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 44px);
  display: grid;
  place-items: center;
}
.auth-card {
  width: min(100%, 1160px);
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 35px 90px rgba(0, 0, 0, .28);
}
.auth-brand-panel {
  position: relative;
  overflow: hidden;
  padding: 54px 52px 44px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    radial-gradient(circle at 84% 82%, rgba(34, 211, 238, .11), transparent 32%),
    linear-gradient(145deg, #06253a 0%, #071e32 58%, #071827 100%);
}
.auth-brand-panel::before,
.auth-brand-panel::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(148, 163, 184, .08);
  border-radius: 50%;
  right: -190px;
  bottom: -250px;
}
.auth-brand-panel::after { width: 340px; height: 340px; right: -70px; bottom: -190px; }
.auth-brand-content { position: relative; z-index: 2; }
.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.auth-logo {
  width: 58px;
  height: 58px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  font-weight: 1000;
  letter-spacing: -.05em;
  color: #fff;
  background: linear-gradient(145deg, #0ea5a9, #22d3ee);
  box-shadow: 0 14px 34px rgba(34, 211, 238, .24);
}
.auth-brand strong,
.auth-brand span { display: block; }
.auth-brand strong { font-size: 20px; letter-spacing: -.02em; }
.auth-brand span { margin-top: 4px; color: #91b7cc; font-size: 11px; font-weight: 850; letter-spacing: .18em; }
.auth-secure-badge {
  width: max-content;
  margin-top: 28px;
  padding: 8px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  color: #b8d4e5;
  background: rgba(255, 255, 255, .055);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
}
.auth-secure-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, .12);
}
.auth-copy { margin-top: 30px; }
.auth-copy h1 {
  margin: 0;
  max-width: 530px;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: .99;
  letter-spacing: -.055em;
}
.auth-copy p {
  max-width: 530px;
  margin: 20px 0 0;
  color: #b3cbda;
  font-size: 15px;
  line-height: 1.75;
}
.auth-benefits {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.auth-benefits article {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 15px;
  background: rgba(255, 255, 255, .055);
}
.auth-benefits strong,
.auth-benefits span { display: block; }
.auth-benefits strong { font-size: 12px; }
.auth-benefits span { margin-top: 5px; color: #8fb0c3; font-size: 10px; line-height: 1.55; }
.auth-brand-panel small {
  position: relative;
  z-index: 2;
  margin-top: auto;
  color: #789aad;
  font-size: 11px;
}
.auth-watermark {
  position: absolute;
  z-index: 1;
  right: -20px;
  bottom: -65px;
  color: rgba(255, 255, 255, .025);
  font-size: 230px;
  font-weight: 1000;
  letter-spacing: -.12em;
}
.auth-form-panel {
  padding: 52px 48px;
  display: grid;
  align-items: center;
  background: linear-gradient(180deg, #fff, #f8fbfd);
}
.auth-form-wrap { width: min(100%, 440px); margin: 0 auto; }
.auth-kicker {
  color: #0e9aa3;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
}
.auth-form-wrap h2 {
  margin: 8px 0 7px;
  font-size: clamp(29px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -.045em;
}
.auth-form-wrap > p {
  margin: 0 0 25px;
  color: #718096;
  font-size: 13px;
  line-height: 1.6;
}
.auth-alert {
  margin-bottom: 17px;
  padding: 12px 14px;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  color: #075985;
  background: #f0f9ff;
  font-size: 12px;
  line-height: 1.5;
}
.auth-alert-error { border-color: #fecaca; color: #991b1b; background: #fef2f2; }
.auth-form { display: grid; gap: 17px; }
.auth-form label { gap: 8px; color: #23354d; font-size: 11px; font-weight: 800; }
.auth-input {
  min-height: 53px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px 0 15px;
  border: 1px solid #d8e3eb;
  border-radius: 14px;
  background: #fff;
  transition: .18s ease;
}
.auth-input:focus-within {
  border-color: #18b7bf;
  box-shadow: 0 0 0 4px rgba(24, 183, 191, .1);
}
.auth-input b { width: 19px; color: #8ba2b8; font-size: 18px; text-align: center; }
.auth-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #10243d;
  background: transparent;
  font-size: 13px;
}
.auth-input input::placeholder { color: #a6b4c4; }
.password-toggle {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  color: #6f879c;
  background: #eef5f8;
  font-size: 17px;
}
.auth-submit {
  min-height: 54px;
  margin-top: 2px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(120deg, #0d9ba4, #24c7d4);
  box-shadow: 0 15px 28px rgba(20, 184, 196, .22);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .01em;
}
.auth-submit:hover { filter: brightness(.97); transform: translateY(-1px); }
.auth-divider {
  margin: 23px 0 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #9aabba;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .11em;
}
.auth-divider::before,
.auth-divider::after { content: ""; height: 1px; flex: 1; background: #e2e9ef; }
.auth-info { color: #8a9aaa; text-align: center; font-size: 10px; line-height: 1.5; }
.logout-form { margin: 0; }
.logout-btn { font-size: 19px; }
.logout-btn:hover { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }

@media (max-width: 900px) {
  .auth-card { min-height: auto; grid-template-columns: 1fr; }
  .auth-brand-panel { min-height: 360px; padding: 35px 32px; }
  .auth-copy h1 { font-size: clamp(34px, 8vw, 48px); }
  .auth-copy p { font-size: 13px; }
  .auth-benefits { display: none; }
  .auth-form-panel { padding: 40px 30px; }
}

@media (max-width: 560px) {
  .auth-screen { padding: 0; display: block; }
  .auth-card { min-height: 100vh; border: 0; border-radius: 0; }
  .auth-brand-panel { min-height: 285px; padding: 27px 23px; }
  .auth-logo { width: 50px; height: 50px; }
  .auth-brand strong { font-size: 16px; }
  .auth-secure-badge { margin-top: 20px; }
  .auth-copy { margin-top: 21px; }
  .auth-copy h1 { font-size: 34px; }
  .auth-copy p { display: none; }
  .auth-brand-panel small { display: none; }
  .auth-form-panel { padding: 34px 22px 42px; }
  .auth-form-wrap h2 { font-size: 30px; }
  .topbar-actions { gap: 7px; }
  .profile-chip { display: none; }
}

/* v1.2 — database, loader, and user management */
.app-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(238, 242, 247, .96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #0b2a42;
}
.app-loading.hidden { display: none; }
.loading-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid #c9dbe5;
  border-top-color: #12a4b0;
  border-radius: 50%;
  animation: wg-spin .8s linear infinite;
}
.loading-error {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fee2e2;
  color: #b91c1c;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 900;
}
.app-loading span { color: #64748b; max-width: 520px; text-align: center; }
@keyframes wg-spin { to { transform: rotate(360deg); } }
.database-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.database-status-card .system-status { margin: 0; white-space: nowrap; }
.users-layout { grid-template-columns: minmax(280px, .8fr) minmax(0, 2.2fr); }
.compact-profile { min-width: 190px; }
.compact-profile .avatar { width: 34px; height: 34px; }
.user-actions { flex-wrap: nowrap; }
.muted-action { color: #94a3b8; font-size: 12px; font-weight: 700; }
.btn:disabled, .input:disabled { opacity: .58; cursor: not-allowed; }
@media (max-width: 1100px) {
  .users-layout { grid-template-columns: 1fr; }
  .users-layout .span-2 { grid-column: auto; }
  .database-status-card { align-items: flex-start; flex-direction: column; }
}

/* =========================================================
   v1.2.4 — CLASSIC PREMIUM+ SYSTEM THEME
   Deep navy, warm ivory, champagne gold, refined typography.
   ========================================================= */
.classic-premium {
  --bg: #111827;
  --sidebar: #111827;
  --surface: #fffdf8;
  --surface-2: #f7f2e8;
  --line: #ded3bf;
  --text: #182033;
  --muted: #716b61;
  --primary: #b98b3d;
  --primary-dark: #8d6528;
  --navy: #111827;
  --danger: #9f2f2f;
  --success: #2d7259;
  --info: #345d88;
  --purple: #69547e;
  --shadow: 0 18px 45px rgba(41, 34, 24, .08), 0 2px 8px rgba(41, 34, 24, .04);
  --radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(185, 139, 61, .08), transparent 24%),
    linear-gradient(180deg, #f5f1e9 0%, #eee9df 100%);
}
.classic-premium body,
body.classic-premium { background: #f1ede5; color: var(--text); }
.classic-premium h1,
.classic-premium h2,
.classic-premium h3,
.classic-premium h4,
.classic-premium .kpi-value,
.classic-premium .auth-form-wrap h2,
.classic-premium .auth-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}
.classic-premium .sidebar {
  width: 258px;
  padding: 25px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 22%),
    linear-gradient(180deg, #111a2a 0%, #0c1422 100%);
  border-right: 1px solid rgba(210, 174, 105, .28);
  box-shadow: 16px 0 45px rgba(13, 20, 34, .14);
}
.classic-premium .sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,.02) 49%, rgba(255,255,255,.02) 51%, transparent 52%);
  background-size: 22px 22px;
}
.classic-premium .sidebar > * { position: relative; z-index: 1; }
.classic-premium .main { margin-left: 258px; width: calc(100% - 258px); }
.classic-premium .brand {
  padding: 0 7px 24px;
  border-bottom: 1px solid rgba(210, 174, 105, .22);
}
.classic-premium .brand-mark,
.classic-premium .auth-logo {
  border: 1px solid #d6a84f;
  border-radius: 8px;
  color: #17130c;
  background: linear-gradient(145deg, #e8c570, #b6812d);
  box-shadow: 0 10px 28px rgba(185, 139, 61, .25), inset 0 1px rgba(255,255,255,.6);
}
.classic-premium .brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.classic-premium .brand span { color: #b7aa91; letter-spacing: .04em; }
.classic-premium .nav { gap: 5px; }
.classic-premium .nav-item {
  min-height: 45px;
  border-radius: 6px;
  color: #aeb8c7;
  font-weight: 720;
  border: 1px solid transparent;
}
.classic-premium .nav-item:hover {
  color: #fff7e9;
  border-color: rgba(210, 174, 105, .18);
  background: rgba(255,255,255,.035);
}
.classic-premium .nav-item.active {
  color: #f7e7c4;
  background: linear-gradient(90deg, rgba(185,139,61,.22), rgba(185,139,61,.07));
  border-color: rgba(210,174,105,.34);
  box-shadow: inset 3px 0 #d2aa65, 0 8px 22px rgba(0,0,0,.12);
}
.classic-premium .sidebar-footer { border-top-color: rgba(210,174,105,.18); }
.classic-premium .topbar {
  height: 78px;
  padding: 0 28px;
  background: rgba(255, 253, 248, .94);
  border-bottom: 1px solid #ded3bf;
  box-shadow: 0 5px 22px rgba(62, 48, 27, .04);
}
.classic-premium .topbar-left h1 { font-size: 24px; }
.classic-premium .page { padding: 27px 28px 44px; }
.classic-premium .icon-btn {
  border-radius: 7px;
  border-color: #ded3bf;
  color: #28324a;
  background: #fffdf8;
  box-shadow: 0 3px 10px rgba(45, 36, 22, .04);
}
.classic-premium .profile-chip { border-left-color: #ded3bf; }
.classic-premium .avatar {
  border-radius: 7px;
  color: #252014;
  background: linear-gradient(145deg, #f1d98f, #d6aa50);
  border: 1px solid #c99a44;
  box-shadow: inset 0 1px rgba(255,255,255,.5);
}
.classic-premium .hero-panel,
.classic-premium .user-hero-panel {
  border: 1px solid rgba(205, 166, 92, .42);
  border-radius: 11px;
  background:
    radial-gradient(circle at 86% 18%, rgba(210, 174, 105, .18), transparent 30%),
    linear-gradient(135deg, #111b2d 0%, #17263d 58%, #0f1828 100%);
  box-shadow: 0 22px 55px rgba(17, 24, 39, .16);
}
.classic-premium .hero-panel::before,
.classic-premium .user-hero-panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(230, 202, 145, .14);
  pointer-events: none;
}
.classic-premium .hero-panel h2,
.classic-premium .user-hero-panel h2 { font-weight: 500; }
.classic-premium .eyebrow,
.classic-premium .panel-kicker { color: #cda65c; }
.classic-premium .kpi-card,
.classic-premium .panel {
  border-radius: 9px;
  border: 1px solid #ded3bf;
  background: linear-gradient(180deg, #fffefa 0%, #fffdf8 100%);
  box-shadow: var(--shadow);
}
.classic-premium .kpi-card { position: relative; overflow: hidden; }
.classic-premium .kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #8b652c, #d5b06a, #8b652c);
  opacity: .8;
}
.classic-premium .kpi-icon { border-radius: 6px; border: 1px solid currentColor; background: transparent !important; }
.classic-premium .panel-head { padding-bottom: 15px; border-bottom: 1px solid #e8decc; }
.classic-premium .panel h3,
.classic-premium .panel-head h3 { font-size: 18px; font-weight: 500; }
.classic-premium .btn {
  border-radius: 6px;
  letter-spacing: .015em;
  box-shadow: none;
}
.classic-premium .btn-primary {
  color: #fffaf0;
  border: 1px solid #8c6529;
  background: linear-gradient(180deg, #b98b3d, #936b2b);
  box-shadow: 0 7px 18px rgba(141, 101, 40, .18), inset 0 1px rgba(255,255,255,.2);
}
.classic-premium .btn-primary:hover { background: linear-gradient(180deg, #c29443, #875f24); }
.classic-premium .btn-secondary {
  color: #263149;
  border: 1px solid #d8ccb7;
  background: #fffdf8;
}
.classic-premium .btn-secondary:hover { border-color: #b98b3d; background: #faf5ea; }
.classic-premium .btn-ghost { color: #715c36; border: 1px dashed #cbb895; background: #faf6ed; }
.classic-premium .btn-danger { background: #8f3030; }
.classic-premium .btn-danger-outline { color: #8f3030; border: 1px solid #d7aaaa; background: #fffafa; }
.classic-premium .btn-danger-outline:hover { color: #fff; background: #8f3030; }
.classic-premium .btn-block { width: 100%; }
.classic-premium .input {
  min-height: 43px;
  border-radius: 6px;
  border-color: #d8ccb7;
  color: #202a3e;
  background: #fffefa;
}
.classic-premium .input:focus { border-color: #a77c34; box-shadow: 0 0 0 3px rgba(185,139,61,.12); }
.classic-premium label { color: #3e4657; }
.classic-premium th {
  color: #6e624e;
  background: #f5efe4;
  border-bottom-color: #d8ccb7;
  letter-spacing: .09em;
}
.classic-premium td { border-bottom-color: #eee5d8; }
.classic-premium tbody tr.clickable:hover { background: #faf5e9; }
.classic-premium .badge { border-radius: 4px; border: 1px solid currentColor; background: transparent; }
.classic-premium .modal-backdrop { background: rgba(10, 17, 29, .73); }
.classic-premium .modal {
  border: 1px solid #cfb579;
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: 0 35px 90px rgba(0,0,0,.28);
}
.classic-premium .modal-close { border-radius: 5px; background: #f8f2e7; border-color: #d8ccb7; }
.classic-premium .detail-card,
.classic-premium .stat-line,
.classic-premium .pic-card,
.classic-premium .action-item { border-radius: 7px; border-color: #ded3bf; background: #fffefa; }
.classic-premium .hbar-track { background: #e9e0d2; }
.classic-premium .hbar-fill,
.classic-premium .bar { background: linear-gradient(90deg, #8f682e, #d2ad63); }
.classic-premium .toast { border-radius: 7px; background: #111a2a; border: 1px solid rgba(210,174,105,.35); }

/* User management — classic premium directory */
.user-hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  margin-bottom: 18px;
  padding: 30px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
}
.user-hero-panel > * { position: relative; z-index: 1; }
.user-hero-panel h2 { margin: 8px 0 8px; font-size: clamp(27px, 3vw, 39px); }
.user-hero-panel p { max-width: 790px; margin: 0; color: #c7ced8; line-height: 1.7; font-size: 13px; }
.premium-counter {
  min-width: 112px;
  padding: 13px 17px;
  color: #f7e8c7;
  border: 1px solid rgba(218, 184, 116, .5);
  background: rgba(255,255,255,.05);
  text-align: center;
  font-weight: 850;
  font-size: 12px;
  letter-spacing: .06em;
}
.user-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.user-stat-grid article {
  position: relative;
  overflow: hidden;
  min-height: 122px;
  padding: 18px;
  border: 1px solid #ded3bf;
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 10px 30px rgba(48, 38, 24, .05);
}
.user-stat-grid article::after { content: ""; position: absolute; right: -22px; top: -30px; width: 82px; height: 82px; border: 1px solid rgba(185,139,61,.18); transform: rotate(45deg); }
.user-stat-grid span,
.user-stat-grid small { display: block; }
.user-stat-grid span { color: #7a6e5d; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.user-stat-grid strong { display: block; margin: 10px 0 4px; font: 500 31px/1 Georgia, "Times New Roman", serif; color: #1d273a; }
.user-stat-grid small { color: #918676; font-size: 10px; }
.user-management-layout { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 2.22fr); gap: 18px; align-items: start; }
.user-create-panel { position: sticky; top: 100px; }
.panel-kicker { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.premium-form { gap: 14px; }
.compact-grid { gap: 12px; }
.form-footnote { margin: -3px 0 0; color: #8a8174; text-align: center; font-size: 9px; line-height: 1.5; }
.user-directory-panel { min-width: 0; }
.user-directory-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid #e7ddcc; }
.user-directory-head h3 { margin: 0; font-size: 20px; font-weight: 500; }
.user-directory-head p { margin: 5px 0 0; color: #716b61; font-size: 11px; }
.directory-meta { align-self: start; padding: 7px 10px; color: #765923; border: 1px solid #d9c49b; background: #fbf5e8; font-size: 10px; font-weight: 800; white-space: nowrap; }
.user-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; gap: 9px; margin: 16px 0; }
.user-search-wrap { min-width: 0; max-width: none; }
.user-toolbar .input.compact { min-width: 145px; }
.user-directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.user-card {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid #ded3bf;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffefa, #fcf8f0);
  box-shadow: 0 8px 24px rgba(45, 35, 20, .045);
  transition: .18s ease;
}
.user-card:hover { transform: translateY(-2px); border-color: #c8aa70; box-shadow: 0 14px 32px rgba(45,35,20,.08); }
.user-card.is-inactive { opacity: .72; background: #f4f0e8; }
.user-card-accent { position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(180deg, #7d5a25, #d1ad65); }
.user-card.is-inactive .user-card-accent { background: #9a9184; }
.user-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; }
.user-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.user-avatar { flex: 0 0 auto; width: 43px; height: 43px; }
.user-name-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.user-name-line h4 { margin: 0; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; }
.user-handle { display: block; margin-top: 3px; color: #7f7668; font-size: 10px; }
.self-tag { padding: 3px 5px; color: #745821; border: 1px solid #d8c18e; background: #fbf3df; font-size: 8px; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid; font-size: 9px; font-weight: 850; white-space: nowrap; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; }
.status-pill.active { color: #27644d; border-color: #9ecab8; background: #eef8f3; }
.status-pill.active i { background: #2d8663; }
.status-pill.inactive { color: #776d60; border-color: #cfc5b5; background: #f5f1ea; }
.status-pill.inactive i { background: #8e8475; }
.user-card-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 15px; margin: 15px 0; padding: 13px 0; border-top: 1px solid #ebe2d4; border-bottom: 1px solid #ebe2d4; }
.user-card-meta span,
.user-card-meta strong { display: block; }
.user-card-meta span { margin-bottom: 4px; color: #8a8174; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.user-card-meta strong { overflow: hidden; color: #343c4c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.user-card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.user-card-actions .btn { flex: 1 1 auto; }
.user-protected-note { display: inline-flex; align-items: center; min-height: 31px; color: #8b8174; font-size: 10px; font-weight: 750; }
.user-empty-state { grid-column: 1 / -1; padding: 58px 20px; border: 1px dashed #cfbea0; text-align: center; background: #fbf7ee; }
.user-empty-state div { font-size: 31px; color: #a78245; }
.user-empty-state h3 { margin: 10px 0 5px; font-size: 20px; font-weight: 500; }
.user-empty-state p { margin: 0; color: #81786b; font-size: 11px; }
.modal-user { width: min(100%, 690px); }
.modal-user-sm { width: min(100%, 470px); }
.modal-premium-head { margin: -25px -25px 20px; padding: 24px 25px 20px; border-bottom: 1px solid #ddcfb8; background: linear-gradient(180deg, #f7f0e3, #fffaf1); }
.modal-premium-head h3 { margin: 3px 0 6px; font-size: 25px; font-weight: 500; }
.modal-premium-head p { margin: 0; color: #716b61; font-size: 11px; }
.modal-actions-end { justify-content: flex-end; }
.premium-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 14px; border: 1px solid #dacdb9; background: #faf6ed; cursor: pointer; }
.premium-switch-row div strong,
.premium-switch-row div span { display: block; }
.premium-switch-row div strong { color: #2c3444; font-size: 11px; }
.premium-switch-row div span { margin-top: 3px; color: #83796c; font-size: 9px; }
.premium-switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.premium-switch-row i { position: relative; width: 43px; height: 23px; flex: 0 0 auto; border-radius: 999px; background: #c8c0b4; transition: .18s; }
.premium-switch-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: .18s; }
.premium-switch-row input:checked + i { background: #98702f; }
.premium-switch-row input:checked + i::after { transform: translateX(20px); }
.premium-switch-row input:disabled + i { opacity: .5; }

/* Login is also aligned to the classic premium language */
.classic-premium.auth-active {
  background:
    radial-gradient(circle at 10% 10%, rgba(185,139,61,.14), transparent 26%),
    linear-gradient(135deg, #0a1220 0%, #142039 54%, #0c1423 100%);
}
.classic-premium .auth-card { border-color: rgba(210,174,105,.45); border-radius: 14px; background: #fffdf8; }
.classic-premium .auth-brand-panel {
  background:
    radial-gradient(circle at 82% 82%, rgba(210,174,105,.13), transparent 35%),
    linear-gradient(145deg, #101b2d, #0b1423);
}
.classic-premium .auth-form-panel { background: linear-gradient(180deg, #fffdf8, #f7f1e7); }
.classic-premium .auth-kicker { color: #9b7130; }
.classic-premium .auth-input { border-radius: 6px; border-color: #d8ccb7; background: #fffefa; }
.classic-premium .auth-input:focus-within { border-color: #a77c34; box-shadow: 0 0 0 4px rgba(185,139,61,.1); }
.classic-premium .auth-submit { border-radius: 6px; border: 1px solid #866024; background: linear-gradient(180deg, #b98b3d, #8f6728); box-shadow: 0 12px 28px rgba(141,101,40,.22); }
.classic-premium .auth-secure-badge { border-radius: 4px; border-color: rgba(210,174,105,.3); color: #dbc495; }
.classic-premium .password-toggle { border-radius: 5px; background: #f3ecdf; }

@media (max-width: 1250px) {
  .user-directory-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1050px) {
  .user-management-layout { grid-template-columns: 1fr; }
  .user-create-panel { position: static; }
  .user-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .classic-premium .sidebar { width: 258px; }
  .classic-premium .main { margin-left: 0; width: 100%; }
  .user-toolbar { grid-template-columns: 1fr 1fr; }
  .user-search-wrap { grid-column: span 2; }
}
@media (max-width: 640px) {
  .classic-premium .page { padding: 16px 12px 30px; }
  .user-hero-panel { padding: 24px 20px; align-items: flex-start; flex-direction: column; }
  .premium-counter { min-width: 0; }
  .user-stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .user-stat-grid article { min-height: 105px; padding: 14px; }
  .user-stat-grid strong { font-size: 27px; }
  .user-toolbar { grid-template-columns: 1fr; }
  .user-search-wrap { grid-column: auto; }
  .user-toolbar .input.compact { width: 100%; }
  .user-directory-grid { grid-template-columns: 1fr; }
  .user-card-meta { grid-template-columns: 1fr 1fr; }
  .modal-premium-head { margin: -18px -18px 18px; padding: 21px 18px 17px; }
}


/* v1.2.5 — SLA per divisi */
.sla-config-panel { overflow: hidden; }
.sla-panel-head { align-items: center; gap: 20px; }
.sla-division-count {
  flex: 0 0 auto; padding: 8px 11px; border: 1px solid #d8c59e; border-radius: 5px;
  color: #78551f; background: #fbf5e9; font: 900 10px/1 var(--font-sans, inherit); letter-spacing: .12em;
}
.sla-config-form { display: grid; gap: 18px; }
.sla-division-tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #d8ccb7;
  border-radius: 7px; overflow: hidden; background: #f4eee4;
}
.sla-division-tab {
  min-height: 58px; padding: 10px 14px; border: 0; border-right: 1px solid #d8ccb7; background: transparent;
  color: #6b5d48; display: flex; align-items: center; justify-content: center; gap: 9px; font: 800 12px/1.2 inherit;
  cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.sla-division-tab:last-child { border-right: 0; }
.sla-division-tab span { color: #a88b5b; font-size: 9px; letter-spacing: .08em; }
.sla-division-tab:hover { background: rgba(255,255,255,.62); color: #1e293b; }
.sla-division-tab.active {
  color: #fff; background: linear-gradient(180deg, #b88a3b, #8d6427); box-shadow: inset 0 1px rgba(255,255,255,.2);
}
.sla-division-tab.active span { color: #f8e7c6; }
.sla-division-panels { min-height: 218px; }
.sla-division-panel { display: none; padding: 20px; border: 1px solid #ded2bf; border-radius: 7px; background: linear-gradient(145deg, #fffefa, #f9f4eb); }
.sla-division-panel.active { display: block; animation: pageIn .2s ease both; }
.sla-division-heading { display: flex; align-items: center; gap: 13px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid #e5dac8; }
.sla-division-emblem {
  width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #b99455; border-radius: 5px;
  color: #fff; background: linear-gradient(145deg, #b88a3b, #825b22); font: 900 12px/1 inherit; box-shadow: 0 8px 18px rgba(125,87,31,.18);
}
.sla-division-heading strong, .sla-division-heading span { display: block; }
.sla-division-heading strong { color: #172033; font-family: var(--font-display, Georgia, serif); font-size: 17px; }
.sla-division-heading span { margin-top: 3px; color: #83745e; font-size: 11px; }
.sla-severity-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sla-severity-field { display: grid; gap: 7px; }
.sla-severity-field > span { display: flex; align-items: center; gap: 7px; color: #394155; font-size: 11px; font-weight: 850; }
.sla-severity-field > span i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 3px rgba(148,163,184,.13); }
.sla-severity-field.severity-critical > span i { background: #b91c1c; box-shadow: 0 0 0 3px rgba(185,28,28,.12); }
.sla-severity-field.severity-high > span i { background: #d97706; box-shadow: 0 0 0 3px rgba(217,119,6,.12); }
.sla-severity-field.severity-medium > span i { background: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.sla-severity-field.severity-low > span i { background: #047857; box-shadow: 0 0 0 3px rgba(4,120,87,.12); }
.sla-severity-field > div { position: relative; }
.sla-duration-control { display: grid; grid-template-columns: minmax(0, 1fr) 94px; gap: 8px; }
.sla-severity-field .input { min-width: 0; font-weight: 850; }
.sla-unit-select { padding-left: 11px; padding-right: 28px; color: #5d4728; background-color: #fffaf1; cursor: pointer; }
.sla-unit-select:focus { border-color: #a9782e; box-shadow: 0 0 0 3px rgba(169,120,46,.1); }
.sla-duration-control .input:disabled { cursor: not-allowed; opacity: .72; }
.sla-form-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 16px; border-top: 1px solid #ded2bf;
}
.sla-form-footer p { margin: 0; max-width: 620px; color: #81725d; font-size: 11px; line-height: 1.55; }
.sla-form-footer p strong { color: #4d3b20; }
.sla-form-footer .btn { min-width: 190px; }

@media (max-width: 820px) {
  .sla-division-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sla-division-tab:nth-child(2) { border-right: 0; }
  .sla-division-tab:nth-child(-n+2) { border-bottom: 1px solid #d8ccb7; }
  .sla-severity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .sla-panel-head, .sla-form-footer { align-items: flex-start; flex-direction: column; }
  .sla-division-tabs { grid-template-columns: 1fr; }
  .sla-division-tab { border-right: 0; border-bottom: 1px solid #d8ccb7; justify-content: flex-start; }
  .sla-division-tab:nth-child(3) { border-bottom: 1px solid #d8ccb7; }
  .sla-division-tab:last-child { border-bottom: 0; }
  .sla-severity-grid { grid-template-columns: 1fr; }
  .sla-form-footer .btn { width: 100%; }
}

/* v1.2.9 — Analitik Classic Premium+ & waktu Indonesia */
.analytics-page { --analytics-gold: #a9782e; --analytics-gold-soft: #e2c689; }
.analytics-hero-panel {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 154px; margin-bottom: 18px; padding: 28px 30px; border: 1px solid #c9ac72; border-radius: 9px;
  color: #fff; background:
    radial-gradient(circle at 88% 12%, rgba(226,198,137,.2), transparent 32%),
    linear-gradient(135deg, #111b2d 0%, #1c2940 58%, #101827 100%);
  box-shadow: 0 18px 42px rgba(24,32,48,.15);
}
.analytics-hero-panel::after {
  content: "WG"; position: absolute; right: 22px; bottom: -56px; color: rgba(255,255,255,.035);
  font: 900 170px/1 Georgia, serif; pointer-events: none;
}
.analytics-hero-copy, .analytics-wib-clock { position: relative; z-index: 1; }
.analytics-hero-copy h2 { margin: 7px 0 7px; font-family: var(--font-display, Georgia, serif); font-size: clamp(25px, 3vw, 35px); letter-spacing: -.025em; }
.analytics-hero-copy p { max-width: 720px; margin: 0; color: #c9d1df; font-size: 12px; line-height: 1.65; }
.analytics-wib-clock {
  min-width: 265px; padding: 17px 19px; border: 1px solid rgba(226,198,137,.42); border-radius: 7px;
  background: rgba(7,13,24,.38); box-shadow: inset 0 1px rgba(255,255,255,.05); text-align: right;
}
.analytics-wib-clock span, .analytics-wib-clock strong, .analytics-wib-clock small { display: block; }
.analytics-wib-clock span { color: #d9c28f; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.analytics-wib-clock strong { margin: 7px 0 4px; color: #fff; font-family: var(--font-display, Georgia, serif); font-size: 24px; letter-spacing: .025em; }
.analytics-wib-clock small { color: #abb7c9; font-size: 10px; }

.analytics-filter-panel { margin-bottom: 18px; padding: 0; overflow: hidden; border-color: #d5c19b; }
.analytics-filter-head {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 21px;
  border-bottom: 1px solid #e1d5c2; background: linear-gradient(180deg, #fffefb, #f8f2e8);
}
.analytics-filter-head h3 { margin: 4px 0 3px; font-family: var(--font-display, Georgia, serif); font-size: 18px; }
.analytics-filter-head p { margin: 0; color: #81745f; font-size: 10px; }
.analytics-period-chip, .analytics-active-chip {
  flex: 0 0 auto; padding: 8px 11px; border: 1px solid #cfb479; border-radius: 5px;
  color: #6e4c19; background: #fff7e6; font-size: 9px; font-weight: 900; letter-spacing: .04em;
}
.analytics-filter-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 13px; padding: 19px 21px 16px;
}
.analytics-filter-grid label { display: grid; align-content: start; gap: 7px; }
.analytics-filter-grid label > span { color: #413a31; font-size: 10px; font-weight: 850; }
.analytics-filter-grid .input { min-height: 43px; border-color: #d8c9af; background: #fffefb; }
.analytics-filter-grid .input:focus { border-color: #a9782e; box-shadow: 0 0 0 3px rgba(169,120,46,.1); }
.analytics-filter-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 21px;
  border-top: 1px solid #e5dac8; background: #fbf7ef;
}
.analytics-filter-footer p { margin: 0; color: #796d5c; font-size: 10px; line-height: 1.5; }
.analytics-filter-footer .btn { min-width: 118px; }

.analytics-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.analytics-kpi-card { position: relative; overflow: hidden; border-color: #d9c9ad; border-radius: 8px; background: linear-gradient(145deg, #fffefa, #fbf7ef); }
.analytics-kpi-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #8c6427, #d9b86f); }
.analytics-kpi-card .kpi-value { font-family: var(--font-display, Georgia, serif); font-size: 30px; }
.analytics-kpi-card .kpi-trend { max-width: 58%; text-align: right; line-height: 1.35; }
.analytics-dashboard-grid { align-items: stretch; }
.analytics-chart-panel, .analytics-performance-panel, .analytics-pic-panel { border-color: #d9c9ad; border-radius: 8px; }
.analytics-chart-panel .panel-head, .analytics-performance-panel .panel-head, .analytics-pic-panel .panel-head { border-bottom-color: #e5dac8; }
.analytics-bars { min-height: 230px; align-content: start; }
.analytics-hbar-row { grid-template-columns: minmax(135px, 180px) 1fr 48px; padding: 6px 0; }
.analytics-hbar-row > span { color: #273247; font-weight: 750; }
.analytics-hbar-row .hbar-track { height: 10px; border: 1px solid #e6ddce; background: #f5f0e8; }
.analytics-hbar-row .hbar-fill { background: linear-gradient(90deg, #8f6729, #d2ad61); }
.analytics-hbar-row > strong { color: #172033; font-family: var(--font-display, Georgia, serif); font-size: 15px; }
.analytics-hbar-row > strong small { display: block; margin-top: 2px; color: #94846d; font: 700 8px/1 var(--font-sans, inherit); }
.analytics-stat-stack { min-height: 230px; align-content: start; }
.analytics-stat-line { position: relative; overflow: hidden; min-height: 54px; border-radius: 6px; background: #fffefb; }
.analytics-stat-line::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #b89a66; }
.analytics-stat-line.overdue::before { background: #b42318; }
.analytics-stat-line.monitoring::before { background: #2563eb; }
.analytics-stat-line.open::before { background: #d97706; }
.analytics-stat-line strong { font-family: var(--font-display, Georgia, serif); font-size: 22px; }

.analytics-pic-head { align-items: center; }
.analytics-pic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.premium-pic-card {
  position: relative; overflow: hidden; padding: 0; border-color: #d8c7a8; border-radius: 7px;
  background: linear-gradient(145deg, #fffefa, #faf5eb); box-shadow: 0 8px 20px rgba(75,57,31,.055);
}
.premium-pic-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #8e6527, #d9b970); }
.premium-pic-card.is-inactive { opacity: .66; }
.premium-pic-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; margin: 0; padding: 15px; border-bottom: 1px solid #e6dac6; }
.premium-pic-head .avatar { width: 38px; height: 38px; border: 1px solid #c99e4a; border-radius: 5px; background: linear-gradient(145deg, #f8df9e, #d8a943); }
.pic-identity { min-width: 0; }
.pic-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #101a2d; font-size: 11px; }
.pic-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #897b67; font-size: 9px; }
.pic-total { min-width: 54px; text-align: right; }
.pic-total span { color: #93846d; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pic-total b { display: block; margin-top: 3px; color: #172033; font-family: var(--font-display, Georgia, serif); font-size: 23px; line-height: 1; }
.severity-load-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 12px; }
.severity-load { position: relative; min-width: 0; padding: 9px 7px; border-right: 1px solid #eadfce; text-align: center; }
.severity-load:last-child { border-right: 0; }
.severity-load span, .severity-load strong { display: block; }
.severity-load span { overflow: hidden; text-overflow: ellipsis; color: #81745f; font-size: 8px; font-weight: 850; }
.severity-load strong { margin-top: 5px; font-family: var(--font-display, Georgia, serif); font-size: 18px; }
.severity-load.critical strong { color: #b42318; }
.severity-load.high strong { color: #c46a13; }
.severity-load.medium strong { color: #1d5dbd; }
.severity-load.low strong { color: #19734f; }
.severity-load.resolved strong { color: #0f766e; }
.severity-load.closed strong { color: #5b6473; }
.analytics-empty { width: 100%; min-height: 190px; display: grid; place-content: center; justify-items: center; padding: 28px; color: #8b7d68; text-align: center; }
.analytics-empty > span { font-size: 28px; }
.analytics-empty strong { margin-top: 8px; color: #283247; font-family: var(--font-display, Georgia, serif); font-size: 15px; }
.analytics-empty p { max-width: 360px; margin: 5px 0 0; font-size: 10px; line-height: 1.5; }

@media (max-width: 1180px) {
  .analytics-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-pic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .analytics-hero-panel, .analytics-filter-head, .analytics-filter-footer, .analytics-pic-head { align-items: flex-start; flex-direction: column; }
  .analytics-wib-clock { width: 100%; min-width: 0; text-align: left; }
  .analytics-filter-footer .button-group { width: 100%; }
  .analytics-filter-footer .btn { flex: 1; }
  .analytics-dashboard-grid { grid-template-columns: 1fr; }
  .analytics-dashboard-grid > .span-2, .analytics-dashboard-grid > .span-3 { grid-column: auto; }
  .analytics-pic-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .analytics-hero-panel { padding: 23px 19px; }
  .analytics-filter-head, .analytics-filter-grid, .analytics-filter-footer { padding-left: 15px; padding-right: 15px; }
  .analytics-filter-grid { grid-template-columns: 1fr; }
  .analytics-kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .analytics-kpi-card { padding: 14px; }
  .analytics-kpi-card .kpi-value { font-size: 23px; }
  .analytics-hbar-row { grid-template-columns: 1fr 42px; gap: 8px; }
  .analytics-hbar-row .hbar-track { grid-column: 1 / -1; grid-row: 2; }
  .analytics-hbar-row > strong { grid-column: 2; grid-row: 1; }
  .premium-pic-head { grid-template-columns: auto minmax(0,1fr); }
  .pic-total { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; width: 100%; padding-top: 9px; border-top: 1px solid #eadfce; text-align: left; }
  .severity-load-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .severity-load:nth-child(2n) { border-right: 0; }
  .severity-load:nth-child(-n+4) { border-bottom: 1px solid #eadfce; }
}

@media (max-width: 520px) {
  .sla-duration-control { grid-template-columns: minmax(0, 1fr) 90px; }
}

/* v1.2.12 — Pengaturan dua kolom: Profil kiri, Target Penanganan kanan */
#settingsPage .settings-grid {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(310px, .68fr) minmax(0, 1.72fr);
  align-items: start;
  gap: 20px;
}
#settingsPage .settings-grid > article:first-child {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}
#settingsPage .settings-grid > .sla-config-panel {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
#settingsPage .settings-grid > .database-status-card {
  grid-column: 1 / -1;
}

@media (min-width: 1201px) {
  #settingsPage .settings-grid > article:first-child {
    position: sticky;
    top: 92px;
  }
}

@media (max-width: 1200px) {
  #settingsPage .settings-grid {
    grid-template-columns: 1fr;
  }
  #settingsPage .settings-grid > article:first-child,
  #settingsPage .settings-grid > .sla-config-panel,
  #settingsPage .settings-grid > .database-status-card {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
}


/* v1.2.13 — Beban PIC menampilkan status Resolved dan Closed */
@media (min-width: 561px) and (max-width: 1180px) {
  .severity-load-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .severity-load:nth-child(3n) { border-right: 0; }
  .severity-load:nth-child(-n+3) { border-bottom: 1px solid #eadfce; }
}

/* v1.2.15 — refined login experience */
.auth-v2 {
  --auth-ink: #101827;
  --auth-navy: #0c1524;
  --auth-navy-soft: #152238;
  --auth-gold: #b98732;
  --auth-gold-light: #e6c878;
  --auth-paper: #f7f3ea;
  --auth-line: rgba(208, 183, 132, .42);
  min-height: 100vh;
  color: var(--auth-ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(215, 177, 96, .17), transparent 24%),
    radial-gradient(circle at 88% 84%, rgba(34, 53, 82, .16), transparent 30%),
    linear-gradient(135deg, #e9e3d8 0%, #f6f2e9 44%, #e6dfd3 100%);
}
.auth-v2 .auth-screen {
  min-height: 100vh;
  padding: clamp(20px, 4vw, 54px);
  display: grid;
  place-items: center;
}
.auth-v2 .auth-card {
  position: relative;
  width: min(100%, 1180px);
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(430px, .92fr) minmax(500px, 1.08fr);
  overflow: hidden;
  border: 1px solid rgba(146, 109, 50, .34);
  border-radius: 22px;
  background: #fffdf9;
  box-shadow: 0 34px 90px rgba(38, 31, 22, .22), 0 2px 6px rgba(38, 31, 22, .08);
}
.auth-v2 .auth-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 15px;
  pointer-events: none;
}
.auth-v2 .auth-brand-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 44px 46px 34px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 32%),
    linear-gradient(145deg, #111c2e 0%, #0b1422 62%, #070d17 100%);
}
.auth-v2 .auth-brand-panel::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -245px;
  bottom: -235px;
  border: 1px solid rgba(230, 200, 120, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(230, 200, 120, .025), 0 0 0 125px rgba(230, 200, 120, .018);
}
.auth-v2 .auth-brand-panel::after {
  content: "WG";
  position: absolute;
  right: -24px;
  bottom: -34px;
  color: rgba(255, 255, 255, .025);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 205px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.1em;
}
.auth-v2 .auth-brand-top,
.auth-v2 .auth-copy,
.auth-v2 .auth-module-list,
.auth-v2 .auth-brand-footer { position: relative; z-index: 2; }
.auth-v2 .auth-brand-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.auth-v2 .auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-v2 .auth-logo {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 12px;
  color: #111827;
  background: linear-gradient(145deg, #f2d782, #bd8730);
  box-shadow: 0 14px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.7);
}
.auth-v2 .auth-logo::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(17,24,39,.16);
  border-radius: 8px;
}
.auth-v2 .auth-logo span { position: relative; z-index: 1; font-size: 14px; font-weight: 950; letter-spacing: -.04em; }
.auth-v2 .auth-brand-name strong,
.auth-v2 .auth-brand-name span { display: block; }
.auth-v2 .auth-brand-name strong { color: #fff; font-size: 16px; line-height: 1.2; letter-spacing: .015em; }
.auth-v2 .auth-brand-name span { margin-top: 5px; color: #9ba9bc; font-size: 8px; font-weight: 850; letter-spacing: .2em; }
.auth-v2 .auth-suite-badge {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(230, 200, 120, .25);
  border-radius: 5px;
  color: #d6bc82;
  background: rgba(255,255,255,.035);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .15em;
  white-space: nowrap;
}
.auth-v2 .auth-copy { margin-top: 72px; }
.auth-v2 .auth-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: #d2b77d;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .25em;
}
.auth-v2 .auth-copy h1 {
  max-width: 470px;
  margin: 0;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(42px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.04em;
}
.auth-v2 .auth-copy p {
  max-width: 485px;
  margin: 22px 0 0;
  color: #aab6c7;
  font-size: 13px;
  line-height: 1.8;
}
.auth-v2 .auth-module-list {
  margin-top: 38px;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.09);
}
.auth-v2 .auth-module-list article {
  min-height: 62px;
  padding: 13px 0;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: transparent;
}
.auth-v2 .auth-module-list article > span {
  color: #cba65e;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
}
.auth-v2 .auth-module-list strong,
.auth-v2 .auth-module-list small { display: block; }
.auth-v2 .auth-module-list strong { color: #f3f5f8; font-size: 11px; letter-spacing: .02em; }
.auth-v2 .auth-module-list small { margin-top: 3px; color: #7f8da1; font-size: 9px; line-height: 1.45; }
.auth-v2 .auth-brand-footer {
  margin-top: auto;
  padding-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #738197;
  font-size: 8px;
  letter-spacing: .04em;
}
.auth-v2 .auth-brand-footer span { display: inline-flex; align-items: center; gap: 7px; color: #a8b4c3; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.auth-v2 .auth-brand-footer i { width: 7px; height: 7px; border-radius: 50%; background: #35c78a; box-shadow: 0 0 0 4px rgba(53,199,138,.11); }
.auth-v2 .auth-brand-footer small { color: #6e7c90; font-size: 8px; }

.auth-v2 .auth-form-panel {
  position: relative;
  padding: 58px 64px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(rgba(255,255,255,.45), rgba(255,255,255,.45)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(155,113,48,.025) 34px 35px),
    #f8f4eb;
}
.auth-v2 .auth-form-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #d8bb78, #936823 48%, #d8bb78);
}
.auth-v2 .auth-form-wrap { width: min(100%, 470px); margin: 0 auto; }
.auth-v2 .auth-security-line {
  width: max-content;
  margin-bottom: 32px;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9cbaa;
  border-radius: 999px;
  color: #6f5525;
  background: rgba(255,255,255,.72);
  box-shadow: 0 5px 18px rgba(83,65,35,.06);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}
.auth-v2 .auth-security-icon { color: #a5752d; font-size: 8px; }
.auth-v2 .auth-kicker {
  display: block;
  color: #a17029;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .25em;
}
.auth-v2 .auth-form-wrap h2 {
  margin: 10px 0 9px;
  color: #111827;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 3vw, 46px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.auth-v2 .auth-form-wrap > p {
  max-width: 430px;
  margin: 0 0 30px;
  color: #707887;
  font-size: 12px;
  line-height: 1.7;
}
.auth-v2 .auth-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #d8c799;
  border-radius: 7px;
  color: #6f5525;
  background: #fffaf0;
  font-size: 11px;
  line-height: 1.5;
}
.auth-v2 .auth-alert-error { border-color: #e1aaaa; color: #8f2525; background: #fff5f5; }
.auth-v2 .auth-form { display: grid; gap: 18px; }
.auth-v2 .auth-field { display: grid; gap: 8px; }
.auth-v2 .auth-field > span { color: #263043; font-size: 10px; font-weight: 900; letter-spacing: .035em; }
.auth-v2 .auth-input {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 0 16px;
  border: 1px solid #d8cdb9;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 7px 18px rgba(73,56,28,.035);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.auth-v2 .auth-input:focus-within {
  border-color: #a8782e;
  box-shadow: 0 0 0 4px rgba(185,135,50,.1), 0 10px 24px rgba(73,56,28,.06);
  transform: translateY(-1px);
}
.auth-v2 .auth-input > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: #9a7b43;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-v2 .auth-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: #151d2c;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}
.auth-v2 .auth-input input::placeholder { color: #a7a198; font-weight: 550; }
.auth-v2 .password-toggle {
  width: auto;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #e1d7c5;
  border-radius: 6px;
  color: #765a2b;
  background: #f7f0e4;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
}
.auth-v2 .password-toggle:hover { border-color: #c7ad78; background: #f1e6d3; }
.auth-v2 .auth-submit {
  min-height: 58px;
  margin-top: 4px;
  padding: 0 18px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #835d22;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #b7893b, #8e6526);
  box-shadow: 0 14px 28px rgba(118,82,29,.22), inset 0 1px 0 rgba(255,255,255,.28);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.auth-v2 .auth-submit b {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  font-size: 15px;
}
.auth-v2 .auth-submit:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 18px 34px rgba(118,82,29,.26), inset 0 1px 0 rgba(255,255,255,.28); }
.auth-v2 .auth-trust-row {
  margin-top: 24px;
  padding: 15px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid #ddd2bf;
  border-bottom: 1px solid #ddd2bf;
}
.auth-v2 .auth-trust-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #767264;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}
.auth-v2 .auth-trust-row i { width: 5px; height: 5px; border-radius: 50%; background: #2aa06f; }
.auth-v2 .auth-disclaimer { margin: 15px 0 0 !important; color: #999184 !important; text-align: center; font-size: 8px !important; line-height: 1.55 !important; }

@media (max-width: 1040px) {
  .auth-v2 .auth-card { grid-template-columns: .9fr 1.1fr; min-height: 650px; }
  .auth-v2 .auth-brand-panel { padding: 38px 34px 30px; }
  .auth-v2 .auth-suite-badge { display: none; }
  .auth-v2 .auth-copy { margin-top: 58px; }
  .auth-v2 .auth-form-panel { padding: 48px 42px; }
}
@media (max-width: 820px) {
  .auth-v2 .auth-screen { padding: 18px; }
  .auth-v2 .auth-card { min-height: 0; grid-template-columns: 1fr; border-radius: 18px; }
  .auth-v2 .auth-brand-panel { min-height: 300px; padding: 30px; }
  .auth-v2 .auth-copy { margin-top: 35px; }
  .auth-v2 .auth-copy h1 { max-width: 600px; font-size: 39px; }
  .auth-v2 .auth-copy p { max-width: 620px; margin-top: 14px; }
  .auth-v2 .auth-module-list { display: none; }
  .auth-v2 .auth-brand-footer { padding-top: 30px; }
  .auth-v2 .auth-form-panel { padding: 42px 32px 48px; }
  .auth-v2 .auth-form-wrap { width: min(100%, 560px); }
}
@media (max-width: 560px) {
  .auth-v2 .auth-screen { padding: 0; display: block; }
  .auth-v2 .auth-card { min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .auth-v2 .auth-card::after { display: none; }
  .auth-v2 .auth-brand-panel { min-height: 245px; padding: 24px 22px; }
  .auth-v2 .auth-logo { width: 48px; height: 48px; }
  .auth-v2 .auth-brand-name strong { font-size: 14px; }
  .auth-v2 .auth-brand-name span { font-size: 7px; }
  .auth-v2 .auth-copy { margin-top: 28px; }
  .auth-v2 .auth-eyebrow { margin-bottom: 10px; }
  .auth-v2 .auth-copy h1 { font-size: 32px; line-height: 1.06; }
  .auth-v2 .auth-copy p { display: none; }
  .auth-v2 .auth-brand-footer { margin-top: auto; padding-top: 20px; }
  .auth-v2 .auth-brand-footer small { display: none; }
  .auth-v2 .auth-form-panel { padding: 34px 22px 42px; }
  .auth-v2 .auth-security-line { margin-bottom: 24px; }
  .auth-v2 .auth-form-wrap h2 { font-size: 34px; }
  .auth-v2 .auth-trust-row { grid-template-columns: 1fr; gap: 7px; }
  .auth-v2 .auth-trust-row span { justify-content: flex-start; }
}

/* v1.2.19 — Reporter → PIC takeover workflow */
.sla-pending,
.pic-waiting {
  color: #9a681e;
  font-weight: 850;
}
.badge-waiting-pic {
  color: #7a531b;
  border-color: #d7b56f;
  background: #fff8e8;
}
.assignment-help {
  margin: -2px 0 14px;
  padding: 10px 12px;
  border: 1px solid #e4d3ae;
  border-radius: 9px;
  color: #715d3d;
  background: #fffaf0;
  font-size: 10px;
  line-height: 1.55;
}
.report-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}
.takeover-btn {
  min-width: 62px;
  box-shadow: 0 7px 16px rgba(143, 101, 38, .14);
}
.takeover-card {
  border-color: #d5b267;
  background: linear-gradient(145deg, #fffaf0, #fffdf8);
  box-shadow: inset 3px 0 0 #b68431;
}
.takeover-card h4 {
  margin-top: 5px;
  font-size: 15px;
}
.takeover-card p {
  margin-bottom: 13px;
}
.takeover-card .btn-block {
  width: 100%;
}
@media (max-width: 760px) {
  .report-action-group {
    align-items: stretch;
    flex-direction: column;
  }
  .report-action-group .btn {
    width: 100%;
  }
}
.handling-fields {
  display: grid;
  gap: 12px;
}
.handling-fields.hidden { display: none; }
.handling-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 0;
  color: #9a681e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.handling-divider::before,
.handling-divider::after {
  height: 1px;
  flex: 1;
  content: '';
  background: #e7d7b7;
}

/* v1.2.20 — evidence URLs (no file upload) */
.evidence-url-field small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.evidence-grid {
  display: grid;
  gap: 10px;
}
.evidence-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.evidence-card:hover {
  border-color: #b88a3b;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(65, 45, 15, .08);
}
.evidence-card img,
.evidence-icon {
  width: 54px;
  height: 42px;
  border-radius: 7px;
}
.evidence-card img {
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #f6f1e8;
}
.evidence-icon {
  display: grid;
  place-items: center;
  color: #8d6424;
  font-size: 20px;
  font-weight: 900;
  border: 1px solid #ddc99f;
  background: #fbf4e5;
}
.evidence-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.evidence-copy strong {
  font-size: 12px;
}
.evidence-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.evidence-open {
  color: #8d6424;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.classic-premium .evidence-card {
  border-radius: 6px;
  border-color: #ded3bf;
  background: #fffefa;
}
@media (max-width: 560px) {
  .evidence-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .evidence-card img,
  .evidence-icon {
    width: 46px;
    height: 40px;
  }
  .evidence-open {
    display: none;
  }
}

/* v1.2.21 — Mapping tag per divisi & validasi penyelesaian */
.tag-handling-field { display: grid; gap: 7px; }
.tag-handling-field small {
  color: #7f715d;
  font-size: 10px;
  line-height: 1.5;
}
.tag-handling-field .input:disabled {
  opacity: .72;
  cursor: not-allowed;
  background: #f3eee5;
}

#settingsPage .settings-grid > .tag-mapping-panel {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}
#settingsPage .settings-grid > .database-status-card {
  grid-row: 3;
}
.tag-mapping-panel {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(186,139,59,.08), transparent 28%),
    linear-gradient(145deg, #fffefa, #fbf7ef);
}
.tag-mapping-head { align-items: center; gap: 18px; }
.tag-mapping-role-chip {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid #d8c59e;
  border-radius: 5px;
  color: #78551f;
  background: #fbf5e9;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .11em;
}
.tag-mapping-form { display: grid; gap: 15px; }
.tag-mapping-toolbar {
  display: grid;
  grid-template-columns: minmax(250px, 420px) auto;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding: 15px;
  border: 1px solid #ded2bf;
  border-radius: 7px;
  background: #f7f1e7;
}
.tag-mapping-toolbar label { display: grid; gap: 7px; }
.tag-mapping-toolbar label > span,
.tag-mapping-row label > span {
  color: #394155;
  font-size: 10px;
  font-weight: 850;
}
.tag-mapping-guide {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 13px;
  border-left: 3px solid #a87930;
  color: #75654f;
  background: #fffaf0;
  font-size: 10px;
}
.tag-mapping-guide strong {
  padding: 4px 7px;
  border: 1px solid #b88a3b;
  border-radius: 4px;
  color: #76511d;
  background: #fff;
  letter-spacing: .03em;
}
.tag-mapping-list { display: grid; gap: 10px; }
.tag-mapping-row {
  display: grid;
  grid-template-columns: minmax(150px, .72fr) minmax(320px, 2fr) 86px 38px;
  align-items: end;
  gap: 11px;
  padding: 14px;
  border: 1px solid #ded2bf;
  border-radius: 7px;
  background: #fffefa;
  box-shadow: 0 5px 14px rgba(53,42,25,.04);
}
.tag-mapping-row label { display: grid; gap: 7px; min-width: 0; }
.tag-name-control { position: relative; }
.tag-name-control i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9b7130;
  font-style: normal;
  font-weight: 900;
}
.tag-name-control .input { padding-left: 28px; text-transform: uppercase; font-weight: 850; }
.tag-mapping-keywords textarea { min-height: 62px; resize: vertical; line-height: 1.45; }
.tag-mapping-active {
  min-height: 44px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px !important;
  padding: 0 10px;
  border: 1px solid #d8ccb7;
  border-radius: 6px;
  background: #fbf7ef;
}
.tag-mapping-active input { width: 15px; height: 15px; accent-color: #9d712d; }
.tag-mapping-remove {
  width: 38px;
  height: 44px;
  border: 1px solid #e0b8b8;
  border-radius: 6px;
  color: #a02f2f;
  background: #fff8f7;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.tag-mapping-remove:hover { background: #fbeaea; border-color: #c97d7d; }
.tag-mapping-empty {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 112px;
  padding: 18px;
  border: 1px dashed #d4c3a6;
  border-radius: 7px;
  color: #81725d;
  background: rgba(255,255,255,.48);
  text-align: center;
}
.tag-mapping-empty strong { color: #3d3428; font-size: 13px; }
.tag-mapping-empty span { font-size: 10px; }
.tag-mapping-empty.pending-delete { border-color: #dfb6b0; background: #fff7f5; }
.tag-mapping-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 15px;
  border-top: 1px solid #ded2bf;
}
.tag-mapping-footer p {
  max-width: 760px;
  margin: 0;
  color: #81725d;
  font-size: 10px;
  line-height: 1.55;
}
.tag-mapping-footer p strong { color: #4d3b20; }
.tag-mapping-footer .btn { min-width: 205px; }

.report-tags-card small,
.status-control-card small {
  display: block;
  margin-top: 10px;
  color: #81725d;
  font-size: 9px;
  line-height: 1.45;
}
.report-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-empty-card { border-style: dashed; background: #fffaf1; }
.tag-empty-card p { color: #806d50; font-size: 11px; line-height: 1.55; }

@media (max-width: 1200px) {
  #settingsPage .settings-grid > .tag-mapping-panel {
    grid-column: 1;
    grid-row: auto;
  }
  #settingsPage .settings-grid > .database-status-card { grid-row: auto; }
}
@media (max-width: 860px) {
  .tag-mapping-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
  .tag-mapping-active { align-self: stretch; }
  .tag-mapping-remove { justify-self: end; }
}
@media (max-width: 640px) {
  .tag-mapping-head,
  .tag-mapping-footer { align-items: flex-start; flex-direction: column; }
  .tag-mapping-toolbar { grid-template-columns: 1fr; }
  .tag-mapping-toolbar .btn,
  .tag-mapping-footer .btn { width: 100%; }
  .tag-mapping-row { grid-template-columns: 1fr; }
  .tag-mapping-remove { width: 100%; }
}


/* v1.2.22 — Fix overlap halaman Pengaturan
   Profil tidak lagi sticky agar tidak menutupi panel Mapping Tag / Database saat halaman digulir. */
@media (min-width: 1201px) {
  #settingsPage .settings-grid > article:first-child {
    position: static;
    top: auto;
  }
}

/* Jaga setiap panel berada di lapisan normal dan tidak saling menimpa. */
#settingsPage .settings-grid > article {
  z-index: auto;
}
#settingsPage .tag-mapping-panel,
#settingsPage .database-status-card {
  position: relative;
  isolation: isolate;
}

/* v1.2.23 — Form laporan: Penugasan kiri | Tindakan Awal kanan
   Panel informasi utama tetap penuh di atas. Kedua panel operasional sejajar di desktop,
   tombol aksi berada satu baris penuh di bawah, dan otomatis menumpuk di layar kecil. */
#createPage #incidentForm > .form-sidebar {
  grid-column: 1 / -1;
  position: static;
  top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  min-width: 0;
}

#createPage #incidentForm > .form-sidebar > .panel {
  min-width: 0;
  height: 100%;
  align-content: start;
}

#createPage #incidentForm > .form-sidebar > .form-actions {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 0;
}

@media (max-width: 900px) {
  #createPage #incidentForm > .form-sidebar {
    grid-template-columns: 1fr;
  }
  #createPage #incidentForm > .form-sidebar > .form-actions {
    grid-column: 1;
  }
}
