/**
 * Luuk Tables CSS
 * Estilos modernos para DataTables y tablas del dashboard
 *
 * Guías de diseño:
 * - Fondos grises neutros: #f9fafb, #f3f4f6, #e5e7eb
 * - Color de acento: var(--color) solo para estados activos
 * - Border-radius: 6-8px
 * - Espaciado generoso
 * - Sin bordes pesados
 */

/* ========================================
   RESET Y BASE DATATABLE
   ======================================== */

/* Contenedor principal */
.dataTables_wrapper {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    color: #374151;
}

/* Quitar TODOS los bordes por defecto de DataTables */
table.dataTable,
table.dataTable thead th,
table.dataTable tbody td,
table.dataTable tfoot th,
table.dataTable tfoot td,
table.dataTable.no-footer,
table.dataTable.display,
table.dataTable.stripe,
table.dataTable.hover,
table.dataTable.cell-border,
table.dataTable.row-border,
table.dataTable.order-column {
    border: none !important;
    border-collapse: collapse !important;
}

/* FORZAR eliminación de border-left en TODAS las filas y celdas */
table.dataTable tbody tr,
table.dataTable tbody tr td,
table.dataTable tbody tr td:first-child,
.dataTables_wrapper table tbody tr,
.dataTables_wrapper table tbody tr td,
.dataTables_wrapper table tbody tr td:first-child {
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
}

/* Eliminar pseudo-elementos que puedan crear bordes */
table.dataTable tbody tr::before,
table.dataTable tbody tr::after,
table.dataTable tbody tr td::before,
table.dataTable tbody tr td::after,
table.dataTable tbody tr td:first-child::before,
table.dataTable tbody tr td:first-child::after {
    display: none !important;
    content: none !important;
}

/* Reset completo de bordes en wrapper */
.dataTables_wrapper.no-footer .dataTables_scrollBody,
.dataTables_wrapper .dataTables_scrollBody {
    border: none !important;
}

/* Remover borde inferior del header */
table.dataTable thead th,
table.dataTable thead td {
    border-bottom: 1px solid #e5e7eb !important;
}

/* Remover borde del footer */
table.dataTable.no-footer {
    border-bottom: none !important;
}

/* ========================================
   ESTILOS UNIFICADOS PARA TODAS LAS TABLAS
   ======================================== */

/* Contenedor sin bordes */
.dataTables_wrapper {
    border: none !important;
}

/* Tabla base limpia */
table.dataTable {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

/* Header unificado */
table.dataTable thead th {
    background: #f9fafb !important;
    border: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 10px 12px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}

/* Celdas unificadas */
table.dataTable tbody td {
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    color: #374151 !important;
    vertical-align: middle !important;
    background: #fff !important;
}

/* Filas sin zebra striping */
table.dataTable tbody tr,
table.dataTable tbody tr.odd,
table.dataTable tbody tr.even {
    background: #fff !important;
}

/* Hover unificado */
table.dataTable tbody tr:hover td,
table.dataTable tbody tr.odd:hover td,
table.dataTable tbody tr.even:hover td {
    background: #f9fafb !important;
}

/* Columna de checkbox */
table.dataTable thead th.select-cell,
table.dataTable tbody td.select-cell {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    text-align: center !important;
    padding: 10px 8px !important;
}

/* Columna de acciones */
table.dataTable thead th.actions-cell,
table.dataTable tbody td.actions-cell {
    text-align: center !important;
    white-space: nowrap !important;
}

/* ========================================
   CONTROLES UNIFICADOS DE DATATABLE
   ======================================== */

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 12px;
}

.dataTables_wrapper .dataTables_length {
    float: left;
}

.dataTables_wrapper .dataTables_filter {
    float: right;
}

/* Label de length */
.dataTables_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

/* Select de "Mostrando X" */
.dataTables_wrapper .dataTables_length select {
    padding: 6px 28px 6px 10px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    font-size: 13px !important;
    color: #374151 !important;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    min-width: 60px !important;
    height: auto !important;
}

.dataTables_wrapper .dataTables_length select:hover {
    border-color: #d1d5db !important;
}

