/* ═══════════════════════════════════════════════════
   COMMITTEE CENTRAL — NAVY BLUE DESIGN SYSTEM v4
   Layers on top of Bootstrap 5. Do not remove Bootstrap.
═══════════════════════════════════════════════════ */

/* ── Tokens ──────────────────────────────────── */
:root {
  --cc-white:       #ffffff;
  --cc-bg-off:      #f8f9fc;
  --cc-blue:        rgb(0, 50, 100);
  --cc-blue-hover:  rgb(0, 40, 82);
  --cc-blue-light:  rgba(0, 50, 100, 0.07);
  --cc-blue-mid:    rgba(0, 50, 100, 0.14);
  --cc-navy:        rgb(13, 20, 55);
  --cc-navy-light:  rgba(13, 20, 55, 0.06);
  --cc-sage:        #5a7f62;
  --cc-sage-light:  #eaf1eb;
  --cc-coral:       #c62828;
  --cc-coral-light: #fde8e8;
  --cc-amber:       #d4a84c;
  --cc-amber-light: #fef3cd;
  --cc-ink:         #1a1f2e;
  --cc-ink2:        #2d3550;
  --cc-sub:         #62708a;
  --cc-border:      #dde2ee;
  --cc-shadow:      rgba(13, 20, 55, 0.07);
  --cc-shadow-md:   rgba(13, 20, 55, 0.13);
}

/* ── Base ────────────────────────────────────── */
body.cc-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  background: var(--cc-bg-off);
  color: var(--cc-ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.cc-body h1,
body.cc-body h2,
body.cc-body h3,
body.cc-body h4,
body.cc-body h5,
body.cc-body h6 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cc-ink);
  line-height: 1.2;
}

body.cc-body h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 900; }
body.cc-body h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
body.cc-body h3 { font-size: 1.2rem; }
body.cc-body h4 { font-size: 1rem; }

body.cc-body p { color: var(--cc-ink2); line-height: 1.7; }

/* ── Utility: card header with brand blue ────── */
/* (rules moved after body.cc-body .card-header to win specificity tie) */

/* ── Navigation ──────────────────────────────── */
.cc-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cc-border);
  box-shadow: 0 1px 0 var(--cc-border);
}

.cc-nav-inner {
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cc-nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cc-blue);
  text-decoration: none;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  white-space: nowrap;
  margin-right: 0.5rem;
  transition: color 0.18s;
}
.cc-nav-logo:hover { color: var(--cc-blue-hover); text-decoration: none; }

.cc-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.cc-nav-link {
  font-size: 0.875rem;
  color: var(--cc-sub);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
  font-weight: 400;
}
.cc-nav-link:hover,
.cc-nav-link.active {
  color: var(--cc-blue);
  background: var(--cc-blue-light);
  text-decoration: none;
}
.cc-nav-link.active { font-weight: 500; }

.cc-nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--cc-border);
}

.cc-nav-email {
  font-size: 0.78rem;
  color: var(--cc-sub);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.cc-nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--cc-ink);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Dark nav variant (app interior) ─────────── */
.cc-nav--dark {
  background: var(--cc-navy);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.cc-nav--dark .cc-nav-logo {
  color: rgba(255,255,255,0.95);
}
.cc-nav--dark .cc-nav-logo:hover {
  color: #ffffff;
}
.cc-nav--dark .cc-nav-waffle > a {
  color: rgba(255,255,255,0.7);
}
.cc-nav--dark .cc-nav-waffle > a:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}
.cc-nav--dark .cc-nav-dev > button {
  color: rgba(255,255,255,0.7);
}
.cc-nav--dark .cc-nav-dev > button:hover {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}
.cc-nav--dark .cc-nav-link {
  color: rgba(255,255,255,0.7);
}
.cc-nav--dark .cc-nav-link:hover,
.cc-nav--dark .cc-nav-link.active {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
}
.cc-nav--dark .cc-nav-email {
  color: rgba(255,255,255,0.55);
}
.cc-nav--dark .cc-nav-user {
  border-left-color: rgba(255,255,255,0.12);
}
.cc-nav--dark .cc-btn-ghost {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.22);
  background: transparent;
}
.cc-nav--dark .cc-btn-ghost:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}
.cc-nav--dark .cc-nav-toggle span {
  background: rgba(255,255,255,0.85);
}

