/* ==========================================================================
   MMPI-71 Clinical Psychometric Platform - Ultra-Premium Therapeutic UI
   Fonts: Kalameh (FaNum) & IRANYekanX | Dark & Light Modes | Full Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. LOCAL FONT-FACE DEFINITIONS (Kalameh FaNum & IRANYekanX)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'IRANYekanX';
  src: url('/static/assets/fonts/IRANYekanX-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('/static/assets/fonts/IRANYekanX-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('/static/assets/fonts/IRANYekanX-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('/static/assets/fonts/IRANYekanX-DemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('/static/assets/fonts/IRANYekanX-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANYekanX';
  src: url('/static/assets/fonts/IRANYekanX-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kalameh';
  src: url('/static/assets/fonts/KalamehWeb(FaNum)-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kalameh';
  src: url('/static/assets/fonts/KalamehWeb(FaNum)-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kalameh';
  src: url('/static/assets/fonts/KalamehWeb(FaNum)-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kalameh';
  src: url('/static/assets/fonts/KalamehWeb(FaNum)-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kalameh';
  src: url('/static/assets/fonts/KalamehWeb(FaNum)-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kalameh';
  src: url('/static/assets/fonts/KalamehWeb(FaNum)-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. THEME COLOR VARIABLES (LIGHT & DARK MODES)
   -------------------------------------------------------------------------- */
:root {
  --font-primary: 'IRANYekanX', 'Kalameh', system-ui, -apple-system, sans-serif;
  
  /* Light Mode Palette: Calming Medical Sapphire & Clean Slate */
  --bg-page: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-ambient-grad: radial-gradient(100% 60% at 50% 0%, rgba(2, 132, 199, 0.05) 0%, rgba(248, 250, 252, 0) 100%);

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-strong: #94a3b8;

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --accent-primary: #0284c7;
  --accent-primary-hover: #0369a1;
  --accent-light: rgba(2, 132, 199, 0.08);

  --emerald-main: #0284c7;
  --emerald-hover: #0369a1;
  --emerald-light: rgba(2, 132, 199, 0.08);
  --emerald-border: #bae6fd;

  --amber-main: #d97706;
  --amber-light: #fffbeb;
  --amber-border: #fde68a;

  --rose-main: #e11d48;
  --rose-light: #fff1f2;
  --rose-border: #fecdd3;

  --chart-bg: #ffffff;
  --chart-grid: #f1f5f9;
  --chart-border: #cbd5e1;
  --chart-text: #475569;
  --chart-line: #0284c7;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-hover: 0 12px 24px -4px rgba(2, 132, 199, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.25);

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

/* Dark Mode Palette: Nocturnal Sapphire & Gentle Moonlight Slate */
[data-theme="dark"] {
  --bg-page: #0b1120;
  --bg-surface: #111c30;
  --bg-surface-elevated: #16243d;
  --bg-subtle: #152238;
  --bg-ambient-grad: radial-gradient(100% 60% at 50% 0%, rgba(56, 189, 248, 0.07) 0%, rgba(11, 17, 32, 0) 100%);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.22);

  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #8e9fb8;
  --text-dim: #64748b;

  --accent-primary: #38bdf8;
  --accent-primary-hover: #7dd3fc;
  --accent-light: rgba(56, 189, 248, 0.12);

  --emerald-main: #38bdf8;
  --emerald-hover: #7dd3fc;
  --emerald-light: rgba(56, 189, 248, 0.12);
  --emerald-border: rgba(56, 189, 248, 0.3);

  --amber-main: #f59e0b;
  --amber-light: rgba(245, 158, 11, 0.14);
  --amber-border: #78350f;

  --rose-main: #fb7185;
  --rose-light: rgba(251, 113, 133, 0.14);
  --rose-border: #881337;

  --chart-bg: #111c30;
  --chart-grid: #1a243a;
  --chart-border: #2e3e5f;
  --chart-text: #94a3b8;
  --chart-line: #38bdf8;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 6px 18px -2px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 16px 28px -4px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);
}

/* --------------------------------------------------------------------------
   3. GLOBAL BASE STYLES & TYPOGRAPHY
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-page);
  background-image: var(--bg-ambient-grad);
  background-attachment: fixed;
  color: var(--text-body);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
  font-feature-settings: "ss01", "numr" 1;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Force Persian digits in native fonts */
