/* BREN RMS — Energy Regulatory Management System
   Main Stylesheet */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #185FA5;
  --primary-dark: #0C447C;
  --primary-light: #E6F1FB;
  --primary-mid: #B5D4F4;
  --success: #1D9E75;
  --success-light: #EAF3DE;
  --success-text: #3B6D11;
  --warning: #BA7517;
  --warning-light: #FAEEDA;
  --warning-text: #854F0B;
  --danger: #A32D2D;
  --danger-light: #FCEBEB;
  --danger-text: #A32D2D;
  --info: #185FA5;
  --info-light: #E6F1FB;
  --info-text: #0C447C;
  --gray: #888780;
  --gray-light: #F1EFE8;
  --gray-text: #5F5E5A;
  --purple: #534AB7;
  --purple-light: #EEEDFE;
  --purple-text: #3C3489;
  --bg: #F4F6F9;
  --surface: #FFFFFF;
  --surface-2: #F8F9FA;
  --border: rgba(0,0,0,0.1);
  --border-md: rgba(0,0,0,0.15);
  --text-primary: #1A1A2E;
  --text-secondary: #5a5a6e;
  --text-tertiary: #9999aa;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --sidebar-w: 220px;
  --topbar-h: 52px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

/* ── TOPBAR ─────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.logo-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: -2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-search-input {
  padding: 6px 12px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-md);
  font-size: 12px;
  background: var(--surface-2);
  color: var(--text-primary);
  font-family: var(--font);
  width: 200px;
}
.topbar-search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
}

.topbar-user {
  font-size: 12px;
  color: var(--text-secondary);
}

.notif-btn {
  width: 34px;
  height: 34px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s;
}

.notif-btn:hover { background: var(--primary-light); }

.notif-badge {
  position: absolute;
  top: -5px; right: -5px;
  width: 17px; height: 17px;
  background: #E24B4A;
  border-radius: 50%;
  font-size: 9px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
}

/* ── LAYOUT ─────────────────────────────────────────── */
.layout {
  display: flex;
  padding-top: var(--topbar-h);
  min-height: 100vh;
}

/* ── SIDEBAR ─────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 0.5px solid var(--border);
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 16px 0;
  z-index: 90;
}

.nav-section {
  font-size: 10px;
  color: var(--text-tertiary);
  padding: 14px 18px 5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  text-decoration: none;
  transition: all 0.15s;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left: 2px solid var(--primary);
  font-weight: 500;
}

.nav-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: #E24B4A;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
}

/* ── MAIN CONTENT ────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 24px;
  min-height: calc(100vh - var(--topbar-h));
}

.page-header {
  margin-bottom: 22px;
}

.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.page-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-sub {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── METRIC CARDS ────────────────────────────────────── */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.metric {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 6px;
}

.metric-value {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-delta {
  font-size: 11px;
  margin-top: 4px;
}

.delta-up { color: var(--success); }
.delta-down { color: var(--danger-text); }
.delta-neutral { color: var(--text-tertiary); }

/* ── CARDS ───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.card-title-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

/* ── TABLES ──────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  padding: 9px 12px;
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 11px;
  border-bottom: 0.5px solid var(--border-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

td {
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--surface-2); }

.td-primary { font-weight: 500; }
.td-secondary { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }

/* ── STATUS PILLS ────────────────────────────────────── */
.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-green  { background: var(--success-light);  color: var(--success-text); }
.pill-amber  { background: var(--warning-light);  color: var(--warning-text); }
.pill-red    { background: var(--danger-light);   color: var(--danger-text); }
.pill-blue   { background: var(--info-light);     color: var(--info-text); }
.pill-gray   { background: var(--gray-light);     color: var(--gray-text); }
.pill-purple { background: var(--purple-light);   color: var(--purple-text); }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  padding: 7px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 0.5px solid var(--border-md);
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font);
  transition: all 0.15s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover { background: var(--primary-dark); }

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

.btn-danger {
  background: var(--danger-light);
  color: var(--danger-text);
  border-color: var(--danger-text);
}

.btn-sm {
  padding: 4px 10px;
  font-size: 11px;
}

.btn-icon {
  width: 30px; height: 30px;
  padding: 0;
  justify-content: center;
  font-size: 14px;
}

/* ── SEARCH / FILTER ROW ─────────────────────────────── */
.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-row input,
.filter-row select {
  padding: 7px 12px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-md);
  font-size: 13px;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font);
}

.filter-row input:focus,
.filter-row select:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-row input { flex: 1; min-width: 200px; }
.filter-row select { min-width: 150px; }
.filter-row .ml-auto { margin-left: auto; }

/* ── FORM ELEMENTS ───────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 8px 12px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-md);
  font-size: 13px;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24,95,165,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-full { grid-column: 1 / -1; }

/* ── BAR CHARTS ──────────────────────────────────────── */
.bar-wrap { margin-bottom: 10px; }

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.bar-track {
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  overflow: hidden;
  border: 0.5px solid var(--border);
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
}

/* ── MINI BAR CHART ──────────────────────────────────── */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 70px;
  padding-top: 8px;
}

.mini-bar {
  flex: 1;
  background: var(--primary-mid);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: background 0.2s;
}

.mini-bar:hover { background: var(--primary); }

/* ── IN-PAGE TABS ────────────────────────────────────── */
.page-tabs {
  display: flex;
  gap: 0;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 18px;
}

.page-tab {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -0.5px;
  transition: all 0.15s;
  user-select: none;
}

.page-tab:hover { color: var(--text-primary); }

.page-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── KANBAN BOARD ────────────────────────────────────── */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  align-items: start;
}

.kanban-col {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.kanban-col-header {
  padding: 11px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.5px solid var(--border);
  background: var(--surface-2);
}

.kanban-col-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.kanban-col-count {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}

.kanban-col-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
}

