/*
  Golden Hub Main UI
  Used for normal app/admin/center pages:
  Operations, Staff Center, Resident Center, Dining Center, Activities Center,
  Device Center, Reports Center, Admin Center.

  Do NOT create per-page CSS files.
*/

:root {
  /* Golden Hub Care application identity */
  --gh-app-nav: #0b2942;
  --gh-app-nav-deep: #071d31;
  --gh-app-primary: #339fd6;
  --gh-app-accent: #d6ad45;

  --gh-primary: var(--gh-app-primary);
  --gh-accent: var(--gh-app-accent);
  --gh-bg: #f6f8fb;
  --gh-card: #ffffff;
  --gh-text: #10202a;
  --gh-muted: #5d6b76;
  --gh-border: #d8e1e8;
  --gh-danger: #b42318;
  --gh-success: #067647;
  --gh-radius: 18px;
  --gh-shadow: 0 14px 35px rgba(16, 32, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--gh-bg);
  color: var(--gh-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.gh-page,
.gh-center-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.gh-hero,
.gh-center-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.gh-hero h1,
.gh-center-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.gh-hero p,
.gh-center-hero p,
.gh-muted {
  color: var(--gh-muted);
}

.gh-actions,
.gh-center-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.gh-card,
.gh-center-card {
  background: var(--gh-card);
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);
  box-shadow: var(--gh-shadow);
  padding: 20px;
}

.gh-grid,
.gh-center-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.gh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--gh-border);
  background: #fff;
  color: var(--gh-text);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.gh-btn-primary {
  background: var(--gh-primary);
  border-color: var(--gh-primary);
  color: #fff;
}

.gh-btn-secondary {
  background: #fff;
}

.gh-btn-danger {
  background: var(--gh-danger);
  border-color: var(--gh-danger);
  color: #fff;
}

.gh-tabs,
.gh-center-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.gh-tab {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--gh-border);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.gh-tab-active {
  background: var(--gh-primary);
  border-color: var(--gh-primary);
  color: #fff;
}

.gh-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.gh-table {
  width: 100%;
  border-collapse: collapse;
}

.gh-table th,
.gh-table td {
  padding: 12px;
  border-bottom: 1px solid var(--gh-border);
  text-align: left;
  vertical-align: top;
}

.gh-table th {
  font-size: 13px;
  color: var(--gh-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.gh-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.gh-field label {
  display: block;
  margin: 0 0 6px;
  color: var(--gh-muted);
  font-size: 13px;
  font-weight: 800;
}

.gh-field input,
.gh-field select,
.gh-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--gh-border);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

@media (max-width: 720px) {
  .gh-hero,
  .gh-center-hero {
    display: block;
  }

  .gh-actions,
  .gh-center-actions {
    justify-content: flex-start;
    margin-top: 14px;
  }
}

/* =========================================================
   Shared Center / Admin Components
========================================================= */

.gh-status {
  display:inline-flex;
  border-radius:999px;
  padding:7px 12px;
  font-size:.82rem;
  font-weight:900;
  letter-spacing:.01em;
  background:#e6f7f3;
  color:#0f766e;
  border:1px solid rgba(15,118,110,.18);
}

.gh-status.off {
  background:#fee2e2;
  color:#991b1b;
  border-color:#fecaca;
}

.gh-status.healthy {
  background:#dcfce7;
  color:#166534;
  border-color:#bbf7d0;
}

.gh-status.disabled {
  background:#e5e7eb;
  color:#374151;
  border-color:#d1d5db;
}

.gh-status.unlicensed {
  background:#fef3c7;
  color:#92400e;
  border-color:#fde68a;
}

.gh-module-grid,
.gh-role-grid,
.activity-list {
  display:grid;
  gap:20px;
}

.gh-module-grid {
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
}

.gh-role-grid {
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
}

.activity-list {
  gap:10px;
  margin-top:14px;
}

.activity-item,
.gh-role-card,
.form-card,
.list-card,
.profile-card {
  background:var(--gh-card);
  border:1px solid var(--gh-border);
  border-radius:var(--gh-radius);
  box-shadow:var(--gh-shadow);
  padding:22px;
}

.gh-role-card h3 {
  margin:0 0 14px;
}

.gh-permission-list {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.gh-permission,
.pill {
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:7px 12px;
  font-size:.82rem;
  font-weight:900;
}

.gh-permission {
  background:rgba(21,184,166,.12);
  color:var(--gh-primary);
}

.pill {
  background:#dcfce7;
  color:#166534;
  border:1px solid #bbf7d0;
}

.pill.off {
  background:#fee2e2;
  color:#991b1b;
  border-color:#fecaca;
}

.form-grid,
.gh-form-grid,
.gh-form-row {
  display:grid;
  gap:16px;
}

.form-grid {
  grid-template-columns:repeat(3,minmax(180px,1fr));
}

.gh-form-grid {
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
}

.gh-form-row {
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
}

.field,
.gh-field,
.gh-form-field {
  display:grid;
  gap:8px;
}

.field label,
.gh-field label,
.gh-form-field label {
  font-weight:800;
  color:var(--gh-muted);
  font-size:.82rem;
}

.field input,
.field select,
.field textarea,
.gh-field input,
.gh-field select,
.gh-form-field input,
.gh-form-row input,
.gh-form-row select,
.tools input,
.tools select {
  width:100%;
  border:1px solid var(--gh-border);
  border-radius:14px;
  padding:12px 13px;
  font-size:1rem;
  background:#fff;
}

.field textarea {
  min-height:74px;
  resize:vertical;
}

.span-3 {
  grid-column:1/-1;
}

.flag-row,
.action-row,
.tools {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
}

.flag-row {
  gap:22px;
  padding:14px 0;
}

.flag-row label {
  display:flex;
  gap:8px;
  align-items:center;
  font-weight:900;
}

.action-row {
  gap:8px;
}

.tools {
  gap:12px;
  justify-content:space-between;
  margin-bottom:12px;
}

.gh-login-wrap {
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}

.gh-login-card {
  width:min(460px,100%);
  background:var(--gh-card);
  border:1px solid var(--gh-border);
  border-radius:var(--gh-radius);
  box-shadow:var(--gh-shadow);
  padding:32px;
}

.gh-login-error,
.gh-message {
  margin-top:14px;
  font-weight:800;
}

.gh-login-error {
  color:#b42318;
  min-height:22px;
}

.gh-login-actions {
  margin-top:22px;
}

.gh-login-actions button {
  width:100%;
  cursor:pointer;
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns:1fr;
  }
}

/* Center page hero normalization */
.gh-hero {
  display:block;
}

.gh-hero .gh-title {
  margin:10px 0 12px;
}

/* Staff employee form stabilization */
.form-card,
.list-card,
.profile-card {
  margin-top: 22px;
}

.form-grid {
  align-items: end;
}

.pay-field {
  display: none;
}

.pay-field.is-visible {
  display: grid;
}

.gh-form-footer {
  margin-top: 18px;
}

.gh-table {
  margin-top: 18px;
}

.gh-hero {
  display: block;
}

.gh-hero .gh-title,
.gh-title {
  text-align: left;
}

/* Tenant hero branding */
.gh-hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.gh-hero-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--gh-border);
  box-shadow: var(--gh-shadow);
  padding: 8px;
}

