:root {
    --spr-primary: #0f5d75;
    --spr-primary-dark: #0b4557;
    --spr-primary-soft: #eaf5f8;
    --spr-accent: #d89c2a;
    --spr-accent-soft: #fff4df;
    --spr-success: #1f8a54;
    --spr-danger: #b93a32;
    --spr-text: #23313b;
    --spr-text-soft: #687782;
    --spr-border: #dbe6eb;
    --spr-surface: #ffffff;
    --spr-bg: #f4f8fb;
    --spr-shadow: 0 12px 30px rgba(15, 93, 117, .10);
    --spr-radius: 16px;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--spr-text);
    background: linear-gradient(180deg, #f9fcfe 0%, var(--spr-bg) 100%);
    padding-bottom: 0;
}

a {
    color: var(--spr-primary);
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--spr-primary-dark);
    text-decoration: none;
}

.container {
    width: 96%;
    max-width: 1380px;
    padding-left: 0;
    padding-right: 0;
}

.body-content,
.spr-main-content {
    min-height: 62vh;
    padding: 22px 0 36px;
}

.spr-topbar {
    background: var(--spr-primary-dark);
    color: rgba(255,255,255,.92);
    font-size: 12px;
    padding: 8px 0;
}

.spr-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.spr-topbar-right span,
.spr-topbar-left span {
    margin-right: 16px;
}

.spr-navbar.navbar {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 10px 24px rgba(16, 65, 81, .08);
    margin-bottom: 0;
}

.spr-brand {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    height: auto;
    color: var(--spr-primary-dark) !important;
}

.spr-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--spr-primary), var(--spr-accent));
    color: #fff;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(15, 93, 117, .22);
}

.spr-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.spr-brand-text strong {
    font-size: 20px;
    color: var(--spr-primary-dark);
}

.spr-brand-text small {
    color: var(--spr-text-soft);
    font-size: 12px;
}

.navbar-inverse .navbar-toggle {
    border-color: #d7e6ec;
    margin-top: 18px;
}

.navbar-inverse .navbar-toggle .icon-bar {
    background: var(--spr-primary);
}

.spr-nav > li > a,
.spr-user-nav > li > a {
    color: var(--spr-text) !important;
    font-weight: 600;
    padding-top: 24px;
    padding-bottom: 24px;
}

.spr-nav > li > a:hover,
.spr-nav > li.open > a,
.spr-user-nav > li > a:hover {
    background: transparent !important;
    color: var(--spr-primary) !important;
}

.spr-dropdown-menu {
    min-width: 245px;
    border: 1px solid var(--spr-border);
    border-radius: 14px;
    padding: 10px 0;
    box-shadow: 0 18px 32px rgba(21, 55, 69, .12);
}

.spr-dropdown-wide {
    min-width: 280px;
}

.spr-dropdown-title {
    padding: 8px 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7b8c95;
    font-weight: 700;
}

.dropdown-menu > li > a {
    padding: 10px 18px;
    color: var(--spr-text);
    font-weight: 500;
}

.dropdown-menu > li > a:hover {
    background: var(--spr-primary-soft);
    color: var(--spr-primary-dark);
}

.spr-login-link {
    background: linear-gradient(135deg, var(--spr-primary), var(--spr-primary-dark));
    color: #fff !important;
    border-radius: 999px;
    margin: 15px 0 0 8px;
    padding: 10px 16px !important;
}

.spr-login-link:hover,
.spr-login-link:focus,
.spr-logout-link:hover,
.spr-logout-link:focus {
    color: #fff !important;
    opacity: .92;
}

.spr-login-menu .spr-user-greeting > a,
.spr-login-menu .spr-logout-link {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-height: 68px;
    padding: 24px 14px !important;
    border-radius: 12px;
    color: var(--spr-text) !important;
    font-weight: 600;
    line-height: 20px;
}

.spr-logout-form {
    margin: 0;
    padding: 0;
}

.spr-login-menu .spr-logout-link {
    border: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
}

.spr-login-menu .spr-user-greeting > a:hover,
.spr-login-menu .spr-user-greeting > a:focus,
.spr-login-menu .spr-logout-link:hover,
.spr-login-menu .spr-logout-link:focus {
    background: #000 !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
    opacity: 1;
}

.spr-login-menu .spr-logout-link:focus {
    outline: 2px solid rgba(15, 93, 117, .22);
    outline-offset: -2px;
}

@media (min-width: 768px) {
    .spr-login-menu {
        display: flex;
        align-items: center;
    }

    .spr-login-menu > li {
        float: none;
    }
}

.spr-page-header {
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f4fbfd);
    border: 1px solid var(--spr-border);
    border-radius: var(--spr-radius);
    padding: 28px 30px;
    margin-bottom: 22px;
    box-shadow: var(--spr-shadow);
    overflow: hidden;
}

.spr-page-header:before {
    content: "";
    position: absolute;
    top: -50px;
    right: -20px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216,156,42,.16), rgba(216,156,42,0));
}

.spr-page-header h1,
.spr-page-header h2,
.spr-page-header h3 {
    margin: 0 0 8px;
    color: var(--spr-primary-dark);
    font-weight: 700;
}

