/* ===== RESET SIMPLE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f3f4f6;
    color: #222;
}

/* ===== TOPBAR ===== */


.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:38px; width:auto; display:block; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.brand .who{ display:flex; flex-direction:column; gap:2px; line-height:1.1; }
.brand .who strong{ font-size:14px; font-weight:800; letter-spacing:.2px; }
.brand .who span{ font-size:12px;  }
.pills{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.pill{
  font-size:12px;
  padding: 6px 10px;
  border-radius:999px;
  background: rgba(148,163,184,.12);
  border: 1px solid rgba(148,163,184,.18);
}
body.light .pill{ background: rgba(15,23,42,.04); border-color: rgba(15,23,42,.10); }

.actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.topbar{background:#FFF;}
/* Toolbar */
.toolbar{
  padding: 12px 16px 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  justify-content: space-between;
      position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, .72);
    border-bottom: 1px solid var(--line);
	
}
.toolbar-left{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.toolbar-right{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }bar-right{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

.topbar-inner{
 
  margin:0 auto;
  padding: 0px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.topbar-btn {
    background: #444;
    padding: 8px 14px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.topbar-btn:hover {
    background: rgba(37, 99, 235, .55);
}

.topbar-blue {
    background: rgba(15, 23, 42, .04);
    color: #0f172a;
	
	border-color: rgba(37, 99, 235, .55);
    border: 1px solid rgba(37, 99, 235, .55);
}

.topbar-blue:hover {
    background: #004ec7 !important;
}

.cart-icon {
    cursor: pointer;
    font-size: 20px;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
}

.cart-count {
    background: #ff4747;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
    margin-left: 4px;
    color: white;
}

/* ===== LAYOUT PRINCIPAL ===== */
.container {
    max-width: 1200px;
    margin: 20px auto 40px auto;
    padding: 0 16px;
}

h1 {
    font-size: 26px;
    margin-bottom: 20px;
}

/* ===== PANELS ===== */
.panel {
    background: white;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.panel h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

/* ===== FORMULAIRES ===== */
label {
    display: block;
    margin-top: 10px;
    margin-bottom: 4px;
    font-size: 14px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="date"],
select {
    width: 100%;
    padding: 7px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

input[readonly] {
    background: #f5f5f5;
}

button,
input[type="submit"] {
    margin-top: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    background: #0a6cff;
    color: white;
    font-size: 14px;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
    background: #004ec7;
}

/* ===== MESSAGES ===== */
.success {
    background: #e5f9e7;
    border: 1px solid #46c061;
    color: #256b34;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.error {
    background: #ffe8e6;
    border: 1px solid #f97373;
    color: #9b1c1c;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* ===== ÉTAPES ===== */
.step-indicator {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    border-radius: 16px;
    background: #e5e7eb;
    font-size: 13px;
}

.step.active {
    background: #0a6cff;
    color: white;
    font-weight: 600;
}

/* ===== BADGE MAGASIN ===== */
.badge-store {
    display: inline-block;
    background: #ecfdf3;
    color: #166534;
    border: 1px solid #6ee7b7;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 13px;
}

/* ===== GRID PRODUITS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 10px;
}

.product-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 6px;
    background: white;
    border: 1px solid #e5e7eb;
}

.product-no-image {
    height: 140px;
    border-radius: 6px;
    background: repeating-linear-gradient(
        45deg,
        #e5e7eb,
        #e5e7eb 10px,
        #f3f4f6 10px,
        #f3f4f6 20px
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #4b5563;
}

.product-card h3 {
    font-size: 15px;
    margin-top: 4px;
}

.product-card .price {
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
}

/* ===== TABLES GÉNÉRALES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table th,
table td {
    border: 1px solid #e5e7eb;
    padding: 6px 8px;
    text-align: left;
}

table th {
    background: #f3f4f6;
    font-weight: 600;
}

/* ===== MODALE PANIER ===== */
#cartModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.35);
}

#cartContent {
    background-color: #fefefe;
    margin: 70px auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.closeCart {
    color: #aaa;
    float: right;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
}

.closeCart:hover {
    color: #000;
}

/* Table panier */
.cart-table th,
.cart-table td {
    font-size: 13px;
}

/* ===== BOUTON SECONDAIRE (pour history.php par ex.) ===== */
.btn-secondary {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* ===== FILTRES (history.php) ===== */
.filters-form {
    margin-top: 10px;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-field {
    flex: 1;
    min-width: 160px;
}

.filters-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ===== DASHBOARD (history / autres pages) ===== */
.dashboard-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.dash-card {
    flex: 1;
    min-width: 180px;
    background: white;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.dash-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.dash-value {
    font-size: 16px;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .topbar-right {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .filters-row {
        flex-direction: column;
    }
}
/* ===== PAGE LOGIN ===== */

.login-body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #ffffff 0, #f3f4f6 45%, #e5e7eb 100%);
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 32px 40px 28px 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    text-align: center;
    position: relative;
}

/* Logos */
.login-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 18px;
}

.login-logo {
    max-height: 70px;
    object-fit: contain;
}

.lff-logo {
    max-width: 160px;
}

.idn-logo {
    max-width: 140px;
}

/* Texte d'accroche */
.login-tagline {
    margin: 0 0 18px 0;
    font-size: 16px;
    line-height: 1.4;
    color: #4b5563;
}

.login-title {
    font-size: 22px;
    margin-bottom: 16px;
    color: #111827;
    font-weight: 500;
}

/* ===== PAGE LOGIN ===== */

.login-body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #ffffff 0, #f3f4f6 45%, #e5e7eb 100%);
    min-height: 100vh;
    font-size: 18px; /* effet "zoom 125%" uniquement sur la page login */
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 24px 24px;
}

/* Carte agrandie (équivalent ~125% zoom) */
.login-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 44px 30px 44px;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    text-align: center;
    position: relative;

   
    transform-origin: top center;
}

/* Logos */
.login-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 22px;
}

.login-logo {
    max-height: 100px;
    object-fit: contain;
}

.lff-logo {
    max-width: 180px;
	filter:drop-shadow(0 4px 10px rgba(0,0,0,.25));
}

.idn-logo {
    max-width: 150px;
	filter:drop-shadow(0 4px 10px rgba(0,0,0,.25));
}

/* Texte d'accroche */
.login-tagline {
    margin: 0 0 22px 0;
    font-size: 16px;
    line-height: 1.45;
    color: #4b5563;
}

/* Titre */
.login-title {
    font-size: 26px;
    margin-bottom: 18px;
    color: #111827;
    font-weight: 500;
}

/* Formulaire */
.login-form {
    text-align: left;
    margin-top: 10px;
}

.login-form label {
    display: block;
    margin-top: 12px;
    margin-bottom: 5px;
    font-size: 16px;
    color: #6b7280;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    background: #f9fafb;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #0a6cff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
    background: #ffffff;
}

.login-actions {
    margin-top: 20px;
    text-align: center;
}

/* Bouton principal */
.login-button {
    width: 100%;
    padding: 14px 20px;
    border-radius: 999px;
    border: none;
    background: #0a6cff;
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
    transition: transform 0.08s ease-out, box-shadow 0.08s ease-out, background 0.08s;
}

.login-button:hover {
    background: #004ec7;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.4);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

/* Lien mot de passe oublié */
.login-links {
    margin-top: 12px;
    text-align: center;
}

.login-links a {
    font-size: 15px;
    color: #2563eb;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Message d'erreur spécifique login */
.login-error {
    margin-bottom: 14px;
    font-size: 15px;
}

/* Bas de carte : aide */
.login-help {
    margin-top: 24px;
    font-size: 15px;
    color: #6b7280;
}

/* Responsive : on supprime le scale sur mobile pour éviter le débordement */
@media (max-width: 640px) {
    .login-wrapper {
        padding: 24px 16px;
    }

    .login-card {
        padding: 24px 20px 20px 20px;
        transform: none;
        max-width: 100%;
    }

    .login-logos {
        flex-direction: column;
        gap: 16px;
    }

    .login-body {
        font-size: 16px;
    }

    .login-tagline {
        font-size: 16px;
    }

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

/* ===== FILTRE CATEGORIES PRODUITS ===== */
.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.category-tab {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.category-tab:hover {
    background: #e5e7eb;
}

.category-tab.active {
    background: #0a6cff;
    color: #ffffff;
    border-color: #0a6cff;
}
.product-advantages {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 12px 0 20px 0;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
}

.advantage-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}


.filters-form {
    display: block;
    margin-bottom: 15px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    font-weight: bold;
    margin-bottom: 4px;
}

.filters-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.filters-actions .btn-primary {
    background:#2563eb;
    color:white;
    padding:8px 14px;
    border:1px solid #2563eb;
    border-radius:5px;
    cursor:pointer;
}

.filters-actions .btn-secondary {
       padding: 4px 28px;
    border: 1px solid #888;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    height: 3.4vh;
    margin-top: 14px;
    background: red;
}

@media(max-width:900px){
    .filters-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:600px){
    .filters-grid {
        grid-template-columns: 1fr;
    }
}

.modal-overlay {
    position: fixed;
    top:0; left:0; right:0; bottom:0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    display:none;
    opacity:0;
    transition: opacity 0.25s ease;
    z-index:1500;
}

.modal-box {
    position: fixed;
    top:50%;
    left:50%;
    transform: translate(-50%, -55%) scale(0.8);
    min-width: 25%;
    max-width: 90%;
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    display:none;
    opacity:0;
    transition: 0.25s ease;
    z-index:1600;
    text-align:center;
}

.modal-actions {
    margin-top: 22px;
    display:flex;
    justify-content: center;
    gap:15px;
}
 
.btn-primary {
    background:#0a6cff;
    color:white;
    padding:10px 16px;
    border-radius:6px;
    border:none;
    cursor:pointer;
}

.btn-secondary {
    background:#e2e8f0;
    padding:10px 16px;
    border-radius:6px;
    cursor:pointer;
}

/* ===== FIX MODALES CENTRALE ===== */
.modal-box.show {
    display: block !important;
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

#overlayGlobal.show {
    display: block !important;
}

.cart-thumb-small {
    width: 60px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    border: 1px solid #ddd;
    padding: 3px;
    background: #fff;
    border-radius: 4px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}
.role-tag {
       background: #374151;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 8px;
    font-size: 12px;
    margin-top: 21px;
    color: #FFF;
    float: left;
}

/* ROUGE — À VALIDER */
.status-red {
    background-color: #dc2626;
}

/* ORANGE — Validé par les achats */
.status-orange {
    background-color: #f97316;
}

/* VERT — Validé par la centrale */
.status-green {
    background-color: #16a34a;
}

/* BLEU — Validé par IDN */
.status-blue {
    background-color: #2563eb;
}

/* GRIS — Annulée */
.status-grey {
    background-color: #6b7280;
}

/* Par défaut */
.status-default {
    background-color: #444;
}

.cart-thumb {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 4px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

/* ORANGE — Attente validation Achat */
.badge-orange {
    background: #ffb74d;
    color: #8a4b00;
}

/* VERT — Validée par la centrale */
.badge-green {
    background: #81c784;
    color: #1b5e20;
}

/* BLEU — Validée par IDN */
.badge-blue {
    background: #64b5f6;
    color: #0d47a1;
}

/* GRIS — Annulée */
.badge-grey {
    background: #e0e0e0;
    color: #424242;
}

/* DEFAULT */
.badge-default {
    background: #cfcfcf;
    color: #333;
}

.pdf-link {
    font-weight: 600;
    color: #0a6cff;
}
.pdf-link:hover {
    text-decoration: underline;
}
/* ============================================
   RACCOURCIS STATUTS — STYLE PREMIUM IDN 2025
=============================================== */

.status-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.status-filter-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 40px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all .25s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Effet hover modernisé */
.status-filter-badge:hover {
    background: #ffffff;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Badge actif (statut sélectionné) */
.status-filter-badge.active {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white !important;
    border-color: #1d4ed8;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

/* Effet pulse discret sur badge actif */
.status-filter-badge.active {
    animation: pulseBadge 1.6s infinite ease-in-out;
}

@keyframes pulseBadge {
    0% { box-shadow: 0 4px 15px rgba(37,99,235,0.35); }
    50% { box-shadow: 0 4px 22px rgba(37,99,235,0.55); }
    100% { box-shadow: 0 4px 15px rgba(37,99,235,0.35); }
}

/* Pastilles couleurs améliorées */
.bullet {
    width: 12px;
    height: 12px;
    display: inline-block;
    
    box-shadow: 0 0 0 2px #ffffff inset;
}

/* Couleurs harmonisées */
.badge-orange { background: #f59e0b; }
.badge-green  { background: #10b981; }
.badge-blue   { background: #3b82f6; }
.badge-grey   { background: #6b7280; }
.badge-default { background: #9ca3af; }

/* Effet bulle 3D */
.bullet {
    transition: transform .25s ease;
}

.status-filter-badge:hover .bullet {
    transform: scale(1.25);
}
/* Correction d'affichage des labels */
.filters-form label,
.filter-item label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

/* Empêche le chevauchement */
.filter-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.filters-grid select,
.filters-grid input[type="date"],
.filters-grid input[type="text"] {
    height: 40px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    transition: all .25s ease;
}

* Panel amélioré */
.panel {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    margin-bottom: 22px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    transition: all .25s ease;
}
.panel:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

/* Tableau modernisé */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    border-radius: 10px;
    overflow: hidden;
}

table thead tr {
    background: #2563eb;
    color: white;
    font-weight: 600;
    text-align: left;
}

table thead th {
    padding: 12px;
    font-size: 14px;
	color:#000;
}

table tbody tr {
    background: #ffffff;
    transition: all .25s ease;
}

table tbody tr:hover {
    background: #f3f4f6;
    transform: scale(1.005);
}

/* Ligne alternée */
table tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Cellules */
table td {
    padding: 10px;
    vertical-align: middle;
}

/* Boutons — Design unifié IDN */
.btn-primary {
    background: #2563eb;
    color: white;
    padding: 9px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
}
.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
}

/* Bouton secondaire */
.btn-secondary {
    background: #e2e8f0;
    padding: 8px 12px;
    color: #1e293b;
    border-radius: 8px;
    transition: .25s ease;
}
.btn-secondary:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

/* Badges statuts premium */
.status-badge {
    padding: 6px 12px;
    border-radius: 40px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
    transition: .25s ease;
}

.status-orange { background: #f59e0b; }
.status-green  { background: #10b981; }
.status-blue   { background: #3b82f6; }
.status-grey   { background: #6b7280; }

/* Effet hover badges */
.status-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.20);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin-top: 16px;
}

/* Responsive pro */
@media (max-width: 900px) {
    .filters-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
    .filters-grid { grid-template-columns: 1fr; }
}

.filters-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}
/* ============================================
   COMPRESSION VISUELLE DU BLOC FILTRES
============================================ */

/* Réduit le padding global */
.filters-form {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* Panel filtres plus compact */
.panel {
    padding: 16px 20px !important;
}

/* Réduit l'espace entre le titre et le contenu */
.panel h2 {
    margin-bottom: 10px !important;
}

/* Grille plus compacte : 4 colonnes étroites */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 5px !important;
}

/* Réduction des marges verticales */
.filter-item {
    margin-bottom: 0 !important;
}

/* Labels plus compacts */
.filter-item label {
    font-size: 13px;
    margin-bottom: 4px !important;
}

/* Champs plus petits */
.filters-grid select,
.filters-grid input[type="date"],
.filters-grid input[type="text"] {
    height: 34px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
}

/* Boutons filtres compressés */
.filters-actions {
    margin-top: 10px !important;
}

.filters-actions button,
.filters-actions a {
    padding: 7px 14px !important;
    font-size: 14px !important;
}

/* ----------- Responsive optimisé ----------- */
@media (max-width: 900px) {
    .filters-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .filters-grid {
        grid-template-columns: 1fr !important;
    }
}
