/* ============================================================
   LUMA Energy — Phase 0 Pre-Initiation Governance Portal
   Enterprise Stylesheet v1.0
   ============================================================ */

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Primary Palette */
  --color-primary: #1B2A4A;
  --color-primary-light: #2E5C8A;
  --color-primary-lighter: #3A7BC8;
  --color-primary-dark: #0F1A2E;

  /* Accent */
  --color-accent: #0D7377;
  --color-accent-light: #14A3A8;

  /* Semantic */
  --color-success: #1A7F37;
  --color-success-bg: #D4EDDA;
  --color-warning: #B8860B;
  --color-warning-bg: #FEF3CD;
  --color-danger: #C0392B;
  --color-danger-bg: #F8D7DA;
  --color-info: #1B4F72;
  --color-info-bg: #D6EAF8;
  --color-deferred: #6C3483;
  --color-deferred-bg: #E8DAEF;
  --color-returned: #935116;
  --color-returned-bg: #FDEBD0;
  --color-scored: #0E6655;
  --color-scored-bg: #D1F2EB;
  --color-draft: #495057;
  --color-draft-bg: #E9ECEF;

  /* Neutrals */
  --color-bg: #F3F5F9;
  --color-surface: #FFFFFF;
  --color-border: #DEE2E6;
  --color-border-light: #ECEEF2;
  --color-text: #2C3E50;
  --color-text-secondary: #5A6A7A;
  --color-text-muted: #8694A4;

  /* Layout */
  --sidebar-width: 252px;
  --header-height: 56px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.10);
  --transition: 0.2s ease;

  /* Typography */
  --font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  outline: none;
}

input, select, textarea {
  font-family: var(--font-family);
  font-size: 0.928rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(46,92,138,0.12);
  outline: none;
}

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

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A6A7A' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

/* --- Layout Shell --- */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--color-primary);
  color: #C8D6E5;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-brand {
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-brand-logo {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.sidebar-brand-sub {
  font-size: 0.75rem;
  color: #8BA4C4;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 0;
}

.sidebar-section-label {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6B86A8;
  padding: 16px 20px 6px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: #B0C4DE;
  font-size: 0.857rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  position: relative;
}

.sidebar-nav-item:hover {
  background: rgba(255,255,255,0.06);
  color: #FFFFFF;
}

.sidebar-nav-item.active {
  background: rgba(255,255,255,0.10);
  color: #FFFFFF;
  border-left-color: var(--color-accent-light);
  font-weight: 600;
}

.sidebar-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}
.sidebar-nav-item.active svg {
  opacity: 1;
}

.sidebar-badge {
  margin-left: auto;
  background: rgba(255,255,255,0.14);
  color: #FFFFFF;
  font-size: 0.71rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
}

.sidebar-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.71rem;
  color: #6B86A8;
}

/* --- Main Area --- */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --- Header --- */
.header {
  height: var(--header-height);
  min-height: var(--header-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 90;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-breadcrumb {
  font-size: 0.857rem;
  color: var(--color-text-secondary);
}
.header-breadcrumb span {
  color: var(--color-text);
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-env-badge {
  font-size: 0.71rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-warning);
  background: var(--color-warning-bg);
  padding: 3px 10px;
  border-radius: 3px;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.857rem;
  color: var(--color-text-secondary);
}

.header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.71rem;
  font-weight: 700;
}

/* --- Content Scroll Area --- */
.content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px 40px;
}

/* --- Page Views --- */
.page-view {
  display: none;
}
.page-view.active {
  display: block;
}

/* --- Page Titles --- */
.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
}

