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

:root {
  --teal:         #16acac;
  --teal-light:   #e8f9f9;
  --teal-dark:    #0e8a8a;
  --navy:         #11517c;
  --navy-light:   #e8f0f8;
  --navy-dark:    #0a3a5c;
  --bg-light:     #f7ffff;
  --border-soft:  #d8f1f1;
  --white:        #ffffff;
  --text-dark:    #1a2b3c;
  --text-muted:   #6c7a8d;
  --success:      #28a745;
  --warning:      #ffc107;
  --danger:       #dc3545;
  --sidebar-w:           260px;
  --sidebar-w-collapsed: 95px;
  --sidebar-current-w:   var(--sidebar-w);
  --topbar-h:     64px;
  --radius-card:  16px;
  --radius-btn:   10px;
  --shadow-card:  0 2px 16px rgba(17,81,124,.09);
  --shadow-soft:  0 1px 6px rgba(22,172,172,.12);
  --scrollbar-size: 8px;
  --scrollbar-track: var(--bg-light);
  --scrollbar-thumb: rgba(17, 81, 124, .22);
  --scrollbar-thumb-hover: rgba(22, 172, 172, .48);
  --scrollbar-thumb-border: var(--bg-light);
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html,
body {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-thumb-border);
  background-clip: padding-box;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}
html::-webkit-scrollbar-button,
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-button,
body::-webkit-scrollbar-corner {
  display: none;
  width: 0;
  height: 0;
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; font-weight: 600; }
a { text-decoration: none; }

/* Scrollable panels (notifications, tables, modals, etc.) */
.frc-scroll,
.frc-notif-menu-scroll,
.table-scroll,
.frc-table-wrap,
.table-responsive,
.modal-body,
.dropdown-menu.frc-notif-menu {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.frc-scroll::-webkit-scrollbar,
.frc-notif-menu-scroll::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar,
.frc-table-wrap::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.dropdown-menu.frc-notif-menu::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}
.frc-scroll::-webkit-scrollbar-track,
.frc-notif-menu-scroll::-webkit-scrollbar-track,
.table-scroll::-webkit-scrollbar-track,
.frc-table-wrap::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.dropdown-menu.frc-notif-menu::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
.frc-scroll::-webkit-scrollbar-thumb,
.frc-notif-menu-scroll::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb,
.frc-table-wrap::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.dropdown-menu.frc-notif-menu::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-thumb-border);
  background-clip: padding-box;
}
.frc-scroll::-webkit-scrollbar-thumb:hover,
.frc-notif-menu-scroll::-webkit-scrollbar-thumb:hover,
.table-scroll::-webkit-scrollbar-thumb:hover,
.frc-table-wrap::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.dropdown-menu.frc-notif-menu::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}
.frc-scroll::-webkit-scrollbar-button,
.frc-notif-menu-scroll::-webkit-scrollbar-button,
.table-scroll::-webkit-scrollbar-button,
.frc-table-wrap::-webkit-scrollbar-button,
.table-responsive::-webkit-scrollbar-button,
.modal-body::-webkit-scrollbar-button,
.dropdown-menu.frc-notif-menu::-webkit-scrollbar-button,
.frc-scroll::-webkit-scrollbar-corner,
.frc-notif-menu-scroll::-webkit-scrollbar-corner,
.table-scroll::-webkit-scrollbar-corner,
.frc-table-wrap::-webkit-scrollbar-corner,
.table-responsive::-webkit-scrollbar-corner,
.modal-body::-webkit-scrollbar-corner,
.dropdown-menu.frc-notif-menu::-webkit-scrollbar-corner {
  display: none;
  width: 0;
  height: 0;
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
html.sidebar-collapsed {
  --sidebar-current-w: var(--sidebar-w-collapsed);
}

.frc-sidebar {
  width: var(--sidebar-current-w);
  min-height: 100vh;
  background: linear-gradient(160deg, var(--teal-dark) 0%, var(--teal-dark) 40%, var(--navy-dark) 100%);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: width .25s ease, transform .3s ease;
  overflow: visible;
}
.frc-sidebar .sidebar-brand {
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.frc-sidebar .sidebar-brand-logo {
  width: 100%;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 7px 10px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .14);
  overflow: hidden;
}
.frc-sidebar .sidebar-brand-logo img {
  width: 100%;
  height: auto;
  max-height: 42px;
  object-fit: contain;
  display: block;
}
.frc-sidebar .sidebar-brand-text {
  overflow: hidden;
  white-space: nowrap;
  transition: opacity .2s ease, height .25s ease, margin .25s ease;
  text-align: center;
}
.frc-sidebar .sidebar-brand .brand-text { color: #fff; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 15px; line-height: 1.2; }
.frc-sidebar .sidebar-brand .brand-sub { color: rgba(255,255,255,.6); font-size: 11px; }
.frc-sidebar .sidebar-nav-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 0 12px;
  --scrollbar-size: 5px;
  --scrollbar-track: transparent;
  --scrollbar-thumb: rgba(255, 255, 255, .24);
  --scrollbar-thumb-hover: rgba(255, 255, 255, .42);
  --scrollbar-thumb-border: transparent;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
.frc-sidebar .sidebar-nav-scroll::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}
.frc-sidebar .sidebar-nav-scroll::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  margin: 6px 0;
}
.frc-sidebar .sidebar-nav-scroll::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 999px;
  border: none;
  background-clip: padding-box;
}
.frc-sidebar .sidebar-nav-scroll::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}
.frc-sidebar .sidebar-nav-scroll::-webkit-scrollbar-button,
.frc-sidebar .sidebar-nav-scroll::-webkit-scrollbar-corner {
  display: none;
  width: 0;
  height: 0;
}
.frc-sidebar nav { padding: 0; }
.frc-sidebar .nav-section-title {
  padding: 14px 18px 4px;
  color: rgba(255,255,255,.45);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .2s ease, height .25s ease, padding .25s ease;
}
.frc-sidebar .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  margin: 2px 10px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  border-radius: 10px;
  transition: background .2s, color .2s, padding .2s, margin .2s;
}
.frc-sidebar .nav-link i {
  font-size: 16px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.frc-sidebar .nav-link span:not(.badge-status):not(.nav-link-badge) {
  white-space: nowrap;
  overflow: hidden;
  transition: opacity .2s ease, width .25s ease;
}
.frc-sidebar .nav-link .nav-link-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  padding: 2px 8px;
  line-height: 1.3;
}
.frc-sidebar .nav-link:hover,
.frc-sidebar .nav-link.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.frc-sidebar .nav-link.active {
  background: rgba(22,172,172,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.frc-sidebar .sidebar-footer {
  padding: 12px 10px 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.frc-sidebar .sidebar-collapse-btn {
  position: absolute;
  top: 112px;
  right: -13px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: var(--white);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
  box-shadow: 0 2px 10px rgba(17, 81, 124, .18);
  transition: background .2s, color .2s, transform .25s ease, box-shadow .2s;
}
.frc-sidebar .sidebar-collapse-btn:hover {
  background: var(--teal-light);
  color: var(--teal-dark);
  box-shadow: 0 4px 14px rgba(22, 172, 172, .22);
}
.frc-sidebar .sidebar-collapse-btn i {
  font-size: 11px;
  transition: transform .25s ease;
}
html.sidebar-collapsed .frc-sidebar .sidebar-collapse-btn {
  top: 72px;
}
html.sidebar-collapsed .frc-sidebar .sidebar-collapse-btn i {
  transform: rotate(180deg);
}
html.sidebar-collapsed .frc-sidebar .sidebar-brand {
  justify-content: center;
  align-items: center;
  padding: 12px 8px 10px;
  gap: 0;
}
html.sidebar-collapsed .frc-sidebar .sidebar-brand-logo {
  width: 54px;
  padding: 5px 6px;
}
html.sidebar-collapsed .frc-sidebar .sidebar-brand-logo img {
  max-height: 34px;
}
html.sidebar-collapsed .frc-sidebar .sidebar-brand-text {
  opacity: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
html.sidebar-collapsed .frc-sidebar .nav-section-title {
  opacity: 0;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  overflow: hidden;
}
html.sidebar-collapsed .frc-sidebar .nav-link {
  justify-content: center;
  padding: 11px 8px;
  margin: 3px 8px;
  gap: 0;
}
html.sidebar-collapsed .frc-sidebar .nav-link span:not(.badge-status):not(.nav-link-badge) {
  opacity: 0;
  width: 0;
  overflow: hidden;
}
html.sidebar-collapsed .frc-sidebar .nav-link {
  overflow: visible;
}
html.sidebar-collapsed .frc-sidebar .nav-link .nav-link-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  right: auto;
  margin: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  font-size: 0;
  line-height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(10px, -16px);
  box-shadow: 0 0 0 2px #11517c;
  pointer-events: none;
  z-index: 2;
}
html.sidebar-collapsed .frc-sidebar .nav-link .nav-link-badge::after {
  content: attr(data-short);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}
html.sidebar-collapsed .frc-sidebar .sidebar-footer .nav-link {
  justify-content: center;
}

/* ─── Topbar ─────────────────────────────────────────────────────────────── */
.frc-topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: var(--sidebar-current-w);
  right: 0;
  z-index: 999;
  box-shadow: 0 1px 8px rgba(17,81,124,.06);
  transition: left .25s ease;
}
.frc-topbar .page-title { font-family: 'Poppins',sans-serif; font-weight: 600; font-size: 18px; color: var(--navy); }
.frc-topbar .topbar-right { display: flex; align-items: center; gap: 16px; }
.notif-bell {
  position: relative;
  cursor: pointer;
  color: var(--navy);
  font-size: 20px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
  transition: background .18s, border-color .18s, color .18s;
}
/* Icon-only bell: hide Bootstrap caret (it overlapped the bell + badge) */
.notif-bell.dropdown-toggle::after {
  display: none !important;
}
.notif-bell:hover,
.notif-bell.show {
  background: rgba(0, 128, 128, 0.08);
  border-color: rgba(0, 128, 128, 0.15);
  color: var(--teal);
}
.notif-bell > i {
  position: relative;
  z-index: 0;
  line-height: 1;
}
.notif-bell .badge-dot {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  transform: translate(28%, -28%);
  min-width: 20px;
  height: 23px;
  padding: 0 4px;
  background: var(--teal);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 500;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
  border: 1px solid var(--white);
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(17, 81, 124, 0.2);
  pointer-events: none;
}

/* ─── Notification bell dropdown (inbox) ─────────────────────────────────── */
.frc-notif-menu.dropdown-menu {
  width: min(100vw - 24px, 360px);
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 28px rgba(17, 81, 124, 0.12);
  overflow: hidden;
}
.frc-notif-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fafcfd 0%, #fff 100%);
  border-bottom: 1px solid var(--border-soft);
}
.frc-notif-menu-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  margin: 0;
}
.frc-notif-menu-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 128, 128, 0.12);
  color: var(--teal);
  white-space: nowrap;
}
.frc-notif-menu-scroll {
  max-height: 300px;
  overflow-y: auto;
  background: #fff;
}
.frc-notif-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid #f0f4f8;
  text-decoration: none;
  color: inherit;
  transition: background .15s ease;
}
a.frc-notif-item:hover {
  background: rgba(0, 128, 128, 0.06);
}
a.frc-notif-item:focus-visible {
  background: rgba(0, 128, 128, 0.06);
  outline: 2px solid var(--teal);
  outline-offset: -2px;
}
.frc-notif-item:last-child { border-bottom: none; }
.frc-notif-item.is-unread {
  background: rgba(17, 81, 124, 0.03);
  border-left: 3px solid var(--teal);
  padding-left: 11px;
}
.frc-notif-item-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--teal);
  background: rgba(0, 128, 128, 0.1);
}
.frc-notif-item.is-unread .frc-notif-item-icon {
  background: rgba(0, 128, 128, 0.16);
  color: var(--navy);
}
.frc-notif-item-body { min-width: 0; flex: 1; }
.frc-notif-item-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 4px;
}
.frc-notif-item.is-unread .frc-notif-item-title { font-weight: 700; }
.frc-notif-item-msg {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 6px;
}
.frc-notif-item-time {
  font-size: 11px;
  color: #94a3b8;
}
.frc-notif-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
}
.frc-notif-empty i {
  font-size: 36px;
  color: #cbd5e1;
  display: block;
  margin-bottom: 10px;
}
.frc-notif-empty p { margin: 0; font-size: 13px; line-height: 1.45; }
.frc-notif-menu-footer {
  padding: 10px 12px 12px;
  background: #fafcfd;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.frc-notif-menu-footer .btn {
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 9px;
  font-weight: 500;
}
.frc-notif-menu-footer .btn-outline-teal:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.frc-notif-menu-footer .btn-outline-teal:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.user-avatar {
  width: 36px; height: 36px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Poppins',sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

/* Topbar Bootstrap dropdowns — replace default blue focus/active with FRC teal */
.frc-topbar .dropdown-menu {
  --bs-dropdown-link-hover-bg: var(--teal-light);
  --bs-dropdown-link-hover-color: var(--navy);
  --bs-dropdown-link-active-bg: var(--teal-light);
  --bs-dropdown-link-active-color: var(--navy);
  --bs-dropdown-link-focus-bg: var(--teal-light);
  --bs-dropdown-link-focus-color: var(--navy);
}
.frc-topbar .dropdown-menu .dropdown-item:hover,
.frc-topbar .dropdown-menu .dropdown-item:focus,
.frc-topbar .dropdown-menu .dropdown-item:active,
.frc-topbar .dropdown-menu .dropdown-item.active {
  background-color: var(--teal-light);
  color: var(--navy);
}
.frc-topbar .dropdown-menu .dropdown-item:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
  box-shadow: none;
}
/* Logout row stays red; subtle tint on hover/focus */
.frc-topbar .dropdown-menu button.dropdown-item {
  color: var(--danger);
}
.frc-topbar .dropdown-menu button.dropdown-item:hover,
.frc-topbar .dropdown-menu button.dropdown-item:focus,
.frc-topbar .dropdown-menu button.dropdown-item:active {
  background-color: rgba(220, 53, 69, 0.08);
  color: var(--danger);
}

