.figa-phone-control { display: flex; gap: .35rem; align-items: stretch; }
.figa-phone-control .figa-phone-country { flex: 0 0 7rem; max-width: 7rem; }
.figa-phone-control input { min-width: 0; flex: 1 1 auto; }
@media (max-width: 575.98px) {
    .figa-phone-control .figa-phone-country { flex-basis: 6.25rem; max-width: 6.25rem; }
}
:root {
    --primary-color: #124b4a;
    --secondary-color: #c08a2e;
    --icon-green-color: #e5f0ed;
    --input-focus-color: #f3f8f6;
    --black-color: #172b2a;
    --input-filter-height: 40px;
    --input-height: 45px;
    --ts-input-height: 45px;
    --input-border-width: 1px;
    --input-bg-color: #FBFCFB;
    --grid-dash-gap: 15px;
    --input-radius: 6px 6px 1px 1px;
    --white-color: #fffdf8;
    --light-color: #edf3f0;
    --gray-color: #667873;
    --red-color: #b4474b;
    --muted: #667873;
    --border: #d8e3de;
    --radius-md: 10px;
    --radius-sm: 7px;
    --radius-lg: 15px;
    --bg-gradient: none;
    --green-opacity: rgba(31, 94, 78, 0.92);
    --input-padding: .65rem .75rem !important;
    --sidebar-space: 248px;
    --sidebar-padding: 12px;
    --app-bg: #f4f7f5;
    --surface-subtle: #eaf1ee;
    --shadow-sm: 0 1px 2px rgba(18, 75, 74, .05), 0 8px 24px rgba(18, 75, 74, .06);
    --surface-elevated: #fffdf8;
    --surface-muted: #eef3f1;
    --focus-ring: rgba(192, 138, 46, .22);
    --danger-soft: #faeceb;
    --warning-soft: #fbf3df;
    --success-soft: #e5f2ec;
    --form-max-width: 1120px;
}

h1,
h2,
h3 {
    font-weight: 800 !important;
}
h1{
    font-size: 1.8em;
}
h5{
    font-size: 1.1em;
}
.dash-grid-quatre {
    grid-gap: var(--grid-dash-gap);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
}

.dash-grid-six {
    grid-gap: var(--grid-dash-gap);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 0;
}

.dash-grid-cinq {
    grid-gap: var(--grid-dash-gap);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 0;
}

.card-stats .icon-big,
.card-stats .col-icon {
    width: 45px;
    height: 45px;
    min-height: 45px;
}

.dash-grid-trois {
    grid-gap: var(--grid-dash-gap);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
}

.dash-grid-deux {
    grid-gap: var(--grid-dash-gap);
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
}

.grid-six {
    grid-gap: 10px;
    border-radius: 10px;
    display: grid;
    align-items: center;
    grid-template-columns: repeat(6, 1fr);
    padding: 0;
}

.grid-cinq {
    grid-gap: 10px;
    border-radius: 10px;
    display: grid;
    align-items: end;
    grid-template-columns: repeat(5, 1fr);
    padding: 0;
}

.grid-quatre {
    grid-gap: 10px;
    border-radius: 10px;
    display: grid;
    align-items: end;
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
}

.grid-trois {
    grid-gap: 10px;
    border-radius: 10px;
    display: grid;
    align-items: end;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
}

.grid-deux {
    grid-gap: 10px;
    border-radius: 10px;
    display: grid;
    align-items: end;
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
}
.baseline.grid-deux{
    align-items: end;
}

form .grid-deux {
    grid-gap: 10px;
    border-radius: 10px;
    display: grid;
    align-items: baseline;
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
}

label.required::after {
    content: ' *' !important;
    color: var(--red-color) !important;
}

.btn-light {
    background: var(--light-color) !important;
}

.custom-cursor {
    height: 100vh !important;
    overflow: hidden;
    background: var(--black-color);
}

.admin-body .btn {
    border-radius: var(--radius-md) !important;
}

.main-slider-one {
    position: relative;
    margin-top: 0;
}

.main-slider-one__content {
    padding-top: 50px !important;
}

.main-slider-one__shape {
    left: 40px;
    bottom: 0;
    width: 150px;
    height: 150px;
    border-radius: var(--radius-md);
}

.main-slider-one__shape img {
    border-radius: var(--radius-md);
    border: var(--input-border-width) solid var(--primary-color);
}

.main-slider-one__carousel.owl-carousel .owl-nav button {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md) !important;
}

.sec-title__title {
    font-size: 1.5rem;
    line-height: 44px;
    font-weight: 700 !important;
}

.sec-title__tagline {
    margin: 0;
    color: var(--grdeen-base, var(--primary-color));
    font-weight: 600;
    font-size: 1em;
    line-height: 18px;
    text-transform: uppercase;
}

.auth-block {
    position: absolute;
    right: 8%;
    width: 400px;
    top: 30px;
    z-index: 10000;
}

.form-section {
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(58, 57, 57, 0.1);
}

.main-slider-one__title {
    font-size: 1.5em;
    line-height: 40px;
    text-align: left;
}

.main-slider-one__item {
    height: 100vh;
}

.form-control,
.form-select {
    width: 100%;
    border: none;
    height: var(--input-height);
    background: var(--input-bg-color);
    border-bottom: var(--input-border-width) solid var(--border) !important;
    border-radius: var(--input-radius) !important;
    padding: var(--input-padding) !important;
    font-size: 1em !important;
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.05);
}

.card-form {
    background: #fdfdfd;
    overflow: hidden;
    /*background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');*/
    /* texture papier */
    border: 1px solid var(--border) !important;
    border-top: 5px solid var(--primary-color) !important;
    border-radius: 6px;
    box-shadow: none !important;
    position: relative;
}

.card-form .card-body,
.card-form .card-footer {
    padding: 30px;
}

.card-form::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 0 20px 20px;
    border-style: solid;
    border-color: yellow red var(--red-color) yellow;
    z-index: 2;
}

.card-form form {
    z-index: 1;
    position: relative;
}

textarea {
    resize: vertical !important;
    min-height: 100px !important;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-width: 1px !important;
    border-bottom: var(--input-border-width) solid var(--red-color) !important;
}

.ts-control:focus,
.form-control:focus,
.ts-wrapper.single.input-active .ts-control,
.form-select:focus {
    outline: none !important;
    box-shadow: none !important;
    background: var(--input-focus-color) !important;
    border-color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color) !important;
}

.auth-block .grdeen-btn,
.auth-block button {
    width: 100%;
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    padding: .75rem !important;
}

.auth-block label,
.form p,
.auth-block p,
.auth-block a {
    font-size: .9em;
}

form legend {
    font-weight: 500 !important;
    font-size: 1.2em !important;
}

form label {
    display: block;
    margin-bottom: 6px;
    color: var(--black-color);
    font-weight: 500;
}

.card-header img {
    width: 50px;
    height: 50px;
}

form p {
    font-size: .9em;
    padding: 5px 0;
}

.form-group {
    padding: 6px 0 !important;
}

.main-slider-one__overlay {
    background-color: var(--green-opacity) !important;
}

.card-footer .btn {
    width: max-content !important;
}

.sidebar.sidebar-style-2[data-background-color=dark] .nav>.nav-item a {
    border-radius: var(--radius-md);
    color: var(--white-color) !important;
    padding-top: var(--radius-md) !important;
    padding-bottom: var(--radius-md) !important;
    padding-left: 10px !important;
}

.sidebar.sidebar-style-2 .nav>.nav-item a i,
.sidebar.sidebar-style-2[data-background-color=white] .nav>.nav-item a i {
    color: var(--white-color) !important;
}

.sidebar.sidebar-style-2 .nav>.nav-item,
.sidebar.sidebar-style-2[data-background-color=white] .nav>.nav-item {
    text-transform: uppercase;
    color: var(--white-color);
}
.sidebar .nav-collapse, .sidebar[data-background-color=white] .nav-collapse {
    margin-top: 0;
    margin-bottom: 5px;
    padding-bottom: 0;
    padding-top: 0;
}
.sidebar.sidebar-style-2 .nav .nav-item a:hover,
.sidebar.sidebar-style-2 .nav .nav-item.active>a {
    background: var(--white-color) !important;
    color: var(--primary-color) !important;
}
.sidebar .nav-collapse li a .sub-item{
    font-size: .95rem!important;
}
.sidebar.sidebar-style-2[data-background-color=dark] .nav .nav-item.active a:hover span {
    color: var(--primary-color) !important;
}

.sidebar.sidebar-style-2[data-background-color=dark] .nav>.nav-item.active a:focus p,
.sidebar.sidebar-style-2[data-background-color=dark] .nav>.nav-item.active a:hover p,
.sidebar.sidebar-style-2[data-background-color=dark] .nav>.nav-item.active>a p {
    color: var(--primary-color) !important;
}

.sidebar.sidebar-style-2[data-background-color=dark] .nav .nav-item.submenu {
    border-radius: var(--radius-md) !important;
}

.sidebar.sidebar-style-2 .nav .nav-item a:hover p,
.sidebar.sidebar-style-2 .nav .nav-item.active>a p {
    color: var(--primary-color) !important;
}

.sidebar.sidebar-style-2[data-background-color=dark] .nav .nav-item.active>a {
    background: var(--white-color) !important;
}

.sidebar.sidebar-style-2 .nav.nav-secondary>.nav-item.active a:before {
    display: none;
}

.table>tbody>tr>td,
.table>tbody>tr>th,
.table>thead>tr>th {
    padding: 5px 10px !important;
    font-size: .9em !important;
}

.table>tbody>tr>td {
    color: var(--muted) !important;
    white-space: nowrap;
}

.table>thead>tr>th {
    padding: 10px 10px !important;
    text-transform: uppercase !important;
    white-space: nowrap;
}

thead th {
    background: var(--white-color) !important;
    color: var(--black-color) !important;
    text-transform: capitalize !important;
    font-weight: bold !important;
}

table {
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    border: 1px solid var(--border) !important;
    box-shadow: inset 0 calc(-1* var(--border)) 0 var(--border) !important;
}

.table-responsive {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border) !important;
    box-shadow: inset 0 calc(-1* var(--border)) 0 var(--border) !important;
    padding-bottom: 0 !important;
    background: var(--white-color) !important;
    margin-bottom: 30px;
}

.ts-wrapper {
    background: var(--input-bg-color) !important;
    border-bottom: var(--input-border-width) solid var(--border) !important;
    height: var(--ts-input-height) !important;
}

.modal img {
    width: 50px !important;
    height: 50px !important;
}

.modal-content {
    border-radius: var(--radius-md) !important;
    background: var(--white-color) !important;
}

.modal-header {
    border-top: 3px solid var(--primary-color) !important;
}

.modal-title {
    font-weight: 600 !important;
    font-size: 1.5em;
}

.badge {
    font-size: .9em!important;
    font-weight: 700!important;
    border-radius: var(--radius-md) !important;
    border: none !important;
}

.modal-title {
    font-weight: 600 !important;
}

.badge.bg-light {
    color: var(--primary-color) !important;
    background: var(--light-color) !important;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999 !important;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    display: none;
}

#loader .load {
    transform: translate(-50%, -50%);
    /*border: 8px solid var(--light-color);*/
    border-top: 8px solid var(--primary-color);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    margin: 15% auto 0;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ts-wrapper.single .ts-control,
.ts-wrapper {
    min-height: var(--ts-input-height) !important;
    height: var(--ts-input-height) !important;
    padding: 0 !important;
    width: 100%;
    background: var(--input-bg-color) !important;
    border-bottom: var(--input-border-width) solid var(--border) !important;
    border-radius: var(--input-radius) !important;
    font-size: .9em !important;
    transition: all linear .3s;
    -webkit-transition: all linear .3s;
    -moz-transition: all linear .3s;
    -ms-transition: all linear .3s;
    -o-transition: all linear .3s;
}

.ts-wrapper.single .ts-control {
    padding-left: .75rem !important;
    background-image: none !important;
    box-shadow: none !important;
    background-color: var(--input-bg-color) !important;
}

.ts-wrapper.single .ts-control,
.ts-dropdown.single {
    border-color: var(--border) !important;
}

.ts-control .item {
    margin-top: 15px !important;
    font-size: 1.2em !important;
}

.filter .d-flex .mb-3 {
    width: 100%;
}

.filter .form-control,
.filter .form-select,
.filter .btn {
    height: var(--input-filter-height) !important;
    height: var(--input-filter-height) !important;
    line-height: var(--input-filter-height) !important;
    padding: 0 8px !important;
    font-size: .8em;
    border-radius: var(--input-radius) !important;
}

.filter .mb-3 {
    margin-bottom: 0 !important;
}

.filter .btn {
    padding: 0 13px !important;
}

.filter .ts-control .item {
    margin-top: 0px !important;
    font-size: .8em !important;
    background: var(--primary-color) !important;
}

.ts-control:not(.rtl) {
    background: var(--input-bg-color) !important;
    border: none !important;
    box-shadow: none !important;
}

.btn-check:checked+.form-check-label {
    background-color: var(--primary-color) !important;
    color: var(--white-color) !important;
    border-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.check-field .form-check-label {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: max-content;
    height: 30px !important;
    line-height: 30px;
    font-weight: 500;
    margin: 0;
    padding: 0 15px;
    font-size: .8em !important;
    text-align: center;
    display: inline-block;
    background-color: transparent;
    border-radius: var(--radius-md) !important;
}

.check-field .form-check-label:hover {
    cursor: pointer;
    background: var(--primary-color);
    color: var(--white-color) !important;
}

.check-field .btn-check:checked+.form-check-label {
    background-color: var(--primary-color) !important;
    color: var(--white-color) !important;
    border-color: var(--primary-color);
}

.accordion-item {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--primary-color) !important;
    overflow: hidden;
}

.accordion-header {
    border: none !important;
    border-radius: var(--radius-md) !important;
}

.accordion-item:last-of-type .accordion-button.collapsed {
    border-radius: var(--radius-md) !important;
}

.accordion-item:first-of-type .accordion-button {
    border-top-left-radius: var(--radius-md) !important;
    border-top-right-radius: var(--radius-md) !important;
}

.input-group .input-group-text {
    margin-right: -4px !important;
    background: var(--input-bg-color) !important;
    border-top-left-radius: var(--input-radius) !important;
    border-bottom-left-radius: var(--input-radius) !important;
    border-bottom: var(--input-border-width) solid var(--border) !important;
}

.nav-pills.nav-pills-no-bd.nav-pills-icons .nav-link,
.nav-pills.nav-pills-no-bd.nav-pills-icons .nav-link.active {
    border-radius: var(--radius-md) !important;
}

.pagination {
    margin: 0 !important;
}

table tbody tr td:first-child {
    color: var(--black-color) !important;
    font-size: .9em !important;
    font-weight: 600 !important;
}

.alert {
    padding: 10px !important;
    font-size: .9em !important;
}

.card-round,
.app-panel {
    border-radius: var(--radius-lg) !important;
    padding: 3px!important;
}

.app-panel .icon {
    width: 35px;
    height: 35px;
    line-height: 40px;
    text-align: center;
    padding: 0;
    margin-right: 15px;
    color: var(--primary-color);
    border-radius: var(--radius-md) !important;
    background: var(--icon-green-color);
}

.app-panel .icon i {
    font-size: 1.2em;
}

.titre {
    font-size: 1.1em;
    font-weight: 500;
    line-height: 1.2em;
}

.count {
    font-weight: 900;
    font-size: 1.5rem;
    text-align: center;
}

.dashboard-filter .form-select,
.dashboard-filter .btn {
    border-radius: var(--radius-md) !important;
}

.dashboard-filter .form-select {
    border-color: var(--primary-color) !important;
    background: var(--white-color) !important;
    color: var(--primary-color) !important;
}

.row-card-no-pd,
.card {
    border-radius: 15px !important;
}
.card-header{
    overflow: hidden!important;
}
.dropzone-container {
    border-radius: 10px !important;
    border: 2px dashed var(--primary-color) !important;
}

.dropzone-container {
    width: max-content !important;
    padding: 5px 10px !important;
    min-height: 40px !important;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-color) !important;
    color: var(--white-color) !important;
}

.modal .accordion-button:not(.collapsed) {}

.accordion-button::after {
    background-color: var(--white-color) !important;
    border-radius: var(--radius-md);
}

.form-check {
    padding-left: 0;
    padding-bottom: 0;
}

.card-stats,
.icon-big {
    border-radius: var(--radius-md) !important;
}

.profile-pic span {
    font-size: .8rem;
}

@media (min-width: 576px) {
    .page-inner {
        padding-right: 40px;
        padding-left: 40px;
    }
}

.btn {
    padding-left: .61rem !important;
    padding-right: .61rem !important;
}

table.responsive-th th,
table.responsive-th td {
    width: 50% !important;
}

.main-header .navbar-header,
.main-header {
    min-height: 53px;
    /*border-bottom: 1px solid var(--border)!important;*/
}

.sidebar,
.sidebar[data-background-color=white],
.logo-header {
    width: var(--sidebar-space);
}

.logo-header {
    height: 60px;
}

.main-panel {
    width: calc(100% - var(--sidebar-space));
}

.logo-header,
.sidebar.sidebar-style-2 .nav .nav-item {
    padding-left: 5px;
    padding-right: 5px;
}

.sidebar.sidebar-style-2[data-background-color=dark] .nav>.nav-item a {
    padding-left: 5px;
}

.sidebar .nav>.nav-item a i,
.sidebar[data-background-color=white] .nav>.nav-item a i {
    margin-right: 8px;
}

.form-check .form-check-input {
    margin-left: 0;
    margin-right: .75em;
    border: 2px solid var(--primary-color);
}

input[type=color] {
    height: 40px !important;
    width: 50px !important;
    border-radius: 10px !important;
}

.back {
    margin-top: 10px !important;
    margin-right: 20px;
    border-radius: 50% !important;
    width: 30px;
    height: 30px;
}

.circle {
    width: 150px;
    height: 150px;
    margin: 10px auto;
    position: relative;
    display: inline-block;
}

.circle strong {
    position: absolute;
    border-radius: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

.circle canvas {
    position: absolute;
    top: 0;
    left: 0;
}
.breadcrumbs{
    border-left: 1px solid var(--gray-color);
}
.bg-yellow{
    background: var(--secondary-color)!important;
}

:focus-visible { outline: 3px solid rgba(217,181,43,.8) !important; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .figa-loading-block span { animation: none !important; background-position: 0 0; }
}

/* FIGA Core — shared dense workspace contract
   This final layer intentionally owns the visual grammar without changing
   business templates: stable rhythm, clear hierarchy and predictable data. */
:root {
    --figa-header-height: 60px;
    --figa-sidebar-open: 248px;
    --figa-sidebar-closed: 72px;
    --figa-content-max: 1680px;
    --figa-text: #193332;
    --figa-text-soft: #526662;
    --figa-surface: #fffdf8;
    --figa-surface-alt: #eef4f1;
    --figa-border-strong: #b9ccc4;
}

html { font-size: 16px; }
body.admin-body {
    background: var(--app-bg);
    color: var(--figa-text);
    font-size: .875rem;
    line-height: 1.45;
}
body.admin-body .main-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    min-height: var(--figa-header-height);
    background: rgba(255,253,248,.98);
    border-bottom: 1px solid var(--figa-border-strong) !important;
}
body.admin-body .main-header .navbar-header { min-height: var(--figa-header-height); }
body.admin-body .page-inner {
    width: min(100%, var(--figa-content-max));
    margin-inline: auto;
    padding: 20px clamp(16px, 2.3vw, 36px) 40px;
}

/* Analytics & adoption: observatoire dense, calme et lisible sur la durée. */
.figa-analytics { max-width: 1600px; margin: 0 auto; color: var(--figa-text); }
.figa-analytics-hero { display:flex; justify-content:space-between; gap:24px; align-items:flex-end; margin-bottom:16px; }
.figa-analytics-hero h1 { margin:.25rem 0 .4rem; font-size:clamp(1.5rem,2.4vw,2.15rem); letter-spacing:-.03em; }
.figa-analytics-hero p { margin:0; color:var(--figa-text-soft); }
.figa-kicker { color:var(--secondary-color); font-size:.7rem; font-weight:800; letter-spacing:.14em; }
.figa-analytics-actions { display:flex; flex-wrap:wrap; gap:8px; }
.figa-analytics-nav { display:flex; flex-wrap:wrap; gap:4px; border-bottom:1px solid var(--border); margin-bottom:16px; }
.figa-analytics-nav a { padding:10px 13px; color:var(--figa-text-soft); font-weight:700; text-decoration:none; border-bottom:3px solid transparent; }
.figa-analytics-nav a:hover, .figa-analytics-nav a.is-active { color:var(--primary-color); border-color:var(--secondary-color); }
.figa-analytics-filters { background:var(--figa-surface-alt); border:1px solid var(--border); border-radius:var(--radius-md); padding:14px; margin-bottom:16px; }
.figa-analytics-filters__grid { display:grid; grid-template-columns:repeat(4,minmax(120px,1fr)); gap:10px; align-items:end; }
.figa-analytics-filters label { font-size:.72rem; font-weight:800; color:var(--figa-text-soft); margin-bottom:4px; }
.figa-analytics-filters__actions { display:flex; gap:7px; align-items:end; }
.figa-analytics-filters__actions .btn { white-space:nowrap; }
.figa-kpi-grid--analytics { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; margin-bottom:16px; }
.figa-kpi { min-width:0; padding:16px; border:1px solid var(--border); border-top:3px solid var(--primary-color); border-radius:var(--radius-md); background:var(--figa-surface); box-shadow:var(--shadow-sm); }
.figa-kpi span { display:block; color:var(--figa-text-soft); font-size:.72rem; font-weight:800; letter-spacing:.06em; }
.figa-kpi strong { display:block; margin:5px 0 3px; font-size:1.65rem; letter-spacing:-.04em; }
.figa-kpi small { color:var(--figa-text-soft); }
.figa-analytics-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(260px,.85fr); gap:16px; margin-bottom:16px; }
.figa-analytics-layout--tables { grid-template-columns:repeat(2,minmax(0,1fr)); }
.figa-panel { min-width:0; border-radius:var(--radius-lg); overflow:hidden; }
.figa-panel__head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; padding:15px 17px; }
.figa-panel__head h2 { margin:0 0 3px; font-size:1rem; }
.figa-panel__head small { color:var(--figa-text-soft); }
.figa-panel__head a { color:var(--primary-color); font-weight:800; font-size:.82rem; white-space:nowrap; }
.figa-panel__body { padding:16px; }
.figa-chart-frame { height:290px; position:relative; }
.figa-chart-frame canvas { max-height:100%; }
.figa-summary-list { display:flex; flex-direction:column; justify-content:center; gap:18px; min-height:220px; }
.figa-summary-list > div { display:grid; grid-template-columns:12px 1fr auto; align-items:center; gap:9px; }
.figa-summary-list--metrics > div { grid-template-columns:minmax(0,1fr) auto; }
.figa-summary-list strong { font-size:1.2rem; }
.figa-dot { width:10px; height:10px; border-radius:50%; background:var(--primary-color); }
.figa-dot--warning { background:var(--secondary-color); }.figa-dot--danger { background:var(--red-color); }
.figa-empty { padding:22px 12px; text-align:center; color:var(--figa-text-soft); font-style:italic; }
.figa-muted { color:var(--figa-text-soft); font-style:italic; }
.figa-pagination { display:flex; justify-content:center; align-items:center; gap:14px; padding:16px; color:var(--figa-text-soft); }
.figa-retention { margin-top:16px; padding:15px 17px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--figa-surface-alt); }
.figa-retention summary { cursor:pointer; font-weight:800; }.figa-retention p { color:var(--figa-text-soft); }
.figa-retention form { display:flex; align-items:end; gap:10px; flex-wrap:wrap; }.figa-retention input { width:110px; height:38px; border:1px solid var(--border); border-radius:var(--radius-sm); padding:5px 8px; }
.figa-result { font-weight:800; }.figa-result--success { color:#1f6a55; }.figa-result--denied { color:#9a6a12; }.figa-result--error { color:var(--red-color); }
body.admin-body .main-panel { min-width: 0; }
.page-heading {
    min-height: 54px;
    gap: 16px;
    margin-bottom: 16px !important;
    padding-bottom: 13px !important;
    border-bottom: 1px solid var(--border);
}
.page-heading__title { color: var(--figa-text); font-size: clamp(1.2rem, 1.6vw, 1.55rem); line-height: 1.2; }
.figa-breadcrumb { color: var(--figa-text-soft); font-size: .78rem; }
.figa-breadcrumb a { color: var(--primary-color); text-decoration: none; }
.figa-breadcrumb a:hover { text-decoration: underline; }

/* Shared panels/cards: quiet elevation, no ornamental decoration. */
.card, .card-round, .app-panel, .figa-panel {
    border: 1px solid var(--border) !important;
    background: var(--figa-surface);
    box-shadow: var(--shadow-sm);
}
.card-header, .figa-panel__head {
    background: var(--figa-surface-alt) !important;
    border-bottom: 1px solid var(--border) !important;
}
.card-title, .figa-panel__head h2 { color: var(--figa-text); font-weight: 800; }
.btn { min-height: 38px; font-weight: 700; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--focus-ring) !important;
    outline-offset: 2px;
}

