/**
 * HMS UI Redesign — Foundation UI Kit
 * Inspired by Finance App / Enterprise Operations Visual Reference
 *
 * All component classes are prefixed "fui-" (Finance UI kit) to guarantee
 * zero collisions with any existing or future page-local CSS in this
 * codebase (several legacy templates already define generic names like
 * .stat-card, .content-card, .pill locally — prefixing avoids ever
 * fighting the cascade with them).
 *
 * Design tokens (CSS custom properties) are NOT prefixed with fui- since
 * they are already safely namespaced as --hms-* / --accent-*.
 */

:root {
  /* Brand Primary & Secondary */
  --hms-navy: #0B2E4F;
  --hms-navy-light: #123A63;
  --hms-teal: #0E7C86;
  --hms-teal-dark: #0A5F67;

  /* Surface & Base */
  --hms-bg: #F8FAFC;
  --hms-card-bg: #FFFFFF;
  --hms-border: #E2E8F0;
  --hms-border-focus: #0E7C86;
  --hms-text-primary: #0F172A;
  --hms-text-secondary: #64748B;
  --hms-text-muted: #94A3B8;

  /* Module accent chips (icon backgrounds/text only — never for primary buttons/links) */
  --accent-blue: #2563EB;    /* Patients / informational */
  --accent-green: #16A34A;   /* Revenue / Paid / Success */
  --accent-red: #DC2626;     /* Payable / Overdue / Danger */
  --accent-amber: #D97706;   /* Pending / Warning / Tax */
  --accent-purple: #7C3AED;  /* Dashboard highlights / Analytics */
  --accent-orange: #EA580C;  /* Payments / Expenses */
  --accent-cyan: #0891B2;    /* Labs / Reports */

  /* Radii & Shadows */
  --hms-radius-sm: 8px;
  --hms-radius-md: 12px;
  --hms-radius-card: 16px;
  --hms-radius-pill: 999px;
  --hms-shadow-card: 0 4px 12px rgba(15, 23, 42, 0.04);
  --hms-shadow-card-hover: 0 10px 24px rgba(15, 23, 42, 0.08);
  --hms-shadow-dropdown: 0 12px 28px rgba(15, 23, 42, 0.12);
  --hms-shadow-modal: 0 20px 40px rgba(15, 23, 42, 0.18);
}

/* ==========================================================================
   1. PAGE HEADER COMPONENT
   ========================================================================== */
.fui-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.fui-page-header-text,
.fui-page-header-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fui-page-header-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--hms-navy);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.fui-page-header-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--hms-text-secondary);
  margin: 0;
  line-height: 1.4;
}

.fui-page-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   1B. LIVE STATUS BADGE (page-header accessory)
   ========================================================================== */
.fui-live-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--hms-text-secondary);
}

.fui-live-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22C55E;
  display: inline-block;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  flex-shrink: 0;
}

/* ==========================================================================
   1C. NAV SEARCH, NOTIFICATION BELL & AVATAR USER BLOCK
   --------------------------------------------------------------------------
   Visual placeholders only for now (no backend search/notifications yet).
   ========================================================================== */
.fui-nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: #F8FAFC;
  border: 1px solid var(--hms-border);
  border-radius: var(--hms-radius-pill);
  color: var(--hms-text-muted);
  min-width: 200px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fui-nav-search:focus-within {
  border-color: var(--hms-teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.12);
}

.fui-nav-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.85rem;
  color: var(--hms-text-primary);
  width: 100%;
}

.fui-nav-search input::placeholder {
  color: var(--hms-text-muted);
}

.fui-nav-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hms-border);
  background: #F8FAFC;
  color: var(--hms-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.fui-nav-icon-btn:hover {
  background: #F1F5F9;
  color: var(--hms-navy);
}

.fui-nav-book-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284c7 !important;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.28) !important;
  text-decoration: none !important;
}

.fui-nav-book-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4) !important;
}

.fui-nav-user-block {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.fui-nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hms-teal) 0%, var(--hms-navy) 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  cursor: default;
}

/* Name + role reveal on hover, instead of taking up permanent header space */
.fui-nav-user-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--hms-navy);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--hms-radius-sm);
  white-space: nowrap;
  font-size: 0.78rem;
  box-shadow: var(--hms-shadow-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.15s ease;
  z-index: 1070;
  pointer-events: none;
}

