/* Claims Portal Design Theme - PARAKH Brand */

/* ============================================
   Color Palette - PARAKH Brand Colors
   ============================================ */
:root {
  /* PARAKH Brand Colors */
  --color-primary-brand: #1A237E; /* Deep Indigo - Used for Headers, Navigation, Active Tab Text */
  --color-primary-action: #EF6C00; /* Burnt Orange - Used for Primary Buttons, Progress Bars, Links */
  --color-bg-body: #F4F6F8; /* Light Grey - Global background */
  --color-bg-surface: #FFFFFF; /* White - Card backgrounds */
  --color-text-main: #111827;
  --color-text-muted: #6B7280;
  --border-color-default: #D1D5DB;

  /* Legacy Primary Colors (mapped to brand colors) */
  --primary-50: #e8eaf6;
  --primary-100: #c5cae9;
  --primary-200: #9fa8da;
  --primary-300: #7986cb;
  --primary-400: #5c6bc0;
  --primary-500: #3f51b5;
  --primary-600: #1A237E; /* Brand color */
  --primary-700: #1A237E; /* Brand color */
  --primary-800: #0d1b5a;
  --primary-900: #060b2e;

  /* Page Background */
  --page-bg-start: #F4F6F8;
  --page-bg-end: #F4F6F8;

  /* Accent Colors */
  --accent-blue: #0ea5e9;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;

  /* AI field chip — soft magical accent, distinct from amber needs-review */
  --ai-chip-text: #5b4b8a;
  --ai-chip-icon-start: #6366f1;
  --ai-chip-icon-end: #a855f7;
  --ai-chip-border: rgba(99, 102, 241, 0.32);
  --ai-chip-bg: linear-gradient(135deg, #eef2ff 0%, #f3e8ff 48%, #ede9fe 100%);
  --ai-chip-shadow: 0 1px 2px rgba(79, 70, 229, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.85);

  /* Status Colors - Updated for PARAKH */
  --success-50: #D1FAE5; /* Light Green */
  --success-100: #D1FAE5;
  --success-500: #047857; /* Dark Green */
  --success-600: #047857;
  --success-700: #065f46;

  --warning-50: #FFEDD5; /* Light Orange */
  --warning-100: #FFEDD5;
  --warning-500: #C2410C; /* Dark Orange */
  --warning-600: #C2410C;
  --warning-700: #9a3412;

  --error-50: #fef2f2;
  --error-100: #fee2e2;
  --error-500: #ef4444;
  --error-600: #dc2626;
  --error-700: #b91c1c;

  --info-50: #eff6ff;
  --info-100: #dbeafe;
  --info-500: #3b82f6;
  --info-600: #2563eb;
  --info-700: #1d4ed8;

  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Border Radius - Tightened for technical look */
  --radius-sm: 0.25rem; /* 4px */
  --radius-md: 0.375rem; /* 6px */
  --radius-lg: 0.375rem; /* 6px - tightened from 12px */
  --radius-xl: 0.5rem; /* 8px */
}

/* ============================================
   Portal compact density (~80% browser zoom at 100% zoom)
   ============================================ */
html.portal-density-compact {
  font-size: 80%;
}

html.portal-density-compact .claims-heading-1,
html.portal-density-compact h1.claims-heading-1,
html.portal-density-compact .claims-claim-title-h1 {
  font-size: 1.5rem !important;
}

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Inter:wght@400;500;600&family=Roboto:wght@400;500&display=swap');

/* ============================================
   Typography - PARAKH Brand
   ============================================ */
.claims-heading-1 {
  font-family: 'Montserrat', 'Inter', sans-serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: var(--color-primary-brand) !important; /* Brand color for headings */
  letter-spacing: -0.025em !important;
}

/* Claim ID specific styling - Large font size and brand color */
.claims-heading-1,
h1.claims-heading-1 {
  font-size: 1.5rem !important;
  color: var(--color-primary-brand) !important;
}

.claims-heading-2 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700 !important; /* Bold for section headers */
  line-height: 1.3;
  color: var(--color-primary-brand) !important; /* Brand color */
  letter-spacing: -0.02em;
}

.claims-heading-3 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700 !important; /* Bold for section headers */
  line-height: 1.4;
  color: var(--color-primary-brand) !important; /* Brand color */
}

.claims-heading-4 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700 !important; /* Bold for section headers */
  line-height: 1.4;
  color: var(--color-primary-brand) !important; /* Brand color */
}

.claims-body {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-main);
}

.claims-body-sm {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.claims-label {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted) !important; /* Muted color for labels */
  margin-bottom: 0.5rem;
  display: block;
}

/* ============================================
   Cards - PARAKH Brand
   ============================================ */
.claims-card {
  background: var(--color-bg-surface) !important;
  border-radius: 6px !important; /* Tightened from 12px+ */
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important; /* Subtle, diffused shadow */
  border: 1px solid var(--border-color-default) !important;
  transition: all 0.2s ease-in-out;
}

.claims-card:hover {
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

.claims-card-header {
  padding: 1.5rem !important;
  border-bottom: 1px solid var(--border-color-default) !important;
  background: var(--color-bg-surface) !important;
}

.claims-card-body {
  padding: 1.5rem;
  background: var(--color-bg-surface);
}

.claims-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color-default);
  background: var(--color-bg-surface);
  border-radius: 0 0 6px 6px;
}

.claims-card-elevated {
  box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important;
  border: 1px solid var(--border-color-default) !important;
}

/* ============================================
   Buttons - PARAKH Brand
   ============================================ */
.claims-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.625rem 1.25rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important; /* Updated to 600 */
  border-radius: 4px !important; /* 4px border radius */
  transition: all 0.2s ease-in-out !important;
  cursor: pointer !important;
  border: none !important;
  text-decoration: none !important;
  line-height: 1.5 !important;
  font-family: 'Inter', 'Roboto', sans-serif;
}

.claims-btn-primary {
  background: var(--color-primary-action) !important; /* Burnt Orange */
  color: white !important;
  box-shadow: 0 1px 2px rgba(239, 108, 0, 0.2) !important;
}

.claims-btn-primary:hover {
  background: #d84315 !important; /* Darker orange on hover */
  box-shadow: 0 2px 4px rgba(239, 108, 0, 0.3);
  transform: translateY(-1px);
}

.claims-btn-secondary {
  background: transparent !important;
  color: var(--color-primary-brand) !important; /* Brand color text */
  border: 1px solid var(--color-primary-brand) !important; /* Brand color border */
}

.claims-btn-secondary:hover {
  background: rgba(26, 35, 126, 0.05); /* Light brand color background */
  border-color: var(--color-primary-brand);
}

.claims-btn-outline-action {
  background: #FFFFFF !important;
  color: var(--color-primary-action) !important;
  border: 1px solid var(--color-primary-action) !important;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08) !important;
}

.claims-btn-outline-action:hover {
  background: rgba(239, 108, 0, 0.06) !important;
  box-shadow: 0 2px 4px rgba(239, 108, 0, 0.16) !important;
}

.claims-btn-success {
  background: linear-gradient(135deg, var(--success-600), var(--success-700));
  color: white;
}

.claims-btn-success:hover {
  background: linear-gradient(135deg, var(--success-700), var(--success-700));
  box-shadow: 0 4px 8px rgba(22, 163, 74, 0.3);
}

.claims-btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.claims-btn-xs {
  padding: 0.3rem 0.65rem !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
}

.claims-btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* ============================================
   Badges - PARAKH Brand
   ============================================ */
.claims-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Inter', 'Roboto', sans-serif;
}

.claims-badge-draft {
  background: #F3F4F6 !important; /* Light Grey */
  color: #374151 !important; /* Dark Grey */
}

.claims-badge-in-progress {
  background: #FFEDD5 !important; /* Light Orange */
  color: #C2410C !important; /* Dark Orange */
}

.claims-badge-completed {
  background: #D1FAE5 !important; /* Light Green */
  color: #047857 !important; /* Dark Green */
}

.claims-badge-rejected {
  background: var(--error-100) !important;
  color: var(--error-700) !important;
}

.claims-status-select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  max-width: 100%;
  line-height: 1.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.35rem center;
  background-size: 1rem 1rem;
}

.claims-status-select option {
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: #111827;
  background: #fff;
}

.claims-status-select:disabled {
  cursor: default;
  opacity: 1;
}

.claims-badge-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
}

/* ============================================
   Form Elements
   ============================================ */
.claims-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-color-default);
  border-radius: 4px; /* 4px border radius */
  background: var(--color-bg-surface);
  color: var(--color-text-main);
  transition: all 0.2s ease-in-out;
  font-family: 'Inter', 'Roboto', sans-serif;
}

.claims-input--with-leading-icon {
  padding-left: 2.5rem;
}

.claims-input:focus {
  outline: none;
  border-color: var(--color-primary-brand);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.claims-input:disabled {
  background: var(--gray-50);
  color: var(--gray-500);
  cursor: not-allowed;
}

.claims-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-color-default);
  border-radius: 4px; /* 4px border radius */
  background: var(--color-bg-surface);
  color: var(--color-text-main);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  font-family: 'Inter', 'Roboto', sans-serif;
}

.claims-select:focus {
  outline: none;
  border-color: var(--color-primary-brand);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.claims-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-color-default);
  border-radius: 4px; /* 4px border radius */
  background: var(--color-bg-surface);
  color: var(--color-text-main);
  transition: all 0.2s ease-in-out;
  resize: vertical;
  font-family: 'Inter', 'Roboto', sans-serif;
}

.claims-textarea:focus {
  outline: none;
  border-color: var(--color-primary-brand);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

/* ============================================
   Progress Bars - PARAKH Brand
   ============================================ */
.claims-progress {
  width: 100%;
  height: 8px; /* 8px to 10px height */
  background: #E5E7EB; /* Light Grey track */
  border-radius: 9999px;
  overflow: hidden;
}

.claims-progress-bar {
  height: 100% !important;
  background: var(--color-primary-action) !important; /* Burnt Orange fill */
  border-radius: 9999px !important;
  transition: width 0.3s ease-in-out !important;
  box-shadow: none !important;
}

/* ============================================
   Tabs - PARAKH Brand
   ============================================ */
.claims-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color-default);
  gap: 0.5rem;
  background: var(--color-bg-surface); /* White background */
}

.claims-tab {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted) !important; /* Muted color for inactive */
  border-bottom: 3px solid transparent; /* Changed to 3px */
  margin-bottom: -3px; /* Adjusted for 3px border */
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Inter', 'Roboto', sans-serif;
  white-space: nowrap;
  flex-shrink: 0;
}

