/* ── Reset & Tokens ─────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #f2f4fa;
  --surface: #ffffff;
  --border:  rgba(15,23,42,.09);
  --text:    #0f172a;
  --text-2:  rgba(15,23,42,.55);
  --text-3:  rgba(15,23,42,.35);
  --t:       .28s cubic-bezier(.4,0,.2,1);

  --g1: linear-gradient(145deg, #3730a3 0%, #7c3aed 60%, #a855f7 100%);
  --g2: linear-gradient(145deg, #065f46 0%, #059669 60%, #34d399 100%);
  --g3: linear-gradient(145deg, #7f1d1d 0%, #dc2626 60%, #f87171 100%);
  --g4: linear-gradient(145deg, #4a044e 0%, #9333ea 60%, #c084fc 100%);
  --g5: linear-gradient(145deg, #78350f 0%, #b45309 60%, #f59e0b 100%);
  --g6: linear-gradient(145deg, #0f172a 0%, #1d4ed8 60%, #60a5fa 100%);
  --g7: linear-gradient(145deg, #7c2d12 0%, #c2410c 60%, #fb923c 100%);

  --s1: rgba(124,58,237,.30);
  --s2: rgba(5,150,105,.28);
  --s3: rgba(220,38,38,.28);
  --s4: rgba(147,51,234,.30);
  --s5: rgba(180,83,9,.28);
  --s6: rgba(29,78,216,.32);
  --s7: rgba(194,65,12,.28);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Crect x='12' y='34' width='56' height='12' rx='4' fill='%230f9b8e' fill-opacity='.022'/%3E%3Crect x='34' y='12' width='12' height='56' rx='4' fill='%230f9b8e' fill-opacity='.022'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 70% 55% at 5% 90%,  rgba(15,155,142,.07) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 95% 5%,  rgba(14,165,233,.06)  0%, transparent 60%),
    radial-gradient(ellipse 45% 35% at 50% 55%, rgba(94,234,212,.05)  0%, transparent 70%);
}

/* ── HEADER ─────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 28px rgba(15,155,142,.10);
  padding-top: 4px;
}

header::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #0f9b8e 0%, #0ea5e9 100%);
  z-index: 1;
}

.hdr {
  max-width: 1360px; margin: 0 auto;
  padding: 0 1.8rem; height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.hdr-logo {
  display: flex; align-items: center; gap: .85rem;
  text-decoration: none; flex-shrink: 0;
}

.hdr-diamond {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #0f9b8e 0%, #0ea5e9 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 3px 16px rgba(15,155,142,.35);
  flex-shrink: 0;
  transition: box-shadow var(--t), transform var(--t);
}
.hdr-logo:hover .hdr-diamond { transform: rotate(45deg) scale(1.08); box-shadow: 0 6px 24px rgba(15,155,142,.50); }

.hdr-logo-text strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: .2px;
  background: linear-gradient(135deg, #0f9b8e, #0ea5e9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hdr-logo-text small { font-size: .67rem; color: var(--text-3); font-weight: 500; }

.hdr-tagline {
  font-size: .76rem; color: var(--text-2);
  text-align: center;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}

.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #16a34a; flex-shrink: 0;
  animation: blink 2s infinite;
  box-shadow: 0 0 6px rgba(22,163,74,.50);
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }

.hdr-right { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }

.hdr-tel {
  font-size: .74rem; color: var(--text-2);
  text-decoration: none; transition: color var(--t);
}
.hdr-tel:hover { color: #0f9b8e; }

.hdr-sep { width: 1px; height: 18px; background: var(--border); }

.btn-hdr {
  background: linear-gradient(90deg, #0f9b8e, #0b7d73);
  color: #fff;
  font-size: .78rem; font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: .44rem 1.15rem;
  border-radius: 30px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 2px 14px rgba(15,155,142,.28);
  transition: all var(--t);
  white-space: nowrap;
}
.btn-hdr:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(15,155,142,.40);
  filter: brightness(1.08);
}

.mob-burger {
  display: none; flex-direction: column; gap: 4px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.mob-burger span { width: 20px; height: 1.5px; background: var(--text-2); border-radius: 2px; display: block; transition: var(--t); }

/* ── MOB DRAWER ─────────────────────────── */
.mob-drawer {
  display: none; flex-direction: column;
  background: rgba(242,244,250,.98);
  border-top: 1px solid var(--border);
  padding: 1rem 1.8rem;
}
.mob-drawer.open { display: flex; }
.mob-drawer a {
  font-size: .88rem; color: var(--text-2); text-decoration: none;
  padding: .6rem 0; border-bottom: 1px solid var(--border);
  transition: color var(--t);
}
.mob-drawer a:last-child { border-bottom: none; }
.mob-drawer a:hover { color: #0f9b8e; }

/* ── PAGE ───────────────────────────────── */
.page {
  max-width: 1360px; margin: 0 auto; width: 100%;
  padding: 2rem 1.8rem 3rem;
  position: relative; z-index: 1;
  flex: 1;
  overflow: hidden;
}

/* ── DOCTOR BACKGROUND ──────────────────── */
.svc-doctor-bg {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 52%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  opacity: .14;
  filter: grayscale(22%) brightness(1.08) contrast(.92);
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%,  rgba(0,0,0,.5) 22%, black 50%),
    linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image:
    linear-gradient(to right,  transparent 0%,  rgba(0,0,0,.5) 22%, black 50%),
    linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-composite: intersect;
  mask-composite: intersect;
}