.dataTables_wrapper .dataTables_length select:focus {
    outline: none !important;
    border-color: var(--color, #29c178) !important;
    box-shadow: 0 0 0 2px rgba(41, 193, 120, 0.1) !important;
}

/* Input de búsqueda */
.dataTables_wrapper .dataTables_filter input {
    padding: 6px 12px 6px 32px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    font-size: 13px !important;
    color: #374151 !important;
    width: 200px;
    transition: all 0.15s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 10px center !important;
}

.dataTables_wrapper .dataTables_filter input:hover {
    border-color: #d1d5db !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    outline: none !important;
    border-color: var(--color, #29c178) !important;
    box-shadow: 0 0 0 2px rgba(41, 193, 120, 0.1) !important;
    width: 240px;
}

.dataTables_wrapper .dataTables_filter input::placeholder {
    color: #9ca3af;
}

.dataTables_wrapper .dataTables_filter label {
    display: flex;
    align-items: center;
    gap: 0;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
}

/* Ocultar texto "Buscar:" */
.dataTables_wrapper .dataTables_filter label > span,
.dataTables_wrapper .dataTables_filter label::before {
    display: none;
}

/* Info (Mostrando X de Y) */
.dataTables_wrapper .dataTables_info {
    padding-top: 10px;
    color: #6b7280;
    font-size: 12px;
    float: left;
}

/* Paginación unificada */
.dataTables_wrapper .dataTables_paginate {
    padding-top: 10px;
    float: right;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px;
    background: #fff !important;
    color: #374151 !important;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled):not(.current) {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--color, #29c178) !important;
    border-color: var(--color, #29c178) !important;
    color: #fff !important;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Clear floats */
.dataTables_wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================================
   ICONOS DE ORDENAMIENTO
   ======================================== */

/* Sorting icons */
table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    cursor: pointer;
    position: relative;
    padding-right: 24px !important;
}

table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after {
    display: block !important;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #9ca3af;
    opacity: 1 !important;
}

table.dataTable thead th.sorting::after {
    content: "▲▼" !important;
    font-size: 7px;
    line-height: 1;
    letter-spacing: -2px;
}

table.dataTable thead th.sorting_asc::after {
    content: "▲" !important;
    color: var(--color, #29c178);
}

table.dataTable thead th.sorting_desc::after {
    content: "▼" !important;
    color: var(--color, #29c178);
}

table.dataTable thead th:hover {
    background: #f3f4f6 !important;
}

/* ========================================
   ESTILOS ADICIONALES DE FILAS
   ======================================== */

/* Fila seleccionada */
table.dataTable tbody tr.selected,
table.dataTable tbody tr.selected td {
    background: rgba(41, 193, 120, 0.08) !important;
}

/* Checkbox unificado */
table.dataTable tbody td input[type="checkbox"],
table.dataTable thead th input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    cursor: pointer;
    accent-color: var(--color, #29c178);
    margin: 0;
}

/* ========================================
   CELDA DE USUARIO (NOMBRE + EMAIL)
   ======================================== */

.user-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-cell-name {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
}

.user-cell-email {
    font-size: 13px;
    color: #6b7280;
}

/* ========================================
   BADGES (PERFIL, PERMISOS)
   ======================================== */

.luuk-badge-table {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.luuk-badge-table.admin,
.luuk-badge-table.intermedio,
.luuk-badge-table.api,
.luuk-badge-table.basico {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
}

/* Permiso edición */
.permiso-si {
    color: #10b981;
    font-weight: 500;
}

.permiso-no {
    color: #9ca3af;
}

/* ========================================
   BOTONES DE ACCIÓN UNIFICADOS (INLINE)
   ======================================== */

/* Contenedor de botones inline */
.table-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

/* Botón de acción base */
.table-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.table-action-btn i {
    font-size: 13px;
    color: #6b7280;
}

.table-action-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Botón solo icono */
.table-action-btn.icon-only {
    padding: 5px 8px;
}

/* Variantes de color en hover */
.table-action-btn.btn-primary:hover {
    background: rgba(41, 193, 120, 0.1);
    border-color: var(--color, #29c178);
    color: var(--color, #29c178);
}
.table-action-btn.btn-primary:hover i {
    color: var(--color, #29c178);
}

.table-action-btn.btn-info:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #93c5fd;
    color: #2563eb;
}
.table-action-btn.btn-info:hover i {
    color: #2563eb;
}

.table-action-btn.btn-warning:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #fcd34d;
    color: #d97706;
}
.table-action-btn.btn-warning:hover i {
    color: #d97706;
}

.table-action-btn.btn-danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}
.table-action-btn.btn-danger:hover i {
    color: #dc2626;
}

/* ========================================
   DROPDOWN DE ACCIONES (ALTERNATIVA)
   ======================================== */

.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 16px;
    line-height: 1;
}

.action-dropdown-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.action-dropdown-btn:focus {
    outline: none;
    border-color: var(--color, #29c178);
    box-shadow: 0 0 0 2px rgba(41, 193, 120, 0.1);
}

.action-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    min-width: 150px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.action-dropdown.open .action-dropdown-menu {
    display: block;
}

.action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    transition: background-color 0.1s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.action-dropdown-item:hover {
    background: #f3f4f6;
}

.action-dropdown-item.danger {
    color: #dc2626;
}

.action-dropdown-item.danger:hover {
    background: #fef2f2;
}

.action-dropdown-item i,
.action-dropdown-item .icon {
    font-size: 13px;
    width: 14px;
    text-align: center;
    color: #9ca3af;
}

.action-dropdown-item.danger i {
    color: #dc2626;
}

.action-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* ========================================
   PANEL CONTENEDOR
   ======================================== */

.luuk-table-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.luuk-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.luuk-table-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.luuk-table-title-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(41, 193, 120, 0.1);
    border-radius: 10px;
    color: var(--color, #29c178);
    font-size: 20px;
}

.luuk-table-actions {
    display: flex;
    gap: 8px;
}

.luuk-table-body {
    padding: 20px 24px;
}

/* ========================================
   BOTÓN PRIMARIO
   ======================================== */

.btn-luuk-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--color, #29c178);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-luuk-primary:hover {
    background: var(--color2, #1ea366);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(41, 193, 120, 0.3);
}

.btn-luuk-primary:active {
    transform: translateY(0);
}

.btn-luuk-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-luuk-secondary:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* ========================================
   CUPO USUARIO MEJORADO
   ======================================== */

.cupo-container {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 20px;
}

.cupo-label {
    font-size: 14px;
    color: #6b7280;
}

.cupo-value {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.cupo-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.cupo-bar-fill {
    height: 100%;
    background: var(--color, #29c178);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.cupo-bar-fill.warning {
    background: #f59e0b;
}

.cupo-bar-fill.danger {
    background: #ef4444;
}

/* ========================================
   LISTA DE GRUPOS MEJORADA
   ======================================== */

.grupos-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grupo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.15s ease;
}

.grupo-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.grupo-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.grupo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f3f4f6;
    border-radius: 10px;
    color: #6b7280;
    font-size: 20px;
}

.grupo-name {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
}

.grupo-name-input {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    border: none;
    background: transparent;
    padding: 0;
    width: auto;
}

.grupo-name-input:focus {
    outline: none;
    border-bottom: 2px solid var(--color, #29c178);
}

.grupo-meta {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 2px;
}

.grupo-actions {
    display: flex;
    gap: 8px;
}

.grupo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.grupo-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.grupo-btn.primary {
    background: var(--color, #29c178);
    border-color: var(--color, #29c178);
    color: #fff;
}

.grupo-btn.primary:hover {
    opacity: 0.9;
}

.grupo-btn.danger:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* ========================================
   EDITAR GRUPO - ASIGNACIÓN
   ======================================== */

.asignar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.asignar-title {
    font-size: 16px;
    color: #374151;
}

.asignar-title strong {
    color: var(--color, #29c178);
    font-weight: 600;
}

.asignar-actions {
    display: flex;
    gap: 10px;
}

/* Bootstrap Table modernizado */
.bootstrap-table .fixed-table-container {
    border: none;
}

.bootstrap-table .fixed-table-body {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.bootstrap-table .table {
    margin-bottom: 0;
}

.bootstrap-table .table thead th {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: #6b7280;
}

.bootstrap-table .table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.bootstrap-table .table tbody tr:hover {
    background: #f9fafb;
}

.bootstrap-table .table tbody tr.selected {
    background: rgba(41, 193, 120, 0.08);
}

/* Search en Bootstrap Table */
.bootstrap-table .search input {
    padding: 10px 16px 10px 40px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}

.bootstrap-table .search input:focus {
    outline: none;
    border-color: var(--color, #29c178);
    box-shadow: 0 0 0 3px rgba(41, 193, 120, 0.1);
}

/* ========================================
   PROVEEDORES - TABLA ESPECÍFICA
   ======================================== */

/* Contenedor tabla proveedores */
#exampleAddRow_wrapper {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

#exampleAddRow_wrapper .dataTables_length {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    float: none !important;
}

#exampleAddRow_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

#exampleAddRow_wrapper .dataTables_length select {
    padding: 8px 32px 8px 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    font-size: 14px !important;
    color: #374151 !important;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    min-width: 70px !important;
    height: auto !important;
}

#exampleAddRow_wrapper .dataTables_filter {
    float: right;
    margin-bottom: 16px;
}

#exampleAddRow_wrapper .dataTables_info {
    padding-top: 12px;
    color: #6b7280;
    font-size: 13px;
    float: left;
}

#exampleAddRow_wrapper .dataTables_paginate {
    padding-top: 12px;
    float: right;
}

/* Tabla proveedores */
#exampleAddRow {
    width: 100% !important;
    border-collapse: collapse;
}

#exampleAddRow thead th {
    background: #f9fafb !important;
    border-bottom: 2px solid #e5e7eb !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 12px 16px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #6b7280 !important;
    white-space: nowrap;
    position: relative;
}

/* Ocultar iconos de sort como texto/div */
.fa-sortIcon,
#exampleAddRow thead th .fa-sortIcon,
#exampleAddRow thead th > div {
    display: none !important;
}

/* Iconos de ordenamiento DataTables */
#exampleAddRow thead th.sorting,
#exampleAddRow thead th.sorting_asc,
#exampleAddRow thead th.sorting_desc {
    padding-right: 26px !important;
    cursor: pointer;
}

#exampleAddRow thead th.sorting::after,
#exampleAddRow thead th.sorting_asc::after,
#exampleAddRow thead th.sorting_desc::after {
    display: block !important;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #9ca3af;
    opacity: 1 !important;
}

#exampleAddRow thead th.sorting::after {
    content: "▲▼" !important;
    font-size: 8px;
    line-height: 1;
    letter-spacing: -2px;
}

#exampleAddRow thead th.sorting_asc::after {
    content: "▲" !important;
    color: var(--color, #29c178);
}

#exampleAddRow thead th.sorting_desc::after {
    content: "▼" !important;
    color: var(--color, #29c178);
}

#exampleAddRow thead th:first-child {
    display: none !important;
}