.claims-tab:hover {
  color: var(--color-text-main);
  border-bottom-color: var(--border-color-default);
}

.claims-tab-active {
  color: var(--color-primary-brand) !important; /* Brand color for active tab */
  border-bottom-color: var(--color-primary-action) !important; /* Orange underline */
  font-weight: 700 !important; /* Bold */
}

/* Vehicle Repair Invoice tabs reuse .claims-tabs styling but allow item-count chip alignment */
.claims-tab .ml-2 {
  vertical-align: middle;
}

/* ============================================
   Alerts
   ============================================ */
.claims-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.claims-alert-success {
  background: var(--success-50);
  border-color: var(--success-500);
  color: var(--success-700);
}

.claims-alert-error {
  background: var(--error-50);
  border-color: var(--error-500);
  color: var(--error-700);
}

.claims-alert-warning {
  background: var(--warning-50);
  border-color: var(--warning-500);
  color: var(--warning-700);
}

.claims-alert-info {
  background: var(--info-50);
  border-color: var(--info-500);
  color: var(--info-700);
}

/* ============================================
   Section Dividers
   ============================================ */
.claims-section {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.claims-section:last-child {
  border-bottom: none;
}

.claims-section-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700 !important; /* Bold for section headers */
  color: var(--color-primary-brand) !important; /* Brand color */
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.claims-section-title::before {
  content: '';
  width: 4px;
  height: 1.25rem;
  background: var(--color-primary-brand); /* Brand color */
  border-radius: 2px;
}

/* ============================================
   Ops form layout (Policy, Vehicle, etc.)
   ============================================ */
.claims-form-ops > .claims-section,
.claims-form-ops .claims-section {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.claims-form-ops > .claims-section:last-of-type,
.claims-form-ops .claims-section:last-of-type {
  border-bottom: none;
}

.claims-form-ops .claims-section-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.claims-form-ops .claims-section-title::before {
  height: 1rem;
}

.claims-form-ops-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .claims-form-ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .claims-form-ops-grid--span-2,
  .claims-form-ops-grid--span-4 {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .claims-form-ops-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .claims-form-ops-grid--span-3 {
    grid-column: span 3;
  }

  .claims-form-ops-grid--span-4 {
    grid-column: span 4;
  }
}

.claims-form-ops-inline-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1.625rem;
}

.claims-form-ops-inline-check .claims-label {
  margin-bottom: 0;
}

.claims-form-ops-inline-check--flat {
  padding-top: 0;
}

.claims-coverage-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.claims-coverage-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border-color-default);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  cursor: pointer;
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-main);
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-bottom: 0;
}

.claims-coverage-chip:hover {
  border-color: var(--color-primary-brand);
}

.claims-coverage-chip input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--color-primary-brand);
}

.claims-coverage-chip:has(input:checked) {
  border-color: var(--color-primary-brand);
  background: var(--primary-50);
}

.claims-form-ops-disclosure {
  border-bottom: 1px solid var(--gray-200);
}

.claims-form-ops-disclosure-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 0;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-brand);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.claims-form-ops-disclosure-summary::-webkit-details-marker {
  display: none;
}

.claims-form-ops-disclosure-summary::before {
  content: '';
  width: 4px;
  height: 1rem;
  background: var(--color-primary-brand);
  border-radius: 2px;
  flex-shrink: 0;
}

.claims-form-ops-disclosure-summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  margin-left: auto;
  color: var(--gray-500);
  transition: transform 0.15s ease;
}

.claims-form-ops-disclosure[open] .claims-form-ops-disclosure-summary::after {
  transform: rotate(180deg);
}

.claims-form-ops-disclosure-body {
  padding-bottom: 0.75rem;
}

.claims-card-body--form-ops {
  padding-bottom: 0 !important;
}

.claims-form-ops-footer {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  margin-top: 0.5rem;
  background: var(--color-bg-surface);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -2px 6px -1px rgba(0, 0, 0, 0.08);
}

.claims-accident-tab-panel {
  padding: 1rem 1.5rem 0;
}

.claims-accident-tab-panel .claims-form-ops-footer {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-bottom: 0;
}

.claims-accident-tabs-nav .accident-tab {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

/* ============================================
   Contacts — compact Ops table & modal
   ============================================ */
.claims-contacts-page .claims-card-body--form-ops {
  padding: 1rem 1.25rem 1.25rem;
}

.claims-contacts-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.claims-contacts-table-wrap {
  border: 1px solid var(--border-color-default, #e5e7eb);
  border-radius: var(--radius-md, 0.375rem);
  margin-bottom: 1rem;
}

.claims-contacts-table th {
  padding: 0.45rem 0.65rem;
  font-size: 0.68rem;
}

.claims-contacts-table td {
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
}

.claims-contacts-table tbody tr:hover {
  background: var(--gray-50) !important;
}

.claims-contacts-avatar {
  height: 2rem;
  width: 2rem;
  font-size: 0.75rem;
}

.claims-contacts-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.25;
}

.claims-contacts-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.claims-contacts-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  width: 2rem;
  border-radius: var(--radius-md, 0.375rem);
  border: none;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.claims-contacts-icon-btn:hover {
  background: var(--gray-100);
  color: var(--color-primary-brand);
}

.claims-contacts-icon-btn--danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

.claims-contacts-icon-btn--primary-active {
  color: #eab308;
  cursor: default;
}

.claims-contact-modal-dialog {
  width: min(95vw, 36rem);
  max-height: calc(100vh - 2rem);
}

.claims-contact-modal-dialog .photo-preview-header {
  padding: 0.625rem 0.875rem;
}

.claims-contact-modal-dialog .photo-preview-header .claims-heading-3 {
  font-size: 1rem;
  line-height: 1.3;
}

.claims-contact-modal-dialog .photo-preview-header .claims-body-sm {
  font-size: 0.75rem;
  margin-top: 0.125rem !important;
}

.claims-contact-modal-dialog .photo-preview-body {
  padding: 0.75rem 0.875rem;
  max-height: calc(100vh - 11rem);
  overflow-y: auto;
}

.claims-contact-modal-dialog .claims-form-ops-grid {
  gap: 0.65rem 0.75rem;
}

.claims-contact-modal-dialog .claims-textarea {
  min-height: 4.5rem;
}

.claims-contact-modal-dialog .claims-section-title {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.claims-contact-notif-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.claims-contact-notif-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border-color-default);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 0;
}

.claims-contact-notif-chip:hover {
  border-color: var(--color-primary-brand);
}

.claims-contact-notif-chip input {
  width: 0.875rem;
  height: 0.875rem;
  margin: 0;
  accent-color: var(--color-primary-brand);
}

.claims-contact-notif-chip:has(input:checked) {
  border-color: var(--color-primary-brand);
  background: var(--primary-50);
}

.claims-contact-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.625rem 0.875rem;
  border-top: 1px solid var(--border-color-default);
  background: var(--gray-50);
}

/* ============================================
   Assessment checklist — Ops workspace
   ============================================ */
.checklist-ops-workspace {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-ops-page-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
  border-radius: var(--radius-md);
}

.checklist-ops-page-overlay.hidden {
  display: none;
}

.checklist-ops-page-overlay-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  text-align: center;
}

.checklist-ops-page-overlay-icon {
  font-size: 1.75rem;
  color: var(--color-primary-action);
  animation: checklist-fill-pulse 1.2s ease-in-out infinite;
}

.checklist-ops-page-overlay-text {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary-brand);
}

@keyframes checklist-fill-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

.checklist-ops-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color-default);
  border-radius: var(--radius-md);
  background: var(--gray-50);
}

.checklist-ops-toolbar-end {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.25rem;
  margin-left: auto;
}

.checklist-ops-fill-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, #7c4dff 0%, var(--color-primary-action) 55%, #ff6f00 100%);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(124, 77, 255, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.checklist-ops-fill-ai-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124, 77, 255, 0.45);
}

.checklist-ops-fill-ai-btn i {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5));
}

.checklist-ops-title {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-brand);
  margin: 0 0 0.25rem;
}

.checklist-ops-subtitle {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 36rem;
}

.checklist-ops-stats {
  min-width: 8rem;
}

.checklist-ops-stat-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-brand);
  line-height: 1.2;
  text-align: right;
}

.checklist-ops-stat-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  text-align: right;
}

.checklist-ops-progress {
  margin-top: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--color-bg-surface);
  overflow: hidden;
}

.checklist-ops-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--color-primary-action);
}

.checklist-ops-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.checklist-ops-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border-color-default);
  border-radius: 999px;
  background: var(--color-bg-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.checklist-ops-filter:hover {
  border-color: var(--color-primary-brand);
  color: var(--color-primary-brand);
}

.checklist-ops-filter-active {
  border-color: var(--color-primary-brand);
  background: var(--primary-50);
  color: var(--color-primary-brand);
}

.checklist-ops-filter-count {
  display: inline-flex;
  min-width: 1.25rem;
  justify-content: center;
  padding: 0 0.25rem;
  font-size: 0.6875rem;
  border-radius: 999px;
  background: var(--gray-100);
}

.checklist-ops-filter-active .checklist-ops-filter-count {
  background: rgba(26, 35, 126, 0.12);
}

.checklist-ops-confirm-all-btn {
  margin-left: auto;
  border-color: var(--success-500);
  color: var(--success-700);
  background: var(--success-50);
}

.checklist-ops-confirm-all-btn:hover {
  background: var(--success-100);
  border-color: var(--success-600);
}

.checklist-ops-confirm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border: 1px solid var(--success-500);
  border-radius: var(--radius-md);
  background: var(--success-50);
  color: var(--success-700);
  cursor: pointer;
}

.checklist-ops-confirm-btn:hover {
  background: var(--success-100);
}

.checklist-ops-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.checklist-ops-row {
  border-bottom: 1px solid var(--gray-200);
  background: var(--color-bg-surface);
}

.checklist-ops-row:last-child {
  border-bottom: none;
}

.checklist-ops-row--pending {
  border-left: 3px solid var(--gray-300);
}

.checklist-ops-row--review {
  border-left: 3px solid var(--warning-500);
  background: #fffbf7;
}

.checklist-ops-row--complete {
  border-left: 3px solid var(--success-500);
  background: var(--success-50);
}

.checklist-ops-row-head {
  display: flex;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
}

.checklist-ops-index {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-600);
}