@media (max-width: 820px) {
  .svc-doctor-bg { max-width: 62%; opacity: .09; }
}
@media (max-width: 580px) {
  .svc-doctor-bg { display: none; }
}

/* ── BUTTONS ────────────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  border: none; border-radius: 12px; padding: .72rem 1.1rem;
  font-size: .86rem; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; text-decoration: none;
  transition: all var(--t); letter-spacing: .1px;
}
.btn-primary {
  background: linear-gradient(135deg, #0f9b8e, #0ea5e9);
  color: #fff; box-shadow: 0 4px 14px rgba(15,155,142,.35);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(15,155,142,.50);
  filter: brightness(1.08); transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: #0b7d73;
  border: 1.5px solid rgba(15,155,142,.35);
}
.btn-outline:hover { background: rgba(15,155,142,.06); border-color: #0b7d73; }
.btn-accent {
  background: linear-gradient(135deg, #c026d3, #e040fb);
  color: #fff; box-shadow: 0 4px 14px rgba(192,38,211,.30);
}
.btn-accent:hover {
  box-shadow: 0 6px 20px rgba(192,38,211,.45);
  filter: brightness(1.08); transform: translateY(-1px);
}
.btn-ghost { background: var(--bg); color: var(--text-2); }
.btn-ghost:hover { background: #e8eaf6; }

/* ── FOOTER ─────────────────────────────── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(238,248,251,.70);
  width: 100%;
}

.ftr {
  max-width: 1360px; margin: 0 auto;
  padding: 1rem 1.8rem;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}

.ftr p { font-size: .72rem; color: var(--text-3); }
.ftr p strong { color: var(--text-2); }
.ftr-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.ftr-links a {
  font-size: .72rem; color: var(--text-3);
  text-decoration: none; transition: color var(--t);
}
.ftr-links a:hover { color: #0f9b8e; }

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 700px) {
  .hdr { grid-template-columns: auto 1fr; }
  .hdr-tagline { display: none; }
  .hdr-tel, .hdr-sep { display: none; }
  .mob-burger { display: flex; }
  .hdr-right { gap: .5rem; }
  footer { max-width: 100%; }
  .ftr { flex-direction: column; text-align: center; }
}

@media (max-width: 580px) {
  .page  { padding: 1.2rem 1rem 2rem; }
  .hdr   { padding: 0 1rem; }
}

/* ── ADMIN ──────────────────────────────── */
.admin-page {
  max-width: 1100px; margin: 0 auto;
  padding: 2rem 1.8rem 3rem;
}

.admin-hdr {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem;
  margin-bottom: 1.4rem; flex-wrap: wrap;
}

.admin-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  background: linear-gradient(135deg, #0b7d73, #0ea5e9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .2rem;
}

.admin-sub { font-size: .76rem; color: var(--text-3); }

.back-link {
  display: inline-block; font-size: .76rem;
  color: var(--text-3); text-decoration: none;
  margin-bottom: .4rem; transition: color var(--t);
}
.back-link:hover { color: #0f9b8e; }

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 1.4rem 1.6rem;
  box-shadow: 0 1px 6px rgba(15,23,42,.05);
  transition: box-shadow var(--t);
}
.admin-card:hover { box-shadow: 0 4px 16px rgba(15,23,42,.08); }

