/* CanFix POS - Responsive POS & Touch Design System (Mobile & Laptop) */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --success-color: #16a34a;
  --bg-slate: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --touch-target-min: 48px;
  --radius-lg: 14px;
  --radius-md: 10px;
}

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

body {
  background-color: var(--bg-slate);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* Touch Targets: Standard 48px+ for tablet thumbs and mobile fingers */
.touch-btn, .touch-target {
  min-height: var(--touch-target-min);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: transform 0.08s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
}

.touch-btn:active, .touch-target:active {
  transform: scale(0.97);
}

/* Custom Checkbox/Radio Chips */
.btn-check:checked + .btn-outline-primary {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.btn-check:checked + .btn-outline-secondary {
  background-color: #334155 !important;
  color: #ffffff !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 12px rgba(51, 65, 85, 0.25);
}

/* Camera Slot & 6-Photo Card Styling */
.camera-box, .camera-slot {
  width: 100%;
  height: 120px;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.camera-box:hover, .camera-slot:hover {
  border-color: var(--primary-color);
  background-color: #f0f7ff;
}

.camera-box img, .camera-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot-card {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 112px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.photo-slot-card:hover, .photo-slot-card:active {
  border-color: var(--primary-color);
  background-color: #f0f7ff;
}

.photo-slot-card.has-photo {
  border-style: solid;
  border-color: #16a34a;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.15);
}

.photo-slot-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.visually-hidden-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
}

.camera-file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.camera-clear-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.94);
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 0.74rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  padding: 0;
  line-height: 1;
}

.camera-clear-btn:hover {
  background: #b91c1c;
}

/* Modern Responsive Intake Layout System */
.intake-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease;
}
.intake-card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.intake-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
}
.intake-section-badge.highlight {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.12));
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.25);
}

/* Auto Screen Size Categories Grid */
.category-auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  width: 100%;
  margin-bottom: 14px;
}
.category-card-btn {
  min-height: 48px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  padding: 6px 10px;
  transition: all 0.15s ease;
  user-select: none;
  text-align: center;
}
.category-card-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}
.btn-check:checked + .category-card-btn {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
  transform: translateY(-1px);
}

/* Auto Screen Size Problem Symptoms Grid */
.symptoms-auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  width: 100%;
}
@media (max-width: 576px) {
  .symptoms-auto-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 6px;
  }
}
.symptom-chip {
  transition: all 0.14s ease;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  user-select: none;
  line-height: 1.25;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.symptom-chip:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a;
}
.symptom-chip.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
  transform: translateY(-1px);
  font-weight: 700;
}
.symptom-chip.active::before {
  content: "✓ ";
  font-weight: 800;
  margin-right: 4px;
}

.field-label-prominent {
  font-weight: 700;
  font-size: 0.88rem;
  color: #1e293b;
  margin-bottom: 4px;
}
.scan-viewfinder-clickable {
  cursor: pointer;
}
.scan-viewfinder-clickable:active {
  opacity: 0.85;
}

/* iPad / iPhone / Safari WebKit Empty Date Input Placeholder (mm/dd/yyyy) via Real DOM Span Overlay */
.date-input-wrap {
  position: relative;
  width: 100%;
}

.date-placeholder-overlay {
  display: none;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 400;
  pointer-events: none;
  z-index: 3;
  background-color: #ffffff;
  padding-right: 10px;
  line-height: 1.2;
}

html.is-apple-webkit .date-input-wrap input[type="date"] {
  min-height: 42px;
  -webkit-appearance: none;
  appearance: none;
}

html.is-apple-webkit .date-input-wrap input[type="date"][data-empty="true"] + .date-placeholder-overlay {
  display: block;
}

@supports (-webkit-touch-callout: none) {
  .date-input-wrap input[type="date"] {
    min-height: 42px;
    -webkit-appearance: none;
    appearance: none;
  }
  .date-input-wrap input[type="date"][data-empty="true"] + .date-placeholder-overlay {
    display: block;
  }
}

/* Touch Keypad for POS Register PIN */
.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 320px;
  margin: 16px auto 0;
}

.keypad-btn {
  height: 58px;
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.08s ease;
}

.keypad-btn:active {
  background-color: #e2e8f0;
  transform: scale(0.95);
}

.keypad-btn.action-btn {
  font-size: 1rem;
  font-weight: bold;
}

/* Responsive Status Timeline (Desktop vs Mobile) */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 24px 0 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.timeline-node {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 20%;
  padding: 0 4px;
}

.node-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-weight: bold;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  border: 2px solid #ffffff;
  transition: all 0.2s ease;
}