/* Topbar user profile dropdown */
.frc-user-dropdown {
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  min-width: 240px;
  max-width: min(92vw, 320px);
  padding: 0;
  overflow: hidden;
}
.frc-user-dropdown-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-light);
}
.frc-user-dropdown-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  line-height: 1.35;
  word-break: break-word;
}
.frc-user-dropdown-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
  word-break: break-all;
}
.frc-user-dropdown-item {
  padding: 11px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.frc-user-dropdown-logout {
  color: var(--danger) !important;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
}
.frc-topbar .dropdown-menu.frc-user-dropdown .frc-user-dropdown-logout:hover,
.frc-topbar .dropdown-menu.frc-user-dropdown .frc-user-dropdown-logout:focus,
.frc-topbar .dropdown-menu.frc-user-dropdown .frc-user-dropdown-logout:active {
  background-color: rgba(220, 53, 69, 0.08);
  color: var(--danger) !important;
}

/* ─── Main content ───────────────────────────────────────────────────────── */
.frc-main {
  margin-left: var(--sidebar-current-w);
  margin-top: var(--topbar-h);
  padding: 28px 28px 40px;
  min-height: calc(100vh - var(--topbar-h));
  transition: margin-left .25s ease;
}

/* ─── Cards ──────────────────────────────────────────────────────────────── */
.card-frc {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  padding: 24px;
}
.card-frc .card-header-frc {
  display: flex;
  /* align-items: center; */
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-soft);
}
.card-frc .card-title-frc {
  font-family: 'Poppins',sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  margin: 0;
}
.card-frc .card-header-frc.card-header-frc--stack-sm {
  flex-wrap: wrap;
  gap: 12px;
}
.card-frc .card-header-frc .card-title-frc {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.card-frc .card-header-frc .btn-view-all {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 12px;
  padding: 6px 14px;
  line-height: 1.2;
}
.card-frc--panel .card-empty-msg {
  padding: 0;
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.card-frc--panel .card-list-body {
  padding: 0;
  margin: 0;
}
.assessment-info-table td:last-child {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ─── Stat Cards ─────────────────────────────────────────────────────────── */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(17,81,124,.13); }
.stat-card .stat-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.stat-icon.teal  { background: var(--teal-light); color: var(--teal); }
.stat-icon.navy  { background: var(--navy-light); color: var(--navy); }
.stat-icon.green { background: #e8f8ee; color: var(--success); }
.stat-icon.orange{ background: #fff8e6; color: #e08000; }
.stat-icon.red   { background: #fde8e8; color: var(--danger); }
.stat-icon.purple { background: #f3e8ff; color: #7c3aed; }
.stat-card .stat-body { flex: 1; min-width: 0; }
.stat-card .stat-value {
  font-family: 'Poppins',sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-card .stat-hint {
  font-size: 11px;
  color: var(--text-muted);
}
.stat-card-link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.stat-card-link:hover .stat-card--clickable,
.stat-card-link:focus-visible .stat-card--clickable {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(17,81,124,.13);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn-teal {
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 8px 20px;
  font-family: 'Poppins',sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-teal:hover:not(:disabled):not([disabled]) {
  background: var(--teal-dark);
  color: #fff;
  transform: translateY(-1px);
}
.btn-teal:disabled,
.btn-teal[disabled] {
  background: #9ecaca;
  color: rgba(255, 255, 255, 0.92);
  cursor: not-allowed !important;
  opacity: 1;
  transform: none;
  box-shadow: none;
}
.btn-teal:disabled:hover,
.btn-teal[disabled]:hover {
  background: #9ecaca;
  color: rgba(255, 255, 255, 0.92);
  cursor: not-allowed;
  transform: none;
}
#enrollForm button[type="submit"].btn-teal:disabled,
#enrollForm button[type="submit"].btn-teal[disabled] {
  background: #8fb8b8;
  color: rgba(255, 255, 255, 0.88);
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  padding: 8px 20px;
  font-family: 'Poppins',sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-btn);
  padding: 7px 18px;
  font-family: 'Poppins',sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-outline-teal:hover { background: var(--teal); color: #fff; }
.btn-outline-danger {
  background: transparent;
  color: var(--danger);
  border: 1.5px solid var(--danger);
  border-radius: var(--radius-btn);
  padding: 7px 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.25;
}
.btn-outline-danger:hover {
  background: var(--danger);
  color: #fff;
  transform: translateY(-1px);
}

/* ─── Status Badges ──────────────────────────────────────────────────────── */
.badge-status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'Poppins',sans-serif;
}
.badge-pending        { background: #fff8e1; color: #b07d00; }
.badge-approved       { background: #e8f8ee; color: #1a7a3a; }
.badge-active         { background: #e8f9f9; color: var(--teal-dark); }
.badge-rejected       { background: #fde8e8; color: #b02a2a; }
.badge-draft          { background: #f0f0f0; color: #555; }
.badge-publish        { background: var(--teal-light); color: var(--navy); }
.badge-completed      { background: #e8f8ee; color: #1a7a3a; }
.badge-cancelled      { background: #fde8e8; color: #b02a2a; }
.badge-unpaid         { background: #fde8e8; color: #b02a2a; }
.badge-partial_paid   { background: #fff8e1; color: #b07d00; }
.badge-fully_paid     { background: #e8f8ee; color: #1a7a3a; }
.badge-pending_verification { background: #fff0e8; color: #8a4000; }
.badge-paid           { background: #e8f8ee; color: #1a7a3a; }
.badge-overdue        { background: #fde8e8; color: #b02a2a; }
.badge-pending_super_admin_approval { background: #f0e8ff; color: #5a1a8a; }

.badge-session-scheduled { background: #e3f2fd; color: #1565c0; }
.badge-session-in-progress { background: #ede7f6; color: #5e35b1; }
.badge-session-completed { background: #e8f8ee; color: #1a7a3a; }
.badge-session-cancelled { background: #fde8e8; color: #b02a2a; }
.badge-session-no-show   { background: #fff3e0; color: #c66900; }

/* ─── Tables ─────────────────────────────────────────────────────────────── */
.frc-table-wrap,
.card-frc .table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.frc-table-wrap .table-frc,
.card-frc .table-responsive .table-frc {
  min-width: 640px;
}
.frc-table-wrap--wide .table-frc {
  min-width: 960px;
}
.table-frc { width: 100%; border-collapse: collapse; }
.table-frc thead th {
  background: var(--bg-light);
  color: var(--navy);
  font-family: 'Poppins',sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border-soft);
}
.table-frc tbody td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-dark);
  border-bottom: 1px solid #f0f4f8;
  vertical-align: middle;
}
.table-frc tbody tr:hover { background: var(--bg-light); }
.table-frc tbody tr:last-child td { border-bottom: none; }
.table-frc td .badge-status {
  white-space: nowrap;
  flex-shrink: 0;
}
.table-frc td.text-amount {
  white-space: nowrap;
}

/* List page pagination (enrollments, therapist sessions, etc.) */
.frc-list-pagination {
  margin-top: 0;
  padding: 1rem 1.25rem 1.35rem;
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #fafcfd 0%, var(--white) 100%);
}
.frc-list-pagination > nav {
  width: 100%;
  max-width: 100%;
}
.frc-list-pagination .d-none.flex-sm-fill.d-sm-flex.align-items-sm-center.justify-content-sm-between {
  width: 100%;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  align-items: center !important;
}
.frc-list-pagination .d-none.flex-sm-fill.d-sm-flex > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.frc-list-pagination .d-none.flex-sm-fill.d-sm-flex > div:first-child p.small {
  margin-bottom: 0;
  line-height: 1.5;
  color: var(--text-muted);
}
.frc-list-pagination .d-none.flex-sm-fill.d-sm-flex > div:last-child {
  flex: 0 0 auto;
  margin-left: auto;
}
.frc-list-pagination div.d-flex.flex-fill.d-sm-none {
  justify-content: center;
  width: 100%;
}
.frc-list-pagination .pagination {
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0;
}
.frc-list-pagination .page-item .page-link {
  margin-left: 0 !important;
  border-radius: 8px !important;
  min-width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.55rem;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  border: 1.5px solid var(--border-soft) !important;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(17, 81, 124, 0.05);
  line-height: 1;
}
.frc-list-pagination .page-link:hover {
  border-color: var(--teal) !important;
  color: var(--teal);
  background: var(--teal-light);
}
.frc-list-pagination .page-item.active .page-link {
  background-color: var(--teal) !important;
  border-color: var(--teal) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(22, 172, 172, 0.28);
}
.frc-list-pagination .page-item.disabled .page-link {
  color: #94a3b8 !important;
  background: var(--bg-light) !important;
  border-color: var(--border-soft) !important;
  opacity: 1;
  box-shadow: none;
}
.frc-list-pagination .page-link:focus {
  box-shadow: 0 0 0 3px rgba(22, 172, 172, 0.18);
}

/* Therapist Sessions — filter bar (single row, equal columns) */
.frc-sessions-filters-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 1rem;
  width: 100%;
}
.frc-sessions-filter-field {
  flex: 1 1 0;
  min-width: 0;
}
.frc-sessions-filter-field .form-label {
  white-space: nowrap;
}
.frc-sessions-filter-field .form-control,
.frc-sessions-filter-field .form-select {
  width: 100%;
}
.frc-sessions-filters-row .frc-sessions-filter-actions {
  flex: 0 0 auto;
  min-width: 10.5rem;
  max-width: 12rem;
}
.frc-sessions-filter-actions-label {
  display: block;
  visibility: hidden;
  height: 1.25rem;
  margin-bottom: 0.25rem !important;
  overflow: hidden;
}
.frc-sessions-filters-row .frc-sessions-filter-actions .filter-actions .btn-outline-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.frc-sessions-filters-row .frc-sessions-filter-actions .filter-actions {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}
.frc-sessions-filters-row .frc-sessions-filter-actions .btn-teal,
.frc-sessions-filters-row .frc-sessions-filter-actions .btn-outline-teal {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 12px;
  font-size: 13px;
  justify-content: center;
  white-space: nowrap;
}
.frc-sessions-filters-row .frc-sessions-filter-actions .btn-outline-teal {
  text-decoration: none;
}
@media (max-width: 991.98px) {
  .frc-sessions-filters-row {
    flex-wrap: wrap;
  }
  .frc-sessions-filter-field {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 10rem;
  }
}
@media (max-width: 575.98px) {
  .frc-sessions-filter-field {
    flex: 1 1 100%;
  }
  .frc-sessions-filters-row .frc-sessions-filter-actions {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }
}

/* Therapist Sessions — row actions (avoid clipped menus inside .table-responsive) */
.frc-sessions-schedule-card .frc-session-actions-btn.dropdown-toggle::after {
  display: none;
}
.frc-sessions-schedule-card .frc-session-actions-btn {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px !important;
  font-weight: 600;
  border-width: 1.5px;
  box-shadow: 0 1px 2px rgba(17, 81, 124, 0.06);
}
.frc-sessions-schedule-card .frc-session-actions-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(22, 172, 172, 0.25);
}
.frc-sessions-schedule-card .frc-session-actions-menu.dropdown-menu {
  --bs-dropdown-padding-y: 0.35rem;
  --bs-dropdown-item-padding-y: 0.45rem;
  --bs-dropdown-item-padding-x: 0.85rem;
  min-width: 13rem;
  max-height: none;
  overflow: visible;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  z-index: 1085;
}
.frc-sessions-schedule-card .frc-session-actions-menu .dropdown-item {
  border-radius: 8px;
  margin: 1px 6px;
  font-size: 13px;
}
.frc-sessions-schedule-card .frc-session-actions-menu .dropdown-item i {
  width: 1.1rem;
  text-align: center;
  color: var(--teal);
}
.frc-sessions-schedule-card .frc-session-actions-menu .dropdown-item.text-danger i {
  color: var(--danger);
}
.frc-sessions-schedule-card .frc-session-actions-menu button.dropdown-item {
  border: 0;
  background: transparent;
  text-align: left;
  width: 100%;
}
.frc-sessions-schedule-card .frc-session-actions-menu .dropdown-item:hover,
.frc-sessions-schedule-card .frc-session-actions-menu .dropdown-item:focus {
  background: var(--teal-light);
  color: var(--navy);
}

/* Session detail modal — progress note panel */
#frcSessionDetailModal .frc-session-pn-panel {
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(165deg, var(--white) 0%, var(--bg-light) 55%, var(--white) 100%);
  padding: 1rem 1.15rem 1.15rem;
  box-shadow: var(--shadow-soft);
}
#frcSessionDetailModal .frc-session-pn-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
#frcSessionDetailModal .frc-pn-state-badge {
  flex-shrink: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  line-height: 1.2;
}
#frcSessionDetailModal .frc-pn-state-none {
  background: #eef2f7;
  color: #4a5a6a;
}
#frcSessionDetailModal .frc-pn-state-draft {
  background: #fff6e5;
  color: #8a5a00;
}
#frcSessionDetailModal .frc-pn-state-done {
  background: var(--teal-light);
  color: var(--teal-dark);
}
#frcSessionDetailModal #frcDet-pn-status {
  flex: 1;
  min-width: 140px;
  line-height: 1.5;
}
#frcSessionDetailModal .frc-pn-preview-box {
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--white);
  padding: 0.85rem 1rem;
}
#frcSessionDetailModal .frc-pn-preview-row {
  display: grid;
  grid-template-columns: minmax(100px, 34%) 1fr;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(216, 241, 241, 0.65);
  font-size: 13px;
}
#frcSessionDetailModal .frc-pn-preview-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
#frcSessionDetailModal .frc-pn-preview-row:first-child {
  padding-top: 0;
}
#frcSessionDetailModal .frc-pn-preview-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 12px;
}
#frcSessionDetailModal .frc-pn-preview-value {
  color: var(--navy);
  font-weight: 600;
  word-break: break-word;
}
#frcSessionDetailModal .frc-pn-preview-value.frc-pn-notes-body {
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.45;
}
@media (max-width: 480px) {
  #frcSessionDetailModal .frc-pn-preview-row {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }
  #frcSessionDetailModal .frc-pn-preview-label {
    margin-top: 0.35rem;
  }
  #frcSessionDetailModal .frc-pn-preview-row:first-child .frc-pn-preview-label {
    margin-top: 0;
  }
}

#frcSessionDetailModal .frc-session-pn-actions {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-soft);
}
#frcSessionDetailModal .frc-session-pn-actions a.btn-teal,
#frcSessionDetailModal .frc-session-pn-actions a.btn-outline-teal {
  text-decoration: none !important;
  font-weight: 600;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: var(--radius-btn);
  box-shadow: 0 1px 4px rgba(17, 81, 124, 0.08);
}
#frcSessionDetailModal .frc-session-pn-actions a.btn-teal {
  color: #fff !important;
}
#frcSessionDetailModal .frc-session-pn-actions a.btn-teal:hover {
  color: #fff !important;
}
#frcSessionDetailModal .frc-session-pn-actions a.btn-outline-teal {
  text-decoration: none !important;
  font-weight: 600;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: var(--radius-btn);
  box-shadow: 0 1px 4px rgba(17, 81, 124, 0.06);
}

/* ─── Forms ──────────────────────────────────────────────────────────────── */
.form-frc > div {
  margin-bottom: 20px;
}
/* .form-frc > div:last-of-type {
  margin-bottom: 28px;
} */
.form-frc > button[type="submit"] {
  margin-top: 4px;
}
.form-section {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  padding: 24px;
  margin-bottom: 20px;
}
.form-section-title {
  font-family: 'Poppins',sans-serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 8px;
}
.form-frc label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-frc .form-control,
.form-frc select,
.form-frc textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: 10px;
  font-family: 'Inter',sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-frc .form-control:focus,
.form-frc select:focus,
.form-frc textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22,172,172,.12);
}
.form-frc .form-control.is-invalid,
.form-frc select.is-invalid { border-color: var(--danger); }
.form-frc .invalid-feedback { color: var(--danger); font-size: 12px; margin-top: 4px; }
.form-frc .form-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.frc-form-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 10px;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}
.frc-form-actions .btn-teal,
.frc-form-actions .btn-outline-teal {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .frc-form-actions {
    flex-direction: column;
  }
  .frc-form-actions .btn-teal,
  .frc-form-actions .btn-outline-teal {
    flex: none;
    width: 100%;
    white-space: normal;
  }
}

