/* ============================================================
   Gestion 8 - Estilos globales de tablas DataTables
   Estilo unificado tipo cotizador
   ============================================================ */

/* ---------- Título de páginas ---------- */
.page-main-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #007bff;
    display: inline-block;
}

/* ---------- Cabecera de DataTables ---------- */
table.dataTable thead th,
table.dataTable thead td,
.table thead th {
    background-color: #007bff !important;
    color: #ffffff !important;
    border-color: #0062cc !important;
    font-weight: 600;
    white-space: nowrap;
}

/* ---------- Filas de DataTables ---------- */
table.dataTable tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.07) !important;
}

/* ---------- Botones de exportación de DataTables ---------- */
.dt-buttons .dt-button,
div.dt-buttons > a.dt-button,
div.dt-buttons > button.dt-button {
    border-radius: 4px !important;
    font-size: 0.82rem !important;
    padding: 4px 10px !important;
    margin-right: 3px !important;
    box-shadow: none !important;
    background-image: none !important;
    font-weight: 500 !important;
    color: #fff !important;
    border: none !important;
    transition: filter 0.15s ease !important;
}
.dt-buttons .dt-button:hover,
div.dt-buttons > a.dt-button:hover,
div.dt-buttons > button.dt-button:hover {
    filter: brightness(0.88) !important;
    color: #fff !important;
}

/* Copiar — azul */
button.buttons-copy,
a.buttons-copy {
    background: #007bff !important;
}
/* Excel — verde */
button.buttons-excel,
a.buttons-excel {
    background: #28a745 !important;
}
/* PDF — rojo */
button.buttons-pdf,
a.buttons-pdf {
    background: #dc3545 !important;
}
/* Imprimir — gris oscuro */
button.buttons-print,
a.buttons-print {
    background: #6c757d !important;
}

/* ---------- Paginación ---------- */
.dataTables_paginate .paginate_button {
    border-radius: 4px !important;
    margin: 0 2px !important;
}
.dataTables_paginate .paginate_button.current,
.dataTables_paginate .paginate_button.current:hover {
    background: #007bff !important;
    color: #fff !important;
    border-color: #007bff !important;
}
.dataTables_paginate .paginate_button:hover {
    background: #e9ecef !important;
    border-color: #ced4da !important;
    color: #343a40 !important;
}

/* ---------- Tamaño general de tablas ---------- */
table.dataTable th,
table.dataTable td {
    font-size: 13px;
    vertical-align: middle !important;
}

@media (max-width: 768px) {
    table.dataTable th,
    table.dataTable td {
        font-size: 11px;
    }
}
