body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e0f7fa; /* Couleur de fond douce inspirée du logo */
}

header {
    background-color: #a0b2b6; /* Couleur de fond du logo */
    color: white;
    padding: 15px 0;
}

.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.menu li {
    display: inline-block;
    position: relative;
    margin: 0;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: inline-block;
}

.menu a:hover {
    background-color: #6b8a8e; /* Couleur plus foncée pour le hover */
}

.submenu {
    display: none;
    position: absolute;
    background-color: #6b8a8e;
    list-style-type: none;
    padding: 0;
    margin-top: 0; /* Aucun espace entre le menu principal et le sous-menu */
    min-width: 150px;
    text-align: left;
    left: 0; /* Aligner le sous-menu avec le menu principal */
}

.menu li:hover .submenu {
    display: block;
}

.submenu li {
    width: 100%;
}

.submenu a {
    color: white;
    padding: 10px;
    display: block;
    text-align: left;
}

.submenu a:hover {
    background-color: #557075; /* Couleur encore plus foncée pour le hover */
}

main {
    padding: 20px;
}

h1 {
    color: #0079a1; /* Utilisation du bleu principal pour les titres */
}

.modules-non-configures {
    display: flex;
    flex-direction: column; /* Afficher les pièces les unes en dessous des autres */
    align-items: center; /* Centrer les pièces horizontalement */
    gap: 10px;
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f9f9f9;
}

.modules-non-configures h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}


.module-item {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: white;
    width: 150px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.module-item img {
    width: 128px;
    height: 128px;
    cursor: pointer;
}

.module-item a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.module-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centre les modules horizontalement */
    gap: 15px; /* Ajoute un espace entre les modules */
}

.capteurs-non-configures {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f9f9f9;
}

.capteur-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.capteur-item {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: white;
    width: 150px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.capteur-item img {
    width: 128px;
    height: 128px;
    cursor: pointer;
}

.capteur-item a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.login-container {
    width: 300px;
    margin: 100px auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 10px;
}

.login-container h2 {
    margin-bottom: 15px;
    color: #0079a1;
}

.login-container input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container button {
    background-color: #0079a1;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

.login-container button:hover {
    background-color: #005f7e;
}

.error {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

.banner {
    width: 100%;
    height: auto;
    display: block;
}

.banner_mini {
  display: block; /* S'assure que l'image est un élément de bloc */
  margin: 0 auto; /* Marges gauche et droite automatiques */
}

.edit-form {
    width: 80%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.edit-form label, .edit-form input, .edit-form select {
    width: 100%;
    margin-bottom: 10px;
}
.edit-form input[type="submit"] {
    width: auto;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* Nouveaux styles pour la disposition des pièces et des modules */
.pieces-container {
    display: flex;
    flex-direction: column; /* Afficher les pièces les unes en dessous des autres */
    align-items: flex-start; /* Aligner les pièces à gauche */
    gap: 20px;
    margin-top: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f9f9f9;
}

.pieces-container h3 {
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
}

.modules-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Ajoute un espace entre les modules */
}

.module-box {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: white;
    width: 150px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.module-box img {
    width: 128px;
    height: 128px;
    cursor: pointer;
}

.module-box a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* Style pour la table avec l'ID "valeurs" */
#valeurs {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1em;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#valeurs thead {
    background-color: #0079a1;
    color: white;
}

#valeurs th, #valeurs td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

#valeurs tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

#valeurs tbody tr:hover {
    background-color: #f1f1f1;
}

#valeurs .capteur-cell {
    cursor: pointer;
    color: #0079a1;
    text-decoration: underline;
}

#valeurs .capteur-cell:hover {
    color: #005f7e;
}

#sensorChart {
    max-width: 50%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.capteurs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.capteurs-table th, .capteurs-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.capteurs-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    text-transform: uppercase;
}

.capteurs-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.capteurs-table tr:hover {
    background-color: #f1f1f1;
}

.capteurs-table a {
    display: inline-block;
    padding: 5px 10px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out;
}

.capteurs-table a:hover {
    background-color: #0056b3;
}

.historique-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
}

.historique-button:hover {
    background-color: #0056b3;
}
/* Styles pour le tableau de l'historique */
.historique-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.historique-table th, .historique-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #ddd;
}

.historique-table th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.delete-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.delete-btn:hover {
    background-color: #ff1a1a;
}

