:root {
    --mali-green: #0b8f43;
    --mali-yellow: #f4c430;
    --mali-red: #ce1126;
    --mali-ink: #1f2933;
    --mali-muted: #677381;
    --mali-sand: #f7f1df;
    --mali-surface: #ffffff;
    --dnsv-sidebar-width: 320px;
}

body,
.dnsv-body {
    background: linear-gradient(180deg, #f5efde 0%, #fcfaf4 100%);
    color: var(--mali-ink);
}

.dnsv-public-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(31, 41, 51, 0.08);
}

.dnsv-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: #17212b;
}

.dnsv-brand-mark {
    width: 3rem;
    height: 3rem;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, var(--mali-green), #0f6b3a 60%, var(--mali-red));
    box-shadow: 0 0.75rem 1.25rem rgba(11, 143, 67, 0.2);
}

.dnsv-brand-title {
    font-weight: 800;
    line-height: 1.1;
}

.dnsv-brand-subtitle {
    font-size: 0.79rem;
    color: var(--mali-muted);
    line-height: 1.2;
}

.dnsv-topbar {
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(31, 41, 51, 0.08);
    position: sticky;
    top: 0;
    z-index: 1040;
    backdrop-filter: blur(14px);
}

.dnsv-topbar-row {
    min-height: 78px;
}

.dnsv-flag-bar {
    height: 6px;
}

.flag-bar {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mali-green) 0 33%, var(--mali-yellow) 33% 66%, var(--mali-red) 66% 100%);
}

.dnsv-topbar-meta {
    min-width: 0;
}

.dnsv-topbar-role {
    padding-right: 0.25rem;
}

.dnsv-topbar-role-label {
    font-weight: 700;
    color: #17212b;
}

.dnsv-topbar-role-subtitle {
    font-size: 0.82rem;
    color: var(--mali-muted);
}

.dnsv-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 999px;
    padding: 0.42rem 0.72rem 0.42rem 0.42rem;
    color: #17212b;
    max-width: 19rem;
}

.dnsv-user-toggle:hover,
.dnsv-user-toggle:focus {
    border-color: rgba(11, 143, 67, 0.35);
    color: #17212b;
}

.dnsv-user-avatar {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(11, 143, 67, 0.18), rgba(244, 196, 48, 0.22));
    color: var(--mali-green);
    font-weight: 800;
    flex: 0 0 auto;
}

.dnsv-user-name {
    font-weight: 700;
    line-height: 1.1;
}

.dnsv-user-role {
    font-size: 0.78rem;
    color: var(--mali-muted);
}

.dnsv-user-menu {
    min-width: 15rem;
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 1rem;
}

.dnsv-sidebar-toggle {
    border: 1px solid rgba(31, 41, 51, 0.08);
    background: #fff;
    color: #17212b;
}

.dnsv-layout {
    display: flex;
    min-height: calc(100vh - 84px);
}

.dnsv-sidebar {
    width: var(--dnsv-sidebar-width);
    flex: 0 0 var(--dnsv-sidebar-width);
    background: linear-gradient(180deg, #18311f 0%, #11271a 58%, #102117 100%);
    color: rgba(255, 255, 255, 0.94);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.dnsv-sidebar-head {
    padding: 1.15rem 1.1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dnsv-sidebar-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.58);
    font-weight: 700;
}

.dnsv-sidebar-title {
    margin-top: 0.3rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.dnsv-sidebar-text {
    margin-top: 0.4rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.64);
}

.dnsv-sidebar-scroll {
    padding: 0.9rem 0.8rem 1rem;
    overflow-y: auto;
}

.dnsv-sidebar-accordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-border-color: transparent;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-inner-border-radius: 1rem;
    --bs-accordion-btn-icon-width: 1rem;
    --bs-accordion-active-color: #fff;
    --bs-accordion-active-bg: transparent;
    --bs-accordion-btn-padding-x: 0;
    --bs-accordion-btn-padding-y: 0;
    display: grid;
    gap: 0.7rem;
}

.dnsv-sidebar-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.dnsv-sidebar-item.is-active {
    border-color: rgba(244, 196, 48, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(244, 196, 48, 0.06));
}