.fui-nav-user-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 14px;
  border: 5px solid transparent;
  border-bottom-color: var(--hms-navy);
}

.fui-nav-user-block:hover .fui-nav-user-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.fui-nav-user-tooltip-name {
  font-weight: 700;
  color: #ffffff;
}

.fui-nav-user-tooltip-role {
  font-weight: 500;
  color: #B8C9D6;
  font-size: 0.72rem;
  margin-top: 1px;
}

/* ==========================================================================
   2. STAT CARD COMPONENT (Glassmorphic, Interactive & Compact)
   ========================================================================== */
.fui-stat-card-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
  width: 100% !important;
}

.fui-stat-card {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  border-radius: 12px !important;
  padding: 11px 13px !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.85), 0 3px 10px rgba(15, 23, 42, 0.04) !important;
  backdrop-filter: blur(12px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(180%) !important;
  min-height: 84px !important;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
  position: relative !important;
  text-decoration: none !important;
  cursor: pointer !important;
  overflow: hidden !important;
  user-select: none !important;
}

/* Glass specular sheen overlay */
.fui-stat-card::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 45% !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%) !important;
  pointer-events: none !important;
  border-radius: 12px 12px 0 0 !important;
}

.fui-stat-card:hover {
  transform: translateY(-3px) scale(1.01) !important;
  border-color: rgba(255, 255, 255, 0.95) !important;
  text-decoration: none !important;
}

.fui-stat-card:active {
  transform: scale(0.97) !important;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.fui-stat-card:focus-visible {
  outline: 2px solid var(--hms-teal) !important;
  outline-offset: 2px !important;
}

.fui-stat-card.is-active {
  outline: 2px solid var(--hms-teal) !important;
  outline-offset: -2px !important;
}

.fui-stat-card-top,
.fui-stat-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 2px !important;
  width: 100% !important;
  position: relative !important;
  z-index: 1 !important;
}

.fui-stat-card-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  flex-shrink: 0 !important;
  margin-bottom: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.65), 0 2px 5px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  /* background + color are set per accent modifier below */
}

.fui-stat-card:hover .fui-stat-card-icon {
  transform: scale(1.1) rotate(-3deg) !important;
}

/* Stat-card badge - compact glass pill */
.fui-stat-card-badge {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #ffffff !important;
  letter-spacing: 0.02em !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.fui-stat-card-label,
.fui-stat-card-title {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--hms-text-secondary) !important;
  margin-bottom: 1px !important;
  line-height: 1.2 !important;
  position: relative !important;
  z-index: 1 !important;
}

.fui-stat-card-value {
  font-size: 21px !important;
  font-weight: 700 !important;
  color: var(--hms-navy) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.01em !important;
  margin: 3px 0 1px !important;
  text-shadow: none !important;
  position: relative !important;
  z-index: 1 !important;
}

.fui-stat-card-note,
.fui-stat-card-meta {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: var(--hms-text-secondary) !important;
  margin-top: 5px !important;
  padding-top: 4px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px !important;
  width: 100% !important;
  position: relative !important;
  z-index: 1 !important;
}

.fui-stat-card-note i,
.fui-stat-card-meta i,
.fui-stat-card-action {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  transition: transform 0.2s ease !important;
}

.fui-stat-card:hover .fui-stat-card-action {
  transform: translateX(3px) !important;
}

/* Glassmorphic accent palettes: translucent frosted tint, glass icon chip, badge, and colored glow shadow on hover */

