/* protocoles.css */

/* === Variables globales === */
:root {
    --wp-admin-theme-color: #1e5aa8;
    --wp-admin-theme-color-darker-10: #124A8F;
    --wp-admin-theme-color-darker-20: #0F3D7A;
    --wp-admin-theme-color-darker-30: #0A2E63;

    --wp-admin-bg: #ffffff;
    --wp-admin-bg-alt: #f7f7f7;

    --wp-admin-text-color: #ffffff;
    --wp-admin-text-color-secondary: #555d66;

    --wp-admin-link-color: #4a89dc;
    --wp-admin-link-color-hover: #1e6a9f;

    --wp-admin-menu-bg: #0F3647;
    --wp-admin-submenu-bg: #f7f7f7;

    --wp-admin-border-color: #ccd0d4;
    --wp-admin-border-color-light: #e5e5e5;

    --wp-admin-focus-outline: #7DC2A5;
    --wp-admin-icon-color: #82878c;
    --wp-admin-highlight: #f7f7f7;
    --wp-admin-shadow: rgba(0,0,0,0.2);
}

/* === Menu admin === */

#adminmenu::before {
  content: "";
  display: block;
  height: 80px;
  background: url('https://nd45-demo.qualimelia.fr/wp-content/plugins/protocoles/assets/logo.jpg') no-repeat center;
  background-size: 120px auto;
  margin-bottom: 15px;
}

/* Couleur de fond de la barre de menu latérale */

#adminmenu, #adminmenu .wp-submenu, #adminmenuback, #adminmenuwrap {
    background-color: var(--wp-admin-menu-bg) !important;
}

#adminmenu .wp-has-current-submenu .wp-submenu, 
#adminmenu .wp-has-current-submenu .wp-submenu-wrap,
#adminmenu .wp-menu-open, 
#adminmenu .wp-menu-open .wp-submenu {
    background-color: var(--wp-admin-menu-bg) !important;
}

#adminmenu a {
    color: var(--wp-admin-text-color) !important;
}

#adminmenu a:hover, 
#adminmenu .wp-has-current-submenu a {
    color: #ffffff !important;
}

/* === Top bar === */
#wpadminbar {
    background-color: var(--wp-admin-menu-bg) !important;
}

#wpadminbar .ab-top-menu > li > a:hover,
#wpadminbar .ab-top-menu > li.hover > a {
    background-color: var(--wp-admin-theme-color) !important;
}

#wpwrap, #wpcontent, #wpbody-content {
    background-color: #B6D8F2 !important; /* Remplacez par votre couleur */
}

/* === Boutons === */
.button, .button-primary, .wp-core-ui .button-primary {
    background-color: var(--wp-admin-theme-color) !important;
    border-color: var(--wp-admin-theme-color-darker-10) !important;
    color: var(--wp-admin-text-color) !important;
}

.button:hover, .button-primary:hover, .wp-core-ui .button-primary:hover {
    background-color: var(--wp-admin-theme-color) !important;
    border-color: var(--wp-admin-theme-color) !important;
}

/* === Liens hover === */
a, a:focus, a:hover {
    color: var(--wp-admin-link-color) !important;
}

a:hover, a:focus {
    color: var(--wp-admin-link-color-hover) !important;
}

/* === Notifications === */
.notice-success {
    border-left-color: var(--wp-admin-theme-color) !important;
    background-color: #e6f4ef !important;
}

.notice-error {
    border-left-color: #dc3232 !important;
    background-color: #fdd !important;
}

.notice-warning {
    border-left-color: #ffb900 !important;
    background-color: #fff8e5 !important;
}
.wpcf7-form-control-wrap[data-name="identifiant"] 
.wpcf7-not-valid-tip {
    display: none !important;
}