.fa-num, span, strong, p, button, input, td, th {
  font-variant-numeric: tabular-nums;
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-emerald { color: var(--emerald-main) !important; }
.text-blue { color: var(--accent-primary) !important; }
.text-amber { color: var(--amber-main) !important; }
.text-rose { color: var(--rose-main) !important; }
.bold { font-weight: 700; }
.full-width { width: 100%; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1.5rem; }

/* --------------------------------------------------------------------------
   4. APP HEADER & THEME TOGGLE
   -------------------------------------------------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
  padding-top: env(safe-area-inset-top);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.brand-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: transform var(--transition-smooth);
}

.brand-area:hover .brand-badge-icon {
  transform: scale(1.05);
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

.nav-link-btn {
  background: transparent;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-link-btn:hover {
  color: var(--text-main);
  background: var(--bg-subtle);
}

/* Theme Toggle Button (Light/Dark Switcher) */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: var(--bg-subtle);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.theme-toggle-btn:hover {
  background: var(--border-subtle);
  transform: rotate(20deg);
}

/* --------------------------------------------------------------------------
   5. BUTTONS & INTERACTION STATES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
  user-select: none;
  touch-action: manipulation;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-emerald {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-body);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background: var(--border-subtle);
  color: var(--text-main);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-medium);
  color: var(--text-body);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-light);
}

.btn-danger {
  background: var(--rose-main);
  color: #ffffff;
}

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

.btn-danger.btn-outline:hover {
  background: var(--rose-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   6. MAIN SHELL & PAGE VIEWS
   -------------------------------------------------------------------------- */
.main-shell {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.hero-card,
.flow-card,
.login-wrapper,
.report-view-wrapper {
  max-width: 1020px;
  margin-left: auto;
  margin-right: auto;
}

.app-view {
  animation: viewFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Base Flow Card */
.flow-card, .login-box-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   7. VIEW 1: HERO & THERAPEUTIC LANDING
   -------------------------------------------------------------------------- */
.hero-card {
  background: radial-gradient(120% 120% at 50% -10%, #f0f9ff 0%, #ffffff 50%, #f8fafc 100%);
  color: var(--text-main);
  border: 1px solid #bae6fd;
  box-shadow: 0 12px 32px -8px rgba(2, 132, 199, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  padding: 3rem 2.25rem;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: all var(--transition-smooth);
}

[data-theme="dark"] .hero-card {
  background: radial-gradient(120% 120% at 50% -10%, #172554 0%, #101c33 50%, #0b1120 100%);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.hero-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(2, 132, 199, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(2, 132, 199, 0.2);
  padding: 0.35rem 0.95rem;
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 500;
  color: #0284c7;
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .hero-top-tag {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.28);
  color: #7dd3fc;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.hero-heading {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  letter-spacing: -0.2px;
}

.hero-lead {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 2rem;
  font-weight: 400;
}

[data-theme="dark"] .hero-lead {
  color: #94a3b8;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-cta-group .btn {
  border-radius: 16px;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.95rem 1.85rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.35);
}

.hero-cta-group .btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 10px 24px -2px rgba(2, 132, 199, 0.45);
  transform: translateY(-2px);
}

[data-theme="dark"] .hero-cta-group .btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 8px 24px -4px rgba(56, 189, 248, 0.35);
}

.hero-stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}
  padding-top: 1.5rem;
}

[data-theme="dark"] .hero-stats-strip {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.h-stat-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  transition: transform var(--transition-smooth);
}

[data-theme="dark"] .h-stat-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
}

.h-stat-item strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

[data-theme="dark"] .h-stat-item strong {
  color: #f8fafc;
}

.h-stat-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

.h-stat-sep {
  display: none;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-medium);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  flex-shrink: 0;
  background: var(--accent-light);
  color: var(--accent-primary);
  border: 1px solid rgba(2, 132, 199, 0.15);
}

[data-theme="dark"] .pillar-icon {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-primary);
  border-color: rgba(56, 189, 248, 0.25);
}

.pillar-content h3, .pillar-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.pillar-content p, .pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. VIEW 2: THERAPEUTIC PATIENT SURVEY (Anxiety-Free Psychological Flow)
   -------------------------------------------------------------------------- */
.flow-step-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.step-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.step-badge.active {
  background: var(--accent-light);
  color: var(--accent-primary);
}

.step-divider {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
}

.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.inputs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.input-field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.required-star { color: var(--rose-main); }
.col-span-2 { grid-column: 1 / -1; }

