/* Admin Analytics Dashboard Styling */
.admin-body {
  background: #f4f2ea;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-header {
  height: 84px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 15px rgba(16, 46, 59, 0.04);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-badge {
  font-size: 9px;
  letter-spacing: 0.15em;
  font-weight: 700;
  background: #eef2ec;
  color: var(--green);
  border: 1px solid #d4ded0;
  padding: 5px 10px;
  border-radius: 4px;
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.button-sm {
  padding: 9px 16px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.button-sm.primary {
  background: var(--ink);
  color: #fff;
}

.button-sm.primary:hover {
  background: var(--green);
}

.button-sm.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-sm.secondary:hover {
  background: #eae8de;
}

.admin-main {
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 4% 80px;
  flex: 1;
}

.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 35px;
  flex-wrap: wrap;
  gap: 20px;
}

.dashboard-hero h1 {
  font-size: clamp(30px, 3.5vw, 44px);
  margin: 8px 0;
  letter-spacing: -0.03em;
}

.admin-lead {
  color: var(--muted);
  font-size: 15px;
  max-width: 650px;
}

.live-status-pill {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 10px rgba(16, 46, 59, 0.03);
}

.live-dot.pulse {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-time {
  color: var(--muted);
  font-size: 10px;
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 24px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 16px rgba(16, 46, 59, 0.03);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--orange));
  opacity: 0.8;
}

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

.kpi-title {
  font-size: 10px;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--muted);
}

.growth-pill {
  background: #e6f4ea;
  color: #137333;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.kpi-value {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 12px;
}

.kpi-value.text-truncate {
  font-size: 20px;
  line-height: 1.3;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-footer {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f2eb;
  padding-top: 10px;
  margin-top: auto;
}

.kpi-sub {
  font-size: 9px;
  color: #889595;
}

/* Charts Rows */
.charts-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 25px;
  margin-bottom: 35px;
}

.charts-row.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px 28px;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(16, 46, 59, 0.03);
}

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

.card-title-row h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  margin-bottom: 4px;
}

.card-subtitle {
  font-size: 11px;
  color: var(--muted);
}

