:root {
    --primaryTextColor: #1179cb;
    --fontfamily: Inter, "Open Sans", Roboto, "Segoe UI", Arial, sans-serif;
    --iccBackgroundColor: #f8f8f8;
    --iccTextColorAccent: #f47320;
    --iccDeepSlateBlue: #263b49;
    --iccDeepSlateBlueAccent: #072335;
    --bs-blue: #1156cd;
    --bs-indigo: #1156cd;
    --bs-purple: #1156cd;
    --bs-orange: #1156cd;
    --bs-yellow: #1156cd;
    --bs-cyan: #1156cd;
    --bs-indigo: #1156cd40;
    --bs-purple: #1156cd40;
    --bs-primary: #1156cd;
    --bs-primary-rgb: 26, 73, 216;
    --bs-success: #bebebe;
    --bs-font: var(--fontfamily);
    --bs-font-sans-serif: var(--fontfamily);
    --bs-border-radius: 0.375rem;
    --bs-border-radius-sm: 0.25rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-border-radius-xl: 0.75rem;
    --bs-border-radius-xxl: 1rem;
    --bs-border-radius-2xl: 1rem;
    --btn-primary-bg-color: #1156cd;
    --btn-primary-shadow-color: #00000040;
    --dxbl-fl-group-border-radius: 6px;
    --rz-splitter-bar-background-color: #11111121;
    --rz-primary: var(--btnPrimaryBgColor);
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-variable-font-slnt-wght.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

.uicmp-btn.btn-primary {
    --bs-btn-bg: var(--btnPrimaryBgColor);
    --bs-btn-border-color: var(--btnPrimaryBgColor);
    --bs-btn-hover-bg: var(--btnPrimaryBgColorHover);
    --bs-btn-hover-border-color: var(--btnPrimaryBgColorHover);
    --bs-btn-focus-shadow-rgb: 119, 84, 158;
    --bs-btn-active-bg: var(--btnPrimaryBgColorHover);
    --bs-btn-active-border-color: var(--btnPrimaryBgColorHover);
    --bs-btn-disabled-bg: var(--btnPrimaryBgColor);
    --bs-btn-disabled-border-color: var(--btnPrimaryBgColor);
}

.icc-cards-outer {
    display: flex;
    justify-content: center;
    width: 100%;
    flex: 1;
    overflow: hidden;
}

.icc-cards-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, 320px);
    /* colonnes fixes */
    gap: 20px;
    /* espacement constant */
    justify-content: left;
    /* centre le grid */
    height: fit-content;
    max-height: 100%;
    width: calc(100% - 0px);
    max-width: 1800px;
    /* optionnel */
    margin: 0 auto;
    max-height: 100%;
    overflow: auto;
    scrollbar-width: thin;
}