/* ─── Alert ──────────────────────────────────────────────────────────────── */
.alert-frc {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
}
.alert-frc.success { background: #e8f8ee; color: #1a7a3a; border-left: 4px solid var(--success); }
.alert-frc.error   { background: #fde8e8; color: #b02a2a; border-left: 4px solid var(--danger); }
.alert-frc.warning { background: #fff8e1; color: #b07d00; border-left: 4px solid var(--warning); }
.alert-frc.info    { background: var(--teal-light); color: var(--teal-dark); border-left: 4px solid var(--teal); }
.alert-frc--staff-register-info {
  margin-bottom: 20px;
  background: var(--teal-light);
  color: var(--navy);
  border-left: 4px solid var(--teal);
  align-items: center;
  gap: 12px;
}
.alert-frc--staff-register-info > i {
  flex-shrink: 0;
  font-size: 15px;
  margin-top: 1px;
}
.alert-frc--staff-register-info > div {
  line-height: 1.45;
}

/* ─── Empty State ────────────────────────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px;
  text-align: center;
}
.empty-state .empty-icon {
  font-size: 64px;
  color: var(--border-soft);
  margin-bottom: 16px;
}
.empty-state h5 { font-family: 'Poppins',sans-serif; color: var(--navy); margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); font-size: 14px; max-width: 360px; }

/* ─── Auth layout ────────────────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg-light) 0%, #e8f5f5 50%, #eef3f8 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(17,81,124,.12);
  overflow: hidden;
  width: 100%;
  max-width: 960px;
  display: flex;
  min-height: 580px;
}
.auth-left {
  flex: 1;
  background: linear-gradient(160deg, var(--teal-dark) 0%, var(--teal) 50%, var(--navy-dark) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  top: -50px; right: -50px;
}
.auth-left::after {
  content: '';
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  bottom: -30px; left: -30px;
}
.auth-left .auth-logo {
  width: auto;
  max-width: min(100%, 240px);
  height: auto;
  border-radius: 16px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}
.auth-left .auth-logo img {
  width: 100%;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  display: block;
}
.auth-left h2,
.auth-left .auth-tagline,
.auth-left .auth-pills {
  position: relative;
  z-index: 1;
}
.auth-left h2 { color: #fff; font-family: 'Poppins',sans-serif; font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.auth-left .auth-tagline { color: rgba(255,255,255,.75); font-size: 15px; font-style: italic; }
.auth-left .auth-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.auth-left .auth-pill { background: rgba(255,255,255,.15); color: #fff; padding: 6px 14px; border-radius: 50px; font-size: 12px; }
.auth-right { flex: 1; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-right h3 { font-family: 'Poppins',sans-serif; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.auth-right .auth-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }
.auth-mobile-brand {
  display: none;
  text-align: center;
  /* margin-bottom: 22px; */
}
.auth-mobile-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  box-shadow: 0 2px 14px rgba(17, 81, 124, .1);
  border: 1px solid var(--border-soft);
}
.auth-mobile-logo img {
  height: 52px;
  width: auto;
  max-width: min(240px, 100%);
  object-fit: contain;
  display: block;
}
.auth-pass-wrap { position: relative; }
.auth-pass-wrap .form-control { padding-right: 2.75rem; }
.auth-pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.auth-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.auth-form-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
  font-size: 14px;
  color: var(--navy);
}
.auth-form-options input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
  flex-shrink: 0;
}
.auth-register-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-register-link a {
  color: var(--teal);
  font-weight: 600;
}
.auth-btn-full {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  justify-content: center;
}

.auth-card.auth-card--single {
  max-width: 460px;
  min-height: auto;
  display: block;
}
.auth-card.auth-card--single .auth-right {
  width: 100%;
  padding: 48px 40px 44px;
}
.auth-right--centered {
  text-align: center;
  align-items: center;
}
.auth-form-header {
  text-align: center;
  margin-bottom: 32px;
  width: 100%;
}
.auth-form-header .auth-subtitle {
  margin-bottom: 0;
}
.auth-status-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
}
.auth-status-icon--warning {
  background: #fff4e5;
  color: #c77800;
  border: 1px solid #ffe0b2;
}
.auth-contact-box {
  width: 100%;
  text-align: left;
  background: var(--bg-light, #f6f9fc);
  border: 1px solid var(--border-soft, #e5eaf0);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 14px;
}
.auth-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  padding: 4px 0;
}
.auth-contact-row i {
  width: 18px;
  color: var(--teal);
  text-align: center;
  flex-shrink: 0;
}
.auth-contact-row a {
  color: var(--teal);
  font-weight: 500;
  word-break: break-all;
}

/* ─── Steps Progress ─────────────────────────────────────────────────────── */
.steps-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}
.step-item { display: flex; align-items: center; gap: 0; }
.step-circle {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins',sans-serif;
  font-weight: 600; font-size: 13px;
  transition: all .3s;
}
.step-circle.active { background: var(--teal); color: #fff; }
.step-circle.done   { background: var(--navy); color: #fff; }
.step-line { width: 48px; height: 2px; background: #e0e0e0; }
.step-line.done { background: var(--navy); }

/* ─── Register form (auth pages — no Bootstrap) ─────────────────────────── */
.auth-card-register {
  max-width: 740px;
  flex-direction: column;
  min-height: auto;
}
.auth-register-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--teal) 100%);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.auth-register-header .auth-register-logo {
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .12);
}
.auth-register-header .auth-register-logo img {
  height: 48px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}
.auth-register-header-text {
  min-width: 0;
}
.auth-register-header-text h4 {
  color: #fff;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.3;
}
.auth-register-header-text p {
  color: rgba(255, 255, 255, .75);
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.4;
}
.auth-card-register .auth-register-body {
  padding: 36px 40px 32px;
}
.form-frc-register > .step-panel {
  margin-bottom: 0;
}
.form-frc-register .step-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 17px;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-frc-register .step-title i {
  color: var(--teal);
}
.form-frc-register .step-hint {
  font-size: 14px;
  color: var(--text-muted);
  margin: -12px 0 20px;
}
.form-frc-register .form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.form-frc-register .form-grid .col-full {
  grid-column: 1 / -1;
}
.form-frc-register .form-grid > div {
  margin-bottom: 0;
}
.form-frc-register .form-grid--choices {
  gap: 12px;
}
.form-frc-register .step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 4px;
}
.form-frc-register .step-actions--end {
  justify-content: flex-end;
}
.form-frc-register .register-info-box {
  background: var(--teal-light);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--teal-dark);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.form-frc-register .register-info-box i {
  margin-top: 2px;
  flex-shrink: 0;
}
.auth-register-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 4px;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-register-footer a {
  color: var(--teal);
  font-weight: 600;
}
@media (max-width: 640px) {
  .auth-card-register {
    border-radius: 20px;
  }
  .auth-register-header {
    padding: 22px 20px;
    gap: 14px;
    flex-direction: column;
    text-align: center;
  }
  .auth-register-header .auth-register-logo img {
    height: 44px;
    max-width: min(220px, 100%);
  }
  .auth-register-header-text h4 {
    font-size: 1.15rem;
  }
  .auth-card-register .auth-register-body {
    padding: 28px 20px 24px;
  }
  .form-frc-register .form-grid {
    grid-template-columns: 1fr;
  }
  .steps-progress {
    margin-bottom: 24px;
  }
  .step-line {
    width: 24px;
  }
  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  .form-frc-register .step-actions {
    flex-wrap: wrap;
  }
  .form-frc-register .step-actions .btn-teal,
  .form-frc-register .step-actions .btn-outline-teal {
    flex: 1 1 auto;
    min-width: 120px;
    justify-content: center;
  }
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-wrapper {
    padding: 16px;
    align-items: center;
  }
  .auth-card-register {
    max-width: min(740px, 100%);
  }
  .auth-left { display: none; }
  .auth-card {
    max-width: min(600px, 100%);
    min-height: auto;
    border-radius: 20px;
  }
  .auth-mobile-brand { display: block; }
  .auth-right {
    padding: 32px 24px 28px;
  }
  .auth-right h3 {
    text-align: center;
    font-size: 22px;
  }
  .auth-right .auth-subtitle {
    text-align: center;
    margin-bottom: 24px;
  }
}
@media (min-width: 901px) {
  .auth-mobile-brand { display: none; }
}
@media (min-width: 901px) and (max-width: 1024px) {
  .auth-left { padding: 32px 24px; }
  .auth-left h2 { font-size: 19px; }
  .auth-left .auth-tagline { font-size: 14px; }
  .auth-left .auth-pill { font-size: 11px; padding: 5px 12px; }
  .auth-right { padding: 36px 32px; }
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 58, 92, .5);
  z-index: 999;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.sidebar-backdrop.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
