/* ======================================================================
   MSC Dashboard — app.css refresh v2
   Calibré sur les maquettes du module Extraction de commandes
   Mai 2026 — Mohann / E-M2.net

   PRINCIPE : tous les sélecteurs existants sont préservés (em2Box, title,
   colStatus, ul.menu, etc.) pour ne casser aucun template Twig. Seules
   les valeurs (couleurs, radius, espacements, typo) sont mises à jour.
   ====================================================================== */


/* ----------------------------------------------------------------------
   1. VARIABLES & DESIGN TOKENS
   ---------------------------------------------------------------------- */
:root {
    /* ------ Brand ------ */
    --brand-primary:        #046AB1;
    --brand-primary-dark:   #035A96;
    --brand-primary-light:  #E6F1F8;
    --brand-navy:           #1A4878;
    --brand-navy-dark:      #133759;

    /* ------ Semantic ------ */
    --success:              #10B981;
    --success-light:        #D1FAE5;
    --success-dark:         #065F46;
    --warning:              #F59E0B;
    --warning-light:        #FEF3C7;
    --warning-dark:         #92400E;
    --error:                #EF4444;
    --error-light:          #FEE2E2;
    --error-dark:           #991B1B;
    --info:                 #3B82F6;
    --info-light:           #DBEAFE;
    --info-dark:            #1E40AF;

    /* ------ Grayscale ------ */
    --gray-50:              #F8FAFC;
    --gray-100:             #F1F5F9;
    --gray-200:             #E2E8F0;
    --gray-300:             #CBD5E1;
    --gray-400:             #94A3B8;
    --gray-500:             #64748B;
    --gray-600:             #475569;
    --gray-700:             #334155;
    --gray-800:             #1E293B;
    --gray-900:             #0F172A;

    /* ------ Legacy variables (rétro-compat : noms conservés, valeurs alignées) ------ */
    --primary-color:        #1E293B;   /* texte courant (ex: #252525) */
    --active-color:         #046AB1;   /* bleu MSC (= logo officiel) = brand-primary */
    --button-color:         #94A3B8;   /* gris UI (ex: #949494) */
    --background:           #F8FAFC;   /* fond body (ex: #fafafa) */
    --border:               #E2E8F0;   /* bordures (ex: #e8e8e8) */

    /* ------ Radius ------ */
    --radius-sm:            6px;
    --radius-md:            8px;
    --radius-lg:            12px;
    --radius-xl:            16px;
    --radius-pill:          9999px;

    /* ------ Shadows ------ */
    --shadow-sm:            0 1px 2px rgba(15,23,42,.04);
    --shadow-md:            0 4px 12px rgba(15,23,42,.06);
    --shadow-lg:            0 12px 32px rgba(15,23,42,.08);

    /* ------ Typography ------ */
    --font-sans:            'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-mono:            'JetBrains Mono', 'SF Mono', Consolas, monospace;
}


/* ----------------------------------------------------------------------
   2. BASE — body, links, transitions
   ---------------------------------------------------------------------- */
body {
    font-size: 14px;
    line-height: 1.55;
    font-family: var(--font-sans);
    font-weight: 400;
    font-style: normal;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--gray-800);
    background: var(--background);
}

a,
.em2Animate,
.em2Animate::after,
.em2Animate::before,
.btn,
#colMenu,
#colContent,
.navColumn {
    -webkit-transition: all ease .25s;
    -moz-transition: all ease .25s;
    -ms-transition: all ease .25s;
    -o-transition: all ease .25s;
    transition: all ease .25s;
}

button:focus, .btn:focus,
button:active, .btn:active {
    outline: none;
    box-shadow: none;
}

.custom-file-input:focus ~ .custom-file-label {
    border: none;
    box-shadow: none;
}

a {
    color: var(--brand-primary);
    text-decoration: none !important;
}

a:hover,
.em2Box.boxActive li a:hover {
    color: var(--brand-primary-dark);
}

.wrapMain {
    min-height: calc(100vh - 84px);
}

a.logo {
    display: inline-block;
    width: 236px;
}

a.logo,
.mainContent {
    padding: 15px 0;
}

a.btnAll {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    color: var(--brand-primary);
    font-size: 13px;
}

a.btnAll::after {
    font-family: 'Font Awesome 5 Solid';
    font-weight: 900;
    content: "\f0d7";
    margin-left: 6px;
}