.spr-page-header p {
    margin: 0;
    color: var(--spr-text-soft);
    max-width: 900px;
}

.spr-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.spr-toolbar .btn {
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 600;
}

.spr-card,
.spr-table-card,
.spr-form-card,
.panel,
.well,
.card {
    background: var(--spr-surface);
    border: 1px solid var(--spr-border);
    border-radius: var(--spr-radius);
    box-shadow: var(--spr-shadow);
}

.spr-card,
.spr-table-card,
.spr-form-card {
    padding: 20px;
    margin-bottom: 20px;
}

.panel {
    overflow: hidden;
}

.panel-heading {
    background: var(--spr-primary-soft) !important;
    color: var(--spr-primary-dark) !important;
    border-bottom: 1px solid var(--spr-border) !important;
    font-weight: 700;
}

.panel-body,
.card-body {
    padding: 20px;
}

.well {
    padding: 18px;
    margin-bottom: 16px;
}

.spr-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.spr-kpi-card {
    background: #fff;
    border: 1px solid var(--spr-border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--spr-shadow);
    position: relative;
    overflow: hidden;
}

.spr-kpi-card:before {
    content: "";
    position: absolute;
    inset: auto -25px -25px auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(15,93,117,.07);
}

.spr-kpi-card .spr-kpi-label {
    display: block;
    color: var(--spr-text-soft);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.spr-kpi-card .spr-kpi-value {
    display: block;
    color: var(--spr-primary-dark);
    font-size: 28px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 8px;
}

.spr-kpi-card .spr-kpi-help {
    color: var(--spr-text-soft);
    font-size: 12px;
}

.btn {
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, var(--spr-primary), var(--spr-primary-dark));
    border-color: var(--spr-primary-dark);
}

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

.btn-success {
    background: linear-gradient(135deg, #23a065, #1a834f);
    border-color: #1a834f;
}

.btn-default {
    background: #fff;
    border-color: var(--spr-border);
    color: var(--spr-text);
}

.btn-default:hover,
.btn-default:focus {
    background: #f5fbfd;
    border-color: #bfd4dd;
}

.btn-info {
    background: #edf8fb;
    color: var(--spr-primary-dark);
    border-color: #cbe2ea;
}

.btn-warning {
    background: #fff5df;
    color: #8b6415;
    border-color: #f1d89f;
}

.btn-danger {
    background: #fff0ee;
    color: var(--spr-danger);
    border-color: #efc2bd;
}

.btn-circle {
    border-radius: 999px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.inline-form {
    display: inline-block;
    margin: 0 2px;
}

.form-control,
input,
select,
textarea {
    max-width: none;
    border-radius: 10px;
    border: 1px solid #cfe0e7;
    box-shadow: none;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: #7cb4c4;
    box-shadow: 0 0 0 3px rgba(15,93,117,.08);
}

label {
    font-weight: 600;
    color: var(--spr-primary-dark);
}

.table {
    margin-bottom: 0;
}

.table > thead > tr > th {
    background: #f1f8fb;
    color: var(--spr-primary-dark);
    border-bottom: 2px solid #d8e9ef;
    vertical-align: middle;
    font-weight: 700;
}

.table > tbody > tr > td {
    vertical-align: middle;
}

.table-hover > tbody > tr:hover,
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #fbfdfe;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    margin-left: 6px;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 12px;
    text-align: left !important;
}

.badge,
.badge-statut {
    display: inline-block;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success,
.badge-statut-approuvee {
    background: #e8f8ef;
    color: #1b7b47;
}

.badge-secondary,
.badge-statut-cloturee {
    background: #eef1f3;
    color: #5d6b75;
}

.badge-warning,
.badge-statut-nouvelle {
    background: #fff4de;
    color: #8b6415;
}

.badge-statut-refusee {
    background: #fdeeed;
    color: #b03b34;
}

.alert {
    border-radius: 12px;
    border: 1px solid transparent;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.spr-alert {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #ecfaf2;
    border-color: #bfe5cb;
    color: #1f6f42;
}

.alert-danger {
    background: #fff1f0;
    border-color: #efc5c2;
    color: #9d322c;
}

.alert-info {
    background: #eef8ff;
    border-color: #c6e0ef;
    color: #255a72;
}

.spr-empty-state {
    text-align: center;
    padding: 32px 20px;
    color: var(--spr-text-soft);
}

.spr-footer {
    margin-top: 36px;
    background: linear-gradient(135deg, #153543, #0f5d75);
    color: rgba(255,255,255,.92);
    padding: 34px 0 16px;
}

.spr-footer h4,
.spr-footer h5 {
    margin-top: 0;
    color: #fff;
    font-weight: 700;
}

.spr-footer a {
    color: #f9d99d;
}

.spr-footer-grid {
    margin-bottom: 10px;
}

.spr-footer-bottom {
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.78);
}

.login-page {
    max-width: 1180px;
    margin: 10px auto 0;
}

.login-hero,
.login-panel {
    background: #fff;
    border: 1px solid var(--spr-border);
    border-radius: 22px;
    box-shadow: var(--spr-shadow);
}

.login-hero {
    padding: 34px;
    min-height: 100%;
    background: linear-gradient(135deg, #f5fbfd 0%, #ffffff 65%);
}

.login-panel {
    padding: 28px;
}

.login-logo-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--spr-primary), var(--spr-accent));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.login-title {
    font-size: 28px;
    color: var(--spr-primary-dark);
    margin-top: 0;
    font-weight: 700;
}

.login-subtitle,
.login-help,
.login-hero p,
.login-hero li {
    color: var(--spr-text-soft);
}

.login-feature-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
}

.login-feature-list li {
    padding: 8px 0 8px 28px;
    position: relative;
}

.login-feature-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 9px;
    color: var(--spr-success);
}