/* ── Left cluster: logo + waffle + dev ───────── */
.cc-nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ── Waffle icon ──────────────────────────────── */
.cc-nav-waffle {
  position: relative;
}
.cc-nav-waffle > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--cc-sub);
  transition: background 0.18s, color 0.18s;
  padding: 0;
  text-decoration: none;
}
.cc-nav-waffle > a:hover {
  background: var(--cc-blue-light);
  color: var(--cc-blue);
  text-decoration: none;
}
.cc-nav-waffle svg {
  pointer-events: none;
}

/* ── Right-side icon buttons (Help / Gear / Waffle / User) ── */
.cc-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: background 0.18s, color 0.18s;
  padding: 0;
}
.cc-icon-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.cc-icon-btn svg { pointer-events: none; }

.cc-nav-dropdown {
  border: 1px solid var(--cc-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 32px var(--cc-shadow-md) !important;
  padding: 0.375rem !important;
  background: white !important;
  min-width: 180px;
}
.cc-nav-dropdown .dropdown-item {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.875rem !important;
  color: var(--cc-ink2) !important;
  border-radius: 6px !important;
  padding: 0.5rem 0.75rem !important;
  transition: background 0.15s !important;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  display: block;
  cursor: pointer;
}
.cc-nav-dropdown .dropdown-item:hover,
.cc-nav-dropdown .dropdown-item:focus {
  background: var(--cc-blue-light) !important;
  color: var(--cc-blue) !important;
}
.cc-nav-dropdown .dropdown-item.text-danger { color: #dc3545 !important; }
.cc-nav-dropdown .dropdown-item.text-danger:hover { background: #fff0f0 !important; color: #b02a37 !important; }
.cc-nav-dropdown .dropdown-divider {
  border-color: var(--cc-border) !important;
  margin: 0.25rem 0.5rem !important;
}

/* ── Dev menu ─────────────────────────────────── */
.cc-nav-dev {
  position: relative;
}
.cc-nav-dev > button {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cc-sub);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  line-height: 1.4;
}
.cc-nav-dev > button:hover {
  background: var(--cc-blue-light);
  color: var(--cc-blue);
}

/* ── Dropdown panels (waffle flyout + dev) ────── */
.cc-nav-waffle .waffle-flyout,
.cc-nav-dev .dropdown-menu {
  border: 1px solid var(--cc-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 32px var(--cc-shadow-md) !important;
  padding: 0.375rem !important;
  background: white !important;
  min-width: 180px;
}
.cc-nav-dev .dropdown-item {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.875rem !important;
  color: var(--cc-ink2) !important;
  border-radius: 6px !important;
  padding: 0.5rem 0.75rem !important;
  transition: background 0.15s !important;
}
.cc-nav-dev .dropdown-item:hover,
.cc-nav-dev .dropdown-item:focus {
  background: var(--cc-blue-light) !important;
  color: var(--cc-blue) !important;
}
.cc-nav-dev .dropdown-divider {
  border-color: var(--cc-border) !important;
  margin: 0.25rem 0.5rem !important;
}

/* ── Main & Footer ───────────────────────────── */
.cc-main {
  flex: 1;
  margin-top: 64px;
  padding: 2.75rem 2rem 2rem;
  max-width: 1400px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.cc-footer {
  border-top: 1px solid var(--cc-border);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--cc-sub);
  background: var(--cc-white);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── Button Overrides (Bootstrap classes) ────── */
.btn.btn-primary,
.btn-primary {
  background-color: var(--cc-blue) !important;
  border-color: var(--cc-blue) !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.18s, transform 0.15s, box-shadow 0.18s;
}
.btn.btn-primary:hover,
.btn-primary:hover {
  background-color: var(--cc-blue-hover) !important;
  border-color: var(--cc-blue-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 50, 100, 0.25) !important;
}

.btn.btn-secondary,
.btn-secondary {
  background-color: var(--cc-white) !important;
  border-color: var(--cc-border) !important;
  color: var(--cc-blue) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.18s;
}
.btn.btn-secondary:hover,
.btn-secondary:hover {
  border-color: var(--cc-blue) !important;
  background-color: var(--cc-blue-light) !important;
  transform: translateY(-1px);
}

.btn.btn-danger,
.btn-danger {
  background-color: var(--cc-coral) !important;
  border-color: var(--cc-coral) !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 8px;
}
.btn.btn-danger:hover,
.btn-danger:hover {
  background-color: #a51e1e !important;
  border-color: #a51e1e !important;
  transform: translateY(-1px);
}

.btn.btn-success,
.btn-success {
  background-color: var(--cc-sage) !important;
  border-color: var(--cc-sage) !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 8px;
}
.btn.btn-success:hover,
.btn-success:hover {
  background-color: #4a6b50 !important;
  border-color: #4a6b50 !important;
  transform: translateY(-1px);
}

.btn-outline-primary {
  color: var(--cc-blue) !important;
  border-color: var(--cc-blue) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 8px;
}
.btn-outline-primary:hover {
  background-color: var(--cc-blue) !important;
  color: #fff !important;
}
.btn-outline-secondary {
  color: var(--cc-sub) !important;
  border-color: var(--cc-border) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-radius: 8px;
}
.btn-outline-secondary:hover {
  background-color: var(--cc-bg-off) !important;
  color: var(--cc-ink) !important;
}
.btn-outline-danger {
  color: var(--cc-coral) !important;
  border-color: var(--cc-coral) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: 8px;
}
.btn-outline-danger:hover {
  background-color: var(--cc-coral) !important;
  color: #fff !important;
}
.btn-outline-info {
  color: var(--cc-blue) !important;
  border-color: var(--cc-blue-mid) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-radius: 8px;
}
.btn-outline-info:hover {
  background-color: var(--cc-blue-light) !important;
  color: var(--cc-blue) !important;
}
.btn-outline-light {
  color: rgba(255,255,255,0.85) !important;
  border-color: rgba(255,255,255,0.35) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-radius: 8px;
}
.btn-outline-light:hover {
  background-color: rgba(255,255,255,0.12) !important;
  color: white !important;
}

/* Custom design system buttons (non-Bootstrap) */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  line-height: 1.4;
  white-space: nowrap;
}
.cc-btn:focus-visible { outline: 2px solid var(--cc-blue); outline-offset: 2px; }
.cc-btn-primary { background: var(--cc-blue); color: white; }
.cc-btn-primary:hover {
  background: var(--cc-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,50,100,0.25);
  text-decoration: none; color: white;
}
.cc-btn-ghost {
  background: transparent;
  color: var(--cc-sub);
  border: 1px solid var(--cc-border);
}
.cc-btn-ghost:hover {
  color: var(--cc-ink);
  border-color: var(--cc-ink2);
  background: var(--cc-navy-light);
  text-decoration: none;
}
.cc-btn-sm { font-size: 0.8rem; padding: 0.375rem 0.875rem; }
.cc-btn:disabled,
.cc-btn[disabled] {
  opacity: 0.5; cursor: not-allowed;
  transform: none !important; box-shadow: none !important;
}

/* ── Card Overrides ──────────────────────────── */
body.cc-body .card {
  border: 1px solid var(--cc-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px var(--cc-shadow) !important;
  background: var(--cc-white) !important;
  transition: box-shadow 0.2s;
}
body.cc-body .card:hover {
  box-shadow: 0 6px 24px var(--cc-shadow-md) !important;
}
body.cc-body .card-header {
  background: var(--cc-bg-off) !important;
  border-bottom: 1px solid var(--cc-border) !important;
  border-radius: 14px 14px 0 0 !important;
  padding: 0.875rem 1.25rem !important;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--cc-ink) !important;
  letter-spacing: -0.01em;
}
body.cc-body .cc-card-header {
  background: var(--cc-blue) !important;
  color: var(--cc-white) !important;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: normal;
}
body.cc-body .cc-section-header {
  background: rgb(33, 97, 168) !important;
  color: var(--cc-white) !important;
  font-weight: 600;
  font-size: 1.2rem;
  font-family: inherit;
  letter-spacing: normal;
  padding: 0.425rem 1rem !important;
}
body.cc-body .accordion-button.cc-section-header::after,
body.cc-body .accordion-button.cc-section-header:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}
body.cc-body .accordion-button.cc-section-header:not(.collapsed) {
  background: rgb(33, 97, 168) !important;
  color: var(--cc-white) !important;
  box-shadow: none;
}
body.cc-body .card-body { padding: 1.25rem !important; }
body.cc-body .card-footer {
  background: var(--cc-bg-off) !important;
  border-top: 1px solid var(--cc-border) !important;
  border-radius: 0 0 14px 14px !important;
  padding: 0.75rem 1.25rem !important;
}

/* Navy accent card variant */
body.cc-body .card.cc-card-navy {
  background: var(--cc-navy) !important;
  border-color: rgba(255,255,255,0.06) !important;
}
body.cc-body .card.cc-card-navy .card-header {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.08) !important;
  color: white !important;
}
body.cc-body .card.cc-card-navy .card-body { color: rgba(255,255,255,0.8); }

/* ── Table Overrides ─────────────────────────── */
body.cc-body .table {
  font-size: 0.875rem;
  color: var(--cc-ink2);
}
body.cc-body .table thead th {
  background: #e9ecef !important;
  color: var(--cc-ink) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--cc-border) !important;
  padding: 0.75rem 1rem;
  white-space: nowrap;
}
body.cc-body .table thead.table-light th {
  background: #e9ecef !important;
  color: var(--cc-ink) !important;
}
body.cc-body .table tbody tr { transition: background 0.15s; }
body.cc-body .table tbody tr:hover {
  background-color: var(--cc-blue-light) !important;
}
body.cc-body .table tbody td {
  border-color: var(--cc-border) !important;
  padding: 0.75rem 1rem;
  vertical-align: middle;
}
body.cc-body .table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: var(--cc-bg-off) !important;
  color: var(--cc-ink2);
}