body.sidebar-mobile-open {
  overflow: hidden;
}
@media (max-width: 991.98px) {
  html.sidebar-collapsed { --sidebar-current-w: var(--sidebar-w); }
  .frc-sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w);
    max-width: min(88vw, 300px);
    box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
  }
  .frc-sidebar.open { transform: translateX(0); }
  .frc-sidebar .sidebar-collapse-btn { display: none; }
  .frc-topbar {
    left: 0;
    /* z-index: 1001; */
    height: auto;
    min-height: var(--topbar-h);
    padding: 10px 12px;
    align-items: center;
    gap: 10px;
  }
  .frc-topbar > .d-flex:first-child {
    flex: 1;
    min-width: 0;
    gap: 10px;
    align-items: center;
  }
  .frc-topbar .page-title {
    font-size: 15px;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }
  .frc-topbar .topbar-right {
    flex-shrink: 0;
    gap: 10px;
  }
  /* Notification inbox: anchor to viewport (Popper can misalign on narrow topbar) */
  .frc-topbar .frc-notif-dropdown .frc-notif-menu.dropdown-menu {
    position: fixed !important;
    top: 70px !important;
    left: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
  }
  .frc-main {
    margin-left: 0;
    margin-top: 72px;
    padding: 20px 16px 32px;
  }
}
@media (max-width: 576px) {
  .frc-main { padding: 16px; }
  .card-frc{
    padding: 15px;
  }
        .card-frc.card-frc--panel {
          padding: 16px;
        }
  .card-frc .card-header-frc {
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .card-frc .card-title-frc {
    font-size: 15px;
  }
  .card-frc .card-header-frc .btn-view-all {
    font-size: 12px;
    padding: 7px 12px;
  }
  .dashboard-recent-row .card-frc--panel .text-muted.small {
    padding: 0 !important;
  }
  .stat-card{
    font-size: 22px;
  }
  .card-frc--list-page {
    padding: 16px;
    overflow: visible;
  }
  .card-frc--list-page > .card-header-frc,
  .card-frc--list-page > form > .card-header-frc {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .card-frc--list-page .card-header-frc .btn-teal,
  .card-frc--list-page .card-header-frc .btn-outline-teal {
    width: 100%;
    justify-content: center;
  }
  .card-frc--list-page .list-filters .form-select,
  .card-frc--list-page .list-filters .form-control {
    width: 100%;
    min-width: 0;
  }
  .card-frc--list-page .list-filters .filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .card-frc--list-page .list-filters .filter-actions .btn-teal,
  .card-frc--list-page .list-filters .filter-actions .btn-outline-teal {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
    min-width: 120px;
  }
  .auth-right { padding: 28px 20px; }
  .auth-mobile-logo img { height: 46px; }
  .auth-right h3 { font-size: 20px; }
  .card-frc .card-header-frc.card-header-frc--stack-sm {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* ─── Child dashboard ───────────────────────────────────────────────────── */
.child-dashboard-page .child-dashboard-stat-value {
  font-size: clamp(1.05rem, 2.8vw, 1.125rem);
  line-height: 1.2;
  word-break: break-word;
}
.child-dashboard-panel-body {
  padding: 1rem 1.15rem 1.15rem;
}
.child-dashboard-panel-btn {
  font-size: 12px;
  padding: 6px 12px;
  white-space: nowrap;
}
.child-dashboard-next-session {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
}
.child-dashboard-next-session-main {
  flex: 1 1 auto;
  min-width: 0;
}
.child-dashboard-next-session-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.3;
}
.child-dashboard-next-session-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.child-dashboard-next-session-detail {
  font-size: 13px;
  color: var(--teal-dark);
  margin-top: 4px;
  word-break: break-word;
}
.child-dashboard-programme-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.child-dashboard-programme-kv {
  display: grid;
  gap: 0;
}
.child-dashboard-programme-kv-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f6;
  font-size: 13px;
}
.child-dashboard-programme-kv-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.child-dashboard-programme-kv-label {
  color: var(--text-muted);
  flex-shrink: 0;
}
.child-dashboard-programme-kv-value {
  color: var(--navy);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}
.child-dashboard-inline-link {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: none;
}
.child-dashboard-inline-link:hover {
  text-decoration: underline;
}
.child-dashboard-table-wrap {
  padding: 0 1rem 1rem;
}
@media (max-width: 767.98px) {
  .child-dashboard-page .child-dashboard-stats {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }
  .child-dashboard-page .stat-card {
    padding: 14px 16px;
    gap: 12px;
  }
  .child-dashboard-page .stat-card .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .child-dashboard-page .stat-card .stat-label {
    font-size: 12px;
    line-height: 1.35;
  }
  .child-dashboard-panel-header,
  .child-dashboard-panel .card-header-frc {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .child-dashboard-panel-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
  }
  .child-dashboard-next-session {
    flex-direction: column;
    align-items: stretch;
  }
  .child-dashboard-next-session .btn-sm-frc {
    width: 100%;
    justify-content: center;
  }
  .child-dashboard-programme-kv-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .child-dashboard-programme-kv-value {
    text-align: left;
  }
}

.child-dashboard-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--teal);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}
.child-dashboard-welcome-title {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
  word-break: break-word;
}
.child-dashboard-welcome-email {
  color: var(--text-muted);
  font-size: 13px;
  word-break: break-all;
}
.child-dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.child-dashboard-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
  padding: 10px 12px;
}
.child-dashboard-tile {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--border-soft);
  min-height: 104px;
}
.child-dashboard-tile--warn {
  background: #fff8e6;
}
.child-dashboard-next-session {
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
}
.child-dashboard-next-session-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-light);
  border-radius: 12px;
  color: var(--teal);
  font-size: 18px;
}
.child-dashboard-next-session-title {
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  line-height: 1.3;
}
.child-dashboard-next-session-meta {
  font-size: 13px;
  color: var(--text-muted);
}
.child-dashboard-next-session-detail {
  color: var(--teal-dark);
}
.child-dashboard-next-session-btn {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
}
.child-dashboard-metric {
  border-radius: 12px;
  padding: 14px 12px;
}
.child-dashboard-metric--fee {
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
}
.child-dashboard-metric--paid {
  background: #e8f8ee;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.child-dashboard-metric--remaining {
  background: #fde8e8;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.child-dashboard-metric--sessions-total {
  background: var(--teal-light);
}
.child-dashboard-metric--sessions-done {
  background: #e8f8ee;
}
.child-dashboard-metric--sessions-upcoming {
  background: #e8f9f9;
}
.child-dashboard-metric-amount {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
}
.child-dashboard-metric-amount--navy { color: var(--navy); }
.child-dashboard-metric-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}
.child-dashboard-metric-value--success { color: var(--success); }
.card-frc--child-dashboard {
  border-radius: 14px;
  overflow: hidden;
}
.card-frc--child-welcome {
  padding: 18px;
}
@media (min-width: 768px) {
  .child-dashboard-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: auto;
  }
  .child-dashboard-quick-btn {
    width: auto;
  }
  .child-dashboard-welcome-title {
    font-size: 1.25rem;
  }
}

/* ─── Child enrollment detail ───────────────────────────────────────────── */
.child-enrollment-detail-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
}
.child-enrollment-detail-page__back:hover {
  color: var(--teal);
  text-decoration: underline;
}
.card-frc--child-enrollment-detail {
  border-radius: 14px;
  overflow: hidden;
}
.child-enrollment-detail.card-frc .card-header-frc.child-enrollment-detail__header {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 0;
  padding: 1rem 1.15rem;
}
.child-enrollment-detail__body {
  padding: 0 1.15rem 1.25rem;
}
.child-enrollment-detail__header-main {
  flex: 1 1 auto;
  min-width: 0;
}
.child-enrollment-detail__programme {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1.3;
  word-break: break-word;
}
.child-enrollment-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.child-enrollment-detail__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  word-break: break-word;
}
.child-enrollment-detail__meta i {
  color: var(--teal);
  flex-shrink: 0;
}
.child-enrollment-detail__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
.child-enrollment-detail__section {
  padding-top: 1.15rem;
  margin-top: 1.15rem;
  border-top: 1px solid var(--border-soft);
}
.child-enrollment-detail__section:first-child {
  margin-top: 0;
  padding-top: 1rem;
  border-top: 0;
}
.child-enrollment-detail__session-metrics {
  margin-bottom: 0.75rem;
}
.child-enrollment-detail__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-height: 84px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  height: 100%;
}
.child-enrollment-detail__stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  line-height: 1.3;
}
.child-enrollment-detail__stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}
.child-enrollment-detail__stat--total {
  background: var(--teal-light);
  border-color: rgba(0, 128, 128, 0.12);
}
.child-enrollment-detail__stat--done {
  background: #e8f8ee;
  border-color: rgba(34, 197, 94, 0.2);
}
.child-enrollment-detail__stat--done .child-enrollment-detail__stat-value {
  color: var(--success);
}
.child-enrollment-detail__stat--upcoming {
  background: #e8f9f9;
  border-color: rgba(0, 128, 128, 0.15);
}
.child-enrollment-detail__stat--upcoming .child-enrollment-detail__stat-value {
  color: var(--teal-dark);
}
.child-enrollment-detail__stat--remaining {
  background: var(--navy-light);
  border-color: rgba(17, 81, 124, 0.1);
}
.child-enrollment-detail__recurring {
  margin-top: 0.75rem;
  padding: 10px 12px;
  background: var(--bg-light);
  border-radius: 10px;
  line-height: 1.5;
}
.child-enrollment-detail__recurring i {
  color: var(--teal);
  margin-right: 4px;
}
.child-enrollment-detail__section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.child-enrollment-detail__section-title i {
  color: var(--teal);
}
.session-performance-chart__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.session-performance-chart__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.session-performance-chart__title i {
  color: var(--teal);
}
.session-performance-chart__filter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: min(100%, 220px);
}
.session-performance-chart__filter-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}
.session-performance-chart__filter-select {
  min-width: 200px;
}
.session-performance-chart__chart-wrap {
  position: relative;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  aspect-ratio: 1;
}
.session-performance-chart__chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}
.session-performance-chart__chart-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  padding: 0 24%;
  max-width: 100%;
  margin: 0 auto;
}
.session-performance-chart__chart-center-value {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.25rem, 3.5vw, 1.65rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1.1;
}
.session-performance-chart__chart-center-label {
  margin-top: 4px;
  font-size: clamp(9px, 2.2vw, 11px);
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.25;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.session-performance-chart__legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.session-performance-chart__legend-item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
}
.session-performance-chart__legend-item.is-empty {
  opacity: 0.72;
}
.session-performance-chart__swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}
.session-performance-chart__legend-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.session-performance-chart__legend-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.session-performance-chart__empty {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-light);
  border: 1px dashed var(--border-soft);
}
.child-enrollment-detail__performance.session-performance-chart {
  padding-top: 1.15rem;
  margin-top: 1.15rem;
  border-top: 1px solid var(--border-soft);
}
.therapist-child-performance-card {
  padding: 1.15rem 1.25rem;
}
.therapist-child-performance.session-performance-chart {
  margin: 0;
}
.child-enrollment-detail__next-session {
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--border-soft);
}
.child-enrollment-detail__next-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.child-enrollment-detail__next-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.child-enrollment-detail__next-datetime {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.child-enrollment-detail__next-day {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.3;
}
.child-enrollment-detail__next-date {
  font-size: 13px;
  color: var(--text-muted);
}
.child-enrollment-detail__next-time {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--teal-dark);
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
}
.child-enrollment-detail__next-time i {
  color: var(--teal);
}
.child-enrollment-detail__payments .child-enrollment-detail__section-title {
  margin-bottom: 14px;
}
.child-enrollment-detail__payment-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  height: 100%;
  padding: 14px;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
}
.child-enrollment-detail__payment-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}
.child-enrollment-detail__payment-amount {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  word-break: break-word;
}
.child-enrollment-detail__payment-amount--emphasis {
  font-size: clamp(1rem, 2.8vw, 1.2rem);
}
.child-enrollment-detail__payment-amount--paid {
  color: var(--success);
}
.child-enrollment-detail__payment-amount--due {
  color: var(--danger);
}
.child-enrollment-detail__payment-tile--highlight {
  background: var(--teal-light);
  border-color: rgba(0, 128, 128, 0.18);
}
.child-enrollment-detail__payment-tile--paid {
  background: #e8f8ee;
  border-color: rgba(34, 197, 94, 0.2);
}
.child-enrollment-detail__payment-tile--due {
  background: #fde8e8;
  border-color: rgba(239, 68, 68, 0.2);
}
.child-enrollment-detail__alert {
  border-radius: 12px;
  margin-top: 1rem;
  padding: 12px 14px;
  font-size: 14px;
}
.child-enrollment-detail__alert--success {
  background: #e8f8ee;
  border-color: var(--success);
  color: var(--navy);
}
.child-enrollment-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 1.15rem;
  margin-top: 1.15rem;
  border-top: 1px solid var(--border-soft);
}
.child-enrollment-detail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 13px;
  padding: 10px 16px;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .child-enrollment-detail.card-frc .card-header-frc.child-enrollment-detail__header {
    padding: 1.15rem 1.35rem;
  }
  .child-enrollment-detail__body {
    padding: 0 1.35rem 1.35rem;
  }
}
@media (max-width: 767.98px) {
  .child-enrollment-detail.card-frc .card-header-frc.child-enrollment-detail__header {
    flex-direction: column;
    align-items: stretch;
  }
  .child-enrollment-detail__badges {
    justify-content: flex-start;
    width: 100%;
  }
  .child-enrollment-detail__stat {
    min-height: 72px;
    padding: 10px 12px;
  }
  .child-enrollment-detail__stat-label {
    font-size: 10px;
  }
  .child-enrollment-detail__next-body {
    flex-direction: column;
    align-items: stretch;
  }
  .child-enrollment-detail__next-time {
    width: 100%;
    justify-content: center;
  }
  .child-enrollment-detail__payment-tile {
    min-height: 76px;
  }
  .child-enrollment-detail__actions {
    flex-direction: column;
  }
  .child-enrollment-detail__btn {
    width: 100%;
  }
}
@media (max-width: 575.98px) {
  .frc-main:has(.child-enrollment-detail-page) {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 12px;
  }
  .child-enrollment-detail-page__back {
    margin-bottom: 0.75rem;
    font-size: 13px;
  }
  .child-enrollment-detail.card-frc .card-header-frc.child-enrollment-detail__header {
    padding: 12px 14px;
  }
  .child-enrollment-detail__body {
    padding: 0 14px 14px;
  }
  .child-enrollment-detail__section {
    padding-top: 1rem;
    margin-top: 1rem;
  }
  .child-enrollment-detail__stat {
    min-height: 64px;
    padding: 8px 10px;
  }
  .child-enrollment-detail__session-metrics {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }
  .child-enrollment-detail__payment-tile {
    min-height: 68px;
    padding: 10px 12px;
  }
}