.icc-gradient-btn {
    background: linear-gradient(90deg, #f26522 30%, #fbae18);
    color: white;
    border: none;
    transition: all 0.25s ease;
}

.icc-gradient-icon-container {
    background: linear-gradient(90deg, #f26522 30%, #fbae18);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 30px;
}

.icc-gradient-btn:hover {
    background: white !important;
    color: #f26522 !important;
    border: none;
}



@font-face {
    font-family: 'General Sans';
    src: url('/fonts/GeneralSans/GeneralSans-Regular.woff2') format('woff2'), url('/fonts/GeneralSans/GeneralSans-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'General Sans Medium';
    src: url('/fonts/GeneralSans/GeneralSans-Medium.woff2') format('woff2'), url('/fonts/GeneralSans/GeneralSans-Medium.ttf') format('truetype');
}


html,
body {
    font-family: var(--fontfamily);
    height: 100%;
    overflow: hidden;
    font-size: 16px;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

:root,
[data-bs-theme=light] {
    --bs-link-color: rgb(24 139 229);
    --bs-link-color-rgb: 24, 139, 229;
}


/* link */
a,
.btn-link {
    color: var(--doc-link-color);
}


/* blazor */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.badge {
    font-weight: 300;
}

/* button */
.btn-primary {
    --bs-btn-bg: var(--btnPrimaryBgColor);
    --bs-btn-border-color: var(--btnPrimaryBgColor);
    --bs-btn-hover-bg: var(--btnPrimaryBgColorHover);
    --bs-btn-hover-border-color: var(--btnPrimaryBgColorHover);
    --bs-btn-focus-shadow-rgb: 119, 84, 158;
    --bs-btn-active-bg: var(--btnPrimaryBgColorHover);
    --bs-btn-active-border-color: var(--btnPrimaryBgColorHover);
    --bs-btn-disabled-bg: var(--btnPrimaryBgColor);
    --bs-btn-disabled-border-color: var(--btnPrimaryBgColor);
}

.btn-primary {
    color: #fff;
    background-color: var(--btnPrimaryBgColor);
    border-color: var(--btnPrimaryBgColor);
}

.btn-primary:focus {
    color: #fff;
    background-color: var(--btnPrimaryBgColor);
    border-color: var(--btnPrimaryBgColor);
}

.btn-primary:hover {
    color: #fff;
    background-color: var(--btnPrimaryBgColorHover) !important;
    border-color: var(--btnPrimaryBgColorHover) !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #c5cdd6 !important;
    border-color: #c5cdd6 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: .65;
    cursor: not-allowed;
}

.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    border-color: var(--orange) !important;
    accent-color: var(--orange) !important;
    box-shadow: 0 0 0 3px rgba(244, 115, 32, .12) !important;
    outline: none !important;
    /*box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;*/
}

.form-control {
    font-family: var(--fontfamily);
}

.btn-secondary:focus,
.btn-secondary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 62, 80, .15) !important;
}

.btn-secondary:active {
    box-shadow: none !important;
}

.btn.file-input-zone input[ type=file] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}


.btn.file-input-zone {
    position: relative;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    gap: 6px;
}

.btn.file-input-zone input[ type=file] {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* checkbox */
.checkbox-lg {
    width: 18px;
    height: 18px;
}

.form-check-input:disabled {
    opacity: .7;
}


/* dxbl */

.dxbl-fl {
    --dxbl-fl-caption-color: black;
}

.dxbl-splitter.dxbl-splitter-horizontal {
    background-color: transparent;
}

.dxbl-splitter-separator.dxbl-splitter-separator-draggable {
    background-color: var(--splitter-bg);
}

.dxbl-splitter-pane-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}



/* radio */
.dxbl-checkbox {
    --dxbl-checkbox-radio-checked-border-color: var(--btnPrimaryBgColor);
    --dxbl-checkbox-radio-check-bg: var(--btnPrimaryBgColor);
    --dxbl-checkbox-radio-checked-hover-bg: var(--btnPrimaryBgColor);
    --dxbl-checkbox-radio-checked-hover-border-color: var(--btnPrimaryBgColor);
    --dxbl-checkbox-checked-focus-shadow-color: transparent;
}

.dxbl-checkbox.dxbl-checkbox-radio.dxbl-checkbox-checked>.dxbl-checkbox-check-element::after {
    background-color: var(--btnPrimaryBgColor);
}

.dxbl-checkbox.dxbl-checkbox-radio.dxbl-checkbox-checked>.dxbl-checkbox-check-element::before {
    border-color: #626262;
}

.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb26;
    accent-color: var(--orange);
}