/* Table-responsive: add rounded border */
body.cc-body .table-responsive {
  border-radius: 14px;
  border: 1px solid var(--cc-border);
  overflow: hidden;
  box-shadow: 0 2px 10px var(--cc-shadow);
}

/* ── Form Overrides ──────────────────────────── */
body.cc-body .form-control,
body.cc-body .form-select {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--cc-ink);
  background-color: var(--cc-white);
  border: 1px solid var(--cc-border);
  border-radius: 6px;
  padding: 0.55rem 0.875rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
/* Keep small variants compact — used in dense table rows */
body.cc-body .form-control-sm,
body.cc-body .form-select-sm {
  font-size: 0.875rem;
}
body.cc-body .form-control:focus,
body.cc-body .form-select:focus {
  border-color: var(--cc-blue);
  box-shadow: 0 0 0 3px rgba(0, 50, 100, 0.12);
  outline: none;
}
body.cc-body .form-control::placeholder { color: #aab0bc; }
body.cc-body .form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cc-ink2);
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}
body.cc-body .form-text { font-size: 0.85rem; color: var(--cc-sub); }
body.cc-body .invalid-feedback { font-size: 0.85rem; color: var(--cc-coral); }
body.cc-body .form-control.is-invalid,
body.cc-body .form-select.is-invalid { border-color: var(--cc-coral); }
body.cc-body .form-control.is-invalid:focus,
body.cc-body .form-select.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