.kanban-card {
  background: var(--surface);
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.kanban-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-color: var(--primary-mid);
}

.kanban-card-id {
  font-size: 10px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 5px;
}

.kanban-card-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.kanban-card-company {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.kanban-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--text-tertiary);
}

.kanban-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border: 0.5px dashed var(--border-md);
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}
.kanban-add-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* ── STATUS TIMELINE ─────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
  z-index: 1;
}

.timeline-dot.done    { background: var(--success); }
.timeline-dot.active  { background: var(--primary); }
.timeline-dot.pending { background: var(--border-md); border: 1.5px solid var(--border-md); background: #fff; }

.timeline-line {
  flex: 1;
  width: 1px;
  background: var(--border);
  margin-top: 4px;
}

.timeline-content { flex: 1; }

.timeline-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-date {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ── DETAIL ROW ──────────────────────────────────────── */
.detail-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  align-items: flex-start;
}

.detail-label {
  width: 140px;
  flex-shrink: 0;
  color: var(--text-tertiary);
  font-size: 12px;
  padding-top: 1px;
}

.detail-value {
  flex: 1;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 13px;
}

/* ── WIZARD STEPS ────────────────────────────────────── */
.wizard-steps {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 0.5px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.wizard-step.done .wizard-step-num   { background: var(--success); color: #fff; border-color: var(--success); }
.wizard-step.active .wizard-step-num { background: var(--primary); color: #fff; border-color: var(--primary); }

.wizard-step-label {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
}

.wizard-step.active .wizard-step-label { color: var(--primary); font-weight: 600; }
.wizard-step.done .wizard-step-label   { color: var(--success-text); }

.wizard-connector {
  flex: 1;
  height: 0.5px;
  background: var(--border);
  margin: 0 6px;
}
.wizard-connector.done { background: var(--success); }

/* ── NOTIFICATIONS ───────────────────────────────────── */
.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border);
  align-items: flex-start;
}

.notif-item:last-child { border-bottom: none; }

.notif-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.notif-dot.unread { background: var(--primary); }
.notif-dot.read   { background: var(--border-md); }

.notif-body { flex: 1; }

.notif-title {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 3px;
  line-height: 1.4;
}

.notif-meta {
  font-size: 11px;
  color: var(--text-tertiary);
}

.mark-read-link {
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
  font-size: 11px;
}

.mark-read-link:hover { text-decoration: underline; }

/* ── ROLES ───────────────────────────────────────────── */
.role-card {
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.role-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.perm-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.perm-pill {
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 12px;
  border: 0.5px solid var(--border);
}

/* ── WORKFLOW STEPS ──────────────────────────────────── */
.step-row {
  display: flex;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 0.5px solid var(--border-md);
}

.step {
  flex: 1;
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  color: var(--text-tertiary);
  background: var(--surface-2);
  border-right: 0.5px solid var(--border);
}

.step:last-child { border-right: none; }
.step.done { background: var(--success-light); color: var(--success-text); }
.step.active-step { background: var(--info-light); color: var(--info-text); }

/* ── DOCUMENT ITEMS ──────────────────────────────────── */
.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: background 0.15s;
}

.doc-item:hover { background: var(--surface-2); }

.doc-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.doc-meta { flex: 1; min-width: 0; }

.doc-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-info {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ── MODAL ───────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--border-md);
  padding: 22px 24px;
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
}

.modal.modal-lg { width: 700px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.modal-close {
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 20px;
  line-height: 1;
  padding: 2px;
  background: none;
  border: none;
  font-family: var(--font);
}

.modal-close:hover { color: var(--text-primary); }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 0.5px solid var(--border);
}

/* ── TOAST ───────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s;
  pointer-events: none;
  max-width: 320px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── CHECKLIST ───────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 8px; }

.check-item {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--text-primary);
}

.check-icon { font-size: 14px; flex-shrink: 0; }
.check-done     .check-icon { color: var(--success); }
.check-progress .check-icon { color: var(--warning); }
.check-pending  .check-icon { color: var(--text-tertiary); }

/* ── DIVIDER ─────────────────────────────────────────── */
.divider {
  height: 0.5px;
  background: var(--border);
  margin: 14px 0;
}

/* ── PAGINATION ──────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.pagination-btns {
  display: flex;
  gap: 4px;
}

.page-btn {
  width: 28px;
  height: 28px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.page-btn:hover { background: var(--primary-light); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── SETTINGS ────────────────────────────────────────── */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.settings-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}

.settings-item:hover {
  background: var(--primary-light);
  border-color: var(--primary-mid);
}

.settings-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.settings-item-body { flex: 1; }

.settings-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.settings-item-desc {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* ── FINANCE ─────────────────────────────────────────── */
.finance-kpi {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.finance-kpi-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 8px;
}

.finance-kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.finance-kpi-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 5px;
}

.budget-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.budget-row-label {
  font-size: 12px;
  color: var(--text-secondary);
  width: 170px;
  flex-shrink: 0;
}

.budget-row-track {
  flex: 1;
  height: 10px;
  background: var(--surface-2);
  border-radius: 5px;
  overflow: hidden;
  border: 0.5px solid var(--border);
}

.budget-row-fill { height: 100%; border-radius: 5px; }

.budget-row-pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  width: 35px;
  text-align: right;
}

/* ── LOGIN PAGE ──────────────────────────────────────── */
.login-page {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  width: 380px;
  max-width: 95vw;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
}

.login-logo-icon {
  width: 58px;
  height: 58px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.login-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.login-sub {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 4px;
}

.login-fields { display: flex; flex-direction: column; gap: 12px; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 11px;
  margin: 16px 0;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 0.5px;
  background: var(--border);
}

.login-remember {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 14px;
  font-size: 12px;
  color: var(--text-secondary);
}

.login-remember label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.login-forgot {
  color: var(--primary);
  text-decoration: none;
  font-size: 12px;
}
.login-forgot:hover { text-decoration: underline; }

.login-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s;
}
.login-btn:hover { background: var(--primary-dark); }