/* Couleur de fond de l'élément de menu au survol */
#adminmenu li.menu-top:hover,
#adminmenu li.wp-has-current-submenu a.wp-has-current-submenu,
#adminmenu li.wp-has-current-submenu:hover {
    background-color: var(--wp-admin-theme-color) !important; /* Fond gris clair au survol */
	border-radius: 0 10px 10px 0;
}

/* Couleur de fond de l'élément de menu actif */
#adminmenu li.current a.menu-top,
#adminmenu li.wp-has-current-submenu {
    background-color: var(--wp-admin-theme-color) !important; /* Fond gris pour l'élément actif */
	border-radius: 0 10px 10px 0;
}

/* Couleur des liens dans le contenu principal */
.wrap a {
    color: #4E9F7F; /* Couleur des liens dans le contenu principal */
	font-weight: bold;
}

/* Couleur des liens dans le contenu principal au survol */
.wrap a:hover {
    color: #4E9F7F; /* Couleur des liens dans le contenu principal au survol */
}

/* Couleur par défaut des Dashicons */
.wp-menu-image.dashicons-before:before {
    color: var(--wp-admin-text-color) !important; /* Bleu WordPress par défaut */
}

/* Couleur des Dashicons au survol */
#adminmenu li.menu-top:hover .wp-menu-image.dashicons-before:before,
#adminmenu li.wp-has-current-submenu .wp-menu-image.dashicons-before:before {
    color: var(--wp-admin-text-color) !important; /* Rouge au survol */
}

/* Couleur des Dashicons pour le menu actif */
#adminmenu li.current .wp-menu-image.dashicons-before:before,
#adminmenu li.wp-has-current-submenu .wp-menu-image.dashicons-before:before {
    color: var(--wp-admin-text-color) !important; /* Vert pour le menu actif */
}


/* Couleur du texte et de l'icône au survol */
.wp-menu-name:hover,
.wp-menu-image:hover {
    color: var(--wp-admin-text-color) !important; /* Rouge au survol */
}

/* écart entre les éléments du wrap */
.wrap > * {
    margin-top: 15px !important;
    margin-bottom: 15px !important; 
}


/* ---------------- Desktop : masquer la top bar complètement ---------------- */
@media (min-width: 783px) {
    #wpadminbar, #screen-meta-links {
        display: none !important;
    }
    html {
        padding-top: 0 !important; /* retirer le padding ajouté pour la barre */
    }
}

/* ---------------- Mobile : garder menu burger + top-secondary ---------------- */
@media (max-width: 782px) {
/* Masquer les items principaux sauf le menu burger et top-secondary */
#wpadminbar li[id^="wp-admin-bar-"]:not(#wp-admin-bar-menu-toggle):not(#wp-admin-bar-top-secondary) {
    display: none !important;
}
#screen-meta-links {
    display: none !important;
}
/* Assurer que le menu burger et top-secondary restent visibles */
#wp-admin-bar-menu-toggle,
#wp-admin-bar-top-secondary {
    display: flex !important;
}

/* Top bar WordPress sticky partout */
#wpadminbar {
    position: fixed !important; /* force le sticky */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}
}
/* Style des tableaux */
table {
    padding-top: 10px !important;
	padding-bottom: 10px !important;
	border-radius: 10px;	
}
.widefat th {
color: #50575e !important;
font-size: 15px;
font-weight: 700;
padding-top: 1em;
padding-bottom: 1em;
}
.widefat td {
vertical-align: middle;
}
/* Ajustement largeur Dashboard */
.dashboard-table th:nth-child(1),
.dashboard-table td:nth-child(1) { width: 55%; }
.dashboard-table th:nth-child(2),
.dashboard-table td:nth-child(2) { width: 25%; }
.dashboard-table th:nth-child(3),
.dashboard-table td:nth-child(3) { width: 20%; }

/* Ajustement bouton export CSV */
.wp-list-table tr > td.history-table:first-child {
    width: 80%;
}
.wp-list-table tr > td.history-table:last-child {
    width: 20%;
}
/* Masquer le 2ème td sur mobile */
@media (max-width: 782px) {
    .wp-list-table tr > td.history-table:last-child {
        display: none !important;
    }
}