/* ----------------------------------------------------------------------
   3. LAYOUT — sidebar column, content column, collapse button
   ---------------------------------------------------------------------- */
#colMenu {
    position: relative;
    overflow: hidden;
    padding-right: 20px;
    width: 25%;
    margin-right: 20px;
}

#colContent:not(.col-12) {
    width: 75%;
}

#colContent.open {
    width: 100%;
}

a.btnMenu {
    position: absolute;
    background: var(--brand-primary);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    top: 0;
    right: 20px;
    z-index: 9;
    border-radius: var(--radius-pill);
    font-size: 14px;
    line-height: 1;
}

a.btnMenu::before {
    content: '×';
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
}

a.btnMenu.active::before {
    content: '›';
}

.navColumn {
    height: 100%;
    transform: translateX(0);
    opacity: 1;
}

#colMenu.close {
    width: 0;
}

#colMenu.close .navColumn {
    transform: translateX(-100%);
    overflow: hidden;
    opacity: 0;
}

#colMenu.close a.btnMenu {
    right: 0;
}


/* ----------------------------------------------------------------------
   4. SIDEBAR MENU
   ---------------------------------------------------------------------- */
ul.menu {
    list-style: none;
    padding: 24px 14px;
    margin: 0;
    background: var(--brand-primary);
    height: 100%;
    position: relative;
    border-radius: var(--radius-xl);
}

ul.menu li {
    display: block;
    margin-bottom: 4px;
    border-radius: var(--radius-md);
    background: transparent;
    position: relative;
}

/* (ul.menu li.btnLogout was commented in source — kept commented intent) */

ul.menu li:hover,
ul.menu li.active {
    background: #fff;
}

ul.menu li a {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    width: 100%;
    border-radius: var(--radius-md);
}

ul.menu li a .fal {
    font-size: 18px;
}

ul.menu li a svg,
ul.menu li a img,
ul.menu li a .fal {
    margin-right: 12px;
    max-width: 20px;
    fill: #fff;
}

ul.menu li:hover a,
ul.menu li.active a {
    padding-left: 14px;
    padding-right: 14px;
    color: var(--brand-primary);
}

ul.menu li:hover a svg,
ul.menu li.active a svg,
ul.menu li:hover a svg path,
ul.menu li.active a svg path {
    fill: var(--brand-primary);
}

/* Submenu (dropdown) */
ul.menu li .submenu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    list-style: none;
    margin: 0;
    padding: 8px 14px;
    width: 100%;
    background: #fff;
    visibility: hidden;
    opacity: 0;
    filter: alpha(opacity=0);
    -webkit-transform-origin: 0 0;
    -moz-transform-origin: 0 0;
    -ms-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transition: all 0.2s ease-in-out 0s;
    -o-transition: all 0.2s ease-in-out 0s;
    transition: all 0.2s ease-in-out 0s;
    -webkit-transform: rotateX(-90deg);
    -ms-transform: rotateX(-90deg);
    -o-transform: rotateX(-90deg);
    transform: rotateX(-90deg);
    z-index: 9999;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

ul.menu li .submenu::before {
    position: absolute;
    border-bottom: 10px solid #fff;
    border-right: 10px solid transparent;
    content: '';
    top: -10px;
    left: 24px;
    border-left: 10px solid transparent;
}

ul.menu li .submenu li:last-child {
    margin-bottom: 0;
}

ul.menu li .submenu li a {
    color: var(--gray-700);
    font-size: 13px;
    padding-left: 0;
    padding-right: 0;
}

ul.menu li .submenu li a:hover,
ul.menu li .submenu li.active a {
    color: var(--brand-primary);
}

ul.menu li:hover .submenu,
ul.menu li.active .submenu {
    visibility: visible;
    opacity: 1;
    filter: alpha(opacity=100);
    -webkit-transform: rotateX(0deg);
    -ms-transform: rotateX(0deg);
    -o-transform: rotateX(0deg);
    transform: rotateX(0deg);
}


/* ----------------------------------------------------------------------
   5. TITLES & HEADINGS
   ---------------------------------------------------------------------- */
.title {
    font-size: 22px;
    font-weight: 600;
    color: var(--brand-navy);
    letter-spacing: -0.01em;
}

.title.default {
    color: var(--brand-navy);
}

.h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-navy);
    letter-spacing: -0.015em;
}