.login-panel .form-group {
    margin-bottom: 18px;
}

.login-panel .input-group-addon {
    background: #f4f8fb;
    color: var(--spr-primary-dark);
    border-color: #cfe0e7;
}

.login-panel .btn-primary {
    width: 100%;
    padding: 11px 16px;
    border-radius: 12px;
}

.login-links {
    margin-top: 16px;
}

.login-links a {
    display: inline-block;
    margin-right: 12px;
    margin-bottom: 8px;
}

.required:after {
    content: " *";
    color: var(--spr-danger);
    font-weight: 700;
}

@media (max-width: 991px) {
    .spr-topbar-right {
        display: none;
    }

    .spr-nav > li > a,
    .spr-user-nav > li > a {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .spr-login-link {
        margin: 8px 15px 12px;
        display: inline-block !important;
    }

    .spr-login-menu {
        display: block;
    }

    .spr-login-menu .spr-user-greeting > a,
    .spr-login-menu .spr-logout-link {
        width: 100%;
        min-height: auto;
        justify-content: flex-start;
        padding: 12px 15px !important;
        border-radius: 0;
    }

    .container {
        width: 94%;
    }
}

@media (max-width: 767px) {
    .spr-topbar {
        font-size: 11px;
    }

    .spr-page-header,
    .spr-card,
    .spr-table-card,
    .spr-form-card,
    .login-hero,
    .login-panel {
        padding: 18px;
        border-radius: 16px;
    }

    .spr-brand-text strong {
        font-size: 18px;
    }

    .spr-footer {
        text-align: center;
    }
}


/* ==============================
   SPR - Améliorations visuelles V2
   ============================== */

.spr-shell {
    display: flex;
    align-items: flex-start;
    gap: 22px;
}

.spr-admin-sidebar {
    width: 255px;
    flex: 0 0 255px;
    position: sticky;
    top: 18px;
}

.spr-sidebar-card {
    background: #fff;
    border: 1px solid var(--spr-border);
    border-radius: 18px;
    box-shadow: var(--spr-shadow);
    padding: 14px;
}

.spr-sidebar-title {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px 14px;
    color: var(--spr-primary-dark);
    font-weight: 800;
    border-bottom: 1px solid #e7eef2;
    margin-bottom: 8px;
}

.spr-sidebar-section {
    margin: 14px 10px 6px;
    color: #7b8c95;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.spr-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--spr-text);
    font-weight: 600;
    margin-bottom: 4px;
}

.spr-sidebar-link i {
    width: 18px;
    text-align: center;
    color: var(--spr-primary);
}

.spr-sidebar-link:hover,
.spr-sidebar-link:focus {
    background: var(--spr-primary-soft);
    color: var(--spr-primary-dark);
}

.spr-content-panel {
    min-width: 0;
    flex: 1 1 auto;
}

/* Amélioration automatique des anciennes pages création, modification et suivi */
.spr-content-panel > h1,
.spr-content-panel > h2,
.spr-content-panel > h3 {
    background: linear-gradient(135deg, #ffffff, #f4fbfd);
    border: 1px solid var(--spr-border);
    border-radius: var(--spr-radius);
    box-shadow: var(--spr-shadow);
    padding: 24px 28px;
    color: var(--spr-primary-dark);
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 800;
}

.spr-content-panel > h1:before,
.spr-content-panel > h2:before,
.spr-content-panel > h3:before {
    content: "\f0ca";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--spr-accent);
}

.spr-content-panel > p:first-of-type,
.spr-content-panel > .d-flex,
.spr-content-panel > .btn-group {
    margin-bottom: 16px;
}

.spr-content-panel > p .btn,
.spr-content-panel > .d-flex .btn,
.spr-content-panel > .btn-group .btn {
    border-radius: 999px;
    padding: 9px 15px;
}

.spr-content-panel form:not(.navbar-right):not(.inline-form) {
    background: #fff;
    border: 1px solid var(--spr-border);
    border-radius: var(--spr-radius);
    box-shadow: var(--spr-shadow);
    padding: 22px;
    margin-bottom: 20px;
}

.spr-content-panel form .form-horizontal,
.spr-content-panel .form-horizontal {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.spr-content-panel .form-horizontal .form-group {
    margin-left: 0;
    margin-right: 0;
}

.spr-content-panel .form-group {
    margin-bottom: 16px;
}

.spr-content-panel .form-actions,
.spr-content-panel .btn-toolbar {
    margin-top: 18px;
}

.spr-content-panel dl.dl-horizontal,
.spr-content-panel .dl-horizontal {
    background: #fff;
    border: 1px solid var(--spr-border);
    border-radius: var(--spr-radius);
    box-shadow: var(--spr-shadow);
    padding: 22px;
}

.spr-content-panel .dl-horizontal dt {
    color: var(--spr-primary-dark);
    padding-top: 8px;
    white-space: normal;
}

.spr-content-panel .dl-horizontal dd {
    padding-top: 8px;
    margin-bottom: 8px;
}

.spr-content-panel > table,
.spr-content-panel .table-responsive,
.spr-content-panel .card,
.spr-content-panel .panel,
.spr-content-panel .well {
    margin-bottom: 20px;
}

.spr-content-panel > table {
    background: #fff;
    border: 1px solid var(--spr-border);
    border-radius: var(--spr-radius);
    overflow: hidden;
    box-shadow: var(--spr-shadow);
}

.spr-content-panel .table-bordered {
    border: 1px solid var(--spr-border);
}

.spr-content-panel .table-bordered > thead > tr > th,
.spr-content-panel .table-bordered > tbody > tr > td {
    border-color: #e2ebef;
}

.spr-content-panel .table a.btn,
.spr-content-panel td a.btn {
    margin: 2px;
}

.spr-content-panel .text-danger {
    color: var(--spr-danger);
    font-weight: 600;
}

.spr-content-panel .validation-summary-errors {
    background: #fff1f0;
    border: 1px solid #efc5c2;
    color: #9d322c;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

.spr-content-panel .validation-summary-errors ul {
    margin-bottom: 0;
}

/* Pages de suppression */
.spr-content-panel h3 + div,
.spr-content-panel h4 + dl {
    margin-top: 12px;
}

/* tableau interactif plus lisible */
.dataTables_wrapper {
    background: transparent;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    padding: 5px 10px !important;
    margin-left: 2px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--spr-primary) !important;
    color: #fff !important;
    border-color: var(--spr-primary-dark) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--spr-primary-soft) !important;
    color: var(--spr-primary-dark) !important;
    border-color: #cfe0e7 !important;
}

/* Cartes d'action */
.spr-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.spr-action-card {
    display: block;
    background: #fff;
    border: 1px solid var(--spr-border);
    border-radius: 16px;
    box-shadow: var(--spr-shadow);
    padding: 18px;
    color: var(--spr-text);
}

.spr-action-card:hover {
    transform: translateY(-2px);
    transition: all .18s ease;
    color: var(--spr-primary-dark);
}

.spr-action-card i {
    color: var(--spr-accent);
    font-size: 22px;
    margin-bottom: 10px;
}

.spr-action-card strong {
    display: block;
    font-size: 16px;
    color: var(--spr-primary-dark);
    margin-bottom: 4px;
}

.spr-action-card span {
    color: var(--spr-text-soft);
    font-size: 13px;
}

/* Boutons uniformisés dans les anciennes vues */
input[type="submit"].btn,
button.btn,
a.btn {
    transition: all .16s ease;
}

input[type="submit"].btn:hover,
button.btn:hover,
a.btn:hover {
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1199px) {
    .spr-admin-sidebar {
        width: 225px;
        flex-basis: 225px;
    }
}

@media (max-width: 991px) {
    .spr-shell {
        display: block;
    }

    .spr-admin-sidebar {
        width: auto;
        position: static;
        margin-bottom: 18px;
    }

    .spr-sidebar-card {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 6px;
    }

    .spr-sidebar-title,
    .spr-sidebar-section {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .spr-content-panel > h1,
    .spr-content-panel > h2,
    .spr-content-panel > h3 {
        padding: 18px;
        font-size: 22px;
    }

    .spr-content-panel form:not(.navbar-right):not(.inline-form),
    .spr-content-panel dl.dl-horizontal,
    .spr-content-panel .dl-horizontal {
        padding: 16px;
    }

    .spr-sidebar-card {
        grid-template-columns: 1fr;
    }
}


/* ==============================
   SPR - Menu latéral réductible + icônes sans FontAwesome
   ============================== */

.spr-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #e7eef2;
    margin-bottom: 8px;
    padding: 8px 8px 12px;
}

.spr-sidebar-title {
    border-bottom: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    min-width: 0;
}

.spr-sidebar-toggle {
    width: 34px;
    height: 34px;
    border: 1px solid var(--spr-border);
    border-radius: 10px;
    background: #fff;
    color: var(--spr-primary-dark);
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 93, 117, .08);
}