/* Masquer les champs du profil pour tous sauf les administrateurs */
#your-profile {
    /* Masquer les titres H2 */
    h2 {
        display: none !important;
    }

    /* Masquer les sections non désirées */
    .user-admin-color-wrap,
    .user-comment-shortcuts-wrap,
    .show-admin-bar,
    .user-language-wrap,
    .user-user-login-wrap,
    .user-first-name-wrap,
    .user-last-name-wrap,
    .user-nickname-wrap,
    .user-display-name-wrap,
    .user-email-wrap,
    .user-url-wrap,
    .user-description-wrap,
    .user-profile-picture {
        display: none !important;
    }
}




/* Cartouche global (icône + titre) */
.dashboard-header {
    display: inline-flex; /* Alignement horizontal */
    align-items: center; /* Centre verticalement l'icône et le texte */
    background-color: #ffffff; /* Fond blanc */
    border-radius: 50px; /* Coins arrondis */
    padding: 12px 24px 12px 12px; /* Espacement interne (haut/droite/bas/gauche) */
    margin: 30px 0; /* Marge verticale uniquement */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre légère */
    border: 1px solid #e0e0e0; /* Bordure subtile */
    max-width: fit-content; /* Largeur adaptée au contenu */
}

/* Conteneur du bouton "Précédent" */
.previous-button-container {
    width: fit-content; /* Largeur adaptée au contenu */
    margin-left: auto; /* Centre horizontalement */
    margin-right: auto; /* Centre horizontalement */
    text-align: center;
    display: block;
    margin-bottom: 5px;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 12px;
    margin: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

/* Conteneur de l'icône (fond rond) */
.dashicon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #6EA2F8; /* Fond vert */
    border-radius: 50%; /* Cercle parfait */
    width: 48px;
    height: 48px;
    margin-right: 12px; /* Espacement entre l'icône et le titre */
    flex-shrink: 0; /* Empêche le cercle de rétrécir */
}

/* Icône */
.dashboard-header .dashicons {
    font-size: 24px;
    color: white;
    line-height: 1;
}

/* Titre (ajusté pour un alignement parfait) */
.dashboard-header h1 {
    margin: 0; /* Supprime les marges par défaut */
    font-size: 28px;
    color: #333333;
    line-height: 1.2; /* Ajustement de la hauteur de ligne */
}


/* Style pour le titre */
.dashboard-header h1 {
    margin: 0; /* Supprime les marges */
    font-size: 28px; /* Taille du titre */
    color: #333333; /* Couleur du texte */
}



.head-container {
    display: flex;
    flex-direction: column; /* Pour centrer verticalement plusieurs éléments */
    justify-content: center; /* Centrage horizontal */
    align-items: center; /* Centrage vertical */
    text-align: center; /* Centrage du texte (optionnel) */
	margin: 30px 0;
}



/* Modal */
            .modal {
				display: none;
                position: fixed;
                z-index: 9999;
                left: 0;
                top: 0;
                width: 100%;
                height: 100%;
                overflow: auto;
                background-color: rgba(0,0,0,0.4);
            }
            .modal-content {
                background-color: #fefefe;
                margin: 15% auto;
                padding: 20px;
				border-radius: 10px;
                border: 1px solid #888;
                width: 80%;
                max-width: 800px;
            }
            .modal-content form {
                padding: 1px;
                width: 100%;
				display: flex;
        		flex-direction: column;
				gap: 12px;
            }
            .close {
                color: #aaa;
                float: right;
                font-size: 28px;
                font-weight: bold;
                cursor: pointer;
            }
            .close:hover {
                color: black;
            }