.gh-hero-copy {
  min-width: 0;
}

@media (max-width: 720px) {
  .gh-hero-brand {
    align-items: flex-start;
  }

  .gh-hero-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
}

/* Lookup manager tables */
.gh-lookup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.gh-lookup-card {
  overflow-x: auto;
}

.gh-lookup-card .gh-table {
  width: 100%;
  table-layout: auto;
}

.gh-lookup-card .gh-table th:last-child,
.gh-lookup-card .gh-table td:last-child {
  width: 120px;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .gh-lookup-grid {
    grid-template-columns: 1fr;
  }
}

/* Shared modal */
.gh-modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.48);
  z-index: 9999;
  padding: 24px;
}

.gh-modal-backdrop.open {
  display: flex;
}

.gh-modal {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--gh-border);
  border-radius: 24px;
  box-shadow: var(--gh-shadow);
  padding: 24px;
}

.gh-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.gh-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 800;
}

/* Staff profile tabs */
.gh-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.gh-tab-button {
  border: 1px solid var(--gh-border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  cursor: pointer;
}

.gh-tab-button.active {
  background: var(--gh-primary);
  color: #fff;
  border-color: var(--gh-primary);
}

.gh-tab-panel {
  display: none;
}

.gh-tab-panel.active {
  display: block;
}

.gh-btn-danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.gh-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.gh-card-title {
  margin-top: 14px;
}

.gh-module-meta {
  margin-top: 8px;
  color: var(--gh-muted);
}

.gh-module-actions {
  margin-top: 16px;
}

.gh-mt-16 {
  margin-top: 16px;
}

.gh-mt-22 {
  margin-top: 22px;
}


/* ============================================================
   Golden Hub Branding Single Source
   ============================================================ */

.gh-topbar{
  background:var(--gh-app-nav, #0b2942) !important;
}

.gh-brand-with-logo{
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
  text-decoration:none;
  font-weight:900;
  font-size:18px;
}

.gh-brand-logo{
  width:48px;
  height:48px;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  padding:5px;
  flex:0 0 auto;
}

.gh-hero-logo{
  width:86px;
  height:86px;
  object-fit:contain;
  border-radius:18px;
  background:#fff;
  padding:10px;
}

.gh-topbar .gh-btn,
.gh-topbar .gh-btn-secondary,
.gh-topbar .gh-btn-primary{
  background:var(--gh-app-primary, #339fd6) !important;
  color:#fff !important;
  box-shadow:none !important;
}

.gh-topbar a.gh-btn-primary,
.gh-topbar .gh-btn.active,
.gh-topbar a.active{
  background:transparent !important;
  color:#fff !important;
  box-shadow:none !important;
}

.gh-page .gh-kicker,
.gh-page .gh-eyebrow{
  color:var(--gh-app-primary, #339fd6) !important;
}

.gh-page .gh-hero{
  border-left:0 !important;
  border-bottom:4px solid var(--gh-app-accent, #d6ad45) !important;
}

.gh-page .gh-card{
  border-top:1px solid var(--gh-border, #d9e2ec) !important;
}

.gh-page .gh-btn-primary,
.gh-page button.gh-btn-primary,
.gh-page main .gh-btn-secondary,
.gh-page .gh-card .gh-btn-secondary{
  background:var(--gh-app-primary, #339fd6) !important;
  color:#fff !important;
}


/* Final logo scope guard */
.gh-brand-logo{
  width:48px !important;
  height:48px !important;
  object-fit:contain !important;
  border-radius:10px !important;
  background:#fff !important;
  padding:5px !important;
}

.gh-hero-logo{
  width:86px !important;
  height:86px !important;
  object-fit:contain !important;
  border-radius:18px !important;
  background:#fff !important;
  padding:10px !important;
}


/* Shared topbar layout normalization */

.gh-topbar-actions{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.gh-dynamic-nav{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

/* Shared spacing/layout utilities */
.gh-mt-12{ margin-top:12px; }
.gh-mt-16{ margin-top:16px; }
.gh-mt-18{ margin-top:18px; }
.gh-mt-20{ margin-top:20px; }
.gh-mt-22{ margin-top:22px; }

.gh-actions-inline{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.gh-actions-between{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.gh-grid-route-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(280px,1fr));
  gap:20px;
  margin-top:20px;
}

.gh-hidden{
  display:none;
}

.gh-strong-status{
  margin-left:12px;
  font-weight:900;
}

.gh-logo-preview{
  width:96px;
  height:96px;
  object-fit:contain;
  border:1px solid #d9e2ec;
  border-radius:18px;
  background:#fff;
  padding:10px;
}
.gh-m-0{ margin:0; }

/* Final template inline cleanup */
.gh-login-title-large{
  font-size:2.6rem;
}

.gh-inline-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* Alerts notification settings */
.gh-error-text{
  color:#b91c1c;
}

.gh-settings-panel{
  margin-top:16px;
  border-top:1px solid #dbe4ee;
  padding-top:14px;
}

.gh-settings-summary{
  cursor:pointer;
  font-weight:900;
  color:#172033;
}

/* Alerts generated markup utilities */
.gh-route-form-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:16px;
}

.gh-two-column-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.gh-two-column-grid-spaced{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:12px;
}

.gh-settings-body{
  margin-top:14px;
}

.gh-updated-meta{
  margin-top:12px;
  font-size:13px;
}

.gh-alert-action-row{
  margin-top:12px;
}

.gh-alert-card-spaced{
  margin-top:12px;
}

/* Notification route test actions */
.gh-route-test-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-top:14px;
}

/* Notification route delivery health */
.gh-route-health{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

.gh-health-pill{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
  font-weight:900;
  background:#d8f8e4;
  color:#176b3a;
}


/* Navigation Centers */
.gh-topnav,
.gh-nav-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.gh-nav-menu {
  position: relative;
}

.gh-nav-menu summary {
  list-style: none;
  cursor: pointer;
}

.gh-nav-menu summary::-webkit-details-marker {
  display: none;
}

.gh-nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 275px;
  z-index: 100;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--gh-border, #d8dee8);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.gh-nav-menu-link {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--gh-text, #172033);
  text-decoration: none;
}

.gh-nav-menu-link:hover {
  background: rgba(15, 23, 42, 0.06);
}

.gh-nav-menu-link span {
  color: var(--gh-muted, #64748b);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .gh-topbar {
    align-items: flex-start;
  }

  .gh-topnav {
    justify-content: flex-end;
  }
}


/* ============================================================
   Golden Hub Application Menu
   ============================================================ */

.gh-nav-row[hidden] {
  display: none !important;
}

.gh-app-menu-panel {
  width: min(760px, calc(100vw - 40px));
  min-width: 620px;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
}

.gh-app-menu-section {
  min-width: 0;
}

.gh-app-menu-heading {
  margin-bottom: 8px;
  color: var(
    --gh-muted,
    #64748b
  );
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gh-app-menu-items {
  display: grid;
  gap: 6px;
}

.gh-app-menu-link {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(
    --gh-text,
    #172033
  );
  text-decoration: none;
}

.gh-app-menu-link:hover {
  background:
    rgba(15, 23, 42, 0.06);
}

.gh-app-menu-link.gh-app-menu-current {
  background:
    rgba(21, 184, 166, 0.12);
}

.gh-app-menu-link span {
  color: var(
    --gh-muted,
    #64748b
  );
  font-size: 0.86rem;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .gh-app-menu-panel {
    width:
      min(620px, calc(100vw - 32px));
    min-width: 0;
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .gh-app-menu-panel {
    width:
      min(360px, calc(100vw - 24px));
    grid-template-columns: 1fr;
    max-height: 70vh;
    overflow-y: auto;
  }
}


/* ============================================================
   GOLDEN HUB V10 UI EXPERIMENT
   VM: gh-v10-ui-test ONLY
   Started: 2026-09-24

   Visual-only override layer.
   No application behavior belongs in this section.
   ============================================================ */

:root {
  /* Golden Hub master brand */
  --gh-brand-navy: #102c46;
  --gh-brand-navy-deep: #0a2034;
  --gh-brand-gold: #d6ad45;

  /* Golden Hub Care accent */
  --gh-brand-care: var(--gh-app-primary);
  --gh-brand-care-soft: #e8f7f5;

  /* UI surfaces */
  --gh-primary: var(--gh-brand-care);
  --gh-accent: var(--gh-brand-gold);
  --gh-bg: #f3f6f8;
  --gh-card: #ffffff;
  --gh-text: #172531;
  --gh-muted: #687783;
  --gh-border: #dce4e9;

  --gh-radius: 16px;
  --gh-shadow: 0 8px 28px rgba(10, 32, 52, .08);
  --gh-shadow-hover: 0 16px 38px rgba(10, 32, 52, .13);
}


/* ---------- Page canvas ---------- */

body {
  background:
    radial-gradient(
      circle at top right,
      rgba(24,168,155,.055),
      transparent 420px
    ),
    var(--gh-bg);
}

.gh-page,
.gh-center-shell {
  width: min(1240px, calc(100% - 48px));
  padding-top: 38px;
  padding-bottom: 64px;
}


/* ---------- Golden Hub application header ---------- */

.gh-topbar {
  min-height: 76px;
  padding: 0 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  background:
    linear-gradient(
      135deg,
      var(--gh-brand-navy-deep),
      var(--gh-brand-navy)
    );

  border-bottom: 3px solid var(--gh-brand-gold);
  box-shadow: 0 5px 20px rgba(10,32,52,.18);
}

.gh-brand-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .01em;
  text-decoration: none;

  white-space: nowrap;
}

.gh-brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: 0 0 auto;
}

.gh-topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.gh-nav-row {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}


/* Header buttons should feel like navigation, not giant pills */

.gh-topbar .gh-btn,
.gh-topbar .gh-btn-secondary,
.gh-topbar .gh-btn-primary {
  min-height: 38px;
  padding: 8px 14px;

  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;

  color: rgba(255,255,255,.92);
  font-size: .9rem;
  font-weight: 700;

  transition:
    background .16s ease,
    border-color .16s ease,
    transform .16s ease;
}

.gh-topbar .gh-btn:hover,
.gh-topbar .gh-btn-secondary:hover,
.gh-topbar .gh-btn-primary:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-1px);
}

.gh-topbar .gh-btn.active,
.gh-topbar a.active,
.gh-topbar a.gh-btn-primary {
  background: var(--gh-brand-gold);
  border-color: var(--gh-brand-gold);
  color: var(--gh-brand-navy-deep);
}


/* ---------- Hero ---------- */

.gh-hero,
.gh-center-hero {
  position: relative;
  margin-bottom: 28px;
  padding: 28px 30px;

  background:
    linear-gradient(
      120deg,
      #ffffff 0%,
      #ffffff 64%,
      var(--gh-brand-care-soft) 100%
    );

  border: 1px solid var(--gh-border);
  border-radius: 20px;
  box-shadow: var(--gh-shadow);

  overflow: hidden;
}

.gh-hero::before,
.gh-center-hero::before {
  content: "";
  position: absolute;

  top: 0;
  left: 0;
  bottom: 0;

  width: 5px;
  background: var(--gh-brand-gold);
}

.gh-hero h1,
.gh-center-hero h1 {
  color: var(--gh-brand-navy-deep);
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -.035em;
}

.gh-hero p,
.gh-center-hero p {
  max-width: 760px;
  line-height: 1.6;
}


/* ---------- Cards ---------- */

.gh-card,
.gh-center-card,
.activity-item,
.gh-role-card,
.form-card,
.list-card,
.profile-card {
  border: 1px solid var(--gh-border);
  border-radius: var(--gh-radius);

  box-shadow: var(--gh-shadow);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.gh-card:hover,
.gh-center-card:hover {
  transform: translateY(-2px);
  border-color: #c8d6de;
  box-shadow: var(--gh-shadow-hover);
}

.gh-card h3,
.gh-center-card h3 {
  color: var(--gh-brand-navy);
  letter-spacing: -.01em;
}


/* ---------- Main content grids ---------- */

.gh-grid,
.gh-center-grid {
  gap: 20px;
}


/* ---------- Buttons ---------- */

.gh-btn {
  min-height: 40px;
  padding: 9px 16px;

  border-radius: 9px;

  font-weight: 750;

  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.gh-btn:hover {
  transform: translateY(-1px);
}

.gh-btn-primary {
  background: var(--gh-brand-navy);
  border-color: var(--gh-brand-navy);
}

.gh-btn-primary:hover {
  background: var(--gh-brand-navy-deep);
  box-shadow: 0 6px 16px rgba(10,32,52,.15);
}

.gh-btn-secondary {
  background: #fff;
  color: var(--gh-brand-navy);
}

.gh-btn-secondary:hover {
  border-color: var(--gh-brand-care);
  color: var(--gh-brand-care);
}


/* ---------- Form controls ---------- */

.gh-field input,
.gh-field select,
.gh-field textarea,
.field input,
.field select,
.field textarea,
.gh-form-field input,
.gh-form-row input,
.gh-form-row select {
  border-radius: 9px;
}

.gh-field input:focus,
.gh-field select:focus,
.gh-field textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.gh-form-field input:focus,
.gh-form-row input:focus,
.gh-form-row select:focus {
  outline: 3px solid rgba(51,159,214,.14);
  border-color: var(--gh-brand-care);
}


/* ---------- Tables ---------- */

.gh-table th {
  color: var(--gh-brand-navy);
  background: #f7f9fa;
}


/* ---------- Login ---------- */

.gh-login-card {
  border-top: 4px solid var(--gh-brand-gold);
  box-shadow: 0 20px 55px rgba(10,32,52,.13);
}

.gh-login-title-large {
  color: var(--gh-brand-navy-deep);
}


/* ---------- Responsive shell ---------- */

@media (max-width: 900px) {

  .gh-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
  }

  .gh-topnav {
    justify-content: flex-start;
    width: 100%;
  }

  .gh-page,
  .gh-center-shell {
    width: min(100% - 28px, 1240px);
    padding-top: 24px;
  }

  .gh-hero,
  .gh-center-hero {
    padding: 24px;
  }
}

/* ===== END GOLDEN HUB V10 UI EXPERIMENT ===== */


/* ============================================================
   GOLDEN HUB V10 CARE DASHBOARD
   Structural homepage experiment
   ============================================================ */

body:has(.gh-v10-app) .gh-topbar {
  display: none;
}

body:has(.gh-v10-app) {
  background: #eef3f7;
}


/* ---------- Application frame ---------- */

.gh-v10-app {
  min-height: calc(100vh - 28px);
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
}


/* ---------- Sidebar ---------- */

.gh-v10-sidebar {
  position: sticky;
  top: 0;

  height: calc(100vh - 28px);

  display: flex;
  flex-direction: column;

  background:
    linear-gradient(
      180deg,
      #071d31 0%,
      #0b2942 56%,
      #071d31 100%
    );

  color: #fff;

  box-shadow: 6px 0 24px rgba(6, 25, 42, .12);

  z-index: 5;
}


.gh-v10-brand-block {
  min-height: 132px;

  padding: 24px 20px;

  display: flex;
  align-items: center;
  gap: 14px;

  text-decoration: none;

  border-bottom: 1px solid rgba(255,255,255,.09);
}


.gh-v10-brand-logo {
  width: 48px;
  height: 48px;

  object-fit: contain;

  border-radius: 8px;

  background: rgba(255,255,255,.06);
}


.gh-v10-brand-name {
  color: #e9bd4f;

  font-size: 1rem;
  font-weight: 900;

  letter-spacing: .15em;
  line-height: 1.08;
}


.gh-v10-brand-tagline {
  margin-top: 7px;

  color: rgba(255,255,255,.58);

  font-size: .56rem;
  font-weight: 750;

  line-height: 1.45;
  letter-spacing: .08em;
}


.gh-v10-sidebar-nav {
  display: grid;
  gap: 5px;

  padding: 18px 12px;
}


.gh-v10-side-link {
  min-height: 43px;

  padding: 10px 13px;

  display: flex;
  align-items: center;
  gap: 12px;

  color: rgba(255,255,255,.78);

  text-decoration: none;

  border: 1px solid transparent;
  border-radius: 9px;

  font-size: .9rem;
  font-weight: 700;

  transition:
    background .16s ease,
    color .16s ease,
    border-color .16s ease;
}


.gh-v10-side-link:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}


.gh-v10-side-link.active {
  color: #0a2034;

  background:
    linear-gradient(
      135deg,
      #f0ca6c,
      #d8a93b
    );

  border-color: rgba(255,255,255,.22);

  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}


.gh-v10-side-icon {
  width: 22px;

  display: inline-flex;
  justify-content: center;

  font-size: 1.1rem;
}


.gh-v10-sidebar-footer {
  margin-top: auto;

  padding: 24px 20px 28px;

  border-top: 1px solid rgba(255,255,255,.09);
}


.gh-v10-sidebar-message {
  padding-left: 12px;

  color: rgba(255,255,255,.8);

  border-left: 3px solid #d8a93b;

  font-size: .72rem;
  font-weight: 850;

  line-height: 1.55;
  letter-spacing: .045em;
}


/* ---------- Main workspace ---------- */

.gh-v10-workspace {
  min-width: 0;

  background: #eef3f7;
}


.gh-v10-dashboard-header {
  min-height: 122px;

  padding: 25px 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  background:
    linear-gradient(
      110deg,
      #081f34,
      #0c2d49
    );

  color: #fff;

  border-bottom: 1px solid rgba(255,255,255,.09);
}


.gh-v10-header-kicker {
  margin-bottom: 5px;

  color: #e6ba4e;

  font-size: .7rem;
  font-weight: 900;

  letter-spacing: .15em;
}


.gh-v10-dashboard-header h1 {
  margin: 0;

  color: #fff;

  font-size: clamp(1.6rem, 2.5vw, 2.25rem);

  letter-spacing: -.025em;
}


.gh-v10-dashboard-header p {
  margin: 5px 0 0;

  color: rgba(255,255,255,.65);
}


.gh-v10-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;

  flex-wrap: wrap;
  justify-content: flex-end;
}


.gh-v10-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  margin-right: 8px;

  color: rgba(255,255,255,.82);

  font-size: .8rem;
  font-weight: 800;
}


.gh-v10-live-dot {
  width: 9px;
  height: 9px;

  border-radius: 999px;

  background: #22c983;

  box-shadow: 0 0 0 4px rgba(34,201,131,.12);
}


.gh-v10-header-btn {
  min-height: 38px;

  padding: 9px 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #fff;

  background: rgba(255,255,255,.08);

  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;

  font: inherit;
  font-size: .82rem;
  font-weight: 800;

  text-decoration: none;

  cursor: pointer;
}


.gh-v10-header-btn:hover {
  background: rgba(255,255,255,.14);
}


/* ---------- Dashboard ---------- */

.gh-v10-dashboard {
  padding: 22px;
}


/* ---------- KPI strip ---------- */

.gh-v10-kpi-grid {
  display: grid;

  grid-template-columns:
    repeat(5, minmax(150px, 1fr));

  gap: 12px;

  margin-bottom: 14px;
}


.gh-v10-kpi {
  min-height: 112px;

  padding: 17px;

  display: flex;
  align-items: flex-start;
  gap: 13px;

  background: #fff;

  border: 1px solid #dce5eb;
  border-radius: 10px;

  box-shadow: 0 4px 16px rgba(12,45,73,.055);
}


.gh-v10-kpi-icon {
  width: 42px;
  height: 42px;

  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background: #e9f3ff;

  color: #1677db;

  font-weight: 900;
}


.gh-v10-kpi.alert .gh-v10-kpi-icon {
  background: #ffebed;
  color: #dc3545;
}


.gh-v10-kpi-label {
  color: #637384;

  font-size: .75rem;
  font-weight: 800;
}


.gh-v10-kpi-value {
  margin-top: 3px;

  color: #0b2540;

  font-size: 1.8rem;
  font-weight: 900;

  line-height: 1;
}


.gh-v10-kpi-meta {
  margin-top: 8px;

  color: #8795a3;

  font-size: .68rem;
}


/* ---------- Panels ---------- */

.gh-v10-main-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 2fr)
    minmax(260px, .85fr);

  gap: 14px;
}


.gh-v10-lower-grid {
  display: grid;

  grid-template-columns: 1.25fr .75fr;

  gap: 14px;

  margin-top: 14px;
}


.gh-v10-panel {
  background: #fff;

  border: 1px solid #dce5eb;
  border-radius: 10px;

  box-shadow: 0 4px 16px rgba(12,45,73,.055);

  overflow: hidden;
}


.gh-v10-panel-header {
  min-height: 68px;

  padding: 16px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  border-bottom: 1px solid #e7edf1;
}


.gh-v10-panel-header h2 {
  margin: 0;

  color: #102a43;

  font-size: 1rem;
}


.gh-v10-panel-header p {
  margin: 4px 0 0;

  color: #7b8996;

  font-size: .72rem;
}


.gh-v10-panel-header a {
  color: #1677db;

  font-size: .74rem;
  font-weight: 800;

  text-decoration: none;

  white-space: nowrap;
}


/* ---------- Module workspace ---------- */

.gh-v10-module-grid {
  padding: 14px;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(170px, 1fr));

  gap: 10px;
}


