.table-responsive{ 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

table.table thead tr {
    background: #f9fafb;
}

table.table thead th {
    color: #9ca3af;
    font-weight: 600;
    padding: 8px 10px;
    text-align: left;
    border: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

table.table tbody tr {
    transition: all 0.15s ease;
    border-bottom: 1px solid #f3f4f6;
}

table.table tbody tr:hover {
    background-color: #fafafa;
}

table.table td {
    padding: 6px 10px;
    vertical-align: middle;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    font-size: 12.5px;
}

table.table.is-striped tbody tr:nth-child(even) {
    background-color: rgba(0,0,0,0.015);
}

table.table.is-hoverable tbody tr:hover {
    background-color: #fafafa;
}

table.table.is-bordered td,
table.table.is-bordered th {
    border: 1px solid #f3f4f6;
}

table.table.is-narrow td {
    padding: 6px 10px;
}

table.table.is-fullwidth {
    width: 100%;
}

table.table .is-actions {
    white-space: nowrap;
    width: 1%;
}

table.table .tag {
    font-size: 11px;
    padding: 0 8px;
    height: 22px;
    line-height: 20px;
    border-radius: 6px;
    font-weight: 600;
}

@media (max-width: 768px) {
    table.table {
        font-size: 12px;
    }
    
    table.table thead th,
    table.table td {
        padding: 8px 10px;
    }
    
    .table-responsive {
        border-radius: 8px;
    }
}

/* Action buttons inside tables - product-list style */
table.table .button.is-small,
table.table a.button.is-small,
table.table button.button.is-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0 !important;
    border-radius: 6px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    color: #9ca3af !important;
    text-decoration: none;
    transition: all 0.15s ease;
    vertical-align: middle;
    font-size: 12px;
}
table.table .button.is-small:hover,
table.table a.button.is-small:hover {
    border-color: #2563eb !important;
    color: #2563eb !important;
    background: #fff !important;
}
table.table .button.is-small.is-danger {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #dc2626 !important;
}
table.table .button.is-small.is-danger:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

/* Inline forms in tables */
table.table form.FormularioAjax {
    display: inline !important;
}


/* Pagination generated by controllers - product-list style */
.pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 4px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.15s ease;
    box-sizing: border-box;
}
.pagination a:hover {
    border-color: #2563eb;
    color: #2563eb;
}
.pagination .is-active {
    background: #111827;
    color: #fff;
    border-color: #111827;
    font-weight: 500;
}
.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pagination info text */
p.has-text-right {
    font-size: 12px;
    color: #9ca3af;
    padding: 12px 16px;
    margin: 0;
}