.ui-input {
  width: 100%;
  font-family: inherit;
  font-size: 0.98rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-main);
  transition: all var(--transition-smooth);
  min-height: 48px;
}

.ui-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.card-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

/* Reassurance Card for Sensitive Patients */
.calm-reassurance-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--accent-light);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  transition: all var(--transition-smooth);
}

.calm-icon-wrap {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.calm-reassurance-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--accent-primary);
}

.calm-reassurance-text p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.65;
  margin: 0;
}

/* Zen Questionnaire Area */
.mobile-sticky-tracker {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-subtle);
  transition: background var(--transition-smooth);
}

.tracker-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
}

.tracker-patient strong { color: var(--accent-primary); }
.tracker-counter { font-weight: 700; color: var(--text-main); }
.current-num { font-size: 1.15rem; color: var(--accent-primary); font-weight: 700; }

.tracker-bar-bg {
  height: 8px;
  background: var(--border-subtle);
  border-radius: 50px;
  overflow: hidden;
}

.tracker-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #10b981);
  border-radius: 50px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-display-area {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
  transition: all var(--transition-smooth);
}

.q-number-pill {
  display: inline-block;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.q-main-text {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.85;
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

/* Huge Reassuring Touch Options */
.options-container {
  display: flex;
  gap: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.touch-opt-btn {
  flex: 1;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  transition: all var(--transition-smooth);
  outline: none;
  min-height: 110px;
}

.touch-opt-btn:active {
  transform: scale(0.96);
}

.opt-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth);
}

.btn-opt-true .opt-icon-circle {
  background: var(--emerald-light);
  color: var(--emerald-main);
}

.btn-opt-false .opt-icon-circle {
  background: var(--rose-light);
  color: var(--rose-main);
}

.opt-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.opt-headline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

.opt-subline {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Selected Active States */
.btn-opt-true:hover, .btn-opt-true.selected {
  border-color: var(--emerald-main);
  background: var(--emerald-light);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.25);
}

.btn-opt-true.selected .opt-icon-circle {
  transform: scale(1.15);
}

.btn-opt-false:hover, .btn-opt-false.selected {
  border-color: var(--rose-main);
  background: var(--rose-light);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.25);
}

.btn-opt-false.selected .opt-icon-circle {
  transform: scale(1.15);
}

.keyboard-hints-strip {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.keyboard-hints-strip kbd {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  font-family: inherit;
  font-weight: 700;
  color: var(--text-main);
}

.q-controls-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.survey-final-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.submit-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Modal Window for Grid */
.modal-layer {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-window {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

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

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-head h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}

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

.modal-scroll-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  gap: 0.45rem;
}

.q-grid-item {
  height: 44px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--bg-surface);
  color: var(--text-main);
  transition: all var(--transition-smooth);
}

.q-grid-item.active {
  outline: 2.5px solid var(--accent-primary);
}

.q-grid-item.answered-true {
  background: var(--emerald-light);
  color: var(--emerald-main);
  border-color: var(--emerald-border);
}

.q-grid-item.answered-false {
  background: var(--rose-light);
  color: var(--rose-main);
  border-color: var(--rose-border);
}

/* Success Card */
.success-ring-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--emerald-light);
  color: var(--emerald-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.receipt-card {
  background: var(--bg-subtle);
  border: 1.5px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  max-width: 500px;
  margin: 1.75rem auto;
  text-align: right;
}

.r-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 0.98rem;
}

.r-code {
  font-family: inherit;
  font-size: 1.2rem;
  color: var(--accent-primary);
}

/* --------------------------------------------------------------------------
   9. VIEW 3: ADMIN LOGIN & DASHBOARD
   -------------------------------------------------------------------------- */
.login-wrapper {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
}

.login-box-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.login-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.error-msg-box {
  background: var(--rose-light);
  border: 1px solid var(--rose-border);
  color: var(--rose-main);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}

/* Dashboard Header & Metrics */
.dashboard-header-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

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

.dash-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

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

.dash-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.dash-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.dash-subtitle strong {
  color: var(--accent-primary);
  font-weight: 700;
}

.dash-action-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* SaaS Metrics Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  border-color: var(--border-medium);
}

.metric-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-card-blue .metric-icon-wrap {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.25));
  color: #2563eb;
}

.metric-card-emerald .metric-icon-wrap {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.25));
  color: #10b981;
}

.metric-card-indigo .metric-icon-wrap {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.25));
  color: #6366f1;
}

