.dashboard-hero {
    background:
        radial-gradient(circle at top left, rgba(247, 168, 27, 0.18), transparent 32%),
        linear-gradient(135deg, #12324a 0%, #1d5272 60%, #2f7ca8 100%);
    border-radius: 24px;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.dashboard-hero::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 55%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.dashboard-hero__content {
    z-index: 1;
}

.dashboard-hero__title {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.1;
}

.dashboard-hero__text {
    max-width: 760px;
}

.dashboard-chip {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.45rem 0.85rem;
    text-transform: uppercase;
}

.dashboard-panel {
    border: 1px solid #e8eef5;
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(18, 50, 74, 0.06);
    height: auto;
}

.dashboard-stat-card {
    border: 1px solid #e8eef5;
    border-radius: 18px;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-stat-card:hover,
.dashboard-quick-link:hover {
    box-shadow: 0 18px 32px rgba(18, 50, 74, 0.1);
    transform: translateY(-2px);
}

.dashboard-stat-value {
    color: #12324a;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-quick-link {
    align-items: center;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    color: inherit;
    display: flex;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-quick-link:hover {
    background: #f8fbff;
    border-color: #d5e5f2;
}

.dashboard-quick-link__icon {
    align-items: center;
    background: #ecf5fb;
    border-radius: 14px;
    color: #0f6c98;
    display: inline-flex;
    font-size: 1.2rem;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.dashboard-quick-link__icon--compact {
    height: 40px;
    width: 40px;
}

.dashboard-list {
    width: 100%;
}

.dashboard-list-item {
    border: 1px solid #e8eef5;
    box-shadow: 0 8px 20px rgba(18, 50, 74, 0.04);
}

.dashboard-qr-thumb {
    align-items: center;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 12px;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    padding: 0.35rem;
}

.dashboard-qr-thumb__image {
    display: block;
    height: 72px;
    object-fit: contain;
    width: 72px;
}

.dashboard-list-item + .dashboard-list-item {
    border-top: 1px solid #edf2f7;
}

.dashboard-empty {
    background: #f8fbff;
    border: 1px dashed #c8d9e8;
    border-radius: 18px;
    color: #4b6476;
    padding: 1.25rem;
}

.dashboard-cote-panel {
    border-top: 1px solid #edf2f7;
}

.dashboard-cote-donut {
    align-items: center;
    aspect-ratio: 1;
    background:
        radial-gradient(circle at center, #fff 0 54%, transparent 55% 100%),
        conic-gradient(#0f6c98 0 var(--cote-used-percent), #e6edf5 var(--cote-used-percent) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    margin-inline: auto;
    max-width: 190px;
    width: 100%;
}

.dashboard-cote-donut__inner {
    align-items: center;
    color: #12324a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.dashboard-cote-donut__value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-cote-donut__label {
    color: #5d7385;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    text-transform: uppercase;
}

.dashboard-cote-metric {
    align-items: center;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: auto 1fr auto;
    padding: 0.95rem 1rem;
}

.dashboard-cote-metric__dot {
    border-radius: 999px;
    display: inline-block;
    height: 12px;
    width: 12px;
}

.dashboard-cote-metric__dot--generated {
    background: #12324a;
}

.dashboard-cote-metric__dot--used {
    background: #0f6c98;
}

.dashboard-cote-metric__dot--unused {
    background: #f7a81b;
}

.dashboard-cote-metric__value {
    color: #12324a;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}

.planclassement-row--level-1 td {
  background: #c7d8ff !important;
  color: #12324a;
  font-weight: 700;
}

.planclassement-group-heading {
    background: #d7e6ff !important;
    border: 1px solid #bfd5fb;
    border-radius: 14px 14px 0 0;
    color: #12324a;
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
    padding: 0.85rem 1rem;
    text-align: center;
    text-transform: uppercase;
}

.archives-chart-bar {
  background: #e9eef8;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.archives-chart-bar__fill {
  background: linear-gradient(90deg, #1d5272 0%, #2f7ca8 100%);
  border-radius: 999px;
  height: 100%;
}

.planclassement-label--level-2 {
    padding-left: 1rem;
}

.planclassement-label--level-3 {
    padding-left: 2.5rem;
}

.login-page__container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

.login-page__content {
    margin-top: 0;
}

.login-page__flash {
    margin: 1% auto;
    text-align: center;
    width: min(50%, 680px);
}

.login-page__title {
    color: #f7a81b;
    font-size: 25px;
    text-transform: uppercase;
}

.login-page__main {
    width: 100%;
    max-width: 1180px;
}

.login-page__hero {
    overflow: visible;
    height: auto;
}

.login-page__hero-image {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
}

.login-page__hero--mobile .login-page__hero-image {
    max-height: 240px;
    object-fit: cover;
}

.login-page__footer-wrap {
    margin-top: 1.5rem;
}

.login-page__footer {
    color: #f7a81b;
    margin-bottom: 0;
}

@media (max-width: 991.98px) {
    .login-page__container {
        justify-content: flex-start;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .login-page__flash {
        width: min(100%, 680px);
        margin: 0 auto 1rem;
    }

    .login-page__title {
        font-size: 22px;
    }

    .login-page__hero--mobile {
        display: flex;
        justify-content: center;
    }

    .login-page__hero--mobile .login-page__hero-image {
        margin: 0 auto;
    }

    .login-page__footer-wrap {
        margin-top: 1rem;
    }
}

@media (min-width: 992px) {
    .login-page__container {
        justify-content: flex-start;
        padding-top: 1rem;
        padding-bottom: 0;
    }

    .login-page__content {
        margin-top: 0;
    }

    .login-page__footer-wrap {
        margin-top: -6rem;
    }

    .login-page__main .row {
        align-items: stretch !important;
        --bs-gutter-x: 1.5rem;
    }

    .login-page__main .col-lg-6 {
        display: flex;
    }

    .login-page__main .col-lg-6 > .mw-548,
    .login-page__main .col-lg-6 > .login-page__hero {
        width: 100%;
    }

    .login-page__main .mw-548.ms-lg-auto {
        max-width: 100%;
        margin-left: 0 !important;
    }

    .login-page__hero {
        min-height: auto;
        max-height: none;
        border-radius: 0;
    }

    .login-page__hero-image {
        width: auto;
        max-width: 100%;
        height: auto;
    }
}

.app-footer__text {
    color: #f7a81b;
}

.app-breadcrumb {
    --bs-breadcrumb-divider: ">";
}

.app-breadcrumb__item {
    margin-left: 30px;
}

.app-page-spacer {
    margin-top: 1%;
}

.app-table-col-ref {
    width: 15%;
}

.app-table-col-title {
    width: 30%;
}

.app-table-col-code {
    width: 10%;
}

.app-table-col-action {
    width: 5%;
}

.app-table-col-localisation {
    width: 50%;
}

.app-table-col-local-code {
    width: 30%;
}

.app-table-col-local-state {
    width: 15%;
}

.app-table-col-service-name {
    width: 30%;
}

.app-table-col-service-action {
    width: 5px;
}

.app-table-col-avatar {
    width: 10%;
}

.app-table-col-user-name {
    width: 30%;
}

.app-table-col-user-id {
    width: 10%;
}

.app-table-col-user-phone {
    width: 15%;
}

.app-table-responsive-narrow {
    width: 98%;
}

.app-button-inline {
    float: right;
    font-size: 14px;
}

.app-filter-form {
    flex: 1 1 820px;
    width: 100%;
}

.app-filter-actions {
    align-items: end;
    flex-wrap: nowrap;
}

.app-filter-button {
    align-items: center;
    border-radius: 0.75rem;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    min-width: 130px;
    padding-inline: 1rem;
    white-space: nowrap;
}

.app-reset-button {
    min-width: 130px;
}

.app-export-actions {
    flex: 0 0 auto;
}

.app-badge-fixed {
    width: 100px;
}

.app-badge-inline-end {
    float: inline-end;
}

.app-empty-state {
    font-size: 14px;
    text-align: center;
}

.app-empty-state--large {
    font-size: 18px;
}

.app-empty-state--danger {
    color: red;
}

.text-justify {
    text-align: justify;
}

.sidebar-brand__logo {
    margin: 20px 0 0 45px;
    max-width: 60%;
}

.app-search-table {
    font-size: 12px;
}

.app-search-table__title {
    width: 22%;
}

.app-search-table__title-cell {
    max-width: 320px;
}

.app-search-table__actions {
    width: 70px;
}

.app-confidentiality-badge {
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
}

.app-confidentiality-badge--usage-interne {
    background: #e7f4ea;
    color: #1d7a3b;
}

.app-confidentiality-badge--restreint {
    background: #fff0d9;
    color: #b86800;
}

.app-confidentiality-badge--secret {
    background: #fde2e2;
    color: #b42318;
}

.app-confidentiality-badge--non-renseigne {
    background: #eef2f7;
    color: #526076;
}

.app-selection-checkbox {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 2px solid #7289a6;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    height: 22px;
    min-height: 22px;
    min-width: 22px;
    position: relative;
    vertical-align: middle;
    width: 22px;
}

.app-selection-checkbox:checked {
    background: #635bff;
    border-color: #635bff;
}

.app-selection-checkbox:checked::after {
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    height: 11px;
    left: 7px;
    position: absolute;
    top: 2px;
    transform: rotate(45deg);
    width: 5px;
}

.app-selection-checkbox:focus {
    border-color: #355c7d;
    box-shadow: 0 0 0 0.2rem rgba(99, 91, 255, 0.18);
    outline: none;
}

.app-workflow-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.48rem 0.78rem;
    white-space: nowrap;
}

.app-workflow-badge--draft {
    background: #eef2f7;
    color: #526076;
}

.layout-menu .menu-sub .menu-link {
    align-items: flex-start;
    height: auto;
    line-height: 1.35;
    min-height: 44px;
    padding-bottom: 10px;
    padding-top: 10px;
    white-space: normal;
    word-break: break-word;
}

.layout-menu .menu-sub .menu-link.active {
    white-space: normal;
}

.app-workflow-badge--submitted,
.app-workflow-badge--under-review {
    background: #e7f0ff;
    color: #285ea8;
}

.app-workflow-badge--approved,
.app-workflow-badge--generated,
.app-workflow-badge--pending-validation {
    background: #fff0d9;
    color: #b86800;
}

.app-workflow-badge--validated,
.app-workflow-badge--executed {
    background: #e7f4ea;
    color: #1d7a3b;
}

.app-workflow-badge--cancelled,
.app-workflow-badge--rejected {
    background: #fde2e2;
    color: #b42318;
}

.app-workflow-help {
    color: #6c7a92;
    display: block;
    font-size: 0.8rem;
    line-height: 1.35;
    margin-top: 0.35rem;
}

.app-access-warning {
    border: 1px solid #f6d08f;
    border-radius: 1rem;
    color: #8a5a00;
    margin-bottom: 1rem;
}

.profile-overview {
    display: grid;
    gap: 1.5rem;
}

.profile-overview__intro {
    background: linear-gradient(135deg, #f7fafc 0%, #edf4fa 100%);
    border: 1px solid #e2ebf3;
    border-radius: 26px;
    padding: 1.75rem 1.9rem;
}

.profile-overview__eyebrow,
.profile-panel__eyebrow {
    color: #6c8197;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-overview__title {
    color: #17334b;
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.profile-overview__text {
    color: #587084;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 760px;
}

.profile-identity-card {
    align-items: center;
    background: #fff;
    border: 1px solid #e2ebf3;
    border-radius: 28px;
    display: flex;
    gap: 1.4rem;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 16px 38px rgba(19, 49, 73, 0.08);
}

.profile-identity-card__avatar img {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f8 100%);
    border: 6px solid #f7fafc;
    box-shadow: 0 10px 24px rgba(22, 50, 74, 0.08);
    border-radius: 50%;
    height: 132px;
    object-fit: cover;
    padding: 6px;
    width: 132px;
}

.profile-identity-card__content {
    flex: 1 1 auto;
}

.profile-identity-card__name {
    color: #18344d;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.profile-identity-card__role,
.profile-identity-card__meta {
    color: #516779;
    font-size: 0.94rem;
    line-height: 1.7;
}

.profile-identity-card__actions {
    align-self: flex-end;
}

.profile-identity-card__back {
    min-width: 92px;
    padding: 0.48rem 0.95rem;
}

.profile-identity-card__back:hover,
.profile-identity-card__back:focus {
    background-color: #2d6f95 !important;
    border-color: #2d6f95 !important;
    color: #fff !important;
}

.profile-panel {
    background: #fff;
    border: 1px solid #e7edf4;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(18, 50, 74, 0.08);
    padding: 1.75rem;
}

.profile-panel--danger {
    border-color: #ffd6cf;
    box-shadow: 0 18px 45px rgba(160, 40, 0, 0.06);
}

.profile-panel__header {
    margin-bottom: 1.25rem;
}

.profile-panel__title {
    color: #16324a;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0.4rem 0 0;
}

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

.profile-summary-item {
    background: #f7faff;
    border: 1px solid #e5edf7;
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

.profile-summary-item__label {
    color: #6f8093;
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    margin-bottom: 0.45rem;
    text-transform: uppercase;
}

.profile-summary-item__value {
    color: #16324a;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.6;
}

.profile-avatar-form {
    display: grid;
    gap: 0.9rem;
}

.profile-avatar-form__preview {
    display: flex;
    justify-content: center;
}

.profile-avatar-form__preview img {
    background: linear-gradient(180deg, #ffffff 0%, #eef4f8 100%);
    border: 5px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(24, 52, 77, 0.12);
    height: 96px;
    object-fit: cover;
    width: 96px;
}

.profile-avatar-form__controls {
    align-items: center;
    display: grid;
    gap: 0.55rem;
    justify-items: start;
}

.profile-avatar-form__browse {
    min-width: 168px;
}

.profile-avatar-form__hint {
    color: #6f8093;
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-form-note {
    color: #667b90;
    font-size: 0.95rem;
    line-height: 1.7;
}

.profile-password-toggle,
.login-password-toggle {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 52px;
}

.app-attachments-picker__preview {
    background: #f7faff;
    border: 1px solid #e1ebf5;
    border-radius: 16px;
    margin-top: 0.85rem;
    padding: 0.9rem 1rem;
}

.app-attachments-picker__summary {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.app-attachments-picker__list {
    display: grid;
    gap: 0.55rem;
    list-style: none;
    padding-left: 0;
}

.app-attachments-picker__item {
    align-items: center;
    background: #fff;
    border: 1px solid #e6eef7;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
}

.app-attachments-picker__meta {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.app-attachments-picker__name {
    color: #16324a;
    font-size: 0.95rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.app-attachments-picker__size {
    color: #6f8093;
    flex: 0 0 auto;
    font-size: 0.85rem;
    white-space: nowrap;
}

.app-attachments-picker__remove {
    align-items: center;
    background: #fff1f0;
    border: 1px solid #ffd4cf;
    border-radius: 999px;
    color: #d84f3f;
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 28px;
}

.app-attachments-picker__remove:hover,
.app-attachments-picker__remove:focus {
    background: #d84f3f;
    border-color: #d84f3f;
    color: #fff;
    outline: none;
}

@media (max-width: 991.98px) {
    .profile-overview__intro {
        padding: 1.5rem 1.25rem;
    }

    .profile-identity-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.35rem 1.25rem;
    }

    .profile-panel {
        padding: 1.5rem;
    }

    .profile-identity-card__actions {
        align-self: flex-end;
    }
}

body.boxed-size {
    background:
        radial-gradient(circle at top left, rgba(18, 50, 74, 0.035), transparent 24%),
        linear-gradient(180deg, #f4f6f8 0%, #edf1f4 100%);
    color: #1f3447;
}

body.boxed-size .container-fluid,
body.boxed-size .main-content-container {
    background: transparent;
}

body.boxed-size .main-content-container > .card {
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid #e3eaf0 !important;
    box-shadow: 0 10px 28px rgba(24, 52, 77, 0.05);
}
