/* =========================================================
   IMSS Health – Global Theme
   - Layout
   - Sidebar rail
   - Header
   - Cards & dashboard patterns
   ========================================================= */

/* ---------------------------
   1. Tokens / Colors
   --------------------------- */
:root {
  --imss-primary-lime: #c8ff3d;
  --imss-primary-lime-soft: #e9ffb8;
  --imss-primary-charcoal: #14161c;
  --imss-primary-mid: #2f3542;

  --imss-border-soft: #e5e7f5;

  --imss-text-main: #111827;
  --imss-text-muted: #6b7280;
  --imss-text-soft: #a0a5b1;

  --imss-bg-body: #f3f5fb;
  --imss-bg-card: #ffffff;

  --radius-card: 26px;

  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.07);
  --shadow-subtle: 0 8px 20px rgba(15, 23, 42, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito Sans', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--imss-text-main);
  background:
    radial-gradient(circle at top left, #fdfdff 0, #eef1f8 40%, #e1e6f3 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Utility */
.text-soft {
  color: var(--imss-text-soft) !important;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #40dd7f;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  display: inline-block;
}
/* Fix layout + sidebar to viewport on desktop */
@media (min-width: 992px) {
  html,
  body {
    height: 100%;
  }

  body {
    overflow: hidden; /* no page scroll – only main area scrolls */
  }

  .imss-layout {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    overflow: hidden;
  }

  .imss-main {
    flex: 1;
    min-height: 0;          /* important so flex child can scroll */
    overflow-y: auto;       /* scroll only inside main dashboard area */
    padding-right: 4px;     /* small room so scroll bar doesn’t overlay */
  }

  .imss-rail {
    height: 100%;           /* fixed to full viewport */
    flex-shrink: 0;
    position: sticky;
    top: 0;
  }
}

/* ---------------------------
   2. Page layout (full-width)
   --------------------------- */
.imss-layout {
  min-height: 100vh;
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  position: relative;
}

.imss-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 991.98px) {
  .imss-layout {
    flex-direction: column;
    padding: 14px 14px 90px;
  }
}

/* ---------------------------
   3. Sidebar rail (left nav)
   --------------------------- */
.imss-rail {
  width: 88px;
  background: rgba(245, 247, 252, 0.98);
  border-radius: 32px;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  /* smoother animation */
  transition: width 0.22s cubic-bezier(.4, 0, .2, 1),
              padding 0.22s cubic-bezier(.4, 0, .2, 1),
              border-radius 0.18s ease-out,
              box-shadow 0.18s ease-out;
  will-change: width, padding;
}

.imss-rail.rail-expanded {
  width: 240px;
  padding-inline: 18px;
  border-radius: 32px;
}


.imss-rail-top,
.imss-rail-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rail-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.rail-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
}

.imss-rail.rail-expanded .rail-logo {
  margin-inline: 2px;
}

.rail-item {
  border: none;
  background: #f8fafc;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.85);
  padding: 8px 10px;
  width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--imss-text-muted);
  cursor: pointer;
  position: relative;
  font-size: 13px;
  transition:
    background 0.16s ease-out,
    color 0.16s ease-out,
    box-shadow 0.16s ease-out,
    transform 0.16s ease-out;
}

.rail-item i {
  font-size: 18px;
}

.rail-item-label {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transform: translateX(-4px);
  transition:
    opacity 0.18s ease-out,
    transform 0.18s ease-out,
    max-width 0.22s cubic-bezier(.4, 0, .2, 1);
}

.imss-rail.rail-expanded .rail-item {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  padding-inline: 16px;
}

.imss-rail.rail-expanded .rail-item-label {
  display: inline-block;
  opacity: 1;
  max-width: 160px; 
  transform: translateX(0);
}

.rail-pill-dot {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #40dd7f;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
}

.rail-item:hover:not(.active) {
  background: #ffffff;
  color: var(--imss-primary-mid);
  transform: translateY(-1px);
}

.rail-item.active {
  background: var(--imss-primary-lime-soft);
  border-color: var(--imss-primary-lime);
  color: #151515;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 16px 30px rgba(163, 230, 53, 0.45);
}

.rail-item-compact i {
  font-size: 16px;
}

/* Floating toggle handle (desktop collapsed – currently unused in HTML) */
.rail-toggle-handle {
  position: absolute;
  left: 90px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--imss-text-soft);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.18s ease;
  z-index: 30;
}

body.rail-is-collapsed .rail-toggle-handle {
  opacity: 1;
  pointer-events: auto;
}

.rail-toggle-handle:hover {
  color: var(--imss-primary-mid);
  transform: translateY(-50%) translateX(2px);
}

/* Mobile: bottom navigation bar */
@media (max-width: 991.98px) {
  .imss-rail {
    width: auto;
    height: 72px;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 18px;
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    top: auto;
    border-radius: 999px;
    z-index: 50;
  }

  .imss-rail-top,
  .imss-rail-bottom {
    flex-direction: row;
  }

  .rail-logo {
    display: none;
  }

  .rail-item {
    width: 46px;
    padding-inline: 0;
    justify-content: center;
  }

  .rail-item-label {
    display: none !important;
  }

  .rail-toggle-handle {
    display: none;
  }
}

/* ---------------------------
   4. Header
   --------------------------- */
.imss-header {
  background: rgba(250, 252, 255, 0.98);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  padding: 16px 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.header-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: 'Poppins', system-ui, sans-serif;
}

.header-brand-line-muted {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #9ca3af;
}

.header-brand-line-strong {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--imss-primary-charcoal);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-accent-circle {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--imss-primary-lime);
  box-shadow: 0 10px 18px rgba(190, 242, 100, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.header-search-pill {
  flex: 1;
  max-width: 360px;
  border-radius: 999px;
  border: 1px solid var(--imss-border-soft);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f9ff;
}

.header-search-pill input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  width: 100%;
}

.header-search-pill i {
  color: var(--imss-text-soft);
}

.header-search-hint {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: var(--imss-text-soft);
}
/* -------------------------------------------
   PREMIUM IMSS SEARCH BAR
-------------------------------------------- */

.imss-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 10px 16px;
    height: 46px;

    border: 1px solid rgba(180, 190, 205, 0.35);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.04),
        inset 0 1px 1px rgba(255,255,255,0.45);
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.imss-search-bar i {
    font-size: 16px;
    color: #94a3b8;
    transition: color 0.22s ease;
}

.imss-search-input {
    border: none;
    outline: none;
    flex: 1;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.imss-search-input::placeholder {
    color: #9ca3af;
    opacity: 0.8;
    font-weight: 400;
}

.imss-search-hint {
    font-size: 12px;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.14);
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid rgba(148,163,184,0.25);
}

/* ---- FOCUS STATE WITH IMSS GLOW ---- */
.imss-search-bar:focus-within {
    border-color: #c8ff3d;
    box-shadow:
        0 0 0 3px rgba(200,255,61,0.25),
        0 4px 12px rgba(0,0,0,0.06);
    background: rgba(255, 255, 255, 0.88);
}

.imss-search-bar:focus-within i {
    color: #111827;
}
/* -------------------------------------------
   SEARCH BAR WIDTH UPGRADE
-------------------------------------------- */

/* container allows flexible expansion */
.imss-search-bar-container {
    flex: 1;              /* <-- THIS makes it much wider */
    max-width: 520px;     /* increase or decrease as needed */
    display: flex;
    justify-content: center;
}

/* bigger width inside */
.imss-search-bar {
    width: 100%;
    max-width: 100%;
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-pill {
  border-radius: 999px;
  padding: 8px 12px;
  background: #f9fafb;
  border: 1px solid var(--imss-border-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--imss-text-muted);
}

.header-pill i {
  font-size: 15px;
  color: var(--imss-text-soft);
}

.header-actions .btn-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(199, 210, 254, 0.9);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--imss-text-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}

.header-actions .btn-icon-circle:hover {
  background: #111827;
  color: #fefce8;
  box-shadow: var(--shadow-subtle);
}

.header-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 5px 11px;
  background: #111827;
  color: #f9fafb;
  cursor: pointer;
}

.header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827, #020617);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.header-profile-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header-profile-text span:first-child {
  font-size: 12px;
  font-weight: 500;
}

.header-profile-text span:last-child {
  font-size: 11px;
  color: #9ca3af;
}

.header-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--imss-text-soft);
}

.header-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-bottom-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-switch-group {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: #f3f4ff;
  border: 1px solid #e5e7f5;
}

.pill-switch {
  border-radius: 999px;
  border: none;
  padding: 4px 10px;
  font-size: 11px;
  background: transparent;
  color: var(--imss-text-soft);
  cursor: pointer;
}

.pill-switch.active {
  background: var(--imss-primary-charcoal);
  color: #fefce8;
}

.filter-chip {
  border-radius: 999px;
  border: 1px solid var(--imss-border-soft);
  background: #ffffff;
  padding: 3px 10px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.filter-chip i {
  font-size: 13px;
  color: var(--imss-text-soft);
}

@media (max-width: 767.98px) {
  .header-top {
    align-items: flex-start;
  }

  .header-actions {
    margin-left: 0;
  }

  .header-search-pill {
    max-width: 100%;
  }
}

/* ---------------------------
   5. Cards & dashboard grid
   --------------------------- */
.imss-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 4px;
}
.imss-content-patient-kpis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 4px;
}
.imss-content-row2 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.5fr)minmax(0, 0.5fr)minmax(0, 0.5fr);
  gap: 18px;
  margin-top: 4px;
}
.imss-content-row3 {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) minmax(0, 2fr);
  gap: 18px;
  margin-top: 4px;
}

@media (max-width: 1199.98px) {
  .imss-content {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 2.2fr);
  }

  .imss-content > .card-progress {
    grid-column: 1 / -1;
  }

  .imss-content-row2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .imss-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Generic IMSS card */
.card-imss {
  background: linear-gradient(145deg, #ffffff, #f9fbff);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(228, 232, 245, 0.95);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}

.card-imss-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.card-imss-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--imss-text-soft);
  font-family: 'Poppins', system-ui, sans-serif;
}

.card-imss-subtitle {
  font-size: 12px;
  color: var(--imss-text-muted);
}

/* Small pill chips */
.chip-pill {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chip-pill span.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #40dd7f;
}

/* Wellness metrics */
.wellness-metric-main {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: 'Poppins', system-ui, sans-serif;
}

.wellness-trend {
  font-size: 12px;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wellness-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.wellness-subitem-label {
  font-size: 11px;
  color: var(--imss-text-soft);
}

.wellness-subitem-value {
  font-size: 15px;
  font-weight: 500;
}

/* Analytics tabs */
.analytics-tabs {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px;
  background: #f5f7ff;
  border: 1px solid #e5e7f5;
  gap: 3px;
}

.analytics-tab {
  border-radius: 999px;
  border: none;
  padding: 4px 10px;
  font-size: 11px;
  background: transparent;
  color: var(--imss-text-soft);
  cursor: pointer;
}

.analytics-tab.active {
  background: #ffffff;
  color: var(--imss-primary-mid);
  box-shadow: var(--shadow-subtle);
}

/* Chart container (Chart.js) */
.chart-container {
  position: relative;
  width: 100%;
  height: 220px;
  margin-top: 4px;
}

.chart-container canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Progress / Worklist */
.card-progress .progress-photo {
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, #e3f2ff, #f4fbff);
  height: 120px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--imss-primary-mid);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 0 10px;
}

.checkbox-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.checkbox-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkbox-list input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

/* Promo / gradient blob */
.promo-blob {
  position: absolute;
  right: -20px;
  top: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 20% 0, var(--imss-primary-lime-soft), transparent 60%);
  opacity: 0.9;
  filter: blur(1px);
  pointer-events: none;
}

.promo-heart {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(from 220deg, #111827, var(--imss-primary-lime));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.promo-text-main {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: 'Poppins', system-ui, sans-serif;
}

.promo-text-sub {
  font-size: 12px;
  color: var(--imss-text-soft);
}

/* =========================
   IMSS Buttons & Pills
   ========================= */

:root {
  --imss-primary-lime: #c8ff3d;
  --imss-primary-lime-soft: #e9ffb8;
  --imss-primary-charcoal: #14161c;
}

/* Primary pill button used across app (Upload, Assign, etc.) */
.btn-soft-primary {
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  border: 1px solid #020617;
  background: #020617;
  color: #fefce8;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.16),
    0 10px 26px rgba(15, 23, 42, 0.45);
  transition: box-shadow 0.16s ease-out, transform 0.16s ease-out,
              background-color 0.16s ease-out, color 0.16s ease-out;
}

.btn-soft-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px rgba(200, 255, 61, 0.25),
    0 16px 32px rgba(15, 23, 42, 0.6);
}

