/* DoctorsHub24 — Admin theme (MediCore layout + brand tokens). */
:root {
  --adm-font-ui: "Plus Jakarta Sans", "Segoe UI", Tahoma, Geneva, sans-serif;
  --adm-font-display: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  --adm-sidebar-w: 278px;
  --adm-sidebar-bg: #0b3a5c;
  --adm-sidebar-border: rgba(255, 255, 255, 0.08);
  --adm-sidebar-text: #9eb6c9;
  --adm-sidebar-hover: rgba(13, 148, 136, 0.18);
  --adm-accent: #0d9488;
  --adm-accent-dim: rgba(13, 148, 136, 0.22);
  --adm-accent-hover: #0f766e;
  --adm-navy: #0b3a5c;
  --adm-navy-deep: #062538;
  --adm-cta: #e85d4c;
  --adm-header-bg: #ffffff;
  --adm-body-bg: #f5f8fa;
  --adm-card-shadow: 0 1px 3px rgba(11, 58, 92, 0.05), 0 8px 24px rgba(11, 58, 92, 0.05);
  --adm-radius: 12px;
  --adm-login-brand: linear-gradient(160deg, #062538 0%, #0b3a5c 45%, #0d9488 100%);
}

*,
*::before,
*::after { box-sizing: border-box; }

.adm-body {
  margin: 0;
  font-family: var(--adm-font-ui);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1e293b;
  background: var(--adm-body-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ——— Login (split layout, reference-style) ——— */
.adm-login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 991.98px) {
  .adm-login-page { grid-template-columns: 1fr; }
}

.adm-login-brand {
  background: var(--adm-login-brand);
  color: #e2e8f0;
  padding: clamp(2rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.adm-login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 20% 20%, rgba(16, 185, 129, 0.25), transparent 50%),
    radial-gradient(600px 300px at 80% 80%, rgba(59, 130, 246, 0.15), transparent 45%);
  pointer-events: none;
}
.adm-login-brand-inner { position: relative; z-index: 1; }
.adm-login-logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  max-width: min(320px, 100%);
}
.adm-login-logo-img {
  display: block;
  width: min(280px, 100%);
  height: auto;
  max-height: 88px;
  object-fit: contain;
  margin: 0;
  border-radius: 0;
}
.adm-brand-logo-plate {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #ffffff;
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.adm-brand-logo-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: center;
}
.adm-login-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.adm-login-logo span { color: #c4b5fd; }
.adm-login-tagline {
  margin-top: 2.5rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  line-height: 1.35;
  color: #f8fafc;
  max-width: 22rem;
}
.adm-login-tagline small {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1.5;
}
.adm-login-cred-box {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--adm-radius);
  font-size: 0.8125rem;
}
.adm-login-cred-box strong { color: #fff; display: block; margin-bottom: 0.35rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #c4b5fd; }
.adm-login-cred-box code { color: #a5f3fc; font-size: 0.85rem; word-break: break-all; }

.adm-login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #f8fafc;
}
.adm-login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 16px;
  box-shadow: var(--adm-card-shadow);
  border: 1px solid #e2e8f0;
}
.adm-login-kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--adm-accent);
  margin: 0 0 0.35rem;
}
.adm-login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1.75rem;
  letter-spacing: -0.02em;
}
.adm-login-card .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.4rem;
}
.adm-login-card .form-control {
  border-radius: 10px;
  border-color: #e2e8f0;
  padding: 0.65rem 0.9rem;
}
.adm-login-card .form-control:focus {
  border-color: var(--adm-accent);
  box-shadow: 0 0 0 3px var(--adm-accent-dim);
}
.adm-login-forgot {
  font-size: 0.8125rem;
  font-weight: 500;
}
.adm-login-forgot a { color: var(--adm-accent); text-decoration: none; }
.adm-login-forgot a:hover { text-decoration: underline; }

