body {
    font-family: Arial;
    margin: 0;
    background-color: #f3f5f4;
    color: #1f2933;
}

.home {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(67,176,42,0.18), transparent 30%),
        linear-gradient(135deg, #06110d 0%, #0b1220 55%, #06110d 100%);
    color: #f8fafc;
}

.hero-simple {
    height: 270px;
    background:
        radial-gradient(circle at top right, rgba(67,176,42,0.50), transparent 35%),
        linear-gradient(135deg, #0b0f0d 0%, #121a16 48%, #1d4f1d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    text-align: center;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px;
    padding: 28px 70px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}

.logo-accueil {
    width: 300px;
    max-height: 110px;
    object-fit: contain;
    margin-bottom: 12px;
}

.hero-card h1 {
    color: white;
    font-size: 42px;
    margin: 0;
    letter-spacing: 1px;
}

.section-restaurants {
    margin: -35px 48px 50px 48px;
    position: relative;
}

.restaurants {
    display: flex;
    gap: 28px;
}

.restaurant {
    position: relative;
    width: 32%;
    min-height: 450px;
    background-color: white;
    border: 1px solid #d7ddd9;
    padding: 16px;
    text-decoration: none;
    color: #1f2933;
    text-align: center;
    box-shadow: 0 14px 30px rgba(0,0,0,0.16);
    border-radius: 16px;
    transition: 0.2s;
}

.restaurant.actif {
    border: 2px solid #43b02a;
}

.restaurant.actif:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(0,0,0,0.22);
}

.restaurant.bloque {
    opacity: 0.62;
}

.photo-resto {
    width: 100%;
    height: 255px;
    object-fit: cover;
    border-radius: 12px;
}

.restaurant h2 {
    font-size: 31px;
    margin-bottom: 6px;
}

.restaurant.actif h2 {
    color: #43b02a;
}

.badge-dispo, .badge-bloque {
    position: absolute;
    top: 28px;
    right: 28px;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
}

.badge-dispo {
    background-color: #43b02a;
    color: white;
}

.badge-bloque {
    background-color: #e5e7eb;
    color: #4b5563;
}

.bouton-carte {
    display: inline-block;
    margin-top: 25px;
    background-color: #43b02a;
    color: white;
    padding: 14px 62px;
    border-radius: 8px;
    font-weight: bold;
}

.bouton-bloque {
    display: inline-block;
    margin-top: 25px;
    background-color: #e5e7eb;
    color: #6b7280;
    padding: 14px 45px;
    border-radius: 8px;
}

