/* ═══════════════════════════════════════════════
   LNC Nexus — Dashboard Styles v1.0
   Extracted from dashboard.html inline styles
   Import AFTER css-variables.css and Tailwind
   ═══════════════════════════════════════════════ */

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', system-ui, sans-serif; }
:root { --sidebar-w: 260px; }
.min-h-0 { min-height: 0; }
.phase-dot-pulse { animation: pulse 2s infinite; }
.scroll-panel-600 { max-height: 600px; }
.scroll-panel-500 { max-height: 500px; }
.hero-orb-top-right { transform: translate(30%, -30%); }
.hero-orb-bottom-left { transform: translate(-20%, 20%); }

/* ── Responsive Utilities (not emitted by Tailwind — JS template strings) ── */
@media (min-width:375px) {
  .xs\:h-14 { height: 3.5rem; }
  .xs\:px-2 { padding-left: .5rem; padding-right: .5rem; }
  .xs\:py-1 { padding-top: .25rem; padding-bottom: .25rem; }
  .xs\:text-sm { font-size: .875rem; line-height: 1.25rem; }
  .xs\:text-xs { font-size: .75rem; line-height: 1rem; }
  .xs\:max-w-sm { max-width: 16rem; }
  .xs\:w-48 { width: 12rem; }
  .xs\:gap-2 { gap: .5rem; }
  .xs\:p-4 { padding: 1rem; }
  .xs\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}
