:root {
  --sc-font-sans: "Inter", "Aptos", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sc-sidebar-width: 260px;
  --sc-topbar-height: 132px;
  --sc-ink: #172033;
  --sc-navy: #1f3a5f;
  --sc-blue: #2f6f9f;
  --sc-gold: #c9a24a;
  --sc-mint: #2f8f72;
  --sc-red: #b54a4a;
  --sc-paper: #f4f7f8;
  --sc-surface: #ffffff;
  --sc-soft: #eef3f7;
  --sc-border: #d8e0e7;
  --sc-muted: #68758a;
  --bs-body-font-family: var(--sc-font-sans);
  --bs-font-sans-serif: var(--sc-font-sans);
  --bs-primary: var(--sc-blue);
  --bs-primary-rgb: 47, 111, 159;
}

*,
*::before,
*::after {
  letter-spacing: 0;
}

html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
  font-family: var(--sc-font-sans);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  margin-bottom: 0;
  background: var(--sc-paper);
  color: var(--sc-ink);
  font-family: var(--sc-font-sans);
  font-weight: 400;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--sc-blue);
}

.auth-page { background: #edf3f4; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 44%) minmax(0, 1fr); }
.auth-brand-panel { position: relative; display: flex; align-items: center; overflow: hidden; padding: clamp(2.5rem, 6vw, 6rem); color: #fff; background: linear-gradient(145deg, #123f38 0%, #174b42 62%, #1b5a4e 100%); }
.auth-brand-panel::before, .auth-brand-panel::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.09); }
.auth-brand-panel::before { width: 430px; height: 430px; right: -220px; top: -120px; }
.auth-brand-panel::after { width: 300px; height: 300px; left: -170px; bottom: -130px; }
.auth-brand-content { position: relative; z-index: 1; max-width: 560px; }
.auth-brand-logo { display: block; width: min(270px, 68%); height: auto; margin-bottom: clamp(3rem, 8vh, 6rem); }
.auth-eyebrow, .auth-kicker { color: #20b8c5; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.auth-brand-copy h1 { max-width: 520px; margin: .85rem 0 1rem; font-size: clamp(1.65rem, 2.45vw, 2.45rem); line-height: 1.12; font-weight: 800; }
.auth-brand-copy p { max-width: 480px; margin: 0; color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.65; }
.auth-brand-accent { position: absolute; right: 0; top: 0; width: 7px; height: 100%; background: linear-gradient(#1bb9c7 0 58%, #f36c52 58%); }
.auth-form-panel { display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 5vw, 5rem); }
.auth-form-wrap { width: 100%; max-width: 480px; }
.auth-card { padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid rgba(31,58,95,.12); border-radius: 20px; background: #fff; box-shadow: 0 24px 65px rgba(25,55,67,.12); }
.auth-card-header { margin-bottom: 2rem; }
.auth-card-header h2 { margin: .55rem 0 .55rem; font-size: clamp(2rem, 4vw, 2.65rem); font-weight: 800; color: var(--sc-ink); }
.auth-card-header p { margin: 0; color: var(--sc-muted); font-size: 1rem; }
.auth-form { display: grid; gap: 1.25rem; }
.auth-form .form-label { margin-bottom: .5rem; color: #344054; font-weight: 700; }
.auth-control { min-height: 52px; padding: .75rem .9rem; border-color: #cfd9e2; border-radius: 10px; background: #fbfcfd; }
.auth-control::placeholder { color: #98a2b3; }
.auth-submit { min-height: 52px; margin-top: .35rem; border-radius: 10px; font-size: 1rem; font-weight: 800; }
.auth-alert:empty { display: none; }
.auth-card-footer { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid #e7ecef; color: var(--sc-muted); font-size: .82rem; text-align: center; }
.auth-mobile-brand { display: none; }

@media (max-width: 800px) {
  .auth-shell { display: block; min-height: 100vh; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { min-height: 100vh; padding: 1.5rem; }
  .auth-mobile-brand { display: block; margin: 0 auto 1.5rem; text-align: center; }
  .auth-mobile-brand img { width: min(280px, 72%); height: auto; }
  .auth-card { border-radius: 16px; }
}

button,
input,
optgroup,
select,
textarea,
.btn,
.form-control,
.form-select,
.navbar,
.app-sidebar,
.sidebar-nav,
.directory-panel,
.record-card,
.surface-panel {
  font-family: var(--sc-font-sans);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: rgba(47, 111, 159, .55);
  box-shadow: 0 0 0 .22rem rgba(47, 111, 159, .16);
}

.btn-primary {
  --bs-btn-bg: var(--sc-blue);
  --bs-btn-border-color: var(--sc-blue);
  --bs-btn-hover-bg: #285f88;
  --bs-btn-hover-border-color: #285f88;
  --bs-btn-active-bg: #224f73;
  --bs-btn-active-border-color: #224f73;
}

.btn-success {
  --bs-btn-bg: var(--sc-mint);
  --bs-btn-border-color: var(--sc-mint);
  --bs-btn-hover-bg: #287b62;
  --bs-btn-hover-border-color: #287b62;
}

.btn-outline-primary {
  --bs-btn-color: var(--sc-blue);
  --bs-btn-border-color: rgba(47, 111, 159, .45);
  --bs-btn-hover-bg: var(--sc-blue);
  --bs-btn-hover-border-color: var(--sc-blue);
}

.btn-outline-secondary {
  --bs-btn-color: var(--sc-ink);
  --bs-btn-border-color: var(--sc-border);
  --bs-btn-hover-bg: var(--sc-soft);
  --bs-btn-hover-color: var(--sc-ink);
  --bs-btn-hover-border-color: var(--sc-border);
}

.btn-outline-danger {
  --bs-btn-color: var(--sc-red);
  --bs-btn-border-color: rgba(181, 74, 74, .45);
}

.app-shell {
  min-height: 100vh;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sc-sidebar-width);
  padding: 1.25rem;
  flex-direction: column;
  background: #173f35;
  border-right: 0;
  box-shadow: none;
}

.sidebar-brand {
  display: block;
  color: #fff;
  text-decoration: none;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.sidebar-brand-logo {
    display: block;
    width: 50%;
    height: auto;
    max-height: 92px;
    object-fit: contain;
    object-position: left center;
    margin: 0 auto;
}

.mobile-brand-logo {
  display: block;
  width: min(210px, 62vw);
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.app-sidebar .brand-name {
  color: #fff;
}

.app-sidebar .brand-subtitle {
  color: rgba(255, 255, 255, .68);
}

.sidebar-nav {
  display: grid;
  gap: .35rem;
  margin-top: 1.25rem;
}

.sidebar-nav a {
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  font-weight: 650;
  border-radius: 10px;
  padding: .75rem .85rem;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  color: rgba(255, 255, 255, .62);
  font-weight: 600;
  font-size: .9rem;
}

.app-navbar {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--sc-border);
  box-shadow: 0 10px 30px rgba(23, 32, 51, .06);
  backdrop-filter: blur(10px);
}

.app-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  min-height: var(--sc-topbar-height);
  padding: .75rem .9rem;
  background: rgba(248, 250, 249, .96);
  border-bottom: 1px solid var(--sc-border);
  box-shadow: 0 12px 30px rgba(23, 32, 51, .08);
  backdrop-filter: blur(12px);
}

.mobile-brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.mobile-menu-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  background: #fff;
}

.mobile-menu-icon { display: grid; gap: 4px; width: 20px; margin: 0 auto; }
.mobile-menu-icon span { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--sc-ink); }

.mobile-menu-panel {
  overflow: hidden;
  margin-top: .8rem;
  border: 1px solid rgba(23, 74, 65, .16);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(23, 50, 58, .14);
}

.mobile-menu-brand { display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 1rem 1.25rem; background: #174a41; }
.mobile-menu-brand img { display: block; width: min(230px, 65%); height: auto; }

.mobile-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  padding: 1rem;
  background: #f7faf9;
}

.mobile-nav a {
  color: var(--sc-ink);
  text-decoration: none;
  font-weight: 700;
  padding: .8rem .85rem;
  border: 1px solid #e1e9e6;
  border-radius: 10px;
  background: #fff;
}

.mobile-nav a:hover {
  color: #174a41;
  border-color: rgba(47,143,114,.35);
  background: #eaf5f1;
}

.mobile-user-panel { display: grid; gap: 1rem; padding: 1rem 1.1rem 1.1rem; border-top: 1px solid #dce7e3; background: #eef6f3; }
.mobile-user-identity { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.mobile-user-identity > div { display: grid; min-width: 0; }
.mobile-user-identity small { color: var(--sc-muted); font-size: .72rem; }
.mobile-user-avatar { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 50%; color: #fff; background: #2f8f72; font-weight: 800; }
.mobile-user-name { color: var(--sc-ink); font-weight: 750; overflow-wrap: anywhere; }
.mobile-logout-button { width: 100%; padding: .62rem 1rem; border: 1px solid rgba(181,74,74,.32); border-radius: 9px; color: #9b3f3f; background: rgba(255,255,255,.72); font-weight: 750; }
.mobile-logout-button:hover { color: #fff; border-color: var(--sc-red); background: var(--sc-red); }

@media (max-width: 991.98px) {
  :root { --sc-topbar-height: 72px; }
  .app-topbar { position: sticky; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0; }
  .app-main { padding-top: 1rem; }
  .mobile-brand-row { grid-column: 2; grid-row: 1; margin-left: .65rem; }
  .topbar-content { grid-column: 1; grid-row: 1; display: block; min-width: 0; }
  .mobile-menu-panel { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .global-search input { height: 42px; padding-right: .8rem; border-radius: 11px; box-shadow: none; }
  .mobile-menu-button { box-shadow: none; }
}

.topbar-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
  align-items: center;
}

.global-search {
  position: relative;
  min-width: 0;
}

.global-search input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--sc-border);
  border-radius: 14px;
  background: #fff;
  color: var(--sc-ink);
  padding: 0 4.7rem 0 2.6rem;
  box-shadow: 0 12px 26px rgba(23, 32, 51, .07);
}

.global-search input::placeholder {
  color: #728093;
}

.global-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sc-muted);
  font-size: 1.15rem;
  z-index: 1;
}

.global-search-shortcut {
  position: absolute;
  right: .7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sc-muted);
  border: 1px solid var(--sc-border);
  border-radius: 8px;
  padding: .18rem .45rem;
  font-size: .78rem;
  background: #f9fbfa;
}

.global-search-results {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: min(70vh, 620px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(23, 32, 51, .18);
}

.search-group {
  padding: .8rem 0;
  border-bottom: 1px solid #e8edf1;
}

.search-group:last-child {
  border-bottom: 0;
}

.search-group-title {
  color: var(--sc-muted);
  font-size: .78rem;
  font-weight: 750;
  text-transform: uppercase;
  padding: 0 1rem .35rem;
}

.search-result-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  color: var(--sc-ink);
  text-decoration: none;
  padding: .7rem 1rem;
}

.search-result-item:hover,
.search-result-item:focus {
  background: #f4f8f6;
  color: var(--sc-ink);
}

.search-result-title {
  font-weight: 750;
}

.search-result-description {
  color: var(--sc-muted);
  font-size: .92rem;
  margin-top: .1rem;
}

.search-result-type {
  align-self: start;
  color: #0d6b5c;
  background: #e7f5ef;
  border-radius: 999px;
  padding: .22rem .55rem;
  font-size: .75rem;
  font-weight: 700;
}

.topbar-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-width: 0;
}

.topbar-user-name {
  color: var(--sc-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sc-navy);
  color: #fff;
  font-weight: 750;
}

.brand-text {
  line-height: 1.05;
}

.brand-name {
  font-weight: 750;
  color: var(--sc-ink);
}

.brand-subtitle {
  color: var(--sc-muted);
  font-size: .78rem;
}

.app-navbar .nav-link {
  color: var(--sc-ink);
  border-radius: 8px;
  font-weight: 650;
  padding: .7rem .85rem;
}

.app-navbar .nav-link:hover {
  background: var(--sc-soft);
  color: var(--sc-navy);
}

.app-main {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--sc-topbar-height) + 1rem) .9rem 5.5rem;
  min-width: 0;
}

.app-footer {
  color: var(--sc-muted);
  font-size: .88rem;
  padding: 1.25rem 0;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 1rem;
}

.page-title {
  color: var(--sc-ink);
  font-size: clamp(1.55rem, 3.8vw, 2.25rem);
  font-weight: 750;
  margin: 0;
}

.page-kicker {
  color: var(--sc-muted);
  font-weight: 500;
  margin: 0;
}

.hero-panel {
  background: linear-gradient(135deg, var(--sc-navy), #244a74 62%, #836f35);
  color: #fff;
  border-radius: 10px;
  padding: 1.2rem;
  box-shadow: 0 18px 44px rgba(31, 58, 95, .24);
}

.hero-panel .page-title,
.hero-panel .page-kicker {
  color: #fff;
}

.quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

.module-grid,
.record-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
}

.record-card {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(23, 32, 51, .05);
  min-width: 0;
}

.record-card-title {
  color: var(--sc-ink);
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.record-meta {
  color: var(--sc-muted);
  font-size: .92rem;
  overflow-wrap: anywhere;
}

.record-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
  margin-top: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: .28rem .65rem;
  background: rgba(201, 162, 74, .16);
  color: #725d24;
  font-weight: 650;
  font-size: .78rem;
}

.surface-panel {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(23, 32, 51, .05);
}

.touch-list .list-group-item {
  min-height: 58px;
  border-color: var(--sc-border);
}

.btn-touch {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 650;
}

.directory-panel {
  background: var(--sc-surface);
  border: 1px solid var(--sc-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(23, 32, 51, .08);
}

.required-mark { color: var(--sc-red); }
.people-filter-panel { margin-bottom: 1rem; padding: .85rem; border: 1px solid var(--sc-border); border-radius: 14px; background: var(--sc-surface); box-shadow: 0 10px 22px rgba(23, 32, 51, .05); }
.people-filter-heading, .people-search-row, .people-active-filters { display: flex; align-items: center; gap: .65rem; }
.people-filter-heading { justify-content: space-between; margin-bottom: .75rem; }
.people-filter-heading h2 { margin: 0; font-size: 1rem; font-weight: 750; }
.people-filter-heading span { color: var(--sc-muted); font-size: .8rem; }
.people-search-row .form-control { flex: 1 1 320px; }
.people-search-row .form-select { flex: 0 1 260px; }
.people-tag-filters { display: flex; gap: .45rem; margin-top: .7rem; padding-bottom: .15rem; overflow-x: auto; scrollbar-width: thin; }
.people-filter-pill { flex: 0 0 auto; min-height: 38px; padding: .5rem .75rem; border: 1px solid var(--sc-border); border-radius: 999px; color: var(--sc-ink); background: #fff; font-weight: 650; text-decoration: none; }
.people-filter-pill:hover, .people-filter-pill.active { border-color: rgba(47, 143, 114, .72); background: #e7f5ef; color: #0f5f56; }
.people-active-filters { flex-wrap: wrap; margin-top: .7rem; color: var(--sc-muted); font-size: .78rem; }
.people-active-filters span { font-weight: 750; color: var(--sc-ink); }
.people-active-filters small { padding: .2rem .45rem; border-radius: 999px; background: var(--sc-soft); }
.people-active-filters a { margin-left: auto; font-weight: 700; }
.people-empty-state { display: grid; gap: .25rem; padding: 2rem 1rem; text-align: center; color: var(--sc-muted); }
.people-empty-state strong { color: var(--sc-ink); }
.people-report-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin: 1rem 1.5rem; padding: .85rem 1rem; border-left: 4px solid var(--sc-mint); background: #f8faf9; }
.people-report-meta span { color: var(--sc-muted); }
.people-report-table-section { margin-top: 0; }
.people-report-table { font-size: .82rem; }
.people-report-email { overflow-wrap: anywhere; }

@media (max-width: 575.98px) {
  .people-page-header .btn { width: 100%; }
  .people-filter-heading { align-items: stretch; }
  .people-filter-heading > div { min-width: 0; }
  .people-export-button { flex: 0 0 auto; }
  .people-search-row { display: grid; grid-template-columns: 1fr auto; }
  .people-search-row .form-control { grid-column: 1 / -1; }
  .people-search-row .form-select { min-width: 0; }
  .people-active-filters a { margin-left: 0; }
  .people-report-meta { margin: 1rem; }
}

.directory-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 74px;
  padding: .9rem 1rem;
  color: var(--sc-ink);
  text-decoration: none;
  border-bottom: 1px solid #e8edf1;
}

.directory-row:last-child {
  border-bottom: 0;
}

.directory-row:hover {
  background: #f7fafc;
  color: var(--sc-ink);
}

.directory-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf4f1;
  color: var(--sc-navy);
  font-weight: 700;
}

.directory-title {
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.2;
}

.directory-subtitle {
  color: var(--sc-muted);
  font-weight: 400;
  margin-top: .2rem;
}

.directory-action {
  color: var(--sc-ink);
  font-weight: 700;
  white-space: nowrap;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.profile-field {
  padding: .75rem 0;
  border-bottom: 1px solid #e8edf1;
}

.profile-field:last-child {
  border-bottom: 0;
}

.profile-label {
  color: var(--sc-muted);
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-value {
  margin-top: .15rem;
  color: var(--sc-ink);
  font-weight: 500;
}

.profile-list-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-bottom: 1px solid #e8edf1;
}

.profile-list-row:last-child {
  border-bottom: 0;
}

.profile-status-table {
  overflow: hidden;
  border: 1px solid #dce5eb;
  border-radius: 12px;
}

.profile-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem .9rem;
  border-bottom: 1px solid #e8edf1;
  color: var(--sc-ink);
  font-weight: 650;
}

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

.profile-answer {
  min-width: 42px;
  padding: .22rem .58rem;
  border-radius: 999px;
  text-align: center;
  font-size: .82rem;
  font-weight: 800;
}

.profile-answer.is-yes { color: #176449; background: #e3f4ed; }
.profile-answer.is-no { color: #667085; background: #eef1f4; }

.person-form-panel { padding: 0; overflow: hidden; }

.person-form-section {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border-top: 1px solid #e5ebef;
}

.person-form-section:first-of-type { border-top: 0; }

.person-form-section-heading h2 {
  margin: 0;
  color: var(--sc-ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.person-form-section-heading p {
  margin: .3rem 0 0;
  color: var(--sc-muted);
  font-size: .88rem;
}

.person-form-section-fields { display: grid; gap: 1rem; min-width: 0; }
.person-status-options { display: grid; grid-template-columns: 1fr; gap: .65rem; }

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

@media (min-width: 992px) {
  .person-form-section { grid-template-columns: minmax(190px, .28fr) minmax(0, 1fr); padding: 1.75rem; }
}

.attendance-page {
  padding-bottom: 96px;
}

.attendance-actions-inner {
  max-width: 860px;
  margin: 0 auto;
}

.attendance-filter-card {
  max-width: 860px;
  margin: 0 auto 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: 12px;
  box-shadow: 0 12px 26px rgba(23, 32, 51, .06);
}

.attendance-event-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  color: var(--sc-muted);
  font-weight: 650;
  margin-bottom: .8rem;
}

.attendance-event-summary span:first-child {
  color: var(--sc-ink);
}

.attendance-filter-label {
  display: block;
  color: var(--sc-muted);
  font-size: .82rem;
  font-weight: 750;
  margin-bottom: .35rem;
  text-transform: uppercase;
}

.attendance-local-search {
  position: relative;
}

.attendance-local-search input {
  width: 100%;
  height: 44px;
  border: 1px solid #c8d6e1;
  border-radius: 8px;
  background: #f8faf9;
  color: var(--sc-ink);
  padding: 0 1rem 0 2.45rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.attendance-local-search input::placeholder {
  color: #728093;
}

.attendance-local-search-icon {
  position: absolute;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sc-muted);
  z-index: 1;
}

.attendance-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid var(--sc-border);
  padding: .75rem;
  box-shadow: 0 -10px 26px rgba(23, 32, 51, .08);
}

.person-toggle {
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  background: var(--sc-surface);
  min-height: 62px;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 16px rgba(23, 32, 51, .04);
}

.person-toggle.is-present {
  background: #e7f5ef;
  border-color: rgba(47, 143, 114, .7);
  box-shadow: inset 4px 0 0 var(--sc-mint), 0 8px 18px rgba(47, 143, 114, .12);
}

.person-toggle input {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 576px) {
  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }

  .record-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }

  .app-main {
    padding: 1.6rem 1.25rem 2rem;
  }

  .page-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.35rem;
  }

  .hero-panel {
    padding: 1.6rem;
  }

  .record-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-actions {
    display: flex;
    flex-wrap: wrap;
  }

}

@media (min-width: 992px) {
  :root {
    --sc-topbar-height: 78px;
  }

  .app-topbar {
    left: var(--sc-sidebar-width);
    min-height: var(--sc-topbar-height);
    padding: .9rem 1.5rem;
  }

  .topbar-content {
    grid-template-columns: minmax(320px, 1fr) auto;
  }

  .global-search {
    max-width: 980px;
  }

  .app-main {
    margin-left: var(--sc-sidebar-width);
    width: calc(100vw - var(--sc-sidebar-width));
    max-width: calc(100vw - var(--sc-sidebar-width));
    padding: calc(var(--sc-topbar-height) + 1.6rem) 2rem 2rem;
  }
}

@media (min-width: 1100px) {
  .record-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .module-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .profile-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: start;
  }
}

.person-form-with-actions {
  padding-bottom: 78px;
}

.service-area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
}