.gh-v10-module-card {
  min-height: 145px;

  padding: 16px;

  display: flex;
  flex-direction: column;

  color: inherit;

  background: #f9fbfc;

  border: 1px solid #e0e8ed;
  border-radius: 9px;

  text-decoration: none;

  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}


.gh-v10-module-card:hover {
  transform: translateY(-2px);

  border-color: #b8cbd8;

  box-shadow: 0 8px 20px rgba(10,32,52,.08);
}


.gh-v10-module-title {
  color: #102a43;

  font-size: .93rem;
  font-weight: 900;
}


.gh-v10-module-description {
  margin-top: 7px;

  color: #728291;

  font-size: .76rem;

  line-height: 1.38;
}


.gh-v10-module-open {
  margin-top: auto;
  padding-top: 13px;

  color: #118f84;

  font-size: .72rem;
  font-weight: 900;
}




/* ---------- Facility branding ---------- */

.gh-v10-branding-card {
  overflow: hidden;
}


.gh-v10-branding-header {
  padding: 18px 20px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 18px;

  border-bottom: 1px solid #e3eaef;
}


.gh-v10-branding-header h3 {
  margin: 0;

  color: #102a43;

  font-size: 1rem;
  font-weight: 900;
}


.gh-v10-branding-header p {
  margin: 5px 0 0;

  color: #728291;

  font-size: .76rem;

  line-height: 1.45;
}