/* Outline variant (used for Assign / Sign / Co-sign chips) */
.btn-soft-primary.outline {
  background: #ffffff;
  color: #020617;
  border-color: rgba(31, 41, 55, 0.35);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn-soft-primary.outline:hover {
  border-color: #020617;
  background: #020617;
  color: #fefce8;
}

/* Generic lime pill for tags like “CCM”, “RPM”, etc. */
.pill-lime {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #c8ff3d, #a0f056);
  color: #020617;
  box-shadow: 0 10px 35px rgba(190, 242, 100, 0.55);
}

/* Buttons */
.btn-ghost-dark {
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid #111827;
  background: #111827;
  color: #fefce8;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.btn-ghost-outline {
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
/* -------------------------------------------
   IMSS DASHBOARD FILTER BAR
-------------------------------------------- */

.imss-filter-bar {
  margin-top: 8px;
  margin-bottom: 4px;
  background: linear-gradient(145deg, #ffffff, #f5f7ff);
  border-radius: 24px;
  border: 1px solid rgba(228, 232, 245, 0.95);
  box-shadow: var(--shadow-soft);
  padding: 10px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.imss-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.imss-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.imss-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid var(--imss-border-soft);
}

.imss-filter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--imss-text-soft);
}

.imss-filter-select {
  border: none;
  background: transparent;
  padding: 0 0 0 4px;
  font-size: 12px;
  color: var(--imss-text-main);
  box-shadow: none !important;
}

.imss-filter-select:focus {
  outline: none;
}

.imss-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.imss-filter-btn {
  font-size: 11px;
  padding-inline: 10px;
}

/* Active filters line */
.imss-filter-active {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
}

.imss-filter-active-label {
  font-weight: 500;
}

.imss-filter-tag {
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  background: #ffffff;
  padding: 3px 9px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--imss-text-muted);
  cursor: pointer;
}

.imss-filter-tag i {
  font-size: 11px;
  color: var(--imss-text-soft);
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .imss-filter-bar {
    padding: 10px 12px 8px;
  }

  .imss-filter-row {
    align-items: flex-start;
  }

  .imss-filter-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
/* -------------------------------------------
   ULTRA PREMIUM HEADER FILTERS
-------------------------------------------- */

.header-bottom-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-left: auto;
}

.header-filters-inline {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.header-filter {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}

.header-filter-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--imss-text-soft);
  font-weight: 600;
}