.service-area-option {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: .8rem 1rem;
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  background: #fff;
  color: var(--sc-ink);
  font-weight: 650;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.service-area-option:has(input:checked) {
  background: #e7f5ef;
  border-color: rgba(47, 143, 114, .72);
  box-shadow: inset 4px 0 0 var(--sc-mint);
}

.tag-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.tag-option {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .65rem .85rem;
  border: 1px solid var(--sc-border);
  border-radius: 999px;
  background: #fff;
  color: var(--sc-ink);
  font-weight: 650;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.tag-option:has(input:checked) {
  background: #e7f5ef;
  border-color: rgba(47, 143, 114, .72);
  box-shadow: 0 8px 18px rgba(47, 143, 114, .12);
}

.profile-tag-list,
.directory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.directory-tags {
  margin-top: .45rem;
}

.person-tag-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .24rem .62rem;
  background: #e7f5ef;
  color: #0f5f56;
  font-size: .78rem;
  font-weight: 750;
}

.person-tag-badge-sm {
  padding: .18rem .5rem;
  font-size: .72rem;
}

.abc-option,
.status-option {
  max-width: 320px;
}

.form-sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .98);
  border-top: 1px solid var(--sc-border);
  padding: .75rem;
  box-shadow: 0 -10px 26px rgba(23, 32, 51, .08);
}