.gh-v10-branding-layout {
  padding: 20px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(280px, .75fr);

  gap: 24px;
}


.gh-v10-branding-form {
  min-width: 0;
}


.gh-v10-branding-form .gh-field {
  margin-bottom: 18px;
}


.gh-v10-branding-form small {
  display: block;

  margin-top: 5px;

  color: #7b8996;

  font-size: .7rem;

  line-height: 1.4;
}


.gh-v10-branding-colors {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 14px;
}


.gh-v10-branding-colors input[type="color"] {
  width: 100%;
  min-height: 46px;

  padding: 4px;

  cursor: pointer;
}


.gh-v10-branding-actions {
  margin-top: 8px;

  display: flex;
  flex-wrap: wrap;

  gap: 9px;
}


.gh-v10-branding-preview {
  align-self: start;

  padding: 22px;

  background: #f8fafc;

  border: 1px solid #dfe8ee;
  border-radius: 12px;
}


.gh-v10-branding-preview-label {
  color: #7b8996;

  font-size: .65rem;
  font-weight: 850;

  letter-spacing: .08em;
  text-transform: uppercase;
}


.gh-v10-branding-preview-logo {
  min-height: 120px;

  margin-top: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;

  background: #fff;

  border: 1px solid #e0e8ed;
  border-radius: 10px;
}


