/* ==========================================================================
   Credit Memo Automation Dashboard - Financial Underwriting System
   Theme: Default High-Precision Corporate Light Theme with Dark Mode Toggle
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Default: Modern Institutional Banking Light Theme */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fcfdfe;
  --bg-input: #f1f5f9;
  --bg-input-focus: #ffffff;
  --bg-accent: rgba(37, 99, 235, 0.06);
  --border-color: #e2e8f0;
  --border-focus: #2563eb;
  --border-editable: rgba(14, 165, 233, 0.5);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-accent: #2563eb;

  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-secondary: #0284c7;
  --accent-success: #059669;
  --accent-warning: #d97706;
  --accent-danger: #dc2626;
  --accent-info: #2563eb;

  --glow-primary: rgba(37, 99, 235, 0.18);
  --glow-success: rgba(5, 150, 105, 0.18);
  --glow-danger: rgba(220, 38, 38, 0.18);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Optional Dark Theme Variables */
[data-theme="dark"] {
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.95);
  --bg-card-hover: rgba(26, 36, 56, 0.95);
  --bg-input: #0f172a;
  --bg-input-focus: #1e293b;
  --bg-accent: rgba(99, 102, 241, 0.12);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-focus: #6366f1;
  --border-editable: rgba(56, 189, 248, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #818cf8;

  --accent-primary: #6366f1;
  --accent-primary-hover: #4f46e5;
  --accent-secondary: #06b6d4;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-info: #3b82f6;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* Base Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* App Header */
.app-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1e40af, #0284c7);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.brand-details h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.brand-details .subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.header-borrower-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.summary-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.35rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.summary-pill .pill-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
}

.summary-pill .pill-value {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Standard Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-main);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  color: var(--text-primary);
  background: var(--bg-input);
  border-color: #cbd5e1;
}

.btn-save {
  background: #059669;
  color: #ffffff;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.25);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-save:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35);
}

.btn-add-row {
  background: transparent;
  color: var(--accent-primary);
  border: 1px dashed var(--accent-primary);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.78rem;
  transition: var(--transition);
}

.btn-add-row:hover {
  background: var(--bg-accent);
}

.btn-outline-danger {
  background: transparent;
  border-color: var(--accent-danger);
  color: var(--accent-danger);
}

.btn-outline-danger:hover {
  background: rgba(220, 38, 38, 0.08);
}

/* KPI Hero Bar */
.kpi-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  padding: 1.25rem 1.75rem 0.5rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-primary);
}

.kpi-card.kpi-success::before { background: var(--accent-success); }
.kpi-card.kpi-warning::before { background: var(--accent-warning); }
.kpi-card.kpi-danger::before { background: var(--accent-danger); }
.kpi-card.kpi-info::before { background: var(--accent-info); }

.kpi-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.kpi-value {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.kpi-unit {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-main);
}