.adm-login-password-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.adm-login-password-wrap .form-control {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}
.adm-login-password-wrap .form-control:focus {
  box-shadow: none;
}
.adm-login-toggle-pass {
  border: none;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.adm-login-toggle-pass:hover { background: #e2e8f0; }

.adm-btn-login:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}
.adm-btn-login {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.7rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--adm-accent), var(--adm-accent-hover));
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 24px rgba(99, 95, 250, 0.4);
}
.adm-btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(99, 95, 250, 0.45);
}
.adm-login-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8125rem;
}
.adm-login-footer a { color: #64748b; text-decoration: none; font-weight: 500; }
.adm-login-footer a:hover { color: var(--adm-accent); }

/* ——— App shell ——— */
.adm-layout {
  display: flex;
  min-height: 100vh;
}

.adm-sidebar {
  width: var(--adm-sidebar-w);
  flex-shrink: 0;
  background: var(--adm-sidebar-bg);
  border-right: 1px solid var(--adm-sidebar-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  z-index: 1040;
  transition: transform 0.25s ease;
}
/* Collapse drawer only on phones; tablets+ keep MediCore-style permanent sidebar */
@media (max-width: 767.98px) {
  .adm-sidebar {
    transform: translateX(-100%);
  }
  .adm-layout.adm-sidebar-open .adm-sidebar {
    transform: translateX(0);
  }
}

.adm-sidebar-brand {
  flex-shrink: 0;
  padding: 0.7rem 0.75rem 0.65rem;
  border-bottom: 1px solid var(--adm-sidebar-border);
}
.adm-brand-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff !important;
  font-family: var(--adm-font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.adm-brand-link--plate {
  display: block;
  width: 100%;
}
.adm-brand-link em {
  font-style: normal;
  color: #5eead4;
}
.adm-brand-icon {
  font-size: 1.35rem;
  color: var(--adm-accent);
  flex-shrink: 0;
}
.adm-brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.adm-brand-wordmark strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.adm-brand-wordmark small {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9eb6c9;
}

.adm-sidebar-user {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--adm-sidebar-border);
  background: rgba(0, 0, 0, 0.12);
}
.adm-sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--adm-accent), var(--adm-navy));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.adm-sidebar-user-text strong { display: block; color: #fff; font-size: 0.88rem; font-weight: 700; line-height: 1.25; }
.adm-sidebar-user-text span { font-size: 0.68rem; color: #9eb6c9; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.adm-nav {
  flex: 1 1 auto;
  min-height: 0; /* critical: allow only this pane to scroll */
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.4rem 0.55rem 0.55rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.adm-nav::-webkit-scrollbar { width: 5px; }
.adm-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}
.adm-nav-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8aa0b5;
  padding: 0.45rem 0.7rem 0.15rem;
  margin-top: 0.15rem;
}