.gh-v10-branding-preview-logo img {
  max-width: 100%;
  max-height: 100px;

  object-fit: contain;
}


.gh-v10-branding-preview-name {
  margin-top: 16px;

  color: #102a43;

  font-size: 1rem;
  font-weight: 900;

  text-align: center;
}


.gh-v10-branding-preview-bars {
  margin-top: 12px;

  display: grid;

  grid-template-columns: 2fr 1fr;

  gap: 6px;
}


.gh-v10-branding-preview-bars span {
  height: 8px;

  display: block;

  border-radius: 999px;
}


.gh-v10-branding-preview p {
  margin: 16px 0 0;

  color: #728291;

  font-size: .72rem;

  line-height: 1.5;
}


@media (max-width: 820px) {

  .gh-v10-branding-layout {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 560px) {

  .gh-v10-branding-header {
    flex-direction: column;
  }

  .gh-v10-branding-colors {
    grid-template-columns: 1fr;
  }

}


/* ---------- Module administration ---------- */

.gh-v10-module-manager {
  overflow: hidden;
}

.gh-v10-module-admin-grid {
  padding: 16px;

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(310px, 1fr));

  gap: 14px;
}


.gh-v10-module-admin-card {
  min-width: 0;
  padding: 18px;

  display: flex;
  flex-direction: column;
  gap: 12px;

  background: #f9fbfc;

  border: 1px solid #e0e8ed;
  border-radius: 12px;
}