.login-sso {
  display: block;
  width: 100%;
  padding: 9px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.login-sso:hover { background: var(--primary-light); color: var(--primary); }

.login-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 20px;
}

/* ── EMPTY STATE ─────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ── SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-md); border-radius: 3px; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .kanban-board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   ENTERPRISE LICENSING MODULE — Extended Components
   ═══════════════════════════════════════════════════════ */

/* ── METRICS ROW 5-COL ───────────────────────────────── */
.metrics-row-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

/* ── SUB-NAV BAR (licensing section) ────────────────── */
.sub-nav {
  display: flex;
  gap: 0;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
  flex-wrap: nowrap;
}

.sub-nav-item {
  flex: 1;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-right: 0.5px solid var(--border);
  transition: all 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.sub-nav-item:last-child { border-right: none; }
.sub-nav-item:hover { background: var(--surface-2); color: var(--text-primary); }
.sub-nav-item.active { background: var(--primary); color: #fff; }
.sub-nav-item .count { background: rgba(255,255,255,0.25); padding: 1px 6px; border-radius: 10px; font-size: 10px; font-weight: 700; }
.sub-nav-item:not(.active) .count { background: var(--surface-2); color: var(--text-tertiary); }

/* ── ADVANCED SEARCH PANEL ───────────────────────────── */
.search-panel {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 14px;
}

.search-panel-main {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
}

.search-panel.expanded .search-panel-filters { display: grid; }
.search-panel-filters {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 0.5px solid var(--border);
}

.search-input-main {
  flex: 1;
  padding: 8px 14px;
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-md);
  font-size: 13px;
  background: var(--surface-2);
  font-family: var(--font);
  color: var(--text-primary);
}

.search-input-main:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(24,95,165,0.1);
}

/* ── BULK ACTION BAR ─────────────────────────────────── */
.bulk-bar {
  display: none;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}

.bulk-bar.show { display: flex; }
.bulk-bar-actions { margin-left: auto; display: flex; gap: 8px; }
.bulk-btn {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-family: var(--font);
  transition: background 0.15s;
}
.bulk-btn:hover { background: rgba(255,255,255,0.25); }

/* ── STATUS BADGE (large pill with icon) ─────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── LICENSE TYPE SELECTOR (card grid) ───────────────── */
.license-type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.license-type-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  background: var(--surface);
}

.license-type-card:hover {
  border-color: var(--primary-mid);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24,95,165,0.12);
}

.license-type-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(24,95,165,0.15);
}

.license-type-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.license-type-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.license-type-desc {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-top: 4px;
  line-height: 1.4;
}

/* ── WIZARD PROGRESS (8-step wide) ──────────────────── */
.wizard-track {
  display: flex;
  align-items: flex-start;
  margin-bottom: 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.wizard-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.wizard-node-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 2px solid var(--border-md);
  background: var(--surface);
  color: var(--text-tertiary);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: all 0.2s;
}

.wizard-node.done  .wizard-node-num { background: var(--success); border-color: var(--success); color: #fff; }
.wizard-node.active .wizard-node-num { background: var(--primary); border-color: var(--primary); color: #fff; }

.wizard-node-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-top: 5px;
  text-align: center;
  line-height: 1.3;
  max-width: 72px;
}

.wizard-node.active .wizard-node-label { color: var(--primary); font-weight: 600; }
.wizard-node.done  .wizard-node-label  { color: var(--success-text); }

.wizard-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 15px;
  min-width: 20px;
}
.wizard-line.done { background: var(--success); }

/* ── REVIEW WORKSPACE (split layout) ─────────────────── */
.review-workspace {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 16px;
  align-items: start;
}

.review-main {
  min-width: 0;
}

.review-panel {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-h) + 16px);
}

.review-panel-header {
  padding: 14px 16px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.review-panel-body { padding: 16px; overflow-y: auto; max-height: calc(100vh - 260px); }

.review-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.review-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s;
  font-size: 12px;
}

.review-check-item:hover { background: var(--surface-2); }
.review-check-item.checked { background: var(--success-light); border-color: var(--success); }
.review-check-item.failed  { background: var(--danger-light);  border-color: var(--danger-text); }