.form-sticky-actions-inner {
  display: flex;
  gap: .65rem;
  max-width: 1180px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .service-area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .form-sticky-actions {
    left: var(--sc-sidebar-width);
  }

  .attendance-actions {
    left: var(--sc-sidebar-width);
  }
}

.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.dashboard-subtitle {
  color: var(--sc-muted);
  margin: .35rem 0 0;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  margin-bottom: 1rem;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 10px 22px rgba(23, 32, 51, .05);
}

.metric-label {
  color: var(--sc-muted);
  font-weight: 750;
  font-size: .82rem;
  text-transform: uppercase;
}

.metric-value {
  color: #0f766e;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 780;
  margin-top: .3rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: 1.08rem;
  font-weight: 750;
  margin: 0;
}

.section-heading p {
  color: var(--sc-muted);
  margin: .15rem 0 0;
}

.dashboard-list {
  display: grid;
  gap: .75rem;
}

.attendance-columns {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: clamp(.35rem, 2vw, .85rem);
  min-height: 220px;
  padding-top: 1rem;
}
.attendance-column {
  position: relative;
  display: grid;
  grid-template-rows: 1.35rem 160px 1.5rem;
  align-items: end;
  min-width: 0;
  color: var(--sc-ink);
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}
.attendance-column:hover, .attendance-column:focus-visible { color: var(--sc-ink); outline: none; }
.attendance-column-value { align-self: center; font-size: .8rem; font-weight: 800; }
.attendance-column-plot {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 160px;
  padding: 0 max(3px, 16%);
  border-bottom: 1px solid #d8e2e8;
}
.attendance-column-bar {
  width: 100%;
  min-width: 24px;
  max-width: 54px;
  min-height: 8px;
  border-radius: 8px 8px 3px 3px;
  background: #0f766e;
  transition: filter .15s ease, transform .15s ease;
}
.attendance-column:hover .attendance-column-bar,
.attendance-column:focus-visible .attendance-column-bar,
.attendance-column.is-tooltip-open .attendance-column-bar { filter: brightness(1.08); transform: scaleX(1.04); }
.attendance-column-label {
  align-self: center;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
}
.attendance-tooltip {
  position: absolute;
  z-index: 20;
  bottom: calc(100% - 1.25rem);
  left: 50%;
  display: none;
  width: min(230px, calc(100vw - 2rem));
  padding: .7rem .8rem;
  border-radius: 10px;
  background: #17313a;
  box-shadow: 0 10px 28px rgba(23, 49, 58, .22);
  color: #fff;
  font-size: .76rem;
  line-height: 1.35;
  text-align: left;
  transform: translateX(-50%);
}
.attendance-tooltip strong, .attendance-tooltip span { display: block; }
.attendance-tooltip span { margin-top: .2rem; }
.attendance-column:hover .attendance-tooltip,
.attendance-column:focus-visible .attendance-tooltip,
.attendance-column.is-tooltip-open .attendance-tooltip { display: block; }
.attendance-column:first-child .attendance-tooltip { left: 0; transform: none; }
.attendance-column:last-child .attendance-tooltip { right: 0; left: auto; transform: none; }
@media (max-width: 575.98px) {
  .attendance-columns { gap: .3rem; min-height: 190px; }
  .attendance-column { grid-template-rows: 1.25rem 130px 3rem; min-height: 190px; }
  .attendance-column-plot { height: 130px; padding-inline: 3px; }
  .attendance-column-bar { min-width: 20px; }
  .attendance-column-value { font-size: .7rem; }
  .attendance-column-label { font-size: .62rem; }
}

