/* Shared visual theme derived from the Evidence Reform design reference.
   Loaded after page styles. Existing markup, visibility rules and behavior remain authoritative. */
:root {
  --brap-navy-900: #0a1230; --brap-navy-800: #101c4a;
  --brap-navy-700: #162663; --brap-navy-600: #1d3180;
  --brap-blue: #1f4fd8; --brap-blue-hover: #3a6bf0;
  --brap-blue-50: #f3f6ff; --brap-blue-100: #e6edff;
  --brap-saffron: #ff9933; --brap-green: #138808;
  --brap-ink: #0f172a; --brap-muted: #64748b;
  --brap-line: #e3e8f2; --brap-line-light: #eef1f8;
  --brap-bg: #f4f6fb; --brap-radius: 16px;
  --brap-shadow: 0 1px 2px rgba(16,28,74,.06), 0 8px 24px -8px rgba(16,28,74,.12);
  --brap-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* Map existing component tokens to the template palette. */
  --navy: var(--brap-navy-800); --navy-dark: var(--brap-navy-900);
  --navy-light: var(--brap-navy-700); --orange: var(--brap-saffron);
  --orange-dark: #e8800f; --orange-light: #ffb85c; --orange-bg: #fff4e6;
  --accent-green: var(--brap-green); --off-white: var(--brap-bg);
  --text-primary: var(--brap-ink); --text-secondary: #334155;
  --border-radius: var(--brap-radius); --shadow-sm: var(--brap-shadow);
}
html { font-size: 15px; }
body.brap-theme {
  font-family: var(--brap-font); background: var(--brap-bg); color: var(--brap-ink);
  -webkit-font-smoothing: antialiased;
  --bs-body-font-family: var(--brap-font); --bs-body-color: var(--brap-ink);
  --bs-body-bg: var(--brap-bg); --bs-border-color: var(--brap-line);
  --bs-primary-rgb: 31,79,216; --bs-success-rgb: 19,136,8;
  --bs-warning-rgb: 255,153,51; --bs-secondary-color: var(--brap-muted);
}

/* Default content width across application pages */
.brap-theme #main-content {
    width: 100%;
    max-width: 95%;
    margin-inline: auto;
    min-width: 0;
}

.brap-theme :is(button, input, select, textarea) { font-family: var(--brap-font); }
.brap-theme :focus-visible { outline: 3px solid var(--brap-saffron); outline-offset: 2px; }