/* Session details (child / staff / therapist) — mobile spacing */
@media (max-width: 575.98px) {
  .frc-main:has(.session-details-page) {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 12px;
  }
  .session-details-page.card-frc {
    padding: 12px;
    border-radius: 12px;
  }
  .session-details-page > .card-header-frc {
    padding-bottom: 10px;
    margin-bottom: 12px;
  }
  .session-details-page .session-details-body {
    padding: 0 !important;
  }
  .session-details-page .session-feedback-overall {
    gap: 12px;
    padding: 12px 14px;
  }
  .session-details-page .session-feedback-overall__percent {
    font-size: 26px;
  }
  .session-details-page .session-feedback-overall__score {
    min-width: 72px;
  }
}

/* ─── Child profile ─────────────────────────────────────────────────────── */
.child-profile-card,
.child-profile-password-card {
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.child-profile-form,
.child-profile-password-form {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.child-profile-password-card .child-profile-password-form {
  padding-top: 0.75rem;
}
.child-profile-password-card__header {
  padding: 1rem 1.25rem 0;
  margin-bottom: 0;
  border-bottom: 0;
  flex-shrink: 0;
}
.child-profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}
.child-profile-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
}
.child-profile-hero-text {
  min-width: 0;
  flex: 1 1 auto;
}
.child-profile-display-name {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.3;
  word-break: break-word;
}
.child-profile-email {
  font-size: 13px;
  color: var(--text-muted);
  word-break: break-all;
}
.child-profile-status {
  margin-top: 8px;
}
.child-profile-divider {
  margin: 1rem 0 1.15rem;
  border-color: var(--border-soft);
  opacity: 1;
}
.child-profile-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.child-profile-section-title i {
  color: var(--teal);
}
.child-profile-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 auto;
}
.child-profile-field label {
  display: block;
  margin-bottom: 6px;
}
.child-profile-required {
  color: var(--danger);
}
.child-profile-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 0;
  line-height: 1.45;
}
.child-profile-input--readonly {
  background: var(--bg-light) !important;
  color: var(--text-muted) !important;
  cursor: default;
  border-color: var(--border-soft) !important;
}
.child-profile-readonly-value {
  font-size: 14px;
  padding: 4px 0;
}
.child-profile-tag-list {
  margin: 4px 0 8px;
}
.child-profile-form-actions {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.child-profile-password-form .child-profile-field:last-of-type {
  margin-bottom: 0;
}
.child-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 13px;
  padding: 10px 18px;
  min-width: 140px;
}
.child-profile-page .form-frc .form-control {
  max-width: 100%;
}
@media (min-width: 992px) {
  .child-profile-page__grid {
    align-items: stretch;
  }
  .child-profile-page__grid > [class*='col-'] {
    display: flex;
    flex-direction: column;
  }
  .child-profile-page__grid .child-profile-card,
  .child-profile-page__grid .child-profile-password-card {
    flex: 1 1 auto;
    width: 100%;
  }
  .child-profile-form .child-profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
  }
  .child-profile-field--full {
    grid-column: 1 / -1;
  }
}
@media (max-width: 767.98px) {
  .child-profile-form,
  .child-profile-password-form {
    padding: 1rem;
  }
  .child-profile-password-card__header {
    padding: 1rem 1rem 0;
  }
  .child-profile-hero {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .child-profile-avatar {
    width: 56px;
    height: 56px;
    font-size: 22px;
    border-radius: 14px;
  }
  .child-profile-form-actions {
    display: flex;
    flex-direction: column;
  }
  .child-profile-btn {
    width: 100%;
    min-width: 0;
  }
}

/* ─── Staff profile (admin / finance) ───────────────────────────────────── */
.staff-profile-card,
.staff-profile-password-card {
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.staff-profile-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.staff-profile-password-card {
  display: flex;
  flex-direction: column;
}
.staff-profile-password-form {
  padding: 0.75rem 1.25rem 1.35rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.staff-profile-password-card__header {
  padding: 1rem 1.25rem 0;
  margin-bottom: 0;
  border-bottom: 0;
  flex-shrink: 0;
}
.staff-profile-password-card__header .card-title-frc i {
  color: var(--teal);
  margin-right: 6px;
}
.staff-profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 4px;
}
.staff-profile-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  font-weight: 700;
}
.staff-profile-hero-text {
  min-width: 0;
  flex: 1 1 auto;
}
.staff-profile-name {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.3;
  word-break: break-word;
}
.staff-profile-email {
  font-size: 13px;
  color: var(--text-muted);
  word-break: break-all;
}
.staff-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.staff-profile-role-badge {
  text-transform: capitalize;
}
.staff-profile-divider {
  margin: 1rem 0 1.15rem;
  border-color: var(--border-soft);
  opacity: 1;
}
.staff-profile-section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.staff-profile-section-title i {
  color: var(--teal);
}
.staff-profile-detail-grid {
  margin-bottom: 0.5rem;
}
.staff-profile-break-all {
  word-break: break-all;
}
.staff-profile-contact-link {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}
.staff-profile-contact-link:hover {
  color: var(--navy);
  text-decoration: underline;
}
.staff-profile-footnote {
  margin: 1.15rem 0 0;
  padding: 0.75rem 0.9rem;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  background: var(--bg-light);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.staff-profile-footnote i {
  color: var(--teal);
  margin-top: 2px;
  flex-shrink: 0;
}
.staff-profile-field {
  margin-bottom: 1rem;
}
.staff-profile-field label {
  display: block;
  margin-bottom: 6px;
}
.staff-profile-field:last-of-type {
  margin-bottom: 0;
}
.staff-profile-required {
  color: var(--danger);
}
.staff-profile-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 0;
  line-height: 1.45;
}
.staff-profile-form-actions {
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.staff-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-size: 13px;
  padding: 10px 18px;
  min-width: 140px;
}
.staff-profile-page .form-frc .form-control {
  max-width: 100%;
}
@media (min-width: 992px) {
  .staff-profile-page__grid {
    align-items: stretch;
  }
  .staff-profile-page__grid > [class*='col-'] {
    display: flex;
    flex-direction: column;
  }
  .staff-profile-page__grid .staff-profile-card,
  .staff-profile-page__grid .staff-profile-password-card {
    flex: 1 1 auto;
    width: 100%;
  }
}
@media (max-width: 767.98px) {
  .staff-profile-page .staff-profile-card.card-frc,
  .staff-profile-page .staff-profile-password-card.card-frc {
    padding: 0;
  }
  .staff-profile-card__body,
  .staff-profile-password-form {
    padding: 1rem 1rem 1.25rem;
  }
  .staff-profile-password-card__header {
    padding: 1rem 1rem 0;
  }
  .staff-profile-hero {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .staff-profile-avatar {
    width: 56px;
    height: 56px;
    font-size: 22px;
    border-radius: 14px;
  }
  .staff-profile-section-title {
    margin-bottom: 0.85rem;
  }
  .staff-profile-detail-grid {
    gap: 0.65rem;
  }
  .staff-profile-detail-grid .frc-profile-detail-item {
    padding: 0.75rem 0.9rem;
  }
  .staff-profile-form-actions {
    display: flex;
    flex-direction: column;
  }
  .staff-profile-btn {
    width: 100%;
    min-width: 0;
  }
  .staff-profile-footnote {
    font-size: 11px;
    padding: 0.7rem 0.85rem;
  }
}
@media (max-width: 575.98px) {
  .staff-profile-card__body,
  .staff-profile-password-form {
    padding: 1rem 0.9rem 1.15rem;
  }
  .staff-profile-password-card__header {
    padding: 1rem 0.9rem 0;
  }
}

/* Enrollment show (staff) — mobile detail layout */
.enrollment-show-page .enrollment-show-card-title {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  margin-bottom: 14px;
  font-size: 1rem;
}
.enrollment-show-high-discount {
  border-left: 4px solid var(--teal);
}
.enrollment-show-schedule-card-header {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.enrollment-show-schedule-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.enrollment-show-schedule-header .card-title-frc {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
.enrollment-show-schedule-btn {
  flex-shrink: 0;
  margin-left: auto;
}
.enrollment-show-summary-header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  margin-bottom: 14px;
  border-bottom: none;
}
.enrollment-show-summary-header .card-title-frc {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  font-size: 1rem;
}
.enrollment-show-summary-header .btn-view-all {
  flex-shrink: 0;
  margin-left: auto;
}
.enrollment-show-payments-header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.enrollment-show-payments-header .card-title-frc {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}
.enrollment-show-payments-header .btn-view-all {
  flex-shrink: 0;
  margin-left: auto;
}
@media (max-width: 991.98px) {
  .enrollment-show-page .enrollment-show-schedule-table,
  .enrollment-show-page .enrollment-show-payments-table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .enrollment-show-page .enrollment-show-schedule-table .table-frc thead th,
  .enrollment-show-page .enrollment-show-schedule-table .table-frc tbody td,
  .enrollment-show-page .enrollment-show-payments-table .table-frc thead th,
  .enrollment-show-page .enrollment-show-payments-table .table-frc tbody td {
    white-space: nowrap;
  }
  .enrollment-show-page .enrollment-detail-kv td:first-child {
    width: 42%;
    max-width: 11rem;
    vertical-align: top;
  }
  .enrollment-show-page .enrollment-detail-kv td:last-child {
    word-break: normal;
    overflow-wrap: anywhere;
  }
}
.enrollment-detail-kv {
  width: 100%;
  border-collapse: collapse;
}
.enrollment-detail-kv td {
  padding: 6px 0;
  vertical-align: top;
}
.enrollment-detail-kv td:first-child {
  color: var(--text-muted);
  padding-right: 16px;
  white-space: nowrap;
}
.enrollment-detail-kv--summary {
  font-size: 16px;
}
.enrollment-detail-kv:not(.enrollment-detail-kv--summary) {
  font-size: 14px;
}
/* Child show (staff profile) */
.child-show-profile-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.child-show-profile-hero {
  flex: 1 1 100%;
  text-align: center;
  padding: 12px 0 4px;
}
.child-show-avatar {
  width: 80px;
  height: 80px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 34px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}
.child-show-name {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.child-show-divider {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 16px 0;
  opacity: 1;
}
.child-show-section-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
}
.child-show-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.child-show-tag {
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
}
.child-show-notes {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
.child-show-break-all {
  word-break: normal;
  overflow-wrap: anywhere;
}
/* Child documents (staff-only) */
.frc-documents__intro {
  font-size: 13px;
  color: var(--text-muted);
  margin: -6px 0 16px;
}
.frc-documents__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.frc-documents__list-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.frc-documents__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 600;
}
.frc-documents__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.frc-document-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--bg-light, #f8fafb);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.frc-document-card--marked {
  border-color: rgba(220, 53, 69, .45);
  background: #fff5f5;
  box-shadow: inset 0 0 0 1px rgba(220, 53, 69, .08);
}
.frc-document-card__remove {
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  margin-bottom: 0 !important;
}
.frc-document-card__remove-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.frc-document-card__remove-ui {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--text-muted);
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.frc-document-card__remove-ui i {
  color: inherit;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
}
.frc-document-card__remove:hover .frc-document-card__remove-ui {
  color: var(--danger);
  background: #fff5f5;
  border-color: rgba(220, 53, 69, .45);
}
.frc-document-card__remove-input:focus-visible + .frc-document-card__remove-ui {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.frc-document-card--marked .frc-document-card__remove-ui {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
}
.frc-document-card--marked .frc-document-card__remove:hover .frc-document-card__remove-ui {
  color: #fff;
  background: #b02a37;
  border-color: #b02a37;
}
.frc-document-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.frc-document-card__icon--pdf {
  background: #fdecec;
  color: #c0392b;
}
.frc-document-card__icon--jpg,
.frc-document-card__icon--jpeg,
.frc-document-card__icon--png,
.frc-document-card__icon--webp {
  background: var(--teal-light);
  color: var(--teal-dark);
}
.frc-document-card__icon--file {
  background: #eef2f7;
  color: var(--navy);
}
.frc-document-card__info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.frc-document-card__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}
.frc-document-card__meta {
  font-size: 11px;
  color: var(--text-muted);
}
.frc-document-card__view {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 12px;
  white-space: nowrap;
}
.frc-documents__hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}
.frc-documents__hint i {
  color: var(--teal);
  margin-top: 1px;
}
.frc-file-upload {
  position: relative;
}
.frc-file-upload--spaced {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-soft);
}
.frc-file-upload__input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.frc-file-upload__zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 118px;
  padding: 18px 16px;
  border: 1.5px dashed var(--border-soft);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.frc-file-upload__zone:hover,
.frc-file-upload__zone--drag {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, .08);
}
.frc-file-upload__zone--has-files {
  min-height: 0;
  padding: 14px 16px;
}
.frc-file-upload__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.frc-file-upload__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.frc-file-upload__meta {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 26rem;
}
.frc-file-upload__queue {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.frc-file-upload__queue-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #fff;
  font-size: 12px;
  color: var(--navy);
}
.frc-file-upload__queue-item i {
  color: var(--teal);
}
.frc-file-upload__queue-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.frc-file-upload__queue-size {
  color: var(--text-muted);
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .frc-document-card {
    flex-wrap: wrap;
  }
  .frc-document-card__info {
    flex: 1 1 calc(100% - 96px);
  }
  .frc-document-card__view {
    width: 100%;
    justify-content: center;
  }
}
.child-show-page .child-show-detail-kv td:first-child {
  width: 36%;
  max-width: 9.5rem;
  vertical-align: top;
}
.child-show-page .child-show-detail-kv td:last-child {
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Therapist — assigned child profile */
.therapist-child-show-page .child-show-profile-card {
  padding: 1.25rem 1.35rem 1.5rem;
}
.frc-profile-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 1.25rem;
}
@media (min-width: 576px) {
  .frc-profile-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.frc-profile-detail-item {
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--bg-light);
  border: 1px solid #eef2f6;
}
@media (min-width: 768px) {
  .frc-profile-detail-item {
    padding: 0;
    border: 0;
    background: transparent;
  }
}
.frc-profile-detail-item--full {
  grid-column: 1 / -1;
}
.frc-profile-detail-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.frc-profile-detail-value {
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}
.therapist-child-contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 1rem 0 0.5rem;
}
@media (min-width: 576px) {
  .therapist-child-contact-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.therapist-child-contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-soft);
  border-radius: 12px;
  text-decoration: none;
  color: var(--navy);
  background: linear-gradient(165deg, var(--white) 0%, var(--bg-light) 100%);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.therapist-child-contact-link:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 10px rgba(22, 172, 172, 0.12);
  color: var(--navy);
}
.therapist-child-contact-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 14px;
}
.therapist-child-contact-icon--wa {
  background: #e8f7ef;
  color: #128c4b;
}
.therapist-child-contact-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.therapist-child-contact-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
}
.therapist-child-parent-notes {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
  color: var(--navy);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.therapist-child-enrollment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.therapist-child-enrollment-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(17, 81, 124, 0.05);
}
.therapist-child-enrollment-card__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.therapist-child-enrollment-card__service {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}
.therapist-child-enrollment-card__branch {
  font-size: 12px;
  color: var(--text-muted);
}