/* Dashboard */
    .status {
        padding: 5px 10px;
        border-radius: 3px;
        font-weight: bold;
    }
    .status.OK {
        background-color: #4E9F7F;
        color: white;
    }
    .status.KO {
        background-color: #FF6F61;
        color: white;
    }
    .protocol-dashicon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;       /* largeur carrée */
    height: 40px;      /* hauteur carrée */
    background-color: var(--wp-admin-link-color); /* couleur native backoffice */
    border-radius: 10px; /* arrondi du container */
    margin-right: 10px;  /* espace entre le dashicon et le texte */
    transition: background-color 0.2s ease;
	border: 1px solid var(--wp-admin-link-color);
}

.protocol-dashicon-container .dashicons {
    color: white;       /* couleur de l’icône */
    font-size: 18px;
}
.protocol-container {
    background-color: #C7DDC5;       /* couleur de l’icône */
    font-size: 16px;
	padding: 0.5em;
	border-radius: 10px;
}

.featured-label {
  background: #FFFAF1;
  color: var(--wp-admin-theme-color-darker-30);
  text-transform: uppercase;
  font-size: 12px !important;
  font-weight: bold;
  border-radius: 5px;
  border: 1px solid var(--wp-admin-theme-color-darker-30);
  padding: 5px !important;
  display: inline-block !important; /* ajoute !important */
  width: auto !important;           /* évite le 100% */
  max-width: fit-content;           /* adapte à la taille du texte */
}

/* Habilitations */
    .habilitation-form {
        margin-bottom: 20px;
        padding: 15px;
        background-color: #f5f5f5;
        border-radius: 5px;
    }

    .habilitation-form label {
        margin-right: 10px;
    }

    .habilitation-form select {
        margin-right: 15px;
        padding: 5px;
    }
    
/* Historique */
    .filter-section {
	display: flex; 
		align-items: center; 
		gap: 10px; 
		flex-wrap: wrap;
		}
.item-filter-section {
	display: flex; 
	align-items: center;
	}
.item-export {
margin-left: auto;
		}
/* Gestion des protocoles */
.protocole-form {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.protocole-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.protocole-form select,
.protocole-form textarea {
    width: 100%;
    max-width: 500px;
    margin-bottom: 15px;
    padding: 5px;
}

.protocole-form input[type="submit"] {
    margin-top: 10px;
}

.error-message {
    background-color: #ffebee;
    border: 1px solid #ef9a9a;
    color: #c62828;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.explication_defaut {
    display: none;
}
/* Styles communs aux deux boutons */
.btn-prm, .btn-snd, .btn-spr {
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.2s ease;
}

/* Bouton principal */
.btn-prm {
    background-color: var(--wp-admin-theme-color);
    color: var(--wp-admin-text-color);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
}
/* Bouton secondaire */
.btn-snd {
    border: 2px solid var(--wp-admin-theme-color);
    color: var(--wp-admin-theme-color);
    background-color: transparent;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 600;
}
.btn-snd:active {
   color: black;
   background-color: black;
}
/* Bouton supprimer */
.btn-spr {
    border: 2px solid #FF6F61;
	color: #FF6F61 !important;
    background-color: transparent;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 600;
}
.btn-spr:hover {
   color: #e57a61 !important;
}
/* Mobile-first : barre en bas à droite */
.sticky-bottom-bar {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    max-width: calc(100vw - 2rem);
    z-index: 9999;
    pointer-events: none;
}

/* Contenu de la barre */
.bar-content {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    padding: 0.5rem 1rem; /* Padding latéral augmenté */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: center; /* Centré sur mobile */
    width: fit-content;
    max-width: calc(100vw - 4rem); /* Évite le débordement */
}

/* Style des boutons */
.bar-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    font-size: 0.75rem;
    border-radius: 2rem;
    background-color: var(--wp-admin-theme-color);
    color: white;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Style des icônes */
.bar-item .dashicons {
    font-size: 1.25rem;
    margin-right: 0.25rem;
}

/* Style des boutons de formulaire */
.bar-content button[type="submit"],
.bar-content button[type="button"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    font-size: 0.75rem;
    border-radius: 2rem;
    background-color: var(--wp-admin-theme-color);
    color: white;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 0;
}

/* Desktop : alignement à droite */
@media (min-width: 768px) {
    .bar-content {
        justify-content: flex-end; /* Aligné à droite */
    }
    .bar-item {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }
    .bar-item .dashicons {
        margin-right: 0.5rem;
    }
}

/* Intègre les formulaires dans le layout flex */
.bar-content form {
    display: contents;
}

/* Masquer sur mobile et tablette */
@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
}