.gh-v10-module-admin-head {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 12px;
}


.gh-v10-module-admin-head h3 {
  margin: 0;

  color: #102a43;

  font-size: 1rem;
  font-weight: 900;
}


.gh-v10-module-admin-description {
  margin: 0;

  color: #728291;

  font-size: .78rem;

  line-height: 1.45;
}


.gh-v10-module-state-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 8px;
}


.gh-v10-module-state {
  min-width: 0;

  padding: 8px 9px;

  background: #fff;

  border: 1px solid #e2e8ed;
  border-radius: 9px;
}


.gh-v10-module-state span {
  display: block;

  color: #7b8996;

  font-size: .61rem;
  font-weight: 800;

  letter-spacing: .04em;
  text-transform: uppercase;
}


.gh-v10-module-state strong {
  display: block;

  margin-top: 3px;

  color: #16324a;

  font-size: .76rem;
  font-weight: 900;
}


.gh-v10-module-state.is-good {
  border-color: #a7dcc7;
  background: #f0fbf6;
}


.gh-v10-module-state.is-good strong {
  color: #16704f;
}


.gh-v10-module-state.is-warn {
  border-color: #efd18b;
  background: #fffaf0;
}


.gh-v10-module-state.is-warn strong {
  color: #956009;
}


.gh-v10-module-state.is-off {
  border-color: #d8e0e6;
  background: #f4f7f9;
}


.gh-v10-module-state.is-off strong {
  color: #64748b;
}


.gh-v10-module-state.is-error {
  border-color: #efb3b3;
  background: #fff5f5;
}


.gh-v10-module-state.is-error strong {
  color: #a83b3b;
}


.gh-v10-module-details {
  border-top: 1px solid #e2e8ed;
  padding-top: 10px;
}


.gh-v10-module-details summary {
  width: fit-content;

  color: #1977a7;

  font-size: .74rem;
  font-weight: 850;

  cursor: pointer;
}


.gh-v10-module-details-grid {
  margin-top: 11px;

  display: grid;

  grid-template-columns:
    minmax(90px, auto) minmax(0, 1fr);

  gap: 6px 12px;

  color: #5f7282;

  font-size: .72rem;
}


.gh-v10-module-details-grid dt {
  font-weight: 850;
}


.gh-v10-module-details-grid dd {
  margin: 0;

  overflow-wrap: anywhere;
}


.gh-v10-module-warning {
  margin: 10px 0 0;

  padding: 9px 10px;

  color: #8a5a08;

  background: #fff8e8;

  border: 1px solid #efd18b;
  border-radius: 8px;

  font-size: .7rem;

  line-height: 1.4;
}


.gh-v10-module-actions {
  margin-top: auto;
  padding-top: 3px;

  display: flex;
  flex-wrap: wrap;

  gap: 7px;
}


.gh-v10-module-actions .gh-btn {
  min-height: 34px;

  padding: 7px 13px;

  font-size: .72rem;
}


.gh-v10-module-diagnostics > summary {
  padding: 18px 20px;

  color: #193852;

  font-size: .88rem;
  font-weight: 900;

  cursor: pointer;
}


.gh-v10-diagnostics-body {
  padding: 0 20px 20px;
}


.gh-v10-module-discovery-grid {
  margin-top: 14px;

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));

  gap: 12px;
}


@media (max-width: 720px) {

  .gh-v10-module-state-grid {
    grid-template-columns: 1fr 1fr;
  }

}


/* ---------- Status ---------- */

.gh-v10-status-list {
  padding: 10px 18px 18px;
}


.gh-v10-status-row {
  min-height: 45px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  border-bottom: 1px solid #edf1f4;

  color: #697989;

  font-size: .78rem;
}


.gh-v10-status-row:last-child {
  border-bottom: 0;
}


.gh-v10-status-row strong {
  color: #122b43;
}


.gh-v10-status-row strong.ok {
  color: #0e9c63;
}


/* ---------- Empty / future live panels ---------- */

.gh-v10-empty-state {
  min-height: 150px;

  padding: 28px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  color: #748391;
}


.gh-v10-empty-state strong {
  color: #243d53;
}


.gh-v10-empty-state span {
  max-width: 570px;

  margin-top: 7px;

  font-size: .8rem;
  line-height: 1.5;
}


/* ---------- Snapshot ---------- */

.gh-v10-snapshot-grid {
  padding: 16px;

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 10px;
}


.gh-v10-snapshot-grid > div {
  min-height: 82px;

  padding: 14px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background: #f8fafb;

  border: 1px solid #e5ebef;
  border-radius: 8px;
}


.gh-v10-snapshot-grid span {
  color: #758493;

  font-size: .7rem;
  font-weight: 750;
}


.gh-v10-snapshot-grid strong {
  margin-top: 3px;

  color: #112c47;

  font-size: 1.3rem;
}


/* ---------- Responsive ---------- */

@media (max-width: 1200px) {

  .gh-v10-kpi-grid {
    grid-template-columns:
      repeat(3, minmax(150px, 1fr));
  }

  .gh-v10-module-grid {
    grid-template-columns:
      repeat(2, minmax(170px, 1fr));
  }
}