.timeline-node.done .node-dot {
  background: var(--success-color);
  color: #ffffff;
}

.timeline-node.active .node-dot {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
}

.node-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
  word-break: break-word;
}

.timeline-node.active .node-label {
  color: var(--primary-color);
  font-weight: 700;
}

/* High-Contrast Interactive Elements & Icon Badges */
.action-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.12s ease;
  user-select: none;
}

.action-btn-pill:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--primary-color);
  transform: translateY(-1px);
}

.action-btn-pill:active {
  transform: scale(0.96);
}

.link-clickable {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.1s ease;
}

.link-clickable:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Card Design & Micro-animations */
.rf-card, .job-card {
  background-color: var(--card-bg);
  border-radius: 12px !important;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.rf-card:hover, .job-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

/* Touch Signature Canvas */
.sig-canvas-container {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background-color: #ffffff;
  touch-action: none;
  overflow: hidden;
}

.sig-canvas-container canvas {
  width: 100%;
  height: 160px;
  display: block;
  cursor: crosshair;
}

/* Touch Pattern Lock Canvas */
.pattern-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.pattern-canvas {
  width: 220px;
  height: 220px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  touch-action: none;
  cursor: pointer;
}

/* Photo Lightbox Overlay */
.rf-lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.rf-lightbox.active {
  display: flex;
}

.rf-lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  object-fit: contain;
}

.rf-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: #ffffff;
  cursor: pointer;
  line-height: 1;
}

/* Search & Filter Toolbar Responsiveness (Prevents single-line shrinking & placeholder clipping) */
.filter-toolbar .form-control,
.filter-toolbar .form-select,
.filter-toolbar .btn {
  min-height: 42px;
  font-size: 0.92rem;
}

.filter-toolbar input::placeholder {
  color: #64748b;
  opacity: 1;
}

.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  background-color: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ========================================================
   1. MOBILE PHONES (320px – 480px)
   Single-hand portrait phone usage; eliminate iOS Safari zoom
======================================================== */
@media (max-width: 480px) {
  body {
    padding: 6px !important;
  }

  /* 16px minimum text to prevent iOS viewport auto-zoom */
  input, select, textarea, .form-control, .form-select {
    font-size: 16px !important;
  }

  .container-fluid, .container {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .card, .rf-card {
    padding: 14px !important;
    border-radius: 12px !important;
  }

  .timeline {
    margin: 14px 0;
  }

  .timeline::before {
    top: 14px;
    left: 10%;
    right: 10%;
    height: 2px;
  }

  .node-dot {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    margin-bottom: 4px;
  }

  .node-label {
    font-size: 0.60rem;
    letter-spacing: -0.2px;
  }

  .camera-box, .camera-slot {
    height: 110px;
  }

  .touch-target, .touch-btn {
    min-height: 48px;
    font-size: 0.95rem;
    padding: 10px 12px;
  }

  .header-actions {
    width: 100%;
    display: flex;
    justify-content: stretch;
    margin-top: 10px;
  }

  .header-actions .btn {
    flex: 1;
    text-align: center;
  }
}

/* ========================================================
   2. TABLET PORTRAIT (481px – 991px)
======================================================== */
@media (min-width: 481px) and (max-width: 991px) {
  body {
    padding: 14px !important;
  }

  /* 16px minimum text to prevent iOS viewport auto-zoom */
  input, select, textarea, .form-control, .form-select {
    font-size: 16px !important;
  }

  .camera-box, .camera-slot {
    height: 130px;
  }

  .touch-target, .touch-btn {
    min-height: 48px;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* ========================================================
   3. TABLET LANDSCAPE & SMALL LAPTOP (992px – 1200px)
======================================================== */
@media (min-width: 992px) and (max-width: 1200px) {
  body {
    padding: 20px !important;
  }

  .max-w-1200 {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .camera-box, .camera-slot {
    height: 145px;
  }

  .job-card {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }

  .job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
  }
}

/* ========================================================
   4. WIDE MONITORS & BENCH WORKSTATIONS (1201px+)
======================================================== */
@media (min-width: 1201px) {
  body {
    padding: 24px 32px !important;
  }

  .max-w-1200 {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }

  .camera-box, .camera-slot {
    height: 160px;
  }

  .job-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .job-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1) !important;
  }
}

/* ========================================================
   5. UNIFIED RESPONSIVE DASHBOARD HEADER BAR
   Adapts dynamically across Mobile, Tablet & Desktop
======================================================== */
.dashboard-header-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
}