/* Style commun aux trois boutons */
.btn-lft-stk,
.btn-mdl-stk,
.btn-rgt-stk {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    background-color: var(--wp-admin-theme-color);
    color: white;
    padding: 20px 25px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-size: 18px;
    transition: all 0.3s;
    text-decoration: none;
}

/* Positionnement spécifique pour le bouton gauche */
.btn-lft-stk {
    left: 20px;
}

/* Positionnement spécifique pour le bouton centré */
.btn-mdl-stk {
    left: 50%;
    transform: translateX(-50%);
}

/* Positionnement spécifique pour le bouton droit */
.btn-rgt-stk {
    right: 20px;
}

/* Style au survol */
.btn-lft-stk:hover,
.btn-mdl-stk:hover,
.btn-rgt-stk:hover {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.02);
}

/* Style pour l'icône */
.btn-rgt-stk .dashicons {
    margin-right: 8px;
    font-size: 20px;
}

.welcome-panel {
    display: none !important;
}

.no-gap {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Appliquer un style global aux wrappers */
.wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 1rem; /* espace entre les champs */
}

/* Inputs textuels + email + tel + url + password */
.wpcf7-form-control[type="text"],
.wpcf7-form-control[type="email"],
.wpcf7-form-control[type="tel"],
.wpcf7-form-control[type="url"],
.wpcf7-form-control[type="password"],
textarea.wpcf7-form-control,
select.wpcf7-form-control {
  width: 90%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

/* Focus avec effet visuel */
.wpcf7-form-control[type="text"]:focus,
.wpcf7-form-control[type="email"]:focus,
.wpcf7-form-control[type="tel"]:focus,
.wpcf7-form-control[type="url"]:focus,
.wpcf7-form-control[type="password"]:focus,
textarea.wpcf7-form-control:focus,
select.wpcf7-form-control:focus {
  border-color: #eb7f1d;
  box-shadow: 0 0 0 3px rgba(0,115,230,0.2);
  outline: none;
}

/* Placeholder plus doux */
.wpcf7-form-control::placeholder {
  color: #888;
  font-style: italic;
}

/* Style global pour tous les <mark> */
.offer-mark {
  background-color: #f4bb85; /* fond orange */
  color: #000000;               /* texte blanc */
  padding: 0.2em 0.4em;      /* léger padding autour du texte */
  border-radius: 4px;        /* coins légèrement arrondis */
  font-weight: 600;           /* texte un peu plus gras */
}
.wpcf7-buttons-wrapper {
  display: flex;               /* active flexbox */
  justify-content: flex-end;   /* aligne à droite */
  align-items: center;         /* centre verticalement */
  gap: 20px;                   /* espace entre boutons */
  flex-wrap: nowrap;           /* empêche l’empilement */
}

/* S'assure que les boutons restent flex items */
.wpcf7-buttons-wrapper .cf7-btn-previous,
.wpcf7-buttons-wrapper .cf7-btn-submit {
  display: inline-flex;       /* nécessaire pour que le gap fonctionne correctement */
}

.dashboard-icon {
  font-size: 80px;
  width: 80px;
  height: 80px;
}

/* Relations */
    .relation-form {
        margin-bottom: 20px;
        padding: 15px;
        background-color: #f5f5f5;
        border-radius: 5px;
    }

    .relation-form label {
        margin-right: 10px;
    }

    .relation-form select {
        margin-right: margin-right: 10px;
    }
/* Champs select */
/* Pour tous les selects dans l'admin WordPress */
select {
    max-width: 300px;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

/* Style des options dans la liste déroulante */
select option {
    white-space: normal;
    line-height: 1.4;
}
/* Styles pour le scanner et les messages */
#scanner-ui {
    margin-bottom: 20px;
}

#start-scanner {
    margin: 10px 0;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#scanner-container {
    display: none;
    position: relative;
    width: 100%;
    height: 300px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

#scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 30%;
    border: 2px solid rgba(0, 255, 0, 0.7);
    background: transparent;
    box-sizing: border-box;
}