.spr-sidebar-toggle:hover,
.spr-sidebar-toggle:focus {
    background: var(--spr-primary-soft);
    outline: none;
}

.spr-menu-icon {
    width: 28px;
    min-width: 28px;
    height: 28px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--spr-primary-soft);
    color: var(--spr-primary-dark);
    font-family: "Segoe UI Symbol", "Segoe UI Emoji", "Arial Unicode MS", Arial, sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.spr-brand-mark {
    font-family: "Segoe UI Symbol", "Segoe UI Emoji", "Arial Unicode MS", Arial, sans-serif;
}

.spr-sidebar-link .spr-menu-icon {
    transition: transform .16s ease, background .16s ease;
}

.spr-sidebar-link:hover .spr-menu-icon {
    transform: scale(1.05);
    background: var(--spr-accent-soft);
    color: #8b6415;
}

.spr-sidebar-collapsed .spr-admin-sidebar {
    width: 76px;
    flex-basis: 76px;
}

.spr-sidebar-collapsed .spr-sidebar-card {
    padding: 10px;
}

.spr-sidebar-collapsed .spr-sidebar-header {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

.spr-sidebar-collapsed .spr-sidebar-title {
    display: none;
}

.spr-sidebar-collapsed .spr-sidebar-toggle {
    width: 42px;
}

.spr-sidebar-collapsed .spr-toggle-symbol {
    display: inline-block;
    transform: rotate(180deg);
}

.spr-sidebar-collapsed .spr-sidebar-text,
.spr-sidebar-collapsed .spr-sidebar-section {
    display: none;
}

.spr-sidebar-collapsed .spr-sidebar-link {
    justify-content: center;
    padding: 10px 0;
}

.spr-sidebar-collapsed .spr-sidebar-link .spr-menu-icon {
    margin: 0;
}

/* On neutralise les anciennes règles qui ciblaient les balises i du menu latéral. */
.spr-sidebar-link i {
    display: none !important;
}

/* Correction de rendu des accents et polices système */
body,
input,
select,
textarea,
button {
    font-family: "Segoe UI", "Segoe UI Symbol", "Segoe UI Emoji", Tahoma, Geneva, Verdana, Arial, sans-serif;
}

@media (max-width: 991px) {
    .spr-sidebar-toggle {
        display: none;
    }

    .spr-sidebar-collapsed .spr-admin-sidebar,
    .spr-admin-sidebar {
        width: auto;
        flex-basis: auto;
    }

    .spr-sidebar-collapsed .spr-sidebar-text,
    .spr-sidebar-collapsed .spr-sidebar-section {
        display: inline;
    }

    .spr-sidebar-collapsed .spr-sidebar-link {
        justify-content: flex-start;
        padding: 10px 12px;
    }
}


/* ==========================================================
   SPR - Icônes globales sans dépendance Font Awesome
   Corrige les carrés dans les pages lorsque la police FA manque.
   ========================================================== */

.fa,
.fas,
.far,
.fab {
    font-family: "Segoe UI Symbol", "Segoe UI Emoji", "Arial Unicode MS", Arial, sans-serif !important;
    font-style: normal !important;
    font-weight: 700 !important;
    display: inline-block;
    min-width: 1.15em;
    text-align: center;
    line-height: 1;
}

.fa:before,
.fas:before,
.far:before,
.fab:before {
    font-family: "Segoe UI Symbol", "Segoe UI Emoji", "Arial Unicode MS", Arial, sans-serif !important;
    font-weight: 700 !important;
}

/* Navigation / comptes */
.fa-user:before { content: "👤" !important; }
.fa-user-circle:before { content: "👤" !important; }
.fa-user-plus:before { content: "+" !important; }
.fa-user-times:before { content: "×" !important; }
.fa-user-tag:before { content: "◆" !important; }
.fa-users:before { content: "👥" !important; }
.fa-sign-in-alt:before { content: "→" !important; }
.fa-sign-out-alt:before { content: "↪" !important; }
.fa-lock:before { content: "🔒" !important; }

/* Actions */
.fa-plus:before { content: "+" !important; }
.fa-plus-circle:before { content: "⊕" !important; }
.fa-save:before { content: "✓" !important; }
.fa-edit:before { content: "✎" !important; }
.fa-trash:before { content: "🗑" !important; }
.fa-trash-alt:before { content: "🗑" !important; }
.fa-search:before { content: "⌕" !important; }
.fa-filter:before { content: "⌄" !important; }
.fa-download:before { content: "⇩" !important; }
.fa-upload:before { content: "⇧" !important; }
.fa-file-download:before { content: "⇩" !important; }
.fa-file-pdf:before { content: "PDF" !important; font-size: .82em; }
.fa-file-excel-o:before { content: "XLS" !important; font-size: .82em; }
.fa-info-circle:before { content: "i" !important; }
.fa-check-circle:before { content: "✓" !important; }
.fa-times-circle:before { content: "×" !important; }
.fa-exclamation-triangle:before { content: "!" !important; }

/* Association / contenu */
.fa-chart-line:before { content: "▣" !important; }
.fa-coins:before { content: "$" !important; }
.fa-donate:before { content: "＋" !important; }
.fa-money-bill-wave:before { content: "$" !important; }
.fa-hands-helping:before { content: "♡" !important; }
.fa-heart:before { content: "♥" !important; }
.fa-history:before { content: "◷" !important; }
.fa-list:before { content: "☰" !important; }
.fa-folder-open:before { content: "▤" !important; }
.fa-paper-plane:before { content: "✉" !important; }
.fa-envelope:before { content: "✉" !important; }
.fa-at:before { content: "@" !important; }
.fa-phone:before { content: "☎" !important; }
.fa-map-marker-alt:before { content: "⌖" !important; }

/* Pagination */
.fa-angle-left:before { content: "‹" !important; }
.fa-angle-right:before { content: "›" !important; }
.fa-angle-double-left:before { content: "«" !important; }
.fa-angle-double-right:before { content: "»" !important; }

/* En-têtes automatiques des anciennes pages */
.spr-content-panel > h1:before,
.spr-content-panel > h2:before,
.spr-content-panel > h3:before {
    content: "☰" !important;
    font-family: "Segoe UI Symbol", "Segoe UI Emoji", "Arial Unicode MS", Arial, sans-serif !important;
    color: var(--spr-accent);
}

/* Icônes dans les boutons : meilleure lisibilité */
.btn .fa,
.btn .fas,
.btn .far,
.btn .fab {
    margin-right: 4px;
}

/* Dans les petits boutons ronds, on évite l'espace à droite */
.btn-circle .fa,
.btn-circle .fas,
.btn-circle .far,
.btn-circle .fab,
.btn-xs .fa,
.btn-xs .fas {
    margin-right: 0;
}


/* ==========================================================
   SPR - Passe visuelle finale sans section Présentation
   ========================================================== */

.spr-app-body {
    background:
        radial-gradient(circle at top left, rgba(15, 93, 117, .10), transparent 34%),
        radial-gradient(circle at top right, rgba(216, 156, 42, .12), transparent 30%),
        linear-gradient(180deg, #f8fbfd 0%, #eef5f8 100%);
}

.spr-topbar-v2 {
    background: linear-gradient(135deg, #0b4557, #0f5d75);
    box-shadow: 0 6px 18px rgba(11, 69, 87, .14);
}

.spr-topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 4px 10px;
    margin-right: 10px;
}

.spr-navbar-v2.navbar {
    background: rgba(255,255,255,.98);
    border: 0;
    border-radius: 0;
    box-shadow: 0 10px 26px rgba(22, 63, 78, .10);
}

.spr-navbar-v2 .spr-nav > li > a {
    position: relative;
}

.spr-navbar-v2 .spr-nav > li > a:after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 14px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--spr-primary), var(--spr-accent));
    opacity: 0;
    transform: scaleX(.6);
    transition: .18s ease;
}