/* panel */
.panel-flex-grow {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.panel-flexcolumn-100 {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}
.panel-flexcolumn-fit {
    display: flex;
    flex-direction: column;
    height: fit-content;
    width: 100%;
    overflow: hidden;
}


.pad-panel {
    padding: 10px 10px 10px 10px;
}

.panel-flexcolumn-grow {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.panel-flexcolumn-grow-max100 {
    display: flex;
    flex-direction: column;
    position: relative;
    flex: 1;
    max-height: 100%;
    overflow: hidden;
}

.panel-flexcolumn-scroll-100 {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}

.panel-flexcolumn-scroll-doc {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 800px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
}


.full-size {
    width: 100%;
    height: 100%;
}

.flex-column {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow-y: hidden;
    overflow-x: hidden;
}

.flex-scroll-column {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}


/* Chrome, Edge, Safari */
.flex-scroll-column::-webkit-scrollbar {
    width: 6px;
}

.flex-scroll-column::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}


.list-group-item.active {
    background-color: var(--btnPrimaryBgColor);
    border-color: var(--btnPrimaryBgColor);
}

.icon-folder-gradient {
    background: linear-gradient(90deg, #ffb300 30%, #ffb300);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.ellipsis {
    white-space: nowrap;
    /* interdit le retour � la ligne */
    overflow: hidden;
    /* cache ce qui d�passe */
    text-overflow: ellipsis;
    /* affiche "..." */
}


.truncate-1-lines {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    /* nombre de lignes */
    overflow: hidden;
    text-overflow: ellipsis;
}

.truncate-2-lines {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* nombre de lignes */
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid-cmd-column-btn-trash {
    font-size: 17px;
}

/* Popup DX rendu hors du composant — sélecteur global obligatoire */
.dxbl-menu-dropdown,
.dxbl-menu-dropdown-container,
.dxbl-popup-body-content,
.dxbl-popup-content {
    background: var(--menu-bg) !important;
    box-shadow: inset !important;
    border: 1px !important;
    width: 100% !important;
}

.dxbl-menu-submenu {
    background: var(--menu-bg) !important;
    width: 100% !important;
    min-width: 100% !important;
}

.dxbl-menu-submenu .dxbl-menu-item {
    width: 100% !important;
    display: block !important;
}

.dxbl-menu-submenu li {
    width: 100% !important;
    display: block !important;
}

.dxbl-menu-submenu .dxbl-menu-item-text {
    color: var(--menu-text) !important;
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.dxbl-menu-submenu .dxbl-menu-items-container {
    width: 100% !important;
}

.dxbl-menu-submenu .dxbl-menu-item-text-container {
    width: 100% !important;
}


.dxbl-menu-submenu .dxbl-menu-item-text:hover {
    background: var(--menu-hover-bg) !important;
    color: var(--menu-text-hover) !important;
    width: 100% !important;
}


/* ================================================================
   ESPACE VISION — Feuille de style commune
   espace-vision.css
   ================================================================ */


/* ── Variables ── */
:root {
    --dark: #333333;
    --dark-deep: #1e2d3d;
    --dark-mid: #354a5e;
    --orange: #f47320;
    --orange-lt: #ff8c3a;
    --gray-bg: #eef1f4;
    --gray-light: #f5f7f9;
    --gray-mid: #c5cdd6;
    --gray-text: #5a6a7a;
    --white: #ffffff;
    --header-bg: #d5e0e4;
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: var(--fontfamily);
    background: var(--page-bg);
    color: var(--dark);
}

/* ══════════════════════════
   HEADER
══════════════════════════ */
header {
    background: var(--header-bg);
    border-bottom: var(--header-border);
    box-shadow: var(--header-shadow);
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 1px;
    text-decoration: none;
}

.logo-wrap-left-menu {
    display: flex;
    align-items: center;
    margin-left: 20px;
    gap: 14px;
    text-decoration: none;
}

.logo-name {
    font-family: var(--fontfamily);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: -.01em;
    line-height: 1;
    margin-top: 3px;
}

.logo-name-div {
    font-family: var(--fontfamily);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: -.01em;
    line-height: 1;
    /* white-space: nowrap;*/
    overflow: hidden;
    text-overflow: clip;
}

.logo-name-left-menu {
    font-family: var(--fontfamily);
    font-size: 1.00rem;
    font-weight: 800;
    color: var(--sidebar-logo-name-color);
    text-transform: uppercase;
    letter-spacing: -.01em;
    line-height: 1;
}

.logo-sub {
    font-family: var(--fontfamily);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .2em;
    color: var(--orange);
    text-transform: uppercase;
    margin-top: 2px;
}

.logo-sub-left-menu {
    font-family: var(--fontfamily);
    font-size: .58rem;
    font-weight: 600;
    letter-spacing: .2em;
    color: var(--sidebar-logo-sub-color);
    text-transform: uppercase;
    margin-top: 4px;
}

.logo-divider {
    width: 1px;
    height: 36px;
    background: rgba(45, 62, 80, .25);
    margin: 0 12px;
    flex-shrink: 0;
}

.client-logo-placeholder {
    height: 36px;
    min-width: 120px;
    border: 2px dashed rgba(45, 62, 80, .25);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(45, 62, 80, .35);
    padding: 0 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    /*position: relative;*/
    flex-wrap: nowrap;
    justify-content: flex-end;
    margin-left: 10px;
}

.header-tag {
    font-size: .68rem;
    color: var(--gray-text);
    font-family: var(--fontfamily);
    font-weight: 600;
    letter-spacing: .095em;
    text-transform: uppercase;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--avatar-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: var(--avatar-text);
    flex-shrink: 0;
    cursor: pointer;
    transition: opacity .2s;
}

.user-avatar:hover {
    opacity: .85;
}

.user-name {
    font-weight: 600;
    color: var(--dark);
    font-size: .80rem;
}

.user-org {
    font-size: .7rem;
    color: var(--gray-text);
}

.btn-logout {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gray-text);
    background: rgba(45, 62, 80, .08);
    border: 1px solid rgba(45, 62, 80, .15);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    flex-shrink: 0;
}

.btn-logout:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 62, 80, .2);
}

.btn-logout:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

/* Division switcher */
.user-division {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color .2s;
    position: relative;
    user-select: none;
    text-decoration: none;
    font-family: var(--fontfamily);
    /*overflow: hidden;
    text-overflow: ellipsis;*/
    white-space: nowrap;
}

.user-division:hover {
    color: var(--orange);
}

.division-caret {
    font-size: .85rem;
    opacity: .7;
}

.division-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border: 1px solid rgba(45, 62, 80, .12);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(45, 62, 80, .15);
    min-width: 180px;
    z-index: 200;
    overflow: hidden;
    animation: fadeUp .2s ease;
}