.legend {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.visits-color {
  background: var(--green);
}

.subs-color {
  background: var(--orange);
}

/* SVG Chart styling */
.chart-container {
  width: 100%;
  height: 250px;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.grid-line {
  stroke: #eceee5;
  stroke-dasharray: 4 4;
}

.axis-text {
  font-size: 9px;
  fill: #829090;
  font-family: Arial, sans-serif;
}

.chart-line-visits {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.chart-area-visits {
  fill: url(#greenGradient);
  opacity: 0.25;
}

.chart-bar-subs {
  fill: var(--orange);
  rx: 2;
}

/* Bar Chart for Pillars */
.bar-chart-container {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.pillar-stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pillar-stat-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}

.pillar-stat-name {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 75%;
}

.pillar-stat-count {
  font-weight: 600;
  color: var(--muted);
}

.pillar-progress-track {
  height: 7px;
  background: #eeeee4;
  border-radius: 4px;
  overflow: hidden;
}

.pillar-progress-fill {
  height: 100%;
  background: var(--ink);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.pillar-stat-row:nth-child(1) .pillar-progress-fill { background: var(--green); }
.pillar-stat-row:nth-child(2) .pillar-progress-fill { background: var(--orange); }
.pillar-stat-row:nth-child(3) .pillar-progress-fill { background: #3b82f6; }

/* State & Category Lists */
.state-distribution-list, .role-distribution-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.state-row, .role-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #fbfaf5;
  border: 1px solid #ebeee2;
  border-radius: 4px;
  font-size: 12px;
}

.state-name, .role-name {
  font-weight: 500;
}

.state-badge {
  background: #ebeee3;
  color: var(--ink);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
}

/* Category Distribution */
.category-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.category-bar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.category-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
}

.cat-track {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

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

.cat-fill.idea { background: #10b981; }
.cat-fill.sugg { background: #3b82f6; }
.cat-fill.conc { background: #f59e0b; }
.cat-fill.appr { background: #8b5cf6; }

/* Opinion Explorer Section */
.explorer-section {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px 32px;
  border-radius: 4px;
  box-shadow: 0 6px 16px rgba(16, 46, 59, 0.03);
}

.explorer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.explorer-header h2 {
  font-size: 26px;
  margin-bottom: 4px;
}

.explorer-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.explorer-tools input, .explorer-tools select {
  font-size: 11px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #faf9f5;
  color: var(--ink);
}

.explorer-tools input {
  min-width: 260px;
}

.opinions-table-wrap {
  overflow-x: auto;
}

.opinions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.opinions-table th {
  background: #f7f6f0;
  color: var(--muted);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.opinions-table td {
  padding: 16px 14px;
  border-bottom: 1px solid #f0f2ea;
  vertical-align: top;
}

.opinions-table tr:hover {
  background: #fafaf5;
}

.opinion-id {
  font-weight: 700;
  font-size: 11px;
  color: var(--ink);
}

.opinion-date {
  font-size: 10px;
  color: var(--muted);
}

.citizen-name {
  font-weight: 600;
}

.citizen-meta {
  font-size: 10px;
  color: var(--muted);
}

.pillar-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  background: #eef2ec;
  color: var(--green);
  padding: 2px 7px;
  border-radius: 3px;
  margin-bottom: 4px;
}

.category-tag {
  display: block;
  font-size: 9px;
  color: var(--muted);
}

.opinion-text-cell {
  max-width: 440px;
  line-height: 1.5;
  color: #2a3d46;
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.status-new { background: #e0f2fe; color: #0369a1; }
.status-starred { background: #fef3c7; color: #b45309; }
.status-pipeline { background: #f3e8ff; color: #7e22ce; }
.status-reviewed { background: #dcfce7; color: #15803d; }

.table-actions {
  display: flex;
  gap: 6px;
}

.action-btn {
  background: none;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  transition: all 0.2s;
}

.action-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.table-empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 13px;
}

.admin-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 24px 4%;
  font-size: 11px;
  color: var(--muted);
}

.admin-footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

@media (max-width: 1100px) {
  .charts-row, .charts-row.three-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-header {
    height: auto;
    padding: 15px 4%;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .admin-nav-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .dashboard-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================================
   SESSION PANEL & ROLE SWITCHER
   ========================================================================= */
.admin-session-panel {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.session-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 6px 14px 6px 8px;
  border-radius: 9999px;
  border: 1px solid var(--line);
}

.session-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--green);
}

.session-user-name {
  display: block;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.2;
}

.session-role-title {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.2;
}

.role-switcher-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 5px 12px;
  border-radius: 6px;
}

.role-switch-label {
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  text-transform: uppercase;
}

.role-select-dropdown {
  background: transparent;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  color: #78350f;
  outline: none;
  cursor: pointer;
}

.admin-badge.super {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  color: #92400e;
  border: 1px solid #f59e0b;
}

.admin-badge.team {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #10b981;
}

/* =========================================================================
   SECONDARY SUBNAV TABS
   ========================================================================= */
.admin-subnav {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 84px;
  z-index: 40;
}

.admin-subnav-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-tab-btn:hover {
  color: var(--ink);
  background: #fdfbf7;
}

.admin-tab-btn.active {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--green);
}

.super-badge {
  background: #fef3c7;
  color: #b45309;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #fde68a;
}

/* =========================================================================
   DESK HERO HEADERS
   ========================================================================= */
.desk-header-hero {
  background: linear-gradient(135deg, #0b1a24 0%, #162e3d 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(11, 26, 36, 0.15);
}

.statutory-tag {
  display: inline-block;
  background: rgba(212, 119, 38, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 6px;
}

.hero-text h2 {
  font-size: 22px;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.hero-text p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
  max-width: 680px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-hero-action {
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-hero-action.primary {
  background: #ffffff;
  color: #0b1a24;
}

.btn-hero-action.primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.btn-hero-action.super-action {
  background: linear-gradient(135deg, #d47726 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(212, 119, 38, 0.4);
}

.btn-hero-action.super-action:hover:not(:disabled) {
  transform: translateY(-2px);
}

/* =========================================================================
   DOC VERIFY CHIPS & PIPELINE STRIP
   ========================================================================= */
.docs-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.doc-verify-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: #ffffff;
  transition: all 0.15s ease;
}

.doc-verify-chip.verified {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.doc-verify-chip.pending {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.doc-verify-chip:hover {
  transform: scale(1.04);
}

.pipeline-summary-strip {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pipe-summary-pill {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.pipe-summary-pill .p-num {
  font-size: 15px;
  color: var(--ink);
  font-weight: 800;
}

/* =========================================================================
   TEAM CARDS GRID & OUTSOURCED ROLES
   ========================================================================= */
.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.team-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.2s ease;
}

.team-card.suspended {
  opacity: 0.6;
  background: #f8fafc;
}

.team-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
}

.team-info {
  flex: 1;
}

.team-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 2px 0;
}

.team-dept {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.team-email {
  display: block;
  font-size: 11px;
  color: #2563eb;
  font-family: monospace;
}

.team-perms-list {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

.perm-tag.enabled {
  color: #166534;
  font-weight: 600;
}

.perm-tag.disabled {
  color: #94a3b8;
  text-decoration: line-through;
}

.team-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
}

.last-login {
  color: var(--muted);
}

.btn-toggle-status {
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.btn-toggle-status.danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.btn-toggle-status.success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.owner-pill {
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  padding: 3px 8px;
  border-radius: 4px;
}

/* =========================================================================
   LOCKOUT NOTICE CARD (TEAM ADMIN MODE)
   ========================================================================= */
.lockout-card {
  background: #fffbeb;
  border: 2px dashed #fde68a;
  border-radius: 12px;
  padding: 36px 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 30px auto;
  max-width: 820px;
}

.lockout-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.lockout-card h3 {
  font-size: 20px;
  color: #92400e;
  margin: 0 0 6px 0;
}

.lockout-card p {
  font-size: 13.5px;
  color: #78350f;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.btn-unlock-super {
  background: #92400e;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(146, 64, 14, 0.3);
}

/* =========================================================================
   ADMIN MODAL DIALOGS
   ========================================================================= */
.admin-modal {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 640px;
  width: 90%;
}

.admin-modal.wide-box {
  max-width: 820px;
}

.admin-modal::backdrop {
  background: rgba(11, 26, 36, 0.65);
  backdrop-filter: blur(4px);
}

.admin-modal-box {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.admin-modal-header {
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-modal-header h3 {
  font-size: 16px;
  color: var(--ink);
  margin: 0;
}

.admin-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
}

.admin-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.modal-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.modal-field input, .modal-field textarea, .admin-input-sm {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  font-family: inherit;
}

.modal-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.perms-checklist {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.modal-actions-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.triage-case-preview {
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink);
}

.aff-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stamp-specimen-notice {
  font-size: 12px;
  font-weight: 700;
  color: #166534;
}

.affidavit-specimen-plate {
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  line-height: 1.6;
  background: #fdfbf7;
  border: 2px dashed #cbd5e1;
  padding: 20px;
  border-radius: 6px;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 480px;
  overflow-y: auto;
  color: #0f172a;
}

.audit-action-code {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  padding: 3px 6px;
  border-radius: 4px;
  color: #1e3a5f;
}

