/*============================================================================== LIQUIDACIÓN */
.liqMenu {
    width: 100%;
    height: 44px;
    margin-top: 0;
    background-color: #DEEEFF;
    display: grid;
    grid-template-columns: 15px auto 1fr 10px;
    grid-template-areas: ". liqTitle . .";
    place-items: center start;
}
.liqTitle {
    grid-area: liqTitle;
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: bold;
}
/*------------------------------------------------------------------------------ SELECTOR */
.liqSelectorBox {
    width: 100%;
    padding: 16px 20px 20px;
    box-sizing: border-box;
}
.liqGrid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    width: 100%;
}
@media (max-width: 700px) {
    .liqGrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
    .liqGrid { grid-template-columns: repeat(2, 1fr); }
}
.liqBtn {
    height: 70px;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 12px;
    transition: filter 0.15s, transform 0.1s;
    line-height: 1.3;
}
.liqBtn:hover  { filter: brightness(1.12); transform: translateY(-2px); }
.liqBtn:active { filter: brightness(0.92); transform: translateY(0);    }

.liqBtn-positiva { background: #FF4000; }
.liqBtn-pacifico { background: #0080AA; }
.liqBtn-mapfre   { background: #004B87; }
.liqBtn-rimac    { background: #E4002B; }
.liqBtn-crecer   { background: #007A3D; }
.liqBtn-sanitas  { background: #00ADCF; }

/*------------------------------------------------------------------------------ SUB-SELECTOR La Positiva */
.liqSubBox {
    display: none;
    width: 100%;
    padding: 0 20px 30px;
    box-sizing: border-box;
}
.liqSubBox.visible {
    display: block;
}
.liqDivider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 0 0 16px;
}

.liqBtnDouble {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}
.liqBtnDouble span:first-child {
    font-size: 14px;
    font-weight: 700;
}
.liqBtnSub {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.85;
} 
.liqSubGrid1,
.liqSubGrid2,
.liqSubGrid4,
.liqSubGrid5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, 160px);
    gap: 12px;
    justify-content: center;
}
.liqBtn-pac1 { background: #0080AA; }
.liqBtn-pac2 { background: #007099; }
.liqBtn-pac3 { background: #006088; }
.liqBtn-pac4 { background: #005077; }
.liqSubInner {
    display: block;
    width: 100%;
}
.liqBtn-san1 { background: #00ADCF; }
.liqBtn-san2 { background: #009CBE; }
.liqBtn-cre1 { background: #007A3D; }
.liqBtn-rim1 { background: #E4002B; }
.liqBtn-rim2 { background: #C20025; }
.liqBtn-rim3 { background: #A1001F; }
.liqBtn-rim4 { background: #810019; }
.liqBtn-map1 { background: #C8001A; }
.liqBtn-map2 { background: #C8001A; }
.liqBtn-map3 { background: #A80016; }
.liqBtn-map4 { background: #8A0012; }
.liqBtn-map5 { background: #6E000E; }
.liqBtn-sub1 { background: #FF4000; }
.liqBtn-sub2 { background: #EE3000; }
.liqBtn-sub3 { background: #DD2000; }
.liqBtn-sub4 { background: #CC1000; }
.liqBtn-sub5 { background: #BB0000; }
/*------------------------------------------------------------------------------ LISTA DE ARCHIVOS */
.liqListaBox {
    padding: 10px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.liqListaTitulo {
    font-size: 14px;
    font-weight: 700;
    color: #036;
    text-align: center;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.liqListaTipos {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 14px;
}
.liqListaTable {
    width: auto;
    border-collapse: collapse;
    font-size: 13px;
}
.liqListaTable thead {
    background: #036;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.liqListaTable thead th {
    padding: 6px 10px;
    text-align: center;
    vertical-align: middle;
}
.liqThFecha   { width: 120px; }
.liqThAccion  { width: 70px;  }
.liqBtnSubir {
    font-size: 10px;
    padding: 2px 7px;
    border: 1px solid #aaa;
    border-radius: 4px;
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.4;
}
.liqBtnSubir:hover { background: #e0e0e0; border-color: #888; }
.liqListaFila:nth-child(even) { background: #E7E7E7; }
.liqListaFila:nth-child(odd)  { background: #fff; }
.liqTdFecha {
    padding: 5px 10px;
    color: #600;
    font-weight: 600;
    white-space: nowrap;
}
.liqTdArchivo {
    padding: 5px 10px;
    color: #333;
}
.liqTdAccion {
    padding: 5px 10px;
    text-align: center;
}
.liqIconoAbrir {
    color: #036;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
}
.liqIconoAbrir:hover { color: #069; text-decoration: none; }
.liqIconoVer {
    color: #690;
    font-size: 15px;
    cursor: default;
    display: inline-block;
}
.liqIconoVer:hover { color: #9c0; }
.liqListaVacio {
    padding: 20px;
    color: #999;
    font-style: italic;
}
/*------------------------------------------------------------------------------ MOBILE: SELECTOR / SUB-SELECTOR */
@media (max-width: 480px) {
    .liqSelectorBox {
        padding: 8px 10px 12px;
    }
    .liqGrid {
        gap: 8px;
    }
    .liqSubBox {
        padding: 0 10px 20px;
    }
    .liqSubGrid1,
    .liqSubGrid2,
    .liqSubGrid4,
    .liqSubGrid5 {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
        justify-content: stretch;
    }
    .liqBtn {
        height: 56px;
    }
    .liqBtnDouble span:first-child {
        font-size: 12px;
    }
    .liqBtnSub {
        font-size: 10px;
    }
}
/*------------------------------------------------------------------------------ MOBILE: LISTA DE ARCHIVOS */
@media (max-width: 600px) {
    .liqListaBox {
        overflow-x: auto;
        align-items: stretch;
        padding: 10px 0 20px;
    }
    .liqListaTitulo {
        font-size: 12px;
        padding: 0 8px;
    }
    .liqListaTipos {
        font-size: 11px;
        padding: 0 8px;
    }
    /* Ocultar columna Fecha (1ª) y Nº Liquidación (3ª) — aplica a todos los *Lista.php */
    .liqListaTable thead tr th:nth-child(1),
    .liqListaTable tbody tr td:nth-child(1),
    .liqListaTable thead tr th:nth-child(3),
    .liqListaTable tbody tr td:nth-child(3) {
        display: none;
    }
    .liqListaTable {
        font-size: 11px;
    }
    .liqTdArchivo {
        padding: 5px 8px;
        font-size: 11px;
    }
    .liqTdAccion {
        padding: 5px 6px;
    }
    .liqThAccion {
        width: 36px;
    }
}