.spr-navbar-v2 .spr-nav > li > a:hover:after,
.spr-navbar-v2 .spr-nav > li.open > a:after {
    opacity: 1;
    transform: scaleX(1);
}

.spr-main-content {
    padding-top: 28px;
}

.spr-content-panel {
    background: rgba(255,255,255,.48);
    border: 1px solid rgba(219,230,235,.75);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 16px 40px rgba(15, 93, 117, .08);
    backdrop-filter: blur(8px);
}

.spr-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.spr-home-hero-content,
.spr-home-hero-card,
.spr-home-process {
    background: linear-gradient(135deg, #ffffff, #f7fbfd);
    border: 1px solid var(--spr-border);
    border-radius: 26px;
    box-shadow: 0 18px 42px rgba(15,93,117,.12);
}

.spr-home-hero-content {
    padding: 38px;
    position: relative;
    overflow: hidden;
}

.spr-home-hero-content:after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(216,156,42,.22), transparent 70%);
}

.spr-home-eyebrow {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--spr-accent-soft);
    color: #8b6415;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 14px;
}

.spr-home-hero h1 {
    color: var(--spr-primary-dark);
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
    font-weight: 900;
    margin: 0 0 14px;
}

.spr-home-hero p {
    color: var(--spr-text-soft);
    font-size: 17px;
    max-width: 780px;
    margin-bottom: 24px;
}