/* Styles pour la pagination */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.page-link {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    margin: 0 5px;
    border-radius: 5px;
}

.page-link:hover {
    background-color: #45a049;
}

/* Styles pour le menu déroulant */
.results-per-page-form {
    margin-top: 20px;
    text-align: center;
}

.results-per-page-form select {
    padding: 5px;
    font-size: 16px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.server-stats, .services-status, .network-traffic {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.stat-item, .service-item {
    background: #fff;
    border-radius: 5px;
    padding: 15px;
    margin: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 150px;
}

.stat-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.status-up {
    color: green;
}

.status-down {
    color: red;
}

.network-logs {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.network-logs pre {
    background: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.disk-container {
     display: flex;
     flex-wrap: wrap;
     gap: 15px;
        }
		
.process-list {
     display: flex;
     flex-wrap: wrap;
     gap: 15px;
}

.submenu {
    display: none;
    position: absolute;
    background-color: #6b8a8e;
    list-style-type: none;
    padding: 0;
    margin: 0;
    min-width: 150px;
    text-align: left;
    left: 0;
    top: 100%;
}

.menu li:hover > .submenu {
    display: block;
}

.submenu li {
    position: relative;
}

.sub-submenu {
    display: none;
    position: absolute;
    background-color: #557075;
    list-style-type: none;
    padding: 0;
    margin: 0;
    min-width: 150px;
    top: 0;
    left: 100%; /* Fait apparaître le sous-sous-menu à droite */
}

.submenu li:hover > .sub-submenu {
    display: block;
}

.submenu a, .sub-submenu a {
    color: white;
    padding: 10px;
    display: block;
    text-align: left;
    white-space: nowrap; /* Empêche le texte de se couper */
}

.submenu a:hover, .sub-submenu a:hover {
    background-color: #3e5a60;
}

.delete-button {
    background-color: red;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.delete-button:hover {
    background-color: darkred;
}

.save-button {
    background-color: blue;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.save-button:hover {
    background-color: darkblue;
}

.disabled-capteur {
        pointer-events: none;
        color: grey;
		text-decoration: none !important; /* Enlève le soulignement */
    }
	
.module-button.selected, .date-button.selected {
    background-color: #ff9800; /* Orange pour le module et la date sélectionnés */
    font-weight: bold;
}

.video-js { width: 600px; height: 400px; display: none; margin: auto; }
.module-button, .date-button {
	padding: 10px 15px;
	margin: 5px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	color: white;
}
.module-button { background-color: #0079a1; }
.date-button { background-color: #a0b2b6; }

.hour-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	margin: 20px auto;
	width: 80%;
	max-width: 1600px;
}
.hour-block {
	background-color: #f5f5f5;
	padding: 15px;
	border-radius: 10px;
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
	width: 100%;
	text-align: center;
}
.hour-block h3 {
	margin-bottom: 10px;
	color: #0079a1;
}
.video-thumbnails {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
#module-selection, #date-selection {
	text-align: center;
	margin-bottom: 20px;
}
		
/* Styles spécifiques pour la page de gestion des pièces */

.gestion-pieces-main {
    padding: 30px;
    background-color: #fff; /* Fond blanc pour le contenu principal */
    margin: 20px auto; /* Centrer et ajouter des marges */
    max-width: 960px; /* Largeur maximale pour un meilleur affichage */
    border-radius: 8px; /* Bords arrondis pour le container principal */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gestion-pieces-h2 {
    color: #3f51b5; /* Titre en bleu */
    margin-bottom: 20px;
    text-align: center;
}

.gestion-pieces-success-message {
    background-color: #e8f5e9;
    color: #1b5e20;
    padding: 15px;
    border: 1px solid #a5d6a7;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.gestion-pieces-select-maison-form {
    text-align: center;
    margin-bottom: 20px;
}

.gestion-pieces-select-maison-form label {
    font-weight: bold;
    margin-right: 10px;
    color: #555;
}

.gestion-pieces-select-maison-form select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.gestion-pieces-add-form {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

.gestion-pieces-add-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.gestion-pieces-add-form input[type="text"],
.gestion-pieces-add-form select {
    width: calc(100% - 22px); /* Ajustement pour le padding et la bordure */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important pour le width */
}

.gestion-pieces-add-form input[type="submit"] {
    background-color: #4caf50; /* Vert pour l'ajout */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.gestion-pieces-add-form input[type="submit"]:hover {
    background-color: #388e3c; /* Vert plus foncé au survol */
}

.gestion-pieces-list-container {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
}

.gestion-pieces-list-container h3 {
    color: #3f51b5;
    margin-top: 0;
    margin-bottom: 15px;
}

.gestion-pieces-list-container ul {
    list-style-type: none;
    padding: 0;
}

.gestion-pieces-list-container li {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espacement entre le libellé et les actions */
}

.gestion-pieces-list-container li:last-child {
    margin-bottom: 0;
}

.gestion-pieces-list-container li form {
    display: inline;
    margin-left: 10px;
}

.gestion-pieces-list-container li input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 5px;
}

.gestion-pieces-list-container li input[type="submit"] {
    background-color: #007bff; /* Bleu pour la modification */
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gestion-pieces-list-container li input[type="submit"]:hover {
    background-color: #0056b3; /* Bleu plus foncé au survol */
}

.gestion-pieces-delete-btn {
    background-color: #dc3545; /* Rouge pour la suppression */
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gestion-pieces-delete-btn:hover {
    background-color: #c82333; /* Rouge plus foncé au survol */
}

.gestion-pieces-modules-container {
    list-style-type: none;
    padding: 10px 0 0 20px; /* Indentation pour les modules */
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gestion-pieces-module-box {
    background-color: #e3f2fd; /* Bleu très clair pour les modules */
    color: #1e88e5; /* Bleu pour le texte des modules */
    border: 1px solid #bbdefb;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.9em;
}

.gestion-pieces-module-box a {
    text-decoration: none;
    color: inherit; /* Hérite de la couleur du module-box */
}

.gestion-pieces-module-box:hover {
    background-color: #bbdefb;
    color: #1565c0;
}
/* Style pour le bandeau noir en haut (FIXED) */
.bandeau-haut {
    background-color: #000; /* Noir profond */
    color: #fff;
    width: 100%; /* Prend toute la largeur */
    padding: 5px 20px; /* Padding à gauche et à droite */
    text-align: left; /* Texte aligné à gauche */
    font-size: 0.8em;
    z-index: 1000; /* Très important pour être au-dessus des autres éléments */
    position: fixed; /* Le fixe en haut de la fenêtre du navigateur */
    top: 0; /* Le colle au sommet */
}

.mode-actif-bandeau, .erreur-bandeau {
   
}

.erreur-bandeau {
    background-color: #dc3232;
}

/* Ajout d'un padding au body pour éviter que le contenu ne soit caché */
body {
    padding-top: 30px; /* Ajuste cette valeur en fonction de la hauteur de ton bandeau */
}

/* Styles spécifiques pour la page de gestion des utilisateurs */

.gestion-utilisateurs-main {
    padding: 30px;
    background-color: #fff;
    margin: 20px auto;
    max-width: 960px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.gestion-utilisateurs-h2 {
    color: #283593; /* Un bleu un peu différent pour varier */
    margin-bottom: 20px;
    text-align: center;
}

.gestion-utilisateurs-success-message, .gestion-utilisateurs-error-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.gestion-utilisateurs-success-message {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.gestion-utilisateurs-error-message {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ef9a9a;
}

.gestion-utilisateurs-add-form, .gestion-utilisateurs-list-container {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

.gestion-utilisateurs-add-form h3, .gestion-utilisateurs-list-container h3 {
    color: #283593;
    margin-top: 0;
    margin-bottom: 15px;
}

.gestion-utilisateurs-add-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.gestion-utilisateurs-add-form input[type="text"],
.gestion-utilisateurs-add-form input[type="password"],
.gestion-utilisateurs-add-form input[type="email"],
.gestion-utilisateurs-add-form select {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.gestion-utilisateurs-add-form input[type="submit"] {
    background-color: #3f51b5; /* Bleu plus foncé pour l'ajout d'utilisateur */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.gestion-utilisateurs-add-form input[type="submit"]:hover {
    background-color: #283593;
}

.gestion-utilisateurs-list-container ul {
    list-style-type: none;
    padding: 0;
}

.gestion-utilisateurs-list-container li {
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gestion-utilisateurs-list-container li:last-child {
    margin-bottom: 0;
}

.gestion-utilisateurs-list-container li form {
    display: inline;
    margin-left: 10px;
}

.gestion-utilisateurs-list-container li input[type="text"],
.gestion-utilisateurs-list-container li input[type="email"],
.gestion-utilisateurs-list-container li select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 5px;
}

.gestion-utilisateurs-list-container li input[type="submit"] {
    background-color: #007bff; /* Bleu pour la modification */
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gestion-utilisateurs-list-container li input[type="submit"]:hover {
    background-color: #0056b3;
}

.gestion-utilisateurs-delete-btn {
    background-color: #dc3545; /* Rouge pour la suppression */
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gestion-utilisateurs-delete-btn:hover {
    background-color: #c82333;
}


.input-standard {
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Pour que la taille inclue le padding et la bordure */
    width: 100%; /* Pour qu'il prenne toute la largeur du conteneur */
}



/* Améliorations pour la liste des pièces */
.gestion-pieces-list-container li {
    padding: 15px;
    margin-bottom: 12px; /* Un peu plus d'espace entre les éléments */
    border: 1px solid #ddd; /* Bordure plus douce */
    border-radius: 6px; /* Coins plus arrondis */
    background-color: white;
    display: flex;
    /* Retire justify-content, on va gérer l'espacement différemment */
    align-items: center; /* Garde l'alignement vertical centré */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Ombre subtile */
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si besoin */
}

.gestion-pieces-list-container li:last-child {
    margin-bottom: 0;
}

/* Conteneur pour le libellé de la pièce */
.piece-label {
    flex-grow: 1; /* Prend l'espace disponible */
    font-weight: 500; /* Un peu plus gras */
    margin-right: 15px; /* Espace avant les actions */
    /* Empêche le texte très long de pousser les boutons trop loin */
    min-width: 100px;
    word-break: break-word; /* Coupe les mots longs si nécessaire */
}

/* Conteneur pour les actions (Modifier/Supprimer) */
.piece-actions {
    flex-shrink: 0; /* Empêche ce conteneur de rétrécir */
    display: flex; /* Aligner les formulaires/boutons horizontalement */
    align-items: center;
    gap: 8px; /* Espace entre le formulaire edit et delete */
}

/* Style du formulaire d'édition dans la liste */
.piece-actions form {
   margin: 0; /* Retire les marges par défaut du formulaire */
   display: flex; /* Aligner input et bouton */
   align-items: center;
   gap: 5px; /* Espace entre input et bouton */
}

/* Ajustement du champ texte d'édition */
.piece-actions input[type="text"] {
    padding: 6px 8px; /* Taille réduite */
    border: 1px solid #ccc;
    border-radius: 4px;
    /* On peut limiter sa largeur pour éviter qu'il prenne trop de place */
    max-width: 200px;
    /* Ou utiliser une largeur fixe si préféré */
    /* width: 180px; */
    margin:0; /* Retire les marges précédentes */
}

/* Ajustement des boutons d'action */
.piece-actions input[type="submit"],
.gestion-pieces-delete-btn {
    padding: 6px 12px; /* Boutons légèrement plus petits */
    font-size: 0.9em;
    margin:0; /* Retire les marges précédentes */
    white-space: nowrap; /* Empêche le texte du bouton de passer à la ligne */
}

/* Conteneur des modules (pourrait être stylé pour apparaître en dessous) */
.gestion-pieces-modules-container {
    list-style-type: none;
    padding: 0; /* Retirer le padding précédent */
    margin: 0; /* Retirer les marges précédentes */
    margin-top: 10px; /* Espace au-dessus si affiché en dessous */
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%; /* Prend toute la largeur sous le label/actions */
    /* Décommentez la ligne suivante si vous voulez un fond/bordure léger */
    /* border-top: 1px solid #eee; padding-top: 10px; */
}

.gestion-pieces-module-box {
    background-color: #e3f2fd;
    color: #1e88e5;
    border: 1px solid #bbdefb;
    border-radius: 4px;
    padding: 5px 10px; /* Plus petit */
    font-size: 0.85em; /* Plus petit */
}

.gestion-pieces-module-box a {
    text-decoration: none;
    color: inherit;
}

.gestion-pieces-module-box:hover {
    background-color: #bbdefb;
    color: #1565c0;
}

/* Optionnel: Cacher le texte "Aucun module..." si on veut juste rien afficher */
.gestion-pieces-modules-container li:only-child:contains("Aucun module") {
 /* display: none; */ /* Vous pouvez cacher ce message si vous préférez */
  font-style: italic;
  color: #888;
  background: none;
  border: none;
  padding: 5px 0;
}