/* Clean Color Palette */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    --success-color: #059669;
    --success-hover: #047857;
    --danger-color: #dc2626;
    --danger-hover: #b91c1c;
    --warning-color: #d97706;
    --warning-hover: #b45309;
    --info-color: #0891b2;
    --info-hover: #0e7490;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition: all 0.2s ease-in-out;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--light-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* wrapper legenda + search */
.legend-search-wrapper {
    width: 100%;
}

.legend-search-bar {
    margin: 0;
}

.color-legend {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.custom-search-container {
    margin: 0;
}
.legend-buttons-row {
    margin-top: 4px;  /* pochissimo spazio tra legenda e cerchi */
}
.legend-toolbar {
    position: sticky;
    top: 100px; /* regola se la navbar è più o meno alta */
    z-index: 50;
    background: var(--body-bg, #f8fafc);
    padding: 4px 12px 6px;   /* poco spazio sopra/sotto */
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
}

/* cerchietti legenda */
.legend-color-circle {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.fixed-button-left,
.fixed-button-right {
    position: static;    /* niente sticky qui */
}

.fixed-button-left {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.fixed-button-right {
    display: flex;
    justify-content: flex-end;
}

.legend-item {
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    background: #f9fafb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
}

.legend-item.active {
    border-color: #111827;
    background: #e5e7eb;
}

.container {
    max-width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}
.testo-rosso {
      color: red;
    }



/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 0;
}

header h1 {
    color: white;
    font-weight: 600;
    font-size: 1.875rem;
    margin: 0;
    padding: 1rem 0;
}

/* Toolbar */
.btn-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-group.btn-group-sm {
    display: flex;
    flex-wrap: nowrap; /* Impedisce il wrapping dei pulsanti */
    gap: 2px; /* Opzionale: aggiunge un piccolo spazio tra i pulsanti */
}

/* Search Container */
.custom-search-container {
    position: relative;
    margin: 1rem 0;
    display: flex;
    justify-content: flex-end;
    z-index: 100;
}

.custom-search-container .d-flex {
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 300px;
}

.custom-search-container .d-flex:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.custom-search-input {
    border: none;
    outline: none;
    padding: 0.25rem 0;
    width: 100%;
    font-size: 0.875rem;
    color: var(--gray-700);
    background: transparent;
}

.custom-search-input::placeholder {
    color: var(--gray-400);
}

/* DataTables filter hide */
.dataTables_filter {
    display: none !important;
}

/* Button Styles */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.625rem 1rem;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: white;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: var(--success-hover);
    border-color: var(--success-hover);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: white;
}

.btn-info {
    background-color: var(--info-color);
    border-color: var(--info-color);
    color: white;
}

.btn-info:hover {
    background-color: var(--info-hover);
    border-color: var(--info-hover);
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: var(--danger-hover);
    border-color: var(--danger-hover);
    color: white;
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--gray-300);
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--gray-300);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-outline-danger {
    color: var(--danger-color);
    border-color: var(--gray-300);
    background-color: transparent;
}

.btn-outline-danger:hover {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    color: white;
}

/* Table Container - FIXED HORIZONTAL SCROLL */
.table-responsive {
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 1rem;
    position: relative;
    max-width: 100%;
}

/* Table Styles */
.table {
    margin-bottom: 0;
    font-size: 0.875rem;
    white-space: nowrap;
    /*min-width: 1200px;  Minimum width to ensure all columns are visible */
    min-width: 900px;
}

.table thead th {
    background-color: var(--gray-100);
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
    font-weight: 600;
    padding: 1rem 0.75rem;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

.table tbody td {
    padding: 0.875rem 0.75rem;
    vertical-align: middle;
    border-top: none;
}

/* Priority Row Colors */
.table tr.bg-warning-subtle,
.table tr.bg-warning-subtle td {
    background-color: #fef3c7 !important;
    border-left: 3px solid var(--warning-color);
}

.table tr.bg-success-subtle,
.table tr.bg-success-subtle td {
    background-color: #d1fae5 !important;
    border-left: 3px solid var(--success-color);
}

.table tr.bg-info-subtle,
.table tr.bg-info-subtle td {
    background-color: #fee2e2 !important;
    border-left: 3px solid var(--danger-color);
}



.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--white);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-circle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.color-circle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.yellow {
    background-color: #fbbf24;
}

.yellow-fluo {
    background-color: #ccff00;
}

.green {
    background-color: #10b981;
}

.red {
    background-color: #ef4444;
}

.neutral {
    background-color: var(--gray-400);
}

/* Modal Improvements */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-title {
    font-weight: 600;
    color: var(--gray-800);
}

.modal-body {
    padding: 1.5rem;
}

.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    padding: 0.625rem 0.875rem;
    transition: var(--transition);
    font-size: 0.875rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* DataTables Overrides */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    margin: 1rem;
}