.metric-card-amber .metric-icon-wrap {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.25));
  color: #f59e0b;
}

.metric-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.m-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.m-val {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Filters & Search Toolbar */
.dash-filter-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-flex-wrap {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  flex: 2;
  min-width: 240px;
}

.search-input-wrapper .search-icon {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-wrapper .search-input {
  padding-right: 2.6rem;
  border-radius: 10px;
}

.f-select {
  flex: 1;
  min-width: 160px;
}

.f-select select {
  border-radius: 10px;
  background-color: var(--bg-surface);
}

/* Quick Filter Pills & Status Strip */
.filter-pills-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

.f-pills-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.f-pill {
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.f-pill:hover {
  background: var(--border-subtle);
  color: var(--text-main);
}

.f-pill.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.filter-results-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
}
  border-radius: 8px;
}

/* Test Code Chip with 1-Click Copy */
.test-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-primary);
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.test-code-chip:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--accent-primary);
}

.test-code-chip svg {
  opacity: 0.7;
}

.test-code-chip:hover svg {
  opacity: 1;
}

.norm-pill {
  font-size: 0.8rem;
  color: var(--text-main);
  background: var(--bg-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

.date-chip {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Badges */
.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-valid { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.badge-invalid { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.badge-questionable { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.badge-manual { background: rgba(99, 102, 241, 0.12); color: #6366f1; }
.badge-online { background: rgba(16, 185, 129, 0.12); color: #10b981; }

/* Table Container with Smooth Horizontal Scroll */
.table-outer-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.clinical-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  white-space: nowrap;
}

.clinical-table th, .clinical-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  text-align: right;
  vertical-align: middle;
}

.patient-name-cell {
  display: inline-block;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.clinical-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.82rem;
}

.clinical-table tbody tr:hover {
  background: var(--bg-subtle);
}

/* Adaptive Display Modes (Strict Separation: Desktop Table vs Mobile Cards) */
.desktop-only-table {
  display: block !important;
}

.mobile-only-cards,
.patient-mobile-cards-grid.mobile-only-cards,
#patientMobileCardsList {
  display: none !important;
}

/* Patient Mobile Cards Structure */
.patient-mobile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.patient-mobile-card:hover {
  border-color: var(--border-medium);
}

.pm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.pm-name-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pm-patient-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.pm-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pm-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.pm-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  background: var(--bg-subtle);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.pm-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pm-d-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.pm-d-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.pm-actions-bar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.2rem;
}

.pm-main-btn {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.pm-del-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.mobile-empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px dashed var(--border-medium);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

/* --------------------------------------------------------------------------
   10. VIEW 5: UPGRADED CLINICAL REPORT & MMPI WORKSTATION
   -------------------------------------------------------------------------- */
.report-view-wrapper {
  max-width: 1050px;
  margin: 0 auto;
}

.report-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-subtle);
}

.report-bar-title {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-main);
}

.report-paper-sheet {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 2rem;
  margin-bottom: 3.5rem;
  transition: all var(--transition-smooth);
}

.sheet-header {
  border-bottom: 2px solid var(--accent-primary);
  padding-bottom: 1.5rem;
  margin-bottom: 1.75rem;
}

.sheet-main-title {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.sheet-spec-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.35rem;
}

.spec-grid-responsive {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

.s-cell span { color: var(--text-muted); }
.s-cell strong { color: var(--text-main); }

/* Profile Grid: Main Chart & Validity Box */
.profile-columns-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  min-width: 0;
  width: 100%;
}

.chart-column-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.canvas-panel {
  background: var(--chart-bg);
  border: 1.5px solid var(--chart-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-subtle);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

#mmpiProfileCanvas {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  box-sizing: border-box;
}
  height: auto;
  display: block;
}

/* Horizontally Scrollable Scores Matrix */
.table-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-medium);
}

.scores-matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.88rem;
  white-space: nowrap;
}

.scores-matrix-table th, .scores-matrix-table td {
  border: 1px solid var(--border-medium);
  padding: 0.5rem 0.35rem;
}

.scores-matrix-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--text-main);
}

.scores-matrix-table .th-val { background: var(--accent-light); color: var(--accent-primary); }
.scores-matrix-table .th-border-div { border-left: 2.5px solid var(--accent-primary) !important; }
.scores-matrix-table .td-lbl, .scores-matrix-table .th-lbl {
  background: var(--bg-subtle);
  font-weight: 700;
  text-align: right;
  padding-right: 0.75rem;
  color: var(--text-main);
}