.checklist-ops-row--review .checklist-ops-index {
  background: var(--warning-100);
  color: var(--warning-600);
}

.checklist-ops-row--complete .checklist-ops-index {
  background: var(--success-500);
  color: #fff;
}

.checklist-ops-row-content {
  flex: 1;
  min-width: 0;
}

.checklist-ops-row-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.checklist-ops-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-main);
  line-height: 1.35;
  margin: 0;
}

.checklist-ops-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

.checklist-ops-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: 1px solid transparent;
}

.checklist-ops-badge-prefill {
  color: #4338ca;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.checklist-ops-badge-pending {
  color: var(--gray-600);
  background: var(--gray-100);
  border-color: var(--gray-200);
}

.checklist-ops-badge-review {
  color: var(--warning-600);
  background: var(--warning-50);
  border-color: var(--warning-100);
}

.checklist-ops-badge-complete {
  color: var(--success-700);
  background: var(--success-50);
  border-color: var(--success-100);
}

.checklist-ops-answers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.checklist-ops-answer-option {
  cursor: pointer;
  margin: 0;
}

.checklist-ops-answer-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--color-bg-surface);
  color: var(--gray-600);
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.checklist-ops-answer-chip:hover {
  border-color: var(--color-primary-brand);
}

.checklist-ops-answer-chip.is-selected {
  background: var(--color-primary-brand);
  border-color: var(--color-primary-brand);
  color: #fff;
}

.checklist-ops-note-block {
  margin-top: 0.375rem;
}

.checklist-ops-note-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-brand);
  cursor: pointer;
}

.checklist-ops-note-toggle:hover {
  text-decoration: underline;
}

.checklist-ops-note-field {
  margin-top: 0.375rem;
}

.checklist-ops-note-block.is-open .checklist-ops-note-field {
  display: block !important;
}

.checklist-ops-textarea {
  min-height: 2.25rem;
  resize: vertical;
}

.checklist-ops-footer {
  margin-top: 0.25rem;
}

.checklist-ops-row.is-filtered-out {
  display: none;
}

@media (max-width: 640px) {
  .checklist-ops-row-top {
    flex-direction: column;
  }
}

.claims-form-ops-permit-row {
  padding: 0.75rem !important;
}

/* ============================================
   Grid Layouts
   ============================================ */
.claims-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

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

/* ============================================
   Empty States
   ============================================ */
.claims-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gray-300);
}

.claims-empty-state-icon {
  font-size: 3rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.claims-listing-shell {
  background: var(--color-bg-surface);
  border: 1px solid var(--border-color-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.claims-listing-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-600);
  font-size: 0.82rem;
  font-weight: 600;
}

.claims-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.claims-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.claims-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.claims-table td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  color: var(--gray-700);
  font-size: 0.875rem;
}

.claims-table-row {
  cursor: pointer;
  transition: background-color 0.16s ease, box-shadow 0.16s ease;
}

.claims-table-row:focus {
  outline: 2px solid rgba(26, 35, 126, 0.25);
  outline-offset: -2px;
}

.claims-table-row:hover {
  background: var(--gray-50) !important;
}

.claims-row-primary-link {
  color: var(--color-primary-brand) !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.claims-row-primary-link:hover {
  color: var(--color-primary-action) !important;
  background: transparent !important;
}

.claims-table-value {
  color: var(--gray-900);
  font-weight: 600;
}

.claims-table-progress {
  min-width: 150px;
}

.claims-table-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  color: var(--gray-600);
  font-size: 0.72rem;
  font-weight: 700;
}

.claims-table-open {
  width: 1%;
  color: var(--gray-400) !important;
  text-align: right;
}

.claims-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.claims-pagination nav,
.claims-pagination .pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid var(--border-color-default);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.claims-pagination a,
.claims-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  border: 1px solid var(--gray-200) !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: var(--gray-700) !important;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
}

.claims-pagination .current,
.claims-pagination span.current {
  border-color: var(--color-primary-brand) !important;
  background: var(--color-primary-brand) !important;
  color: #fff !important;
}

.claims-pagination a:hover {
  border-color: var(--color-primary-brand) !important;
  color: var(--color-primary-brand) !important;
}

/* ============================================
   Utility Classes
   ============================================ */
.claims-gradient-bg {
  background: var(--color-bg-surface) !important; /* White background */
  background-color: var(--color-bg-surface) !important; /* Fallback */
}

.claims-profile-header {
  overflow: visible;
  position: relative;
  z-index: 20;
}

.claims-profile-breadcrumb {
  display: flex;
  align-items: center;
}

.claims-profile-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gray-600) !important;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: color 0.2s ease-in-out;
}

.claims-profile-back-link:hover {
  color: var(--color-primary-brand) !important;
}

.claims-profile-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 30;
}

.claims-profile-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.claims-claim-prefix {
  color: var(--gray-500) !important;
  font-family: inherit !important;
  font-size: 1em !important;
  font-weight: 700 !important;
  letter-spacing: inherit !important;
}

.claims-profile-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  min-width: 0;
}

.claims-profile-meta-row > div {
  min-width: 0;
}

.claims-profile-meta-value {
  overflow-wrap: anywhere;
}

/* ============================================
   Claim profile layout (sidebar + sticky chrome)
   ============================================ */
:root {
  --navbar-height: 4rem;
  --claim-sidebar-top: var(--navbar-height);
}

.claim-profile-page {
  --claim-chrome-gap: 0px;
}

/* ============================================
   Generic modal component
   ============================================ */
.app-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.app-modal:not(.hidden) {
  display: flex;
}

.app-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.app-modal-dialog {
  position: relative;
  margin: 0 auto;
  width: min(95vw, 560px);
  max-height: calc(100vh - 2rem);
  background: #fff;
  border-radius: var(--radius-lg, 0.5rem);
  overflow: hidden;
  box-shadow: var(--shadow-xl, 0 25px 50px -12px rgba(0,0,0,0.25));
  display: flex;
  flex-direction: column;
}

.app-modal-dialog--wide { width: min(95vw, 900px); }
.app-modal-dialog--narrow { width: min(95vw, 420px); }

.app-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color-default, #e5e7eb);
}

.app-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.app-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-color-default, #e5e7eb);
  background: var(--gray-50, #f9fafb);
}

.app-modal-body-lock {
  overflow: hidden;
}

/* Let the claim profile workspace use the full viewport width so wide tables
   (e.g. the repair estimates & invoices table with workshop names) have room
   to breathe instead of being clipped by the global container's max-width. */