/* Keep the complete project header and its desktop/mobile navigation. */
.brap-theme .accessibility-bar { background: #071d40; color: #eef4ff; border-bottom: 1px solid #294365; }
.brap-theme .accessibility-bar :is(button, select) { border-radius: 6px; }
.brap-theme .main-header {
  background: radial-gradient(1200px 400px at 85% -20%, #2a49b8 0, transparent 60%),
    linear-gradient(135deg, var(--brap-navy-900), var(--brap-navy-700));
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--brap-saffron), white, var(--brap-green)) 1;
}
.brap-theme :is(.header-inner, .nav-inner, .footer-inner, .footer-bottom-inner, .footer-logos-inner) { max-width: 1600px; }
.brap-theme :is(.dept-hindi, .satyamev) { font-family: 'Noto Sans Devanagari', var(--brap-font); }
.brap-theme .dept-en { font-weight: 800; letter-spacing: .6px; }
.brap-theme .ministry-en { color: #aab7ee; }
.brap-theme .admin-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; }
.brap-theme .admin-avatar { background: linear-gradient(135deg, var(--brap-saffron), #ffb85c); color: var(--brap-navy-900); }
.brap-theme .primary-nav { background: var(--brap-navy-800); border-bottom: 1px solid var(--brap-navy-700); }
.brap-theme .primary-nav .nav-list > .nav-item > .nav-link { color: #d7defa; font-weight: 600; border-bottom: 3px solid transparent; }
.brap-theme .primary-nav .nav-list > .nav-item > .nav-link:is(:hover, .active) {
  color: white; background: rgba(255,255,255,.07); border-bottom-color: var(--brap-saffron);
}
.brap-theme .primary-nav :is(.dropdown-menu, .submenu), .brap-theme .user-dropdown {
  background: white; border: 1px solid var(--brap-line); border-radius: 12px; box-shadow: var(--brap-shadow);
}
.brap-theme .primary-nav :is(.dropdown-menu, .submenu) a { color: var(--brap-navy-800); border-bottom-color: var(--brap-line-light); }
.brap-theme .primary-nav :is(.dropdown-menu, .submenu) a:hover { background: var(--brap-blue-50); color: var(--brap-blue); }
.brap-theme .primary-nav .dropdown-menu li.has-submenu > a::after { color: var(--brap-muted); }
.brap-theme .primary-nav .dropdown-menu li.has-submenu:hover > a::after { color: var(--brap-blue); }
.brap-theme .primary-nav .nav-list.mobile-open > .nav-item > .nav-link { color: var(--brap-navy-800); }
.brap-theme .primary-nav .nav-list.mobile-open { background: white; border-bottom-color: var(--brap-line); }
.brap-theme .primary-nav .nav-list.mobile-open .nav-item { border-bottom-color: var(--brap-line-light); }
.brap-theme .primary-nav .nav-list.mobile-open :is(.dropdown-menu, .submenu) { background: var(--brap-blue-50); }
.brap-theme .primary-nav .nav-list.mobile-open > .nav-item > .nav-link:is(:hover, .active) { background: var(--brap-blue-50); color: var(--brap-blue); }
.brap-theme .primary-nav :is(.midyear-link, .midyear-nav-btn) {
  background: linear-gradient(135deg, var(--brap-saffron), #e8800f) !important;
  color: #1b1200 !important; border-radius: 10px !important; animation: none !important;
  height: 34px; margin-block: 4px; padding-inline: 12px; border-bottom: 0; box-shadow: none;
}
.brap-theme .primary-nav .midyear-link :is(span, i, svg) { color: inherit; animation: none !important; }
.brap-theme .primary-nav .midyear-link::after { animation: none; border: 0; border-radius: inherit; }
.brap-theme .primary-nav .midyear-link:hover { background: #ffb85c !important; color: #1b1200 !important; box-shadow: none; }
.brap-theme .primary-nav .nav-actions { align-items: center; gap: .5rem; border-left: 0; padding-left: .5rem; margin-block: 4px; }
.brap-theme .primary-nav .nav-actions > form { display: flex; align-items: center; margin: 0; }
.brap-theme .primary-nav :is(.login-action-btn, .logout-nav-btn) {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 34px; min-height: 34px; margin: 0; padding: 0 12px;
  border: 1px solid transparent; border-radius: 10px;
  background: linear-gradient(135deg, var(--brap-saffron), #e8800f);
  color: #1b1200 !important; font-size: .78rem; font-weight: 700; line-height: 1.2;
  white-space: nowrap; flex-shrink: 0; box-shadow: none;
}
.brap-theme .primary-nav :is(.login-action-btn, .logout-nav-btn):hover { background: #ffb85c; color: #1b1200 !important; }
.brap-theme .primary-nav :is(.login-action-btn, .logout-nav-btn) :is(svg, i) { color: inherit; margin: 0 !important; flex-shrink: 0; }

/* Page titles and the existing public/secure content surfaces. */
.brap-theme :is(.dashboard-wrapper, .ra-wrapper, .admin-wrapper, .myr-wrapper, .policy-wrapper, .contact-page-wrapper) {
  background: var(--brap-bg); max-width: 1600px;
}
.brap-theme main :is(.dash-title, .admin-page-title, .section-title, .contact-main-title, .policy-title, h1.h3) {
  color: var(--brap-navy-800) !important; font-size: 1.9rem; font-weight: 800; letter-spacing: -.5px;
}
.brap-theme .breadcrumb { color: var(--brap-muted); font-size: .8rem; gap: .25rem; }
.brap-theme .breadcrumb a { color: var(--brap-navy-700); }
.brap-theme .breadcrumb a:hover { color: var(--brap-blue); }
.brap-theme .breadcrumb .active { color: #334155; }
.brap-theme main :is(.card, .table-card, .admin-table-card, .myr-table-card, .official-card,
  .helpdesk-table-card, .secure-card, .quick-link-card, .hero-feature-card, .timeline-card,
  .analysis-card, .admin-top-card, .login-card, .submission-meta-card) {
  border-radius: var(--brap-radius) !important; border-color: var(--brap-line-light) !important;
  box-shadow: var(--brap-shadow) !important;
}
.brap-theme main .card { --bs-card-border-color: var(--brap-line-light); --bs-card-bg: white; }
.brap-theme main .card-header {
  background: white !important; color: var(--brap-navy-800); padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--brap-line-light); border-radius: 16px 16px 0 0 !important;
}
.brap-theme main .card-header :is(h2, h3, h4, h5, h6, .text-white) { color: var(--brap-navy-800) !important; font-weight: 800; }
.brap-theme main .card-header .badge.bg-primary { background: linear-gradient(135deg, var(--brap-blue), var(--brap-navy-600)) !important; }
.brap-theme :is(.dark-header, .table-card-title) { background: linear-gradient(180deg, var(--brap-navy-800), var(--brap-navy-700)); color: white; }
.brap-theme .myr-header-card { border-radius: 16px; background: linear-gradient(135deg, var(--brap-navy-900), var(--brap-navy-700)); }
.brap-theme :is(.login-section, .contact-page-wrapper) { background: var(--brap-bg); }
.brap-theme .login-title { color: var(--brap-navy-800); font-weight: 800; }
.brap-theme .login-wrapper { margin-inline: auto; }

/* KPI cards: retain each metric and its existing colour meaning. */
.brap-theme :is(.kpi-card, .stat-card, .metric-spark-card, .countdown-card, .n-stat-item) {
  border-radius: 16px; border: 1px solid var(--brap-line-light); box-shadow: var(--brap-shadow);
}
.brap-theme .kpi-card { border-inline-start: 5px solid var(--brap-blue); }
.brap-theme .kpi-card:has(.text-success) { border-inline-start-color: var(--brap-green); }
.brap-theme .kpi-card:has(.text-warning) { border-inline-start-color: #e8800f; }
.brap-theme .kpi-green { border-inline-start-color: var(--brap-green); }
.brap-theme .kpi-amber { border-inline-start-color: #e8800f; }
.brap-theme .kpi-purple { border-inline-start-color: #6d28d9; }
.brap-theme :is(.kpi-val, .msc-value, .stat-value) { font-weight: 800; letter-spacing: -1px; }
.brap-theme :is(.kpi-label, .msc-label, .stat-label) { font-size: .74rem; font-weight: 700; letter-spacing: .7px; }
.brap-theme .kpi-icon-wrap { border-radius: 11px; }

/* Apply the template fields to native controls and the jQuery enhancer alike. */
.brap-theme :is(.form-label, .form-field > label) { color: var(--brap-muted); font-size: .78rem; font-weight: 700; letter-spacing: .4px; }
.brap-theme :is(.form-control, .form-select:not(.brap-dropdown-native), .exact-select, .exact-input, .form-input, .captcha-input, .search-box input) {
  border: 1.5px solid var(--brap-line); border-radius: 11px; background-color: white;
  color: var(--brap-ink); font-size: .9rem; font-weight: 500; line-height: 1.5; padding: .7rem .9rem;
}
.brap-theme :is(.form-control-lg, .form-select-lg:not(.brap-dropdown-native)) { font-size: 1rem; }
.brap-theme :is(.form-control-sm, .form-select-sm:not(.brap-dropdown-native)) { padding: .4rem .7rem; font-size: .8rem; }
.brap-theme .form-select:not(.brap-dropdown-native) { padding-inline-end: 2.2rem; }
.brap-theme :is(.form-control, .form-select, .exact-select, .exact-input, .form-input, .captcha-input):focus {
  border-color: var(--brap-blue-hover); box-shadow: 0 0 0 4px rgba(58,107,240,.15);
}
.brap-theme :is(.form-control, .form-select, .form-input):disabled { background-color: #eef1f8; color: var(--brap-muted); }
.brap-theme .form-control[readonly] { background-color: #f4f6fb; }
.brap-theme .input-wrapper { border-color: var(--brap-line); border-radius: 11px; }
.brap-theme .input-wrapper:focus-within { border-color: var(--brap-blue-hover); box-shadow: 0 0 0 4px rgba(58,107,240,.15); }
.brap-theme .input-wrapper .form-input { border: 0; border-radius: 0; box-shadow: none; }
.brap-theme .input-icon { background: var(--brap-blue-50); color: var(--brap-navy-700); border-color: var(--brap-line); }
.brap-theme .input-group-text { background: var(--brap-blue-50) !important; border-color: var(--brap-line); color: var(--brap-navy-700) !important; border-radius: 11px; }
.brap-theme .input-group > :not(:first-child):not(.brap-dropdown) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.brap-theme .input-group > :not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.brap-theme .brap-dropdown, .brap-theme .brap-dropdown-popup { --brap-dd-accent: var(--brap-blue); }
.brap-theme .brap-dropdown-toggle {
  border: 1.5px solid var(--brap-line); border-radius: 11px; padding: .7rem .9rem;
  font-size: .9rem; font-weight: 600; min-height: calc(1.5em + 1.4rem + 3px);
}
.brap-theme .brap-dropdown-native.form-select-lg ~ .brap-dropdown-toggle { padding: .7rem .9rem; font-size: 1rem; min-height: calc(1.5em + 1.4rem + 3px); }
.brap-theme .brap-dropdown-native.form-select-sm ~ .brap-dropdown-toggle { padding: .4rem .7rem; font-size: .8rem; min-height: calc(1.5em + .8rem + 3px); }
.brap-theme .brap-dropdown-popup { border-color: var(--brap-line); border-radius: 12px; box-shadow: var(--brap-shadow); }
.brap-theme .brap-dropdown-search { border-radius: 8px; border-color: var(--brap-line); font-size: .9rem; }
.brap-theme .brap-dropdown-option { font-size: .9rem; }
.brap-theme .form-check-input { border-color: #b4c0dc; }
.brap-theme .form-check-input:checked { background-color: var(--brap-blue); border-color: var(--brap-blue); }

/* Preserve Bootstrap validation and existing custom error messages. */
.brap-theme .form-control:is(.is-invalid, .input-validation-error),
.brap-theme .form-select:is(.is-invalid, .input-validation-error),
.brap-theme .brap-dropdown-toggle[aria-invalid=true],
.brap-theme .brap-dropdown-native.input-validation-error ~ .brap-dropdown-toggle { border-color: #c62828; }
.brap-theme .form-control.is-valid, .brap-theme .form-select.is-valid { border-color: var(--brap-green); }

/* Buttons, category/filter tabs and pagination; original disabled states are kept. */
.brap-theme .btn { border-radius: 11px; font-size: .85rem; font-weight: 700; padding: .65rem 1rem; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.brap-theme .btn-sm { padding: .4rem .7rem; font-size: .78rem; }
.brap-theme .btn-lg { padding: .8rem 1.4rem; font-size: .95rem; }
.brap-theme :is(.btn-primary, .btn-login, .btn-exact-save, .btn-view-resp, .btn-edit-action) {
  background: var(--brap-ink); border-color: var(--brap-ink); color: white; border-radius: 11px;
}
.brap-theme :is(.btn-primary, .btn-login):hover { background: var(--brap-navy-700); border-color: var(--brap-navy-700); color: white; }
.brap-theme .btn-success { background: linear-gradient(135deg, #1aa00c, #0f6f06); border-color: #0f6f06; }
.brap-theme :is(.btn-outline-primary, .btn-outline-info, .export-btn, .btn-export-excel) { color: var(--brap-blue); border-color: var(--brap-line); background: white; border-radius: 11px; }
.brap-theme :is(.btn-outline-primary, .btn-outline-info):hover { background: var(--brap-blue); border-color: var(--brap-blue); color: white; }
.brap-theme :is(.tab-btn, .toggle-tab-btn, .modal-tab-btn) { border-radius: 999px; border-color: var(--brap-line); font-size: .8rem; font-weight: 700; }
.brap-theme :is(.tab-btn, .toggle-tab-btn, .modal-tab-btn).active { background: var(--brap-navy-800); border-color: var(--brap-navy-800); color: white; }
.brap-theme .page-link { border-radius: 10px; margin-inline: .15rem; color: var(--brap-navy-800); border-color: var(--brap-line); font-weight: 700; }
.brap-theme .page-item.active .page-link { background: var(--brap-navy-800); border-color: var(--brap-navy-800); color: white; }
.brap-theme .page-item.disabled .page-link { color: #94a3b8; background: #f8fafc; }

/* Evidence and administration tables retain all columns and full descriptions. */
.brap-theme main :is(.table, .dash-table, .ra-table, .admin-table, .myr-table, .submission-table, .district-table, .modal-table) {
  --bs-table-bg: white; --bs-table-color: var(--brap-ink); --bs-table-border-color: var(--brap-line-light);
  --bs-table-hover-bg: var(--brap-blue-50); border-color: var(--brap-line-light); font-size: .86rem;
}
.brap-theme main :is(.table, .dash-table, .ra-table, .admin-table, .myr-table, .submission-table, .district-table, .modal-table) thead th {
  background: linear-gradient(180deg, var(--brap-navy-800), var(--brap-navy-700)) !important;
  color: white !important; font-size: .72rem; font-weight: 700; letter-spacing: .65px;
  text-transform: uppercase; padding: .85rem 1rem; border-color: var(--brap-navy-700);
}
.brap-theme main :is(.table, .dash-table, .ra-table, .admin-table, .myr-table, .submission-table, .district-table, .modal-table) tbody td {
  padding: .9rem 1rem; border-color: var(--brap-line-light); line-height: 1.5;
}
.brap-theme main table tbody tr:has(.reform-checkbox:checked) > td { background: #eaf1ff; }
.brap-theme main table tbody tr:has(.reform-checkbox:checked) > td:first-child { box-shadow: inset 4px 0 0 var(--brap-blue); }
.brap-theme .badge { border-radius: 7px; font-size: .74rem; font-weight: 700; letter-spacing: .15px; }
.brap-theme .badge.bg-warning { background: #fff7e0 !important; color: #b45309 !important; border: 1px solid #f4d9a0; }
.brap-theme .badge.bg-success { background: #e8f6e6 !important; color: #0f6f06 !important; border: 1px solid #b8dfb3; }
.brap-theme .badge.bg-info { background: var(--brap-blue-100) !important; color: var(--brap-navy-700) !important; border: 1px solid #c4d2fa; }
.brap-theme .font-monospace .badge { background: var(--brap-line-light) !important; color: var(--brap-navy-700) !important; font-size: .8rem !important; }
.brap-theme .dataTables_wrapper :is(.dataTables_length, .dataTables_filter, .dataTables_info) { color: var(--brap-muted); font-size: .82rem; }
.brap-theme .dataTables_wrapper .dataTables_filter input { border: 1.5px solid var(--brap-line); border-radius: 11px; padding: .6rem .9rem; }
.brap-theme .dataTables_wrapper .pagination { gap: .2rem; flex-wrap: wrap; }

/* Existing action bar adopts the template treatment without floating over content. */
.brap-theme main .brap-bulk-actions {
  background: linear-gradient(135deg, var(--brap-navy-900), var(--brap-navy-700)) !important;
  border-radius: 18px !important; color: white; gap: 1rem; flex-wrap: wrap;
  box-shadow: 0 12px 28px -12px rgba(10,18,48,.4) !important;
}
.brap-theme .brap-bulk-actions .text-muted { color: #cfd8fb !important; }
.brap-theme .brap-bulk-actions .text-primary { color: var(--brap-saffron) !important; }

/* Keep every existing dialog/tab/close control and Bootstrap positioning contract. */
.brap-theme :is(.modal-content, .modal-content-wide, .modal-form-exact) { border-radius: 20px; border-color: var(--brap-line); box-shadow: 0 30px 70px -20px rgba(0,0,0,.35); }
.brap-theme :is(.modal-header, .offcanvas-header) { background: linear-gradient(135deg, var(--brap-navy-900), var(--brap-navy-700)); color: white; }
.brap-theme :is(.modal-header, .offcanvas-header) :is(h2, h3, h4, h5, h6, .modal-title) { color: white; }
.brap-theme :is(.modal-header, .offcanvas-header) .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.brap-theme :is(.modal-footer, .offcanvas-footer) { border-top-color: var(--brap-line); }
.brap-theme .modal-info-grid > div { background: var(--brap-bg); border-radius: 12px; }
.brap-theme .alert { border-radius: 12px; }

/* Full original footer, including government logos and social links. */
.brap-theme .footer { font-family: var(--brap-font); position: relative; border-top: 0; }
.brap-theme .footer::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--brap-saffron) 0 33.33%, white 33.33% 66.66%, var(--brap-green) 66.66%); }
.brap-theme .footer-main { background: linear-gradient(180deg, var(--brap-navy-800), var(--brap-navy-900)); padding: 2.5rem 0 1.5rem; }
.brap-theme .footer-inner { gap: 2.5rem; }
.brap-theme :is(.footer-description, .footer-link, .last-updated) { color: #b9c4f5; }
.brap-theme .footer-links-title { font-size: .8rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.brap-theme .visitor-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.brap-theme .footer-bottom { background: var(--brap-navy-900); border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 1100px) {
  .brap-theme .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .brap-theme main :is(.dash-title, .admin-page-title, .section-title, .contact-main-title, .policy-title, h1.h3) { font-size: 1.5rem; }
  .brap-theme main .container-fluid { padding-inline: 1rem; }
  .brap-theme .brap-bulk-actions > div { max-width: 100%; }
  .brap-theme .brap-bulk-actions .btn { width: 100%; }
  .brap-theme .login-card { width: 100%; padding-inline: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .brap-theme *, .brap-theme *::before, .brap-theme *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Assessment page: map the reference composition onto the full existing grid. */
.brap-theme .brap-assessment { margin-inline: auto; padding-inline: 1.5rem; }
.brap-theme .brap-assessment-heading h1.h3 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.5px; color: var(--brap-navy-800) !important; }
.brap-theme .brap-assessment-heading p { font-size: .92rem; margin-top: .3rem; }
.brap-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.brap-summary-card { --summary-color: var(--brap-blue); --summary-bg: var(--brap-blue-50); background: white; border: 1px solid var(--brap-line-light); border-left: 5px solid var(--summary-color); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--brap-shadow); min-width: 0; }
.brap-summary-amber { --summary-color: #e8800f; --summary-bg: #fff4e6; }
.brap-summary-purple { --summary-color: #6d28d9; --summary-bg: #f1eaff; }
.brap-summary-green { --summary-color: var(--brap-green); --summary-bg: #e8f6e6; }
.brap-summary-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.brap-summary-label { font-size: .74rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--brap-muted); }
.brap-summary-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center; color: var(--summary-color); background: var(--summary-bg); font-size: 1.25rem; }
.brap-summary-value { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; line-height: 1; margin: .5rem 0 .1rem; color: var(--brap-navy-800); }
.brap-summary-caption { font-size: .78rem; color: var(--brap-muted); overflow-wrap: anywhere; }
.brap-summary-caption b { color: var(--summary-color); }
.brap-theme .brap-assessment-filters > .card-body { background: white !important; padding: 1.1rem 1.25rem !important; border-radius: 16px !important; }
.brap-theme .brap-assessment-filters .form-label { text-transform: uppercase; letter-spacing: .7px; font-size: .72rem; color: var(--brap-muted) !important; }
.brap-theme .brap-assessment-filters .brap-dropdown-toggle { box-shadow: none; }
.brap-filter-reset { align-self: end; }
.brap-reset-link { display: inline-block; padding: .7rem .4rem; font-size: .85rem; font-weight: 700; color: var(--brap-blue); }
.brap-theme .brap-assessment-directory .card-header { flex-wrap: wrap; gap: .8rem; }
.brap-theme .brap-assessment-directory .card-title { color: var(--brap-navy-800) !important; font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; gap: .6rem; }
.brap-theme .brap-assessment-directory .card-title i { width: 34px; height: 34px; background: var(--brap-blue-100); color: var(--brap-blue); border-radius: 10px; display: grid; place-items: center; margin: 0 !important; }
.brap-theme .brap-assessment-directory .card-header > .badge { font-size: .8rem !important; padding: .35rem .9rem !important; }
.brap-theme .brap-assessment-directory > .card-body { padding: 0 !important; }
.brap-category-chips { padding: .9rem 1.25rem 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.brap-category-chip { border: 1.5px solid var(--brap-line); border-radius: 999px; background: white; color: #334155; padding: .4rem .85rem; font-size: .78rem; font-weight: 700; display: inline-flex; gap: .45rem; align-items: center; }
.brap-category-chip span { background: rgba(100,116,139,.15); border-radius: 999px; padding: 0 .45rem; font-size: .7rem; }
.brap-category-chip.active { color: white; background: var(--brap-navy-800); border-color: var(--brap-navy-800); }
.brap-category-chip.active span { background: rgba(255,255,255,.2); }
.brap-theme .brap-assessment-directory .dataTables_wrapper > .row { margin: 0; padding: .9rem 1.25rem; align-items: center; row-gap: .6rem; }
.brap-theme .brap-assessment-directory .dataTables_wrapper > .row > div { padding: 0; }
.brap-theme .brap-assessment-directory .dataTables_wrapper > .row:nth-child(2) { padding: 0; }
.brap-theme .brap-assessment-directory .dataTables_filter input { width: min(340px, 50vw); border-radius: 11px; }
.brap-theme #stateReformTable { margin: 0 !important; border: 0 !important; min-width: 1400px; }
.brap-theme #stateReformTable thead th { background: linear-gradient(180deg, var(--brap-navy-800), var(--brap-navy-700)) !important; font-size: .72rem; padding-block: .85rem; }
.brap-theme #stateReformTable tbody td { vertical-align: top; padding: 1rem; border-bottom: 1px solid var(--brap-line-light); font-size: .86rem; }
.brap-theme #stateReformTable .form-check-input { width: 20px; height: 20px; border-radius: 6px; margin-top: .15rem; }
.brap-theme #stateReformTable .badge { white-space: nowrap; }
.brap-theme #stateReformTable .brap-category-tag { border: 0 !important; color: var(--brap-navy-700) !important; background: var(--brap-blue-100) !important; font-size: .7rem; font-weight: 800; }
.brap-theme #stateReformTable .brap-category-tag[data-category="DBRAP"] { background: #e6f6ea !important; color: #0d6a1c !important; }
.brap-theme #stateReformTable .brap-category-tag[data-category="SWS"] { background: #fff0dc !important; color: #a35a00 !important; }
.brap-theme #stateReformTable .btn-outline-info { background: var(--brap-blue); color: white; border: 0; border-radius: 10px !important; padding: .5rem .85rem !important; white-space: nowrap; }
.brap-iteration { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border: 1px solid #f4d9a0; border-radius: 50%; background: #fff7e0; color: #b45309; font-size: .8rem; }
.brap-selection-summary { display: flex; align-items: center; gap: .9rem; margin-bottom: .4rem; }
.brap-selection-number { background: var(--brap-saffron); color: #1b1200; border-radius: 12px; min-width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.15rem; font-weight: 800; }
.brap-theme .brap-clear-selection { color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.brap-theme .brap-bulk-actions .btn-success:disabled { background: #3a4678; border-color: #3a4678; color: #98a4d6; opacity: 1; box-shadow: none !important; }
@media (max-width: 1100px) { .brap-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .brap-summary-grid { grid-template-columns: 1fr; }
  .brap-theme .brap-assessment-heading h1.h3 { font-size: 1.5rem; }
  .brap-theme .brap-assessment-directory .dataTables_filter { text-align: left; }
  .brap-theme .brap-assessment-directory .dataTables_filter input { width: 100%; margin: .4rem 0 0; }
  .brap-theme .brap-assessment-directory .dataTables_filter label { display: block; width: 100%; white-space: normal; }
  .brap-theme .brap-assessment-directory .pagination { justify-content: flex-start !important; }
}