.dataTables_wrapper .dataTables_length select {
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.375rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    color: var(--gray-700);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Loading Spinner */
#loadingSpinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.25em;
    color: var(--primary-color);
}

/* Attachment Preview */
.attachment-preview {
    display: inline-block;
    text-align: center;
    max-width: 120px;
    margin: 0.5rem;
    padding: 1rem;
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.attachment-preview:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-300);
}

.attachment-preview img {
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 2px);
}

.attachment-preview p {
    word-break: break-all;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Horizontal Scroll Indicator */
.table-scroll-indicator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1));
    width: 30px;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    opacity: 0.7;
}

/* Tablet Styles */
@media (max-width: 992px) {
    .container {
        padding: 0 10px;
    }
    
    .btn-toolbar {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .custom-search-container .d-flex {
        min-width: 250px;
    }
    
    .fixed-button-left {
        left: 10px;
        top: 40%;
    }
    
    .fixed-button-right {
        right: 10px;
        top: 40%;
    }
    
    .table {
        font-size: 0.813rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 5px;
    }
    
    header h1 {
        font-size: 1.5rem;
        padding: 0.75rem 0;
    }
    
    .btn-toolbar {
        margin: 1rem 0;
        padding: 0.75rem;
        flex-direction: column;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 0.25rem;
        width: 100%;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    /* Search Container Mobile */
    .custom-search-container {
        position: sticky;
        top: 0;
        z-index: 998;
        background-color: var(--light-bg);
        padding: 0.75rem 0;
        margin: 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .custom-search-container .d-flex {
        min-width: 100%;
        margin: 0;
    }
    
    /* Fixed Buttons Mobile */
    .fixed-button-left {
        position: fixed;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 8px;
        top: auto;
    }
    
    .fixed-button-right {
        position: fixed;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        top: auto;
    }
    
    .color-circle {
        width: 36px;
        height: 36px;
    }
    
    .table {
        font-size: 0.75rem;
        min-width: 1000px; /* Ensure minimum width on mobile */
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.5rem 0.25rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.375rem;
        font-size: 0.7rem;
    }
    
    /* Add scroll hint for mobile */
    .table-responsive::after {
        content: "← Scorri per vedere tutte le colonne →";
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(37, 99, 235, 0.1);
        color: var(--primary-color);
        padding: 0.25rem 0.5rem;
        border-radius: var(--border-radius);
        font-size: 0.7rem;
        font-weight: 500;
        pointer-events: none;
        z-index: 5;
    }
}

/* Small Mobile Styles */
@media (max-width: 576px) {
    .btn-toolbar {
        padding: 0.5rem;
    }
    
    .custom-search-container .d-flex {
        padding: 0.375rem 0.5rem;
    }
    
    .custom-search-input {
        font-size: 0.813rem;
    }
    
    .table {
        font-size: 0.7rem;
        min-width: 900px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.375rem 0.25rem;
    }
    
    .color-circle {
        width: 32px;
        height: 32px;
    }
    
    .fixed-button-left {
        bottom: 70px;
        gap: 6px;
    }
    
    .fixed-button-right {
        bottom: 10px;
    }
}

/* Animation */
.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.bounce-in {
    animation: bounceIn 0.4s ease-out;
}

@keyframes bounceIn {
    0% { 
        transform: scale(0.9); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.02); 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

/* Accessibility */
.btn:focus-visible,
.color-circle:focus-visible,
.custom-search-input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .fixed-button-left,
    .fixed-button-right,
    .btn-toolbar,
    .custom-search-container {
        display: none !important;
    }
    
    .container {
        background: white !important;
        box-shadow: none !important;
    }
    
    .table {
        background: white !important;
        min-width: auto !important;
        font-size: 0.8rem !important;
    }
    
    .table-responsive {
        overflow: visible !important;
    }
}

/*vvvvvvvv*/
/* Column Width Optimizations */
.table-responsive .table.dataTable th:nth-child(1), .table-responsive .table.dataTable td:nth-child(1) { /* Date */
    min-width: 80px !important;
    width: 80px !important;
    display: table-cell !important;
    visibility: visible !important;
}
.table-responsive .table.dataTable th:nth-child(2), .table-responsive .table.dataTable td:nth-child(2) { /* Name */
    min-width: 100px !important;
    width: 100px !important;
    display: table-cell !important;
    visibility: visible !important;
}
.table-responsive .table.dataTable th:nth-child(3), .table-responsive .table.dataTable td:nth-child(3) { /* Last Name */
    min-width: 100px !important;
    width: 100px !important;
    display: table-cell !important;
    visibility: visible !important;
}
/*/* Company 
.table-responsive .table.dataTable th:nth-child(4), .table-responsive .table.dataTable td:nth-child(4) { 
    min-width: 100px !important;
    width: 100px !important;
    word-wrap: break-word;
    display: table-cell !important;
    visibility: visible !important;
}*/
.table-responsive .table.dataTable th:nth-child(4), .table-responsive .table.dataTable td:nth-child(4) { /* Company */
    min-width: 250px !important;
    width: 250px !important;
    max-width: 250px !important; /* Impedisce l'espansione oltre 100px */
    overflow-wrap: break-word !important; /* Moderno equivalente di word-wrap */
    white-space: normal !important; /* Permette il wrapping del testo */
    display: table-cell !important;
    visibility: visible !important;
    overflow: hidden !important; /* Nasconde il testo che eccede */
    text-overflow: ellipsis !important; /* Aggiunge puntini di sospensione per testo troncato */
}
.table-responsive .table.dataTable th:nth-child(5), .table-responsive .table.dataTable td:nth-child(5) { /* Phone */
    min-width: 200px !important;
    width: 200px !important;
    max-width: 200px !important; /* Impedisce l'espansione oltre 100px */
    overflow-wrap: break-word !important; /* Moderno equivalente di word-wrap */
    white-space: normal !important; /* Permette il wrapping del testo */
    display: table-cell !important;
    visibility: visible !important;
    overflow: hidden !important; /* Nasconde il testo che eccede */
    text-overflow: ellipsis !important; /* Aggiunge puntini di sospensione per testo troncato */
}
.table-responsive .table.dataTable th:nth-child(6), .table-responsive .table.dataTable td:nth-child(6) { /* Country */
    min-width: 80px !important;
    width: 80px !important;
    display: table-cell !important;
    visibility: visible !important;
}
.table-responsive .table.dataTable th:nth-child(7), .table-responsive .table.dataTable td:nth-child(7) { /* Email */
    min-width: 250px !important;
    width: 250px !important;
    max-width: 250px !important; /* Impedisce l'espansione oltre 100px */
    overflow-wrap: break-word !important; /* Moderno equivalente di word-wrap */
    white-space: normal !important; /* Permette il wrapping del testo */
    display: table-cell !important;
    visibility: visible !important;
    overflow: hidden !important; /* Nasconde il testo che eccede */
    text-overflow: ellipsis !important; /* Aggiunge puntini di sospensione per testo troncato */
}
.table-responsive .table.dataTable th:nth-child(8), .table-responsive .table.dataTable td:nth-child(8) { /* Target Model */
    min-width: 80px !important;
    width: 80px !important;
    max-width: 80px !important; /* Impedisce l'espansione oltre 100px */
    overflow-wrap: break-word !important; /* Moderno equivalente di word-wrap */
    white-space: normal !important; /* Permette il wrapping del testo */
    display: table-cell !important;
    visibility: visible !important;
    overflow: hidden !important; /* Nasconde il testo che eccede */
    text-overflow: ellipsis !important; /* Aggiunge puntini di sospensione per testo troncato */
}
.table-responsive .table.dataTable th:nth-child(9), .table-responsive .table.dataTable td:nth-child(9) { /* Application Type - Hidden */
    min-width: 0 !important;
    width: 0 !important;
    display: none !important;
    visibility: hidden !important;
}
.table-responsive .table.dataTable th:nth-child(10), .table-responsive .table.dataTable td:nth-child(10) { /* Assignee */
    min-width: 100px !important;
    width: 100px !important;
    display: table-cell !important;
    visibility: visible !important;
}
.table-responsive .table.dataTable th:nth-child(11), .table-responsive .table.dataTable td:nth-child(11) { /* Update */
    min-width: 80px !important;
    width: 80px !important;
    display: table-cell !important;
    visibility: visible !important;
}
.table-responsive .table.dataTable th:nth-child(12), .table-responsive .table.dataTable td:nth-child(12) { /* Notes */
    min-width: 250px !important;
    max-width: 250px !important;
    width: 250px !important;
    word-wrap: break-word;
    white-space: normal;
    display: table-cell !important;
    visibility: visible !important;
}

.table-responsive .table.dataTable th:nth-child(13), .table-responsive .table.dataTable td:nth-child(13) { /* Priority*/
    min-width: 0px !important;
    width: 0px !important;
    display: none !important;
    visibility: hidden !important;
}

.table-responsive .table.dataTable th:nth-child(14), .table-responsive .table.dataTable td:nth-child(14) { /* Signature - Hidden */
    min-width: 0 !important;
    width: 0 !important;
    display: none !important;
    visibility: hidden !important;
}
.table-responsive .table.dataTable th:nth-child(15), .table-responsive .table.dataTable td:nth-child(15) { /* Actions */
    min-width: 120px !important;
    width: 120px !important;
    display: table-cell !important;
    visibility: visible !important;
}

/* Table Styles */
.table-responsive .table.dataTable {
    margin-bottom: 0;
    font-size: 0.875rem;
    white-space: nowrap;
    min-width: 900px !important;
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-collapse: collapse !important;
}

/* Override DataTable inline styles */
.table-responsive .table.dataTable th,
.table-responsive .table.dataTable td {
    box-sizing: border-box !important;
    padding: 0.5rem 0.5rem !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure table headers are styled correctly */
.table-responsive .table.dataTable thead th {
    background-color: var(--gray-100);
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-200);
    font-weight: 600;
    padding: 0.5rem 0.5rem !important;
    font-size: 0.813rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: none;
    position: sticky;
    top: 0;
    z-index: 10;
    box-sizing: border-box !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .table-responsive .table.dataTable {
        font-size: 0.813rem;
        min-width: 800px !important;
    }
    .table-responsive .table.dataTable th,
    .table-responsive .table.dataTable td {
        padding: 0.375rem 0.25rem !important;
    }
}

@media (max-width: 768px) {
    .table-responsive .table.dataTable {
        font-size: 0.75rem;
        min-width: 750px !important;
    }
    .table-responsive .table.dataTable th,
    .table-responsive .table.dataTable td {
        padding: 0.375rem 0.25rem !important;
    }
}

@media (max-width: 576px) {
    .table-responsive .table.dataTable {
        font-size: 0.7rem;
        min-width: 700px !important;
    }
    .table-responsive .table.dataTable th,
    .table-responsive .table.dataTable td {
        padding: 0.375rem 0.25rem !important;
    }
}