.division-dropdown.open {
    display: block;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.division-option {
    padding: 10px 16px;
    font-size: .82rem;
    color: var(--dark);
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid rgba(45, 62, 80, .06);
}

.division-option:last-child {
    border-bottom: none;
}

.division-option:hover {
    background: rgba(244, 115, 32, .06);
    color: var(--orange);
}

.division-option.active {
    font-weight: 600;
    color: var(--orange);
    background: rgba(244, 115, 32, .05);
}

.division-option.active::after {
    content: ' ✓';
}

/* ══════════════════════════
   MAIN LAYOUT
══════════════════════════ */
main {
    display: grid;
    grid-template-columns: 240px 1fr;
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
    }
}


/* ══════════════════════════
   SIDEBAR
══════════════════════════ */
.sidebar {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--sidebar-bg-pattern) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.sidebar-inner {
    position: relative;
    width: 100%;
    z-index: 2;
    flex: 1;
}

.sidebar-section {
    padding: 0 20px;
}

.sidebar-label {
    font-family: var(--fontfamily);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--sidebar-label);
    padding: 0 12px;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 11px 12px;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--sidebar-text);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    position: relative;
}

.nav-item:hover {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-text-hover);
}

.nav-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--orange);
    border-radius: 0 2px 2px 0;
}

.nav-divider {
    height: 2px;
    background: var(--sidebar-divider);
    margin: 0px 0px 0px 0px;
}

.sidebar-footer {
    position: relative;
    z-index: 2;
    padding: 16px 20px;
    border-top: 1px solid var(--sidebar-footer-border);
    font-size: .68rem;
    color: var(--sidebar-footer-text);
}