main:has(> .claim-profile-page),
main:has(.claim-profile-page) {
  max-width: none !important;
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 1280px) {
  main:has(.claim-profile-page) {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Repair invoice items editor + parts master: wider than default container, with comfortable side gutters. */
main:has(> .invoice-items-edit-page),
main:has(.invoice-items-edit-page),
main:has(> .parts-master-sub-categories-page),
main:has(.parts-master-sub-categories-page) {
  max-width: none !important;
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  main:has(.invoice-items-edit-page),
  main:has(.parts-master-sub-categories-page) {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  main:has(.invoice-items-edit-page),
  main:has(.parts-master-sub-categories-page) {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.invoice-items-edit-page,
.parts-master-sub-categories-page {
  max-width: 100rem;
  margin-left: auto;
  margin-right: auto;
}

#save-bar:has(.invoice-items-edit-page-bar),
#save-bar:has(.parts-master-sub-categories-page-bar) {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 768px) {
  #save-bar:has(.invoice-items-edit-page-bar),
  #save-bar:has(.parts-master-sub-categories-page-bar) {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  #save-bar:has(.invoice-items-edit-page-bar),
  #save-bar:has(.parts-master-sub-categories-page-bar) {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.invoice-items-edit-page-bar,
.parts-master-sub-categories-page-bar {
  width: 100%;
  max-width: 100rem;
  margin-left: auto;
  margin-right: auto;
}

/* Parts master table: subtle grid lines (matches repair invoice items editor) */
.parts-master-sub-categories-page table.parts-master-table th,
.parts-master-sub-categories-page table.parts-master-table td {
  border-color: #e5e7eb !important;
  border-width: 1px !important;
}

.parts-master-sub-categories-page table.parts-master-table thead th {
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.claim-sticky-chrome {
  position: sticky;
  top: var(--navbar-height);
  z-index: 35;
  margin-bottom: 1rem;
  background: var(--color-bg-page, #f3f4f6);
  padding-bottom: 0.25rem;
}

.claim-sticky-chrome .claims-profile-breadcrumb {
  margin-bottom: 0.75rem;
}

.claim-sticky-chrome .claims-profile-header {
  margin-bottom: 0 !important;
}

.claim-workspace-main .claim-section-subtabs {
  position: sticky;
  top: var(--claim-sidebar-top);
  z-index: 20;
  margin-bottom: 1rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--border-color-default, #e5e7eb);
  border-radius: var(--radius-lg, 0.5rem);
  box-shadow: var(--shadow-sm);
  padding: 0 0.75rem;
}

.claim-section-subtabs-nav {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--border-color-default, #e5e7eb);
  min-height: 2.75rem;
  align-items: stretch;
}

.claim-section-subtab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted) !important;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
  font-family: 'Inter', 'Roboto', sans-serif;
}

.claim-section-subtab:hover {
  color: var(--color-text-main) !important;
  border-bottom-color: var(--border-color-default, #e5e7eb);
}

.claim-section-subtab-active,
.claim-section-subtab.accident-tab-active,
.claim-section-subtab.assessment-module-tab-active {
  color: var(--color-primary-brand) !important;
  border-bottom-color: var(--color-primary-action) !important;
  font-weight: 700 !important;
}

.claim-section-subtab-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: 0.375rem;
}

.claim-workspace {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 0;
}

.claim-sidebar {
  flex: 0 0 11.5rem;
  width: 11.5rem;
  position: sticky;
  top: var(--claim-sidebar-top);
  z-index: 25;
  align-self: flex-start;
  max-height: calc(100vh - var(--claim-sidebar-top) - 1rem);
}

.claim-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem;
  max-height: inherit;
  overflow-y: auto;
  background: var(--color-bg-surface);
  border: 1px solid var(--border-color-default, #e5e7eb);
  border-radius: var(--radius-lg, 0.5rem);
  box-shadow: var(--shadow-sm);
}

.claim-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted) !important;
  text-decoration: none !important;
  border-radius: var(--radius-md, 0.375rem);
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.claim-sidebar-link i {
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.claim-sidebar-link:hover {
  background: var(--gray-50, #f9fafb);
  color: var(--color-text-main) !important;
}

.claim-sidebar-link-active {
  background: rgba(30, 58, 95, 0.06);
  color: var(--color-primary-brand) !important;
  font-weight: 700 !important;
  border-left-color: var(--color-primary-action) !important;
}

.claim-sidebar-link-active i {
  color: var(--color-primary-brand) !important;
}

.claim-workspace-main {
  flex: 1;
  min-width: 0;
}

.claim-workspace-sticky-panel {
  position: sticky;
  top: calc(var(--claim-sidebar-top) + 0.5rem);
  z-index: 10;
}

.claims-shadow-sm {
  box-shadow: var(--shadow-sm);
}

.claims-shadow-md {
  box-shadow: var(--shadow-md);
}

.claims-shadow-lg {
  box-shadow: var(--shadow-lg);
}

.claims-transition {
  transition: all 0.2s ease-in-out;
}

/* ============================================
   Tailwind-Compatible Utility Classes
   ============================================ */

/* Text Colors */
.text-primary-600 {
  color: var(--primary-600) !important;
}

.text-primary-700 {
  color: var(--primary-700) !important;
}

.text-primary-800 {
  color: var(--primary-800) !important;
}

.text-success-600 {
  color: var(--success-600) !important;
}

.text-success-700 {
  color: var(--success-700) !important;
}

.text-warning-600 {
  color: var(--warning-600) !important;
}

.text-error-600 {
  color: var(--error-600) !important;
}

.text-info-600 {
  color: var(--info-600) !important;
}

/* Background Colors */
.bg-primary-50 {
  background-color: var(--primary-50) !important;
}

.bg-primary-100 {
  background-color: var(--primary-100) !important;
}

.bg-primary-600 {
  background-color: var(--color-primary-brand) !important; /* Brand color */
}

.bg-primary-700 {
  background-color: var(--primary-700) !important;
}

.bg-primary-800 {
  background-color: var(--primary-800) !important;
}

.bg-success-50 {
  background-color: var(--success-50) !important;
}

.bg-success-100 {
  background-color: var(--success-100) !important;
}

.bg-success-500 {
  background-color: var(--success-500) !important;
}

.bg-success-600 {
  background-color: var(--success-600) !important;
}

.bg-warning-50 {
  background-color: var(--warning-50) !important;
}

.bg-warning-100 {
  background-color: var(--warning-100) !important;
}

.bg-warning-500 {
  background-color: var(--warning-500) !important;
}

.bg-error-50 {
  background-color: var(--error-50) !important;
}

.bg-error-100 {
  background-color: var(--error-100) !important;
}

.bg-error-500 {
  background-color: var(--error-500) !important;
}

.bg-info-50 {
  background-color: var(--info-50) !important;
}

.bg-info-100 {
  background-color: var(--info-100) !important;
}

.bg-blue-50 {
  background-color: var(--primary-50) !important;
}

.bg-blue-100 {
  background-color: var(--primary-100) !important;
}

.bg-green-50 {
  background-color: var(--success-50) !important;
}

.bg-green-100 {
  background-color: var(--success-100) !important;
}

.bg-purple-50 {
  background-color: #faf5ff !important;
}

.bg-purple-100 {
  background-color: #f3e8ff !important;
}

.bg-orange-50 {
  background-color: var(--warning-50) !important;
}

.bg-orange-100 {
  background-color: var(--warning-100) !important;
}

/* Hover States */
.hover\:bg-primary-700:hover {
  background-color: var(--primary-700) !important;
}

.hover\:bg-primary-800:hover {
  background-color: var(--primary-800) !important;
}

.hover\:text-primary-700:hover {
  color: var(--primary-700) !important;
}

.hover\:text-primary-800:hover {
  color: var(--primary-800) !important;
}

.hover\:bg-gray-50:hover {
  background-color: var(--gray-50) !important;
}

.hover\:bg-gray-100:hover {
  background-color: var(--gray-100) !important;
}

.hover\:bg-blue-100:hover {
  background-color: var(--primary-100) !important;
}

.hover\:bg-green-100:hover {
  background-color: var(--success-100) !important;
}

/* Border Colors */
.border-primary-500 {
  border-color: var(--primary-500) !important;
}

.border-primary-600 {
  border-color: var(--primary-600) !important;
}

.border-success-500 {
  border-color: var(--success-500) !important;
}

.border-warning-500 {
  border-color: var(--warning-500) !important;
}

.border-error-500 {
  border-color: var(--error-500) !important;
}

.border-blue-100 {
  border-color: var(--primary-100) !important;
}

.border-green-100 {
  border-color: var(--success-100) !important;
}

.border-purple-100 {
  border-color: #f3e8ff !important;
}

/* Text Colors for Icons */
.text-blue-600 {
  color: var(--color-primary-brand) !important; /* Brand color */
}

.text-primary-600 {
  color: var(--color-primary-brand) !important; /* Brand color */
}

/* Data Labels and Values - PARAKH Brand */
.claims-data-label {
  color: var(--color-text-muted) !important;
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 0.875rem;
}

.claims-data-value {
  color: var(--color-text-main) !important;
  font-weight: 600; /* Semi-bold */
  font-family: 'Inter', 'Roboto', sans-serif;
}

.text-green-600 {
  color: var(--success-600) !important;
}

.text-purple-600 {
  color: var(--accent-purple) !important;
}

.text-orange-600 {
  color: var(--warning-600) !important;
}

/* ============================================
   Page Background - PARAKH Brand
   ============================================ */
body {
  background: var(--color-bg-body) !important; /* Light Grey background */
  background-attachment: fixed !important;
  min-height: 100vh !important;
  font-family: 'Inter', 'Roboto', sans-serif;
}

/* Ensure main content area has proper background */
main.container {
  background: transparent !important;
}

/* Add subtle pattern overlay for depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   Assessment Tabs
   ============================================ */
.assessment-tab {
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: var(--gray-500);
  transition: all 0.2s ease-in-out;
  background: transparent;
  cursor: pointer;
}

.assessment-tab:hover {
  color: var(--gray-700);
  border-bottom-color: var(--gray-300);
}

.assessment-tab-active {
  border-bottom-color: var(--color-primary-action) !important; /* Orange underline */
  color: var(--color-primary-brand) !important; /* Brand color text */
  font-weight: 700 !important; /* Bold */
}

/* Ensure Tailwind classes work with our theme */
.assessment-tab.border-primary-600 {
  border-bottom-color: var(--color-primary-action) !important; /* Orange underline */
}

.assessment-tab.text-primary-600 {
  color: var(--color-primary-brand) !important; /* Brand color text */
}

.assessment-content {
  animation: fadeIn 0.2s ease-in-out;
}

/* ============================================
   Accident Tabs
   ============================================ */
.accident-tab {
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: var(--gray-500);
  transition: all 0.2s ease-in-out;
  background: transparent;
  cursor: pointer;
}

.accident-tab:hover {
  color: var(--gray-700);
  border-bottom-color: var(--gray-300);
}

.accident-tab-active {
  border-bottom-color: var(--color-primary-action) !important; /* Orange underline */
  color: var(--color-primary-brand) !important; /* Brand color text */
  font-weight: 700 !important; /* Bold */
}

.accident-tab-content {
  animation: fadeIn 0.2s ease-in-out;
}

.accident-tab.border-primary-600 {
  border-bottom-color: var(--color-primary-action) !important; /* Orange underline */
}

.accident-tab.text-primary-600 {
  color: var(--color-primary-brand) !important; /* Brand color text */
}

/* ============================================
   Document Tabs
   ============================================ */
.document-tab {
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  color: var(--gray-500);
  transition: all 0.2s ease-in-out;
  background: transparent;
  cursor: pointer;
}

.document-tab:hover {
  color: var(--gray-700);
  border-bottom-color: var(--gray-300);
}

.document-tab-active {
  border-bottom-color: var(--color-primary-action) !important; /* Orange underline */
  color: var(--color-primary-brand) !important; /* Brand color text */
  font-weight: 700 !important; /* Bold */
}

.document-tab-content {
  animation: fadeIn 0.2s ease-in-out;
}

.document-tab.border-primary-600 {
  border-bottom-color: var(--color-primary-action) !important; /* Orange underline */
}

.document-tab.text-primary-600 {
  color: var(--color-primary-brand) !important; /* Brand color text */
}

/* ============================================
   Photos Page
   ============================================ */
.photo-drop-zone {
  border: 2px dashed var(--border-color-default);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
  padding: 1rem;
}

.photo-drop-zone-active {
  border-color: var(--color-primary-brand);
  background: var(--primary-50);
}

.photo-drop-zone-inner {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.photo-selection-list {
  max-height: 110px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  padding: 0.45rem 0.55rem;
  line-height: 1.35;
}

.documents-selected-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 0.75rem;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: visible;
  position: relative;
  z-index: 20;
}

.documents-selected-list.hidden,
#documents-selection-errors.hidden,
#documents-upload-partial-result.hidden,
#documents-retry-failed-btn.hidden,
#documents-remove-all-btn.hidden,
#photo-remove-all-btn.hidden {
  display: none !important;
}

#documents-upload-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  transform: none !important;
}

.documents-selected-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(220px, 280px) auto;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  padding: 0.55rem;
  position: relative;
  z-index: 1;
}

.documents-selected-item:focus-within {
  z-index: 60;
}

.documents-selected-item-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.3rem;
  border: 1px solid var(--gray-200);
  background: #fff;
}

.documents-selected-item-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
}

.documents-selected-item-main {
  min-width: 0;
}

.documents-selected-remove-btn {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-300);
  border-radius: 9999px;
  background: #fff;
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.documents-selected-remove-btn:hover {
  border-color: var(--error-500);
  color: var(--error-600);
  background: var(--error-50);
}

.documents-selected-item-category {
  min-width: 0;
}

.documents-parent-group {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 0.75rem;
}

.documents-parent-group-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.documents-category-group {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  padding: 0.65rem;
}

.documents-category-group-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.documents-category-toggle {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.documents-category-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.documents-required-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--gray-300);
  border-radius: 9999px;
  background: #fff;
  color: var(--gray-600);
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.documents-required-toggle:hover {
  border-color: var(--color-primary-brand);
  color: var(--color-primary-brand);
}

.documents-required-toggle-active {
  border-color: var(--warning-500);
  background: var(--warning-50);
  color: var(--warning-700);
}

.documents-required-toggle:disabled {
  opacity: 0.65;
  cursor: wait;
}

.documents-accordion-icon {
  color: var(--color-primary-brand);
  font-size: 0.78rem;
  transition: transform 0.15s ease;
}

.documents-parent-group[data-documents-accordion-collapsed="true"] .documents-parent-group-header,
.documents-category-group[data-documents-accordion-collapsed="true"] .documents-category-group-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

.documents-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 0.55rem;
}