#exampleAddRow tbody td {
    padding: 14px 16px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    border-top: none !important;
    vertical-align: middle !important;
    font-size: 14px;
    color: #374151;
}

#exampleAddRow tbody td:first-child {
    display: none !important;
}

#exampleAddRow tbody tr:hover {
    background: #f9fafb !important;
}

/* Ocultar columna objectId */
#exampleAddRow .celObjectId {
    display: none !important;
}

/* Badge Ver informe */
.badge-luuk,
#exampleAddRow .info-row {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.badge-luuk:hover,
#exampleAddRow .info-row:hover {
    background: #e5e7eb;
    color: #1f2937;
    text-decoration: none;
}

/* Celda de acciones */
#exampleAddRow .actions,
#exampleAddRow .actions-cell {
    text-align: center !important;
    white-space: nowrap;
}

/* Botones en modo edición */
#exampleAddRow .on-editing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    margin: 0 2px;
}

#exampleAddRow .save-row {
    background: var(--color, #29c178) !important;
    color: #fff !important;
    border: none !important;
}

#exampleAddRow .save-row:hover {
    opacity: 0.9;
}

#exampleAddRow .cancel-row {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border: 1px solid #e5e7eb !important;
}

#exampleAddRow .cancel-row:hover {
    background: #e5e7eb !important;
    color: #374151 !important;
}

/* Inputs en modo edición */
#exampleAddRow tbody td input.form-control {
    padding: 8px 12px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    width: 100% !important;
    min-width: 100px;
}

#exampleAddRow tbody td input.form-control:focus {
    border-color: var(--color, #29c178) !important;
    box-shadow: 0 0 0 3px rgba(41, 193, 120, 0.1) !important;
    outline: none !important;
}

/* Fila en modo adding */
#exampleAddRow tbody tr.adding {
    background: rgba(41, 193, 120, 0.05) !important;
}

/* Título de proveedores */
#tituloUsuarios {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Panel proveedores */
.TablaUsuarios {
    margin-top: 20px;
}

.TablaUsuarios .panel {
    border: none;
    box-shadow: none;
}

/* Dropdown en proveedores - asegurar visibilidad */
#exampleAddRow .action-dropdown {
    display: inline-block;
}

#exampleAddRow .action-dropdown-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 18px;
    color: #6b7280;
    line-height: 1;
}

#exampleAddRow .action-dropdown-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