.scores-matrix-table td.t-elevated {
  background-color: var(--rose-light) !important;
  color: var(--rose-main) !important;
  font-weight: 700 !important;
}

.scores-matrix-table td.k-active-val {
  color: var(--accent-primary) !important;
  font-weight: 700 !important;
}

.k-switch-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.k-label { font-weight: 700; color: var(--text-main); }

.k-radio-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-body);
}

/* Validity Sidebar (Exact match to software) */
.validity-sidebar-area {
  background: #fefce8;
  border: 1.5px solid #fef08a;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

[data-theme="dark"] .validity-sidebar-area {
  background: #1e1b07;
  border-color: #713f12;
}

.v-box-head {
  font-size: 1.05rem;
  font-weight: 700;
  color: #854d0e;
  border-bottom: 1px solid #fef08a;
  padding-bottom: 0.45rem;
  text-align: center;
}

[data-theme="dark"] .v-box-head {
  color: #fde047;
  border-color: #713f12;
}

.v-item {
  background: #fef9c3;
  border: 1px solid #fef08a;
  border-radius: var(--radius-sm);
  padding: 0.65rem;
}

[data-theme="dark"] .v-item {
  background: #2a250a;
  border-color: #553c0d;
}

.v-tag {
  font-weight: 600;
  font-size: 0.95rem;
  color: #713f12;
  margin-bottom: 0.25rem;
}

[data-theme="dark"] .v-tag { color: #facc15; }

.v-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #451a03;
}

[data-theme="dark"] .v-desc { color: #fef08a; }

.v-verdict-flag {
  background: var(--emerald-light);
  color: var(--emerald-main);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  margin-top: auto;
}

.v-verdict-flag.invalid {
  background: var(--rose-light);
  color: var(--rose-main);
  border-color: var(--rose-border);
}

.v-verdict-flag.questionable {
  background: var(--amber-light);
  color: var(--amber-main);
  border-color: var(--amber-border);
}

.v-code-strip {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.code-font {
  font-family: inherit;
  font-size: 1.25rem;
  color: var(--accent-primary);
  font-weight: 700;
}

/* Clinical Interpretations Cards */
.interpretations-wrapper {
  border-top: 2px solid var(--border-subtle);
  padding-top: 2rem;
  margin-bottom: 2rem;
}

.interp-head-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.interp-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.interp-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.35rem;
  transition: all var(--transition-smooth);
}

.interp-card.code-box-glow {
  background: var(--accent-light);
  border-color: var(--accent-primary);
}

.ic-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.ic-body {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-body);
}

/* Doctor Notes Block */
.doctor-notes-block {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.notes-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.notes-textarea {
  min-height: 90px;
}

.notes-btn-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.save-status-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--emerald-main);
}

/* Discreet Footer */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin-top: auto;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: background var(--transition-smooth);
}

.footer-inner {
  max-width: 1050px;
  margin: 0 auto;
  width: 100%;
}

.footer-flex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  width: 100%;
}

.f-copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-staff-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s ease;
  cursor: pointer;
}

.footer-staff-link svg {
  opacity: 0.75;
}

.footer-staff-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: var(--bg-surface);
}

.footer-staff-link:hover svg {
  opacity: 1;
}