@media (max-width: 900px) {

  .gh-v10-app {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .gh-v10-brand-block {
    justify-content: center;
    padding: 18px 10px;
  }

  .gh-v10-brand-block > div {
    display: none;
  }

  .gh-v10-side-link {
    justify-content: center;
  }

  .gh-v10-side-link span:last-child {
    display: none;
  }

  .gh-v10-sidebar-footer {
    display: none;
  }

  .gh-v10-main-grid,
  .gh-v10-lower-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 650px) {

  .gh-v10-app {
    display: block;
  }

  .gh-v10-sidebar {
    position: static;

    width: 100%;
    height: auto;
  }

  .gh-v10-sidebar-nav {
    display: flex;

    overflow-x: auto;
  }

  .gh-v10-side-link {
    flex: 0 0 auto;
  }

  .gh-v10-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .gh-v10-header-actions {
    justify-content: flex-start;
  }

  .gh-v10-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gh-v10-module-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== END GOLDEN HUB V10 CARE DASHBOARD ===== */


/* ============================================================
   GOLDEN HUB V10 SHARED APPLICATION SHELL
   Applies to authenticated module/admin pages.
   Homepage owns its own dashboard shell.
   ============================================================ */

.gh-v10-global-content {
  min-width: 0;
  width: 100%;
}

.gh-v10-global-content > .gh-page,
.gh-v10-global-content > .gh-center-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px;
}

/*
 * The shared top dashboard header now carries the page identity,
 * so the legacy hero does not need to repeat it.
 */
.gh-v10-global-content .gh-hero,
.gh-v10-global-content .gh-center-hero {
  display: none;
}

.gh-v10-global-content .gh-card,
.gh-v10-global-content .gh-center-card,
.gh-v10-global-content .form-card,
.gh-v10-global-content .list-card,
.gh-v10-global-content .profile-card {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(12,45,73,.055);
}

.gh-v10-global-user {
  padding: 0 6px;

  color: rgba(255,255,255,.72);

  font-size: .78rem;
  font-weight: 750;

  white-space: nowrap;
}

@media (max-width: 900px) {
  .gh-v10-global-content > .gh-page,
  .gh-v10-global-content > .gh-center-shell {
    padding: 16px;
  }

  .gh-v10-global-user {
    display: none;
  }
}

/* ===== END GOLDEN HUB V10 SHARED APPLICATION SHELL ===== */

/* ============================================================
   V10 NAVIGATION GROUPS + ADMIN CENTER
   ============================================================ */

.gh-v10-side-group {
  margin: 0;
}

.gh-v10-side-group > summary {
  min-height: 43px;
  padding: 10px 13px;

  display: flex;
  align-items: center;
  gap: 12px;

  color: rgba(255,255,255,.78);

  border: 1px solid transparent;
  border-radius: 9px;

  font-size: .9rem;
  font-weight: 700;

  cursor: pointer;
  list-style: none;
}

.gh-v10-side-group > summary::-webkit-details-marker {
  display: none;
}

.gh-v10-side-group > summary::after {
  content: "›";

  margin-left: auto;

  color: rgba(255,255,255,.48);

  font-size: 1rem;

  transition: transform .15s ease;
}

.gh-v10-side-group[open] > summary::after {
  transform: rotate(90deg);
}

.gh-v10-side-group > summary:hover,
.gh-v10-side-group[open] > summary {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.gh-v10-side-submenu {
  display: grid;
  gap: 3px;

  margin: 3px 0 7px 34px;
  padding-left: 11px;

  border-left: 1px solid rgba(255,255,255,.13);
}

.gh-v10-side-sub-link {
  padding: 8px 10px;

  color: rgba(255,255,255,.64);

  border-radius: 7px;

  font-size: .78rem;
  font-weight: 650;

  text-decoration: none;
}

.gh-v10-side-sub-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}

.gh-v10-side-sub-link.active {
  color: #f1c75c;
  background: rgba(216,169,59,.09);

  font-weight: 800;
}


/* ---------- Header Admin Center menu ---------- */

.gh-v10-header-actions {
  position: relative;
}

.gh-v10-admin-menu {
  position: relative;
}

.gh-v10-admin-menu > summary {
  list-style: none;
}

.gh-v10-admin-menu > summary::-webkit-details-marker {
  display: none;
}

.gh-v10-admin-menu-panel {
  position: absolute;

  top: calc(100% + 9px);
  right: 0;

  width: 240px;
  padding: 8px;

  display: grid;
  gap: 3px;

  background: #fff;

  border: 1px solid #dce5eb;
  border-radius: 10px;

  box-shadow: 0 18px 45px rgba(6,25,42,.22);

  z-index: 100;
}

.gh-v10-admin-menu-link {
  padding: 10px 12px;

  color: #17324a;

  border-radius: 7px;

  font-size: .8rem;
  font-weight: 750;

  text-decoration: none;
}

.gh-v10-admin-menu-link:hover {
  background: #eef5f8;
}

.gh-v10-admin-menu-link.active {
  color: #0a2034;
  background: #f4df9e;
}

/* ===== END V10 NAVIGATION GROUPS + ADMIN CENTER ===== */



/* ============================================================
   V10 SIDEBAR SCROLLING
   Keep branding/footer fixed; scroll navigation independently.
   ============================================================ */

.gh-v10-sidebar {
  overflow: hidden;
}

.gh-v10-brand-block {
  flex: 0 0 auto;
}

.gh-v10-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;

  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: thin;
  scrollbar-color:
    rgba(255,255,255,.24)
    transparent;
}

.gh-v10-sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.gh-v10-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.gh-v10-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.22);
  border-radius: 999px;
}

.gh-v10-sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,.36);
}

.gh-v10-sidebar-footer {
  flex: 0 0 auto;
  margin-top: 0;
}

/* ===== END V10 SIDEBAR SCROLLING ===== */


/* ============================================================
   V10 FULL GOLDEN HUB CARE LOGO
   ============================================================ */

