/* ===========================================================
   Post Op — Hospital admin section (clinical teams / clinicians)
   Tokens pulled from the live application stylesheet + DOM capture.
   Loaded after styles.css + patients.css (shared datatable design).
   =========================================================== */

/* hospital-admin pages use the purple page background (not blue) */
.purple-background { background: #ececff; }

/* ---------- stacked member avatars ---------- */
.avatar-stack { display: flex; align-items: center; }
.avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700;
  border: 2px solid #fff; margin-left: -10px; flex-shrink: 0;
}
.avatar-circle:first-child { margin-left: 0; }
.avatar-circle--overflow { background-color: #e8e8e8; color: #555; }

/* ---------- variable-driven datatable grid (newer component) ----------
   The row grid comes from --md-widths / --lg-widths set inline on
   .datatable-grid, overriding the fixed patient-list template. */
@media (min-width: 768px) {
  .datatable-grid .datatable-row { display: grid; grid-template-columns: var(--md-widths); border-bottom: 1px solid #eee; }
  .datatable-grid .datatable-row:last-child { border-bottom: none; }
}
@media (min-width: 992px) {
  .datatable-grid .datatable-row { grid-template-columns: var(--lg-widths); }
}

/* ---------- heading toolbar (gear / sort icons) ---------- */
.toolbar-icon { color: #5E37EF; line-height: 0; display: inline-block; }
.toolbar-icon:hover { color: #4a2bc4; }

/* ---------- table settings / sorting modals ---------- */
.custom-nested-list { list-style: none; font-size: 14px; color: #828a98; }
.close-modal-custom { position: absolute; top: 1.1rem; right: 1.5rem; }
.m-0-auto { margin: 0 auto !important; }

.btn-orange-outline {
  --bs-btn-color: #FE5935 !important; --bs-btn-bg: #fff !important;
  --bs-btn-border-color: #FE5935 !important;
  --bs-btn-hover-color: #fff !important; --bs-btn-hover-bg: #FE5935 !important;
  --bs-btn-hover-border-color: #FE5935 !important;
  --bs-btn-active-color: #fff !important; --bs-btn-active-bg: #FE5935 !important;
  --bs-btn-active-border-color: #FE5935 !important;
  --bs-border-width: 2px !important;
}

/* ---------- create modal form bits ---------- */
.admin-modal .form-label { color: #1f2e99; font-size: 13px; font-weight: 600; }
.admin-modal .form-control, .admin-modal .form-select { border-radius: 10px; font-size: 14px; }
.member-pick { max-height: 220px; overflow: auto; border: 1px solid #e3e6ec; border-radius: 10px; padding: 8px 12px; }
.member-pick .form-check { padding-top: 4px; padding-bottom: 4px; }

/* mobile admin cards reuse .patient-card tokens from patients.css */

/* fragment svgs use currentColor; pin them to the app's dark-blue like patient-list */
.data-table-heading .search-icon { color: #1f2e99; }
.datatable-header a { color: #1f2e99; }
