:root {
    --primarioO: #00329e;
    --primarioC: #63befa;
    --fondo: #f3f6f9;
}
html, body {
    height: 100%;
    overflow: hidden;
    background: var(--fondo);
}
.fotoChica {
    max-height: 100px; 
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.cardPrin, .cardSec {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #f0f0f0;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.cardPrin-body,
.cardSec-body{
    overflow-y:auto;
    padding:5px;
}
.cardPrin-header,
.cardPrin-footer,
.cardSec-header,
.cardSec-footer{
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0.7rem;
    align-items: center;
    gap:0.5rem;
}
.cardPrin-header {
    color: white;
    background: linear-gradient(to right, var(--primarioO), #4a5568);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.2);
    font-weight: bold;
    font-size: 1.2rem;
}
.cardPrin-footer {
    background: linear-gradient(135deg, var(--primarioC), #1a202c);
    border-top: 1px solid rgba(0,0,0,0.2);
    font-size: 0.9rem;
}
.cardSec-header{
    color: white;
    background:linear-gradient( 135deg, black,var(--primarioC));
    border-bottom:1px solid rgba(0,0,0,0.2);
    box-shadow:inset 0 1px 0 rgba(255,255,255,0.2);
    font-weight:600;
    font-size: 1rem;  
}
.cardSec-footer{
    background:linear-gradient(0deg, var(--primarioC),#fff);
    border-top:1px solid #e5e7eb;
    font-size:0.9rem;
}
/* formularios */
.inpSolo,.etiBase,.inpBase,.etiLectura,.etiChico,.inpChico {
    border-width: 1px 1px 0 1px;
    border: 1px solid black;
    width: 100%;
    font-size: 16px;
    padding: 2px; 
}
.etiBase, .etiLectura, .etiChico {border-top-left-radius: 6px;border-top-right-radius: 6px;}
.etiChico, .inpChico{font-size: 12px;}
.inpBase, .inpChico {
    border: 1px solid var(--primarioC);
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    overflow: hidden;
}
.etiBase {background: linear-gradient(to right, var(--primarioC), white);color: black;}
.inpBase, .inpChico {background-color: white;color: black;}
.inpSolo {border-radius: 5px;}
.etiChico {background: linear-gradient(to right,  black, var(--primarioC));color: white;}
.etiLectura {background: linear-gradient(to right,  black, var(--primarioO));color: white;}

.bot {
    position: relative;
    display: inline-block;
    margin: 0 2px;
    padding: 2px 8px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    border-radius: .375rem;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    outline: none;
    border: none;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.1), inset 0 1px 2px rgba(255,255,255,0.25);
    line-height: normal;
}
.bot::before,
.bot::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: inherit;
    pointer-events: none;
}
.bot::before {
    bottom: 0;
    height: 35%;
    background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent);
}
.bot::after {
    top: 0;
    height: 50%;
    background: linear-gradient(180deg, rgb(255, 255, 255), rgba(255, 255, 255, 0.485) 40%, transparent);
}
.botChico{
    padding:1px 6px;
    font-size:0.8rem;
}
.bot:hover, .bot:focus-visible  { background: steelblue;}
.botNegro   { background: black; }
.botVerde   { background: green; }
.botNaranja { background: orange; }
.botMorado { background: purple; }
.botRojo    { background: red; }
.botAzul    { background: blue; }
.botVerdeC  { background: lightgreen; color: black}
.botGris { background: lightgray; color: black; }
.botAzulC   { background: lightskyblue; color: black}
.botBlanco {background: white; color: black}
.botAmarillo {background: yellow; color: black}

/* tablas */
.tabBase {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.tablaCont {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.tabBase th,
.tabBase td {
    padding: 6px 8px;
    line-height: 1.3;
    border: 1px solid lightgray;
    text-align: left;
}

.tabBase th {
    background: linear-gradient(to bottom right, white, var(--primarioC));
    color: var(--Negro);
}

.tabBase thead th {
    position: sticky;
    top: 0;
    z-index: 10;
}

.tabBase td {
    background: white;
}

.tabBase tr:nth-child(even) td {
    background: rgb(239, 255, 255);
}

.tabBase tr:hover td {
    background: yellow;
    cursor: pointer;
}

.tabBase.ch th,
.tabBase.ch td {
    padding: 4px 6px;
}

@media (max-width: 767.98px) {
    .tabBase.ch th,
    .tabBase.ch td {
        font-size: 14px;
        padding: 4px;
    }

    .tabBase.ch .codigoProducto {
        font-size: 11px;
    }

    .tabBase.ch .nombreProducto {
        font-size: 14px;
        line-height: 1.2;
    }

    .tabBase.ch .cantidadProducto,
    .tabBase.ch .importeProducto {
        font-size: 14px;
    }

    .tabBase.ch .botEliminar {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 768px) {
    .tabBase.ch th,
    .tabBase.ch td {
        font-size: 15px;
        padding: 6px;
    }
}
/* modales */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 49, 87, 0.4);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow-y: auto; 
}
.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin-top: 40px;
    z-index: 10000;
}
@media (max-width: 767.98px) {
    .modal-overlay {
        padding: 4px;
    }

    .modal-dialog {
        width: 100%;
        max-width: none;
        margin-top: 4px;
    }
}
.modal-content{
    overflow-x:hidden;
}
.modal-content .row{
    margin-left:0;
    margin-right:0;
}
/* Tabs */
.tab-container {
    display: flex;
    flex-direction: column;
    min-height: 200px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dfe3e8;
}

.tab-headers {
    display: flex;
    background: #f4f6f8;
    border-bottom: 1px solid #dfe3e8;
}

.tab-button {
    flex: 1;
    padding: 2px 4px;
    border: 0;
    background: #eceff3;
    color: #6c757d;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: .15s ease;
    border-right: 1px solid #dfe3e8;
}

.tab-button:last-child {
    border-right: 0;
}

.tab-button:hover {
    background: #e4e8ed;
}

.tab-button.active {
    background: #fff;
    color: var(--primarioC);
    box-shadow: inset 0 3px 0 var(--primarioC);
}

.tab-content-wrapper {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}