.h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--brand-navy);
}

.h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--brand-navy);
}


/* ----------------------------------------------------------------------
   6. NOTIFICATIONS BAR & TOP CONTROLS
   ---------------------------------------------------------------------- */
.notifications {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.project label,
.project .dropdown {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    display: inline-block;
    width: auto;
    font-size: 13px;
}

.project .dropdown button {
    background: none;
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    font-weight: 500;
}

.resultClient > ul {
    border-radius: var(--radius-md);
    border: 1px solid var(--brand-primary);
    list-style: none !important;
    overflow: hidden;
}

.resultClient > ul li > div {
    padding: 0 !important;
    background: none !important;
    border: none !important;
}

.resultClient ul li .ui-state-active {
    color: var(--brand-primary);
    border: none;
    margin: 0;
}

.project .dropdown-menu,
.resultClient > ul {
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
    padding: 0;
    overflow: hidden;
}

.project .dropdown-menu li a,
.resultClient > ul li {
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 8px 14px;
    font-size: 13px;
}

.project .dropdown-menu li a:hover,
.resultClient > ul li:hover,
.project .dropdown-menu li a.active {
    color: var(--brand-primary);
    background-color: #fff;
}

.project .dropdown-menu li:last-child a,
.resultClient > ul li:last-child {
    border: none;
}

.notification {
    color: var(--brand-primary);
    font-size: 24px;
    position: relative;
    margin-left: 12px;
}

.notification button {
    background: none;
    border: none;
    color: var(--brand-primary);
    position: relative;
}

.notification button::after {
    display: none;
}

.notification span {
    position: absolute;
    font-size: 10px;
    color: #fff;
    background: var(--error);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    top: -2px;
    right: -4px;
    border: 2px solid #fff;
}

.notification ul {
    border-color: var(--gray-200);
    background-color: #fff;
    padding: 10px;
    right: 0 !important;
    left: auto !important;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.notification ul li {
    font-size: 13px;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 8px;
    margin-bottom: 8px;
    color: var(--gray-700);
}

.notification ul li:last-child {
    border: none;
    padding-bottom: 0;
    margin-bottom: 0;
}


/* ----------------------------------------------------------------------
   7. CARDS — em2Box, em2BoxFilter, boxDocument, itemBlog
   ---------------------------------------------------------------------- */
.em2Box,
.em2BoxFilter {
    border-radius: var(--radius-xl);
    background: #fff;
    padding: 24px;
    min-height: 188px;
    position: relative;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.em2BoxFilter {
    min-height: auto;
    margin-bottom: 32px;
    margin-top: 32px;
}

.em2Box.boxActive {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
}

.em2Box.boxBorder,
.em2BoxFilter {
    border: 1px solid var(--gray-200);
}

.em2Box.boxActiveRed {
    border: 1px solid var(--error);
}

.em2Box .title {
    color: var(--gray-500);
    min-height: 36px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.em2Box .title.titleActive {
    color: var(--brand-navy);
    font-size: 18px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.em2Box .val {
    font-size: 44px;
    color: var(--brand-navy);
    font-weight: 700;
    margin-top: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.em2Box.boxActive .val,
.em2Box.boxActive .title,
.em2Box.boxActive li a {
    color: #fff;
}

.em2Box .val ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.em2Box .val ol {
    margin: 0;
    padding-left: 15px;
}

.em2Box .val ul li,
.em2Box .val ol li {
    font-size: 14px;
    line-height: 20px;
    margin-top: 5px;
}

.em2Box .val ul li::before {
    display: inline-block;
    content: '-';
    margin-right: 5px;
}

.em2Box.boxLastConnection {
    height: calc(100% - 1rem);
}

/* Blog items (itemBlog) */
.itemBlog {
    text-align: center;
}

.itemBlog img {
    height: 100px;
    width: auto;
    transition: transform .3s ease;
}

.itemBlog a {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 13px;
    display: inline-block;
    margin-top: 12px;
    line-height: 1.4;
}

.itemBlog a:hover {
    color: var(--brand-primary);
}

.itemBlog:hover img {
    transform: scale(1.08);
}

/* Document box */
.em2Box.boxDocument {
    padding-left: 24px;
    padding-right: 24px;
}

.em2Box.boxDocument .title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.boxDocument ul {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
}

.boxDocument ul li {
    display: flex;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    padding-bottom: 12px;
    margin-bottom: 12px;
    align-items: center;
    position: relative;
}

.boxDocument ul li::before {
    display: inline-block;
    content: '';
    background: url("../images/icon-document-black-f26ad394f218f97a659051a6d7292984-f26ad394f218f97a659051a6d7292984.svg") no-repeat center;
    width: 28px;
    height: 28px;
    background-size: cover;
    margin-right: 12px;
}

.boxDocument ul li::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: calc(100% - 40px);
    border-bottom: 1px solid var(--gray-200);
}

.boxLastConnection.boxDocument ul li::before {
    display: none;
}

.boxLastConnection.boxDocument ul li::after {
    width: 100%;
}

.boxDocument ul li:last-child {
    padding: 0;
    margin: 0;
}

.boxDocument ul li:last-child::after {
    display: none;
}


/* ----------------------------------------------------------------------
   8. TABLES — table.table, status badges, tableFluxDetail
   ---------------------------------------------------------------------- */
table.table {
    border-spacing: 0;
    border-collapse: separate;
    width: 100%;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

table.table th,
table.table td {
    border: none;
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 13px;
    line-height: 1.4;
    border-bottom: 1px solid var(--gray-100);
}

table.table tbody tr:last-child td {
    border-bottom: none;
}

.tableFluxDetail table.table th,
.tableFluxDetail table.table td {
    padding: 10px 12px;
}

table.table thead th {
    background: var(--gray-50);
    color: var(--gray-500);
    font-weight: 600;
    font-size: 11px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--gray-200);
}

.tableFluxDetail table.table thead th {
    font-size: 11px;
}

table.table tbody td {
    background: #fff;
    color: var(--gray-700);
}

/* Status badges (replaces hardcoded green/red/orange) */
table.table tbody td.colStatus {
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

table.table tbody td.colStatus.OK {
    background: var(--success-light);
    color: var(--success-dark);
}

table.table tbody td.colStatus.ANOMALIES,
table.table tbody td.colStatus.INCIDENTS {
    background: var(--error-light);
    color: var(--error-dark);
}

table.table tbody td.colStatus.REMARQUES {
    background: var(--warning-light);
    color: var(--warning-dark);
}

table.table tbody td.date {
    background: var(--gray-50);
    color: var(--gray-600);
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 12px;
}

table.table tbody td.name {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
    color: var(--brand-navy);
}


/* ----------------------------------------------------------------------
   9. TABS — nav-tabs
   ---------------------------------------------------------------------- */
.nav-tabs {
    display: flex;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    flex-wrap: wrap;
    padding: 4px;
    gap: 2px;
}

.nav-tabs li {
    border: none;
    flex: 1 0 0%;
    width: 100%;
}

.nav-tabs li .nav-link {
    border: none;
    margin: 0;
    background: transparent;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    transition: all .15s ease;
}

.nav-tabs li:first-child .nav-link {
    border: none;
}

.nav-tabs li .nav-link.active,
.nav-tabs li .nav-link:hover {
    background: #fff;
    color: var(--brand-primary);
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.tab-content {
    margin: 32px 0;
}


/* ----------------------------------------------------------------------
   10. DOCUMENTS — itemDocument, linkDocument
   ---------------------------------------------------------------------- */
.itemDocument {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 32px;
}

.itemDocument .icon {
    width: 64px;
    height: 64px;
    background: url("../images/icon-document-black-f26ad394f218f97a659051a6d7292984-f26ad394f218f97a659051a6d7292984.svg") no-repeat center;
    background-size: contain;
}

.itemDocument .detail {
    width: calc(100% - 84px);
}

.titleDocument {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--brand-navy);
    text-transform: capitalize;
    margin-bottom: 16px;
}

.linkDocument a {
    display: flex;
    margin-bottom: 6px;
    align-items: center;
    color: var(--brand-primary);
    font-size: 13px;
}

.linkDocument a::before {
    font-family: 'Font Awesome 5 Light';
    font-weight: 300;
    content: "\f054";
    font-size: 8px;
    margin-right: 6px;
}


/* ----------------------------------------------------------------------
   11. PAGINATION
   ---------------------------------------------------------------------- */
.pagination .page-item .page-link {
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: var(--radius-md);
    background: #fff;
}

.pagination .page-item.active .page-link,
.pagination .page-item .page-link:hover {
    background-color: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}


/* ----------------------------------------------------------------------
   12. CARDS DIVERS — boxLink, cardDossier, modal
   ---------------------------------------------------------------------- */
.em2Box .boxLink {
    position: absolute;
    bottom: 16px;
    right: 16px;
}

.card.cardDossier {
    padding: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.card.cardDossier .card-body {
    padding: 16px;
}

.btn.btnAddNewDossier {
    height: 36px;
    min-width: auto;
    padding: 0 12px;
}

.modal.fade.show {
    background: rgba(15, 23, 42, 0.5);
}


/* ----------------------------------------------------------------------
   13. BUTTONS — .btn, .btnLink, variants
   ---------------------------------------------------------------------- */
.btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
    background: var(--brand-primary);
    justify-content: center;
    color: #fff;
    min-width: 160px;
    border: 1px solid var(--brand-primary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn i {
    margin-right: 6px;
}

.btn:hover {
    background: var(--brand-primary-dark);
    color: #fff;
    border-color: var(--brand-primary-dark);
}

.btnLink {
    border: none;
    background: none;
    display: block;
    padding: 0;
    color: var(--brand-primary);
    font-weight: 500;
}

.btnLink:hover {
    color: var(--brand-primary-dark);
}


/* ----------------------------------------------------------------------
   14. FORMS — form-control, form-select, select2
   ---------------------------------------------------------------------- */
.form-control,
.form-select,
.select2-container .select2-selection--single {
    height: 42px;
    background: #fff;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    -moz-border-radius: var(--radius-md);
    -webkit-border-radius: var(--radius-md);
    padding: 0 12px;
    font-size: 14px;
    color: var(--gray-800);
}

label#filterBtn {
    cursor: pointer;
    border: 1px solid var(--brand-primary);
    border-radius: var(--radius-md);
    padding: 6px 12px;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 500;
    font-size: 13px;
}

.notifications .project .dropdown button {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.notifications form.formExport {
    margin-left: 6px;
}

.notifications form .dateGroup {
    gap: 4px;
}

.notifications form .form-control {
    height: 30px;
    border: 1px solid var(--brand-primary);
    font-size: 12px;
    border-radius: var(--radius-md);
    -moz-border-radius: var(--radius-md);
    -webkit-border-radius: var(--radius-md);
    color: var(--brand-primary);
    padding: 0 10px;
}

.notifications form .btn {
    width: auto;
    height: 30px;
    min-width: auto;
    margin-top: 0;
    padding: 0 12px;
    font-size: 12px;
}

.notifications form.formExport .btn {
    font-size: 12px;
}

.notifications form .btn i {
    display: none;
}

.notifications form .btn.loading i {
    display: inline-block;
}

.notifications form .project {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

textarea.form-control {
    min-height: 150px;
    padding: 12px;
    height: auto;
}

.form-control:focus {
    border-color: var(--brand-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(19, 137, 200, 0.12);
}

.form-control::-moz-placeholder {
    color: var(--gray-400);
    text-transform: none;
}

.form-control:-ms-input-placeholder {
    color: var(--gray-400);
    text-transform: none;
}

.form-control::-webkit-input-placeholder {
    color: var(--gray-400);
    text-transform: none;
}

.notifications form .form-control::-moz-placeholder {
    color: var(--brand-primary);
    text-transform: none;
}

.notifications form .form-control:-ms-input-placeholder {
    color: var(--brand-primary);
    text-transform: none;
}

.notifications form .form-control::-webkit-input-placeholder {
    color: var(--brand-primary);
    text-transform: none;
}

span.form-control.spanDisable {
    pointer-events: none;
    background-color: var(--gray-100);
    color: var(--gray-500);
    display: flex;
    align-items: center;
}


/* ----------------------------------------------------------------------
   15. LOADERS — lds-ellipsis
   ---------------------------------------------------------------------- */
.lds-ellipsis,
.lds-ellipsis div {
    box-sizing: border-box;
}

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ellipsis div {
    position: absolute;
    top: 33.33333px;
    width: 13.33333px;
    height: 13.33333px;
    border-radius: 50%;
    background: var(--brand-primary);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes lds-ellipsis3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes lds-ellipsis2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}


/* ======================================================================
   16. NEW UTILITY COMPONENTS — pour le module Extraction de commandes
   et utilisables partout dans le dashboard refresh
   ====================================================================== */


/* ---- 16.1 Bootstrap alerts overrides (cohérence palette) ---- */
.alert {
    border-radius: var(--radius-md);
    border: 1px solid;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 500;
}

.alert-success {
    background: var(--success-light);
    border-color: var(--success);
    color: var(--success-dark);
}

.alert-warning {
    background: var(--warning-light);
    border-color: var(--warning);
    color: var(--warning-dark);
}

.alert-danger {
    background: var(--error-light);
    border-color: var(--error);
    color: var(--error-dark);
}

.alert-info {
    background: var(--info-light);
    border-color: var(--info);
    color: var(--info-dark);
}


/* ---- 16.2 Badges en pilule ---- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.badge-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-pill.is-success {
    background: var(--success-light);
    color: var(--success-dark);
}

.badge-pill.is-warning {
    background: var(--warning-light);
    color: var(--warning-dark);
}

.badge-pill.is-error {
    background: var(--error-light);
    color: var(--error-dark);
}

.badge-pill.is-info {
    background: var(--info-light);
    color: var(--info-dark);
}

.badge-pill.is-neutral {
    background: var(--gray-100);
    color: var(--gray-700);
}

.badge-pill.is-brand {
    background: var(--brand-primary-light);
    color: var(--brand-primary-dark);
}

.badge-pill.no-dot::before {
    display: none;
}


/* ---- 16.3 Boutons secondaires & variantes ---- */
.btn.btn-secondary {
    background: #fff;
    color: var(--brand-navy);
    border: 1px solid var(--gray-300);
}

.btn.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--brand-navy);
}

.btn.btn-ghost {
    background: transparent;
    color: var(--brand-primary);
    border: 1px solid transparent;
    min-width: auto;
}

.btn.btn-ghost:hover {
    background: var(--brand-primary-light);
    color: var(--brand-primary-dark);
    border-color: transparent;
}

.btn.btn-sm {
    height: 32px;
    min-width: auto;
    padding: 0 12px;
    font-size: 12px;
}

.btn.btn-lg {
    height: 48px;
    padding: 0 24px;
    font-size: 15px;
}


/* ---- 16.4 Fil d'Ariane (breadcrumbs) ---- */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--gray-500);
    text-decoration: none !important;
}

.breadcrumbs a:hover {
    color: var(--brand-primary);
}

.breadcrumbs .separator {
    color: var(--gray-300);
    font-size: 11px;
}

.breadcrumbs .current {
    color: var(--brand-navy);
    font-weight: 600;
}


/* ---- 16.5 KPI cards avec tendance ---- */
.kpi-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 20px 24px;
    box-shadow: var(--shadow-sm);
}

.kpi-card .kpi-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.kpi-card .kpi-value {
    font-size: 42px;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1;
    letter-spacing: -0.02em;
}

.kpi-card .kpi-trend {
    margin-top: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
}

.kpi-card .kpi-trend.is-up {
    color: var(--warning-dark);
}

.kpi-card .kpi-trend.is-down {
    color: var(--gray-500);
}

.kpi-card.is-highlight {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.kpi-card.is-highlight .kpi-label,
.kpi-card.is-highlight .kpi-value,
.kpi-card.is-highlight .kpi-trend {
    color: #fff;
}

.kpi-card.is-highlight .kpi-label {
    color: rgba(255,255,255,0.85);
}


/* ---- 16.6 Empty states / placeholders ---- */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--gray-500);
}

.empty-state .empty-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.empty-state .empty-description {
    font-size: 13px;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}


/* ---- 16.7 Helper text & meta ---- */
.text-muted {
    color: var(--gray-500) !important;
}

.text-meta {
    font-size: 12px;
    color: var(--gray-500);
}

.label-eyebrow {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* ---- 16.8 Page header (titre H1 + actions à droite) ---- */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-header .page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--brand-navy);
    letter-spacing: -0.015em;
    margin: 0;
}

.page-header .page-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 4px;
}

.page-header .page-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}


/* ---- 16.9 Responsive — sidebar collapse sur mobile ---- */
@media (max-width: 768px) {
    #colMenu {
        width: 100%;
        margin-right: 0;
        padding-right: 0;
    }
    #colContent:not(.col-12) {
        width: 100%;
    }
    .em2Box .val {
        font-size: 36px;
    }
    .page-header .page-title {
        font-size: 22px;
    }
}