.documents-summary-row-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.documents-filename-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.documents-filename-display {
  display: inline-block;
  max-width: 100%;
  color: var(--gray-900);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline dotted;
  text-underline-offset: 0.18rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.documents-filename-edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border: 0;
  background: transparent;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.documents-filename-edit-btn:hover {
  color: var(--color-primary-brand);
}

.documents-filename-edit {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}

.documents-filename-edit.hidden {
  display: none;
}

.documents-filename-input {
  min-width: 220px;
  max-width: min(360px, 100%);
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  font-size: 0.82rem !important;
}

.documents-filename-save-btn,
.documents-filename-cancel-btn {
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  background: #fff;
  color: var(--gray-700);
  padding: 0.35rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.documents-filename-save-btn {
  border-color: var(--color-primary-brand);
  color: var(--color-primary-brand);
}

.documents-filename-save-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.documents-summary-row-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.documents-inline-category-select {
  width: 190px;
  min-width: 150px;
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
  font-size: 0.75rem !important;
}

.documents-summary-row-actions .ts-wrapper {
  width: 210px;
  min-width: 170px;
}

.documents-summary-row-actions .ts-control {
  min-height: 2rem;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.75rem;
  border-radius: 4px;
}

.documents-summary-row-actions .ts-dropdown {
  font-size: 0.78rem;
  z-index: 90;
}

.documents-summary-row-actions .ts-dropdown .optgroup-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--gray-100);
  color: var(--color-primary-brand);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.45rem 0.65rem !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: default;
}

.documents-summary-row-actions .ts-dropdown .option {
  padding: 0.5rem 0.75rem 0.5rem 1rem !important;
  color: var(--gray-800);
  background: #fff;
}

.documents-summary-row-actions .ts-dropdown .option.active,
.documents-summary-row-actions .ts-dropdown .option:hover {
  background: var(--primary-50);
  color: var(--color-primary-brand);
}

.documents-summary-row-actions .ts-dropdown .optgroup + .optgroup {
  margin-top: 0.25rem;
}

.documents-row-icon-btn {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-300) !important;
  border-radius: 4px !important;
  background: #fff !important;
  padding: 0 !important;
}

.documents-empty-category-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--gray-500);
  font-size: 0.82rem;
}

.document-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.document-preview-modal.hidden {
  display: none;
}

.document-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
}

.document-preview-dialog {
  position: relative;
  margin: 2rem auto;
  width: min(96vw, 980px);
  max-height: calc(100vh - 4rem);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.document-preview-header,
.document-preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.document-preview-footer {
  justify-content: flex-end;
  border-bottom: 0;
  border-top: 1px solid var(--gray-200);
}

.document-preview-body {
  height: min(72vh, 760px);
  min-height: 360px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.document-preview-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.document-preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.document-preview-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.document-preview-fallback.hidden {
  display: none;
}

.documents-selected-item-category .ts-wrapper {
  width: 100%;
}

.documents-selected-item-category .ts-control {
  min-height: 2.25rem;
  padding: 0.35rem 0.55rem !important;
  font-size: 0.82rem;
  border-radius: 4px;
}

body > .ts-dropdown {
  z-index: 9999;
}

body > .documents-bulk-category-dropdown .optgroup-header {
  background: var(--gray-100);
  color: var(--color-primary-brand);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.45rem 0.65rem !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: default;
}

body > .documents-bulk-category-dropdown .option {
  padding: 0.5rem 0.75rem 0.5rem 1rem !important;
  color: var(--gray-800);
  background: #fff;
}

body > .documents-bulk-category-dropdown .option.active,
body > .documents-bulk-category-dropdown .option:hover {
  background: var(--primary-50);
  color: var(--color-primary-brand);
}

.documents-selected-item-category .ts-dropdown {
  font-size: 0.82rem;
  z-index: 140;
}

.documents-selected-item-category .ts-dropdown .optgroup-header {
  background: var(--gray-100);
  color: var(--color-primary-brand);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.45rem 0.65rem !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: default;
}

.documents-selected-item-category .ts-dropdown .option {
  padding: 0.5rem 0.75rem 0.5rem 1rem !important;
  color: var(--gray-800);
  background: #fff;
}

.documents-selected-item-category .ts-dropdown .option.active,
.documents-selected-item-category .ts-dropdown .option:hover {
  background: var(--primary-50);
  color: var(--color-primary-brand);
}

.app-toast-container,
.documents-toast-container {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.app-toast,
.documents-toast {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: min(420px, calc(100vw - 2rem));
  border: 1px solid var(--success-500);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--success-700);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast-error {
  border-color: var(--danger-500);
  color: var(--danger-700);
}

.app-toast-visible,
.documents-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.photo-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.photo-filter-actions {
  display: flex;
  gap: 0.5rem;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.photo-bulk-toolbar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(1120px, calc(100vw - 2rem));
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #0b163f;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #111a4b, #1a237e);
  box-shadow: 0 18px 38px rgba(10, 15, 36, 0.38);
  padding: 0.75rem;
  padding-right: 2.25rem;
}

.photo-bulk-toolbar.hidden {
  display: none;
}

.photo-selection-mode-enabled {
  padding-bottom: 7rem;
}

.photo-page-card:hover {
  transform: none;
}

.photo-bulk-toolbar > div {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  padding: 0.45rem 0.5rem;
}

.photo-bulk-toolbar-close {
  position: absolute;
  top: 0.4rem;
  right: 0.45rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.photo-bulk-toolbar-close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.photo-bulk-toolbar [data-photo-selected-count] {
  color: #fff !important;
  font-size: 0.83rem;
}

.photo-bulk-toolbar .claims-btn-secondary {
  background: #fff !important;
  color: var(--color-primary-brand) !important;
  border: 1px solid rgba(26, 35, 126, 0.25) !important;
}

.photo-bulk-toolbar .claims-btn-secondary:hover {
  background: #eef2ff !important;
}

.photo-bulk-toolbar [data-photo-bulk-category-select] {
  background: #fff;
  border: 1px solid rgba(26, 35, 126, 0.25);
}

.photo-bulk-delete-btn {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.photo-bulk-delete-btn:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.photo-card {
  border: 1px solid var(--border-color-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-surface);
  position: relative;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.photo-selection-mode-enabled .photo-preview-trigger {
  cursor: pointer;
}

.photo-selection-indicator {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 9999px;
  border: 1px solid var(--gray-300);
  background: #fff;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  z-index: 2;
}

.photo-selection-mode-enabled .photo-selection-indicator {
  display: inline-flex;
}

.photo-card-selected {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.photo-card-selected .photo-selection-indicator {
  border-color: var(--primary-600);
  background: var(--primary-600);
}

.photo-selection-mode-enabled .photo-card-inline-actions {
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 767px) {
  .claims-listing-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .claims-table-wrap {
    overflow-x: visible;
  }

  .claims-table,
  .claims-table thead,
  .claims-table tbody,
  .claims-table th,
  .claims-table td,
  .claims-table tr {
    display: block;
  }

  .claims-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .claims-table tbody tr {
    margin: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .claims-table tbody tr:hover {
    background: #fff !important;
  }

  .claims-table td {
    display: grid;
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .claims-table td::before {
    content: attr(data-label);
    color: var(--gray-500);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .claims-table td:first-child {
    grid-template-columns: 1fr auto;
    background: var(--gray-50);
  }

  .claims-table td:first-child::before {
    content: "";
    display: none;
  }

  .claims-table td:last-child {
    display: none;
  }

  .claims-table-progress {
    min-width: 0;
  }

  .claims-pagination nav,
  .claims-pagination .pagination {
    width: 100%;
  }

  .documents-selected-item {
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .documents-selected-item-thumb {
    width: 54px;
    height: 54px;
  }

  .documents-selected-item-category {
    grid-column: 1 / -1;
  }

  .documents-summary-row {
    grid-template-columns: 1fr;
  }

  .documents-summary-row-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .documents-inline-category-select {
    width: 100%;
    min-width: 0;
  }

  .documents-summary-row-actions .ts-wrapper {
    width: 100%;
    min-width: 0;
  }

  .document-preview-dialog {
    margin: 0.75rem auto;
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1.5rem);
  }

  .document-preview-body {
    min-height: 280px;
    height: 65vh;
  }

  .photo-bulk-toolbar {
    width: calc(100vw - 1rem);
    bottom: 0.5rem;
    padding: 0.55rem;
    gap: 0.5rem;
  }

  .photo-bulk-toolbar > div {
    width: 100%;
  }

  .photo-selection-mode-enabled {
    padding-bottom: 9.5rem;
  }
}

.photo-preview-trigger {
  width: 100%;
  display: block;
  border: none;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-thumbnail {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: var(--gray-100);
}

.photo-card-body {
  padding: 0.625rem;
}

.photo-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-height: 1.5rem;
}

.photo-tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  background: var(--primary-100);
  color: var(--color-primary-brand);
}

.photo-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.photo-preview-modal:not(.hidden) {
  display: flex;
}

.photo-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.photo-preview-dialog {
  position: relative;
  margin: 0 auto;
  width: min(95vw, 900px);
  max-height: calc(100vh - 2rem);
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}

.photo-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color-default);
  padding: 0.75rem 1rem;
}

.photo-preview-body {
  overflow: hidden;
  padding: 0.75rem;
  position: relative;
}

.photo-preview-image {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
  background: var(--gray-100);
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.18s ease;
  cursor: zoom-in;
}

.photo-preview-image.is-zoomed {
  transform: scale(1.9);
  cursor: zoom-out;
}

.photo-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 76%) minmax(0, 24%);
  gap: 0.75rem;
  height: calc(100vh - 220px);
  max-height: 64vh;
}

.photo-preview-image-panel {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.photo-preview-sidebar {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 0.7rem;
  overflow-y: auto;
  min-height: 0;
}

.photo-preview-meta p {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--gray-700);
}

.photo-preview-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-height: 1.5rem;
}

.photo-tag-chip-remove {
  margin-left: 0.25rem;
  background: transparent;
  border: 0;
  color: inherit;
  line-height: 1;
  font-size: 0.72rem;
  cursor: pointer;
}

.photo-preview-image-actions {
  width: 100%;
  padding: 0.5rem;
  border-top: 1px solid var(--gray-200);
  background: #fff;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.photo-inline-action-btn {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  text-decoration: none !important;
  font-size: 0.78rem;
}

.photo-inline-action-btn:hover {
  background: var(--gray-100);
}

.photo-preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 9999px;
  border: 1px solid var(--gray-300);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.photo-preview-nav-prev {
  left: 1.2rem;
}

.photo-preview-nav-next {
  right: 1.2rem;
}

.photo-upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
}

.photo-upload-overlay:not(.hidden) {
  display: flex;
}

.photo-upload-overlay-content {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 280px;
  max-width: min(520px, calc(100vw - 2rem));
  padding: 0.95rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--color-primary-brand);
  font-weight: 600;
}

.photo-upload-overlay-details {
  flex: 1;
  min-width: 0;
}

.photo-upload-overlay-details p {
  margin: 0;
}

.photo-upload-progress-track {
  margin-top: 0.5rem;
  width: 100%;
  height: 0.45rem;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.photo-upload-progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-action), #ff9b47);
  transition: width 0.2s ease-out;
}

.photo-upload-progress-text {
  margin-top: 0.35rem !important;
  font-size: 0.75rem;
  color: var(--gray-600);
}

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

/* ============================================
   Navigation Bar Theme - PARAKH Brand
   ============================================ */
.navbar-theme {
  background: var(--color-primary-brand) !important; /* Brand color background */
  backdrop-filter: blur(10px);
  color: white !important; /* White text and icons */
}

.navbar-inner {
  position: relative;
}

.navbar-logo {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.navbar-brand-text {
  display: none;
}

@media (min-width: 768px) {
  .navbar-brand-text {
    display: block;
  }
}

.mobile-navbar-brand-text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

@media (min-width: 768px) {
  .mobile-navbar-brand-text {
    display: none;
  }
}

.navbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white !important;
  border-radius: var(--radius-md);
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.navbar-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white !important;
}

.navbar-link-active {
  background-color: rgba(255, 255, 255, 0.15);
  color: white !important;
  font-weight: 600;
}

.navbar-link-active i {
  color: white !important;
}

.navbar-btn-logout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white !important;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.navbar-btn-logout:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: white !important;
}

