/* =============================================
   WELLNESS MEDICALS HMS – MAIN DESIGN SYSTEM
   VitalGlass Design Tokens & Global Styles
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* --- CSS Variables / Design Tokens --- */
:root {
  --primary: #00685f;
  --primary-light: #0D9488;
  --primary-dark: #004d46;
  --primary-soft: rgba(13, 148, 136, 0.10);
  --secondary: #565e74;
  --tertiary: #00685c;
  --accent-blue: #3B82F6;
  --accent-amber: #F59E0B;
  --accent-green: #10B981;
  --accent-red: #EF4444;
  --accent-violet: #8B5CF6;

  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-low: #f2f4f6;
  --surface-mid: #eceef0;
  --surface-high: #e6e8ea;

  --on-bg: #191c1e;
  --on-surface: #191c1e;
  --on-surface-var: #3d4947;
  --outline: #6d7a77;
  --outline-var: #bcc9c6;

  --font-head: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(0, 100, 90, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 100, 90, 0.10);
  --shadow-lg: 0 8px 40px rgba(0, 100, 90, 0.14);

  --sidebar-w: 260px;
  --topbar-h: 64px;

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-blur: blur(14px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.70);

  --touch-target: 44px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--on-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

* { -webkit-tap-highlight-color: transparent; }

a {
  color: var(--primary-light);
  text-decoration: none;
  touch-action: manipulation;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
  touch-action: manipulation;
}

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--on-surface);
  outline: none;
  border: none;
  background: transparent;
}

input::placeholder,
textarea::placeholder {
  color: var(--outline);
}

select {
  cursor: pointer;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* --- Page Loader (VitalGlass Animation System) --- */
#pageLoader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #d5f5f0 0%, #f0fdfa 50%, #ccfbf1 100%);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  opacity: 1;
  transform: scale(1);
}
#pageLoader.hidden {
  opacity: 0;
  transform: scale(0.98);
  visibility: hidden;
  pointer-events: none;
}

/* Glass card container */
.loader-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  box-shadow: 0 16px 48px rgba(0, 100, 90, 0.09), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 34px 38px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 390px;
  animation: loaderGlassIn 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
}
@keyframes loaderGlassIn {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Logo container with breathing pulse and orbital ring */
.loader-logo-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-logo-ring {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.08);
  border: 2px solid rgba(13, 148, 136, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(13, 148, 136, 0.04), 0 0 0 16px rgba(13, 148, 136, 0.02);
  animation: loaderPulse 2.4s ease-in-out infinite;
  z-index: 1;
}
.loader-logo-ring img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 60, 50, 0.12);
}
.loader-orbit-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(13, 148, 136, 0.35);
  animation: loaderOrbit 12s linear infinite;
  pointer-events: none;
}
@keyframes loaderOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 8px rgba(13, 148, 136, 0.04), 0 0 0 16px rgba(13, 148, 136, 0.02); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(13, 148, 136, 0.07), 0 0 0 22px rgba(13, 148, 136, 0.03); }
}

/* Title & Subtitle */
.loader-title {
  color: var(--primary-dark);
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.loader-subtitle {
  color: var(--on-surface-var);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  margin: 0 0 16px;
  opacity: 0.8;
}

/* Heartbeat SVG line */
.loader-heartbeat {
  margin-bottom: 16px;
  opacity: 0.85;
}
.loader-heartbeat svg {
  overflow: visible;
}
.heartbeat-path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: heartDraw 2s ease-in-out infinite;
  stroke: var(--primary-light);
}
@keyframes heartDraw {
  0% { stroke-dashoffset: 260; opacity: 0.3; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -260; opacity: 0.3; }
}

/* Circular Percentage Ring */
.loader-pct-ring-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-pct-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: stroke-dashoffset 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
#pageLoaderArc {
  transition: stroke-dashoffset 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.loader-pct-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  letter-spacing: -0.01em;
  z-index: 1;
}