.spr-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.spr-home-hero-card {
    padding: 28px;
}

.spr-home-symbol {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--spr-primary), var(--spr-accent));
    color: #fff;
    font-size: 34px;
    margin-bottom: 14px;
    box-shadow: 0 10px 24px rgba(15,93,117,.22);
}

.spr-home-hero-card h3 {
    margin-top: 0;
    color: var(--spr-primary-dark);
    font-weight: 800;
}

.spr-home-hero-card ol {
    margin: 0;
    padding-left: 19px;
    color: var(--spr-text-soft);
}

.spr-home-hero-card li {
    margin: 9px 0;
}

.spr-home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.spr-module-card {
    display: block;
    min-height: 155px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--spr-border);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(15,93,117,.09);
    color: var(--spr-text);
    transition: all .18s ease;
}

.spr-module-card:hover,
.spr-module-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15,93,117,.15);
    color: var(--spr-primary-dark);
}

.spr-module-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--spr-primary-soft);
    color: var(--spr-primary-dark);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.spr-module-card strong {
    display: block;
    color: var(--spr-primary-dark);
    font-size: 17px;
    margin-bottom: 7px;
}

.spr-module-card span:last-child {
    color: var(--spr-text-soft);
    font-size: 13px;
}

.spr-home-process {
    padding: 24px;
}

.spr-home-process h2 {
    margin-top: 0;
    color: var(--spr-primary-dark);
    font-weight: 850;
}

.spr-process-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
}