/* ══════════════════════════
   CONTENT AREA
══════════════════════════ */
.content {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* ══════════════════════════
   HERO BAND
══════════════════════════ */
.hero-band {
    height: 96px;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
    align-content: center;
    padding-left: 10px;
}

.hero-eyebrow {
    font-family: var(--fontfamily);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    display: none;
}

.hero-title {
    font-family: var(--fontfamily);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--hero-title);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.hero-sub {
    font-size: .88rem;
    font-weight: 300;
    color: var(--hero-sub);
    position: relative;
    z-index: 2;
}

/* ── Dashboard ── */
.dashboard-content {
    display: flex;
    flex-direction: column;
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    background-color: var(--page-bg);
}
/* ══════════════════════════
   ESPACE VISION — DxGrid
══════════════════════════ */

/* Coins arrondis */
.dxbl-grid {
    border: 1px solid var(--grid-border);
    border-radius: 0px;
    overflow: hidden;
}

/* En-tête fond orange */
.dxbl-grid-header-row {
    background-color: var(--grid-header-bg) !important;
}

.dxbl-grid-header-cell {
    background-color: var(--grid-header-bg) !important;
    border : none !important;
}

.dxbl-grid-header-content {
    font-family: var(--fontfamily);
    font-size: .74rem !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: black !important;
    padding: 4px 2px;
    border : none !important;
}

/* Icône de tri */
.dxbl-grid-sort-icon {
    color: rgba(45, 62, 80, .5) !important;
}

.dxbl-scroll-viewer-content {
    font-family: var(--fontfamily);
    font-size: 0.80rem !important;
    font-weight: 500 !important;
    letter-spacing: .04em !important;
    color: var(--gray-text) !important;
    padding: 0;
    border : none !important;
}
.dxbl-grid-table {
    border: none !important;
}

/* Lignes alternées */
.dxbl-grid .dxbl-grid-table > tbody > tr:nth-child(even) {
    background-color: var(--grid-row-alt-bg);
}

/* Hover sur les lignes */
.dxbl-grid .dxbl-grid-table > tbody > td {
    background-color: var(--grid-hover-bg) !important;
}

.dxbl-fl-cpt {
    font-family: var(--fontfamily);
    font-size: .72rem !important;
    font-weight: 700 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: var(--label-text) !important;
    margin-bottom: 0px !important;
}
/* button */
.dxbl-grid-action {
    border: none !important;
    font-family: var(--fontfamily);
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 6px 6px;
    /* box-shadow: 0 4px 16px rgba(244, 115, 32, .35);*/
    transition: background .2s, transform .15s, box-shadow .2s;
}

.dxbl-grid-group-row {
  padding: 10px 16px; 
  background: var(--grid-group-row-bg) !important;
  border-top: 1px solid rgba(45,62,80,.06);
  border-bottom: 1px solid rgba(45,62,80,.06);
  color: black;
}
.doc-link {
  color: var(--doc-link-color);
  text-decoration: none;
  font-weight: 500;
  display: flex; align-items: center; gap: 6px; transition: color .2s, text-decoration .2s;
}
.doc-link:hover { text-decoration: underline; color: var(--doc-link-hover-color); }
.doc-link:visited {
    color: var(--doc-link-color);
    text-decoration: none;
}
.doc-link i {
    margin-right: 6px;
}

.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--orange);
}
.form-check-input:checked {
    background-color: var(--orange);
    border-color: var(--orange);
}    

.division-tag {
  display: inline-flex; align-items: center;
  background: rgba(45,62,80,.07); border-radius: 3px;
  padding: 3px 8px; font-size: .75rem; font-weight: 600; color: var(--dark);
}

/* ── Badge dans le menu gauche ── */
.menu-text {
    display: flex;
    align-items: center;
    padding: 11px 12px;
    border-radius: 6px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--sidebar-text);
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    position: relative;
    width: 100%;
}

.menu-unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 99px;
    background-color: #dc3545;
    color: #fff !important;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1;
    margin-left: auto;
}

/* ── Badge dans le bottom tab ── */
.tab-item {
    position: relative;
}

.tab-unread-badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(18px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background-color: #dc3545;
    color: #fff !important;
    font-size: .6rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}