#exampleAddRow .action-dropdown.open .action-dropdown-btn {
    background: #f3f4f6;
    border-color: var(--color, #29c178);
}

#exampleAddRow .action-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 160px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

#exampleAddRow .action-dropdown.open .action-dropdown-menu {
    display: block;
}

#exampleAddRow .action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s ease;
}

#exampleAddRow .action-dropdown-item:hover {
    background: #f3f4f6;
}

#exampleAddRow .action-dropdown-item.danger {
    color: #dc2626;
}

#exampleAddRow .action-dropdown-item.danger:hover {
    background: #fef2f2;
}

#exampleAddRow .action-dropdown-item i {
    width: 16px;
    font-size: 14px;
    color: #9ca3af;
}

#exampleAddRow .action-dropdown-item.danger i {
    color: #dc2626;
}

#exampleAddRow .action-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* ========================================
   PROVEEDORES - ICONOS DE ACCIÓN
   ======================================== */

.proveedor-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.proveedor-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.proveedor-action-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.proveedor-action-btn.edit:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #93c5fd;
    color: #2563eb;
}

.proveedor-action-btn.delete:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.proveedor-action-btn.info:hover {
    background: rgba(41, 193, 120, 0.1);
    border-color: var(--color, #29c178);
    color: var(--color, #29c178);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_filter input {
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter input:focus {
        width: 100%;
    }

    .luuk-table-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .luuk-table-body {
        padding: 16px;
    }

    table.dataTable tbody td {
        padding: 12px;
    }

    .action-dropdown-menu {
        right: auto;
        left: 0;
    }

    .grupo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .grupo-actions {
        width: 100%;
    }

    .grupo-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ========================================
   FILTROS
   ======================================== */

.luuk-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    padding: 16px 20px;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 20px;
}

.luuk-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.luuk-filter-search {
    flex: 1;
    min-width: 200px;
}

.luuk-filter-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6b7280;
}

.luuk-filter-select {
    padding: 10px 36px 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.15s ease;
}

.luuk-filter-select:hover {
    border-color: #d1d5db;
}

.luuk-filter-select:focus {
    outline: none;
    border-color: var(--color, #29c178);
    box-shadow: 0 0 0 3px rgba(41, 193, 120, 0.1);
}

.luuk-filter-input {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    color: #374151;
    transition: all 0.15s ease;
}

.luuk-filter-input:hover {
    border-color: #d1d5db;
}

.luuk-filter-input:focus {
    outline: none;
    border-color: var(--color, #29c178);
    box-shadow: 0 0 0 3px rgba(41, 193, 120, 0.1);
}

.luuk-filter-input::placeholder {
    color: #9ca3af;
}

.luuk-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #fff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.luuk-filter-clear:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.luuk-filter-clear i {
    font-size: 12px;
}

/* Filtros activos indicator */
.luuk-filter-select:not([value=""]),
.luuk-filter-input:not(:placeholder-shown) {
    border-color: var(--color, #29c178);
    background-color: rgba(41, 193, 120, 0.02);
}

/* ========================================
   ANIMACIONES
   ======================================== */

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

.dataTables_wrapper {
    animation: fadeIn 0.2s ease;
}

/* ========================================
   EMPTY STATE
   ======================================== */

.table-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.table-empty-state-icon {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

.table-empty-state-title {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.table-empty-state-text {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* ========================================
   EDITAR GRUPO - PÁGINA ESPECÍFICA
   ======================================== */

/* Contenedor de botones superiores */
#BotonesSiguiente {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 !important;
}

#AtrasEditarGrupo,
#SiguienteEditarGrupo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.15s ease;
}

#AtrasEditarGrupo {
    background: #fff !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
}

#AtrasEditarGrupo:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
}

#SiguienteEditarGrupo {
    background: var(--color, #29c178) !important;
    color: #fff !important;
    border: none !important;
}

#SiguienteEditarGrupo:hover {
    opacity: 0.9;
}

/* Info del grupo */
#queGrupoAsigno {
    color: var(--color, #29c178);
    font-weight: 600;
    background: rgba(41, 193, 120, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

#codigoQueEstoyEditando {
    font-size: 11px;
    color: #9ca3af;
    margin-left: 8px;
}

/* Botón de períodos en tabla */
.bootstrap-table .table tbody td .btn.btn-info {
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 500;
    border-radius: 4px !important;
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    transition: all 0.15s ease;
}

.bootstrap-table .table tbody td .btn.btn-info:hover {
    background: var(--color, #29c178) !important;
    color: #fff !important;
    border-color: var(--color, #29c178) !important;
}

/* Checkbox personalizado en Bootstrap Table */
.bootstrap-table .table thead th input[type="checkbox"],
.bootstrap-table .table tbody td input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color, #29c178);
}

/* ========================================
   POPUP DE PERÍODOS
   ======================================== */

#PopUpPeriodos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#PopUpPeriodos2 {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.2s ease;
}

#PopUpPeriodos2 #DivFiltros {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

#CerrarPopUpPeriodos {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s ease;
}

#CerrarPopUpPeriodos:hover {
    background: #e5e7eb;
    color: #374151;
}

#TituloPeriodosH3 {
    padding: 0 20px;
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

#SubTituloPeriodosH3 {
    padding: 0 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

#ListaPeriodosUsuario {
    list-style: none;
    padding: 0 20px 20px;
    margin: 0;
}

#ListaPeriodosUsuario li {
    margin-bottom: 8px;
}

#ListaPeriodosUsuario .grupoEliminado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

#ListaPeriodosUsuario .grupoEliminado h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #374151;
}

#ListaPeriodosUsuario .grupoEliminado h4 strong {
    font-weight: 600;
    color: #1f2937;
}

#EliminarPeriodo {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    background: #fef2f2;
    color: #dc2626;
    cursor: pointer;
    transition: all 0.15s ease;
}

