.vistaT {
    display: none;
}

.tituloV {
    background-color: var(--color-Secundario);
    color: white;
    font-weight: 900;
    text-align: center;
    border-radius: 20px;
    margin-left: 20px;
    margin-right: 20px;    
}

#pills-tab {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.active {
    background-color: var(--color-Principal);
    color: white;
}

.nav>li {
    flex: 1;
    text-align: center;
}

li.nav-item {
    cursor: pointer;
    max-width: 20%;
}

.nav-pills>li>a {
    height: 55px !important;
    display: flex;
    /* Flexbox para alinear */
    justify-content: center;
    /* Centrado horizontal */
    align-items: center;
    /* Centrado vertical */
    padding: 0;
    /* Remover padding para asegurar alineación */
    border-radius: 20px;
}

.nav>li>a:hover,
.nav>li>a:focus {
    height: 55px !important;
    display: flex;
    /* Asegurar que el hover y focus mantengan flexbox */
    justify-content: center;
    align-items: center;
}

.Card {
    margin: 20px;
    background: #ffffff;
    box-shadow: 0px 3px 6px rgba(197, 197, 197, .5019607843);
    border-radius: 20px;
    opacity: 1;
    padding: 18px;
    overflow-x: auto;
    max-width: calc(100vw - 40px);
}

.btnV10 {
    border: 0 !important;
    gap: 6px !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    color: black !important;
    padding: 5px !important;
}

#exportBtn:active,
#exportBtn:focus,
#exportBtn:hover {
    background-color: transparent !important;
    /* Evita que cambie el fondo al hacer clic */
    border: none !important;
    /* Evita que aparezca borde al hacer clic o al enfocarlo */
    box-shadow: none;
    /* Elimina cualquier sombra que pueda aparecer al hacer clic */
    outline: none;
    /* Elimina el borde de enfoque */
}

#DivExport {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* 2 */
html,
body {
    background-color: #F6F6F6 !important;
}

body .panel-default,
.panel-default>.panel-heading,
.panel-footer {
    background-color: #F6F6F6 !important;
}

.panel {
    border: none !important;
}

.panel-heading {
    border-bottom: none !important;
    padding-top: 0;
}

.panel-footer {
    border-top: none !important;
}

table {
    width: 100%;
    table-layout: fixed;
    /* Fija los anchos de las columnas según lo que se especifique */
}

table td:nth-child(1),
table th:nth-child(1) {
    width: 30px !important;
}

table td:nth-child(2),
table th:nth-child(2) {
    color: var(--color-Principal);
    width: 340px !important;
}

.container {
    width: 100% !important;
}

table td {
    text-align: center;
    color: #000;
    padding: 4px 1px;
    border-bottom: solid 1px #e4e4e4;
}

table th {
    background-color: #F6F6F6;
    padding: 12px 8px;    
}

.dataTables_wrapper {
    height: 400px !important;
    overflow: auto;
    overflow-x: hidden;
}

.dataTables_wrapper table.dataTable thead th {
    padding-left: 10px;
}

thead {
    position: sticky;
    top: -1px;
    z-index: 1;
    background-color: #F6F6F6 !important;
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: #c5c5c5;
    border-radius: 4px;
}

/* Fondo de la barra de desplazamiento */
::-webkit-scrollbar-track {
    background-color: #f0f0f0;
}

.btn:active {
    transform: scale(0.95);
}


.divBTN{
    display: flex;    
    justify-content: center;    
    align-items: center;
}

.btn {
    display: flex;    
    justify-content: center;    
    align-items: center;
    color: var(--color-Principal);
    border: 0;
    font-family: var(--fuente-Principal);
    font-size: 0.9rem;
    font-weight: 600;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.btn img {
    width: 20px;
    margin-left: 8px;
}

.btn:hover {
    color: var(--color-Secundario);
    background-color: rgba(163, 189, 54, 0.08);
    transform: translateY(-1px);
}

.btn:active {
    transform: scale(0.97);
}

.bkgGris {
    background-color: #ffffff;
}

/* ============================================
   MODAL DE CONFIRMACIÓN
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 42, 127, 0.18);
    width: 680px;
    max-width: 92vw;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.25s ease;
}

.modal-header {
    background-color: var(--color-Principal);
    color: #fff;
    padding: 18px 24px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.modal-header .modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.modal-header .modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
}

.modal-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-Principal);
    margin-bottom: 10px;
    margin-top: 4px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--color-Secundario);
}

.modal-params-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.modal-param-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modal-param-item.full-width {
    grid-column: 1 / -1;
}

.modal-param-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-param-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-NeutroFuerte);
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid var(--color-Secundario);
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}

.modal-param-value.empty {
    color: #bbb;
    font-style: italic;
    border-left-color: #ddd;
}

input.modal-input-editable {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d5dd;
    border-left: 3px solid var(--color-Principal);
    outline: none;
    font-family: inherit;
    cursor: text;
    transition: border-color 0.2s;
}

input.modal-input-editable:focus {
    border-color: var(--color-Principal);
    box-shadow: 0 0 0 2px rgba(0, 42, 127, 0.12);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 24px 20px 24px;
}

.modal-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--fuente-Principal);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-btn img {
    width: 18px;
    transition: filter 0.15s ease;
}

.modal-btn-cancel {
    background-color: transparent;
    color: var(--color-Principal);
}

.modal-btn-cancel:hover {
    background-color: rgba(0, 42, 127, 0.08);
    transform: translateY(-1px);
}

.modal-btn-confirm {
    background-color: transparent;
    color: var(--color-Principal);
}

.modal-btn-confirm img {
    filter: brightness(0) saturate(100%) invert(68%) sepia(35%) saturate(445%) hue-rotate(33deg) brightness(93%) contrast(87%);
}

.modal-btn-confirm:hover {
    background-color: rgba(163, 189, 54, 0.08);
    color: var(--color-Secundario);
    transform: translateY(-1px);
}

.modal-btn-cancel:active,
.modal-btn-confirm:active {
    transform: scale(0.97);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spinner para status de reportes */
.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #007bff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enlaces de administración en header */
.admin-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.admin-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.admin-links a:hover {
    background-color: rgba(255, 255, 255, 0.25);
}