.header-filter-value {
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  background: radial-gradient(circle at top left, #ffffff, #f3f4ff);
  padding: 5px 12px;
  font-size: 12px;
  color: var(--imss-text-main);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
}

.header-filter-value i {
  font-size: 13px;
  color: var(--imss-text-soft);
}

.header-filter-value:hover {
  border-color: #c8ff3d;
  background: #ffffff;
  box-shadow:
    0 0 0 2px rgba(200, 255, 61, 0.2),
    0 10px 20px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

/* Timeframe & scope pills block */
.header-timeframe-block {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Slightly tighter pills inside header */
.header-timeframe .pill-switch,
.header-scope .pill-switch {
  padding-inline: 9px;
  font-size: 11px;
}

/* Responsive tweaks */
@media (max-width: 991.98px) {
  .header-bottom-right {
    width: 100%;
    justify-content: flex-start;
  }

  .header-filters-inline {
    order: 2;
  }

  .header-timeframe-block {
    order: 1;
  }
}
/* HEADER FILTER DROPDOWN MENU */
.header-filter-menu {
  font-size: 12px;
  min-width: 180px;
  border-radius: 14px;
  padding: 6px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(148, 163, 184, 0.18);
}

.header-filter-menu .dropdown-item {
  border-radius: 10px;
  padding: 6px 8px;
}

.header-filter-menu .dropdown-item.active,
.header-filter-menu .dropdown-item:active {
  background: #111827;
  color: #fefce8;
}

.header-filter-menu .dropdown-item:hover {
  background: #f3f4ff;
}
/* -------------------------------------------
   HEADER FILTERS – SEARCH BUTTON
-------------------------------------------- */

.header-filter-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 50px;
    font-size: 12px;
    font-weight: 600;

    border-radius: 999px;
    border: 1px solid rgba(209, 213, 219, 0.7);

    background: linear-gradient(125deg, #ffffff, #f2f5ff);
    color: #111827;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        inset 0 1px 1px rgba(255,255,255,0.6);

    transition:
        border-color 0.2s ease,
        box-shadow 0.25s ease,
        background 0.2s ease,
        transform 0.15s ease;
}

.header-filter-search-btn i {
    font-size: 14px;
    color: var(--imss-text-soft);
    transition: color 0.2s ease;
}

.header-filter-search-btn:hover {
    border-color: #c8ff3d;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(200,255,61,0.25),
        0 8px 20px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

.header-filter-search-btn:active {
    transform: scale(0.97);
}
/* -------------------------------------------
   HEADER – DASHBOARD SETTINGS BUTTON
-------------------------------------------- */

.header-settings-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(209, 213, 219, 0.7);

    background: linear-gradient(145deg, #ffffff, #f3f6ff);
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.05),
        inset 0 1px 1px rgba(255,255,255,0.6);

    cursor: pointer;
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.25s ease,
        transform 0.15s ease;
}

.header-settings-btn i {
    font-size: 18px;
    color: #6b7280;
    transition: color 0.22s ease;
}

.header-settings-btn:hover {
    border-color: #c8ff3d;
    background: #ffffff;
    box-shadow:
        0 0 0 3px rgba(200,255,61,0.22),
        0 10px 18px rgba(0,0,0,0.12);

    transform: translateY(-1px);
}

.header-settings-btn:hover i {
    color: #111827;
}

.header-settings-btn:active {
    transform: scale(0.94);
}
/* -------------------------------------------
   TIME LOG WIDGET – IMSS DASHBOARD
-------------------------------------------- */

.card-time-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* summary row */
.time-log-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}

@media (max-width: 1199.98px) {
  .time-log-summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .time-log-summary-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.time-log-summary-item {
  padding: 8px 10px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, #ffffff, #f4f6ff);
  border: 1px solid rgba(229, 231, 235, 0.85);
}

.time-log-summary-label {
  font-size: 11px;
  color: var(--imss-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.time-log-summary-value {
  font-size: 18px;
  font-weight: 600;
  margin-top: 2px;
}

.time-log-summary-note {
  font-size: 11px;
  margin-top: 2px;
}

/* view toggle in header */
.time-log-view-toggle .pill-switch {
  padding-inline: 8px;
  font-size: 11px;
}

/* visual bar */
.time-log-bar-wrapper {
  margin-top: 6px;
}

.time-log-bar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 4px;
}

.time-log-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: #e5e7eb;
}

.time-log-bar-segment {
  height: 100%;
}

.segment-rpm {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.segment-ccm {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.segment-other {
  background: linear-gradient(90deg, #f97316, #fbbf24);
}

.time-log-bar-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 11px;
  color: var(--imss-text-soft);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 4px;
}

.dot-rpm {
  background: #22c55e;
}

.dot-ccm {
  background: #3b82f6;
}

.dot-other {
  background: #f97316;
}

/* table area */
.time-log-table-wrapper {
  margin-top: 8px;
  border-radius: 18px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  background: #f9fafb;
  padding: 8px 10px;
}

.time-log-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 11px;
}

.time-log-table-scroll {
  max-height: 220px;
  overflow: auto;
  border-radius: 12px;
  background: #ffffff;
}

/* table styling */
.time-log-table {
  font-size: 12px;
  border-collapse: collapse;
}

.time-log-table thead tr {
  background: #f3f4ff;
}

.time-log-table thead th {
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  color: var(--imss-text-soft);
  padding: 8px 10px;
}

.time-log-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.time-log-table tbody td {
  padding: 7px 10px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

/* patient cell */
.time-log-patient {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-log-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827, #020617);
  color: #f9fafb;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-log-patient-name {
  font-size: 12px;
  font-weight: 500;
}

.time-log-patient-meta {
  font-size: 11px;
}

/* program badges */
.time-log-program-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}

.time-log-program-badge.rpm {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.time-log-program-badge.ccm {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.time-log-program-badge.other {
  background: rgba(234, 179, 8, 0.12);
  color: #92400e;
}

/* status pills */
.time-log-status {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
}

.status-billable {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.status-pending {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.status-nonbillable {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}
/* -------------------------------------------
   DASHBOARD WIDGET HELPERS
-------------------------------------------- */

.card-span-2 {
  grid-column: span 2;
}

@media (max-width: 991.98px) {
  .card-span-2 {
    grid-column: span 1;
  }
}

/* Shared metric layouts */

.metrics-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.metrics-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 1199.98px) {
  .metrics-grid-4,
  .metrics-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .metrics-grid-4,
  .metrics-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.metric-item {
  padding: 8px 10px;
  border-radius: 16px;
  background: radial-gradient(circle at top left, #ffffff, #f4f6ff);
  border: 1px solid rgba(229, 231, 235, 0.85);
}

.metric-label {
  font-size: 11px;
  color: var(--imss-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  font-size: 18px;
  font-weight: 600;
  margin-top: 2px;
}

.metric-note {
  font-size: 11px;
  margin-top: 2px;
}

/* Patient metrics extra */

.metrics-split-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 767.98px) {
  .metrics-split-row {
    grid-template-columns: minmax(0,1fr);
  }
}

.metrics-mini-card {
  padding: 10px 12px;
  border-radius: 16px;
  background: #f9fafb;
  border: 1px solid rgba(226,232,240,0.9);
}

.metrics-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 6px;
}

.metric-tag {
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 500;
}

.metric-tag.rpm {
  background: rgba(22,163,74,0.12);
  color: #15803d;
}

.metric-tag.ccm {
  background: rgba(37,99,235,0.12);
  color: #1d4ed8;
}

.metric-tag.other {
  background: rgba(234,179,8,0.12);
  color: #92400e;
}

/* Claim status */

.claim-status-bar {
  margin-top: 10px;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: #e5e7eb;
}

.claim-status-segment {
  height: 100%;
}

.claim-status-segment.approved {
  background: linear-gradient(90deg,#22c55e,#4ade80);
}

.claim-status-segment.pending {
  background: linear-gradient(90deg,#3b82f6,#60a5fa);
}

.claim-status-segment.denied {
  background: linear-gradient(90deg,#ef4444,#f97373);
}

.claim-status-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 11px;
  color: var(--imss-text-soft);
}

.legend-dot.dot-approved { background:#22c55e; }
.legend-dot.dot-pending { background:#3b82f6; }
.legend-dot.dot-denied { background:#ef4444; }

/* Care plan status */

.card-care-plan .care-plan-row {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(0,1.2fr);
  gap: 12px;
  margin-top: 4px;
}

@media (max-width: 767.98px) {
  .card-care-plan .care-plan-row {
    grid-template-columns: minmax(0,1fr);
  }
}

.care-plan-progress-bar {
  margin-top: 4px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.care-plan-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg,#22c55e,#a3e635);
}

.care-plan-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.care-plan-pill {
  border-radius: 14px;
  padding: 6px 10px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.care-plan-pill .label {
  color: var(--imss-text-soft);
}

.care-plan-pill .value {
  font-weight: 600;
}

.care-plan-pill.overdue {
  background: rgba(239,68,68,0.06);
  color: #b91c1c;
}

.care-plan-pill.due-soon {
  background: rgba(249,115,22,0.06);
  color: #c2410c;
}

.care-plan-pill.drafts {
  background: rgba(59,130,246,0.06);
  color: #1d4ed8;
}

/* Device status list */

.device-status-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.device-status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.device-status-pill {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
}

.device-status-pill.ok {
  background: rgba(22,163,74,0.08);
  color: #15803d;
}

.device-status-pill.warn {
  background: rgba(234,179,8,0.08);
  color: #92400e;
}

/* Calls & claims wide card just reuses card-span-2 */
/* =========================================================
   IMSS DASHBOARD GRID LAYOUT
   Applies to all widget rows
========================================================= */

.imss-content,
.imss-content-row2,
.imss-content-row3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 18px;
    align-items: start;
}

/* Wide cards – span 2 columns on desktop */
.card-span-2 {
    grid-column: span 2;
}

/* On tablet / mobile everything becomes single column */
@media (max-width: 991.98px) {
    .card-span-2 {
        grid-column: span 1;
    }
}

/* =========================================================
   HEIGHT TOKENS FOR WIDGETS
   (min-height so they can grow if needed)
========================================================= */

.card-h-240 { min-height: 240px; }
.card-h-260 { min-height: 260px; }
.card-h-280 { min-height: 280px; }
.card-h-300 { min-height: 300px; }
.card-h-320 { min-height: 320px; }
.card-h-350 { min-height: 350px; }
.card-h-380 { min-height: 380px; }

/* Make sure card content never overflows horizontally */
.card-imss {
    overflow: hidden;
}

/* Existing scroll areas (tables) can scroll vertically inside fixed-height cards */
.time-log-table-scroll {
    max-height: 220px;       /* you already had this – tweak if needed */
    overflow-y: auto;
}

/* Reuse same idea if any other widget needs internal scroll later */
.widget-scroll {
    height: 100%;
    overflow-y: auto;
    padding-right: 4px;
}
.patient-modal .modal-content {
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.patient-modal .modal-title {
    font-weight: 700;
    color: #0f172a;
}

.section-title {
    font-size: 0.9rem;
    text-transform: none;
    color: #0f172a;
    font-weight: 600;
}

.pm-dl {
    margin: 0;
}

.pm-row {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.pm-row dt {
    min-width: 110px;
    margin: 0;
    color: #64748b;
    font-weight: 500;
}

.pm-row dd {
    margin: 0;
    color: #111827;
    font-weight: 600;
}
#modalVideoCallBtn {
    border-color: #22c55e !important;
    color: #16a34a !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 4px 10px;
}

#modalVideoCallBtn:hover {
    background: #22c55e !important;
    color: white !important;
}

.patient-modal-header i.bi-camera-video-fill {
    font-size: 1rem;
}
.demographics-edit-btn {
    border: 1px solid #9ac3de;
    background: #eef7fc;
    color: #0b6fa4;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.demographics-edit-btn:hover {
    background: #d9effc;
    border-color: #6fb3d8;
}
:root {
    /* fallback if you don't already have a primary var */
    --rpm-primary: var(--primary-color, #0086c9);
    --rpm-primary-soft: #e2f1fb;
}

/* Base modal shell */
.import-modal {
    border-radius: 10px;
    border: 1px solid #d3dde7;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.15);
    background-color: #ffffff;
}

/* HEADER – flat white like screenshot, no gradient */
.import-modal-header {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #dde5ee;
    background: #ffffff;
}

.import-modal-header .modal-title {
    font-weight: 600;
    color: #174160;
    font-size: 1rem;
}

.import-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f3f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rpm-primary);
    font-size: 1.1rem;
}

.import-subtitle {
    font-size: 0.78rem;
    color: #6b7280;
}

/* BODY */
.import-modal-body {
    padding: 1rem 1.25rem 1rem;
    background: #f4f7fb;
}

/* FOOTER – subtle grey bar like product */
.import-modal-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #dde5ee;
    background: #ffffff;
}

/* Download sample button – outlined blue (like top-right buttons) */
/* .btn-soft-primary {
    background: #ffffff;
    border-color: var(--rpm-primary);
    color: var(--rpm-primary);
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
} */

.btn-soft-primary:hover {
    background: var(--rpm-primary);
    color: #ffffff;
}

/* Main Upload button – solid blue, square corners like screenshot */
#importPatientModal .btn-primary {
    background: var(--rpm-primary);
    border-color: var(--rpm-primary);
    border-radius: 4px;
    padding-inline: 1.5rem;
}

/* Cancel button – light grey */
#importPatientModal .btn-secondary {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #374151;
    border-radius: 4px;
}

/* Pills -> make them look like screenshot tabs (rect, top edge) */
.import-tabs {
    margin-bottom: 0.75rem;
}

.import-tabs .nav-link {
    border-radius: 0;
    margin-right: 0.2rem;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    background: #e5edf4;
    border: 1px solid #d3dde7;
    border-bottom: none;
}

.import-tabs .nav-link.active {
    background: #ffffff;
    color: #174160;
    border-bottom: 1px solid #ffffff;
}

.import-tabs {
    border-bottom: 1px solid #d3dde7;
}

/* Card section behind Program/Practice – subtle */
.import-form-row {
    background: #ffffff;
    border-radius: 4px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #dde5ee;
}

/* Required asterisk */
.form-label.required::after {
    content: " *";
    color: #e11d48;
}

/* Dropzone – dashed grey rectangle like screenshot */
.import-dropzone {
    margin-top: 0.8rem;
    border: 2px dashed #c5ced8;
    border-radius: 4px;
    padding: 2rem 1rem;
    text-align: center;
    background-color: #f9fbfd;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.import-dropzone:hover {
    background-color: #f1f5fb;
}

.import-dropzone.is-dragover {
    border-color: var(--rpm-primary);
    background-color: #e5f3ff;
}

/* Drop icon – small, subtle */
.import-drop-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    color: var(--rpm-primary);
    font-size: 1.1rem;
}

.import-dropzone p {
    font-size: 0.9rem;
    color: #4b5563;
}

.import-dropzone a {
    color: var(--rpm-primary);
    text-decoration: underline;
}

/* File list */
.import-file-list {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem auto 0;
    font-size: 0.8rem;
    text-align: left;
    max-width: 460px;
    max-height: 120px;
    overflow-y: auto;
    color: #374151;
}

.import-file-list li::before {
    content: "• ";
    color: var(--rpm-primary);
}

/* Footer hint text */
.import-modal-footer .small {
    color: #6b7280;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .import-modal-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
    }

    .import-modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .import-modal-footer .btn {
        width: 100%;
    }
}
/* ================================
   IMSS LIME THEME – MODALS
   ================================ */

/* Use the same soft lime as the navigation */
:root {
    --rpm-primary: var(--imss-primary-lime, #c8ff3d);
    --rpm-primary-soft: rgba(200, 255, 61, 0.16);
}

/* ---------- PATIENT INFO MODAL ---------- */

.patient-modal .modal-content {
    border-radius: 20px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(148, 163, 184, 0.18);
    background: radial-gradient(circle at top left, #ffffff, #f5f7ff);
    border-top: 3px solid var(--rpm-primary);
}

.patient-modal-header {
    padding: 0.9rem 1.4rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(135deg, #ffffff, #f5f7ff);
}

.patient-modal .modal-title {
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.patient-modal-header .badge#modalProgramTag {
    border-radius: 999px;
    padding-inline: 0.7rem;
    box-shadow: 0 8px 22px rgba(250, 204, 21, 0.4);
}

/* Video call – keep green but premium */
#modalVideoCallBtn {
    border-color: #22c55e !important;
    color: #16a34a !important;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 12px;
    box-shadow: 0 5px 18px rgba(34, 197, 94, 0.22);
    background: #ecfdf3;
}

#modalVideoCallBtn:hover {
    background: #22c55e !important;
    color: #ffffff !important;
}

/* Edit demographics icon – lime accent pill */
.demographics-edit-btn {
    border-radius: 10px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(200, 255, 61, 0.6);
    background: radial-gradient(circle at top left, #ffffff, #f5f7ff);
    color: #0f172a;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.18s ease;
}

.demographics-edit-btn:hover {
    background: #ffffff;
    border-color: #c8ff3d;
    box-shadow:
        0 0 0 3px rgba(200, 255, 61, 0.22),
        0 10px 18px rgba(15, 23, 42, 0.16);
}

/* ---------- IMPORT PATIENTS MODAL ---------- */

.import-modal {
    border-radius: 20px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(148, 163, 184, 0.16);
    background: radial-gradient(circle at top left, #ffffff, #f5f7ff);
}

.import-modal-header {
    padding: 0.9rem 1.4rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(135deg, #ffffff, #f5f7ff);
}

.import-modal-header .modal-title {
    font-weight: 600;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.import-header-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: radial-gradient(circle at top left, var(--rpm-primary-soft), #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 1.2rem;
    box-shadow: 0 10px 26px rgba(200, 255, 61, 0.50);
}

/* Body & footer */
.import-modal-body {
    padding: 1.1rem 1.4rem 1.2rem;
    background: #f4f7fb;
}

.import-modal-footer {
    padding: 0.85rem 1.4rem;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    background: #ffffff;
}

/* Download sample button – lime outline chip */
.btn-soft-primary {
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(200, 255, 61, 0.8);
    color: #111827;
    font-size: 0.8rem;
    padding: 0.3rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.btn-soft-primary:hover {
    background: #111827;
    color: #fefce8;
    border-color: #111827;
    box-shadow:
        0 0 0 3px rgba(200, 255, 61, 0.25),
        0 10px 24px rgba(15, 23, 42, 0.35);
}

/* Upload + Cancel buttons in footer */
#importPatientModal .btn-primary {
    border-radius: 999px;
    padding-inline: 1.8rem;
    background: #111827;
    border-color: #020617;
    font-weight: 600;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.06),
        0 10px 26px rgba(15, 23, 42, 0.40);
    transition: all 0.18s ease;
}

#importPatientModal .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 3px rgba(200, 255, 61, 0.25),
        0 14px 30px rgba(15, 23, 42, 0.5);
}

#importPatientModal .btn-secondary {
    border-radius: 999px;
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #374151;
    padding-inline: 1.3rem;
}

/* Tabs for Multiple / Individual */
.import-tabs {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #d3dde7;
}

.import-tabs .nav-link {
    border-radius: 0;
    margin-right: 0.2rem;
    padding: 0.42rem 1.05rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    background: #e5edf4;
    border: 1px solid #d3dde7;
    border-bottom: none;
}

.import-tabs .nav-link.active {
    background: #ffffff;
    color: #111827;
    border-color: #d3dde7;
    border-bottom: 1px solid #ffffff;
    box-shadow: 0 -2px 0 0 var(--rpm-primary) inset;
}

/* Card behind Program / Practice */
.import-form-row {
    background: #ffffff;
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    border: 1px solid #dde5ee;
}

/* Dropzone – lime highlight on hover/drag */
.import-dropzone {
    margin-top: 0.9rem;
    border: 2px dashed #c5ced8;
    border-radius: 12px;
    padding: 2.1rem 1.1rem;
    text-align: center;
    background-color: #f9fbfd;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.18s ease;
}

.import-dropzone:hover {
    background-color: #f3f6ff;
}

.import-dropzone.is-dragover {
    border-color: var(--rpm-primary);
    background-color: #f1f5ff;
    box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.20);
}

.import-drop-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    color: #111827;
    font-size: 1.15rem;
}

/* File list bullets in lime */
.import-file-list li::before {
    content: "• ";
    color: var(--rpm-primary);
}
/* =======================================
   Patient Profile Page – Layout & Theme
   ======================================= */

.imss-patient-profile-page {
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Top chip bar: Patients / Lemos / Ada Tzeng */
.patient-context-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.patient-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.patient-chip {
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.patient-chip.active {
  background: linear-gradient(135deg, #c8ff3d, #a0f056);
  border-color: #c8ff3d;
  color: #020617;
  box-shadow: 0 10px 32px rgba(190, 242, 100, 0.55);
}

.patient-chip-close {
  border: none;
  background: transparent;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

/* CCM / RPM tag on the right */
.patient-program-pill {
  @apply pill-lime; /* if you’re not using Tailwind, just reuse .pill-lime in class list */
}

/* Right-side actions (“Assign to / Sign / Co sign”) */
.patient-context-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Time logger strip */
.time-logger-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: #0f172a;
  color: #e5e7eb;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.75);
}

.time-logger-timebox {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
  font-size: 13px;
}

.time-logger-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

.time-logger-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.time-logger-icon-btn {
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #020617;
  font-size: 14px;
  color: #e5e7eb;
}

/* Main layout for patient profile sections */
.patient-layout-main {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 1rem;
}

@media (max-width: 991.98px) {
  .patient-layout-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Primary profile tabs (Clinical / Billing / Eligibility…) */
.profile-tabs-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding-bottom: 0.35rem;
}

.profile-tab {
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: #6b7280;
}

.profile-tab.active {
  background: #0f172a;
  color: #f9fafb;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.45);
}

/* Secondary tabs (Medical History / Care team / Care plan …) */
.profile-tabs-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.4rem;
}

.profile-subtab {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 12px;
  border: none;
  background: rgba(148, 163, 184, 0.12);
  color: #4b5563;
}

.profile-subtab.active {
  background: #0f172a;
  color: #f9fafb;
}

/* Medical history left nav list */
.mh-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mh-category-item {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(148, 163, 184, 0.08);
  color: #111827;
  cursor: pointer;
}

.mh-category-item.active {
  background: #0f172a;
  color: #f9fafb;
}

.mh-category-help {
  margin-top: 0.75rem;
  font-size: 11px;
  color: var(--imss-text-soft, #6b7280);
}

/* Right-hand current medical history panel */
.mh-current-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.mh-current-title {
  font-size: 14px;
  font-weight: 600;
}

.mh-reviewed-pill {
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #fef3c7;
  color: #92400e;
}

/* Generic inner content */
#profileTabContent {
  margin-top: 1.25rem;
  font-size: 13px;
  color: #111827;
}

#profileTabContent .section-muted {
  font-size: 12px;
  color: var(--imss-text-soft, #6b7280);
}

#profileTabContent table {
  font-size: 12px;
}
/* ===========================================
   IMSS – THEME CLEANUP & CONSISTENCY OVERRIDES
   Keep everything light + lime, no black blobs
   =========================================== */

:root {
  --imss-primary-lime: #c8ff3d;
  --imss-primary-lime-soft: #e9ffb8;
  --imss-primary-charcoal: #14161c;
  --imss-surface: #ffffff;
  --imss-surface-alt: #f5f7fb;
  --imss-text-main: #111827;
  --imss-text-soft: #6b7280;
}

/* ---------- Shared pill buttons (Assign / Sign / Upload / etc.) ---------- */

.btn-soft-primary {
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: var(--imss-primary-lime);
  color: var(--imss-text-main);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 10px 30px rgba(200, 255, 61, 0.45);
  transition:
    box-shadow 0.16s ease-out,
    transform 0.16s ease-out,
    background-color 0.16s ease-out,
    color 0.16s ease-out;
}

.btn-soft-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px rgba(200, 255, 61, 0.25),
    0 16px 32px rgba(15, 23, 42, 0.35);
}

/* outline variant */
.btn-soft-primary.outline {
  background: #ffffff;
  color: var(--imss-text-main);
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-soft-primary.outline:hover {
  background: var(--imss-primary-lime);
  color: var(--imss-text-main);
}

/* Lime tag pill (use for CCM / RPM / etc.) */
.pill-lime {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #c8ff3d, #ddff7d);
  color: var(--imss-text-main);
  box-shadow: 0 10px 28px rgba(190, 242, 100, 0.6);
}

/* ---------- Time logger on patient profile ---------- */

.time-logger-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--imss-surface);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--imss-text-main);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.15);
}

.time-logger-timebox {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-weight: 600;
  font-size: 12px;
}

.time-logger-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--imss-text-soft);
}

.time-logger-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.time-logger-icon-btn {
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  font-size: 14px;
  color: var(--imss-text-main);
}

.time-logger-play {
  background: var(--imss-primary-lime);
  border-color: var(--imss-primary-lime);
  color: var(--imss-text-main);
}

/* ---------- Patient summary / demographics modal ---------- */

.patient-modal .modal-content {
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  background: #ffffff;
}

.patient-modal-header {
  padding: 0.9rem 1.4rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
}

.patient-modal .modal-title {
  font-weight: 700;
  color: var(--imss-text-main);
}

/* Program tag inside header */
#modalProgramTag {
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 11px;
  font-weight: 600;
  background: var(--imss-primary-lime-soft);
  color: var(--imss-text-main);
}

/* Video call button – soft green, not black */
#modalVideoCallBtn {
  border-color: #22c55e !important;
  background: #ecfdf3 !important;
  color: #166534 !important;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 11px;
}