/* ── ADMIN TABLE ────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; font-size: .80rem; }

.admin-table th {
  text-align: left; padding: .5rem .75rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--text-3);
  border-bottom: 1px solid var(--border);
  background: rgba(15,155,142,.04);
}

.admin-table td {
  padding: .75rem .75rem; color: var(--text-2);
  border-bottom: 1px solid var(--border); vertical-align: middle;
}

.admin-table tbody tr { transition: background var(--t); }
.admin-table tbody tr:hover td { background: rgba(15,155,142,.04); }
.admin-table tr:last-child td { border-bottom: none; }

.row-inactive td { opacity: .45; }

.sort-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(15,155,142,.10); color: #0b7d73;
  font-size: .72rem; font-weight: 700;
}

.td-icon { font-size: 1.3rem; }
.td-rate { font-weight: 600; color: #16a34a; }
.td-count { font-size: .73rem; color: var(--text-3); }
.td-chk { text-align: center; }
.td-actions { display: flex; gap: .4rem; flex-wrap: nowrap; }

.svc-name { display: block; color: var(--text); font-weight: 600; margin-bottom: .2rem; }

.status-badge {
  font-size: .65rem; font-weight: 700; letter-spacing: .4px;
  padding: .2rem .6rem; border-radius: 20px;
}
.status-badge.active   { background: rgba(22,163,74,.10); color: #16a34a; border: 1px solid rgba(22,163,74,.22); }
.status-badge.inactive { background: rgba(15,23,42,.06); color: var(--text-3); border: 1px solid var(--border); }

.grad-pill {
  display: inline-block; font-size: .60rem;
  padding: .1rem .45rem; border-radius: 10px;
  color: #fff; font-weight: 600; margin-top: .2rem;
}
.g1-pill { background: #7c3aed; }
.g2-pill { background: #059669; }
.g3-pill { background: #dc2626; }
.g4-pill { background: #9333ea; }
.g5-pill { background: #b45309; }
.g6-pill { background: #1d4ed8; }
.g7-pill { background: #c2410c; }

/* ── ACTION BUTTONS ─────────────────────── */
.act-btn {
  font-size: .72rem; font-weight: 600; font-family: 'Inter', sans-serif;
  padding: .32rem .75rem; border-radius: 8px;
  border: none; cursor: pointer; text-decoration: none;
  transition: all var(--t); display: inline-block;
}
.act-btn.edit   { background: rgba(15,155,142,.10); color: #0b7d73; border: 1px solid rgba(15,155,142,.22); }
.act-btn.edit:hover { background: rgba(15,155,142,.18); transform: translateY(-1px); box-shadow: 0 2px 8px rgba(15,155,142,.18); }
.act-btn.toggle { background: rgba(15,23,42,.06); color: var(--text-2); border: 1px solid var(--border); }
.act-btn.toggle:hover { background: rgba(15,23,42,.11); }
.act-btn.del    { background: rgba(220,38,38,.07); color: #dc2626; border: 1px solid rgba(220,38,38,.18); }
.act-btn.del:hover { background: rgba(220,38,38,.14); transform: translateY(-1px); }

/* ── EDIT FORM ──────────────────────────── */
.edit-grid {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 1.2rem; align-items: start;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: .88rem; font-weight: 800;
  color: var(--text-2); letter-spacing: .4px;
  text-transform: uppercase; margin-bottom: 1rem;
}

.section-hdr {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: .5rem;
}

.field-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .9rem; }
.field-group label {
  font-size: .72rem; font-weight: 600;
  color: var(--text-3); letter-spacing: .3px;
}
.field-group label small { font-weight: 400; color: var(--text-3); opacity: .7; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

.adm-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px; padding: .55rem .85rem;
  font-size: .80rem; font-family: 'Inter', sans-serif;
  color: var(--text); width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}
.adm-input:focus {
  outline: none;
  border-color: rgba(15,155,142,.50);
  box-shadow: 0 0 0 3px rgba(15,155,142,.10);
}
.adm-textarea { resize: vertical; min-height: 70px; }
select.adm-input option { background: #fff; color: #0f172a; }

.chk-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .80rem; color: var(--text-2); cursor: pointer;
}
.chk-label input[type="checkbox"] { width: 15px; height: 15px; accent-color: #0f9b8e; cursor: pointer; }

/* ── PREVIEW CARD ───────────────────────── */
.preview-wrap { position: sticky; top: 80px; }
.preview-card { cursor: default; pointer-events: none; }

/* ── SURVEYS TABLE ──────────────────────── */
.surveys-table .adm-input { padding: .35rem .55rem; font-size: .74rem; }
.surveys-table td { padding: .5rem .4rem; }

@media (max-width: 900px) {
  .edit-grid { grid-template-columns: 1fr; }
  .preview-wrap { position: static; }
}

/* ── ADMIN TABS (legacy) ────────────────── */
.admin-tabs { display: flex; gap: .35rem; margin-bottom: 1.1rem; }
.atab {
  font-size: .76rem; font-weight: 700; letter-spacing: .3px;
  padding: .38rem 1rem; border-radius: 8px;
  text-decoration: none; transition: all var(--t);
  color: var(--text-3); background: rgba(15,23,42,.05);
  border: 1px solid var(--border);
}
.atab:hover { color: var(--text); background: rgba(15,23,42,.09); }
.atab.active { background: rgba(15,155,142,.12); color: #0b7d73; border-color: rgba(15,155,142,.28); }

/* ── MODAL BASE (shared) ────────────────── */
.adm-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.40);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
}
.adm-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 1.6rem;
  box-shadow: 0 20px 60px rgba(15,23,42,.16);
  display: flex; flex-direction: column; gap: .8rem;
  max-height: 85vh; overflow-y: auto;
}
.adm-modal-title {
  font-family: 'Inter', sans-serif;
  font-size: .95rem; font-weight: 800; color: var(--text);
}
.adm-modal-sub { font-size: .74rem; color: var(--text-3); }
.adm-modal-foot { display: flex; gap: .6rem; justify-content: flex-end; margin-top: .4rem; }