.review-check-box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-md);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.review-check-item.checked .review-check-box { background: var(--success); border-color: var(--success); color: #fff; }
.review-check-item.failed  .review-check-box { background: var(--danger-light); border-color: var(--danger-text); color: var(--danger-text); }

/* ── DOCUMENT VIEWER PANEL ───────────────────────────── */
.doc-viewer-frame {
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.doc-viewer-toolbar {
  background: #3c3c3c;
  color: #fff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.doc-viewer-body {
  background: #6b6b6b;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 500px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.doc-page-sim {
  background: #fff;
  width: 100%;
  max-width: 500px;
  padding: 32px;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* ── ASSIGNEE CHIPS ──────────────────────────────────── */
.assignee-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.assignee-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 4px;
  border: 0.5px solid var(--border-md);
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--surface);
}

.assignee-chip .avatar { width: 20px; height: 20px; font-size: 8px; }

/* ── OFFICER CELL (table) ────────────────────────────── */
.officer-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.officer-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.officer-avatar.unassigned {
  background: transparent;
  border: 1.5px dashed #ccc;
  color: #bbb;
  font-size: 14px;
  font-weight: 400;
}

.officer-name {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.officer-name.dimmed { color: #bbb; }

/* ── LICENSE CERTIFICATE ─────────────────────────────── */
.certificate {
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 4px 24px rgba(24,95,165,0.15);
}

.cert-header {
  background: var(--primary);
  color: #fff;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cert-logo-box {
  width: 54px; height: 54px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.cert-org { font-size: 18px; font-weight: 700; }
.cert-title { font-size: 12px; opacity: 0.8; margin-top: 2px; }

.cert-body { padding: 28px 32px; }

.cert-number {
  text-align: center;
  margin-bottom: 22px;
}

.cert-number-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cert-number-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
  letter-spacing: .04em;
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.cert-field-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: .06em;
  margin-bottom: 3px;
}

.cert-field-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.cert-footer {
  border-top: 0.5px solid var(--border);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: var(--surface-2);
}

.cert-sig {
  text-align: center;
}

.cert-sig-line {
  width: 160px;
  height: 1px;
  background: var(--text-primary);
  margin: 0 auto 4px;
}

.cert-sig-name { font-size: 12px; font-weight: 600; }
.cert-sig-title { font-size: 10px; color: var(--text-tertiary); }

/* ── QR CODE (CSS simulated) ─────────────────────────── */
.qr-box {
  width: 90px; height: 90px;
  background: var(--surface-2);
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-tertiary);
  flex-direction: column;
  gap: 3px;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(7, 10px);
  grid-template-rows: repeat(7, 10px);
  gap: 1px;
}

.qr-cell {
  border-radius: 1px;
}

/* ── APPLICATION TIMELINE ────────────────────────────── */
.app-timeline {
  position: relative;
  padding-left: 24px;
}

.app-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.app-timeline-item {
  position: relative;
  margin-bottom: 18px;
}

.app-timeline-dot {
  position: absolute;
  left: -20px;
  top: 3px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-md);
}

.app-timeline-dot.done   { background: var(--success); }
.app-timeline-dot.active { background: var(--primary); box-shadow: 0 0 0 3px rgba(24,95,165,0.2); }
.app-timeline-dot.pending { background: var(--surface); border: 2px solid var(--border-md); }

.app-timeline-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.app-timeline-meta  { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.app-timeline-note  { font-size: 11px; color: var(--text-secondary); margin-top: 4px; background: var(--surface-2); padding: 6px 10px; border-radius: var(--radius-sm); border-left: 2px solid var(--border-md); }

/* ── INSPECTION CHECKLIST ────────────────────────────── */
.insp-section {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.insp-section-header {
  padding: 10px 14px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-bottom: 0.5px solid var(--border);
}

.insp-section-body { padding: 12px 14px; }

.insp-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 0.5px solid var(--border);
  font-size: 12px;
  gap: 10px;
}

.insp-item:last-child { border-bottom: none; }
.insp-item-label { flex: 1; color: var(--text-primary); }
.insp-item-result { display: flex; gap: 6px; }

.insp-radio {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  cursor: pointer;
}

/* ── HEARING SCHEDULE CARD ───────────────────────────── */
.hearing-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 10px;
}

.hearing-card-header {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  gap: 12px;
}

.hearing-date-box {
  width: 48px;
  height: 52px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.hearing-date-day  { font-size: 18px; font-weight: 700; line-height: 1; }
.hearing-date-mon  { font-size: 9px; font-weight: 600; text-transform: uppercase; opacity: 0.85; }

.hearing-info { flex: 1; }
.hearing-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.hearing-meta  { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }

.hearing-card-footer {
  border-top: 0.5px solid var(--border);
  padding: 8px 14px;
  background: var(--surface-2);
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  color: var(--text-tertiary);
}

/* ── ROLE SELECTOR TABS (reviewer type) ──────────────── */
.role-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.role-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--border-md);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font);
}

.role-tab-btn:hover { background: var(--surface-2); }
.role-tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── SECTION HEADER (collapsible) ────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 14px;
  cursor: pointer;
}

.section-header-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.section-toggle { font-size: 12px; color: var(--text-tertiary); }

/* ── DECISION PANEL ──────────────────────────────────── */
.decision-panel {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.decision-panel-header {
  background: var(--surface-2);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 0.5px solid var(--border);
  color: var(--text-primary);
}

.decision-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
}

.decision-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}

.decision-option:hover { border-color: var(--primary-mid); background: var(--primary-light); }
.decision-option.selected-approve { border-color: var(--success); background: var(--success-light); }
.decision-option.selected-reject  { border-color: var(--danger-text); background: var(--danger-light); }
.decision-option.selected-cond    { border-color: var(--warning); background: var(--warning-light); }

.decision-option-icon { font-size: 18px; flex-shrink: 0; }
.decision-option-title { font-size: 13px; font-weight: 600; }
.decision-option-desc  { font-size: 11px; color: var(--text-tertiary); }

/* ── MONITORING STAT BAR ─────────────────────────────── */
.monitor-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
}
.monitor-stat:last-child { border-bottom: none; }
.monitor-stat-label { font-size: 12px; color: var(--text-secondary); width: 180px; flex-shrink: 0; }
.monitor-stat-bar-wrap { flex: 1; }
.monitor-stat-val { font-size: 12px; font-weight: 600; color: var(--text-primary); width: 40px; text-align: right; }

/* ── HOVER ROW HIGHLIGHT ─────────────────────────────── */
.table-row-link { cursor: pointer; }
.table-row-link:hover td { background: var(--primary-light) !important; }

/* ── LINK TEXT ───────────────────────────────────────── */
.link-text { color: var(--primary); font-weight: 600; text-decoration: none; }
.link-text:hover { text-decoration: underline; }

/* ── BUTTON XS ───────────────────────────────────────── */
.btn-xs { padding: 3px 8px; font-size: 11px; font-weight: 600; border-radius: 4px; }

