
/* 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;
}

/* Status badges pour les packs */
.status-badge {
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: inline-block;
}

.status-0 { background-color: #f8f9fa; color: #495057; border: 1px solid #dee2e6; } /* Encodé */
.status-1 { background-color: #d1ecf1; color: #0c5460; border: 1px solid #b8daff; } /* Commandé */
.status-2 { background-color: #fff3cd; color: #856404; border: 1px solid #ffeaa7; } /* Préparé partiel */
.status-3 { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; } /* Préparé */
.status-4 { background-color: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; } /* Donné partiel */
.status-5 { background-color: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; } /* Donné */
.status-7 { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } /* Annulé */
.status-9 { background-color: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; } /* Clôturé */

/* 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):not(.status-received):not(.status-partial):not(.status-not-received):not(.row-pay):not(.row-solde):not(.row-acompte):not(.row-unpaid) {
    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):not(.row-pay):not(.row-solde):not(.row-acompte):not(.row-unpaid) {
    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;
}


/* CSS tableau des data3 */
.content table.data3 {
    border-collapse: collapse;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    font-size: 12px;
    vertical-align: middle;
}

.content table.data3 th, table.data3 td {
    padding: 8px;
    border: 1px solid #ddd;
}

.content table.data3 th {
    background-color: #f2f2f2;
}

.content table.data3 tr.highlight {
    background-color: #A9F5A9
}

.content table.data3 tr.highlight2 {
    background-color: #F5DA81
}

.content table.data3 tr.vert {
    background-color: #A9F5A9
}

.content table.data3 tr.orange {
    background-color: #F5DA81
}

.content table.data3 a {
    color: #000;
}


.filters {
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
}
.filters select, .filters button {
    padding: 8px;
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.filters button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}
.filters button:hover {
    background-color: #45a049;
}



/* 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;
	z-index: 10000; /* Ensure the entire menu stack stays above page content */
}

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 */
	z-index: 9999; /* Ensure submenus appear above all other content including table headers */
    /* Add transition for smooth appearance/disappearance */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    /* Add padding to create larger hover target */
    padding-right: 10px;
    /* Add negative margin to extend hover area */
    margin-right: -10px;
}

/* Create a pseudo-element bridge between menu and submenu */
ul.menu li > a::after {
    content: '';
    position: absolute;
    top: 0;
    right: -20px; /* Extend beyond the menu item */
    width: 20px; /* Width of the bridge */
    height: 100%;
    background-color: transparent; /* Invisible bridge */
}

/* Ensure all menu items have relative positioning for pseudo-elements */
ul.menu li {
    position: relative;
}

/* Create an extended hover area for all menu items */
ul.menu li::before {
    content: '';
    position: absolute;
    top: 0;
    right: -30px; /* Extend far beyond the menu item */
    width: 30px; /* Width of the extended hover area */
    height: 100%;
    background-color: transparent; /* Invisible hover area */
    z-index: 9998; /* Just below submenu z-index */
}

ul.menu li:hover ul.submenu {
	display: block;
    opacity: 1;
    visibility: visible;
}

/* Keep submenu visible when hovering over submenu itself */
ul.menu li ul.submenu:hover {
    display: block;
    opacity: 1;
    visibility: visible;
}

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;
    box-sizing: border-box;
}

.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;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 11px;
    margin: 2px;
    min-width: 60px;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

/* Improve action column layout */
.content table.data3 td.actions {
    white-space: nowrap;
    min-width: 160px;
}

.content table.data3 td.actions .btn {
    margin: 1px 2px;
    display: inline-block;
    vertical-align: top;
}

.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: 12px; /* Global compact: reduce font size */
    table-layout: fixed; /* Fixed layout for better control over column widths */
    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 */
}

/* Table wrapper for responsive overflow handling */
.content .table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    /*border: 1px solid #e0e0e0;
    border-radius: 4px;*/
}

.content table.data3 th, 
.content table.data3 td {
    padding: 6px 8px; /* Global compact: reduce cell padding */
    text-align: left;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    position: relative; /* For tooltip positioning */
}

/* Default cell styling with ellipsis for non-action columns */
.content table.data3 td {
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow */
    text-overflow: ellipsis; /* Add ellipsis for overflowing text */
}

/* Allow action columns to wrap and show all content */
.content table.data3 td:last-child,
.content table.data3 td a,
.content table.data3 td.center-checkbox { /* Allow wrapping for explicit action/content cells only */
    white-space: normal; /* Allow wrapping */
    overflow: visible; /* Show overflow */
    text-overflow: clip; /* Don't add ellipsis */
    min-width: 40px; /* Ensure minimum width for action columns */
}

/* 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 */
}

.content table.data3 th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    position: sticky; /* Make headers sticky */
    top: 0;
}

/* Column styles for specific types of content */
/* These styles only apply to the specific table in liste_commandes_fournisseur.php 
   where we know the exact column structure */
.content table.data3.supplier-orders th:nth-child(1),
.content table.data3.supplier-orders td:nth-child(1) {
    width: 10%; /* Famille */
}

.content table.data3.supplier-orders th:nth-child(2),
.content table.data3.supplier-orders td:nth-child(2) {
    width: 18%; /* Produit - wider for product names */
}