/* Pages internes */
.app-page {
    background:
        radial-gradient(circle at top right, rgba(67,176,42,0.18), transparent 28%),
        #eef2ef;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 295px;
    height: 100vh;
    overflow-y: auto;
    position: sticky;
    top: 0;
    background:
        linear-gradient(180deg, #101513 0%, #17211b 58%, #0d120f 100%);
    color: white;
    padding: 22px;
    box-shadow: 8px 0 25px rgba(0,0,0,0.22);
}

.sidebar-logo {
    background-color: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.sidebar-logo img {
    width: 210px;
    max-height: 85px;
    object-fit: contain;
}

.sidebar-title {
    margin-top: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.sidebar-title h2 {
    color: #43b02a;
    font-size: 31px;
    margin: 0;
}

.sidebar-title p {
    margin: 6px 0 0 0;
    color: #cbd5cf;
}

.sidebar-menu {
    margin-top: 25px;
}

.menu-link {
    display: block;
    padding: 14px 14px;
    margin-bottom: 10px;
    border-radius: 12px;
    color: #e8f0eb;
    text-decoration: none;
    background-color: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.06);
    transition: 0.2s;
}

.menu-link:hover {
    background-color: rgba(67,176,42,0.18);
    border-color: rgba(67,176,42,0.45);
    transform: translateX(4px);
}

.menu-link.active {
    background-color: #43b02a;
    color: white;
    font-weight: bold;
}

.menu-link.mini {
    font-size: 13px;
    padding: 10px 12px;
    margin-bottom: 7px;
}

.icone {
    display: inline-block;
    width: 28px;
    color: #8be279;
    font-weight: bold;
}

.menu-link.active .icone {
    color: white;
}

.sidebar-categories {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.sidebar-categories h3 {
    font-size: 17px;
    color: #9df28d;
}

.menu-retour {
    display: block;
    margin-top: 25px;
    padding: 13px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: white;
    background-color: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.12);
}

.main-content {
    flex: 1;
    padding: 35px;
}

.page-header {
    background: linear-gradient(135deg, #ffffff, #f8fff6);
    border: 1px solid #dfe8df;
    border-radius: 18px;
    padding: 28px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.page-header h1 {
    margin: 0;
    font-size: 36px;
    color: #17211b;
}

.page-header p {
    margin: 8px 0 0 0;
    color: #647067;
}

.pastille {
    background-color: #43b02a;
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    font-weight: bold;
}

.dashboard-hero {
    margin-top: 28px;
    min-height: 190px;
    border-radius: 20px;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.78), rgba(0,0,0,0.35)),
        url('/images/givors.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 35px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 14px 32px rgba(0,0,0,0.20);
}

.dashboard-hero h2 {
    color: white;
    font-size: 32px;
    margin: 0 0 8px 0;
}

.dashboard-hero p {
    max-width: 720px;
    line-height: 1.5;
}

.dashboard-cards {
    display: flex;
    gap: 22px;
    margin-top: 28px;
}

.dashboard-card {
    flex: 1;
    background-color: white;
    border: 1px solid #dfe8df;
    border-radius: 18px;
    padding: 24px;
    text-decoration: none;
    color: #17211b;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: 0.2s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: #43b02a;
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.dashboard-card h3 {
    color: #43b02a;
    font-size: 24px;
    margin-top: 0;
}

.panel, .empty-state {
    margin-top: 28px;
    background-color: white;
    border: 1px solid #dfe8df;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.empty-state {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

table {
    border-collapse: collapse;
    background-color: white;
    width: 100%;
    overflow: hidden;
}

th, td {
    border: 1px solid #dfe8df;
    padding: 12px;
}

th {
    background-color: #17211b;
    color: white;
}

.alerte {
    color: red;
    font-weight: bold;
}

.ok {
    color: #43b02a;
    font-weight: bold;
}


/* Choix Polo Vert / Polo Rouge / Nettoyage */
.choix-equipe {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.equipe-card {
    flex: 1;
    min-height: 240px;
    border-radius: 22px;
    padding: 30px;
    text-decoration: none;
    color: white;
    box-shadow: 0 14px 32px rgba(0,0,0,0.16);
    transition: 0.2s;
    position: relative;
    overflow: hidden;
}

.equipe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(0,0,0,0.22);
}

.equipe-card h2 {
    color: white;
    font-size: 34px;
    margin-top: 0;
}

.equipe-card p {
    font-size: 18px;
    line-height: 1.5;
    max-width: 420px;
}

.equipe-card span {
    display: inline-block;
    margin-top: 35px;
    background-color: rgba(255,255,255,0.18);
    padding: 13px 32px;
    border-radius: 12px;
    font-weight: bold;
}

.polo-vert {
    background: linear-gradient(135deg, #0d2d18, #43b02a);
}

.polo-rouge {
    background: linear-gradient(135deg, #3a0f0f, #c42424);
}

.nettoyage {
    background: linear-gradient(135deg, #0f2438, #2f80ed);
}

@media (max-width: 1100px) {
    .choix-equipe {
        grid-template-columns: 1fr;
    }
}

.confirmation-box {
    margin-top: 32px;
    background-color: white;
    border: 1px solid #dfe8df;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    max-width: 720px;
}

.confirmation-box h2 {
    font-size: 28px;
    color: #17211b;
    margin-top: 0;
}

.info-date {
    color: #647067;
    line-height: 1.5;
}

.confirmation-box label {
    display: block;
    margin-top: 25px;
    margin-bottom: 8px;
    font-weight: bold;
}

.confirmation-box input {
    width: 260px;
    padding: 13px;
    border: 1px solid #cfd8d2;
    border-radius: 10px;
    font-size: 16px;
}

.actions-confirmation {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-annuler, .btn-valider {
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: bold;
}

.btn-annuler {
    background-color: #e5e7eb;
    color: #374151;
}

.btn-valider {
    background-color: #43b02a;
    color: white;
}


/* V9 - Check stock réel */
.check-layout {
    display: flex;
    gap: 28px;
}

.check-zone {
    flex: 1;
}

.progression-zone {
    width: 240px;
    background-color: white;
    border: 1px solid #dfe8df;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    position: sticky;
    top: 30px;
}

.progression-zone h2 {
    margin-top: 0;
    color: #17211b;
}

.progress-line {
    position: relative;
    width: 8px;
    min-height: 370px;
    background-color: #111;
    border-radius: 20px;
    margin: 25px 0 25px 22px;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    background-color: #43b02a;
    border-radius: 20px;
}

.point-progression {
    position: relative;
    display: block;
    left: -12px;
    width: 32px;
    height: 32px;
    background-color: #111;
    border: 3px solid white;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    margin-bottom: 21px;
    box-shadow: 0 0 0 2px #111;
    z-index: 2;
}

.point-progression span {
    display: block;
    text-align: center;
    line-height: 32px;
    font-size: 13px;
    font-weight: bold;
}

.point-ok {
    background-color: #43b02a;
    box-shadow: 0 0 0 2px #43b02a;
}

.liste-etapes p {
    margin: 8px 0;
    font-size: 14px;
    color: #4b5563;
}

.liste-etapes .etape-active {
    color: #43b02a;
    font-weight: bold;
}

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

.produit-check {
    background-color: #f8faf9;
    border: 1px solid #dfe8df;
    border-radius: 14px;
    padding: 14px;
}

.produit-check label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.produit-check input {
    width: 92%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #cfd8d2;
}

.sous-bloc {
    margin-top: 28px;
}

.sous-bloc h2 {
    color: #43b02a;
    border-bottom: 2px solid #43b02a;
    padding-bottom: 8px;
}

.navigation-check {
    display: flex;
    gap: 14px;
    margin-top: 22px;
}

.input-submit {
    border: none;
    cursor: pointer;
    font-family: Arial;
    font-size: 16px;
}

.form-ajout {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr auto;
    gap: 12px;
    align-items: center;
}

.form-ajout input, .form-ajout select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #cfd8d2;
}

.lien-supprimer {
    color: red;
    font-weight: bold;
    text-decoration: none;
}


/* V10 - Checklist exceptionnelle */
.check-card {
    margin-top: 28px;
    background: white;
    border: 1px solid #dfe8df;
    border-radius: 24px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.08);
    overflow: hidden;
}

.check-card-header {
    padding: 26px 30px;
    background:
        radial-gradient(circle at right, rgba(67,176,42,0.18), transparent 28%),
        linear-gradient(135deg, #ffffff, #f6fff4);
    border-bottom: 1px solid #dfe8df;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.check-card-header h2 {
    margin: 0;
    font-size: 30px;
    color: #17211b;
}

.check-card-header p {
    color: #66736b;
    margin-bottom: 0;
}

.check-compteur {
    background-color: #17211b;
    color: white;
    border-radius: 18px;
    padding: 18px 24px;
    font-size: 30px;
    font-weight: bold;
    min-width: 115px;
    text-align: center;
}

.check-compteur small {
    color: #8be279;
    margin: 0 3px;
}

.check-list {
    padding: 22px;
}

.check-row {
    display: grid;
    grid-template-columns: 1fr 190px 130px;
    gap: 18px;
    align-items: center;
    padding: 15px 18px;
    margin-bottom: 12px;
    background-color: #f8faf9;
    border: 1px solid #dfe8df;
    border-radius: 16px;
    transition: 0.18s;
}

.check-row:hover {
    transform: translateX(4px);
    border-color: #43b02a;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.check-row.ligne-complete {
    background-color: #f3fff0;
    border-color: rgba(67,176,42,0.45);
}

.check-row.rupture-active {
    background-color: #fff3f3;
    border-color: #e34b4b;
}

.check-produit {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #111;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.08);
}

.ligne-complete .check-dot {
    background-color: #43b02a;
    box-shadow: 0 0 0 4px rgba(67,176,42,0.14);
}

.rupture-active .check-dot {
    background-color: #d62828;
    box-shadow: 0 0 0 4px rgba(214,40,40,0.14);
}

.quantite-input {
    padding: 13px;
    border-radius: 12px;
    border: 1px solid #cfd8d2;
    font-size: 16px;
    background-color: white;
}

.quantite-input:disabled {
    background-color: #f1f1f1;
    color: #888;
}

.rupture-btn {
    padding: 13px 16px;
    border: 1px solid #d62828;
    border-radius: 12px;
    background-color: white;
    color: #d62828;
    font-weight: bold;
    cursor: pointer;
    transition: 0.18s;
}

.rupture-btn:hover {
    background-color: #fff1f1;
}

.rupture-active .rupture-btn {
    background-color: #d62828;
    color: white;
}

.check-sous-titre {
    margin-top: 28px;
    margin-bottom: 10px;
    padding: 14px 18px;
    background-color: #17211b;
    color: white;
    border-radius: 16px;
}

.check-sous-titre h3 {
    margin: 0;
    color: white;
    font-size: 21px;
}

.modal-cache {
    display: none;
}

.modal-visible {
    display: block;
}

.modal-fond {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.58);
    backdrop-filter: blur(4px);
    z-index: 50;
}

.modal-contenu {
    position: fixed;
    z-index: 60;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 820px;
    max-height: 86vh;
    overflow-y: auto;
    background-color: white;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

.modal-header {
    padding: 26px 30px;
    background:
        radial-gradient(circle at right, rgba(67,176,42,0.20), transparent 35%),
        linear-gradient(135deg, #17211b, #233126);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 32px;
}

.modal-header p {
    margin: 6px 0 0 0;
    color: #d7ffd0;
}

.modal-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    background-color: rgba(255,255,255,0.15);
    color: white;
}

.recap-contenu {
    padding: 28px 30px;
}

.recap-stats {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
}

.recap-stats div {
    flex: 1;
    background-color: #f4f7f5;
    border: 1px solid #dfe8df;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
}

.recap-stats strong {
    display: block;
    font-size: 32px;
    color: #43b02a;
}

.recap-stats span {
    color: #647067;
}

.table-recap {
    width: 100%;
    border-collapse: collapse;
}

.table-recap th {
    background-color: #17211b;
    color: white;
}

.table-recap td, .table-recap th {
    padding: 12px;
    border: 1px solid #dfe8df;
}

.recap-rupture td {
    background-color: #fff3f3;
    color: #c42424;
    font-weight: bold;
}

.recap-manquant td {
    background-color: #fff9e8;
    color: #9a6a00;
    font-weight: bold;
}

.modal-actions {
    padding: 22px 30px 30px 30px;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    border-top: 1px solid #e5e7eb;
}

.modal-actions .btn-valider, .modal-actions .btn-annuler {
    display: inline-block;
}


/* V11 - État des stocks et check existant */
.alerte-check-existant {
    background: linear-gradient(135deg,#0f172a,#111827);
    border: 1px solid #3b82f6;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 24px;
    color: #ffffff;
}

.alerte-check-existant h2 {
    color: #ffffff;
    margin-top: 0;
}

.alerte-check-existant p {
    color: #d1d5db;
}

.etat-table td {
    font-size: 14px;
}

.etat-rupture {
    color: #c42424;
    font-weight: bold;
    background-color: #fff3f3;
}


/* V12 - Tableau de bord simplifié */
.dashboard-hero-grand {
    min-height: 430px;
    align-items: flex-end;
}

.dashboard-hero-grand h2 {
    font-size: 40px;
}

.dashboard-hero-grand p {
    font-size: 18px;
}


/* V13 - Ajouter une commande / fournisseurs */
.commande-intro {
    margin-top: 28px;
    background:
        radial-gradient(circle at right, rgba(67,176,42,0.18), transparent 32%),
        linear-gradient(135deg, #17211b, #233126);
    color: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.16);
}

.commande-intro h2 {
    color: white;
    font-size: 32px;
    margin-top: 0;
}

.commande-intro p {
    color: #d7ffd0;
    max-width: 760px;
    line-height: 1.5;
}

.fournisseurs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.fournisseur-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 170px;
    padding: 28px;
    text-decoration: none;
    color: #17211b;
    background-color: white;
    border: 1px solid #dfe8df;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: 0.2s;
}

.fournisseur-card:before {
    content: "";
    position: absolute;
    right: -50px;
    top: -50px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background-color: rgba(67,176,42,0.12);
}

.fournisseur-card:hover {
    transform: translateY(-6px);
    border-color: #43b02a;
    box-shadow: 0 18px 42px rgba(0,0,0,0.14);
}

.fournisseur-icon {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    background: linear-gradient(135deg, #17211b, #43b02a);
    color: white;
    font-size: 34px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.fournisseur-text {
    z-index: 1;
}

.fournisseur-text h2 {
    font-size: 32px;
    margin: 0 0 8px 0;
    color: #17211b;
}

.fournisseur-text p {
    color: #66736b;
    margin: 0;
}

.fournisseur-action {
    position: absolute;
    right: 26px;
    bottom: 22px;
    background-color: #43b02a;
    color: white;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 14px;
}

.fournisseur-4 .fournisseur-icon {
    background: linear-gradient(135deg, #12324a, #4db5ff);
}

.commande-fournisseur-hero {
    margin-top: 28px;
    min-height: 190px;
    background:
        radial-gradient(circle at right, rgba(67,176,42,0.28), transparent 34%),
        linear-gradient(135deg, #101513, #223126);
    color: white;
    border-radius: 24px;
    padding: 34px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 14px 32px rgba(0,0,0,0.16);
}

.commande-fournisseur-hero h2 {
    color: white;
    font-size: 36px;
    margin: 0 0 8px 0;
}

.commande-fournisseur-hero p {
    color: #d7ffd0;
}

.empty-commande {
    text-align: center;
    padding: 28px;
    border: 2px dashed #cfd8d2;
    border-radius: 22px;
    background-color: #f8faf9;
    margin-bottom: 24px;
}

.empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background-color: #43b02a;
    color: white;
    margin: 0 auto 16px auto;
    font-size: 36px;
    line-height: 64px;
    font-weight: bold;
}

.empty-commande h3 {
    font-size: 25px;
    margin-bottom: 8px;
}

.empty-commande p {
    color: #66736b;
    max-width: 620px;
    margin: auto;
}

.table-commande-demo input {
    padding: 10px;
    border-radius: 9px;
    border: 1px solid #cfd8d2;
}

.mini-btn {
    background-color: #43b02a;
    border: none;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: bold;
}


/* V14 - Cuisine + bouton OK */
.check-row-cuisine {
    grid-template-columns: 1fr 170px 105px 130px;
}

.ok-btn {
    padding: 13px 16px;
    border: 1px solid #43b02a;
    border-radius: 12px;
    background-color: white;
    color: #43b02a;
    font-weight: bold;
    cursor: pointer;
    transition: 0.18s;
}

.ok-btn:hover {
    background-color: #f3fff0;
}

.ok-active {
    background-color: #f3fff0;
    border-color: #43b02a;
}

.ok-active .ok-btn {
    background-color: #43b02a;
    color: white;
}

.recap-ok td {
    background-color: #f3fff0;
    color: #237a1c;
    font-weight: bold;
}


/* V16 - État actuel des stocks visuel */
.etat-legende {
    display: flex;
    gap: 22px;
    margin-top: 26px;
    background: white;
    border: 1px solid #dfe8df;
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    color: #4b5563;
    font-weight: bold;
}

.etat-legende span {
    display: inline-block;
    width: 28px;
    height: 10px;
    border-radius: 10px;
    margin-right: 8px;
}

.legende-barre {
    background-color: #43b02a;
}

.legende-max {
    background-color: #17211b;
}

.legende-rupture {
    background-color: #d62828;
}

.etat-section {
    margin-top: 32px;
}

.etat-titre-section {
    color: white;
    border-radius: 22px;
    padding: 22px 28px;
    margin-bottom: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.etat-titre-section h2 {
    color: white;
    margin: 0;
    font-size: 34px;
}

.etat-titre-section p {
    margin: 6px 0 0 0;
    font-size: 18px;
}

.etat-titre-section.vert {
    background: linear-gradient(135deg, #0d2d18, #43b02a);
}

.etat-titre-section.rouge {
    background: linear-gradient(135deg, #3a0f0f, #c42424);
}

.stock-visuel {
    background: white;
    border: 1px solid #dfe8df;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: 0.18s;
}

.stock-visuel:hover {
    transform: translateX(4px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.10);
}

.stock-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.stock-info h3 {
    margin: 0;
    font-size: 24px;
    color: #17211b;
}

.stock-info p {
    margin: 5px 0 0 0;
    color: #66736b;
}

.date-stock {
    background-color: #f0f4f1;
    color: #4b5563;
    border-radius: 20px;
    padding: 8px 14px;
    font-weight: bold;
    font-size: 13px;
}

.stock-valeurs {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 8px;
}

.stock-valeurs strong {
    font-size: 27px;
    color: #43b02a;
}

.stock-valeurs span {
    color: #66736b;
    font-weight: bold;
}

.barre-stock {
    height: 34px;
    background-color: #17211b;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.barre-remplie {
    height: 34px;
    min-width: 32px;
    background: linear-gradient(90deg, #43b02a, #7ee36e);
    color: white;
    font-weight: bold;
    line-height: 34px;
    text-align: right;
    padding-right: 12px;
    border-radius: 20px;
    box-sizing: border-box;
}

.rupture-stock {
    background-color: #3a0f0f;
}

.rupture-remplie {
    background: linear-gradient(90deg, #d62828, #ff6b6b);
    text-align: center;
}

.ok-valide-stock {
    background-color: #17211b;
}

.ok-valide-remplie {
    background: linear-gradient(90deg, #43b02a, #7ee36e);
    text-align: center;
}


/* V17 - Vue patron compacte et lisible */
.resume-stock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 26px;
}

.resume-card {
    background: white;
    border-radius: 22px;
    padding: 22px;
    border: 1px solid #dfe8df;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.resume-card span {
    display: block;
    font-weight: bold;
    color: #66736b;
}

.resume-card strong {
    display: block;
    font-size: 44px;
    margin: 8px 0;
}

.resume-card p {
    margin: 0;
    color: #66736b;
    font-size: 14px;
}

.resume-card.critique strong {
    color: #d62828;
}

.resume-card.surveiller strong {
    color: #d99000;
}

.resume-card.bon strong {
    color: #43b02a;
}

.resume-card.total strong {
    color: #17211b;
}

.alertes-stock {
    margin-top: 22px;
    background: linear-gradient(135deg, #17211b, #253629);
    border-radius: 24px;
    padding: 24px;
    color: white;
    box-shadow: 0 14px 32px rgba(0,0,0,0.16);
}

.alertes-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 18px;
}

.alertes-header h2 {
    color: white;
    margin: 0;
}

.alertes-header p {
    color: #d7ffd0;
    margin: 0;
}

.alertes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.alerte-produit {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.alerte-produit h3 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 18px;
}

.alerte-produit p {
    color: #cbd5cf;
    margin: 0;
    font-size: 13px;
}

.badge-rupture, .badge-bas {
    padding: 8px 11px;
    border-radius: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.badge-rupture {
    background: #d62828;
    color: white;
}

.badge-bas {
    background: #ffb020;
    color: #2b2100;
}

.aucune-alerte {
    background: rgba(67,176,42,0.18);
    border: 1px solid rgba(67,176,42,0.35);
    padding: 18px;
    border-radius: 16px;
    color: #d7ffd0;
    font-weight: bold;
}

.filtres-stock {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 16px;
}

.filtre-stock {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #172033;
    padding: 12px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    color: #e5e7eb;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.filtre-stock:hover {
    background: #1f2a44;
    border-color: rgba(67,176,42,0.45);
    transform: translateY(-1px);
}

.filtre-stock.actif {
    background: #43b02a;
    color: #ffffff;
    border-color: #43b02a;
    box-shadow: 0 10px 22px rgba(67,176,42,0.22);
}

.etat-compact {
    display: grid;
    gap: 10px;
}

.stock-ligne-compact {
    display: grid;
    grid-template-columns: 360px 1fr 120px;
    gap: 18px;
    align-items: center;
    background: white;
    border: 1px solid #dfe8df;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.045);
}

.compact-gauche {
    display: flex;
    align-items: center;
    gap: 14px;
}

.compact-gauche h3 {
    margin: 0;
    color: #17211b;
    font-size: 18px;
}

.compact-gauche p {
    margin: 4px 0 0 0;
    color: #66736b;
    font-size: 13px;
}

.mini-equipe {
    min-width: 64px;
    text-align: center;
    color: white;
    padding: 8px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.mini-vert {
    background: #43b02a;
}

.mini-rouge {
    background: #c42424;
}

.barre-mini {
    height: 27px;
    background: #17211b;
    border-radius: 18px;
    overflow: hidden;
}

.barre-mini div {
    height: 27px;
    min-width: 28px;
    line-height: 27px;
    color: white;
    font-weight: bold;
    font-size: 13px;
    text-align: right;
    padding-right: 10px;
    box-sizing: border-box;
    border-radius: 18px;
}

.remplissage-ok {
    background: linear-gradient(90deg, #43b02a, #7ee36e);
}

.remplissage-surveillance {
    background: linear-gradient(90deg, #d99000, #ffca63);
}

.remplissage-critique {
    background: linear-gradient(90deg, #d62828, #ff6b6b);
}

.rupture-mini div {
    background: linear-gradient(90deg, #d62828, #ff6b6b);
    text-align: center;
}

.ok-mini div {
    background: linear-gradient(90deg, #43b02a, #7ee36e);
    text-align: center;
}

.compact-droite {
    text-align: right;
}

.compact-droite strong {
    display: block;
    font-size: 22px;
    color: #17211b;
}

.compact-droite span {
    color: #66736b;
    font-size: 12px;
}

.texte-rupture {
    color: #d62828 !important;
    font-size: 18px !important;
}

.texte-ok {
    color: #43b02a !important;
    font-size: 18px !important;
}


/* V19 - Suivi des commandes professionnel */
.commandes-resume {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 220px;
    gap: 18px;
    margin-top: 26px;
}

.commande-stat {
    background: white;
    border: 1px solid #dfe8df;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.commande-stat span {
    color: #66736b;
    font-weight: bold;
}

.commande-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 38px;
    color: #17211b;
}

.commande-stat .date-stat {
    font-size: 24px;
    color: #43b02a;
}

.commande-ajout-rapide {
    background: linear-gradient(135deg, #43b02a, #77d866);
    color: white;
    border-radius: 22px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(67,176,42,0.28);
    transition: 0.2s;
}

.commande-ajout-rapide:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(67,176,42,0.38);
}

.commandes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 28px;
}

.commande-card {
    text-decoration: none;
    color: #17211b;
    background: white;
    border: 1px solid #dfe8df;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    transition: 0.2s;
    position: relative;
    overflow: hidden;
}

.commande-card:before {
    content: "";
    position: absolute;
    right: -50px;
    top: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(67,176,42,0.12);
}

.commande-card:hover {
    transform: translateY(-6px);
    border-color: #43b02a;
    box-shadow: 0 18px 42px rgba(0,0,0,0.14);
}

.commande-card-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.commande-numero {
    display: inline-block;
    background: #17211b;
    color: white;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 14px;
}

.commande-card h2 {
    margin: 0;
    font-size: 30px;
    color: #43b02a;
}

.commande-card p {
    margin: 6px 0 0 0;
    color: #66736b;
}

.commande-date {
    background: #f0f4f1;
    color: #17211b;
    padding: 10px 14px;
    border-radius: 16px;
    height: fit-content;
    font-weight: bold;
    white-space: nowrap;
}

.commande-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.commande-info-pill {
    background: #f5fff3;
    color: #237a1c;
    border: 1px solid rgba(67,176,42,0.25);
    border-radius: 20px;
    padding: 9px 14px;
    font-weight: bold;
}

.commande-status {
    background: #43b02a;
    color: white;
    border-radius: 20px;
    padding: 9px 14px;
    font-weight: bold;
}

.commandes-empty {
    margin-top: 28px;
    background: #07111d;
    border: 2px dashed rgba(148, 163, 184, 0.28);
    border-radius: 24px;
    padding: 45px;
    text-align: center;
}

.commandes-empty h2 {
    font-size: 30px;
    color: #e5eefc;
}

.commandes-empty p {
    color: #93a4bf;
}

.commandes-empty a {
    display: inline-block;
    margin-top: 15px;
    background: #43b02a;
    color: white;
    padding: 14px 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: bold;
}

.detail-commande-hero {
    margin-top: 28px;
    background:
        radial-gradient(circle at right, rgba(67,176,42,0.25), transparent 35%),
        linear-gradient(135deg, #17211b, #253629);
    color: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.16);
}

.detail-commande-hero h2 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 34px;
}

.detail-commande-hero p {
    color: #d7ffd0;
    margin: 0;
}

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

.detail-produit-card {
    background: white;
    border: 1px solid #dfe8df;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-produit-card h3 {
    margin: 0;
    color: #17211b;
    font-size: 21px;
}

.detail-produit-card p {
    color: #66736b;
    margin: 6px 0 0 0;
}

.detail-quantite {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #43b02a;
    color: white;
    font-size: 26px;
    line-height: 56px;
    text-align: center;
    font-weight: bold;
}


/* V20 - Paramètres évolutifs */
.param-grid-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 28px;
}

.param-action-card {
    background: linear-gradient(180deg,#0b1220,#0f172a);
    border: 1px solid #23324d;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.param-action-card h2 {
    margin-top: 0;
    color: #ffffff;
    font-size: 28px;
}

.param-action-card p {
    color: #cbd5e1;
}

.form-param-simple {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.form-param-simple input,
.form-param-simple select {
    padding: 13px;
    border-radius: 12px;
    border: 1px solid #cfd8d2;
    font-size: 15px;
}

.texte-aide-param {
    color: #66736b;
    margin-top: -4px;
}

.form-ajout-v20 {
    grid-template-columns: 1.3fr 1fr 1.4fr auto;
}


/* V21 - Prix produits et BL PDF */
.form-prix {
    display: flex;
    gap: 8px;
    align-items: center;
}

.form-prix input[type="number"] {
    width: 90px;
    padding: 8px;
    border: 1px solid #cfd8d2;
    border-radius: 8px;
}

.form-prix input[type="submit"] {
    background: #43b02a;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 11px;
    font-weight: bold;
}

.commande-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.commande-bl {
    background: #17211b;
    color: white;
    border-radius: 20px;
    padding: 9px 14px;
    font-weight: bold;
}

.detail-produit-prix {
    min-height: 120px;
}

.detail-produit-prix strong {
    display: block;
    margin-top: 8px;
    color: #43b02a;
}


/* V22 - Détail commande pro + BL fonctionnel */
.btn-bl-header {
    display: inline-block;
    background: #43b02a;
    color: white;
    text-decoration: none;
    padding: 15px 24px;
    border-radius: 16px;
    font-weight: bold;
    box-shadow: 0 10px 22px rgba(67,176,42,0.25);
}

.commande-pro-hero {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 20px;
}

.commande-pro-info, .commande-pro-total {
    background: white;
    border: 1px solid #dfe8df;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.commande-pro-info span, .commande-pro-total span {
    display: block;
    color: #66736b;
    font-weight: bold;
    margin-bottom: 10px;
}

.commande-pro-info strong {
    display: block;
    font-size: 28px;
    color: #17211b;
}

.commande-pro-info p {
    color: #66736b;
    margin-bottom: 0;
}

.commande-pro-total {
    background:
        radial-gradient(circle at right, rgba(67,176,42,0.25), transparent 38%),
        linear-gradient(135deg, #17211b, #253629);
    color: white;
}

.commande-pro-total span {
    color: #d7ffd0;
}

.commande-pro-total strong {
    display: block;
    font-size: 42px;
    color: white;
}

.commande-table-panel {
    margin-top: 28px;
    background: white;
    border: 1px solid #dfe8df;
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.commande-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.commande-table-header h2 {
    margin: 0;
    font-size: 30px;
    color: #17211b;
}

.commande-table-header p {
    color: #66736b;
    margin: 5px 0 0 0;
}

.commande-table-header a {
    background: #17211b;
    color: white;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 14px;
    font-weight: bold;
}

.table-pro-commande {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
}

.table-pro-commande th {
    background: #17211b;
    color: white;
    padding: 15px;
    text-align: left;
}

.table-pro-commande td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.table-pro-commande tr:hover td {
    background: #f8faf9;
}

.cell-total {
    color: #43b02a;
    font-weight: bold;
}

.ligne-total-final td {
    background: #43b02a !important;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.ligne-total-final td:first-child {
    text-align: right;
}

.commande-card {
    display: block;
}

.commande-actions a {
    text-decoration: none;
}

.commande-status {
    background: #43b02a;
    color: white;
    border-radius: 20px;
    padding: 9px 14px;
    font-weight: bold;
}

.commande-bl {
    background: #17211b;
    color: white;
    border-radius: 20px;
    padding: 9px 14px;
    font-weight: bold;
    text-decoration: none;
}


/* V23 - Correctif BL noir et blanc + détail commande */
.btn-bl-header {
    display: inline-block;
    background: #17211b;
    color: white;
    text-decoration: none;
    padding: 15px 24px;
    border-radius: 14px;
    font-weight: bold;
}

.commande-pro-hero {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 20px;
}

.commande-pro-info,
.commande-pro-total {
    background: white;
    border: 1px solid #dfe8df;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.commande-pro-info span,
.commande-pro-total span {
    display: block;
    color: #66736b;
    font-weight: bold;
    margin-bottom: 8px;
}

.commande-pro-info strong {
    display: block;
    font-size: 28px;
    color: #17211b;
}

.commande-pro-info p {
    color: #66736b;
    margin-bottom: 0;
}

.commande-pro-total {
    background: #17211b;
    color: white;
}

.commande-pro-total span {
    color: #d7ffd0;
}

.commande-pro-total strong {
    font-size: 42px;
    color: white;
}

.commande-table-panel {
    margin-top: 28px;
    background: white;
    border: 1px solid #dfe8df;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.commande-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.commande-table-header h2 {
    margin: 0;
    color: #17211b;
    font-size: 30px;
}

.commande-table-header p {
    margin: 5px 0 0 0;
    color: #66736b;
}

.commande-table-header a {
    background: #43b02a;
    color: white;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 14px;
    font-weight: bold;
}

.table-pro-commande {
    width: 100%;
    border-collapse: collapse;
}

.table-pro-commande th {
    background: #17211b;
    color: white;
    padding: 15px;
    text-align: left;
}

.table-pro-commande td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.cell-total {
    color: #43b02a;
    font-weight: bold;
}

.ligne-total-final td {
    background: #43b02a !important;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.ligne-total-final td:first-child {
    text-align: right;
}

.commande-status,
.commande-bl {
    text-decoration: none;
}


/* V24 - Commandes réception / suppression / BL */
.message-succes, .message-erreur {
    margin-top: 24px;
    border-radius: 16px;
    padding: 16px 20px;
    font-weight: bold;
}

.message-succes {
    background: #f3fff0;
    border: 1px solid #43b02a;
    color: #237a1c;
}

.message-erreur {
    background: #fff3f3;
    border: 1px solid #d62828;
    color: #b91c1c;
}

.commande-actions-v24 {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    justify-content: flex-end;
}

.btn-mini {
    display: inline-block;
    text-decoration: none;
    padding: 9px 13px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 13px;
}

.btn-mini.noir {
    background: #17211b;
    color: white;
}

.btn-mini.vert {
    background: #43b02a;
    color: white;
}

.btn-mini.rouge {
    background: #d62828;
    color: white;
}

.badge-attente, .badge-receptionnee {
    display: inline-block;
    margin-top: 9px;
    border-radius: 18px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: bold;
}

.badge-attente {
    background: #fff9e8;
    color: #9a6a00;
}

.badge-receptionnee {
    background: #f3fff0;
    color: #237a1c;
}

.btn-bl-header {
    display: inline-block;
    background: #17211b;
    color: white;
    text-decoration: none;
    padding: 15px 24px;
    border-radius: 14px;
    font-weight: bold;
}

.commande-pro-hero {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 20px;
}

.commande-pro-info,
.commande-pro-total {
    background: white;
    border: 1px solid #dfe8df;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.commande-pro-info span,
.commande-pro-total span {
    display: block;
    color: #66736b;
    font-weight: bold;
    margin-bottom: 8px;
}

.commande-pro-info strong {
    display: block;
    font-size: 28px;
    color: #17211b;
}

.commande-pro-info p {
    color: #66736b;
    margin-bottom: 0;
}

.commande-pro-total {
    background: #17211b;
    color: white;
}

.commande-pro-total span {
    color: #d7ffd0;
}

.commande-pro-total strong {
    font-size: 42px;
    color: white;
}

.commande-table-panel {
    margin-top: 28px;
    background: white;
    border: 1px solid #dfe8df;
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

.commande-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.commande-table-header h2 {
    margin: 0;
    color: #17211b;
    font-size: 30px;
}

.commande-table-header p {
    margin: 5px 0 0 0;
    color: #66736b;
}

.commande-table-header a {
    background: #43b02a;
    color: white;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 14px;
    font-weight: bold;
}

.table-pro-commande {
    width: 100%;
    border-collapse: collapse;
}

.table-pro-commande th {
    background: #17211b;
    color: white;
    padding: 15px;
    text-align: left;
}

.table-pro-commande td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.cell-total {
    color: #43b02a;
    font-weight: bold;
}

.ligne-total-final td {
    background: #43b02a !important;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.ligne-total-final td:first-child {
    text-align: right;
}

.message-ok {
    background: #e9f8ee;
    border: 1px solid #bde7c8;
    color: #206b35;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-weight: 700;
}

.actions-table {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-danger {
    border: none;
    border-radius: 10px;
    padding: 9px 13px;
    background: #d93025;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.btn-secondaire, .btn-primaire {
    display: inline-block;
    text-decoration: none;
    border-radius: 10px;
    padding: 9px 13px;
    font-weight: 800;
}

.btn-secondaire {
    background: #f1f1f1;
    color: #222;
}

.btn-primaire {
    background: #111;
    color: white;
}

.aide-graph {
    margin-top: 10px;
    color: #666;
    font-size: 13px;
}

#graphVentes {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 10px;
}

/* V27 - Tableau de bord complet */
.dashboard-grid-pro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.resume-card.alerte {
    border-left: 5px solid #b23b3b;
}
@media (max-width: 1000px) {
    .dashboard-grid-pro { grid-template-columns: 1fr; }
}

/* V28 - Dashboard premium et compte rendu professionnel */
.dashboard-exceptionnel .executive-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;background:linear-gradient(135deg,#111827,#374151);color:white;border-radius:24px;padding:28px;margin-bottom:22px;box-shadow:0 18px 45px rgba(17,24,39,.18)}
.executive-hero h2{font-size:34px;margin:5px 0 8px}.executive-hero p{opacity:.86;max-width:720px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:800;opacity:.72}.hero-kpi{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:20px;padding:18px 26px;text-align:center;min-width:180px}.hero-kpi strong{font-size:38px;display:block}.hero-kpi span{font-size:12px;opacity:.82}.kpi-grid-pro{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:22px}.kpi-card-pro{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:18px;box-shadow:0 12px 30px rgba(15,23,42,.07)}.kpi-card-pro span{color:#6b7280;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.kpi-card-pro strong{display:block;font-size:28px;margin:8px 0 4px;color:#111827}.kpi-card-pro p{margin:0;color:#6b7280;font-size:12px}.kpi-card-pro.danger{border-left:5px solid #b91c1c}.kpi-card-pro.success{border-left:5px solid #047857}.kpi-card-pro.warning{border-left:5px solid #d97706}.dashboard-grid-pro.wide-left{grid-template-columns:2fr 1fr}.dashboard-panel{border-radius:20px;border:1px solid #e5e7eb;box-shadow:0 12px 30px rgba(15,23,42,.06);overflow:hidden}.dashboard-panel canvas{width:100%;background:linear-gradient(180deg,#fff,#fbfbfc);border-radius:14px}.table-modern th{background:#111827;color:#fff}.table-modern td,.table-modern th{padding:10px 12px}.badge-priorite{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800;background:#e5e7eb;color:#111827}.badge-priorite.rupture{background:#fee2e2;color:#991b1b}.badge-priorite.urgent{background:#ffedd5;color:#9a3412}.badge-priorite.a-surveiller{background:#fef9c3;color:#854d0e}.compte-rendu-pro .cr-actions{display:flex;gap:12px;align-items:center;margin:0 0 20px}.rapport-section{background:#fff;border:1px solid #e5e7eb;border-radius:22px;margin-bottom:20px;box-shadow:0 12px 30px rgba(15,23,42,.06);overflow:hidden}.rapport-header{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#111827,#4b5563);color:white;padding:22px}.rapport-header h2{margin:2px 0 0;font-size:26px}.rapport-total{text-align:center;background:rgba(255,255,255,.12);border-radius:16px;padding:12px 20px}.rapport-total strong{display:block;font-size:30px}.rapport-total span{font-size:12px;opacity:.8}.type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:18px}.type-card{border:1px solid #e5e7eb;border-radius:16px;padding:14px;background:#f9fafb}.type-card h3{margin:0;color:#111827}.type-card p{margin:5px 0 10px;color:#6b7280;font-weight:700}.mini-table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;overflow:hidden}.mini-table th{background:#111827;color:white;font-size:11px;text-align:left}.mini-table th,.mini-table td{padding:7px;border-bottom:1px solid #e5e7eb;font-size:12px}.mini-table td:last-child{text-align:right;font-weight:800}
@media(max-width:1100px){.kpi-grid-pro{grid-template-columns:repeat(2,1fr)}.dashboard-grid-pro.wide-left{grid-template-columns:1fr}.type-grid{grid-template-columns:1fr}.dashboard-exceptionnel .executive-hero{flex-direction:column;align-items:flex-start}}

/* V29 dashboard métier lisible */
.dashboard-pro { background:#f4f6f8; }
.dash-hero-clean{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#ffffff;border:1px solid #e5e7eb;border-radius:24px;padding:26px 30px;margin-bottom:22px;box-shadow:0 14px 35px rgba(15,23,42,.06)}
.dash-hero-clean h1{margin:4px 0 8px;font-size:32px;color:#111827;letter-spacing:-.03em}.dash-hero-clean p{margin:0;color:#64748b;max-width:760px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#16a34a}.kpi-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.kpi-clean{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:20px;box-shadow:0 10px 25px rgba(15,23,42,.05)}.kpi-clean span{display:block;color:#64748b;font-size:13px;font-weight:700}.kpi-clean strong{display:block;color:#111827;font-size:30px;line-height:1.1;margin:7px 0}.kpi-clean small{color:#94a3b8}.kpi-clean.danger{border-color:#fecaca;background:#fff7f7}.kpi-clean.warning{border-color:#fde68a;background:#fffbeb}.decision-panel{border-left:6px solid #16a34a}.important-chart{border:2px solid #111827}.dashboard-panel canvas{width:100%;display:block}.table-modern.compact th,.table-modern.compact td{padding:9px 11px}.badge-priorite{display:inline-block;border-radius:999px;padding:5px 10px;font-weight:800;font-size:11px;background:#e5e7eb;color:#111827}.badge-priorite.rupture{background:#fee2e2;color:#991b1b}.badge-priorite.urgent{background:#ffedd5;color:#9a3412}.badge-priorite.a-surveiller{background:#fef3c7;color:#92400e}.badge-priorite.ok{background:#dcfce7;color:#166534}.txt-good{color:#16a34a}.txt-bad{color:#dc2626}.heatmap{overflow-x:auto}.heatmap-table{width:100%;border-collapse:separate;border-spacing:4px}.heatmap-table th{font-size:12px;color:#475569;text-align:center;padding:8px}.heatmap-table td{border-radius:12px;text-align:center;padding:14px 8px;color:white;min-width:90px}.heatmap-table td:first-child{background:#fff!important;color:#111827;text-align:left;border:1px solid #e5e7eb}.heatmap-table span{font-weight:800;text-shadow:0 1px 2px rgba(0,0,0,.25)}.rapport-section{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:22px;margin:20px 0;box-shadow:0 10px 25px rgba(15,23,42,.05)}.rapport-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}.rapport-header h2{margin:3px 0 0;color:#111827}.rapport-total{text-align:right}.rapport-total strong{display:block;font-size:30px;color:#111827}.rapport-total span{color:#64748b;font-size:12px;font-weight:700}.compte-rendu-pro .cr-actions{margin:0 0 20px;display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:1100px){.kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-hero-clean{flex-direction:column;align-items:flex-start}}@media(max-width:760px){.kpi-strip{grid-template-columns:1fr}.dashboard-grid-pro{grid-template-columns:1fr!important}.dash-hero-clean h1{font-size:26px}}

/* v33 - Navigation retour + commandes poupée russe */
.btn-retour-page {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 18px 0;
    padding: 10px 16px;
    border: 1px solid #d7e2d8;
    border-radius: 999px;
    background: #ffffff;
    color: #17211b;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(17,24,39,0.06);
}
.btn-retour-page:hover { background: #f3fff0; border-color: #43b02a; }

.bloc-ajout-commande { margin-bottom: 24px; }
.bloc-titre-ligne {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.bloc-titre-ligne h2 { margin: 0; color: #111827; }
.bloc-titre-ligne p { margin: 6px 0 0 0; color: #64748b; }
.fournisseurs-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.fournisseurs-grid.compact .fournisseur-card { min-height: 96px; padding: 18px; }
.fournisseurs-grid.compact .fournisseur-action { margin-left: auto; }

.commandes-arbo-panel { padding: 24px; }
.commandes-arbo { display: flex; flex-direction: column; gap: 14px; }
.commandes-arbo details { border-radius: 18px; }
.commandes-arbo summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.commandes-arbo summary::-webkit-details-marker { display: none; }
.arbo-plus {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #17211b;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    line-height: 1;
}
details[open] > summary .arbo-plus { background: #43b02a; transform: rotate(45deg); }
.arbo-title { font-size: 17px; font-weight: 900; color: #0f172a; }
.arbo-sub { color: #64748b; font-weight: 700; }
.arbo-badge {
    margin-left: auto;
    padding: 7px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}
.arbo-badge + .arbo-badge { margin-left: 0; }
.arbo-badge.attente { background: #fff7ed; color: #c2410c; }
.arbo-badge.ok { background: #ecfdf5; color: #15803d; }
.arbo-fournisseur {
    border: 1px solid #d9e8d9;
    background: linear-gradient(135deg, #ffffff, #f8fff7);
    padding: 18px;
}
.arbo-content { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.arbo-commande {
    border: 1px solid #e2e8f0;
    background: white;
    padding: 15px;
}
.arbo-groupe {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 13px;
}
.commande-actions-ligne {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 4px 0;
}
.table-arbo-produits {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
}
.table-arbo-produits th,
.table-arbo-produits td {
    padding: 11px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}
.table-arbo-produits th {
    background: #17211b;
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.table-arbo-produits td:nth-child(2),
.table-arbo-produits td:nth-child(4),
.table-arbo-produits td:nth-child(5) { font-weight: 800; }
.arbo-vide {
    margin-top: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
}
@media (max-width: 900px) {
    .arbo-badge { margin-left: 0; }
    .commande-actions-ligne { justify-content: flex-start; }
}


/* v34 - Commandes : affichage ajout commande corrigé + plus plus visibles */
.fournisseurs-grid.compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.fournisseurs-grid.compact .fournisseur-card {
    min-height: 120px;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    overflow: hidden;
}

.fournisseurs-grid.compact .fournisseur-card:before {
    right: -70px;
    top: -70px;
    width: 190px;
    height: 190px;
}

.fournisseurs-grid.compact .fournisseur-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    font-size: 31px;
    flex: 0 0 auto;
}

.fournisseurs-grid.compact .fournisseur-text {
    min-width: 0;
    position: relative;
    z-index: 2;
}

.fournisseurs-grid.compact .fournisseur-text h2 {
    font-size: 30px;
    line-height: 1.05;
    margin: 0 0 8px 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.fournisseurs-grid.compact .fournisseur-text p {
    font-size: 15px;
    line-height: 1.25;
}

.fournisseurs-grid.compact .fournisseur-action {
    position: static;
    z-index: 3;
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 12px 18px;
    margin-left: 0;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(67,176,42,0.22);
}

.arbo-plus {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 25px;
    box-shadow: 0 10px 22px rgba(15,23,42,0.16);
}

.arbo-commande .arbo-plus {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 23px;
}

.arbo-groupe .arbo-plus {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 20px;
}

.commandes-arbo summary {
    gap: 16px;
    min-height: 50px;
}

.arbo-fournisseur > summary .arbo-title {
    font-size: 22px;
}

.arbo-commande > summary .arbo-title {
    font-size: 19px;
}

@media (max-width: 1100px) {
    .fournisseurs-grid.compact {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 700px) {
    .fournisseurs-grid.compact .fournisseur-card {
        grid-template-columns: 64px 1fr;
        padding: 18px;
    }
    .fournisseurs-grid.compact .fournisseur-action {
        grid-column: 1 / -1;
        justify-self: stretch;
    }
}

/* v35 - Commandes : ajout discret + arborescence fermée par défaut */
.ajout-commande-toggle {
    padding: 0;
    overflow: hidden;
}

.ajout-commande-toggle > summary {
    list-style: none;
}

.ajout-commande-toggle > summary::-webkit-details-marker {
    display: none;
}

.ajout-commande-summary {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 22px;
    padding: 16px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #43b02a, #77d866);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(67,176,42,0.28);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ajout-commande-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(67,176,42,0.34);
}

.ajout-plus {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
}

.ajout-commande-contenu {
    border-top: 1px solid #e4efe4;
    padding: 22px;
}

.ajout-commande-contenu h2 {
    margin: 0 0 5px;
    font-size: 24px;
    color: #071424;
}

.ajout-commande-contenu p {
    margin: 0 0 18px;
    color: #516783;
}

.fournisseurs-liste-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.fournisseur-ligne {
    min-width: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #d9e8d9;
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    color: #071424;
    box-shadow: 0 8px 22px rgba(0,0,0,.05);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fournisseur-ligne:hover {
    transform: translateY(-2px);
    border-color: #43b02a;
    box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.fournisseur-icon-mini {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d5f19, #43b02a);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
}

.fournisseur-4 .fournisseur-icon-mini {
    background: linear-gradient(135deg, #17496b, #3ea0e4);
}

.fournisseur-ligne-texte {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fournisseur-ligne-texte strong {
    font-size: 21px;
    line-height: 1.05;
    white-space: normal;
    overflow-wrap: anywhere;
}

.fournisseur-ligne-texte em {
    font-style: normal;
    color: #65746b;
    font-weight: 700;
}

.fournisseur-ligne-action {
    padding: 10px 16px;
    border-radius: 999px;
    background: #43b02a;
    color: white;
    font-weight: 900;
    white-space: nowrap;
}

/* Les + restent des + : pas de rotation en croix quand une ligne est ouverte. */
details[open] > summary .arbo-plus {
    background: #43b02a;
    transform: none !important;
}

.commandes-arbo .arbo-fournisseur:not([open]) .arbo-plus,
.commandes-arbo .arbo-commande:not([open]) .arbo-plus,
.commandes-arbo .arbo-groupe:not([open]) .arbo-plus {
    background: #17211b;
}

@media (max-width: 700px) {
    .fournisseur-ligne {
        grid-template-columns: 54px 1fr;
    }
    .fournisseur-ligne-action {
        grid-column: 1 / -1;
        text-align: center;
    }
}

/* V37 - Etat actuel des stocks clair et repliable */
.resume-stock-pro {
    margin-bottom: 18px;
}

.outils-stock-pro {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 20px 0;
    flex-wrap: wrap;
}

.search-stock-wrap {
    flex: 1;
    min-width: 280px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.search-stock-wrap input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
    padding: 15px 0;
    color: #111827;
    background: transparent;
}

.filtres-stock-pro {
    margin: 0;
}

.etat-groupes-pro {
    display: grid;
    gap: 18px;
}

.equipe-stock {
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.equipe-stock-header,
.ensemble-stock-header {
    width: 100%;
    border: none;
    background: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-align: left;
}

.equipe-stock-header {
    padding: 20px 22px;
    gap: 15px;
}

.equipe-stock-header strong {
    display: block;
    color: #111827;
    font-size: 22px;
    font-weight: 900;
}

.equipe-stock-header em {
    display: block;
    color: #6b7280;
    font-style: normal;
    margin-top: 3px;
    font-size: 13px;
}

.equipe-vert .equipe-stock-header {
    border-left: 7px solid #16a34a;
}

.equipe-rouge .equipe-stock-header {
    border-left: 7px solid #dc2626;
}

.plus-stock {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: white;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
}

.equipe-stock-body,
.ensemble-stock-body {
    display: none;
}

.equipe-stock.ouvert > .equipe-stock-body,
.ensemble-stock-pro.ouvert > .ensemble-stock-body {
    display: block;
}

.equipe-stock-body {
    padding: 0 18px 20px 18px;
    background: #f8fafc;
}

.ensemble-stock-pro {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    margin-top: 13px;
    overflow: hidden;
}

.ensemble-stock-header {
    padding: 15px 16px;
    gap: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.ensemble-stock-header .plus-stock {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 11px;
    font-size: 22px;
    background: #374151;
}

.ensemble-titre {
    font-size: 16px;
    color: #111827;
    font-weight: 900;
    flex: 1;
}

.ensemble-compteurs {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mini-badge {
    font-style: normal;
    border-radius: 999px;
    padding: 5px 8px;
    font-weight: 800;
    font-size: 11px;
}

.mini-badge.critique {
    background: #fee2e2;
    color: #991b1b;
}

.mini-badge.surveillance {
    background: #fef3c7;
    color: #92400e;
}

.ensemble-stock-body {
    padding: 8px 12px 14px 12px;
}

.produit-stock-pro {
    display: grid;
    grid-template-columns: 1.4fr 1.6fr 120px;
    gap: 18px;
    align-items: center;
    padding: 13px 8px;
    border-bottom: 1px solid #f3f4f6;
}

.produit-stock-pro:last-child {
    border-bottom: none;
}

.produit-stock-nom h3 {
    margin: 0;
    color: #111827;
    font-size: 15px;
    font-weight: 900;
}

.produit-stock-nom p {
    margin: 4px 0 0 0;
    color: #6b7280;
    font-size: 12px;
}

.produit-stock-valeur {
    text-align: right;
}

.produit-stock-valeur strong {
    display: block;
    font-size: 20px;
    color: #111827;
    line-height: 1;
}

.produit-stock-valeur span {
    display: block;
    color: #6b7280;
    font-size: 11px;
    margin-top: 3px;
}

.produit-stock-valeur small {
    display: inline-block;
    margin-top: 6px;
    border-radius: 999px;
    padding: 4px 8px;
    font-weight: 900;
    font-size: 10px;
}

.statut-ok {
    background: #dcfce7;
    color: #166534;
}

.statut-surveillance {
    background: #fef3c7;
    color: #92400e;
}

.statut-critique {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 900px) {
    .produit-stock-pro {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .produit-stock-valeur {
        text-align: left;
    }

    .ensemble-stock-header {
        align-items: flex-start;
    }
}

/* V40 - Tableau de bord premium dark */
.dashboard-night-page { background:#020617 !important; }
.dashboard-night-layout .sidebar { background:linear-gradient(180deg,#060b12 0%,#08111b 58%,#04070c 100%); border-right:1px solid rgba(148,163,184,.14); box-shadow:18px 0 50px rgba(0,0,0,.35); }
.dashboard-night-layout .menu-link { color:#cbd5e1; }
.dashboard-night-layout .menu-link.active { background:linear-gradient(90deg,#b91c1c,#7f1d1d); color:#fff; box-shadow:0 12px 28px rgba(220,38,38,.22); }
.dashboard-night { min-height:100vh; padding:28px; color:#e5e7eb; background:radial-gradient(circle at top right,rgba(34,197,94,.12),transparent 28%),radial-gradient(circle at 30% 15%,rgba(37,99,235,.13),transparent 25%),#020617; }
.night-topbar { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; margin-bottom:24px; }
.night-eyebrow { color:#22c55e; text-transform:uppercase; letter-spacing:.14em; font-size:11px; font-weight:900; }
.night-topbar h1 { margin:6px 0 5px; font-size:34px; line-height:1; color:#f8fafc; letter-spacing:-.04em; text-transform:uppercase; }
.night-topbar p { margin:0; color:#94a3b8; font-size:15px; }
.night-actions { display:flex; gap:12px; align-items:center; }
.night-date,.night-btn { border:1px solid rgba(148,163,184,.18); background:rgba(15,23,42,.78); color:#e5e7eb; border-radius:12px; padding:12px 16px; text-decoration:none; box-shadow:0 12px 32px rgba(0,0,0,.22); }
.night-btn { background:linear-gradient(135deg,#16a34a,#15803d); border-color:rgba(34,197,94,.35); font-weight:800; }
.night-kpis { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.night-kpi { position:relative; overflow:hidden; min-height:104px; border-radius:18px; padding:20px 18px; border:1px solid rgba(148,163,184,.18); background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(2,6,23,.94)); box-shadow:0 20px 45px rgba(0,0,0,.25); }
.night-kpi:after { content:""; position:absolute; inset:auto -30px -35px auto; width:110px; height:110px; border-radius:50%; opacity:.13; background:currentColor; }
.night-kpi span { display:block; font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.05em; color:currentColor; }
.night-kpi strong { display:block; margin-top:9px; color:#fff; font-size:38px; line-height:1; letter-spacing:-.04em; }
.night-kpi small { display:block; margin-top:8px; color:#94a3b8; }
.night-kpi i { position:absolute; right:18px; top:18px; width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:currentColor; color:#020617; font-style:normal; font-weight:900; font-size:22px; box-shadow:0 0 28px currentColor; }
.night-kpi.blue{color:#3b82f6}.night-kpi.green{color:#22c55e}.night-kpi.orange{color:#f59e0b}.night-kpi.red{color:#ff2d4f}.night-kpi.gray{color:#94a3b8}
.night-grid { display:grid; gap:16px; margin-bottom:16px; }
.main-charts { grid-template-columns:1.05fr 1.35fr 1.05fr; }
.lower-charts { grid-template-columns:1.55fr 1fr; }
.tables-row { grid-template-columns:1fr 1fr; }
.night-card { border:1px solid rgba(148,163,184,.18); border-radius:18px; padding:18px; background:linear-gradient(180deg,rgba(15,23,42,.92),rgba(2,6,23,.90)); box-shadow:0 20px 50px rgba(0,0,0,.26); overflow:hidden; }
.night-card.wide { min-width:0; }
.night-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:12px; }
.night-card h2 { margin:0; color:#f8fafc; font-size:16px; text-transform:uppercase; letter-spacing:-.02em; }
.night-card-head span { color:#94a3b8; font-size:12px; text-align:right; }
.night-card canvas { width:100%; display:block; background:transparent; }
.alert-tile { display:flex; align-items:center; gap:15px; padding:16px; border-radius:14px; background:rgba(255,255,255,.035); border:1px solid rgba(148,163,184,.12); margin-bottom:12px; }
.alert-tile b { width:56px; height:56px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:22px; }
.alert-tile strong { color:#fff; display:block; margin-bottom:3px; }
.alert-tile p { margin:0; color:#94a3b8; font-size:12px; }
.alert-tile.red b { color:#ff2d4f; background:rgba(255,45,79,.12); box-shadow:0 0 24px rgba(255,45,79,.16); }
.alert-tile.orange b { color:#f59e0b; background:rgba(245,158,11,.12); box-shadow:0 0 24px rgba(245,158,11,.16); }
.alert-tile.yellow b { color:#eab308; background:rgba(234,179,8,.12); box-shadow:0 0 24px rgba(234,179,8,.16); }
.night-link { display:block; color:#22c55e; text-decoration:none; font-weight:900; margin-top:14px; }
.night-table { width:100%; border-collapse:collapse; color:#e5e7eb; }
.night-table th { text-align:left; color:#94a3b8; font-size:11px; text-transform:uppercase; padding:10px 8px; border-bottom:1px solid rgba(148,163,184,.15); }
.night-table td { padding:11px 8px; border-bottom:1px solid rgba(148,163,184,.10); font-size:13px; }
.night-table tr:hover td { background:rgba(255,255,255,.03); }
.mini-rate,.priority-pill { display:inline-flex; min-width:48px; justify-content:center; padding:5px 8px; border-radius:999px; font-weight:900; font-size:11px; }
.mini-rate.is-red { background:rgba(255,45,79,.13); color:#ff5b74; }
.mini-rate.is-orange,.priority-pill { background:rgba(245,158,11,.13); color:#fbbf24; }
@media(max-width:1300px){.night-kpis{grid-template-columns:repeat(2,1fr)}.main-charts,.lower-charts,.tables-row{grid-template-columns:1fr}.night-topbar{flex-direction:column}.night-actions{flex-wrap:wrap}}
@media(max-width:760px){.dashboard-night{padding:18px}.night-kpis{grid-template-columns:1fr}.night-topbar h1{font-size:27px}.night-actions{width:100%}.night-date,.night-btn{width:100%;box-sizing:border-box;text-align:center}}

/* Menu latéral repliable */
.app-layout .sidebar,
.app-layout .main-content,
.app-layout .dashboard-night {
    transition: width .28s ease, padding .28s ease, margin .28s ease, opacity .22s ease, transform .28s ease;
}

.sidebar-toggle-btn {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 9999;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(10,15,20,.92);
    box-shadow: 0 14px 35px rgba(0,0,0,.28);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.sidebar-toggle-btn span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform .22s ease, opacity .22s ease, background .22s ease;
}

.sidebar-toggle-btn:hover {
    background: rgba(67,176,42,.95);
    transform: translateY(-1px);
}

.sidebar-toggle-btn.is-collapsed span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.sidebar-toggle-btn.is-collapsed span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle-btn.is-collapsed span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.app-layout:not(.sidebar-collapsed) .sidebar {
    padding-top: 74px;
}

.app-layout.sidebar-collapsed .sidebar {
    width: 0 !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    opacity: 0;
}

.app-layout.sidebar-collapsed .sidebar > * {
    pointer-events: none;
}

.app-layout.sidebar-collapsed .main-content,
.app-layout.sidebar-collapsed .dashboard-night {
    width: 100%;
    max-width: none;
}

@media (max-width: 900px) {
    .sidebar-toggle-btn { top: 12px; left: 12px; }
    .app-layout:not(.sidebar-collapsed) .sidebar { width: 260px; }
}

/* V42 - Check terrain et compte rendu simplifié */
.check-quick-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin: 14px 0 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34,197,94,.12), rgba(34,197,94,.04));
    border: 1px solid rgba(34,197,94,.25);
}

.btn-tout-ok {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 900;
    color: #052e16;
    background: linear-gradient(135deg, #bbf7d0, #22c55e);
    box-shadow: 0 12px 30px rgba(34,197,94,.25);
}

.check-quick-actions small {
    color: #64748b;
    font-weight: 700;
}

.check-row-obligatoire .quantite-input {
    border-width: 2px;
}

.check-row-obligatoire:not(.ligne-complete) .quantite-input {
    border-color: rgba(239,68,68,.32);
    background: #fff7f7;
}

.check-row-rapide .ok-btn,
.check-row-rapide .rupture-btn {
    min-width: 120px;
}

.compte-rendu-simple {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(34,197,94,.16), transparent 34%),
        radial-gradient(circle at bottom right, rgba(15,23,42,.14), transparent 34%),
        #f8fafc;
}

.rapport-choice-card {
    width: min(920px, 92vw);
    padding: 54px;
    border-radius: 34px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 30px 90px rgba(15,23,42,.14);
    text-align: center;
}

.rapport-choice-card h1 {
    margin: 10px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -2px;
    color: #020617;
}

.rapport-choice-card p {
    margin: 0 auto;
    max-width: 720px;
    color: #475569;
    font-size: 17px;
    line-height: 1.65;
}

.rapport-choice-actions {
    margin-top: 38px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.rapport-big-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 92px;
    border-radius: 24px;
    color: white;
    text-decoration: none;
    font-size: 21px;
    font-weight: 900;
    background: linear-gradient(135deg, #16a34a, #052e16);
    box-shadow: 0 22px 50px rgba(22,163,74,.24);
}

.rapport-big-btn.secondary {
    background: linear-gradient(135deg, #0f172a, #334155);
    box-shadow: 0 22px 50px rgba(15,23,42,.22);
}

.rapport-big-btn:hover {
    transform: translateY(-2px);
}

@media (max-width: 760px) {
    .rapport-choice-actions { grid-template-columns: 1fr; }
    .rapport-choice-card { padding: 34px 22px; }
}

/* V43 - compte rendu avec navigation temporelle */
.rapport-choice-card-period { max-width: 980px; }
.rapport-period-tabs {
    margin: 32px auto 22px;
    display: inline-flex;
    gap: 8px;
    padding: 7px;
    border-radius: 999px;
    background: #e2e8f0;
}
.rapport-tab {
    min-width: 140px;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    color: #334155;
    font-weight: 900;
}
.rapport-tab.active {
    color: #fff;
    background: linear-gradient(135deg,#16a34a,#052e16);
    box-shadow: 0 14px 30px rgba(22,163,74,.22);
}
.rapport-period-nav {
    display: grid;
    grid-template-columns: 76px 1fr 76px;
    align-items: center;
    gap: 16px;
    margin: 10px auto 0;
    max-width: 760px;
    padding: 18px;
    border-radius: 26px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.rapport-period-nav strong {
    display: block;
    color: #020617;
    font-size: 24px;
    letter-spacing: -.03em;
}
.rapport-period-nav span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-weight: 700;
}
.rapport-arrow {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    text-decoration: none;
    font-size: 48px;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg,#0f172a,#334155);
    box-shadow: 0 16px 34px rgba(15,23,42,.18);
}
.rapport-arrow.disabled {
    opacity: .35;
    background: #94a3b8;
    box-shadow: none;
}
.rapport-choice-actions.single { grid-template-columns: minmax(260px, 420px); justify-content: center; }

/* V44 — correction lisibilité tableaux dashboard dark */
.dashboard-night .night-table,
.dashboard-night .night-table thead,
.dashboard-night .night-table tbody,
.dashboard-night .night-table tr,
.dashboard-night .night-table th,
.dashboard-night .night-table td {
    background: transparent !important;
}
.dashboard-night .night-table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    color: #e5e7eb !important;
    overflow: hidden;
    border-radius: 14px;
}
.dashboard-night .night-table thead th {
    background: rgba(15, 23, 42, .96) !important;
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(148,163,184,.28) !important;
}
.dashboard-night .night-table tbody tr {
    background: rgba(15, 23, 42, .48) !important;
}
.dashboard-night .night-table tbody tr:nth-child(even) {
    background: rgba(30, 41, 59, .36) !important;
}
.dashboard-night .night-table tbody tr:hover {
    background: rgba(51, 65, 85, .55) !important;
}
.dashboard-night .night-table td {
    color: #f8fafc !important;
    border-bottom: 1px solid rgba(148,163,184,.12) !important;
}
.dashboard-night .night-table td:nth-child(2) {
    color: #cbd5e1 !important;
}
.dashboard-night .night-table td strong {
    color: #ffffff !important;
}
.dashboard-night .priority-pill.rupture {
    background: rgba(255,45,79,.16) !important;
    color: #ff6b82 !important;
    border: 1px solid rgba(255,45,79,.22);
}
.dashboard-night .priority-pill.urgent {
    background: rgba(245,158,11,.16) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245,158,11,.22);
}
.dashboard-night .priority-pill.surveillance {
    background: rgba(234,179,8,.16) !important;
    color: #fde047 !important;
    border: 1px solid rgba(234,179,8,.22);
}
.dashboard-night .mini-rate.is-red {
    background: rgba(255,45,79,.18) !important;
    color: #ff6b82 !important;
}
.dashboard-night .mini-rate.is-orange {
    background: rgba(245,158,11,.18) !important;
    color: #fbbf24 !important;
}

/* Rubrique Alertes intelligentes */
.menu-link { position: relative; }
.menu-badge {
    position: absolute;
    right: 10px;
    top: 8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef233c;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 3px rgba(239,35,60,0.20), 0 8px 18px rgba(239,35,60,0.35);
}
.alertes-page {
    background: radial-gradient(circle at 20% 0%, rgba(239,35,60,0.16), transparent 25%),
                radial-gradient(circle at 100% 20%, rgba(67,176,42,0.12), transparent 28%),
                #050914;
    color: #eaf1ff;
}
.alertes-main { padding: 28px; }
.alertes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 26px 28px;
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(15,23,42,0.94), rgba(2,6,23,0.90));
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.alertes-header h1 { margin: 0; font-size: 38px; color: #ffffff; }
.alertes-header p { color: #aebbd0; margin: 8px 0 0; }
.eyebrow { color: #7ddf64 !important; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: 12px; }
.alerte-total-badge {
    border-radius: 18px;
    padding: 18px 24px;
    background: rgba(239,35,60,0.13);
    border: 1px solid rgba(239,35,60,0.45);
    color: #ff6b7c;
    font-size: 24px;
    font-weight: 900;
    white-space: nowrap;
}
.alertes-kpis {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}
.alerte-kpi {
    padding: 20px;
    border-radius: 20px;
    background: #0b1220;
    border: 1px solid rgba(148,163,184,0.16);
    box-shadow: 0 14px 34px rgba(0,0,0,0.26);
}
.alerte-kpi span { color: #cbd5e1; font-weight: 800; text-transform: uppercase; font-size: 12px; }
.alerte-kpi strong { display: block; margin-top: 8px; font-size: 38px; color: white; }
.alerte-kpi small { color: #94a3b8; }
.alerte-kpi.danger { border-color: rgba(255,45,85,.42); box-shadow: inset 0 0 40px rgba(255,45,85,.08); }
.alerte-kpi.warning { border-color: rgba(255,177,0,.42); box-shadow: inset 0 0 40px rgba(255,177,0,.07); }
.alerte-kpi.orange { border-color: rgba(249,115,22,.42); box-shadow: inset 0 0 40px rgba(249,115,22,.07); }
.alerte-kpi.blue { border-color: rgba(59,130,246,.42); box-shadow: inset 0 0 40px rgba(59,130,246,.07); }
.alerte-kpi.purple { border-color: rgba(168,85,247,.42); box-shadow: inset 0 0 40px rgba(168,85,247,.07); }
.alert-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.alert-panel {
    background: linear-gradient(180deg, rgba(15,23,42,0.98), rgba(2,6,23,0.96));
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 22px;
    padding: 20px;
    min-height: 230px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.32);
}
.alert-panel-head { display:flex; align-items:center; justify-content:space-between; margin-bottom: 12px; }
.alert-panel h2 { margin:0; font-size: 20px; color:#fff; }
.alert-panel-head span { color:#fff; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.10); border-radius:999px; padding:7px 12px; font-weight:900; }
.panel-help { color:#94a3b8; margin-top: -4px; font-size: 13px; }
.alert-list { display:flex; flex-direction:column; gap:10px; max-height: 460px; overflow-y:auto; padding-right: 4px; }
.alert-row {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:14px;
    border-radius:16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.07);
    color:#e5edf8;
    text-decoration:none;
}
.alert-row strong { display:block; color:#fff; margin-bottom:5px; }
.alert-row small { color:#9aa8bc; }
.link-row:hover { background: rgba(67,176,42,0.12); border-color: rgba(67,176,42,0.35); }
.priority { padding: 8px 11px; border-radius: 999px; font-size: 12px; font-weight: 900; white-space: nowrap; }
.priority.rupture { background: rgba(255,45,85,.16); color:#ff5c74; border:1px solid rgba(255,45,85,.35); }
.priority.urgent { background: rgba(249,115,22,.16); color:#fb923c; border:1px solid rgba(249,115,22,.35); }
.priority.warning { background: rgba(255,177,0,.16); color:#fbbf24; border:1px solid rgba(255,177,0,.35); }
.priority.commander { background: rgba(59,130,246,.16); color:#60a5fa; border:1px solid rgba(59,130,246,.35); }
.priority.attente { background: rgba(168,85,247,.16); color:#c084fc; border:1px solid rgba(168,85,247,.35); }
.danger-panel { border-color: rgba(255,45,85,.24); }
.orange-panel { border-color: rgba(249,115,22,.24); }
.warning-panel { border-color: rgba(255,177,0,.24); }
.blue-panel { border-color: rgba(59,130,246,.24); }
.purple-panel { border-color: rgba(168,85,247,.24); }
.muted { color:#94a3b8; }
.alert-empty {
    margin-top: 22px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.35);
    color: #bbf7d0;
    font-weight: 800;
}
@media (max-width: 1250px) {
    .alertes-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .alert-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   V46 - Thème dark harmonisé sur toutes les rubriques Givors
   Dashboard / Alertes conservés, extension aux autres pages
   ========================================================= */
:root {
    --dark-bg: #050914;
    --dark-panel: #0b1220;
    --dark-panel-2: #0f172a;
    --dark-card: rgba(15, 23, 42, 0.94);
    --dark-card-soft: rgba(255,255,255,0.045);
    --dark-border: rgba(148,163,184,0.18);
    --dark-border-strong: rgba(67,176,42,0.42);
    --dark-text: #eaf1ff;
    --dark-muted: #9aa8bc;
    --green: #43b02a;
    --green-soft: rgba(67,176,42,0.16);
    --red: #ef233c;
    --orange: #f59e0b;
    --blue: #60a5fa;
}

body.app-page {
    background:
        radial-gradient(circle at 18% 0%, rgba(67,176,42,0.14), transparent 28%),
        radial-gradient(circle at 100% 12%, rgba(59,130,246,0.12), transparent 30%),
        var(--dark-bg) !important;
    color: var(--dark-text) !important;
}

.app-layout {
    background: transparent !important;
}

.main-content,
.alertes-main {
    background: transparent !important;
    color: var(--dark-text) !important;
}

.page-header,
.panel,
.empty-state,
.confirmation-box,
.form-ajout,
.check-card,
.resume-card,
.alertes-stock,
.rapport-choice-card,
.fournisseur-card,
.commande-card,
.detail-produit-card,
.etat-equipe-card,
.etat-ensemble-card,
.stock-panel,
.dashboard-card,
.dashboard-card-premium,
.chart-card,
.kpi-card,
.card,
.box,
.bloc,
.section-box {
    background: linear-gradient(180deg, rgba(15,23,42,0.97), rgba(2,6,23,0.94)) !important;
    border: 1px solid var(--dark-border) !important;
    color: var(--dark-text) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,0.32) !important;
}

.page-header {
    background:
        radial-gradient(circle at top right, rgba(67,176,42,0.20), transparent 34%),
        linear-gradient(135deg, rgba(15,23,42,0.98), rgba(2,6,23,0.95)) !important;
}

.page-header h1,
.panel h1,
.panel h2,
.panel h3,
.confirmation-box h2,
.check-card h2,
.dashboard-card h3,
.rapport-choice-card h1,
.rapport-choice-card h2,
.fournisseur-card h2,
.commande-card h2,
.detail-produit-card h2,
.etat-equipe-card h2,
.etat-ensemble-card h3,
.stock-panel h2,
.stock-panel h3,
.card h1,
.card h2,
.card h3,
.box h1,
.box h2,
.box h3 {
    color: #ffffff !important;
}

.page-header p,
.panel p,
.empty-state p,
.confirmation-box p,
.info-date,
.check-card p,
.dashboard-card p,
.rapport-choice-card p,
.fournisseur-card p,
.commande-card p,
.detail-produit-card p,
.etat-equipe-card p,
.etat-ensemble-card p,
.stock-panel p,
.muted,
small {
    color: var(--dark-muted) !important;
}

.pastille,
.btn-valider,
.btn-primary,
.bouton-carte,
.btn-ajouter,
.btn-creer,
.btn-action-primary,
button[type="submit"],
input[type="submit"] {
    background: linear-gradient(135deg, #43b02a, #7ddf64) !important;
    color: #06110a !important;
    border: 0 !important;
    box-shadow: 0 12px 28px rgba(67,176,42,0.24) !important;
    font-weight: 900 !important;
}

.btn-annuler,
.btn-secondaire,
.btn-retour-page,
.menu-retour,
button,
.button,
a.button {
    border-color: var(--dark-border) !important;
}

.btn-retour-page,
.btn-annuler,
.btn-secondaire,
.btn-secondary,
.actions a,
.lien-action {
    background: rgba(255,255,255,0.07) !important;
    color: var(--dark-text) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
}

.btn-retour-page:hover,
.btn-annuler:hover,
.btn-secondaire:hover,
.btn-secondary:hover,
.actions a:hover,
.lien-action:hover {
    background: var(--green-soft) !important;
    border-color: var(--dark-border-strong) !important;
}

input,
select,
textarea,
.form-ajout input,
.form-ajout select,
.confirmation-box input,
.table-commande-demo input,
.search-input,
.filtre-input {
    background: rgba(2,6,23,0.78) !important;
    color: var(--dark-text) !important;
    border: 1px solid rgba(148,163,184,0.24) !important;
    border-radius: 12px !important;
}

input::placeholder,
textarea::placeholder {
    color: #64748b !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: rgba(67,176,42,0.75) !important;
    box-shadow: 0 0 0 3px rgba(67,176,42,0.14) !important;
}

label {
    color: #dce8f7 !important;
}

table,
.table-commandes,
.table-recap,
.etat-table {
    background: rgba(15,23,42,0.96) !important;
    color: var(--dark-text) !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
}

th {
    background: #101827 !important;
    color: #ffffff !important;
    border-color: rgba(148,163,184,0.22) !important;
}

td,
th,
.table-recap td,
.table-recap th,
.etat-table td,
.etat-table th {
    border-color: rgba(148,163,184,0.14) !important;
}

td {
    background: rgba(255,255,255,0.02) !important;
    color: #dbe7f5 !important;
}

tr:nth-child(even) td {
    background: rgba(255,255,255,0.04) !important;
}

tr:hover td {
    background: rgba(67,176,42,0.08) !important;
}

.ok {
    color: #7ddf64 !important;
}

.alerte,
.rupture,
.danger {
    color: #ff6b7c !important;
}

.warning,
.surveiller,
.orange {
    color: #fbbf24 !important;
}

.badge,
.statut,
.status,
.priority,
.tag,
.pill {
    border-radius: 999px !important;
    font-weight: 900 !important;
}

.sidebar {
    background: linear-gradient(180deg, #070b13 0%, #0b1410 52%, #050914 100%) !important;
    border-right: 1px solid rgba(148,163,184,0.14) !important;
}

.menu-link {
    color: #eaf1ff !important;
}

.menu-link.active,
.menu-link:hover {
    background: rgba(67,176,42,0.22) !important;
    border-color: rgba(67,176,42,0.44) !important;
}

.sidebar-title h2,
.icone,
.eyebrow {
    color: #7ddf64 !important;
}

.menu-link.active .icone {
    color: #ffffff !important;
}

/* Cartes de choix et grosses tuiles */
.equipe-card,
.polo-vert,
.polo-rouge,
.nettoyage {
    border: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow: 0 22px 50px rgba(0,0,0,0.38) !important;
}

/* Accordéons / poupée russe / état des stocks */
details,
.detail-box,
.accordion,
.accordion-item,
.commande-nested,
.ensemble-toggle,
.sous-ensemble-box {
    background: rgba(15,23,42,0.88) !important;
    border: 1px solid rgba(148,163,184,0.16) !important;
    color: var(--dark-text) !important;
    border-radius: 16px !important;
}

summary,
.toggle-header,
.accordion-header,
.ensemble-header {
    color: #ffffff !important;
    background: rgba(255,255,255,0.035) !important;
}

/* Jauges état des stocks */
.progress,
.progress-bar-wrap,
.jauge,
.stock-progress,
.barre-progression {
    background: rgba(15,23,42,0.9) !important;
    border: 1px solid rgba(148,163,184,0.14) !important;
}

.progress-fill,
.jauge-fill,
.stock-progress-fill,
.barre-progression span {
    box-shadow: 0 0 18px rgba(67,176,42,0.22) !important;
}

/* Liens classiques en thème sombre */
a {
    color: #8be279;
}

a:hover {
    color: #b7ffab;
}

/* Scrollbars propres */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(67,176,42,.55) rgba(15,23,42,.9);
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: rgba(15,23,42,.9); }
*::-webkit-scrollbar-thumb { background: rgba(67,176,42,.55); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(67,176,42,.8); }

/* Responsive global */
@media (max-width: 900px) {
    .main-content { padding: 22px !important; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .dashboard-cards { flex-direction: column; }
}

/* V47 - UI premium finale : état stocks / historique / commandes */
:root {
    --premium-bg: #070b16;
    --premium-card: rgba(15, 23, 42, 0.92);
    --premium-card-2: rgba(20, 30, 50, 0.88);
    --premium-border: rgba(148, 163, 184, 0.18);
    --premium-border-green: rgba(67, 176, 42, 0.40);
    --premium-text: #f8fafc;
    --premium-muted: #9fb0c8;
    --premium-green: #43b02a;
    --premium-red: #ff3b55;
    --premium-orange: #f59e0b;
    --premium-blue: #3b82f6;
}

body.app-page {
    background:
        radial-gradient(circle at 18% 0%, rgba(67,176,42,.12), transparent 24%),
        radial-gradient(circle at 90% 10%, rgba(59,130,246,.10), transparent 25%),
        linear-gradient(180deg, #070b16 0%, #030712 100%) !important;
}

/* ÉTAT DES STOCKS : fin des blocs blancs */
.outils-stock-pro {
    background: transparent !important;
    padding: 0 !important;
}
.search-stock-wrap {
    background: rgba(15,23,42,.86) !important;
    border: 1px solid rgba(148,163,184,.22) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 20px 45px rgba(0,0,0,.28) !important;
}
.search-stock-wrap input { color: #f8fafc !important; }
.search-stock-wrap input::placeholder { color: #7f90aa !important; }

.equipe-stock {
    background:
        radial-gradient(circle at top right, rgba(67,176,42,.13), transparent 34%),
        linear-gradient(180deg, rgba(15,23,42,.98), rgba(8,13,26,.96)) !important;
    border: 1px solid rgba(148,163,184,.18) !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.34) !important;
    border-radius: 26px !important;
    overflow: hidden !important;
}
.equipe-stock-header,
.ensemble-stock-header {
    background: transparent !important;
    color: #fff !important;
}
.equipe-stock-header {
    min-height: 98px;
    border-bottom: 1px solid rgba(148,163,184,.10);
}
.equipe-stock-header strong { color: #fff !important; font-size: 26px !important; }
.equipe-stock-header em { color: var(--premium-muted) !important; font-size: 14px !important; }
.equipe-vert .equipe-stock-header { border-left: 0 !important; box-shadow: inset 6px 0 0 rgba(67,176,42,.75); }
.equipe-rouge .equipe-stock-header { border-left: 0 !important; box-shadow: inset 6px 0 0 rgba(239,68,68,.75); }
.equipe-nettoyage .equipe-stock-header { border-left: 0 !important; box-shadow: inset 6px 0 0 rgba(59,130,246,.75); }

.equipe-stock-body,
.ensemble-stock-body {
    background: transparent !important;
}
.equipe-stock:not(.ouvert) .equipe-stock-body,
.ensemble-stock-pro:not(.ouvert) .ensemble-stock-body { display: none !important; }

.ensemble-stock-pro {
    margin: 16px !important;
    background: linear-gradient(180deg, rgba(20,30,50,.92), rgba(11,18,32,.88)) !important;
    border: 1px solid rgba(148,163,184,.16) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 14px 38px rgba(0,0,0,.20) !important;
}
.ensemble-stock-header {
    padding: 18px 20px !important;
    gap: 14px !important;
}
.ensemble-titre { color: #fff !important; font-size: 19px !important; font-weight: 950 !important; letter-spacing: .01em; }
.ensemble-compteurs { margin-left: auto !important; color: var(--premium-muted) !important; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ensemble-compteurs b { color: #fff !important; }
.mini-badge {
    border-radius: 999px !important;
    padding: 7px 11px !important;
    font-style: normal !important;
    font-weight: 950 !important;
    font-size: 12px !important;
}
.mini-badge.critique { background: rgba(255,59,85,.16) !important; color: #ff7a8b !important; }
.mini-badge.surveillance { background: rgba(245,158,11,.16) !important; color: #facc15 !important; }
.plus-stock,
.arbo-plus {
    background: linear-gradient(135deg, rgba(30,41,59,.95), rgba(8,13,26,.95)) !important;
    color: #fff !important;
    border: 1px solid rgba(148,163,184,.20) !important;
    box-shadow: 0 10px 22px rgba(0,0,0,.24) !important;
}
.equipe-stock.ouvert > .equipe-stock-header .plus-stock,
.ensemble-stock-pro.ouvert > .ensemble-stock-header .plus-stock {
    background: linear-gradient(135deg, #43b02a, #7ddf64) !important;
    color: #06110a !important;
}
.produit-stock-pro {
    margin: 0 14px 12px !important;
    padding: 14px 16px !important;
    background: rgba(2,6,23,.48) !important;
    border: 1px solid rgba(148,163,184,.11) !important;
    border-radius: 16px !important;
    color: #fff !important;
}
.produit-stock-pro:hover { background: rgba(67,176,42,.08) !important; border-color: rgba(67,176,42,.26) !important; }
.produit-stock-nom h3 { color: #fff !important; }
.produit-stock-nom p { color: var(--premium-muted) !important; }
.produit-stock-valeur strong { color: #fff !important; }

/* HISTORIQUE : timeline premium */
.header-historique-premium { margin-bottom: 28px !important; }
.historique-timeline {
    position: relative;
    display: grid;
    gap: 24px;
    padding-left: 10px;
}
.historique-day {
    position: relative;
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    align-items: start;
}
.historique-day:before {
    content: '';
    position: absolute;
    left: 183px;
    top: 30px;
    bottom: -28px;
    width: 1px;
    background: linear-gradient(180deg, rgba(67,176,42,.52), rgba(148,163,184,.08));
}
.historique-day:last-child:before { display: none; }
.historique-date {
    position: sticky;
    top: 18px;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15,23,42,.86);
    border: 1px solid rgba(148,163,184,.18);
    color: #fff;
    box-shadow: 0 18px 45px rgba(0,0,0,.26);
}
.historique-date strong { font-size: 16px; }
.historique-day-list { display: grid; gap: 12px; }
.historique-check-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(67,176,42,.10), transparent 30%),
        linear-gradient(180deg, rgba(15,23,42,.95), rgba(8,13,26,.92));
    border: 1px solid rgba(148,163,184,.16);
    box-shadow: 0 18px 48px rgba(0,0,0,.24);
}
.historique-check-main { display: flex; align-items: center; gap: 14px; }
.historique-check-main h3 { margin: 0; color: #fff; font-size: 19px; }
.historique-check-main p { margin: 4px 0 0; color: var(--premium-muted); font-weight: 700; }
.historique-team-dot {
    width: 14px;
    height: 52px;
    border-radius: 999px;
    box-shadow: 0 0 22px currentColor;
}
.historique-team-dot.vert { background: #22c55e; color: #22c55e; }
.historique-team-dot.rouge { background: #ef4444; color: #ef4444; }
.historique-team-dot.nettoyage { background: #3b82f6; color: #3b82f6; }
.historique-check-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.historique-check-meta form { display: inline-flex; margin: 0; }
.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #dbeafe;
    border: 1px solid rgba(148,163,184,.16);
    font-weight: 950;
}

/* COMMANDES : cartes fournisseur premium lisibles */
.commandes-resume {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
}
.commande-stat {
    background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(8,13,26,.93)) !important;
    border: 1px solid rgba(148,163,184,.16) !important;
    border-radius: 22px !important;
    color: #fff !important;
    box-shadow: 0 18px 44px rgba(0,0,0,.24) !important;
}
.commande-stat span { color: var(--premium-muted) !important; }
.commande-stat strong { color: #fff !important; }
.commandes-arbo-panel { padding: 30px !important; }
.commandes-arbo { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 18px !important; }
.arbo-fournisseur {
    background:
        radial-gradient(circle at 100% 0%, rgba(67,176,42,.14), transparent 34%),
        linear-gradient(180deg, rgba(15,23,42,.96), rgba(8,13,26,.93)) !important;
    border: 1px solid rgba(148,163,184,.18) !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 22px 58px rgba(0,0,0,.30) !important;
}
.commandes-arbo summary {
    background: transparent !important;
    min-height: 78px;
    padding: 20px 22px !important;
    color: #fff !important;
}
.arbo-fournisseur > summary {
    display: grid !important;
    grid-template-columns: 52px minmax(0,1fr) auto auto;
    column-gap: 14px;
    row-gap: 8px;
    align-items: center;
}
.arbo-fournisseur > summary .arbo-plus { grid-row: 1 / 3; width: 52px !important; height: 52px !important; border-radius: 18px !important; font-size: 25px !important; }
.arbo-fournisseur > summary .arbo-title { color: #fff !important; font-size: 25px !important; line-height: 1.05 !important; }
.arbo-fournisseur > summary .arbo-sub { color: var(--premium-muted) !important; font-weight: 800; }
.arbo-title { color: #fff !important; }
.arbo-sub { color: var(--premium-muted) !important; }
.arbo-badge {
    background: rgba(255,255,255,.08) !important;
    color: #eaf1ff !important;
    border: 1px solid rgba(148,163,184,.16) !important;
    box-shadow: none !important;
}
.arbo-badge.attente { background: rgba(245,158,11,.15) !important; color: #fbbf24 !important; border-color: rgba(245,158,11,.28) !important; }
.arbo-badge.ok { background: rgba(34,197,94,.14) !important; color: #86efac !important; border-color: rgba(34,197,94,.28) !important; }
.arbo-content { padding: 0 18px 18px !important; margin-top: 0 !important; }
.arbo-commande,
.arbo-groupe {
    background: rgba(2,6,23,.42) !important;
    border: 1px solid rgba(148,163,184,.14) !important;
    border-radius: 18px !important;
    margin-top: 12px !important;
}
.arbo-commande > summary,
.arbo-groupe > summary { min-height: 58px; }
.commande-actions-ligne {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 18px 15px;
}
.btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 12px;
    padding: 10px 13px;
    border: 1px solid rgba(148,163,184,.18) !important;
    font-weight: 950;
    text-decoration: none;
}
.btn-mini.noir { background: rgba(255,255,255,.07) !important; color: #fff !important; }
.btn-mini.vert { background: linear-gradient(135deg, #43b02a, #7ddf64) !important; color: #06110a !important; }
.btn-mini.rouge { background: rgba(255,59,85,.15) !important; color: #ff8b9a !important; border-color: rgba(255,59,85,.25) !important; }
.table-arbo-produits { margin: 0 18px 18px !important; width: calc(100% - 36px) !important; }
.table-arbo-produits th { background: rgba(255,255,255,.06) !important; color: #fff !important; }
.table-arbo-produits td { color: #dbe7f5 !important; }

.ajout-commande-toggle {
    background:
        radial-gradient(circle at top right, rgba(67,176,42,.14), transparent 30%),
        linear-gradient(180deg, rgba(15,23,42,.96), rgba(8,13,26,.93)) !important;
}
.ajout-commande-summary { color: #fff !important; }
.fournisseur-ligne {
    background: rgba(2,6,23,.45) !important;
    border: 1px solid rgba(148,163,184,.14) !important;
    color: #fff !important;
}
.fournisseur-ligne:hover { background: rgba(67,176,42,.10) !important; border-color: rgba(67,176,42,.30) !important; }
.fournisseur-ligne-texte strong { color: #fff !important; }
.fournisseur-ligne-texte em { color: var(--premium-muted) !important; }

@media (max-width: 1000px) {
    .commandes-resume { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
    .historique-day { grid-template-columns: 1fr; gap: 12px; }
    .historique-day:before { display: none; }
    .historique-date { position: static; }
}
@media (max-width: 640px) {
    .commandes-resume { grid-template-columns: 1fr !important; }
    .commandes-arbo { grid-template-columns: 1fr !important; }
    .historique-check-card { flex-direction: column; align-items: stretch; }
    .historique-check-meta { justify-content: flex-start; }
}

/* V48 - Commandes : retour à la structure lisible, uniquement relooking dark */
.commandes-arbo-panel {
    padding: 26px !important;
}
.commandes-arbo {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}
.arbo-fournisseur {
    background: linear-gradient(180deg, rgba(17,24,39,.96), rgba(12,18,32,.96)) !important;
    border: 1px solid rgba(148,163,184,.22) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 14px 36px rgba(0,0,0,.22) !important;
}
.arbo-fournisseur > summary {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 72px !important;
    padding: 16px 20px !important;
    background: rgba(15,23,42,.72) !important;
    color: #f8fafc !important;
}
.arbo-fournisseur > summary:hover {
    background: rgba(30,41,59,.92) !important;
}
.arbo-fournisseur > summary .arbo-plus {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 16px !important;
    font-size: 28px !important;
    background: linear-gradient(135deg, #43b02a, #22c55e) !important;
    color: #ffffff !important;
    box-shadow: 0 0 22px rgba(67,176,42,.28) !important;
    transform: none !important;
}
details[open] > summary .arbo-plus {
    transform: none !important;
    background: linear-gradient(135deg, #43b02a, #22c55e) !important;
}
.arbo-fournisseur > summary .arbo-title {
    color: #ffffff !important;
    font-size: 22px !important;
    line-height: 1.1 !important;
    font-weight: 950 !important;
    min-width: 150px !important;
    text-shadow: none !important;
}
.arbo-fournisseur > summary .arbo-sub {
    color: #9fb3d1 !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    flex: 1 !important;
    text-shadow: none !important;
}
.arbo-fournisseur > summary .arbo-badge {
    margin-left: 0 !important;
    white-space: nowrap !important;
}
.arbo-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 34px !important;
    padding: 7px 13px !important;
    border-radius: 999px !important;
    background: rgba(59,130,246,.16) !important;
    color: #bfdbfe !important;
    border: 1px solid rgba(59,130,246,.30) !important;
    font-weight: 950 !important;
    font-size: 13px !important;
    box-shadow: none !important;
}
.arbo-badge.attente {
    background: rgba(245,158,11,.16) !important;
    color: #fbbf24 !important;
    border-color: rgba(245,158,11,.34) !important;
}
.arbo-badge.ok {
    background: rgba(34,197,94,.16) !important;
    color: #86efac !important;
    border-color: rgba(34,197,94,.34) !important;
}
.arbo-content {
    margin-top: 0 !important;
    padding: 14px 18px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    background: rgba(2,6,23,.22) !important;
}
.arbo-commande,
.arbo-groupe {
    background: rgba(15,23,42,.88) !important;
    border: 1px solid rgba(148,163,184,.18) !important;
    border-radius: 16px !important;
    margin-top: 0 !important;
    overflow: hidden !important;
}
.arbo-commande > summary,
.arbo-groupe > summary {
    min-height: 58px !important;
    padding: 13px 16px !important;
    background: rgba(30,41,59,.55) !important;
    color: #f8fafc !important;
}
.arbo-commande .arbo-plus,
.arbo-groupe .arbo-plus {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 12px !important;
    font-size: 22px !important;
    background: rgba(67,176,42,.95) !important;
    color: #fff !important;
}
.arbo-title { color: #ffffff !important; text-shadow: none !important; }
.arbo-sub { color: #9fb3d1 !important; text-shadow: none !important; }
.table-arbo-produits th {
    background: rgba(67,176,42,.18) !important;
    color: #ffffff !important;
}
.table-arbo-produits td {
    color: #e5edf7 !important;
    border-color: rgba(148,163,184,.14) !important;
}

/* V51 - Sauvegardes / Corbeille */
.sauvegarde-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}
.sauvegarde-card {
    min-height: 130px;
    border: 1px solid rgba(67,176,42,.25) !important;
    background: linear-gradient(135deg, rgba(15,23,42,.96), rgba(2,6,23,.92)) !important;
}
.sauvegarde-card span {
    color: #93a4bd;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.sauvegarde-card strong {
    display: block;
    color: #fff;
    font-size: 26px;
    margin: 10px 0 8px;
}
.sauvegarde-card p { color: #b8c7dc; margin: 0; }
.btn-premium-action {
    border: 0;
    border-radius: 16px;
    padding: 14px 20px;
    color: white;
    font-weight: 800;
    background: linear-gradient(135deg, #43b02a, #16a34a);
    box-shadow: 0 14px 28px rgba(67,176,42,.22);
    cursor: pointer;
}
.table-dark-propre {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
}
.table-dark-propre th {
    background: rgba(67,176,42,.18);
    color: #fff;
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid rgba(148,163,184,.18);
}
.table-dark-propre td {
    color: #e5edf7;
    padding: 13px 14px;
    border-bottom: 1px solid rgba(148,163,184,.12);
}
.actions-corbeille {
    display: flex;
    gap: 8px;
    align-items: center;
}
.actions-corbeille form { margin: 0; }
.undo-link {
    display: inline-block;
    margin-left: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(67,176,42,.18);
    color: #86efac !important;
    font-weight: 800;
    text-decoration: none;
}
@media (max-width: 1000px) { .sauvegarde-grid { grid-template-columns: 1fr; } }

/* Connexion et gestion utilisateurs */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, rgba(67,176,42,0.28), transparent 32%), linear-gradient(135deg, #0b0f0d, #18211b 58%, #1d4f1d);
}
.login-card {
    width: 420px;
    background: white;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 25px 70px rgba(0,0,0,0.35);
}
.login-logo { width: 210px; display: block; margin: 0 auto 18px auto; }
.login-card h1 { text-align: center; margin: 0; font-size: 34px; }
.login-subtitle { text-align: center; color: #647067; margin-bottom: 24px; }
.login-card label { display: block; margin-top: 14px; font-weight: bold; }
.login-card input, .form-grid input, .form-grid select, .table-stock input, .table-stock select {
    width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #cfd8d3; border-radius: 8px; background: white;
}
.btn-primary-full { width: 100%; margin-top: 22px; padding: 14px; border: 0; border-radius: 9px; background: #43b02a; color: white; font-weight: bold; cursor: pointer; }
.session-bar { margin: 16px 48px 0 48px; background: white; border-radius: 12px; padding: 12px 18px; box-shadow: 0 8px 20px rgba(0,0,0,0.10); }
.session-bar a { float: right; color: #1d4f1d; font-weight: bold; }
.message-ok, .message-succes { background: #e8f7e4; color: #1d6b15; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.message-erreur { background: #fdecec; color: #a51c1c; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.form-card, .table-card { background: white; border-radius: 16px; padding: 22px; margin-bottom: 22px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: center; }
.btn-action, .btn-small { border: 0; border-radius: 8px; background: #43b02a; color: white; padding: 11px 14px; font-weight: bold; cursor: pointer; }
.table-stock { width: 100%; border-collapse: collapse; }
.table-stock th, .table-stock td { border-bottom: 1px solid #e5e7eb; padding: 10px; text-align: left; vertical-align: middle; }
.table-stock th { background: #f4f6f5; color: #243028; }

/* Connexion premium v58 */
.login-page-premium {
    min-height: 100vh;
    padding: 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 85% 20%, rgba(101, 214, 58, 0.22), transparent 28%),
        radial-gradient(circle at 8% 75%, rgba(55, 153, 38, 0.18), transparent 30%),
        linear-gradient(135deg, #070b0d 0%, #0d1519 45%, #102010 100%);
    color: #f6f8f7;
}
.login-shell {
    width: min(1280px, 96vw);
    min-height: 760px;
    display: grid;
    grid-template-columns: 360px minmax(620px, 1fr);
    border: 1px solid rgba(111, 214, 57, 0.45);
    border-radius: 24px;
    overflow: hidden;
    background: rgba(8, 14, 18, 0.92);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 80px rgba(75, 184, 42, 0.18);
}
.login-brand-panel {
    position: relative;
    padding: 54px 46px;
    background:
        linear-gradient(180deg, rgba(7, 12, 15, 0.76), rgba(6, 14, 13, 0.92)),
        radial-gradient(circle at center, rgba(91, 211, 38, 0.18), transparent 45%);
    border-right: 1px solid rgba(255,255,255,0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.login-brand-panel::before {
    content: "🍔  🍟  🥤  🧂  🍅  🥗  🍔  🍟  🥤  🧂  🍅  🥗";
    position: absolute;
    inset: 0;
    color: rgba(255,255,255,0.045);
    font-size: 46px;
    line-height: 2.35;
    letter-spacing: 22px;
    transform: rotate(-12deg) scale(1.2);
    pointer-events: none;
    overflow: hidden;
}
.login-brand-logo {
    position: relative;
    z-index: 1;
    width: 245px;
    max-width: 100%;
    filter: drop-shadow(0 12px 20px rgba(0,0,0,0.45));
}
.login-brand-center {
    position: relative;
    z-index: 1;
    text-align: center;
}
.login-box-icon {
    width: 150px;
    height: 120px;
    margin: 0 auto 28px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 64px;
    font-weight: 900;
    color: #08120a;
    background: linear-gradient(135deg, #95ed42, #48a82a);
    box-shadow: 0 20px 45px rgba(80, 190, 42, 0.30);
}
.login-brand-center h2 {
    margin: 0;
    font-size: 38px;
    line-height: 1.18;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 8px 20px rgba(0,0,0,0.45);
}
.login-brand-center h2 span { color: #75d638; }
.login-brand-line {
    width: 78px;
    height: 3px;
    margin: 22px auto;
    border-radius: 99px;
    background: #75d638;
}
.login-brand-center p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: rgba(255,255,255,0.90);
}
.login-form-panel {
    padding: 86px 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at top center, rgba(86, 205, 44, 0.09), transparent 35%),
        linear-gradient(145deg, rgba(16, 25, 34, 0.94), rgba(5, 12, 17, 0.96));
}
.login-lock-icon {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 34px;
    color: #83df46;
    font-size: 54px;
    border: 1px solid rgba(116, 216, 56, 0.85);
    background: radial-gradient(circle, rgba(104, 205, 50, 0.22), rgba(104, 205, 50, 0.05));
    box-shadow: 0 0 35px rgba(83, 188, 45, 0.16);
}
.login-form-panel h1 {
    margin: 0;
    text-align: center;
    font-size: 66px;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -1px;
    text-shadow: 0 10px 24px rgba(0,0,0,0.38);
}
.login-form-panel h1 span { color: #72d538; }
.login-form-panel .login-subtitle {
    margin: 26px 0 42px;
    text-align: center;
    color: rgba(255,255,255,0.88);
    font-size: 24px;
}
.login-form { width: 100%; }
.login-form label {
    display: block;
    margin: 26px 0 12px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
}
.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.login-input-wrap input {
    width: 100%;
    height: 76px;
    box-sizing: border-box;
    border-radius: 13px;
    border: 1.5px solid rgba(114, 213, 56, 0.88);
    background: rgba(255,255,255,0.065);
    color: #ffffff;
    font-size: 22px;
    padding: 0 72px 0 86px;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.login-input-wrap input::placeholder { color: rgba(255,255,255,0.58); }
.login-input-wrap input:focus {
    border-color: #8aed48;
    box-shadow: 0 0 0 4px rgba(114, 213, 56, 0.14);
}
.login-input-icon {
    position: absolute;
    left: 30px;
    z-index: 2;
    font-size: 32px;
    color: #75d638;
    line-height: 1;
}
.login-eye {
    position: absolute;
    right: 24px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
}
.btn-login-premium {
    width: 100%;
    height: 86px;
    margin-top: 46px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #46b92d, #8be34b);
    color: #ffffff;
    font-size: 25px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(73, 192, 43, 0.26);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-login-premium span { float: right; padding-right: 26px; font-size: 36px; line-height: 0.7; }
.btn-login-premium:hover { transform: translateY(-1px); filter: brightness(1.04); }
.login-error { font-size: 16px; }
.historique-auteur {
    margin-top: 6px !important;
    color: #5b6b61 !important;
    font-size: 13px !important;
}
.historique-auteur strong { color: #1d4f1d; }

@media (max-width: 980px) {
    .login-shell { grid-template-columns: 1fr; min-height: auto; }
    .login-brand-panel { display: none; }
    .login-form-panel { padding: 54px 28px; }
    .login-form-panel h1 { font-size: 48px; }
    .login-form-panel .login-subtitle { font-size: 19px; }
    .login-input-wrap input { height: 66px; font-size: 19px; padding-left: 68px; }
    .login-input-icon { left: 24px; }
}

.detail-auteur-check {
    margin-top: 8px;
    font-size: 15px;
}

.panel-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-head-row h2 {
    margin: 0 0 4px 0;
}

.panel-head-row p {
    margin: 0;
    color: #6b7280;
}

/* V60 - Uniformisation dark globale et lisibilité des rubriques
   Cette section est volontairement en fin de fichier pour écraser les anciens styles clairs. */
:root {
    --burgers-bg-0: #020617;
    --burgers-bg-1: #07111a;
    --burgers-bg-2: #0f172a;
    --burgers-bg-3: #111827;
    --burgers-card: rgba(15, 23, 42, 0.96);
    --burgers-card-soft: rgba(17, 24, 39, 0.92);
    --burgers-border: rgba(148, 163, 184, 0.22);
    --burgers-green: #43b02a;
    --burgers-green-soft: rgba(67, 176, 42, 0.18);
    --burgers-text: #f8fafc;
    --burgers-muted: #cbd5e1;
    --burgers-muted-2: #94a3b8;
    --burgers-danger: #ef4444;
    --burgers-warning: #f59e0b;
}

body.app-page,
body:not(.login-page) {
    background:
        radial-gradient(circle at 12% 5%, rgba(67,176,42,0.16), transparent 30%),
        radial-gradient(circle at 88% 0%, rgba(34,197,94,0.10), transparent 28%),
        linear-gradient(135deg, var(--burgers-bg-0), var(--burgers-bg-1)) !important;
    color: var(--burgers-text) !important;
}

.main-content,
.check-zone,
.alertes-main,
.dashboard-main,
.stock-main,
.page-content {
    color: var(--burgers-text) !important;
}

/* Cartes, panels, formulaires et tableaux */
.page-header,
.progression-zone,
.check-card,
.panel,
.form-card,
.table-card,
.session-bar,
.empty-state,
.confirmation-box,
.resume-card,
.alertes-stock,
.rapport-choice-card,
.fournisseur-card,
.commande-card,
.detail-produit-card,
.etat-equipe-card,
.etat-ensemble-card,
.stock-panel,
.dashboard-card,
.dashboard-card-premium,
.chart-card,
.kpi-card,
.card,
.box,
.bloc,
.section-box,
.historique-check-card,
.modal-contenu,
table,
thead,
tbody,
tr,
td,
th {
    background: linear-gradient(180deg, rgba(15,23,42,0.98), rgba(2,6,23,0.94)) !important;
    border-color: var(--burgers-border) !important;
    color: var(--burgers-text) !important;
}

.page-header,
.check-card-header {
    background:
        radial-gradient(circle at top right, rgba(67,176,42,0.24), transparent 34%),
        linear-gradient(135deg, rgba(15,23,42,0.98), rgba(2,6,23,0.95)) !important;
    border-color: var(--burgers-border) !important;
}

/* Check stocks */
.check-card { overflow: hidden !important; }
.check-card-header h2,
.check-card-header p,
.check-produit strong,
.progression-zone h2,
.liste-etapes p,
.check-sous-titre h3 {
    text-shadow: none !important;
}

.check-card-header h2,
.progression-zone h2,
.check-produit strong,
.liste-etapes .etape-active,
.check-sous-titre h3 {
    color: var(--burgers-text) !important;
}

.check-card-header p,
.liste-etapes p,
.panel-head-row p,
.historique-auteur,
.detail-auteur-check,
.check-quick-actions small {
    color: var(--burgers-muted) !important;
}

.check-list {
    background: rgba(2,6,23,0.35) !important;
}

.check-row,
.produit-check,
.check-row-cuisine {
    background: rgba(17,24,39,0.94) !important;
    border: 1px solid var(--burgers-border) !important;
    color: var(--burgers-text) !important;
}

.check-row:hover {
    border-color: rgba(67,176,42,0.72) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(67,176,42,0.20) !important;
}

.check-row.ligne-complete,
.produit-check.ligne-complete {
    background: linear-gradient(135deg, rgba(67,176,42,0.24), rgba(17,24,39,0.94)) !important;
    border-color: rgba(67,176,42,0.62) !important;
}

.check-row.rupture-active,
.produit-check.rupture-active {
    background: linear-gradient(135deg, rgba(239,68,68,0.22), rgba(17,24,39,0.94)) !important;
    border-color: rgba(239,68,68,0.70) !important;
}

.check-dot { background-color: #020617 !important; box-shadow: 0 0 0 4px rgba(255,255,255,0.12) !important; }
.ligne-complete .check-dot { background-color: var(--burgers-green) !important; box-shadow: 0 0 0 4px rgba(67,176,42,0.20) !important; }
.rupture-active .check-dot { background-color: var(--burgers-danger) !important; box-shadow: 0 0 0 4px rgba(239,68,68,0.20) !important; }

.check-sous-titre {
    background: linear-gradient(135deg, rgba(67,176,42,0.28), rgba(15,23,42,0.96)) !important;
    border: 1px solid rgba(67,176,42,0.30) !important;
}

.progression-zone {
    box-shadow: 0 18px 45px rgba(0,0,0,0.35) !important;
}

.progress-line { background-color: rgba(255,255,255,0.22) !important; }
.point-progression {
    background-color: #020617 !important;
    border-color: #f8fafc !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.75) !important;
}
.point-ok { background-color: var(--burgers-green) !important; box-shadow: 0 0 0 2px var(--burgers-green) !important; }
.progress-fill { background-color: var(--burgers-green) !important; }

/* Inputs et selects */
input,
select,
textarea,
.quantite-input,
.form-ajout input,
.form-ajout select,
.login-input-wrap input {
    background: rgba(31,41,55,0.96) !important;
    color: var(--burgers-text) !important;
    border: 1px solid rgba(148,163,184,0.35) !important;
    caret-color: var(--burgers-green) !important;
}

input::placeholder,
textarea::placeholder,
.quantite-input::placeholder {
    color: #94a3b8 !important;
    opacity: 1 !important;
}

input:focus,
select:focus,
textarea:focus,
.quantite-input:focus {
    border-color: rgba(67,176,42,0.90) !important;
    box-shadow: 0 0 0 4px rgba(67,176,42,0.14) !important;
    outline: none !important;
}

.quantite-input:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    background: rgba(15,23,42,0.82) !important;
    color: #64748b !important;
}

/* Textes généraux */
h1, h2, h3, h4,
.page-header h1,
.panel h1,
.panel h2,
.panel h3,
.confirmation-box h2,
.dashboard-card h3,
.rapport-choice-card h1,
.rapport-choice-card h2,
.fournisseur-card h2,
.commande-card h2,
.detail-produit-card h2,
.etat-equipe-card h2,
.etat-ensemble-card h3,
.stock-panel h2,
.stock-panel h3,
.card h1,
.card h2,
.card h3,
.box h1,
.box h2,
.box h3,
table th {
    color: var(--burgers-text) !important;
}

p, small, label, td,
.page-header p,
.panel p,
.empty-state p,
.confirmation-box p,
.info-date,
.dashboard-card p,
.rapport-choice-card p,
.fournisseur-card p,
.commande-card p,
.detail-produit-card p,
.etat-equipe-card p,
.etat-ensemble-card p,
.stock-panel p,
.muted {
    color: var(--burgers-muted) !important;
}

/* Boutons */
.pastille,
.btn-valider,
.btn-primary,
.bouton-carte,
.btn-ajouter,
.btn-creer,
.btn-action-primary,
.ok-btn,
.btn-tout-ok,
button[type="submit"],
input[type="submit"] {
    background: linear-gradient(135deg, #43b02a, #7ddf64) !important;
    color: #06110a !important;
    border: 0 !important;
    box-shadow: 0 12px 28px rgba(67,176,42,0.24) !important;
    font-weight: 900 !important;
}

.btn-annuler,
.btn-secondaire,
.btn-retour-page,
.menu-retour,
button,
.button,
a.button {
    color: var(--burgers-text) !important;
    border-color: var(--burgers-border) !important;
}

.rupture-btn,
.btn-danger,
.btn-supprimer,
.lien-supprimer {
    background: rgba(239,68,68,0.12) !important;
    color: #fecaca !important;
    border-color: rgba(239,68,68,0.55) !important;
}

.rupture-active .rupture-btn {
    background: var(--burgers-danger) !important;
    color: #ffffff !important;
}

/* Liens et badges */
a { color: #86efac; }
.badge,
.tag,
.statut,
.historique-auteur strong {
    color: #bbf7d0 !important;
}

/* Tableaux historiques / journal / gestion */
table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
}
table th {
    background: rgba(67,176,42,0.14) !important;
    border-bottom: 1px solid var(--burgers-border) !important;
}
table td,
table th {
    border-color: rgba(148,163,184,0.14) !important;
}
table tr:hover td {
    background: rgba(67,176,42,0.08) !important;
}

/* Modales et récapitulatif */
.modal-header,
.recap-contenu,
.modal-actions {
    background: transparent !important;
    color: var(--burgers-text) !important;
    border-color: var(--burgers-border) !important;
}
.recap-contenu *, .modal-contenu * { color: inherit; }

@media (max-width: 900px) {
    .check-layout { flex-direction: column !important; }
    .progression-zone { width: auto !important; position: static !important; }
    .check-row { grid-template-columns: 1fr !important; gap: 10px !important; }
    .quantite-input { width: 100% !important; box-sizing: border-box !important; }
}

/* V61 - Correction visuelle dark propre (checks + formulaires) sans toucher à la logique métier */
:root {
    --ui-bg: #050b12;
    --ui-panel: #0b121c;
    --ui-panel-2: #111a27;
    --ui-panel-3: #172231;
    --ui-border: rgba(148, 163, 184, .20);
    --ui-border-strong: rgba(148, 163, 184, .34);
    --ui-text: #ffffff;
    --ui-text-soft: #e5edf7;
    --ui-muted: #b8c4d6;
    --ui-green: #55d63a;
    --ui-green-dark: #1d7f25;
    --ui-red: #ff4d4d;
    --ui-blue: #0d8cff;
}

body.app-page:not(.login-page) {
    background:
        radial-gradient(circle at 3% 0%, rgba(85, 214, 58, .12), transparent 26%),
        radial-gradient(circle at 100% 0%, rgba(85, 214, 58, .14), transparent 22%),
        linear-gradient(135deg, #03070d, #07111a 48%, #03120e) !important;
    color: var(--ui-text) !important;
}

/* Ne plus transformer toutes les lignes en grosses cartes sombres : on cible seulement les blocs applicatifs. */
.page-header,
.check-card,
.progression-zone,
.confirmation-box,
.form-card,
.panel,
.table-card,
.stock-panel,
.commande-card,
.fournisseur-card,
.detail-produit-card,
.etat-equipe-card,
.etat-ensemble-card,
.historique-check-card,
.modal-contenu,
.dashboard-card,
.dashboard-card-premium,
.chart-card,
.kpi-card,
.card,
.box,
.section-box,
.produits-grid > *,
.parametres-card,
.rapport-section,
.type-card,
.alert-panel,
.alerte-kpi,
.resume-card,
.empty-state {
    background: linear-gradient(145deg, rgba(15, 23, 36, .98), rgba(5, 11, 18, .96)) !important;
    color: var(--ui-text) !important;
    border: 1px solid var(--ui-border) !important;
    box-shadow: 0 20px 55px rgba(0, 0, 0, .25) !important;
}

.page-header {
    background:
        radial-gradient(circle at right, rgba(85, 214, 58, .22), transparent 28%),
        linear-gradient(135deg, #0c1424, #07101a) !important;
    border-radius: 16px !important;
}

.page-header h1,
.page-header h2,
.page-header h3,
.check-card h1,
.check-card h2,
.check-card h3,
.progression-zone h2,
.confirmation-box h2,
.form-card h2,
.panel h2,
.panel h3,
.produits-grid h2,
.produits-grid h3,
.card h1,
.card h2,
.card h3 {
    color: var(--ui-text) !important;
    text-shadow: none !important;
}

.page-header p,
.check-card p,
.confirmation-box p,
.form-card p,
.panel p,
.produits-grid p,
.card p,
.muted,
small,
label {
    color: var(--ui-muted) !important;
}

/* Check des stocks : table claire, boutons rupture visibles, contraste fort */
.check-layout {
    gap: 24px !important;
}

.check-card {
    border-radius: 16px !important;
    overflow: hidden !important;
}

.check-card-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 22px 28px !important;
    background: linear-gradient(180deg, rgba(11,18,28,.96), rgba(7,13,22,.96)) !important;
    border-bottom: 1px solid var(--ui-border) !important;
}

.check-card-header h2 {
    margin: 0 0 8px !important;
    font-size: 22px !important;
}

.check-compteur {
    flex: 0 0 auto !important;
    min-width: 116px !important;
    height: 58px !important;
    border-radius: 14px !important;
    background: #0b1712 !important;
    color: var(--ui-text) !important;
    border: 1px solid rgba(85,214,58,.22) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    font-size: 27px !important;
    font-weight: 900 !important;
}

.check-list {
    padding: 0 14px 14px !important;
    background: linear-gradient(180deg, rgba(5,11,18,.80), rgba(5,11,18,.98)) !important;
}

.check-row,
.check-row-cuisine,
.check-row-obligatoire,
.produit-check {
    display: grid !important;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 230px) auto auto !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 68px !important;
    padding: 12px 18px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: rgba(10, 17, 27, .92) !important;
    border: 1px solid rgba(148, 163, 184, .20) !important;
    border-bottom-color: rgba(148,163,184,.12) !important;
    color: var(--ui-text) !important;
    box-shadow: none !important;
}

.check-row + .check-row,
.check-row + .check-sous-titre,
.check-sous-titre + .check-row {
    margin-top: 2px !important;
}

.check-row:hover {
    border-color: rgba(85,214,58,.56) !important;
    background: rgba(13, 24, 35, .98) !important;
    box-shadow: inset 3px 0 0 rgba(85,214,58,.75) !important;
}

.check-produit {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.check-produit strong {
    color: var(--ui-text) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

.check-dot {
    width: 13px !important;
    height: 13px !important;
    border-radius: 50% !important;
    background: #020617 !important;
    border: 2px solid rgba(255,255,255,.55) !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,.08) !important;
}

.quantite-input,
.check-row .quantite-input,
.check-row-obligatoire .quantite-input,
.check-row-rapide .quantite-input {
    width: 100% !important;
    height: 46px !important;
    border-radius: 9px !important;
    background: rgba(31, 41, 55, .92) !important;
    border: 1px solid rgba(148,163,184,.36) !important;
    color: #ffffff !important;
    padding: 0 14px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
}

.quantite-input::placeholder { color: #b9c6d8 !important; opacity: 1 !important; }

.ok-btn,
.rupture-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 104px !important;
    height: 46px !important;
    border-radius: 9px !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    cursor: pointer !important;
}

.ok-btn {
    background: rgba(85,214,58,.10) !important;
    color: #eaffea !important;
    border: 1px solid rgba(85,214,58,.55) !important;
    box-shadow: none !important;
}

.rupture-btn {
    background: rgba(255,77,77,.08) !important;
    color: #ff6969 !important;
    border: 1px solid rgba(255,77,77,.70) !important;
    box-shadow: none !important;
}

.rupture-btn::before { content: "ⓘ"; margin-right: 8px; font-weight: 900; }

.ligne-complete,
.check-row.ligne-complete {
    background: linear-gradient(90deg, rgba(85,214,58,.13), rgba(10,17,27,.94)) !important;
    border-color: rgba(85,214,58,.50) !important;
}

.rupture-active,
.check-row.rupture-active {
    background: linear-gradient(90deg, rgba(255,77,77,.14), rgba(10,17,27,.94)) !important;
    border-color: rgba(255,77,77,.75) !important;
}

.rupture-active .rupture-btn {
    background: rgba(255,77,77,.95) !important;
    color: #fff !important;
}

.ligne-complete .check-dot { background: var(--ui-green) !important; border-color: var(--ui-green) !important; }
.rupture-active .check-dot { background: var(--ui-red) !important; border-color: var(--ui-red) !important; }

.check-sous-titre {
    padding: 18px 10px 10px !important;
    background: transparent !important;
    border: 0 !important;
}
.check-sous-titre h3 { color: var(--ui-green) !important; font-size: 14px !important; letter-spacing: .06em !important; text-transform: uppercase !important; }

.navigation-check {
    background: rgba(15,23,36,.72) !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: 12px !important;
    margin-top: 18px !important;
    padding: 14px !important;
}

.progression-zone {
    background: linear-gradient(180deg, rgba(11,18,28,.98), rgba(5,11,18,.98)) !important;
    border-radius: 14px !important;
}

.liste-etapes p { color: #e8eef8 !important; font-weight: 600 !important; }
.liste-etapes .etape-active { color: var(--ui-green) !important; font-weight: 900 !important; }
.point-progression { background: #111a27 !important; color: #fff !important; border-color: #d6dee9 !important; box-shadow: none !important; }
.point-ok { background: var(--ui-green) !important; color: #051006 !important; border-color: var(--ui-green) !important; }
.progress-fill { background: linear-gradient(180deg, var(--ui-green), #e6e6e6) !important; }

/* Message de check déjà fait : lisible en dark, plus de rose/blanc illisible */
.confirmation-box {
    padding: 30px !important;
    border-radius: 16px !important;
}
.confirmation-box .warning,
.warning {
    background: linear-gradient(135deg, rgba(5, 66, 116, .42), rgba(8, 23, 38, .94)) !important;
    border: 1px solid rgba(14, 165, 233, .55) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 26px 28px !important;
    box-shadow: inset 4px 0 0 #0d8cff !important;
}
.confirmation-box .warning h2,
.warning h2 { color: #ffffff !important; font-size: 25px !important; margin-bottom: 12px !important; }
.confirmation-box .warning p,
.warning p { color: #e5edf7 !important; font-size: 16px !important; }
.actions-confirmation { gap: 14px !important; }

/* Formulaires produits / paramètres : plus de blocs blancs */
.form-ajout,
.form-ajout-produit,
.form-card,
.parametres-section,
.produits-grid > div,
.produits-grid .card,
.produits-grid form,
.bloc-formulaire,
.ajout-card,
.produit-form-card {
    background: linear-gradient(145deg, rgba(15,23,36,.98), rgba(5,11,18,.96)) !important;
    border: 1px solid var(--ui-border) !important;
    color: #ffffff !important;
    border-radius: 16px !important;
}

.form-ajout input,
.form-ajout select,
.form-ajout textarea,
.form-ajout-produit input,
.form-ajout-produit select,
.form-ajout-produit textarea,
select,
input,
textarea {
    background: rgba(31,41,55,.96) !important;
    color: #ffffff !important;
    border: 1px solid rgba(148,163,184,.38) !important;
}

.form-ajout input::placeholder,
.form-ajout-produit input::placeholder,
input::placeholder,
textarea::placeholder { color: #b9c6d8 !important; opacity: 1 !important; }

/* Boutons verts/noirs cohérents */
.btn-valider,
.btn-primary,
.btn-ajouter,
.btn-creer,
.input-submit,
button[type="submit"],
input[type="submit"],
.pastille {
    background: linear-gradient(135deg, #35a925, #73df57) !important;
    color: #030b05 !important;
    border: 0 !important;
    font-weight: 900 !important;
}

.btn-annuler,
.btn-retour-page,
.btn-secondaire,
.menu-retour {
    background: rgba(17,24,39,.90) !important;
    color: #ffffff !important;
    border: 1px solid rgba(148,163,184,.35) !important;
}

/* Tableaux : lisibles sans casser la structure */
table:not(.heatmap-table) {
    background: rgba(10,17,27,.94) !important;
    color: #ffffff !important;
    border: 1px solid var(--ui-border) !important;
}
table:not(.heatmap-table) th {
    background: rgba(85,214,58,.12) !important;
    color: #ffffff !important;
}
table:not(.heatmap-table) td { color: #e5edf7 !important; }
table:not(.heatmap-table) tr:hover td { background: rgba(85,214,58,.07) !important; }

@media (max-width: 1000px) {
    .check-row,
    .check-row-cuisine,
    .check-row-obligatoire {
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }
    .ok-btn, .rupture-btn { width: 100% !important; }
}

/* v64 - Commandes fournisseurs dark / lisible */
.commandes-fournisseurs-card {
    background: linear-gradient(135deg, #0f172a, #14532d) !important;
    border: 1px solid rgba(74, 222, 128, .35) !important;
}

.commande-filtres-poles {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0 22px;
}

.filtre-pole {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #111827;
    color: #e5e7eb;
    text-decoration: none;
    border: 1px solid #334155;
    font-weight: 700;
}

.filtre-pole:hover {
    background: #1f2937;
    border-color: #4ade80;
}

.filtre-pole.actif {
    background: #43b02a;
    color: #ffffff;
    border-color: #43b02a;
    box-shadow: 0 10px 26px rgba(67, 176, 42, .22);
}

.panel-header-flex {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.panel-header-flex p,
.texte-aide-param {
    color: #cbd5e1;
}

.commande-produits-list {
    display: grid;
    gap: 10px;
}

.commande-produit-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: #0b1220;
    border: 1px solid #263244;
}

.commande-produit-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.commande-produit-main strong {
    color: #f8fafc;
    font-size: 15px;
}

.commande-produit-main span {
    color: #94a3b8;
    font-size: 13px;
}

.commande-produit-main em {
    color: #fecaca;
    font-style: normal;
    font-weight: 800;
    font-size: 13px;
}

.commande-produit-qte {
    display: flex;
    align-items: center;
    gap: 10px;
}

.commande-produit-qte input {
    width: 90px;
    text-align: center;
    background: #111827;
    color: #ffffff;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 10px;
}

.commande-produit-qte small {
    color: #cbd5e1;
    min-width: 54px;
}

.rupture-fournisseur {
    border-color: rgba(239, 68, 68, .55) !important;
    background: rgba(127, 29, 29, .42) !important;
}

.rupture-fournisseur .commande-produit-main strong,
.ligne-rupture-fournisseur td {
    color: #fecaca !important;
}

.rupture-fournisseur input:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.alerte-erreur-dark {
    background: rgba(127, 29, 29, .42);
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, .55);
    padding: 14px 16px;
    border-radius: 14px;
    margin: 12px 0 18px;
    font-weight: 700;
}

.form-commandes-fournisseurs {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.check-option-param,
.switch-rupture {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e5e7eb;
    font-weight: 700;
    background: #0b1220;
    border: 1px solid #263244;
    border-radius: 12px;
    padding: 10px 12px;
}

.check-option-param input,
.switch-rupture input {
    accent-color: #43b02a;
}

.table-responsive-dark {
    overflow-x: auto;
}

.table-responsive-dark input,
.table-responsive-dark select {
    background: #0b1220;
    color: #f8fafc;
    border: 1px solid #334155;
    border-radius: 10px;
    padding: 8px 10px;
}

.mini-btn.danger {
    background: #7f1d1d !important;
    color: #fecaca !important;
    border: 1px solid rgba(239, 68, 68, .5) !important;
}

@media (max-width: 760px) {
    .panel-header-flex,
    .commande-produit-row,
    .commande-produit-qte {
        align-items: stretch;
        flex-direction: column;
    }
    .commande-produit-qte input {
        width: 100%;
    }
}

.alerte-succes-dark {
    background: rgba(67, 176, 42, 0.16);
    border: 1px solid rgba(67, 176, 42, 0.55);
    color: #eaffea;
    padding: 14px 18px;
    border-radius: 14px;
    margin: 14px 0 18px;
    font-weight: 700;
}


/* === Arborescence commandes fournisseurs - style dark poupée russe === */
.fournisseur-tree,
.commande-tree{
    display:flex;
    flex-direction:column;
    gap:14px;
    margin-top:18px;
}
.fournisseur-tree details{
    border:0;
}
.fournisseur-tree summary{
    list-style:none;
    cursor:pointer;
    user-select:none;
}
.fournisseur-tree summary::-webkit-details-marker{display:none;}
.tree-pole{
    background:linear-gradient(135deg,#0f172a 0%,#101c2f 60%,#072116 100%);
    border:1px solid rgba(74,222,128,.25);
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.22);
}
.tree-pole > summary{
    display:flex;
    align-items:center;
    gap:14px;
    padding:20px 22px;
    color:#fff;
    font-weight:900;
    font-size:1.25rem;
    min-height:58px;
}
.tree-ensemble{
    margin:14px 22px;
    background:#111827;
    border:1px solid rgba(148,163,184,.20);
    border-radius:16px;
    overflow:hidden;
}
.tree-ensemble > summary{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px 18px;
    color:#fff;
    font-weight:850;
    font-size:1.05rem;
}
.tree-sous{
    margin:10px 18px 14px 38px;
    background:#0b1220;
    border:1px solid rgba(148,163,184,.16);
    border-radius:14px;
    overflow:hidden;
}
.tree-sous > summary{
    display:flex;
    align-items:center;
    gap:10px;
    padding:13px 16px;
    color:#e5e7eb;
    font-weight:800;
}
.tree-toggle{
    width:42px;
    height:42px;
    flex:0 0 42px;
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#1f2937;
    border:1px solid rgba(148,163,184,.25);
    color:#fff;
    font-size:0;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);
}
.tree-toggle.small{
    width:34px;
    height:34px;
    flex-basis:34px;
    border-radius:10px;
}
details:not([open]) > summary .tree-toggle::before{content:'+';font-size:23px;font-weight:900;line-height:1;}
details[open] > summary .tree-toggle{background:#61d24b;color:#03140b;border-color:#61d24b;box-shadow:0 0 20px rgba(97,210,75,.25);}
details[open] > summary .tree-toggle::before{content:'−';font-size:26px;font-weight:900;line-height:1;}
.tree-title{flex:1;color:#fff;text-transform:uppercase;letter-spacing:.2px;text-shadow:0 1px 0 rgba(0,0,0,.35);}
.tree-sous .tree-title{text-transform:none;color:#e5e7eb;}
.tree-count{
    margin-left:auto;
    color:#bfdbfe;
    font-size:.9rem;
    font-weight:700;
    white-space:nowrap;
}
.tree-count::after{content:'';}
.tree-pole > summary .tree-count,
.tree-ensemble > summary .tree-count{
    background:rgba(59,130,246,.10);
    border:1px solid rgba(147,197,253,.18);
    border-radius:999px;
    padding:7px 12px;
}
.tree-sous > summary .tree-count{
    color:#93c5fd;
}
.table-tree-produits{
    margin:0 14px 16px;
    border-radius:14px;
    overflow:hidden;
    border:1px solid rgba(148,163,184,.14);
    background:#080f1d;
}
.table-tree-produits table{margin:0;width:100%;}
.table-tree-produits th{background:#0f172a;color:#dbeafe;}
.table-tree-produits td{background:#0b1220;border-color:rgba(148,163,184,.12);}
.commande-tree .commande-produit-row{
    margin:0 14px 12px;
    border-radius:14px;
    background:#0b1220;
    border:1px solid rgba(148,163,184,.16);
}
.commande-tree .tree-sous{padding-bottom:10px;}
.commande-tree .rupture-fournisseur{
    border-color:rgba(239,68,68,.55)!important;
    background:rgba(127,29,29,.22)!important;
}
.commande-tree .rupture-fournisseur strong,
.commande-tree .rupture-fournisseur em{color:#f87171!important;}
@media(max-width:800px){
    .tree-pole > summary{padding:16px;font-size:1.05rem;}
    .tree-ensemble{margin:10px 12px;}
    .tree-sous{margin:8px 10px 12px 24px;}
    .tree-count{font-size:.78rem;}
}

/* === Paramètres commandes fournisseurs : Fournisseur > Polo > Ensemble > Produit === */
.fournisseur-tree-param .tree-fournisseur{
    background:linear-gradient(135deg,#0f172a 0%,#101c2f 55%,#072116 100%);
    border:1px solid rgba(74,222,128,.28);
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}
.fournisseur-tree-param .tree-fournisseur > summary{
    display:flex;
    align-items:center;
    gap:14px;
    padding:20px 22px;
    color:#fff;
    font-weight:900;
    font-size:1.25rem;
    min-height:58px;
}
.fournisseur-tree-param .tree-pole-nested{
    margin:14px 22px;
    background:#111827;
    border:1px solid rgba(148,163,184,.20);
    border-radius:16px;
    overflow:hidden;
    box-shadow:none;
}
.fournisseur-tree-param .tree-pole-nested > summary{
    display:flex;
    align-items:center;
    gap:12px;
    padding:16px 18px;
    color:#fff;
    font-weight:850;
    font-size:1.05rem;
    min-height:auto;
}
.fournisseur-tree-param .tree-ensemble{
    margin:10px 18px 14px 38px;
    background:#0b1220;
    border:1px solid rgba(148,163,184,.16);
    border-radius:14px;
    overflow:hidden;
}
.fournisseur-tree-param .tree-ensemble > summary{
    display:flex;
    align-items:center;
    gap:10px;
    padding:13px 16px;
    color:#e5e7eb;
    font-weight:800;
}
.fournisseur-tree-param .tree-fournisseur > summary .tree-count,
.fournisseur-tree-param .tree-pole-nested > summary .tree-count{
    background:rgba(59,130,246,.10);
    border:1px solid rgba(147,197,253,.18);
    border-radius:999px;
    padding:7px 12px;
}
.fournisseur-tree-param .tree-ensemble > summary .tree-count{color:#93c5fd;}
.fournisseur-tree-param .tree-ensemble .table-tree-produits{margin:0 14px 16px;}
.fournisseur-tree-param .tree-ensemble .tree-title{text-transform:uppercase;color:#e5e7eb;}

.ok-produit-btn{background:#43b02a;color:#fff;border:none;border-radius:8px;padding:8px 12px;cursor:pointer}.ok-produit-btn.actif{background:#1f7a1f}

/* Workflow commande fournisseur Polo Vert -> Polo Rouge -> Récapitulatif */
.commande-etapes .filtre-pole {
    border: 1px solid rgba(74, 222, 128, 0.25);
    cursor: pointer;
}
.step-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.step-title-row h2 { margin: 0; color: #f8fafc; }
.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.btn-secondaire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #1f2937;
    color: #e5e7eb;
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.btn-secondaire:hover { background: #273449; }
.recap-commande-box { display: grid; gap: 16px; }
.recap-pole {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(74, 222, 128, 0.20);
    border-radius: 18px;
    padding: 16px;
}
.recap-pole h3 {
    margin: 0 0 12px;
    color: #4ade80;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.recap-ensemble {
    background: rgba(30, 41, 59, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 12px;
    margin-top: 10px;
    color: #f8fafc;
}
.recap-ligne {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #e5e7eb;
}
.recap-ligne:first-of-type { margin-top: 8px; }
.recap-ligne b { color: #f8fafc; }
@media (max-width: 760px) {
    .step-title-row, .step-actions { flex-direction: column; align-items: stretch; }
}

/* V70.1 - Harmonisation dark du détail de commande */
.app-page .commande-pro-info,
.app-page .commande-pro-total {
    background:
        radial-gradient(circle at top right, rgba(67,176,42,0.10), transparent 38%),
        linear-gradient(135deg, #0f172a, #111827) !important;
    border: 1px solid #243349 !important;
    color: #f8fafc !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28) !important;
}

.app-page .commande-pro-total {
    border-color: rgba(67,176,42,0.55) !important;
}

.app-page .commande-pro-info span,
.app-page .commande-pro-total span {
    color: #6ee75a !important;
}

.app-page .commande-pro-info strong,
.app-page .commande-pro-total strong {
    color: #ffffff !important;
}

.app-page .commande-pro-info p,
.app-page .commande-table-header p {
    color: #cbd5e1 !important;
}

.app-page .commande-table-panel {
    background:
        radial-gradient(circle at top right, rgba(67,176,42,0.08), transparent 34%),
        linear-gradient(135deg, #0b1220, #111827) !important;
    border: 1px solid #243349 !important;
    color: #f8fafc !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28) !important;
}

.app-page .commande-table-header h2 {
    color: #ffffff !important;
}

.app-page .commande-table-header a,
.app-page .btn-bl-header {
    background: linear-gradient(135deg, #31a51f, #6bdc55) !important;
    color: #06120b !important;
    border: 1px solid rgba(110,231,90,0.55) !important;
    box-shadow: 0 14px 28px rgba(67,176,42,0.22) !important;
}

.app-page .table-pro-commande {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #243349 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #0b1220 !important;
}

.app-page .table-pro-commande th {
    background: linear-gradient(135deg, #10251f, #0f172a) !important;
    color: #6ee75a !important;
    border-bottom: 1px solid #243349 !important;
}

.app-page .table-pro-commande td {
    background: #0f172a !important;
    color: #e5e7eb !important;
    border-bottom: 1px solid #243349 !important;
}

.app-page .table-pro-commande tr:nth-child(even) td {
    background: #111827 !important;
}

.app-page .table-pro-commande tr:hover td {
    background: #182235 !important;
}

.app-page .table-pro-commande td strong {
    color: #ffffff !important;
}

.app-page .cell-total {
    color: #6ee75a !important;
    font-weight: 800 !important;
}

.app-page .ligne-total-final td {
    background: #0f1f18 !important;
    color: #6ee75a !important;
    border-top: 1px solid rgba(110,231,90,0.45) !important;
    font-weight: 900 !important;
}


/* Accueil restaurants - thème dark homogène */
.home .session-bar {
    background: rgba(15, 23, 42, 0.92);
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 35px rgba(0,0,0,0.28);
}

.home .session-bar strong {
    color: #ffffff;
}

.home .session-bar a {
    color: #6ee75c;
}

.home .restaurant {
    background:
        radial-gradient(circle at top right, rgba(67,176,42,0.16), transparent 36%),
        linear-gradient(145deg, #111827 0%, #0b1220 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #e5e7eb;
    box-shadow: 0 18px 42px rgba(0,0,0,0.36);
}

.home .restaurant.actif {
    border: 1px solid rgba(74, 222, 128, 0.75);
    box-shadow: 0 20px 48px rgba(67,176,42,0.18), 0 18px 42px rgba(0,0,0,0.36);
}

.home .restaurant.actif:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 58px rgba(67,176,42,0.24), 0 18px 42px rgba(0,0,0,0.42);
}

.home .restaurant.bloque {
    opacity: 1;
    border-color: rgba(148, 163, 184, 0.18);
}

.home .restaurant h2 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.home .restaurant.actif h2 {
    color: #6ee75c;
}

.home .restaurant p {
    color: #cbd5e1;
}

.home .photo-resto {
    border: 1px solid rgba(148, 163, 184, 0.20);
    box-shadow: 0 12px 30px rgba(0,0,0,0.30);
}

.home .badge-dispo {
    background: linear-gradient(135deg, #43b02a, #6ee75c);
    color: #06110d;
    box-shadow: 0 8px 24px rgba(67,176,42,0.35);
}

.home .badge-bloque {
    background: rgba(30, 41, 59, 0.92);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.home .bouton-carte {
    background: linear-gradient(135deg, #43b02a, #6ee75c);
    color: #06110d;
    box-shadow: 0 12px 30px rgba(67,176,42,0.28);
}

.home .bouton-bloque {
    background: rgba(30, 41, 59, 0.92);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

@media (max-width: 950px) {
    .restaurants {
        flex-direction: column;
    }
    .restaurant {
        width: auto;
    }
}


/* v71 - Ajout ponctuel + réception contrôlée */
.commandes-actions-header {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.commande-ajout-ponctuel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(67,176,42,0.12);
    border: 1px solid rgba(67,176,42,0.55);
    color: #d9ffe0;
    text-decoration: none;
    font-weight: 800;
    padding: 13px 18px;
    border-radius: 13px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.commande-ajout-ponctuel:hover {
    background: rgba(67,176,42,0.22);
    border-color: #43b02a;
}

.reception-panel-dark,
.commande-produits-panel {
    background: linear-gradient(180deg, rgba(15,23,42,0.98), rgba(10,15,28,0.98));
    border: 1px solid rgba(148,163,184,0.18);
    color: #e5e7eb;
}

.table-reception-dark {
    background: #0f172a;
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 16px;
    overflow: hidden;
}

.input-reception,
.commande-produit-qte input {
    background: #0b1220;
    border: 1px solid rgba(67,176,42,0.45);
    color: #f8fafc;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 800;
    outline: none;
}

.input-reception:focus,
.commande-produit-qte input:focus {
    border-color: #43b02a;
    box-shadow: 0 0 0 3px rgba(67,176,42,0.16);
}

.tree-pole,
.tree-ensemble {
    background: rgba(15,23,42,0.82);
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
}

.tree-pole > summary,
.tree-ensemble > summary {
    cursor: pointer;
    list-style: none;
    padding: 15px 18px;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tree-pole > summary::-webkit-details-marker,
.tree-ensemble > summary::-webkit-details-marker {
    display: none;
}

.tree-pole[open] > summary,
.tree-ensemble[open] > summary {
    background: rgba(67,176,42,0.12);
    border-bottom: 1px solid rgba(148,163,184,0.14);
}

.tree-title {
    font-weight: 900;
}

.tree-count {
    margin-left: auto;
    font-size: 12px;
    color: #cbd5e1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 5px 9px;
    border-radius: 999px;
}

.tree-toggle::before {
    content: "›";
    display: inline-block;
    font-size: 24px;
    color: #43b02a;
    transition: transform 0.18s ease;
}

details[open] > summary .tree-toggle::before {
    transform: rotate(90deg);
}

.commande-produit-row {
    margin: 10px 14px;
}

@media (max-width: 760px) {
    .commandes-actions-header {
        width: 100%;
    }
    .commande-ajout-rapide,
    .commande-ajout-ponctuel {
        width: 100%;
    }
}

/* v72 - Retour service après check */
.retour-service-panel,
.retour-service-detail-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.96));
    border: 1px solid rgba(74, 222, 128, 0.18);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.retour-service-textarea {
    width: 100%;
    min-height: 320px;
    resize: vertical;
    box-sizing: border-box;
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(74, 222, 128, 0.28);
    background: rgba(2, 6, 23, 0.72);
    color: #f8fafc;
    font-size: 16px;
    line-height: 1.6;
    outline: none;
}

.retour-service-textarea::placeholder {
    color: #94a3b8;
}

.retour-service-textarea:focus {
    border-color: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}

.form-actions-retour-service {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.retour-service-texte {
    white-space: pre-wrap;
    background: rgba(2, 6, 23, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #e5e7eb;
    border-radius: 16px;
    padding: 18px 20px;
    line-height: 1.65;
    margin-top: 14px;
}

.retour-service-vide {
    background: rgba(15, 23, 42, 0.7);
    border: 1px dashed rgba(148, 163, 184, 0.32);
    color: #94a3b8;
    border-radius: 16px;
    padding: 18px 20px;
    margin-top: 14px;
}

.badge-retour-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.16);
    color: #86efac;
    border: 1px solid rgba(74, 222, 128, 0.28);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}


/* v72.1 - bouton retour service historique cliquable */
.badge-retour-service-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(74, 222, 128, 0.35);
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.badge-retour-service-link:hover {
    transform: translateY(-1px);
    background: rgba(74, 222, 128, 0.16);
    border-color: rgba(74, 222, 128, 0.65);
}
#retour-service {
    scroll-margin-top: 24px;
}


/* === Configuration Mail - v73.2 lisible et homogène === */
.mail-config-page .main-content {
    max-width: 1420px;
}

.mail-config-page .mail-hero {
    margin-bottom: 18px;
}

.mail-config-page .mail-info-box {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin: 18px 0 24px;
    padding: 20px 22px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .18), transparent 38%),
        linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(2, 6, 23, .96));
    border: 1px solid rgba(59, 130, 246, .35);
    color: #e5e7eb;
    box-shadow: 0 16px 36px rgba(0,0,0,.28);
}

.mail-config-page .mail-info-icon {
    min-width: 44px;
    height: 44px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 22px;
    color: white;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    box-shadow: 0 12px 25px rgba(37, 99, 235, .35);
}

.mail-config-page .mail-info-box h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 22px;
}

.mail-config-page .mail-info-box p {
    margin: 4px 0;
    color: #cbd5e1;
    line-height: 1.45;
}

.mail-config-page .mail-panel {
    background:
        radial-gradient(circle at top right, rgba(67,176,42,.10), transparent 32%),
        linear-gradient(135deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .96)) !important;
    border: 1px solid rgba(148, 163, 184, .20) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.34) !important;
}

.mail-config-page .mail-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.mail-config-page .mail-panel-header h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.mail-config-page .mail-panel-header p {
    margin: 0;
    color: #cbd5e1 !important;
}

.mail-config-page .mail-status {
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
}

.mail-config-page .mail-status.ok {
    background: rgba(67, 176, 42, .18);
    border: 1px solid rgba(67, 176, 42, .55);
    color: #bbf7d0;
}

.mail-config-page .mail-status.danger {
    background: rgba(239, 68, 68, .16);
    border: 1px solid rgba(239, 68, 68, .45);
    color: #fecaca;
}

.mail-config-page .mail-form,
.mail-config-page .mail-form-test {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px 22px;
}

.mail-config-page .mail-form label,
.mail-config-page .mail-form-test label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #f8fafc;
    font-weight: 800;
    font-size: 15px;
}

.mail-config-page .mail-form label span,
.mail-config-page .mail-form-test label span {
    color: #e5e7eb;
}

.mail-config-page .mail-form input,
.mail-config-page .mail-form-test input {
    width: 100%;
    box-sizing: border-box;
    min-height: 50px;
    border-radius: 14px;
    background: #111827;
    color: #f8fafc;
    border: 1px solid #334155;
    padding: 0 15px;
    font-size: 16px;
    outline: none;
}

.mail-config-page .mail-form input:focus,
.mail-config-page .mail-form-test input:focus {
    border-color: #43b02a;
    box-shadow: 0 0 0 3px rgba(67, 176, 42, .20);
}

.mail-config-page .mail-form input::placeholder,
.mail-config-page .mail-form-test input::placeholder {
    color: #94a3b8;
}

.mail-config-page .mail-form-wide {
    grid-column: 1 / -1;
}

.mail-config-page .mail-form small {
    color: #94a3b8;
    font-weight: 600;
}

.mail-config-page .mail-checkbox {
    flex-direction: row !important;
    align-items: center;
    gap: 12px !important;
    background: #0b1220;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 0 14px;
    min-height: 50px;
}

.mail-config-page .mail-checkbox input {
    width: 18px !important;
    min-height: 18px !important;
    accent-color: #43b02a;
}

.mail-config-page .mail-main-btn {
    min-height: 50px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 900;
}

.mail-config-page .alerte-erreur,
.mail-config-page .alerte-erreur-dark {
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 900px) {
    .mail-config-page .mail-form,
    .mail-config-page .mail-form-test {
        grid-template-columns: 1fr;
    }
    .mail-config-page .mail-panel-header {
        flex-direction: column;
    }
}


.check-ancienne-quantite {
    display: block;
    margin-top: 3px;
    font-size: 0.78rem;
    opacity: 0.72;
    font-weight: 500;
}

/* --- Module Inventaires V87 --- */
.inventaires-page .inventaires-header {
    border: 1px solid rgba(67, 176, 42, .22);
}

.inventaire-create-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.inventaire-create-panel h2,
.inventaire-empty h2,
.inventaire-card h2 {
    margin-top: 0;
}

.inventaire-create-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.inventaire-create-form select,
.inventaire-create-form input {
    height: 46px;
    border-radius: 14px;
    border: 1px solid #334155;
    background: #111827;
    color: #f8fafc;
    padding: 0 14px;
    font-weight: 800;
    outline: none;
}

.inventaire-create-form select:focus,
.inventaire-create-form input:focus {
    border-color: #43b02a;
    box-shadow: 0 0 0 3px rgba(67, 176, 42, .18);
}

.btn-inventaire-principal {
    height: 46px;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    background: linear-gradient(135deg, #43b02a, #7ddf64);
    color: #06110a;
    font-weight: 950;
    cursor: pointer;
}

.inventaires-list {
    display: grid;
    gap: 16px;
}

.inventaire-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .98));
    border: 1px solid rgba(148, 163, 184, .18);
    box-shadow: 0 16px 40px rgba(0,0,0,.26);
    border-radius: 24px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 18px;
    align-items: center;
}

.inventaire-card-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.inventaire-date-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: rgba(67, 176, 42, .13);
    border: 1px solid rgba(67, 176, 42, .25);
    font-size: 24px;
}

.inventaire-card-main p {
    margin: 4px 0 0;
    color: #94a3b8;
}

.inventaire-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inventaire-badge,
.inventaire-mini-stat {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 900;
    border: 1px solid rgba(148, 163, 184, .20);
    color: #e5e7eb;
    background: rgba(15, 23, 42, .75);
}

.inventaire-badge.valide {
    background: rgba(67, 176, 42, .16);
    color: #bbf7d0;
    border-color: rgba(67, 176, 42, .28);
}

.inventaire-badge.brouillon {
    background: rgba(245, 158, 11, .14);
    color: #fde68a;
    border-color: rgba(245, 158, 11, .30);
}

.inventaire-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.inventaire-empty {
    text-align: center;
    color: #cbd5e1;
}

@media (max-width: 1100px) {
    .inventaire-card {
        grid-template-columns: 1fr;
    }
    .inventaire-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 800px) {
    .inventaire-create-panel {
        flex-direction: column;
        align-items: stretch;
    }
    .inventaire-create-form select,
    .inventaire-create-form input,
    .btn-inventaire-principal {
        width: 100%;
    }
}

/* --- Module Inventaires V88 : saisie par fournisseur --- */
.inventaire-progress {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 0 0 20px;
}
.inventaire-step {
    text-decoration: none;
    display: grid;
    grid-template-columns: 34px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 10px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: rgba(15, 23, 42, .72);
    color: #e5e7eb;
}
.inventaire-step span {
    grid-row: 1 / span 2;
    width: 34px;
    height: 34px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: rgba(148, 163, 184, .14);
    font-weight: 950;
}
.inventaire-step strong { font-size: 14px; }
.inventaire-step em { font-style: normal; color: #94a3b8; font-size: 12px; margin-top: 3px; }
.inventaire-step.done {
    border-color: rgba(67, 176, 42, .32);
    background: rgba(67, 176, 42, .10);
}
.inventaire-step.done span { background: rgba(67, 176, 42, .22); color: #bbf7d0; }
.inventaire-step.active {
    border-color: rgba(67, 176, 42, .62);
    box-shadow: 0 0 0 3px rgba(67, 176, 42, .13);
}
.inventaire-step.final { border-style: dashed; }
.inventaire-groupe { margin-bottom: 16px; padding: 0; overflow: hidden; }
.inventaire-groupe-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}
.inventaire-groupe-title h2 { margin: 0; }
.inventaire-groupe-title p { margin: 4px 0 0; color: #94a3b8; }
.inventaire-groupe-title span {
    color: #bbf7d0;
    border: 1px solid rgba(67, 176, 42, .26);
    background: rgba(67, 176, 42, .10);
    padding: 7px 11px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}
.inventaire-table-wrap { overflow-x: auto; }
.inventaire-table { width: 100%; border-collapse: collapse; min-width: 920px; }
.inventaire-table th,
.inventaire-table td {
    border-bottom: 1px solid rgba(148, 163, 184, .10);
    padding: 12px 14px;
    text-align: left;
    color: #e5e7eb;
}
.inventaire-table th {
    color: #94a3b8;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: rgba(15, 23, 42, .55);
}
.inventaire-table .nom-produit { font-weight: 900; color: #f8fafc; }
.inv-input {
    width: 110px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #334155;
    background: #0b1220;
    color: #f8fafc;
    padding: 0 10px;
    font-weight: 850;
    outline: none;
}
.inv-input:focus {
    border-color: #43b02a;
    box-shadow: 0 0 0 3px rgba(67, 176, 42, .16);
}
.inventaire-bottom-bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .17);
    background: rgba(2, 6, 23, .92);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    box-shadow: 0 -12px 35px rgba(0,0,0,.22);
}
.inventaire-bottom-total { color: #cbd5e1; font-weight: 900; }
.inventaire-bottom-total strong { color: #bbf7d0; font-size: 18px; }
.inventaire-kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-inv { padding: 18px; }
.kpi-inv span { color: #94a3b8; font-weight: 800; }
.kpi-inv strong { display: block; margin-top: 8px; font-size: 24px; color: #f8fafc; }
.inventaire-ca-panel { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.inventaire-ca-panel h2 { margin: 0; }
.inventaire-ca-panel p { margin: 5px 0 0; color: #94a3b8; }
.inventaire-etapes-recap { display: grid; gap: 10px; padding: 0 20px 20px; }
.inventaire-recap-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, .14);
    background: rgba(15, 23, 42, .58);
}
.inventaire-recap-item.ok strong { color: #bbf7d0; }
.inventaire-recap-item.ko strong { color: #fecaca; }
.inventaire-recap-item a { color: #bbf7d0; font-weight: 900; }
@media (max-width: 1100px) { .inventaire-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 800px) {
    .inventaire-bottom-bar, .inventaire-ca-panel { flex-direction: column; align-items: stretch; }
    .inventaire-kpis { grid-template-columns: 1fr; }
}

/* V91 - vérification inventaire : signale les consommations négatives */
.inventaire-table tr.ligne-alerte td {
    background: rgba(255, 80, 80, 0.12);
}
.inventaire-table tr.ligne-alerte td:nth-child(6),
.inventaire-table tr.ligne-alerte td:nth-child(8) {
    color: #ff9b9b;
}
.inventaire-table small {
    color: rgba(255,255,255,0.55);
}