#EliminarPeriodo:hover {
    background: #fee2e2;
}

#EliminarPeriodo2 {
    padding: 6px 12px;
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}

.SinGruposEliminados {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 14px;
    display: none;
}

/* ========================================
   RESPONSIVE EDITARGRUPO
   ======================================== */

@media (max-width: 640px) {
    #BotonesSiguiente {
        flex-direction: column;
    }

    #AtrasEditarGrupo,
    #SiguienteEditarGrupo {
        width: 100%;
        justify-content: center;
    }

    #PopUpPeriodos2 {
        margin: 10px;
        max-height: 90vh;
    }

    #ListaPeriodosUsuario .grupoEliminado {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ========================================
   GRUPOS - TABLA ESPECÍFICA
   ======================================== */

/* Contenedor tabla grupos */
#tablaGrupos_wrapper {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

#tablaGrupos_wrapper .dataTables_length {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    float: none !important;
}

#tablaGrupos_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

#tablaGrupos_wrapper .dataTables_length select {
    padding: 6px 28px 6px 10px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    font-size: 13px !important;
    color: #374151 !important;
    cursor: pointer;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    min-width: 60px !important;
    height: auto !important;
}

#tablaGrupos_wrapper .dataTables_filter {
    float: right;
    margin-bottom: 12px;
}

#tablaGrupos_wrapper .dataTables_filter input {
    padding: 6px 12px 6px 32px !important;
    font-size: 13px !important;
}

#tablaGrupos_wrapper .dataTables_info {
    padding-top: 10px;
    color: #6b7280;
    font-size: 12px;
    float: left;
}

#tablaGrupos_wrapper .dataTables_paginate {
    padding-top: 10px;
    float: right;
}

#tablaGrupos_wrapper .dataTables_paginate .paginate_button {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
}

/* Tabla grupos */
#tablaGrupos,
#tablaGrupos_wrapper,
#tablaGrupos_wrapper > * {
    border: none !important;
    border-left: none !important;
    border-right: none !important;
}

#tablaGrupos {
    width: 100% !important;
    border-collapse: collapse;
}

#tablaGrupos thead th,
#tablaGrupos tbody td,
#tablaGrupos thead tr,
#tablaGrupos tbody tr {
    border-left: none !important;
    border-right: none !important;
}

/* Clase display de DataTables - remover bordes */
table.display,
table.display thead th,
table.display tbody td {
    border-left: none !important;
    border-right: none !important;
}

#tablaGrupos thead th {
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
    border-top: none !important;
    padding: 10px 12px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #6b7280 !important;
    white-space: nowrap;
    position: relative;
    text-align: left !important;
}

/* Columna Nombre ocupa más espacio */
#tablaGrupos thead th:nth-child(2) {
    width: auto;
}

/* Columna Acciones fija */
#tablaGrupos thead th:nth-child(3) {
    width: 80px;
    text-align: center !important;
}

/* Iconos de ordenamiento */
#tablaGrupos thead th.sorting,
#tablaGrupos thead th.sorting_asc,
#tablaGrupos thead th.sorting_desc {
    padding-right: 24px !important;
    cursor: pointer;
}

#tablaGrupos thead th.sorting::after,
#tablaGrupos thead th.sorting_asc::after,
#tablaGrupos thead th.sorting_desc::after {
    display: block !important;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    color: #9ca3af;
    opacity: 1 !important;
}

#tablaGrupos thead th.sorting::after {
    content: "▲▼" !important;
    font-size: 7px;
    line-height: 1;
    letter-spacing: -2px;
}

#tablaGrupos thead th.sorting_asc::after {
    content: "▲" !important;
    color: var(--color, #29c178);
}

#tablaGrupos thead th.sorting_desc::after {
    content: "▼" !important;
    color: var(--color, #29c178);
}

#tablaGrupos tbody td {
    padding: 10px 12px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    border-top: none !important;
    vertical-align: middle !important;
    font-size: 13px;
    color: #374151;
    text-align: left !important;
    background: #fff !important;
}

/* Sin zebra striping */
#tablaGrupos tbody tr,
#tablaGrupos tbody tr.odd,
#tablaGrupos tbody tr.even {
    background: #fff !important;
}

#tablaGrupos tbody tr:hover,
#tablaGrupos tbody tr.odd:hover,
#tablaGrupos tbody tr.even:hover {
    background: #f9fafb !important;
}

/* Celda de nombre del grupo */
#tablaGrupos tbody td:nth-child(2) {
    font-weight: 500;
    color: #1f2937;
    text-align: left !important;
}

/* Nombre clickeable */
.grupo-nombre-link {
    color: #1f2937 !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.15s ease;
}

.grupo-nombre-link:hover {
    color: var(--color, #29c178) !important;
    text-decoration: none !important;
}

/* Celda de acciones */
#tablaGrupos .actions-cell,
#tablaGrupos tbody td:nth-child(3),
#tablaGrupos tbody td:last-child {
    text-align: center !important;
    white-space: nowrap;
    width: 80px;
}

/* Dropdown en grupos */
#tablaGrupos .action-dropdown {
    display: inline-block;
}

#tablaGrupos .action-dropdown-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 16px;
    color: #6b7280;
    line-height: 1;
}

#tablaGrupos .action-dropdown-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

#tablaGrupos .action-dropdown.open .action-dropdown-btn {
    background: #f3f4f6;
    border-color: var(--color, #29c178);
}

#tablaGrupos .action-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 150px;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

#tablaGrupos .action-dropdown.open .action-dropdown-menu {
    display: block;
}

#tablaGrupos .action-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    font-size: 12px;
    color: #374151;
    cursor: pointer;
    text-align: left;
    transition: background 0.1s ease;
}

#tablaGrupos .action-dropdown-item:hover {
    background: #f3f4f6;
}

#tablaGrupos .action-dropdown-item.danger {
    color: #dc2626;
}