.fui-stat-card--green {
  background: linear-gradient(135deg, rgba(234, 243, 222, 0.9) 0%, rgba(234, 243, 222, 0.65) 100%) !important;
}
.fui-stat-card--green .fui-stat-card-icon { background: rgba(192, 221, 151, 0.9) !important; color: #27500A !important; }
.fui-stat-card--green .fui-stat-card-badge { background: #3B6D11 !important; }
.fui-stat-card--green .fui-stat-card-note i,
.fui-stat-card--green .fui-stat-card-meta i,
.fui-stat-card--green .fui-stat-card-action { color: #3B6D11 !important; }
.fui-stat-card--green:hover { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.95), 0 8px 20px -4px rgba(59, 109, 17, 0.38), 0 2px 6px rgba(15, 23, 42, 0.04) !important; }

.fui-stat-card--blue {
  background: linear-gradient(135deg, rgba(230, 241, 251, 0.9) 0%, rgba(230, 241, 251, 0.65) 100%) !important;
}
.fui-stat-card--blue .fui-stat-card-icon { background: rgba(181, 212, 244, 0.9) !important; color: #0C447C !important; }
.fui-stat-card--blue .fui-stat-card-badge { background: #185FA5 !important; }
.fui-stat-card--blue .fui-stat-card-note i,
.fui-stat-card--blue .fui-stat-card-meta i,
.fui-stat-card--blue .fui-stat-card-action { color: #185FA5 !important; }
.fui-stat-card--blue:hover { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.95), 0 8px 20px -4px rgba(24, 95, 165, 0.38), 0 2px 6px rgba(15, 23, 42, 0.04) !important; }

.fui-stat-card--teal {
  background: linear-gradient(135deg, rgba(225, 245, 238, 0.9) 0%, rgba(225, 245, 238, 0.65) 100%) !important;
}
.fui-stat-card--teal .fui-stat-card-icon { background: rgba(159, 225, 203, 0.9) !important; color: #085041 !important; }
.fui-stat-card--teal .fui-stat-card-badge { background: #0F6E56 !important; }
.fui-stat-card--teal .fui-stat-card-note i,
.fui-stat-card--teal .fui-stat-card-meta i,
.fui-stat-card--teal .fui-stat-card-action { color: #0F6E56 !important; }
.fui-stat-card--teal:hover { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.95), 0 8px 20px -4px rgba(15, 110, 86, 0.38), 0 2px 6px rgba(15, 23, 42, 0.04) !important; }

.fui-stat-card--amber {
  background: linear-gradient(135deg, rgba(250, 238, 218, 0.9) 0%, rgba(250, 238, 218, 0.65) 100%) !important;
}
.fui-stat-card--amber .fui-stat-card-icon { background: rgba(250, 199, 117, 0.9) !important; color: #633806 !important; }
.fui-stat-card--amber .fui-stat-card-badge { background: #854F0B !important; }
.fui-stat-card--amber .fui-stat-card-note i,
.fui-stat-card--amber .fui-stat-card-meta i,
.fui-stat-card--amber .fui-stat-card-action { color: #854F0B !important; }
.fui-stat-card--amber:hover { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.95), 0 8px 20px -4px rgba(133, 79, 11, 0.38), 0 2px 6px rgba(15, 23, 42, 0.04) !important; }

.fui-stat-card--red {
  background: linear-gradient(135deg, rgba(252, 235, 235, 0.9) 0%, rgba(252, 235, 235, 0.65) 100%) !important;
}
.fui-stat-card--red .fui-stat-card-icon { background: rgba(247, 193, 193, 0.9) !important; color: #791F1F !important; }
.fui-stat-card--red .fui-stat-card-badge { background: #A32D2D !important; }
.fui-stat-card--red .fui-stat-card-note i,
.fui-stat-card--red .fui-stat-card-meta i,
.fui-stat-card--red .fui-stat-card-action { color: #A32D2D !important; }
.fui-stat-card--red:hover { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.95), 0 8px 20px -4px rgba(163, 45, 45, 0.38), 0 2px 6px rgba(15, 23, 42, 0.04) !important; }

.fui-stat-card--rose {
  background: linear-gradient(135deg, rgba(251, 234, 240, 0.9) 0%, rgba(251, 234, 240, 0.65) 100%) !important;
}
.fui-stat-card--rose .fui-stat-card-icon { background: rgba(244, 192, 209, 0.9) !important; color: #72243E !important; }
.fui-stat-card--rose .fui-stat-card-badge { background: #993556 !important; }
.fui-stat-card--rose .fui-stat-card-note i,
.fui-stat-card--rose .fui-stat-card-meta i,
.fui-stat-card--rose .fui-stat-card-action { color: #993556 !important; }
.fui-stat-card--rose:hover { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.95), 0 8px 20px -4px rgba(153, 53, 86, 0.38), 0 2px 6px rgba(15, 23, 42, 0.04) !important; }

.fui-stat-card--purple {
  background: linear-gradient(135deg, rgba(238, 237, 254, 0.9) 0%, rgba(238, 237, 254, 0.65) 100%) !important;
}
.fui-stat-card--purple .fui-stat-card-icon { background: rgba(206, 203, 246, 0.9) !important; color: #3C3489 !important; }
.fui-stat-card--purple .fui-stat-card-badge { background: #534AB7 !important; }
.fui-stat-card--purple .fui-stat-card-note i,
.fui-stat-card--purple .fui-stat-card-meta i,
.fui-stat-card--purple .fui-stat-card-action { color: #534AB7 !important; }
.fui-stat-card--purple:hover { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.95), 0 8px 20px -4px rgba(83, 74, 183, 0.38), 0 2px 6px rgba(15, 23, 42, 0.04) !important; }

.fui-stat-card--cyan {
  background: linear-gradient(135deg, rgba(227, 246, 251, 0.9) 0%, rgba(227, 246, 251, 0.65) 100%) !important;
}
.fui-stat-card--cyan .fui-stat-card-icon { background: rgba(168, 226, 240, 0.9) !important; color: #0B7285 !important; }
.fui-stat-card--cyan .fui-stat-card-badge { background: #0B7285 !important; }
.fui-stat-card--cyan .fui-stat-card-note i,
.fui-stat-card--cyan .fui-stat-card-meta i,
.fui-stat-card--cyan .fui-stat-card-action { color: #0B7285 !important; }
.fui-stat-card--cyan:hover { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.95), 0 8px 20px -4px rgba(11, 114, 133, 0.38), 0 2px 6px rgba(15, 23, 42, 0.04) !important; }

.fui-stat-card--orange {
  background: linear-gradient(135deg, rgba(252, 238, 227, 0.9) 0%, rgba(252, 238, 227, 0.65) 100%) !important;
}
.fui-stat-card--orange .fui-stat-card-icon { background: rgba(240, 153, 123, 0.9) !important; color: #4A1B0C !important; }
.fui-stat-card--orange .fui-stat-card-badge { background: #9A3412 !important; }
.fui-stat-card--orange .fui-stat-card-note i,
.fui-stat-card--orange .fui-stat-card-meta i,
.fui-stat-card--orange .fui-stat-card-action { color: #9A3412 !important; }
.fui-stat-card--orange:hover { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.95), 0 8px 20px -4px rgba(154, 52, 18, 0.38), 0 2px 6px rgba(15, 23, 42, 0.04) !important; }

.fui-stat-card--indigo {
  background: linear-gradient(135deg, rgba(232, 234, 251, 0.9) 0%, rgba(232, 234, 251, 0.65) 100%) !important;
}
.fui-stat-card--indigo .fui-stat-card-icon { background: rgba(194, 199, 242, 0.9) !important; color: #363C9C !important; }
.fui-stat-card--indigo .fui-stat-card-badge { background: #363C9C !important; }
.fui-stat-card--indigo .fui-stat-card-note i,
.fui-stat-card--indigo .fui-stat-card-meta i,
.fui-stat-card--indigo .fui-stat-card-action { color: #363C9C !important; }
.fui-stat-card--indigo:hover { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.95), 0 8px 20px -4px rgba(54, 60, 156, 0.38), 0 2px 6px rgba(15, 23, 42, 0.04) !important; }

.fui-stat-card--emerald {
  background: linear-gradient(135deg, rgba(227, 245, 236, 0.9) 0%, rgba(227, 245, 236, 0.65) 100%) !important;
}
.fui-stat-card--emerald .fui-stat-card-icon { background: rgba(167, 224, 196, 0.9) !important; color: #065F46 !important; }
.fui-stat-card--emerald .fui-stat-card-badge { background: #065F46 !important; }
.fui-stat-card--emerald .fui-stat-card-note i,
.fui-stat-card--emerald .fui-stat-card-meta i,
.fui-stat-card--emerald .fui-stat-card-action { color: #065F46 !important; }
.fui-stat-card--emerald:hover { box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.95), 0 8px 20px -4px rgba(6, 95, 70, 0.38), 0 2px 6px rgba(15, 23, 42, 0.04) !important; }

/* ==========================================================================
   3. CONTENT CARD COMPONENT
   ========================================================================== */
.fui-content-card {
  background: var(--hms-card-bg);
  border: 1px solid var(--hms-border);
  border-radius: var(--hms-radius-card);
  box-shadow: var(--hms-shadow-card);
  overflow: hidden;
  margin-bottom: 24px;
}

.fui-content-card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--hms-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: #FAFCFE;
}

.fui-content-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fui-content-card-title-icon {
  font-size: 1.1rem;
  color: var(--hms-teal);
}

.fui-content-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hms-navy);
  margin: 0;
  letter-spacing: -0.01em;
}

.fui-content-card-subtitle {
  font-size: 0.8rem;
  color: var(--hms-text-secondary);
  margin: 0;
}

.fui-content-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fui-content-card-body {
  padding: 24px;
}

.fui-content-card-body.p-0 {
  padding: 0;
}

/* ==========================================================================
   4. DATA TABLE & STATUS PILLS & ACTION BUTTONS
   ========================================================================== */
.fui-data-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 0 0 var(--hms-radius-card) var(--hms-radius-card);
}

.fui-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.8rem;
  text-align: left;
}

.fui-data-table thead th {
  background-color: #F1F5F9;
  color: #0F172A;
  font-weight: 800;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border-bottom: 2px solid #CBD5E1;
  white-space: nowrap;
}

.fui-data-table tbody tr {
  border-bottom: 1px solid var(--hms-border);
  transition: background-color 0.15s ease;
}

.fui-data-table tbody tr:last-child {
  border-bottom: none;
}

.fui-data-table tbody tr:hover {
  background-color: #F1F5F9;
}

.fui-data-table td {
  padding: 8px 14px;
  color: var(--hms-text-primary);
  vertical-align: middle;
}

.fui-data-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Status Pills */
.fui-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: var(--hms-radius-pill);
  line-height: 1.6;
  text-transform: capitalize;
  white-space: nowrap;
}

.fui-pill--success,
.fui-pill.success {
  background-color: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.fui-pill--warning,
.fui-pill.warning {
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.fui-pill--danger,
.fui-pill.danger {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.fui-pill--info,
.fui-pill.info,
.fui-pill.primary {
  background-color: #E0F2FE;
  color: #075985;
  border: 1px solid #BAE6FD;
}

.fui-pill--neutral,
.fui-pill.neutral {
  background-color: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
}

/* Action Buttons — flexible by default (icon + label, e.g. "View"); use
   .fui-btn-action--icon-only for dense table rows with icon-only square
   buttons, matching the reference ERP's .btn-xs pattern. */
.fui-action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}

.fui-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  background: var(--hms-card-bg);
  border: 1px solid var(--hms-border);
  color: var(--hms-text-secondary);
  transition: all 0.15s ease;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}

.fui-btn-action:hover {
  background-color: rgba(14, 124, 134, 0.08);
  border-color: rgba(14, 124, 134, 0.35);
  color: var(--hms-teal);
}

.fui-btn-action--icon-only {
  width: 26px;
  height: 26px;
  padding: 0;
  gap: 0;
}

.fui-btn-action--view,
.fui-btn-action--edit {
  color: var(--hms-text-secondary);
}

.fui-btn-action--pay {
  color: #ffffff;
  background-color: var(--accent-amber);
  border-color: var(--accent-amber);
}

.fui-btn-action--pay:hover {
  background-color: #b45309;
  border-color: #b45309;
  color: #ffffff;
}

.fui-btn-action--delete {
  color: var(--accent-red);
}

.fui-btn-action--delete:hover {
  background-color: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.4);
  color: var(--accent-red);
}

/* ==========================================================================
   5. FORM MODAL & LINE-ITEMS GRID
   ========================================================================== */
.fui-form-modal-header {
  padding: 20px 24px;
  background: #FAFCFE;
  border-bottom: 1px solid var(--hms-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fui-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .fui-form-grid {
    grid-template-columns: 1fr;
  }
}

.fui-form-group-custom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fui-form-group-custom label,
.form-label {
  font-size: 0.83rem !important;
  font-weight: 600 !important;
  color: #1E293B !important;
  margin-bottom: 5px !important;
}

.form-control,
.form-select,
.fui-form-control-custom {
  height: 42px;
  padding: 8px 14px !important;
  border-radius: 9px !important;
  border: 1.5px solid #CBD5E1 !important;
  background-color: #ffffff !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #0F172A !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.form-control::placeholder,
.fui-form-control-custom::placeholder {
  color: #64748B !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.form-control:focus,
.form-select:focus,
.fui-form-control-custom:focus {
  outline: none !important;
  border-color: var(--hms-teal, #0E7C86) !important;
  box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.16) !important;
  background-color: #ffffff !important;
}

.modal-content {
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: var(--hms-shadow-modal, 0 20px 40px rgba(15, 23, 42, 0.18)) !important;
}

/* Line Items Grid */
.fui-line-items-grid {
  width: 100%;
  border: 1px solid var(--hms-border);
  border-radius: var(--hms-radius-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.fui-line-items-header {
  display: flex;
  background-color: var(--hms-navy);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 14px;
}

.fui-line-items-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hms-border);
  background-color: #ffffff;
}

.fui-line-items-row:last-child {
  border-bottom: none;
}

/* Form Totals Block */
.fui-form-totals-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 16px;
  background-color: #F8FAFC;
  border-radius: var(--hms-radius-sm);
  border: 1px solid var(--hms-border);
  max-width: 320px;
  margin-left: auto;
}

.fui-form-totals-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.88rem;
  color: var(--hms-text-secondary);
}

.fui-form-totals-row.grand-total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hms-navy);
  border-top: 1px solid var(--hms-border);
  padding-top: 8px;
  margin-top: 4px;
}

/* ==========================================================================
   6. EMPTY STATE COMPONENT
   ========================================================================== */
.fui-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.fui-empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(14, 124, 134, 0.08);
  color: var(--hms-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.fui-empty-state-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hms-navy);
  margin-bottom: 6px;
}

.fui-empty-state-subtext,
.fui-empty-state-desc {
  font-size: 0.88rem;
  color: var(--hms-text-secondary);
  max-width: 420px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.fui-empty-state-actions {
  display: inline-flex;
  gap: 10px;
}

/* ==========================================================================
   6B. GENERAL BUTTONS (page-header actions, quick-action lists)
   ========================================================================== */
.fui-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--hms-radius-sm);
  text-decoration: none;
  border: 1px solid var(--hms-border);
  background: var(--hms-card-bg);
  color: var(--hms-text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
  white-space: nowrap;
}

.fui-btn:hover {
  background-color: #F8FAFC;
  border-color: var(--hms-text-muted);
  color: var(--hms-text-primary);
  text-decoration: none;
}

.fui-btn-primary {
  background-color: var(--hms-teal);
  border-color: var(--hms-teal);
  color: #ffffff;
}

.fui-btn-primary:hover {
  background-color: var(--hms-teal-dark);
  border-color: var(--hms-teal-dark);
  color: #ffffff;
}

.fui-btn-secondary {
  background-color: var(--hms-card-bg);
  border-color: var(--hms-border);
  color: var(--hms-text-primary);
}

.fui-btn-secondary:hover {
  background-color: rgba(14, 124, 134, 0.06);
  border-color: rgba(14, 124, 134, 0.35);
  color: var(--hms-teal);
}

.fui-btn.justify-content-start {
  justify-content: flex-start;
  width: 100%;
}

/* ==========================================================================
   7. APP FOOTER BAR
   ========================================================================== */
.fui-app-footer-bar {
  background-color: var(--hms-navy);
  color: #E2E8F0;
  font-size: 0.8rem;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.fui-app-footer-left {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #94A3B8;
}

.fui-app-footer-center {
  font-weight: 500;
  color: #CBD5E1;
}

.fui-app-footer-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #E2E8F0;
}

.fui-status-dot--connected {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22C55E;
  display: inline-block;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

/* ==========================================================================
   8B. UNIFIED HEADER TABS (merged into the single header row for staff)
   --------------------------------------------------------------------------
   IMPORTANT: this list is intentionally NOT given `overflow-x: auto`. Per the
   CSS overflow spec, setting overflow-x to anything but visible forces the
   browser to also clip overflow-y on the same element — which was silently
   hiding the Clinical/Staff/Reports dropdown menus. Instead, tabs shrink to
   icon-only below a width threshold so everything fits without scrolling or
   clipping, and dropdowns are free to render outside the element's box.
   ========================================================================== */
.fui-header-tabs {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  list-style: none;
  margin: 0 0 0 16px;
  padding: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.fui-header-tabs .fui-top-tab {
  padding: 8px 10px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.fui-header-actions-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .fui-header-tabs .fui-top-tab {
    padding: 8px 8px;
    font-size: 0.8rem;
  }
}

@media (max-width: 1100px) {
  .fui-header-tabs .fui-top-tab {
    padding: 8px 8px;
  }
  .fui-header-tabs .fui-top-tab > span {
    display: none;
  }
  .fui-header-tabs .fui-top-tab-dropdown-item > span {
    display: inline; /* dropdown flyout items keep their text label */
  }
}

@media (max-width: 991px) {
  .fui-header-tabs {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 8px 12px;
    background: #FFFFFF;
    border-top: 1px solid var(--hms-border);
    box-shadow: var(--hms-shadow-dropdown);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    z-index: 1049;
  }
  .fui-header-tabs.fui-show-mobile-nav {
    display: flex;
  }
  .fui-header-tabs .fui-top-tab {
    padding: 10px 16px;
  }
  .fui-header-tabs .fui-top-tab > span {
    display: inline; /* restore text labels in the vertical mobile drawer */
  }
  .fui-header-tabs .fui-top-tab-dropdown-menu {
    position: static;
    box-shadow: none;
    border: 1px solid var(--hms-border);
    margin: 4px 0 8px 16px;
    width: auto;
    min-width: 0;
  }
}

/* ==========================================================================
   8. TOP TAB BAR COMPONENT (patient portal only — unchanged separate bar)
   ========================================================================== */
.fui-top-tab-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--hms-border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  position: sticky;
  top: 74px;
  z-index: 1040;
  width: 100%;
}

.fui-top-tab-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 16px;
  margin: 0;
  list-style: none;
  scrollbar-width: thin;
}

.fui-top-tab-nav::-webkit-scrollbar {
  height: 3px;
}

.fui-top-tab-nav::-webkit-scrollbar-thumb {
  background: var(--hms-border);
  border-radius: 4px;
}

.fui-top-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hms-text-secondary);
  text-decoration: none;
  border-radius: var(--hms-radius-sm);
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.fui-top-tab:hover {
  color: var(--hms-navy);
  background-color: #F1F5F9;
}

.fui-top-tab.active {
  color: var(--hms-teal);
  background-color: rgba(14, 124, 134, 0.08);
  font-weight: 700;
}

.fui-top-tab.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 12px;
  right: 12px;
  height: 3px;
  background-color: var(--hms-teal);
  border-radius: 3px 3px 0 0;
}

.fui-top-tab-icon {
  font-size: 0.95rem;
}

.fui-top-tab-dropdown {
  position: relative;
}

.fui-top-tab-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  border: 1px solid var(--hms-border);
  border-radius: var(--hms-radius-md);
  box-shadow: var(--hms-shadow-dropdown);
  min-width: 220px;
  padding: 8px 0;
  z-index: 1060;
  display: none;
}

/* 2-column mega-menu variant for dropdowns with grouped sub-sections
   (matches the reference ERP's Planning/Supply Chain flyout pattern).
   Usage: add this class alongside .fui-top-tab-dropdown-menu, and group
   items into two child <div> columns, each starting with a
   .fui-top-tab-dropdown-section-title. */
.fui-top-tab-dropdown-menu--wide {
  display: none;
  grid-template-columns: 210px 210px;
  gap: 4px 16px;
  min-width: 460px;
  padding: 12px;
}

.fui-top-tab-dropdown-menu--wide.fui-dropdown-open {
  display: grid;
}

.fui-top-tab-dropdown-section-title {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hms-text-secondary);
  padding: 4px 10px 6px;
  border-bottom: 1px solid var(--hms-border);
  margin-bottom: 4px;
}

.fui-top-tab-dropdown:hover .fui-top-tab-dropdown-menu,
.fui-top-tab-dropdown:focus-within .fui-top-tab-dropdown-menu {
  display: block;
}

.fui-top-tab-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--hms-text-primary);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.fui-top-tab-dropdown-item:hover {
  background-color: #F8FAFC;
  color: var(--hms-teal);
}

.fui-top-tab-dropdown-item.active {
  background-color: rgba(14, 124, 134, 0.08);
  color: var(--hms-teal);
  font-weight: 700;
}

@media (max-width: 991px) {
  .fui-top-tab-bar {
    position: sticky;
    top: 74px;
    z-index: 1040;
  }
  .fui-top-tab-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px;
    background: #FFFFFF;
    border-top: 1px solid var(--hms-border);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .fui-top-tab-nav.fui-show-mobile-nav {
    display: flex;
  }
  .fui-top-tab-dropdown-menu {
    position: static;
    box-shadow: none;
    border: 1px solid var(--hms-border);
    margin: 4px 0 8px 16px;
    width: auto;
    min-width: 0;
  }
}

/* ==========================================================================
   9. DOCTOR DIRECTORY COMPONENTS (staff admin only)
   ========================================================================== */
.fui-doctor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.fui-doctor-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: var(--hms-card-bg);
  border: 1px solid var(--hms-border);
  border-radius: var(--hms-radius-pill);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fui-doctor-search:focus-within {
  border-color: var(--hms-teal);
  box-shadow: 0 0 0 3px rgba(14, 124, 134, 0.12);
}

.fui-doctor-search i {
  color: var(--hms-text-muted);
  font-size: 0.9rem;
}

.fui-doctor-search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.85rem;
  color: var(--hms-text-primary);
  width: 100%;
}

.fui-doctor-filter-select {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--hms-radius-sm);
  border: 1px solid var(--hms-border);
  background: var(--hms-card-bg);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--hms-text-primary);
}

.fui-view-toggle {
  display: inline-flex;
  border: 1px solid var(--hms-border);
  border-radius: var(--hms-radius-sm);
  overflow: hidden;
}

.fui-view-toggle button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--hms-card-bg);
  color: var(--hms-text-secondary);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fui-view-toggle button + button {
  border-left: 1px solid var(--hms-border);
}

.fui-view-toggle button.active {
  background: rgba(14, 124, 134, 0.1);
  color: var(--hms-teal);
}

.fui-doctor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.fui-doctor-card {
  background: var(--hms-card-bg);
  border: 1px solid var(--hms-border);
  border-radius: var(--hms-radius-card);
  box-shadow: var(--hms-shadow-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
}

.fui-doctor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--hms-shadow-card-hover);
}

.fui-doctor-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.fui-doctor-card-top > div:last-child {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.fui-doctor-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.fui-doctor-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  object-fit: cover;
}

.fui-doctor-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--hms-card-bg);
}

.fui-doctor-status-dot.available {
  background-color: #22C55E;
}

.fui-doctor-status-dot.on-leave {
  background-color: #94A3B8;
}

.fui-doctor-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--hms-navy);
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fui-doctor-specialization {
  font-size: 0.78rem;
  color: var(--hms-text-secondary);
  margin: 2px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fui-doctor-dept-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--hms-radius-pill);
  margin-bottom: 14px;
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fui-doctor-dept-chip--green   { background: #EAF3DE; color: #27500A; }
.fui-doctor-dept-chip--blue    { background: #E6F1FB; color: #0C447C; }
.fui-doctor-dept-chip--teal    { background: #E1F5EE; color: #085041; }
.fui-doctor-dept-chip--amber   { background: #FAEEDA; color: #633806; }
.fui-doctor-dept-chip--red     { background: #FCEBEB; color: #791F1F; }
.fui-doctor-dept-chip--rose    { background: #FBEAF0; color: #72243E; }
.fui-doctor-dept-chip--purple  { background: #EEEDFE; color: #3C3489; }
.fui-doctor-dept-chip--cyan    { background: #E3F6FB; color: #0B7285; }
.fui-doctor-dept-chip--orange  { background: #FCEEE3; color: #4A1B0C; }
.fui-doctor-dept-chip--indigo  { background: #E8EAFB; color: #363C9C; }
.fui-doctor-dept-chip--emerald { background: #E3F5EC; color: #065F46; }

.fui-doctor-stats-row {
  display: flex;
  gap: 14px;
  padding-top: 12px;
  margin-top: auto;
  margin-bottom: 14px;
  border-top: 1px solid var(--hms-border);
  min-width: 0;
}

.fui-doctor-stats-row > div {
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.fui-doctor-stat-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hms-text-muted);
  margin: 0 0 2px;
}

.fui-doctor-stat-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--hms-text-primary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fui-doctor-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.fui-doctor-card-actions .fui-btn-action,
.fui-doctor-card-actions .fui-btn-doctor-view {
  flex: 1;
  justify-content: center;
}

/* Doctor Custom Action Buttons */
.fui-btn-doctor-view {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
  color: #ffffff !important;
  border: 1px solid #0284C7 !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.fui-btn-doctor-view:hover {
  background: linear-gradient(135deg, #0369A1 0%, #075985 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4) !important;
}

.fui-btn-doctor-book {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid #059669 !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.fui-btn-doctor-book:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4) !important;
}

.fui-btn-doctor-book--icon-only,
.fui-btn-doctor-view--icon-only {
  padding: 6px 10px !important;
  min-width: 34px !important;
  justify-content: center !important;
}
