
/* Style du contenu de la page */
.content {
	margin-left: 150px;
	padding: 20px;
}

h1 {
	margin-top: 0;
}

label[for="description"] {
	display: inline-block;
	margin-bottom: 5px;
	vertical-align: top;
}

textarea#description {
	display: inline-block;
	height: 100px;
	margin-bottom: 10px;
	resize: vertical;
	vertical-align: top;
	width: 450px;
}

.required:invalid {
	border: 1px solid red;
}

.oblige {
	border: 1px solid red;
}

/* CSS tableau des data */ 
.content table.data {
	border-collapse: collapse;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	font-family: Arial, sans-serif;
	font-size: 12px;
	vertical-align: middle;
}

.content table.data th, table.data td {
	padding: 8px;
	border: 1px solid #ddd;
}

.content table.data th {
	background-color: #f2f2f2;
}

.content table.data tr.highlight {
    background-color: #A9F5A9
}

.content table.data tr.highlight2 {
    background-color: #F5DA81
}

.content table.data tr.vert {
    background-color: #A9F5A9
}

.content table.data tr.orange {
    background-color: #F5DA81 
}

.content table.data tbody tr:nth-child(even):not(.highlight):not(.highlight2):not(.vert):not(.orange) {
    background-color: #ddd
}

.content table.data a {
	color: #000;
}



.content table.data2 {
	border-collapse: collapse;
	width: 40%;
	max-width: 100%;
	margin: 0;
	font-family: Arial, sans-serif;
	font-size: 12px;
	vertical-align: middle;
}

.content table.data2 th, table.data2 td {
	padding: 8px;
	border: 1px solid #ddd;
}

.content table.data2 th {
	background-color: #f2f2f2;
}

.content table.data2 tbody tr:nth-child(even):not(.highlight):not(.highlight2):not(.vert):not(.orange) {
    background-color: #ddd
}

.content table.data2 a {
	color: #000;
}

.content table.data2 td {
	text-align: center;
}

/* Définition des tailles de colonnes */
.content table.data td.TypeCol1 {
	width: 8%;
	text-align: center;
}

.content table.data td.TypeCol2 {
	width: 2%;
	text-align: center;
}

.content table.data td.TypeCol3 {
	width: 20%;
	text-align: left;
}

.content table.data td.last {
	width: 5%;
	text-align: center;
}

.content table.data td.center-checkbox {
    text-align: center;
}

/* Style pour les champs de filtrage */
div {
	margin-bottom: 10px;
}

label {
	margin-right: 5px;
}

input[type="text"] {
	padding: 5px;
}



/* Style de base pour le menu */
.menu {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 150px;
	background-color: #f1f1f1;
	padding: 10px;
	box-sizing: border-box;
}

ul.menu {
	list-style: none;
	background-color: #333;
	padding: 0;
	margin: 0;
}

ul.menu li {
	display: inline-block;
	position: relative;
	width: 100%;
}

ul.menu li a {
	display: block;
	padding: 10px 20px;
	color: #fff;
	text-decoration: none;
}

/* Style des sous-menus */
ul.submenu {
	display: none;
	position: absolute;
	top: 0px;
	left: 150px;
	background-color: #444;
	margin-left: 0; /* Réinitialisation de la marge */
    padding-left: 0; /* Réinitialisation du padding */
}

ul.menu li:hover ul.submenu {
	display: block;
}

ul.submenu li {
	width: 150px; /* Largeur de la colonne du sous-menu */
}

ul.submenu li a {
	display: block;
    padding: 10px 10px; /* espace encadrement des sous-menu */
    color: #fff;
    text-decoration: none;
    display: flex; 
    align-items: center; /* Alignement vertical au centre */
}

ul.menu li a i {
	margin-right: 10px;
}

ul.menu li a span {
    display: inline-block; /* Pour prendre en compte la largeur de la première lettre */
    vertical-align: middle; /* Alignement vertical au centre */
    margin-left: 10px; /* Espacement après l'icône */
}

.zone {
    box-sizing: border-box;
    padding: 1px; /* Petite marge intérieure */
    /*border: 1px solid #000; /* Pour visualiser les zones */
    margin: 1px; /* Ajoute un petit espace entre les zones */
}

.joueur {
	height: 30%;
	display: flex;
	width: 100%;
	align-items: flex-start; 
    justify-content: flex-start; 
}

.infosjoueur {
	height: auto;
	width: 58%;
}

.infospack {
	height: auto;
	width: 38%;
}

.parent-group {
	height: 30%;
	display: flex;
	width: 100%;
	align-items: flex-start; 
    justify-content: flex-start; 
}

.parent {
	height: auto;
	width: 49%;
}

.dashboard1 {
	height: 50%;
	display: flex;
	width: 100%;
	align-items: flex-start; 
    justify-content: flex-start;
}

.cotijoueur {
	height: auto;
	width: 49%;	
}

.pack {
	height: auto;
	width: 49%;	
}