.spr-process-list div {
    background: #fff;
    border: 1px solid #e5eef2;
    border-radius: 16px;
    padding: 14px;
    color: var(--spr-text-soft);
    font-weight: 600;
}

.spr-process-list span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--spr-primary);
    color: #fff;
    margin-right: 8px;
    font-weight: 900;
}

.spr-page-header {
    border-radius: 24px;
    padding: 30px 32px;
    background:
        radial-gradient(circle at right, rgba(216,156,42,.18), transparent 32%),
        linear-gradient(135deg, #ffffff, #f3fafc);
}

.spr-page-header h2,
.spr-page-header h1 {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
}

.spr-kpi-card {
    border-radius: 22px;
    border: 1px solid rgba(219,230,235,.9);
    box-shadow: 0 14px 34px rgba(15,93,117,.10);
}

.spr-kpi-card .spr-kpi-value {
    font-size: 31px;
}

.spr-action-card {
    border-radius: 20px;
    min-height: 122px;
}

.spr-action-card i,
.spr-action-card .fa,
.spr-action-card .fas {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--spr-accent-soft);
    margin-bottom: 10px;
}

.spr-table-card,
.spr-form-card,
.spr-card {
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15,93,117,.09);
}

.table > thead > tr > th {
    background: linear-gradient(180deg, #edf8fb, #e8f3f7);
    color: var(--spr-primary-dark);
}

.table-bordered {
    border-radius: 14px;
    overflow: hidden;
}

.form-control {
    min-height: 40px;
}

.spr-toolbar {
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(219,230,235,.75);
    border-radius: 18px;
    padding: 12px;
}

.btn {
    box-shadow: 0 6px 15px rgba(15,93,117,.08);
}

.btn-lg {
    border-radius: 999px;
    padding: 12px 20px;
}

.spr-sidebar-card {
    border-radius: 22px;
    box-shadow: 0 18px 38px rgba(15,93,117,.10);
}

.spr-sidebar-link {
    border-radius: 14px;
}

.spr-sidebar-link:hover,
.spr-sidebar-link:focus {
    transform: translateX(2px);
}

@media (max-width: 991px) {
    .spr-home-hero {
        grid-template-columns: 1fr;
    }

    .spr-content-panel {
        padding: 12px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .spr-navbar-v2 .spr-nav > li > a:after {
        display: none;
    }
}

@media (max-width: 767px) {
    .spr-home-hero-content,
    .spr-home-hero-card,
    .spr-home-process {
        padding: 20px;
        border-radius: 18px;
    }

    .spr-home-actions .btn {
        width: 100%;
    }

    .spr-home-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   SPR - Rapports imprimables PDF avec définitions modèle d’impression
   ========================================================== */

.spr-report-page {
    max-width: 100%;
}

.spr-report-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--spr-border);
    border-radius: 18px;
    box-shadow: var(--spr-shadow);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.spr-report-toolbar h2 {
    margin: 0 0 4px;
    color: var(--spr-primary-dark);
    font-weight: 850;
}

.spr-report-toolbar p {
    margin: 0;
    color: var(--spr-text-soft);
}

.spr-report-sheet {
    background: #fff;
    border: 1px solid #d8e4ea;
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(15,93,117,.10);
    padding: 24px;
    overflow-x: auto;
}

.spr-report-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 3px solid var(--spr-primary);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.spr-report-header h1 {
    margin: 0;
    color: var(--spr-primary-dark);
    font-size: 24px;
    font-weight: 900;
}

.spr-report-header h2 {
    margin: 4px 0 0;
    color: var(--spr-text);
    font-size: 18px;
    font-weight: 750;
}

.spr-report-meta {
    text-align: right;
    color: var(--spr-text-soft);
    font-size: 12px;
}

.spr-report-table {
    font-size: 12px;
}

.spr-report-table th {
    background: #eaf5f8 !important;
    color: var(--spr-primary-dark) !important;
    font-weight: 800;
}

.spr-report-table td,
.spr-report-table th {
    padding: 7px 8px !important;
}

.spr-report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.spr-report-summary div {
    border: 1px solid #e0ebf0;
    border-radius: 12px;
    padding: 12px;
    background: #f8fcfd;
}

.spr-report-summary strong {
    display: block;
    color: var(--spr-text-soft);
    font-size: 12px;
    margin-bottom: 4px;
}

.spr-report-summary span {
    color: var(--spr-primary-dark);
    font-size: 18px;
    font-weight: 850;
}

@media print {
    @page {
        size: A4 landscape;
        margin: 10mm;
    }

    html,
    body {
        background: #fff !important;
        color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .no-print,
    .spr-topbar,
    .spr-navbar,
    .spr-admin-sidebar,
    .spr-footer,
    .spr-alert,
    .spr-sidebar-card,
    .spr-toolbar,
    .navbar,
    footer {
        display: none !important;
    }

    .container,
    .spr-main-content,
    .spr-shell,
    .spr-content-panel {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .spr-report-sheet {
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .spr-report-header {
        page-break-after: avoid;
    }

    .spr-report-table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 10px !important;
    }

    .spr-report-table th,
    .spr-report-table td {
        border: 1px solid #999 !important;
        padding: 4px 5px !important;
        vertical-align: top !important;
    }

    .spr-report-table thead {
        display: table-header-group;
    }

    .spr-report-table tr {
        page-break-inside: avoid;
    }

    a[href]:after {
        content: "" !important;
    }
}


/* ==========================================================
   SPR - Extractions globales Excel / Word / CSV / PDF
   ========================================================== */

.spr-table-export {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    margin: 10px 0 12px;
    padding: 10px;
    background: rgba(255,255,255,.78);
    border: 1px solid var(--spr-border, #dbe6eb);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15,93,117,.07);
}

.spr-table-export-title {
    margin-right: auto;
    color: var(--spr-primary-dark, #0b4557);
    font-weight: 800;
    font-size: 13px;
}

.spr-table-export button {
    border: 1px solid #cfdfe6;
    background: #fff;
    color: #0b4557;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    transition: .15s ease;
}

.spr-table-export button:hover,
.spr-table-export button:focus {
    background: #eaf5f8;
    border-color: #9cc8d5;
    transform: translateY(-1px);
}

.spr-table-export button[data-export="excel"] {
    color: #176c43;
}

.spr-table-export button[data-export="word"] {
    color: #185abd;
}

.spr-table-export button[data-export="pdf"] {
    color: #b93a32;
}

@media print {
    .spr-table-export {
        display: none !important;
    }
}


/* ==========================================================
   SPR - Espace de travail selon rôle après connexion
   ========================================================== */

.spr-role-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 24px;
    background:
        radial-gradient(circle at right top, rgba(216, 156, 42, .18), transparent 32%),
        linear-gradient(135deg, #ffffff, #f3fafc);
    border: 1px solid var(--spr-border, #dbe6eb);
    border-radius: 28px;
    box-shadow: 0 18px 44px rgba(15,93,117,.11);
    padding: 30px;
}

.spr-role-eyebrow {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--spr-accent-soft, #fff4df);
    color: #8a6212;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.spr-role-hero h1 {
    color: var(--spr-primary-dark, #0b4557);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    font-weight: 950;
    margin: 0 0 12px;
}

.spr-role-hero p {
    color: var(--spr-text-soft, #687782);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    max-width: 760px;
}

.spr-role-user-card {
    background: #fff;
    border: 1px solid rgba(219,230,235,.95);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15,93,117,.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spr-role-avatar {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--spr-primary, #0f5d75), var(--spr-accent, #d89c2a));
    color: #fff;
    font-size: 27px;
    margin-bottom: 12px;
}

.spr-role-user-card strong {
    display: block;
    color: var(--spr-primary-dark, #0b4557);
    font-size: 17px;
    word-break: break-word;
}

.spr-role-user-card span:last-child {
    color: var(--spr-text-soft, #687782);
    font-weight: 800;
    margin-top: 4px;
}

.spr-role-section {
    margin-bottom: 26px;
}

.spr-role-section h2 {
    color: var(--spr-primary-dark, #0b4557);
    font-weight: 900;
    margin: 0 0 14px;
}

.spr-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.spr-role-card {
    display: block;
    background: #fff;
    border: 1px solid var(--spr-border, #dbe6eb);
    border-radius: 22px;
    padding: 20px;
    min-height: 156px;
    color: var(--spr-text, #24323d);
    box-shadow: 0 14px 34px rgba(15,93,117,.09);
    transition: .18s ease;
}

.spr-role-card:hover,
.spr-role-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(15,93,117,.15);
    color: var(--spr-primary-dark, #0b4557);
}

.spr-role-card span {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: var(--spr-primary-soft, #eaf5f8);
    color: var(--spr-primary-dark, #0b4557);
    font-size: 20px;
    font-weight: 950;
    margin-bottom: 13px;
}

.spr-role-card strong {
    display: block;
    color: var(--spr-primary-dark, #0b4557);
    font-size: 17px;
    margin-bottom: 7px;
}

.spr-role-card small {
    display: block;
    color: var(--spr-text-soft, #687782);
    font-size: 13px;
    line-height: 1.55;
}

.spr-role-card-important {
    border-color: rgba(15,93,117,.28);
    background: linear-gradient(135deg, #ffffff, #f3fbfd);
}

.spr-role-card-finance span {
    background: #eefaf4;
    color: #176c43;
}

.spr-role-card-admin span {
    background: #fff1ef;
    color: #a43b2f;
}

.spr-role-rights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.spr-role-rights div {
    background: #fff;
    border: 1px solid var(--spr-border, #dbe6eb);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 26px rgba(15,93,117,.07);
}

.spr-role-rights strong {
    display: block;
    color: var(--spr-primary-dark, #0b4557);
    margin-bottom: 5px;
    font-size: 16px;
}

.spr-role-rights span {
    color: var(--spr-text-soft, #687782);
    line-height: 1.55;
}

@media (max-width: 900px) {
    .spr-role-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .spr-role-user-card {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .spr-role-grid,
    .spr-role-rights {
        grid-template-columns: 1fr;
    }

    .spr-role-card {
        min-height: auto;
    }
}