.navbar-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  color: white !important;
  transition: all 0.2s ease-in-out;
}

.navbar-user-toggle:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.dropdown[data-controller="dropdown"][data-dropdown-open="true"] .navbar-user-toggle {
  background-color: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
}

.navbar-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
}

.navbar-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.navbar-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: white !important;
}

.navbar-user-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Dropdown Menu Styles */
.dropdown-menu {
  animation: fadeIn 0.15s ease-out;
}

.claim-actions-menu {
  min-width: 18rem;
  z-index: 2000 !important;
}

.claim-actions-group {
  padding: 0.35rem 0;
}

.claim-actions-group-label {
  padding: 0.45rem 1rem 0.25rem;
  color: var(--gray-500);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.claim-action-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.claim-action-disabled:hover {
  background: #FFFFFF !important;
}

.dropdown-item {
  position: relative;
}

.dropdown-item:hover i {
  color: var(--primary-600);
}

.dropdown-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--gray-700) !important;
  background: #FFFFFF !important;
  border: 0;
  text-align: left;
  transition: all 0.2s ease-in-out;
}

.dropdown-item-btn:hover {
  background-color: var(--primary-50) !important;
}

.dropdown-item-danger {
  color: #DC2626 !important;
}

.dropdown-item-danger i {
  color: #DC2626 !important;
}

.dropdown-toggle .fa-chevron-down {
  transition: transform 0.2s ease-in-out;
}

.dropdown[data-controller="dropdown"][data-dropdown-open="true"] .dropdown-toggle .fa-chevron-down {
  transform: rotate(180deg);
}

/* Mobile Navigation */
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: white !important;
  border-radius: var(--radius-md);
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.mobile-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white !important;
}

.mobile-nav-link-active {
  background-color: rgba(255, 255, 255, 0.15);
  color: white !important;
  font-weight: 600;
}

.mobile-nav-link-active i {
  color: white !important;
}

.mobile-nav-section {
  margin-top: 0.5rem;
}

.mobile-nav-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
}

.mobile-nav-section-items {
  padding-left: 1rem;
}

/* ============================================
   Footer Theme
   ============================================ */
.portal-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.footer-theme {
  width: 100%;
  flex-shrink: 0;
  margin-top: 2rem;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.footer-theme-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.625rem 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.footer-brand-icon {
  height: 1.5rem;
  width: auto;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-brand-name {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary-brand);
}

.footer-brand-tagline {
  font-size: 0.6875rem;
  color: var(--gray-500);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--gray-500);
}

.footer-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.footer-meta-item i {
  color: var(--gray-400);
  font-size: 0.6875rem;
}

.footer-copyright {
  width: 100%;
  margin: 0;
  font-size: 0.6875rem;
  color: var(--gray-500);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-theme-inner {
    flex-wrap: nowrap;
    padding: 0.5rem 1.5rem;
    gap: 1rem;
  }

  .footer-copyright {
    width: auto;
    flex-shrink: 0;
    text-align: right;
    white-space: nowrap;
  }

  .footer-meta {
    flex-shrink: 0;
  }
}

.footer-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
}

.footer-link-inline:hover {
  color: var(--primary-600);
  background-color: var(--primary-50);
}

.footer-link-inline i {
  color: var(--gray-400);
  transition: color 0.2s ease-in-out;
}

.footer-link-inline:hover i {
  color: var(--primary-600);
}

@media (max-width: 768px) {
  .claims-profile-header {
    padding: 0.9rem !important;
    margin-bottom: 1rem !important;
  }

  .claims-profile-title-row .claims-heading-1 {
    font-size: 1.1rem !important;
    line-height: 1.3 !important;
  }

  .claims-profile-header-actions {
    width: 100%;
  }

  .claims-profile-header-actions .dropdown {
    width: 100%;
    position: relative;
  }

  .claims-profile-header-actions .claims-btn {
    width: 100%;
    justify-content: center !important;
  }

  .claims-profile-header-actions .claim-actions-menu {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .claim-workspace {
    flex-direction: column;
    gap: 0.75rem;
  }

  .claim-sidebar {
    position: static;
    width: 100%;
    max-height: none;
    flex: none;
  }

  .claim-sidebar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.375rem;
  }

  .claim-sidebar-link {
    flex-shrink: 0;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .claim-sidebar-link-active {
    border-left: none;
    border-bottom-color: var(--color-primary-action) !important;
  }

  .claim-sticky-chrome {
    top: var(--navbar-height);
  }

  .claim-section-subtabs-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .photo-preview-modal {
    align-items: center;
    padding: 1rem 0.75rem;
    overflow-y: auto;
  }

  .photo-preview-dialog {
    width: min(100%, calc(100vw - 1.5rem));
    max-height: calc(100dvh - 2rem);
    margin: 0 auto;
  }

  .footer-theme {
    margin-top: 1.25rem;
  }

  .footer-theme-inner {
    padding: 0.5rem 0.75rem;
  }

  .footer-meta {
    margin-left: 0;
    width: 100%;
  }
  
  .footer-link-inline {
    font-size: 0.8125rem;
    padding: 0.375rem 0.5rem;
  }
}

/* ============================================
   Global PARAKH Brand Classes for All Pages
   ============================================ */

/* Global Page Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  color: var(--color-primary-brand);
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary-brand) !important;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-brand) !important;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-brand) !important;
}

/* Global Buttons - Override Tailwind defaults */
.btn-primary,
button[type="submit"].btn-primary,
input[type="submit"].btn-primary,
a.bg-blue-500,
a.bg-blue-600,
button.bg-blue-500,
button.bg-blue-600 {
  background-color: var(--color-primary-action) !important;
  color: white !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  font-family: 'Inter', 'Roboto', sans-serif;
  border: none !important;
  padding: 0.625rem 1.25rem !important;
  transition: all 0.2s ease-in-out !important;
}

.btn-primary:hover,
a.bg-blue-500:hover,
a.bg-blue-600:hover,
button.bg-blue-500:hover,
button.bg-blue-600:hover {
  background-color: #d84315 !important; /* Darker orange */
  transform: translateY(-1px);
}

.btn-secondary,
a.text-blue-600,
a.text-blue-700,
a.text-blue-800 {
  color: var(--color-primary-brand) !important;
  border: 1px solid var(--color-primary-brand) !important;
  background: transparent !important;
  border-radius: 4px !important;
  padding: 0.5rem 1rem !important;
  font-weight: 600 !important;
  font-family: 'Inter', 'Roboto', sans-serif;
  transition: all 0.2s ease-in-out !important;
}

.btn-secondary:hover,
a.text-blue-600:hover,
a.text-blue-700:hover,
a.text-blue-800:hover {
  background-color: rgba(26, 35, 126, 0.05) !important;
  color: var(--color-primary-brand) !important;
}

/* Neutral cancel buttons/links */
.btn-cancel,
a.bg-gray-400,
a.bg-gray-500,
button.bg-gray-400,
button.bg-gray-500 {
  background-color: #9CA3AF !important;
  color: #FFFFFF !important;
  border: 1px solid #9CA3AF !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  font-family: 'Inter', 'Roboto', sans-serif;
  padding: 0.625rem 1.25rem !important;
  transition: all 0.2s ease-in-out !important;
}

.btn-cancel:hover,
a.bg-gray-400:hover,
a.bg-gray-500:hover,
button.bg-gray-400:hover,
button.bg-gray-500:hover {
  background-color: #6B7280 !important;
  border-color: #6B7280 !important;
  color: #FFFFFF !important;
}

/* Global Cards */
.card,
.bg-white.shadow,
.bg-white.shadow-md,
.bg-white.shadow-lg {
  background: var(--color-bg-surface) !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  border: 1px solid var(--border-color-default) !important;
}

/* Global Tables */
table {
  border-radius: 6px !important;
  overflow: hidden;
}

table thead {
  background-color: var(--color-primary-brand) !important;
  color: white !important;
}

table thead th {
  color: white !important;
  font-weight: 600 !important;
  font-family: 'Inter', 'Roboto', sans-serif;
}

table tbody tr {
  border-bottom: 1px solid var(--border-color-default);
}

table tbody tr:hover {
  background-color: var(--color-bg-body) !important;
}

/* Global Form Elements */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
  border: 1px solid var(--border-color-default) !important;
  border-radius: 4px !important;
  padding: 0.625rem 0.875rem !important;
  font-family: 'Inter', 'Roboto', sans-serif;
  color: var(--color-text-main) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: var(--color-primary-brand) !important;
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1) !important;
}

