.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--gestdoc {
    background:
        radial-gradient(circle at top left, rgba(247, 168, 27, 0.2), transparent 34%),
        linear-gradient(135deg, #17324a 0%, #24506a 52%, #487d88 100%);
}

.dashboard-hero-metric {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
}

.dashboard-hero-metric__label {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    line-height: 1.15;
    overflow-wrap: normal;
    text-transform: uppercase;
}

.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-flow {
    display: grid;
    gap: 1rem;
}

.dashboard-flow__step {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #e1ebf5;
    border-radius: 18px;
    display: flex;
    gap: 1rem;
    padding: 1rem 1.1rem;
}

.dashboard-flow__icon {
    align-items: center;
    background: #ecf5fb;
    border-radius: 14px;
    color: #0f6c98;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.35rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.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 {
    align-items: flex-start;
    display: grid !important;
    gap: 0.42rem;
    justify-items: center;
    min-height: 148px;
    padding: 0.72rem 0.7rem 0.55rem;
    text-align: center;
}

.sidebar-brand__mark {
    align-items: center;
    background: linear-gradient(135deg, #17324a 0%, #2f7ca8 100%);
    border-radius: 10px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.2rem;
    height: 38px;
    justify-content: center;
    width: 34px;
}

.sidebar-brand__mark--logo {
    background: transparent;
    border-radius: 0;
    height: 66px;
    width: 66px;
}

.sidebar-brand__mark--logo img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.sidebar-brand__descriptor {
    align-items: center;
    display: grid;
    gap: 0.78rem;
    grid-template-columns: auto auto;
    justify-content: center;
}

.sidebar-brand__name {
    color: #111827;
    display: block;
    font-size: 1.38rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.sidebar-brand__descriptor-text {
    color: #6b7280;
    display: grid;
    font-size: 0.78rem;
    font-weight: 800;
    justify-items: start;
    line-height: 1.08;
    text-transform: uppercase;
}

.sidebar-brand__logo {
    display: block;
    margin-top: 0.12rem;
    max-height: 38px;
    max-width: 205px;
    object-fit: contain;
    width: 185px;
}

.sidebar-area {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.sidebar-area .logo {
    flex: 0 0 auto;
    padding: 14px 15px 10px;
}

.sidebar-area .layout-menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.sidebar-area .layout-menu,
.sidebar-area .layout-menu .simplebar-wrapper,
.sidebar-area .layout-menu .simplebar-mask,
.sidebar-area .layout-menu .simplebar-offset,
.sidebar-area .layout-menu .simplebar-content-wrapper {
    height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.sidebar-area .layout-menu .simplebar-content {
    padding-bottom: 2rem;
}

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

.app-search-actions {
    align-items: stretch;
    flex-wrap: nowrap;
}

.app-services-table th:nth-child(2),
.app-services-table td:nth-child(2) {
    min-width: 150px;
    white-space: normal;
}

.app-agents-table th:first-child,
.app-agents-table td:first-child {
    min-width: 48px;
    text-align: center;
}

.app-agents-table th:first-child .form-check-input,
.app-agents-table td:first-child .form-check-input {
    background-color: #fff;
    border: 1.5px solid #9fb0c3;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
    cursor: pointer;
    height: 18px;
    width: 18px;
}

.app-agents-table th:first-child .form-check-input:checked,
.app-agents-table td:first-child .form-check-input:checked {
    background-color: #635bff;
    border-color: #635bff;
}

.app-agents-table th:nth-child(4),
.app-agents-table td:nth-child(4) {
    min-width: 165px;
    white-space: normal;
}

.app-agents-table th:nth-child(5),
.app-agents-table td:nth-child(5) {
    min-width: 190px;
    white-space: normal;
    word-break: break-word;
}

.app-search-button {
    align-items: center;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    min-width: 128px;
    white-space: nowrap;
}

.app-form-equal {
    align-items: flex-end;
}

.app-form-equal .form-control,
.app-form-equal .form-select,
.app-form-equal .app-searchable-select__toggle,
.app-form-equal .app-search-button {
    min-height: 46px;
}

.app-form-equal .form-select,
.app-form-equal .app-searchable-select__toggle,
.app-form-equal .app-search-button {
    height: 46px;
}

.app-form-equal .app-searchable-select__toggle {
    padding-bottom: 0.55rem;
    padding-top: 0.55rem;
}

.app-form-equal .app-search-actions {
    align-items: flex-end;
}

.app-data-table thead th {
    background: #eef4fb;
    border-bottom: 1px solid #d8e4ef;
    color: #17324a;
    font-weight: 800;
    padding-bottom: 0.95rem;
    padding-top: 0.95rem;
}

.app-data-table thead th:first-child {
    border-top-left-radius: 10px;
}

.app-data-table thead th:last-child {
    border-top-right-radius: 10px;
}

.app-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: space-between;
}

.app-pagination--single {
    justify-content: flex-start;
}

.app-pagination__summary {
    color: #5d6f89;
    font-size: 0.92rem;
    font-weight: 600;
}

.app-pagination__list {
    gap: 0.35rem;
}

.app-pagination__list .page-link {
    align-items: center;
    border: 1px solid #d8e4ef;
    border-radius: 8px;
    color: #425c78;
    display: inline-flex;
    font-weight: 700;
    min-height: 38px;
    padding: 0.45rem 0.7rem;
}

.app-pagination__list .page-item:first-child .page-link,
.app-pagination__list .page-item:last-child .page-link {
    border-radius: 8px;
}

.app-pagination__list .page-link:hover,
.app-pagination__list .page-link:focus {
    background: #eef4fb;
    border-color: #c7d8e8;
    color: #17324a;
    box-shadow: none;
}

.app-pagination__list .page-item.active .page-link {
    background: #605dff;
    border-color: #605dff;
    color: #fff;
}

.app-pagination__list .page-item.disabled .page-link {
    background: #f3f6f9;
    color: #9aa8b8;
}

.app-searchable-select {
    position: relative;
    z-index: 20;
}

.app-searchable-select.is-open {
    z-index: 1090;
}

.app-searchable-select.is-disabled .app-searchable-select__toggle {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 1;
}

.app-searchable-select__native {
    appearance: none;
    clip-path: inset(50%);
    height: 0;
    left: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 0;
}

.app-searchable-select__toggle {
    align-items: center;
    background-color: #f8f9fb;
    background-image: none !important;
    color: #5d6f89;
    display: flex;
    min-height: 46px;
    justify-content: space-between;
    padding-bottom: 0.55rem;
    padding-top: 0.55rem;
    text-align: left;
    width: 100%;
}

.app-searchable-select__toggle.is-selected {
    color: #1f3447;
}

.app-searchable-select__toggle.is-invalid {
    border-color: #dc3545;
}

.app-searchable-select__toggle::after {
    border-bottom: 0;
    border-left: 0.35em solid transparent;
    border-right: 0.35em solid transparent;
    border-top: 0.35em solid;
    content: "";
    margin-left: 0.75rem;
}

.app-searchable-select__menu {
    background: #fff;
    border: 1px solid #d8e4ef;
    border-radius: 0.85rem;
    box-shadow: 0 18px 38px rgba(18, 50, 74, 0.14);
    display: none;
    left: 0;
    padding: 0.7rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    max-height: min(320px, 45vh);
    overflow: hidden;
    z-index: 1095;
}

.app-searchable-select.is-open-up .app-searchable-select__menu {
    bottom: calc(100% + 0.35rem);
    top: auto;
}

.app-searchable-select.is-open .app-searchable-select__menu {
    display: block;
}

.app-searchable-select__search {
    height: 42px;
    margin-bottom: 0.55rem;
}

.app-searchable-select__options {
    display: grid;
    gap: 0.2rem;
    max-height: min(230px, 34vh);
    overflow-y: auto;
}

.main-content-container:has(.app-searchable-select.is-open),
.main-content-container > .card:has(.app-searchable-select.is-open),
.main-content-container > .card > .card-body:has(.app-searchable-select.is-open),
.dashboard-panel:has(.app-searchable-select.is-open),
.dashboard-panel > .card-body:has(.app-searchable-select.is-open) {
    overflow: visible !important;
}

.app-searchable-select__option,
.app-searchable-select__empty {
    border: 0;
    border-radius: 0.55rem;
    color: #1f3447;
    display: block;
    line-height: 1.35;
    padding: 0.65rem 0.75rem;
    text-align: left;
    width: 100%;
}

.app-searchable-select__option {
    background: transparent;
}

.app-searchable-select__option:hover,
.app-searchable-select__option:focus,
.app-searchable-select__option.is-selected {
    background: #eef4fb;
    color: #17324a;
    outline: none;
}

.app-searchable-select__empty {
    color: #7a8797;
}

.app-org-summary {
    align-items: center;
    background: #eef4fb;
    border: 1px solid #d8e4ef;
    border-radius: 12px;
    color: #17324a;
    display: inline-flex;
    gap: 0.45rem;
    padding: 0.65rem 0.9rem;
}

.app-org-summary .material-symbols-outlined {
    font-size: 1.2rem;
}

.app-org-chart-wrap {
    overflow-x: auto;
    padding: 0.5rem 0 1.25rem;
}

.app-org-tree-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.4rem 0 0.85rem;
    position: relative;
}

.app-org-tree-wrap[data-org-tree] {
    overflow-x: hidden;
    --org-screen-scale: 1;
}

.app-org-tree-wrap[data-org-tree] > .app-org-tree {
    zoom: var(--org-screen-scale);
}

.app-org-tree__links {
    inset: 0;
    overflow: visible;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.app-org-tree__links path {
    fill: none;
    stroke: #416cc5;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 2.4;
}

.app-org-tree,
.app-org-tree ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    min-width: max-content;
    padding: 0;
}

.app-org-tree .app-org-chart__item {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding: 0 0.75rem;
    position: relative;
}

.app-org-tree .app-org-chart__item::before,
.app-org-tree .app-org-chart__item::after {
    border-top: 3px solid #17324a;
    content: "";
    height: 28px;
    position: absolute;
    top: 0;
    width: 50%;
}

.app-org-tree-wrap[data-org-tree] .app-org-chart__item::before,
.app-org-tree-wrap[data-org-tree] .app-org-chart__item::after,
.app-org-tree-wrap[data-org-tree] .app-org-tree__children::before,
.app-org-tree-wrap[data-org-tree] .app-org-chart__item > .app-org-card::after {
    display: none !important;
}

.app-org-tree .app-org-chart__item::before {
    border-right: 3px solid #17324a;
    right: 50%;
}

.app-org-tree .app-org-chart__item::after {
    border-left: 3px solid #17324a;
    left: 50%;
}

.app-org-tree > .app-org-chart__item::before,
.app-org-tree > .app-org-chart__item::after,
.app-org-tree .app-org-chart__item:only-child::before,
.app-org-tree .app-org-chart__item:only-child::after {
    display: none;
}

.app-org-tree .app-org-chart__item:first-child::before,
.app-org-tree .app-org-chart__item:last-child::after {
    border: 0;
}

.app-org-tree .app-org-chart__item:first-child::after {
    border-top-left-radius: 8px;
}

.app-org-tree .app-org-chart__item:last-child::before {
    border-top-right-radius: 8px;
}

.app-org-tree__children {
    margin-top: 16px !important;
    padding-top: 16px !important;
    position: relative;
}

.app-org-tree__children + .app-org-tree__children {
    margin-top: 4px !important;
}

.app-org-tree__attached-row {
    align-items: flex-start;
    display: flex;
    justify-content: center;
    margin-top: 16px;
    min-width: max-content;
    position: relative;
}

.app-org-tree__attached-row + .app-org-tree__children {
    margin-top: 18px !important;
}

.app-org-tree__attached-group {
    gap: 0.8rem;
    margin: 0 !important;
    padding: 0 !important;
}

.app-org-tree__attached-group:empty {
    min-width: 0;
}

.app-org-tree__attached-corridor {
    flex: 0 0 170px;
    min-height: 1px;
}

.app-org-tree__children--single {
    width: 330px;
}

.app-org-tree__children--left {
    justify-content: flex-start !important;
}

.app-org-tree__children--right {
    justify-content: flex-end !important;
}

.app-org-tree__children::before {
    border-left: 3px solid #17324a;
    content: "";
    height: 34px;
    left: 50%;
    position: absolute;
    top: 0;
}

.app-org-tree .app-org-card {
    margin-top: 28px;
    position: relative;
    z-index: 2;
}

.app-org-tree > .app-org-chart__item > .app-org-card {
    margin-top: 0;
}

.app-org-tree .app-org-chart__item > .app-org-card::after {
    border-left: 3px solid #17324a;
    bottom: -34px;
    content: "";
    display: none;
    height: 34px;
    left: 50%;
    position: absolute;
}

.app-org-tree .app-org-chart__item:has(> .app-org-tree__children) > .app-org-card::after {
    display: block;
}

.app-org-levels {
    display: grid;
    gap: 1.25rem;
    position: relative;
}

.app-org-levels__links {
    inset: 0;
    overflow: visible;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.app-org-levels__links path {
    fill: none;
    stroke: #17324a;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.app-org-level {
    background: color-mix(in srgb, var(--org-level-color, #f8fbff) 18%, #ffffff);
    border: 1px solid #e1ebf5;
    border-left: 6px solid var(--org-level-color, #d8e4ef);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    z-index: 2;
}

.app-org-level__heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.app-org-level__rank {
    background: #17324a;
    border-radius: 999px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 0.38rem 0.7rem;
    text-transform: uppercase;
}

.app-org-level__name {
    color: #17324a;
    font-size: 0.98rem;
    font-weight: 800;
}

.app-org-level__cards {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    justify-content: center;
}

.app-org-chart,
.app-org-chart__level {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    list-style: none;
    margin: 0;
    min-width: max-content;
    padding: 0;
}

.app-org-chart__item {
    align-items: center;
    display: flex;
    flex-direction: column;
    padding-top: 1.35rem;
    position: relative;
}

.app-org-chart > .app-org-chart__item {
    padding-top: 0;
}

.app-org-chart__level .app-org-chart__item::before {
    background: #c9d9e8;
    content: "";
    height: 1.35rem;
    left: 50%;
    position: absolute;
    top: 0;
    width: 1px;
}

.app-org-chart__item > .app-org-chart__level {
    margin-top: 1.35rem;
    position: relative;
}

.app-org-chart__item > .app-org-chart__level::before {
    background: #c9d9e8;
    content: "";
    height: 1px;
    left: 50%;
    position: absolute;
    right: 50%;
    top: 0;
}

.app-org-chart__item > .app-org-chart__level:has(.app-org-chart__item:nth-child(2))::before {
    left: 1rem;
    right: 1rem;
}

.app-org-card {
    background: color-mix(in srgb, var(--org-level-color, #ffffff) 34%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--org-level-color, #dfe8f2) 60%, #dfe8f2);
    border-top: 6px solid var(--org-level-color, #dfe8f2);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(18, 50, 74, 0.08);
    min-height: 142px;
    padding: 0.95rem;
    position: relative;
    width: 260px;
    z-index: 3;
}

a.app-org-card {
    text-decoration: none;
}

a.app-org-card:hover,
a.app-org-card:focus {
    color: inherit;
    transform: translateY(-1px);
}

.app-org-card--compact {
    align-items: center;
    background: var(--org-level-color, #ffffff);
    border: 2px solid color-mix(in srgb, var(--org-level-color, #17324a) 78%, #17324a);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 58px;
    padding: 0.34rem 0.55rem;
    text-align: center;
    width: 138px;
}

.app-org-card__code {
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}

.app-org-card--compact .app-org-card__responsable {
    color: #ffffff;
    font-size: 0.52rem;
    font-weight: 700;
    line-height: 1.12;
    margin: 0.14rem 0 0;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}

.app-org-card__fonction {
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

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

.app-org-card__type {
    color: #6c7a92;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.app-org-card__name {
    color: #17324a;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.app-org-card__responsable {
    color: #1f3447;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.55rem;
}

.app-org-card__meta {
    color: #55687d;
    display: grid;
    font-size: 0.84rem;
    gap: 0.25rem;
}

.app-org-card__contacts {
    border-top: 1px solid #edf2f7;
    color: #607287;
    display: grid;
    font-size: 0.78rem;
    gap: 0.25rem;
    margin-top: 0.75rem;
    padding-top: 0.65rem;
}

.app-org-card__contacts span {
    align-items: center;
    display: flex;
    gap: 0.35rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.app-color-input {
    min-width: 64px;
}

.app-color-value {
    max-width: 120px;
}

.app-color-swatch {
    border: 1px solid #c6d3df;
    border-radius: 6px;
    display: inline-block;
    height: 22px;
    margin-right: 0.4rem;
    vertical-align: middle;
    width: 38px;
}

.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 .header-area {
    position: relative;
    z-index: 1200;
}

body.boxed-size .header-area.sticky {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1200;
}

.right-header-content .header-right-item .admin-profile .header-user-toggle {
    max-width: min(270px, 100%);
    min-width: 0;
    padding-right: 24px !important;
}

.right-header-content .header-right-item .admin-profile .header-user-label {
    min-width: 0;
}

.right-header-content .header-right-item .admin-profile .header-user-name {
    display: block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.right-header-content .header-right-item .admin-profile .header-user-toggle.dropdown-toggle::after {
    right: 0;
    flex: 0 0 auto;
}

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

body.boxed-size .main-content-container.overflow-hidden {
    overflow: visible !important;
}

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);
}
