/* Diseño base de todas las tablas de SIGA. Se carga después de main_estilo.css con la misma especificidad
   y sin !important: Componentes del cliente, thead-dark/light, bootstrap-table e impresión siguen ganando. */
.table {
    color: var(--sgx-k2, #3f4652);
}
.table > thead,
.table > tbody {
    background: var(--sgx-sf, #fff);
}
.table th,
.table td {
    padding: 10px 12px;
    vertical-align: middle;
    border-top: 1px solid #f0f1f3;
}
.table th {
    background: var(--sgx-sf, #fff);
    color: var(--sgx-k3, #6b7280);
    font-weight: 600;
    font-size: 13px;
}
.table thead th {
    border-bottom: 1px solid var(--sgx-ln3, #e6e8eb);
    vertical-align: middle;
}
table.table th a {
    color: inherit;
}
table.table th a:hover {
    color: var(--sgx-k, #0b0d12);
}
.table tr:nth-of-type(odd) {
    background: transparent;
}
.table tr:hover {
    background: var(--sgx-sf2, #fafbfc);
}
.table thead tr:hover {
    background: transparent;
}
.table tfoot td {
    border-top: 1px solid var(--sgx-ln3, #e6e8eb);
    color: var(--sgx-k3, #6b7280);
}

/* Estatus que vienen con color del catálogo en línea: píldora en lugar de bloque */
.table td .btn.text-white.btn-sm[style*="background"] {
    border: 0;
    border-radius: 999px;
    padding: 3px 10px;
    font-weight: 500;
    box-shadow: none;
}

/* Botones de acción: iconos sin caja */
.table li.lista-accion {
    border: 0;
    box-shadow: none;
    background: none;
    margin: 0 1px;
}
.table li.lista-accion:hover {
    box-shadow: none;
}
.table li.lista-accion > form {
    margin: 0;
}
.table li.lista-accion > .btn,
.table li.lista-accion > form > .btn,
.table li.lista-accion > .dropdown > .btn {
    min-width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: none;
    box-shadow: none;
}
.table li.lista-accion .btn:hover {
    background: var(--sgx-ln2, #f3f4f6);
}
.table .dropdown-toggle.btn-sm::after {
    display: none;
}
.table .dropdown-menu {
    border: 1px solid var(--sgx-ln3, #e6e8eb);
    border-radius: 10px;
    box-shadow: 0 16px 40px -12px rgba(15, 23, 42, .25);
    padding: 5px;
}
.table .dropdown-menu .nav-link,
.table .dropdown-menu .dropdown-item {
    border-radius: 6px;
}

/* Paginación */
.table tfoot .pagination {
    gap: 4px;
}
.table tfoot .page-link {
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--sgx-ln3, #e6e8eb);
    text-align: center;
    color: var(--sgx-k2, #3f4652);
}
.table tfoot .page-item.active .page-link {
    background: #0b0d12;
    border-color: #0b0d12;
    color: #fff;
}

/* Barras de filtros de los listados */
.cont-buscador .form-control,
.cont-buscador .select2-container .select2-selection--single,
.cont-buscador .select2-container .select2-selection--multiple {
    border-radius: 8px;
    border-color: var(--sgx-ln3, #dfe2e6);
}

/* Marca de notificación enviada / pendiente en los botones de correo y WhatsApp */
.sgx-noti {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--sgx-sf, #fff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.sgx-noti-ok {
    background: #16a34a;
    color: #fff;
}
.sgx-noti-ok .sgx-ic {
    width: 8px;
    height: 8px;
    stroke-width: 3.5;
}
.sgx-noti-pend {
    width: 10px;
    height: 10px;
    top: 3px;
    right: 3px;
    background: #f59e0b;
}

/* Encabezados de sección dentro de los menús de acción */
.dropdown-menu .sgx-mh {
    list-style: none;
    padding: 8px 10px 4px;
    margin-top: 4px;
    border-top: 1px solid #eef0f2;
    font-size: 12px;
    font-weight: 500;
    color: #9aa1ab;
}
.dropdown-menu .nav > .sgx-mh:first-child {
    margin-top: 0;
    border-top: 0;
}
.dropdown-menu .nav > .sgx-mi-del {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #eef0f2;
}
.dropdown-menu .nav > .sgx-mi-del .nav-link,
.dropdown-menu .nav > .sgx-mi-del .nav-link .sgx-ic {
    color: #dc2626;
}
.dropdown-menu .nav > .sgx-mi-del .nav-link:hover {
    background: #fef2f2;
}
