/* v1.7.27 — Vuexy/TSC shell adapted for Silsilah Keluarga.
   Source visual reference: user-provided Tel-U Student Card project.
   Primary color intentionally kept at Vuexy purple #7367f0. */

html { font-size: 16px; }

:root,
[data-bs-theme="light"] {
  --primary: #7367f0;
  --primary-soft: #eeecff;
  --primary-dark: #685dd8;
  --bg: var(--bs-body-bg);
  --card: var(--bs-paper-bg);
  --text: var(--bs-heading-color);
  --muted: var(--bs-secondary-color);
  --border: var(--bs-border-color);
  --success: var(--bs-success);
  --danger: var(--bs-danger);
  --warning: var(--bs-warning);
  --info: var(--bs-info);
  --sidebar: var(--bs-paper-bg);
  --sidebar-text: var(--bs-body-color);
  --radius: .5rem;
}

[data-bs-theme="dark"] {
  --primary: #7367f0;
  --primary-soft: rgba(115, 103, 240, .18);
  --primary-dark: #8f85f3;
  --bg: var(--bs-body-bg);
  --card: var(--bs-paper-bg);
  --text: var(--bs-heading-color);
  --muted: var(--bs-secondary-color);
  --border: var(--bs-border-color);
  --sidebar: var(--bs-paper-bg);
  --sidebar-text: var(--bs-body-color);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #7367f0;
  --primary-soft: rgba(115, 103, 240, .18);
  --primary-dark: #8f85f3;
  --bg: var(--bs-body-bg);
  --card: var(--bs-paper-bg);
  --text: var(--bs-heading-color);
  --muted: var(--bs-secondary-color);
  --border: var(--bs-border-color);
  --sidebar: var(--bs-paper-bg);
  --sidebar-text: var(--bs-body-color);
}

/* Match the TSC/Vuexy fixed-navbar spacing (normally supplied by demo.css). */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 72px !important;
}