@media (max-width: 600px) {
  .footer-flex-row {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .footer-staff-link {
    width: 100%;
    justify-content: center;
    min-height: 44px;
    font-size: 0.85rem;
  }
}

/* Toast Stack (Centered across all screens, mobile-safe) */
.toast-stack {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: auto;
  max-width: 90vw;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  font-size: 0.92rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-align: right;
  direction: rtl;
}

.toast.success { border-right: 4px solid var(--emerald-main); }
.toast.error { border-right: 4px solid var(--rose-main); }

/* Print Only Elements */
.print-only { display: none; }

/* --------------------------------------------------------------------------
   11. ULTRA-POLISHED RESPONSIVE BREAKPOINTS (MOBILE & TABLET OPTIMIZED)
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-card {
    padding: 2.25rem 1.5rem;
  }
  .hero-heading {
    font-size: 1.75rem;
  }
  .profile-columns-wrap {
    grid-template-columns: 1fr;
  }
  .spec-grid-responsive {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .options-container {
    flex-direction: column;
    gap: 0.85rem;
  }
  .touch-opt-btn {
    min-height: 72px;
    padding: 1rem 1.25rem;
    flex-direction: row;
    justify-content: flex-start;
  }
  .opt-text-wrap {
    align-items: flex-start;
  }

  /* Admin Dashboard Mobile Adaptation */
  .desktop-only-table {
    display: none !important;
  }
  .mobile-only-cards,
  .patient-mobile-cards-grid.mobile-only-cards,
  #patientMobileCardsList {
    display: flex !important;
    flex-direction: column;
    gap: 0.9rem;
  }
  .dash-action-btns {
    width: 100%;
  }
  .dash-action-btns .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 600px) {
  /* Main Shell & Headers */
  .main-shell {
    margin: 0.65rem auto 2rem;
    padding: 0 0.65rem;
  }

  .header-container {
    padding: 0.5rem 0.65rem;
    gap: 0.5rem;
  }

  .brand-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .brand-badge-icon svg {
    width: 20px;
    height: 20px;
  }

  .brand-main {
    font-size: 0.95rem;
  }

  .brand-sub {
    display: none;
  }

  .nav-text {
    display: none;
  }

  .btn-start-test {
    display: none !important;
  }

  /* View 1: Hero Card on Mobile */
  .hero-card {
    padding: 1.5rem 1.15rem;
    border-radius: 18px;
    margin-bottom: 1.25rem;
  }

  .hero-top-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    margin-bottom: 1rem;
  }

  .hero-heading {
    font-size: 1.35rem;
    line-height: 1.4;
    margin-bottom: 0.65rem;
  }

  .hero-lead {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.35rem;
  }

  .hero-cta-group {
    margin-bottom: 1.5rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: 14px;
  }

  .hero-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    padding-top: 1rem;
    text-align: center;
  }

  .h-stat-sep {
    display: none;
  }

  .h-stat-item strong {
    font-size: 1.15rem;
    display: block;
  }

  .h-stat-item span {
    font-size: 0.72rem;
    display: block;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .pillar-card {
    padding: 1.1rem 1rem;
    border-radius: 16px;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
  }

  .pillar-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .pillar-content h3, .pillar-card h3 {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-main);
  }

  .pillar-content p, .pillar-card p {
    font-size: 0.84rem;
    line-height: 1.65;
    margin: 0;
    color: var(--text-muted);
  }

  /* View 2: Step 1 Demographics Form */
  .flow-card, .login-box-card {
    padding: 1.35rem 0.95rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
  }

  .flow-step-bar {
    gap: 0.35rem;
    margin-bottom: 1.25rem;
  }

  .step-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .section-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
  }

  .calm-reassurance-card {
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
  }

  .inputs-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .col-span-2 {
    grid-column: 1;
  }

  .ui-input {
    min-height: 44px;
    font-size: 0.92rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
  }

  .card-footer-actions {
    flex-direction: column-reverse;
    gap: 0.65rem;
    padding-top: 1rem;
    margin-top: 1.5rem;
  }

  .card-footer-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* View 2: Step 2 Testing Screen (Zen Psychological Experience) */
  .mobile-sticky-tracker {
    padding: 0.75rem 0.95rem;
    margin-bottom: 0.85rem;
    border-radius: 12px;
  }

  .tracker-info {
    font-size: 0.82rem;
    margin-bottom: 0.45rem;
  }

  .current-num {
    font-size: 1.1rem;
  }

  .question-display-area {
    padding: 1.5rem 0.95rem;
    border-radius: 16px;
    margin-bottom: 0.85rem;
  }

  .q-number-pill {
    font-size: 0.78rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
  }

  .q-main-text {
    font-size: 1.15rem;
    min-height: 55px;
    line-height: 1.85;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
  }

  .options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 100%;
    margin-bottom: 1.35rem;
  }

  .touch-opt-btn {
    padding: 0.85rem 1rem;
    min-height: 62px;
    border-radius: 14px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.85rem;
    border-width: 1.5px;
  }

  .opt-icon-circle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .opt-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: right;
  }

  .opt-headline {
    font-size: 1.02rem;
    font-weight: 600;
  }

  .opt-subline {
    font-size: 0.76rem;
    font-weight: 400;
    opacity: 0.85;
  }

  .keyboard-hints-strip {
    display: none;
  }

  .q-controls-strip {
    display: flex;
    gap: 0.4rem;
    padding-top: 1rem;
  }

  .q-controls-strip .btn {
    flex: 1;
    min-width: 0;
    padding: 0.55rem 0.35rem;
    font-size: 0.78rem;
    border-radius: 10px;
    justify-content: center;
    gap: 0.2rem;
  }

  .survey-final-box {
    padding: 1rem 0.85rem;
    border-radius: 14px;
  }

  .survey-final-box .btn-xl {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  /* Modal Review Grid on Mobile */
  .modal-window {
    width: 95vw;
    max-height: 88vh;
    border-radius: 16px;
  }

  .modal-head {
    padding: 0.85rem 1.15rem;
  }

  .modal-scroll-body {
    padding: 1rem;
  }

  .compact-grid {
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
  }

  .q-grid-item {
    height: 38px;
    font-size: 0.82rem;
    border-radius: 6px;
  }

  /* View 5: Clinical Report on Mobile */
  .report-action-bar {
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem;
    align-items: stretch;
    text-align: center;
    border-radius: 12px;
  }

  .report-bar-title {
    order: -1;
    font-size: 0.95rem;
  }

  .report-action-bar .btn {
    justify-content: center;
  }

  .report-paper-sheet {
    padding: 1.15rem 0.75rem;
    border-radius: 14px;
    margin-bottom: 2rem;
  }

  .sheet-main-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  .sheet-spec-box {
    padding: 0.75rem;
    border-radius: 10px;
  }

  .spec-grid-responsive {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    font-size: 0.82rem;
  }

  .canvas-panel {
    padding: 0.35rem;
    border-radius: 10px;
    margin-bottom: 0.85rem;
  }

  .table-scroll-container {
    margin-bottom: 0.85rem;
    border-radius: 8px;
  }

  .scores-matrix-table {
    font-size: 0.78rem;
  }

  .scores-matrix-table th, .scores-matrix-table td {
    padding: 0.35rem 0.2rem;
  }

  .k-switch-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
  }

  .validity-sidebar-area {
    padding: 0.85rem;
    gap: 0.65rem;
    border-radius: 12px;
  }

  .interp-card {
    padding: 0.85rem 1rem;
    border-radius: 10px;
  }

  .ic-title {
    font-size: 0.88rem;
  }

  .ic-body {
    font-size: 0.84rem;
    line-height: 1.7;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .dash-title-group {
    text-align: right;
  }

  .dash-title {
    font-size: 1.35rem;
  }

  .dash-filter-card {
    padding: 0.95rem;
  }

  .filter-flex-wrap {
    flex-direction: column;
    gap: 0.65rem;
  }

  .search-input-wrapper {
    width: 100%;
    min-width: 0;
  }

  .f-select {
    width: 100%;
    min-width: 0;
  }

  .filter-pills-strip {
    padding-bottom: 0.4rem;
  }

  .filter-results-counter {
    margin-right: 0;
    width: 100%;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   12. A4 CLINICAL MEDICAL PRINT & HIGH-RESOLUTION PDF SPECIFICATIONS
   -------------------------------------------------------------------------- */
@media print {
  @page {
    size: A4 portrait;
    margin: 0 !important; /* Completely eliminates default browser header (title/date) and footer (URL) */
  }

  *, *::before, *::after {
    box-sizing: border-box !important;
  }

  /* Prevent browser from automatically appending link URLs */
  a[href]::after {
    content: "" !important;
  }

  html, body {
    background: #ffffff !important;
    background-image: none !important;
    color: #0f172a !important;
    font-size: 8.5pt !important;
    line-height: 1.35 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .no-print, header, footer, #toastContainer, .report-action-bar, .k-switch-row, #doctorNotesInput, .notes-btn-row, #surveyStepInfo, #surveyStepQuestions, #viewHome, #viewLogin, #viewAdminDashboard {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .main-shell {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .report-view-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .report-paper-sheet {
    border: none !important;
    box-shadow: none !important;
    padding: 8mm 10mm 8mm 10mm !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    color: #0f172a !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Official Clinic / Hospital Header */
  .print-official-header {
    border-bottom: 2px solid #0284c7 !important;
    padding-bottom: 6px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
  }

  .p-header-top {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 8pt !important;
    color: #64748b !important;
    margin-bottom: 4px !important;
  }

  .p-header-title {
    font-size: 14pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: -0.2px !important;
  }

  .sheet-header {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 8px !important;
  }

  .sheet-main-title {
    display: none !important;
  }

  .sheet-spec-box {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 6px 10px !important;
  }

  .spec-grid-responsive {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 4px 10px !important;
    font-size: 8pt !important;
  }

  .s-cell span {
    color: #64748b !important;
  }

  .s-cell strong {
    color: #0f172a !important;
  }

  /* Main Grid: Chart & Table on Left, Validity on Right */
  .profile-columns-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 210px !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
    page-break-inside: avoid !important;
  }

  .chart-column-area {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .canvas-panel {
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    padding: 4px !important;
    margin-bottom: 6px !important;
    page-break-inside: avoid !important;
  }

  .canvas-panel canvas {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .table-scroll-container {
    overflow: visible !important;
    border: none !important;
    margin-bottom: 0 !important;
  }

  .scores-matrix-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 7.8pt !important;
    page-break-inside: avoid !important;
  }

  .scores-matrix-table th, .scores-matrix-table td {
    border: 1px solid #94a3b8 !important;
    padding: 3px 2px !important;
    text-align: center !important;
    background: #ffffff !important;
    color: #0f172a !important;
  }

  .scores-matrix-table th {
    background: #f1f5f9 !important;
    font-weight: 700 !important;
  }

  .scores-matrix-table td.t-elevated {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    font-weight: 700 !important;
  }

  .scores-matrix-table td.k-active-val {
    color: #0284c7 !important;
    font-weight: 700 !important;
  }

  .validity-sidebar-area {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 6px 8px !important;
    font-size: 8pt !important;
    page-break-inside: avoid !important;
  }

  .v-box-head {
    font-size: 8.5pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    border-bottom: 1px solid #cbd5e1 !important;
    padding-bottom: 3px !important;
    margin-bottom: 5px !important;
  }

  .v-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 4px !important;
    margin-bottom: 5px !important;
  }

  .v-tag {
    font-size: 8pt !important;
    font-weight: 600 !important;
    color: #0284c7 !important;
  }

  .v-desc {
    font-size: 7pt !important;
    line-height: 1.35 !important;
    color: #334155 !important;
  }

  .v-verdict-flag {
    background: #ecfdf5 !important;
    border: 1px solid #a7f3d0 !important;
    color: #065f46 !important;
    font-size: 7.8pt !important;
    padding: 4px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
  }

  .v-verdict-flag.invalid {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #991b1b !important;
  }

  .v-code-strip {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    padding: 3px 6px !important;
    font-size: 8pt !important;
    margin-top: 5px !important;
  }

  .code-font {
    font-size: 11pt !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
  }

  /* Interpretations Section in Print */
  .interpretations-wrapper {
    border-top: 1.5px solid #cbd5e1 !important;
    padding-top: 8px !important;
    margin-bottom: 10px !important;
    page-break-before: auto !important;
  }

  .interp-head-title {
    font-size: 10.5pt !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
    color: #0f172a !important;
  }

  .interp-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px 8px !important;
  }

  .interp-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 5px 8px !important;
    page-break-inside: avoid !important;
  }

  .interp-card.code-box-glow {
    grid-column: 1 / -1 !important;
    background: #f0f9ff !important;
    border-color: #7dd3fc !important;
  }

  .ic-title {
    font-size: 8pt !important;
    font-weight: 600 !important;
    color: #0284c7 !important;
    margin-bottom: 2px !important;
  }

  .ic-body {
    font-size: 7.5pt !important;
    line-height: 1.4 !important;
    color: #334155 !important;
  }

  /* Doctor Notes & Signatures in Print */
  .doctor-notes-block {
    border-top: 1.5px solid #cbd5e1 !important;
    padding-top: 6px !important;
    margin-bottom: 8px !important;
    page-break-inside: avoid !important;
  }

  .notes-title {
    font-size: 9pt !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
  }

  .notes-print-text {
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 6px 8px !important;
    font-size: 8pt !important;
    line-height: 1.45 !important;
    min-height: 40px !important;
    background: #ffffff !important;
    color: #0f172a !important;
  }

  .print-signatures-row {
    display: flex !important;
    justify-content: space-around !important;
    margin-top: 14px !important;
    padding-top: 8px !important;
    border-top: 1px dashed #cbd5e1 !important;
    page-break-inside: avoid !important;
  }

  .sig-col {
    text-align: center !important;
    font-size: 8pt !important;
    color: #334155 !important;
    width: 220px !important;
  }

  .sig-space {
    border-bottom: 1px solid #0f172a !important;
    margin-top: 30px !important;
  }
}