#tablaGrupos .action-dropdown-item.danger:hover {
    background: #fef2f2;
}

#tablaGrupos .action-dropdown-item i {
    width: 14px;
    font-size: 13px;
    color: #9ca3af;
}

#tablaGrupos .action-dropdown-item.danger i {
    color: #dc2626;
}

#tablaGrupos .action-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* Panel contenedor grupos */
.TablaGrupos {
    margin-top: 0;
}

/* GruposActivos panel - remover todos los bordes */
.GruposActivos,
.GruposActivos .panel,
.GruposActivos .panel-heading,
.GruposActivos .panel-body,
.GruposActivos .TablaGrupos {
    border: none !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

.GruposActivos .panel {
    margin-bottom: 0;
    background: transparent;
}

.GruposActivos .panel-heading {
    background: transparent !important;
    padding: 0 0 12px 0 !important;
}

.GruposActivos .panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.GruposActivos .panel-body {
    padding: 0 !important;
}

/* Aviso sin grupos */
#avisoSinGrupos {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 14px;
    background: #f9fafb;
    border-radius: 8px;
    margin-top: 16px;
}

/* Responsive grupos */
@media (max-width: 640px) {
    #tablaGrupos_wrapper .dataTables_filter {
        float: none;
        text-align: left;
    }

    #tablaGrupos_wrapper .dataTables_filter input {
        width: 100%;
    }
}

/* ========================================
   ELIMINACIÓN MÚLTIPLE (BULK DELETE)
   ======================================== */

/* Panel header con acciones */
.GruposActivos .panel-heading {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.GruposActivos .panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Botón eliminar seleccionados */
.btn-bulk-delete {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-bulk-delete:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.btn-bulk-delete i {
    font-size: 14px;
}

.btn-bulk-delete .count {
    font-weight: 600;
}

/* Columna de checkbox */
#tablaGrupos thead th.select-cell,
#tablaGrupos tbody td.select-cell {
    width: 40px !important;
    min-width: 40px;
    max-width: 40px;
    text-align: center !important;
    padding: 10px 8px !important;
}

/* Checkbox estilo */
.grupo-checkbox,
#selectAllGrupos {
    width: 16px !important;
    height: 16px !important;
    cursor: pointer;
    accent-color: var(--color, #29c178);
    margin: 0;
}

/* Fila seleccionada */
#tablaGrupos tbody tr.selected,
#tablaGrupos tbody tr:has(.grupo-checkbox:checked) {
    background: rgba(41, 193, 120, 0.05) !important;
}

#tablaGrupos tbody tr.selected:hover,
#tablaGrupos tbody tr:has(.grupo-checkbox:checked):hover {
    background: rgba(41, 193, 120, 0.08) !important;
}

/* Ajuste columnas con checkbox */
#tablaGrupos thead th:nth-child(3) {
    width: auto !important;
}

#tablaGrupos thead th:nth-child(4) {
    width: 80px;
    text-align: center !important;
}

#tablaGrupos tbody td:nth-child(3) {
    font-weight: 500;
    color: #1f2937;
    text-align: left !important;
}

#tablaGrupos tbody td:nth-child(4) {
    text-align: center !important;
    width: 80px;
}

/* Responsive bulk delete */
@media (max-width: 640px) {
    .GruposActivos .panel-heading,
    .InventariosActivos .panel-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-bulk-delete {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   INVENTARIOS TABLE STYLES
   ======================================== */

/* Panel header con acciones */
.InventariosActivos .panel-heading {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.InventariosActivos .panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tabla de inventarios */
#tablaInventarios {
    border: none !important;
    border-collapse: collapse !important;
}

#tablaInventarios_wrapper {
    border: none !important;
}

#tablaInventarios thead th {
    background: #f9fafb !important;
    border: none !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 10px 12px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    text-transform: none;
    letter-spacing: 0;
    text-align: left !important;
}

#tablaInventarios tbody td {
    border: none !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 10px 12px !important;
    font-size: 14px;
    color: #374151;
    vertical-align: middle !important;
    background: #fff !important;
    text-align: left !important;
}

#tablaInventarios tbody tr:hover td {
    background: #f9fafb !important;
}

#tablaInventarios tbody tr.odd td,
#tablaInventarios tbody tr.even td {
    background: #fff !important;
}

#tablaInventarios tbody tr.odd:hover td,
#tablaInventarios tbody tr.even:hover td {
    background: #f9fafb !important;
}

/* Columna checkbox inventarios */
#tablaInventarios thead th.select-cell,
#tablaInventarios tbody td.select-cell {
    width: 40px !important;
    min-width: 40px;
    max-width: 40px;
    text-align: center !important;
    padding: 10px 8px !important;
}

/* Checkbox estilo inventarios */
.inventario-checkbox,
#selectAllInventarios {
    width: 16px !important;
    height: 16px !important;
    cursor: pointer;
    accent-color: var(--color, #29c178);
    margin: 0;
}

/* Nombre clickeable inventarios */
.inventario-nombre-link {
    color: #1f2937;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

.inventario-nombre-link:hover {
    color: var(--color, #29c178);
    text-decoration: none;
}

/* Fila seleccionada inventarios */
#tablaInventarios tbody tr:has(.inventario-checkbox:checked) td {
    background: rgba(41, 193, 120, 0.05) !important;
}

#tablaInventarios tbody tr:has(.inventario-checkbox:checked):hover td {
    background: rgba(41, 193, 120, 0.08) !important;
}

/* Columnas inventarios */
#tablaInventarios thead th:nth-child(3) {
    width: auto !important;
}

#tablaInventarios thead th:nth-child(4) {
    width: 80px;
    text-align: center !important;
}

#tablaInventarios tbody td:nth-child(3) {
    font-weight: 500;
    color: #1f2937;
}

#tablaInventarios tbody td:nth-child(4) {
    text-align: center !important;
    width: 80px;
}