.family-vuexy-body {
  min-height: 100vh;
  background: var(--bs-body-bg);
  color: #4b465c;
  font-family: var(--bs-body-font-family);
  font-size: var(--bs-body-font-size);
  font-weight: 500;
}
[data-bs-theme="dark"] .family-vuexy-body,
html[data-theme="dark"] .family-vuexy-body { color: #d7d2df; }
.family-vuexy-body .text-body-secondary,
.family-vuexy-body .text-muted,
.family-vuexy-body .page-subtitle { color: #6f6b7d !important; }
[data-bs-theme="dark"] .family-vuexy-body .text-body-secondary,
[data-bs-theme="dark"] .family-vuexy-body .text-muted,
[data-bs-theme="dark"] .family-vuexy-body .page-subtitle,
html[data-theme="dark"] .family-vuexy-body .text-body-secondary,
html[data-theme="dark"] .family-vuexy-body .text-muted,
html[data-theme="dark"] .family-vuexy-body .page-subtitle { color: #b8b2c2 !important; }

/* Vuexy/TSC menu */
.family-vuexy-body .layout-menu {
  z-index: 1081;
  background: linear-gradient(180deg, #7367f0 0%, #685dd8 100%) !important;
  box-shadow: .125rem 0 1rem rgba(47, 43, 61, .18);
  color: #fff;
}
.family-vuexy-body .family-app-brand {
  height: 72px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
}
.family-vuexy-body .family-app-brand .app-brand-link {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: #fff;
}
.family-brand-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: .625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #7367f0;
  box-shadow: 0 .25rem .75rem rgba(115, 103, 240, .28);
  font-size: 1.25rem;
}
.family-vuexy-body .layout-menu .family-brand-logo {
  color: #7367f0;
  background: #fff;
  box-shadow: 0 .25rem .75rem rgba(38, 31, 117, .22);
}
.family-brand-initials { font-size: .72rem; font-weight: 800; letter-spacing: -.02em; }
.family-brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  letter-spacing: normal !important;
  text-transform: none !important;
}
.family-brand-text strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}
.family-brand-text small {
  margin-top: .22rem;
  color: rgba(255,255,255,.78);
  font-size: .6875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 11.5rem;
}
.family-sidebar-toggle,
.family-menu-close {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.9);
  cursor: pointer;
}
.family-sidebar-toggle {
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border-radius: 50%;
}
.family-sidebar-toggle:hover,
.family-menu-close:hover { color: #fff; background: rgba(255,255,255,.14); }
.family-menu-close { width: 2.25rem; height: 2.25rem; border-radius: .5rem; }

.family-vuexy-body .menu-inner { padding-inline: .75rem; }
.family-vuexy-body .menu-header {
  margin: .45rem 0 .25rem;
  padding-inline: .75rem;
  color: rgba(255,255,255,.60);
}
.family-vuexy-body .menu-header-text { font-size: .6875rem; letter-spacing: .05rem; font-weight: 700; }
.family-vuexy-body .menu-item { margin: .125rem 0; }
.family-vuexy-body .menu-link {
  min-height: 2.625rem;
  border-radius: .375rem;
  color: rgba(255,255,255,.88);
  font-weight: 600;
}
.family-vuexy-body .menu-link:hover { background: rgba(255,255,255,.11); color: #fff; }
.family-vuexy-body .menu-item.active > .menu-link {
  color: #5f54d5;
  background: #fff;
  box-shadow: 0 .2rem .65rem rgba(47, 38, 140, .24);
}
.family-vuexy-body .menu-item.active > .menu-link .menu-icon { color: #7367f0; }
.family-vuexy-body .menu-icon { color: rgba(255,255,255,.82); font-size: 1.25rem; }

/* The core template handles width/padding. This only keeps brand compact when collapsed. */
@media (min-width: 1200px) {
  .layout-menu-collapsed .family-app-brand { padding-inline: .9rem; }
  .layout-menu-collapsed .family-brand-text { opacity: 0; width: 0; overflow: hidden; }
  .layout-menu-collapsed .family-sidebar-toggle { position: absolute; right: -.65rem; top: 1.35rem; background: #fff; color: #7367f0; box-shadow: 0 .125rem .5rem rgba(47,43,61,.22); }
  .layout-menu-collapsed .family-sidebar-toggle:hover { background: #f4f2ff; color: #685dd8; }
  .layout-menu-collapsed .layout-menu .menu-header::before { background-color: rgba(255,255,255,.45) !important; }
}

/* Navbar */
.family-vuexy-body .layout-navbar.navbar-detached {
  margin: .75rem 1.5rem 0;
  width: auto;
  max-width: none;
  min-width: 0;
  min-height: 4rem;
  padding: 0 1rem;
  border: 1px solid rgba(var(--bs-body-color-rgb), .08);
  border-radius: .5rem;
  background: color-mix(in srgb, var(--bs-paper-bg) 94%, transparent) !important;
  box-shadow: var(--bs-box-shadow-sm);
  backdrop-filter: saturate(160%) blur(8px);
}
.family-navbar-date { font-size: .8125rem; white-space: nowrap; }
.family-navbar-actions { min-width: 0; }
.family-mobile-menu-btn { border: 0; background: transparent; color: var(--bs-body-color); font-size: 1.35rem; }
.family-user-chip { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.family-user-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: 0 0 2.25rem;
}
.family-user-meta { min-width: 0; line-height: 1.15; }
.family-user-meta strong { display: block; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8125rem; color: var(--bs-heading-color); }
.family-user-meta small { display: block; margin-top: .18rem; max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bs-secondary-color); font-size: .6875rem; }
.family-logout-btn { gap: .35rem !important; }

/* Preferences rendered in the Vuexy navbar */
.family-vuexy-body .preference-controls { gap: .35rem; }
.family-vuexy-body .language-switch,
.family-vuexy-body .theme-toggle {
  border-color: var(--bs-border-color);
  background: var(--bs-paper-bg);
  box-shadow: none;
}
.family-vuexy-body .language-switch { border-radius: .5rem; padding: .15rem; }
.family-vuexy-body .preference-option {
  min-width: 1.85rem;
  padding: .38rem .45rem;
  border-radius: .375rem;
  color: var(--bs-secondary-color);
  font-size: .6875rem;
}
.family-vuexy-body .preference-option.active { background: var(--bs-primary); color: #fff; }
.family-vuexy-body .theme-toggle {
  min-height: 2.25rem;
  height: 2.25rem;
  border-radius: .5rem;
  color: var(--bs-body-color);
  padding: 0 .65rem;
}

/* Stronger typography for the family application. */
.family-vuexy-body .card,
.family-vuexy-body .table,
.family-vuexy-body .form-control,
.family-vuexy-body .form-select,
.family-vuexy-body .select2-container,
.family-vuexy-body .family-modal { color: #4b465c; }
.family-vuexy-body .table td,
.family-vuexy-body .form-label,
.family-vuexy-body label { font-weight: 500; }
.family-vuexy-body .table th,
.family-vuexy-body .card-header,
.family-vuexy-body .page-title { color: #2f2b3d; font-weight: 700; }
[data-bs-theme="dark"] .family-vuexy-body .card,
[data-bs-theme="dark"] .family-vuexy-body .table,
[data-bs-theme="dark"] .family-vuexy-body .form-control,
[data-bs-theme="dark"] .family-vuexy-body .form-select,
[data-bs-theme="dark"] .family-vuexy-body .select2-container,
[data-bs-theme="dark"] .family-vuexy-body .family-modal,
html[data-theme="dark"] .family-vuexy-body .card,
html[data-theme="dark"] .family-vuexy-body .table,
html[data-theme="dark"] .family-vuexy-body .form-control,
html[data-theme="dark"] .family-vuexy-body .form-select,
html[data-theme="dark"] .family-vuexy-body .select2-container,
html[data-theme="dark"] .family-vuexy-body .family-modal { color: #d7d2df; }
[data-bs-theme="dark"] .family-vuexy-body .table th,
[data-bs-theme="dark"] .family-vuexy-body .card-header,
[data-bs-theme="dark"] .family-vuexy-body .page-title,
html[data-theme="dark"] .family-vuexy-body .table th,
html[data-theme="dark"] .family-vuexy-body .card-header,
html[data-theme="dark"] .family-vuexy-body .page-title { color: #eeeaf2; }

/* Keep the fixed detached navbar inside the viewport. */
@media (min-width: 1200px) {
  html:not(.layout-menu-collapsed) .family-vuexy-body .layout-navbar.navbar-detached {
    inline-size: calc(100% - var(--bs-menu-width) - 3rem) !important;
  }
  html.layout-menu-collapsed .family-vuexy-body .layout-navbar.navbar-detached {
    inline-size: calc(100% - var(--bs-menu-collapsed-width) - 3rem) !important;
  }
}

/* Main content */
.family-content { padding: 1.5rem !important; }
.family-vuexy-body .page-head { margin-bottom: 1.25rem; align-items: center; }
.family-vuexy-body .page-title { color: var(--bs-heading-color); font-size: 1.5rem; font-weight: 700; }
.family-vuexy-body .page-subtitle { color: var(--bs-secondary-color); }

/* Bring the existing application components in line with the TSC/Vuexy skin. */
.family-vuexy-body .card {
  border: 0;
  border-radius: .5rem;
  background: var(--bs-paper-bg);
  box-shadow: var(--bs-box-shadow-sm);
}
.family-vuexy-body .card-header {
  border-bottom: 1px solid var(--bs-border-color);
  background: transparent;
  color: var(--bs-heading-color);
  font-weight: 600;
  padding: 1rem 1.25rem;
}
.family-vuexy-body .card-body { padding: 1.25rem; }
.family-vuexy-body .btn {
  border-radius: .375rem;
  padding: .5rem .875rem;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.25;
  box-shadow: none;
}
.family-vuexy-body .btn-primary { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; }
.family-vuexy-body .btn-primary:hover { background: #685dd8; border-color: #685dd8; }
.family-vuexy-body .btn-outline { background: transparent; border-color: var(--bs-border-color); color: var(--bs-body-color); }
.family-vuexy-body .btn-outline:hover { background: var(--bs-primary-bg-subtle); border-color: var(--bs-primary-border-subtle); color: var(--bs-primary); }
.family-vuexy-body .btn-danger { background: var(--bs-danger); border-color: var(--bs-danger); }
.family-vuexy-body .form-label { color: var(--bs-heading-color); font-weight: 500; }
.family-vuexy-body .form-control,
.family-vuexy-body .form-select,
.family-vuexy-body .form-textarea {
  border-color: var(--bs-border-color);
  border-radius: .375rem;
  background-color: var(--bs-paper-bg);
  color: var(--bs-body-color);
  padding: .55rem .75rem;
}
.family-vuexy-body .form-control:focus,
.family-vuexy-body .form-select:focus,
.family-vuexy-body .form-textarea:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 .15rem rgba(var(--bs-primary-rgb), .15);
}
.family-vuexy-body .table th { background: color-mix(in srgb, var(--bs-body-bg) 75%, var(--bs-paper-bg)); color: var(--bs-secondary-color); }
.family-vuexy-body .table th,
.family-vuexy-body .table td { border-color: var(--bs-border-color); }
.family-vuexy-body .badge-primary { background: var(--bs-primary-bg-subtle); color: var(--bs-primary); }
.family-vuexy-body .stat-icon { border-radius: .375rem; background: var(--bs-primary-bg-subtle); color: var(--bs-primary); }
.family-vuexy-body .stat-value { color: var(--bs-heading-color); }
.family-vuexy-body .detail-item,
.family-vuexy-body .parent-pair-person,
.family-vuexy-body .tree-family-history-card { background: color-mix(in srgb, var(--bs-body-bg) 45%, var(--bs-paper-bg)); }

/* Keep Select2 visually aligned with Vuexy. */
.family-vuexy-body .select2-container .select2-selection--single {
  border-color: var(--bs-border-color);
  border-radius: .375rem;
  background: var(--bs-paper-bg);
}
.family-vuexy-body .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--bs-body-color); }
.family-vuexy-body .select2-dropdown { border-color: var(--bs-border-color); background: var(--bs-paper-bg); color: var(--bs-body-color); }

/* Impersonation banner */
.family-impersonation-bar {
  margin: .75rem 1.5rem 0;
  border: 1px solid var(--bs-warning-border-subtle);
  border-radius: .5rem;
  background: var(--bs-warning-bg-subtle);
  color: var(--bs-warning-text-emphasis);
  box-shadow: var(--bs-box-shadow-sm);
  position: relative;
  z-index: 1030;
}

/* Modal should stay above the Vuexy navbar/menu. */
.family-modal { z-index: 1200; }
.family-modal-dialog { box-shadow: var(--bs-box-shadow-lg); border-radius: .625rem; }

/* Login page using the same TSC/Vuexy visual language. */
.family-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(115,103,240,.13), transparent 28rem),
    radial-gradient(circle at 90% 90%, rgba(115,103,240,.08), transparent 24rem),
    var(--bs-body-bg);
}
.family-login-wrapper { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; }
.family-login-card { width: min(27rem, 100%); border: 0 !important; box-shadow: var(--bs-box-shadow-lg) !important; }
.family-login-brand { display: flex; justify-content: center; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.family-login-brand .family-brand-logo { width: 42px; height: 42px; flex-basis: 42px; }
.family-login-brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.family-login-brand-copy strong { color: var(--bs-heading-color); font-size: 1.1rem; }
.family-login-brand-copy small { color: var(--bs-secondary-color); font-size: .75rem; margin-top: .2rem; }

/* Mobile */
@media (max-width: 1199.98px) {
  .family-vuexy-body .layout-navbar.navbar-detached { margin-inline: .75rem; width: auto; inline-size: calc(100% - 1.5rem) !important; }
  .family-content { padding-inline: .875rem !important; }
  .family-app-brand { padding-inline: 1rem !important; }
}
@media (max-width: 575.98px) {
  .family-vuexy-body .layout-navbar.navbar-detached { min-height: 3.75rem; padding-inline: .75rem; }
  .family-vuexy-body .preference-option { min-width: 1.7rem; padding-inline: .35rem; }
  .family-vuexy-body .theme-label { display: none; }
  .family-vuexy-body .theme-toggle { width: 2.15rem; justify-content: center; padding: 0; }
  .family-user-chip { gap: .35rem; }
  .family-logout-btn { padding-inline: .55rem !important; }
}

@media (max-width: 767.98px) {
  .family-user-meta { display:none !important; }
  .family-navbar-actions { gap:.35rem !important; }
}

/* v1.7.28 — Sidebar polish + stronger light-mode content typography. */

/* Sidebar: keep the purple identity, but make spacing/states predictable. */
.family-vuexy-body .layout-menu {
  background: linear-gradient(180deg, #7367f0 0%, #695edc 100%) !important;
}
.family-vuexy-body .layout-menu .menu-inner {
  padding-inline: 0 !important;
}
.family-vuexy-body .layout-menu .menu-header {
  margin: .6rem 0 .22rem !important;
  padding: .8rem 1.5rem .35rem !important;
}
.family-vuexy-body .layout-menu .menu-header-text {
  color: rgba(255, 255, 255, .62) !important;
  font-size: .665rem !important;
  font-weight: 800 !important;
  letter-spacing: .065rem !important;
}
.family-vuexy-body .layout-menu .menu-item {
  margin-block: .12rem !important;
}
.family-vuexy-body .layout-menu .menu-item > .menu-link {
  min-height: 2.7rem !important;
  margin-inline: .75rem !important;
  padding-inline: .85rem !important;
  border-radius: .45rem !important;
  color: rgba(255,255,255,.94) !important;
  background: transparent !important;
  font-weight: 650 !important;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease !important;
}
.family-vuexy-body .layout-menu .menu-item > .menu-link .menu-icon {
  color: rgba(255,255,255,.92) !important;
}
.family-vuexy-body .layout-menu .menu-item:not(.active) > .menu-link:hover,
.family-vuexy-body .layout-menu .menu-item:not(.active) > .menu-link:focus-visible {
  background: rgba(255,255,255,.16) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07) !important;
}
.family-vuexy-body .layout-menu .menu-item:not(.active) > .menu-link:hover .menu-icon,
.family-vuexy-body .layout-menu .menu-item:not(.active) > .menu-link:focus-visible .menu-icon {
  color: #fff !important;
}
.family-vuexy-body .layout-menu .menu-item.active > .menu-link,
.family-vuexy-body .layout-menu .menu-item.active > .menu-link:hover,
.family-vuexy-body .layout-menu .menu-item.active > .menu-link:focus-visible {
  background: #fff !important;
  color: #5b50d6 !important;
  box-shadow: 0 .28rem .8rem rgba(42,32,126,.22) !important;
}
.family-vuexy-body .layout-menu .menu-item.active > .menu-link .menu-icon,
.family-vuexy-body .layout-menu .menu-item.active > .menu-link:hover .menu-icon,
.family-vuexy-body .layout-menu .menu-item.active > .menu-link:focus-visible .menu-icon {
  color: #6559e8 !important;
}
.family-vuexy-body .layout-menu .menu-item.disabled > .menu-link {
  color: rgba(255,255,255,.55) !important;
  background: transparent !important;
  opacity: 1 !important;
}
.family-vuexy-body .layout-menu .menu-item.disabled > .menu-link .menu-icon {
  color: rgba(255,255,255,.5) !important;
}

/* Collapsed desktop mode: centered icon pills with no clipping. */
@media (min-width: 1200px) {
  html.layout-menu-collapsed .family-vuexy-body .layout-menu .menu-item > .menu-link {
    width: 2.8rem !important;
    min-width: 2.8rem !important;
    height: 2.8rem !important;
    min-height: 2.8rem !important;
    margin-inline: auto !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  html.layout-menu-collapsed .family-vuexy-body .layout-menu .menu-item > .menu-link .menu-icon {
    margin-inline: 0 !important;
    font-size: 1.28rem !important;
  }
  html.layout-menu-collapsed .family-vuexy-body .layout-menu .menu-item > .menu-link > div:not(.badge) {
    width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
  }
  html.layout-menu-collapsed .family-vuexy-body .layout-menu .menu-header {
    margin-block: .65rem .35rem !important;
    padding: .25rem 0 !important;
  }
  html.layout-menu-collapsed .family-vuexy-body .layout-menu .menu-header::before {
    width: 1.45rem !important;
    margin-inline: auto !important;
    background-color: rgba(255,255,255,.42) !important;
  }
}

/* Light mode content: use crisp near-black typography instead of washed-out gray. */
html:not([data-theme="dark"]) .family-vuexy-body,
html:not([data-theme="dark"]) .family-vuexy-body .content-wrapper,
html:not([data-theme="dark"]) .family-vuexy-body .family-content {
  color: #111827 !important;
}
html:not([data-theme="dark"]) .family-vuexy-body .page-title,
html:not([data-theme="dark"]) .family-vuexy-body h1,
html:not([data-theme="dark"]) .family-vuexy-body h2,
html:not([data-theme="dark"]) .family-vuexy-body h3,
html:not([data-theme="dark"]) .family-vuexy-body h4,
html:not([data-theme="dark"]) .family-vuexy-body h5,
html:not([data-theme="dark"]) .family-vuexy-body h6,
html:not([data-theme="dark"]) .family-vuexy-body .card-header,
html:not([data-theme="dark"]) .family-vuexy-body .detail-value,
html:not([data-theme="dark"]) .family-vuexy-body .tree-name,
html:not([data-theme="dark"]) .family-vuexy-body .stat-value {
  color: #0f172a !important;
}
html:not([data-theme="dark"]) .family-vuexy-body .card,
html:not([data-theme="dark"]) .family-vuexy-body .card-body,
html:not([data-theme="dark"]) .family-vuexy-body .table,
html:not([data-theme="dark"]) .family-vuexy-body .table td,
html:not([data-theme="dark"]) .family-vuexy-body .form-label,
html:not([data-theme="dark"]) .family-vuexy-body label,
html:not([data-theme="dark"]) .family-vuexy-body .form-control,
html:not([data-theme="dark"]) .family-vuexy-body .form-select,
html:not([data-theme="dark"]) .family-vuexy-body .form-textarea,
html:not([data-theme="dark"]) .family-vuexy-body .select2-selection__rendered,
html:not([data-theme="dark"]) .family-vuexy-body .family-modal,
html:not([data-theme="dark"]) .family-vuexy-body .family-user-meta strong {
  color: #111827 !important;
}
html:not([data-theme="dark"]) .family-vuexy-body .table td,
html:not([data-theme="dark"]) .family-vuexy-body .form-label,
html:not([data-theme="dark"]) .family-vuexy-body label {
  font-weight: 600 !important;
}
html:not([data-theme="dark"]) .family-vuexy-body .table th {
  color: #374151 !important;
  font-weight: 700 !important;
}
html:not([data-theme="dark"]) .family-vuexy-body .text-body-secondary,
html:not([data-theme="dark"]) .family-vuexy-body .text-muted,
html:not([data-theme="dark"]) .family-vuexy-body .page-subtitle,
html:not([data-theme="dark"]) .family-vuexy-body .form-help,
html:not([data-theme="dark"]) .family-vuexy-body .detail-label,
html:not([data-theme="dark"]) .family-vuexy-body .tree-meta,
html:not([data-theme="dark"]) .family-vuexy-body .family-user-meta small,
html:not([data-theme="dark"]) .family-vuexy-body .family-navbar-date {
  color: #4b5563 !important;
}
html:not([data-theme="dark"]) .family-vuexy-body input::placeholder,
html:not([data-theme="dark"]) .family-vuexy-body textarea::placeholder {
  color: #9ca3af !important;
  opacity: 1;
}

/* v1.7.29 — stronger dark-mode contrast + slightly darker purple identity. */
.family-vuexy-body {
  --family-purple: #6458d8;
  --family-purple-dark: #564bc1;
  --family-purple-soft: #efedff;
  --bs-primary: #6458d8;
  --bs-primary-rgb: 100, 88, 216;
  --bs-primary-bg-subtle: #efedff;
  --bs-primary-border-subtle: #c9c4f8;
}

/* Slightly darker purple than the previous #7367f0, while keeping the Vuexy character. */
.family-vuexy-body .layout-menu {
  background: linear-gradient(180deg, #6458d8 0%, #5146b9 100%) !important;
}
.family-vuexy-body .layout-menu .menu-item.active > .menu-link,
.family-vuexy-body .layout-menu .menu-item.active > .menu-link:hover,
.family-vuexy-body .layout-menu .menu-item.active > .menu-link:focus-visible {
  color: #5045b7 !important;
}
.family-vuexy-body .layout-menu .menu-item.active > .menu-link .menu-icon {
  color: #5b4fca !important;
}
.family-vuexy-body .layout-menu .family-brand-logo,
html.layout-menu-collapsed .family-vuexy-body .family-sidebar-toggle {
  color: #5a4ec8 !important;
}
.family-vuexy-body .btn-primary,
.family-vuexy-body .preference-option.active,
.family-vuexy-body .pagination .active span {
  background: #6458d8 !important;
  border-color: #6458d8 !important;
}
.family-vuexy-body .btn-primary:hover,
.family-vuexy-body .btn-primary:focus {
  background: #564bc1 !important;
  border-color: #564bc1 !important;
}
.family-vuexy-body .table a.link,
.family-vuexy-body a.link {
  color: #5c50cb;
}

/* Dark mode: increase separation between page, panels, controls and family-tree canvas. */
html[data-theme="dark"] .family-vuexy-body,
[data-bs-theme="dark"] .family-vuexy-body {
  --family-purple-soft: rgba(126, 112, 232, .20);
  --bs-primary: #7468df;
  --bs-primary-rgb: 116, 104, 223;
  --bs-primary-bg-subtle: rgba(116, 104, 223, .18);
  --bs-primary-border-subtle: rgba(150, 140, 239, .42);
  --bs-body-bg: #202435;
  --bs-paper-bg: #2b3046;
  --bs-body-color: #eef0f7;
  --bs-heading-color: #ffffff;
  --bs-secondary-color: #c0c6d7;
  --bs-border-color: #454d6a;
  color: #eef0f7 !important;
  background: #202435 !important;
}
html[data-theme="dark"] .family-vuexy-body .layout-page,
html[data-theme="dark"] .family-vuexy-body .content-wrapper,
html[data-theme="dark"] .family-vuexy-body .family-content,
[data-bs-theme="dark"] .family-vuexy-body .layout-page,
[data-bs-theme="dark"] .family-vuexy-body .content-wrapper,
[data-bs-theme="dark"] .family-vuexy-body .family-content {
  background: #202435 !important;
  color: #eef0f7 !important;
}
html[data-theme="dark"] .family-vuexy-body .layout-navbar.navbar-detached,
[data-bs-theme="dark"] .family-vuexy-body .layout-navbar.navbar-detached {
  background: rgba(45, 50, 73, .98) !important;
  border-color: #48506d !important;
  box-shadow: 0 .25rem 1rem rgba(4, 7, 18, .28) !important;
}
html[data-theme="dark"] .family-vuexy-body .page-title,
html[data-theme="dark"] .family-vuexy-body h1,
html[data-theme="dark"] .family-vuexy-body h2,
html[data-theme="dark"] .family-vuexy-body h3,
html[data-theme="dark"] .family-vuexy-body h4,
html[data-theme="dark"] .family-vuexy-body h5,
html[data-theme="dark"] .family-vuexy-body h6,
html[data-theme="dark"] .family-vuexy-body .card-header,
html[data-theme="dark"] .family-vuexy-body .detail-value,
html[data-theme="dark"] .family-vuexy-body .stat-value,
html[data-theme="dark"] .family-vuexy-body .tree-name,
[data-bs-theme="dark"] .family-vuexy-body .page-title,
[data-bs-theme="dark"] .family-vuexy-body h1,
[data-bs-theme="dark"] .family-vuexy-body h2,
[data-bs-theme="dark"] .family-vuexy-body h3,
[data-bs-theme="dark"] .family-vuexy-body h4,
[data-bs-theme="dark"] .family-vuexy-body h5,
[data-bs-theme="dark"] .family-vuexy-body h6,
[data-bs-theme="dark"] .family-vuexy-body .card-header,
[data-bs-theme="dark"] .family-vuexy-body .detail-value,
[data-bs-theme="dark"] .family-vuexy-body .stat-value,
[data-bs-theme="dark"] .family-vuexy-body .tree-name {
  color: #ffffff !important;
}
html[data-theme="dark"] .family-vuexy-body .text-body-secondary,
html[data-theme="dark"] .family-vuexy-body .text-muted,
html[data-theme="dark"] .family-vuexy-body .page-subtitle,
html[data-theme="dark"] .family-vuexy-body .form-help,
html[data-theme="dark"] .family-vuexy-body .detail-label,
html[data-theme="dark"] .family-vuexy-body .tree-meta,
html[data-theme="dark"] .family-vuexy-body .family-navbar-date,
html[data-theme="dark"] .family-vuexy-body .family-user-meta small,
[data-bs-theme="dark"] .family-vuexy-body .text-body-secondary,
[data-bs-theme="dark"] .family-vuexy-body .text-muted,
[data-bs-theme="dark"] .family-vuexy-body .page-subtitle,
[data-bs-theme="dark"] .family-vuexy-body .form-help,
[data-bs-theme="dark"] .family-vuexy-body .detail-label,
[data-bs-theme="dark"] .family-vuexy-body .tree-meta,
[data-bs-theme="dark"] .family-vuexy-body .family-navbar-date,
[data-bs-theme="dark"] .family-vuexy-body .family-user-meta small {
  color: #c3c9d9 !important;
}
html[data-theme="dark"] .family-vuexy-body .card,
html[data-theme="dark"] .family-vuexy-body .family-modal-dialog,
html[data-theme="dark"] .family-vuexy-body .tree-person-modal-card,
[data-bs-theme="dark"] .family-vuexy-body .card,
[data-bs-theme="dark"] .family-vuexy-body .family-modal-dialog,
[data-bs-theme="dark"] .family-vuexy-body .tree-person-modal-card {
  background: #2b3046 !important;
  border: 1px solid #414965 !important;
  box-shadow: 0 .3rem 1rem rgba(4, 7, 18, .20) !important;
}
html[data-theme="dark"] .family-vuexy-body .card-header,
[data-bs-theme="dark"] .family-vuexy-body .card-header {
  border-bottom-color: #454d6a !important;
}
html[data-theme="dark"] .family-vuexy-body .table,
html[data-theme="dark"] .family-vuexy-body .table td,
[data-bs-theme="dark"] .family-vuexy-body .table,
[data-bs-theme="dark"] .family-vuexy-body .table td {
  color: #eef0f7 !important;
}
html[data-theme="dark"] .family-vuexy-body .table th,
[data-bs-theme="dark"] .family-vuexy-body .table th {
  background: #30364d !important;
  color: #d8dce8 !important;
  border-color: #454d6a !important;
}
html[data-theme="dark"] .family-vuexy-body .table td,
[data-bs-theme="dark"] .family-vuexy-body .table td {
  border-color: #404761 !important;
}
html[data-theme="dark"] .family-vuexy-body .table tr:hover td,
[data-bs-theme="dark"] .family-vuexy-body .table tr:hover td {
  background: rgba(255,255,255,.035) !important;
}
html[data-theme="dark"] .family-vuexy-body .form-control,
html[data-theme="dark"] .family-vuexy-body .form-select,
html[data-theme="dark"] .family-vuexy-body .form-textarea,
html[data-theme="dark"] .family-vuexy-body .select2-container .select2-selection--single,
[data-bs-theme="dark"] .family-vuexy-body .form-control,
[data-bs-theme="dark"] .family-vuexy-body .form-select,
[data-bs-theme="dark"] .family-vuexy-body .form-textarea,
[data-bs-theme="dark"] .family-vuexy-body .select2-container .select2-selection--single {
  background: #282d42 !important;
  border-color: #515a78 !important;
  color: #f1f3f8 !important;
}
html[data-theme="dark"] .family-vuexy-body .select2-container--default .select2-selection--single .select2-selection__rendered,
[data-bs-theme="dark"] .family-vuexy-body .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #f1f3f8 !important;
}
html[data-theme="dark"] .family-vuexy-body input::placeholder,
html[data-theme="dark"] .family-vuexy-body textarea::placeholder,
[data-bs-theme="dark"] .family-vuexy-body input::placeholder,
[data-bs-theme="dark"] .family-vuexy-body textarea::placeholder {
  color: #969eb4 !important;
  opacity: 1;
}
html[data-theme="dark"] .family-vuexy-body .btn-outline,
[data-bs-theme="dark"] .family-vuexy-body .btn-outline {
  border-color: #555e7c !important;
  color: #eef0f7 !important;
  background: #2a2f44 !important;
}
html[data-theme="dark"] .family-vuexy-body .btn-outline:hover,
[data-bs-theme="dark"] .family-vuexy-body .btn-outline:hover {
  border-color: #786ce1 !important;
  background: rgba(116,104,223,.18) !important;
  color: #ffffff !important;
}

/* Family tree is the place where low contrast was most noticeable. */
html[data-theme="dark"] .family-vuexy-body .tree-viewport,
[data-bs-theme="dark"] .family-vuexy-body .tree-viewport {
  background-color: #24293c !important;
  background-image:
    linear-gradient(#3a425e 1px, transparent 1px),
    linear-gradient(90deg, #3a425e 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
  border-color: #4a5371 !important;
}
html[data-theme="dark"] .family-vuexy-body .tree-node,
[data-bs-theme="dark"] .family-vuexy-body .tree-node {
  background: #30364d !important;
  border-color: #515a78 !important;
  box-shadow: 0 .2rem .7rem rgba(3, 6, 16, .30) !important;
  color: #f6f7fb !important;
}
html[data-theme="dark"] .family-vuexy-body .tree-node:hover,
[data-bs-theme="dark"] .family-vuexy-body .tree-node:hover {
  border-color: #8276e8 !important;
  box-shadow: 0 0 0 2px rgba(126,112,232,.18), 0 .3rem .9rem rgba(3,6,16,.32) !important;
}
html[data-theme="dark"] .family-vuexy-body .tree-node .tree-name,
[data-bs-theme="dark"] .family-vuexy-body .tree-node .tree-name {
  color: #ffffff !important;
  font-weight: 800 !important;
}
html[data-theme="dark"] .family-vuexy-body .tree-node .tree-meta,
[data-bs-theme="dark"] .family-vuexy-body .tree-node .tree-meta {
  color: #c2c8d8 !important;
}
html[data-theme="dark"] .family-vuexy-body .tree-node.is-deceased .tree-name,
[data-bs-theme="dark"] .family-vuexy-body .tree-node.is-deceased .tree-name {
  color: #d5d9e4 !important;
}
html[data-theme="dark"] .family-vuexy-body .detail-item,
html[data-theme="dark"] .family-vuexy-body .summary-box,
html[data-theme="dark"] .family-vuexy-body .parent-pair-person,
html[data-theme="dark"] .family-vuexy-body .tree-family-history-card,
html[data-theme="dark"] .family-vuexy-body .family-history-meta,
[data-bs-theme="dark"] .family-vuexy-body .detail-item,
[data-bs-theme="dark"] .family-vuexy-body .summary-box,
[data-bs-theme="dark"] .family-vuexy-body .parent-pair-person,
[data-bs-theme="dark"] .family-vuexy-body .tree-family-history-card,
[data-bs-theme="dark"] .family-vuexy-body .family-history-meta {
  background: #30364b !important;
  border-color: #48516e !important;
}
html[data-theme="dark"] .family-vuexy-body .tree-family-history-head,
[data-bs-theme="dark"] .family-vuexy-body .tree-family-history-head {
  background: #30364b !important;
}


/* v1.7.30 — tidy collapsed sidebar control + mobile modal scrolling */
/* Collapse control: use a compact rounded-square chevron instead of a floating circle. */
.family-vuexy-body .family-sidebar-toggle {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: .5rem;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
  box-shadow: none;
}
.family-vuexy-body .family-sidebar-toggle:hover,
.family-vuexy-body .family-sidebar-toggle:focus-visible {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
  color: #fff;
  outline: 0;
}
.family-vuexy-body .family-sidebar-toggle .family-collapse-icon {
  font-size: 1rem;
  line-height: 1;
}

@media (min-width: 1200px) {
  html.layout-menu-collapsed .family-vuexy-body .family-app-brand {
    position: relative;
    height: 88px;
    padding: 9px 0 10px !important;
    flex-direction: column;
    justify-content: flex-start;
    gap: 7px;
    overflow: visible;
  }
  html.layout-menu-collapsed .family-vuexy-body .family-app-brand .app-brand-link {
    flex: 0 0 auto;
    width: 38px;
    min-width: 38px;
    justify-content: center;
    gap: 0;
  }
  html.layout-menu-collapsed .family-vuexy-body .family-brand-logo {
    margin: 0 !important;
  }
  html.layout-menu-collapsed .family-vuexy-body .family-sidebar-toggle {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 !important;
    width: 26px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 6px;
    background: rgba(255,255,255,.14) !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    color: #fff !important;
    box-shadow: none !important;
  }
  html.layout-menu-collapsed .family-vuexy-body .family-sidebar-toggle:hover,
  html.layout-menu-collapsed .family-vuexy-body .family-sidebar-toggle:focus-visible {
    background: rgba(255,255,255,.22) !important;
    color: #fff !important;
  }
}

/* Mobile: modal header stays visible, only modal content scrolls, so submit/save buttons remain reachable. */
@media (max-width: 760px) {
  .family-vuexy-body .family-modal,
  .family-vuexy-body .tree-person-modal {
    box-sizing: border-box;
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-right: max(8px, env(safe-area-inset-right));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    padding-left: max(8px, env(safe-area-inset-left));
    overflow: hidden !important;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  .family-vuexy-body .family-modal-dialog,
  .family-vuexy-body .tree-person-modal-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 16px);
    margin: 0 auto !important;
    overflow: hidden !important;
  }
  .family-vuexy-body .family-modal-head,
  .family-vuexy-body .tree-person-modal-head {
    position: relative !important;
    top: auto !important;
    flex: 0 0 auto;
    z-index: 30;
  }
  .family-vuexy-body .family-modal-body,
  .family-vuexy-body .tree-person-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    padding-bottom: calc(28px + env(safe-area-inset-bottom)) !important;
  }
  .family-vuexy-body .family-modal-body form,
  .family-vuexy-body .tree-person-modal-body form {
    min-height: min-content;
  }
  .family-vuexy-body .family-modal-body .actions,
  .family-vuexy-body .family-modal-body .form-actions,
  .family-vuexy-body .tree-person-modal-body .actions,
  .family-vuexy-body .tree-person-modal-body .form-actions {
    padding-bottom: 6px;
  }
}

@supports (height: 100dvh) {
  @media (max-width: 760px) {
    .family-vuexy-body .family-modal,
    .family-vuexy-body .tree-person-modal {
      height: 100dvh;
      max-height: 100dvh;
    }
    .family-vuexy-body .family-modal-dialog,
    .family-vuexy-body .tree-person-modal-card {
      max-height: calc(100dvh - 16px);
    }
  }
}

/* v1.7.31 — collapsed sidebar interaction + stronger typography/contrast. */
@media (min-width: 1200px) {
  /* When minimized, there is no extra circle/arrow. Click the SK logo to expand. */
  html.layout-menu-collapsed .family-vuexy-body .family-app-brand {
    height: 66px !important;
    padding: 10px 0 !important;
    justify-content: flex-start !important;
    gap: 0 !important;
  }
  html.layout-menu-collapsed .family-vuexy-body .family-sidebar-toggle {
    display: none !important;
  }
  html.layout-menu-collapsed .family-vuexy-body .family-app-brand .app-brand-link {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    cursor: pointer;
  }
  html:not(.layout-menu-collapsed) .family-vuexy-body .family-sidebar-toggle {
    display: inline-flex !important;
  }
}

/* Light mode: make content typography clearly black instead of grayish-purple. */
html:not([data-theme="dark"]) .family-vuexy-body,
html:not([data-theme="dark"]) .family-vuexy-body .content-wrapper,
html:not([data-theme="dark"]) .family-vuexy-body .family-content,
html:not([data-theme="dark"]) .family-vuexy-body .card,
html:not([data-theme="dark"]) .family-vuexy-body .card-body,
html:not([data-theme="dark"]) .family-vuexy-body .table,
html:not([data-theme="dark"]) .family-vuexy-body .table td,
html:not([data-theme="dark"]) .family-vuexy-body .form-control,
html:not([data-theme="dark"]) .family-vuexy-body .form-select,
html:not([data-theme="dark"]) .family-vuexy-body .select2-selection__rendered,
html:not([data-theme="dark"]) .family-vuexy-body .family-modal {
  color: #050505 !important;
}
html:not([data-theme="dark"]) .family-vuexy-body .page-title,
html:not([data-theme="dark"]) .family-vuexy-body h1,
html:not([data-theme="dark"]) .family-vuexy-body h2,
html:not([data-theme="dark"]) .family-vuexy-body h3,
html:not([data-theme="dark"]) .family-vuexy-body h4,
html:not([data-theme="dark"]) .family-vuexy-body h5,
html:not([data-theme="dark"]) .family-vuexy-body h6,
html:not([data-theme="dark"]) .family-vuexy-body .form-label,
html:not([data-theme="dark"]) .family-vuexy-body label,
html:not([data-theme="dark"]) .family-vuexy-body .card-header,
html:not([data-theme="dark"]) .family-vuexy-body .detail-value,
html:not([data-theme="dark"]) .family-vuexy-body .tree-name,
html:not([data-theme="dark"]) .family-vuexy-body .stat-value {
  color: #000 !important;
}
html:not([data-theme="dark"]) .family-vuexy-body .text-body-secondary,
html:not([data-theme="dark"]) .family-vuexy-body .text-muted,
html:not([data-theme="dark"]) .family-vuexy-body .page-subtitle,
html:not([data-theme="dark"]) .family-vuexy-body .form-help,
html:not([data-theme="dark"]) .family-vuexy-body .detail-label,
html:not([data-theme="dark"]) .family-vuexy-body .tree-meta,
html:not([data-theme="dark"]) .family-vuexy-body .family-user-meta small,
html:not([data-theme="dark"]) .family-vuexy-body .family-navbar-date {
  color: #30343b !important;
}
html:not([data-theme="dark"]) .family-vuexy-body .table th {
  color: #20242a !important;
  font-weight: 800 !important;
}

/* Dark mode: purple text links become light lavender/white for readable contrast. */
html[data-theme="dark"] .family-vuexy-body a:not(.btn):not(.menu-link):not(.app-brand-link),
[data-bs-theme="dark"] .family-vuexy-body a:not(.btn):not(.menu-link):not(.app-brand-link),
html[data-theme="dark"] .family-vuexy-body .table a.link,
[data-bs-theme="dark"] .family-vuexy-body .table a.link,
html[data-theme="dark"] .family-vuexy-body a.link,
[data-bs-theme="dark"] .family-vuexy-body a.link {
  color: #c9c4ff !important;
  font-weight: 700;
}
html[data-theme="dark"] .family-vuexy-body a:not(.btn):not(.menu-link):not(.app-brand-link):hover,
[data-bs-theme="dark"] .family-vuexy-body a:not(.btn):not(.menu-link):not(.app-brand-link):hover,
html[data-theme="dark"] .family-vuexy-body .table a.link:hover,
[data-bs-theme="dark"] .family-vuexy-body .table a.link:hover,
html[data-theme="dark"] .family-vuexy-body a.link:hover,
[data-bs-theme="dark"] .family-vuexy-body a.link:hover {
  color: #fff !important;
}
html[data-theme="dark"] .family-vuexy-body .badge-primary,
html[data-theme="dark"] .family-vuexy-body .stat-icon,
[data-bs-theme="dark"] .family-vuexy-body .badge-primary,
[data-bs-theme="dark"] .family-vuexy-body .stat-icon {
  color: #ddd9ff !important;
}

/* v1.7.32 — exact collapsed-logo centering. */
@media (min-width: 1200px) {
  html.layout-menu-collapsed .family-vuexy-body .family-app-brand {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 66px !important;
    padding: 0 !important;
  }
  html.layout-menu-collapsed .family-vuexy-body .family-app-brand .app-brand-link {
    position: absolute !important;
    top: 10px !important;
    left: 50% !important;
    right: auto !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  html.layout-menu-collapsed .family-vuexy-body .family-brand-logo {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    margin: 0 !important;
  }
}

/* v1.7.33 — exact collapsed-brand centering. */
@media (min-width: 1200px) {
  html.layout-menu-collapsed .family-vuexy-body .family-app-brand {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    height: 66px !important;
    padding: 10px 0 !important;
    margin: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  html.layout-menu-collapsed .family-vuexy-body .family-app-brand .app-brand-link {
    position: absolute !important;
    top: 10px !important;
    left: 50% !important;
    right: auto !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  html.layout-menu-collapsed .family-vuexy-body .family-app-brand .family-brand-logo {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
    margin: 0 !important;
  }
}

/* v1.7.34 — collapsed logo visual centering + dashboard statistic label contrast. */
@media (min-width: 1200px) {
  /* Vuexy collapsed menu is 4.375rem (70px). The app-brand's internal box is
     slightly narrower because of the menu geometry, so compensate visually
     to align SK with the centered menu icons below it. */
  html.layout-menu-collapsed .family-vuexy-body .family-app-brand .app-brand-link {
    left: calc(50% + 0.375rem) !important;
  }
}

/* Dashboard statistic captions should be crisp black in light mode. */
html:not([data-theme="dark"]) .family-vuexy-body .stat-label {
  color: #000 !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