.page-subtitle {
  font-size: 0.857rem;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: 0.857rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.btn-primary {
  background: var(--color-primary-light);
  color: #FFFFFF;
}
.btn-primary:hover {
  background: var(--color-primary);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: var(--color-bg);
}

.btn-success {
  background: var(--color-success);
  color: #FFFFFF;
}
.btn-success:hover {
  background: #15692E;
}

.btn-danger {
  background: var(--color-danger);
  color: #FFFFFF;
}
.btn-danger:hover {
  background: #A93226;
}

.btn-warning {
  background: var(--color-warning);
  color: #FFFFFF;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.785rem;
}

.btn-lg {
  padding: 11px 24px;
  font-size: 0.928rem;
}

.btn-icon {
  padding: 6px 8px;
  background: none;
  color: var(--color-text-secondary);
}
.btn-icon:hover {
  color: var(--color-primary-light);
  background: var(--color-bg);
  border-radius: var(--radius);
}

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header-title {
  font-size: 0.928rem;
  font-weight: 700;
  color: var(--color-primary);
}

.card-body {
  padding: 20px;
}

/* --- Metric Cards --- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.metric-card:hover {
  box-shadow: var(--shadow-md);
}

.metric-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.metric-card.stage-intake::before { background: var(--color-info); }
.metric-card.stage-screening::before { background: var(--color-accent); }
.metric-card.stage-prioritization::before { background: var(--color-warning); }
.metric-card.stage-governance::before { background: var(--color-deferred); }
.metric-card.status-approved::before { background: var(--color-success); }
.metric-card.status-rejected::before { background: var(--color-danger); }
.metric-card.status-deferred::before { background: var(--color-deferred); }
.metric-card.status-pipeline::before { background: var(--color-primary-light); }

.metric-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.metric-card-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
}

.metric-card-delta {
  font-size: 0.71rem;
  margin-top: 6px;
  color: var(--color-text-muted);
}
.metric-card-delta.up {
  color: var(--color-success);
}
.metric-card-delta.down {
  color: var(--color-danger);
}

/* --- Status Badges --- */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.71rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-draft { background: var(--color-draft-bg); color: var(--color-draft); }
.badge-submitted { background: var(--color-info-bg); color: var(--color-info); }
.badge-pending { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-review { background: #D1ECF1; color: #0C5460; }
.badge-approved { background: var(--color-success-bg); color: var(--color-success); }
.badge-rejected { background: var(--color-danger-bg); color: var(--color-danger); }
.badge-deferred { background: var(--color-deferred-bg); color: var(--color-deferred); }
.badge-returned { background: var(--color-returned-bg); color: var(--color-returned); }
.badge-scored { background: var(--color-scored-bg); color: var(--color-scored); }
.badge-finalized { background: #D4E6F1; color: #1A5276; }

/* --- Tables --- */
.data-table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.857rem;
}

.data-table thead th {
  background: #F0F2F6;
  color: var(--color-text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
  user-select: none;
}
.data-table thead th.sortable {
  cursor: pointer;
}
.data-table thead th.sortable:hover {
  color: var(--color-primary);
}

.data-table tbody tr {
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--transition);
}
.data-table tbody tr:hover {
  background: #F7F9FC;
}

.data-table tbody td {
  padding: 10px 14px;
  color: var(--color-text);
  vertical-align: middle;
}

.data-table .cell-epid {
  font-family: var(--font-mono);
  font-size: 0.785rem;
  font-weight: 600;
  color: var(--color-primary-light);
  cursor: pointer;
}
.data-table .cell-epid:hover {
  text-decoration: underline;
}

.data-table .cell-project-name {
  font-weight: 500;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table .cell-cost {
  font-family: var(--font-mono);
  font-size: 0.785rem;
  text-align: right;
}

.data-table .cell-score {
  font-family: var(--font-mono);
  font-weight: 700;
  text-align: center;
}

/* --- Toolbar / Filters --- */
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.toolbar-search {
  position: relative;
  flex: 0 1 280px;
}
.toolbar-search input {
  width: 100%;
  padding-left: 34px;
}
.toolbar-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}

.toolbar-filter select {
  min-width: 180px;
}

.toolbar-spacer {
  flex: 1;
}

/* --- Charts Grid --- */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.chart-container {
  position: relative;
  height: 260px;
  padding: 8px;
}

/* --- Process Steps (Landing Page) --- */
.process-steps {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 20px 12px 16px;
}

.process-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.857rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  position: relative;
  z-index: 2;
}

.process-step-title {
  font-size: 0.857rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.process-step-desc {
  font-size: 0.71rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.process-step-connector {
  position: absolute;
  top: 37px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--color-border);
  z-index: 1;
}

.process-step:last-child .process-step-connector {
  display: none;
}

/* --- Quick Actions --- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.quick-action-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.quick-action-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.quick-action-icon.intake { background: #D6EAF8; color: var(--color-info); }
.quick-action-icon.screening { background: #D1F2EB; color: var(--color-accent); }
.quick-action-icon.priority { background: var(--color-warning-bg); color: var(--color-warning); }
.quick-action-icon.governance { background: var(--color-deferred-bg); color: var(--color-deferred); }
.quick-action-icon.pipeline { background: #D5D8DC; color: var(--color-primary); }
.quick-action-icon.help { background: #FADBD8; color: var(--color-danger); }

.quick-action-icon svg {
  width: 20px;
  height: 20px;
}

.quick-action-text h4 {
  font-size: 0.857rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 3px;
}
.quick-action-text p {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

/* --- Section Dividers --- */
.section-header {
  font-size: 0.928rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border-light);
}

/* --- Forms --- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.785rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 5px;
}
.form-group label .required {
  color: var(--color-danger);
  margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
}

.form-group .form-hint {
  font-size: 0.71rem;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.form-actions {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-light);
  margin-top: 8px;
}

/* --- File Upload Zone --- */
.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.upload-zone:hover {
  border-color: var(--color-primary-light);
  background: #F7F9FC;
}
.upload-zone svg {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  opacity: 0.5;
}
.upload-zone p {
  font-size: 0.857rem;
}
.upload-zone .upload-hint {
  font-size: 0.71rem;
  margin-top: 4px;
}

/* --- Scoring --- */
.score-slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.score-slider-label {
  width: 180px;
  font-size: 0.785rem;
  font-weight: 600;
  color: var(--color-text);
  flex-shrink: 0;
}

.score-slider-input {
  flex: 1;
}
.score-slider-input input[type="range"] {
  width: 100%;
  border: none;
  padding: 0;
  box-shadow: none;
  accent-color: var(--color-primary-light);
}

.score-slider-value {
  width: 36px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.857rem;
  font-weight: 700;
  color: var(--color-primary);
}

.score-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #F0F2F6;
  border-radius: var(--radius);
  margin-top: 12px;
}

.score-total-label {
  font-size: 0.928rem;
  font-weight: 700;
  color: var(--color-primary);
}

.score-total-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--color-primary);
}