/* Global Links */
a {
  color: var(--color-primary-action) !important;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #d84315 !important;
}

/* Global Badges/Pills */
.badge,
span.px-2,
span.px-3 {
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  font-family: 'Inter', 'Roboto', sans-serif;
}

.bg-blue-100.text-blue-700,
.bg-gray-200 {
  background-color: #F3F4F6 !important;
  color: #374151 !important;
}

/* Override Tailwind blue classes to use brand colors */
.bg-blue-500,
.bg-blue-600 {
  background-color: var(--color-primary-action) !important;
}

.text-blue-600,
.text-blue-700,
.text-blue-800 {
  color: var(--color-primary-brand) !important;
}

.hover\:bg-blue-600:hover {
  background-color: #d84315 !important;
}

.hover\:text-blue-800:hover {
  color: var(--color-primary-brand) !important;
}

/* ============================================
   Claims Overview - Compact Details
   ============================================ */
.claims-overview-details .claims-card-header-compact {
  padding: 1rem 1.25rem !important;
}

.claims-overview-details .claims-card-body-compact {
  padding: 0 !important;
}

.claims-detail-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) 2rem;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--color-bg-surface);
}

.claims-detail-row:last-child {
  border-bottom: 0;
}

.claims-detail-row:nth-child(even) {
  background: #FAFBFC;
}

.claims-detail-row-title {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--color-primary-brand);
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.claims-detail-row-title i {
  width: 1rem;
  color: var(--color-primary-brand);
  text-align: center;
}

.claims-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  min-width: 0;
}

.claims-detail-item {
  min-width: 0;
}

.claims-detail-label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--gray-500);
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.claims-detail-value {
  display: block;
  overflow: hidden;
  color: var(--gray-900);
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.claims-detail-empty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--warning-100);
  border-radius: var(--radius-sm);
  background: var(--warning-50);
  color: var(--warning-700);
  font-size: 0.8125rem;
  font-weight: 600;
}

.claims-detail-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  color: var(--color-primary-brand) !important;
  text-decoration: none;
}

.claims-detail-edit-link:hover {
  border-color: var(--color-primary-brand);
  background: rgba(26, 35, 126, 0.05);
  color: var(--color-primary-brand) !important;
}

@media (max-width: 1024px) {
  .claims-detail-row {
    grid-template-columns: minmax(0, 1fr) 2rem;
  }

  .claims-detail-row-title {
    grid-column: 1;
  }

  .claims-detail-grid,
  .claims-detail-empty {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .claims-detail-edit-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .claims-detail-row {
    padding: 0.85rem 1rem;
  }

  .claims-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ============================================
   Guidance UX: section state dots, AI chips, next-step CTA, follow-ups
   ============================================ */

.claim-state-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  vertical-align: middle;
  flex-shrink: 0;
}

.claim-state-dot--empty {
  background: var(--gray-300);
  border: 1px solid var(--gray-400);
}

.claim-state-dot--needs-action {
  background: var(--warning-500);
  box-shadow: 0 0 0 2px var(--warning-100);
}

.claim-state-dot--done {
  background: var(--success-500);
  box-shadow: 0 0 0 2px var(--success-100);
}

.claim-followup-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  color: white;
  background: var(--info-600);
  border-radius: 9999px;
  vertical-align: middle;
}

.claim-sidebar-link-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.claim-sidebar-link--guided {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.claim-sidebar-next-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: white;
  background: var(--color-primary-action);
  border-radius: 9999px;
  line-height: 1.2;
}

.claim-sidebar-link--next:not(.claim-sidebar-link-active) {
  background: rgba(239, 108, 0, 0.06);
  border-left: 3px solid var(--color-primary-action);
}

/* Next-step CTA card */
.claims-next-step-card {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFBEB 100%);
  border: 1px solid #FED7AA;
  border-left: 4px solid var(--color-primary-action);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(239, 108, 0, 0.08);
}

.claims-next-step-card--ready {
  background: linear-gradient(135deg, #ECFDF5 0%, #F0FDF4 100%);
  border: 1px solid #BBF7D0;
  border-left: 4px solid var(--success-500);
  box-shadow: 0 1px 3px rgba(4, 120, 87, 0.08);
}

.claims-next-step-card-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.claims-next-step-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  font-size: 1rem;
  background: white;
  color: var(--color-primary-action);
  border: 1px solid #FED7AA;
  flex-shrink: 0;
}

.claims-next-step-card--ready .claims-next-step-card-icon {
  color: var(--success-500);
  border-color: #BBF7D0;
}

.claims-next-step-card-body {
  flex: 1;
  min-width: 0;
}

.claims-next-step-card-headline {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-brand);
  line-height: 1.35;
  margin-bottom: 0.25rem;
}

.claims-next-step-card-meta {
  font-size: 0.75rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.claims-next-step-card-meta-sep {
  color: var(--gray-400);
}

.claims-next-step-progress {
  margin-top: 0.5rem;
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  max-width: 320px;
}

.claims-next-step-progress-bar {
  height: 100%;
  background: var(--color-primary-action);
  transition: width 0.3s ease-in-out;
}

.claims-next-step-card--ready .claims-next-step-progress-bar {
  background: var(--success-500);
}

.claims-next-step-card-actions {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .claims-next-step-card-main {
    flex-wrap: wrap;
  }

  .claims-next-step-card-actions {
    width: 100%;
  }
}

/* AI chip — appears next to AI-filled fields */
.claims-chip-ai {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ai-chip-text);
  background: var(--ai-chip-bg);
  border: 1px solid var(--ai-chip-border);
  border-radius: 9999px;
  line-height: 1.2;
  vertical-align: middle;
  box-shadow: var(--ai-chip-shadow);
}

.claims-chip-ai i {
  font-size: 0.625rem;
  background: linear-gradient(135deg, var(--ai-chip-icon-start), var(--ai-chip-icon-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Section card chrome — needs-review state */
.claims-card--needs-review {
  border-left: 4px solid var(--warning-500) !important;
}

.claims-card--verified {
  border-left: 4px solid var(--success-500) !important;
}

.claims-section-verification-strip {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  background: #FEF3C7;
  border-bottom: 1px solid #FDE68A;
  color: #92400E;
  font-size: 0.8125rem;
  font-weight: 600;
}

.claims-section-verification-strip--verified {
  background: #D1FAE5;
  border-bottom-color: #A7F3D0;
  color: #065F46;
}

.claims-section-verification-strip--ai-overwrite {
  background: #FEE2E2;
  border-bottom-color: #FECACA;
  color: #991B1B;
}

.claims-section-verification-strip-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.claims-section-verification-meta {
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Soft-gate banner (Assessment) */
.claims-prereq-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-left: 4px solid var(--warning-500);
  border-radius: 6px;
  color: #78350F;
  margin-bottom: 1rem;
}

.claims-prereq-banner i {
  color: var(--warning-500);
  margin-top: 0.125rem;
}

.claims-prereq-banner-body {
  flex: 1;
  font-size: 0.8125rem;
}

.claims-prereq-banner-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.claims-prereq-banner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.claims-prereq-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: white;
  border: 1px solid #FDE68A;
  border-radius: 9999px;
  color: var(--warning-700);
}

.claims-prereq-banner-link:hover {
  background: #FEF3C7;
}

/* Follow-ups strip on section cards */
.claims-followups-strip {
  border-top: 1px solid var(--gray-200);
  background: #F9FAFB;
}

.claims-followups-strip-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-700);
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.claims-followups-strip-header:hover {
  background: var(--gray-100);
}

.claims-followups-strip-header-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-500);
  font-weight: 500;
}

.claims-followups-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 1rem 0.85rem;
}

.claims-followup-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.6rem 0.75rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  font-size: 0.8125rem;
}

.claims-followup-item--overdue {
  border-color: #FECACA;
  background: #FEF2F2;
}

.claims-followup-item-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--info-50);
  color: var(--info-600);
  font-size: 0.75rem;
}

.claims-followup-item-body {
  flex: 1;
  min-width: 0;
}

.claims-followup-item-title {
  font-weight: 600;
  color: var(--gray-900);
  display: block;
}

.claims-followup-item-meta {
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-top: 0.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.claims-followup-item-meta-sep {
  color: var(--gray-300);
}

.claims-followup-item-actions {
  display: inline-flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.claims-followup-empty {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--gray-500);
  font-style: italic;
}

.claims-followup-add-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary-brand);
  background: white;
  border: 1px dashed var(--gray-300);
  border-radius: 6px;
  cursor: pointer;
}

.claims-followup-add-trigger:hover {
  border-color: var(--color-primary-brand);
  background: rgba(26, 35, 126, 0.04);
}

/* Inline variant used when the strip has zero open items (replaces the header). */
.claims-followup-add-trigger--inline {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0.55rem 1rem;
  color: var(--gray-500);
  font-weight: 500;
}

.claims-followup-add-trigger--inline:hover {
  background: var(--gray-100);
  color: var(--color-primary-brand);
}

.claims-followups-chevron {
  transition: transform 0.15s ease;
}

/* Section-level quick-add input at the top of the strip body */
.claims-followup-quickadd {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-bottom: 1px dashed var(--gray-200);
  background: white;
}

.claims-followup-quickadd-icon {
  color: var(--gray-400);
  font-size: 0.75rem;
}

.claims-followup-quickadd-input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.8125rem;
  color: var(--gray-800);
  padding: 0.25rem 0;
}

.claims-followup-quickadd-input::placeholder {
  color: var(--gray-400);
  font-style: italic;
}

/* Hover flag next to followupable field labels */
.claims-followupable-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.claims-followupable-label-text {
  /* keeps the label text inline with the flag icon */
}

.claims-followup-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 4px;
  border: 0;
  background: transparent;
  color: #CBD5E1; /* faded slate-300 — always visible but unobtrusive */
  font-size: 0.7rem;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  padding: 0;
}

.claims-followup-flag:hover,
.claims-followup-flag:focus-visible {
  background: rgba(26, 35, 126, 0.08);
  color: var(--color-primary-brand);
  outline: none;
}

/* "Has open follow-up" state: burnt-orange flag, darkens on hover. */
.claims-followup-flag--active {
  color: #C2410C; /* tailwind orange-700, burnt-orange */
}