/* ── ADMIN SIDEBAR LAYOUT ──────────────── */
.adm-layout {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 5% 90%,  rgba(15,155,142,.06) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 95% 5%,  rgba(14,165,233,.05) 0%, transparent 60%);
}

.adm-shell { display: flex; min-height: 100vh; }

/* SIDEBAR */
.adm-sidebar {
  width: 230px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  display: flex; flex-direction: column;
  z-index: 60; transition: transform var(--t);
  box-shadow: 1px 0 12px rgba(15,23,42,.06);
}

.adm-sb-brand {
  display: flex; align-items: center; gap: .7rem;
  padding: 1.3rem 1.1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(15,155,142,.06) 0%, transparent 100%);
}
.adm-sb-brand strong {
  display: block; font-size: .88rem; font-weight: 700;
  font-family: 'Playfair Display', serif;
  background: linear-gradient(135deg, #0b7d73, #0ea5e9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.2;
}
.adm-sb-brand small { display: block; font-size: .64rem; color: var(--text-3); margin-top: .1rem; }

.adm-sb-brand .hdr-diamond { width: 28px !important; height: 28px !important; }

.adm-nav { flex: 1; padding: 1rem .65rem; display: flex; flex-direction: column; }

.adm-nav-label {
  font-size: .60rem; font-weight: 700;
  letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--text-3); padding: 0 .6rem; margin: 0 0 .5rem;
}

.adm-nav-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .75rem; border-radius: 10px;
  text-decoration: none; font-size: .80rem; font-weight: 500;
  color: var(--text-2); transition: all var(--t);
  margin-bottom: .18rem; border: 1px solid transparent;
}
.adm-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .55; transition: opacity var(--t); }
.adm-nav-item:hover { background: rgba(15,155,142,.07); color: #0b7d73; }
.adm-nav-item:hover svg { opacity: .9; }
.adm-nav-item.adm-active {
  background: rgba(15,155,142,.10);
  color: #0b7d73; font-weight: 600;
  border-color: rgba(15,155,142,.20);
}
.adm-nav-item.adm-active svg { opacity: 1; }

.adm-nav-sep { height: 1px; background: var(--border); margin: .65rem .6rem; }

.adm-sb-footer { padding: .65rem; border-top: 1px solid var(--border); flex-shrink: 0; }

/* TOP BAR */
.adm-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.adm-topbar {
  display: flex; align-items: center;
  padding: 0 1.8rem; height: 52px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  gap: .8rem; flex-shrink: 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(15,155,142,.06);
}

.adm-burger {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: .3rem;
}
.adm-burger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-2); border-radius: 2px; transition: all var(--t);
}

.adm-topbar-title {
  font-family: 'Inter', sans-serif;
  font-size: .85rem; font-weight: 800;
  color: var(--text-2); flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.adm-topbar-user { font-size: .72rem; color: var(--text-3); display: flex; align-items: center; }

/* MAIN CONTENT AREA */
.adm-main { flex: 1; overflow: hidden; padding: 1.8rem 2rem 3rem; }
.adm-main .admin-page { max-width: none; margin: 0; padding: 0; }

/* MOBILE OVERLAY */
.adm-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,.35);
  backdrop-filter: blur(2px); z-index: 55;
}
.adm-overlay.adm-overlay-show { display: block; }

@media (max-width: 860px) {
  .adm-sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); }
  .adm-sidebar.adm-sidebar-open { transform: translateX(0); box-shadow: 8px 0 40px rgba(15,23,42,.18); }
  .adm-burger { display: flex; }
  .adm-topbar { padding: 0 1rem; }
  .adm-main { padding: 1.2rem 1rem 2rem; }
}

/* ── SURVEY MAP ─────────────────────────── */

.smap-stats {
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: .9rem 1.6rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 1px 6px rgba(15,23,42,.05);
  flex-wrap: wrap; gap: 0;
  position: relative; overflow: hidden;
}
.smap-stats::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #0f9b8e, #5eead4, #0ea5e9);
}
.smap-stat { display: flex; flex-direction: column; align-items: center; padding: 0 1.6rem; text-align: center; }
.smap-stat:first-child { padding-left: 0; }
.smap-stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem; font-weight: 800; color: var(--text); line-height: 1;
}
.smap-stat-lbl {
  font-size: .65rem; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .5px; margin-top: .25rem;
}
.smap-stat-sep { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }

/* Filter bar */
.smap-filter-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.6rem; }
.smap-filter-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 600; color: var(--text-3);
  white-space: nowrap; flex-shrink: 0;
}
.smap-filter-select { max-width: 380px; }
.smap-clear-btn { flex-shrink: 0; }

/* Prompt */
.smap-prompt {
  text-align: center; padding: 4rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
}
.smap-prompt-icon { opacity: .30; }
.smap-prompt-title {
  font-family: 'Inter', sans-serif;
  font-size: .95rem; font-weight: 800; color: var(--text-3);
}
.smap-prompt-sub { font-size: .76rem; color: var(--text-3); opacity: .7; }