.kpi-meta {
  font-size: 0.73rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Tabs Bar */
.tabs-navigation-wrapper {
  padding: 0.85rem 1.75rem 0;
  position: sticky;
  top: 61px;
  z-index: 90;
  background: var(--bg-primary);
}

.tabs-navigation {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  scrollbar-width: thin;
}

.tabs-navigation::-webkit-scrollbar {
  height: 4px;
}

.tabs-navigation::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.tab-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-primary);
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.tab-btn.active {
  color: #fff;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Main Content Area */
.app-main {
  padding: 1.25rem 1.75rem 4rem;
  max-width: 1750px;
  margin: 0 auto;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.tab-pane.active {
  display: block;
}

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

/* Card Section & Headers */
.card-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-header h2 {
  font-size: 1.12rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-primary);
}

.card-header .card-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.section-header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Cell Legend */
.cell-legend {
  display: flex;
  gap: 1.15rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-indicator {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

.legend-editable {
  background: #e0f2fe;
  border: 1.5px dashed #0284c7;
}

.legend-computed {
  background: #ede9fe;
  border: 1.5px solid #6366f1;
}

/* Data Tables */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  text-align: left;
}

.data-table th {
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table td {
  padding: 0.6rem 0.95rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.83rem;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: #f8fafc;
}

.data-table tr.row-group-header td {
  background: #f1f5f9;
  font-weight: 800;
  color: var(--accent-primary);
  padding: 0.65rem 0.95rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.84rem;
}

.data-table tr.row-subtotal td {
  background: #f8fafc;
  font-weight: 700;
}

.data-table tr.row-total td {
  font-weight: 800;
  background: #ecfdf5;
  border-top: 2px solid #a7f3d0;
  border-bottom: 2px solid #a7f3d0;
}

/* Editable Inputs in Tables */
.table-input {
  width: 100%;
  max-width: 125px;
  background: #f8fafc;
  border: 1.5px dashed var(--border-editable);
  color: #0369a1;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  text-align: right;
  transition: var(--transition);
}

.table-input:hover {
  border-color: #0284c7;
  background: #f0f9ff;
}

.table-input:focus {
  outline: none;
  border-style: solid;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
  background: #ffffff;
}

.table-input-text {
  width: 100%;
  background: #f8fafc;
  border: 1.5px dashed var(--border-editable);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.82rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  text-align: left;
}

.table-input-text:focus {
  outline: none;
  border-style: solid;
  border-color: #0284c7;
  background: #fff;
}

/* Computed Output Cells */
.calc-cell {
  font-family: var(--font-mono);
  font-weight: 600;
  text-align: right;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-warning {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-danger {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

/* Forms & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background: var(--bg-input-focus);
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--glow-primary);
}

textarea.form-control {
  min-height: 75px;
  resize: vertical;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #065f46;
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

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

/* Simulator Bar */
.scenario-bar {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 1rem 1.35rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.scenario-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1e3a8a;
}

.scenario-controls {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-wrap: wrap;
}

.slider-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.range-slider {
  accent-color: var(--accent-primary);
  cursor: pointer;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 95%;
  max-width: 1120px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  transform: scale(0.97);
  transition: transform 0.25s ease;
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

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

/* ==========================================================================
   Borrower Pipeline, Status Badges & Edit-Lock Mode Styles
   ========================================================================== */

.badge-status-analysis {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-status-l1 {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-status-l2 {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Mode Notification Banners */
.mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
  animation: fadeIn 0.25s ease-out;
}

.mode-banner-locked {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.mode-banner-editing {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Locked / Read-Only Input Styling */
.form-control.input-locked,
input.input-locked,
textarea.input-locked,
select.input-locked {
  background: var(--bg-input) !important;
  color: var(--text-secondary) !important;
  border-color: var(--border-color) !important;
  cursor: default !important;
  font-weight: 500 !important;
  user-select: text;
  box-shadow: none !important;
}

.form-control.input-locked:focus,
input.input-locked:focus,
textarea.input-locked:focus {
  outline: none !important;
  border-color: var(--border-color) !important;
  box-shadow: none !important;
}

.table-input-locked {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  pointer-events: none;
}

.table-header-year-input {
  width: 65px;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 4px;
  margin-left: 4px;
  border-radius: 4px;
  border: 1px solid var(--border-color, #cbd5e1);
  background: var(--bg-card, #ffffff);
  color: var(--text-primary, #1e293b);
  text-align: center;
  transition: all 0.2s ease;
}

.table-header-year-input:focus {
  outline: none;
  border-color: var(--primary, #3b82f6);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.table-header-year-input.table-input-locked {
  background: transparent !important;
  border-color: transparent !important;
  color: inherit !important;
  cursor: default !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

/* Comprehensive CAM Memo Print Styles */
.memo-section {
  margin-bottom: 2rem;
  page-break-inside: avoid;
}

.memo-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e3a8a;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.memo-page-break {
  page-break-after: always;
  break-after: page;
  margin-bottom: 2rem;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 1.5rem;
}

.memo-table {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: collapse;
  margin-bottom: 0.75rem;
}

.memo-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 700;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  text-align: left;
}

.memo-table td {
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

.memo-table tr:nth-child(even) td {
  background: #f8fafc;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 10mm;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .app-header,
  .tabs-navigation-wrapper,
  .kpi-container,
  .scenario-bar,
  .header-actions,
  .btn,
  .btn-save,
  .btn-add-row,
  .cell-legend,
  .toast-notification,
  .modal-close,
  .modal-header button {
    display: none !important;
  }

  .modal-backdrop {
    position: static !important;
    background: transparent !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: 0 !important;
    display: block !important;
  }

  .modal-dialog {
    max-width: 100% !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    transform: none !important;
  }

  .modal-header {
    border-bottom: 2px solid #000 !important;
    margin-bottom: 1rem !important;
  }

  .tab-pane {
    display: none !important;
  }

  .modal-backdrop.open ~ .app-main {
    display: none !important;
  }

  .memo-page-break {
    page-break-after: always !important;
    break-after: page !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .memo-table th {
    background: #e2e8f0 !important;
    color: #000 !important;
    border: 1px solid #94a3b8 !important;
  }

  .memo-table td {
    color: #000 !important;
    border: 1px solid #cbd5e1 !important;
  }
}

/* ==========================================================================
   DEDICATED BORROWER PIPELINE DASHBOARD & VIEW ROUTING
   ========================================================================== */
.view-container {
  width: 100%;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.pipeline-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0.9rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.pipeline-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 60%, #2563eb 100%);
  color: #ffffff;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  margin: 1.25rem 1.75rem 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.pipeline-hero-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.pipeline-hero-text p {
  font-size: 0.88rem;
  color: #bfdbfe;
  max-width: 650px;
  line-height: 1.5;
}

.pipeline-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 0 1.75rem 1.5rem;
}

.metric-pipeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.metric-pipeline-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metric-pipeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.metric-pipeline-card.card-total::before { background: #3b82f6; }
.metric-pipeline-card.card-analysis::before { background: #f59e0b; }
.metric-pipeline-card.card-l1::before { background: #2563eb; }
.metric-pipeline-card.card-l2::before { background: #10b981; }
.metric-pipeline-card.card-exposure::before { background: #8b5cf6; }

.metric-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.metric-card-value {
  font-size: 1.65rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.pipeline-main-container {
  padding: 0 1.75rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.pipeline-filter-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.pipeline-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  gap: 0.5rem;
  flex: 1;
  max-width: 420px;
}

.pipeline-search-box input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.85rem;
  width: 100%;
  outline: none;
}

.btn-open-cam {
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
}

.btn-open-cam:hover {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
  transform: translateY(-1px);
}

.btn-back {
  background: var(--bg-input);
  color: #1e40af;
  border: 1px solid #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e3a8a;
}

.active-entity-indicator {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Modal & Printable CAM Styling */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1.5rem;
}

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

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 1100px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

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

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0.2rem 0.5rem;
}

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

#memo-print-content {
  overflow-y: auto;
  flex: 1;
}

.memo-section {
  background: #ffffff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.memo-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e3a8a;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.memo-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.memo-table th,
.memo-table td {
  padding: 0.45rem 0.65rem;
  border: 1px solid #e2e8f0;
}

.memo-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #1e293b;
  text-align: left;
}

.memo-page-break {
  page-break-before: always;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 2px dashed #cbd5e1;
}

@media print {
  body * {
    visibility: hidden;
  }
  #modal-memo,
  #modal-memo * {
    visibility: visible;
  }
  #modal-memo {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: transparent;
    padding: 0;
  }
  .modal-dialog {
    max-width: 100%;
    box-shadow: none;
    border: none;
    max-height: none;
  }
  .modal-header {
    display: none;
  }
  .memo-page-break {
    page-break-before: always;
    border-top: none;
  }
}

/* ==========================================================================
   PROPOSAL TYPE BADGES & PIPELINE CONTROLS
   ========================================================================== */
.badge-proposal {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-ntb {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.badge-renewal {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.badge-enhancement {
  background: #faf5ff;
  color: #6b21a8;
  border-color: #e9d5ff;
}

.badge-exit {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* ==========================================================================
   OPERATING MODEL & BUSINESS PROFILE CANVAS
   ========================================================================== */
.canvas-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.canvas-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.canvas-tools-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.canvas-tool-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.canvas-tool-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.canvas-textarea {
  width: 100%;
  min-height: 260px;
  max-height: 800px;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-main);
  background: #ffffff;
  border: none;
  resize: vertical;
  outline: none;
}

.canvas-textarea:focus {
  background: #ffffff;
}

/* Operational Flowchart Diagram */
.flowchart-section {
  padding: 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
}

.flowchart-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.flowchart-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  align-items: center;
}

.flowchart-step-card {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.flowchart-step-num {
  font-size: 0.68rem;
  font-weight: 800;
  color: #2563eb;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.flowchart-step-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
}

.flowchart-step-desc {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* ==========================================================================
   PROBE SHEET ATTACHMENT & INGESTION STYLING
   ========================================================================== */
.probe-dropzone {
  border: 2px dashed #93c5fd;
  background: #eff6ff;
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.25rem;
}

.probe-dropzone:hover,
.probe-dropzone.dragover {
  background: #dbeafe;
  border-color: #2563eb;
}

.probe-extracted-badge {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
}

.probe-mapping-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 1rem;
}

.probe-mapping-table th {
  background: #f1f5f9;
  padding: 0.5rem 0.75rem;
  text-align: left;
  border: 1px solid #e2e8f0;
  font-weight: 700;
}

.probe-mapping-table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
}

.probe-category-header {
  background: #f8fafc;
  font-weight: 800;
  color: #1e3a8a;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e2e8f0;
}

/* ==========================================================================
   WORD-DOCUMENT FORMATTING & TABLE TOOLS
   ========================================================================== */
.word-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  user-select: none;
}

.word-tool-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.35rem;
}

.word-btn {
  background: transparent;
  border: none;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.45rem;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  transition: all 0.12s ease;
}

.word-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.word-btn:active {
  background: #cbd5e1;
}

.word-select {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  border: none;
  background: transparent;
  padding: 0.2rem 0.4rem;
  outline: none;
  cursor: pointer;
}

.word-canvas-container {
  padding: 1.25rem;
  background: #f1f5f9;
  min-height: 320px;
  overflow-y: auto;
}

.word-doc-sheet {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  min-height: 280px;
  padding: 1.75rem 2rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  line-height: 1.65;
  color: #1e293b;
  outline: none;
}

.word-doc-sheet:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Word Document Tables */
.word-doc-sheet table,
.word-rendered-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.86rem;
}

.word-doc-sheet th,
.word-doc-sheet td,
.word-rendered-table th,
.word-rendered-table td {
  border: 1px solid #cbd5e1;
  padding: 0.55rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.word-doc-sheet th,
.word-rendered-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #1e3a8a;
}

.word-doc-sheet tr:nth-child(even) td {
  background: #f8fafc;
}

/* Editable Supply Chain Flow */
.flowchart-step-card-editable {
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.flowchart-step-card-editable:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  border-color: #93c5fd;
}

.flow-step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flow-step-num {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.flow-step-del-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  line-height: 1;
}

.flow-step-del-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.flow-step-input-title {
  width: 100%;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0.2rem 0.35rem;
  background: transparent;
  outline: none;
  font-family: inherit;
}

.flow-step-input-title:focus,
.flow-step-input-title:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.flow-step-input-desc {
  width: 100%;
  font-size: 0.74rem;
  color: #475569;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0.2rem 0.35rem;
  background: transparent;
  outline: none;
  font-family: inherit;
  resize: vertical;
}

.flow-step-input-desc:focus,
.flow-step-input-desc:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.flowchart-add-card {
  border: 2px dashed #93c5fd;
  background: #eff6ff;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.15s ease;
  color: #2563eb;
  font-weight: 700;
  font-size: 0.8rem;
  gap: 0.25rem;
}

.flowchart-add-card:hover {
  background: #dbeafe;
  border-color: #2563eb;
}

/* Facility Comments Box Enlarged */
.facility-comments-large {
  width: 100%;
  min-height: 180px;
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  background: #ffffff;
  resize: vertical;
  font-family: inherit;
}

.facility-comments-large:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  outline: none;
}

/* Consolidated Financials Section Styling */
.financials-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.financials-header-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.financials-header-title p {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

.financials-upload-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-upload-excel {
  background: #059669;
  color: #ffffff;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #10b981;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.btn-upload-excel:hover {
  background: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.4);
}

.financials-subnav-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  overflow-x: auto;
}

.financials-subnav-btn {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.financials-subnav-btn:hover {
  background: #e2e8f0;
  color: var(--text-primary);
}

.financials-subnav-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.financials-subpane {
  display: none;
}

.financials-subpane.active {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

/* Financials Lock / Unlock State */
.table-input-locked {
  background: #f8fafc !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
  cursor: default !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.financials-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.financials-lock-badge.locked {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.financials-lock-badge.unlocked {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

.btn-lock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-lock-toggle.btn-unlock {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.btn-lock-toggle.btn-unlock:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.btn-lock-toggle.btn-lock {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.btn-lock-toggle.btn-lock:hover {
  background: #047857;
  transform: translateY(-1px);
}

.btn-ssa-add {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eff6ff;
  color: #2563eb;
  border: 1px dashed #3b82f6;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ssa-add:hover {
  background: #dbeafe;
  border-color: #2563eb;
}

.btn-table-delete {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 4px;
  color: #ef4444;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-table-delete:hover {
  background: #fee2e2;
  color: #b91c1c;
  transform: scale(1.08);
}