/* Demographics edit square button */
.demographics-edit-btn {
  border-radius: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(200, 255, 61, 0.7);
  background: #ffffff;
  color: var(--imss-text-main);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ---------- Import patients modal ---------- */

.import-modal .modal-content {
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  background: #ffffff;
}

.import-modal-header {
  padding: 0.8rem 1.3rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
}

.import-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--imss-primary-lime-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--imss-text-main);
  font-size: 1.1rem;
}

/* Download sample button */
.btn-soft-primary.import-sample,
#btnDownloadSample {
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(200, 255, 61, 0.8);
  color: var(--imss-text-main);
  font-size: 0.8rem;
  padding: 0.3rem 0.9rem;
}

/* Footer buttons */
#importPatientModal .btn-primary {
  border-radius: 999px;
  padding-inline: 1.7rem;
  background: var(--imss-primary-lime);
  border-color: var(--imss-primary-lime);
  color: var(--imss-text-main);
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(190, 242, 100, 0.5);
}

#importPatientModal .btn-secondary {
  border-radius: 999px;
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #374151;
}

/* Tabs (Multiple / Individual) */
.import-tabs {
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #d3dde7;
}

.import-tabs .nav-link {
  border-radius: 0;
  margin-right: 0.2rem;
  padding: 0.42rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  background: #e5edf4;
  border: 1px solid #d3dde7;
  border-bottom: none;
}

.import-tabs .nav-link.active {
  background: #ffffff;
  color: var(--imss-text-main);
  border-color: #d3dde7;
  border-bottom: 1px solid #ffffff;
}

/* Dropzone */
.import-dropzone {
  margin-top: 0.9rem;
  border: 2px dashed #c5ced8;
  border-radius: 10px;
  padding: 2.1rem 1.1rem;
  text-align: center;
  background-color: #f9fbfd;
}

.import-dropzone.is-dragover {
  border-color: var(--imss-primary-lime);
  background-color: #f4fce5;
}

/* File bullets in lime */
.import-file-list li::before {
  content: "• ";
  color: var(--imss-primary-lime);
}
/* =======================================================
   IMSS – Lime theme normalization (global overrides)
   ======================================================= */

:root {
  --imss-primary-lime: #c8ff3d;
  --imss-primary-lime-soft: #e9ffb8;
  --imss-surface: #ffffff;
  --imss-surface-alt: #f5f7fb;
  --imss-text-main: #1f2933;
  --imss-text-soft: #6b7280;
}

/* ---------- HEADER: avatar + Hi Admin dropdown ---------- */

.header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #ffffff, #f3f4ff);
  border: 1px solid rgba(200, 255, 61, 0.7);
  color: var(--imss-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.header-profile-text span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--imss-text-main);
}

.header-profile-text span:last-child {
  font-size: 11px;
  color: var(--imss-text-soft);
}

/* ---------- Sidebar active item (no black) ---------- */

.rail-item.active {
  background: var(--imss-primary-lime-soft);
  border-color: var(--imss-primary-lime);
  color: var(--imss-text-main);
  box-shadow:
    0 0 0 1px rgba(200, 255, 61, 0.2),
    0 14px 28px rgba(190, 242, 100, 0.55);
}

/* ---------- Shared soft primary buttons (lime) ---------- */

.btn-soft-primary {
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: var(--imss-primary-lime);
  color: var(--imss-text-main);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 10px 30px rgba(200, 255, 61, 0.45);
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out;
}

.btn-soft-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 3px rgba(200, 255, 61, 0.25),
    0 16px 32px rgba(15, 23, 42, 0.38);
}

/* outline variant (Assign / Sign / Co-sign) */
.btn-soft-primary.outline {
  background: #ffffff;
  color: var(--imss-text-main);
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-soft-primary.outline:hover {
  background: var(--imss-primary-lime);
  color: var(--imss-text-main);
}

/* ---------- Lime pill tags (CCM, RPM etc.) ---------- */

.pill-lime,
.patient-program-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #c8ff3d, #ddff7d);
  color: var(--imss-text-main);
  box-shadow: 0 10px 28px rgba(190, 242, 100, 0.6);
}

/* ---------- Patient context chips (Patients / Lemos / Ada) ---------- */

.patient-chip {
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.patient-chip.active {
  background: var(--imss-primary-lime-soft);
  border-color: var(--imss-primary-lime);
  color: var(--imss-text-main);
}

/* ---------- Time logger in patient profile ---------- */

.time-logger-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--imss-surface);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--imss-text-main);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

.time-logger-timebox {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
  font-size: 12px;
}

.time-logger-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--imss-text-soft);
}

.time-logger-icon-btn {
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  font-size: 14px;
  color: var(--imss-text-main);
}

.time-logger-play {
  background: var(--imss-primary-lime);
  border-color: var(--imss-primary-lime);
  color: var(--imss-text-main);
}

/* ---------- Patient profile tabs (top + secondary) ---------- */

/* main bar tabs (Clinical, Billing, etc.) */
.profile-tabs-primary .profile-tab {
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--imss-text-soft);
}

.profile-tabs-primary .profile-tab.active {
  background: var(--imss-primary-lime-soft);
  color: var(--imss-text-main);
  box-shadow: 0 10px 26px rgba(190, 242, 100, 0.5);
}

/* secondary tabs (Medical history / Care team / Care plan…) */
.profile-tabs-secondary .profile-subtab {
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 12px;
  border: none;
  background: rgba(148, 163, 184, 0.12);
  color: #4b5563;
}

.profile-tabs-secondary .profile-subtab.active {
  background: var(--imss-primary-lime-soft);
  color: var(--imss-text-main);
}

/* ---------- IMPORT PATIENTS modal tabs, buttons & dropzone ---------- */

.import-modal .modal-content {
  border-radius: 16px;
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  background: #ffffff;
}

.import-modal-header {
  padding: 0.8rem 1.3rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: #ffffff;
}

.import-header-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: var(--imss-primary-lime-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--imss-text-main);
  font-size: 1.1rem;
}

/* Download sample */
#btnDownloadSample {
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(200, 255, 61, 0.8);
  color: var(--imss-text-main);
  font-size: 0.8rem;
  padding: 0.3rem 0.9rem;
}

.import-modal-footer .btn-primary {
  border-radius: 999px;
  padding-inline: 1.7rem;
  background: var(--imss-primary-lime);
  border-color: var(--imss-primary-lime);
  color: var(--imss-text-main);
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(190, 242, 100, 0.5);
}

.import-modal-footer .btn-secondary {
  border-radius: 999px;
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #374151;
}

/* Import tabs (Multiple / Individual) */
.import-tabs {
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #d3dde7;
}

.import-tabs .nav-link {
  border-radius: 0;
  margin-right: 0.2rem;
  padding: 0.42rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #475569;
  background: #e5edf4;
  border: 1px solid #d3dde7;
  border-bottom: none;
}

.import-tabs .nav-link.active {
  background: #ffffff;
  color: var(--imss-text-main);
  border-color: #d3dde7;
  border-bottom: 1px solid #ffffff;
}

/* Import dropzone */
.import-dropzone {
  margin-top: 0.9rem;
  border: 2px dashed #c5ced8;
  border-radius: 10px;
  padding: 2.1rem 1.1rem;
  text-align: center;
  background-color: #f9fbfd;
}

.import-dropzone.is-dragover {
  border-color: var(--imss-primary-lime);
  background-color: #f4fce5;
}

.import-file-list li::before {
  content: "• ";
  color: var(--imss-primary-lime);
}
/* ==========================================
   IMSS LIME – HEADER, TOGGLES, AVATARS
   ========================================== */

:root {
  --imss-primary-lime: #c8ff3d;
  --imss-primary-lime-soft: #eefee3;
  --imss-text-main: #111827;
  --imss-text-soft: #6b7280;
}

/* ---------- HEADER PROFILE PILL (Hi, Admin) ---------- */

.header-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 5px 11px;
  background: #ffffff;                 /* was #111827 */
  border: 1px solid rgba(148,163,184,.5);
  box-shadow:
    0 1px 2px rgba(15,23,42,.06),
    0 8px 20px rgba(15,23,42,.12);
  color: var(--imss-text-main);
  cursor: pointer;
}

.header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #ffffff;                 /* remove dark gradient */
  border: 2px solid var(--imss-primary-lime);
  color: var(--imss-text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.header-profile-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header-profile-text span:first-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--imss-text-main);
}

.header-profile-text span:last-child {
  font-size: 11px;
  color: var(--imss-text-soft);
}

/* ---------- SEGMENTED TOGGLES (24h / Global / By patient) ---------- */

.pill-switch-group {
  display: inline-flex;
  padding: 2px;
  border-radius: 999px;
  background: #f5f7fb;                          /* light track */
  border: 1px solid #e0e7f0;
}

.pill-switch {
  border-radius: 999px;
  border: none;
  padding: 4px 12px;
  font-size: 11px;
  background: transparent;
  color: var(--imss-text-soft);
  cursor: pointer;
}

.pill-switch.active {
  background: var(--imss-primary-lime);         /* lime chip */
  color: var(--imss-text-main);                /* no black */
  box-shadow: 0 8px 18px rgba(190,242,100,.55);
}

/* ---------- INITIALS AVATARS IN LISTS (JS / AM / BK ...) ---------- */