#torch-button {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    cursor: pointer;
    z-index: 10;
}

#scan-result {
    color: green;
    font-weight: bold;
    margin: 10px 0;
}

#scan-error {
    color: red;
    margin: 10px 0;
    display: none;
}

.protocoles-product-image {
    margin: 15px 0;
    text-align: center;
}

.protocoles-product-image img {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.protocoles-info-message {
    color: #2271b1;
    margin: 10px 0;
    font-style: italic;
    font-size: 0.9em;
}

/* Styles pour les champs CF7 */
.wpcf7-form-control-wrap {
    margin-bottom: 15px;
}

.wpcf7-select, .wpcf7-text, .wpcf7-number, .wpcf7-date {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Style pour les allergènes (en rouge) */
.wpcf7-form-control-wrap.allergenes {
    border-left: 3px solid #d63638;
    padding-left: 10px;
}
/* PAGE PROFIL */
/* Identifiants */
.creche-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 20px;
}
.creche-field {
    display: flex;
    flex-direction: column;
}
.creche-field label {
    font-weight: 600;
    margin-bottom: 3px;
}
/* Responsive mobile */
@media (max-width: 600px) {
    .creche-row {
        flex-direction: column;
        align-items: stretch;
    }
}
/* PAGE INVENTAIRE
/* Conteneur pour le défilement horizontal sur mobile */
.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Défilement fluide sur iOS */
    margin-bottom: 20px;
}

/* Style du tableau (conserve les styles natifs de wp-list-table) */
.wp-list-table.responsive-table {
    width: 100%;
    min-width: 600px; /* Largeur minimale pour éviter que le tableau ne rétrécisse trop */
    table-layout: auto; /* Les colonnes s'adaptent à leur contenu */
}

/* Largeur des colonnes spécifiques */
.wp-list-table.responsive-table td:nth-of-type(1) { width: auto; min-width: 100px; } /* Produit */
.wp-list-table.responsive-table td:nth-of-type(2) { width: 30%; } /* Conditionnement */
.wp-list-table.responsive-table td:nth-of-type(3) { width: 10%; white-space: nowrap; } /* Quantité */
.wp-list-table.responsive-table td:nth-of-type(4) { width: 10%; white-space: nowrap; } /* Seuil */
.wp-list-table.responsive-table td:nth-of-type(5) { width: 5%; white-space: nowrap; } /* Actions */

/* Style des inputs dans le tableau */
.wp-list-table.responsive-table td input {
    width: 100%;
    box-sizing: border-box; /* Inclut le padding et la bordure dans la largeur */
}

/* Style spécifique pour l'input de conditionnement (2ème colonne) */
.wp-list-table.responsive-table td:nth-of-type(2) input {
    width: 100%; /* Prend toute la largeur de la cellule */
    max-width: none; /* Pas de limite maximale */
    box-sizing: border-box; /* Inclut le padding et la bordure dans la largeur */
}

/* Style du bouton dans le tableau */
.wp-list-table.responsive-table td button {
    white-space: nowrap;
}

/* Ajouter des labels pour les colonnes (utilisés en mobile) */
.wp-list-table.responsive-table th {
    background-color: #f9f9f9;
}