/* Status capsule pill */
.loader-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(13, 148, 136, 0.16);
  margin-bottom: 14px;
  max-width: 100%;
}
.loader-spin-icon {
  font-size: 16px;
  color: var(--primary-light);
  animation: loaderSpin 1.4s linear infinite;
  flex-shrink: 0;
}
@keyframes loaderSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Rotating message */
.loader-msg {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  min-height: 20px;
  letter-spacing: 0.01em;
  transition: opacity 0.3s ease;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
}
/* Fallback if loader-msg is used outside of .loader-status-pill */
.loader-glass > .loader-msg {
  margin-bottom: 16px;
}

/* Three animated dots */
.loader-dots {
  display: flex;
  gap: 6px;
}
.loader-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0.4;
  animation: dotBounce 1.4s ease-in-out infinite;
}
.loader-dot:nth-child(2) { animation-delay: 0.2s; }
.loader-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.3; }
  40% { transform: scale(1.15); opacity: 1; }
}

/* --- Glass Skeleton Shimmer (Loading Animation) --- */
.skeleton-row td {
  padding: 14px 16px !important;
}
.skeleton-cell {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(13,148,136,0.06) 25%, rgba(13,148,136,0.14) 50%, rgba(13,148,136,0.06) 75%);
  background-size: 200% 100%;
  animation: glassShimmer 1.8s ease-in-out infinite;
}
@keyframes glassShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(13,148,136,0.06) 25%, rgba(13,148,136,0.14) 50%, rgba(13,148,136,0.06) 75%);
  background-size: 200% 100%;
  animation: glassShimmer 1.8s ease-in-out infinite;
  flex-shrink: 0;
}



/* --- Reusable Spinner (Rotating Ring) --- */
.spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(13,148,136,0.15);
  border-top-color: var(--primary-light);
  animation: spin 0.7s linear infinite;
}
.spinner-sm {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
.spinner-dark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(13,148,136,0.15);
  border-top-color: var(--primary-light);
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Button Loading State --- */
.btn-loading {
  pointer-events: none;
  opacity: 0.85;
}

/* --- Animated Loading Dots (inline text) --- */
.loading-dots::after {
  content: '...';
  animation: loadDotsPulse 1.4s ease-in-out infinite;
}
.loading-dots.loading-dots-sm::after {
  font-size: 0.75rem;
}
@keyframes loadDotsPulse {
  0%, 20% { opacity: 0.3; }
  40% { opacity: 1; }
  60% { opacity: 0.3; }
  80% { opacity: 0.6; }
  100% { opacity: 0.3; }
}

/* --- Inline Loading Placeholder Pulse --- */
.loading-pulse {
  display: inline-block;
  vertical-align: middle;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: pulse 1.2s ease-in-out infinite;
  margin-right: 4px;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* --- Loading Select Animation --- */
select.loading {
  background-image: linear-gradient(135deg, rgba(13,148,136,0.04) 0%, rgba(13,148,136,0.1) 50%, rgba(13,148,136,0.04) 100%);
  background-size: 200% 100%;
  animation: glassShimmer 1.8s ease-in-out infinite;
  color: var(--on-surface-var);
}
select.loading option {
  background: #fff;
  color: var(--text-primary);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.30);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.40);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary:disabled:hover {
  background: var(--primary-light);
  transform: none;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.30);
}

.btn-primary .material-icons-round {
  font-size: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-soft);
  color: var(--primary-light);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(13, 148, 136, 0.15);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.icon-btn {
  background: var(--surface-low);
  border: 1px solid var(--outline-var);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: inline-flex;
  align-items: center;
  color: var(--on-surface-var);
  transition: all 0.15s;
}

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

.icon-btn.danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border-color: var(--accent-red);
}

.icon-btn .material-icons-round {
  font-size: 16px;
}