.time-log-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #ffffff;                          /* no dark disc */
  border: 2px solid var(--imss-primary-lime);
  color: var(--imss-text-main);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-filter-search-btn {
    padding: 4px 12px !important;       /* smaller padding */
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #ffffff;
    color: var(--imss-text-main);
    font-size: 12px;
    font-weight: 500;
    height: 30px;                       /* same height as dropdowns */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
/* =====================================================
   IMSS – Clickable Patient Row Hover Interaction
   ===================================================== */

.imss-patient-table-wrapper table tbody tr {
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease;
}

/* Hover effect */
.imss-patient-table-wrapper table tbody tr:hover {
    background-color: rgba(200, 255, 61, 0.12); /* soft lime tint */
    box-shadow:
        0 2px 6px rgba(15, 23, 42, 0.08),
        0 0 0 2px rgba(200, 255, 61, 0.18);
    transform: translateY(-1px);
}

/* Active (mouse down) */
.imss-patient-table-wrapper table tbody tr:active {
    background-color: rgba(200, 255, 61, 0.22);
    transform: translateY(0);
}
/* ==========================================
   Patient header breadcrumb + back chip
   ========================================== */

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.header-back-chip {
    border-radius: 999px;
    padding: 3px 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #ffffff;
    color: #111827;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: background-color .15s ease, box-shadow .15s ease,
                transform .15s ease, border-color .15s ease;
}

.header-back-chip i {
    font-size: 13px;
}

.header-back-chip:hover {
    background: var(--imss-primary-lime-soft, #eefee3);
    border-color: var(--imss-primary-lime, #c8ff3d);
    transform: translateY(-1px);
    box-shadow:
        0 0 0 2px rgba(200, 255, 61, 0.22),
        0 10px 20px rgba(190, 242, 100, 0.4);
}

.header-breadcrumb-divider {
    color: var(--imss-text-soft, #6b7280);
    font-size: 11px;
}

.header-current-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--imss-text-soft, #6b7280);
}

/* keep existing strong line looking nice with new breadcrumb */
.header-brand-line-strong {
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
/* ==========================================
   IMSS – Premium Accent Chip (Patient icon)
   ========================================== */

.brand-accent-chip {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff, #f7fbea);
    border: 1.5px solid rgba(200, 255, 61, 0.8);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    /* Elevation + crisp highlights */
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 6px 16px rgba(190, 242, 100, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);

    transition:
        background-color .15s ease,
        box-shadow .15s ease,
        transform .12s ease;
}

.brand-accent-chip i {
    font-size: 18px;
    color: #111827;
}

.brand-accent-chip:hover {
    background: linear-gradient(135deg, #faffd9, #ffffff);
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 0 0 3px rgba(200, 255, 61, 0.28),
        0 14px 26px rgba(190, 242, 100, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.brand-accent-chip:active {
    transform: scale(0.98);
    box-shadow:
        0 0 0 2px rgba(200, 255, 61, 0.32),
        0 6px 14px rgba(190, 242, 100, 0.25);
}
/* ==========================================
   PATIENT MODALS – Shared styling
   ========================================== */

.patient-modal {
  border-radius: 18px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  background: #ffffff;
  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(241, 245, 249, 0.9);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.patient-modal-header {
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  padding: 0.85rem 1.3rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.patient-modal-header-left {
  display: flex;
  flex-direction: column;
}

.patient-modal-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.patient-modal-body {
  padding: 1.1rem 1.3rem 1.2rem;
}

.patient-modal-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  padding: 0.7rem 1.3rem;
}

/* Modal breadcrumb + chips */

.patient-modal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.patient-modal-current-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--imss-text-main, #111827);
}

.patient-modal-breadcrumb-divider {
  font-size: 11px;
  color: var(--imss-text-soft, #6b7280);
}

.patient-modal-back-chip,
.patient-modal-link-chip {
  border-radius: 999px;
  padding: 3px 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--imss-text-main, #111827);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: background-color .15s ease, box-shadow .15s ease,
              border-color .15s ease, transform .12s ease;
}

.patient-modal-back-chip i {
  font-size: 13px;
}

.patient-modal-back-chip:hover,
.patient-modal-link-chip:hover {
  background: var(--imss-primary-lime-soft, #eefee3);
  border-color: var(--imss-primary-lime, #c8ff3d);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 2px rgba(200, 255, 61, 0.25),
    0 10px 22px rgba(190, 242, 100, 0.42);
}

.patient-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--imss-text-main, #111827);
}

/* Program badge & status pill */

.patient-program-badge {
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #c8ff3d, #e5ff9d);
  color: #111827;
  box-shadow: 0 10px 24px rgba(190, 242, 100, 0.55);
}

.patient-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  background: #ecfdf5;
  border: 1px solid rgba(22, 163, 74, 0.18);
  font-size: 11px;
  font-weight: 600;
  color: #166534;
}

.patient-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #16a34a;
}

/* Video call + icon button tweaks inside modal header */

.patient-video-btn {
  padding-inline: 0.7rem;
  font-size: 12px;
}

.patient-modal-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #111827;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background-color .15s ease, box-shadow .15s ease, transform .12s ease;
}

.patient-modal-icon-btn:hover {
  background: var(--imss-primary-lime-soft, #eefee3);
  box-shadow:
    0 0 0 2px rgba(200, 255, 61, 0.25),
    0 10px 20px rgba(190, 242, 100, 0.38);
  transform: translateY(-1px);
}

/* Definition list styling */

.pm-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--imss-text-soft, #6b7280);
  margin-bottom: 2px;
}

.pm-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--imss-text-main, #111827);
}

.pm-dl {
  margin: 0;
}

.pm-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.9);
}

.pm-row:last-child {
  border-bottom: none;
}

.pm-row dt {
  flex: 0 0 40%;
  font-size: 12px;
  font-weight: 500;
  color: var(--imss-text-soft, #6b7280);
  margin: 0;
}

.pm-row dd {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--imss-text-main, #111827);
  margin: 0;
}

/* Form inside edit modal */

#editDemographicsForm .form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--imss-text-soft, #4b5563);
}

#editDemographicsForm .form-control,
#editDemographicsForm .form-select {
  font-size: 13px;
  border-radius: 10px;
  border-color: #d1d5db;
}

#editDemographicsForm .form-control:focus,
#editDemographicsForm .form-select:focus {
  border-color: var(--imss-primary-lime, #c8ff3d);
  box-shadow: 0 0 0 2px rgba(200, 255, 61, 0.35);
}
/* ==========================================
   Patient identity strip (MRN / Age / Phone)
   ========================================== */

.patient-identity {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
}

/* Pills for MRN / Age / Phone */
.patient-identity-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    font-size: 12px;
    white-space: nowrap;
}

.patient-identity-chip i {
    font-size: 13px;
    color: var(--imss-text-soft, #6b7280);
}

.pi-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    color: var(--imss-text-soft, #6b7280);
}

.pi-value {
    font-weight: 600;
    color: var(--imss-text-main, #111827);
    font-size: 12px;
}

/* Televisit pill (primary action) */
.patient-televisit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--imss-primary-lime, #c8ff3d);
    background: linear-gradient(135deg, #f7ffe5, #ffffff);
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 10px 22px rgba(190, 242, 100, 0.5);
    transition:
        background-color .15s ease,
        box-shadow .15s ease,
        transform .12s ease,
        border-color .15s ease;
}

.patient-televisit-pill i {
    font-size: 14px;
}

.patient-televisit-pill:hover {
    background: linear-gradient(135deg, #faffd9, #ffffff);
    border-color: var(--imss-primary-lime, #c8ff3d);
    transform: translateY(-1px);
    box-shadow:
        0 0 0 2px rgba(200, 255, 61, 0.28),
        0 14px 26px rgba(190, 242, 100, 0.55);
}

.patient-televisit-pill:active {
    transform: translateY(0);
    box-shadow:
        0 0 0 1px rgba(200, 255, 61, 0.3),
        0 8px 18px rgba(190, 242, 100, 0.35);
}
/* ==========================================
   Patient mini header – premium summary bar
   ========================================== */

.patient-mini-header {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: radial-gradient(circle at 0% 0%, #f7ffe7 0, #ffffff 55%, #f9fafb 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 10px 28px rgba(148, 163, 184, 0.18),
        0 0 0 1px rgba(241, 245, 249, 0.9);
    margin-top: 0.5rem;
}

/* Left – MRN + Diagnosis pills */

.pmh-left {
    display: flex;
    align-items: center;
}

.pmh-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pmh-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    font-size: 12px;
    white-space: nowrap;
}

.pmh-pill-mrn {
    border-color: rgba(148, 163, 184, 0.7);
}

.pmh-pill-dx {
    border-color: var(--imss-primary-lime, #c8ff3d);
    background: linear-gradient(135deg, #f7ffe5, #ffffff);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 10px 22px rgba(190, 242, 100, 0.45);
}

.pmh-pill i {
    font-size: 14px;
    color: var(--imss-text-soft, #6b7280);
}

.pmh-pill-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 10px;
    color: var(--imss-text-soft, #6b7280);
}

.pmh-pill-value {
    font-weight: 600;
    color: var(--imss-text-main, #111827);
    font-size: 12px;
}

/* Right – four compact stat tiles */

.pmh-right {
    display: flex;
    align-items: center;
}

.pmh-info-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
}

.pmh-info-item {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(249, 250, 251, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    min-width: 0;
}

.pmh-info-item label {
    display: block;
    margin-bottom: 1px;
    font-size: 11px;
    font-weight: 500;
    color: var(--imss-text-soft, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pmh-info-item span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--imss-text-main, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive tweaks */

@media (max-width: 991.98px) {
    .patient-mini-header {
        flex-direction: column;
        align-items: stretch;
    }

    .pmh-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .pmh-info-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
/* ==========================================
   Patient mini header – ultra premium bar
   ========================================== */

.patient-mini-header {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    padding: 0.9rem 1.2rem;
    border-radius: 14px;
    background: radial-gradient(circle at 0% 0%, #f7ffe7 0, #ffffff 55%, #f9fafb 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 10px 28px rgba(148, 163, 184, 0.18),
        0 0 0 1px rgba(241, 245, 249, 0.9);
    margin-top: 0.75rem;
}

/* Columns */

.pmh-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pmh-col-left {
    flex: 0 0 auto;
    min-width: 220px;
}

.pmh-col-middle {
    flex: 1 1 auto;
}

.pmh-col-right {
    flex: 0 0 240px;
    align-items: flex-end;
}

/* Name + chip */



.brand-accent-chip {
    border: 1px solid var(--imss-primary-lime, #c8ff3d);
    background: rgba(236, 252, 203, 0.75);
    border-radius: 999px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.12),
        0 8px 18px rgba(190, 242, 100, 0.55);
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        background-color 0.12s ease;
}

.brand-accent-chip i {
    font-size: 15px;
    color: #3f6212;
}

.brand-accent-chip:hover {
    transform: translateY(-1px);
    background: #ecfccb;
    box-shadow:
        0 0 0 2px rgba(200, 255, 61, 0.25),
        0 12px 24px rgba(190, 242, 100, 0.6);
}

.brand-accent-chip:active {
    transform: translateY(0);
}

/* Inline MRN / Dx meta */

.pmh-tag-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pmh-inline-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.pmh-inline-meta i {
    font-size: 15px;
    color: var(--imss-text-soft, #6b7280);
}

.meta-label {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.05em;
    color: var(--imss-text-soft, #6b7280);
}

.meta-value {
    font-weight: 600;
    color: #111827;
}

.pmh-separator {
    width: 1px;
    height: 14px;
    background: rgba(148, 163, 184, 0.35);
}

/* Slight lime emphasis on Diagnosis value only, not button-y */
.pmh-inline-dx .meta-value {
    color: #3f6212; /* deep lime ink */
}

.pmh-inline-dx i {
    color: #8fbf00;
}

/* Info tiles */

.pmh-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
}

.pmh-info-item {
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(249, 250, 251, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    min-width: 0;
}

.pmh-info-item label {
    display: block;
    margin-bottom: 1px;
    font-size: 11px;
    font-weight: 500;
    color: var(--imss-text-soft, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pmh-info-item span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--imss-text-main, #111827);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right: stack timer + televisit */

.pmh-actions-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
}

/* Compact time logger inside mini header */

.time-logger-card-compact {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #ffffff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.time-logger-card-compact .time-logger-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.time-logger-card-compact .time-logger-timebox span {
    font-size: 12px;
}

/* Reuse existing patient-televisit-pill styles you already added */

/* Responsive */

@media (max-width: 1199.98px) {
    .patient-mini-header {
        flex-direction: column;
    }

    .pmh-col-right {
        align-items: flex-start;
    }

    .pmh-actions-stack {
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .pmh-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .pmh-info-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}
/* --- ULTRA PREMIUM PATIENT MINI HEADER TWEAKS --- */

.patient-mini-header {
    padding: 1.1rem 1.4rem;
    border-radius: 18px;
    background: linear-gradient(
        90deg,
        #f7ffe0 0%,
        #f9fff4 38%,
        #ffffff 100%
    );
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 12px 30px rgba(148, 163, 184, 0.18),
        0 0 0 1px rgba(241, 245, 249, 0.95);
    gap: 1.4rem;
}

/* left column */





/* profile chip */

.brand-accent-chip {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #d9f99d;
    background: radial-gradient(circle at 30% 20%, #ffffff 0, #ecfccb 55%, #d9f99d 100%);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.18),
        0 10px 22px rgba(190, 242, 100, 0.65);
}

.brand-accent-chip i {
    font-size: 16px;
    color: #365314;
}

/* inline MRN / Dx text */

.pmh-tag-row {
    margin-top: 0.15rem;
    gap: 0.85rem;
}

.pmh-inline-meta {
    font-size: 13px;
}

.meta-label {
    font-size: 11px;
    letter-spacing: 0.08em;
}

.meta-value {
    font-size: 13px;
}

.pmh-inline-dx .meta-value {
    color: #3f6212;
}

/* very subtle separator */
.pmh-separator {
    height: 16px;
    background: rgba(148, 163, 184, 0.45);
}
.pmh-info-grid {
    gap: 0.7rem;
}

.pmh-info-item {
    padding: 9px 14px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.pmh-info-item label {
    font-size: 11px;
    letter-spacing: 0.09em;
}

.pmh-info-item span {
    font-size: 13px;
    font-weight: 600;
}
/* compact pill timer on right */

.time-logger-card-compact {
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.time-logger-card-compact .time-logger-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
}

.time-logger-card-compact .time-logger-timebox span {
    font-size: 12px;
    font-weight: 700;
    color: #020617;
}

/* Televisit pill */

.patient-televisit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #d9f99d;
    background: radial-gradient(circle at 0% 0%, #ffffff 0, #ecfccb 55%, #d9f99d 100%);
    font-size: 13px;
    font-weight: 600;
    color: #365314;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.08),
        0 12px 26px rgba(190, 242, 100, 0.6);
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        filter 0.12s ease;
}

.patient-televisit-pill i {
    font-size: 14px;
}

.patient-televisit-pill:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow:
        0 0 0 2px rgba(217, 249, 157, 0.4),
        0 14px 30px rgba(190, 242, 100, 0.7);
}

.patient-televisit-pill:active {
    transform: translateY(0);
}
/* ==========================================
   PATIENT HERO MINI HEADER – FINAL DESIGN
   ========================================== */

.patient-mini-header {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.1rem 1.4rem;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 18px 40px rgba(148, 163, 184, 0.22),
        0 0 0 1px rgba(241, 245, 249, 0.9);
}

/* LEFT PANEL – identity on soft lime */

.pmh-identity {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    /* background: radial-gradient(circle at 0% 0%, #ffffff 0, #f7ffe4 55%, #ecfccb 100%); */
    box-shadow: inset 0 0 0 2px rgba(217, 249, 157, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
}




/* profile chip */

.pmh-profile-chip {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #d9f99d;
    background: radial-gradient(circle at 30% 20%, #ffffff 0, #ecfccb 60%, #d9f99d 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.18),
        0 10px 22px rgba(190, 242, 100, 0.65);
    padding: 0;
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        filter 0.12s ease;
}

.pmh-profile-chip i {
    font-size: 16px;
    color: #365314;
}

.pmh-profile-chip:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow:
        0 0 0 2px rgba(217, 249, 157, 0.5),
        0 14px 30px rgba(190, 242, 100, 0.7);
}

/* meta under the name */

.pmh-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 13px;
}

.pmh-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.pmh-meta-item i {
    font-size: 14px;
    color: #84cc16;
}

.pmh-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #6b7280;
}

.pmh-meta-value {
    font-size: 13px;
    font-weight: 600;
    color: #020617;
}

.pmh-meta-dx .pmh-meta-value {
    color: #3f6212;
}

.pmh-meta-separator {
    width: 1px;
    height: 16px;
    background: rgba(148, 163, 184, 0.5);
}

/* RIGHT PANEL – info + actions */

.pmh-main {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* info tiles */

.pmh-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.pmh-info-item {
    padding: 9px 14px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    min-width: 0;
}

.pmh-info-item label {
    display: block;
    margin-bottom: 2px;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.pmh-info-item span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* make address span 2 columns on large screens */

.pmh-info-wide {
    grid-column: span 2;
}

/* actions row */

.pmh-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* hero timer */

.time-logger-hero {
    padding: 7px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.08),
        0 12px 26px rgba(148, 163, 184, 0.25);
}

.time-logger-hero .time-logger-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
}

.time-logger-hero .time-logger-timebox span {
    font-size: 12px;
    font-weight: 700;
    color: #020617;
}

/* Televisit pill (uses same lime system) */

.patient-televisit-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid #d9f99d;
    background: radial-gradient(circle at 0% 0%, #ffffff 0, #ecfccb 55%, #d9f99d 100%);
    font-size: 13px;
    font-weight: 600;
    color: #365314;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.08),
        0 14px 30px rgba(190, 242, 100, 0.7);
    cursor: pointer;
    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        filter 0.12s ease;
}

.patient-televisit-pill i {
    font-size: 14px;
}

.patient-televisit-pill:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow:
        0 0 0 2px rgba(217, 249, 157, 0.5),
        0 16px 32px rgba(190, 242, 100, 0.8);
}

/* responsive */

@media (max-width: 1199.98px) {
    .patient-mini-header {
        grid-template-columns: 1fr;
    }

    .pmh-actions-row {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .pmh-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pmh-info-wide {
        grid-column: span 2;
    }
}

@media (max-width: 575.98px) {
    .pmh-info-grid {
        grid-template-columns: 1fr;
    }

    .pmh-info-wide {
        grid-column: span 1;
    }
}
/* ==========================================
   PATIENT HERO – ULTRA PREMIUM
   ========================================== */

.patient-mini-header {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.3rem 1.6rem;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 22px 50px rgba(148, 163, 184, 0.24),
        0 0 0 1px rgba(241, 245, 249, 0.95);
    align-items: stretch;
}

/* LEFT – identity on soft lime glass */



.pmh-name-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pmh-name {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.2rem, 1.9rem + 1vw, 3rem);
    font-weight: 800;
    /* letter-spacing: -0.02em; */
    color: #0f172a; /* deep clinical slate */
    line-height: 1.1;
}

/* profile chip – more premium */

.pmh-profile-chip {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #d9f99d;
    background: radial-gradient(circle at 25% 15%, #ffffff 0, #ecfccb 55%, #d9f99d 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.18),
        0 14px 30px rgba(190, 242, 100, 0.8);
    padding: 0;
    cursor: pointer;
    transition:
        transform 0.13s ease,
        box-shadow 0.13s ease,
        filter 0.13s ease;
}

.pmh-profile-chip i {
    font-size: 18px;
    color: #365314;
}

.pmh-profile-chip:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.03);
    box-shadow:
        0 0 0 3px rgba(217, 249, 157, 0.65),
        0 20px 40px rgba(190, 242, 100, 0.9);
}

/* MRN + Diagnosis line */

.pmh-meta-row {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
    font-size: 13px;
}

.pmh-meta-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.pmh-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #64748b;
}

.pmh-meta-value {
    font-size: 13px;
    font-weight: 600;
    color: #020617;
}

.pmh-meta-dx i {
    font-size: 15px;
    color: #84cc16;
}

.pmh-meta-dx .pmh-meta-label {
    color: #6b7280;
}

.pmh-meta-dx .pmh-meta-value {
    color: #3f6212;
}

.pmh-meta-separator {
    width: 1px;
    height: 18px;
    background: rgba(148, 163, 184, 0.6);
}

/* RIGHT – info tiles + actions */

.pmh-main {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.75rem;
}

/* INFO GRID */

.pmh-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.pmh-info-item {
    padding: 10px 16px;
    border-radius: 14px;
    background: linear-gradient(145deg, #f9fafb 0, #f3f4f6 50%, #ffffff 100%);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    min-width: 0;
}

.pmh-info-item label {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.pmh-info-item span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pmh-info-wide {
    grid-column: span 2;
}

/* ACTIONS: timer + televisit */

.pmh-actions-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.9rem;
}

/* make timer more pill + crisp */

.time-logger-hero {
    padding: 8px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 2px 4px rgba(148, 163, 184, 0.25),
        0 16px 34px rgba(148, 163, 184, 0.35);
}

.time-logger-hero .time-logger-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #94a3b8;
}

.time-logger-hero .time-logger-timebox span {
    font-size: 12px;
    font-weight: 700;
    color: #020617;
}

/* Televisit pill */

.patient-televisit-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #d9f99d;
    background: radial-gradient(circle at 0% 0%, #ffffff 0, #ecfccb 55%, #d9f99d 100%);
    font-size: 13px;
    font-weight: 600;
    color: #365314;
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.08),
        0 18px 36px rgba(190, 242, 100, 0.85);
    cursor: pointer;
    transition:
        transform 0.13s ease,
        box-shadow 0.13s ease,
        filter 0.13s ease;
}

.patient-televisit-pill i {
    font-size: 15px;
}

.patient-televisit-pill:hover {
    transform: translateY(-1px) scale(1.01);
    filter: brightness(1.03);
    box-shadow:
        0 0 0 3px rgba(217, 249, 157, 0.6),
        0 22px 42px rgba(190, 242, 100, 0.9);
}

/* RESPONSIVE */

@media (max-width: 1199.98px) {
    .patient-mini-header {
        grid-template-columns: 1fr;
    }

    .pmh-main {
        gap: 1rem;
    }

    .pmh-actions-row {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 767.98px) {
    .pmh-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pmh-info-wide {
        grid-column: span 2;
    }
}

@media (max-width: 575.98px) {
    .pmh-info-grid {
        grid-template-columns: 1fr;
    }

    .pmh-info-wide {
        grid-column: span 1;
    }
}
/* -------- PATIENT HERO IDENTITY (ALIGNED / REFINED) -------- */

.pmh-identity-v2 {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.85rem 1.1rem 1rem;
}

/* top row: name + avatar on left, program/status on right */
.pmh-identity-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

/* small neutral subtitle */
.pmh-subtitle {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

/* name row */
.pmh-name-row {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.pmh-name {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: clamp(1.55rem, 1.25rem + 0.7vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #020617;
    line-height: 1.1;
}

/* avatar chip – aligned with font weight + lime theme */
.pmh-avatar {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(190, 242, 100, 0.9);
    background: radial-gradient(circle, #ecfccb 0%, #f7fee7 70%, #ffffff 100%);
    box-shadow: 0 0 8px rgba(190, 242, 100, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4d7c0f;
    font-size: 1.05rem;
    cursor: pointer;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.pmh-avatar:hover {
    box-shadow: 0 0 12px rgba(163, 230, 53, 0.65);
    transform: translateY(-1px);
}

/* meta row under name */
.pmh-meta-row-v2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 0.35rem;
}

.pmh-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

.pmh-meta-item i {
    font-size: 0.9rem;
    color: #65a30d;
}

.pmh-meta-label {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

.pmh-meta-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.pmh-dx {
    color: #4d7c0f;
}

.pmh-meta-divider {
    width: 1px;
    height: 18px;
    background: #e5e7eb;
}

/* right side – program + status chips */
.pmh-status-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.1rem;
}

.pmh-program-pill {
    padding: 0.16rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #3f6212;
    background: rgba(217, 249, 157, 0.75);
    border: 1px solid rgba(190, 242, 100, 0.9);
}

.pmh-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.pmh-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.7);
}

/* responsive tweak – stack status under name on small screens */
@media (max-width: 768px) {
    .pmh-identity-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .pmh-status-group {
        margin-top: 0;
    }
}
/* ---------- PATIENT HERO WRAPPER ---------- */

.patient-hero {
    display: flex;
    gap: 1.75rem;
    padding: 1.6rem 1.8rem;
    border-radius: 1.8rem;
    border: 1px solid #e4f4bd;
    background: radial-gradient(circle at 0% 0%, #f7fee7 0%, #f9fafb 55%, #f3f4f6 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.04);
    align-items: stretch;
}

/* left vs right columns */

.patient-hero-left {
    flex: 0 0 30%;
    min-width: 260px;
    padding-right: 1rem;
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
}

.patient-hero-right {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* ---------- LEFT: NAME / STATUS ---------- */

.patient-hero-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.patient-hero-subtitle {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

.patient-hero-name-row {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.patient-hero-name {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: clamp(1.7rem, 1.4rem + 0.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #020617;
    line-height: 1.05;
}

/* avatar chip */

.pmh-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(190, 242, 100, 0.9);
    background: radial-gradient(circle, #ecfccb 0%, #f7fee7 65%, #ffffff 100%);
    box-shadow: 0 0 8px rgba(190, 242, 100, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4d7c0f;
    font-size: 1rem;
    cursor: pointer;
    transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.pmh-avatar:hover {
    box-shadow: 0 0 12px rgba(163, 230, 53, 0.7);
    transform: translateY(-1px);
}

/* program + active chips */

.pmh-status-group {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.25rem;
}

.pmh-program-pill {
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #3f6212;
    background: rgba(217, 249, 157, 0.9);
    border: 1px solid rgba(190, 242, 100, 0.9);
}

.pmh-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid #bbf7d0;
    background: #ecfdf5;
    color: #047857;
}

.pmh-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 5px rgba(34, 197, 94, 0.7);
}

/* MRN + Dx row */

.pmh-meta-row-v2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.45rem;
}

.pmh-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

.pmh-meta-item i {
    font-size: 0.9rem;
    color: #65a30d;
}

.pmh-meta-label {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.13em;
    color: #9ca3af;
}

.pmh-meta-value {
    font-size: 0.93rem;
    font-weight: 700;
    color: #0f172a;
}

.pmh-dx {
    color: #4d7c0f;
}

.pmh-meta-divider {
    width: 1px;
    height: 18px;
    background: #e5e7eb;
}

/* ---------- RIGHT: INFO GRID + ACTIONS ---------- */

.pmh-info-grid-hero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem 1rem;
}

.pmh-info-item {
    padding: 0.85rem 1rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border: 1px solid #e5e7eb;
}

.pmh-info-item label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9ca3af;
    margin-bottom: 0.15rem;
}

.pmh-info-item span {
    display: block;
    font-size: 0.96rem;
    font-weight: 600;
    color: #020617;
}

.pmh-info-item-wide {
    grid-column: 1 / span 3;
}

/* actions row */

.patient-hero-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.9rem;
}

/* tighter, less neon timer */

.time-logger-hero {
    min-width: 260px;
    padding-inline: 1.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f9fafb 0%, #e5f4ff 100%);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.time-logger-hero .time-logger-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: #9ca3af;
}

.time-logger-hero .time-logger-timebox span {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

/* Televisit pill aligned with theme */

.patient-televisit-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: 1px solid rgba(190, 242, 100, 0.9);
    background: radial-gradient(circle at 10% 0%, #ecfccb 0%, #f7fee7 55%, #ffffff 100%);
    color: #3f6212;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(190, 242, 100, 0.45);
    white-space: nowrap;
}

.patient-televisit-pill i {
    font-size: 1rem;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 992px) {
    .patient-hero {
        flex-direction: column;
    }

    .patient-hero-left {
        flex: 1 1 auto;
        border-right: none;
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        padding-right: 0;
        padding-bottom: 1rem;
    }

    .pmh-info-grid-hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pmh-info-item-wide {
        grid-column: 1 / span 2;
    }

    .patient-hero-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .pmh-info-grid-hero {
        grid-template-columns: 1fr;
    }

    .pmh-info-item-wide {
        grid-column: 1 / span 1;
    }
}
/* ---------- PATIENT TABS SHELL ---------- */

.patient-tabs-shell {
    padding: 1.75rem 1.75rem 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(199, 230, 140, 0.6);
    background: radial-gradient(circle at top left,
            rgba(205, 246, 150, 0.14) 0,
            rgba(255, 255, 255, 0.96) 52%),
        #ffffff;
    box-shadow:
        0 26px 60px rgba(15, 23, 42, 0.06),
        0 0 0 1px rgba(15, 23, 42, 0.02);
}

/* header: title + primary tabs in one line */

.patient-tabs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.patient-tabs-title-block {
    min-width: 0;
}

.patient-tabs-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.55);
}

.patient-tabs-title {
    margin: 0.15rem 0 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #020617;
}

/* ---------- PRIMARY TABS (SEGMENTED CONTROL) ---------- */

.profile-tabs-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.18rem;
    border-radius: 999px;
    background: linear-gradient(90deg,
            rgba(227, 252, 182, 0.85),
            rgba(243, 248, 255, 0.9));
    box-shadow:
        inset 0 0 0 1px rgba(190, 227, 248, 0.35),
        0 10px 25px rgba(148, 163, 184, 0.18);
    position: relative;
}

.profile-tab {
    position: relative;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.38rem 1.15rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(15, 23, 42, 0.55);
    cursor: pointer;
    transition:
        color 140ms ease-out,
        background 140ms ease-out,
        box-shadow 140ms ease-out,
        transform 120ms ease-out;
    white-space: nowrap;
}

.profile-tab i {
    font-size: 0.95rem;
    opacity: 0.8;
}

.profile-tab span {
    transform: translateY(0.5px);
}

.profile-tab:hover {
    color: #020617;
    background: rgba(255, 255, 255, 0.35);
}

.profile-tab.active {
    background: #ffffff;
    color: #020617;
    box-shadow:
        0 8px 18px rgba(148, 163, 184, 0.32),
        0 0 0 1px rgba(190, 242, 100, 0.9);
    transform: translateY(-0.5px);
}

.profile-tab.active i {
    opacity: 1;
}

/* small “glow” under active tab */
.profile-tab.active::before {
    content: "";
    position: absolute;
    inset-inline: 12%;
    bottom: -6px;
    height: 6px;
    border-radius: 999px;
    background: radial-gradient(circle at center,
            rgba(190, 242, 100, 0.6),
            transparent 60%);
    opacity: 0.9;
}

/* ---------- SECONDARY TABS (SUB-TABS) ---------- */

.profile-tabs-secondary {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0.35rem -0.5rem 0;
    padding: 0.25rem 0.5rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    overflow-x: auto;
    scrollbar-width: thin;
}

.profile-tabs-secondary::-webkit-scrollbar {
    height: 4px;
}

.profile-tabs-secondary::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

.profile-subtab {
    border: none;
    background: transparent;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(100, 116, 139, 0.9);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition:
        color 130ms ease-out,
        background 130ms ease-out;
}

.profile-subtab::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: -1px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            rgba(148, 163, 184, 0),
            rgba(148, 163, 184, 0.45),
            rgba(148, 163, 184, 0));
    opacity: 0;
    transform: translateY(2px);
    transition:
        opacity 130ms ease-out,
        transform 130ms ease-out;
}

.profile-subtab:hover {
    color: #020617;
    background: rgba(226, 232, 240, 0.3);
}

.profile-subtab.active {
    color: #0f172a;
    background: rgba(236, 252, 203, 0.95);
}

.profile-subtab.active::after {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(90deg,
            rgba(190, 242, 100, 0),
            rgba(190, 242, 100, 0.9),
            rgba(190, 242, 100, 0));
}

/* ---------- CONTENT AREA ---------- */

.patient-tabs-divider {
    height: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    margin: 0.55rem 0 0.75rem;
}

.patient-tabs-content {
    padding-top: 0.25rem;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 992px) {
    .patient-tabs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }

    .profile-tabs-primary {
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
    }

    .profile-tab {
        flex: 1 1 auto;
        justify-content: center;
    }
}
/* -----------------------
   TABS HEADER LAYOUT
------------------------ */

.patient-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    padding-bottom: .5rem;
}

/* Left cluster: title + tabs */
.patient-tabs-left {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Right cluster: action buttons */
.patient-tabs-actions {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: nowrap;
}

/* Program Pill (green status badge) */
.patient-program-pill {
    background: rgba(190, 242, 100, 0.25);
    color: #3f6212;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    border: 1px solid rgba(163, 230, 53, 0.5);
    box-shadow: 0 3px 8px rgba(190, 242, 100, 0.3);
}

/* Soft buttons used in patient context */
.btn-soft-primary {
    background: rgba(217, 249, 157, 0.22);
    border: 1px solid rgba(163, 230, 53, 0.5);
    color: #3f6212;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 500;
    transition: all 0.15s ease-out;
}

.btn-soft-primary:hover {
    background: rgba(190, 242, 100, 0.35);
}

/* Outline variant */
.btn-soft-primary.outline {
    background: transparent;
    border: 1px solid rgba(163, 230, 53, 0.5);
}

.btn-soft-primary.outline:hover {
    background: rgba(217, 249, 157, 0.22);
}

/* Three-dots menu */
.btn-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.5);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.btn-icon-circle:hover {
    background: rgba(226, 232, 240, 0.8);
}

/* -----------------------
   RESPONSIVE
------------------------ */

@media (max-width: 992px) {
    .patient-tabs-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .patient-tabs-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: .4rem;
    }
}
/* ============================
   PATIENT CONTEXT ACTION BAR
   ============================ */

.patient-context-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 10px 30px rgba(148, 163, 184, 0.15),
        0 0 0 1px rgba(226, 232, 240, 0.7);
    backdrop-filter: blur(12px);
}

/* Program pill: CCM / RPM etc. */
.patient-program-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.7rem 0.25rem 0.4rem;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0,
                rgba(217, 249, 157, 0.75),
                rgba(217, 249, 157, 0.15));
    border: 1px solid rgba(163, 230, 53, 0.55);
    box-shadow: 0 6px 18px rgba(190, 242, 100, 0.45);
    font-size: 0.75rem;
    font-weight: 600;
    color: #3f6212;
    white-space: nowrap;
}

.program-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.program-pill-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    opacity: 0.7;
    font-size: 0.72rem;
}

.program-pill-value {
    font-weight: 700;
}

/* Main action buttons cluster */
.patient-actions-main {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* Make these buttons tighter & more premium only in this area */
.patient-context-actions .btn-soft-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(217, 249, 157, 0.2);
    border: 1px solid rgba(163, 230, 53, 0.55);
    color: #365314;
    box-shadow: 0 4px 12px rgba(190, 242, 100, 0.35);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background-color 0.12s ease-out;
}

.patient-context-actions .btn-soft-primary.outline {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: none;
}

.patient-context-actions .btn-soft-primary:hover {
    transform: translateY(-1px);
    background: rgba(190, 242, 100, 0.34);
    box-shadow: 0 7px 20px rgba(190, 242, 100, 0.55);
}

.patient-context-actions .btn-soft-primary.outline:hover {
    background: rgba(217, 249, 157, 0.18);
}

.patient-context-actions .btn-soft-primary i {
    font-size: 0.85em;
}

/* Three-dots button aligned with style */
.patient-context-actions .btn-icon-circle.action-more {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.9);
    box-shadow: 0 4px 10px rgba(148, 163, 184, 0.35);
}

.patient-context-actions .btn-icon-circle.action-more:hover {
    background: #f1f5f9;
}

/* ============================
   RESPONSIVE BEHAVIOUR
   ============================ */

@media (max-width: 992px) {
    .patient-context-actions {
        border-radius: 16px;
        padding: 0.4rem 0.6rem;
        gap: 0.5rem;
        align-self: stretch;
        flex-wrap: wrap;
    }

    .patient-actions-main {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    /* On small screens, keep icons but shrink text to avoid crowding */
    .patient-context-actions .action-btn span {
        display: none;
    }

    .patient-context-actions .action-btn {
        padding-inline: 0.55rem;
    }

    .patient-context-actions {
        justify-content: flex-end;
    }
}
/* ============================
   PATIENT LIST KPI STRIP
   ============================ */

.imss-patient-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 1200px) {
    .imss-patient-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .imss-patient-kpis {
        grid-template-columns: 1fr;
    }
}

.kpi-card {
    position: relative;
    overflow: hidden;
    padding: 1rem 1.25rem 0.85rem;
    border-radius: 18px;
    background: radial-gradient(circle at 0% 0%,
                rgba(217, 249, 157, 0.26),
                #ffffff);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.06),
        0 0 0 1px rgba(148, 163, 184, 0.08);
}

/* soft gradient bar at top */
.kpi-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(190, 242, 100, 0.35),
        rgba(56, 189, 248, 0.0));
    opacity: 0.3;
    pointer-events: none;
}

.kpi-card > * {
    position: relative;
    z-index: 1;
}

/* Layout inside card */
.kpi-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 0.6rem;
}

.kpi-label-group {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 6px 14px rgba(148, 163, 184, 0.3);
    font-size: 0.9rem;
}

/* Subtle per-type accent */
.kpi-icon-total {
    color: #0f172a;
}

.kpi-icon-enrolled {
    color: #166534;
    background: rgba(190, 242, 100, 0.22);
    border-color: rgba(163, 230, 53, 0.6);
}

.kpi-icon-candidates {
    color: #0369a1;
}

.kpi-icon-inactive {
    color: #b45309;
}

.kpi-text-block {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.80rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #0f172a;
}

.kpi-sub {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Value row */
.kpi-value-row {
    margin-bottom: 0.4rem;
}

.kpi-value {
    font-size: 1.9rem;
    line-height: 1.1;
    font-weight: 700;
    color: #04101f;
    letter-spacing: 0.03em;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

/* Pill for percentage */
.kpi-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.45);
    font-size: 0.7rem;
    font-weight: 600;
    color: #166534;
}

/* Footer text */
.kpi-foot {
    font-size: 0.72rem;
    color: #6b7280;
}

/* Hover micro-interaction */
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 22px 55px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(148, 163, 184, 0.13);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}
/* ============================
   RPM PATIENT TABLE – CARD
   ============================ */

.imss-patient-table-section {
    padding: 1.1rem 1.25rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: radial-gradient(circle at 0 0,
                rgba(190, 242, 100, 0.14),
                #ffffff 52%);
    box-shadow:
        0 20px 55px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(148, 163, 184, 0.12);
}

/* Header row above table */

.imss-patient-table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.imss-patient-table-header .card-imss-title {
    font-size: 1.02rem;
    font-weight: 600;
    color: #020617;
}

.imss-patient-table-header .card-imss-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
}

.table-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(190, 242, 100, 0.2);
    border: 1px solid rgba(163, 230, 53, 0.7);
    font-size: 0.7rem;
    font-weight: 600;
    color: #166534;
    white-space: nowrap;
}

.table-status-pill i {
    font-size: 0.85rem;
}

/* ============================
   TABLE
   ============================ */

.imss-patient-table-wrapper {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #f9fafb;
}

/* Header */

.imss-patient-table thead {
    background: linear-gradient(
        90deg,
        rgba(190, 242, 100, 0.35),
        rgba(224, 231, 255, 0.15)
    );
}

.imss-patient-table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    color: #0f172a;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(203, 213, 225, 0.9);
    white-space: nowrap;
}

/* Body rows */

.imss-patient-table tbody tr {
    background-color: #ffffff;
    transition: background-color 0.12s ease-out,
                box-shadow 0.12s ease-out,
                transform 0.08s ease-out;
    cursor: pointer; /* list is clickable */
}

.imss-patient-table tbody tr:nth-child(2n) {
    background-color: #f9fafb;
}

.imss-patient-table tbody td {
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
    border-top: 1px solid rgba(241, 245, 249, 0.95);
    color: #0f172a;
}

/* Hover cue for clickability */

.imss-patient-table tbody tr:hover {
    background: radial-gradient(circle at 0 0,
                rgba(190, 242, 100, 0.23),
                #ffffff 65%);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

/* Optional: subtle accent at left when hover */
.imss-patient-table tbody tr:hover td:first-child {
    position: relative;
}

.imss-patient-table tbody tr:hover td:first-child::before {
    content: "";
    position: absolute;
    left: -0.35rem;
    top: 20%;
    bottom: 20%;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(190, 242, 100, 1),
        rgba(45, 212, 191, 0.95)
    );
}

/* Action column – keep it compact */

.imss-patient-table tbody td:last-child {
    width: 1%;
    white-space: nowrap;
}

/* ============================
   FOOTER / PAGINATION
   ============================ */

.imss-patient-table-footer {
    margin-top: 0.7rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.75rem;
}

.imss-patient-table-meta {
    color: #6b7280;
}

.imss-patient-table-pagination {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.kpi-rows-select {
    width: auto;
    min-width: 72px;
    font-size: 0.75rem;
    padding-block: 0.15rem;
}

.page-indicator {
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
    color: #0f172a;
}

/* Reuse your lime-styled ghost buttons, but refine slightly here */
.imss-patient-table-footer .btn-ghost-outline {
    border-radius: 999px;
    border-color: rgba(148, 163, 184, 0.7);
    padding-inline: 0.45rem;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.imss-patient-table-footer .btn-ghost-outline i {
    font-size: 0.8rem;
}
/* ============================================================
   GLOBAL DASHBOARD CARD TREATMENT – ULTRA PREMIUM
   Applies to all .card-imss in these sections
   ============================================================ */

.imss-content,
.imss-content-row2,
.imss-content-row3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1rem;
}

/* Base card – subtle glass / clinical vibe */
.card-imss {
    position: relative;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background:
        radial-gradient(circle at 0 0,
            rgba(190, 242, 100, 0.12),
            transparent 55%),
        radial-gradient(circle at 100% 100%,
            rgba(59, 130, 246, 0.06),
            transparent 55%),
        #ffffff;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(148, 163, 184, 0.08);
    padding: 1.05rem 1.15rem 1rem;
    overflow: hidden;
}

/* Optional fixed height helpers (you already use card-h-350, etc) */
.card-h-350 {
    min-height: 350px;
}
.card-h-280 {
    min-height: 280px;
}

/* Card header */
.card-imss-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.card-imss-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #020617;
    letter-spacing: 0.01em;
}

.card-imss-subtitle {
    font-size: 0.78rem;
    color: #6b7280;
}

/* Small pill chip at top-right */
.chip-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(241, 245, 249, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.85);
    font-size: 0.7rem;
    color: #4b5563;
    white-space: nowrap;
}

.chip-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
}