.dashboard-note,
.dashboard-list-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid #e8edf1;
}

.dashboard-list-item:last-child {
  border-bottom: 0;
}

.dashboard-event-link {
  align-items: center;
  min-height: 72px;
  color: var(--sc-ink);
  text-decoration: none;
}

.dashboard-event-link:hover {
  color: var(--sc-ink);
  background: #f7faf9;
}

.dashboard-event-link strong,
.dashboard-event-link span {
  display: block;
}

.dashboard-event-link span {
  margin-top: .15rem;
  color: var(--sc-muted);
}

.dashboard-event-arrow {
  color: #0f766e !important;
  font-size: 1.6rem;
}

.community-card { grid-column: 1 / -1; }
.community-primary-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.5rem; }
.community-primary-stat { position: relative; overflow: hidden; padding: 1.1rem 1.2rem; border: 1px solid #dbe5ea; border-radius: 14px; background: #f7fafb; }
.community-primary-stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--sc-blue); }
.community-primary-stat.is-member::before { background: var(--sc-mint); }
.community-primary-stat.is-baptized::before { background: #f36c52; }
.community-primary-stat span { display: block; color: var(--sc-muted); font-size: .82rem; font-weight: 700; }
.community-primary-stat strong { display: block; margin-top: .2rem; color: var(--sc-ink); font-size: 1.85rem; line-height: 1; }
.community-breakdown { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: 1.5rem; }
.community-group { padding-top: 1rem; border-top: 1px solid #e3e9ed; }
.community-group h3 { margin: 0 0 .7rem; color: var(--sc-muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.community-stat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.community-life-stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.community-dynamic-list { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.service-area-summary-card { grid-column: 1 / -1; }
.community-stat-list > div { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .68rem .75rem; border-radius: 9px; background: var(--sc-soft); }
.community-stat-list span { color: #4e5e70; font-size: .86rem; }
.community-stat-list strong { color: var(--sc-ink); font-size: 1rem; }
.community-note { margin: 1rem 0 0; color: var(--sc-muted); font-size: .78rem; }

.report-attendance-breakdown { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--sc-border); border-radius: 14px; background: #fff; }
.report-breakdown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .7rem; }
.report-breakdown-grid > div { padding: .85rem 1rem; border-radius: 10px; background: var(--sc-soft); }
.report-breakdown-grid span { display: block; color: var(--sc-muted); font-size: .8rem; font-weight: 700; }
.report-breakdown-grid strong { display: block; margin-top: .15rem; color: var(--sc-ink); font-size: 1.35rem; }
.report-guests { margin-top: 1.25rem; }

@media (max-width: 767px) {
  .community-primary-stats { grid-template-columns: 1fr; }
  .community-breakdown { grid-template-columns: 1fr; }
  .community-life-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.attendance-report {
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dfe7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(23, 49, 58, .08);
}

.report-header {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem;
  background: #17313a;
  color: #fff;
}

.report-brand { display: flex; align-items: center; min-width: 210px; }
.report-brand-logo { display: block; width: 230px; max-width: 38vw; height: 96px; object-fit: contain; object-position: left center; }
.report-title { text-align: right; }
.report-title p { margin: 0; color: #9fd5c8; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.report-title h1 { margin: .25rem 0; font-size: 1.8rem; }
.report-title span { color: #d8e7ea; }
.report-actions { display: flex; gap: .75rem; padding: 1rem 1.5rem 0; }
.report-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.5rem; }
.report-summary div { padding: 1rem; border-radius: 12px; background: #f1f7f5; }
.report-summary span, .report-summary strong { display: block; }
.report-summary span { color: var(--sc-muted); font-size: .8rem; font-weight: 700; }
.report-summary strong { margin-top: .25rem; color: #0f766e; font-size: 1.45rem; }
.report-notes, .report-attendees { margin: 0 1.5rem 1.5rem; }
.report-notes { padding: 1rem; border-left: 4px solid #16856f; background: #f8faf9; }
.report-notes h2, .report-attendees h2 { margin: 0; font-size: 1.05rem; }
.report-notes p { margin: .5rem 0 0; white-space: pre-wrap; }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th, .report-table td { padding: .8rem; border-bottom: 1px solid #e4eaed; text-align: left; vertical-align: top; }
.report-table-compact th, .report-table-compact td { padding: .42rem .65rem; }
.report-table th { color: var(--sc-muted); font-size: .75rem; text-transform: uppercase; }
.report-tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.report-tags span { padding: .2rem .45rem; border-radius: 999px; background: #e5f5ee; color: #08705f; font-size: .72rem; font-weight: 700; }
.report-tags small { color: var(--sc-muted); }
.report-footer { padding: 1rem 1.5rem; border-top: 1px solid #e4eaed; color: var(--sc-muted); font-size: .75rem; text-align: right; }

@media (max-width: 575.98px) {
  .report-header { display: block; padding: 1.1rem; }
  .report-brand-logo { width: 210px; max-width: 100%; height: 82px; }
  .report-title { margin-top: 1.25rem; text-align: left; }
  .report-title h1 { font-size: 1.45rem; }
  .report-actions { display: grid; padding: 1rem; }
  .report-summary { padding: 1rem; }
  .report-notes, .report-attendees { margin: 0 1rem 1rem; }
  .report-phone { display: none; }
  .report-table th:nth-child(2) { display: none; }
  .report-table th, .report-table td { padding: .7rem .45rem; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  .app-sidebar, .app-topbar, .report-actions { display: none !important; }
  .app-main { margin: 0 !important; padding: 0 !important; }
  .attendance-report { max-width: none; border: 0; border-radius: 0; box-shadow: none; }
  .report-header { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .report-brand-logo { width: 58mm; max-width: none; height: 24mm; }
  .report-table-wrap { overflow: visible; }
  .report-table tr { break-inside: avoid; }
  .people-report-table { font-size: 8pt; }
  .people-report-table th, .people-report-table td { padding: 5pt; }
  .people-report-meta { margin: 8pt 0 12pt; }
}

.dashboard-note {
  margin-top: .75rem;
  border: 1px solid #b7ebcf;
  border-radius: 10px;
  background: #ecfdf3;
  padding: .85rem;
}

.dashboard-list-item {
  align-items: center;
}

.dashboard-list-item span {
  display: block;
  color: var(--sc-muted);
  margin-top: .15rem;
}

.dashboard-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
}

.dashboard-list-actions a {
  color: #0f5f56;
  font-weight: 700;
  text-decoration: none;
}

.empty-state {
  color: var(--sc-muted);
  background: #f7fafc;
  border: 1px dashed var(--sc-border);
  border-radius: 10px;
  padding: 1rem;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

.quick-action {
  color: var(--sc-ink);
  text-decoration: none;
  border: 1px solid var(--sc-border);
  border-radius: 10px;
  padding: .9rem;
  background: #fff;
}

.quick-action:hover {
  color: var(--sc-ink);
  background: #f7fafc;
}

.quick-action span {
  display: block;
  color: var(--sc-muted);
  margin-top: .15rem;
}

@media (min-width: 768px) {
  .dashboard-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .dashboard-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(360px, .85fr);
  }
}
/* Shared responsive data tables. */
.table-card { padding: 0; overflow: hidden; }
.responsive-table { width: 100%; overflow-x: auto; }
.sc-table { width: 100%; border-collapse: collapse; margin: 0; }
.sc-table th, .sc-table td { padding: .95rem 1rem; border-bottom: 1px solid var(--sc-line); vertical-align: middle; }
.sc-table th { color: var(--sc-muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; background: #f8faf9; white-space: nowrap; }
.sc-table tr:last-child td { border-bottom: 0; }

/* Pastoral reports and upcoming birthdays. Mobile-first by design. */
.birthday-card { grid-column: 1 / -1; }
.birthday-list { display: grid; gap: .65rem; }
.birthday-list a { display: flex; align-items: center; gap: .8rem; padding: .75rem; border: 1px solid var(--sc-border); border-radius: 12px; color: var(--sc-ink); text-decoration: none; background: #fff; }
.birthday-list a:hover { border-color: #7acbd0; background: #f6fbfb; }
.birthday-list a > div { min-width: 0; display: grid; }
.birthday-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.birthday-list a span:not(.birthday-day) { color: var(--sc-muted); font-size: .88rem; }
.birthday-list a > b { margin-left: auto; color: var(--sc-primary); font-size: 1.25rem; }
.birthday-day { flex: 0 0 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #e5f7f8; color: #087b83; font-weight: 800; }
.reports-page-header { margin-bottom: 1rem; }
.reports-intro { color: var(--sc-muted); margin: .35rem 0 0; max-width: 650px; }
.reports-kpis { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; margin-bottom: 1rem; }
.reports-kpis > div { padding: .9rem; border-radius: 14px; border: 1px solid var(--sc-border); background: #fff; box-shadow: var(--sc-shadow); display: grid; }
.reports-kpis span, .reports-kpis small { color: var(--sc-muted); }
.reports-kpis span { font-size: .82rem; font-weight: 700; }
.reports-kpis strong { color: var(--sc-ink); font-size: 1.65rem; line-height: 1.15; }
.reports-kpis small { font-size: .72rem; }
.reports-grid { display: grid; gap: 1rem; }
.report-insight-card.is-attention { border-top: 4px solid var(--sc-coral); }
.attention-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .5rem; }
.attention-metrics div { display: grid; align-content: start; padding: .7rem; border-radius: 10px; background: #fff6f2; }
.attention-metrics strong { color: #be533c; font-size: 1.4rem; }
.attention-metrics span { color: var(--sc-muted); font-size: .76rem; line-height: 1.25; }
.compact-person-list { display: grid; gap: .35rem; }
.compact-person-list a { display: flex; justify-content: space-between; gap: .75rem; padding: .62rem .7rem; border-radius: 9px; color: var(--sc-ink); text-decoration: none; background: #f7faf9; }
.compact-person-list a:hover { background: #edf7f5; }
.compact-person-list b { color: var(--sc-primary); font-size: .78rem; }
.positive-empty, .report-empty { padding: .85rem; color: var(--sc-muted); border: 1px dashed var(--sc-border); border-radius: 10px; }
.positive-empty { color: #267b64; background: #f1faf6; }
.attendance-ranking { display: grid; gap: .45rem; }
.attendance-ranking a { color: var(--sc-ink); text-decoration: none; padding: .55rem 0; }
.ranking-person { display: flex; justify-content: space-between; gap: .75rem; margin-bottom: .35rem; }
.ranking-person span { color: var(--sc-muted); font-size: .78rem; white-space: nowrap; }
.ranking-track, .insight-bars i { display: block; height: 7px; background: #e8efee; border-radius: 999px; overflow: hidden; }
.ranking-track span, .insight-bars i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--sc-primary),#2ab8c5); }
.insight-bars { display: grid; gap: .8rem; }
.insight-bars > div > div { display: flex; justify-content: space-between; gap: .75rem; margin-bottom: .3rem; font-size: .88rem; }
.insight-bars i b { background: linear-gradient(90deg,#17856f,#55b89e); }
@media (min-width: 600px) { .birthday-list { grid-template-columns: repeat(2,minmax(0,1fr)); } .report-list-columns { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (min-width: 900px) { .reports-kpis { grid-template-columns: repeat(4,minmax(0,1fr)); } .reports-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .reports-wide { grid-column: 1 / -1; } .birthday-list { grid-template-columns: repeat(3,minmax(0,1fr)); } }