.dashboard-header-card .header-icon-box {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.dashboard-header-card .header-title-text {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dashboard-header-card .header-subtitle {
  font-size: 0.92rem;
}

/* Mobile & Tablet Portrait Layout (< 992px) */
@media (max-width: 991.98px) {
  .dashboard-header-card {
    padding: 14px 16px !important;
  }

  .dashboard-header-card .header-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .dashboard-header-card .header-brand-row {
    display: flex;
    align-items: center;
    width: 100%;
  }

  .dashboard-header-card .header-title-text {
    font-size: 1.35rem !important;
  }

  .dashboard-header-card .header-actions-wrap {
    width: 100%;
  }

  .dashboard-header-card .header-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
  }

  .dashboard-header-card .header-actions-row > .btn,
  .dashboard-header-card .header-actions-row > a.btn,
  .dashboard-header-card .header-actions-row > form {
    flex: 1 1 auto;
    text-align: center;
    justify-content: center;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
  }

  .dashboard-header-card .header-actions-row > .btn-group {
    flex: 1 1 auto;
  }

  .dashboard-header-card .header-actions-row > .btn-group .btn {
    flex: 1 1 50%;
    min-height: 40px;
  }
}

/* Extra Small Phones (< 576px) */
@media (max-width: 575.98px) {
  .dashboard-header-card .header-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .dashboard-header-card .header-icon-box svg {
    width: 22px;
    height: 22px;
  }
  .dashboard-header-card .header-title-text {
    font-size: 1.25rem !important;
  }
  .dashboard-header-card .header-subtitle {
    font-size: 0.8rem !important;
  }
  .dashboard-header-card .header-count-badge {
    font-size: 0.78rem !important;
  }
}

/* Desktop Monitors & Workstations (>= 992px) */
@media (min-width: 992px) {
  .dashboard-header-card {
    padding: 14px 20px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  .dashboard-header-card .header-grid {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    min-width: 0 !important;
  }

  .dashboard-header-card .header-brand-row {
    display: flex !important;
    align-items: center !important;
    width: auto !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    gap: 12px !important;
  }

  .dashboard-header-card .header-icon-box {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    border-radius: 10px !important;
  }

  .dashboard-header-card .header-title-text {
    font-size: 1.35rem !important;
    white-space: nowrap !important;
  }

  .dashboard-header-card .header-subtitle {
    font-size: 0.84rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 300px !important;
  }

  .dashboard-header-card .header-actions-wrap {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    margin-left: auto !important;
    flex: 0 0 auto !important;
    gap: 8px !important;
  }

  .dashboard-header-card .header-actions-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
    flex: 0 0 auto !important;
    gap: 6px !important;
    padding-top: 0 !important;
    border-top: none !important;
    flex-wrap: nowrap !important;
  }

  .dashboard-header-card .header-actions-row > .btn,
  .dashboard-header-card .header-actions-row > a.btn,
  .dashboard-header-card .header-actions-row > form {
    flex: 0 0 auto !important;
    width: auto !important;
    min-height: 36px !important;
    padding: 5px 11px !important;
    font-size: 0.86rem !important;
  }

  .dashboard-header-card .header-actions-row > .btn-group {
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .dashboard-header-card .header-actions-row > .btn-group .btn {
    flex: 0 0 auto !important;
    width: auto !important;
    min-height: 36px !important;
    padding: 5px 10px !important;
    font-size: 0.86rem !important;
  }

  .dashboard-header-card .header-user-nav-wrap {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin-left: 2px !important;
  }
}

/* Medium Desktop & Compact Laptops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .dashboard-header-card {
    padding: 12px 16px !important;
  }
  .dashboard-header-card .header-title-text {
    font-size: 1.25rem !important;
  }
  .dashboard-header-card .header-subtitle {
    max-width: 220px !important;
    font-size: 0.8rem !important;
  }
  .header-nav-username {
    max-width: 75px !important;
  }
}

.header-nav-username {
  max-width: 95px;
  display: inline-block;
  vertical-align: middle;
}

@media (min-width: 1300px) {
  .header-nav-username {
    max-width: 140px;
  }
  .dashboard-header-card .header-subtitle {
    max-width: none !important;
  }
}

/* ========================================================
   6. FILTER & SEARCH TOOLBAR RESET & CLEAR BUTTONS
======================================================== */
.btn-filter-reset {
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  transition: all 0.15s ease;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-filter-reset:hover {
  background-color: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.15);
  text-decoration: none;
}

.btn-filter-reset.has-active {
  background-color: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.btn-filter-reset.has-active:hover {
  background-color: #fee2e2;
  border-color: #f87171;
  color: #dc2626;
}

.search-clear-pill {
  transition: all 0.12s ease;
  cursor: pointer;
  text-decoration: none;
}
.search-clear-pill:hover .badge {
  background-color: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}