/* --- Status Badges --- */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-status.confirmed,
.badge-status.stable {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.badge-status.pending {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}

.badge-status.completed {
  background: rgba(107, 114, 128, 0.12);
  color: #6B7280;
}

.badge-status.cancelled,
.badge-status.critical {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
}

.badge-status.recovering {
  background: rgba(59, 130, 246, 0.12);
  color: #2563EB;
}

.badge-status.available {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.badge-status.busy {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}

.badge-status.off {
  background: rgba(107, 114, 128, 0.12);
  color: #6B7280;
}

.badge-status.mild {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.badge-status.moderate {
  background: rgba(245, 158, 11, 0.12);
  color: #D97706;
}

.badge-status.severe {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
}

/* --- OPD New Registration Tag --- */
.opd-new-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0D9488, #059669);
  color: #ffffff;
  box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.5);
  animation: opd-new-pulse 2s infinite;
  vertical-align: middle;
  margin-left: 4px;
  position: relative;
  top: -1px;
  cursor: default;
  user-select: none;
}

@keyframes opd-new-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.55); }
  60%  { box-shadow: 0 0 0 6px rgba(13, 148, 136, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0); }
}

.opd-new-row {
  background: rgba(13, 148, 136, 0.04) !important;
  border-left: 3px solid #0D9488 !important;
  transition: background 0.3s;
}

.opd-new-row:hover {
  background: rgba(13, 148, 136, 0.09) !important;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.status-dot.confirmed,
.status-dot.stable {
  background: #10B981;
}

.status-dot.pending {
  background: #F59E0B;
}

.status-dot.completed {
  background: #6B7280;
}

.status-dot.cancelled,
.status-dot.critical {
  background: #EF4444;
}

/* --- Form Elements --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--on-surface-var);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  background: var(--surface-low);
  border: 1.5px solid var(--outline-var);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  color: var(--on-surface);
  font-size: 0.9rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-soft);
  background: #fff;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Modals --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  /* allow dropdowns inside modals to overflow the overlay edges */
  overflow: visible;
}

.modal-overlay.active {
  display: flex;
}

/* Shared card base – used by both .modal and .modal-card */
.modal,
.modal-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(13, 148, 136, 0.06);
  animation: modalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  /* allow the autocomplete dropdown to overflow outside the card */
  overflow: visible;
}

.modal {
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: visible;
  padding: 28px;
}

.modal-card {
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: visible;
  padding: 28px;
}

.modal.wide-modal {
  max-width: 780px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(16px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* modal-header/title/body/footer work on both .modal and .modal-card */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--surface-mid);
}

.modal-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--on-surface);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header h2,
.modal-header h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--on-surface);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-close {
  background: var(--surface-low);
  border: 1.5px solid var(--outline-var);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  color: var(--on-surface-var);
  transition: all 0.15s;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1.5px solid var(--surface-mid);
}

/* --- Tables --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table thead th {
  background: rgba(13, 148, 136, 0.06);
  color: var(--on-surface-var);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.data-table thead th:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--surface-mid);
  transition: background 0.15s;
}

.data-table tbody tr:hover {
  background: rgba(13, 148, 136, 0.04);
}

.data-table tbody td {
  padding: 12px 16px;
  color: var(--on-surface);
  vertical-align: middle;
}

.data-table tbody td:last-child {
  white-space: nowrap;
}

.data-table tbody td:last-child .icon-btn {
  margin-right: 6px;
  vertical-align: middle;
}

.data-table tbody td:last-child .icon-btn:last-child {
  margin-right: 0;
}

.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable .material-icons-round {
  font-size: 14px;
  vertical-align: middle;
  opacity: 0.5;
}

.table-scroll {
  overflow-x: auto;
}

.table-widget {
  padding: 20px;
}

/* --- Filter / Chips --- */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 20px;
  margin-bottom: 20px;
}

.filter-bar .filter-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-low);
  border: 1.5px solid var(--outline-var);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.filter-search-row:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.filter-search-input {
  flex: 1;
  font-size: 0.875rem;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  color: var(--on-surface);
}

