

/* Calendar wrapper */
.fr-calendar-wrapper {
  padding: 0 16px;
}



/* Results Bar */
.fr-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  margin: 0 16px 8px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 12px;
}

.fr-results-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ob-info-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1e40af;
}

.ob-info-banner-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.fr-results-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
}

.fr-results-count {
  font-size: 0.8rem;
  color: #22d3ee;
  font-weight: 500;
}

.fr-results-search {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}


.fr-results-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fr-download-btn {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 8px;
  color: #22d3ee;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.fr-help-btn {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 8px;
  color: #22d3ee;
  padding: 6px 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.fr-help-btn:hover {
  background: rgba(34, 211, 238, 0.2);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}
.fr-download-btn:hover {
  background: rgba(34, 211, 238, 0.2);
  box-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
}
.mobile-search-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
}

.fr-cards-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 80px;
  max-height: calc(100vh - 280px);
}

.fr-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── PERIODICAL STATUS BADGES ─── */

/* Work Status badges */
.fr-card-status-badge[data-status="pending"] {
  
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 20px;
}

.fr-card-status-badge[data-status="in-progress"] {
  
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 20px;
}

.fr-card-status-badge[data-status="completed"] {
  
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 20px;
}

/* Cycle Type tags */
.fr-card-status-tag[data-status="monthly"] {
  
  color: #60a5fa;
}

.fr-card-status-tag[data-status="weekly"] {
  
  color: #22d3ee;
}

.fr-card-status-tag[data-status="fortnight"] {
  
  color: #7dd3fc;
}

.fr-card-status-tag[data-status="quarterly"] {
  
  color: #c084fc;
}

.fr-card-status-tag[data-status="6-monthly"] {
  
  color: #818cf8;
}

.fr-card-status-tag[data-status="yearly"] {
  
  color: #f472b6;
}

.fr-card-status-tag[data-status="once-off"] {
  
  color: #fdba74;
}

.fr-card-status-tag[data-status="call-out"] {
  
  color: #f87171;
}

.fr-card-status-tag[data-status="emergency-call"] {
  
  color: #f87171;
}

.fr-card-status-tag[data-status="value-added"] {
  
  color: #4ade80;
}

.fr-card-status-tag[data-status="bi-monthly"] {
  
  color: #2dd4bf;
}

.fr-card-status-tag[data-status="please-delete"] {
  
  color: #9ca3af;
}


/* ─── REPLACEMENT CARD ─── */
.fr-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.fr-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fr-card:active {
  transform: scale(0.98);
  border-color: rgba(34, 211, 238, 0.5);
}

.fr-card:active::before {
  opacity: 1;
}

/* Card Header */
.fr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.fr-card-dates {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #22d3ee;
  font-size: 0.85rem;
  font-weight: 500;
}

.fr-card-date-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

.fr-card-date-end {
  color: #f59e0b;
}

.fr-card-status-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fr-card-status-badge[data-status="abn"] {
  
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}