/* ── SUB-NAV COUNT BADGE ─────────────────────────────── */
.sub-nav-count {
  background: var(--surface-2);
  color: var(--text-tertiary);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
}
.sub-nav-item.active .sub-nav-count {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* ── FILTER GRID ─────────────────────────────────────── */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

/* ── LICENSE DISTRIBUTION BARS ───────────────────────── */
.dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.dist-label { width: 120px; color: var(--text-secondary); flex-shrink: 0; }
.dist-bar-wrap { flex: 1; height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.dist-bar { height: 100%; border-radius: 3px; }
.dist-count { width: 30px; text-align: right; font-weight: 600; color: var(--text-primary); }

/* ── PENDING ACTION FEED ─────────────────────────────── */
.pending-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--border);
}
.pending-action-item:last-child { border-bottom: none; }
.pending-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── QUICK LINK BUTTONS ──────────────────────────────── */
.quick-link-btn {
  display: block;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.15s;
}
.quick-link-btn:hover { background: var(--primary-light); border-color: var(--primary); }

/* ── SEARCH INPUT WRAP ───────────────────────────────── */
.search-input-wrap { position: relative; display: flex; align-items: center; }
.search-input-wrap .search-input-main { width: 100%; }

/* ── TABLE FOOTER / PAGINATION ───────────────────────── */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 0.5px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}
.table-info { color: var(--text-tertiary); }
.pagination { display: flex; gap: 4px; align-items: center; }
.page-btn {
  min-width: 28px;
  height: 28px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.page-btn:hover { background: var(--surface-2); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-dots { font-size: 12px; color: var(--text-tertiary); padding: 0 2px; }

/* ── LICENSE TYPE GRID ───────────────────────────────── */
.license-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.license-type-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
}
.license-type-card:hover { border-color: var(--primary); background: var(--primary-light); }
.license-type-card.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 3px rgba(24,95,165,0.15); }
.license-type-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.license-type-name { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.license-type-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; }
.license-type-fee { font-size: 11px; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 3px 8px; border-radius: 10px; display: inline-block; }