/* Therapist — progress note detail */
.therapist-progress-note-show-page .child-show-profile-card {
  padding: 1.25rem 1.35rem 1.5rem;
}
.therapist-pn-show-header {
  align-items: flex-start;
}
.therapist-pn-show-hero {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.therapist-pn-show-avatar {
  margin: 0 auto;
}
.therapist-pn-show-hero-text {
  min-width: 0;
}
.therapist-pn-show-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.therapist-pn-show-header-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}
.therapist-pn-edit-btn {
  justify-content: center;
  font-size: 13px;
  padding: 8px 16px;
}
.therapist-pn-meta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0.5rem;
}
@media (min-width: 576px) {
  .therapist-pn-meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .therapist-pn-meta-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.therapist-pn-meta-chip {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(165deg, var(--white) 0%, var(--bg-light) 100%);
  min-width: 0;
}
.therapist-pn-meta-chip__label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.therapist-pn-meta-chip__value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  word-break: break-word;
}
.therapist-pn-detail-grid {
  margin-top: 0.25rem;
}
.therapist-pn-text-blocks {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.25rem;
}
.therapist-pn-text-block {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--bg-light);
}
.therapist-pn-text-block__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.therapist-pn-text-block__value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--navy);
  white-space: pre-wrap;
  word-break: break-word;
}
.therapist-pn-footer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-soft);
}
.therapist-pn-footer-actions .btn-outline-teal {
  justify-content: center;
  padding: 10px 18px;
  font-size: 13px;
}
@media (min-width: 768px) {
  .therapist-pn-show-hero {
    flex-direction: row;
    align-items: center;
    text-align: left;
    flex: 1 1 auto;
  }
  .therapist-pn-show-avatar {
    margin: 0;
    width: 64px;
    height: 64px;
    font-size: 26px;
    flex-shrink: 0;
  }
  .therapist-pn-show-hero-text .child-show-name {
    text-align: left;
  }
  .therapist-pn-show-header-actions {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    flex-shrink: 0;
  }
  .therapist-pn-edit-btn {
    white-space: nowrap;
  }
  .therapist-pn-footer-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .therapist-pn-footer-actions .btn-outline-teal {
    width: auto;
  }
}
@media (max-width: 767.98px) {
  .therapist-progress-note-show-page .child-show-profile-card {
    padding: 16px;
  }
  .therapist-pn-show-header {
    flex-direction: column;
    align-items: stretch;
  }
  .therapist-pn-show-header-actions .badge-status {
    align-self: center;
  }
}

/* Therapist show (staff profile) */
.therapist-show-hero {
  text-align: center;
  padding: 8px 0 4px;
}
.therapist-show-avatar {
  width: 72px;
  height: 72px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 30px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}
.therapist-show-name {
  font-family: 'Poppins', sans-serif;
  color: var(--navy);
  margin-bottom: 0;
  font-size: 1.1rem;
}
.therapist-show-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}
.therapist-show-tags--left {
  justify-content: flex-start;
}
.therapist-show-tag {
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
}
.therapist-show-tag--muted {
  background: transparent;
  color: var(--text-muted);
}
.therapist-show-tags .badge-status {
  flex-shrink: 0;
}
.therapist-show-divider {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 16px 0;
  opacity: 1;
}
.therapist-show-section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.therapist-show-break {
  margin: 10px 0 0;
  font-size: 13px;
}
.therapist-show-break-all {
  word-break: normal;
  overflow-wrap: anywhere;
}
.therapist-show-page .enrollment-detail-kv td:first-child {
  width: 36%;
  max-width: 9.5rem;
  vertical-align: top;
}
.therapist-show-page .enrollment-detail-kv td:last-child {
  word-break: normal;
  overflow-wrap: anywhere;
}
.therapist-show-actions.frc-form-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.therapist-show-slots-card .card-header-frc {
  margin-bottom: 14px;
}
.therapist-show-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.therapist-show-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  background: var(--teal-light);
  min-height: 44px;
}
.therapist-show-slot--break {
  border-color: #e0e0e0;
  color: #aaa;
  background: #f8f8f8;
}
.therapist-show-slot-note {
  font-size: 11px;
  margin-top: 2px;
}
.therapist-show-slots-empty {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}
@media (min-width: 480px) {
  .therapist-show-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .therapist-show-page .therapist-show-slots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .therapist-show-page .therapist-show-slot {
    font-size: 13px;
    padding: 10px 8px;
    min-height: 48px;
  }
  .therapist-show-page .therapist-show-actions.frc-form-actions {
    flex-wrap: wrap;
    gap: 10px;
  }
  .therapist-show-page .therapist-show-actions .btn-teal,
  .therapist-show-page .therapist-show-actions .btn-outline-teal {
    flex: 1 1 calc(50% - 5px);
    justify-content: center;
  }
}
@media (min-width: 992px) {
  .therapist-show-slots {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  }
}

/* Therapist self-service profile */
.therapist-profile-page .therapist-show-profile-card {
  padding: 1.25rem 1.35rem 1.5rem;
}
.therapist-profile-hero {
  padding-top: 4px;
}
.therapist-profile-hero .badge-status {
  margin-top: 4px;
}
.therapist-profile-section {
  margin-bottom: 18px;
}
.therapist-profile-section:last-of-type {
  margin-bottom: 0;
}
.therapist-profile-page .therapist-show-slots-card {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.therapist-show-tag--break {
  background: #f4f6f8;
  color: var(--navy);
  border: 1px solid var(--border-soft);
}
.therapist-profile-contact-link {
  color: var(--teal);
  text-decoration: none;
  word-break: break-word;
}
.therapist-profile-contact-link:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}
.therapist-profile-password-card .card-header-frc {
  margin-bottom: 0;
}
@media (max-width: 767.98px) {
  .therapist-profile-page .therapist-show-hero {
    padding: 4px 0 8px;
  }
  .therapist-profile-page .therapist-show-avatar {
    width: 64px;
    height: 64px;
    font-size: 26px;
    margin-bottom: 10px;
  }
  .therapist-profile-page .therapist-show-name {
    font-size: 1.05rem;
  }
  .therapist-profile-page .therapist-show-tags {
    justify-content: flex-start;
  }
  .therapist-profile-page .child-show-tag-list {
    gap: 8px;
  }
  .therapist-profile-page .child-show-tag,
  .therapist-profile-page .therapist-show-tag {
    font-size: 12px;
    padding: 6px 12px;
  }
  .therapist-profile-page .therapist-show-slot {
    font-size: 11px;
    padding: 8px 4px;
    min-height: 42px;
  }
  .therapist-profile-detail-grid .frc-profile-detail-item {
    padding: 0.75rem 0.9rem;
  }
  .therapist-profile-password-card {
    margin-top: 0;
  }
}

@media (max-width: 991.98px) {
  .child-show-page:not(.therapist-child-show-page) .child-show-profile-header {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .child-show-page:not(.therapist-child-show-page) .child-show-profile-hero {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 0;
  }
  .child-show-page:not(.therapist-child-show-page) .child-show-avatar {
    margin: 0;
    width: 72px;
    height: 72px;
    font-size: 28px;
    flex-shrink: 0;
  }
  .child-show-page:not(.therapist-child-show-page) .child-show-name {
    margin-bottom: 6px;
    text-align: left;
  }
  .child-show-page:not(.therapist-child-show-page) .child-show-edit-btn {
    flex-shrink: 0;
    align-self: center;
    width: auto;
  }
  .child-show-page .child-show-table {
    -webkit-overflow-scrolling: touch;
  }
  .child-show-page .child-show-table .table-frc thead th,
  .child-show-page .child-show-table .table-frc tbody td {
    padding: 10px 12px;
    font-size: 13px;
  }
}
@media (min-width: 992px) {
  .child-show-page:not(.therapist-child-show-page) .child-show-profile-hero {
    flex: 1 1 auto;
    text-align: left;
    padding: 0;
  }
}
@media (min-width: 768px) {
  .therapist-child-show-page .child-show-profile-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
  }
  .therapist-child-show-page .child-show-avatar {
    margin: 0;
    width: 72px;
    height: 72px;
    font-size: 28px;
    flex-shrink: 0;
  }
  .therapist-child-show-page .child-show-name {
    margin-bottom: 6px !important;
    text-align: left;
  }
  .child-show-edit-btn {
    flex-shrink: 0;
    align-self: flex-start;
  }
}