.fr-card-status-badge[data-status="tfn"] {
  
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.fr-card-status-badge[data-status="pending"] {
  
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.fr-card-status-badge[data-status="inactive"] {
  
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.fr-card-status-badge[data-status="approved without pay"] {
  
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.fr-card-status-badge[data-status="cancelled"] {
  
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.fr-card-status-badge[data-status="approved"] {
  
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.fr-card-status-badge[data-status="not approved"] {
  
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.fr-card-status-badge[data-status="departure clean"] {
  
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.fr-card-status-badge[data-status="training"] {
  
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}


.fr-card-status-badge[data-status="extra work"] {
  
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.fr-card-status-badge[data-status="event"] {
  
  color: #fdba74;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.fr-card-status-badge[data-status="casual"] {
  
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.fr-card-status-badge-extra {
  
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.fr-card-status-badge-room {
  
  color: #2dd4bf;
  border: 1px solid rgba(20, 184, 166, 0.3);
}
.fr-card-status-tags {
  
  color: #7dd3fc;
  
}
/* Card Body */
.fr-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.fr-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.fr-card-row svg {
  color: rgba(34, 211, 238, 0.5);
  flex-shrink: 0;
}

.fr-card-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.fr-card-value {
  color: #e2e8f0;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fr-card-status-tag {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  flex-shrink: 0;
}

.fr-card-status-tags {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  flex-shrink: 0;
}
.fr-tab-content {
  background: #0a0f1e;
  min-height: calc(100vh - 50px);
}

/* Container */
.fr-tab-bar {
  position: relative;
  margin: 0;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Tab row */
.fr-tab-list {
  display: flex;
  align-items: stretch;
  position: relative;
}

/* ── Home icon — fixed width, last item (right side) ── */
.fr-tab-home {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  padding: 12px 0;
  background: none;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.fr-tab-home:hover {
  color: #22d3ee;
}

.fr-tab-home svg {
  width: 18px;
  height: 18px;
}

/* ── Tab button — help icon + label ── */
.fr-tab-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.fr-tab-item:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Active tab */
.fr-tab-active {
  color: #ffffff;
  font-weight: 600;
}

/* ── Help icon (?) ── */
.fr-tab-help {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #22d3ee;
  transition: all 0.3s ease;
}

.fr-tab-help:hover,
.fr-tab-help-active {
  background: rgba(34, 211, 238, 0.15);
  color: #f59e0b;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.3));
}

.fr-tab-help svg {
  width: 16px;
  height: 16px;
}

/* Tab label text */
.fr-tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Track & indicator ── */
.fr-tab-track {
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.fr-tab-indicator {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(to right, #22d3ee, #3b82f6);
  border-radius: 3px 3px 0 0;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: left, width;
}

/* ── Responsive ── */

/* Small phones — scroll for 5+ tabs */
@media (max-width: 400px) {
  .fr-tab-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .fr-tab-list::-webkit-scrollbar {
    display: none;
  }

  .fr-tab-home {
    width: 42px;
  }

  .fr-tab-item {
    flex: none;
    min-width: 72px;
    padding: 12px 6px;
    font-size: 0.7rem;
    gap: 3px;
  }

  .fr-tab-help {
    width: 16px;
    height: 16px;
  }

  .fr-tab-help svg {
    width: 10px;
    height: 10px;
  }
}

/* Tablet */
@media (min-width: 401px) and (max-width: 768px) {
  .fr-tab-item {
    padding: 14px 10px;
    font-size: 0.76rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .fr-tab-home {
    width: 56px;
  }

  .fr-tab-item {
    padding: 16px 12px;
    font-size: 0.82rem;
  }

  .fr-tab-item:hover {
    color: rgba(255, 255, 255, 0.85);
  }

  .fr-tab-home:hover {
    color: #22d3ee;
  }

  .fr-tab-help:hover {
    background: rgba(34, 211, 238, 0.2);
    color: #22d3ee;
  }
}


/* ──────────────────────────────────────────────
   SearchInput — shared/searchInput.css
   Standalone search bar component
   ────────────────────────────────────────────── */

.fr-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 16px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.fr-search-bar:focus-within {
  border-color: rgba(34, 211, 238, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

/* Search magnifier icon */
.fr-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 12px;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

/* Input field */
.fr-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 12px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  color: #ffffff;
}

.fr-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* Clear button (✕) */
.fr-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.fr-search-clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}


.fr-card-status-tag[data-status="abn"] {
  
  color: #4ade80;
}

.fr-card-status-tag[data-status="pending"] {
  
  color: #fbbf24;
}

.fr-card-status-tag[data-status="inactive"] {
  
  color: #f87171;
}

/* Card Footer */
.fr-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fr-card-meta {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fr-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.fr-card-meta-item svg {
  color: rgba(34, 211, 238, 0.4);
}

.fr-card-hours {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #22d3ee;
}

.fr-card-hours svg {
  color: #22d3ee;
}
.fr-card-middle {

  
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #22d3ee;

}
.fr-card-tap-hint {
  text-align: center;
  font-size: 0.7rem;
  color: rgba(34, 211, 238, 0.3);
  margin-top: 8px;
  letter-spacing: 0.05em;
}

/* ─── MODAL ─── */
.fr-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  animation: fr-fadeIn 0.2s ease;
  padding-bottom: 120px;
}

.fr-modal {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 12px 24px 100px;
  animation: fr-slideUp 0.3s ease;
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-bottom: none;
}

.fr-modal-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.fr-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.fr-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0;
}

.fr-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.fr-modal-close:active {
  color: #ef4444;
}

.fr-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.fr-modal-field {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 16px;
}

.fr-modal-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fr-modal-value {
  font-size: 1rem;
  font-weight: 600;
  color: #22d3ee;
}

.fr-modal-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 8px 12px;
  outline: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  color-scheme: dark;
  transition: all 0.2s ease; 
}

.fr-modal-input:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.25);
}

.fr-modal-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.22);
  color: #f1f5f9;
}

.fr-modal-input option {
  background: #1e293b;
  color: rgba(255, 255, 255, 0.9);
  
}

.fr-modal-select:hover {
  background: #1e293b;
  color: rgba(255, 255, 255, 0.9);
}
.fr-modal-input option:hover {
  background: #1e293b;
  color: rgba(255, 255, 255, 0.9);
}

.fr-modal-input option:checked {
  background: rgba(34, 211, 238, 0.15); 
  color: rgba(255, 255, 255, 0.95);
}


.fr-modal-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.fr-modal-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(1);
  opacity: 0.7;
  
}

.fr-modal-input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.fr-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
}

.fr-dropzone:hover, .fr-dropzone.dragging {
  background: rgba(34, 211, 238, 0.05); /* Cyan tint */
  border-color: #22d3ee;
  transform: translateY(-2px);
}

.fr-dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Modal Actions */
.fr-modal-actions {
  display: flex;
  gap: 12px;
}

.fr-modal-btn {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.fr-btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fr-btn-cancel:active {
  background: rgba(255, 255, 255, 0.12);
}

.fr-btn-submit {
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
}

.fr-btn-submit:active {
  transform: scale(0.98);
}

.fr-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── LOADING ─── */
.fr-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.fr-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(34, 211, 238, 0.15);
  border-top-color: #22d3ee;
  border-radius: 50%;
  animation: fr-spin 0.8s linear infinite;
}

.fr-loading-text {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* ─── EMPTY STATE ─── */
.fr-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.fr-empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.fr-empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 6px;
}

.fr-empty-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}


/* Custom Select Wrapper */
.custom-select-wrapper {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 16px;
  position: relative;
}

/* Custom Select Trigger */
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
}

.custom-select-trigger:hover {
  opacity: 0.9;
}

.custom-select-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.custom-select-arrow {
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.custom-select-arrow.open {
  transform: rotate(180deg);
}

.custom-select-search {
  position: sticky;
  top: 0;
  padding: 8px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.custom-select-search-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
}

.custom-select-search-input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.custom-select-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.custom-select-no-results {
  padding: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}
/* Custom Select Dropdown */
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 12px;
  overflow: hidden;
  z-index: 9999;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: fr-slideDown 0.2s ease;
}

/* Custom scrollbar for dropdown */
.custom-select-dropdown::-webkit-scrollbar {
  width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.3);
  border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.5);
}

/* Custom Select Option */
.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.15s ease;
  user-select: none;
}

.custom-select-option:hover {
  /*background: rgba(0, 0, 0, 0.3);  Dark hover - same as your preference */
  background: rgba(34, 211, 238, 0.15);
  color: rgba(255, 255, 255, 0.95);
}

.custom-select-option.selected {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  font-weight: 600;
}

.custom-select-option.selected:hover {
  /*background: rgba(34, 211, 238, 0.2);*/
  background: rgba(34, 211, 238, 0.15);
}

.custom-select-option svg {
  color: #22d3ee;
  flex-shrink: 0;
}

/* Dropdown animation */
@keyframes fr-slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ─────────────────────────────────────────────
   Filter chips
   ───────────────────────────────────────────── */

.fr-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fr-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  background: var(--card-bg, #1e293b);
  color: var(--text-secondary, #94a3b8);
  border: 1px solid var(--border-color, #334155);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.fr-chip:active {
  transform: scale(0.95);
}

/* Active state: colors come from inline styles based on group color.
   Only the weight change is handled here. */
.fr-chip-active {
  font-weight: 600;
}

/* ─────────────────────────────────────────────
   Mobile: collapsible panel
   ───────────────────────────────────────────── */

.fr-chips-mobile {
  display: block;
}

.fr-chips-desktop {
  display: none;
}

.fr-chips-toggle {
  width: calc(100% - 20px);
  padding: 8px 12px;
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  margin: 0 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.fr-chips-toggle-text {
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.95rem;
  font-weight: 600;
}

.fr-chips-toggle-hint {
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: center;
  gap: 4px;
}

.fr-chips-badge {
  background: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  -webkit-text-fill-color: white;
}

.fr-chips-mobile-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.fr-chips-mobile-panel.fr-chips-open {
  max-height: 300px;
  padding-top: 8px;
}

.fr-chips-mobile-open {
  margin: 0 10px;
  padding: 12px;
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.fr-chips-mobile-open .fr-chips-toggle {
  width: 100%;
  margin: 10px 0 0 0;
}

.fr-chips-mobile-open .fr-filter-chips {
  margin-bottom: 4px;
}

/* Desktop: always visible */
@media (min-width: 768px) {
  .fr-chips-mobile {
    display: none;
  }
  .fr-chips-desktop {
    display: block;
  }
}
/* ─── ANIMATIONS ─── */
@keyframes fr-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fr-slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes fr-spin {
  to { transform: rotate(360deg); }
}

/* ─── RESPONSIVE ─── */
@media (min-width: 500px) {
  .fr-modal {
    border-radius: 24px;
    margin: auto;
    border: 1px solid rgba(34, 211, 238, 0.15);
  }

  .fr-modal-overlay {
    align-items: center;
  }
}