/* ---------- General Layout ---------- */

body {
    background: #f5f7fb;
    margin: 0;
    overflow-x: hidden;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.sidebar {
    width: 260px;
    flex-shrink: 0;
}

/* ---------- Main ---------- */

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* ---------- Topbar ---------- */

.topbar {
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ---------- Content ---------- */

.content-area {
    padding: 2rem;
}

/* ---------- Cards ---------- */

.card {
    border-radius: 14px;
}

/* ---------- Tables ---------- */

.table td,
.table th {
    vertical-align: middle;
}

.table-responsive {
    overflow-x: auto;
}

/* ---------- Buttons ---------- */

.btn {
    border-radius: 8px;
}

.content-page {
    max-width: 1600px;
    margin: 0 auto;
}
/* =========================================================
   AIAZ Trust Europe — Enterprise application shell
   ========================================================= */

:root {
    --sidebar-width: 264px;
    --sidebar-bg: #0f172a;
    --sidebar-surface: #172033;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-text: #cbd5e1;
    --sidebar-muted: #8290a5;
    --sidebar-active: #ffffff;
    --sidebar-active-bg: rgba(59, 130, 246, 0.18);

    --page-bg: #f5f7fb;
    --surface: #ffffff;
    --border: #e5e9f0;
    --text-primary: #172033;
    --text-secondary: #667085;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;

    --shadow-sm:
        0 1px 2px rgba(16, 24, 40, 0.04),
        0 1px 3px rgba(16, 24, 40, 0.06);
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text-primary);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}


/* ---------- Sidebar ---------- */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    min-height: 100vh;
}

    display: flex;
    flex-direction: column;

    width: var(--sidebar-width);
    min-height: 100vh;

    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
}

.sidebar-brand {
    padding: 1.4rem 1.25rem;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    color: #ffffff;
    text-decoration: none;
}

.sidebar-brand-link:hover {
    color: #ffffff;
}

.brand-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border-radius: 12px;
    background: var(--primary);

    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.brand-copy span {
    margin-top: 0.2rem;
    color: var(--sidebar-muted);
    font-size: 0.77rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.85rem;
    overflow-y: auto;
}

.sidebar-section-label {
    padding: 0.8rem 0.75rem 0.45rem;

    color: var(--sidebar-muted);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    min-height: 44px;
    margin-bottom: 0.25rem;
    padding: 0.7rem 0.8rem;

    border-radius: 9px;

    color: var(--sidebar-text);
    font-size: 0.91rem;
    font-weight: 500;
    text-decoration: none;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.sidebar-nav a i {
    width: 20px;
    font-size: 1.05rem;
    text-align: center;
}

.sidebar-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(2px);
}

.sidebar-nav a.active {
    color: var(--sidebar-active);
    background: var(--sidebar-active-bg);
}

.sidebar-nav a.disabled {
    cursor: default;
    opacity: 0.55;
    pointer-events: none;
}

.sidebar-coming-soon {
    margin-left: auto;
    padding: 0.15rem 0.4rem;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;

    color: var(--sidebar-muted);
    font-size: 0.62rem;
    text-transform: uppercase;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--sidebar-border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;

    margin-bottom: 0.8rem;
    padding: 0.7rem;

    border-radius: 10px;
    background: var(--sidebar-surface);
}

.sidebar-user-avatar,
.topbar-user-avatar {
    display: grid;
    place-items: center;

    flex: 0 0 auto;
    width: 36px;
    height: 36px;

    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;

    font-weight: 700;
}

.sidebar-user-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-user-details strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-details span {
    overflow: hidden;
    margin-top: 0.1rem;
    color: var(--sidebar-muted);
    font-size: 0.69rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-signout {
    display: flex;
    align-items: center;
    gap: 0.7rem;

    width: 100%;
    padding: 0.65rem 0.75rem;

    border: 0;
    border-radius: 9px;
    background: transparent;

    color: var(--sidebar-text);
    font-size: 0.85rem;
    text-align: left;
}

.sidebar-signout:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}


/* ---------- Main shell ---------- */