.dnsv-sidebar-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.95rem 0.95rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
    font-size: 0.95rem;
}

.dnsv-sidebar-button:not(.collapsed) {
    color: #fff;
    box-shadow: none;
}

.dnsv-sidebar-button::after {
    flex-shrink: 0;
    margin-left: auto;
    opacity: 0.8;
}

.dnsv-sidebar-button-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--mali-yellow);
    flex: 0 0 auto;
}

.dnsv-sidebar-item.is-active .dnsv-sidebar-button-icon,
.dnsv-sidebar-button:not(.collapsed) .dnsv-sidebar-button-icon {
    background: linear-gradient(135deg, rgba(11, 143, 67, 0.34), rgba(244, 196, 48, 0.3));
    color: #fff7db;
}

.dnsv-sidebar-button-text {
    line-height: 1.3;
    max-width: 15rem;
}

.dnsv-sidebar-panel {
    padding: 0 0.65rem 0.7rem 0.65rem;
}

.dnsv-sidebar-links {
    display: grid;
    gap: 0.28rem;
    padding-left: 0.15rem;
}

.dnsv-sidebar-link {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    min-height: 2.8rem;
    padding: 0.62rem 0.72rem 0.62rem 0.82rem;
    border-radius: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.35;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.dnsv-sidebar-link i {
    margin-top: 0.08rem;
    color: rgba(244, 196, 48, 0.9);
    flex: 0 0 auto;
}

.dnsv-sidebar-link span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dnsv-sidebar-link:hover,
.dnsv-sidebar-link:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transform: translateX(2px);
}

.dnsv-sidebar-link.active {
    background: linear-gradient(135deg, rgba(11, 143, 67, 0.26), rgba(244, 196, 48, 0.18));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(244, 196, 48, 0.24);
}

.dnsv-main-content {
    flex: 1 1 auto;
    min-width: 0;
}
.mali-hero,
.mali-card {
    background: linear-gradient(135deg, rgba(11, 143, 67, 0.12), rgba(244, 196, 48, 0.16), rgba(206, 17, 38, 0.12));
    border: 1px solid rgba(31, 41, 51, 0.08);
}

.dashboard-banner,
.institutional-panel,
.info-tile {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 1rem;
}

.dashboard-stat {
    color: #17212b;
}

