:root {
  --evele-primary: #155eef;
  --evele-primary-dark: #0b3b9e;
  --evele-accent: #12b76a;
  --evele-danger: #d92d20;
  --evele-warning: #dc6803;
  --evele-info: #1570ef;
  --evele-muted: #667085;
  --evele-bg: #f5f7fb;
  --evele-surface: #ffffff;
  --evele-border: #e4e7ec;
  --evele-text: #101828;
  --evele-sidebar: #101828;
  --evele-sidebar-hover: #1d2939;
  --evele-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}

html, body { font-family: "Segoe UI", Inter, Arial, sans-serif; }
body { background: var(--evele-bg); color: var(--evele-text); }
.content-wrapper { background-color: var(--evele-bg) !important; }
.content-header { padding: 18px .5rem 10px; }
.content-header h1,
.content-header h2,
.content-header h3,
.content-header h4,
.content-header h5 {
  align-items: center;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.82);
  border-left: 4px solid var(--evele-primary);
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(16,24,40,.12);
  color: #101828;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 750;
  gap: 9px;
  line-height: 1.3;
  margin: 0;
  min-height: 48px;
  padding: 10px 17px;
}
.content-header h1 img,
.content-header h2 img,
.content-header h3 img,
.content-header h4 img,
.content-header h5 img { height: 23px; object-fit: contain; width: 23px; }
.card { border: 1px solid var(--evele-border); border-radius: 12px; box-shadow: var(--evele-shadow); }
.card-header { border-bottom-color: var(--evele-border); background: transparent; }
.btn { border-radius: 8px; font-weight: 600; }
.form-control, .custom-select, .select2-selection { border-radius: 8px !important; border-color: var(--evele-border) !important; }
.table thead th { background: #f9fafb; color: #344054; border-bottom: 1px solid var(--evele-border); font-size: .76rem; letter-spacing: .025em; text-transform: uppercase; }
.table td { vertical-align: middle; }

.main-header.evele-navbar { background: rgba(255,255,255,.96) !important; border-bottom: 1px solid var(--evele-border); box-shadow: 0 1px 8px rgba(16,24,40,.06); min-height: 64px; }
.main-header.evele-navbar .nav-link { color: #344054 !important; }
.evele-icon-btn { align-items: center; background: #f2f4f7; border: 0; border-radius: 9px; color: #344054; display: inline-flex; height: 38px; justify-content: center; width: 38px; }
.evele-module-pill { align-items: center; background: #eff4ff; border: 1px solid #d1e0ff; border-radius: 999px; color: #1849a9; display: inline-flex; font-size: .76rem; font-weight: 700; gap: 7px; padding: 7px 12px; }
.evele-module-pill.export { background: #fff1f3; border-color: #ffe4e8; color: #c01048; }

.main-sidebar { background: var(--evele-sidebar) !important; box-shadow: 6px 0 22px rgba(16,24,40,.12) !important; }
.brand-link { align-items: center; border-bottom: 1px solid rgba(255,255,255,.1) !important; display: flex; font-size: .9rem; font-weight: 700; gap: 10px; min-height: 64px; padding: 12px 16px; }
.brand-link img { height: 34px; object-fit: contain; width: 34px; }
.user-panel { border-bottom-color: rgba(255,255,255,.1) !important; }
.user-panel .info a { color: #f9fafb !important; font-size: .84rem; }
.nav-sidebar { padding: 0 8px 16px; }
.nav-sidebar > .nav-item > .nav-link, .nav-sidebar .nav-treeview > .nav-item > .nav-link { border-radius: 8px; margin-bottom: 3px; min-height: 42px; transition: background .18s ease, transform .18s ease; }
.nav-sidebar > .nav-item > .nav-link:hover { background: var(--evele-sidebar-hover) !important; transform: translateX(2px); }
.nav-sidebar .nav-link.active, .nav-sidebar .nav-link.bg-secondary { background: rgba(255,255,255,.09) !important; box-shadow: none !important; color: #fff !important; }
.nav-sidebar .nav-link img { filter: brightness(0) invert(1); height: 20px; margin-right: 9px; opacity: .9; object-fit: contain; width: 20px !important; }
.nav-sidebar .nav-link p { flex: 1 1 auto; font-size: .76rem; letter-spacing: .02em; line-height: 1.25; margin: 0; min-width: 0; overflow: visible; text-overflow: clip; white-space: normal; }
.nav-sidebar .nav-link > span { align-items: center; display: flex; min-width: 0; width: 100%; }
.nav-sidebar > .nav-item > .nav-link { height: auto; padding-bottom: 10px; padding-top: 10px; }
.nav-sidebar hr { border-color: rgba(255,255,255,.07); margin: 7px 8px; }
.nav-sidebar > .nav-item > .nav-link.active.bg-secondary { border-left: 3px solid #84adff; font-size: .78rem; letter-spacing: .045em; margin-top: 7px; min-height: 46px; text-transform: uppercase; }
.nav-sidebar > .nav-item > .nav-link:not(.active):not(.bg-secondary) { color: #d0d5dd; margin-left: 12px; width: calc(100% - 12px); }
.nav-sidebar > .nav-item > .nav-link:not(.active):not(.bg-secondary) .nav-icon { font-size: .78rem; opacity: .72; }
.nav-sidebar .nav-link.evele-current-page {
  background: rgba(21, 94, 239, .42) !important;
  border-left: 3px solid #84adff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12) !important;
  color: #fff !important;
  font-weight: 700;
}
.evele-horizontal-link.evele-current-page,
.evele-horizontal-dropdown .nav-link.evele-current-page {
  background: rgba(21, 94, 239, .11) !important;
  color: var(--evele-primary) !important;
  font-weight: 700;
}
.user-edit-side-panel { background: transparent; display: none; position: static !important; width: 100%; }
.user-edit-side-panel .modal-dialog { margin: 0; max-width: none; width: 100%; }
.user-edit-side-panel .modal-content { border-radius: 12px; }
.user-edit-side-panel .modal-body { display: grid; gap: 0 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.user-edit-side-panel .modal-body > hr,
.user-edit-side-panel .modal-body > h5 { grid-column: 1 / -1; width: 100%; }
@media (max-width: 767.98px) {
  .user-edit-side-panel { margin-top: 12px; }
  .user-edit-side-panel .modal-body { display: block; }
}
.evele-top-brand { align-items: center; color: #1d2939 !important; display: none; font-size: .75rem; font-weight: 750; gap: 8px; margin-left: 5px; max-width: 180px; }
.evele-top-brand:hover { text-decoration: none; }
.evele-top-brand img { height: 34px; max-width: 72px; object-fit: contain; }
.evele-clock { background: #f2f4f7; border: 1px solid var(--evele-border); border-radius: 8px; color: #344054; display: inline-block; font-size: .72rem; font-weight: 650; padding: 8px 10px; white-space: nowrap; }
.evele-year-filter { align-items: center; background: #eff4ff; border: 1px solid #b2ccff; border-radius: 9px; display: flex; gap: 6px; padding: 3px 5px 3px 9px; }
.evele-year-filter label { color: #1849a9; font-size: .7rem; font-weight: 750; margin: 0; text-transform: uppercase; }
.evele-year-filter select { background: #fff; border: 0 !important; color: #1849a9; font-weight: 750; height: 30px; padding: 2px 24px 2px 7px; width: 77px; }

.evele-search { max-width: 440px; min-width: 260px; position: relative; width: 36vw; }
.evele-search-input { background: #f9fafb; border: 1px solid var(--evele-border); border-radius: 10px; color: var(--evele-text); height: 40px; padding: 0 42px 0 38px; width: 100%; }
.evele-search > .fa-search { color: #98a2b3; left: 14px; position: absolute; top: 13px; }
.evele-search-kbd { background: #fff; border: 1px solid #d0d5dd; border-radius: 5px; color: #667085; font-size: .68rem; padding: 2px 5px; position: absolute; right: 10px; top: 10px; }
.evele-search-results { background: var(--evele-surface); border: 1px solid var(--evele-border); border-radius: 12px; box-shadow: 0 18px 40px rgba(16,24,40,.18); display: none; left: 0; max-height: 420px; overflow-y: auto; padding: 7px; position: absolute; right: 0; top: 46px; z-index: 1080; }
.evele-search-results.show { display: block; }
.evele-search-result { align-items: center; border-radius: 8px; color: var(--evele-text) !important; display: flex; gap: 11px; padding: 10px; }
.evele-search-result:hover { background: #f2f4f7; text-decoration: none; }
.evele-search-result-icon { align-items: center; background: #eff4ff; border-radius: 8px; color: var(--evele-primary); display: flex; flex: 0 0 34px; height: 34px; justify-content: center; }
.evele-search-empty { color: var(--evele-muted); padding: 18px; text-align: center; }

.status-badge { align-items: center; border-radius: 999px; display: inline-flex; font-size: .72rem; font-weight: 700; gap: 6px; padding: 5px 9px; }
.status-success { background: #ecfdf3; color: #027a48; }
.status-info { background: #eff8ff; color: #175cd3; }
.status-warning { background: #fffaeb; color: #b54708; }
.status-danger { background: #fef3f2; color: #b42318; }
.status-muted { background: #f2f4f7; color: #475467; }
.small-box { border-radius: 12px; box-shadow: var(--evele-shadow); overflow: hidden; }
.small-box.bg-success, .bg-gradient-success { background: #079455 !important; }
.small-box.bg-info, .bg-gradient-info, .small-box.bg-primary { background: #1570ef !important; }
.small-box.bg-warning, .bg-gradient-warning { background: #dc6803 !important; color: #fff !important; }
.small-box.bg-danger, .bg-gradient-danger { background: #d92d20 !important; }
.small-box.bg-secondary, .small-box.bg-dark { background: #475467 !important; }

.evele-auth-page { background-color: #eef2f8; min-height: 100vh; overflow: hidden; position: relative; }
.evele-auth-page::before { background: linear-gradient(135deg, rgba(11,59,158,.93), rgba(21,94,239,.68)); content: ""; inset: 0; position: absolute; }
.evele-auth-shell { align-items: stretch; display: flex; min-height: 100vh; position: relative; z-index: 1; }
.evele-auth-hero { color: #fff; display: flex; flex: 1.15; flex-direction: column; justify-content: space-between; padding: 54px 6vw; }
.evele-auth-brand { align-items: center; display: flex; font-size: 1.05rem; font-weight: 700; gap: 12px; }
.evele-auth-brand img { background: rgba(255,255,255,.94); border-radius: 10px; height: 46px; object-fit: contain; padding: 5px; width: 46px; }
.evele-auth-copy { max-width: 620px; }
.evele-auth-main-logo { display: block; margin: 0 auto 26px; max-height: 150px; max-width: min(360px, 78%); object-fit: contain; }
.evele-auth-copy { text-align: center; }
.evele-auth-copy h2, .evele-auth-copy p { margin-left: auto; margin-right: auto; }
.evele-auth-copy h1 { font-size: clamp(2.1rem, 4vw, 4rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.04; }
.evele-auth-copy .evele-auth-app-name { font-size: clamp(2.4rem, 5vw, 4.8rem); margin-bottom: 24px; }
.evele-auth-copy h2 { font-size: clamp(1.45rem, 2.5vw, 2.35rem); font-weight: 650; line-height: 1.22; max-width: 620px; }
.evele-auth-copy p { color: rgba(255,255,255,.82); font-size: 1.05rem; line-height: 1.7; max-width: 540px; }
.evele-auth-panel { align-items: center; background: rgba(255,255,255,.98); display: flex; flex: .85; justify-content: center; padding: 40px; }
.evele-auth-card { max-width: 410px; width: 100%; }
.evele-auth-card h2 { color: #101828; font-size: 1.8rem; font-weight: 750; letter-spacing: -.03em; }
.evele-auth-card .form-control { height: 48px; padding-left: 42px; }
.evele-field { position: relative; }
.evele-field > i { color: #98a2b3; left: 15px; position: absolute; top: 16px; z-index: 2; }
.evele-login-btn { background: var(--evele-primary); border: 0; height: 48px; }

.evele-module-page { background-position: center; background-size: cover; min-height: 100vh; position: relative; }
.evele-module-page::before { background: linear-gradient(135deg, rgba(11,59,158,.88), rgba(21,94,239,.65)); content: ""; inset: 0; position: fixed; }
.evele-module-shell { margin: 0 auto; max-width: 1080px; padding: 42px 24px; position: relative; z-index: 1; }
.evele-module-page .evele-module-header, .evele-module-page section > h1, .evele-module-page section > p { color: #fff !important; }
.evele-module-page .evele-module-header small { color: rgba(255,255,255,.75) !important; }
.evele-module-page .evele-module-header .btn-outline-secondary { border-color: rgba(255,255,255,.55); color: #fff; }
.evele-module-page .evele-module-header .btn-outline-secondary:hover { background: #fff; color: #1d2939; }
.evele-module-header { align-items: center; display: flex; justify-content: space-between; margin-bottom: 70px; }
.evele-module-brand-card { align-items: center; backdrop-filter: blur(12px); background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.7); border-radius: 14px; box-shadow: var(--evele-shadow); color: #101828; display: flex; gap: 12px; padding: 10px 16px; }
.evele-module-brand-card img { height: 46px; max-width: 140px; object-fit: contain; }
.evele-module-brand-card small { color: #667085 !important; }
.evele-module-card { align-items: center; background: var(--evele-surface); border: 1px solid var(--evele-border); border-radius: 18px; box-shadow: var(--evele-shadow); cursor: pointer; display: flex; flex-direction: column; height: 100%; justify-content: center; min-height: 390px; padding: 36px; position: relative; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.evele-module-card:hover { box-shadow: 0 18px 42px rgba(16,24,40,.15); transform: translateY(-5px); }
.evele-module-icon { align-items: center; background: #eff4ff; border-radius: 14px; color: var(--evele-primary); display: flex; font-size: 1.6rem; height: 58px; justify-content: center; margin: 0 auto 25px; width: 58px; }
.evele-module-card.export .evele-module-icon { background: #fff1f3; color: #e31b54; }

body.dark-mode { --evele-bg: #0c111d; --evele-surface: #161b26; --evele-border: #2e3545; --evele-text: #f5f7fa; --evele-muted: #98a2b3; }
body.dark-mode .content-wrapper, body.dark-mode .main-footer { background: var(--evele-bg) !important; color: var(--evele-text); }
body.dark-mode .content-header h1,
body.dark-mode .content-header h2,
body.dark-mode .content-header h3,
body.dark-mode .content-header h4,
body.dark-mode .content-header h5 { background: rgba(22,27,38,.95); border-color: #344054; border-left-color: #84adff; color: #f9fafb; }
body.dark-mode .card, body.dark-mode .modal-content, body.dark-mode .dropdown-menu { background: var(--evele-surface); color: var(--evele-text); }
body.dark-mode .dropdown-menu {
  border-color: #344054;
  box-shadow: 0 14px 32px rgba(0,0,0,.38);
}
body.dark-mode .dropdown-menu .dropdown-item,
body.dark-mode .dropdown-menu > li > a,
body.dark-mode .dropdown-menu .dropdown-submenu > a {
  color: #e4e7ec !important;
}
body.dark-mode .dropdown-menu .dropdown-item i,
body.dark-mode .dropdown-menu > li > a i {
  color: #b2ccff !important;
}
body.dark-mode .dropdown-menu .dropdown-item:hover,
body.dark-mode .dropdown-menu .dropdown-item:focus,
body.dark-mode .dropdown-menu > li > a:hover,
body.dark-mode .dropdown-menu > li > a:focus,
body.dark-mode .dropdown-menu .dropdown-submenu:hover > a {
  background: #293247 !important;
  color: #ffffff !important;
}
body.dark-mode .dropdown-menu .dropdown-item:hover *,
body.dark-mode .dropdown-menu .dropdown-item:focus *,
body.dark-mode .dropdown-menu > li > a:hover *,
body.dark-mode .dropdown-menu > li > a:focus * {
  color: #ffffff !important;
}
body.dark-mode .dropdown-menu .dropdown-item.active,
body.dark-mode .dropdown-menu .dropdown-item:active,
body.dark-mode .dropdown-menu > li.active > a {
  background: #155eef !important;
  color: #ffffff !important;
}
body.dark-mode .dropdown-menu .dropdown-divider,
body.dark-mode .dropdown-menu .divider {
  border-color: #344054;
}
body.dark-mode .dropdown-menu .dropdown-header,
body.dark-mode .dropdown-menu .text-muted {
  color: #98a2b3 !important;
}
body.dark-mode .content-wrapper a:not(.btn):not(.small-box-footer):hover,
body.dark-mode .content-wrapper a:not(.btn):not(.small-box-footer):focus,
body.dark-mode .modal-content a:not(.btn):hover,
body.dark-mode .modal-content a:not(.btn):focus {
  color: #84adff !important;
}
body.dark-mode .table-hover tbody tr:hover,
body.dark-mode .table-hover-color tbody tr:hover,
body.dark-mode table.dataTable tbody tr:hover,
body.dark-mode table.dataTable tbody tr:hover > td,
body.dark-mode table.dataTable tbody tr:hover > th {
  background: #293247 !important;
  color: #ffffff !important;
}
body.dark-mode .table-hover tbody tr:hover a,
body.dark-mode .table-hover-color tbody tr:hover a,
body.dark-mode table.dataTable tbody tr:hover a {
  color: #b2ccff !important;
}
body.dark-mode .main-header.evele-navbar { background: rgba(22,27,38,.97) !important; }
body.dark-mode .main-header.evele-navbar .nav-link { color: #e4e7ec !important; }
body.dark-mode .table { color: #e4e7ec; }
body.dark-mode .table thead th { background: #1d2433; color: #d0d5dd; }
body.dark-mode .form-control, body.dark-mode .custom-select, body.dark-mode .evele-search-input { background: #1d2433; color: #f5f7fa; }
/* FixedColumns impose un fond blanc en style inline/plugin : garder la meme surface que le tableau sombre. */
body.dark-mode table.dataTable thead tr > .dtfc-fixed-left,
body.dark-mode table.dataTable thead tr > .dtfc-fixed-right,
body.dark-mode table.dataTable tfoot tr > .dtfc-fixed-left,
body.dark-mode table.dataTable tfoot tr > .dtfc-fixed-right,
body.dark-mode table.dataTable tbody tr > .dtfc-fixed-left,
body.dark-mode table.dataTable tbody tr > .dtfc-fixed-right,
body.dark-mode div.dtfc-left-top-blocker,
body.dark-mode div.dtfc-right-top-blocker {
  background-color: #161b26 !important;
  color: #e4e7ec !important;
}
body.dark-mode table.dataTable tbody tr:nth-of-type(odd) > .dtfc-fixed-left,
body.dark-mode table.dataTable tbody tr:nth-of-type(odd) > .dtfc-fixed-right { background-color: #19202d !important; }
body.dark-mode table.dataTable tbody tr:hover > .dtfc-fixed-left,
body.dark-mode table.dataTable tbody tr:hover > .dtfc-fixed-right { background-color: #293247 !important; }

/* En-tetes de tableaux : contraste fort, y compris les clones DataTables et FixedColumns. */
body.dark-mode .table thead th,
body.dark-mode table.dataTable thead th,
body.dark-mode .dataTables_scrollHead table.dataTable thead th,
body.dark-mode table.dataTable thead tr > .dtfc-fixed-left,
body.dark-mode table.dataTable thead tr > .dtfc-fixed-right {
  background-color: #26354d !important;
  border-color: #536580 !important;
  box-shadow: inset 0 -2px 0 #7595c7;
  color: #ffffff !important;
  font-weight: 700;
  opacity: 1;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
}
body.dark-mode table.dataTable thead .sorting::before,
body.dark-mode table.dataTable thead .sorting::after,
body.dark-mode table.dataTable thead .sorting_asc::before,
body.dark-mode table.dataTable thead .sorting_asc::after,
body.dark-mode table.dataTable thead .sorting_desc::before,
body.dark-mode table.dataTable thead .sorting_desc::after {
  color: #dbe8ff !important;
  opacity: .9 !important;
}

/* Les callouts Bootstrap restent blancs par defaut dans les formulaires de modales. */
body.dark-mode .modal-content .callout,
body.dark-mode .modal-content .card,
body.dark-mode .modal-content fieldset {
  background: #1d2433 !important;
  border-color: #344054 !important;
  color: #f5f7fa !important;
}
body.dark-mode .modal-content label,
body.dark-mode .modal-content h4,
body.dark-mode .modal-content h5,
body.dark-mode .modal-content h6,
body.dark-mode .modal-content legend { color: #f5f7fa !important; }
body.dark-mode .modal-content .form-control,
body.dark-mode .modal-content .custom-select,
body.dark-mode .modal-content textarea,
body.dark-mode .modal-content select {
  background-color: #20293a !important;
  border-color: #475467 !important;
  color: #f9fafb !important;
}
body.dark-mode .modal-content .form-control:disabled,
body.dark-mode .modal-content .form-control[readonly] {
  background-color: #303949 !important;
  color: #d0d5dd !important;
  opacity: 1;
}
body.dark-mode .modal-content input[type="date"] { color-scheme: dark; }
body.dark-mode .modal-content .close { color: #f9fafb !important; text-shadow: none; opacity: .85; }
table.dataTable tbody tr.evele-row-cleared > td { background-color: #e0f2fe !important; color: #075985 !important; }
body.dark-mode table.dataTable tbody tr.evele-row-cleared > td,
body.dark-mode table.dataTable tbody tr.evele-row-cleared > .dtfc-fixed-left,
body.dark-mode table.dataTable tbody tr.evele-row-cleared > .dtfc-fixed-right {
  background-color: #173b57 !important;
  color: #d5efff !important;
}
body.dark-mode .select2-container--bootstrap4 .select2-selection,
body.dark-mode .select2-container--default .select2-selection {
  background: #1d2433 !important;
  border-color: #475467 !important;
  color: #f5f7fa !important;
}
body.dark-mode .select2-container .select2-selection--single .select2-selection__rendered,
body.dark-mode .select2-container .select2-selection--multiple .select2-selection__rendered,
body.dark-mode .select2-container--bootstrap4 .select2-selection__choice,
body.dark-mode .select2-container--default .select2-selection__choice { color: #f5f7fa !important; }
body.dark-mode .select2-container .select2-selection__placeholder { color: #98a2b3 !important; }
body.dark-mode .select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice,
body.dark-mode .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: #293247 !important;
  border-color: #475467 !important;
}
body.dark-mode .select2-container .select2-selection__choice__remove { color: #d0d5dd !important; }
body.dark-mode .select2-dropdown,
body.dark-mode .select2-container--bootstrap4 .select2-dropdown,
body.dark-mode .select2-container--default .select2-dropdown {
  background: #161b26 !important;
  border-color: #475467 !important;
  color: #e4e7ec !important;
}
body.dark-mode .select2-search--dropdown .select2-search__field,
body.dark-mode .select2-container--bootstrap4 .select2-search__field {
  background: #1d2433 !important;
  border-color: #475467 !important;
  color: #f5f7fa !important;
}
body.dark-mode .select2-results,
body.dark-mode .select2-results__options,
body.dark-mode .select2-results__option {
  background: #161b26;
  color: #e4e7ec !important;
}
body.dark-mode .select2-results__option[aria-selected="true"],
body.dark-mode .select2-container--default .select2-results__option[aria-selected="true"] {
  background: #293247 !important;
  color: #ffffff !important;
}
body.dark-mode .select2-container--bootstrap4 .select2-results__option--highlighted,
body.dark-mode .select2-container--bootstrap4 .select2-results__option--highlighted.select2-results__option[aria-selected="true"],
body.dark-mode .select2-container--default .select2-results__option--highlighted[aria-selected],
body.dark-mode .select2-results__option--highlighted {
  background: #155eef !important;
  color: #ffffff !important;
}
body.dark-mode .select2-results__group,
body.dark-mode .select2-results__message { color: #98a2b3 !important; }
body.dark-mode .evele-search-result:hover { background: #1d2433; }
body.dark-mode .evele-icon-btn { background: #2e3545; color: #f2f4f7; }
body.dark-mode .evele-top-brand { color: #f2f4f7 !important; }
body.dark-mode .evele-clock { background: #1d2433; color: #e4e7ec; }
body.dark-mode .evele-year-filter { background: #1d2939; border-color: #344054; }
body.dark-mode .evele-year-filter label { color: #b2ccff; }
body.dark-mode.evele-module-page::before { background: linear-gradient(135deg, rgba(3,7,18,.94), rgba(12,17,29,.85)); }
body.dark-mode .evele-module-card { background: #161b26; border-color: #344054; color: #f5f7fa; }

/* Keep action menus above dashboard notification cards and modal tables. */
.content-header { position: relative; z-index: 1020; }
.content-header .dropdown-menu { z-index: 1080; }
.modal .dropdown,
.modal .btn-group { position: relative; }
.modal .dropdown.show,
.modal .btn-group.show { z-index: 1080; }
.modal .dropdown-menu { z-index: 1085; }
.modal .table-responsive { overflow-x: auto; overflow-y: auto; }
.modal .table-responsive td:last-child .dropdown-menu,
.modal .table-responsive td:last-child .btn-group .dropdown-menu {
  left: auto !important;
  max-width: min(280px, calc(100vw - 48px));
  right: 0 !important;
  white-space: normal;
}

body.evele-horizontal-nav .main-header, body.evele-horizontal-nav .content-wrapper, body.evele-horizontal-nav .main-footer { margin-left: 0 !important; }
body.evele-horizontal-nav .main-sidebar, body.evele-horizontal-nav .evele-sidebar-toggle { display: none !important; }
body.evele-horizontal-nav .evele-top-brand { display: flex; }
body.evele-horizontal-nav .content-wrapper {
  padding-top: var(--evele-horizontal-menu-height, 50px) !important;
}
.evele-horizontal-menu { background: var(--evele-surface); border-bottom: 1px solid var(--evele-border); box-shadow: 0 4px 14px rgba(16,24,40,.08); display: none; min-height: 50px; left: 0; overflow: visible; position: fixed; right: 0; top: 64px; z-index: 1026; }
body.evele-horizontal-nav .evele-horizontal-menu { display: block; }
.evele-horizontal-menu-scroll { align-items: stretch; display: flex; flex-wrap: wrap; min-height: 50px; justify-content: center; overflow: visible; padding: 0 8px; }
.evele-horizontal-item { flex: 0 0 auto; position: relative; }
.evele-horizontal-item:hover, .evele-horizontal-item:focus-within { z-index: 4; }
.evele-horizontal-link { align-items: center; color: #344054 !important; display: flex; font-size: .68rem; font-weight: 700; gap: 7px; height: 50px; letter-spacing: .025em; padding: 0 12px; text-transform: uppercase; white-space: nowrap; }
.evele-horizontal-link:hover { background: #f2f4f7; color: var(--evele-primary) !important; text-decoration: none; }
.evele-horizontal-link img { height: 16px; object-fit: contain; width: 16px; }
.evele-horizontal-link .nav-icon { font-size: .8rem; margin: 0; width: auto; }
.evele-horizontal-link p { display: inline; margin: 0; }
.evele-horizontal-link .right { margin-left: 3px; transform: rotate(-90deg); }
.evele-horizontal-dropdown { background: var(--evele-surface); border: 1px solid var(--evele-border); border-radius: 0 0 12px 12px; box-shadow: 0 16px 35px rgba(16,24,40,.16); display: none; left: 0; min-width: 235px; padding: 8px; position: absolute; top: 50px; }
.evele-horizontal-item:hover > .evele-horizontal-dropdown, .evele-horizontal-item:focus-within > .evele-horizontal-dropdown { display: block; }
.evele-horizontal-dropdown > .nav-item { display: block; position: relative; }
.evele-horizontal-dropdown .nav-link { border-radius: 7px; color: #344054; font-size: .76rem; padding: 9px 10px; white-space: nowrap; }
.evele-horizontal-dropdown .nav-link:hover { background: #f2f4f7; color: var(--evele-primary); }
.evele-horizontal-dropdown .nav-link p { display: inline; margin: 0; }
.evele-horizontal-dropdown .nav-icon { font-size: .75rem; margin-right: 7px; width: 16px; }
.evele-horizontal-dropdown .nav-treeview { display: block !important; padding: 4px 0 4px 12px; }
.evele-horizontal-dropdown .nav-treeview .nav-link { color: #667085; font-size: .72rem; padding: 7px 9px; }
body.dark-mode .evele-horizontal-menu, body.dark-mode .evele-horizontal-dropdown { background: var(--evele-surface); }
body.dark-mode .evele-horizontal-link, body.dark-mode .evele-horizontal-dropdown .nav-link { color: #e4e7ec !important; }
body.dark-mode .evele-horizontal-link:hover, body.dark-mode .evele-horizontal-dropdown .nav-link:hover { background: #1d2433; }

#table-rapport-client_wrapper,
#table-rapport-client_wrapper .dataTables_scroll,
#table-rapport-client_wrapper .dataTables_scrollHead,
#table-rapport-client_wrapper .dataTables_scrollBody { width: 100% !important; }
#table-rapport-client_wrapper .dataTables_scrollHeadInner,
#table-rapport-client_wrapper .dataTables_scrollHeadInner table { width: 100% !important; }

@media (max-width: 991.98px) {
  .evele-auth-hero { display: none; }
  .evele-auth-panel { min-height: 100vh; }
  .evele-search { min-width: 180px; width: 42vw; }
  .evele-navbar-meta { display: none !important; }
}
@media (max-width: 575.98px) {
  .evele-auth-panel { padding: 26px; }
  .evele-search { min-width: 145px; }
  .evele-search-kbd { display: none; }
  .evele-module-header { align-items: flex-start; gap: 16px; margin-bottom: 42px; }
}