/* Data is allowed to scroll inside its own frame, never across the page. */
.table-responsive {
    position: relative;
    max-width: 100%;
    max-height: min(64dvh, 700px);
    overflow: auto !important;
    border: 1px solid var(--border) !important;
    background: var(--figa-surface);
    overscroll-behavior: contain;
}
.table-responsive > table { min-width: 720px; margin-bottom: 0; }
.table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--figa-surface-alt) !important;
    box-shadow: 0 1px 0 var(--figa-border-strong);
}
.table-responsive th:first-child,
.table-responsive td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--figa-surface) !important;
    box-shadow: 1px 0 0 var(--border);
}
.table-responsive thead th:first-child { z-index: 4; background: var(--figa-surface-alt) !important; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table td, .table th { font-size: .8125rem !important; }
.table tbody tr:hover td { background: #f3f8f5 !important; }

.figa-kpi-grid, .figa-register-list--metrics { align-items: stretch; }
.figa-kpi-grid > *, .figa-register-list--metrics > .card { min-width: 0; }
.figa-kpi-grid > a, .figa-register-list--metrics > a { color: inherit; text-decoration: none; }
.figa-kpi-grid > a:hover, .figa-kpi-grid > a:focus-visible,
.figa-register-list--metrics > a:hover, .figa-register-list--metrics > a:focus-visible {
    transform: translateY(-1px);
    border-color: var(--primary-color) !important;
}
.figa-status, .badge { line-height: 1.25; }
.badge { padding: .35em .6em; }
.modal-content { border: 1px solid var(--border); box-shadow: 0 18px 45px rgba(18,75,74,.18); }
.modal-header { border-bottom: 1px solid var(--border); }
#loader { backdrop-filter: blur(2px); }

/* FIGA Core shared shell contract
   Kept last so the dashboard templates remain stable over KaiAdmin defaults. */
:root {
    --figa-header-height: 58px;
    --figa-content-max: 1600px;
    --figa-sidebar-open: 248px;
    --figa-sidebar-closed: 72px;
    --figa-text: #193332;
}

html { font-size: 16px; }
body.admin-body {
    background: var(--app-bg);
    color: var(--figa-text);
    font-size: max(12px, 0.875rem);
    overflow-x: hidden;
}
body.admin-body .main-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    min-height: var(--figa-header-height);
    background: rgba(255,253,248,.97);
    border-bottom: 1px solid var(--border) !important;
}
body.admin-body .main-header .navbar-header {
    min-height: var(--figa-header-height);
    background: transparent;
}
body.admin-body .main-panel {
    min-width: 0;
    transition: width .18s ease, margin-left .18s ease;
}
body.admin-body .container {
    width: 100%;
    max-width: none;
    padding-inline: 0;
}
body.admin-body .page-inner {
    width: min(100%, var(--figa-content-max));
    margin-inline: auto;
    padding: 18px clamp(16px, 2.1vw, 34px) 36px;
}
.figa-ops, .figa-dashboard { min-width: 0; }
.figa-ops__intro { gap: 18px; }
.figa-kicker { margin-bottom: 5px; font-size: .75rem; letter-spacing: .08em; }
.figa-ops h1, .figa-dashboard h1 { font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.15; }

/* Snapshot/status pills are redundant decoration in dense institutional views. */
.figa-snapshot,
.figa-ops__intro > .figa-status,
.figa-dashboard__intro > .figa-status,
[data-label="Données disponibles"],
[data-label="Instantané courant"] { display: none !important; }

.figa-panel { min-width: 0; overflow: hidden; }
.figa-panel__head { gap: 12px; padding: 14px 16px; }
.figa-panel__head h2 { font-size: 1rem; margin: 0; }
.figa-panel__head small { font-size: .75rem; }
.figa-register-list { gap: 10px; }
.figa-register,
.figa-register-list--metrics > .card {
    min-width: 0;
    cursor: pointer;
}
.figa-register-list--metrics > .card:hover,
.figa-register-list--metrics > .card:focus-within {
    border-color: #9cbcaf;
    box-shadow: 0 4px 14px rgba(18,75,74,.1);
}

.table-responsive {
    max-width: 100%;
    max-height: min(62dvh, 680px);
    overflow: auto;
    overscroll-behavior: contain;
}
.table-responsive > table { min-width: 680px; margin-bottom: 0; }
.table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--white-color) !important;
    box-shadow: 0 1px 0 var(--border);
}
.table-responsive tbody tr:last-child td[colspan] { position: static; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table td, .table th { font-size: max(12px, .8125rem) !important; }

.sidebar.sidebar-style-2 .nav > .nav-item > a,
.sidebar.sidebar-style-2 .nav-collapse li a { font-size: max(12px, .8125rem); }
.sidebar.sidebar-style-2 .nav > .nav-item > a p { min-width: 0; }

.modal-dialog { max-width: min(860px, calc(100vw - 32px)); }
.modal-content { max-height: calc(100dvh - 32px); }
.modal-body { overflow-y: auto; }
.figa-modal .modal-body { min-height: 0; }
.modal.show .modal-content { outline: none; }

@media (min-width: 992px) {
    body.admin-body .main-panel { margin-left: var(--sidebar-space) !important; }
    body.admin-body .main-header { left: var(--sidebar-space) !important; width: calc(100% - var(--sidebar-space)) !important; }
    body.admin-body .wrapper.sidebar_minimize .main-panel,
    body.admin-body .wrapper.sidebar_minimize_hover .main-panel {
        margin-left: var(--figa-sidebar-closed) !important;
        width: calc(100% - var(--figa-sidebar-closed)) !important;
    }
    body.admin-body .wrapper.sidebar_minimize .main-header,
    body.admin-body .wrapper.sidebar_minimize_hover .main-header {
        left: var(--figa-sidebar-closed) !important;
        width: calc(100% - var(--figa-sidebar-closed)) !important;
    }
}
@media (max-width: 991px) {
    body.admin-body .main-header { position: sticky !important; left: 0 !important; width: 100% !important; }
    body.admin-body .main-panel { margin-left: 0 !important; width: 100% !important; }
    .table-responsive { max-height: 58dvh; }
}
@media (max-width: 767px) {
    body.admin-body .page-inner { padding: 14px 12px 28px !important; }
    .figa-panel__head { padding: 12px 13px; }
    .figa-panel__head small { display: block; line-height: 1.35; }
    .table-responsive > table { min-width: 640px; }
    .modal-dialog { max-width: calc(100vw - 16px); margin: 8px auto; }
    .modal-content { max-height: calc(100dvh - 16px); }
}
@media (max-width: 390px) {
    body.admin-body .page-inner { padding-inline: 10px !important; }
    .table-responsive > table { min-width: 600px; }
    .figa-panel__head { padding-inline: 11px; }
}

/* Shared FIGA dialogs, feedback and long-form stepper. */
.figa-modal .modal-dialog { max-width: 860px; }
.figa-modal .modal-content { border: 1px solid var(--border); border-top: 4px solid var(--primary-color); border-radius: var(--radius-lg) !important; box-shadow: 0 22px 55px rgba(18,75,74,.22); }
.figa-modal .modal-header { border-top: 0 !important; align-items: flex-start; padding: 18px 22px 14px; }
.figa-modal .modal-title { display:flex; align-items:center; gap:12px; color:var(--primary-color); }
.figa-modal .modal-title img { object-fit:contain; border-radius:8px; background:var(--icon-green-color); }
.figa-modal .modal-body { padding: 18px 22px; max-height: min(66dvh, 640px); overflow:auto; }
.figa-modal .modal-footer { padding: 12px 22px 18px; border-top:1px solid var(--border); }
.figa-modal .btn-close { margin:0; width:38px; height:38px; border:1px solid var(--border); border-radius:8px; background-color:var(--surface-muted); opacity:1; }
.figa-modal .btn-close:hover { background:var(--icon-green-color); }
.figa-loading-block { display:grid; gap:10px; padding:18px 0; }
.figa-loading-block span { display:block; height:12px; border-radius:5px; background:linear-gradient(90deg,var(--surface-muted),var(--surface-subtle),var(--surface-muted)); background-size:200% 100%; animation:figa-shimmer 1.2s ease-in-out infinite; }
.figa-loading-block span:nth-child(2) { width:76%; }.figa-loading-block span:nth-child(3) { width:52%; }
.figa-loading-block b { margin-top:4px; color:var(--muted); font-size:.8rem; }
@keyframes figa-shimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }
.figa-form-guide { display:grid; grid-template-columns:minmax(210px,.7fr) minmax(0,1.3fr); gap:18px; align-items:center; margin:0 0 20px; padding:16px 18px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface-subtle); }
.figa-form-guide__intro { display:grid; gap:4px; color:var(--primary-color); }
.figa-form-guide__intro strong { font-size:.92rem; line-height:1.35; }
.figa-form-guide__eyebrow { color:#9a6b18; text-transform:uppercase; letter-spacing:.13em; font-size:.67rem; font-weight:800; }
.figa-form-guide__progress { color:var(--muted); font-size:.73rem; }
.figa-form-nav { display:flex; flex-wrap:wrap; gap:6px; }
.figa-form-nav a { display:flex; align-items:center; gap:6px; min-height:36px; padding:5px 9px; border:1px solid #c7d7d0; border-radius:7px; color:var(--primary-color); font-size:.76rem; font-weight:700; text-decoration:none; background:var(--white-color); }
.figa-form-nav a span { color:#a8781f; font-size:.68rem; font-weight:800; }
.figa-form-nav a:hover,.figa-form-nav a:focus-visible,.figa-form-nav a.is-active { border-color:var(--primary-color); background:var(--primary-color); color:var(--white-color); }
.figa-form-nav a.is-active span { color:#f0cf77; }
.form-section-group[hidden] { display:none !important; }
.form-section-group { padding:18px; margin:0 0 18px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface-elevated); }
.form-section-group legend { float:none; width:auto; padding:0 8px 0 0; margin:0 0 6px; color:var(--primary-color); }
.figa-step { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; margin-right:7px; border-radius:7px; background:var(--icon-green-color); color:var(--primary-color); font-size:.74rem; font-weight:800; }
.figa-step-errors { margin:-8px 0 14px; padding:10px 13px; border-left:3px solid var(--red-color); border-radius:5px; background:var(--danger-soft); color:#783238; font-size:.82rem; }
.figa-form-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.figa-form-actions .figa-step-prev { margin-right:auto; }
.figa-toast { position:fixed; top:70px; right:20px; z-index:1200; display:flex; align-items:flex-start; gap:10px; max-width:min(430px,calc(100vw - 32px)); padding:13px 14px; border:1px solid var(--border); border-left:4px solid var(--primary-color); border-radius:9px; background:var(--surface-elevated); color:var(--black-color); box-shadow:var(--shadow-sm); font-size:.86rem; }
.figa-toast i { margin-top:2px; color:var(--primary-color); }.figa-toast button { margin-left:auto; border:0; background:transparent; color:var(--muted); font-size:1.3rem; line-height:1; cursor:pointer; }.figa-toast--danger { border-left-color:var(--red-color); }.figa-toast--danger i { color:var(--red-color); }.figa-toast--warning { border-left-color:var(--secondary-color); }.figa-toast--warning i { color:var(--secondary-color); }

/* Shared navigation contract: high-contrast hierarchy and a calm mobile drawer. */
.sidebar.sidebar-style-2[data-background-color="dark"] {
    background: #173f3d !important;
    border-right: 1px solid rgba(229, 240, 237, .12);
}
.sidebar.sidebar-style-2 .nav > .nav-item > a {
    min-height: 44px;
    color: #e5f0ed !important;
    font-weight: 700;
    letter-spacing: .01em;
}
.sidebar.sidebar-style-2 .nav > .nav-item > a i {
    width: 22px;
    color: #d9b54a !important;
    text-align: center;
}
.sidebar.sidebar-style-2 .nav > .nav-item > a .caret {
    border-top-color: #d9b54a;
    opacity: 1;
}
.sidebar.sidebar-style-2 .nav > .nav-item > a:hover,
.sidebar.sidebar-style-2 .nav > .nav-item > a:focus-visible {
    background: #245653 !important;
    color: #fffdf8 !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item.active > a {
    background: #fffdf8 !important;
    color: #124b4a !important;
    box-shadow: inset 4px 0 0 #c08a2e;
}
.sidebar.sidebar-style-2 .nav > .nav-item.active > a i,
.sidebar.sidebar-style-2 .nav > .nav-item.active > a .caret {
    color: #124b4a !important;
}
.sidebar.sidebar-style-2 .nav-collapse {
    margin: 2px 8px 8px 14px !important;
    padding: 5px 0 5px 8px !important;
    border-left: 1px solid rgba(217,181,74,.58);
    background: rgba(8, 42, 40, .42);
    border-radius: 0 8px 8px 0;
}
.sidebar.sidebar-style-2 .nav-collapse li a {
    min-height: 38px;
    padding: 9px 10px 9px 14px !important;
    color: #c5d7d0 !important;
    font-size: .88rem;
    font-weight: 600;
    border-radius: 6px !important;
}
.sidebar.sidebar-style-2 .nav-collapse li a:hover,
.sidebar.sidebar-style-2 .nav-collapse li a:focus-visible {
    background: #2a625d !important;
    color: #fffdf8 !important;
}
.sidebar.sidebar-style-2 .nav-collapse li a.active {
    background: #dcebe3 !important;
    color: #124b4a !important;
    font-weight: 800;
    box-shadow: inset 3px 0 0 #c08a2e;
}
.sidebar.sidebar-style-2 .nav-collapse li a.active .sub-item {
    color: #124b4a !important;
}
.header-context {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 1px;
}
.header-context__agency {
    flex-basis: 100%;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 600;
}
.figa-mobile-menu { display: none; }
.figa-sidebar-close { display: none; }
.figa-sidebar-overlay { display: none; }

/* FIGA Core operational surface — dense, analytical, and deliberately institutional. */
.figa-ops { max-width: 1480px; margin: 0 auto; }
.figa-ops__intro { display:flex; justify-content:space-between; gap:24px; align-items:flex-end; margin: 0 0 22px; }
.figa-ops__intro h1 { margin:4px 0 6px; font-size:clamp(1.5rem,2.4vw,2.15rem); letter-spacing:-.045em; }
.figa-ops__intro p { margin:0; color:var(--muted); }
.figa-kicker { margin:0; color:#9a6b18; text-transform:uppercase; letter-spacing:.14em; font-size:.68rem; font-weight:800; }
.figa-snapshot { display:flex; align-items:center; gap:8px; padding:8px 12px; background:var(--surface-subtle); border:1px solid var(--border); border-radius:999px; color:var(--primary-color); font-size:.75rem; font-weight:700; white-space:nowrap; }
.figa-snapshot i { color:#b48628; font-size:.55rem; }
.figa-kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.figa-kpi { position:relative; min-height:112px; padding:17px 18px; border:1px solid var(--border); border-radius:10px; background:var(--white-color); box-shadow:var(--shadow-sm); overflow:hidden; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.figa-kpi:hover { transform:translateY(-2px); border-color:#9dbdb0; box-shadow:0 8px 24px rgba(18,75,74,.1); }
.figa-kpi::after { content:""; position:absolute; right:-20px; bottom:-28px; width:92px; height:92px; border-radius:50%; background:var(--icon-green-color); opacity:.7; }
.figa-kpi__label { display:block; color:var(--muted); font-size:.73rem; font-weight:700; letter-spacing:.02em; }
.figa-kpi__value { display:block; margin-top:10px; color:var(--primary-color); font-size:2rem; line-height:1; font-weight:800; letter-spacing:-.055em; }
.figa-kpi__icon { position:absolute; right:16px; top:16px; z-index:1; color:var(--primary-color); opacity:.8; }
.figa-kpi-grid .card-stats { min-height:112px; margin:0 !important; border-top:3px solid var(--primary-color) !important; }
.figa-kpi-grid .card-stats .card-body { padding:17px 18px !important; }
.figa-kpi-grid .card-stats .icon-big { width:34px; height:34px; line-height:34px; border-radius:8px; background:var(--icon-green-color); color:var(--primary-color); box-shadow:none; }
.figa-kpi-grid .card-stats .card-category { color:var(--muted); font-size:.73rem; font-weight:700; }
.figa-kpi-grid .card-stats .card-title { margin-top:10px; color:var(--primary-color); font-size:2rem; line-height:1; font-weight:800; letter-spacing:-.055em; }
.figa-register-list--stats { grid-template-columns:repeat(4,minmax(0,1fr)); margin-bottom:18px; }
.figa-register-list--stats .figa-register { border-bottom:1px solid var(--border); }
.figa-register-list--legacy { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:0; border:1px solid var(--border); border-radius:10px; background:var(--white-color); overflow:hidden; }
.figa-register-list--legacy .card-stats { min-width:0; margin:0 !important; border:0 !important; border-right:1px solid var(--border) !important; border-radius:0 !important; box-shadow:none !important; background:transparent !important; }
.figa-register-list--legacy .card-stats:last-child { border-right:0 !important; }
.figa-register-list--legacy .card-stats .card-body { padding:14px 15px !important; }
.figa-register-list--legacy .card-stats .icon-big { display:none; }
.figa-register-list--legacy .card-stats .card-category { margin:0; color:var(--muted); font-size:.68rem; line-height:1.25; }
.figa-register-list--legacy .card-stats .card-title { margin:6px 0 0; color:var(--primary-color); font-size:1.35rem; font-weight:800; }
@media (max-width:900px) { .figa-register-list--stats{grid-template-columns:repeat(2,minmax(0,1fr));} .figa-register-list--legacy{grid-template-columns:repeat(2,minmax(0,1fr));} .figa-register-list--legacy .card-stats{border-bottom:1px solid var(--border) !important;} }
@media (max-width:600px) { .figa-register-list--stats{grid-template-columns:1fr;} .figa-register-list--legacy{grid-template-columns:1fr 1fr;} }
.figa-analysis { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr); gap:16px; margin-bottom:16px; }
.figa-panel { border:1px solid var(--border); border-radius:10px; background:var(--white-color); box-shadow:var(--shadow-sm); overflow:hidden; }
.figa-panel__head { display:flex; justify-content:space-between; gap:15px; padding:16px 18px 12px; border-bottom:1px solid var(--border); }
.figa-panel__head h2,.figa-panel__head h3 { margin:0; font-size:1rem; letter-spacing:-.025em; }
.figa-panel__head small { color:var(--muted); font-size:.72rem; }
.figa-panel__body { padding:16px 18px; }
.figa-chart-frame { min-height:235px; position:relative; }
.figa-chart-frame canvas { max-height:245px; }
.figa-panel--compact .figa-chart-frame { min-height:150px; height:150px; padding-top:8px; padding-bottom:8px; }
.figa-panel--compact .figa-chart-frame canvas { max-height:145px !important; }
.figa-split-list { display:grid; gap:11px; }
.figa-split-list__row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; }
.figa-split-list__meta { display:flex; justify-content:space-between; gap:12px; font-size:.76rem; color:var(--muted); }
.figa-split-list__meta strong { color:var(--black-color); }
.figa-meter { height:7px; margin-top:6px; border-radius:10px; background:var(--surface-muted); overflow:hidden; }
.figa-meter span { display:block; height:100%; min-width:2px; border-radius:inherit; background:var(--secondary-color); }
.figa-empty { padding:32px 18px; text-align:center; color:var(--muted); border:1px dashed #b9cbc3; border-radius:8px; background:#f8faf8; }
.figa-empty i { display:block; margin-bottom:8px; color:#9bb5a9; font-size:1.2rem; }
.figa-data-table { margin:0; }
.figa-data-table th { font-size:.66rem !important; letter-spacing:.08em; color:var(--muted) !important; background:var(--surface-subtle) !important; }
.figa-data-table td { padding-top:12px !important; padding-bottom:12px !important; }
.figa-section-label { margin:24px 0 10px; color:var(--primary-color); font-size:.78rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.figa-detail { max-width:1000px; }
.figa-detail__hero { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:16px; padding:22px; border-radius:10px; background:var(--primary-color); color:#eef5f0; }
.figa-detail__hero h1,.figa-detail__hero p { color:inherit; margin:0; }
.figa-detail__hero h1 { font-size:1.55rem; }
.figa-detail__hero p { margin-top:6px; opacity:.76; font-size:.82rem; }
.figa-detail__body { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.figa-detail__field { padding:15px 17px; border:1px solid var(--border); border-radius:9px; background:var(--white-color); }
.figa-detail__field dt { color:var(--muted); font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; font-weight:800; }
.figa-detail__field dd { margin:7px 0 0; color:var(--black-color); font-size:.92rem; font-weight:600; word-break:break-word; }
.figa-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.dashboard-overview { align-items:stretch; }
.dashboard-overview > .card,
.dashboard-overview > div > .card,
.dashboard-insight-grid > div > .card,
.dashboard-chart-grid > .card { box-shadow:var(--shadow-sm) !important; }
.dashboard-kpi-overview > .card:first-child { border-top:3px solid var(--primary-color) !important; }
.dashboard-kpi-overview .count,
.dashboard-overview .count { color:var(--primary-color); letter-spacing:-.055em; }
.dashboard-overview h5,
.dashboard-insight-grid > div > h3 { color:var(--primary-color); letter-spacing:-.025em; }
.dashboard-overview .progress { height:8px; overflow:hidden; border-radius:9px; background:var(--surface-muted); }
.dashboard-overview .progress-bar { background:var(--secondary-color) !important; border-radius:inherit; }
.dashboard-overview .list-group-item { border-color:var(--border); padding:13px 16px; transition:background-color .16s ease,padding-left .16s ease; }
.dashboard-overview .list-group-item:hover { background:var(--surface-subtle); padding-left:20px; }
.dashboard-overview .card-stats .icon-big { background:var(--icon-green-color); color:var(--primary-color); box-shadow:none; }
.dashboard-overview .card-stats .card-category { color:var(--muted); font-weight:700; }
.dashboard-chart-grid > .card { min-height:300px; }
.dashboard-chart-grid canvas { max-height:245px; }
.filter, .dashboard-filter { border:1px solid var(--border); border-radius:9px; background:var(--surface-subtle); padding:10px 12px; }
.filter .btn-primary, .dashboard-filter .btn-primary { background:var(--primary-color) !important; }
@media (max-width:900px) { .figa-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));} .figa-analysis{grid-template-columns:1fr;} }
@media (max-width:600px) { .figa-ops__intro{display:block;} .figa-snapshot{display:inline-flex;margin-top:14px;} .figa-kpi-grid{grid-template-columns:1fr 1fr;gap:9px;} .figa-kpi{min-height:96px;padding:14px;} .figa-kpi__value{font-size:1.65rem;} .figa-detail__body{grid-template-columns:1fr;} .figa-detail__hero{display:block;} }

/* Neutral error templates */
.error-page {
    min-height: 100vh;
    padding: 1rem;
    background: #f7f7f7;
}
.error-page__header {
    display: flex;
    justify-content: center;
    padding: 2rem 0 1rem;
}
.error-page__header img { object-fit: contain; }
.skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 10;
    padding: .5rem .75rem;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-180%);
}
.skip-link:focus { color: var(--white-color); transform: translateY(0); }
.error-state {
    width: min(100%, 680px);
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid var(--border);
    border-top: 4px solid var(--primary-color);
    border-radius: var(--radius-md);
    background: var(--white-color);
    text-align: center;
}
.error-state__code {
    margin-bottom: .5rem;
    color: var(--primary-color);
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1;
}
.error-state h1 { color: var(--black-color); font-size: clamp(1.5rem, 4vw, 2.25rem); }
.error-state p { max-width: 540px; margin: 1rem auto 1.5rem; color: var(--muted); }
.error-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.error-state__actions a:focus { outline: 3px solid var(--secondary-color) !important; outline-offset: 3px; }

/* FIGA Core institutional layer
   Deliberately scoped to existing markup: no routes, hooks or Bootstrap attributes are changed. */
html { background: var(--app-bg); }
 body.admin-body {
    background: var(--app-bg);
    color: var(--black-color);
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    letter-spacing: -.01em;
}
a { color: var(--primary-color); }
a:hover { color: #174838; }
h1, h2, h3, h4, h5, h6 { color: var(--black-color); letter-spacing: -.025em; }
h1, h2, h3 { font-weight: 700 !important; }
.wrapper { background: var(--app-bg); }
.main-panel { background: var(--app-bg); min-height: 100dvh; }
.container { max-width: 100%; }
.page-inner { padding-top: 24px !important; padding-bottom: 42px; }

/* Shell */
 .sidebar, .sidebar[data-background-color="dark"], .logo-header {
     background: #123b3a !important;
}
.sidebar {
    box-shadow: 1px 0 0 rgba(255,255,255,.06);
}
.logo-header { border-bottom: 1px solid rgba(255,255,255,.08); }
.logo-header .navbar-brand { max-width: 174px; object-fit: contain; }
.sidebar .sidebar-wrapper { padding-top: 8px; }
.sidebar .nav { padding: 0 12px; }
.sidebar.sidebar-style-2 .nav > .nav-item { margin: 2px 0; }
.sidebar.sidebar-style-2 .nav > .nav-item > a,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item a {
    min-height: 42px;
    padding: 10px 12px !important;
    border-radius: 7px !important;
    color: #D8E7E0 !important;
    font-size: .82rem;
    font-weight: 550;
    text-transform: none;
    transition: background-color .16s ease, color .16s ease;
}
.sidebar.sidebar-style-2 .nav > .nav-item > a p { color: inherit; font-weight: inherit; }
.sidebar.sidebar-style-2 .nav > .nav-item > a i { color: #A8C9BA !important; width: 20px; text-align: center; }
.sidebar.sidebar-style-2 .nav > .nav-item > a:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; }
 .sidebar.sidebar-style-2 .nav > .nav-item.active > a,
.sidebar.sidebar-style-2 .nav > .nav-item.active > a:hover {
     background: #e9f1ed !important;
     color: #123b3a !important;
     box-shadow: inset 3px 0 0 #c08a2e;
}
 .sidebar.sidebar-style-2 .nav > .nav-item.active > a i,
 .sidebar.sidebar-style-2 .nav > .nav-item.active > a p { color: #123b3a !important; }
.sidebar .nav-collapse { margin: 3px 0 8px !important; padding: 0 0 0 31px !important; border-left: 1px solid rgba(216,231,224,.18); }
.sidebar .nav-collapse li a { padding: 7px 10px !important; color: #A8C9BA !important; font-size: .78rem; }
.sidebar .nav-collapse li a:hover, .sidebar .nav-collapse li.active a { color: #fff !important; background: transparent !important; }
.sidebar .caret { border-top-color: #A8C9BA; }
.main-header {
    min-height: 64px;
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 1px 0 rgba(20,32,27,.02);
}
.main-header .navbar-header { min-height: 64px; }
.main-header .navbar-nav .nav-link { color: var(--muted); }
.topbar-icon .nav-link { width: 36px; height: 36px; border-radius: 7px; text-align: center; }
.topbar-icon .nav-link:hover { background: var(--surface-subtle); color: var(--primary-color); }
.profile-pic { padding: 4px 8px !important; border-radius: 8px; }
.profile-pic:hover { background: var(--surface-subtle); }
.profile-username { line-height: 1.25; font-size: .76rem; }
.profile-username .text-primary { color: var(--muted) !important; font-size: .75rem; letter-spacing: .03em; text-transform: uppercase; }
.avatar-img { object-fit: cover; }

/* Shared surfaces, controls and data */
.card, .card-round, .app-panel, .card-form {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-md) !important;
    background: var(--white-color) !important;
    box-shadow: var(--shadow-sm) !important;
}
.card-header, .card-footer { background: transparent !important; border-color: var(--border) !important; }
.card-header { padding: 16px 20px !important; }
.card-body { padding: 20px !important; }
.card-footer { padding: 14px 20px !important; }
.card-form { border-top: 0 !important; }
.card-form::after { display: none; }
.btn {
    border-radius: 6px !important;
    min-height: 36px;
    border-width: 1px !important;
    font-weight: 600;
    letter-spacing: -.01em;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.btn-primary, .btn-success {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-success:hover { background: #174838 !important; border-color: #174838 !important; }
.btn-secondary, .btn-light { background: var(--surface-subtle) !important; border-color: var(--border) !important; color: var(--black-color) !important; }
.btn-outline-primary { color: var(--primary-color) !important; border-color: #9DBDB0 !important; background: transparent !important; }
.btn-outline-primary:hover { background: var(--surface-subtle) !important; }
.btn-danger { background: var(--red-color) !important; border-color: var(--red-color) !important; }
.form-control, .form-select, .ts-wrapper {
    min-height: 40px;
    border: 1px solid var(--border) !important;
    border-radius: 6px !important;
    background: var(--white-color) !important;
    box-shadow: none !important;
    color: var(--black-color);
}
.form-control:focus, .form-select:focus, .ts-wrapper.single.input-active .ts-control {
    border-color: #6DA38F !important;
    box-shadow: 0 0 0 3px rgba(46,122,99,.12) !important;
    background: var(--white-color) !important;
}
form label { color: var(--black-color); font-size: .82rem; font-weight: 600; }
.form-text, .form-help, small, .text-muted { color: var(--muted) !important; }
.table-responsive { border: 1px solid var(--border) !important; border-radius: 8px !important; box-shadow: none !important; }
table { border: 0 !important; box-shadow: none !important; }
.table > thead > tr > th, thead th {
    background: var(--surface-subtle) !important;
    color: var(--muted) !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: .71rem !important;
    font-weight: 700 !important;
    letter-spacing: .055em;
    text-transform: uppercase !important;
    padding: 12px 14px !important;
}
.table > tbody > tr > td { padding: 12px 14px !important; border-color: #E9EFEC !important; color: var(--black-color) !important; }
.table > tbody > tr:hover { background: #F7FAF8; }
.badge { padding: .35em .65em !important; border-radius: 999px !important; font-size: .7rem !important; letter-spacing: .01em; }
.badge.bg-light { background: #E8F1ED !important; color: var(--primary-color) !important; }
.alert { border: 1px solid transparent; border-radius: 7px; }
.modal-content { border: 1px solid var(--border) !important; border-radius: 10px !important; box-shadow: 0 18px 50px rgba(20,32,27,.15) !important; }
.modal-header { border-top: 0 !important; border-bottom: 1px solid var(--border) !important; padding: 18px 22px !important; }
.modal-footer { border-top: 1px solid var(--border) !important; }
.accordion-item { border: 1px solid var(--border) !important; border-radius: 7px !important; }
.accordion-button:not(.collapsed) { background: var(--surface-subtle) !important; color: var(--primary-color) !important; box-shadow: none !important; }
.pagination .page-link { border-color: var(--border); color: var(--primary-color); }
.pagination .active .page-link { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.page-header { border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 20px; }
.page-header h3 { font-size: 1.25rem; text-transform: none !important; }
.breadcrumbs { border-left-color: #9DBDB0; color: var(--muted); padding-left: 12px; }
.back { border-radius: 6px !important; width: 34px; height: 34px; margin-right: 8px; }
.empty-state, .error-state { border-radius: 10px; box-shadow: var(--shadow-sm); }
#loader { background: rgba(246,248,247,.88); }
#loader .load { width: 34px; height: 34px; margin: 0; border: 3px solid #DDE5E1; border-top-color: var(--primary-color); }

/* The authentication surface uses the same system without depending on the
   decorative landing-page treatment shipped by the legacy theme. */
body.custom-cursor {
    min-height: 100dvh;
    background: #173F35;
    color: var(--black-color);
}
.custom-cursor__cursor, .custom-cursor__cursor-two, .preloader { display: none !important; }
.custom-cursor .page-wrapper {
    min-height: 100dvh;
    background: #173F35;
}
.custom-cursor .auth-block {
    position: absolute;
    top: 50%;
    right: 8vw;
    width: min(440px, calc(100% - 32px));
    margin: 0;
    padding: 24px 0;
    transform: translateY(-50%);
    z-index: 20;
}
.custom-cursor .auth-block > .pb-4 { padding-bottom: 22px !important; }
.custom-cursor .auth-block > .pb-4 img { width: 92px; height: auto; }
.custom-cursor .form-section {
    padding: 28px;
    border: 1px solid rgba(221,229,225,.9);
    border-radius: 10px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 16px 45px rgba(10,35,27,.18);
}
.custom-cursor .sec-title__tagline { color: var(--primary-color); font-size: .76rem; letter-spacing: .06em; }
.custom-cursor .form-section a { color: var(--primary-color); }
.custom-cursor .form-section .btn,
.custom-cursor .form-section button { min-height: 42px; }
.custom-cursor .main-slider-one__overlay { background: rgba(23,63,53,.86) !important; }

@media (max-width: 767px) {
    .custom-cursor .auth-block {
        top: 50%;
        right: 14px;
        left: 14px;
        width: auto;
        margin: 0 auto;
        padding: 18px 0;
        transform: translateY(-50%);
    }
    .custom-cursor .form-section { padding: 22px 18px; }
}

/* FIGA Core dashboard — dense operational overview */
.figa-dashboard {
    --figa-ink: #173f35;
    --figa-deep: #12332d;
    --figa-green: #24755c;
    --figa-gold: #c08a2e;
    --figa-mint: #9bc3ae;
    --figa-line: #d6e4dc;
    --figa-paper: #fbfcf8;
    max-width: 1440px;
    margin: 0 auto;
}
.figa-dashboard__intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin: 4px 0 26px;
}
.figa-eyebrow {
    margin: 0 0 8px;
    color: var(--figa-green);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}
.figa-eyebrow span { color: var(--figa-gold); padding: 0 5px; }
.figa-dashboard h1, .figa-dashboard h2 { color: var(--figa-ink); }
.figa-dashboard h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    letter-spacing: -.055em;
    line-height: 1.05;
}
.figa-lede { margin: 10px 0 0; color: #63756e; font-size: .92rem; }
.figa-status {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--figa-line);
    border-radius: 7px;
    background: var(--figa-paper);
    color: var(--figa-ink);
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}
.figa-status small { grid-column: 2; color: #71827b; font-size: .66rem; font-weight: 500; }
.figa-status__dot { width: 8px; height: 8px; border-radius: 50%; background: #4eaa76; box-shadow: 0 0 0 4px #e1f0e6; }
.figa-kpi-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 16px;
}
.figa-kpi {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    padding: 14px 16px;
    border: 1px solid #b7cec3;
    border-left: 4px solid var(--figa-green);
    border-radius: 8px;
    background: var(--figa-paper);
    color: var(--figa-ink);
    text-decoration: none !important;
}
.figa-kpi:nth-child(2) { border-left-color: var(--figa-gold); }
.figa-kpi span { align-self: end; font-size: .76rem; font-weight: 800; }
.figa-kpi strong { grid-row: span 2; align-self: center; color: #092f27; font-size: 1.75rem; line-height: 1; }
.figa-kpi small { color: #50675e; font-size: .68rem; }
.figa-kpi:hover, .figa-kpi:focus-visible { background: #eef5f0; color: var(--figa-ink); }
.figa-dashboard__stage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, .85fr); gap: 16px; margin-bottom: 34px; }
.figa-chart-panel {
    min-width: 0;
    padding: 22px 24px 18px;
    border: 1px solid var(--figa-line);
    border-radius: 10px;
    background: var(--figa-paper);
    box-shadow: 0 8px 25px rgba(18, 63, 53, .05);
}
.figa-chart-panel--primary { border-top: 3px solid var(--figa-gold); }
.figa-chart-panel--secondary { border-top: 3px solid var(--figa-green); }
.figa-panel-heading, .figa-section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.figa-panel-heading h2, .figa-section-heading h2 { margin: 0; font-size: 1.08rem; letter-spacing: -.03em; }
.figa-panel-index { color: var(--figa-gold); font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.figa-chart-wrap { position: relative; width: 100%; }
.figa-chart-wrap--bar { height: 220px; margin: 17px 0 8px; }
.figa-chart-wrap--doughnut { width: min(100%, 260px); height: 190px; margin: 15px auto 2px; }
.figa-chart-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--figa-line); color: #63756e; font-size: .76rem; }
.figa-chart-note strong { color: var(--figa-ink); }
.figa-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; color: #63756e; font-size: .72rem; }
.figa-legend span { display: inline-flex; align-items: center; gap: 5px; }
.figa-legend b { color: var(--figa-ink); }
.figa-legend__swatch { width: 7px; height: 7px; border-radius: 50%; }
.figa-legend__swatch--gold { background: var(--figa-gold); }
.figa-legend__swatch--green { background: var(--figa-green); }
.figa-legend__swatch--mint { background: var(--figa-mint); }
.figa-section-heading { align-items: end; margin-bottom: 12px; }
.figa-section-heading > span { color: #71827b; font-size: .72rem; }
.figa-register-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #aac3b8; }
.figa-register-list--metrics {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 1px;
    border: 1px solid #b8ccc3;
    border-radius: 8px;
    overflow: hidden;
    background: #b8ccc3;
}
.figa-register-list--metrics > .card,
.figa-register-list--metrics > .card:nth-of-type(even) {
    border: 0 !important;
    background: #f8fbf9 !important;
}
.figa-register {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto 14px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 13px 10px 13px 2px;
    border-bottom: 1px solid #b8ccc3;
    color: var(--figa-ink);
    text-decoration: none !important;
    transition: background-color .18s ease, padding-left .18s ease;
}
.figa-register:nth-child(odd) { border-right: 1px solid #b8ccc3; padding-right: 20px; }
.figa-register:nth-child(even) { padding-left: 20px; }
.figa-register:hover { padding-left: 9px; background: #eef5f0; color: var(--figa-ink); }
.figa-register:nth-child(even):hover { padding-left: 27px; }
.figa-register__icon { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #b8d2c6; border-radius: 6px; background: #dcece4; color: #145c48; font-size: .78rem; }
.figa-register:nth-child(3n) .figa-register__icon { border-color: #dbc28d; background: #f1dfb9; color: #75500f; }
.figa-register b { display: block; overflow: hidden; font-size: .8rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.figa-register small { display: block; margin-top: 2px; overflow: hidden; color: #4f675e; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.figa-register > strong { color: #092f27; font-size: 1.08rem; font-weight: 800; letter-spacing: -.04em; }
.figa-register__arrow { color: #8aa298; font-size: .68rem; transition: transform .18s ease, color .18s ease; }
.figa-register:hover .figa-register__arrow { color: var(--figa-gold); transform: translateX(3px); }
.figa-register-list > .card {
    display: block;
    margin: 0;
    min-width: 0;
    border: 0 !important;
    border-bottom: 1px solid #b8ccc3 !important;
    border-radius: 0 !important;
    background: #f8fbf9 !important;
    box-shadow: none !important;
}
.figa-register-list > .card:nth-of-type(even) { background: #f1f7f4 !important; }
.figa-register-list > .card:hover { background: #e7f1ec !important; }
.figa-register-list > .card .card-body { padding: 10px 12px !important; }
.figa-register-list > .card .card-body > .row { align-items: center; }
.figa-register-list > .card .col-icon { width: 34px; }
.figa-register-list > .card .icon-big { width: 29px; height: 29px; line-height: 29px; border: 1px solid #b8d2c6; border-radius: 6px !important; background: #dcece4 !important; color: #145c48 !important; }
.figa-register-list > .card .numbers { display: flex; align-items: baseline; gap: 9px; }
.figa-register-list > .card .card-category { margin: 0; color: #29483d !important; font-size: .8rem; font-weight: 750; }
.figa-register-list > .card .card-title { margin: 0; color: #092f27 !important; font-size: 1.08rem; font-weight: 800; }

/* Dashboard consultation layer
   A restrained institutional rhythm for dense daily work: one focal surface,
   quiet supporting metrics and data-first tables. Existing markup and
   framework hooks intentionally remain untouched. */
.page-inner > .dash-grid-deux,
.page-inner > .dash-grid-trois,
.page-inner > .dash-grid-quatre,
.page-inner > .dash-grid-cinq,
.page-inner > .dash-grid-six {
    gap: 16px;
    align-items: stretch;
}
.page-inner > .dash-grid-deux > .card,
.page-inner > .dash-grid-trois > .card,
.page-inner > .dash-grid-quatre > .card,
.page-inner > .dash-grid-cinq > .card,
.page-inner > .dash-grid-six > .card,
.page-inner > .dash-grid-deux > a > .card {
    height: 100%;
}
.page-inner .card-stats {
    border-top: 2px solid #A8C9BA !important;
    box-shadow: none !important;
}
.page-inner .card-stats:hover {
    border-top-color: var(--primary-color) !important;
    background: #FBFDFC !important;
}
.page-inner .card-stats .card-title,
.page-inner .count {
    color: var(--black-color);
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.04em;
}
.page-inner .card-category {
    color: var(--muted) !important;
    font-size: .73rem !important;
    font-weight: 700;
    letter-spacing: .035em;
    line-height: 1.35;
    text-transform: uppercase;
}
.page-inner .icon-big,
.page-inner .app-panel .icon {
    background: #E8F1ED !important;
    color: var(--primary-color) !important;
    box-shadow: none !important;
}
.page-inner .app-panel {
    padding: 0 !important;
}
.page-inner .app-panel .titre {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.35;
}
.page-inner .app-panel .count {
    margin: 12px 0 2px;
    text-align: left;
}
.page-inner .card > .card-body > h5,
.page-inner .card-body > h5,
.page-inner .card-header .card-title,
.page-inner .card-header .card-titre {
    color: var(--black-color);
    font-size: .98rem;
    font-weight: 700 !important;
    letter-spacing: -.015em;
}
.page-inner .card-body > h5 {
    margin-bottom: 16px;
}
.page-inner .dash-grid-deux > .dash-grid-deux {
    gap: 12px;
}
.page-inner .progress {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #E8EFEB;
}
.page-inner .progress-bar {
    border-radius: inherit;
    background: var(--secondary-color) !important;
}
.page-inner .list-group-item {
    border-color: #E9EFEC;
    padding: 13px 16px;
    color: var(--black-color);
}
.page-inner .list-group-item:hover {
    background: #F7FAF8;
}
.page-inner .list-group-item .btn-icon {
    pointer-events: none;
    width: 26px;
    height: 26px;
    padding: 0;
    background: #E8F1ED !important;
    border: 0 !important;
    color: var(--primary-color) !important;
}
.page-inner .dashboard-filter,
.page-inner .filter {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #FBFDFC;
}
.page-inner .dashboard-filter .form-select,
.page-inner .dashboard-filter .btn,
.page-inner .filter .form-control,
.page-inner .filter .form-select,
.page-inner .filter .btn {
    min-height: 36px !important;
}
.page-inner .circle {
    width: 132px;
    height: 132px;
}
.page-inner .circle strong {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-variant-numeric: tabular-nums;
}
.page-inner .table-responsive + * { margin-top: 18px; }
.page-inner .table td.text-end,
.page-inner .table th.text-end { font-variant-numeric: tabular-nums; }
.page-inner > .card.shadow-sm.border-0:first-child {
    border-left: 3px solid var(--primary-color) !important;
    box-shadow: var(--shadow-sm) !important;
}
.page-inner > .card.shadow-sm.border-0:first-child h4 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}
.page-inner > .card.shadow-sm.border-0:first-child .row {
    gap: 8px 0;
}
.page-inner > .card.shadow-sm.border-0:first-child .btn {
    min-height: 42px;
    text-align: left;
}

/* Lists, filters and row actions
   Shared layer for every Symfony list without changing its contracts. */
.page-inner .filter {
    margin-bottom: 16px !important;
    padding: 0 !important;
    overflow: hidden;
}
.page-inner .filter .accordion,
.page-inner .filter .accordion-item {
    width: 100%;
}
.page-inner .filter .accordion-item {
    background: var(--white-color);
}
.page-inner .filter .accordion-button {
    min-height: 48px;
    padding: 12px 16px;
    color: var(--black-color);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.page-inner .filter .accordion-button i {
    width: 26px;
    height: 26px;
    margin-right: 8px;
    border-radius: 6px;
    background: #E8F1ED;
    color: var(--primary-color);
    line-height: 26px;
    text-align: center;
}
.page-inner .filter .accordion-body {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--border);
}
.page-inner .filter .grid-quatre {
    align-items: end;
    gap: 12px;
}
.page-inner .filter .grid-trois,
.page-inner .filter .grid-deux {
    align-items: end;
    gap: 12px;
}
.page-inner .filter .input-group {
    border-radius: 6px !important;
    background: var(--white-color) !important;
}
.page-inner .filter .input-group-text {
    padding: 0 10px;
    border: 1px solid var(--border) !important;
    border-right: 0 !important;
    color: var(--muted);
}
.page-inner .filter .input-group .form-control {
    border-left: 0 !important;
}
.page-inner .filter .text-end,
.page-inner .filter .grid-quatre > div:last-child,
.page-inner .filter .grid-trois > div:last-child,
.page-inner .filter .grid-deux > div:last-child {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}
.page-inner .filter .btn {
    white-space: nowrap;
}
.page-inner .table-responsive {
    margin-bottom: 0;
    background: var(--white-color);
}
.page-inner .table {
    margin-bottom: 0;
}
.page-inner .table-responsive > .table {
    min-width: 720px;
}
.page-inner .table > thead > tr > th:first-child,
.page-inner .table > tbody > tr > td:first-child {
    padding-left: 18px !important;
}
.page-inner .table > tbody > tr > td {
    height: 52px;
    vertical-align: middle;
}
.page-inner .table > tbody > tr:last-child > td {
    border-bottom: 0;
}
.page-inner .table td.text-end,
.page-inner .table th.text-end {
    width: 1%;
    white-space: nowrap;
}
.page-inner .table td.text-end .btn {
    min-width: 34px;
    margin-left: 3px;
    padding: 5px 8px !important;
    color: var(--muted);
    background: transparent !important;
    border-color: transparent !important;
}
.page-inner .table td.text-end .btn:hover,
.page-inner .table td.text-end .btn:focus-visible {
    color: var(--primary-color);
    background: #E8F1ED !important;
    border-color: #C9DED4 !important;
}
.page-inner .table td.text-end .btn-primary,
.page-inner .table td.text-end .btn-danger {
    color: #fff;
}
.page-inner .table td.text-end .btn-danger {
    background: var(--red-color) !important;
    border-color: var(--red-color) !important;
}
.page-inner .table td.text-end .btn-danger:hover,
.page-inner .table td.text-end .btn-danger:focus-visible {
    color: #fff;
    background: #963b3a !important;
    border-color: #963b3a !important;
}
.page-inner .table > tbody > tr > td[colspan] {
    height: auto;
    padding: 0 !important;
}
.page-inner .table > tbody > tr > td[colspan] .row {
    margin: 0;
    padding: 14px 18px;
}
.page-inner .pagination {
    gap: 4px;
}
.page-inner .pagination .page-link {
    min-width: 32px;
    min-height: 32px;
    padding: 6px 9px;
    border-radius: 6px !important;
    text-align: center;
    font-size: .78rem;
}
.page-inner .pagination .page-item.disabled .page-link {
    color: #9AA9A2;
    background: var(--surface-subtle);
}

/* Form experience: one restrained, institutional language across every métier. */
.form-layout .page-inner { padding-top: 30px !important; }
.form-layout .page-header {
    max-width: var(--form-max-width); margin: 0 auto 18px; padding: 0 2px 10px;
}
.form-layout .page-header h3 {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px !important;
    color: var(--black-color); font-size: clamp(1.2rem, 2vw, 1.55rem);
    letter-spacing: -.03em; text-transform: none !important;
}
.form-layout .page-header .back { flex: 0 0 auto; margin: 0 !important; }
.form-layout .breadcrumbs {
    display: flex; align-items: center; gap: 8px; width: max-content; max-width: 100%;
    margin: 0 !important; padding: 7px 11px; border-left: 2px solid #9DBDB0;
    color: var(--muted); font-size: .78rem; list-style: none;
}
.form-layout .card-form {
    max-width: var(--form-max-width); margin: 0 auto; overflow: visible;
}
.form-layout .card-form .card-header {
    padding: 22px 28px !important; border-bottom: 1px solid var(--border) !important;
    background: var(--surface-muted) !important;
}
.form-layout .card-form .card-header img {
    width: 42px; height: 42px; padding: 8px; border: 1px solid #CFE0D8;
    border-radius: 9px; background: var(--success-soft); object-fit: contain;
}
.form-layout .card-form .card-header h2 { font-size: 1.16rem; letter-spacing: -.02em; }
.form-layout .card-form .card-body { padding: 28px !important; }
.form-layout .card-form .card-footer {
    position: sticky; bottom: 0; z-index: 20; display: flex; justify-content: flex-end;
    gap: 10px; padding: 15px 28px !important; background: rgba(255,255,255,.96) !important;
    box-shadow: 0 -5px 18px rgba(20,32,27,.06);
}
.form-layout form > .text-start {
    display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0;
    z-index: 20; margin-top: 22px; padding: 15px 0; background: rgba(246,248,247,.96);
}
.form-layout form legend {
    display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; padding: 0 0 9px;
    border-bottom: 1px solid var(--border); color: var(--primary-color);
    font-size: 1rem !important; font-weight: 700 !important; letter-spacing: -.01em;
}
.form-layout form legend:first-child { margin-top: 0; }
.form-layout form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.form-layout form .form-section-group { min-width: 0; }
.form-layout form legend::before {
    width: 4px; height: 18px; border-radius: 4px; background: var(--secondary-color); content: "";
}
.form-layout form > p.text-muted, .form-layout form legend + p.text-muted {
    max-width: 760px; margin: -4px 0 16px; color: var(--muted) !important; line-height: 1.55;
}
.form-layout form .grid-deux {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; align-items: start;
}
.form-layout form .form-group, .form-layout form .mb-3 {
    min-width: 0; padding: 0 !important; margin-bottom: 16px;
}
.form-layout form label { margin-bottom: 6px; color: var(--black-color); font-size: .82rem; font-weight: 650; }
.form-layout form .form-text, .form-layout form small { color: var(--muted); font-size: .76rem; line-height: 1.4; }
.form-layout form .invalid-feedback, .form-layout form .form-error-message,
.form-layout form ul.form-errors {
    display: block; margin-top: 5px; color: var(--red-color); font-size: .77rem;
}
.form-layout form ul.form-errors { padding-left: 0; list-style: none; }
.form-layout form .accordion { display: grid; gap: 10px; padding: 2px 0; }
.form-layout form .collection-row {
    position: relative; padding: 18px 18px 6px; border: 1px solid var(--border);
    border-radius: 9px; background: var(--surface-muted);
}
.form-layout form .collection-row .btn-remove {
    float: right; margin: -4px 0 8px 12px; color: var(--red-color);
    border-color: #E6B9B7; background: var(--danger-soft);
}
.form-layout form .btn-new { color: var(--primary-color); border-color: #A9C7BB; background: var(--success-soft); }
.form-layout form .btn-new:hover, .form-layout form .btn-remove:hover { filter: brightness(.97); }
.form-layout form .alert {
    border: 1px solid var(--border); border-left: 3px solid var(--primary-color);
    border-radius: 7px; background: var(--surface-muted);
}
.form-layout .form-control, .form-layout .form-select, .form-layout .ts-wrapper { min-height: 43px; }
.form-layout textarea.form-control { min-height: 110px !important; }
.form-layout .form-check {
    min-height: 43px; padding: 9px 12px; border: 1px solid var(--border);
    border-radius: 6px; background: var(--surface-muted);
}
.form-layout .form-check label { margin-bottom: 0; }
.form-layout .form-check .form-check-input { margin-top: .2em; }

/* ─────────────────────────────────────────────────────────────────────────
   FIGA CORE / 2025 SURFACE SYSTEM
   A quiet institutional workspace: less chrome, stronger hierarchy, more
   editorial use of data. These rules intentionally sit last so the legacy
   Kaiadmin skin cannot reintroduce its visual language.
   ───────────────────────────────────────────────────────────────────────── */
:root {
    --sidebar-space: 200px;
    --app-bg: #F6F8F7;
    --surface-subtle: #F0F5F2;
    --surface-muted: #F8FAF9;
    --border: #DDE5E1;
    --shadow-sm: 0 1px 2px rgba(20,32,27,.03), 0 10px 26px rgba(31,94,78,.045);
    --shadow-focus: 0 8px 28px rgba(31,94,78,.10);
}

body.admin-body { font-size: 14px; line-height: 1.5; }
.wrapper.base { min-height: 100dvh; }
.main-panel { width: calc(100% - var(--sidebar-space)); }
.page-inner { padding: 28px 34px 56px !important; max-width: 1480px; }

/* Shell: a slim green rail rather than a dark wall */
.sidebar, .sidebar[data-background-color="dark"], .logo-header {
    width: var(--sidebar-space) !important;
    background: #163F35 !important;
}
.sidebar { box-shadow: 1px 0 0 rgba(20,32,27,.08); }
.logo-header {
    height: 72px !important; padding: 0 18px !important;
    border-bottom: 1px solid rgba(224,244,235,.14);
}
.figa-brand { display: flex !important; align-items: center; gap: 10px; max-width: none !important; }
.figa-brand img { width: 38px; height: 38px; object-fit: contain; }
.figa-brand__name { display: flex; flex-direction: column; color: #F4FBF7; line-height: 1; letter-spacing: .08em; }
.figa-brand__name strong { font-size: 1.05rem; font-weight: 800; }
.figa-brand__name small { margin-top: 4px; color: #A9CDBD; font-size: .75rem; letter-spacing: .14em; }
.sidebar .sidebar-wrapper { padding-top: 20px; }
.sidebar .nav { padding: 0 14px; }
.sidebar.sidebar-style-2 .nav > .nav-item { margin: 4px 0; }
.sidebar.sidebar-style-2 .nav > .nav-item > a,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item a {
    min-height: 40px; padding: 10px 12px !important; border-radius: 8px !important;
    color: #C7DDD3 !important; font-size: .8rem; letter-spacing: .005em;
}
.sidebar.sidebar-style-2 .nav > .nav-item > a i { color: #93B7A8 !important; width: 20px; }
.sidebar.sidebar-style-2 .nav > .nav-item > a:hover { background: rgba(255,255,255,.07) !important; }
.sidebar.sidebar-style-2 .nav > .nav-item.active > a,
.sidebar.sidebar-style-2 .nav > .nav-item.active > a:hover {
    color: #174B3E !important; background: #F2F8F5 !important;
    box-shadow: none; font-weight: 700;
}
.sidebar.sidebar-style-2 .nav > .nav-item.active > a i,
.sidebar.sidebar-style-2 .nav > .nav-item.active > a p { color: #174B3E !important; }
.sidebar .nav-collapse { padding-left: 29px !important; border-left-color: rgba(207,231,219,.2); }
.sidebar .nav-collapse li a { color: #A9CDBD !important; font-size: .78rem; }
.sidebar .nav-collapse li.active a, .sidebar .nav-collapse li a:hover { color: #F2F8F5 !important; }

/* Header: useful orientation, never empty real estate */
.main-header, .main-header .navbar-header {
    min-height: 68px !important; background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid var(--border) !important;
}
.main-header .container-fluid { padding: 0 30px; }
.header-context { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.header-context__eyebrow { color: #84938D; font-size: .63rem; letter-spacing: .11em; text-transform: uppercase; }
.header-context strong { color: var(--black-color); font-size: .82rem; font-weight: 650; }
.topbar-icon .nav-link { width: 36px; height: 36px; color: #71817A !important; }
.profile-pic { border-left: 1px solid var(--border); border-radius: 0; margin-left: 10px; padding-left: 18px !important; }

/* Page hierarchy */
.page-inner > .d-flex { margin-bottom: 22px; align-items: flex-end !important; }
.page-inner > .d-flex h3 { margin: 0 !important; font-size: clamp(1.55rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -.045em; }
.page-inner > .d-flex h3:after { display:block; width: 30px; height: 3px; margin-top: 10px; border-radius: 4px; background: var(--secondary-color); content:""; }
.page-header { padding-bottom: 15px; margin-bottom: 24px; }
.page-header h3 { font-size: 1.55rem; letter-spacing: -.04em; }

/* Shared surfaces */
.card, .card-round, .app-panel, .card-form {
    border: 1px solid var(--border) !important; border-radius: 10px !important;
    box-shadow: var(--shadow-sm) !important;
}
.card:hover { box-shadow: var(--shadow-focus) !important; }
.card-header { padding: 18px 22px !important; }
.card-body { padding: 22px !important; }
.card h5, .card h4 { color: var(--black-color); font-weight: 700; letter-spacing: -.025em; }

/* Dashboards: hierarchy replaces the wall of equal cards */
.dashboard-welcome { border-left: 4px solid var(--primary-color) !important; }
.dashboard-welcome h4 { font-size: 1.35rem; letter-spacing: -.035em; }
.dashboard-welcome p { max-width: 720px; color: var(--muted) !important; }
.dashboard-quick-actions { display: flex; gap: 10px; margin-top: 20px; text-align: left !important; }
.dashboard-quick-actions > div { width: auto; flex: 0 0 auto; }
.dashboard-quick-actions .btn { min-width: 150px; }
.dashboard-account-panels { gap: 18px; }
.dashboard-account-panels .card { background: var(--surface-muted) !important; box-shadow: none !important; }
.dashboard-account-panels .card:hover { background: #fff !important; }
.dashboard-statistics {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px;
    align-items: stretch;
}
.dashboard-statistics > a,
.dashboard-statistics > .card {
    display: block;
    min-width: 0;
    height: 100%;
}
.dashboard-statistics .card-stats {
    min-height: 104px;
    height: 100%;
}
.dashboard-statistics .card-stats .card-body {
    display: flex;
    align-items: center;
    padding: 18px !important;
}
.dashboard-statistics .card-stats .card-title {
    margin-top: 6px;
    font-size: 1.65rem !important;
}
.dashboard-overview { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr) !important; gap: 18px; }
.dashboard-overview > .card { min-height: 308px; }
.dashboard-overview > .card:first-child { border-top: 3px solid var(--primary-color) !important; }
.dashboard-kpi-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dashboard-kpi-rail .card { min-height: 142px; }
.page-inner .app-panel { padding: 0; border: 0 !important; box-shadow: none !important; }
.page-inner .app-panel .icon { width: 34px; height: 34px; line-height: 34px; margin-right: 10px; border-radius: 8px !important; background: #E8F2ED; }
.page-inner .app-panel .titre { font-size: .77rem; color: var(--muted); font-weight: 650; }
.page-inner .app-panel .count { margin: 14px 0 0; text-align: left; color: var(--black-color); font-size: 2rem; font-weight: 750; letter-spacing: -.06em; }
.dashboard-overview canvas { max-height: 220px; }
.circle { width: 126px; height: 126px; }
.circle strong { color: var(--primary-color); font-size: 1.5rem; }

/* Tables and statuses */
.page-inner .table-responsive { border-radius: 10px !important; box-shadow: var(--shadow-sm) !important; }
.page-inner .table { font-size: .82rem !important; }
.page-inner .table > thead > tr > th { height: 46px; padding: 0 14px !important; background: #F1F6F3 !important; color: #6C7C75 !important; font-size: .66rem !important; letter-spacing: .08em; font-weight: 750 !important; }
.page-inner .table > tbody > tr > td { height: 58px; padding: 10px 14px !important; color: #53645C !important; border-color: #EDF1EF; }
.page-inner .table > tbody > tr:hover > td { background: #FAFCFB; }
.page-inner .table > tbody > tr > td:first-child { color: var(--black-color) !important; font-weight: 650 !important; }
.badge { padding: 5px 9px !important; border-radius: 99px !important; font-size: .68rem !important; letter-spacing: .01em; }
.badge.bg-success, .badge-success { color: #27614E !important; background: #E4F2EB !important; }
.badge.bg-warning, .badge-warning { color: #836621 !important; background: #FAF1D9 !important; }
.badge.bg-danger, .badge-danger { color: #8D403E !important; background: #F8E7E5 !important; }

/* Compact filters and controls */
.page-inner .filter, .page-inner .dashboard-filter { border: 1px solid var(--border); border-radius: 9px; background: var(--surface-muted); padding: 10px 12px; }
.page-inner .filter .form-control, .page-inner .filter .form-select, .page-inner .filter .btn { min-height: 36px; height: 36px !important; font-size: .76rem !important; }
.btn { min-height: 38px; border-radius: 7px !important; }
.btn-primary, .btn-success { background: var(--primary-color) !important; border-color: var(--primary-color) !important; }
.btn-primary:hover, .btn-success:hover { background: #174838 !important; }
.btn-outline-primary { color: var(--primary-color) !important; border-color: #AFC9BD !important; }

@media (max-width: 1024px) {
    :root { --sidebar-space: 210px; }
    .page-inner { padding-left: 24px !important; padding-right: 24px !important; }
    .main-header .container-fluid { padding: 0 20px; }
    .dashboard-statistics { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
    .page-inner { padding: 20px 14px 34px !important; }
    .header-context { display: none; }
    .main-header .container-fluid { padding: 0 10px; }
    .profile-pic { border-left: 0; margin-left: 0; padding-left: 4px !important; }
    .page-inner > .d-flex h3 { font-size: 1.4rem; }
    .dashboard-quick-actions { flex-direction: column; }
    .dashboard-quick-actions > div, .dashboard-quick-actions .btn { width: 100%; }
    .dashboard-overview, .dashboard-kpi-rail { grid-template-columns: 1fr !important; }
    .dashboard-statistics { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .dashboard-overview > .card { min-height: 0; }
    .dashboard-kpi-rail .card { min-height: 118px; }
}
@media (max-width: 374px) {
    .page-inner { padding-left: 10px !important; padding-right: 10px !important; }
    .logo-header { padding-left: 12px !important; }
    .dashboard-statistics { grid-template-columns: 1fr !important; }
}

/* Release candidate polish
   The final layer is intentionally additive: existing routes, Bootstrap hooks,
   modal targets and Symfony form contracts remain untouched. */
:root {
    --figa-ink: #14201B;
    --figa-forest: #163F35;
    --figa-mint: #E8F2ED;
    --figa-line-strong: #C8D8D0;
    --figa-amber: #A77B27;
    --figa-danger: #9A4542;
}
html, body { max-width: 100%; }
body.admin-body { font-family: "Poppins", "Segoe UI", sans-serif; color: var(--figa-ink); }
button, input, select, textarea { font-family: inherit; }
::selection { color: #F5FBF7; background: var(--primary-color); }

/* A clearer action ladder and dependable interaction states. */
.btn:disabled, .btn.disabled { opacity: .54; cursor: not-allowed; }
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible,
.ts-control:focus-visible, .nav-link:focus-visible {
    outline: 3px solid rgba(167,123,39,.42) !important;
    outline-offset: 2px;
}
.btn-primary, .btn-success { box-shadow: 0 2px 0 rgba(16,55,43,.18); }
.btn-primary:active, .btn-success:active { transform: translateY(1px); box-shadow: none; }
.btn-light:hover, .btn-secondary:hover { border-color: var(--figa-line-strong) !important; background: #EAF2EE !important; }

/* Dense content still gets breathing room and a stable reading measure. */
.page-inner > .d-flex > div:first-child { min-width: 0; }
.page-inner > .d-flex .ms-md-auto { min-width: 0; }
.page-inner .card-category { max-width: 21ch; }
.page-inner .card-title, .page-inner .count,
.page-inner td, .page-inner th { font-variant-numeric: tabular-nums; }
.page-inner .table-responsive { overflow-x: auto; overscroll-behavior-inline: contain; }
.page-inner .table-responsive::-webkit-scrollbar { height: 8px; }
.page-inner .table-responsive::-webkit-scrollbar-thumb { border-radius: 99px; background: #B9CDC3; }

/* Forms: section anchors read as a sequence instead of a wall of fields. */
.form-layout .figa-form-body,
.form-layout .card-form .figa-form-body { min-width: 0; }
.form-layout form .form-section-group + .form-section-group { margin-top: 28px; }
.form-layout form .form-section-group > legend { scroll-margin-top: 88px; }
.form-layout form .collection-row .form-group:last-child { margin-bottom: 8px; }
.form-layout .card-footer .action, .form-layout form > .text-start .action { min-width: 142px; }
.form-layout form .form-control.is-invalid, .form-layout form .form-select.is-invalid {
    border-color: #C57975 !important;
    background: #FFF9F8 !important;
}
.form-layout form .form-error-message, .form-layout form .invalid-feedback {
    font-weight: 600;
}

/* Login is deliberately quieter than the legacy campaign artwork. */
body.custom-cursor .auth-block .form-section { border-top: 3px solid #8BC6AE; }
body.custom-cursor .auth-block .sec-title { margin-bottom: 12px; }
body.custom-cursor .auth-block .sec-title__tagline { font-weight: 750; letter-spacing: .08em; }
body.custom-cursor .auth-block .form-control { min-height: 44px; }

@media (min-width: 1280px) {
    .page-inner { padding-left: 40px !important; padding-right: 40px !important; }
    .dashboard-statistics { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
    .page-inner > .d-flex { gap: 12px; }
    .page-inner > .d-flex .ms-md-auto { width: 100%; }
    .page-inner > .d-flex .ms-md-auto .filter,
    .page-inner > .d-flex .ms-md-auto .dashboard-filter { width: 100%; }
    .page-inner .table-responsive > .table { min-width: 680px; }
    .form-layout .card-form .card-body { padding: 20px 16px !important; }
    .form-layout .card-form .card-footer,
    .form-layout form > .text-start { position: static; box-shadow: none; }
    .form-layout form .grid-deux { gap: 0; }
    .form-layout form legend { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .btn-primary:active, .btn-success:active { transform: none; }
}

/* Accessibility and containment corrections from release review.
   Overflow belongs to the component that needs it, never to the page shell. */
:focus-visible,
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible,
.ts-control:focus-visible, .sidebar .btn-toggle:focus-visible,
.sidebar .topbar-toggler:focus-visible, .modal .btn-close:focus-visible {
    outline: 3px solid #A77B27 !important;
    outline-offset: 2px;
    box-shadow: none !important;
}
.table-responsive,
.details-body,
.modal-body,
.chart-container,
.chart-wrapper {
    max-width: 100%;
}

/* Promoteur dossier: a compact sequence of decisions, not a form wall. */
.figa-form-guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 28px;
    align-items: center;
    margin: -4px 0 26px;
    padding: 15px 18px;
    border: 1px solid #C9DBD3;
    border-left: 4px solid var(--secondary-color);
    border-radius: 9px;
    background: #F3F8F5;
}
.figa-form-guide__intro { display: grid; gap: 3px; }
.figa-form-guide__intro strong { color: var(--primary-color); font-size: .94rem; }
.figa-form-guide__eyebrow { color: #8A621D; font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.figa-form-guide__progress { color: var(--muted); font-size: .73rem; }
.figa-form-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.figa-form-nav a {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px;
    color: var(--primary-color); border-radius: 6px; font-size: .73rem; font-weight: 700;
    text-decoration: none; white-space: nowrap;
}
.figa-form-nav a:hover, .figa-form-nav a:focus-visible { background: var(--primary-color); color: var(--white-color); }
.figa-form-nav span, .figa-step {
    display: inline-grid; place-items: center; width: 24px; height: 24px;
    border-radius: 50%; background: #DCEBE4; color: var(--primary-color);
    font-size: .66rem; font-weight: 800; letter-spacing: 0;
}
.form-layout form legend .figa-step { flex: 0 0 auto; }
.form-layout form .form-section-group {
    scroll-margin-top: 84px;
    padding: 1px 0 4px;
}
.figa-collection-sections { display: grid; gap: 2px; }
.figa-form-actions { margin-top: 0 !important; }
.figa-form-actions .action { min-width: 120px; }

/* Dossier component remains legible in quick-view modals and on paper. */
.figa-dossier { color: var(--black-color); }
.figa-dossier__hero {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    margin-bottom: 14px; padding: 20px 22px; border-radius: 9px;
    background: var(--primary-color); color: #F2F8F4;
}
.figa-dossier__hero h2 { margin: 5px 0 0; color: inherit; font-size: 1.35rem; letter-spacing: -.03em; }
.figa-dossier__reference { margin: 5px 0 0; color: #CFE3D9; font-size: .78rem; }
.figa-dossier__hero .figa-kicker { color: #E5C57D; }
.figa-dossier__status { padding: 6px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #FFF1C7; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.figa-dossier__section { margin-top: 15px; padding: 16px; border: 1px solid var(--border); border-radius: 9px; background: var(--white-color); }
.figa-dossier__section-head { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.figa-dossier__section-head h3 { margin: 0; color: var(--primary-color); font-size: .93rem; }
.figa-dossier__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.figa-dossier__field { min-width: 0; padding: 10px 12px; border-radius: 6px; background: var(--surface-muted); }
.figa-dossier__field--wide { grid-column: span 2; }
.figa-dossier__field dt { color: var(--muted); font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.figa-dossier__field dd { margin: 4px 0 0; color: var(--black-color); font-size: .84rem; font-weight: 600; overflow-wrap: anywhere; }
.figa-dossier__chips { display: grid; gap: 8px; }
.figa-dossier__list { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--border); }
.figa-dossier__list:last-child { border-bottom: 0; }
.figa-dossier__list span { color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.figa-dossier__list strong { color: var(--black-color); font-size: .83rem; overflow-wrap: anywhere; }
.figa-dossier__actions { margin-top: 14px; }

/* Do not let muted legacy utility text fall below operational contrast. */
.text-muted, .text-secondary, .form-text, small { color: #526761 !important; }
.badge.bg-light, .badge.text-bg-light { color: var(--primary-color) !important; background: #DCEBE4 !important; }
.btn-light { color: var(--primary-color) !important; border-color: #B9CEC5 !important; background: #EEF4F1 !important; }
.btn-light:hover, .btn-light:focus-visible { color: var(--primary-color) !important; background: #DDEBE5 !important; }
.sidebar .nav .nav-item a p, .sidebar .nav .nav-item a span, .sidebar .nav .nav-item a i { color: #EAF4EF !important; }
.sidebar .nav .nav-item a:hover p, .sidebar .nav .nav-item.active > a p { color: var(--primary-color) !important; }
.form-control::placeholder, textarea::placeholder { color: #667A73 !important; opacity: 1; }
.form-control:disabled, .form-select:disabled, .btn:disabled { color: #6A7B75 !important; background: #E7EEEB !important; border-color: #C8D5D0 !important; opacity: .9; }
.table-responsive { overflow-x: auto; overscroll-behavior-inline: contain; }
.details-body,
.modal-body {
    overflow-x: auto;
    overflow-wrap: anywhere;
    overscroll-behavior-inline: contain;
}
.chart-container, .chart-wrapper { overflow-x: auto; overflow-y: hidden; }

/* Meaningful labels stay legible in dense views, including at mobile widths. */
.page-inner .table > thead > tr > th,
.page-inner .table > thead th,
.page-inner thead th {
    font-size: .8rem !important;
    line-height: 1.25;
}
.page-inner .badge,
.page-inner .card-category,
.page-inner .header-context__eyebrow,
.page-inner .eyebrow,
.header-context__eyebrow,
.badge {
    font-size: .75rem !important;
}
.page-inner .card-category { letter-spacing: .025em; }
.header-context__eyebrow { letter-spacing: .08em; }

/* Dashboard density calibration: compact operator-facing metrics and quiet
   chart surfaces. Chart data, canvas attributes and scripts remain untouched. */
.page-inner .dashboard-kpi-grid,
.page-inner .dashboard-kpi-overview {
    gap: 12px;
    align-items: stretch;
}
.page-inner .dashboard-kpi-grid {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-elevated);
    box-shadow: 0 8px 24px rgba(18, 75, 74, .045);
}
.page-inner .dashboard-kpi-grid > a,
.page-inner .dashboard-kpi-grid > .card,
.page-inner .dashboard-kpi-overview > .card,
.page-inner .dashboard-kpi-overview > .dashboard-kpi-rail {
    min-width: 0;
}
.page-inner .dashboard-kpi-grid > a {
    position: relative;
    border-right: 1px solid #e5ece9;
    border-bottom: 1px solid #e5ece9;
}
.page-inner .dashboard-kpi-grid > a::before {
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 0;
    width: 2px;
    border-radius: 0 2px 2px 0;
    background: transparent;
    content: "";
    transition: background-color .16s ease;
}
.page-inner .dashboard-kpi-grid > a:hover::before {
    background: var(--secondary-color);
}
.page-inner .dashboard-kpi-grid .card-stats {
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.page-inner .dashboard-kpi-grid .card-stats .card-body {
    min-height: 84px;
    padding: 16px 18px !important;
}
.page-inner .dashboard-kpi-grid .card-stats:hover {
    background: #f7faf8 !important;
}
.page-inner .dashboard-kpi-grid .card-stats .icon-big {
    width: 32px;
    height: 32px;
    min-height: 32px;
    line-height: 32px;
    border-radius: 7px !important;
}
.page-inner .dashboard-kpi-grid .card-stats .icon-big i { font-size: .86rem; }
.page-inner .dashboard-kpi-grid .card-stats .col-stats { padding-left: 8px !important; }
.page-inner .dashboard-kpi-grid .card-category {
    margin-bottom: 2px;
    font-size: .66rem !important;
    line-height: 1.2;
}
.page-inner .dashboard-kpi-grid .card-title {
    margin: 0;
    font-size: 1.22rem !important;
    line-height: 1.05;
}
.page-inner .dashboard-kpi-overview > .card,
.page-inner .dashboard-kpi-overview .dashboard-kpi-rail > .card {
    border-radius: 9px !important;
}
.page-inner .dashboard-kpi-overview > .card > .card-body,
.page-inner .dashboard-kpi-overview .dashboard-kpi-rail > .card > .card-body {
    padding: 13px 15px !important;
}
.page-inner .dashboard-kpi-overview .app-panel .icon {
    width: 28px;
    height: 28px;
    line-height: 28px;
    margin-right: 9px;
    border-radius: 7px !important;
    font-size: .78rem;
}
.page-inner .dashboard-kpi-overview .app-panel .titre {
    font-size: .73rem;
    line-height: 1.2;
}
.page-inner .dashboard-kpi-overview .app-panel .count {
    margin: 7px 0 0;
    font-size: 1.45rem;
    line-height: 1;
}
.page-inner .dashboard-kpi-overview .dashboard-kpi-rail {
    gap: 10px;
}
.page-inner .dashboard-chart-grid,
.page-inner .dashboard-insight-grid {
    gap: 14px;
}
.page-inner .dashboard-chart-grid > .card,
.page-inner .dashboard-chart-grid > div > .card,
.page-inner .dashboard-insight-grid > .card {
    border-top: 2px solid #c6d7d0 !important;
}
.page-inner .dashboard-chart-grid > .card > .card-body,
.page-inner .dashboard-chart-grid > div > .card > .card-body {
    padding: 16px 18px !important;
}
.page-inner .dashboard-chart-grid h5 {
    margin-bottom: 12px !important;
    font-size: .88rem !important;
}
.page-inner .dashboard-chart-grid canvas,
.page-inner .dashboard-chart-grid .chart-container,
.page-inner .dashboard-chart-grid .chart-wrapper {
    height: 220px !important;
    min-height: 220px;
}
.page-inner .dashboard-kpi-overview canvas,
.page-inner .dashboard-kpi-overview .chart-container,
.page-inner .dashboard-kpi-overview .chart-wrapper {
    height: 170px !important;
    min-height: 170px;
}
.page-inner .dashboard-overview .row { margin-left: -6px; margin-right: -6px; }
.page-inner .dashboard-overview .row > [class*="col-"] { padding-left: 6px; padding-right: 6px; }
.page-inner .dashboard-overview h5 { font-size: .78rem; margin: 12px 0 5px; color: var(--muted); }
.page-inner .dashboard-chart-grid + .card,
.page-inner .dashboard-insight-grid + .card { margin-top: 0 !important; }
.page-inner .dashboard-kpi-overview + .dashboard-chart-grid { margin-top: 2px; }
.page-inner .dashboard-kpi-overview .circle,
.page-inner .dashboard-insight-grid .circle {
    width: 104px;
    height: 104px;
    margin: 4px auto 8px;
}
.page-inner .dashboard-kpi-overview .circle strong,
.page-inner .dashboard-insight-grid .circle strong { font-size: 1rem; }
.page-inner .dashboard-kpi-overview .circle canvas,
.page-inner .dashboard-insight-grid .circle canvas { width: 104px !important; height: 104px !important; }
@media (max-width: 767px) {
    .page-inner .dashboard-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-inner .dashboard-kpi-grid .card-stats .card-body { padding: 11px 12px !important; }
    .page-inner .dashboard-chart-grid canvas,
    .page-inner .dashboard-chart-grid .chart-container,
    .page-inner .dashboard-chart-grid .chart-wrapper { height: 230px !important; min-height: 230px; }
    .page-inner .dashboard-kpi-overview canvas,
    .page-inner .dashboard-kpi-overview .chart-container,
    .page-inner .dashboard-kpi-overview .chart-wrapper { height: 190px !important; min-height: 190px; }
}
@media (max-width: 374px) {
    .page-inner .dashboard-kpi-grid { grid-template-columns: 1fr; }
    .page-inner .dashboard-kpi-grid > a { border-right: 0; }
}

/* Final FIGA institutional polish */
:root {
    --figa-ink: #123b3a;
    --figa-ink-deep: #0d2d2c;
    --figa-gold: #c08a2e;
    --figa-gold-soft: #f7edd7;
    --figa-paper: #fffdf8;
}
body.admin-body {
    background: radial-gradient(circle at 92% 0%, rgba(192,138,46,.08), transparent 24rem), var(--app-bg);
    font-family: "Poppins", system-ui, sans-serif;
}
.page-inner { max-width: 1500px; margin: 0 auto; }
.page-header { border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.page-header h3 { letter-spacing: -.035em; text-transform: none !important; }
.main-header { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.card, .card-round, .app-panel, .card-form {
    background: var(--figa-paper) !important;
    box-shadow: 0 1px 2px rgba(18,59,58,.04), 0 10px 28px rgba(18,59,58,.055) !important;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover, .app-panel:hover { border-color: #c7d8d1 !important; }
.card-header::after {
    background: linear-gradient(90deg, var(--figa-gold), transparent);
    opacity: .75;
}
.card-category { font-size: .72rem !important; letter-spacing: .06em; text-transform: uppercase; }
.card-stats .icon-big, .app-panel .icon { color: var(--figa-ink) !important; background: var(--figa-gold-soft) !important; }
.count { color: var(--figa-ink-deep); }
.dashboard-welcome {
    overflow: hidden; border: 0 !important;
    background: linear-gradient(120deg, #123b3a 0%, #16504b 62%, #1e645b 100%) !important;
    color: #eef7f2; position: relative;
}
.dashboard-welcome::before {
    content: ""; position: absolute; width: 260px; height: 260px; right: -70px; top: -120px;
    border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(255,255,255,.035), 0 0 0 48px rgba(255,255,255,.025);
}
.dashboard-welcome h4 { color: #fffdf8; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.dashboard-welcome p { color: rgba(238,247,242,.76) !important; max-width: 720px; }
.dashboard-quick-actions { position: relative; }
.dashboard-quick-actions .btn { border-color: rgba(255,255,255,.28) !important; color: #fffdf8 !important; background: rgba(255,255,255,.08) !important; }
.dashboard-quick-actions .btn:hover { background: #fffdf8 !important; color: var(--figa-ink) !important; }
.btn-primary, .btn-success { background: var(--figa-ink) !important; }
.btn-primary:hover, .btn-success:hover { background: var(--figa-ink-deep) !important; transform: translateY(-1px); }
.btn-outline-primary:hover { border-color: var(--figa-gold) !important; background: var(--figa-gold-soft) !important; }
.filter, .dashboard-filter { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--figa-paper); box-shadow: 0 4px 16px rgba(18,59,58,.035); }
.filter .form-control, .filter .form-select { background: #f7faf8 !important; }
legend { color: var(--figa-ink) !important; border-bottom: 1px solid var(--border); padding-bottom: 9px; }
thead th { background: #edf3f0 !important; color: var(--figa-ink) !important; letter-spacing: .055em; }
.table > tbody > tr { transition: background-color .15s ease; }
.table > tbody > tr:hover { background: #f4f8f6; }
.figa-form-shell .card-header { padding: 22px 28px !important; }
.figa-form-shell .card-body { padding: 28px !important; }
.figa-form-shell .card-footer { background: #f7faf8 !important; }
.modal-content { box-shadow: 0 18px 50px rgba(13,45,44,.2) !important; }
.modal-header { background: #f7faf8; border-top: 0 !important; border-bottom: 1px solid var(--border) !important; }
.modal-title { color: var(--figa-ink); }
body.custom-cursor { background: var(--figa-ink-deep) !important; font-family: "Poppins", system-ui, sans-serif; }
.auth-block { width: min(420px, calc(100vw - 32px)); right: clamp(24px, 8vw, 120px); top: 50%; transform: translateY(-50%); }
.form-section { background: rgba(255,253,248,.98); border: 1px solid rgba(255,255,255,.55); border-radius: 14px; box-shadow: 0 22px 70px rgba(0,0,0,.2); }
.auth-block .sec-title__tagline { color: var(--figa-ink) !important; font-size: 1.35rem; letter-spacing: -.02em; text-transform: none; }
.auth-block .grdeen-btn, .auth-block button { background: var(--figa-ink) !important; }
.auth-block a { color: var(--figa-ink); }
@media (max-width: 767px) {
    .page-header { padding-bottom: 8px; }
    .dashboard-welcome::before { right: -150px; }
    .figa-form-shell .card-header, .figa-form-shell .card-body { padding: 18px 16px !important; }
}

/* Refined neutral shell: FIGA green is an accent, not a wall */
.main-header,
.main-header .logo-header,
.sidebar .logo-header {
    min-height: 64px !important;
    height: 64px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #dfe6e2 !important;
    box-shadow: 0 1px 0 rgba(20, 32, 27, .03) !important;
}
.main-header .navbar-header {
    min-height: 64px !important;
    height: 64px !important;
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid #dfe6e2 !important;
    border-left: 1px solid #edf1ef !important;
}
.main-header .header-context__eyebrow {
    color: #75857e !important;
}
.main-header .header-context strong,
.main-header .profile-username .fw-bold {
    color: #172d26 !important;
}
.main-header .profile-username .text-primary {
    color: #4f675e !important;
}
.main-header .topbar-icon .nav-link,
.main-header .btn-toggle,
.main-header .topbar-toggler {
    color: #536960 !important;
}
.main-header .topbar-icon .nav-link:hover,
.main-header .profile-pic:hover {
    background: #eef4f1 !important;
}
.main-header .profile-pic {
    border-left-color: #dfe6e2 !important;
}
.sidebar,
.sidebar[data-background-color="dark"] {
    background: #f7f9f8 !important;
    border-right: 1px solid #dfe6e2 !important;
    box-shadow: none !important;
}
.sidebar .logo-header {
    padding: 0 14px !important;
}
.sidebar .figa-brand__name {
    color: #173f35 !important;
}
.sidebar .figa-brand__name small {
    color: #74867e !important;
}
.sidebar .btn-toggle,
.sidebar .topbar-toggler {
    color: #36564b !important;
}
.sidebar .sidebar-wrapper {
    padding-top: 14px !important;
}
.sidebar .nav {
    padding: 0 10px !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item {
    margin: 2px 0 !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item > a,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item a {
    min-height: 38px;
    padding: 9px 10px !important;
    color: #40574e !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item > a i,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item a i {
    color: #71887e !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item > a:hover {
    background: #edf3f0 !important;
    color: #173f35 !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item.active > a,
.sidebar.sidebar-style-2 .nav > .nav-item.active > a:hover {
    background: #e1eee8 !important;
    color: #145c48 !important;
    box-shadow: inset 3px 0 0 #c08a2e !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item.active > a i,
.sidebar.sidebar-style-2 .nav > .nav-item.active > a p {
    color: #145c48 !important;
}
.sidebar .nav-collapse {
    border-left-color: #d4dfda !important;
}
.sidebar .nav-collapse li a {
    color: #5d7168 !important;
}
.sidebar .nav-collapse li.active a,
.sidebar .nav-collapse li a:hover {
    color: #145c48 !important;
}

/* Global visibility and navigation contrast */
:root {
    --muted: #4b5f57;
    --gray-color: #4b5f57;
    --border: #c9d6d0;
    --surface-subtle: #e7efeb;
    --surface-muted: #f2f6f4;
    --input-bg-color: #ffffff;
}
body.admin-body,
.main-panel {
    color: #263d35;
}
.text-muted,
.form-text,
.form-help,
.page-inner small,
.page-inner .card-category,
.page-inner .app-panel .titre,
.page-inner .dashboard-overview h5,
.breadcrumbs {
    color: #4b5f57 !important;
}
.page-inner .card,
.page-inner .app-panel,
.page-inner .card-form,
.filter,
.dashboard-filter {
    border-color: #c9d6d0 !important;
}
.form-control,
.form-select,
.ts-control,
.input-group-text {
    border-color: #b8c8c0 !important;
    color: #20382f !important;
}
.form-control::placeholder {
    color: #687c73 !important;
    opacity: 1;
}
.table {
    color: #263d35 !important;
}
.table > :not(caption) > * > * {
    border-bottom-color: #d3ddd8 !important;
}
.table thead th {
    color: #173f35 !important;
}
.badge,
.label,
.status {
    font-weight: 700;
}
.sidebar.sidebar-style-2 .nav > .nav-item > a,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item a {
    color: #2f493f !important;
    font-weight: 650;
}
.sidebar.sidebar-style-2 .nav > .nav-item > a i,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item a i {
    color: #536f63 !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item.active > a,
.sidebar.sidebar-style-2 .nav > .nav-item.active > a:hover {
    background: #dcebe4 !important;
    color: #0d513e !important;
}
.sidebar .nav-collapse {
    margin: 4px 0 10px 12px !important;
    padding: 3px 0 3px 15px !important;
    border-left: 2px solid #b7cbc1 !important;
}
.sidebar .nav-collapse li a {
    position: relative;
    min-height: 32px !important;
    padding: 7px 8px 7px 13px !important;
    color: #40584e !important;
    font-size: .76rem !important;
    font-weight: 600;
    opacity: 1 !important;
}
.sidebar .nav-collapse li a .sub-item,
.sidebar[data-background-color="dark"] .nav-collapse li a .sub-item {
    color: #40584e !important;
    opacity: 1 !important;
}
.sidebar .nav-collapse li a::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #829a8f;
    content: "";
    transform: translateY(-50%);
}
.sidebar .nav-collapse li a:hover {
    padding-left: 17px !important;
    background: #edf3f0 !important;
    color: #0d513e !important;
}
.sidebar .nav-collapse li a:hover .sub-item {
    color: #0d513e !important;
}
.sidebar .nav-collapse li.active a {
    background: #e4efe9 !important;
    color: #0b4a39 !important;
    font-weight: 750;
}
.sidebar .nav-collapse li.active a .sub-item {
    color: #0b4a39 !important;
}
.sidebar .nav-collapse li.active a::before,
.sidebar .nav-collapse li a:hover::before {
    background: #b47d1f;
}
.sidebar .caret {
    border-top-color: #536f63 !important;
}

/* Compact editorial header */
.main-header,
.main-header .logo-header,
.sidebar .logo-header,
.main-header .navbar-header {
    min-height: 56px !important;
    height: 56px !important;
}
.main-header {
    background: rgba(251, 252, 251, .97) !important;
    border-bottom: 1px solid #d8e1dc !important;
    box-shadow: 0 4px 18px rgba(25, 54, 44, .045) !important;
}
.main-header .navbar-header,
.main-header .logo-header,
.sidebar .logo-header {
    background: transparent !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}
.main-header .navbar-header {
    border-left: 1px solid #e8eeeb !important;
}
.main-header .container-fluid {
    padding: 0 22px !important;
}
.sidebar .logo-header {
    padding: 0 12px !important;
}
.sidebar .figa-brand {
    gap: 8px;
}
.sidebar .figa-brand img {
    width: 30px;
    height: 30px;
}
.sidebar .figa-brand__name strong {
    font-size: .9rem;
    letter-spacing: .1em;
}
.sidebar .figa-brand__name small {
    margin-top: 3px;
    font-size: .58rem;
    letter-spacing: .16em;
}
.main-header .header-context {
    flex-direction: row;
    align-items: center;
    gap: 9px;
}
.main-header .header-context__eyebrow {
    font-size: .62rem;
    font-weight: 650;
    letter-spacing: .1em;
}
.main-header .header-context__eyebrow::after {
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-left: 9px;
    border-radius: 50%;
    background: #c08a2e;
    vertical-align: middle;
    content: "";
}
.main-header .header-context strong {
    font-size: .76rem;
}
.main-header .topbar-icon .nav-link {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 50%;
}
.main-header .topbar-icon .nav-link:hover {
    border-color: #d5e1db;
}
.main-header .profile-pic {
    gap: 8px;
    min-height: 38px;
    margin-left: 8px;
    padding: 3px 7px 3px 14px !important;
    border-left: 1px solid #dfe6e2 !important;
    border-radius: 8px;
}
.main-header .topbar-user .avatar-sm {
    width: 30px;
    height: 30px;
}
.main-header .profile-username {
    display: grid;
    gap: 1px;
    line-height: 1.1;
}
.main-header .profile-username br {
    display: none;
}
.main-header .profile-username .text-primary {
    order: 2;
    font-size: .58rem !important;
    line-height: 1;
    letter-spacing: .055em;
}
.main-header .profile-username .fw-bold {
    order: 1;
    font-size: .72rem;
    font-weight: 700 !important;
}
.main-header .profile-username .badge.bg-primary {
    padding: 0 !important;
    background: transparent !important;
    color: #587067 !important;
    font-size: .58rem !important;
    font-weight: 650;
    letter-spacing: .055em;
}

/* Unified application frame */
.main-header,
.main-header .logo-header,
.sidebar .logo-header,
.main-header .navbar-header,
.sidebar,
.sidebar[data-background-color="dark"] {
    background: #f8faf8 !important;
}
.main-header {
    border-bottom: 1px solid #dfe7e2 !important;
    box-shadow: none !important;
}
.main-header::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 22px;
    height: 1px;
    background: linear-gradient(90deg, #c39235 0 44px, #dfe7e2 44px);
    content: "";
}
.sidebar,
.sidebar[data-background-color="dark"] {
    border-right: 1px solid #dfe7e2 !important;
}
.main-header .navbar-header {
    border-left: 0 !important;
}
.sidebar .logo-header {
    border-right: 1px solid #dfe7e2 !important;
}
.sidebar .sidebar-wrapper {
    padding-top: 7px !important;
}
.sidebar .nav {
    padding: 0 8px !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item {
    margin: 0 !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item > a {
    min-height: 42px;
    margin: 0;
    padding: 9px 10px !important;
    border-left: 2px solid transparent;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item + .nav-item {
    border-top: 1px solid rgba(200, 213, 206, .48);
}
.sidebar.sidebar-style-2 .nav > .nav-item > a:hover {
    background: #f0f5f2 !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item.active > a {
    border-left-color: #bd872c !important;
    background: #edf4f0 !important;
    box-shadow: inset 3px 0 0 rgba(23, 107, 81, .08) !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item > a i {
    width: 22px !important;
    margin-right: 7px !important;
    font-size: .82rem !important;
    color: #5a7167 !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item.active > a i {
    color: #176b51 !important;
}
.sidebar.sidebar-style-2 .nav > .nav-item > a p {
    font-size: .71rem !important;
    font-weight: 650 !important;
}
.sidebar .nav-collapse {
    margin: 0 0 5px 21px !important;
    padding: 2px 0 3px 12px !important;
    border-left-color: #c6d4cd !important;
}
.sidebar .nav-collapse li a {
    min-height: 30px !important;
    padding: 5px 9px !important;
    border-radius: 4px !important;
}
.main-panel > .container > .page-inner {
    padding-top: 16px !important;
}
.main-panel > .container > .page-inner > .d-flex.pt-2.pb-4 {
    padding-top: 0 !important;
    padding-bottom: 14px !important;
}

/* Authoritative typography and component rhythm */
:root {
    --font-body: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --fs-body: .875rem;
    --fs-page-title: 1.35rem;
    --fs-section-title: 1.05rem;
    --fs-label: .78rem;
    --fs-meta: .7rem;
    --fs-kpi: 1.25rem;
    --fw-normal: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-heavy: 800;
    --tracking-eyebrow: .11em;
    --line-height-body: 1.45;
    --line-height-tight: 1.15;
    --card-space: 20px;
    --card-space-compact: 12px 14px;
    --card-radius: 10px;
}
body.admin-body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: var(--fw-normal);
    line-height: var(--line-height-body);
}
.page-inner h1,
.page-inner h2,
.page-inner h3,
.page-inner h4,
.page-inner h5,
.page-inner h6 {
    text-transform: none !important;
}
.page-inner > .d-flex h3,
.page-header h3 {
    font-size: var(--fs-page-title) !important;
    font-weight: var(--fw-bold) !important;
    line-height: var(--line-height-tight);
    letter-spacing: -.035em;
}
.figa-eyebrow {
    font-size: var(--fs-meta);
    font-weight: var(--fw-heavy);
    letter-spacing: var(--tracking-eyebrow);
}
.figa-dashboard h1 {
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: var(--fw-bold) !important;
}
.figa-panel-heading h2,
.figa-section-heading h2 {
    font-size: var(--fs-section-title);
    font-weight: var(--fw-bold) !important;
}
.figa-lede,
.figa-chart-note {
    line-height: var(--line-height-body);
}
.figa-chart-panel {
    padding: var(--card-space);
    border-radius: var(--card-radius);
}
.figa-dashboard__stage {
    align-items: stretch;
}
.figa-dashboard__stage > .figa-chart-panel {
    min-height: 330px;
}
.figa-panel-heading {
    min-height: 42px;
}
.figa-register-list {
    border-top-color: #aebfb7;
}
.figa-register,
.figa-register-list > .card {
    height: 58px !important;
    min-height: 58px;
    padding: 0 !important;
}
.figa-register {
    padding-top: 10px;
    padding-bottom: 10px;
}
.figa-register b,
.figa-register-list > .card .card-category {
    color: #29483d !important;
    font-size: var(--fs-label) !important;
    font-weight: var(--fw-semibold) !important;
    line-height: 1.25;
    letter-spacing: 0 !important;
    text-transform: none !important;
}
.figa-register small {
    font-size: var(--fs-meta);
    font-weight: var(--fw-normal);
    line-height: 1.3;
}
.figa-register > strong,
.figa-register-list > .card .card-title {
    color: #092f27 !important;
    font-size: var(--fs-kpi) !important;
    font-weight: var(--fw-heavy) !important;
    line-height: 1;
    letter-spacing: -.035em;
}
.figa-register-list > .card .card-body {
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 0;
    padding: 0 12px !important;
}
.figa-register-list > .card .card-body > .row {
    width: 100%;
    margin: 0;
}
.figa-register-list > .card .col-icon {
    flex: 0 0 34px;
    width: 34px;
    padding: 0;
}
.figa-register-list > .card .col-stats {
    min-width: 0;
    margin-left: 10px !important;
    padding: 0;
}
.figa-register-list > .card .numbers {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}
.figa-register-list > .card .card-category,
.figa-register-list > .card .card-title {
    white-space: nowrap;
}
.table > thead > tr > th,
thead th {
    font-size: var(--fs-meta) !important;
    font-weight: var(--fw-bold) !important;
    letter-spacing: .045em;
}
.sidebar.sidebar-style-2 .nav > .nav-item > a p {
    font-size: var(--fs-label) !important;
    font-weight: var(--fw-semibold) !important;
    letter-spacing: 0;
    text-transform: none !important;
}
.sidebar .nav-collapse li a,
.sidebar .nav-collapse li a .sub-item {
    font-size: .75rem !important;
    font-weight: var(--fw-medium) !important;
    letter-spacing: 0;
    text-transform: none !important;
}
.main-header .header-context__eyebrow {
    font-weight: var(--fw-semibold);
}
.main-header .profile-username .badge.bg-primary {
    font-weight: var(--fw-semibold);
}

/* FIGA Core — shared operational archetypes
   One visual contract for lists, forms, records, dialogs and print output. */
:root {
    --figa-ink: #173431;
    --figa-ink-soft: #38544e;
    --figa-green: #124b4a;
    --figa-green-deep: #0d3837;
    --figa-green-soft: #e8f1ed;
    --figa-gold: #c08a2e;
    --figa-gold-soft: #fbf2df;
    --figa-paper: #fffdf8;
    --figa-canvas: #f3f6f4;
    --figa-line: #d7e2dd;
    --figa-line-strong: #c4d4cd;
    --figa-shadow: 0 1px 2px rgba(18, 75, 74, .05), 0 10px 28px rgba(18, 75, 74, .055);
}
body.admin-body { background: var(--figa-canvas); color: var(--figa-ink); -webkit-font-smoothing: antialiased; }
.page-inner { padding-top: 22px !important; }
.page-header { margin-bottom: 18px !important; }
.page-header h3, .page-inner > .d-flex h3 { color: var(--figa-ink); font-size: 1.18rem; letter-spacing: -.02em; }
.page-header .breadcrumbs { border-left: 2px solid var(--figa-gold); padding-left: 10px; color: var(--muted); }
.page-header .breadcrumbs li { font-size: .77rem; }

/* Navigation stays compact and legible at institutional scale. */
.sidebar, .logo-header { width: 200px !important; }
.main-panel { width: calc(100% - 200px) !important; }
.sidebar .nav { padding: 0 10px; }
.sidebar.sidebar-style-2 .nav > .nav-item > a,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item a { min-height: 40px; padding: 9px 10px !important; font-size: .8rem; }
.sidebar .nav-collapse { padding-left: 28px !important; }
.figa-brand__name { letter-spacing: .04em; }

/* Consistent content surfaces. */
.card, .card-round, .app-panel, .card-form { border-color: var(--figa-line) !important; border-radius: 9px !important; box-shadow: var(--figa-shadow) !important; }
.card-header { min-height: 58px; display: flex; align-items: center; }
.card-header > .d-flex, .card-header > .row { width: 100%; }
.card-title { color: var(--figa-ink); font-weight: 700 !important; }
.card-category { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.card-stats .card-title { font-size: 1.25rem; }
.app-panel { padding: 0 !important; }

/* Index/list archetype: filters read as a toolbar, not a second card. */
.filter, .dashboard-filter { padding: 12px 14px !important; border: 1px solid var(--figa-line) !important; border-radius: 8px !important; background: var(--figa-paper) !important; box-shadow: none !important; }
.filter label, .dashboard-filter label { margin-bottom: 5px; font-size: .72rem; text-transform: uppercase; letter-spacing: .035em; color: var(--figa-ink-soft); }
.table-responsive { border-color: var(--figa-line) !important; box-shadow: var(--figa-shadow) !important; background: var(--figa-paper) !important; }
.table { margin-bottom: 0 !important; }
.table > thead > tr > th { padding: 11px 12px !important; background: #eef4f1 !important; color: var(--figa-ink-soft) !important; font-size: .68rem !important; letter-spacing: .025em; font-weight: 800 !important; text-transform: none !important; border-bottom: 1px solid var(--figa-line-strong) !important; }
.table > tbody > tr > td { padding: 11px 12px !important; color: var(--figa-ink-soft) !important; border-color: #e6ede9 !important; vertical-align: middle; }
.table > tbody > tr:hover { background: #f7faf8; }
.table > tbody > tr > td:first-child { color: var(--figa-ink) !important; }
.table .btn { min-height: 30px; font-size: .77rem; }

/* Forms: one rhythm for Symfony fields, collections and submit bars. */
.figa-form-shell, .figa-form { max-width: var(--form-max-width); margin-inline: auto; }
.figa-form-body { min-width: 0; }
.figa-form .form-group, .figa-form-body .form-group { padding: 7px 0 !important; }
.figa-form legend, .figa-form-body legend { margin: 22px 0 7px; padding-bottom: 8px; border-bottom: 1px solid var(--figa-line); color: var(--figa-ink); font-size: .9rem !important; font-weight: 800 !important; letter-spacing: .035em; text-transform: uppercase; }
.figa-form label, .figa-form-body label { font-size: .78rem; font-weight: 700; color: var(--figa-ink-soft); }
.figa-form textarea, .figa-form-body textarea { min-height: 110px !important; }
.figa-form .text-start, .form-layout form > .text-start { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--figa-line); }
.btn-primary, .btn-success { box-shadow: 0 2px 0 rgba(13,56,55,.18); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible { box-shadow: 0 0 0 3px var(--focus-ring) !important; }

/* Details, modals and access/error states share the same hierarchy. */
.accordion-item { border-color: var(--figa-line) !important; box-shadow: var(--figa-shadow); }
.accordion-button { min-height: 48px; color: var(--figa-ink) !important; font-size: .84rem; }
.modal-content { border: 1px solid var(--figa-line) !important; box-shadow: 0 18px 48px rgba(18,75,74,.18); }
.modal-header { padding: 16px 20px !important; border-top: 3px solid var(--figa-gold) !important; }
.modal-body { padding: 20px !important; }
.modal-footer { padding: 14px 20px !important; border-top: 1px solid var(--figa-line) !important; }
.alert { border: 1px solid var(--figa-line); border-left: 3px solid var(--figa-gold); border-radius: 7px; }
.empty-state, .access-state { padding: 32px 20px; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
    .sidebar { width: 265px !important; }
}
@media (max-width: 767px) {
    .main-panel { width: 100% !important; }
    .page-inner { padding-top: 16px !important; }
    .page-header h3, .page-inner > .d-flex h3 { font-size: 1.05rem; }
    .card-header { min-height: 52px; }
    .table > tbody > tr > td, .table > thead > tr > th { padding: 10px !important; }
    .figa-form .text-start .btn, .form-layout form > .text-start .btn { flex: 1 1 140px; }
}
@media print {
    body.admin-body, .main-panel, .wrapper { background: #fff !important; }
    .sidebar, .main-header, .btn, .filter, .dashboard-filter, .no-print { display: none !important; }
    .main-panel { width: 100% !important; }
    .page-inner { padding: 0 !important; }
    .table-responsive { overflow: visible !important; }
    .table-responsive > .table { width: 100% !important; min-width: 0 !important; }
    .card, .card-form, .table-responsive { box-shadow: none !important; border-color: #b9b9b9 !important; }
    .table > thead > tr > th { background: #f1f1f1 !important; color: #222 !important; }
}

/* Shared dense-register contract: actions remain usable without competing
   with neighbouring content, while data keeps its natural column width. */
.page-inner .table-responsive { overflow-x:auto; }
.page-inner .table { width:100%; table-layout:auto; }
.page-inner .table > thead > tr > th,
.page-inner .table > tbody > tr > td { padding:8px 11px !important; }
.page-inner .table th:last-child,
.page-inner .table td:last-child,
.page-inner .table .table-actions,
.page-inner .table td:has(.figa-actions) { min-width:118px; white-space:nowrap !important; }
.page-inner .table td:last-child .btn,
.page-inner .table .table-actions .btn { white-space:nowrap; }
.figa-actions, .figa-form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.figa-actions .btn, .figa-form-actions .btn { white-space:nowrap; }
.figa-form-card { margin-bottom:16px; padding:18px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--figa-surface); }
.figa-form-card__heading { margin-bottom:14px; }
.figa-form-card__heading h2 { margin:0 0 3px; font-size:1.05rem; }
.figa-form-card__heading p { margin:0; color:var(--figa-text-soft); font-size:.82rem; }
.figa-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
.figa-form-grid--short { grid-template-columns:repeat(3,minmax(0,1fr)); }
.figa-form-field--full { grid-column:1 / -1; }
.sidebar .sidebar-wrapper { overflow-y:auto; overscroll-behavior:contain; }
.sidebar .nav-item > a[data-bs-toggle="collapse"] { white-space:normal; }
body.admin-body td.figa-table-actions { white-space:nowrap !important; }
body.admin-body td.figa-table-actions > :where(.btn, form, a) { white-space:nowrap; }
@media (max-width:767px) {
    .page-inner .table th:last-child, .page-inner .table td:last-child { min-width:104px; }
    .page-inner .table td:last-child .btn, .page-inner .table .table-actions .btn { padding:.3rem .42rem; font-size:.75rem; }
    .figa-actions, .figa-form-actions { gap:6px; }
    .figa-actions .btn, .figa-form-actions .btn { padding:.42rem .62rem; font-size:.78rem; }
    .figa-form-card { padding:14px; }
    .figa-form-grid, .figa-form-grid--short { grid-template-columns:1fr; }
}

/* Sentence case for human-readable component labels */
.card-category,
.filter label,
.dashboard-filter label,
.figa-form legend,
.figa-form-body legend {
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Shared shell contract: compact, legible and deliberately non-decorative. */
:root {
    --figa-focus: rgba(192, 138, 46, .34);
    --figa-header-height: 58px;
}
html { background: var(--app-bg); }
body.admin-body { color: var(--black-color); background: var(--app-bg); font-size: .9rem; }
.main-header { box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(18,75,74,.04); background: var(--surface-elevated); }
.main-header .navbar-header { background: var(--surface-elevated) !important; min-height: var(--figa-header-height); }
.header-context { display:flex; flex-direction:column; gap:1px; line-height:1.15; color:var(--primary-color); }
.header-context__eyebrow { color:var(--muted); font-size:.66rem; letter-spacing:.09em; text-transform:uppercase; font-weight:700; }
.header-context strong { font-size:.88rem; }
.figa-brand { min-height:60px; display:flex; align-items:center; gap:9px; }
.figa-brand__name { display:flex; flex-direction:column; line-height:.9; color:var(--white-color); font-size:1.08rem; }
.figa-brand__name small { font-size:.54rem; letter-spacing:.23em; color:#d8bf79; }
.page-heading { border-bottom:1px solid var(--border); margin-bottom:18px; }
.page-heading__title { color:var(--black-color); letter-spacing:-.025em; }
.page-context { display:flex; align-items:center; gap:8px; margin-bottom:5px; color:var(--muted); font-size:.72rem; }
.page-context a { color:var(--primary-color); font-weight:700; text-decoration:none; }
.page-context a:hover { text-decoration:underline; }
.sidebar.sidebar-style-2[data-background-color=dark] { background:var(--primary-color) !important; }
.sidebar.sidebar-style-2 .sidebar-wrapper { background:transparent; }
.sidebar .nav-collapse li a { min-height:34px !important; padding-top:7px !important; padding-bottom:7px !important; }
.sidebar .nav-collapse li a .sub-item { color:#dbe8e2; }
.sidebar .nav-collapse li.active a .sub-item { color:var(--primary-color); font-weight:700; }
.btn { min-height:34px; font-weight:600; }
.btn-outline-primary { color:var(--primary-color); border-color:var(--primary-color); }
.btn-outline-primary:hover { color:var(--white-color); background:var(--primary-color); }
.form-control, .form-select { color:var(--black-color); }
.form-control::placeholder { color:#8a9994; }
.page-inner { padding-bottom:38px; }
.offline-banner { display:none; position:fixed; z-index:1200; left:12px; right:12px; bottom:12px; padding:10px 14px; border-radius:7px; background:var(--black-color); color:var(--white-color); font-size:.78rem; box-shadow:0 8px 24px rgba(18,75,74,.22); }
.offline-banner.is-visible { display:flex; justify-content:space-between; gap:12px; align-items:center; }
@media print { .page-heading { margin-bottom:10px; } .page-context { color:#444; } }

/* FIGA form system: quiet authority, clear hierarchy, built for daily dossier work. */
:root {
    --figa-ink: #183331;
    --figa-ink-soft: #536966;
    --figa-line: #d5e1dc;
    --figa-paper: #fffdf8;
    --figa-mist: #eef4f1;
    --figa-gold: #b8872e;
}
.figa-form-page { max-width: var(--form-max-width); margin: 0 auto; }
.figa-form-page__heading { margin: 4px 0 18px; }
.figa-form-page__title { display:flex; align-items:center; gap:10px; margin:8px 0 0; color:var(--figa-ink); font-size:1.45rem; letter-spacing:-.035em; }
.figa-form-page__title .back { flex:0 0 auto; margin:0 !important; }
.figa-form-shell { margin:0 auto; background:var(--figa-paper); border:1px solid var(--figa-line) !important; border-top:3px solid var(--primary-color) !important; box-shadow:0 10px 30px rgba(20,65,57,.06) !important; }
.figa-form-shell__header { padding:18px 22px !important; background:linear-gradient(90deg,var(--figa-mist),var(--figa-paper)); border-bottom:1px solid var(--figa-line) !important; }
.figa-form-shell__identity { display:flex; align-items:center; gap:13px; }
.figa-form-shell__mark { width:42px; height:42px; object-fit:contain; flex:0 0 auto; }
.figa-form-shell__header h2 { color:var(--figa-ink); font-weight:800 !important; }
.figa-contextual-help {
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-top:7px;
    color:var(--primary-color);
    font-size:.78rem;
    font-weight:700;
    text-decoration:none;
}
.figa-contextual-help:hover,
.figa-contextual-help:focus-visible {
    color:#8a621d;
    text-decoration:underline;
}
.figa-form-shell .card-body { padding:22px; }
.figa-form-shell .card-footer { padding:14px 22px !important; background:var(--figa-mist); border-top:1px solid var(--figa-line); }
.figa-form-body fieldset, .figa-form-body .form-section, .figa-dossier__section { padding:16px 18px; margin:0 0 14px; border:1px solid var(--figa-line); border-radius:9px; background:rgba(255,253,248,.72); }
.figa-form-body legend { margin:0 0 12px; padding:0 0 8px; color:var(--figa-ink); border-bottom:2px solid var(--figa-gold); }
.figa-form-body .grid-deux, .figa-form-body .figa-dossier__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 18px; }
.figa-form-body .grid-deux > :only-child, .figa-form-body .figa-dossier__field--wide { grid-column:1 / -1; }
.figa-form-actions { position:sticky; bottom:0; z-index:20; display:flex; justify-content:flex-end; gap:8px; }
.figa-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:7px; color:var(--figa-ink-soft); font-size:.72rem; }
.figa-breadcrumb a { color:var(--primary-color); font-weight:700; text-decoration:none; }
.figa-breadcrumb a:hover { color:var(--figa-gold); text-decoration:underline; }
.figa-access-page { display:grid; place-items:center; min-height:calc(100dvh - 90px); }
.figa-access-card { width:min(100%,560px); overflow:hidden; }
.figa-access-card__header { display:flex; gap:13px; align-items:center; padding:24px; background:var(--figa-mist); border-bottom:1px solid var(--figa-line); }
.figa-access-card .card-body { padding:24px; }
.mobile-card-table { width:100%; }
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a {
    color:#eaf2ee !important; background:transparent !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a p,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a i,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a .caret { color:inherit !important; }
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a:hover,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a:focus-visible,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item.active > a {
    color:var(--primary-color) !important; background:var(--figa-paper) !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a {
    color:#dbe8e2 !important; background:transparent !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a:hover,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a:focus-visible,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a.active,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li.active a {
    color:var(--primary-color) !important; background:var(--figa-paper) !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a:hover .sub-item,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a:focus-visible .sub-item,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a.active .sub-item,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li.active a .sub-item { color:inherit !important; }

/* Navigation and detail hierarchy: shared by every full-page register surface. */
.figa-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 6px;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.35;
}
.figa-breadcrumb a { color: var(--primary-color); font-weight: 700; text-decoration: none; }
.figa-breadcrumb a:hover { text-decoration: underline; }
.figa-breadcrumb span[aria-hidden="true"] { color: #a5b5ae; }
.figa-breadcrumb [aria-current="page"] { color: var(--muted); }
.page-heading { gap: 14px; }
.page-heading > div:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }

/* Active child links need the same contrast as their open parent. */
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a.active,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li.active a {
    background: #fffdf8 !important;
    color: var(--primary-color) !important;
    border-left: 3px solid var(--secondary-color);
    padding-left: 12px !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a.active .sub-item,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li.active a .sub-item {
    color: var(--primary-color) !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a {
    color: #f4f8f4 !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a p,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a i,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a .caret {
    color: inherit !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a:hover,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a:focus-visible,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item.active > a {
    color: var(--primary-color) !important;
    background: #fffdf8 !important;
}
.figa-ops__intro > .btn { flex: 0 0 auto; }
.figa-actions { align-items: center; }
.figa-actions .btn { margin: 0; }
.form-layout .page-header,
.form-layout .figa-panel { max-width: var(--form-max-width); margin-left: auto; margin-right: auto; }
.figa-panel__head small { display: block; margin-top: 4px; }
.figa-panel__body > form { margin-bottom: 0; }
.table-responsive { scrollbar-color: var(--primary-color) var(--surface-muted); }
.table-responsive:focus-within { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

/* Final navigation layer: keep contrast authoritative over legacy theme rules. */
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a {
    color: #f4f8f6 !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a i,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a .caret {
    color: #efd477 !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item.active > a {
    color: #0d3f3d !important;
    background: #fffdf8 !important;
    box-shadow: inset 4px 0 0 #c08a2e;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item.active > a i,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item.active > a .caret {
    color: #0d3f3d !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a .sub-item {
    color: #dceae5 !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a:hover,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a:focus-visible {
    color: #ffffff !important;
    background: #2a625d !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a.active,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a.active .sub-item,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li.active a,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li.active a .sub-item {
    color: #0d3f3d !important;
    background: #eef5f1 !important;
}
.page-heading {
    padding-top: 6px !important;
    padding-bottom: 12px !important;
    margin-bottom: 16px !important;
}

/* Final FIGA contract: fixed feedback, predictable density and no synthetic
   dashboard cells.  This layer intentionally wins over the legacy theme. */
#loader {
    display: none !important;
    visibility: hidden;
    position: fixed;
    inset: 0;
    z-index: 2000 !important;
    place-items: center;
    margin: 0;
    background: rgba(10, 34, 32, .58);
    pointer-events: none;
}
#loader.is-visible {
    display: grid !important;
    visibility: visible;
    pointer-events: all;
}
#loader .load {
    width: 48px;
    height: 48px;
    margin: 0;
    border: 4px solid rgba(255,253,248,.42);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.modal.figa-modal { padding-left: 0 !important; }
.modal.figa-modal .modal-content { position: relative; }
.modal.figa-modal .modal-body[aria-busy="true"] { min-height: 140px; }
.figa-loading-block { min-height: 96px; align-content: center; }
.figa-loading-block[role="status"] { color: var(--muted); }

/* A shared two-column contract keeps forms, records and dashboard panels
   aligned without relying on route-specific Bootstrap combinations. */
.figa-two-column,
.figa-detail__body,
.figa-dossier__grid,
.figa-form-body .grid-deux,
.form-layout form .grid-deux {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
    align-items: start;
}
.figa-two-column > *,
.figa-detail__body > *,
.figa-dossier__grid > * { min-width: 0; }

/* Adapt the number of tracks to the number of actual cards. */
.dash-grid-deux[data-grid-count="1"],
.dash-grid-trois[data-grid-count="1"],
.dash-grid-quatre[data-grid-count="1"],
.dash-grid-cinq[data-grid-count="1"],
.dash-grid-six[data-grid-count="1"],
.figa-kpi-grid[data-grid-count="1"],
.dashboard-statistics[data-grid-count="1"] { grid-template-columns: minmax(0, 1fr); }
.dash-grid-trois[data-grid-count="2"],
.dash-grid-quatre[data-grid-count="2"],
.dash-grid-cinq[data-grid-count="2"],
.dash-grid-six[data-grid-count="2"],
.figa-kpi-grid[data-grid-count="2"],
.dashboard-statistics[data-grid-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-grid-quatre[data-grid-count="3"],
.dash-grid-cinq[data-grid-count="3"],
.dash-grid-six[data-grid-count="3"],
.figa-kpi-grid[data-grid-count="3"],
.dashboard-statistics[data-grid-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-grid-cinq[data-grid-count="4"],
.dash-grid-six[data-grid-count="4"],
.figa-kpi-grid[data-grid-count="4"],
.dashboard-statistics[data-grid-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-grid-six[data-grid-count="5"],
.figa-kpi-grid[data-grid-count="5"],
.dashboard-statistics[data-grid-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dashboard-statistics[data-grid-count="1"] { grid-template-columns: minmax(0, 1fr) !important; }
.dashboard-statistics[data-grid-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.dashboard-statistics[data-grid-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.dashboard-statistics[data-grid-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.dashboard-statistics[data-grid-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }

/* Closure pass: shared density, legible hierarchy and adaptive promoteur metrics. */
body.admin-body { font-size: 15px; line-height: 1.45; }
body.admin-body p, body.admin-body .text-muted { color: var(--figa-ink-soft) !important; }
body.admin-body h1 { font-size: clamp(1.55rem, 2.1vw, 2rem); line-height: 1.15; }
body.admin-body h2 { font-size: clamp(1.15rem, 1.45vw, 1.4rem); line-height: 1.25; }
body.admin-body h3 { font-size: 1.05rem; line-height: 1.3; }
body.admin-body small, body.admin-body .small { font-size: .78rem; }
.main-header .navbar-header > .container-fluid { min-height: 58px; align-items: center; gap: 12px; }
.main-header .navbar-header-left { min-width: 0; align-items: center; }
.main-header .topbar-nav { gap: 4px; }
.main-header .topbar-icon > a,
.main-header .topbar-user > a { color: var(--figa-ink) !important; }
.main-header .topbar-icon > a i,
.main-header .topbar-user > a i { color: var(--figa-green) !important; }
.btn i, .nav i, .figa-mobile-menu i { color: currentColor; }
.figa-stats-groups { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 18px; }
.figa-stats-group { min-width: 0; padding: 14px; border: 1px solid var(--figa-line); border-radius: 10px; background: rgba(255,253,248,.62); }
.figa-stats-group h2 { margin: 0 0 10px; color: var(--figa-ink); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.figa-stats-group .figa-register-list { margin: 0; }
.figa-stats-group .card-stats { min-width: 0; }
.figa-stats-group .card-category { color: var(--figa-ink-soft) !important; }
.figa-stats-group .card-title { color: var(--figa-ink) !important; }
.figa-form-guide__progress { color: var(--figa-ink-soft); }

/* Phase 1 guided-form contract: one compact, predictable control surface.
   This is intentionally appended so legacy form fragments inherit it without
   changing their business markup or Bootstrap component contracts. */
.figa-form-guide {
    min-width: 0;
}
.figa-form-nav {
    min-width: 0;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}
.figa-form-nav a {
    flex: 0 0 auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--figa-text-soft);
    font-size: .75rem;
    line-height: 1.2;
    text-decoration: none;
}
.figa-form-nav a:hover,
.figa-form-nav a:focus-visible,
.figa-form-nav a.is-active {
    color: var(--primary-color);
    border-color: var(--figa-border-strong);
    background: var(--figa-surface);
}
.figa-form-nav a.is-active { font-weight: 800; }
.figa-form-nav a span {
    color: var(--secondary-color);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}
.figa-step-errors {
    margin: 0 0 12px;
    padding: 9px 12px;
    border-left: 3px solid var(--red-color);
    background: var(--danger-soft);
    color: var(--figa-text);
    font-size: .8rem;
}
.figa-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.figa-form-actions .figa-step-prev { margin-right: auto; }
.figa-form-actions .btn[hidden] { display: none !important; }
.form-section-group[hidden] { display: none !important; }

@media (max-width: 767.98px) {
    .figa-form-guide {
        display: block;
        margin-bottom: 12px;
        padding: 11px 12px;
    }
    .figa-form-guide__intro { margin-bottom: 8px; }
    .figa-form-guide__intro strong { font-size: .84rem; }
    .figa-form-nav { margin-inline: -3px; padding-inline: 3px 1px; }
    .figa-form-nav a { min-height: 32px; padding: 5px 8px; font-size: .7rem; }
    .figa-form-actions {
        position: sticky;
        bottom: 0;
        z-index: 20;
        margin-inline: -12px;
        padding: 9px 12px;
        background: color-mix(in srgb, var(--figa-surface) 96%, transparent);
        border-top: 1px solid var(--border);
    }
    .figa-form-actions .btn { min-width: 0; flex: 1 1 auto; }
    .figa-form-actions .figa-step-prev { margin-right: 0; }
}
@media (max-width: 380px) {
    .figa-form-actions { gap: 5px; }
    .figa-form-actions .btn { padding-inline: 7px !important; font-size: .76rem; }
}
.figa-form-nav a span, .figa-step { color: var(--figa-gold); }
.figa-form-nav a:focus-visible, .btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible { outline: 3px solid var(--focus-ring) !important; outline-offset: 2px; }
.figa-form-body .form-section-group[hidden] { display: none !important; }

@media (min-width: 992px) {
    body.figa-sidebar-collapsed .sidebar,
    body.sidebar_minimize .sidebar,
    body.sidebar-mini .sidebar,
    body.figa-sidebar-collapsed .logo-header,
    body.sidebar_minimize .logo-header,
    body.sidebar-mini .logo-header {
        width: 72px !important;
    }
    body.figa-sidebar-collapsed .main-panel,
    body.sidebar_minimize .main-panel,
    body.sidebar-mini .main-panel {
        width: calc(100% - 72px) !important;
        margin-left: 72px !important;
    }
    body.figa-sidebar-collapsed .sidebar .figa-brand__name,
    body.sidebar_minimize .sidebar .figa-brand__name,
    body.sidebar-mini .sidebar .figa-brand__name,
    body.figa-sidebar-collapsed .sidebar .nav > .nav-item > a p,
    body.sidebar_minimize .sidebar .nav > .nav-item > a p,
    body.sidebar-mini .sidebar .nav > .nav-item > a p,
    body.figa-sidebar-collapsed .sidebar .nav > .nav-item > a .caret,
    body.sidebar_minimize .sidebar .nav > .nav-item > a .caret,
    body.sidebar-mini .sidebar .nav > .nav-item > a .caret {
        display: none !important;
    }
    body.figa-sidebar-collapsed .sidebar .nav > .nav-item > a,
    body.sidebar_minimize .sidebar .nav > .nav-item > a,
    body.sidebar-mini .sidebar .nav > .nav-item > a {
        justify-content: center;
        padding-inline: 0 !important;
    }
    body.figa-sidebar-collapsed .sidebar .nav > .nav-item > a i,
    body.sidebar_minimize .sidebar .nav > .nav-item > a i,
    body.sidebar-mini .sidebar .nav > .nav-item > a i {
        margin: 0 !important;
    }
    body.figa-sidebar-collapsed .sidebar .nav > .nav-item,
    body.sidebar_minimize .sidebar .nav > .nav-item,
    body.sidebar-mini .sidebar .nav > .nav-item { position: relative; }
    body.figa-sidebar-collapsed .sidebar .nav > .nav-item:hover > .collapse,
    body.figa-sidebar-collapsed .sidebar .nav > .nav-item:focus-within > .collapse,
    body.sidebar_minimize .sidebar .nav > .nav-item:hover > .collapse,
    body.sidebar_minimize .sidebar .nav > .nav-item:focus-within > .collapse,
    body.sidebar-mini .sidebar .nav > .nav-item:hover > .collapse,
    body.sidebar-mini .sidebar .nav > .nav-item:focus-within > .collapse {
        display: block !important;
        position: absolute;
        top: 0;
        left: 68px;
        z-index: 1200;
        min-width: 220px;
        padding: 8px !important;
        border: 1px solid rgba(216,231,224,.22);
        border-radius: 0 8px 8px 8px;
        background: var(--primary-color);
        box-shadow: 0 12px 30px rgba(10,34,32,.2);
    }
}

/* Final legibility floor; keep this after all legacy and responsive layers. */
.figa-breadcrumb,
.breadcrumbs,
.page-header .breadcrumbs li,
.figa-kicker,
.card-category,
.figa-register-list--metrics .card-category,
.figa-panel .btn-sm[title]:hover::after,
.figa-panel .btn-sm[title]:focus-visible::after {
    font-size: .86rem !important;
}

.page-inner .figa-register-list > .card .card-category,
.page-inner .figa-register-list--metrics > .card .card-category {
    font-size: 12px !important;
}

@media (max-width: 359px) {
    main .btn {
        font-size: .86rem !important;
    }
}

main table th,
main table td,
main .btn-sm,
main .accordion-button,
main .figa-form-nav a,
main .figa-form-steps a,
main .form-section-group .text-muted,
main .text-muted.small,
main .text-muted.lead.small {
    font-size: 12px !important;
}

/* Closure pass: one dense, legible contract for the institutional workspace. */
:root {
    --content-gutter: clamp(14px, 2.25vw, 34px);
    --control-height: 42px;
    --table-font-size: .88rem;
}

html { overflow-x: hidden; }
body.admin-body { background: var(--app-bg); color: var(--black-color); font-size: 15px; }
.main-header { background: var(--surface-elevated) !important; border-bottom: 1px solid var(--border) !important; }
.main-header .navbar-header { min-height: 58px; }
.page-inner { padding: 20px var(--content-gutter) 40px !important; }
.page-heading { min-height: 54px; margin-bottom: 12px; }
.page-heading__title { color: var(--primary-color); font-size: clamp(1.28rem, 1.4vw, 1.75rem); line-height: 1.2; }

.figa-ops { max-width: 1440px; margin-inline: auto; }
.figa-ops__intro { align-items: center; margin-bottom: 18px; }
.figa-ops__intro h1 { margin: 0 0 5px; font-size: clamp(1.55rem, 2.1vw, 2.15rem); color: var(--primary-color); }
.figa-ops__intro p:last-child { margin: 0; color: var(--muted); font-size: .92rem; }
.figa-kicker { margin-bottom: 5px !important; color: #9a6b18 !important; font-size: .7rem !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.figa-snapshot { white-space: nowrap; border: 1px solid #c7d7d0; border-radius: 8px; padding: 9px 12px; background: var(--surface-elevated); color: var(--primary-color); font-weight: 800; }
.figa-snapshot i { margin-right: 7px; color: var(--secondary-color); font-size: .55rem; vertical-align: middle; }

.figa-stats-groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: 14px; }
.figa-stats-group { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-subtle); }
.figa-stats-group > h2 { margin: 0 0 11px; color: var(--primary-color); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.figa-register-list--metrics { grid-template-columns: repeat(auto-fit, minmax(138px, 1fr)); gap: 9px; }
.figa-register-list--metrics > .card { min-width: 0; border: 1px solid var(--border); box-shadow: none; }
.figa-register-list--metrics .card-body { min-height: 78px; padding: 12px !important; }
.figa-register-list--metrics .card-category { font-size: .72rem !important; line-height: 1.2; }

/* Closure baseline: secondary copy must remain legible at the 14px app root. */
.figa-breadcrumb,
.breadcrumbs,
.page-header .breadcrumbs li,
.figa-kicker,
.card-category,
.figa-register-list--metrics .card-category {
    font-size: .86rem !important;
}
.figa-register-list--metrics .card-title { font-size: 1.25rem; }

.figa-panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-elevated); box-shadow: var(--shadow-sm); overflow: hidden; }
.figa-panel__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 15px 17px 12px; border-bottom: 1px solid var(--border); }
.figa-panel__head h2 { margin: 0; color: var(--primary-color); font-size: 1rem; }
.figa-panel__head small { color: var(--muted); font-size: .78rem; }
.figa-panel .table-responsive { border: 0 !important; box-shadow: none !important; margin: 0; }
.figa-panel .table { margin: 0; font-size: var(--table-font-size); }
.figa-panel .table th { padding: 12px 14px !important; background: var(--surface-subtle) !important; color: var(--primary-color) !important; font-size: .7rem !important; letter-spacing: .05em; }
.figa-panel .table td { padding: 11px 14px !important; vertical-align: middle; }
.figa-panel .table tbody tr:hover { background: #f0f6f2; }

.btn { min-height: 38px; font-weight: 700; }
.figa-panel .btn-sm, .table .btn-sm { min-width: 34px; min-height: 34px; padding: 5px 9px !important; }
.figa-panel .btn-sm[title]:hover::after, .figa-panel .btn-sm[title]:focus-visible::after { content: attr(title); position: absolute; z-index: 20; margin-top: 38px; margin-left: -8px; padding: 5px 7px; border-radius: 5px; background: var(--black-color); color: var(--white-color); font-size: .68rem; white-space: nowrap; pointer-events: none; }
.figa-panel .btn-sm { position: relative; }

body.admin-body .main-panel .figa-kicker,
body.admin-body .main-panel .figa-panel .table th,
body.admin-body .main-panel .btn.action {
    font-size: 12px !important;
}

.form-section-group { padding: 16px 18px; }
.form-section-group + .form-section-group { margin-top: 14px; }
.form-section-group .text-muted { font-size: .82rem; }
.form-grid { align-items: end !important; }
.formation-location-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.form-control, .form-select, .ts-wrapper.single .ts-control { min-height: var(--control-height); font-size: .92rem !important; }
.form-group { padding: 5px 0 !important; }

.sidebar.sidebar-style-2 .nav > .nav-item > a { padding-inline: 12px !important; }
.sidebar .nav-collapse li a { padding-left: 16px !important; }
.topbar-user .profile-pic { min-height: 44px; }

@media (max-width: 991px) {
    .figa-stats-groups { grid-template-columns: 1fr; }
    .main-panel { overflow-x: hidden; }
}
@media (max-width: 767px) {
    .page-inner { padding: 16px 14px 30px !important; }
    .figa-ops__intro { align-items: flex-start; gap: 10px; }
    .figa-snapshot { align-self: stretch; }
    .figa-stats-group { padding: 12px; }
    .figa-register-list--metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .figa-panel__head { padding: 13px 14px 10px; }
    .figa-panel .table-responsive { overflow-x: auto; }
    .formation-location-grid { grid-template-columns: 1fr !important; }
}

/* KaiAdmin stores its desktop state on .wrapper, not body. */
@media (min-width: 992px) {
    .wrapper.sidebar_minimize .sidebar,
    .wrapper.sidebar_minimize .logo-header,
    .wrapper.sidebar_minimize_hover .sidebar,
    .wrapper.sidebar_minimize_hover .logo-header {
        width: 72px !important;
    }
    .wrapper.sidebar_minimize .main-panel,
    .wrapper.sidebar_minimize_hover .main-panel {
        width: calc(100% - 72px) !important;
        margin-left: 72px !important;
    }
    .wrapper.sidebar_minimize .sidebar .figa-brand__name,
    .wrapper.sidebar_minimize_hover .sidebar .figa-brand__name,
    .wrapper.sidebar_minimize .sidebar .nav > .nav-item > a p,
    .wrapper.sidebar_minimize_hover .sidebar .nav > .nav-item > a p,
    .wrapper.sidebar_minimize .sidebar .nav > .nav-item > a .caret,
    .wrapper.sidebar_minimize_hover .sidebar .nav > .nav-item > a .caret {
        display: none !important;
    }
    .wrapper.sidebar_minimize .sidebar .nav > .nav-item > a,
    .wrapper.sidebar_minimize_hover .sidebar .nav > .nav-item > a {
        justify-content: center;
        padding-inline: 0 !important;
    }
    .wrapper.sidebar_minimize .sidebar .nav > .nav-item > a i,
    .wrapper.sidebar_minimize_hover .sidebar .nav > .nav-item > a i { margin: 0 !important; }
    .wrapper.sidebar_minimize .sidebar .nav > .nav-item,
    .wrapper.sidebar_minimize_hover .sidebar .nav > .nav-item { position: relative; }
    .wrapper.sidebar_minimize .sidebar .nav > .nav-item:hover > .collapse,
    .wrapper.sidebar_minimize .sidebar .nav > .nav-item:focus-within > .collapse,
    .wrapper.sidebar_minimize_hover .sidebar .nav > .nav-item:hover > .collapse,
    .wrapper.sidebar_minimize_hover .sidebar .nav > .nav-item:focus-within > .collapse {
        display: block !important;
        position: absolute;
        top: 0;
        left: 68px;
        z-index: 1200;
        min-width: 220px;
        padding: 8px !important;
        border: 1px solid rgba(216,231,224,.22);
        border-radius: 0 8px 8px 8px;
        background: var(--primary-color);
        box-shadow: 0 12px 30px rgba(10,34,32,.2);
    }
}

/* Last word: shared data surfaces must win over theme/plugin defaults. */
.figa-data-surface { min-width: 0; }
.figa-data-surface .table-responsive,
.figa-panel .table-responsive { max-width: 100%; overflow: auto !important; }
.figa-data-surface .table-responsive th:first-child,
.figa-data-surface .table-responsive td:first-child,
.figa-panel .table-responsive th:first-child,
.figa-panel .table-responsive td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface-elevated) !important;
    box-shadow: 1px 0 0 var(--border);
}
.figa-data-surface .table-responsive thead th:first-child,
.figa-panel .table-responsive thead th:first-child {
    z-index: 4;
    background: var(--surface-subtle) !important;
}
.figa-data-surface .table-responsive thead th,
.figa-panel .table-responsive thead th {
    position: sticky;
    top: 0;
    z-index: 3;
}

/* Never let inherited plugin sizing turn operational labels into microtext. */
body.admin-body :where(.main-panel, .sidebar, .main-header) * {
    font-size: max(12px, 1em);
}
body.admin-body :where(.main-panel, .sidebar, .main-header)
    :where(p, span, label, small, a, button, td, th, div) {
    font-size: max(12px, 1em) !important;
}

/* FIGA final shared contract: dense panels, one shell and no hidden data. */
body.admin-body .page-heading,
body.admin-body .figa-ops__intro,
body.admin-body .figa-dashboard__intro,
body.admin-body .figa-section-heading,
body.admin-body .figa-kpi-strip,
body.admin-body .figa-stats-groups,
body.admin-body .filter,
body.admin-body .dashboard-filter,
body.admin-body .figa-panel,
body.admin-body .table-responsive {
    margin-top: 0 !important;
}

body.admin-body .page-heading { margin-bottom: 8px !important; }
body.admin-body .figa-ops__intro,
body.admin-body .figa-dashboard__intro { margin-bottom: 10px !important; }
body.admin-body .figa-stats-groups,
body.admin-body .figa-kpi-strip,
body.admin-body .figa-panel,
body.admin-body .filter,
body.admin-body .dashboard-filter { margin-bottom: 10px !important; }

/* Vertical scrolling belongs to the document. Tables only become horizontal
   viewports when their columns cannot fit. */
body.admin-body .table-responsive,
body.admin-body .figa-panel .table-responsive,
body.admin-body .figa-data-surface .table-responsive {
    max-height: none !important;
    height: auto !important;
    overflow-y: hidden !important;
    overflow-x: auto !important;
    overscroll-behavior-y: auto;
}
body.admin-body .table-responsive table { margin-bottom: 0 !important; }
body.admin-body .table-responsive thead th,
body.admin-body .table-responsive th:first-child,
body.admin-body .table-responsive td:first-child {
    position: static !important;
    box-shadow: none !important;
}

/* Clear copy on the dark institutional surfaces used by legacy details. */
body.admin-body :where(.figa-detail__hero, .figa-dossier__hero,
    .figa-detail, .figa-dossier, .detail-body, .modal-content) {
    color: var(--figa-text) !important;
}
body.admin-body :where(.figa-detail__hero, .figa-dossier__hero,
    .figa-detail, .figa-dossier) :where(h1,h2,h3,h4,h5,h6,p,span,small,dt,dd,label,a) {
    color: inherit;
}
body.admin-body .modal-content { color: var(--figa-text) !important; }
body.admin-body .modal-content .text-muted { color: var(--figa-text-soft) !important; }
body.admin-body :where(.figa-detail__hero, .figa-dossier__hero) a,
body.admin-body :where(.figa-detail__hero, .figa-dossier__hero) .text-muted {
    color: #e8f3ee !important;
}
body.admin-body .figa-modal .modal-body { min-height: 0; }

/* Dark institutional surfaces need an explicit foreground contract.  The
   legacy broad rule above intentionally keeps light detail bodies readable,
   while these selectors cover the dark hero/header variants used by every
   dossier family. */
body.admin-body :where(.figa-detail__hero, .figa-dossier__hero,
    .modal-header.bg-primary, .card-header.bg-primary,
    .figa-panel__head.bg-primary, .figa-dark-surface,
    .modal-header[data-background-color="dark"],
    .card-header[data-background-color="dark"],
    .figa-panel__head[data-background-color="dark"]) {
    color: #f7fbf8 !important;
}
body.admin-body :where(.figa-detail__hero, .figa-dossier__hero,
    .modal-header.bg-primary, .card-header.bg-primary,
    .figa-panel__head.bg-primary, .figa-dark-surface,
    .modal-header[data-background-color="dark"],
    .card-header[data-background-color="dark"],
    .figa-panel__head[data-background-color="dark"])
    :where(h1, h2, h3, h4, h5, h6, p, span, small, strong, dt, dd, label, a, i, svg) {
    color: inherit !important;
}
body.admin-body :where(.figa-detail__hero, .figa-dossier__hero,
    .modal-header.bg-primary, .card-header.bg-primary,
    .figa-panel__head.bg-primary, .figa-dark-surface,
    .modal-header[data-background-color="dark"],
    .card-header[data-background-color="dark"],
    .figa-panel__head[data-background-color="dark"])
    :where(.text-muted, .figa-kicker, .figa-detail__reference, .figa-dossier__reference) {
    color: #e5f2ec !important;
    opacity: 1 !important;
}
body.admin-body :where(.figa-detail__hero, .figa-dossier__hero,
    .modal-header.bg-primary, .card-header.bg-primary,
    .figa-panel__head.bg-primary, .figa-dark-surface,
    .modal-header[data-background-color="dark"],
    .card-header[data-background-color="dark"],
    .figa-panel__head[data-background-color="dark"]) .btn-close {
    filter: invert(1) grayscale(1) brightness(2) !important;
    opacity: .95;
}

/* Register action cells keep every operation visible and wrap inside the
   table viewport instead of widening the page. */
body.admin-body td.figa-table-actions {
    min-width: 13rem;
    white-space: normal !important;
    vertical-align: middle;
}
body.admin-body td.figa-table-actions > :where(.btn, form, a),
body.admin-body td.figa-table-actions form > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-height: 34px;
    margin: .15rem 0 .15rem .25rem !important;
    white-space: nowrap;
    vertical-align: middle;
}
body.admin-body td.figa-table-actions > form {
    margin: 0 !important;
}
body.admin-body td.figa-table-actions > :first-child {
    margin-left: 0 !important;
}

/* The promoteur register has four persistent row actions. At intermediate
   desktop widths, keep those actions on one line and let the table's existing
   responsive wrapper scroll horizontally instead of inflating every row. */
body.admin-body .page-inner .table-responsive > table.figa-promoteurs-table {
    width: 100%;
    min-width: 0 !important;
}
body.admin-body .figa-promoteurs-table__name {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.admin-body .figa-promoteurs-table td.figa-promoteurs-table__actions {
    width: auto;
    min-width: 0 !important;
    white-space: nowrap !important;
}
body.admin-body .figa-promoteurs-table__action-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
    min-width: 0;
}
body.admin-body .figa-promoteurs-table__actions > :where(.btn, form, a),
body.admin-body .figa-promoteurs-table__actions form > .btn {
    margin-block: 0 !important;
}

/* Whole-card links keep the existing destination and expose a reliable target. */
body.admin-body .figa-kpi,
body.admin-body .figa-register,
body.admin-body .figa-register-list--metrics > a {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
body.admin-body .figa-kpi:hover,
body.admin-body .figa-kpi:focus-visible,
body.admin-body .figa-register:hover,
body.admin-body .figa-register:focus-visible {
    transform: translateY(-1px);
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 14px rgba(18,75,74,.12);
}

/* Bootstrap's white on the FIGA mid-green is only 3.43:1. */
body.admin-body .badge.bg-primary {
    color: #001f1d !important;
}

/* CRUD table actions: the edit affordance is deliberately scoped to its
   semantic hook, so filters, imports and other btn-light controls keep their
   existing treatment.  Match the compact delete action without reducing the
   action to an icon-only target. */
body.admin-body .page-inner .table .figa-table-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    min-width: 6.2rem;
    min-height: 32px;
    padding: .35rem .7rem !important;
    border: 1px solid #8eafa3 !important;
    border-radius: var(--radius-sm) !important;
    background: #e5f0ed !important;
    color: #124b4a !important;
    font-size: .78rem !important;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    vertical-align: middle;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

body.admin-body .page-inner .table .figa-table-edit i {
    color: currentColor !important;
    font-size: .82rem !important;
}

body.admin-body .page-inner .table .figa-table-edit:hover {
    border-color: #124b4a !important;
    background: #124b4a !important;
    color: #fffdf8 !important;
    transform: translateY(-1px);
}

body.admin-body .page-inner .table .figa-table-edit:focus,
body.admin-body .page-inner .table .figa-table-edit:focus-visible {
    outline: 3px solid #854d00 !important;
    outline-offset: 2px;
    border-color: #124b4a !important;
}

body.admin-body .page-inner .table .figa-table-edit:active {
    transform: translateY(0);
}

/* Shared accessibility and action contracts.  Keep these rules at the end
   of the theme so legacy Bootstrap/plugin selectors cannot reduce contrast
   on a single screen. */
body.admin-body {
    --figa-focus: #854d00;
    --figa-success-bg: #176b4d;
    --figa-danger-bg: #9b3038;
    --figa-primary-bg: #124b4a;
    --figa-card-border: #b9cec5;
}

body.admin-body :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--figa-focus) !important;
    outline-offset: 2px;
}

body.admin-body :where(.badge.bg-primary, .btn-primary) {
    background-color: var(--figa-primary-bg) !important;
    border-color: var(--figa-primary-bg) !important;
    color: #fffdf8 !important;
}

body.admin-body :where(.badge.bg-success, .btn-success) {
    background-color: var(--figa-success-bg) !important;
    border-color: var(--figa-success-bg) !important;
    color: #fffdf8 !important;
}

body.admin-body :where(.badge.bg-danger, .btn-danger) {
    background-color: var(--figa-danger-bg) !important;
    border-color: var(--figa-danger-bg) !important;
    color: #fffdf8 !important;
}

body.admin-body :where(.badge.bg-light, .btn-light) {
    background-color: #eef4f1 !important;
    border-color: #b9cec5 !important;
    color: #124b4a !important;
}

body.admin-body :where(.btn-primary, .btn-success, .btn-danger, .btn-light):hover:not(:disabled),
body.admin-body :where(.btn-primary, .btn-success, .btn-danger, .btn-light):focus-visible {
    filter: brightness(.92);
}

body.admin-body :where(.btn-primary, .btn-success, .btn-danger, .btn-light):disabled,
body.admin-body :where(.btn-primary, .btn-success, .btn-danger, .btn-light).disabled {
    opacity: .62;
    cursor: not-allowed;
}

/* A previous compatibility rule used ink text on the primary dark badge.
   That is only 1.75:1 on #124b4a and affects amounts, roles and status
   badges throughout the registers. */
body.admin-body .badge.bg-primary {
    color: #fffdf8 !important;
}

body.admin-body :where(.card, .figa-panel, .figa-kpi, .figa-register, .modal-content) {
    border-color: var(--figa-card-border);
}

body.admin-body :where(.card-header, .modal-header, .figa-panel__head) {
    color: #172b2a;
    background-color: #f7faf8;
}

body.admin-body .figa-form-actions,
body.admin-body .figa-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .55rem;
}

body.admin-body .figa-form-actions .action,
body.admin-body .figa-actions .action {
    margin: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    body.admin-body *,
    body.admin-body *::before,
    body.admin-body *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}

/* FIGA ONE institutional skin: a restrained shared shell layer. */
:root {
    --figa-paper: #fffdfa;
    --figa-canvas: #f4f7f5;
    --figa-ink: #173431;
    --figa-ink-soft: #526863;
    --figa-green: #1d7a43;
    --figa-green-deep: #125d3a;
    --figa-green-wash: #eaf4ed;
    --figa-yellow: #d6b52b;
    --figa-line: #d8e4de;
    --figa-shadow: 0 1px 2px rgba(23, 52, 49, .04), 0 8px 22px rgba(23, 52, 49, .055);
}

html, body.admin-body {
    background: var(--figa-canvas);
    color: var(--figa-ink);
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.admin-body .main-header {
    background: rgba(255, 253, 250, .97) !important;
    border-bottom: 1px solid var(--figa-line) !important;
}
body.admin-body .header-context strong,
body.admin-body .page-heading__title,
body.admin-body .card-title,
body.admin-body h1, body.admin-body h2,
body.admin-body h3, body.admin-body h4 { color: var(--figa-ink); }
body.admin-body .header-context__agency,
body.admin-body .figa-breadcrumb { color: var(--figa-ink-soft); }
body.admin-body a,
body.admin-body .figa-breadcrumb a { color: var(--figa-green-deep); }

/* The navigation is the one deliberately dark surface. */
body.admin-body .sidebar,
body.admin-body .sidebar[data-background-color="dark"],
body.admin-body .logo-header { background: var(--figa-green-deep) !important; }
body.admin-body .sidebar { border-right: 1px solid rgba(255,255,255,.09); }
body.admin-body .sidebar .sidebar-logo,
body.admin-body .sidebar .logo-header { border-bottom: 1px solid rgba(255,255,255,.12); }
body.admin-body .figa-brand { gap: 8px; }
body.admin-body .figa-brand img {
    width: 38px; height: 38px; object-fit: contain; border-radius: 8px;
    background: var(--figa-paper);
}
body.admin-body .figa-brand__name { color: #f7fbf8; letter-spacing: .08em; }
body.admin-body .figa-brand__name small { color: var(--figa-yellow); }
body.admin-body .sidebar .nav > .nav-item > a {
    color: rgba(247,251,248,.82) !important;
    border-left: 3px solid transparent;
    border-radius: 6px !important;
}
body.admin-body .sidebar .nav > .nav-item > a i { color: #b9d9c2 !important; }
body.admin-body .sidebar .nav > .nav-item > a:hover,
body.admin-body .sidebar .nav > .nav-item.active > a {
    background: rgba(255,253,250,.12) !important;
    color: #fffdfa !important;
    border-left-color: var(--figa-yellow);
}
body.admin-body .sidebar .nav > .nav-item.active > a i,
body.admin-body .sidebar .nav > .nav-item > a:hover i { color: var(--figa-yellow) !important; }
body.admin-body .sidebar .nav-collapse li a { color: rgba(247,251,248,.72) !important; }
body.admin-body .sidebar .nav-collapse li a.active,
body.admin-body .sidebar .nav-collapse li a:hover {
    color: #fffdfa !important; background: rgba(255,253,250,.08);
}

body.admin-body .card,
body.admin-body .card-round,
body.admin-body .app-panel,
body.admin-body .card-form,
body.admin-body .figa-panel {
    background: var(--figa-paper) !important;
    border-color: var(--figa-line) !important;
    box-shadow: var(--figa-shadow) !important;
}
body.admin-body .card-header,
body.admin-body .figa-panel__head {
    background: #eef5f0 !important;
    border-bottom-color: var(--figa-line) !important;
}
body.admin-body .table > thead > tr > th,
body.admin-body thead th { background: #edf4ef !important; color: var(--figa-ink-soft) !important; }
body.admin-body .btn-primary,
body.admin-body .auth-block .btn,
body.admin-body .auth-block button {
    background: var(--figa-green-deep) !important;
    border-color: var(--figa-green-deep) !important;
}
body.admin-body .btn-primary:hover,
body.admin-body .auth-block .btn:hover,
body.admin-body .auth-block button:hover { background: #0e4c2f !important; }
body.admin-body .btn-warning,
body.admin-body .bg-yellow {
    background-color: var(--figa-yellow) !important;
    border-color: var(--figa-yellow) !important;
    color: #263b2e !important;
}
body.admin-body .form-control:focus,
body.admin-body .form-select:focus,
body.admin-body .ts-control:focus { border-color: var(--figa-green) !important; }
body.admin-body :focus-visible { outline-color: var(--figa-yellow) !important; }

/* Auth shell: keep the supplied FIGA mark, remove the legacy full-bleed
   treatment, and make the form the primary task surface. */
body.custom-cursor {
    min-height: 100dvh; overflow-x: hidden;
    background: var(--figa-canvas) !important; color: var(--figa-ink);
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.custom-cursor .page-wrapper,
body.custom-cursor .main-slider-one,
body.custom-cursor .main-slider-one__item {
    min-height: 100dvh; background: var(--figa-canvas) !important;
}
body.custom-cursor .page-wrapper {
    position: relative;
    height: 100dvh;
    overflow: hidden;
}
body.custom-cursor .main-slider-one {
    position: absolute;
    inset: 0;
}
body.custom-cursor .main-slider-one__item {
    display: flex; align-items: center;
}
body.custom-cursor .main-slider-one__bg {
    mix-blend-mode: normal;
    filter: brightness(.62) saturate(.9);
}
body.custom-cursor .main-slider-one__overlay {
    background: rgba(7, 34, 28, .38) !important;
    mix-blend-mode: normal;
}
body.custom-cursor .main-slider-one__shape {
    opacity: 1;
    transform: none;
}
body.custom-cursor .main-slider-one__sub-title,
body.custom-cursor .main-slider-one__title {
    opacity: 1;
    transform: none;
}
body.custom-cursor .main-slider-one__title::after {
    display: none;
}
body.custom-cursor .main-slider-one__carousel.owl-carousel .owl-nav,
body.custom-cursor .main-slider-one__carousel.owl-carousel .owl-nav.disabled {
    display: flex !important;
    top: auto;
    right: 50%;
    bottom: 34px;
    left: 0;
    max-width: none;
    margin: 0;
    transform: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
body.custom-cursor .auth-block {
    position: absolute;
    inset: 50% clamp(32px, 7vw, 112px) auto auto;
    transform: translateY(-50%);
    width: clamp(420px, 26vw, 520px);
    max-width: calc(50% - 48px);
    max-height: calc(100dvh - 32px);
    margin: 0;
    overflow: visible;
    z-index: 20;
}
body.custom-cursor .auth-block > .pb-4 { padding-bottom: 18px !important; }
body.custom-cursor .auth-block > .pb-4 img {
    width: 86px; height: 86px; object-fit: contain; border-radius: 18px;
    background: var(--figa-paper); box-shadow: 0 3px 12px rgba(23,52,49,.08);
}
body.custom-cursor .form-section {
    padding: 24px; background: var(--figa-paper);
    border: 1px solid var(--figa-line); border-top: 4px solid var(--figa-green);
    border-radius: 10px; box-shadow: var(--figa-shadow);
}
body.custom-cursor .sec-title__tagline { color: var(--figa-green-deep); }
body.custom-cursor .form-control,
body.custom-cursor .form-select {
    background: #fbfdfb; border-color: var(--figa-line) !important; color: var(--figa-ink);
}
body.custom-cursor .form-control:focus,
body.custom-cursor .form-select:focus {
    background: var(--figa-paper) !important; border-color: var(--figa-green) !important;
}
body.custom-cursor .auth-block a { color: var(--figa-green-deep); }
body.custom-cursor .custom-cursor__cursor,
body.custom-cursor .custom-cursor__cursor-two { display: none !important; }

/* Integrated user guide: compact on desktop and readable on small screens. */
.figa-guide { max-width: 1180px; margin: 0 auto; }
.figa-guide__hero { padding: clamp(24px, 4vw, 48px); margin-bottom: 24px; border: 1px solid var(--figa-line); border-left: 5px solid var(--figa-green); border-radius: 14px; background: linear-gradient(135deg, var(--figa-paper), #f0f7f2); box-shadow: var(--figa-shadow); }
.figa-guide__hero h1 { margin: 8px 0; color: var(--figa-ink); }
.figa-guide__hero p { max-width: 760px; margin: 0; color: var(--figa-muted); font-size: 1.05rem; }
.figa-guide__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; color: var(--figa-green-deep); font-size: .88rem; font-weight: 700; }
.figa-guide__grid { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); gap: 24px; align-items: start; }
.figa-guide__toc { position: sticky; top: 20px; padding: 18px; border: 1px solid var(--figa-line); border-radius: 12px; background: var(--figa-paper); box-shadow: var(--figa-shadow); }
.figa-guide__toc strong { display: block; margin-bottom: 10px; color: var(--figa-green-deep); }
.figa-guide__toc a { display: block; padding: 7px 0; color: var(--figa-ink); font-size: .9rem; text-decoration: none; }
.figa-guide__toc a:hover, .figa-guide__toc a:focus { color: var(--figa-green-deep); text-decoration: underline; }
.figa-guide__content { display: grid; gap: 14px; }
.figa-guide__section { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 24px; border: 1px solid var(--figa-line); border-radius: 12px; background: var(--figa-paper); box-shadow: 0 2px 10px rgba(20, 58, 47, .04); scroll-margin-top: 24px; }
.figa-guide__number { color: var(--figa-green); font-weight: 800; letter-spacing: .08em; }
.figa-guide__section h2 { margin: 0 0 10px; color: var(--figa-ink); font-size: 1.22rem; }
.figa-guide__section p { color: var(--figa-muted); line-height: 1.65; }
.figa-guide__section li { margin: 7px 0; color: var(--figa-muted); }
.figa-guide__section a { color: var(--figa-green-deep); font-weight: 700; }
@media (max-width: 767px) {
    .figa-guide__grid { grid-template-columns: 1fr; }
    .figa-guide__toc { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
    .figa-guide__toc strong { grid-column: 1 / -1; }
    .figa-guide__section { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 18px 16px; }
}

@media (min-width: 768px) and (max-height: 640px) {
    body.custom-cursor .auth-block {
        top: 12px;
        bottom: 12px;
        transform: none;
        max-height: none;
        overflow-y: auto;
    }
}

@media (max-width: 767px) {
    body.custom-cursor .main-slider-one__shape,
    body.custom-cursor .main-slider-one__content,
    body.custom-cursor .main-slider-one__carousel.owl-carousel .owl-nav,
    body.custom-cursor .main-slider-one__carousel.owl-carousel .owl-nav.disabled,
    body.custom-cursor .main-slider-one__carousel .owl-dots {
        display: none !important;
    }
    body.custom-cursor .auth-block {
        inset: 50% auto auto 50%;
        transform: translate(-50%, -50%);
        width: calc(100% - 28px);
        max-width: none;
        max-height: calc(100dvh - 24px);
        overflow-y: auto;
    }
    body.custom-cursor .form-section { padding: 19px 16px; }
}

/* FIGA ONE / institutional finish
   A restrained green system with red and yellow reserved for status and
   orientation. This layer stays additive so existing Twig and JS contracts
   remain untouched. */
:root {
    --primary-color: #176b55;
    --secondary-color: #c79a2b;
    --red-color: #b83b43;
    --black-color: #183c35;
    --white-color: #fffdf8;
    --light-color: #edf4f0;
    --app-bg: #f3f6f3;
    --surface-subtle: #e8f0ec;
    --surface-elevated: #fffdf8;
    --surface-muted: #e7eeea;
    --border: #cbdad3;
    --focus-ring: rgba(199,154,43,.34);
    --shadow-sm: 0 1px 2px rgba(24,60,53,.05), 0 10px 26px rgba(24,60,53,.055);
    --figa-green: #176b55;
    --figa-green-deep: #0d4c3d;
    --figa-ink: #183c35;
    --figa-muted: #5d716b;
    --figa-paper: #fffdf8;
    --figa-line: #cbdad3;
    --figa-yellow: #d0a52f;
    --figa-gold: #a87912;
    --figa-shadow: 0 1px 2px rgba(24,60,53,.05), 0 12px 30px rgba(24,60,53,.06);
}

body.admin-body {
    background: #f3f6f3;
    color: var(--figa-ink);
    letter-spacing: .002em;
}
body.admin-body .main-header {
    background: rgba(255,253,248,.97);
    box-shadow: 0 1px 0 rgba(24,60,53,.04);
}
body.admin-body .page-inner { padding-top: 22px; }

/* Brand and navigation: dark ink-green, not a full-page green wash. */
.sidebar.sidebar-style-2[data-background-color="dark"],
.sidebar.sidebar-style-2[data-background-color="dark"] .sidebar-wrapper,
.sidebar.sidebar-style-2[data-background-color="dark"] .logo-header {
    background: #123f36 !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] {
    border-right: 1px solid #2d5b50;
}
body.admin-body .figa-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 9px;
    background: #fffdf8;
    padding: 2px;
}
body.admin-body .figa-brand__name {
    color: #f4f7f1;
    font-size: 1rem;
    letter-spacing: .14em;
}
body.admin-body .figa-brand__name small {
    color: #e4c550;
    font-size: .58em;
    letter-spacing: .12em;
}
.sidebar.sidebar-style-2 .nav > .nav-item { margin-block: 2px; }
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a {
    min-height: 40px;
    border-radius: 6px;
    color: #d8e8e1 !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a i {
    color: #d9b94a !important;
    width: 20px;
    text-align: center;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a:hover,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item > a:focus-visible {
    background: #1b5146 !important;
    color: #fffdf8 !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item.active > a {
    background: #fffdf8 !important;
    color: #103f35 !important;
    box-shadow: inset 3px 0 0 #d0a52f;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav > .nav-item.active > a i {
    color: #176b55 !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse {
    margin: 2px 0 5px 18px;
    border-left: 1px solid #4a7469;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a {
    min-height: 32px;
    padding-block: 7px !important;
    color: #c6dbd3 !important;
}
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a.active,
.sidebar.sidebar-style-2[data-background-color="dark"] .nav-collapse li a:hover {
    color: #fffdf8 !important;
    background: #1b5146 !important;
}

/* Workspace primitives */
.card, .card-round, .app-panel, .figa-panel {
    border-radius: 9px !important;
    box-shadow: 0 1px 2px rgba(24,60,53,.04), 0 6px 18px rgba(24,60,53,.035);
}
.card-header, .figa-panel__head {
    padding: 13px 16px !important;
}
.card-form::after { display: none; }
.card-form { border-top-width: 3px !important; }
.btn {
    border-radius: 6px !important;
    min-height: 38px;
    letter-spacing: .005em;
}
.btn-primary, .btn-success, .grdeen-btn {
    background: var(--figa-green) !important;
    border-color: var(--figa-green) !important;
}
.btn-primary:hover, .btn-success:hover, .grdeen-btn:hover {
    background: var(--figa-green-deep) !important;
    border-color: var(--figa-green-deep) !important;
}
.btn-warning, .bg-yellow {
    background: var(--figa-yellow) !important;
    border-color: var(--figa-yellow) !important;
    color: #253b2f !important;
}
.btn-danger {
    background: var(--red-color) !important;
    border-color: var(--red-color) !important;
}
.btn-light, .btn-outline-secondary {
    background: #edf4f0 !important;
    border-color: #b9cec4 !important;
    color: var(--figa-green-deep) !important;
}
.form-control, .form-select, .ts-wrapper {
    border-color: var(--figa-line) !important;
    background: #fbfdfb !important;
    color: var(--figa-ink) !important;
}
.form-control:focus, .form-select:focus, .ts-wrapper.single.input-active .ts-control {
    background: var(--figa-paper) !important;
    border-color: var(--figa-green) !important;
    box-shadow: 0 0 0 3px rgba(23,107,85,.1) !important;
}
thead th {
    background: #eaf2ee !important;
    color: var(--figa-green-deep) !important;
    font-size: .72rem !important;
    letter-spacing: .045em;
}
.table > tbody > tr { border-color: #e0e9e4; }
.table > tbody > tr:hover { background: #f3f8f5; }
.badge.bg-light { background: #e4f0eb !important; color: var(--figa-green-deep) !important; }

/* Guide: useful reference surface, not a marketing hero. */
.figa-guide__hero {
    background: #eaf2ee;
    border-left: 4px solid var(--figa-green);
    border-radius: 9px;
    box-shadow: none;
}
.figa-guide__hero p { font-size: .98rem; }
.figa-guide__toc {
    top: 78px;
    border-radius: 8px;
    box-shadow: none;
}
.figa-guide__toc a { border-bottom: 1px solid #e3ebe7; }
.figa-guide__section {
    border-radius: 8px;
    box-shadow: none;
}
.figa-guide__section h2 { font-size: 1.12rem; }

@media (max-width: 1024px) {
    :root { --sidebar-space: 224px; }
    .figa-kpi-grid--analytics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .figa-analytics-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    body.admin-body .page-inner { padding: 15px 12px 28px; }
    body.admin-body .main-header { min-height: 56px; }
    .header-context { max-width: calc(100vw - 150px); }
    .header-context__agency { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .figa-kpi-grid--analytics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .figa-kpi { padding: 12px; }
    .figa-kpi strong { font-size: 1.35rem; }
    .figa-guide__hero { padding: 20px 17px; }
    .figa-guide__section { grid-template-columns: 34px minmax(0, 1fr); }
}
@media (max-width: 390px) {
    html { font-size: 15px; }
    body.admin-body .page-inner { padding-inline: 10px; }
    .figa-kpi-grid--analytics { grid-template-columns: 1fr 1fr; }
    .figa-kpi span { font-size: .66rem; }
    .figa-guide__toc { grid-template-columns: 1fr; }
}
@media (max-width: 320px) {
    .figa-kpi-grid--analytics { grid-template-columns: 1fr; }
    .figa-guide__section { display: block; }
    .figa-guide__number { display: block; margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Guide reading system
   The guide is a working reference: sequence first, detail second, exception
   last. These rules deliberately use the existing FIGA tokens and no motion. */
.figa-guide {
    min-width: 0;
    color: var(--figa-ink);
}

.figa-guide__hero h1,
.figa-guide__section h2,
.figa-guide__section h3 {
    color: var(--figa-ink);
    text-wrap: balance;
}

.figa-guide__hero h1 {
    max-width: 18ch;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.figa-guide__section h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: clamp(1.12rem, 1.8vw, 1.38rem);
    line-height: 1.22;
    letter-spacing: -.012em;
}

.figa-guide__section h3 {
    margin: 25px 0 9px;
    padding-top: 13px;
    border-top: 1px solid #e3ebe7;
    font-size: .96rem;
    line-height: 1.35;
    letter-spacing: .01em;
}

.figa-guide__section > div {
    min-width: 0;
}

.figa-guide__section p {
    max-width: 78ch;
    margin-top: 0;
    margin-bottom: 13px;
}

.figa-guide__section ul,
.figa-guide__section ol {
    max-width: 78ch;
    margin: 10px 0 18px;
    padding-left: 1.35rem;
}

.figa-guide__section li {
    padding-left: .15rem;
    line-height: 1.62;
}

.figa-guide__section li + li {
    margin-top: 9px;
}

.figa-guide__flow {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 22px;
    padding: 12px;
    border: 1px solid #b9cec4;
    border-radius: 8px;
    background: #f1f7f3;
}

.figa-guide__flow span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #a9c2b7;
    border-radius: 5px;
    background: var(--figa-paper);
    color: var(--figa-green-deep);
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.figa-guide__flow b {
    display: inline-flex;
    align-items: center;
    color: var(--figa-gold);
    font-size: 1.05rem;
    line-height: 1;
}

.figa-guide__flow em {
    align-self: center;
    color: var(--figa-muted);
    font-size: .8rem;
    font-style: normal;
    font-weight: 700;
}

.figa-guide__table {
    width: 100%;
    max-width: 100%;
    margin: 12px 0 22px;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--figa-line);
    border-radius: 8px;
    background: var(--figa-paper);
    overflow: hidden;
}

.figa-guide__table th,
.figa-guide__table td {
    width: auto;
    padding: 11px 12px;
    border-bottom: 1px solid #e0e9e4;
    color: var(--figa-muted);
    font-size: .86rem;
    line-height: 1.48;
    text-align: left;
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.figa-guide__table thead th {
    background: #eaf2ee !important;
    color: var(--figa-green-deep) !important;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.figa-guide__table tbody th {
    color: var(--figa-ink);
    font-weight: 800;
}

.figa-guide__table tr:last-child th,
.figa-guide__table tr:last-child td {
    border-bottom: 0;
}

.figa-guide__table tbody tr:nth-child(even) {
    background: #fbfdfb;
}

.figa-guide__callout,
.figa-guide__warning {
    max-width: 78ch;
    margin: 18px 0 0 !important;
    padding: 13px 15px;
    border: 1px solid #b9cec4;
    border-left: 4px solid var(--figa-green);
    border-radius: 6px;
    background: #edf5f1;
    color: var(--figa-green-deep) !important;
    font-size: .91rem;
    line-height: 1.58 !important;
}

.figa-guide__callout strong,
.figa-guide__warning strong {
    color: var(--figa-ink);
}

.figa-guide__warning {
    border-color: #e1c9a0;
    border-left-color: var(--figa-yellow);
    background: #fff8e8;
    color: #6b531b !important;
}

@media (max-width: 767px) {
    .figa-guide__flow {
        align-items: center;
        gap: 6px;
        padding: 10px;
    }

    .figa-guide__flow span {
        flex: 1 1 calc(50% - 24px);
        min-width: min(120px, 100%);
        padding: 8px 9px;
        font-size: .78rem;
    }

    .figa-guide__flow b {
        flex: 0 0 auto;
    }

    .figa-guide__table {
        font-size: .8rem;
    }

    .figa-guide__table th,
    .figa-guide__table td {
        padding: 9px 8px;
        font-size: .78rem;
    }

    .figa-guide__table thead th {
        font-size: .65rem;
        letter-spacing: .025em;
    }

    .figa-guide__callout,
    .figa-guide__warning {
        padding: 12px;
    }
}

@media (max-width: 430px) {
    .figa-guide__flow {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .figa-guide__flow span {
        min-width: 0;
    }

    .figa-guide__flow b {
        justify-content: center;
        transform: rotate(90deg);
    }

    .figa-guide__flow em {
        grid-column: 1 / -1;
    }

    .figa-guide__table th,
    .figa-guide__table td {
        padding-inline: 6px;
        font-size: .73rem;
    }
}

/* Business plans: official density with a quiet reading rhythm. */
.business-plan-canvas { display:grid; gap:14px; }
.business-plan-canvas__control { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
.business-plan-canvas__switcher { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; padding:5px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface-subtle); }
.business-plan-canvas__tab { display:flex; align-items:center; gap:8px; min-width:0; min-height:44px; padding:8px 10px; border:1px solid transparent; border-radius:var(--radius-sm); background:transparent; color:var(--figa-text-soft); text-align:left; font:inherit; cursor:pointer; transition:background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.business-plan-canvas__tab span { flex:0 0 auto; color:var(--secondary-color); font-size:.7rem; font-weight:900; letter-spacing:.08em; }
.business-plan-canvas__tab b { overflow:hidden; font-size:.76rem; line-height:1.2; text-overflow:ellipsis; }
.business-plan-canvas__tab:hover { color:var(--primary-color); background:var(--figa-surface); }
.business-plan-canvas__tab.is-active { border-color:var(--primary-color); background:var(--figa-surface); color:var(--primary-color); box-shadow:0 2px 7px rgba(18,75,74,.08); }
.business-plan-canvas__control:checked ~ .business-plan-canvas__switcher .business-plan-canvas__tab { border-color:transparent; background:transparent; color:var(--figa-text-soft); box-shadow:none; }
#business-plan-part-i-control:checked ~ .business-plan-canvas__switcher [for="business-plan-part-i-control"],
#business-plan-part-ii-control:checked ~ .business-plan-canvas__switcher [for="business-plan-part-ii-control"],
#business-plan-part-iii-control:checked ~ .business-plan-canvas__switcher [for="business-plan-part-iii-control"],
#business-plan-part-iv-control:checked ~ .business-plan-canvas__switcher [for="business-plan-part-iv-control"],
#business-plan-part-v-control:checked ~ .business-plan-canvas__switcher [for="business-plan-part-v-control"] { border-color:var(--primary-color); background:var(--figa-surface); color:var(--primary-color); box-shadow:0 2px 7px rgba(18,75,74,.08); }
.business-plan-canvas__tab:active { transform:translateY(1px); }
.business-plan-canvas__status { display:none; margin:-5px 2px 0; color:var(--figa-text-soft); font-size:.75rem; font-weight:700; }
.business-plan-part[hidden] { display:none !important; }
.business-plan-canvas .business-plan-part { display:none !important; }
#business-plan-part-i-control:checked ~ #business-plan-part-i,
#business-plan-part-ii-control:checked ~ #business-plan-part-ii,
#business-plan-part-iii-control:checked ~ #business-plan-part-iii,
#business-plan-part-iv-control:checked ~ #business-plan-part-iv,
#business-plan-part-v-control:checked ~ #business-plan-part-v { display:block !important; }
.business-plan-part { margin:0; padding:16px; border:1px solid var(--border); border-left:3px solid var(--primary-color); border-radius:var(--radius-md); background:var(--figa-surface); }
.business-plan-part > h3 { display:flex; align-items:center; gap:10px; margin:0 0 12px; color:var(--figa-text); font-size:1rem; }
.business-plan-part > h3 span { color:var(--secondary-color); font-size:.75rem; letter-spacing:.08em; }
.business-plan-part__hint { margin:-4px 0 14px; color:var(--figa-text-soft); font-size:.82rem; }
.business-plan-field-group { margin-top:14px; padding:12px 13px 4px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-subtle); }
.business-plan-field-group h4 { margin:0 0 9px; color:var(--figa-text); font-size:.78rem; font-weight:850; letter-spacing:.045em; text-transform:uppercase; }
.business-plan-field-grid { display:grid; gap:8px 12px; }
.business-plan-field-grid--three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.business-plan-year-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.business-plan-year-card { min-width:0; padding:10px 11px 2px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--figa-surface); }
.business-plan-year-card > .form-group { margin-bottom:7px; }
.business-plan-year-card > .form-group > label { color:var(--primary-color); font-size:.78rem; font-weight:850; }
.business-plan-year-card .form-group { padding:3px 0 !important; }
.business-plan-field-group--totals { padding-bottom:12px; }
.business-plan-subsection { margin:14px 0 0; padding:13px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-subtle); }
.business-plan-subsection legend { width:auto; padding:0 6px; color:var(--figa-text); font-size:.9rem !important; font-weight:800; }
.business-plan-totals { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.business-plan-part .form-section-group { margin:14px 0 0; padding:13px; background:var(--surface-subtle); }
.business-plan-part .form-section-group legend { color:var(--figa-text); font-size:.9rem !important; }
.business-plan-collection { display:grid; gap:9px; margin-bottom:10px; }
.business-plan-collection .collection-row { padding:9px 10px 5px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--figa-surface); }
.business-plan-line-grid { display:grid; align-items:end; gap:7px 10px; }
.business-plan-line-grid--financing { grid-template-columns:2fr repeat(5,minmax(74px,1fr)); }
.business-plan-line-grid--forecast { grid-template-columns:2fr repeat(3,minmax(84px,1fr)); }
.business-plan-line-grid .form-group { min-width:0; padding:3px 0 !important; }
.business-plan-line-grid label { font-size:.7rem; line-height:1.2; }
.business-plan-line-grid .btn-remove { grid-column:1 / -1; justify-self:start; min-height:30px; }
.business-plan-repayment-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.business-plan-collection .btn-remove { color:var(--red-color); }
.business-plan-read-nav { display:flex; flex-wrap:wrap; gap:4px; margin:0 0 18px; border-bottom:1px solid var(--border); }
.business-plan-read-nav a { padding:10px 13px; color:var(--figa-text-soft); font-weight:800; text-decoration:none; border-bottom:3px solid transparent; }
.business-plan-read-nav a:hover, .business-plan-read-nav a:focus-visible { color:var(--primary-color); border-bottom-color:var(--secondary-color); }
.business-plan-read-nav a:first-child { color:var(--primary-color); }
.business-plan-read-nav span { margin-left:4px; }
.business-plan-read-section { scroll-margin-top:82px; padding:20px 0; border-bottom:1px solid var(--border); }
.business-plan-read-section__heading { display:flex; gap:12px; align-items:flex-start; margin-bottom:14px; }
.business-plan-read-section__heading > span { color:var(--secondary-color); font-size:.75rem; font-weight:900; letter-spacing:.1em; padding-top:4px; }
.business-plan-read-section__heading h2 { margin:0 0 3px; font-size:1.15rem; }
.business-plan-read-section__heading p { margin:0; color:var(--figa-text-soft); }
.business-plan-read-part { border:1px solid var(--border); border-radius:var(--radius-sm); margin:8px 0; background:var(--figa-surface); }
.business-plan-read-part summary { display:flex; align-items:center; gap:10px; cursor:pointer; padding:12px 14px; color:var(--figa-text); font-weight:800; }
.business-plan-read-part summary span { min-width:25px; color:var(--secondary-color); font-size:.72rem; }
.business-plan-read-part[open] summary { border-bottom:1px solid var(--border); background:var(--surface-subtle); }
.business-plan-read-part .figa-detail__canvas-list { padding:12px 14px; }
.business-plan-attachment { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 15px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-subtle); }
.business-plan-attachment span { overflow-wrap:anywhere; }
.business-plan-attachment i { color:var(--primary-color); margin-right:7px; }
.business-plan-read-wide { grid-column:1/-1; }
.business-plan-context { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:16px; }
.business-plan-context__card { min-width:0; padding:16px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface-elevated); box-shadow:var(--shadow-sm); }
.business-plan-context__card header { margin-bottom:12px; }
.business-plan-context__card h3 { margin:4px 0 0; color:var(--primary-color); font-size:1rem; }
.business-plan-context__source { color:#8a621d; font-size:.67rem; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.business-plan-context__card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 14px; margin:0; }
.business-plan-context__card dl div { min-width:0; padding-top:8px; border-top:1px solid var(--border); }
.business-plan-context__card dt { color:var(--figa-text-soft); font-size:.7rem; font-weight:800; text-transform:uppercase; }
.business-plan-context__card dd { margin:3px 0 0; overflow-wrap:anywhere; color:var(--figa-text); font-weight:650; }
.business-plan-context-empty { margin:14px 0 0; padding:12px 14px; border-left:3px solid var(--secondary-color); background:var(--surface-subtle); color:var(--figa-text-soft); }
.business-plan-related-documents { margin-top:14px; padding:14px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface-subtle); }
.business-plan-related-documents h3 { margin:0 0 3px; font-size:.9rem; }
.business-plan-related-documents ul { display:grid; gap:7px; margin:10px 0 0; padding:0; list-style:none; }
.business-plan-related-documents li { display:flex; align-items:center; gap:8px; min-width:0; padding:8px 10px; border-radius:var(--radius-sm); background:var(--surface-elevated); }
.business-plan-related-documents li span { min-width:0; overflow-wrap:anywhere; font-weight:700; }
.business-plan-related-documents li small { margin-left:auto; color:var(--figa-text-soft); }
@media (min-width:768px) and (max-width:1199px) {
    .business-plan-line-grid--financing { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .business-plan-line-grid--forecast { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .business-plan-line-grid--financing .form-group:first-child, .business-plan-line-grid--forecast .form-group:first-child { grid-column:1 / -1; }
}
@media (max-width:767px) {
    .business-plan-canvas__switcher { display:flex; overflow-x:auto; gap:4px; scrollbar-width:thin; }
    .business-plan-canvas__tab { flex:0 0 auto; min-width:128px; }
    .business-plan-canvas__status { display:block; }
    .business-plan-read-nav { overflow-x:auto; flex-wrap:nowrap; }
    .business-plan-read-nav a { white-space:nowrap; }
    .business-plan-part { padding:13px; }
    .business-plan-field-grid--three, .business-plan-year-grid, .business-plan-totals, .business-plan-repayment-grid, .business-plan-context, .business-plan-context__card dl { grid-template-columns:1fr; }
    .business-plan-line-grid--financing, .business-plan-line-grid--forecast { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .business-plan-line-grid--financing .form-group:first-child, .business-plan-line-grid--forecast .form-group:first-child { grid-column:1 / -1; }
    .business-plan-attachment { align-items:flex-start; flex-direction:column; }
    .business-plan-attachment .btn { width:100%; }
}
@media (prefers-reduced-motion: reduce) {
    .business-plan-canvas__tab { transition:none; }
}
@media print {
    .business-plan-read-nav, .figa-actions, .business-plan-show .figa-detail__hero .badge { display:none !important; }
    .business-plan-read-section, .business-plan-read-part { break-inside:avoid; }
    .business-plan-read-part:not([open]) > * { display:block !important; }
}

/* Guide utilisateur : documentation dense, repérable et confortable. */
.figa-guide { --guide-ink:var(--figa-text,#193332); --guide-muted:var(--figa-text-soft,#526662); --guide-paper:var(--figa-surface,#fffdf8); --guide-wash:var(--figa-surface-alt,#eef4f1); max-width:1460px; margin:0 auto; color:var(--guide-ink); }
.figa-guide__hero { margin-bottom:20px; padding:clamp(22px,4vw,42px); border:1px solid var(--border); border-top:5px solid var(--primary-color); border-radius:var(--radius-lg); background:linear-gradient(120deg,var(--guide-paper),var(--guide-wash)); box-shadow:var(--shadow-sm); }
.figa-guide__hero h1 { margin:7px 0 8px; font-size:clamp(2rem,4vw,3.3rem); letter-spacing:-.045em; }
.figa-guide__hero p { max-width:780px; margin:0; color:var(--guide-muted); font-size:1rem; }
.figa-guide__meta { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:18px; color:var(--guide-muted); font-size:.8rem; font-weight:700; }
.figa-guide__meta i { margin-right:5px; color:var(--secondary-color); }
.figa-guide__grid { display:grid; grid-template-columns:220px minmax(0,1fr); gap:24px; align-items:start; }
.figa-guide__toc { position:sticky; top:76px; display:grid; gap:2px; padding:15px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--guide-wash); }
.figa-guide__toc strong { padding:3px 8px 9px; color:var(--primary-color); letter-spacing:.04em; text-transform:uppercase; font-size:.72rem; }
.figa-guide__toc a { padding:7px 8px; color:var(--guide-muted); border-left:2px solid transparent; text-decoration:none; font-size:.8rem; line-height:1.25; }
.figa-guide__toc a:hover,.figa-guide__toc a:focus-visible { color:var(--primary-color); border-left-color:var(--secondary-color); background:var(--guide-paper); }
.figa-guide__content { min-width:0; }
.figa-guide__section { scroll-margin-top:82px; margin-bottom:18px; }
.figa-guide__reference { display:grid; grid-template-columns:44px minmax(0,1fr); gap:16px; padding:22px 24px; border:1px solid var(--border); border-radius:var(--radius-lg); background:var(--guide-paper); box-shadow:var(--shadow-sm); }
.figa-guide__reference > div { min-width:0; }
.figa-guide__reference h2 { margin:0 0 8px; font-size:clamp(1.15rem,2vw,1.55rem); letter-spacing:-.02em; }
.figa-guide__reference h3 { margin:17px 0 5px; color:var(--primary-color); font-size:.95rem; }
.figa-guide__reference p { color:var(--guide-muted); }
.figa-guide__number { display:inline-flex; align-items:flex-start; justify-content:center; min-width:36px; padding-top:3px; color:var(--secondary-color); font:800 .75rem/1 var(--font-mono,ui-monospace,monospace); letter-spacing:.04em; }
.figa-guide__role-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:15px 0; }
.figa-guide__role-grid article { padding:13px; border-left:3px solid var(--secondary-color); background:var(--guide-wash); }
.figa-guide__role-grid article p { margin:0; font-size:.86rem; }
.figa-guide__role-grid h3 { margin-top:0; }
.figa-guide__matrix { min-width:700px; }
.figa-guide__matrix td { font-size:.78rem !important; }
.figa-guide__reference details { border-top:1px solid var(--border); padding:10px 0; }
.figa-guide__reference details:last-child { border-bottom:1px solid var(--border); }
.figa-guide__reference summary { cursor:pointer; color:var(--primary-color); font-weight:800; }
.figa-guide__reference details p { margin:8px 0 0; }
.figa-guide__glossary { display:grid; grid-template-columns:minmax(120px,.35fr) 1fr; margin:15px 0 0; border-top:1px solid var(--border); }
.figa-guide__glossary dt,.figa-guide__glossary dd { margin:0; padding:9px 10px; border-bottom:1px solid var(--border); }
.figa-guide__glossary dt { color:var(--primary-color); font-weight:800; }
.figa-guide__glossary dd { color:var(--guide-muted); }
@media (max-width:900px) { .figa-guide__grid { grid-template-columns:1fr; } .figa-guide__toc { position:static; display:flex; flex-wrap:wrap; gap:3px; } .figa-guide__toc strong { flex-basis:100%; } .figa-guide__toc a { flex:1 1 180px; } }
@media (max-width:600px) { .figa-guide__hero { padding:22px 17px; } .figa-guide__reference { grid-template-columns:1fr; gap:5px; padding:18px 15px; } .figa-guide__number { justify-content:flex-start; } .figa-guide__role-grid { grid-template-columns:1fr; } .figa-guide__glossary { grid-template-columns:1fr; } .figa-guide__glossary dt { padding-bottom:3px; border-bottom:0; } .figa-guide__glossary dd { padding-top:3px; } }