/* Section */
.smap-section { margin-bottom: 2.2rem; }

.smap-section-hdr {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .9rem; padding-bottom: .65rem;
  border-bottom: 2px solid rgba(15,155,142,.12);
}
.smap-section-icon { font-size: 1.4rem; line-height: 1; }
.smap-section-name { font-family: 'Inter', sans-serif; font-size: .88rem; font-weight: 800; color: var(--text); }
.smap-section-count { font-size: .70rem; color: var(--text-3); margin-left: .5rem; }

/* Card grid */
.smap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: .9rem; }

/* Cards */
.smap-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: .6rem;
  transition: all var(--t);
  box-shadow: 0 1px 4px rgba(15,23,42,.05);
}
.smap-card:hover { border-color: rgba(15,155,142,.25); box-shadow: 0 6px 20px rgba(15,155,142,.10); transform: translateY(-2px); }

.smap-card-unmapped { background: #fff8f8; border-color: rgba(220,38,38,.18); }
.smap-card-unmapped:hover { border-color: rgba(220,38,38,.35); box-shadow: 0 6px 20px rgba(220,38,38,.08); }

/* Card header */
.smap-card-hdr { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.smap-card-title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.smap-card-name { font-size: .84rem; font-weight: 700; color: var(--text); }

.smap-badge-primary {
  font-size: .58rem; font-weight: 700; letter-spacing: .4px;
  padding: .15rem .5rem; border-radius: 20px;
  background: rgba(15,155,142,.10); color: #0b7d73;
  border: 1px solid rgba(15,155,142,.22);
}
.smap-id-badge {
  font-size: .65rem; font-weight: 700; color: var(--text-3);
  background: rgba(15,23,42,.06); border-radius: 6px;
  padding: .2rem .55rem; white-space: nowrap; flex-shrink: 0;
}
.smap-btn-label { font-size: .68rem; color: var(--text-3); font-style: italic; }

.smap-body { flex: 1; }

.smap-flow-count { font-size: .68rem; color: var(--text-3); margin-bottom: .5rem; }

/* Step chips */
.smap-flow { display: flex; flex-wrap: wrap; gap: .3rem .2rem; align-items: center; }
.smap-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(15,155,142,.08); border: 1px solid rgba(15,155,142,.18);
  border-radius: 8px; padding: .22rem .6rem .22rem .3rem;
  font-size: .70rem; color: #0b7d73; transition: all var(--t);
}
.smap-chip:hover { background: rgba(15,155,142,.15); transform: translateY(-1px); }
.smap-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; border-radius: 50%;
  background: rgba(15,155,142,.18); color: #0b7d73;
  font-size: .60rem; font-weight: 700; flex-shrink: 0;
}
.smap-chip-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smap-arrow { font-size: .75rem; color: var(--text-3); flex-shrink: 0; }