/* Fix DataTable controls alignment inventarios */
#tablaInventarios_wrapper .dataTables_length,
#tablaInventarios_wrapper .dataTables_filter {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
}

#tablaInventarios_wrapper .dataTables_length {
    float: left;
}

#tablaInventarios_wrapper .dataTables_filter {
    float: right;
}

#tablaInventarios_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

#tablaInventarios_wrapper .dataTables_length select {
    padding: 6px 28px 6px 10px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    font-size: 13px !important;
    color: #374151 !important;
    height: auto !important;
    min-width: 60px !important;
}

#tablaInventarios_wrapper .dataTables_filter input {
    padding: 6px 12px 6px 32px !important;
    font-size: 13px !important;
    width: 200px;
}

#tablaInventarios_wrapper::after {
    content: "";
    display: table;
    clear: both;
}

/* Aviso sin inventarios */
.aviso-vacio {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 16px;
}

.aviso-vacio i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
    display: block;
}

.aviso-vacio p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* ========================================
   EDITAR INVENTARIO STYLES
   ======================================== */

/* Header con volver y título */
#TituloTarea {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px !important;
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb;
}

#TituloTarea .header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

#TituloTarea .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

#TituloTarea #tituloSeccion {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Botón volver */
.btn-volver {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-volver:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #1f2937;
    text-decoration: none;
}

.btn-volver i {
    font-size: 14px;
}

/* Botón exportar excel */
.btn-exportar-excel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-exportar-excel:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    text-decoration: none;
    color: #1f2937;
}

.btn-exportar-excel i {
    font-size: 14px;
}

/* Upload area */
.SubirArchivoDiv {
    margin: 16px 0;
}

/* Acciones editar inventario */
.acciones-editar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* Preview Excel table */
#ExcelPrevio {
    margin-top: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#ExcelPrevio table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: auto;
    min-width: 600px; /* Ensure minimum width for readability */
}

#ExcelPrevio table thead th {
    background: #f9fafb;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: #6b7280;
    text-align: left;
    white-space: nowrap;
    min-width: 100px; /* Minimum column width */
}

#ExcelPrevio table tbody td {
    border: none;
    border-bottom: 1px solid #f3f4f6;
    padding: 12px 16px;
    color: #374151;
    font-size: 14px;
    white-space: nowrap; /* Prevent text breaking */
    min-width: 100px; /* Minimum column width */
}

/* Allow wrapping only for long text columns like Nombre */
#ExcelPrevio table tbody td:first-child,
#ExcelPrevio table thead th:first-child {
    min-width: 150px;
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
}

#ExcelPrevio table tbody tr:hover td {
    background: #f9fafb;
}

/* Panel preview styling */
#panelPreview .panel-body {
    padding: 20px;
}

/* Responsive header editar inventario */
@media (max-width: 640px) {
    #TituloTarea {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    #TituloTarea .header-left {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    #TituloTarea .header-right {
        width: 100%;
    }

    .btn-exportar-excel {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   CREAR INLINE (FORMULARIO EN HEADER)
   ======================================== */

/* Contenedor inline para crear */
.crear-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.crear-inline .form-control {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    color: #374151;
    transition: all 0.15s ease;
}

.crear-inline .form-control:focus {
    outline: none;
    border-color: var(--color, #29c178);
    box-shadow: 0 0 0 3px rgba(41, 193, 120, 0.1);
}

.crear-inline .form-control::placeholder {
    color: #9ca3af;
}

.crear-inline .btn-luuk-primary {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
}

/* Panel header mejorado */
.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.panel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .crear-inline {
        flex-direction: column;
        width: 100%;
    }

    .crear-inline .form-control {
        width: 100%;
    }

    .crear-inline .btn-luuk-primary {
        width: 100%;
        justify-content: center;
    }

    .panel-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-actions {
        width: 100%;
    }
}

/* ========================================
   USUARIOS - LAYOUT MEJORADO
   ======================================== */

/* Cupo badge compacto */
.cupo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    color: #6b7280;
}

.cupo-badge-value {
    font-weight: 600;
    color: #1f2937;
}

/* ========================================
   IMPORTAR EXCEL COLAPSABLE
   ======================================== */

.import-excel-collapsable {
    margin-bottom: 16px;
}

