:root {
    --mbj-primary: #1f6b57;
    --mbj-primary-soft: #154a3d;
    --mbj-accent: #9a6a3c;
    --mbj-paper: #fbfaf7;
    --mbj-sidebar-width: 280px;
}

body {
    background: #f6f7f8;
    color: #2f3438;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.btn-primary {
    background: var(--mbj-primary);
    border-color: var(--mbj-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--mbj-primary-soft);
    border-color: var(--mbj-primary-soft);
}

.text-primary {
    color: var(--mbj-primary) !important;
}

.login-page {
    background: linear-gradient(145deg, #fbfaf7 0%, #eef4f6 100%);
}

.login-brand-logo {
    width: min(300px, 78%);
    height: auto;
}

.header {
    height: 68px;
    padding-left: 24px;
    z-index: 997;
}

.logo {
    min-width: var(--mbj-sidebar-width);
}

.admin-brand-logo {
    width: 150px;
    height: auto;
    max-height: 52px;
    object-fit: contain;
}

.admin-header-label {
    padding-left: 20px;
    border-left: 1px solid #e7eaed;
    color: #7d858b;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sidebar {
    position: fixed;
    top: 68px;
    left: 0;
    bottom: 0;
    width: var(--mbj-sidebar-width);
    z-index: 996;
    transition: all .3s;
    padding: 20px;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid #edf0f2;
}

.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav .nav-heading {
    font-size: .72rem;
    text-transform: uppercase;
    color: #929ba2;
    font-weight: 700;
    letter-spacing: .08em;
    margin: 22px 0 8px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #33414b;
    padding: .75rem .9rem;
    border-radius: .75rem;
    text-decoration: none;
    font-weight: 600;
}

.sidebar-nav .nav-link.active,
.sidebar-nav .nav-link:hover {
    color: var(--mbj-primary);
    background: #eef3f5;
}

.main {
    margin-left: var(--mbj-sidebar-width);
    padding: 92px 24px 24px;
}

.pagetitle h4 {
    font-weight: 700;
}

.card {
    border-radius: 1rem;
}

.public-brand-logo {
    width: 128px;
    height: auto;
}

.public-framework-header {
    min-height: 72px;
}

.public-framework-footer {
    background: #fff;
}

.legal-shell {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.legal-header,
.legal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.legal-header {
    min-height: 92px;
    border-bottom: 1px solid #ddd8cf;
}

.legal-brand img {
    width: 145px;
    height: auto;
}

.legal-content {
    flex: 1;
    padding: 72px 0;
}

.legal-content h1 {
    font-family: "Source Serif 4",Georgia,serif;
    font-size: clamp(44px, 6vw, 68px);
    font-weight: 400;
    color: #141618;
}

.legal-content h2 {
    margin-top: 36px;
    font-size: 1.1rem;
}

.legal-content p,
.legal-content li {
    color: #676b67;
    line-height: 1.8;
}

.legal-footer {
    padding: 24px 0 34px;
    border-top: 1px solid #ddd8cf;
    color: #898d89;
    font-size: .78rem;
}

@media (max-width: 991.98px) {
    .sidebar { display: none; }
    .main { margin-left: 0; }
    .logo { min-width: auto; }
    .admin-brand-logo { width: 125px; }
}

/* =========================================================
   ACCOUNT REGISTRATION / EXTERNAL LOGIN
   ========================================================= */
.auth-card {
    overflow: hidden;
}

.auth-provider-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.auth-provider-button {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 1px solid #d9d5cd;
    border-radius: 10px;
    background: #fff;
    color: #2f3438;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.auth-provider-button:hover {
    color: #1f2d37;
    background: #fbfaf7;
    border-color: #c9c2b7;
    transform: translateY(-1px);
}

.auth-provider-button i {
    width: 20px;
    font-size: 18px;
    text-align: center;
}

.auth-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #969891;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-or-divider::before,
.auth-or-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e3ded5;
}

.auth-account-switch {
    color: #777c77;
}

.auth-account-switch a {
    color: var(--mbj-primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-account-switch a:hover {
    text-decoration: underline;
}

/* =========================================================
   LEGAL / PRIVACY / COOKIE CONSENT — 2026-08-14
   ========================================================= */
.public-legal-links,
.legal-footer-links {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.public-legal-links a,
.public-legal-links button,
.legal-footer-links a,
.legal-footer-links button {
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.public-legal-links a:hover,
.public-legal-links button:hover,
.legal-footer-links a:hover,
.legal-footer-links button:hover {
    color: #1f6b57;
    text-decoration: underline;
}

.legal-header-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.legal-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.legal-nav a {
    color: #777c77;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.legal-nav a:hover { color: #1f6b57; }

.legal-content {
    max-width: 820px;
    width: 100%;
}

.legal-content .lead {
    max-width: 760px;
    margin-top: 18px;
    color: #545a56;
    font-size: 1.08rem;
    line-height: 1.8;
}

.legal-eyebrow {
    margin-bottom: 10px;
    color: #8c806f !important;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.legal-updated {
    margin: 12px 0 0;
    color: #94968f !important;
    font-size: .82rem;
}

.legal-content h2 {
    margin-top: 42px;
    margin-bottom: 12px;
    color: #242a26;
    font-size: 1.08rem;
    font-weight: 800;
}

.legal-content ul {
    padding-left: 1.2rem;
}

.legal-content li + li { margin-top: 8px; }

.legal-content a {
    color: #354c40;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-callout {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin: 34px 0 8px;
    padding: 18px 20px;
    border: 1px solid #ded8ce;
    border-radius: 14px;
    background: #fbfaf7;
}

.legal-callout > i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #1f6b57;
    color: #fff;
    font-size: 18px;
}

.legal-callout strong,
.legal-callout span { display: block; }
.legal-callout strong { margin-bottom: 4px; color: #24302a; }
.legal-callout span { color: #68706b; font-size: .92rem; line-height: 1.65; }

.legal-related {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 50px;
    padding-top: 22px;
    border-top: 1px solid #e2ddd4;
    color: #8a8d88;
    font-size: .82rem;
}

.legal-related > span {
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-inline-button {
    border: 0;
    background: none;
    padding: 0;
    color: #354c40;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.legal-cookie-settings-button { margin-top: 6px; }
.legal-footer > div:first-child { display: inline-flex; align-items: center; gap: 6px; }

/* Registration legal acceptance */
.auth-external-registration { margin: 0; }
.auth-external-registration .auth-provider-button { width: 100%; }

.auth-legal-consent {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 2px 0 0;
    color: #777c77;
    font-size: 12px;
    line-height: 1.55;
    cursor: pointer;
}

.auth-legal-consent .form-check-input {
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    cursor: pointer;
}

.auth-legal-consent a {
    color: #354c40;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-email-legal {
    padding: 13px 14px;
    border: 1px solid #e0dbd2;
    border-radius: 10px;
    background: #faf8f4;
}

/* Cookie banner + preference center */
.cookie-consent[hidden],
.cookie-preferences-backdrop[hidden] { display: none !important; }

.cookie-consent-banner {
    position: fixed;
    z-index: 1090;
    left: 24px;
    right: 24px;
    bottom: 24px;
    max-width: 1180px;
    margin: 0 auto;
    display: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 20px 22px;
    border: 1px solid rgba(36, 54, 46, .16);
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 60px rgba(21, 28, 24, .18);
    backdrop-filter: blur(12px);
}

.cookie-consent.show-banner .cookie-consent-banner { display: grid; }

.cookie-consent-copy {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.cookie-consent-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #1f6b57;
    color: #fff;
    font-size: 17px;
}

.cookie-consent-copy strong {
    display: block;
    margin-bottom: 3px;
    color: #202823;
    font-size: .95rem;
}

.cookie-consent-copy p {
    margin: 0;
    max-width: 760px;
    color: #6e746f;
    font-size: .78rem;
    line-height: 1.55;
}

.cookie-consent-links {
    display: flex;
    gap: 14px;
    margin-top: 7px;
}

.cookie-consent-links a {
    color: #43594e;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
}

.cookie-consent-links a:hover { text-decoration: underline; }

.cookie-consent-actions,
.cookie-preferences-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.cookie-btn {
    min-height: 40px;
    padding: 0 15px;
    border-radius: 9px;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}

.cookie-btn-primary {
    border: 1px solid #1f6b57;
    background: #1f6b57;
    color: #fff;
}
.cookie-btn-primary:hover { background: #17261f; color: #fff; }

.cookie-btn-secondary {
    border: 1px solid #d7d3cb;
    background: #fff;
    color: #3d4741;
}
.cookie-btn-secondary:hover { border-color: #bcb7ad; background: #f7f4ee; color: #1f6b57; }

.cookie-preferences-backdrop {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(16, 21, 18, .48);
    opacity: 0;
    transition: opacity .16s ease;
}

.cookie-preferences-backdrop.show { opacity: 1; }

.cookie-preferences {
    width: min(620px, 100%);
    max-height: min(720px, calc(100vh - 44px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(12, 18, 14, .28);
    transform: translateY(8px);
    transition: transform .16s ease;
}

.cookie-preferences-backdrop.show .cookie-preferences { transform: translateY(0); }

.cookie-preferences-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #ebe7df;
}

.cookie-preferences-kicker {
    display: block;
    margin-bottom: 4px;
    color: #9a8c79;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.cookie-preferences-header h2 { margin: 0; color: #202823; font-size: 1.35rem; }

.cookie-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid #e0dcd4;
    border-radius: 9px;
    background: #fff;
    color: #555e58;
}
.cookie-close:hover { background: #f7f4ee; color: #1f6b57; }

.cookie-preferences-body {
    overflow-y: auto;
    padding: 20px 24px 22px;
}

.cookie-preferences-intro {
    margin: 0 0 18px;
    color: #6d746f;
    font-size: .85rem;
    line-height: 1.65;
}

.cookie-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid #eeeae3;
}

.cookie-category-copy { min-width: 0; }
.cookie-category-copy strong { display: block; margin-bottom: 3px; color: #2a332e; font-size: .87rem; }
.cookie-category-copy span { display: block; color: #7a807b; font-size: .76rem; line-height: 1.5; }
.cookie-category-toggle { cursor: pointer; }

.cookie-required {
    flex: 0 0 auto;
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf2ef;
    color: #42574b;
    font-size: .65rem;
    font-weight: 800;
    white-space: nowrap;
}

.cookie-switch { position: relative; flex: 0 0 auto; width: 42px; height: 24px; }
.cookie-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cookie-switch > span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d6d7d2;
    transition: background .16s ease;
}
.cookie-switch > span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    transition: transform .16s ease;
}
.cookie-switch input:checked + span { background: #354c40; }
.cookie-switch input:checked + span::after { transform: translateX(18px); }
.cookie-switch input:focus-visible + span { outline: 3px solid rgba(53, 76, 64, .2); outline-offset: 2px; }

.cookie-current-note {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 9px;
    margin-top: 14px;
    padding: 12px 13px;
    border-radius: 10px;
    background: #f7f4ee;
    color: #707670;
    font-size: .72rem;
    line-height: 1.55;
}

.cookie-current-note i { color: #697c72; }

.cookie-preferences-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid #ebe7df;
    background: #fbfaf7;
}

body.cookie-preferences-open { overflow: hidden; }

@media (max-width: 767.98px) {
    .legal-shell { width: min(100% - 28px, 1040px); }
    .legal-header { min-height: 78px; }
    .legal-header-actions { gap: 8px; }
    .legal-nav { display: none; }
    .legal-content { padding: 50px 0; }
    .legal-content h1 { font-size: clamp(40px, 12vw, 54px); }
    .legal-footer { align-items: flex-start; flex-direction: column; }
    .legal-footer-dot { display: none; }
    .legal-footer > div:first-child { align-items: flex-start; flex-direction: column; }

    .cookie-consent-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 17px;
        border-radius: 14px;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-consent-actions .cookie-btn-primary { grid-column: 1 / -1; grid-row: 1; }
    .cookie-btn { width: 100%; }
    .cookie-preferences-backdrop { padding: 10px; align-items: end; }
    .cookie-preferences { max-height: calc(100vh - 20px); border-radius: 16px; }
    .cookie-preferences-header,
    .cookie-preferences-body { padding-left: 18px; padding-right: 18px; }
    .cookie-preferences-footer { padding: 14px 18px 18px; }
}
.auth-external-legal-consent {
    margin: 0 0 14px;
    padding: 12px 13px;
    border: 1px solid #e0dbd2;
    border-radius: 10px;
    background: #faf8f4;
}

/* =========================================================
   ADMIN MONITORING — restored after legal/cookie stylesheet merge
   ========================================================= */
.admin-stat-card,
.admin-panel-card {
    border: 1px solid #e8ecef;
    box-shadow: 0 8px 28px rgba(16, 43, 66, .045);
    background: #fff;
}

.admin-stat-card .card-body {
    position: relative;
    padding: 22px;
}

.admin-stat-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #eef3f5;
    color: var(--mbj-primary);
    font-size: 18px;
}

.admin-stat-label {
    color: #7b848b;
    font-size: .77rem;
    font-weight: 700;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.admin-stat-value {
    margin: 4px 0 2px;
    color: #1e2931;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
}

.admin-stat-meta {
    color: #8b9399;
    font-size: .78rem;
}

.admin-panel-header {
    min-height: 74px;
    padding: 17px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border-bottom: 1px solid #edf0f2;
}

.admin-panel-header h5 {
    color: #27333c;
    font-size: .98rem;
    font-weight: 750;
}

.admin-text-link {
    color: var(--mbj-primary);
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
}

.admin-loading-card {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px;
    border: 1px solid #e8ecef;
    border-radius: 1rem;
    background: #fff;
    color: #707a81;
    font-size: .86rem;
}

.admin-monitor-table thead th {
    padding: 12px 16px;
    background: #f8fafb;
    border-bottom: 1px solid #e9edf0;
    color: #7d868d;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-monitor-table tbody td {
    padding: 15px 16px;
    border-color: #edf0f2;
    color: #374149;
    font-size: .82rem;
    vertical-align: middle;
}

.admin-monitor-table tbody tr:hover {
    background: #fbfcfc;
}

.admin-user-cell {
    min-width: 210px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.admin-user-cell > span:last-child,
.admin-access-cell {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-user-cell strong,
.admin-access-cell strong {
    color: #26323a;
    font-size: .83rem;
    font-weight: 750;
}

.admin-user-cell small,
.admin-access-cell small {
    color: #8a9298;
    font-size: .72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8eff3;
    color: var(--mbj-primary);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.admin-user-avatar.large {
    width: 48px;
    height: 48px;
    font-size: .86rem;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 750;
    white-space: nowrap;
}

.admin-status-pill.success {
    background: #eaf4ee;
    color: #337253;
}

.admin-status-pill.neutral {
    background: #f0f2f3;
    color: #687177;
}

.admin-progress-cell {
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-progress-cell.stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.admin-progress-cell .progress,
.admin-detail-progress {
    height: 7px;
    flex: 1;
    background: #e9edef;
    border-radius: 999px;
}

.admin-progress-cell .progress-bar,
.admin-detail-progress .progress-bar {
    background: var(--mbj-primary);
    border-radius: inherit;
}

.admin-progress-cell > span,
.admin-progress-cell strong {
    color: #44515a;
    font-size: .72rem;
    font-weight: 750;
}

.admin-missed-copy {
    color: #a85a51;
    font-size: .68rem;
}

.admin-attention-list {
    display: grid;
    gap: 4px;
    padding: 10px 14px 14px;
}

.admin-attention-item {
    min-height: 72px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 11px;
    padding: 10px 8px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background .15s ease;
}

.admin-attention-item:hover {
    background: #f7f9fa;
    color: inherit;
}

.admin-attention-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.admin-attention-icon.warning { background: #faf1df; color: #9b7135; }
.admin-attention-icon.danger { background: #fae9e7; color: #a45d56; }
.admin-attention-icon.neutral { background: #edf0f2; color: #68737b; }

.admin-attention-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-attention-copy strong {
    color: #27333b;
    font-size: 1rem;
}

.admin-attention-copy small {
    color: #838c92;
    font-size: .73rem;
    line-height: 1.35;
}

.admin-attention-item > .bi-chevron-right {
    color: #a5acb1;
    font-size: .75rem;
}

.admin-user-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
}

.admin-search-box {
    position: relative;
    flex: 1 1 360px;
    max-width: 520px;
}

.admin-search-box > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #8b949a;
    font-size: .83rem;
}

.admin-search-box .form-control {
    min-height: 40px;
    padding-left: 38px;
    border-color: #dde2e5;
    border-radius: 10px;
    font-size: .8rem;
}

.admin-filter-select {
    width: 205px;
    min-height: 40px;
    border-color: #dde2e5;
    border-radius: 10px;
    font-size: .8rem;
}

.admin-toolbar-count {
    margin-left: auto;
    color: #8a9298;
    font-size: .74rem;
    white-space: nowrap;
}

.admin-row-actions {
    display: inline-flex;
    gap: 5px;
}

.admin-row-actions .btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #e2e6e8;
    border-radius: 8px;
    color: #5b6770;
    background: #fff;
}

.admin-row-actions .btn:hover:not(:disabled) {
    color: var(--mbj-primary);
    background: #f1f5f6;
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(16, 26, 34, .42);
    backdrop-filter: blur(3px);
}

.admin-user-modal {
    width: min(690px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(16, 35, 49, .18);
}

.admin-user-modal-header {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 20px;
    border-bottom: 1px solid #e9edef;
}

.admin-user-modal-identity {
    display: flex;
    align-items: center;
    gap: 13px;
}

.admin-user-modal-identity h5 {
    margin: 0 0 2px;
    color: #26323a;
    font-size: 1rem;
    font-weight: 800;
}

.admin-user-modal-identity p {
    margin: 0;
    color: #8a9298;
    font-size: .76rem;
}

.admin-modal-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #78838a;
}

.admin-modal-close:hover { background: #f1f4f5; color: #33414a; }

.admin-user-modal-body {
    padding: 20px;
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-detail-item {
    min-height: 66px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 11px 13px;
    border: 1px solid #e8ecee;
    border-radius: 11px;
    background: #fbfcfc;
}

.admin-detail-item span {
    margin-bottom: 3px;
    color: #8a9298;
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.admin-detail-item strong {
    color: #34414a;
    font-size: .79rem;
    font-weight: 750;
}

.admin-user-journey-card {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e4e9eb;
    border-radius: 14px;
    background: #f8fafb;
}

.admin-journey-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.admin-section-kicker {
    display: block;
    margin-bottom: 3px;
    color: #8a9298;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.admin-journey-heading h6 {
    margin: 0;
    color: #27343c;
    font-size: .9rem;
    font-weight: 800;
}

.admin-journey-percent {
    color: var(--mbj-primary);
    font-size: 1.35rem;
}

.admin-detail-progress {
    width: 100%;
    margin-bottom: 16px;
}

.admin-journey-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid #e4e8ea;
    border-radius: 11px;
    overflow: hidden;
    background: #fff;
}

.admin-journey-metrics > div {
    min-height: 66px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px;
}

.admin-journey-metrics > div + div { border-left: 1px solid #e9edef; }
.admin-journey-metrics strong { color: #2c3941; font-size: 1rem; }
.admin-journey-metrics span { color: #8a9298; font-size: .67rem; }

.admin-user-modal-footer {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid #e9edef;
    background: #fbfcfc;
}

@media (max-width: 767.98px) {
    .admin-user-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-search-box,
    .admin-filter-select {
        width: 100%;
        max-width: none;
        flex: 0 0 auto;
    }

    .admin-toolbar-count { margin-left: 0; }
    .admin-detail-grid { grid-template-columns: 1fr; }
    .admin-journey-metrics { grid-template-columns: repeat(2, 1fr); }
    .admin-journey-metrics > div + div { border-left: 0; }
    .admin-journey-metrics > div:nth-child(even) { border-left: 1px solid #e9edef; }
    .admin-journey-metrics > div:nth-child(n+3) { border-top: 1px solid #e9edef; }
}

/* Attention panel layout hardening */
.admin-panel-card .admin-attention-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 8px 14px 14px !important;
}

.admin-panel-card .admin-attention-item {
    width: 100%;
    min-height: 72px;
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) 18px !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 10px !important;
    border: 0;
    border-radius: 10px;
    color: inherit !important;
    text-decoration: none !important;
}

.admin-panel-card .admin-attention-item + .admin-attention-item {
    border-top: 1px solid #edf0f2;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.admin-panel-card .admin-attention-copy {
    min-width: 0;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    column-gap: 5px;
    row-gap: 2px;
}

.admin-panel-card .admin-attention-copy strong {
    display: inline !important;
    margin: 0;
    color: #27333b;
    font-size: .94rem;
    line-height: 1.35;
    font-weight: 800;
}

.admin-panel-card .admin-attention-copy small {
    display: inline !important;
    min-width: 0;
    color: #747e85;
    font-size: .76rem;
    line-height: 1.45;
}

.admin-panel-card .admin-attention-item > .bi-chevron-right {
    justify-self: end;
    color: #a5acb1;
}

@media (max-width: 575.98px) {
    .admin-panel-card .admin-attention-copy {
        grid-template-columns: 1fr;
    }

    .admin-panel-card .admin-attention-copy strong,
    .admin-panel-card .admin-attention-copy small {
        display: block !important;
    }
}