.adm-nav-group { margin-bottom: 1px; }
.adm-nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.7rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #d7e3ee;
  font-family: var(--adm-font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.adm-nav-group-toggle:hover { background: var(--adm-sidebar-hover); color: #fff; }
.adm-nav-group-toggle .adm-nav-chevron {
  margin-left: auto;
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.adm-nav-group-toggle:not(.collapsed) .adm-nav-chevron { transform: rotate(180deg); }
.adm-nav-collapse {
  padding: 0.05rem 0 0.2rem 0.35rem;
}
.adm-nav-sublink {
  display: block;
  padding: 0.34rem 0.7rem 0.34rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #b7c7d6;
  text-decoration: none;
  border-radius: 7px;
  border-left: 2px solid transparent;
}
.adm-nav-sublink:hover { background: rgba(99, 95, 250, 0.08); color: #fff; }
.adm-nav-sublink.active {
  color: #fff;
  background: rgba(99, 95, 250, 0.2);
  border-left-color: var(--adm-accent);
}
.adm-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.7rem;
  margin-bottom: 1px;
  border-radius: 8px;
  color: #d7e3ee;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.adm-nav-link i {
  font-size: 1rem;
  opacity: 0.85;
  width: 1.2rem;
  text-align: center;
}
.adm-nav-link:hover {
  background: var(--adm-sidebar-hover);
  color: #f1f5f9;
}
.adm-nav-link.active {
  background: var(--adm-accent-dim);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.45);
}
.adm-nav-link.active i { color: #5eead4; }

.adm-sidebar-foot {
  flex-shrink: 0;
  padding: 0.45rem 0.55rem 0.55rem;
  border-top: 1px solid var(--adm-sidebar-border);
  background: var(--adm-sidebar-bg);
}
.adm-nav-link--logout {
  color: #f87171 !important;
}
.adm-nav-link--logout:hover {
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5 !important;
}

.adm-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1030;
  opacity: 0;
  transition: opacity 0.25s;
}
@media (max-width: 767.98px) {
  .adm-layout.adm-sidebar-open .adm-backdrop {
    display: block;
    opacity: 1;
  }
}

.adm-shell {
  flex: 1;
  margin-left: var(--adm-sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
@media (max-width: 767.98px) {
  .adm-shell { margin-left: 0; }
}

.adm-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: var(--adm-header-bg);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.adm-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}
.adm-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}
@media (max-width: 767.98px) {
  .adm-menu-btn { display: inline-flex; }
}
.adm-header-title {
  font-family: var(--adm-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adm-header-sub { font-size: 0.75rem; color: #94a3b8; font-weight: 500; margin: 0.15rem 0 0; }

.adm-header-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.adm-user-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}
.adm-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--adm-accent), var(--adm-navy));
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-header-titles { min-width: 0; }
.adm-breadcrumb {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.adm-breadcrumb a { color: var(--adm-accent); text-decoration: none; }
.adm-breadcrumb a:hover { text-decoration: underline; }
.adm-bc-sep { color: #cbd5e1; }
.adm-bc-current { color: #64748b; font-weight: 500; }

.adm-footer {
  padding: 0.65rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafbfc;
}
.adm-footer-ver { color: var(--adm-accent); font-weight: 600; }

.btn-dh-primary {
  background: var(--adm-accent);
  border: none;
  color: #fff !important;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.28);
}
.btn-dh-primary:hover { filter: brightness(1.05); color: #fff !important; }

.dh-activation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.dh-act-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
}
.dh-act-item .badge { font-weight: 600; }
.adm-user-meta { line-height: 1.2; }
.adm-user-meta strong { display: block; font-size: 0.8125rem; color: #0f172a; }
.adm-user-meta span { font-size: 0.7rem; color: #64748b; }

.adm-content {
  flex: 1;
  padding: 1.5rem;
}
@media (min-width: 1200px) {
  .adm-content { padding: 1.75rem 2rem; }
}

/* MediCore-style dashboard */
.adm-dash-welcome {
  background: linear-gradient(125deg, var(--adm-navy-deep) 0%, var(--adm-navy) 50%, #0f766e 100%);
  color: #e2e8f0;
  border-radius: var(--adm-radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(13, 148, 136, 0.28);
  position: relative;
  overflow: hidden;
}
.adm-dash-welcome::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -40%;
  width: 50%;
  height: 180%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.35), transparent 65%);
  pointer-events: none;
}
.adm-dash-welcome h2 {
  margin: 0 0 0.35rem;
  font-family: var(--adm-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}
.adm-dash-welcome p {
  margin: 0;
  font-size: 0.875rem;
  color: #b6c9d6;
  max-width: 40rem;
  position: relative;
  z-index: 1;
}

.adm-kpi-card {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: var(--adm-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--adm-card-shadow);
  display: block;
}
.adm-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}
.adm-kpi-delta {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.1);
  color: #15803d;
}
.adm-kpi-delta.is-down {
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
}
.adm-kpi-value {
  font-family: var(--adm-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--adm-navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.adm-kpi-label {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}
.adm-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.12);
  color: var(--adm-accent);
  font-size: 1.15rem;
}

.adm-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.adm-stat-card {
  background: #fff;
  border-radius: var(--adm-radius);
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  box-shadow: var(--adm-card-shadow);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}
.adm-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.adm-stat-icon--h { background: rgba(13, 148, 136, 0.12); color: var(--adm-accent); }
.adm-stat-icon--p { background: rgba(11, 58, 92, 0.1); color: var(--adm-navy); }
.adm-stat-icon--d { background: rgba(232, 93, 76, 0.12); color: var(--adm-cta); }
.adm-stat-icon--a { background: rgba(180, 83, 9, 0.12); color: #b45309; }
.adm-stat-body .label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #94a3b8; margin-bottom: 0.2rem; }
.adm-stat-body .value { font-size: 1.35rem; font-weight: 700; color: #0f172a; letter-spacing: -0.03em; line-height: 1.1; }

.adm-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 991.98px) {
  .adm-dash-grid { grid-template-columns: 1fr; }
}
.adm-status-bars {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
}
.adm-status-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2.5rem;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.82rem;
}
.adm-status-bar {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.adm-status-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--adm-accent);
}
.adm-status-bar > span.is-pending { background: #b45309; }
.adm-status-bar > span.is-completed { background: #15803d; }
.adm-status-bar > span.is-cancelled { background: #b91c1c; }
.adm-activity-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}
.adm-activity-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
}
.adm-activity-list li:last-child { border-bottom: 0; }
.adm-activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.4rem;
  background: var(--adm-accent);
  flex-shrink: 0;
}
.adm-activity-meta { color: #94a3b8; font-size: 0.75rem; margin-top: 0.15rem; }
.adm-dept-list, .adm-doc-list {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.15rem;
}
.adm-dept-item, .adm-doc-item {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.adm-dept-item strong, .adm-doc-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--adm-navy);
}
.adm-dept-item span, .adm-doc-item span {
  font-size: 0.75rem;
  color: #64748b;
}
.adm-badge-duty {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--adm-accent);
}
.adm-badge-off {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.adm-panel {
  background: #fff;
  border-radius: var(--adm-radius);
  border: 1px solid #e2e8f0;
  box-shadow: var(--adm-card-shadow);
  overflow: hidden;
}
.adm-panel .table { margin-bottom: 0; }
.adm-panel .table thead th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
}
.adm-panel .table td { padding: 0.85rem 1rem; vertical-align: middle; }

/* Bootstrap tweaks inside admin */
.adm-content .card {
  border-radius: var(--adm-radius);
  border-color: #e2e8f0;
  box-shadow: var(--adm-card-shadow);
}
.adm-content .card-header {
  font-weight: 600;
  font-size: 0.875rem;
  background: #f8fafc;
  border-bottom-color: #e2e8f0;
}

/* Setup Section overview (cms_setup.php) */
.adm-setup-search {
  max-width: 320px;
  min-width: 160px;
  flex: 1 1 200px;
}
.adm-setup-lines li {
  margin-bottom: 0.2rem;
}
.adm-setup-kpi-warn {
  color: #b45309 !important;
}
.adm-setup-card {
  transition: box-shadow 0.2s, transform 0.15s;
}
.adm-setup-card:hover {
  box-shadow: 0 10px 36px rgba(15, 23, 42, 0.1) !important;
}