.filter-search-input::placeholder {
  color: var(--outline);
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding-right: 12px;
  border-right: 1.5px solid var(--outline-var);
  margin-right: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--surface-low);
  border: 1.5px solid var(--outline-var);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--on-surface-var);
  transition: all 0.15s;
  white-space: nowrap;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: var(--primary-soft);
}

.chip.active {
  background: var(--primary-soft);
  border-color: var(--primary-light);
  color: var(--primary-light);
  font-weight: 700;
}

.filter-select {
  background: var(--surface-low);
  border: 1.5px solid var(--outline-var);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--on-surface);
  transition: border-color 0.15s;
}

.filter-select:focus {
  border-color: var(--primary-light);
  outline: none;
}

/* --- Tab Bar --- */
.tab-bar {
  display: flex;
  gap: 4px;
  padding: 8px;
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
}

.tab-btn {
  flex: 1;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--on-surface-var);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-btn.active {
  background: var(--primary-light);
  color: #fff;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.30);
}

.tab-btn:hover:not(.active) {
  background: var(--surface-mid);
}

/* --- Stat Cards --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent, var(--primary-light));
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-icon-wrap {
  width: 48px;
  height: 48px;
  background: color-mix(in srgb, var(--accent, var(--primary-light)) 12%, transparent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, var(--primary-light));
  flex-shrink: 0;
}

.stat-icon-wrap .material-icons-round {
  font-size: 24px;
}

.stat-body {
  flex: 1;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--on-surface-var);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-delta {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--on-surface-var);
}

.stat-delta .material-icons-round {
  font-size: 14px;
}

.stat-delta.positive {
  color: #059669;
}

.stat-delta.negative {
  color: #DC2626;
}

/* --- Widget --- */
.widget {
  padding: 24px;
  margin-bottom: 20px;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.widget-header h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--on-surface);
}

.view-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 2px;
}

.view-all .material-icons-round {
  font-size: 14px;
}

/* --- Responsive Table (Card View) --- */
@media (max-width: 768px) {
  .data-table thead { display: none; }
  .data-table tbody tr {
    display: block;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }
  .data-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--surface-mid);
    gap: 12px;
    min-height: 32px;
  }
  .data-table tbody td:last-child {
    border-bottom: none;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
  }
  .data-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-surface-var);
    flex-shrink: 0;
  }
  .data-table tbody td:first-child::before,
  .data-table tbody td[data-label=""]::before {
    display: none;
  }
  .data-table tbody tr:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .table-scroll { overflow-x: visible; }
  .data-table-container { overflow-x: visible; border: none; background: transparent; }
  .data-table { min-width: 0; }

  .admin-table thead { display: none; }
  .admin-table tbody tr {
    display: block;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
  }
  .admin-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--surface-mid);
    gap: 12px;
    min-height: 36px;
    background: transparent !important;
    backdrop-filter: none !important;
  }
  .admin-table tbody td:last-child { border-bottom: none; }
  .admin-table tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-surface-var);
    flex-shrink: 0;
  }
  .admin-table tr td:first-child { border-left: none; border-radius: 0; }
  .admin-table tr td:last-child { border-right: none; border-radius: 0; }
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 4px;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-info {
  font-size: 0.82rem;
  color: var(--on-surface-var);
}

.pagination-btns {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-btn {
  background: var(--surface-low);
  border: 1.5px solid var(--outline-var);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  color: var(--on-surface-var);
  transition: all 0.15s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-btn .material-icons-round {
  font-size: 18px;
}

.page-numbers {
  display: flex;
  gap: 4px;
}

.page-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-low);
  border: 1.5px solid var(--outline-var);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--on-surface-var);
  cursor: pointer;
  transition: all 0.15s;
}

.page-num:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.page-num.active {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #fff;
}

/* --- Patient Cell --- */
.patient-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.mini-avatar {
  width: 32px;
  height: 32px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-light);
  flex-shrink: 0;
}

/* --- Alert Banner --- */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--accent-amber);
}