.main-wrapper {
    width: calc(100% - var(--sidebar-width));
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1020;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    min-height: 88px;
    padding: 1.1rem 2rem;

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.topbar-heading h1 {
    margin: 0;

    color: var(--text-primary);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.topbar-heading p {
    margin: 0.25rem 0 0;

    color: var(--text-secondary);
    font-size: 0.87rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}


.messages-container {
    margin-bottom: 1rem;
}


/* ---------- Common components ---------- */

.card {
    border-color: var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

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

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

.table > :not(caption) > * > * {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.table thead th {
    color: #667085;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge {
    padding: 0.42rem 0.65rem;
    border-radius: 999px;
    font-weight: 600;
}


/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
    :root {
        --sidebar-width: 220px;
    }

    .content-area,
    .topbar {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    

    .main-wrapper {
        margin-left: 0;
    }

    .topbar {
        min-height: auto;
        padding: 1rem;
    }

    .topbar-heading p {
        display: none;
    }

    .topbar-actions .btn {
        font-size: 0;
    }

    .topbar-actions .btn i {
        margin: 0;
        font-size: 1rem;
    }

    .content-area {
        padding: 1.25rem 1rem 2rem;
    }
    /* =========================================================
   Dashboard
   ========================================================= */

.metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;

    min-height: 118px;
    padding: 1.35rem;

    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.metric-card-icon {
    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;
    flex: 0 0 52px;

    border-radius: 13px;
    font-size: 1.35rem;
}

.metric-card-content {
    display: flex;
    flex-direction: column;
}

.metric-card-content span {
    color: var(--text-secondary);
    font-size: 0.83rem;
    font-weight: 500;
}

.metric-card-content strong {
    margin-top: 0.15rem;
    font-size: 1.85rem;
    line-height: 1.1;
}

.risk-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 120px;
    padding: 1.4rem;

    border: 1px solid;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.risk-card div {
    display: flex;
    flex-direction: column;
}

.risk-card span {
    color: var(--text-secondary);
    font-size: 0.83rem;
    font-weight: 500;
}

.risk-card strong {
    margin-top: 0.15rem;
    font-size: 1.8rem;
}

.risk-card > i {
    font-size: 1.65rem;
}

.risk-card-success {
    border-color: #bbf7d0;
}

.risk-card-success > i {
    color: #16a34a;
}

.risk-card-warning {
    border-color: #fde68a;
}

.risk-card-warning > i {
    color: #d97706;
}

.risk-card-danger {
    border-color: #fecaca;
}

.risk-card-danger > i {
    color: #dc2626;
}

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:first-child {
    padding-top: 0;
}

.activity-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.activity-icon {
    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    border-radius: 10px;
    background: #eff6ff;
    color: var(--primary);
}

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

.activity-copy strong {
    overflow-wrap: anywhere;
    font-size: 0.82rem;
}

.activity-copy span,
.activity-copy small {
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    min-height: 260px;
    padding: 2rem;

    text-align: center;
}

.empty-state i {
    margin-bottom: 1rem;
    color: #94a3b8;
    font-size: 2rem;
}

.empty-state h3 {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.empty-state p {
    max-width: 360px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.empty-state-compact {
    min-height: 180px;
}

.ai-system-summary {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    height: 100%;
    padding: 1rem;

    border: 1px solid var(--border);
    border-radius: 12px;
}

.ai-system-summary-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    border-radius: 11px;
    background: #eff6ff;
    color: var(--primary);
}

.ai-system-summary > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ai-system-summary strong,
.ai-system-summary span,
.ai-system-summary small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-system-summary strong {
    font-size: 0.84rem;
}

.ai-system-summary span,
.ai-system-summary small {
    color: var(--text-secondary);
    font-size: 0.7rem;
}
}
   
/* =========================================================
Assessments workspace
   ========================================================= */

.assessment-filters {
    display: grid;
    grid-template-columns:
        minmax(280px, 1fr)
        minmax(180px, 220px)
        minmax(180px, 220px)
        auto;
    align-items: end;
    gap: 1rem;
}

.assessment-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.assessment-table {
    min-width: 1250px;
}

.assessment-identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 270px;
}

.assessment-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 11px;
    background: #eff6ff;
    color: var(--primary);
}

.assessment-identity > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.assessment-identity strong,
.assessment-identity span,
.assessment-identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assessment-identity strong {
    max-width: 300px;
    font-size: 0.87rem;
}

.assessment-identity span {
    margin-top: 0.1rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.assessment-identity small {
    max-width: 300px;
    color: #94a3b8;
    font-size: 0.68rem;
}

.assessment-progress {
    min-width: 140px;
}

.assessment-progress span,
.assessment-progress strong {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.assessment-progress .progress {
    height: 7px;
    background: #e8edf4;
}

.status-pill-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

.status-pill-info {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

.review-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.review-required {
    background: #fff7ed;
    color: #c2410c;
}

.review-not-required {
    background: #f0fdf4;
    color: #15803d;
}

@media (max-width: 1199.98px) {
    .assessment-filters {
        grid-template-columns:
            minmax(240px, 1fr)
            minmax(170px, 1fr)
            minmax(170px, 1fr);
    }

    .assessment-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .assessment-filters {
        grid-template-columns: 1fr;
    }

    .assessment-filter-actions {
        grid-column: auto;
    }

    .assessment-filter-actions .btn {
        flex: 1;
    }
}
 /* =========================================================  
Human review queue
   ========================================================= */

.review-queue-filters {
    display: grid;
    grid-template-columns:
        minmax(280px, 1fr)
        minmax(190px, 240px)
        minmax(190px, 240px)
        auto;
    align-items: end;
    gap: 1rem;
}

.review-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.review-queue-table {
    min-width: 1180px;
}

.reviewer-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 190px;
}

.reviewer-avatar {
    display: grid;
    place-items: center;

    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    border-radius: 50%;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 700;
}

.reviewer-chip > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.reviewer-chip strong,
.reviewer-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reviewer-chip strong {
    font-size: 0.78rem;
}

.reviewer-chip span {
    color: var(--text-secondary);
    font-size: 0.68rem;
}

.priority-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.58rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.priority-critical {
    background: #fef2f2;
    color: #b91c1c;
}

.priority-high {
    background: #fffbeb;
    color: #b45309;
}

.priority-normal {
    background: #f8fafc;
    color: #64748b;
}

@media (max-width: 1199.98px) {
    .review-queue-filters {
        grid-template-columns:
            minmax(240px, 1fr)
            minmax(170px, 1fr)
            minmax(170px, 1fr);
    }

    .review-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .review-queue-filters {
        grid-template-columns: 1fr;
    }

    .review-filter-actions {
        grid-column: auto;
    }

    .review-filter-actions .btn {
        flex: 1;
    }
}
/* =========================================================
   Organization detail
   ========================================================= */

.member-list {
    display: flex;
    flex-direction: column;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;

    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
}

.member-item:first-child {
    padding-top: 0;
}

.member-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.member-copy {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.member-copy strong,
.member-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-copy strong {
    font-size: 0.8rem;
}

.member-copy span {
    color: var(--text-secondary);
    font-size: 0.68rem;
}

.role-pill {
    display: inline-flex;
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.65rem;
    font-weight: 700;
    white-space: nowrap;
}
/* =========================================================
   Documentation hub
   ========================================================= */

.documentation-filters {
    display: grid;
    grid-template-columns:
        minmax(280px, 1fr)
        minmax(190px, 240px)
        minmax(180px, 220px)
        auto;
    align-items: end;
    gap: 1rem;
}

.documentation-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.documentation-table {
    min-width: 1200px;
}

.document-identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 270px;
}

.document-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    border-radius: 11px;
    background: #eff6ff;
    color: var(--primary);
}

.document-identity > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.document-identity strong,
.document-identity span,
.document-identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-identity strong {
    max-width: 300px;
    font-size: 0.86rem;
}

.document-identity span {
    max-width: 300px;
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.document-identity small {
    max-width: 300px;
    color: #94a3b8;
    font-size: 0.68rem;
}

@media (max-width: 1199.98px) {
    .documentation-filters {
        grid-template-columns:
            minmax(240px, 1fr)
            minmax(170px, 1fr)
            minmax(170px, 1fr);
    }

    .documentation-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767.98px) {
    .documentation-filters {
        grid-template-columns: 1fr;
    }

    .documentation-filter-actions {
        grid-column: auto;
    }

    .documentation-filter-actions .btn {
        flex: 1;
    }
}
/* =========================================================
   Document detail
   ========================================================= */

.document-download-summary {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.document-download-icon {
    display: grid;
    place-items: center;

    width: 64px;
    height: 64px;
    margin-bottom: 1rem;

    border-radius: 16px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 1.7rem;
}

.document-download-summary p {
    font-size: 0.85rem;
}

/* =========================================================
   Evidence readiness dashboard
   ========================================================= */

.evidence-table {
    min-width: 1180px;
}

.readiness-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
}

.readiness-good {
    background: #f0fdf4;
    color: #15803d;
}

.readiness-partial {
    background: #fffbeb;
    color: #b45309;
}

.readiness-missing {
    background: #fef2f2;
    color: #b91c1c;
}
/* =========================================================
   AI system evidence coverage
   ========================================================= */

.coverage-value {
    color: var(--primary);
    font-size: 1.4rem;
}

.evidence-coverage-progress {
    height: 12px;
    border-radius: 999px;
    background: #e8edf4;
}

.evidence-coverage-progress .progress-bar {
    border-radius: 999px;
}

.evidence-category-table {
    min-width: 900px;
}

.evidence-category-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 230px;
}

.evidence-category-icon {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    border-radius: 10px;
    background: #eff6ff;
    color: var(--primary);
}

.evidence-category-name strong {
    font-size: 0.84rem;
}
/* =========================================================
   Audit log dashboard
   ========================================================= */

.audit-log-filters {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.4fr)
        minmax(180px, 0.8fr)
        minmax(180px, 0.8fr)
        minmax(180px, 0.8fr);
    gap: 1rem;
    align-items: end;
}

.audit-filter-search {
    grid-column: span 2;
}

.audit-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.audit-timeline {
    position: relative;
    padding: 1.5rem 1.75rem;
}

.audit-timeline::before {
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: 41px;

    width: 2px;

    background: #e2e8f0;
    content: "";
}

.audit-event {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
    padding-bottom: 1.5rem;
}

.audit-event:last-child {
    padding-bottom: 0;
}

.audit-event-marker {
    position: relative;
    z-index: 1;

    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;
    margin-left: 6px;

    border: 4px solid #ffffff;
    border-radius: 50%;
    background: #dbeafe;
    color: var(--primary);
}

.audit-event-content {
    padding: 1rem 1.1rem;

    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
}

.audit-event-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.audit-event-header h3 {
    margin: 0;

    font-size: 0.92rem;
    font-weight: 700;
}

.audit-event-header p {
    margin: 0.2rem 0 0;

    color: var(--text-secondary);
    font-size: 0.76rem;
}

.audit-event-header time {
    color: var(--text-secondary);
    font-size: 0.72rem;
    white-space: nowrap;
}

.audit-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;

    margin-top: 0.85rem;
}

.audit-event-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    color: var(--text-secondary);
    font-size: 0.7rem;
}

.audit-metadata {
    margin-top: 0.9rem;
}

.audit-metadata summary {
    cursor: pointer;

    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
}

.audit-metadata pre {
    max-height: 320px;
    margin: 0.75rem 0 0;
    padding: 0.9rem;

    overflow: auto;
    border-radius: 9px;
    background: #0f172a;
    color: #e2e8f0;

    font-size: 0.7rem;
    white-space: pre-wrap;
}

.audit-pagination {
    display: flex;
    justify-content: center;

    padding: 1.25rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 1199.98px) {
    .audit-log-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .audit-filter-search {
        grid-column: span 2;
    }
}

@media (max-width: 767.98px) {
    .audit-log-filters {
        grid-template-columns: 1fr;
    }

    .audit-filter-search {
        grid-column: auto;
    }

    .audit-filter-actions .btn {
        flex: 1;
    }

    .audit-event-header {
        flex-direction: column;
    }

    .audit-timeline {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .audit-timeline::before {
        left: 33px;
    }

    .audit-event {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 0.75rem;
    }

    .audit-event-marker {
        margin-left: 0;
    }
}
/* =========================================================
   Audit log detail
   ========================================================= */

.audit-detail-json {
    max-height: 520px;
    margin: 0;
    padding: 1rem;

    overflow: auto;
    border-radius: 10px;
    background: #0f172a;
    color: #e2e8f0;

    font-size: 0.76rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}
/* =========================================================
   Executive reports
   ========================================================= */

.report-distribution-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.report-distribution-copy {
    display: flex;
    justify-content: space-between;
    gap: 1rem;

    margin-bottom: 0.45rem;
}

.report-distribution-copy span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.report-distribution-copy strong {
    font-size: 0.85rem;
}

.report-progress {
    height: 8px;
    border-radius: 999px;
    background: #e8edf4;
}

.report-progress .progress-bar {
    border-radius: 999px;
}

.report-coverage-summary {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.report-coverage-value {
    min-width: 88px;

    color: var(--primary);
    font-size: 2rem;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.report-activity-list {
    display: flex;
    flex-direction: column;
}

.report-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;

    padding: 0.85rem 0;

    border-bottom: 1px solid var(--border);
    color: inherit;
    text-decoration: none;
}

.report-activity-item:first-child {
    padding-top: 0;
}

.report-activity-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.report-activity-item:hover strong {
    color: var(--primary);
}

.report-activity-icon {
    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;
    flex: 0 0 36px;

    border-radius: 10px;
    background: #eff6ff;
    color: var(--primary);
}

.report-activity-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.report-activity-copy strong,
.report-activity-copy span,
.report-activity-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-activity-copy strong {
    font-size: 0.79rem;
}

.report-activity-copy span {
    margin-top: 0.1rem;

    color: var(--text-secondary);
    font-size: 0.7rem;
}

.report-activity-copy small {
    margin-top: 0.2rem;

    color: #94a3b8;
    font-size: 0.66rem;
}

@media (max-width: 767.98px) {
    .report-coverage-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .report-coverage-value {
        min-width: 0;
    }
}
/* =========================================================
   Executive report filters
   ========================================================= */

.report-filter-form {
    display: grid;
    grid-template-columns:
        minmax(260px, 420px)
        auto;
    align-items: end;
    gap: 1rem;
}

.report-filter-actions {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 767.98px) {
    .report-filter-form {
        grid-template-columns: 1fr;
    }

    .report-filter-actions .btn {
        flex: 1;
    }
}
/* =========================================================
   Remediation tracker
   ========================================================= */

.remediation-filters {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.3fr)
        minmax(170px, 0.7fr)
        minmax(170px, 0.7fr)
        minmax(190px, 0.8fr);
    align-items: end;
    gap: 1rem;
}

.remediation-filter-search {
    grid-column: span 2;
}

.remediation-overdue-check {
    display: flex;
    align-items: center;
    min-height: 38px;
}

.remediation-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.remediation-table {
    min-width: 1250px;
}

.remediation-identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 290px;
}

.remediation-icon {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    border-radius: 11px;
    background: #eff6ff;
    color: var(--primary);
}

.remediation-identity > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.remediation-identity strong,
.remediation-identity span,
.remediation-identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remediation-identity strong {
    max-width: 310px;
    font-size: 0.86rem;
}

.remediation-identity span {
    max-width: 310px;
    margin-top: 0.1rem;
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.remediation-identity small {
    max-width: 310px;
    margin-top: 0.1rem;
    color: #94a3b8;
    font-size: 0.67rem;
}

.remediation-assignee {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 180px;
}

.remediation-assignee > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.remediation-assignee strong,
.remediation-assignee span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remediation-assignee strong {
    font-size: 0.76rem;
}

.remediation-assignee span {
    color: var(--text-secondary);
    font-size: 0.66rem;
}

.priority-medium {
    background: #eff6ff;
    color: #1d4ed8;
}

.priority-low {
    background: #f8fafc;
    color: #64748b;
}

.remediation-owner-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.remediation-owner-card > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.remediation-owner-card strong,
.remediation-owner-card span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remediation-owner-card strong {
    font-size: 0.85rem;
}

.remediation-owner-card span {
    color: var(--text-secondary);
    font-size: 0.72rem;
}

@media (max-width: 1199.98px) {
    .remediation-filters {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .remediation-filter-search {
        grid-column: span 2;
    }
}

@media (max-width: 767.98px) {
    .remediation-filters {
        grid-template-columns: 1fr;
    }

    .remediation-filter-search {
        grid-column: auto;
    }

    .remediation-filter-actions .btn {
        flex: 1;
    }
}
/* =========================================================
   Step 64 — Global layout stabilization
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    min-width: 320px;
    overflow-x: hidden;
}

/*
 * The main application area must consume all space remaining
 * after the fixed sidebar.
 */
.main-wrapper {
    width: calc(100% - var(--sidebar-width));
    max-width: none;
}

/*
 * Give application pages the full available width.
 */
.content-area {
    width: 100%;
    max-width: none;
    padding: 1.75rem 2rem 2.5rem;
}

/*
 * Prevent Bootstrap rows and cards from becoming narrower
 * than their parent containers.
 */
.content-area > *,
.content-page,
.executive-dashboard,
.remediation-page,
.remediation-detail-page,
.audit-log-page,
.audit-log-detail-page {
    width: 100%;
    max-width: none;
}

/*
 * Protect normal text from breaking in the middle of words.
 */
.content-area,
.content-card,
.card,
.detail-item,
.metric-card,
.risk-card {
    overflow-wrap: break-word;
    word-break: normal;
}

.content-area h1,
.content-area h2,
.content-area h3,
.content-area h4,
.content-area h5,
.content-area strong,
.content-area label,
.content-area th {
    word-break: normal;
    overflow-wrap: normal;
}

/*
 * Long technical values such as UUIDs, file names and URLs
 * may wrap when necessary.
 */
.text-break,
.audit-event-meta,
.audit-detail-json,
.audit-metadata pre,
code,
pre {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/*
 * Standard enterprise cards.
 */
.content-card {
    width: 100%;
    min-width: 0;

    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.content-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;

    padding: 1.2rem 1.35rem;
    border-bottom: 1px solid var(--border);
}

.content-card-header h2 {
    margin: 0;

    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.content-card-header p {
    margin: 0.3rem 0 0;

    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.5;
}

.content-card-body {
    min-width: 0;
    padding: 1.35rem;
}

/*
 * Common page toolbar.
 */
.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    width: 100%;
    margin-bottom: 1.5rem;
}

/*
 * Do not allow Bootstrap columns to overflow or collapse
 * because of long content.
 */
.row > * {
    min-width: 0;
}

/*
 * Tables should scroll horizontally rather than compress
 * every column until words become vertical.
 */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
}

.table th {
    white-space: nowrap;
}

.table td {
    min-width: 0;
}

/*
 * Buttons and badges should retain readable labels.
 */
.btn,
.badge,
.status-pill,
.priority-pill {
    white-space: nowrap;
}

/*
 * Standard detail information grid.
 */
.detail-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.detail-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-item > span {
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.detail-item > strong {
    color: var(--text-primary);
    font-size: 0.88rem;
    line-height: 1.45;
}

/*
 * Responsive adjustments.
 */
@media (max-width: 991.98px) {
    .content-area {
        padding: 1.5rem 1.25rem 2rem;
    }

    .content-card-header {
        padding: 1.1rem 1.2rem;
    }

    .content-card-body {
        padding: 1.2rem;
    }
}

@media (max-width: 767.98px) {
    .main-wrapper {
        width: 100%;
    }

    .content-area {
        padding: 1.25rem 1rem 2rem;
    }

    .page-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .page-toolbar > div:last-child {
        width: 100%;
    }

    .page-toolbar .btn {
        flex: 1;
    }

    .content-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Step 64.3 — List pages and filters
   ========================================================= */

.list-page {
    width: 100%;
}

.list-page .page-toolbar {
    margin-bottom: 1.5rem;
}

.list-filter-card {
    margin-bottom: 1.5rem;

    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.list-filter-card .card-body {
    padding: 1.25rem;
}

.list-filter-grid {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.4fr)
        repeat(3, minmax(170px, 0.7fr))
        auto;
    align-items: end;
    gap: 1rem;
}

.list-filter-search {
    min-width: 0;
}

.list-filter-actions {
    display: flex;
    gap: 0.5rem;
}

.list-filter-actions .btn {
    min-width: 96px;
}

.list-table-card {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.list-table-card .table {
    margin-bottom: 0;
}

.list-table-card .table thead th {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;

    border-bottom: 1px solid var(--border);
    background: #f8fafc;
}

.list-table-card .table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.list-table-card .table tbody tr:last-child td {
    border-bottom: 0;
}

.list-item-title {
    display: block;

    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.list-item-title:hover {
    color: var(--primary);
}

.list-item-subtitle {
    display: block;
    margin-top: 0.2rem;

    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.4;
}

.empty-state {
    padding: 3.5rem 1.5rem;

    text-align: center;
}

.empty-state i {
    display: inline-block;
    margin-bottom: 0.9rem;

    color: #94a3b8;
    font-size: 2rem;
}

.empty-state h3 {
    margin-bottom: 0.4rem;

    font-size: 1rem;
    font-weight: 700;
}

.empty-state p {
    max-width: 520px;
    margin: 0 auto 1rem;

    color: var(--text-secondary);
    font-size: 0.82rem;
}

.empty-state-compact {
    padding: 2rem 1.25rem;
}

@media (max-width: 1199.98px) {
    .list-filter-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .list-filter-search {
        grid-column: span 2;
    }
}

@media (max-width: 767.98px) {
    .list-filter-grid {
        grid-template-columns: 1fr;
    }

    .list-filter-search {
        grid-column: auto;
    }

    .list-filter-actions {
        width: 100%;
    }

    .list-filter-actions .btn {
        flex: 1;
    }
}
/* =========================================================
   Step 64.4 — Unified badges and KPI cards
   ========================================================= */

.status-pill,
.priority-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 26px;
    padding: 0.28rem 0.65rem;

    border: 1px solid transparent;
    border-radius: 999px;

    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

/* Status colors */

.status-pill-neutral {
    border-color: #dbe2ea;
    background: #f8fafc;
    color: #475569;
}

.status-pill-info {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

.status-pill-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.status-pill-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #a16207;
}

.status-pill-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.status-pill-secondary {
    border-color: #d1d5db;
    background: #f3f4f6;
    color: #4b5563;
}

/* Priority colors */

.priority-low {
    border-color: #dbe2ea;
    background: #f8fafc;
    color: #64748b;
}

.priority-medium {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.priority-high {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.priority-critical {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

/* Risk colors */

.risk-unknown {
    border-color: #dbe2ea;
    background: #f8fafc;
    color: #64748b;
}

.risk-minimal {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.risk-limited {
    border-color: #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

.risk-high {
    border-color: #fde68a;
    background: #fffbeb;
    color: #a16207;
}

.risk-prohibited {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

/* KPI cards */

.metric-card {
    display: flex;
    align-items: center;
    gap: 1rem;

    height: 100%;
    min-height: 112px;
    padding: 1.15rem;

    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.metric-card-icon {
    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    border-radius: 12px;
    font-size: 1.15rem;
}

.metric-card-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.metric-card-content span {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}

.metric-card-content strong {
    margin-top: 0.15rem;

    color: var(--text-primary);
    font-size: 1.65rem;
    font-weight: 750;
    letter-spacing: -0.04em;
}

/* Compact summary cards */

.risk-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    height: 100%;
    min-height: 104px;
    padding: 1.15rem;

    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.risk-card > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.risk-card span {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
}

.risk-card strong {
    margin-top: 0.15rem;

    font-size: 1.55rem;
    font-weight: 750;
}

.risk-card > i {
    color: #94a3b8;
    font-size: 1.45rem;
}

.risk-card-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.risk-card-warning {
    border-color: #fde68a;
    background: #fffbeb;
}

.risk-card-danger {
    border-color: #fecaca;
    background: #fef2f2;
}
/* =========================================================
   Step 64.5 — Responsive mobile sidebar
   ========================================================= */

.mobile-sidebar-toggle {
    display: none;
    place-items: center;

    width: 40px;
    height: 40px;
    flex: 0 0 40px;

    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--text-primary);

    font-size: 1.25rem;
}

.mobile-sidebar-toggle:hover {
    background: #f8fafc;
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 767.98px) {
    body.sidebar-mobile-active {
        overflow: hidden;
    }

    .mobile-sidebar-toggle {
        display: grid;
    }

    .sidebar {
        display: flex;

        width: min(86vw, 300px);

        transform: translateX(-100%);
        transition: transform 0.22s ease;
        box-shadow: 18px 0 40px rgba(15, 23, 42, 0.18);
    }

    .sidebar.sidebar-open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1025;

        display: block;

        border: 0;
        background: rgba(15, 23, 42, 0.48);

        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .sidebar-backdrop-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .main-wrapper {
        width: 100%;
        margin-left: 0;
    }

    .topbar {
        display: grid;
        grid-template-columns:
            auto
            minmax(0, 1fr)
            auto;
        gap: 0.8rem;

        width: 100%;
    }

    .topbar-heading {
        min-width: 0;
    }

    .topbar-heading h1 {
        overflow: hidden;
        font-size: 1.1rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topbar-actions {
        gap: 0.5rem;
    }

    .topbar-actions .btn {
        display: grid;
        place-items: center;

        width: 40px;
        height: 40px;
        padding: 0;

        font-size: 0;
    }

    .topbar-actions .btn i {
        font-size: 1rem;
    }
}
/* =========================================================
   Sidebar color fix
   ========================================================= */

.sidebar {
    background: #0f172a !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.sidebar-brand {
    background: #0f172a;
}

.sidebar-brand-link,
.sidebar-brand-link:hover {
    color: #ffffff;
}

.sidebar-nav {
    background: #0f172a;
}

.sidebar-section-label {
    color: #8290a5;
}

.sidebar-nav a {
    color: #cbd5e1;
}

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

.sidebar-nav a.active {
    background: rgba(37, 99, 235, 0.32);
    color: #ffffff;
}

.sidebar-nav a i {
    color: inherit;
}

.sidebar-footer {
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-user {
    background: #172033;
}

.sidebar-user-details strong {
    color: #ffffff;
}

.sidebar-user-details span {
    color: #94a3b8;
}

.sidebar-signout {
    color: #cbd5e1;
}

.sidebar-signout:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
/* =========================================================
   FINAL MOBILE SIDEBAR OVERRIDE
   Keep this at the absolute end of app.css
   ========================================================= */

@media (max-width: 767.98px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    body.sidebar-mobile-active {
        overflow: hidden;
    }

    .app-layout {
        display: block;
        width: 100%;
        min-height: 100vh;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: auto !important;

        z-index: 2000 !important;

        display: flex !important;
        flex-direction: column !important;

        width: min(86vw, 300px) !important;
        min-width: min(86vw, 300px) !important;
        max-width: 300px !important;
        height: 100vh !important;
        min-height: 100vh !important;

        margin: 0 !important;

        visibility: visible !important;
        opacity: 1 !important;

        background: #0f172a !important;
        color: #cbd5e1 !important;

        transform: translateX(-105%) !important;
        transition: transform 0.22s ease !important;

        overflow: hidden !important;
        box-shadow: 18px 0 40px rgba(15, 23, 42, 0.32) !important;
    }

    .sidebar.sidebar-open {
        transform: translateX(0) !important;
    }

    .sidebar-brand,
    .sidebar-nav,
    .sidebar-footer {
        display: block !important;
        width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .sidebar-brand {
        flex: 0 0 auto;
        background: #0f172a !important;
    }

    .sidebar-nav {
        display: flex !important;
        flex: 1 1 auto;
        flex-direction: column;
        padding: 1rem 0.85rem !important;
        overflow-y: auto !important;
        background: #0f172a !important;
    }

    .sidebar-nav a {
        display: flex !important;
        width: 100% !important;
        color: #cbd5e1 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .sidebar-nav a.active {
        background: rgba(37, 99, 235, 0.35) !important;
        color: #ffffff !important;
    }

    .sidebar-section-label {
        display: block !important;
        color: #8290a5 !important;
    }

    .sidebar-footer {
        flex: 0 0 auto;
        background: #0f172a !important;
    }

    .sidebar-backdrop {
        position: fixed !important;
        inset: 0 !important;
        z-index: 1990 !important;

        display: block !important;

        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;

        border: 0 !important;
        background: rgba(15, 23, 42, 0.58) !important;

        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;

        transition:
            opacity 0.2s ease,
            visibility 0.2s ease !important;
    }

    .sidebar-backdrop.sidebar-backdrop-visible {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .main-wrapper {
        position: relative !important;
        z-index: 1 !important;

        display: flex !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        min-height: 100vh !important;

        margin: 0 !important;
        margin-left: 0 !important;
    }

    .topbar {
        width: 100% !important;
        margin: 0 !important;
    }

    .content-area {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 1.25rem 1rem 2rem !important;
    }

    .mobile-sidebar-toggle {
        position: relative;
        z-index: 5;

        display: grid !important;
        place-items: center;
    }
}
/* =========================================================
   Step 65.2 — Error pages
   ========================================================= */

.error-page {
    min-height: 100vh;
    margin: 0;

    background:
        radial-gradient(
            circle at top left,
            rgba(37, 99, 235, 0.1),
            transparent 34%
        ),
        #f4f7fb;

    color: #0f172a;
}

.error-page-container {
    display: grid;
    place-items: center;

    min-height: 100vh;
    padding: 2rem 1rem;
}

.error-page-card {
    width: min(100%, 560px);
    padding: 3rem 2.5rem;

    border: 1px solid #dfe6ef;
    border-radius: 20px;

    background: #ffffff;
    box-shadow:
        0 24px 70px rgba(15, 23, 42, 0.1);

    text-align: center;
}

.error-page-icon {
    display: grid;
    place-items: center;

    width: 68px;
    height: 68px;
    margin: 0 auto 1.25rem;

    border-radius: 18px;
    font-size: 1.8rem;
}

.error-page-icon-info {
    background: #eff6ff;
    color: #2563eb;
}

.error-page-icon-warning {
    background: #fffbeb;
    color: #d97706;
}

.error-page-icon-danger {
    background: #fef2f2;
    color: #dc2626;
}

.error-page-code {
    margin-bottom: 0.25rem;

    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.error-page-card h1 {
    margin-bottom: 0.85rem;

    font-size: clamp(1.7rem, 5vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.error-page-card p {
    max-width: 450px;
    margin: 0 auto 1.75rem;

    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
}

.error-page-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

@media (max-width: 575.98px) {
    .error-page-card {
        padding: 2.25rem 1.25rem;
    }

    .error-page-actions {
        flex-direction: column;
    }

    .error-page-actions .btn {
        width: 100%;
    }
}