/* --- Stage Progress Indicator --- */
.stage-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
}

.stage-progress-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.stage-progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-border);
  color: #fff;
  font-size: 0.71rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  position: relative;
  z-index: 2;
}

.stage-progress-step.completed .stage-progress-dot {
  background: var(--color-success);
}
.stage-progress-step.current .stage-progress-dot {
  background: var(--color-primary-light);
  box-shadow: 0 0 0 4px rgba(46,92,138,0.2);
}
.stage-progress-step.future .stage-progress-dot {
  background: var(--color-border);
}

.stage-progress-step-label {
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.stage-progress-step.completed .stage-progress-step-label {
  color: var(--color-success);
}
.stage-progress-step.current .stage-progress-step-label {
  color: var(--color-primary-light);
}

.stage-progress-line {
  position: absolute;
  top: 13px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--color-border);
  z-index: 1;
}
.stage-progress-step.completed .stage-progress-line {
  background: var(--color-success);
}
.stage-progress-step:last-child .stage-progress-line {
  display: none;
}

/* --- Modal / Overlay --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 600px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
}

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

.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.modal-body {
  padding: 20px;
}

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

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  top: 72px;
  right: 28px;
  z-index: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 12px 18px;
  font-size: 0.857rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease;
  max-width: 380px;
}

.toast.success { border-left: 4px solid var(--color-success); }
.toast.error { border-left: 4px solid var(--color-danger); }
.toast.info { border-left: 4px solid var(--color-primary-light); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Empty State --- */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--color-text-muted);
}
.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.3;
}
.empty-state h4 {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}
.empty-state p {
  font-size: 0.857rem;
}

/* --- Governance Decision Cards --- */
.decision-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.decision-option {
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.857rem;
  font-weight: 600;
}
.decision-option:hover {
  border-color: var(--color-primary-light);
}
.decision-option.selected {
  border-color: var(--color-primary-light);
  background: #EBF2FA;
}
.decision-option.approve { color: var(--color-success); }
.decision-option.reject { color: var(--color-danger); }
.decision-option.defer { color: var(--color-deferred); }
.decision-option.rework { color: var(--color-returned); }

/* --- Utility --- */
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-16 { gap: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.hidden { display: none !important; }

/* --- Scrollbar --- */
.content-scroll::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.content-scroll::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 3px;
}
.content-scroll::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

/* --- Info Banner --- */
.info-banner {
  background: #EBF2FA;
  border: 1px solid #B8D4F0;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.857rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.5;
}

/* --- Responsive (for presentation flexibility) --- */
@media (max-width: 1200px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}