.alert-banner .material-icons-round {
  color: var(--accent-amber);
}

.alert-banner p {
  flex: 1;
  font-size: 0.875rem;
}

.close-alert {
  background: none;
  border: none;
  color: var(--on-surface-var);
  display: flex;
  padding: 2px;
}

.close-alert:hover {
  color: var(--accent-red);
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--outline-var);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--outline);
}

/* --- Utility --- */
.hidden {
  display: none !important;
}

.text-muted {
  color: var(--on-surface-var);
}

.text-sm {
  font-size: 0.82rem;
}

.fw-600 {
  font-weight: 600;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

/* --- Toast Notifications --- */
#toastContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--surface);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  animation: toastIn 0.3s ease;
  max-width: 320px;
  border-left: 4px solid var(--primary-light);
}

.toast.success {
  border-left-color: var(--accent-green);
}

.toast.error {
  border-left-color: var(--accent-red);
}

.toast.warning {
  border-left-color: var(--accent-amber);
}

.toast .material-icons-round {
  font-size: 20px;
  color: var(--primary-light);
}

.toast.success .material-icons-round {
  color: var(--accent-green);
}

.toast.error .material-icons-round {
  color: var(--accent-red);
}

.toast.warning .material-icons-round {
  color: var(--accent-amber);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 480px) {
  #toastContainer {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
  .toast {
    max-width: 100%;
    padding: 12px 14px;
    font-size: 0.82rem;
  }
}

/* --- Custom Autocomplete Dropdown --- */
.custom-autocomplete {
  position: relative;
  width: 100%;
}

.custom-autocomplete input {
  width: 100%;
  padding-right: 32px;
}

.autocomplete-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--outline-var);
  pointer-events: none;
}



/* --- Responsive --- */
@media (max-width: 768px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .modal {
    max-width: 100%;
    margin: 0 8px;
    padding: 20px;
    max-height: 85vh;
  }
  .modal.wide-modal {
    max-width: 100%;
  }
  .modal-overlay {
    padding: 8px;
    align-items: flex-end;
  }
  .modal-footer {
    flex-direction: column;
  }
  .modal-footer button {
    width: 100%;
    justify-content: center;
  }
  .modal-header h2 {
    font-size: 1.1rem;
  }

  .tab-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding: 4px;
  }
  .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 0.82rem;
  }

  .pagination {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .pagination-info {
    text-align: center;
  }
  .pagination-btns {
    justify-content: center;
  }

  .filter-bar .filter-bar-row {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-chips {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    border-right: none;
    padding-right: 0;
    margin-right: 0;
  }
  .chip {
    flex: 0 0 auto;
    padding: 8px 14px;
  }
  .filter-selects {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .filter-select {
    width: 100%;
  }

  .adv-search-grid {
    grid-template-columns: 1fr 1fr;
  }

  .widget {
    padding: 16px;
  }
  .widget-header h3 {
    font-size: 0.9rem;
  }

  .stat-card {
    padding: 16px;
  }
  .stat-value {
    font-size: 1.6rem;
  }
  .stat-icon-wrap {
    width: 40px;
    height: 40px;
  }
  .stat-icon-wrap .material-icons-round {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 16px;
    border-radius: var(--radius-lg);
  }
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    max-height: 90vh;
  }
  .modal-close {
    padding: 10px;
  }

  .page-title {
    font-size: 1.3rem;
  }
  .header-actions {
    width: 100%;
  }
  .header-actions .btn-primary {
    flex: 1;
    justify-content: center;
  }

  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-value {
    font-size: 1.4rem;
  }

  .filter-bar {
    padding: 10px 12px;
  }

  .adv-search-grid {
    grid-template-columns: 1fr;
  }

  .pagination-btns .page-numbers {
    display: none;
  }

  .widget {
    padding: 12px;
    border-radius: var(--radius-md);
  }

  .btn-primary, .btn-secondary {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  .btn-sm {
    padding: 8px 12px;
  }
  .icon-btn {
    padding: 10px;
  }
  .icon-btn .material-icons-round {
    font-size: 20px;
  }

  .badge-status {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
}

/* --- Role-based Views --- */
.role-view[hidden] {
  display: none !important;
}

.role-view {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================
   SMART FILTER BAR — Modern Premium Design
   ============================================= */
.smart-filter {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, rgba(13,148,136,0.05), rgba(255,255,255,0.7));
  border: 1.5px solid rgba(13,148,136,0.15);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(13,148,136,0.06);
  transition: border-color 0.2s;
  /* Prevent chips from overflowing the card boundary */
  overflow: hidden;
}

.smart-filter:focus-within {
  border-color: rgba(13,148,136,0.35);
  box-shadow: 0 4px 20px rgba(13,148,136,0.10);
}

/* Top row: icon label + chips + result count */
.smart-filter-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  /* Extra vertical padding so active chip box-shadow is not clipped */
  padding: 4px 2px;
  margin: -4px -2px;
}

/* Vertical divider between chip groups */
.sf-divider {
  width: 1.5px;
  height: 22px;
  background: var(--outline-var);
  border-radius: 2px;
  flex-shrink: 0;
  margin: 0 2px;
}

.sf-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.sf-label .material-icons-round {
  font-size: 15px;
}

/* Quick-select chip group */
.sf-chips {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  flex-shrink: 0;
}

/* Dimension chip group (All / General OPD / Skin OPD) */
.sf-dim-chips {
  flex-shrink: 0;
}

.sf-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-low);
  border: 1.5px solid var(--outline-var);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--on-surface-var);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  user-select: none;
}