.smap-empty { display: flex; align-items: center; gap: .5rem; font-size: .76rem; color: var(--text-3); padding: .5rem 0; }
.smap-empty-icon { font-size: 1rem; }
.smap-card-unmapped .smap-empty { color: #dc2626; opacity: .80; }

/* Card footer */
.smap-card-foot {
  display: flex; gap: .4rem; padding-top: .6rem;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}

/* ── SUBMISSIONS PAGE ───────────────────── */

.sub-filter-bar {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.sub-search-input { flex: 1; min-width: 220px; }
.sub-filter-sel   { width: 180px; }

.sub-table-wrap { padding: 0; overflow-x: auto; }
.sub-table { min-width: 900px; }
.sub-table td { vertical-align: top; padding: .75rem .9rem; }

/* Status badges */
.sub-badge {
  display: inline-block;
  font-size: .67rem; font-weight: 700; letter-spacing: .4px;
  text-transform: uppercase;
  padding: .22rem .7rem; border-radius: 20px;
  white-space: nowrap;
}
.sub-done    { background: #dcfce7; color: #166534; }
.sub-pending { background: #fef9c3; color: #92400e; }
.sub-cancel  { background: #fee2e2; color: #991b1b; }
.sub-other   { background: #f1f5f9; color: #475569; }

.smap-create-btn {
  background: rgba(22,163,74,.08) !important;
  color: #16a34a !important;
  border-color: rgba(22,163,74,.22) !important;
}
.smap-create-btn:hover { background: rgba(22,163,74,.16) !important; }

/* New Mapping modal */
.smap-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.6rem; width: 520px; max-width: 95vw;
  box-shadow: 0 20px 60px rgba(15,23,42,.14);
}
.smap-modal-title {
  font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 800;
  color: var(--text); margin-bottom: .4rem;
}

@media (max-width: 700px) {
  .smap-grid { grid-template-columns: 1fr; }
  .smap-stats { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .smap-stat-sep { width: 100%; height: 1px; }
  .smap-stat { align-items: flex-start; padding: 0; }
}

/* ═══════════════════════════════════════════════════
   SUBMISSIONS PAGE — full redesign
══════════════════════════════════════════════════ */

.sub-page { display: flex; flex-direction: column; gap: 1rem; }

/* ── Material underline field ── */
.sub-mat-field {
  display: flex; flex-direction: column;
  border-right: 1px solid #e2e8f0;
  padding: .45rem 1rem .45rem 1rem; flex: 1; min-width: 150px;
}
.sub-mat-label {
  font-size: .67rem; font-weight: 600; letter-spacing: .4px;
  text-transform: uppercase; color: #0f9b8e; margin-bottom: .2rem;
}
.sub-mat-input {
  font-family: 'Inter', sans-serif; font-size: .84rem;
  border: none; border-bottom: 2px solid #e2e8f0;
  outline: none; background: transparent;
  padding: .3rem 0; color: #1e293b; transition: border-color .2s;
}
.sub-mat-input:focus { border-bottom-color: #0f9b8e; }
.sub-mat-sel {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236366f1' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; background-size: 10px;
  padding-right: 18px;
}
.sub-mat-ta {
  font-family: 'Inter', sans-serif; font-size: .84rem;
  border: 1.5px solid #e2e8f0; border-radius: 6px;
  outline: none; padding: .45rem .65rem; resize: vertical;
  color: #1e293b; transition: border-color .2s; width: 100%; box-sizing: border-box;
}
.sub-mat-ta:focus { border-color: #0f9b8e; }

/* ── Buttons ── */
.sub-btn {
  font-family: 'Inter', sans-serif; font-size: .80rem; font-weight: 600;
  border: none; border-radius: 6px; padding: .48rem 1.1rem;
  cursor: pointer; white-space: nowrap; transition: background .18s, opacity .18s;
}
.sub-btn-primary  { background: #0f9b8e; color: #fff; }
.sub-btn-primary:hover { background: #0b7d73; }
.sub-btn-reset    { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.sub-btn-reset:hover { background: #e2e8f0; }
.sub-btn-excel    { background: #16a34a; color: #fff; }
.sub-btn-excel:hover { background: #15803d; }
.sub-btn-outline  { background: transparent; color: #0f9b8e; border: 1.5px solid #0f9b8e; }
.sub-btn-outline:hover { background: rgba(15,155,142,.06); }

/* ── Filter card ── */
.sub-filter-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(15,23,42,.06);
}
.sub-filter-title {
  font-size: .76rem; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: #0f9b8e;
  padding: .7rem 1.2rem .3rem; margin: 0;
}
.sub-row1 {
  display: flex; flex-wrap: wrap;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}
.sub-divider { height: 1px; background: #f1f5f9; }
.sub-row2 {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem; padding: .7rem 1rem;
}
.sub-search-box  { flex: 1; min-width: 200px; border-bottom: 2px solid #e2e8f0; padding: .3rem 0; }
.sub-search-type { width: 180px; }
.sub-period {
  font-size: .72rem; color: #94a3b8; margin: 0;
  padding: .3rem 1.2rem .5rem; border-top: 1px solid #f1f5f9;
}

/* ── Table card ── */
.sub-table-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(15,23,42,.06);
}
.sub-table-scroll { overflow-x: auto; }
.sub-tbl {
  width: 100%; border-collapse: collapse;
  font-size: .78rem; min-width: 940px;
}
.sub-tbl thead tr { background: linear-gradient(135deg,#0f9b8e,#0ea5e9); }
.sub-tbl thead th {
  padding: .7rem .85rem; text-align: left;
  font-size: .69rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: #fff; white-space: nowrap;
}
.sub-tbl tbody tr { border-bottom: 1px solid #f1f5f9; transition: background .15s; }
.sub-tbl tbody tr:hover { background: #eef8fb; }
.sub-tbl tbody td { padding: .65rem .85rem; color: #374151; vertical-align: middle; }
.sub-dob { white-space: nowrap; }
.sub-empty {
  text-align: center; padding: 3rem 2rem; color: #94a3b8;
}
.sub-empty code { background: #f1f5f9; border-radius: 4px; padding: .1rem .4rem; font-size: .78rem; }

/* ── Pagination ── */
.sub-pagination {
  display: flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; padding: .55rem 1rem;
  box-shadow: 0 1px 4px rgba(15,23,42,.04);
}
.sub-pg-label { font-size: .74rem; color: #64748b; white-space: nowrap; }
.sub-pg-sel {
  font-size: .78rem; border: 1px solid #e2e8f0; border-radius: 5px;
  padding: .2rem .4rem; color: #374151; cursor: pointer; outline: none;
}
.sub-pg-info { font-size: .78rem; color: #374151; margin: 0 .4rem; white-space: nowrap; }
.sub-pg-btn {
  background: none; border: 1px solid #e2e8f0; border-radius: 6px;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; color: #0f9b8e; transition: background .15s;
}
.sub-pg-btn:hover:not(:disabled) { background: #e4f4f2; }
.sub-pg-btn:disabled { color: #cbd5e1; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════
   SUBMISSION DETAIL MODAL
══════════════════════════════════════════════════ */

.sub-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(15,23,42,.45); backdrop-filter: blur(3px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 1.5rem 1rem; overflow-y: auto;
}
.sub-modal-overlay.sub-modal-open { display: flex; }

.sub-modal {
  background: #fff; border-radius: 16px;
  width: 820px; max-width: 98vw;
  box-shadow: 0 24px 80px rgba(15,23,42,.22);
  padding: 1.6rem 1.8rem 2rem;
  position: relative; margin: auto;
}
.sub-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: #f1f5f9; border: none; border-radius: 50%;
  width: 30px; height: 30px; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #475569; transition: background .15s;
}
.sub-modal-close:hover { background: #fee2e2; color: #dc2626; }

/* Action buttons */
.sub-mdl-actions { display: flex; gap: .65rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.sub-mdl-btn {
  font-family: 'Inter', sans-serif; font-size: .82rem; font-weight: 600;
  border-radius: 8px; border: none; padding: .5rem 1.2rem;
  cursor: pointer; transition: opacity .18s;
}
.sub-mdl-primary { background: linear-gradient(135deg,#0f9b8e,#0ea5e9); color: #fff; }
.sub-mdl-primary:hover { opacity: .88; }
.sub-mdl-gray    { background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }

.sub-mdl-divider { height: 1px; background: #f1f5f9; margin: .4rem 0 1rem; }

/* Collapsible section */
.sub-mdl-sect {
  border: 1.5px solid #cdeee8; border-radius: 10px; overflow: hidden;
  margin-bottom: 1rem;
}
.sub-mdl-sect-hdr {
  background: #eef8fb; padding: .8rem 1.1rem;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; user-select: none; gap: .4rem;
}
.sub-mdl-sect-hdr > div:first-child { display: flex; align-items: center; gap: .5rem; }
.sub-mdl-sect-icon { font-size: 1rem; }
.sub-mdl-sect-hdr strong { font-size: .88rem; color: #1e293b; }
.sub-mdl-sect-sub { font-size: .74rem; color: #64748b; flex: 1; padding: 0 .5rem; }
.sub-mdl-chevron {
  font-size: 1.1rem; color: #0f9b8e; transition: transform .22s;
  transform: rotate(180deg);
}
.sub-mdl-sect-body { padding: 1.1rem; display: flex; flex-direction: column; gap: .9rem; }

/* Delivery info */
.sub-mdl-delivery-row {
  display: flex; flex-wrap: wrap; gap: .5rem;
  background: #eef8fb; border-radius: 8px; padding: .7rem 1rem;
}
.sub-mdl-dl-cell { flex: 1; min-width: 160px; }
.sub-mdl-dl-label { font-size: .68rem; font-weight: 700; color: #0f9b8e; text-transform: uppercase; letter-spacing: .4px; }
.sub-mdl-dl-val { display: block; font-size: .82rem; color: #374151; margin-top: .1rem; }

/* Rx box */
.sub-mdl-rx-box {
  border: 2px solid #0ea5e9; border-radius: 8px;
  padding: .6rem 1rem; background: #eff6ff;
}
.sub-mdl-rx-box p { margin: .2rem 0; font-size: .82rem; color: #1e3a8a; }

/* Form rows in modal */
.sub-mdl-form-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.sub-mdl-form-col { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: .3rem; }
.sub-mdl-form-btns { display: flex; gap: .6rem; justify-content: flex-end; padding-top: .4rem; }

/* Tabs area */
.sub-mdl-tabs-wrap {
  display: flex; align-items: center; gap: .3rem;
  margin: .6rem 0 0; border-bottom: 2px solid #e2e8f0;
}
.sub-tabs-arr {
  background: none; border: 1px solid #e2e8f0; border-radius: 5px;
  width: 26px; height: 26px; font-size: 1.2rem; line-height: 1;
  cursor: pointer; color: #0f9b8e; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.sub-tabs-arr:hover { background: #e4f4f2; }
.sub-tabs-scroll {
  display: flex; overflow-x: auto; gap: 0; flex: 1;
  scrollbar-width: none;
}
.sub-tabs-scroll::-webkit-scrollbar { display: none; }
.sub-tab-btn {
  flex-shrink: 0; background: none; border: none; border-bottom: 2.5px solid transparent;
  padding: .5rem .9rem; font-size: .78rem; font-weight: 500; color: #64748b;
  cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s;
  margin-bottom: -2px;
}
.sub-tab-btn:hover { color: #0f9b8e; }
.sub-tab-btn.sub-tab-active { color: #0f9b8e; border-bottom-color: #0f9b8e; font-weight: 700; }

.sub-mdl-tab-content {
  padding: .9rem 0 .4rem; min-height: 80px;
}
.sub-tab-step-title {
  font-size: .88rem; font-weight: 700; color: #1e293b;
  margin-bottom: .5rem; padding-bottom: .4rem;
  border-bottom: 1px solid #f1f5f9;
}
.sub-tab-step-sub { font-weight: 400; color: #94a3b8; font-size: .80rem; }

/* Answer list inside tabs */
.sub-ans-list  { display: flex; flex-direction: column; gap: .3rem; }
.sub-ans-row   { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; padding: .35rem .5rem; border-radius: 6px; background: #f8fafc; font-size: .78rem; }
.sub-ans-q     { color: #64748b; font-weight: 500; }
.sub-ans-a     { color: #1e293b; font-weight: 600; word-break: break-word; }

/* Package / medication rows */
.sub-mdl-packages { margin: .5rem 0 .2rem; display: flex; flex-direction: column; gap: .25rem; }
.sub-pkg-row   { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; padding: .4rem .65rem; border-radius: 6px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.sub-pkg-name  { font-size: .78rem; color: #166534; font-weight: 500; flex: 1; line-height: 1.4; }
.sub-pkg-qty   { font-size: .75rem; color: #15803d; font-weight: 700; background: #dcfce7; padding: .1rem .5rem; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }

/* ── Prescription Modal ─────────────────────────────────── */
.rx-modal         { max-width: 900px !important; }
.rx-hdr           { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.rx-title         { font-size: 1rem; font-weight: 800; color: #1e293b; margin: 0; }
.rx-hdr-btns      { display: flex; gap: .5rem; }
.rx-patient-sect  { margin-bottom: .8rem; }
.rx-patient-body  { padding: .5rem 0; }
.rx-patient-grid  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .3rem .8rem; }
.rx-prow          { display: flex; gap: .4rem; font-size: .78rem; }
.rx-pl            { color: #94a3b8; font-weight: 500; min-width: 52px; }
.rx-pv            { color: #1e293b; font-weight: 600; }
.rx-meta-row      { margin: .5rem 0 .3rem; font-size: .80rem; color: #475569; }
.rx-promo-label   { color: #94a3b8; }
.rx-promo-val     { font-weight: 600; color: #0f9b8e; margin-left: .3rem; }
.rx-form-grid     { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-bottom: .8rem; }
.rx-field-lbl     { font-size: .76rem; color: #64748b; font-weight: 600; display: block; margin-bottom: .2rem; }
.rx-meds-grid     { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid #f1f5f9; padding-top: .8rem; }
.rx-meds-hdr      { font-size: .80rem; font-weight: 700; color: #374151; margin: 0 0 .5rem; text-transform: uppercase; letter-spacing: .04em; }
.rx-avail-list    { max-height: 300px; overflow-y: auto; padding-right: .3rem; }
.rx-group-hdr     { font-size: .75rem; font-weight: 700; color: #0f9b8e; text-decoration: underline; margin: .6rem 0 .2rem; cursor: default; }
.rx-med-row       { display: flex; align-items: flex-start; gap: .45rem; padding: .25rem .3rem; border-radius: 4px; cursor: pointer; font-size: .78rem; color: #374151; transition: background .12s; }
.rx-med-row:hover { background: #f8fafc; }
.rx-chk           { margin-top: .15rem; accent-color: #0f9b8e; flex-shrink: 0; }
.rx-med-name      { line-height: 1.4; }
.rx-prescribed-col { border-left: 1px solid #f1f5f9; padding-left: 1rem; }
.rx-prescribed-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: .25rem; }
.rx-prescribed-item { display: flex; align-items: flex-start; gap: .5rem; padding: .3rem .4rem; background: #f0fdf4; border-radius: 5px; font-size: .77rem; color: #166534; }
.rx-med-dot       { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; margin-top: .3rem; flex-shrink: 0; }
.rx-empty-msg     { color: #94a3b8; font-size: .78rem; margin: .5rem 0; }
@@media (max-width: 640px) {
  .rx-form-grid { grid-template-columns: 1fr; }
  .rx-meds-grid { grid-template-columns: 1fr; }
  .rx-patient-grid { grid-template-columns: 1fr 1fr; }
}

/* Loading spinner */
.sub-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 4rem 2rem; gap: 1rem;
  color: #94a3b8; font-size: .84rem;
}
.sub-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid #cdeee8;
  border-top-color: #0f9b8e;
  animation: sub-spin .8s linear infinite;
}
@keyframes sub-spin { to { transform: rotate(360deg); } }

/* Modal patient header */
.sub-mdl-patient-hdr {
  display: flex; align-items: center; gap: .9rem;
  background: linear-gradient(135deg,#eef8fb,#e4f4f2);
  border-radius: 10px; padding: .8rem 1.1rem; margin-bottom: 1rem;
}
.sub-mdl-patient-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg,#0f9b8e,#0ea5e9);
  color: #fff; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sub-mdl-patient-name {
  font-size: .95rem; font-weight: 700; color: #1e293b;
}
.sub-mdl-patient-meta {
  font-size: .74rem; color: #64748b; margin-top: .1rem;
}
.sub-mdl-badge-status { margin-bottom: .2rem; }