@media (max-width: 767.98px) {
  .enrollment-show-page .card-frc,
  .child-show-page .card-frc,
  .therapist-show-page .card-frc,
  .therapist-profile-page .card-frc,
  .therapist-child-show-page .child-show-profile-card {
    padding: 16px;
  }
  .child-show-profile-header {
    flex-direction: column;
    align-items: stretch;
  }
  .child-show-page:not(.therapist-child-show-page) .child-show-profile-hero {
    display: block;
    text-align: center;
    padding: 8px 0 0;
  }
  .child-show-page:not(.therapist-child-show-page) .child-show-avatar {
    margin: 0 auto 12px;
    width: 80px;
    height: 80px;
    font-size: 34px;
  }
  .child-show-page:not(.therapist-child-show-page) .child-show-name {
    text-align: center;
  }
  .child-show-profile-hero {
    padding: 8px 0 0;
  }
  .child-show-edit-btn {
    width: 100%;
    justify-content: center;
  }
  .enrollment-detail-kv tbody,
  .enrollment-detail-kv tr,
  .enrollment-detail-kv td {
    display: block;
    width: 100%;
  }
  .enrollment-detail-kv tr {
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f8;
  }
  .enrollment-detail-kv tr:last-child {
    border-bottom: none;
  }
  .enrollment-detail-kv td {
    padding: 0 !important;
  }
  .enrollment-detail-kv td:first-child {
    font-size: 12px;
    margin-bottom: 4px;
    white-space: normal;
  }
  .enrollment-detail-kv td:last-child {
    font-size: 14px;
    color: var(--navy);
    word-break: break-word;
  }
  .enrollment-detail-kv--summary td:last-child {
    font-size: 15px;
  }
  .enrollment-show-schedule-btn {
    font-size: 13px;
    padding: 8px 14px;
  }
  .child-show-page .card-header-frc .btn-view-all {
    justify-content: center;
  }
  .enrollment-show-payments-table .table-frc thead th,
  .enrollment-show-payments-table .table-frc tbody td {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* Child payment history — filters */
.child-payments-filters .child-payments-filter-actions .filter-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.child-payments-filters .child-payments-filter-actions .filter-actions .btn-teal,
.child-payments-filters .child-payments-filter-actions .filter-actions .btn-outline-teal {
  flex: 1 1 calc(50% - 5px);
  justify-content: center;
  min-width: 0;
  text-align: center;
}
@media (min-width: 768px) {
  .child-payments-filters .child-payments-filter-actions .filter-actions {
    flex-wrap: nowrap;
  }
  .child-payments-filters .child-payments-filter-actions .filter-actions .btn-teal,
  .child-payments-filters .child-payments-filter-actions .filter-actions .btn-outline-teal {
    flex: 0 0 auto;
    width: auto;
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
  }
}

/* Child payment history table */
.child-payments-table-wrap {
  padding: 0;
}
.child-payments-table .child-payments-programme {
  font-size: 13px;
  min-width: 120px;
  max-width: 180px;
}
.child-payments-table .child-payments-programme-name {
  display: block;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.35;
}
.child-payments-table .child-payments-programme-id {
  display: block;
  font-size: 11px;
  margin-top: 2px;
}
.child-payments-table thead th {
  white-space: nowrap;
}
.child-payments-table .child-payments-receipt {
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  color: var(--navy);
  white-space: nowrap;
}
.child-payments-table .child-payments-amount {
  font-weight: 600;
  color: var(--teal);
}
.child-payments-table .child-payments-method,
.child-payments-table .child-payments-date {
  font-size: 13px;
  white-space: nowrap;
}
.child-payments-table .child-payments-date {
  color: var(--text-muted);
}
.child-payments-table .child-payments-status {
  white-space: nowrap;
  min-width: 100px;
}
.child-payments-table .child-payments-reject-reason {
  color: var(--danger);
  max-width: 220px;
  white-space: normal;
}
.child-payments-action-btns {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}
.child-payments-action-btn,
.child-payments-slip-btn {
  font-size: 11px;
  padding: 4px 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.child-payments-slip-btn {
  padding: 4px 10px;
}
@media (max-width: 767.98px) {
  .child-payments-page .card-header-frc .btn-view-all {
    width: 100%;
    justify-content: center;
  }
  .child-payments-filters {
    padding: 12px !important;
  }
  .child-payments-table thead th,
  .child-payments-table tbody td {
    padding: 10px 12px;
    font-size: 12px;
  }
  .child-payments-table .child-payments-programme {
    min-width: 100px;
    max-width: 140px;
  }
}

.child-dashboard-recent-row .child-dashboard-recent-table .table-frc {
  min-width: 0;
  width: 100%;
  table-layout: auto;
}
.child-dashboard-recent-row .child-dashboard-recent-table {
  overflow-x: auto;
}
@media (max-width: 767.98px) {
  .child-dashboard-recent-row .child-dashboard-recent-table .table-frc thead th,
  .child-dashboard-recent-row .child-dashboard-recent-table .table-frc tbody td {
    padding: 10px 10px;
    font-size: 12px;
  }
  .child-dashboard-recent-row .child-dashboard-recent-table .table-frc thead th:last-child,
  .child-dashboard-recent-row .child-dashboard-recent-table .table-frc tbody td:last-child {
    padding-right: 12px;
  }
}
@media (max-width: 991.98px) {
  .child-dashboard-next-session-body {
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: left;
  }
  .child-dashboard-next-session-text {
    width: 100%;
  }
  .child-dashboard-next-session-detail {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .child-dashboard-next-session-actions {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 767.98px) {
  .child-dashboard-next-session-btn {
    width: 100%;
    justify-content: center;
  }
  .child-dashboard-recent-row .card-header-frc .btn-view-all {
    width: 100%;
    justify-content: center;
  }
}

/* Super admin dashboard — finance charts */
.dashboard-finance-charts .card-header-frc {
  margin-bottom: 0;
  padding-bottom: 14px;
}
.dashboard-finance-charts-header {
  align-items: center;
  gap: 12px;
}
.dashboard-chart-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.dashboard-chart-filter-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
}
.dashboard-chart-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.dashboard-chart-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 108px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 38px 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border-soft);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  line-height: 1.2;
}
.dashboard-chart-select:hover {
  border-color: var(--teal);
}
.dashboard-chart-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 172, 172, 0.15);
}
.dashboard-chart-select-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 11px;
  color: var(--teal);
}
/* Polished year picker (chart cards + finance header) */
.dashboard-year-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 96px;
  background: linear-gradient(180deg, #f4fbfb 0%, #ecf8f8 100%);
  border: 1px solid rgba(22, 172, 172, 0.28);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(17, 81, 124, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.dashboard-year-picker:hover {
  border-color: rgba(22, 172, 172, 0.55);
  box-shadow: 0 2px 8px rgba(22, 172, 172, 0.12);
}
.dashboard-year-picker:has(.dashboard-year-picker-select:focus) {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 172, 172, 0.14);
}
.dashboard-year-picker-icon {
  flex-shrink: 0;
  margin-left: 10px;
  font-size: 13px;
  color: var(--teal);
  pointer-events: none;
}
.dashboard-year-picker-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  flex: 1;
  min-width: 0;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  padding: 7px 34px 7px 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 1.25;
}
.dashboard-year-picker-select:focus {
  outline: none;
}
.dashboard-year-picker-chevron {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(22, 172, 172, 0.12);
  pointer-events: none;
}
.dashboard-year-picker-chevron i {
  font-size: 9px;
  color: var(--teal);
}
.dashboard-year-picker--header {
  min-width: 112px;
}
.dashboard-year-picker--header .dashboard-year-picker-select {
  font-size: 14px;
  padding: 9px 38px 9px 8px;
}
.dashboard-year-picker--header .dashboard-year-picker-icon {
  font-size: 14px;
  margin-left: 12px;
}
.dashboard-year-picker--header .dashboard-year-picker-chevron {
  width: 24px;
  height: 24px;
  right: 7px;
}
.dashboard-chart-filter--card {
  margin-left: auto;
  gap: 0;
}
.dashboard-chart-card-head-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.dashboard-chart-card-head-meta .dashboard-chart-card-sub {
  white-space: nowrap;
}
.dashboard-finance-charts-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 12px;
}
.dashboard-fee-donut-panel {
  flex-shrink: 0;
}
.dashboard-fee-panel-title,
.dashboard-fee-bar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
}
.dashboard-fee-donut-wrap {
  position: relative;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  height: 180px;
}
.dashboard-fee-donut-wrap canvas {
  position: relative;
  z-index: 1;
}
.dashboard-fee-donut-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  width: 72%;
  max-width: 140px;
  z-index: 2;
}
.dashboard-fee-donut-legend {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}
.dashboard-fee-donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.dashboard-fee-donut-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dashboard-fee-donut-legend-dot--paid {
  background: var(--success);
}
.dashboard-fee-donut-legend-dot--pending {
  background: var(--danger);
}
.dashboard-fee-donut-legend-label {
  flex: 1;
  min-width: 0;
}
.dashboard-fee-donut-legend-amount {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  white-space: nowrap;
}
.dashboard-fee-donut-legend-amount--pending {
  color: var(--danger);
}
.dashboard-fee-donut-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.dashboard-fee-donut-value {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  word-break: break-word;
}
.dashboard-fee-bar-wrap {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}
.dashboard-fee-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.dashboard-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}
.dashboard-legend-dot--paid {
  background: var(--success);
}
.dashboard-legend-dot--expected {
  background: var(--navy);
}
#monthlyFinanceChart {
  width: 100% !important;
  height: 230px !important;
}
@media (min-width: 768px) {
  .dashboard-finance-charts-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }
  .dashboard-fee-donut-panel {
    flex: 0 0 220px;
    max-width: 220px;
    padding-right: 20px;
    border-right: 1px solid var(--border-soft);
  }
  .dashboard-fee-donut-wrap {
    max-width: 200px;
    height: 190px;
  }
  .dashboard-fee-bar-wrap {
    flex: 1;
    min-width: 0;
    padding-left: 20px;
  }
  #monthlyFinanceChart {
    height: 250px !important;
  }
}
@media (max-width: 767.98px) {
  .dashboard-finance-charts-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center !important;
  }
  .dashboard-chart-filter {
    width: auto;
    margin-left: auto;
  }
  .dashboard-chart-select-wrap {
    width: auto;
  }
  .dashboard-chart-select {
    min-width: 100px;
  }
  .dashboard-fee-donut-panel {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
  }
}

/* Dashboard analytics chart cards */
.dashboard-analytics-section {
  margin-top: 8px;
}
.dashboard-analytics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.dashboard-analytics-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.dashboard-analytics-year-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 6px 12px;
  border-radius: 50px;
}
.dashboard-chart-card {
  padding: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 12px rgba(17, 81, 124, 0.05);
}
.dashboard-chart-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.dashboard-chart-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.dashboard-chart-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.dashboard-chart-card-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.dashboard-chart-canvas-wrap {
  position: relative;
  width: 100%;
}
.dashboard-chart-canvas-wrap--tall {
  height: 240px;
}
.dashboard-chart-card--donut-compact {
  display: flex;
  flex-direction: column;
}
.dashboard-chart-card--donut-compact .dashboard-chart-card-head {
  margin-bottom: 8px;
  flex-shrink: 0;
}
.dashboard-donut-card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  flex: 1;
  justify-content: center;
  min-height: 0;
}
.dashboard-chart-canvas-wrap--donut-sm {
  height: 118px;
  flex-shrink: 0;
}
.dashboard-chart-card--donut-compact .dashboard-chart-empty {
  min-height: 80px;
}
.dashboard-stat-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid var(--border-soft);
}
.dashboard-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}
.dashboard-stat-row-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.dashboard-stat-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.dashboard-stat-row strong {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.dashboard-chart-canvas-wrap--donut-md {
  height: 200px;
}
.dashboard-chart-canvas-wrap--bar-h,
.dashboard-chart-canvas-wrap--bar-v {
  height: 240px;
  padding: 4px 2px 0;
}
.dashboard-chart-canvas-wrap--line {
  height: 200px;
}
.dashboard-chart-canvas-wrap--alerts {
  height: 180px;
}
.dashboard-mini-legend {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.dashboard-mini-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.dashboard-mini-legend li strong {
  margin-left: auto;
  color: var(--navy);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
}
.dashboard-mini-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dashboard-chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  text-align: center;
  padding: 16px;
}
.dashboard-donut-interactive {
  position: relative;
}
.dashboard-donut-interactive .dashboard-donut-center-info {
  display: none;
}
.dashboard-donut-center-label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
  margin-bottom: 2px;
  word-break: break-word;
}
.dashboard-donut-center-value {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.dashboard-chart-canvas-wrap--donut-md .dashboard-donut-center-info {
  top: 44%;
}
.dashboard-chart-canvas-wrap--donut-sm .dashboard-donut-center-value {
  font-size: 18px;
}

/* Admin / super admin dashboards — responsive */
.super-admin-dashboard-page,
.admin-dashboard-page {
  max-width: 100%;
  overflow-x: clip;
}
.super-admin-dashboard-page canvas,
.admin-dashboard-page canvas {
  max-width: 100%;
}
.super-admin-dashboard-page .super-admin-quick-actions,
.admin-dashboard-page .admin-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.super-admin-dashboard-page .super-admin-quick-actions .btn-teal,
.super-admin-dashboard-page .super-admin-quick-actions .btn-navy,
.admin-dashboard-page .admin-quick-actions .btn-teal,
.admin-dashboard-page .admin-quick-actions .btn-navy {
  justify-content: flex-start;
  width: 100%;
  flex-wrap: wrap;
  white-space: normal;
  text-align: left;
  gap: 8px;
  line-height: 1.35;
  padding: 10px 16px;
}
.super-admin-dashboard-page .super-admin-quick-actions .badge-status,
.admin-dashboard-page .admin-quick-actions .badge-status {
  margin-left: auto;
  flex-shrink: 0;
}
.super-admin-dashboard-page .super-admin-fee-summary .stat-value,
.admin-dashboard-page .admin-fee-summary .stat-value {
  word-break: break-word;
  line-height: 1.25;
}
.super-admin-dashboard-page .dashboard-recent-row li a,
.super-admin-dashboard-page .dashboard-recent-row li > div:first-child {
  word-break: break-word;
  overflow-wrap: anywhere;
}
@media (max-width: 767.98px) {
  .super-admin-dashboard-page .super-admin-dashboard-stats,
  .admin-dashboard-page .admin-dashboard-stats {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }
  .super-admin-dashboard-page .stat-card,
  .admin-dashboard-page .stat-card {
    padding: 14px 16px;
    gap: 12px;
    align-items: flex-start;
  }
  .super-admin-dashboard-page .stat-card .stat-icon,
  .admin-dashboard-page .stat-card .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 12px;
  }
  .super-admin-dashboard-page .stat-card .stat-value,
  .admin-dashboard-page .stat-card .stat-value {
    font-size: 20px;
  }
  .super-admin-dashboard-page .stat-card .stat-label,
  .admin-dashboard-page .stat-card .stat-label {
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
    hyphens: auto;
  }
  .super-admin-dashboard-page .super-admin-fee-summary .stat-value,
  .admin-dashboard-page .admin-fee-summary .stat-value {
    font-size: 15px !important;
  }
  .super-admin-dashboard-page .dashboard-chart-card,
  .admin-dashboard-page .dashboard-chart-card {
    padding: 14px;
  }
  .super-admin-dashboard-page .dashboard-chart-card-head,
  .admin-dashboard-page .dashboard-chart-card-head {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .super-admin-dashboard-page .dashboard-chart-card-title,
  .admin-dashboard-page .dashboard-chart-card-title {
    flex: 1 1 auto;
    min-width: 0;
  }
  .super-admin-dashboard-page .dashboard-chart-canvas-wrap--tall,
  .admin-dashboard-page .dashboard-chart-canvas-wrap--tall {
    height: 220px;
  }
  .super-admin-dashboard-page .dashboard-chart-canvas-wrap--bar-v,
  .super-admin-dashboard-page .dashboard-chart-canvas-wrap--bar-h,
  .admin-dashboard-page .dashboard-chart-canvas-wrap--bar-v,
  .admin-dashboard-page .dashboard-chart-canvas-wrap--bar-h {
    height: 200px;
  }
  .super-admin-dashboard-page .dashboard-stat-row strong,
  .admin-dashboard-page .dashboard-stat-row strong {
    white-space: normal;
    text-align: right;
    word-break: break-word;
  }
}
@media (max-width: 991.98px) {
  .super-admin-dashboard-page .dashboard-finance-charts,
  .super-admin-dashboard-page .dashboard-finance-charts-body,
  .admin-dashboard-page .dashboard-finance-charts,
  .admin-dashboard-page .dashboard-finance-charts-body {
    width: 100%;
    max-width: 100%;
  }
  .super-admin-dashboard-page .dashboard-finance-charts-body,
  .admin-dashboard-page .dashboard-finance-charts-body {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px;
  }
  .super-admin-dashboard-page .dashboard-fee-donut-panel,
  .admin-dashboard-page .dashboard-fee-donut-panel {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-right: 0 !important;
    padding-bottom: 16px;
    border-right: none !important;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .super-admin-dashboard-page .dashboard-fee-donut-wrap,
  .admin-dashboard-page .dashboard-fee-donut-wrap {
    max-width: min(300px, 100%);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .super-admin-dashboard-page .dashboard-fee-donut-legend,
  .admin-dashboard-page .dashboard-fee-donut-legend {
    max-width: min(360px, 100%);
    width: 100%;
  }
  .super-admin-dashboard-page .dashboard-fee-bar-wrap,
  .admin-dashboard-page .dashboard-fee-bar-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    flex: none !important;
  }
  .super-admin-dashboard-page #monthlyFinanceChart,
  .admin-dashboard-page #monthlyFinanceChart {
    width: 100% !important;
    max-width: 100%;
    height: 240px !important;
  }
  .admin-dashboard-page .admin-dashboard-stats .stat-card .stat-label {
    font-size: 11px;
    line-height: 1.3;
  }
}
@media (max-width: 575.98px) {
  .super-admin-dashboard-page .super-admin-quick-actions .btn-teal,
  .super-admin-dashboard-page .super-admin-quick-actions .btn-navy,
  .admin-dashboard-page .admin-quick-actions .btn-teal,
  .admin-dashboard-page .admin-quick-actions .btn-navy {
    font-size: 13px;
  }
  .super-admin-dashboard-page .dashboard-recent-row .card-header-frc {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .super-admin-dashboard-page .dashboard-recent-row .card-header-frc .btn-view-all {
    width: 100%;
    justify-content: center;
  }
  .super-admin-dashboard-page .dashboard-recent-row .card-title-frc {
    font-size: 14px;
  }
  .super-admin-dashboard-page .dashboard-finance-charts-header,
  .admin-dashboard-page .dashboard-finance-charts-header {
    flex-direction: column;
    align-items: stretch !important;
  }
  .super-admin-dashboard-page .dashboard-finance-charts-header .dashboard-chart-filter,
  .admin-dashboard-page .dashboard-finance-charts-header .dashboard-chart-filter {
    margin-left: 0;
    width: 100%;
  }
  .super-admin-dashboard-page .dashboard-year-picker--header,
  .admin-dashboard-page .dashboard-year-picker--header {
    width: 100%;
  }
  .super-admin-dashboard-page .dashboard-chart-card-head,
  .admin-dashboard-page .dashboard-chart-card-head {
    flex-direction: column;
    align-items: stretch;
  }
  .super-admin-dashboard-page .dashboard-chart-filter--card,
  .super-admin-dashboard-page .dashboard-chart-card-head-meta,
  .admin-dashboard-page .dashboard-chart-filter--card,
  .admin-dashboard-page .dashboard-chart-card-head-meta {
    margin-left: 0;
    width: 100%;
  }
  .super-admin-dashboard-page .dashboard-year-picker,
  .admin-dashboard-page .dashboard-year-picker {
    width: 100%;
  }
  .super-admin-dashboard-page .dashboard-fee-donut-value,
  .admin-dashboard-page .dashboard-fee-donut-value {
    font-size: 13px;
  }
  .super-admin-dashboard-page #monthlyFinanceChart,
  .admin-dashboard-page #monthlyFinanceChart {
    height: 200px !important;
  }
}

/* Finance dashboard — responsive */
.finance-dashboard-page {
  max-width: 100%;
  overflow-x: clip;
}
.finance-dashboard-page canvas {
  max-width: 100%;
}
.finance-dashboard-page .finance-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.finance-dashboard-page .finance-quick-actions .btn-teal,
.finance-dashboard-page .finance-quick-actions .btn-navy,
.finance-dashboard-page .finance-quick-actions .btn-outline-teal {
  justify-content: flex-start;
  width: 100%;
  flex-wrap: wrap;
  white-space: normal;
  text-align: left;
  gap: 8px;
  line-height: 1.35;
  padding: 10px 16px;
}
.finance-dashboard-page .finance-quick-actions .badge-status {
  margin-left: auto;
  flex-shrink: 0;
}
.finance-dashboard-page .finance-dashboard-stats .stat-value,
.finance-dashboard-page .finance-dashboard-fee-stats .stat-value {
  word-break: break-word;
  line-height: 1.25;
}
.finance-dashboard-page .finance-recent-payments-table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.finance-dashboard-page .finance-recent-payments-table .table-frc thead th,
.finance-dashboard-page .finance-recent-payments-table .table-frc tbody td {
  white-space: nowrap;
}
@media (max-width: 767.98px) {
  .finance-dashboard-page .finance-dashboard-stats,
  .finance-dashboard-page .finance-dashboard-fee-stats {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }
  .finance-dashboard-page .stat-card {
    padding: 14px 16px;
    gap: 12px;
    align-items: flex-start;
  }
  .finance-dashboard-page .stat-card .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 12px;
  }
  .finance-dashboard-page .stat-card .stat-label {
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
  }
  .finance-dashboard-page .finance-dashboard-fee-stats .stat-value {
    font-size: 15px !important;
  }
}
@media (max-width: 991.98px) {
  .finance-dashboard-page .dashboard-finance-charts,
  .finance-dashboard-page .dashboard-finance-charts-body {
    width: 100%;
    max-width: 100%;
  }
  .finance-dashboard-page .dashboard-finance-charts-body {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 20px;
  }
  .finance-dashboard-page .dashboard-fee-donut-panel {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-right: 0 !important;
    padding-bottom: 16px;
    border-right: none !important;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .finance-dashboard-page .dashboard-fee-donut-wrap {
    max-width: min(300px, 100%);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .finance-dashboard-page .dashboard-fee-donut-legend {
    max-width: min(360px, 100%);
    width: 100%;
  }
  .finance-dashboard-page .dashboard-fee-bar-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    flex: none !important;
  }
  .finance-dashboard-page #monthlyFinanceChart {
    width: 100% !important;
    max-width: 100%;
    height: 240px !important;
  }
  .finance-dashboard-page .finance-dashboard-fee-stats .stat-card .stat-label {
    font-size: 11px;
    line-height: 1.3;
  }
}
@media (max-width: 575.98px) {
  .finance-dashboard-page .finance-quick-actions .btn-teal,
  .finance-dashboard-page .finance-quick-actions .btn-navy,
  .finance-dashboard-page .finance-quick-actions .btn-outline-teal {
    font-size: 13px;
  }
  .finance-dashboard-page .dashboard-finance-charts-header {
    flex-direction: column;
    align-items: stretch !important;
  }
  .finance-dashboard-page .dashboard-finance-charts-header .dashboard-chart-filter {
    margin-left: 0;
    width: 100%;
  }
  .finance-dashboard-page .dashboard-year-picker--header {
    width: 100%;
  }
  .finance-dashboard-page #monthlyFinanceChart {
    height: 200px !important;
  }
}