/* ── Badge Overrides ─────────────────────────── */
body.cc-body .badge {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
}
body.cc-body .badge.bg-primary,
body.cc-body .badge.text-bg-primary {
  background-color: var(--cc-blue-light) !important;
  color: var(--cc-blue) !important;
}
body.cc-body .badge.bg-success,
body.cc-body .badge.text-bg-success {
  background-color: var(--cc-sage-light) !important;
  color: var(--cc-sage) !important;
}
body.cc-body .badge.bg-danger,
body.cc-body .badge.text-bg-danger {
  background-color: var(--cc-coral-light) !important;
  color: var(--cc-coral) !important;
}
body.cc-body .badge.bg-warning,
body.cc-body .badge.text-bg-warning {
  background-color: var(--cc-amber-light) !important;
  color: #7a5800 !important;
}
body.cc-body .badge.bg-secondary,
body.cc-body .badge.text-bg-secondary {
  background-color: rgba(98, 112, 138, 0.12) !important;
  color: var(--cc-sub) !important;
}
body.cc-body .badge.bg-info,
body.cc-body .badge.text-bg-info {
  background-color: var(--cc-blue-light) !important;
  color: var(--cc-blue) !important;
}
/* text-dark badge override for bg-warning */
body.cc-body .badge.bg-warning.text-dark { color: #7a5800 !important; }

/* ── Alert Overrides ─────────────────────────── */
body.cc-body .alert {
  border-radius: 10px;
  font-size: 0.875rem;
  border-width: 1px;
}
body.cc-body .alert-success {
  background-color: var(--cc-sage-light) !important;
  border-color: rgba(90, 127, 98, 0.3) !important;
  color: #2e5a38 !important;
}
body.cc-body .alert-danger {
  background-color: var(--cc-coral-light) !important;
  border-color: rgba(198, 40, 40, 0.3) !important;
  color: #7a1111 !important;
}
body.cc-body .alert-warning {
  background-color: var(--cc-amber-light) !important;
  border-color: rgba(212, 168, 76, 0.4) !important;
  color: #7a5800 !important;
}
body.cc-body .alert-info {
  background-color: var(--cc-blue-light) !important;
  border-color: rgba(0, 50, 100, 0.2) !important;
  color: var(--cc-blue) !important;
}

/* ── Page Layout Helpers ─────────────────────── */
.cc-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--cc-border);
  flex-wrap: wrap;
}
.cc-page-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 900;
  color: var(--cc-ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.cc-page-subtitle {
  font-size: 0.875rem;
  color: var(--cc-sub);
  margin-top: 0.2rem;
  font-weight: 400;
}
.cc-page-actions {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cc-section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cc-sub);
  margin-bottom: 0.875rem;
}

