/* DataTables fix - ensure styles apply */

/* Remove duplicate wrapper */
.dataTables_wrapper .dataTables_wrapper {
    display: none !important;
}

/* Section spacing */
.head_title {
    margin-bottom: 20px;
}

#contacto_InformacionesTab {
    margin-bottom: 15px;
    clear: both;
}

/* Table structure */
table.dataTable {
    border-collapse: collapse !important;
    border: 1px solid #dee2e6 !important;
    width: 100% !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

/* Table header */
table.dataTable thead th {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    padding: 7px 8px !important;
    font-weight: 600 !important;
    color: #495057 !important;
    white-space: nowrap !important;
}

/* Table body */
table.dataTable tbody td {
    border: 1px solid #dee2e6 !important;
    padding: 6px 8px !important;
}

/* Striped rows */
table.dataTable.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9 !important;
}

table.dataTable.table-striped tbody tr:nth-of-type(even) {
    background-color: #ffffff !important;
}

/* Hover effect */
table.dataTable tbody tr:hover {
    background-color: #f1f1f1 !important;
}

/* DataTables wrapper */
.dataTables_wrapper {
    padding: 0;
    margin-bottom: 20px;
    position: relative;
}

/* Processing indicator - centered overlay */
div.dataTables_processing,
div.dt-processing {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: auto !important;
    min-width: 120px;
    margin-left: 0 !important;
    margin-top: 0 !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1000 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid #dee2e6 !important;
    white-space: nowrap;
    font-size: 0.9rem;
    color: #495057;
    text-align: center;
}

/* Top controls - Show length for larger tables, hide filter */
.dataTables_length {
    float: left;
    padding-top: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #6c757d;
}

.dataTables_length select {
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin: 0 4px;
    font-size: 13px;
}

.dataTables_filter {
    display: none !important;
}

/* Bottom controls */
.dataTables_info {
    float: left;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 13px;
    color: #6c757d;
}

.dataTables_paginate {
    float: right;
    padding-top: 10px;
    margin-top: 10px;
}

/* Clear floats */
.dataTables_wrapper:after {
    content: "";
    display: table;
    clear: both;
}

/* Pagination */
.dataTables_paginate .paginate_button {
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #fff;
    color: #495057;
    cursor: pointer;
    display: inline-block;
}

.dataTables_paginate .paginate_button:hover {
    background-color: #e9ecef;
    border-color: #178daa;
}

.dataTables_paginate .paginate_button.current {
    background-color: #178daa !important;
    color: #fff !important;
    border-color: #178daa !important;
}

.dataTables_paginate .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