.dashboard-stat.stat-green { background: linear-gradient(160deg, #d7f0e2, #effaf3); }
.dashboard-stat.stat-yellow { background: linear-gradient(160deg, #fff0b8, #fff9df); }
.dashboard-stat.stat-red { background: linear-gradient(160deg, #ffd6da, #fff1f2); }
.dashboard-stat.stat-amber { background: linear-gradient(160deg, #ffe3b5, #fff5e6); }

.mali-accent {
    color: var(--mali-green);
}

.btn-mali {
    background-color: var(--mali-green);
    border-color: var(--mali-green);
    color: #fff;
}

.btn-mali:hover,
.btn-mali:focus {
    background-color: #087336;
    border-color: #087336;
    color: #fff;
}

.status-badge {
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-block;
}

.status-badge.brouillon { background: #eceff1; color: #37474f; }
.status-badge.soumise, .status-badge.instruction { background: #fff3cd; color: #7a5800; }
.status-badge.valide, .status-badge.active { background: #d1e7dd; color: #0f5132; }
.status-badge.rejete, .status-badge.annulee { background: #f8d7da; color: #842029; }
.status-badge.suspendue { background: #fde2b6; color: #8a4b08; }
.status-badge.reactivee, .status-badge.transmis { background: #cfe2ff; color: #084298; }

.badge-mali-soft {
    background: rgba(11, 143, 67, 0.12);
    color: var(--mali-green);
    border: 1px solid rgba(11, 143, 67, 0.18);
    font-weight: 700;
}

.badge-mali-outline {
    background: #fff;
    color: var(--mali-red);
    border: 1px solid rgba(206, 17, 38, 0.3);
}

.acte-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.acte-card:hover,
.acte-catalog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.9rem 1.6rem rgba(31, 41, 51, 0.08);
}

.info-list dt {
    color: #5c6670;
    font-weight: 700;
}

.info-tile {
    padding: 1rem;
}

.catalog-hero {
    background: linear-gradient(135deg, rgba(11, 143, 67, 0.16), rgba(244, 196, 48, 0.14), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(31, 41, 51, 0.08);
    padding: 1.5rem 1.75rem;
}

.hero-kicker {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #52606d;
}

.hero-title {
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    line-height: 1.12;
    color: #14212a;
}

.hero-text {
    max-width: 58ch;
    color: #4f5b66;
}

.catalog-hero-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 143, 67, 0.12);
    border-radius: 1rem;
    padding: 1rem;
}

.catalog-stat {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    color: var(--mali-green);
}

.catalog-stat-label {
    margin-top: 0.35rem;
    font-size: 0.92rem;
    color: #52606d;
}

.catalog-shell {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(31, 41, 51, 0.06);
    border-radius: 1.25rem;
    padding: 1rem;
}

.catalog-toolbar {
    padding-bottom: 0.25rem;
}

.catalog-heading {
    font-size: 1.2rem;
    color: #18242d;
}

.catalog-subheading {
    font-size: 0.92rem;
    color: #5b6670;
}

.catalog-process {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(206, 17, 38, 0.15);
    color: #5e2228;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.dnsv-accordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-bg: transparent;
    --bs-accordion-btn-bg: #fff;
    --bs-accordion-active-bg: #fff;
    --bs-accordion-btn-focus-box-shadow: none;
}

.dnsv-accordion-item {
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.86);
}

.dnsv-accordion-item + .dnsv-accordion-item {
    margin-top: 0.85rem;
}

.dnsv-accordion .accordion-button {
    padding: 0.9rem 1rem;
    font-weight: 700;
    color: #152028;
}

.dnsv-accordion .accordion-button:not(.collapsed) {
    color: var(--mali-green);
    box-shadow: none;
}

.accordion-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.accordion-title {
    font-size: 1rem;
}

.accordion-meta {
    font-size: 0.78rem;
    color: #68737d;
    font-weight: 600;
}

.dnsv-accordion .accordion-body {
    padding: 0.5rem 0.5rem 0.75rem;
}

.acte-catalog-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 248, 0.96));
    border: 1px solid rgba(31, 41, 51, 0.06);
    border-radius: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.acte-catalog-card .card-body {
    padding: 1rem;
}

.card-topline {
    min-height: 2rem;
}

.validity-chip {
    display: inline-flex;
    align-items: center;
    background: rgba(244, 196, 48, 0.18);
    color: #755600;
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.acte-title {
    font-size: 1rem;
    line-height: 1.35;
    color: #18242d;
    margin-bottom: 0.6rem;
}

.acte-description {
    color: #59646f;
    font-size: 0.88rem;
    line-height: 1.5;
}

@media (max-width: 1199.98px) {
    :root {
        --dnsv-sidebar-width: 300px;
    }
}

@media (max-width: 991.98px) {
    .dnsv-sidebar {
        width: min(88vw, 340px);
    }

    .dnsv-layout {
        min-height: auto;
    }

    .catalog-hero {
        padding: 1.25rem;
    }

    .catalog-shell {
        padding: 0.85rem;
    }
}

@media (max-width: 767.98px) {
    .dnsv-brand-mark {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.8rem;
    }

    .dnsv-brand-title {
        font-size: 0.96rem;
    }

    .dnsv-brand-subtitle {
        font-size: 0.72rem;
    }

    main.container.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1.25rem !important;
    }

    .flag-bar {
        height: 8px;
    }

    .catalog-hero {
        padding: 1rem;
        margin-bottom: 1rem !important;
    }

    .hero-title {
        font-size: 1.45rem;
    }

    .catalog-shell {
        padding: 0.7rem;
        border-radius: 1rem;
    }

    .catalog-toolbar {
        margin-bottom: 0.75rem !important;
    }

    .dnsv-accordion .accordion-button {
        padding: 0.8rem 0.85rem;
    }

    .dnsv-accordion .accordion-body {
        padding: 0.4rem 0.4rem 0.55rem;
    }

    .acte-catalog-card .card-body {
        padding: 0.9rem;
    }
}

.validity-table thead th {
    background: rgba(11, 143, 67, 0.08);
    color: #1b2a33;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.validity-table tbody td {
    vertical-align: middle;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.validity-table .form-control-sm {
    min-width: 6rem;
}

.dnsv-logout-button {
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
}

.dnsv-logout-button:focus {
    outline: none;
    box-shadow: none;
}


.dnsv-user-menu-head {
    background: linear-gradient(135deg, rgba(11, 143, 67, 0.08), rgba(244, 196, 48, 0.12));
}

.dnsv-user-menu-name {
    font-weight: 700;
    color: #17212b;
}

.dnsv-user-menu-role {
    font-size: 0.8rem;
    color: var(--mali-muted);
}

.dnsv-sidebar-scroll {
    padding: 0.85rem 0.75rem 1rem;
}

.dnsv-sidebar-accordion {
    gap: 0.6rem;
}

.dnsv-sidebar-button {
    padding: 0.82rem 0.9rem;
    font-size: 0.92rem;
}

.dnsv-sidebar-button-icon {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.75rem;
}

.dnsv-sidebar-panel {
    padding: 0 0.65rem 0.7rem;
}

.dnsv-sidebar-action {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    margin-bottom: 0.55rem;
    padding: 0.62rem 0.8rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(11, 143, 67, 0.26), rgba(244, 196, 48, 0.16));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.dnsv-sidebar-action:hover,
.dnsv-sidebar-action:focus,
.dnsv-sidebar-action.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(11, 143, 67, 0.42), rgba(244, 196, 48, 0.2));
}

.dnsv-sidebar-action-icon {
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
}

.dnsv-sidebar-links {
    gap: 0.2rem;
}

.dnsv-sidebar-link {
    min-height: 2.5rem;
    padding: 0.56rem 0.7rem 0.56rem 0.85rem;
    font-size: 0.84rem;
}

.dnsv-list-shell {
    border-radius: 1.25rem;
}

.dnsv-list-toolbar {
    padding: 1rem;
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 1rem;
    background: rgba(255,255,255,0.86);
}

.dnsv-status-tabs {
    gap: 0.55rem;
    flex-wrap: wrap;
}

.dnsv-status-tabs .nav-link {
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    color: #42505c;
    background: rgba(31, 41, 51, 0.05);
    font-weight: 700;
    font-size: 0.84rem;
}

.dnsv-status-tabs .nav-link.active {
    background: linear-gradient(135deg, var(--mali-green), #087336);
    color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(11, 143, 67, 0.18);
}

.dnsv-list-table {
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(255,255,255,0.92);
}

.dnsv-list-table thead th {
    background: rgba(11, 143, 67, 0.08);
    color: #1b2a33;
    font-size: 0.79rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .dnsv-sidebar-action {
        margin-bottom: 0.45rem;
    }
}

.dnsv-form-shell {
    max-width: 1440px;
    margin: 0 auto;
}

.dnsv-form-hero {
    background: linear-gradient(135deg, rgba(11, 143, 67, 0.14), rgba(244, 196, 48, 0.12), rgba(255, 255, 255, 0.96));
}

.dnsv-form-panel,
.dnsv-piece-panel {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 1.25rem;
}

.dnsv-form-section + .dnsv-form-section {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(31, 41, 51, 0.08);
}

.dnsv-form-check {
    min-height: 3rem;
    padding: 0.95rem 1rem 0.95rem 2.8rem;
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 1rem;
    background: rgba(247, 241, 223, 0.35);
}

.dnsv-piece-list {
    display: grid;
    gap: 1rem;
}

.dnsv-piece-item {
    padding: 1rem;
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 241, 223, 0.4));
}

.dnsv-formset-card {
    border-color: rgba(31, 41, 51, 0.08) !important;
    background: linear-gradient(180deg, rgba(247, 241, 223, 0.48), rgba(255, 255, 255, 0.9)) !important;
}

.dnsv-form-actions {
    margin-top: 1.5rem;
}

@media (max-width: 991.98px) {
    .dnsv-piece-panel {
        position: static !important;
    }
}


.dnsv-dossier-number {
    background: linear-gradient(180deg, #f9fbfd 0%, #eef4f8 100%);
    border: 1px solid rgba(21, 71, 52, 0.18);
    color: #123524;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.dnsv-dossier-number[readonly] {
    box-shadow: inset 0 1px 2px rgba(18, 53, 36, 0.06);
}


.institutional-hero {
    padding: 1.75rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #eef8f2 52%, #fff7dc 100%);
    border: 1px solid rgba(31, 41, 51, 0.08);
    box-shadow: 0 0.9rem 1.8rem rgba(31, 41, 51, 0.06);
}

.hero-title {
    font-size: clamp(1.7rem, 2.2vw, 2.35rem);
    font-weight: 800;
    letter-spacing: 0;
    color: #17212b;
}

.hero-subtitle {
    max-width: 54rem;
    color: #52606d;
    font-size: 1.02rem;
}

.institutional-command-panel,
.institutional-section,
.metric-box {
    background: #fff;
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 0.65rem 1.4rem rgba(31, 41, 51, 0.05);
}

.institutional-command-panel {
    padding: 1.25rem;
}

.command-count {
    min-width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0b8f43;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.decision-tile {
    min-height: 7.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(31, 41, 51, 0.08);
    background: #fff;
    box-shadow: 0 0.65rem 1.4rem rgba(31, 41, 51, 0.05);
}

.decision-tile-icon {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.25rem;
}

.tile-green .decision-tile-icon { background: #dff4e8; color: #087336; }
.tile-yellow .decision-tile-icon { background: #fff1bc; color: #8a6700; }
.tile-red .decision-tile-icon { background: #ffe1e4; color: #a30d1d; }
.tile-amber .decision-tile-icon { background: #ffebcc; color: #8a4b08; }

.decision-tile-label {
    color: #52606d;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.decision-tile-value {
    color: #17212b;
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    margin-top: 0.25rem;
}

.institutional-section {
    padding: 1.25rem;
}

.section-heading {
    margin-bottom: 1rem;
}

.section-heading h2 {
    margin: 0;
    color: #17212b;
    font-size: 1.05rem;
    font-weight: 800;
}

.section-kicker {
    display: block;
    margin-bottom: 0.25rem;
    color: #677381;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.metric-box {
    padding: 1rem;
    min-height: 7rem;
}

.metric-box span {
    display: block;
    color: #677381;
    font-size: 0.86rem;
    font-weight: 700;
}

.metric-box strong {
    display: block;
    margin-top: 0.4rem;
    color: #17212b;
    font-size: 2rem;
    line-height: 1;
}

.decision-alert-grid {
    display: grid;
    gap: 0.75rem;
}

.decision-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.95rem;
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 0.5rem;
    background: #f9fbfd;
}

.decision-alert-icon {
    width: 2.45rem;
    height: 2.45rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: #eef4f8;
    color: #284455;
}

.decision-alert-body {
    min-width: 0;
}

.decision-alert-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #17212b;
    font-weight: 800;
}

.decision-alert-top strong {
    font-size: 1.35rem;
    line-height: 1;
}

.decision-alert p {
    margin: 0.25rem 0 0;
    color: #5d6975;
    font-size: 0.88rem;
    line-height: 1.45;
}

.alert-danger .decision-alert-icon { background: #ffe1e4; color: #a30d1d; }
.alert-warning .decision-alert-icon { background: #fff1bc; color: #8a6700; }
.alert-amber .decision-alert-icon { background: #ffebcc; color: #8a4b08; }
.alert-info .decision-alert-icon { background: #dfefff; color: #165889; }
.alert-success .decision-alert-icon { background: #dff4e8; color: #087336; }

.distribution-list {
    display: grid;
    gap: 0.55rem;
}

.distribution-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.72rem 0.8rem;
    border: 1px solid rgba(31, 41, 51, 0.07);
    border-radius: 0.5rem;
    background: #fbfcfd;
}

.distribution-row span {
    color: #31424f;
    font-size: 0.9rem;
    line-height: 1.35;
}

.distribution-row strong {
    min-width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef8f2;
    color: #087336;
    font-size: 1rem;
}

.dnsv-bell-toggle {
    width: 2.75rem;
    height: 2.75rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(31, 41, 51, 0.08);
    color: #17212b;
}

.dnsv-bell-toggle:hover,
.dnsv-bell-toggle:focus {
    border-color: rgba(11, 143, 67, 0.35);
    color: #0b8f43;
}

.dnsv-bell-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.2rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ce1126;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    border: 2px solid #fff;
}

.dnsv-notification-menu {
    min-width: 17rem;
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 0.75rem;
}

.dashboard-stat {
    border-radius: 0.5rem;
    border: 1px solid rgba(31, 41, 51, 0.08);
}

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

@media (max-width: 575.98px) {
    .institutional-hero,
    .institutional-section {
        padding: 1rem;
    }

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

    .decision-tile {
        min-height: 6.4rem;
    }
}

.guide-summary,
.guide-profile-list {
    display: grid;
    gap: 1rem;
}

.guide-principle,
.guide-profile {
    background: #fff;
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: 0.5rem;
    box-shadow: 0 0.65rem 1.4rem rgba(31, 41, 51, 0.05);
}

.guide-principle {
    padding: 1.2rem;
}

.guide-principle i {
    width: 2.7rem;
    height: 2.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: #dff4e8;
    color: #087336;
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}

.guide-principle h2,
.guide-profile h2 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.45rem;
}

.guide-principle p,
.guide-profile p {
    color: #52606d;
    margin: 0;
}

.guide-profile {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    overflow: hidden;
}

.guide-profile-media {
    background: #eef2f0;
    border-right: 1px solid rgba(31, 41, 51, 0.08);
}

.guide-profile-media img {
    width: 100%;
    height: 100%;
    min-height: 18rem;
    object-fit: cover;
    object-position: top left;
    display: block;
}

.guide-profile-body {
    padding: 1.25rem;
}

.guide-steps {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
    color: #17212b;
}

.guide-steps li + li {
    margin-top: 0.45rem;
}

.guide-page-map {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 41, 51, 0.08);
}

.guide-page-map-title {
    margin-bottom: 0.75rem;
    color: #17212b;
    font-size: 0.92rem;
    font-weight: 800;
}

.guide-section-list {
    display: grid;
    gap: 0.85rem;
}

.guide-section-block {
    padding: 0.85rem;
    border: 1px solid rgba(31, 41, 51, 0.07);
    border-radius: 0.5rem;
    background: #fbfcfd;
}

.guide-section-block h3 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.65rem;
    color: #243642;
    font-size: 0.9rem;
    font-weight: 800;
}

.guide-section-block h3 i {
    color: #0b8f43;
}

.guide-page-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
}

.guide-page-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    padding: 0.48rem 0.55rem;
    border: 1px solid rgba(31, 41, 51, 0.07);
    border-radius: 0.5rem;
    background: #fff;
    color: #17212b;
    text-decoration: none;
    font-size: 0.84rem;
    line-height: 1.25;
}

.guide-page-link:hover,
.guide-page-link:focus {
    border-color: rgba(11, 143, 67, 0.28);
    color: #087336;
}

.guide-page-link i {
    color: #8a6700;
    flex: 0 0 auto;
}

.guide-page-link span {
    min-width: 0;
}

.guide-page-link small {
    margin-left: auto;
    padding: 0.12rem 0.35rem;
    border-radius: 0.35rem;
    background: #eef8f2;
    color: #087336;
    font-size: 0.68rem;
    font-weight: 800;
}

@media (max-width: 575.98px) {
    .guide-page-list {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 991.98px) {
    .guide-profile {
        grid-template-columns: 1fr;
    }

    .guide-profile-media {
        border-right: 0;
        border-bottom: 1px solid rgba(31, 41, 51, 0.08);
    }
}