/* Status dot indicators */
.cc-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
}
.cc-status::before {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cc-status-green::before  { background: var(--cc-sage); }
.cc-status-red::before    { background: var(--cc-coral); }
.cc-status-amber::before  { background: var(--cc-amber); }
.cc-status-blue::before   { background: var(--cc-blue); }
.cc-status-gray::before   { background: #b0b8c8; }

/* ── Toast Notifications ─────────────────────── */
.cc-toast-container {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.cc-toast {
  background: var(--cc-navy);
  color: white;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  min-width: 280px; max-width: 420px;
  pointer-events: all;
  animation: ccToastIn 0.3s ease;
}
.cc-toast.success { border-left: 4px solid var(--cc-sage); }
.cc-toast.error   { border-left: 4px solid var(--cc-coral); }
.cc-toast.info    { border-left: 4px solid var(--cc-blue); }
@keyframes ccToastIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── DataTables Overrides ────────────────────── */
.dataTables_wrapper { font-family: 'Inter', sans-serif; font-size: 0.875rem; }
.dataTables_filter input {
  border: 1px solid var(--cc-border) !important;
  border-radius: 6px !important;
  padding: 0.4rem 0.75rem !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.875rem !important;
  color: var(--cc-ink) !important;
  background: var(--cc-white) !important;
  margin-left: 0.5rem;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.dataTables_filter input:focus {
  outline: none !important;
  border-color: var(--cc-blue) !important;
  box-shadow: 0 0 0 3px rgba(0,50,100,0.1) !important;
}
.dataTables_length select {
  border: 1px solid var(--cc-border) !important;
  border-radius: 6px !important;
  padding: 0.3rem 2rem 0.3rem 0.5rem !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.875rem !important;
  color: var(--cc-ink) !important;
}
.dataTables_paginate .paginate_button {
  border-radius: 6px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.8rem !important;
  color: var(--cc-sub) !important;
  border: 1px solid transparent !important;
  padding: 0.3rem 0.65rem !important;
}
.dataTables_paginate .paginate_button:hover {
  background: var(--cc-blue-light) !important;
  color: var(--cc-blue) !important;
  border-color: transparent !important;
}
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover {
  background: var(--cc-blue) !important;
  color: white !important;
  border-color: var(--cc-blue) !important;
}
.dataTables_info { font-size: 0.8rem !important; color: var(--cc-sub) !important; }

/* ── Waffle menu updates ─────────────────────── */
.waffle-flyout {
  border: 1px solid var(--cc-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 32px var(--cc-shadow-md) !important;
}
.waffle-flyout-item-label { color: var(--cc-ink2) !important; font-size: 0.875rem !important; }
.waffle-flyout-item:hover > .waffle-flyout-item-label {
  background: var(--cc-blue-light) !important;
  color: var(--cc-blue) !important;
}
.waffle-submenu {
  border: 1px solid var(--cc-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px var(--cc-shadow-md) !important;
}
.waffle-submenu a { color: var(--cc-ink2) !important; font-size: 0.875rem !important; }
.waffle-submenu a:hover {
  background: var(--cc-blue-light) !important;
  color: var(--cc-blue) !important;
}
.waffle-divider { border-top-color: var(--cc-border) !important; }

/* ── Compliance grid colors ──────────────────── */
.compliance-grid td.status-green       { background: #c8e6c9; }
.compliance-grid td.status-light-green { background: #e8f5e9; }
.compliance-grid td.status-yellow      { background: #fff3cd; }
.compliance-grid td.status-red         { background: #fde8e8; }
.compliance-grid td.status-gray        { background: var(--cc-bg-off); color: #aab0bc; }

/* Nav pills / tabs recolor */
body.cc-body .nav-pills .nav-link.active {
  background-color: var(--cc-blue) !important;
}
body.cc-body .nav-tabs .nav-link.active {
  color: var(--cc-blue) !important;
  border-bottom-color: var(--cc-blue) !important;
}
body.cc-body .nav-link { color: var(--cc-sub); }
body.cc-body .nav-link:hover { color: var(--cc-blue); }

/* Root org banner */
.root-org-banner {
  background: var(--cc-amber-light);
  border-bottom: 1px solid rgba(212,168,76,0.4);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
  color: #7a5800;
  margin-top: 64px;
}

/* ── Login page ──────────────────────────────── */
.cc-login-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.cc-login-card {
  background: var(--cc-white);
  border: 1px solid var(--cc-border);
  border-radius: 16px;
  box-shadow: 0 6px 32px var(--cc-shadow-md);
  padding: 2.75rem 2.5rem;
  width: 100%;
  max-width: 420px;
}
.cc-login-title {
  font-family: 'Fraunces', serif;
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--cc-ink);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 2rem;
}
.cc-login-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
}
.cc-login-links a {
  font-size: 0.8rem;
  color: var(--cc-sub);
  text-decoration: none;
  transition: color 0.15s;
}
.cc-login-links a:hover {
  color: var(--cc-blue);
  text-decoration: underline;
}
/* Validation summary: hidden when valid, styled when there are errors */
.cc-login-errors .validation-summary-valid { display: none; }
.cc-login-errors .validation-summary-errors {
  color: var(--cc-coral);
  background: var(--cc-coral-light);
  border: 1px solid rgba(198, 40, 40, 0.2);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.825rem;
  list-style: none;
  margin: 0 0 0.5rem;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .cc-nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cc-navy);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    gap: 0.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 999;
  }
  .cc-nav-links.open { display: flex; }
  .cc-nav-toggle { display: flex; }
  .cc-nav-dev { display: none; }
  .cc-icon-btn { color: var(--cc-ink2); }
  .cc-main { padding: 1.5rem 1rem 1rem; margin-top: 60px; }
  .cc-footer { flex-direction: column; gap: 0.25rem; text-align: center; }
  .cc-page-header { flex-direction: column; align-items: flex-start; }
}