.sf-chip:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: var(--primary-soft);
  /* Removed translateY(-1px) — it caused chips to escape the card safe area on hover */
  box-shadow: 0 2px 8px rgba(13,148,136,0.18);
}

.sf-chip.active {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #fff;
  box-shadow: 0 3px 10px rgba(13,148,136,0.30);
}

.sf-chip.custom-range-chip.active {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* Result badge showing how many records match */
.sf-result-badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary-light);
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.sf-result-badge.visible {
  opacity: 1;
  transform: scale(1);
}

.sf-result-badge .material-icons-round {
  font-size: 13px;
}

/* Custom date/time range panel (shown when Custom is selected) */
.smart-filter-custom {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 8px;
  align-items: center;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
  pointer-events: none;
}

.smart-filter-custom.expanded {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  padding-top: 4px;
}

.sf-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sf-input-group label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--on-surface-var);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sf-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.sf-date-input,
.sf-time-input {
  background: var(--surface);
  border: 1.5px solid var(--outline-var);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  color: var(--on-surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
}

.sf-date-input:focus,
.sf-time-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.sf-date-input {
  min-width: 130px;
}

.sf-time-input {
  min-width: 90px;
}

.sf-range-arrow {
  color: var(--outline);
  font-size: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2px;
}

.sf-range-arrow .material-icons-round {
  font-size: 18px;
}

/* Action buttons inside custom panel */
.sf-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  padding-bottom: 0;
}

.sf-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 16px;
  background: var(--primary-light);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(13,148,136,0.25);
}

.sf-apply-btn:hover {
  background: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(13,148,136,0.35);
}

.sf-apply-btn .material-icons-round {
  font-size: 14px;
}

.sf-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  background: transparent;
  color: var(--on-surface-var);
  border: 1.5px solid var(--outline-var);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}

.sf-clear-btn:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
  background: rgba(239,68,68,0.05);
}

.sf-clear-btn .material-icons-round {
  font-size: 14px;
}

/* Active filter state indicator on the bar itself */
.smart-filter.has-filter {
  border-color: rgba(13,148,136,0.40);
  background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(255,255,255,0.85));
}

/* Responsive */
@media (max-width: 768px) {
  .smart-filter-custom {
    grid-template-columns: 1fr 1fr;
  }
  .sf-range-arrow {
    display: none;
  }
}