/* Therapist dashboard */
.therapist-dashboard-page .btn-sm-frc {
  font-size: 11px;
  padding: 4px 10px;
  white-space: nowrap;
}
.therapist-dashboard-panel-body {
  padding: 1rem 1.15rem 1.15rem;
}
.therapist-dashboard-panel-btn {
  font-size: 12px;
  padding: 6px 12px;
  white-space: nowrap;
}
.therapist-dashboard-more-note {
  margin: 0.75rem 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}
.therapist-dashboard-more-link {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: none;
}
.therapist-dashboard-more-link:hover {
  text-decoration: underline;
}
.therapist-dashboard-assessment-item,
.therapist-dashboard-session-item {
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
}
.therapist-dashboard-assessment-item:last-child,
.therapist-dashboard-session-item:last-child {
  margin-bottom: 0;
}
.therapist-dashboard-assessment-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 4px;
}
.therapist-dashboard-assessment-child,
.therapist-dashboard-session-name {
  font-weight: 600;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.35;
  word-break: break-word;
}
.therapist-dashboard-assessment-meta,
.therapist-dashboard-session-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  word-break: break-word;
}
.therapist-dashboard-assessment-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e8eef3;
}
.therapist-dashboard-assessment-actions,
.therapist-dashboard-session-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.therapist-dashboard-session-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.therapist-dashboard-session-main {
  flex: 1 1 auto;
  min-width: 0;
}
.therapist-dashboard-session-actions {
  flex-shrink: 0;
}
.therapist-dashboard-session-actions .badge-status {
  font-size: 11px;
}

@media (max-width: 767.98px) {
  .therapist-dashboard-page .therapist-dashboard-stats {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }
  .therapist-dashboard-page .stat-card {
    padding: 14px 16px;
    gap: 12px;
    align-items: flex-start;
  }
  .therapist-dashboard-page .stat-card .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 12px;
  }
  .therapist-dashboard-page .stat-card .stat-value {
    font-size: 22px;
  }
  .therapist-dashboard-page .stat-card .stat-label {
    font-size: 12px;
    line-height: 1.35;
    word-break: break-word;
    hyphens: auto;
  }
  .therapist-dashboard-page .stat-card .stat-hint {
    font-size: 10px;
    line-height: 1.3;
    margin-top: 3px;
    display: block;
  }
  .therapist-dashboard-panel .card-frc,
  .therapist-dashboard-panel {
    overflow: hidden;
  }
  .therapist-dashboard-panel-header {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 0 !important;
    padding-bottom: 12px !important;
  }
  .therapist-dashboard-panel-header .card-title-frc {
    font-size: 14px;
  }
  .therapist-dashboard-panel-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
  }
  .therapist-dashboard-panel-body {
    padding: 12px;
  }
  .therapist-dashboard-session-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .therapist-dashboard-session-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .therapist-dashboard-table-wrap {
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .therapist-dashboard-page .stat-card .stat-label {
    font-size: 12px;
  }
}

/* Daily progress note — complete session modal */
#frcTherapistCompleteModal .frc-therapist-complete-modal {
  max-height: calc(100dvh - 1.5rem);
}

#frcTherapistCompleteModal .frc-therapist-complete-modal__content {
  border-radius: 14px;
  border: 1px solid var(--border-soft, #e2e8f0);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 1.5rem);
}

#frcTherapistCompleteModal .frc-therapist-complete-modal__header {
  background: var(--bg-light, #f8fafc);
  border-bottom: 1px solid var(--border-soft, #e2e8f0);
  flex-shrink: 0;
}

#frcTherapistCompleteModal .frc-therapist-complete-modal__header .modal-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--navy, #1a2b4a);
  font-size: 17px;
}

#frcTherapistCompleteModal .frc-therapist-complete-modal__footer {
  border-top: 1px solid var(--border-soft, #e2e8f0);
  gap: 8px;
  flex-shrink: 0;
}

#frcTherapistCompleteModal .frc-therapist-complete-modal__footer .btn-outline-teal,
#frcTherapistCompleteModal .frc-therapist-complete-modal__footer .btn-teal {
  border-radius: 10px;
}

#frcTherapistCompleteModal .frc-therapist-complete-modal__form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
}

#frcTherapistCompleteModal .frc-therapist-complete-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
  #frcTherapistCompleteModal.modal {
    padding: 0;
  }

  #frcTherapistCompleteModal .frc-therapist-complete-modal.modal-dialog-centered {
    align-items: stretch;
    min-height: calc(100% - 0px);
  }

  #frcTherapistCompleteModal .frc-therapist-complete-modal {
    margin: 0;
    width: 100%;
    max-width: none;
    min-height: 100%;
    height: 100%;
    max-height: 100dvh;
  }

  #frcTherapistCompleteModal .frc-therapist-complete-modal__content {
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  #frcTherapistCompleteModal .frc-therapist-complete-modal__form {
    max-height: 100%;
  }

  #frcTherapistCompleteModal .frc-therapist-complete-modal__footer {
    flex-direction: column;
    align-items: stretch;
  }

  #frcTherapistCompleteModal .frc-therapist-complete-modal__footer .btn-outline-teal,
  #frcTherapistCompleteModal .frc-therapist-complete-modal__footer .btn-teal {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  #frcTherapistCompleteModal .frc-therapist-complete-modal {
    max-width: min(640px, calc(100% - 1.5rem));
    margin: 0.75rem auto;
    max-height: calc(100dvh - 1.5rem);
  }

  #frcTherapistCompleteModal .frc-therapist-complete-modal__content {
    max-height: calc(100dvh - 1.5rem);
  }
}

.daily-progress-note-form .daily-progress-field-label {
  color: var(--navy, #1a2b4a);
}

/* Daily progress note — behaviour checkbox grid */
.daily-progress-behaviours-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .daily-progress-behaviours-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (min-width: 992px) {
  .daily-progress-behaviours-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
  }
}

@media (min-width: 1200px) {
  .daily-progress-behaviours-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.daily-progress-behaviour-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--border-soft, #e2e8f0);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.daily-progress-behaviour-option:hover {
  border-color: rgba(0, 128, 128, 0.35);
  background: var(--teal-light, #e6f5f5);
}

.daily-progress-behaviour-option:has(.daily-progress-behaviour-input:checked) {
  border-color: var(--teal, #008080);
  background: var(--teal-light, #e6f5f5);
}

.daily-progress-behaviour-input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
  accent-color: var(--teal, #008080);
  cursor: pointer;
}

.daily-progress-behaviour-label {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--navy, #1a2b4a);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.daily-progress-support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 480px) {
  .daily-progress-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .daily-progress-support-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.daily-progress-support-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--border-soft, #e2e8f0);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.daily-progress-support-option:hover {
  border-color: rgba(0, 128, 128, 0.35);
  background: var(--teal-light, #e6f5f5);
}

.daily-progress-support-option:has(.daily-progress-support-input:checked) {
  border-color: var(--teal, #008080);
  background: var(--teal-light, #e6f5f5);
}

.daily-progress-support-input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--teal, #008080);
  cursor: pointer;
}

.daily-progress-support-label {
  font-size: 12px;
  line-height: 1.35;
  color: var(--navy, #1a2b4a);
  font-weight: 500;
}

#frcCompleteBehavioursField.is-invalid .daily-progress-behaviours-grid {
  border: 1px solid var(--danger, #dc3545);
  border-radius: 10px;
  padding: 10px;
}