.gh-v10-brand-block {
  min-height: 112px;

  padding: 18px 16px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.gh-v10-brand-logo-full {
  width: 205px;
  max-width: 100%;
  height: auto;

  object-fit: contain;

  background: transparent;
  border-radius: 0;
}

/*
 * Legacy text is no longer needed when using
 * the complete Golden Hub Care artwork.
 */
.gh-v10-brand-name,
.gh-v10-brand-tagline {
  display: none;
}

/* ===== END V10 FULL GOLDEN HUB CARE LOGO ===== */


/* ============================================================
   V10 FULL GOLDEN HUB CARE LOGO
   ============================================================ */

.gh-v10-brand-block {
  min-height: 112px;
  padding: 16px 14px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.gh-v10-brand-logo-full {
  width: 215px;
  max-width: 100%;
  height: auto;

  object-fit: contain;

  background: transparent;
  border-radius: 0;
}

.gh-v10-brand-name,
.gh-v10-brand-tagline {
  display: none;
}

/* ===== END V10 FULL GOLDEN HUB CARE LOGO ===== */


/* ============================================================
   V10 CARE LOGO BRAND PLATE
   Preserve original logo colors on dark application chrome.
   ============================================================ */

.gh-v10-brand-block {
  min-height: 112px;
  padding: 14px 16px;

  background: #f7f9fb;

  border-bottom: 3px solid #d6ad45;
}

.gh-v10-brand-logo-full {
  width: 220px;
  max-width: 100%;
  height: auto;

  display: block;

  object-fit: contain;
}

/* ===== END V10 CARE LOGO BRAND PLATE ===== */


/* ============================================================
   Golden Hub Care v10.5
   Notification Settings refinement
   ============================================================ */

.gh-notification-route-card {
  border-top: 3px solid
    var(--gh-app-primary, #339fd6);
}

.gh-notification-route-card > h2 {
  margin-bottom: 6px;
  color: var(--gh-app-nav, #0b2942);
}

.gh-route-key {
  margin-top: 0;
  font-size: 0.82rem;
}

.gh-route-key code {
  color: #64748b;
  font-size: 0.8rem;
}

.gh-notification-route-card .gh-settings-panel {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid
    var(--gh-border, #d8dee8);
}

.gh-notification-route-card .gh-settings-summary {
  color: var(--gh-app-nav, #0b2942);
  font-weight: 800;
}

.gh-notification-route-card .gh-route-test-row {
  padding-top: 14px;
  border-top: 1px solid
    var(--gh-border, #d8dee8);
}

.gh-notification-route-card .gh-route-health {
  margin-bottom: 0;
}

.gh-notification-route-card .gh-updated-meta {
  margin-bottom: 0;
  color: #64748b;
}

@media (max-width: 1180px) {
  .gh-grid-route-cards {
    grid-template-columns:
      repeat(2, minmax(280px, 1fr));
  }
}

@media (max-width: 760px) {
  .gh-grid-route-cards {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   Golden Hub Care v10.5
   Staff Center Employee form
   ============================================================ */

.gh-employee-form-head {
  margin-bottom: 18px;
}

.gh-employee-form-head h2 {
  margin-bottom: 6px;
}

.gh-employee-form-sections {
  display: grid;
  gap: 16px;
}

.gh-employee-form-section {
  padding: 16px;
  border: 1px solid
    var(--gh-border, #d8dee8);
  border-radius: 14px;
  background: #f8fafc;
}

.gh-employee-form-section-head {
  margin-bottom: 14px;
}

.gh-employee-form-section-head h3 {
  margin: 0;
  color: var(--gh-app-nav, #0b2942);
  font-size: 1rem;
}

.gh-employee-form-section-head p {
  margin: 4px 0 0;
  color: var(--gh-muted, #64748b);
  font-size: 0.82rem;
}

.gh-employee-form-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.gh-employee-form-grid .field {
  min-width: 0;
}

.gh-employee-flag-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  min-height: 38px;
}

.gh-employee-flag-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 750;
}

.gh-employee-admin-toggle {
  margin-bottom: 4px;
}

.gh-employee-notes {
  grid-column: 1 / -1;
}

.gh-employee-notes textarea {
  min-height: 90px;
}

@media (max-width: 1100px) {
  .gh-employee-form-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .gh-employee-form-grid {
    grid-template-columns: 1fr;
  }

  .gh-employee-notes {
    grid-column: auto;
  }
}


/* ============================================================
   Golden Hub Care v10.5
   Lookup Manager refinement
   ============================================================ */

.gh-lookup-card-positions {
  grid-column: 1 / -1;
}

.gh-lookup-card .gh-section-head {
  align-items: center;
}

.gh-lookup-card .gh-section-head h3 {
  margin: 0;
  color: var(--gh-app-nav, #0b2942);
}

.gh-lookup-card-positions .gh-table {
  table-layout: fixed;
}

.gh-lookup-card-positions .gh-table th:first-child,
.gh-lookup-card-positions .gh-table td:first-child {
  width: 32%;
}

@media (max-width: 980px) {
  .gh-lookup-card-positions {
    grid-column: auto;
  }

  .gh-lookup-card-positions .gh-table {
    table-layout: auto;
  }
}


/* Lookup Manager conditional modal fields */
#lookupDefaultRoleWrap[hidden],
#lookupSortOrderWrap[hidden],
#lookupDeleteButton[hidden] {
  display: none !important;
}

#lookupDeleteButton {
  margin-right: auto;
}

/* ============================================================
   GOLDEN HUB V10.5 OVERVIEW OPERATIONS GRID
   ============================================================ */

.gh-v10-operations-grid {
  padding: 14px;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(170px, 1fr));

  gap: 10px;
}


.gh-v10-operations-grid .gh-v10-kpi {
  min-height: 126px;

  background: #f9fbfc;

  box-shadow: none;
}


.gh-v10-lower-grid {
  grid-template-columns: 1fr;
}


@media (max-width: 1200px) {

  .gh-v10-operations-grid {
    grid-template-columns:
      repeat(2, minmax(170px, 1fr));
  }

}


@media (max-width: 650px) {

  .gh-v10-operations-grid {
    grid-template-columns: 1fr;
  }

}

/* ===== END V10.5 OVERVIEW OPERATIONS GRID ===== */

/* ---------- Overview alert queue ---------- */

.gh-v10-alert-queue {
  padding: 14px;
}


.gh-v10-alert-row {
  min-height: 78px;

  padding: 14px 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 18px;

  color: inherit;

  background: #f9fbfc;

  border: 1px solid #e0e8ed;
  border-left: 4px solid #dc3545;
  border-radius: 8px;

  text-decoration: none;
}


.gh-v10-alert-row + .gh-v10-alert-row {
  margin-top: 9px;
}


.gh-v10-alert-row-warning {
  border-left-color: #d6ad45;
}


.gh-v10-alert-row-info {
  border-left-color: #339fd6;
}


.gh-v10-alert-row-title {
  color: #102a43;

  font-size: .9rem;
  font-weight: 900;
}


.gh-v10-alert-row-message {
  margin-top: 4px;

  color: #728291;

  font-size: .76rem;
}


.gh-v10-alert-row-meta {
  display: flex;
  align-items: center;

  gap: 12px;

  color: #7b8996;

  font-size: .72rem;

  white-space: nowrap;
}


.gh-v10-alert-row-meta strong {
  text-transform: capitalize;
}


@media (max-width: 650px) {

  .gh-v10-alert-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .gh-v10-alert-row-meta {
    flex-wrap: wrap;
    white-space: normal;
  }

}