/* General styles for text alignment */
.content table.data3 td.text-center,
.content table.data3 th.text-center {
    text-align: center;
}

.content table.data3 td.text-right,
.content table.data3 th.text-right {
    text-align: right;
}

/* Action columns - optimized for better space utilization */
.content table.data3 td.actions,
.content table.data3 th.actions {
    width: 60px; /* Reduced width for action columns */
    min-width: 50px; /* Minimum width for icons */
    max-width: 70px; /* Maximum width to prevent expansion */
    white-space: normal;
    text-align: center;
}

/* Specific column widths for liste2.php table structure */
.content table.data3 th:nth-child(1), /* ID */
.content table.data3 td:nth-child(1) {
    width: 50px;
}

.content table.data3 th:nth-child(2), /* Nom */
.content table.data3 td:nth-child(2) {
    width: 120px;
}

.content table.data3 th:nth-child(3), /* Prenom */
.content table.data3 td:nth-child(3) {
    width: 120px;
}

.content table.data3 th:nth-child(4), /* Cat. */
.content table.data3 td:nth-child(4) {
    width: 80px;
}

.content table.data3 th:nth-child(5), /* Type */
.content table.data3 td:nth-child(5) {
    width: 80px;
}

.content table.data3 th:nth-child(6), /* Date Naissance */
.content table.data3 td:nth-child(6) {
    width: 100px;
}

.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):not(.highlight):not(.highlight2):not(.vert):not(.orange):not(.status-received):not(.status-partial):not(.status-not-received):not(.row-pay):not(.row-solde):not(.row-acompte):not(.row-unpaid) {
    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;
}

/* Enhanced responsive behavior for all screen sizes */
@media screen and (max-width: 1200px) {
    .content table.data3 {
        font-size: 12px; /* Slightly smaller font on medium screens */
    }
    
    .content table.data3 th,
    .content table.data3 td {
        padding: 8px 6px; /* Reduced padding for more space */
    }
}

@media screen and (max-width: 768px) {
    .content table.data3 {
        font-size: 11px; /* Even smaller font on small screens */
        margin: 10px 0;
    }

    .content table.data3 th,
    .content table.data3 td {
        padding: 6px 4px; /* Further reduced padding */
        white-space: nowrap; /* Prevent wrapping on small screens */
    }
    
    /* Adjust action column widths for mobile */
    .content table.data3 td.actions,
    .content table.data3 th.actions {
        width: 45px;
        min-width: 40px;
        max-width: 50px;
    }
}

/* 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;
}

/* ---------------- Parents table (modifier_joueur.php) specific styling ---------------- */
/* Keep styles scoped so other data3 tables remain unaffected */
#parentsTable {
    table-layout: fixed; /* predictable column sizing */
}

#parentsTable th,
#parentsTable td {
    vertical-align: middle;
}

/* Column widths */
#parentsTable th:nth-child(1), /* Type */
#parentsTable td:nth-child(1) { width: 140px; }

#parentsTable th:nth-child(2), /* Résidence */
#parentsTable td:nth-child(2) { width: 56px; text-align: center; padding: 4px 6px; }

#parentsTable th:nth-child(3), /* Nom */
#parentsTable td:nth-child(3) { width: 160px; }

#parentsTable th:nth-child(4), /* Prénom */
#parentsTable td:nth-child(4) { width: 160px; }

#parentsTable th:nth-child(5), /* GSM */
#parentsTable td:nth-child(5) { width: 130px; }

#parentsTable th:nth-child(6), /* Email */
#parentsTable td:nth-child(6) { width: 220px; }

#parentsTable th:nth-child(7), /* Fair-Play */
#parentsTable td:nth-child(7),
#parentsTable th:nth-child(8), /* Bénévole */
#parentsTable td:nth-child(8),
#parentsTable th:nth-child(9), /* Délégué */
#parentsTable td:nth-child(9) {
    width: 60px;
    text-align: center;
    padding: 4px 6px;
}

#parentsTable th:nth-child(10), /* Actions */
#parentsTable td:nth-child(10) { width: 76px; text-align: center; }

/* Compact controls inside cells */
#parentsTable select,
#parentsTable input[type="text"],
#parentsTable input[type="email"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    font-size: 12px;
}

#parentsTable input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Action buttons: small and centered */
#parentsTable td:last-child .btn {
    padding: 6px 10px;
    font-size: 12px;
}
#parentsTable td:last-child i { pointer-events: none; }

/* Readability: keep long values tidy */
#parentsTable td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#parentsTable td:nth-child(10) { /* actions should not ellipsis */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

/* Hover feedback */
#parentsTable tbody tr:hover {
    background-color: #f7f7f7;
}

/* Responsive: allow horizontal scroll within the wrapper on small screens */
@media (max-width: 768px) {
    #parentsTable { font-size: 11px; }
    #parentsTable th, #parentsTable td { padding: 6px; }
    /* Slightly reduce some columns */
    #parentsTable td:nth-child(1) { width: 120px; }
    #parentsTable td:nth-child(6) { width: 180px; }
}
/* ---------------- End parents table specific styling ---------------- */