/* ── WIZARD TRACK (8-step) ───────────────────────────── */
.wizard-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}
.wizard-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.wizard-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-tertiary);
  transition: all 0.2s;
}
.wizard-node.active .wizard-bubble { background: var(--primary); border-color: var(--primary); color: #fff; }
.wizard-node.done .wizard-bubble { background: #2E7D32; border-color: #2E7D32; color: #fff; }
.wizard-label { font-size: 10px; color: var(--text-tertiary); text-align: center; line-height: 1.3; }
.wizard-node.active .wizard-label { color: var(--primary); font-weight: 600; }
.wizard-node.done .wizard-label { color: #2E7D32; }
.wizard-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 15px;
  transition: background 0.2s;
}
.wizard-line.done { background: #2E7D32; }

/* ── WIZARD STEP CONTENT ─────────────────────────────── */
.wizard-step-content { animation: fadeIn 0.2s ease; }
.wizard-step-header { margin-bottom: 20px; }
.wizard-step-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.wizard-step-subtitle { font-size: 12px; color: var(--text-secondary); }

/* ── WIZARD NAV BAR ──────────────────────────────────── */
.wizard-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 0.5px solid var(--border);
}

/* ── REQUIRED FIELD LABEL ────────────────────────────── */
.form-label.required::after { content: ' *'; color: #C62828; }

/* ── DOC UPLOAD ITEM ─────────────────────────────────── */
.doc-upload-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s;
}
.doc-upload-item:hover { border-color: var(--border-md); }
.doc-upload-info { flex: 1; }
.doc-upload-name { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; display: flex; align-items: center; gap: 6px; }
.doc-upload-hint { font-size: 11px; color: var(--text-tertiary); }
.doc-upload-status { font-size: 11px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.doc-upload-status.uploaded { color: #2E7D32; }
.doc-upload-status.pending { color: #888; }

/* ── REVIEW SUMMARY BLOCK ────────────────────────────── */
.review-summary-block {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.review-summary-title {
  padding: 10px 16px;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 0.5px solid var(--border);
}
.review-summary-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  font-size: 12px;
  padding: 4px 0;
}
.rsb-label {
  padding: 7px 16px;
  color: var(--text-secondary);
  background: var(--surface-2);
  border-bottom: 0.5px solid var(--border);
  font-weight: 500;
}
.review-summary-grid > span:not(.rsb-label) {
  padding: 7px 16px;
  border-bottom: 0.5px solid var(--border);
  color: var(--text-primary);
}
.review-summary-grid > span:nth-last-child(-n+2) { border-bottom: none; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── DETAIL PAGE LAYOUT ──────────────────────────────── */
.detail-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* ── DETAIL TABLE ────────────────────────────────────── */
.detail-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.detail-table tr { border-bottom: 0.5px solid var(--border); }
.detail-table tr:last-child { border-bottom: none; }
.dt-label {
  padding: 8px 12px 8px 0;
  color: var(--text-secondary);
  font-weight: 500;
  width: 180px;
  vertical-align: top;
}
.detail-table td:last-child { padding: 8px 0; color: var(--text-primary); }
.detail-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 0.5px solid var(--border);
}

/* ── REVIEW PROGRESS CARDS ───────────────────────────── */
.review-progress-card {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
}
.review-progress-card.done { background: #E8F5E9; border-color: #A5D6A7; }
.review-progress-card.active { background: #E3F2FD; border-color: #90CAF9; }
.review-progress-card.pending { background: var(--surface-2); }
.rpc-title { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.rpc-status { font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.review-progress-card.done .rpc-status { color: #2E7D32; }
.review-progress-card.active .rpc-status { color: #185FA5; }
.review-progress-card.pending .rpc-status { color: #888; }
.rpc-date { font-size: 10px; color: var(--text-tertiary); }

/* ── TIMELINE (detail page) ──────────────────────────── */
.app-timeline { display: flex; flex-direction: column; gap: 0; padding-left: 12px; }
.app-timeline-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 20px;
}
.app-timeline-item:last-child { padding-bottom: 0; }
.app-timeline-item::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.app-timeline-item:last-child::before { display: none; }
.app-timeline-item.done::before { background: #2E7D32; }
.app-timeline-item.active::before { background: var(--border); }
.app-timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--surface);
  z-index: 1;
  margin-top: 2px;
}
.app-timeline-dot.done { background: #2E7D32; border-color: #2E7D32; }
.app-timeline-dot.active { background: var(--primary); border-color: var(--primary); }
.app-timeline-dot.pending { background: var(--surface-2); border-color: var(--border-md); }
.app-timeline-content { flex: 1; padding-bottom: 4px; }
.atc-date { font-size: 10px; color: var(--text-tertiary); margin-bottom: 2px; }
.atc-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.atc-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }

/* ── REVIEW NOTE CARDS ───────────────────────────────── */
.review-note-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  border-left-width: 3px;
}
.review-note-card.technical { border-left-color: #185FA5; }
.review-note-card.financial { border-left-color: #F57C00; }
.review-note-card.legal { border-left-color: #7B1FA2; }
.rnc-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.rnc-type { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.review-note-card.technical .rnc-type { background: #E3F2FD; color: #185FA5; }
.review-note-card.financial .rnc-type { background: #FFF3E0; color: #E65100; }
.rnc-author { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.rnc-date { font-size: 11px; color: var(--text-tertiary); margin-left: auto; }
.rnc-body { font-size: 12px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 10px; }
.rnc-actions { display: flex; gap: 8px; }

/* ── DOCUMENT LIST ITEMS ─────────────────────────────── */
.doc-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
}
.doc-list-item.missing { background: #FFF5F5; border-color: #FFCDD2; }
.doc-icon {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.doc-icon.pdf { background: #FFEBEE; color: #C62828; }
.doc-icon.missing-icon { background: #FFF3E0; color: #E65100; font-size: 18px; }
.doc-info { flex: 1; }
.doc-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.doc-meta { font-size: 11px; color: var(--text-tertiary); }

/* ── COMMUNICATION ITEMS ─────────────────────────────── */
.comm-item {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.comm-item.outgoing { background: #E3F2FD; border-color: #90CAF9; }
.comm-item.incoming { background: var(--surface-2); }
.comm-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.comm-from { font-size: 12px; font-weight: 700; color: var(--text-primary); }
.comm-date { font-size: 11px; color: var(--text-tertiary); }
.comm-subject { font-size: 12px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.comm-body { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }

/* ── TAB BADGE ───────────────────────────────────────── */
.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
}
.tab-badge.warning { background: #FFF3E0; color: #E65100; }
.tab-btn.active .tab-badge { background: rgba(255,255,255,0.2); color: #fff; }

/* ── KEY DATE ROW ────────────────────────────────────── */
.key-date-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; border-bottom: 0.5px solid var(--border); }
.key-date-row:last-child { border-bottom: none; }
.key-date-label { color: var(--text-secondary); }

/* ── RELATED LINK ────────────────────────────────────── */
.related-link {
  display: block;
  padding: 6px 10px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  color: var(--primary);
  text-decoration: none;
  font-size: 11px;
  transition: background 0.15s;
}
.related-link:hover { background: var(--primary-light); }

/* ── REVIEW CHECKLIST EXTENDED ───────────────────────── */
.review-checklist-section { margin-bottom: 14px; }
.rc-section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); margin-bottom: 6px; padding-bottom: 4px; border-bottom: 0.5px solid var(--border); }
.rc-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid;
}
.rc-check.checked { background: #2E7D32; border-color: #2E7D32; color: #fff; }
.rc-check.failed { background: #FFCDD2; border-color: #C62828; color: #C62828; }
.rc-check.pending { background: #FFF8E1; border-color: #F57C00; color: #F57C00; }
.rc-check.na { background: var(--surface-2); border-color: var(--border-md); color: var(--text-tertiary); }
.rc-label { font-size: 12px; color: var(--text-primary); }

/* ── DOC VIEWER EXTENDED ─────────────────────────────── */
.doc-select {
  flex: 1;
  padding: 6px 10px;
  border: 0.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
}
.doc-select option { background: #185FA5; color: #fff; }
.doc-viewer-tools { display: flex; align-items: center; gap: 6px; }
.doc-tool-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.doc-tool-btn:hover { background: rgba(255,255,255,0.25); }
.doc-page-info { font-size: 11px; color: rgba(255,255,255,0.7); white-space: nowrap; }
.doc-page-header-sim { text-align: center; padding-bottom: 12px; border-bottom: 1px solid #e0e0e0; margin-bottom: 14px; }
.doc-page-body-sim { font-size: 11.5px; line-height: 1.8; color: #333; }
.doc-sim-section { font-size: 11px; font-weight: 700; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 0.03em; color: #185FA5; }
.doc-sim-text { margin-bottom: 10px; }

/* ── CERTIFICATE EXTENDED ────────────────────────────── */
.cert-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  font-size: 80px;
  font-weight: 900;
  color: rgba(24,95,165,0.04);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: 8px;
}
.cert-declaration {
  text-align: center;
  font-size: 11px;
  color: #555;
  margin-bottom: 16px;
  font-style: italic;
}
.cert-licensee {
  text-align: center;
  margin-bottom: 20px;
}
.cert-licensee-name { font-size: 18px; font-weight: 900; color: #185FA5; letter-spacing: 0.5px; }
.cert-licensee-sub { font-size: 11px; color: #555; margin-top: 2px; }
.cert-sig-block { text-align: center; }
.cert-sig-date { font-size: 10px; color: var(--text-tertiary); margin-top: 2px; }

/* ── CERT-LOGO-ROW / CERT-EMBLEM ─────────────────────── */
.cert-logo-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.cert-emblem { width: 60px; height: 60px; border: 2px solid #185FA5; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.cert-org-name { font-size: 14px; font-weight: 800; color: #185FA5; letter-spacing: 0.5px; }
.cert-org-sub { font-size: 10px; color: #555; margin-top: 2px; }

/* ── VERSION HISTORY ROW ─────────────────────────────── */
.version-row {
  padding: 8px 10px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ver-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 3px;
}

/* ── HEARING CARD ────────────────────────────────────── */
.hearing-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface-2);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
}
.hearing-date-box {
  width: 48px;
  text-align: center;
  background: #185FA5;
  color: #fff;
  border-radius: var(--radius-md);
  padding: 6px 4px;
  flex-shrink: 0;
}
.hdb-month { font-size: 9px; font-weight: 700; letter-spacing: 1px; opacity: 0.8; }
.hdb-day { font-size: 20px; font-weight: 900; line-height: 1; }

/* ── DECISION OPTION SELECTED STATE ─────────────────── */
.decision-option.selected {
  box-shadow: 0 0 0 3px rgba(24,95,165,0.2);
  transform: scale(1.02);
}

/* ══════════════════════════════════════════════════════════
   TARIFF MANAGEMENT MODULE
   ══════════════════════════════════════════════════════════ */

.rate-change-up   { color:#C62828;font-weight:700;font-size:12px; }
.rate-change-down { color:#2E7D32;font-weight:700;font-size:12px; }
.rate-change-flat { color:#757575;font-size:12px; }
.rate-value { font-family:'Consolas',monospace;font-size:12px;font-weight:600;color:var(--text-primary); }

.tariff-type-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:8px; }
.tariff-type-card { border:1.5px solid var(--border);border-radius:var(--radius-md);padding:16px 12px;cursor:pointer;text-align:center;transition:all 0.15s;background:var(--surface); }
.tariff-type-card:hover { border-color:var(--primary);background:var(--primary-light); }
.tariff-type-card.selected { border-color:var(--primary);background:var(--primary-light);box-shadow:0 0 0 3px rgba(24,95,165,0.15); }
.tariff-type-icon { width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 10px;font-size:20px; }
.tariff-type-name { font-size:12px;font-weight:700;color:var(--text-primary);margin-bottom:3px; }
.tariff-type-desc { font-size:10px;color:var(--text-tertiary);line-height:1.4; }

.cost-table { width:100%;border-collapse:collapse;font-size:12px; }
.cost-table th { padding:8px 12px;background:var(--surface-2);border-bottom:1px solid var(--border-md);font-weight:600;text-align:left;font-size:11px;color:var(--text-secondary); }
.cost-table td { padding:7px 12px;border-bottom:0.5px solid var(--border); }
.cost-table tr:hover td { background:var(--surface-2); }
.cost-section-row td { background:#E8F0FA;font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:0.04em;color:var(--primary);padding:6px 12px; }
.cost-row-subtotal td { background:#FAFAFA;font-weight:600;border-top:1px solid var(--border-md); }
.cost-row-total td { background:#F0F4FA;font-weight:700;color:var(--primary);border-top:2px solid var(--primary); }
.cost-input { width:100%;border:none;background:transparent;text-align:right;font-size:12px;font-family:'Consolas',monospace;padding:2px 4px;border-radius:3px; }
.cost-input:focus { background:#EEF5FF;outline:1px solid var(--primary); }

.rate-compare-item { display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:12px; }
.rate-compare-label { width:120px;text-align:right;font-size:11px;color:var(--text-secondary);flex-shrink:0; }
.rate-compare-bar-wrap { flex:1;background:var(--surface-2);border-radius:4px;overflow:hidden;height:18px; }
.rate-compare-bar { height:100%;border-radius:4px;display:flex;align-items:center;padding-left:8px;font-size:10px;color:#fff;font-weight:600; }
.rate-compare-val { width:110px;text-align:right;font-size:11px;font-family:'Consolas',monospace;font-weight:600;color:var(--text-primary); }

.vote-option-grid { display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:14px; }
.vote-option { border:2px solid var(--border);border-radius:var(--radius-md);padding:14px;cursor:pointer;transition:all 0.15s;text-align:center; }
.vote-option:hover { border-color:var(--primary);background:var(--primary-light); }
.vote-option.sel-approve     { border-color:#2E7D32;background:#E8F5E9; }
.vote-option.sel-conditional { border-color:#F57C00;background:#FFF3E0; }
.vote-option.sel-reject      { border-color:#C62828;background:#FFEBEE; }
.vote-option.sel-defer       { border-color:#757575;background:#F5F5F5; }
.vote-option-icon { font-size:26px;margin-bottom:6px; }
.vote-option-label { font-size:13px;font-weight:700; }
.vote-option-sub { font-size:10px;color:var(--text-tertiary);margin-top:2px; }
.commissioner-row { display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:0.5px solid var(--border); }
.commissioner-avatar { width:36px;height:36px;border-radius:50%;font-size:11px;font-weight:700;color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.commissioner-info { flex:1; }
.commissioner-name  { font-size:13px;font-weight:600;color:var(--text-primary); }
.commissioner-title { font-size:11px;color:var(--text-tertiary); }
.commissioner-vote-badge { padding:3px 10px;border-radius:10px;font-size:11px;font-weight:700; }
.cvb-approve { background:#E8F5E9;color:#2E7D32; }
.cvb-reject  { background:#FFEBEE;color:#C62828; }
.cvb-abstain { background:#F5F5F5;color:#757575; }
.cvb-pending { background:#FFF8E1;color:#F57C00; }

.gazette-entry { border:0.5px solid var(--border);border-radius:var(--radius-md);padding:16px;background:var(--surface);margin-bottom:12px; }
.gazette-header { display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px; }
.gazette-id    { font-size:10px;font-weight:700;letter-spacing:0.08em;color:var(--text-tertiary);text-transform:uppercase;margin-bottom:4px; }
.gazette-title { font-size:14px;font-weight:700;color:var(--text-primary);margin-bottom:2px; }
.gazette-meta  { font-size:11px;color:var(--text-tertiary); }
.gazette-seal  { width:48px;height:48px;border-radius:50%;background:var(--primary);color:#fff;font-size:8px;font-weight:700;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.2;letter-spacing:0.02em;flex-shrink:0; }

.hearing-entry { display:flex;gap:14px;padding:16px;border:0.5px solid var(--border);border-radius:var(--radius-md);background:var(--surface);align-items:flex-start;margin-bottom:12px; }
.hearing-entry.urgent { border-left:3px solid #C62828; }
.hearing-date-box-lg { text-align:center;background:var(--primary);color:#fff;border-radius:var(--radius-md);padding:8px 10px;flex-shrink:0;min-width:54px; }
.hdb-mon { font-size:9px;font-weight:700;letter-spacing:1px;opacity:0.8;text-transform:uppercase; }
.hdb-day-lg { font-size:24px;font-weight:900;line-height:1; }
.hearing-title { font-size:13px;font-weight:600;color:var(--text-primary);margin-bottom:4px; }
.hearing-meta-row { display:flex;gap:14px;flex-wrap:wrap;font-size:11px;color:var(--text-tertiary);margin-bottom:6px; }
.hearing-status-pill { padding:2px 8px;border-radius:10px;font-size:10px;font-weight:700; }
.hsp-scheduled { background:#E3F2FD;color:#1565C0; }
.hsp-completed { background:#F5F5F5;color:#757575; }
.hsp-active    { background:#E8F5E9;color:#2E7D32; }

.feedback-item { border-left:3px solid var(--border);padding:10px 14px;margin-bottom:8px;background:var(--surface);border-radius:0 var(--radius-sm) var(--radius-sm) 0; }
.feedback-item.support { border-left-color:#2E7D32; }
.feedback-item.oppose  { border-left-color:#C62828; }
.feedback-item.neutral { border-left-color:#F57C00; }
.feedback-header { display:flex;justify-content:space-between;align-items:center;margin-bottom:4px; }
.feedback-submitter { font-size:12px;font-weight:600;color:var(--text-primary); }
.feedback-stance { font-size:10px;font-weight:700;padding:2px 8px;border-radius:10px; }
.stance-support { background:#E8F5E9;color:#2E7D32; }
.stance-oppose  { background:#FFEBEE;color:#C62828; }
.stance-neutral { background:#FFF3E0;color:#F57C00; }
.feedback-text { font-size:11px;color:var(--text-secondary);line-height:1.7; }

.rate-result-box { background:linear-gradient(135deg,#185FA5,#1565C0);color:#fff;border-radius:var(--radius-lg);padding:24px;text-align:center;margin-bottom:16px; }
.rate-result-label { font-size:11px;opacity:0.8;margin-bottom:6px;text-transform:uppercase;letter-spacing:0.06em; }
.rate-result-value { font-size:36px;font-weight:900;font-family:'Consolas',monospace;letter-spacing:0.02em; }
.rate-result-unit  { font-size:12px;opacity:0.7;margin-top:6px; }
.rate-result-delta { font-size:12px;margin-top:8px;padding:4px 12px;background:rgba(255,255,255,0.15);border-radius:20px;display:inline-block; }
.analysis-kpi-grid { display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px; }
.analysis-kpi { background:var(--surface);border:0.5px solid var(--border);border-radius:var(--radius-md);padding:14px;text-align:center; }
.analysis-kpi-val { font-size:22px;font-weight:700;color:var(--primary);font-family:'Consolas',monospace;margin-bottom:2px; }
.analysis-kpi-lbl { font-size:11px;color:var(--text-tertiary); }
.benchmark-table { width:100%;border-collapse:collapse;font-size:12px; }
.benchmark-table th { padding:8px 12px;background:var(--surface-2);border-bottom:1px solid var(--border-md);font-size:11px;color:var(--text-secondary);font-weight:600;text-align:left; }
.benchmark-table td { padding:8px 12px;border-bottom:0.5px solid var(--border); }
.benchmark-best  { color:#2E7D32;font-weight:700; }
.benchmark-worst { color:#C62828;font-weight:700; }

.tariff-info-grid { display:grid;grid-template-columns:1fr 1fr;gap:0; }
.tariff-info-grid .dt-label { font-size:11px;color:var(--text-tertiary);font-weight:600;padding:8px 0 2px;text-transform:uppercase;letter-spacing:0.04em; }
.tariff-info-grid .dt-value { font-size:13px;color:var(--text-primary);padding-bottom:10px;border-bottom:0.5px solid var(--border); }

.trf-wizard-bar { display:flex;align-items:center;gap:0;margin-bottom:28px; }
.trf-wizard-step { display:flex;flex-direction:column;align-items:center;flex:1;position:relative; }
.trf-wizard-step:not(:last-child)::after { content:'';position:absolute;top:16px;left:50%;width:100%;height:2px;background:var(--border-md);z-index:0; }
.trf-wizard-step.done::after  { background:var(--primary); }
.trf-wizard-num { width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;border:2px solid var(--border-md);background:var(--surface);color:var(--text-tertiary);z-index:1;position:relative; }
.trf-wizard-step.active .trf-wizard-num { border-color:var(--primary);background:var(--primary);color:#fff; }
.trf-wizard-step.done   .trf-wizard-num { border-color:var(--primary);background:#E8F0FA;color:var(--primary); }
.trf-wizard-lbl { font-size:10px;color:var(--text-tertiary);margin-top:6px;text-align:center;font-weight:600; }
.trf-wizard-step.active .trf-wizard-lbl { color:var(--primary); }