/* Styles for article management page */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.product-info {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-info h2 {
    margin-top: 0;
    color: #17a2b8;
    border-bottom: 2px solid #17a2b8;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.product-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #eee;
}

.detail-label {
    font-weight: bold;
    color: #495057;
    margin-bottom: 5px;
    display: block;
}

.detail-value {
    color: #212529;
}

.article-container {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.article-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.article-list {
    margin-top: 20px;
}

.article-item {
    padding: 15px;
    margin: 10px 0;
    background-color: #f8f9fa;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #007bff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.article-item:hover {
    background-color: #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.article-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.article-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-detail i {
    color: #6c757d;
    width: 16px;
    text-align: center;
}

.article-actions {
    display: flex;
    gap: 10px;
}

.size-badge {
    background-color: #17a2b8;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
}

.stock-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
}

.in-stock {
    background-color: #28a745;
    color: white;
}

.low-stock {
    background-color: #ffc107;
    color: #212529;
}

.out-of-stock {
    background-color: #dc3545;
    color: white;
}

.barcode {
    font-family: monospace;
    padding: 5px 10px;
    background-color: #f1f1f1;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.add-form {
    margin: 25px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.add-form h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.copy-form {
    background-color: #e8f4ff;
    border-left: 4px solid #007bff;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.btn {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.page-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #17a2b8;
    padding-bottom: 15px;
}

.page-header h1 {
    color: #17a2b8;
    font-size: 28px;
    margin-bottom: 10px;
}

.page-header h1 i {
    margin-right: 10px;
}

.page-description {
    color: #6c757d;
    font-size: 16px;
    margin-top: 0;
}

.section-header {
    margin: 30px 0 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.section-header h2 {
    color: #007bff;
    font-size: 22px;
    margin-bottom: 8px;
}

.section-header h2 i {
    margin-right: 8px;
}

.section-description {
    color: #6c757d;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 15px;
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

.back-link {
    margin-bottom: 20px;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-group {
        min-width: 100%;
    }

    .product-details {
        grid-template-columns: 1fr;
    }

    .article-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .article-actions {
        margin-top: 10px;
    }

    .modal-content {
        width: 90%;
    }
}

/* Style for data3 tables - clean, elegant design with optimal column widths */
.content table.data3 {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    font-family: 'Arial', sans-serif;
    font-size: 13px;
    table-layout: fixed; /* Fixed layout for better column width control */
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background-color: white;
    border-radius: 4px;
    overflow: hidden; /* Ensure border-radius works with table */
}

.content table.data3 th, 
.content table.data3 td {
    padding: 10px 12px;
    text-align: left;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflowing text */
    position: relative; /* For tooltip positioning */
}

/* Enhanced hover effect for cells */
.content table.data3 td:hover {
    background-color: #f0f0f0;
    cursor: default;
    box-shadow: inset 0 0 0 1px #ddd; /* Add subtle inner border on hover */
}

/* Add a subtle indicator for cells that might have truncated content */
.content table.data3 td::after {
    content: "";
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 5px 5px;
    border-color: transparent transparent rgba(0,0,0,0.1) transparent;
    opacity: 0;
    transition: opacity 0.2s;
}

.content table.data3 td:hover::after {
    opacity: 1;
}

.content table.data3 th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    position: sticky; /* Make headers sticky */
    top: 0;
    z-index: 10;
}

/* Column width optimization */
.content table.data3 th:nth-child(1),
.content table.data3 td:nth-child(1) {
    width: 10%; /* Famille */
}

.content table.data3 th:nth-child(2),
.content table.data3 td:nth-child(2) {
    width: 18%; /* Produit - wider for product names */
}

.content table.data3 th:nth-child(3),
.content table.data3 td:nth-child(3) {
    width: 12%; /* Code Produit */
}

.content table.data3 th:nth-child(4),
.content table.data3 td:nth-child(4) {
    width: 12%; /* Code Coloris */
}

.content table.data3 th:nth-child(5),
.content table.data3 td:nth-child(5) {
    width: 15%; /* Coloris */
}

.content table.data3 th:nth-child(6),
.content table.data3 td:nth-child(6) {
    width: 8%; /* Taille */
    text-align: center;
}

.content table.data3 th:nth-child(7),
.content table.data3 td:nth-child(7),
.content table.data3 th:nth-child(8),
.content table.data3 td:nth-child(8) {
    width: 8%; /* Qté commandée, Qté reçue */
    text-align: center;
}

.content table.data3 th:nth-child(9),
.content table.data3 td:nth-child(9) {
    width: 9%; /* Statut */
    text-align: center;
}

.content table.data3 tbody tr {
    transition: all 0.2s ease;
}

.content table.data3 tbody tr:hover {
    background-color: #f5f5f5;
}

.content table.data3 tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Status indicators - simple color coding */
.content table.data3 td:nth-child(9) {
    font-weight: 500;
}

/* Status colors - to be applied with inline styles or classes */
.content table.data3 .status-pending {
    color: #856404;
    background-color: #fff3cd;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
}

.content table.data3 .status-partial {
    color: #0c5460;
    background-color: #d1ecf1;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
}

.content table.data3 .status-complete {
    color: #155724;
    background-color: #d4edda;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
}

/* Utility classes for text alignment */
.content table.data3 .text-center {
    text-align: center;
}

.content table.data3 .text-right {
    text-align: right;
}

.content table.data3 .text-left {
    text-align: left;
}

/* Responsive behavior for small screens */
@media screen and (max-width: 768px) {
    .content table.data3 {
        display: block;
        overflow-x: auto;
        border: 1px solid #e0e0e0;
    }

    .content table.data3 th,
    .content table.data3 td {
        white-space: nowrap; /* Prevent wrapping on small screens */
    }
}

/* Styles for ajouter_commande_membre.php */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
.product-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.product-card h3 {
    margin-top: 0;
    font-size: 16px;
}
.product-info {
    margin-bottom: 10px;
}
.quantity-input {
    width: 60px;
}
.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
.order-details {
    margin-top: 20px;
}
.order-details h2 {
    margin-bottom: 15px;
}