.claims-followup-flag--active:hover,
.claims-followup-flag--active:focus-visible {
  background: rgba(194, 65, 12, 0.12);
  color: #9A3412; /* orange-800 */
}

/* Anchored popover composer */
.claims-followup-popover {
  position: fixed;
  z-index: 60;
  width: 360px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);
  padding: 0.85rem 0.85rem 0.7rem;
  font-size: 0.8125rem;
}

.claims-followup-popover.hidden {
  display: none;
}

.claims-followup-popover-header {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.claims-followup-popover-title {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-900);
  padding: 0.2rem 0;
  background: transparent;
}

.claims-followup-popover-title::placeholder {
  color: var(--gray-400);
  font-weight: 500;
}

.claims-followup-popover-close {
  border: 0;
  background: transparent;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.2rem;
  font-size: 0.85rem;
}

.claims-followup-popover-close:hover {
  color: var(--gray-700);
}

.claims-followup-popover-context {
  font-size: 0.7rem;
  color: var(--gray-500);
  margin-bottom: 0.55rem;
  min-height: 0.9rem;
}

.claims-followup-popover-context:empty {
  display: none;
}

.claims-followup-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
}

.claims-followup-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.7rem;
  color: var(--gray-700);
  cursor: pointer;
}

.claims-followup-chip:hover {
  background: var(--gray-50, #F9FAFB);
  border-color: var(--gray-300);
}

.claims-followup-chip--ghost {
  background: transparent;
  border-style: dashed;
}

.claims-followup-chip-icon {
  font-size: 0.7rem;
  color: var(--gray-500);
}

.claims-followup-chip-select,
.claims-followup-chip-input {
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 0.7rem;
  color: var(--gray-800);
  padding: 0;
  max-width: 9rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.claims-followup-chip-input {
  width: 6.5rem;
}

.claims-followup-popover-details {
  margin-bottom: 0.55rem;
}

.claims-followup-popover-description {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  font-size: 0.8125rem;
  resize: vertical;
}

.claims-followup-popover-description:focus {
  outline: none;
  border-color: var(--color-primary-brand);
  box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.1);
}

.claims-followup-popover-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--gray-100);
  padding-top: 0.5rem;
}

.claims-followup-popover-footer .claims-followup-popover-hint {
  margin-left: auto;
}

.claims-followup-popover-hint {
  font-size: 0.65rem;
  color: var(--gray-400);
}

.claims-followup-popover-delete {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 0;
  color: #B91C1C;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.claims-followup-popover-delete:hover,
.claims-followup-popover-delete:focus-visible {
  background: rgba(185, 28, 28, 0.08);
  color: #991B1B;
  outline: none;
}

.claims-followup-popover-delete.hidden {
  display: none;
}

.claims-followup-popover-hint kbd {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 3px;
  padding: 0 0.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.6rem;
  color: var(--gray-600);
}

/* Toast for follow-up actions */
.claims-followup-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.9rem;
  background: var(--gray-900, #111827);
  color: white;
  font-size: 0.8125rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  z-index: 100;
}

.claims-followup-toast.hidden {
  display: none;
}

.claims-followup-toast i {
  color: #34D399;
}

/* Kebab (…) menu on follow-up items */
.claims-followup-item-menu {
  position: relative;
  display: inline-flex;
}

.claims-followup-item-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  background: transparent;
  border-radius: 4px;
  color: var(--gray-500);
  cursor: pointer;
  font-size: 0.8rem;
}

.claims-followup-item-menu-trigger:hover,
.claims-followup-item-menu-trigger[aria-expanded="true"] {
  background: var(--gray-100);
  color: var(--gray-800);
}

.claims-followup-item-menu-popup {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  min-width: 9rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  z-index: 50;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
}

.claims-followup-item-menu-popup.hidden {
  display: none;
}

.claims-followup-item-menu-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 0.4rem 0.55rem;
  font-size: 0.8rem;
  color: var(--gray-800);
  cursor: pointer;
  border-radius: 4px;
}

/* The Delete action is wrapped in a button_to <form>; strip default styling */
.claims-followup-item-menu-popup form {
  margin: 0;
}

.claims-followup-item-menu-popup form .claims-followup-item-menu-item {
  width: 100%;
}

.claims-followup-item-menu-item:hover,
.claims-followup-item-menu-item:focus-visible {
  background: var(--gray-100);
  outline: none;
}

.claims-followup-item-menu-item--danger {
  color: #B91C1C; /* red-700 */
}

.claims-followup-item-menu-item--danger:hover,
.claims-followup-item-menu-item--danger:focus-visible {
  background: rgba(185, 28, 28, 0.08);
}

/* Resolved follow-up item — faded, strike-through title */
.claims-followup-item--resolved {
  opacity: 0.65;
  background: var(--gray-50, #F9FAFB);
}

.claims-followup-item--resolved .claims-followup-item-title {
  text-decoration: line-through;
  color: var(--gray-500);
}

.claims-followup-item--resolved .claims-followup-item-desc {
  text-decoration: line-through;
  color: var(--gray-400);
}

.claims-followup-item--resolved .claims-followup-item-icon {
  background: var(--gray-100);
  color: var(--gray-500);
}

.claims-followup-item-desc {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 0.15rem;
}

/* Resolved section header inside the list */
.claims-followups-resolved-header {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem 0 0.1rem;
  padding: 0.25rem 0.1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.claims-followups-strip-resolved-count {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-500);
  margin-left: 0.4rem;
}

/* Field row with AI chip */
.claims-field-with-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* My Follow-ups inbox */
.followups-inbox-page {
  max-width: 1100px;
  margin: 0 auto;
}

.followups-inbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: center;
}

.followups-inbox-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-700);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
}

.followups-inbox-filter--active {
  background: var(--color-primary-brand);
  color: white;
  border-color: var(--color-primary-brand);
}

.followups-inbox-group-title {
  font-weight: 700;
  color: var(--color-primary-brand);
  font-size: 0.875rem;
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--gray-200);
}

.followups-inbox-row {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 2.5fr) minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: white;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.followups-inbox-row--overdue {
  border-color: #FECACA;
  background: #FEF2F2;
}

.followups-inbox-row-title {
  font-weight: 600;
  color: var(--gray-900);
}

.followups-inbox-row-sub {
  color: var(--gray-500);
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

@media (max-width: 768px) {
  .followups-inbox-row {
    grid-template-columns: 1.5rem 1fr auto;
    grid-template-areas:
      "icon title actions"
      ".    sub   sub"
      ".    meta  meta";
  }
}

/* =========================================================================
   Overview top grid: Next-step card (main) + Follow-ups card (aside)
   ========================================================================= */
.claims-overview-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .claims-overview-top-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  }
}

.claims-overview-top-grid-main,
.claims-overview-top-grid-aside {
  display: flex;
  min-width: 0;
}

.claims-overview-top-grid-main > *,
.claims-overview-top-grid-aside > * {
  flex: 1;
}

/* Overview follow-ups card */
.claims-overview-followups-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.claims-overview-followups-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--gray-100);
  background: #FAFAFB;
}

.claims-overview-followups-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-800);
}

.claims-overview-followups-title i {
  color: var(--color-primary-brand);
}

.claims-overview-followups-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.4rem;
  background: var(--color-primary-brand);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9999px;
}

.claims-overview-followups-link {
  color: var(--gray-400);
  font-size: 0.75rem;
  text-decoration: none;
  padding: 0.25rem;
  border-radius: 4px;
}

.claims-overview-followups-link:hover {
  color: var(--color-primary-brand);
  background: var(--gray-100);
}

.claims-overview-followups-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  font-style: italic;
}

.claims-overview-followups-add {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: white;
  border: 1px dashed var(--gray-300);
  color: var(--color-primary-brand);
  font-size: 0.72rem;
  font-weight: 600;
  font-style: normal;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
}

.claims-overview-followups-add:hover {
  background: rgba(26, 35, 126, 0.04);
  border-color: var(--color-primary-brand);
}

.claims-overview-followups-list {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
  max-height: 22rem;
  overflow-y: auto;
}

.claims-overview-followups-list--resolved {
  max-height: 14rem;
  border-top: 1px dashed var(--gray-200);
}

.claims-overview-followups-row {
  border-bottom: 1px solid var(--gray-100);
}

.claims-overview-followups-row:last-child {
  border-bottom: 0;
}

.claims-overview-followups-row-link {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) 0.85rem;
  gap: 0.55rem;
  align-items: start;
  padding: 0.55rem 0.9rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.12s ease;
}

.claims-overview-followups-row-link:hover {
  background: var(--gray-50, #F9FAFB);
}

.claims-overview-followups-row-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: var(--info-50);
  color: var(--info-600);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.claims-overview-followups-row--overdue .claims-overview-followups-row-icon {
  background: #FEE2E2;
  color: #B91C1C;
}

.claims-overview-followups-row-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.claims-overview-followups-row-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.claims-overview-followups-row-meta {
  font-size: 0.7rem;
  color: var(--gray-500);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.claims-overview-followups-row-meta i {
  margin-right: 0.15rem;
  font-size: 0.65rem;
  color: var(--gray-400);
}

.claims-overview-followups-row-meta-sep {
  color: var(--gray-300);
}

.claims-overview-followups-row-section {
  color: var(--gray-700);
  font-weight: 500;
}

.claims-overview-followups-row-due.is-overdue {
  color: #B91C1C;
  font-weight: 600;
}

.claims-overview-followups-row-due.is-overdue i {
  color: #B91C1C;
}

.claims-overview-followups-row-chev {
  color: var(--gray-300);
  font-size: 0.7rem;
  margin-top: 0.25rem;
}

.claims-overview-followups-row-link:hover .claims-overview-followups-row-chev {
  color: var(--gray-500);
}

.claims-overview-followups-row--resolved {
  opacity: 0.7;
}

.claims-overview-followups-row--resolved .claims-overview-followups-row-title {
  text-decoration: line-through;
  color: var(--gray-500);
}

.claims-overview-followups-row--resolved .claims-overview-followups-row-icon {
  background: var(--gray-100);
  color: var(--gray-500);
}

/* Resolved disclosure */
.claims-overview-followups-resolved {
  border-top: 1px solid var(--gray-100);
}

.claims-overview-followups-resolved summary {
  list-style: none;
  cursor: pointer;
  padding: 0.55rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.claims-overview-followups-resolved summary::-webkit-details-marker {
  display: none;
}

.claims-overview-followups-resolved summary:hover {
  color: var(--gray-800);
}

.claims-overview-followups-resolved[open] summary {
  color: var(--gray-700);
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