.chip-pill i {
    font-size: 0.85rem;
}

/* ============================================================
   METRICS GRID – PATIENT METRICS & OTHER KPI CARDS
   ============================================================ */

.metrics-grid-4,
.metrics-grid-3 {
    display: grid;
    gap: 0.75rem;
}

.metrics-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 992px) {
    .metrics-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .metrics-grid-4,
    .metrics-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.metric-item {
    padding: 0.55rem 0.6rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(
        135deg,
        rgba(248, 250, 252, 0.96),
        rgba(239, 246, 255, 0.9)
    );
}

.metric-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0.1rem;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #020617;
}

.metric-note {
    font-size: 0.7rem;
}

/* Small metric block at bottom of cards */
.metrics-split-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.metrics-mini-card {
    padding: 0.6rem 0.65rem;
    border-radius: 14px;
    border: 1px dashed rgba(209, 213, 219, 0.9);
    background: #f9fafb;
}

/* Metric tags in program mix etc. */
.metrics-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.35rem 0;
}

.metric-tag {
    font-size: 0.7rem;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.metric-tag.rpm {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(22, 163, 74, 0.5);
    color: #166534;
}
.metric-tag.ccm {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(37, 99, 235, 0.45);
    color: #1d4ed8;
}
.metric-tag.other {
    background: rgba(248, 250, 252, 1);
    border-color: rgba(148, 163, 184, 0.7);
    color: #4b5563;
}

/* ============================================================
   CLAIM STATUS – BAR & LEGEND
   ============================================================ */

.card-claim-status .claim-status-bar {
    margin: 0.65rem 0 0.4rem;
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    display: flex;
}

.claim-status-segment {
    height: 100%;
}

.claim-status-segment.approved {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}
.claim-status-segment.pending {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.claim-status-segment.denied {
    background: linear-gradient(90deg, #ef4444, #f97373);
}

.claim-status-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: #6b7280;
    margin-bottom: 0.4rem;
}

.claim-status-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.dot-approved {
    background: #22c55e;
}
.dot-pending {
    background: #f59e0b;
}
.dot-denied {
    background: #ef4444;
}

/* Shared ghost button refinement (used in multiple cards) */
.btn-ghost-outline {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #ffffff;
}

.btn-ghost-outline i {
    font-size: 0.8rem;
}

/* ============================================================
   CARE PLAN STATUS
   ============================================================ */

.card-care-plan .care-plan-row {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

@media (min-width: 992px) {
    .card-care-plan .care-plan-row {
        flex-direction: row;
    }
}

.care-plan-progress {
    flex: 1.2;
}

.care-plan-breakdown {
    flex: 1;
    display: grid;
    gap: 0.4rem;
}

.care-plan-progress-bar {
    margin-top: 0.35rem;
    height: 9px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.care-plan-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #a3e635);
}

.care-plan-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.55rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.care-plan-pill .label {
    color: #4b5563;
}
.care-plan-pill .value {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.care-plan-pill.overdue {
    background: rgba(248, 113, 113, 0.08);
    color: #b91c1c;
}
.care-plan-pill.due-soon {
    background: rgba(251, 191, 36, 0.08);
    color: #92400e;
}
.care-plan-pill.drafts {
    background: rgba(191, 219, 254, 0.2);
    color: #1d4ed8;
}

/* ============================================================
   CALL LOGS TABLE
   ============================================================ */

.card-call-logs .time-log-table-scroll {
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #f9fafb;
    padding: 0.25rem;
}

.time-log-table {
    font-size: 0.78rem;
}

.time-log-table thead th {
    border-bottom: 1px solid rgba(209, 213, 219, 0.9);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
}

.time-log-table tbody tr:hover {
    background: rgba(239, 246, 255, 0.8);
}

/* Program badges already exist – keep but refine */
.time-log-program-badge {
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
}

.time-log-program-badge.rpm {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}
.time-log-program-badge.ccm {
    background: rgba(59, 130, 246, 0.1);
    color: #1d4ed8;
}
.time-log-program-badge.other {
    background: rgba(148, 163, 184, 0.18);
    color: #374151;
}

/* ============================================================
   CALL INFO / CHART CARDS
   ============================================================ */

.chart-container {
    background: radial-gradient(circle at 0 0,
                rgba(190, 242, 100, 0.14),
                #f9fafb 55%);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    padding: 0.4rem 0.45rem;
}

/* ============================================================
   CPT CODES – LIST
   ============================================================ */

.card-cpt-codes .checkbox-list {
    border-top: 1px dashed rgba(209, 213, 219, 0.9);
    padding-top: 0.45rem;
}

.card-cpt-codes .checkbox-list li {
    padding-block: 0.18rem;
}

/* ============================================================
   PATIENT ASSIGNMENT – CHART + METRICS
   ============================================================ */

.card-patient-assignment .metrics-grid-3 {
    margin-bottom: 0.6rem;
}

/* ============================================================
   DEVICE STATUS
   ============================================================ */

.device-status-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.78rem;
}

.device-status-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.4rem;
    border-radius: 12px;
    background: #f9fafb;
}

.device-status-pill {
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
}

.device-status-pill.ok {
    background: rgba(34, 197, 94, 0.08);
    color: #166534;
}
.device-status-pill.warn {
    background: rgba(245, 158, 11, 0.08);
    color: #92400e;
}

/* ============================================================
   CALLS & CLAIMS TRACKING
   ============================================================ */

.card-calls-claims .checkbox-list {
    border-top: 1px dashed rgba(209, 213, 219, 0.9);
    padding-top: 0.45rem;
}

.card-calls-claims .checkbox-list li {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-block: 0.1rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

/* ============================================================
   TIME LOG WIDGET (SECOND ROW)
   ============================================================ */

.card-time-log .time-log-summary-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

@media (max-width: 992px) {
    .card-time-log .time-log-summary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.time-log-summary-item {
    padding: 0.45rem 0.55rem;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #f9fafb;
}

.time-log-summary-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.time-log-summary-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #020617;
}

.time-log-bar-wrapper {
    margin-bottom: 0.7rem;
}

.time-log-bar-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.time-log-bar {
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
    display: flex;
}

.time-log-bar-segment {
    height: 100%;
}

.segment-rpm {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}
.segment-ccm {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.segment-other {
    background: linear-gradient(90deg, #a855f7, #f97316);
}

.time-log-bar-legend {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.time-log-bar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.legend-dot.dot-rpm {
    background: #22c55e;
}
.legend-dot.dot-ccm {
    background: #3b82f6;
}
.legend-dot.dot-other {
    background: #a855f7;
}

/* Time log view switch */
.time-log-view-toggle {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(209, 213, 219, 0.9);
    background: #f9fafb;
    padding: 2px;
}

.pill-switch {
    border: none;
    background: transparent;
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    color: #6b7280;
}

.pill-switch.active {
    background: linear-gradient(90deg, #22c55e, #a3e635);
    color: #022c22;
    font-weight: 600;
}

/* Time log table footer header */
.time-log-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    color: #6b7280;
}

.time-log-table-wrapper {
    margin-top: 0.45rem;
}

.card-time-log .time-log-table-scroll {
    max-height: 150px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: #f9fafb;
}
/* MASTER DASHBOARD GRID */
.imss-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

/* Hero / wide cards (patient metrics, time log, etc.) */
.card-span-2 {
    grid-column: span 2;
}

/* On narrow screens, spans collapse automatically */
@media (max-width: 1100px) {
    .card-span-2 {
        grid-column: span 1;
    }
}

/* Core card style – already close to your theme, just tightened */
.card-imss {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background:
        radial-gradient(circle at 0 0,
            rgba(190, 242, 100, 0.12),
            transparent 55%),
        radial-gradient(circle at 100% 100%,
            rgba(59, 130, 246, 0.06),
            transparent 55%),
        #ffffff;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(148, 163, 184, 0.05);
    padding: 1.1rem 1.2rem 1rem;
    overflow: hidden;
}

/* Header stays tight at top, rest of content can grow */
.card-imss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.card-imss-title {
    font-size: 0.9rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
    color: #020617;
}

.card-imss-subtitle {
    font-size: 0.78rem;
    color: #6b7280;
}

/* Make inner blocks stretch nicely inside each card */
.card-imss .metrics-grid-4,
.card-imss .metrics-grid-3,
.card-imss .care-plan-row,
.card-imss .time-log-table-scroll,
.card-imss .chart-container {
    flex: 1 1 auto;
}

/* Let tall things scroll if they overflow */
.time-log-table-scroll,
.call-logs-table-scroll {
    max-height: 190px;
    overflow: auto;
}
/* Shell: keeps content from stretching too wide on big screens */
.imss-dashboard-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem 1.75rem;
}

/* Dynamic card grid */
.imss-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    align-items: start;
    grid-auto-rows: auto;
}

/* Make some cards span 2 columns on desktop */
.card-span-2 {
    grid-column: span 2;
}

@media (max-width: 1100px) {
    .card-span-2 {
        grid-column: span 1;
    }
}
/* Core card – let height be content-driven */
.card-imss {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;              /* important */
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background:
        radial-gradient(circle at 0 0,
            rgba(190, 242, 100, 0.12),
            transparent 55%),
        radial-gradient(circle at 100% 100%,
            rgba(59, 130, 246, 0.06),
            transparent 55%),
        #ffffff;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(148, 163, 184, 0.05);
    padding: 1.1rem 1.2rem 1rem;
}

/* Kill old fixed heights */
.card-h-350,
.card-h-280 {
    height: auto !important;
}

.card-imss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}
.time-log-table-scroll,
.time-log-table-wrapper,
.call-logs-table-scroll {
    max-height: 190px;
    overflow: auto;
    min-height: 0;
}

/* Canvas should fit card width */
.card-imss .chart-container {
    width: 100%;
    min-height: 140px;
}

.card-imss canvas {
    width: 100% !important;
    height: 100% !important;
}
/* Dashboard wrapper (keep from previous step) */
.imss-dashboard-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1.5rem 1.75rem;
}

/* Grid: cards auto-fill and stretch to same height per row */
.imss-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    align-items: stretch;          /* important: same visual height */
}

/* Optional: wide cards */
.card-span-2 {
    grid-column: span 2;
}
@media (max-width: 1100px) {
    .card-span-2 { grid-column: span 1; }
}

/* Card: flex column so footer sits at bottom */
.card-imss {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;                  /* stretch to grid row height */
    min-height: 230px;             /* base size so small cards don’t look tiny */
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background:
        radial-gradient(circle at 0 0, rgba(190, 242, 100, 0.12), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.06), transparent 55%),
        #ffffff;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.08),
        0 0 0 1px rgba(148, 163, 184, 0.05);
    padding: 1.1rem 1.2rem 1rem;
}

/* Kill old fixed heights */
.card-h-350,
.card-h-280 {
    height: auto !important;
}

/* Header sits at top */
.card-imss-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

/* Content area can scroll if it gets too tall */
.card-imss-body {
    flex: 1 1 auto;
    min-height: 0;
}

/* Tables / lists inside cards */
.card-imss-body-scroll {
    max-height: 190px;
    overflow: auto;
}

/* Footer will sit aligned at bottom on all cards */
.card-imss-footer {
    margin-top: 0.9rem;
    display: flex;
    justify-content: flex-end;
}
.card-expand-btn {
    font-size: 11px;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(248, 250, 252, 0.85);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.18s ease-out;
}

.card-expand-btn i {
    font-size: 13px;
}

.card-expand-btn:hover {
    border-color: rgba(132, 204, 22, 0.9);
    background: radial-gradient(circle at 0 0, #ecfccb, #f8fafc);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.25);
    transform: translateY(-1px);
}