/* Botón toggle */
.btn-toggle-import {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f9fafb;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-toggle-import:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.btn-toggle-import i:first-child {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.btn-toggle-import.open i:first-child {
    transform: rotate(90deg);
}

.btn-toggle-import i:nth-child(2) {
    font-size: 14px;
    color: #6b7280;
}

/* Contenido colapsable */
.import-excel-content {
    margin-top: 12px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.import-excel-content p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px 0;
}

.link-plantilla {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color, #29c178);
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
}

.link-plantilla:hover {
    text-decoration: underline;
}

.link-plantilla i {
    font-size: 14px;
}

.import-excel-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.import-excel-actions input[type="file"] {
    font-size: 13px;
    color: #374151;
}

.btn-subir-excel {
    padding: 6px 14px;
    background: var(--color, #29c178);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s ease;
    width: auto;
    display: inline-block;
}

.btn-subir-excel:hover {
    opacity: 0.9;
}

/* Ocultar viejo estilo */
#ImportarDesdeExcel {
    display: none !important;
}

/* ========================================
   PROVEEDORES - LAYOUT MEJORADO
   ======================================== */

/* Row agregar proveedor */
.agregarProovedor {
    margin-bottom: 0;
}

.agregarProovedor .margin-bottom-15 {
    margin-bottom: 0 !important;
}

/* Ocultar por defecto la fila agregar proveedor - botón se mueve al header */
.agregarProovedor {
    display: none;
}

/* ========================================
   BOTONES DE ACCIÓN INLINE
   ======================================== */

.action-buttons {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.action-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.action-btn:focus {
    outline: none;
    border-color: var(--color, #29c178);
    box-shadow: 0 0 0 2px rgba(41, 193, 120, 0.1);
}

.action-btn i {
    font-size: 14px;
}

/* Variante danger */
.action-btn-danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

/* Variante primary */
.action-btn-primary:hover {
    background: rgba(41, 193, 120, 0.1);
    border-color: var(--color, #29c178);
    color: var(--color, #29c178);
}

/* Variante edit */
.action-btn-edit:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #93c5fd;
    color: #2563eb;
}

/* ========================================
   ÁREAS - TABLA ESPECÍFICA
   ======================================== */

/* AreasActivos panel - mismo estilo que grupos */
.AreasActivos,
.AreasActivos .panel,
.AreasActivos .panel-heading,
.AreasActivos .panel-body,
.AreasActivos .TablaAreas {
    border: none !important;
    box-shadow: none !important;
}

.AreasActivos .panel {
    margin-bottom: 0;
    background: transparent;
}

.AreasActivos .panel-heading {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    background: transparent !important;
    padding: 0 0 12px 0 !important;
}

.AreasActivos .panel-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.AreasActivos .panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.AreasActivos .panel-body {
    padding: 0 !important;
}

/* Tabla de áreas */
#tablaAreas {
    width: 100% !important;
    border-collapse: collapse;
}

#tablaAreas,
#tablaAreas_wrapper,
#tablaAreas thead th,
#tablaAreas tbody td {
    border: none !important;
    border-left: none !important;
    border-right: none !important;
}

#tablaAreas thead th {
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 10px 12px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #6b7280 !important;
    text-transform: none;
    letter-spacing: 0;
    text-align: left !important;
}

#tablaAreas tbody td {
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 10px 12px !important;
    font-size: 13px;
    color: #374151;
    vertical-align: middle !important;
    background: #fff !important;
    text-align: left !important;
}

#tablaAreas tbody tr:hover td {
    background: #f9fafb !important;
}

#tablaAreas tbody tr.odd td,
#tablaAreas tbody tr.even td {
    background: #fff !important;
}

/* Columna checkbox áreas */
#tablaAreas thead th.select-cell,
#tablaAreas tbody td.select-cell {
    width: 40px !important;
    min-width: 40px;
    max-width: 40px;
    text-align: center !important;
    padding: 10px 8px !important;
}

/* Checkbox estilo áreas */
.area-checkbox,
#selectAllAreas {
    width: 16px !important;
    height: 16px !important;
    cursor: pointer;
    accent-color: var(--color, #29c178);
    margin: 0;
}

/* Nombre editable áreas */
.nombre-editable {
    font-weight: 500;
    color: #1f2937;
}

/* Fila seleccionada áreas */
#tablaAreas tbody tr:has(.area-checkbox:checked) td {
    background: rgba(41, 193, 120, 0.05) !important;
}

/* Botones de acción en filas de áreas - usando clases unificadas */
.btn-group-areas {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

/* Alias: btn-area-action usa estilos de table-action-btn */
.btn-area-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #fff;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-area-action i {
    font-size: 13px;
    color: #6b7280;
}

.btn-area-action:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* Variantes usando clases unificadas */
.btn-area-action.btn-usuarios:hover,
.table-action-btn.btn-usuarios:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #93c5fd;
    color: #2563eb;
}
.btn-area-action.btn-usuarios:hover i,
.table-action-btn.btn-usuarios:hover i {
    color: #2563eb;
}

.btn-area-action.btn-formularios:hover,
.table-action-btn.btn-formularios:hover {
    background: rgba(41, 193, 120, 0.1);
    border-color: var(--color, #29c178);
    color: var(--color, #29c178);
}
.btn-area-action.btn-formularios:hover i,
.table-action-btn.btn-formularios:hover i {
    color: var(--color, #29c178);
}

.btn-area-action.btn-editar,
.table-action-btn.btn-editar {
    padding: 5px 8px;
}
.btn-area-action.btn-editar:hover,
.table-action-btn.btn-editar:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #fcd34d;
    color: #d97706;
}
.btn-area-action.btn-editar:hover i,
.table-action-btn.btn-editar:hover i {
    color: #d97706;
}

.btn-area-action.btn-eliminar,
.table-action-btn.btn-eliminar {
    padding: 5px 8px;
}
.btn-area-action.btn-eliminar:hover,
.table-action-btn.btn-eliminar:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}
.btn-area-action.btn-eliminar:hover i,
.table-action-btn.btn-eliminar:hover i {
    color: #dc2626;
}

/* DataTable controls para áreas */
#tablaAreas_wrapper .dataTables_length,
#tablaAreas_wrapper .dataTables_filter {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
}

#tablaAreas_wrapper .dataTables_length {
    float: left;
}

#tablaAreas_wrapper .dataTables_filter {
    float: right;
}

#tablaAreas_wrapper .dataTables_length label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}

#tablaAreas_wrapper .dataTables_length select {
    padding: 6px 28px 6px 10px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    font-size: 13px !important;
    color: #374151 !important;
    height: auto !important;
    min-width: 60px !important;
}

#tablaAreas_wrapper .dataTables_filter input {
    padding: 6px 12px 6px 32px !important;
    font-size: 13px !important;
    width: 200px;
}

#tablaAreas_wrapper .dataTables_info {
    padding-top: 10px;
    color: #6b7280;
    font-size: 12px;
}

#tablaAreas_wrapper .dataTables_paginate {
    padding-top: 10px;
}

#tablaAreas_wrapper .dataTables_paginate .paginate_button {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
}

/* Responsive áreas */
@media (max-width: 768px) {
    .btn-group-areas {
        flex-direction: column;
        gap: 4px;
    }

    .btn-area-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    #tablaAreas_wrapper .dataTables_filter {
        float: none;
        text-align: left;
    }

    #tablaAreas_wrapper .dataTables_filter input {
        width: 100%;
    }
}
