/* Custom DataTables styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: #374151;
}

div.dataTables_processing {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.51);
}

.dataTables_wrapper .dt-processing {
    text-align: center;
    padding: 1rem;
    background-color: gray;
    color: white;
    font-size: larger;
}

.dataTables_wrapper .dataTables_paginate {
    margin-bottom: .5rem;
}

.dataTables_wrapper .dataTables_info {
    padding-left: 1rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.5rem 0.75rem;
    margin: 0 0.125rem;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #0e7490 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #0e7490;
    border-color: #0e7490;
    color: white;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

table.dataTable td.dataTables_empty{
    text-align:center;
    padding: 1rem;
    color: #3e3e3e;
    font-size: 1rem;
    background-color: #ebebeb;
}

.paginate_button.page-item.active {
    background: #0e7490 !important;
    border-color: #0e7490 !important;
    color: white !important;
}

table.dataTable thead th {
    border-bottom: 1px solid #e5e7eb;
}

table.dataTable tbody td {
    border-bottom: 1px solid #f3f4f6;
}

table tr.odd {
    background-color: rgb(239, 249, 250) !important;
}


.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.sidebar-item {
    transition: all 0.3s ease;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-right: 3px solid white;
}

.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -2px rgba(102, 126, 234, 0.25);
}

.document-card {
    transition: all 0.3s ease;
}

.document-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Mobile sidebar overlay */
.sidebar-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Responsive sidebar */
.sidebar-mobile {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.sidebar-mobile.open {
    transform: translateX(0);
}

.select2-container .select2-selection--single {
    height: 42.5px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 10px;
    right: 10px;
}
.select2-selection {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    color: #374151;
    padding: 0.5rem 0.75rem;
}

/* .parsley-required, */
.parsley-errors-list {
    color: rgb(255, 255, 255);
    padding: 0.25rem 0.5rem;
    background-color: rgb(158, 44, 44);
}

/* Hide sidebar text on small screens when collapsed */
@media (max-width: 1024px) {
    /*.sidebar-text {
        display: none;
    }*/

    .sidebar-collapsed {
        width: 4rem;
    }

    .sidebar-collapsed .sidebar-item {
        justify-content: center;
        padding: 0.75rem;
    }
}

/* DataTables responsive */
@media (max-width: 768px) {

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        float: none;
        text-align: left;
        margin-bottom: 1rem;
    }

    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none;
        text-align: center;
        margin-top: 1rem;
    }
}