/* ========================================== */
        /* DataTables Setup - Native & Flawless       */
        /* ========================================== */

        .dataTables_wrapper { 
            display: block !important;
            width: 100% !important;
            padding: 1.5rem 1rem !important; /* Am adăugat spațiu generos pentru tot containerul */
        }

        /* TOP: Length (Stânga) și Search (Dreapta) */
        .dataTables_wrapper .dataTables_length {
            float: left !important;
            margin-bottom: 1.5rem !important; /* Spațiu mare sub ele, ca să nu se lipească de tabel */
        }
        .dataTables_wrapper .dataTables_filter {
            float: right !important;
            margin-bottom: 1.5rem !important; /* Spațiu mare sub ele, ca să nu se lipească de tabel */
        }

        /* Textele pentru Label-uri */
        .dataTables_wrapper .dataTables_length label,
        .dataTables_wrapper .dataTables_filter label {
            display: flex !important;
            align-items: center !important;
            color: #9ca3af !important; /* text-txt-muted */
            font-size: 11px !important;
            font-weight: 900 !important;
            text-transform: uppercase !important;
            letter-spacing: 0.05em !important;
            margin: 0 !important;
            gap: 0.5rem !important;
        }

        /* Căsuțele de Input și Select */
        .dataTables_wrapper .dataTables_filter input,
        .dataTables_wrapper .dataTables_length select {
            background-color: #0f1015 !important; /* bg-input */
            border: 1px solid #1f2128 !important; /* border-main */
            color: #ffffff !important;
            border-radius: 0.375rem !important;
            height: 2.25rem !important;
            font-size: 12px !important;
            outline: none !important;
            box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05) !important;
            transition: border-color 0.2s !important;
            margin: 0 !important;
        }

        /* Fix Căsuța de numere */
        .dataTables_wrapper .dataTables_length select {
            padding: 0 2rem 0 0.75rem !important; 
            width: auto !important;
        }
        .dataTables_wrapper .dataTables_filter input {
            padding: 0 0.75rem !important;
        }

        .dataTables_wrapper .dataTables_filter input:focus,
        .dataTables_wrapper .dataTables_length select:focus {
            border-color: #ec4899 !important; /* Culoare Primary */
        }

        /* Tabelul */
        .dataTables_wrapper table.dataTable {
            clear: both !important;
            width: 100% !important;
            margin-bottom: 1.5rem !important; /* Spațiu între tabel și paginarea de jos */
            border-collapse: collapse !important;
        }

        /* ========================================== */
        /* DataTables Sorting Arrows (FontAwesome)    */
        /* ========================================== */
        
        table.dataTable thead th {
            position: relative !important;
            cursor: pointer !important;
            padding-right: 1.5rem !important; /* Facem loc în dreapta scrisului pentru a intra săgețile */
        }
        
        /* Iconițele de bază */
        table.dataTable thead th.sorting::after,
        table.dataTable thead th.sorting_asc::after,
        table.dataTable thead th.sorting_desc::after {
            position: absolute !important;
            right: 0.5rem !important;
            top: 50% !important;
            transform: translateY(-50%) !important;
            font-family: "Font Awesome 6 Free" !important; /* Folosim iconițele tale curente */
            font-weight: 900 !important;
            font-size: 12px !important;
        }

        /* Neutru (Nesortat) */
        table.dataTable thead th.sorting::after {
            content: "\f0dc" !important; /* Iconița cu săgeată sus-jos */
            opacity: 0.2 !important;
        }
        
        /* Sortat Crescător */
        table.dataTable thead th.sorting_asc::after {
            content: "\f0de" !important; /* Săgeată sus */
            color: #ec4899 !important; /* Culoare primary */
            opacity: 1 !important;
        }
        
        /* Sortat Descrescător */
        table.dataTable thead th.sorting_desc::after {
            content: "\f0dd" !important; /* Săgeată jos */
            color: #ec4899 !important; /* Culoare primary */
            opacity: 1 !important;
        }

        /* Dezactivăm săgeata dacă nu are voie să sorteze pe coloana respectivă (ex: Acțiuni / Ștergere) */
        table.dataTable thead th.sorting_disabled {
            cursor: default !important;
            padding-right: 1rem !important;
        }
        table.dataTable thead th.sorting_disabled::after {
            display: none !important;
        }

        /* ========================================== */
        /* BOTTOM: Info (Stânga) și Paginare (Dreapta)*/
        /* ========================================== */
        
        .dataTables_wrapper .dataTables_info { 
            float: left !important;
            color: #9ca3af !important; /* text-txt-muted */
            font-size: 11px !important;
            font-weight: 900 !important;
            text-transform: uppercase !important;
            padding-top: 0.75rem !important;
        }

        .dataTables_wrapper .dataTables_paginate { 
            float: right !important;
            display: flex !important;
            align-items: center !important;
            padding-top: 0.5rem !important;
        }

        /* Butoanele de Paginare */
        .dataTables_wrapper .paginate_button {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            height: 2rem !important;
            min-width: 2rem !important;
            padding: 0 0.5rem !important;
            border-radius: 0.375rem !important;
            background-color: #16171c !important; /* bg-panel */
            border: 1px solid #1f2128 !important; /* border-main */
            color: #9ca3af !important; /* text-txt-muted */
            font-size: 11px !important;
            font-weight: 900 !important;
            text-transform: uppercase !important;
            cursor: pointer !important;
            transition: all 0.2s !important;
            margin-left: 0.25rem !important;
        }

        /* Hover pe butoanele ne-active */
        .dataTables_wrapper .paginate_button:hover:not(.disabled):not(.current) {
            background-color: #0f1015 !important; /* bg-input */
            color: #ffffff !important;
            border-color: #374151 !important;
        }

        /* Butonul Activ (Pagina Curentă) */
        .dataTables_wrapper .paginate_button.current,
        .dataTables_wrapper .paginate_button.current:hover {
            background-color: #ec4899 !important; /* bg-primary */
            color: #ffffff !important;
            border-color: transparent !important;
            box-shadow: 0 4px 6px -1px rgba(236, 72, 153, 0.2) !important;
        }

        /* Butoanele Oprite (Prev/Next) */
        .dataTables_wrapper .paginate_button.disabled,
        .dataTables_wrapper .paginate_button.disabled:hover {
            opacity: 0.3 !important;
            cursor: not-allowed !important;
            background-color: transparent !important;
            border-color: transparent !important;
        }

        /* Mesaj Rand Gol */
        .dataTables_wrapper .dataTables_empty {
            text-align: center !important;
            font-weight: 900 !important;
            padding: 3rem 1rem !important;
            color: #9ca3af !important;
            text-transform: uppercase !important;
            letter-spacing: 0.05em !important;
            background-color: transparent !important;
        }