@media (min-width:640px) {
  .sm\:h-16 { height: 4rem; }
  .sm\:px-3 { padding-left: .75rem; padding-right: .75rem; }
  .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
  .sm\:py-2 { padding-top: .5rem; padding-bottom: .5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
  .sm\:text-sm { font-size: .875rem; line-height: 1.25rem; }
  .sm\:max-w-xs { max-width: 20rem; }
  .sm\:w-56 { width: 14rem; }
}
@media (min-width:768px) {
  .md\:h-16 { height: 4rem; }
  .md\:px-3 { padding-left: .75rem; padding-right: .75rem; }
  .md\:py-2 { padding-top: .5rem; padding-bottom: .5rem; }
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .md\:text-sm { font-size: .875rem; line-height: 1.25rem; }
  .md\:max-w-md { max-width: 28rem; }
  .md\:w-64 { width: 16rem; }
  .md\:gap-3 { gap: .75rem; }
}
@media (min-width:1024px) {
  .lg\:w-72 { width: 18rem; }
  .lg\:max-w-md { max-width: 28rem; }
}
.max-w-\[100px\] { max-width: 100px; }
.max-w-\[140px\] { max-width: 140px; }
.max-w-\[200px\] { max-width: 200px; }
.w-44 { width: 11rem; }

/* ── Compass Brand Sidebar ── */
.sidebar-navy { background-color: #0F1B2D !important; }
.sidebar-navy .sidebar-logo { border-bottom-color: rgba(255,255,255,0.08) !important; }
.compass-logo-glow { filter: drop-shadow(0 0 8px rgba(201,169,103,0.3)); }
.sidebar-user-avatar { background: #6B5B95; color: #fff; }
.sidebar-user-name { color: #f1f5f9; }
.sidebar-user-role { color: rgba(255,255,255,0.45); }
.sidebar-navy .nav-item { color: rgba(255,255,255,0.65); }
.sidebar-navy .nav-item:hover { background-color: rgba(255,255,255,0.08) !important; color: #f1f5f9 !important; }
.sidebar-navy .nav-item[aria-current="page"] { background-color: #6B5B95 !important; color: #fff !important; font-weight: 600; }
.sidebar-navy .nav-section-title { color: rgba(255,255,255,0.35) !important; }
.sidebar-navy .sidebar-user { border-top-color: rgba(255,255,255,0.08) !important; }

/* ── Dark Mode Overrides ── */
html.dark .dark\:bg-gray-900 { background-color: #111827; }
html.dark .dark\:bg-gray-800 { background-color: #1f2937; }
html.dark .dark\:bg-gray-750 { background-color: #1a2234; }
html.dark .dark\:border-gray-700 { border-color: #374151; }
html.dark .dark\:text-gray-100 { color: #f9fafb; }
html.dark .dark\:text-gray-200 { color: #e5e7eb; }
html.dark .dark\:text-gray-300 { color: #d1d5db; }
html.dark .dark\:text-gray-400 { color: #9ca3af; }

/* ── Sidebar Transitions ── */
.sidebar {
  width: var(--sidebar-w);
  transition: transform 0.3s cubic-bezier(0.23,1,0.32,1);
}
@media (min-width:1024px) {
  .sidebar { transform: translateX(0); }
  .sidebar.collapsed { transform: translateX(-100%); }
  .sidebar-backdrop { pointer-events: none; visibility: hidden; }
  .sidebar-backdrop.open { pointer-events: auto; visibility: visible; }
}
@media (max-width:1023px) {
  .sidebar { position: fixed; z-index: 50; transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop:not(.hidden) { display: block; }
  .main-content { margin-left: 0 !important; }
}

/* ── Page Transitions ── */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.2s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ── Phase Tracker ── */
.phase-dot { width: 28px; height: 28px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 8px; margin: -8px; }
.phase-line { flex: 1; min-width: 8px; height: 2px; }

/* ── Heatmap ── */
.heatmap-cell { transition: transform 0.15s ease; cursor: pointer; }
.heatmap-cell:hover { transform: scale(1.05); z-index: 10; }

/* ── Timeline ── */
.timeline-line { position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; }
.timeline-dot { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 5; flex-shrink: 0; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
html.dark ::-webkit-scrollbar-thumb { background: #4b5563; }

/* ── Responsive Tables ── */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.table-wrapper table {
  min-width: 100%;
  border-collapse: collapse;
}

/* Mobile-specific table adjustments */
@media (max-width:767px) {
  .table-wrapper {
    margin: 0 -1rem; /* Negative margin to extend beyond container */
    padding: 0 1rem; /* Padding to restore container spacing */
  }

  .table-wrapper table {
    font-size: 0.875rem; /* Slightly smaller font on mobile */
  }

  .table-wrapper th,
  .table-wrapper td {
    padding: 0.5rem; /* Reduced padding on mobile */
    white-space: nowrap; /* Prevent text wrapping */
  }

  /* Stack table cells on very small screens */
  @media (max-width:374px) {
    .table-wrapper table {
      font-size: 0.75rem;
    }

    .table-wrapper th,
    .table-wrapper td {
      padding: 0.375rem;
    }
  }
}

/* ── Chart Keyboard Navigation Focus Indicators (C5-T003) ── */
.chart-element-focused {
  outline: 3px solid #1B2A4A;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(27, 42, 74, 0.2);
  transition: all 0.15s ease-in-out;
}

.dark .chart-element-focused {
  outline-color: #6B5B95;
  box-shadow: 0 0 0 4px rgba(107, 91, 149, 0.3);
}

/* Ensure focus is visible on all chart types */
[role="img"][tabindex="0"]:focus {
  outline: 2px solid #1B2A4A;
  outline-offset: 2px;
}

.dark [role="img"][tabindex="0"]:focus {
  outline-color: #6B5B95;
}

/* ── Mobile Navigation Enhancements (C4-T006) ── */

/* Minimum touch target size (WCAG 2.1 AA compliant) */
@media (max-width:1023px) {
  .nav-item {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
  }

  .nav-item button {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Hamburger menu button */
  button[aria-label="Open menu"],
  button[aria-label="Toggle sidebar"] {
    min-height: 44px;
    min-width: 44px;
    padding: 12px;
  }

  /* Mobile case selector */
  #mobileCaseBtn {
    min-height: 44px;
  }

  /* Mobile search button */
  #mobileSearchBtn {
    min-height: 44px;
    min-width: 44px;
  }

  /* Action buttons */
  .btn {
    min-height: 44px;
  }

  /* Mobile menu dropdown */
  #mobileCaseMenu {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Larger tap areas for nav icons */
  .nav-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
  }

  .nav-text {
    font-size: 0.9375rem;
  }
}

/* Improved spacing for mobile nav items */
@media (max-width:767px) {
  nav .space-y-1 {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
  }

  nav .space-y-1 > * + * {
    margin-top: 0.375rem;
  }
}

/* ── Print & Misc ── */
.drop-zone { border: 2px dashed #d1d5db; transition: all 0.2s ease; cursor: pointer; }
.drop-zone.dragover { border-color: #1f6f78; background: rgba(31,111,120,0.05); }
.terminal-bg { background: #0a0e17; color: #a9b7c6; }
.terminal-bg .terminal-header { background: #1a1f2e; }
.terminal-bg code, .terminal-bg .mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms; animation-iteration-count: 1; scroll-behavior: auto; transition-duration: 0.01ms; }
}

/* ═══════════════════════════════════════════════
   AI Clinical Assistant Panel (C7)
   FAB trigger + sliding panel with conversation UI
   ═══════════════════════════════════════════════ */

/* ── AI Assistant FAB (T001) ── */
.ai-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35), 0 2px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  outline: none;
}

.ai-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(26, 115, 232, 0.45), 0 3px 6px rgba(0, 0, 0, 0.2);
}

.ai-fab:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.35), 0 1px 2px rgba(0, 0, 0, 0.15);
}

.ai-fab:focus-visible {
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.5), 0 4px 12px rgba(26, 115, 232, 0.35);
}

.ai-fab[aria-expanded="true"] {
  background: linear-gradient(135deg, #1f6f78 0%, #0f766e 100%);
  transform: rotate(90deg);
}

.ai-fab-icon {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease;
}

.ai-fab[aria-expanded="true"] .ai-fab-icon {
  transform: rotate(-90deg);
}

.ai-fab-tooltip {
  position: absolute;
  right: 68px;
  background: rgba(26, 30, 45, 0.95);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ai-fab:hover .ai-fab-tooltip,
.ai-fab:focus .ai-fab-tooltip {
  opacity: 1;
  visibility: visible;
  right: 72px;
}

html.dark .ai-fab-tooltip {
  background: rgba(31, 39, 54, 0.95);
}

/* FAB pulse animation on first load (one-time) */
.ai-fab.needs-attention {
  animation: fabPulse 2s infinite;
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35), 0 2px 4px rgba(0, 0, 0, 0.15); }
  50% { box-shadow: 0 6px 20px rgba(26, 115, 232, 0.5), 0 3px 8px rgba(0, 0, 0, 0.2); }
}

/* Remove pulse after first interaction */
.ai-fab.interacted {
  animation: none;
}

/* ── AI Assistant Panel (T002) ── */
.ai-panel {
  position: fixed;
  bottom: -520px;
  right: 24px;
  width: 380px;
  height: 500px;
  max-height: calc(100vh - 48px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transition: bottom 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.2s;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  opacity: 0;
  pointer-events: none;
}

html.dark .ai-panel {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ai-panel.open {
  bottom: 92px;
  opacity: 1;
  pointer-events: auto;
}

/* Header */
.ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
  color: white;
  flex-shrink: 0;
}

html.dark .ai-panel-header {
  background: linear-gradient(135deg, #1f6f78 0%, #0f766e 100%);
}

.ai-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.ai-panel-icon {
  width: 20px;
  height: 20px;
}

.ai-panel-status {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.85;
  margin-left: auto;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.ai-panel-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.ai-panel-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.ai-panel-close svg {
  width: 16px;
  height: 16px;
  stroke: white;
}

/* Messages Area */
.ai-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.ai-panel-messages::-webkit-scrollbar {
  width: 6px;
}

.ai-panel-messages::-webkit-scrollbar-track {
  background: transparent;
}

.ai-panel-messages::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

html.dark .ai-panel-messages::-webkit-scrollbar-thumb {
  background: #4b5563;
}

/* Message Bubbles */
.ai-message {
  display: flex;
  gap: 10px;
  animation: messageSlideIn 0.3s ease-out;
}

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

.ai-message-user {
  flex-direction: row-reverse;
}

.ai-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1a73e8;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

html.dark .ai-message-avatar {
  background: #1f6f78;
}

.ai-message-user .ai-message-avatar {
  background: #6b7280;
}

html.dark .ai-message-user .ai-message-avatar {
  background: #9ca3af;
}

.ai-message-avatar svg {
  width: 18px;
  height: 18px;
}

.ai-message-content {
  flex: 1;
  min-width: 0;
}

.ai-message-bubble {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #1f2937;
  word-wrap: break-word;
}

html.dark .ai-message-bubble {
  background: #374151;
  color: #e5e7eb;
}

.ai-message-user .ai-message-bubble {
  background: #1a73e8;
  color: white;
  border-bottom-right-radius: 4px;
}

html.dark .ai-message-user .ai-message-bubble {
  background: #1f6f78;
}

.ai-message-assistant .ai-message-bubble {
  border-bottom-left-radius: 4px;
}

.ai-message-timestamp {
  font-size: 11px;
  color: #6b7280;
  margin-top: 6px;
  text-align: right;
}

html.dark .ai-message-timestamp {
  color: #9ca3af;
}

.ai-message-user .ai-message-timestamp {
  color: rgba(255, 255, 255, 0.7);
}

/* Typing Indicator */
.ai-panel-typing {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 12px;
  color: #6b7280;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

html.dark .ai-panel-typing {
  background: #111827;
  color: #9ca3af;
  border-top-color: #374151;
}

.ai-panel-typing.visible {
  display: flex;
}

.ai-typing-dots {
  display: flex;
  gap: 4px;
}

.ai-typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a73e8;
  animation: typingBounce 1.4s infinite ease-in-out;
}

html.dark .ai-typing-dots span {
  background: #1f6f78;
}

.ai-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Input Area */
.ai-panel-input {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  background: white;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

html.dark .ai-panel-input {
  background: #1f2937;
  border-top-color: #374151;
}

.ai-input-field {
  flex: 1;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  outline: none;
  transition: border-color 0.2s;
  background: white;
  color: #1f2937;
  max-height: 100px;
  line-height: 1.4;
}

html.dark .ai-input-field {
  background: #374151;
  border-color: #4b5563;
  color: #e5e7eb;
}

.ai-input-field:focus {
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.15);
}

html.dark .ai-input-field:focus {
  border-color: #1f6f78;
  box-shadow: 0 0 0 2px rgba(31, 111, 120, 0.2);
}

.ai-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #1a73e8;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

html.dark .ai-send-btn {
  background: #1f6f78;
}

.ai-send-btn:hover:not(:disabled) {
  background: #0d47a1;
  transform: scale(1.05);
}

html.dark .ai-send-btn:hover:not(:disabled) {
  background: #0f766e;
}

.ai-send-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  opacity: 0.6;
}

html.dark .ai-send-btn:disabled {
  background: #4b5563;
}

.ai-send-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Quick Action Chips (T007) ── */
.ai-message-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ai-chip {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

html.dark .ai-chip {
  background: #374151;
  border-color: #4b5563;
  color: #e5e7eb;
}

.ai-chip:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

html.dark .ai-chip:hover {
  background: #4b5563;
  border-color: #6b7280;
}

.ai-chip:active {
  transform: translateY(0);
}

/* ── AI Accessibility (T006) ── */
.ai-fab:focus-visible,
.ai-panel-close:focus-visible,
.ai-send-btn:focus-visible,
.ai-input-field:focus,
.ai-chip:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
}

html.dark .ai-fab:focus-visible,
html.dark .ai-panel-close:focus-visible,
html.dark .ai-send-btn:focus-visible,
html.dark .ai-input-field:focus,
html.dark .ai-chip:focus-visible {
  outline-color: #1f6f78;
}

.ai-panel:focus {
  outline: none;
}

/* Visually hidden but screen reader accessible */
.ai-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Touch target size (WCAG 2.1 AA: 44x44px minimum) */
.ai-panel-close,
.ai-send-btn,
.ai-chip {
  min-width: 44px;
  min-height: 44px;
}

/* ── AI Dark Mode & Polish (T008) ── */

/* Responsive sizing */
@media (max-width: 480px) {
  .ai-panel {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: -540px;
    height: calc(100vh - 80px);
  }

  .ai-panel.open {
    bottom: 84px;
  }

  .ai-fab {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .ai-fab-tooltip {
    display: none;
  }
}

/* Tablet optimization */
@media (min-width: 481px) and (max-width: 768px) {
  .ai-panel {
    width: 360px;
  }
}

/* Large screen optimization */
@media (min-width: 1200px) {
  .ai-panel {
    width: 400px;
  }
}

/* ── Print ── */
@page {
  margin: 2cm;
  @bottom-right {
    content: "Page " counter(page) " of " counter(pages);
    font-size: 10pt;
    color: #666;
  }
  @bottom-left {
    content: "LNC Nexus";
    font-size: 9pt;
    color: #999;
  }
}

@media print {
  html, body { background: #fff !important; color: #000 !important; height: auto !important; }
  .sidebar, .sidebar-backdrop, .no-print, #searchResults, #notificationPanel, #caseModal, #demoBanner, #notificationsButton, #mobileSearchBtn, .ai-fab, .ai-panel { display: none !important; }
  [data-client-hidden] { display: none !important; }
  .main-content { margin-left: 0 !important; width: 100% !important; min-height: 0 !important; }
  .main-content > header { position: static !important; background: #fff !important; border-bottom: 1px solid #d1d5db !important; backdrop-filter: none !important; }
  .page { animation: none !important; }
  .page:not(.active) { display: none !important; }
  .page.active { display: block !important; }
  .terminal-bg, pre, code { background: #fff !important; color: #000 !important; border: 1px solid #d1d5db !important; }
  .terminal-bg .terminal-header { background: #f3f4f6 !important; }
  table, img { break-inside: avoid; }
  tr { break-inside: avoid; }
  h1, h2, h3, h4 { break-after: avoid; }
  a { color: #000 !important; text-decoration: underline !important; }

  /* Print-specific navigation (C6-T002) */
  #pageTitle {
    font-size: 18pt !important;
    font-weight: bold !important;
    margin-bottom: 1rem !important;
    color: #1a1a2e !important;
  }

  /* Hide all navigation links in print */
  .nav-item,
  .sidebar-nav,
  .breadcrumb,
  #mobileSearchBtn,
  #mobileCaseBtn {
    display: none !important;
  }

  /* Hide action buttons */
  button,
  .action-button,
  .quick-action {
    display: none !important;
  }

  /* Keep only content */
  main,
  .page,
  .section,
  .card {
    break-inside: avoid !important;
  }

  /* Remove interactive elements */
  [role="button"],
  [onclick],
  .cursor-pointer {
    pointer-events: none !important;
  }
}
