/* GRUPO DEL ARCE — SISTEMA INTEGRAL */
/* FORMATO MAESTRO */

:root {
    --verde: #214638;
    --verde-oscuro: #17372c;
    --verde-claro: #edf4ef;
    --fondo: #f4f6f5;
    --blanco: #ffffff;
    --texto: #24352e;
    --secundario: #718078;
    --borde: #e3e9e5;
    --sombra: 0 3px 16px rgba(20,45,32,.045);
}

* {
    box-sizing: border-box;
}

body.sistema {
    margin: 0;
    background: var(--fondo);
    color: var(--texto);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* MENÚ LATERAL */

.app-sidebar {
    width: 250px;
    min-width: 250px;
    background: var(--verde-oscuro);
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 26px 20px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.app-brand-symbol {
    width: 43px;
    height: 43px;
    border-radius: 11px;
    background: #ffffff;
    color: var(--verde-oscuro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    flex-shrink: 0;
}

.app-brand strong {
    display: block;
    font-size: 12px;
    letter-spacing: .5px;
}

.app-brand small {
    display: block;
    margin-top: 3px;
    color: #b5cbc0;
    font-size: 11px;
}

.app-sidebar-label {
    padding: 28px 20px 10px;
    color: #92aea0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.app-menu {
    padding: 0 11px;
}

.app-menu a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    margin-bottom: 5px;
    color: #dce9e1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: background .2s;
}

.app-menu a:hover,
.app-menu a:focus {
    background: rgba(255,255,255,.13);
    color: white;
}

.app-menu-icon {
    width: 20px;
    font-size: 19px;
    text-align: center;
}

.app-sidebar-footer {
    margin-top: auto;
    padding: 22px;
    color: #9db5a8;
    font-size: 11px;
    border-top: 1px solid rgba(255,255,255,.1);
}

/* ÁREA PRINCIPAL */

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    height: 70px;
    min-height: 70px;
    background: white;
    border-bottom: 1px solid var(--borde);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 35px;
}

.app-topbar-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--texto);
}

.app-user {
    background: var(--verde-claro);
    color: var(--verde);
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.app-menu-toggle {
    display: none;
}

.app-content {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 35px;
    flex: 1;
}

.app-page-heading {
    margin-bottom: 28px;
}

.app-page-heading h1 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 5px;
    letter-spacing: -.5px;
    color: var(--texto);
}

.app-page-heading p {
    margin: 0;
    color: var(--secundario);
    font-size: 13px;
}

/* TARJETAS */

.sistema-tarjeta {
    background: white;
    border: 1px solid var(--borde);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 22px;
    box-shadow: var(--sombra);
}

.sistema-tarjeta h2,
.sistema-tarjeta h3 {
    font-size: 17px;
    color: var(--texto);
    margin: 0 0 20px;
}

/* BOTONES */

.sistema-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 17px;
    background: var(--verde);
    color: white;
    border: 1px solid var(--verde);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.sistema-boton:hover {
    background: var(--verde-oscuro);
    color: white;
}

.sistema-boton-secundario {
    background: white;
    color: var(--verde);
    border-color: var(--borde);
}

/* TABLAS */

.sistema-tabla-contenedor {
    width: 100%;
    overflow-x: auto;
}

.sistema-tabla {
    width: 100%;
    border-collapse: collapse;
}

.sistema-tabla th {
    padding: 14px 16px;
    background: #f7f9f8;
    color: #65776c;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    text-align: left;
    border-bottom: 1px solid var(--borde);
}

.sistema-tabla td {
    padding: 15px 16px;
    border-bottom: 1px solid #edf0ee;
    font-size: 13px;
}

.sistema-tabla tbody tr:hover {
    background: #fafcfb;
}

.sistema-tabla a {
    color: var(--verde);
    font-weight: 600;
    text-decoration: none;
}

/* FORMULARIOS */

.campo-formulario,
.sistema-campo,
.sistema-tarjeta input[type="text"],
.sistema-tarjeta input[type="password"] {
    width: 100%;
    padding: 12px 13px;
    background: white;
    border: 1px solid #d7e0da;
    border-radius: 7px;
    font: inherit;
    outline: none;
}

.campo-formulario:focus,
.sistema-campo:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 3px rgba(33,70,56,.09);
}

.sistema-error {
    color: #b52b2b;
    font-size: 12px;
}

/* LOGOTIPOS */

.app-brand-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 35px;
    padding: 22px;
    background: white;
    border-top: 1px solid var(--borde);
}

.app-brand-strip img {
    max-width: 125px;
    max-height: 65px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* CELULARES */

@media (max-width: 800px) {
    .app-sidebar {
        position: fixed;
        z-index: 1000;
        left: -260px;
        top: 0;
        bottom: 0;
        transition: left .25s;
    }

    body.menu-abierto .app-sidebar {
        left: 0;
    }

    .app-topbar {
        padding: 0 18px;
        gap: 15px;
    }

    .app-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--verde);
        cursor: pointer;
    }

    .app-content {
        padding: 22px 15px;
    }

    .app-page-heading h1 {
        font-size: 22px;
    }

    .sistema-tarjeta {
        padding: 18px;
    }

    .app-brand-strip {
        gap: 20px;
    }

    .app-brand-strip img {
        max-width: 90px;
        max-height: 50px;
    }
}

/* LOGOTIPOS EN ENCABEZADO SUPERIOR */

.app-topbar {
    min-height: 100px;
    height: auto;
    gap: 20px;
}

.app-topbar-brand {
    display: flex;
    align-items: center;
    gap: 35px;
    min-width: 0;
}

.app-topbar-logos {
    display: flex;
    align-items: center;
    gap: 25px;
}

.app-topbar-logos img {
    width: auto;
    height: auto;
    max-width: 145px;
    max-height: 75px;
    object-fit: contain;
}

@media (max-width: 1100px) {
    .app-topbar-logos {
        gap: 12px;
    }

    .app-topbar-logos img {
        max-width: 95px;
        max-height: 55px;
    }
}

@media (max-width: 800px) {
    .app-topbar {
        padding: 12px;
    }

    .app-topbar-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .app-topbar-logos {
        flex-wrap: wrap;
    }

    .app-topbar-logos img {
        max-width: 65px;
        max-height: 40px;
    }
}

/* REFINAMIENTO MAESTRO */

body.sistema {
    font-family: 'Segoe UI', Arial, sans-serif;
}

.app-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 230px;
    min-width: 230px;
}

.app-brand {
    min-height: 88px;
    padding: 22px 24px;
}

.app-brand strong {
    font-size: 15px;
    letter-spacing: .6px;
}

.app-brand small {
    font-size: 12px;
    margin-top: 5px;
}

.app-sidebar-label {
    padding: 26px 24px 12px;
}

.app-menu {
    padding: 0 12px;
}

.app-menu a {
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid transparent;
}

.app-menu a.activo {
    background: #315748;
    color: white;
    border-color: rgba(255,255,255,.08);
    font-weight: 600;
}

.app-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-topbar {
    min-height: 88px;
    padding: 12px 28px;
}

.app-topbar-brand {
    gap: 28px;
}

.app-topbar-title {
    white-space: nowrap;
    font-size: 15px;
}

.app-topbar-logos {
    gap: 22px;
}

.app-topbar-logos img {
    width: 105px;
    height: 58px;
    max-width: 105px;
    max-height: 58px;
    object-fit: contain;
}

.app-topbar-logos img:nth-child(2) {
    width: 75px;
}

.app-user {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    white-space: nowrap;
}

.app-content {
    padding: 28px;
}

@media (max-width: 1100px) {
    .app-topbar-logos {
        gap: 12px;
    }

    .app-topbar-logos img {
        max-width: 80px;
        max-height: 48px;
    }
}

@media (max-width: 800px) {
    .app-sidebar {
        position: fixed;
        width: 230px;
        min-width: 230px;
        left: -240px;
    }

    .app-topbar {
        padding: 12px;
    }

    .app-topbar-brand {
        gap: 8px;
    }

    .app-topbar-logos {
        gap: 8px;
        flex-wrap: wrap;
    }

    .app-topbar-logos img {
        max-width: 60px;
        max-height: 38px;
    }

    .app-content {
        padding: 18px 14px;
    }
}

/* FIN REFINAMIENTO MAESTRO */


/* COMPONENTES DE GESTION */

.sistema-barra-tarjeta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.sistema-barra-tarjeta h3 {
    margin: 0 0 4px;
    font-size: 17px;
}

.sistema-subtitulo {
    margin: 0;
    font-size: 12px;
    color: var(--secundario);
}

.sistema-tarjeta {
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(20,45,32,.035);
}

.sistema-tabla th {
    padding: 12px 16px;
    background: #f3f6f4;
    font-size: 11px;
}

.sistema-tabla td {
    padding: 13px 16px;
}

.sistema-estado {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.sistema-estado::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.estado-activo {
    background: #eaf5ed;
    color: #28734a;
}

.estado-inactivo {
    background: #fbeeee;
    color: #a93d3d;
}

.sistema-tabla a.sistema-accion {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dce5df;
    border-radius: 6px;
    padding: 6px 12px;
    background: white;
    font-size: 12px;
}

.sistema-tabla a.sistema-accion:hover {
    background: var(--verde-claro);
}

.sistema-tabla td.sistema-tabla-vacia {
    text-align: center;
    padding: 32px 16px;
    color: var(--secundario);
    font-size: 13px;
}

@media (max-width: 600px) {
    .sistema-tarjeta {
        padding: 15px;
    }

    .sistema-barra-tarjeta {
        align-items: flex-start;
    }
}

/* FIN COMPONENTES DE GESTION */


/* COMPONENTE PERSONA */

.sistema-persona {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 220px;
}

.sistema-avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e4eee8;
    color: #214638;
    border: 1px solid #d5e4da;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 700;
}

.sistema-persona-info strong {
    display: block;
    font-size: 15px;
    font-weight: 650;
    color: #20372c;
    line-height: 1.4;
}

.sistema-persona-info small {
    display: block;
    color: #718078;
    font-size: 12px;
    margin-top: 3px;
}

/* FIN COMPONENTE PERSONA */


/* IDENTIDAD DE MARCAS */

@media (min-width: 1101px) {
    .app-topbar {
        min-height: 105px;
        padding: 12px 28px;
    }

    .app-topbar-brand {
        flex: 1;
        gap: 30px;
    }

    .app-topbar-logos {
        flex: 1;
        justify-content: space-evenly;
        gap: 20px;
    }

    .app-topbar-logos img {
        width: 150px;
        height: 85px;
        max-width: 150px;
        max-height: 85px;
        object-fit: contain;
    }

    .app-topbar-logos img:nth-child(1) {
        width: 200px;
        height: 110px;
        max-width: 200px;
        max-height: 110px;
    }

    .app-topbar-logos img:nth-child(2) {
        width: 165px;
        height: 130px;
        max-width: 165px;
        max-height: 130px;
    }

    .app-topbar-logos img:nth-child(3) {
        width: 210px;
        height: 120px;
        max-width: 210px;
        max-height: 120px;
    }

    .app-topbar-logos img:nth-child(4) {
        width: 140px;
        height: 70px;
    }

    .app-user {
        flex-shrink: 0;
    }
}

/* FIN IDENTIDAD DE MARCAS */

/* SEPARACION DE LOGOTIPOS Y PERFIL */

@media (min-width: 1101px) {
    .app-topbar {
        gap: 30px;
    }

    .app-topbar-brand {
        flex: 1 1 0;
        min-width: 0;
        gap: 20px;
    }

    .app-topbar-logos {
        flex: 1 1 0;
        min-width: 0;
        justify-content: space-evenly;
        gap: 8px;
    }

    .app-topbar-logos img {
        flex-shrink: 1;
        min-width: 0;
    }

    .app-user {
        flex: 0 0 auto;
        margin-left: 15px;
    }
}


/* COMPONENTE REGRESAR */

.sistema-regresar {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    margin-bottom: 18px;
    border: 1px solid var(--borde);
    border-radius: 7px;
    background: white;
    color: var(--verde);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}

.sistema-regresar:hover {
    background: var(--verde-claro);
    border-color: #b8ccbf;
}

/* FIN COMPONENTE REGRESAR */


/* PANEL DE CORTES DE CAJA */

.panel-cortes {
    width: 100%;
    min-width: 0;
}

.panel-cortes .tarjeta {
    background: white;
    border: 1px solid var(--borde);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--sombra);
    min-width: 0;
}

.panel-cortes h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--verde);
    margin: 0 0 18px;
}

.panel-cortes .subtitulo {
    color: var(--secundario);
    margin-bottom: 22px;
}

.panel-cortes .filtros {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.panel-cortes .filtro {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.panel-cortes label {
    font-size: 13px;
    font-weight: 600;
}

.panel-cortes select,
.panel-cortes input {
    width: auto;
    min-height: 42px;
    border: 1px solid #cbd5ce;
    border-radius: 7px;
    padding: 10px 12px;
    font: inherit;
    background: white;
}

.panel-cortes button {
    background: var(--verde);
    color: white;
    border: 0;
    border-radius: 7px;
    padding: 12px 22px;
    font-weight: 600;
    cursor: pointer;
    min-height: 42px;
}

.panel-cortes button:hover {
    background: var(--verde-oscuro);
}

.panel-cortes .titulo-tabla {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.panel-cortes .logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    width: 100%;
}

.panel-cortes .logos img {
    width: auto;
    height: auto;
    max-width: 190px;
    max-height: 105px;
    object-fit: contain;
}

.panel-cortes .logos img.logo-grande {
    max-width: 285px;
    max-height: 160px;
}

.panel-cortes .tabla-contenedor,
.panel-cortes .tabla-scroll {
    width: 100%;
    overflow-x: auto;
}

.panel-cortes table {
    border-collapse: collapse;
    width: 100%;
    min-width: 1050px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.panel-cortes th {
    background: var(--verde);
    color: white;
    text-align: right;
    padding: 14px 10px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
}

.panel-cortes td {
    padding: 14px 10px;
    text-align: right;
    border-bottom: 1px solid #e6eae7;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: #24352e;
}

.panel-cortes th:first-child,
.panel-cortes td:first-child {
    text-align: left;
}

.panel-cortes tbody tr:nth-child(even) {
    background: #f5f8f6;
}

.panel-cortes tbody tr:hover {
    background: #edf4ef;
}

.panel-cortes .totales,
.panel-cortes .totales td {
    background: #e2ece5;
    font-weight: 800;
    color: #17372c;
    border-top: 2px solid #214638;
    font-size: 14px;
}

.panel-cortes .aviso {
    padding: 24px;
    text-align: center;
    color: var(--secundario);
    font-weight: 400;
}

.panel-cortes a {
    color: var(--verde);
    font-weight: 600;
}

.panel-cortes-sesion {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

@media (max-width: 700px) {
    .panel-cortes .tarjeta {
        padding: 16px;
    }

    .panel-cortes .logos img,
    .panel-cortes .logos img.logo-grande {
        max-width: 140px;
        max-height: 85px;
    }
}

/* FIN PANEL DE CORTES DE CAJA */

/* TABLAS COMPLETAS SIN DESPLAZAMIENTO HORIZONTAL */

@media (min-width: 1101px) {

    .app-content {
        max-width: none;
    }

    .panel-cortes .tabla-contenedor,
    .panel-cortes .tabla-scroll {
        width: 100%;
    }

    .panel-cortes table {
        width: 100%;
        min-width: 0;
        table-layout: auto;
    }

    .panel-cortes th {
        white-space: normal;
        font-size: 12px;
        padding: 12px 5px;
        line-height: 1.3;
    }

    .panel-cortes td {
        font-size: 12px;
        padding: 12px 5px;
        font-weight: 600;
        white-space: normal;
    }

    .panel-cortes td:first-child {
        font-weight: 700;
    }

    .panel-cortes .totales td {
        font-size: 12px;
        font-weight: 800;
    }

    .panel-cortes .tarjeta {
        padding: 18px 14px;
    }
}

/* FIN AJUSTE DE TABLAS */



/* COMPONENTES FINANCIEROS */

.panel-cortes .titulo-consulta {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--borde);
}

.panel-cortes .filtros {
    gap: 16px;
    align-items: flex-end;
}

.panel-cortes .filtro {
    flex: 0 1 auto;
}

.panel-cortes .filtro label {
    color: #65776c;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 700;
}

.panel-cortes .filtro input,
.panel-cortes .filtro select {
    min-height: 46px;
    background: #f8faf9;
    border: 1px solid #dce5df;
    font-weight: 600;
    color: #24352e;
}

.panel-cortes .filtro input:focus,
.panel-cortes .filtro select:focus {
    outline: 2px solid #b8d0c0;
    border-color: #214638;
}

.panel-cortes .filtros button {
    min-height: 46px;
    padding: 12px 26px;
}

.panel-cortes .resumen-financiero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 24px;
}

.panel-cortes .resumen-financiero h2 {
    grid-column: 1 / -1;
    margin: 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--borde);
    font-size: 17px;
}

.panel-cortes .indicador-financiero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background: #f5f8f6;
    border: 1px solid #e3ebe5;
    border-radius: 8px;
    padding: 18px;
    margin: 0;
}

.panel-cortes .indicador-etiqueta {
    color: #65776c;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.panel-cortes .indicador-importe {
    color: #214638;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .panel-cortes .resumen-financiero {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}

/* FIN COMPONENTES FINANCIEROS */

/* RESUMEN FINANCIERO COMPACTO */

.panel-cortes .tarjeta:has(.indicador-financiero) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 16px;
    padding: 20px;
    align-items: center;
}

.panel-cortes .tarjeta:has(.indicador-financiero) h2 {
    grid-column: 1 / -1;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--borde);
}

.panel-cortes .indicador-financiero {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 4px 24px;
    margin: 0;
    min-width: 0;
    gap: 5px;
}

.panel-cortes .indicador-financiero + .indicador-financiero {
    border-left: 1px solid var(--borde);
}

.panel-cortes .indicador-etiqueta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
}

.panel-cortes .indicador-importe {
    font-size: clamp(18px, 1.8vw, 26px);
    font-weight: 700;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
    .panel-cortes .tarjeta:has(.indicador-financiero) {
        grid-template-columns: 1fr;
    }

    .panel-cortes .indicador-financiero {
        padding: 10px 0;
    }

    .panel-cortes .indicador-financiero + .indicador-financiero {
        border-left: 0;
        border-top: 1px solid var(--borde);
    }
}

/* FIN RESUMEN FINANCIERO COMPACTO */



/* CIERRE DE SESION GLOBAL */

.sistema-form-sesion {
    margin: auto 14px 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.15);
}

.sistema-cerrar-sesion {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.sistema-cerrar-sesion:hover {
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.15);
}

.app-sidebar-footer {
    margin-top: 0;
}

/* FIN CIERRE DE SESION GLOBAL */

/* UNIFICAR CIERRE DE SESION CON MENU */

.app-menu .sistema-form-sesion {
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
}

.app-menu .sistema-cerrar-sesion {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    width: 100%;
    cursor: pointer;
}

.app-menu .sistema-cerrar-sesion:hover {
    background: #315748;
    color: white;
}

.app-sidebar-footer {
    margin-top: auto;
}


/* FORMATO MAESTRO DE FORMULARIOS */

.sistema-tarjeta form label {
    font-size: 14px;
    font-weight: 700 !important;
    color: #24352e;
    letter-spacing: .15px;
}

.sistema-tarjeta .campo-formulario {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #24352e;
    border: 1px solid #cbd6ce;
    border-radius: 8px;
    background: #ffffff;
    min-height: 44px;
}

.sistema-tarjeta .campo-formulario:focus {
    border-color: #214638;
    outline: none;
    box-shadow: 0 0 0 3px rgba(33,70,56,.10);
}

.sistema-tarjeta .campo-formulario::placeholder {
    color: #87958c;
    font-weight: 400;
}

.sistema-tarjeta h3 {
    font-size: 18px;
    font-weight: 700;
    color: #214638;
}

.sistema-tarjeta input[type="checkbox"] {
    accent-color: #214638;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.sistema-tarjeta form .sistema-boton {
    font-weight: 700;
    font-size: 14px;
}

.sistema-tarjeta form .sistema-subtitulo {
    font-size: 12px;
    font-weight: 500;
}

/* FIN FORMATO MAESTRO DE FORMULARIOS */


/* =========================================
   FORMATO MAESTRO - CAPTURA DE CORTES
   ========================================= */

.captura-corte {
    margin: 0;
    background: #f4f6f5;
    color: #24352e;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

.captura-corte main {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

.captura-corte .corte-cabecera {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #fff;
    border: 1px solid #e3e9e5;
    border-top: 4px solid var(--color-marca);
    border-radius: 10px;
    padding: 20px 26px;
    margin-bottom: 20px;
    box-shadow: 0 3px 16px rgba(20,45,32,.045);
}

.captura-corte .corte-logo {
    flex: 0 0 170px;
    text-align: center;
}

.captura-corte .corte-logo-img {
    width: 100%;
    height: 90px;
    object-fit: contain;
}

.captura-corte .corte-identidad {
    border-left: 1px solid #e3e9e5;
    padding-left: 24px;
    min-width: 0;
}

.captura-corte .corte-identidad small {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #718078;
}

.captura-corte h1 {
    font-size: 26px;
    font-weight: 750;
    color: #24352e;
    margin: 5px 0;
}

.captura-corte .corte-identidad strong {
    color: var(--color-marca);
    font-size: 15px;
}

.captura-corte .subtitulo {
    color: #52645a;
    font-weight: 600;
    margin: 5px 0 0;
}

.captura-corte section {
    background: #fff;
    border: 1px solid #e3e9e5;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 3px 16px rgba(20,45,32,.045);
}

.captura-corte h2 {
    font-size: 17px;
    font-weight: 750;
    color: var(--color-marca);
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3e9e5;
}

.captura-corte .campo {
    min-width: 0;
    margin-bottom: 12px;
}

.captura-corte label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #24352e;
    margin-bottom: 7px;
}

.captura-corte input,
.captura-corte select,
.captura-corte textarea {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd6ce;
    border-radius: 7px;
    background: #fff;
    color: #24352e;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.captura-corte input:focus,
.captura-corte select:focus,
.captura-corte textarea:focus {
    outline: none;
    border-color: var(--color-marca);
    box-shadow: 0 0 0 3px rgba(33,70,56,.08);
}

.captura-corte textarea {
    min-height: 85px;
    resize: vertical;
}

.captura-corte section:nth-of-type(1),
.captura-corte section:nth-of-type(2),
.captura-corte section:nth-of-type(3) {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    column-gap: 20px;
    row-gap: 5px;
}

.captura-corte section h2 {
    grid-column: 1 / -1;
}

.captura-corte section:nth-of-type(2) .campo:first-of-type {
    grid-column: 1 / -1;
    background: #f3f6f4;
    border-radius: 8px;
    padding: 14px;
}

.captura-corte #id_ventas_totales {
    font-size: 23px;
    font-weight: 750;
    color: var(--color-marca);
}

.captura-corte section:nth-of-type(3) .campo:nth-of-type(n+3) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(0,1fr);
    gap: 6px 16px;
}

.captura-corte section:nth-of-type(3) .campo:nth-of-type(n+3) label:first-of-type {
    grid-column: 1;
    grid-row: 1;
}

.captura-corte section:nth-of-type(3) .campo:nth-of-type(n+3) label:last-of-type {
    grid-column: 2;
    grid-row: 1;
}

.captura-corte input[id^="id_concepto_otros"] {
    grid-column: 1;
    grid-row: 2;
}

.captura-corte input[id^="id_gastos_otros"] {
    grid-column: 2;
    grid-row: 2;
}

.captura-corte input[inputmode="decimal"] {
    text-align: right;
}

.captura-corte .billetes {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr);
    gap: 12px;
    align-items: center;
    padding: 7px 10px;
    border-bottom: 1px solid #edf0ee;
}

.captura-corte .billetes input {
    max-width: 110px;
    text-align: center;
}

.captura-corte .billetes span {
    font-weight: 600;
}

.captura-corte .billetes.encabezado {
    background: #f3f6f4;
    border-radius: 6px;
    color: #65776c;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.captura-corte .subtotal {
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.captura-corte #id_morralla {
    max-width: 240px;
}

.captura-corte section:nth-of-type(4) .campo {
    margin-top: 16px;
}

.captura-corte .resumen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 13px 4px;
    border-bottom: 1px solid #e3e9e5;
    font-weight: 600;
}

.captura-corte .resumen strong {
    text-align: right;
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.captura-corte .diferencia {
    background: #edf4ef;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    border: none;
}

.captura-corte .diferencia strong {
    font-size: 24px;
}

.captura-corte .error,
.captura-corte .errorlist {
    color: #b42318;
    font-size: 12px;
    grid-column: 1 / -1;
}

.captura-corte .error:empty {
    display: none;
}

.captura-corte #id_clave_empleado {
    max-width: 280px;
    letter-spacing: 3px;
}

.captura-corte #enviar {
    display: block;
    width: 100%;
    padding: 15px;
    background: #214638;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
}

.captura-corte #enviar:hover {
    background: #17372c;
}

.captura-corte #enviar:disabled {
    opacity: .6;
    cursor: wait;
}

.captura-corte input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

.captura-corte input::-webkit-inner-spin-button,
.captura-corte input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ADAPTACION PARA TELEFONOS */

@media (max-width: 600px) {

    .captura-corte main {
        padding: 12px 10px 25px;
    }

    .captura-corte .corte-cabecera {
        gap: 12px;
        padding: 14px;
    }

    .captura-corte .corte-logo {
        flex-basis: 100px;
    }

    .captura-corte .corte-logo-img {
        height: 65px;
    }

    .captura-corte .corte-identidad {
        padding-left: 12px;
    }

    .captura-corte h1 {
        font-size: 21px;
    }

    .captura-corte section {
        padding: 15px;
        margin-bottom: 12px;
    }

    .captura-corte h2 {
        font-size: 16px;
    }

    .captura-corte section:nth-of-type(1),
    .captura-corte section:nth-of-type(2),
    .captura-corte section:nth-of-type(3) {
        column-gap: 12px;
    }

    .captura-corte .billetes {
        gap: 8px;
        padding: 6px 2px;
    }

    .captura-corte .resumen {
        font-size: 13px;
    }

    .captura-corte .resumen strong {
        font-size: 15px;
    }

    .captura-corte .diferencia strong {
        font-size: 21px;
    }

    .captura-corte #id_clave_empleado {
        max-width: none;
    }
}

@media (max-width: 360px) {

    .captura-corte section:nth-of-type(1),
    .captura-corte section:nth-of-type(2) {
        grid-template-columns: minmax(0,1fr);
    }

    .captura-corte .corte-logo {
        flex-basis: 80px;
    }
}

/* FIN FORMATO MAESTRO DE CORTES */


/* DISTRIBUCION RESPONSIVA DEL CORTE */

.captura-corte main {
    max-width: 1200px;
}

.captura-corte #formulario-corte {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 18px;
    align-items: start;
}

.captura-corte #formulario-corte > section {
    min-width: 0;
    margin-bottom: 0;
}

.captura-corte #formulario-corte > section:nth-of-type(1),
.captura-corte #formulario-corte > section:nth-of-type(6),
.captura-corte #formulario-corte > .campo,
.captura-corte #formulario-corte > .errorlist,
.captura-corte #enviar {
    grid-column: 1 / -1;
}

.captura-corte #formulario-corte > section:nth-of-type(2),
.captura-corte #formulario-corte > section:nth-of-type(3),
.captura-corte #formulario-corte > section:nth-of-type(4),
.captura-corte #formulario-corte > section:nth-of-type(5) {
    align-self: stretch;
}

.captura-corte #enviar {
    margin-top: 0;
}

@media (max-width: 800px) {

    .captura-corte #formulario-corte {
        grid-template-columns: minmax(0,1fr);
        gap: 12px;
    }

    .captura-corte #formulario-corte > section {
        grid-column: 1 / -1;
    }

}

/* FIN DISTRIBUCION RESPONSIVA */


/* DISTRIBUCION DE RESUMEN Y OBSERVACIONES */

@media (min-width: 801px) {

    .captura-corte #formulario-corte > section:nth-of-type(4) {
        grid-column: 1;
        grid-row: 3 / 5;
        align-self: stretch;
    }

    .captura-corte #formulario-corte > section:nth-of-type(5) {
        grid-column: 2;
        grid-row: 3;
        align-self: start;
    }

    .captura-corte #formulario-corte > section:nth-of-type(6) {
        grid-column: 2;
        grid-row: 4;
        align-self: stretch;
    }

    .captura-corte #formulario-corte {
        grid-template-rows: auto auto auto 1fr;
    }

    .captura-corte #formulario-corte:has(> .errorlist) > section:nth-of-type(4),
    .captura-corte #formulario-corte:has(> .errorlist) > section:nth-of-type(5),
    .captura-corte #formulario-corte:has(> .errorlist) > section:nth-of-type(6) {
        grid-row: auto;
        grid-column: 1 / -1;
    }
}

/* FIN DISTRIBUCION */


/* AJUSTE VISUAL DE LOGOTIPOS EN CORTES */

.captura-corte .corte-logo-img[src$="logo_rosita.png"] {
    transform: scale(1.9);
}

.captura-corte .corte-logo-img[src$="logo_mccoy.png"] {
    transform: scale(1.5);
}

.captura-corte .corte-logo-img[src$="logo_arce.png"] {
    transform: scale(1.5);
}

.captura-corte .corte-logo-img[src$="logo_lolo.png"] {
    transform: none;
}

@media (max-width: 600px) {

    .captura-corte .corte-logo-img[src$="logo_rosita.png"] {
        transform: scale(1.45);
    }

    .captura-corte .corte-logo-img[src$="logo_mccoy.png"],
    .captura-corte .corte-logo-img[src$="logo_arce.png"] {
        transform: scale(1.25);
    }

}

/* FIN AJUSTE DE LOGOTIPOS */


/* CERRAR SESION - CAPTURA DE CORTES */

.captura-corte .corte-salir {
    margin-left: auto;
    align-self: flex-start;
    flex-shrink: 0;
}

.captura-corte .corte-salir button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff;
    color: #214638;
    border: 1px solid #cbd6ce;
    border-radius: 7px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.captura-corte .corte-salir button:hover {
    background: #edf4ef;
    border-color: #214638;
}

@media (max-width: 600px) {

    .captura-corte .corte-cabecera {
        flex-wrap: wrap;
    }

    .captura-corte .corte-salir {
        flex-basis: 100%;
        display: flex;
        justify-content: flex-end;
    }

}

/* FIN CERRAR SESION */


/* =========================================
   ACCESO MAESTRO - GRUPO DEL ARCE
   ========================================= */

.acceso-sistema {
    margin: 0;
    min-height: 100vh;
    background: #f4f6f5;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #24352e;
}

.acceso-layout {
    display: grid;
    grid-template-columns: 44% 56%;
    min-height: 100vh;
    min-height: 100dvh;
}

.acceso-institucional {
    background: #17372c;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 40px;
    gap: 25px;
    min-width: 0;
}

.acceso-marca strong {
    display: block;
    color: #fff;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: 1.5px;
}

.acceso-marca span {
    display: block;
    color: #b8cec0;
    font-size: 14px;
    margin-top: 6px;
}

.acceso-empresas {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
}

.acceso-empresas h2 {
    margin: 0 0 15px;
    color: #214638;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
}

.acceso-logos {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

.acceso-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(90px,19vh,180px);
    min-width: 0;
    overflow: hidden;
}

.acceso-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.acceso-logo img[src$="logo_rosita.png"] {
    transform: scale(1.25);
}

.acceso-logo img[src$="logo_lolo.png"] {
    max-width: 80%;
    max-height: 80%;
}

.acceso-pie {
    font-size: 12px;
    color: #b8cec0;
    font-weight: 500;
}

.acceso-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-width: 0;
}

.acceso-formulario {
    width: 100%;
    max-width: 430px;
}

.acceso-etiqueta {
    color: #718078;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.acceso-formulario h1 {
    font-size: 36px;
    font-weight: 750;
    color: #214638;
    margin: 0 0 10px;
}

.acceso-descripcion {
    color: #718078;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 30px;
}

.acceso-campo {
    margin-bottom: 20px;
}

.acceso-campo label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.acceso-campo input {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    border: 1px solid #cbd6ce;
    border-radius: 8px;
    background: #fff;
    padding: 13px 15px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: #24352e;
}

.acceso-campo input:focus {
    outline: none;
    border-color: #214638;
    box-shadow: 0 0 0 3px rgba(33,70,56,.10);
}

.acceso-password {
    position: relative;
}

.acceso-password input {
    padding-right: 55px;
}

.acceso-ver-clave {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #718078;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.acceso-entrar {
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 8px;
    background: #214638;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 5px;
}

.acceso-entrar:hover {
    background: #17372c;
}

.acceso-seguridad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #718078;
    margin-top: 25px;
    text-align: center;
}

.acceso-error {
    background: #fff1f0;
    border: 1px solid #f1c6c3;
    color: #b42318;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ADAPTACION PARA TELEFONOS Y TABLETAS */

@media (max-width: 800px) {

    .acceso-layout {
        display: flex;
        flex-direction: column;
    }

    .acceso-institucional {
        padding: 20px 16px 16px;
        gap: 15px;
    }

    .acceso-marca {
        text-align: center;
    }

    .acceso-marca strong {
        font-size: 21px;
    }

    .acceso-marca span {
        font-size: 12px;
    }

    .acceso-empresas {
        padding: 8px;
    }

    .acceso-empresas h2 {
        display: none;
    }

    .acceso-logos {
        grid-template-columns: repeat(4,minmax(0,1fr));
        gap: 4px;
    }

    .acceso-logo {
        height: 65px;
    }

    .acceso-pie {
        display: none;
    }

    .acceso-principal {
        flex: 1;
        padding: 28px 24px;
    }

    .acceso-formulario h1 {
        font-size: 28px;
    }

    .acceso-descripcion {
        font-size: 14px;
        margin-bottom: 22px;
    }

    .acceso-campo {
        margin-bottom: 16px;
    }

    .acceso-seguridad {
        margin-top: 20px;
    }

}

/* FIN ACCESO MAESTRO */


/* =========================================
   REVISION ADMINISTRATIVA DE CORTES
   ========================================= */

.revision-corte {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.revision-corte .sistema-tarjeta {
    margin: 0;
    min-width: 0;
    padding: 20px;
}

.revision-datos,
.revision-observaciones {
    grid-column: 1 / -1;
}

.revision-corte h2 {
    color: #214638;
    font-size: 17px;
    font-weight: 750;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3e9e5;
}

/* DATOS GENERALES DEL CORTE */

.revision-corte .revision-datos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    border-top: 4px solid #214638;
}

.revision-datos h2 {
    grid-column: 1 / -1;
    font-size: 22px;
    margin-bottom: 0;
}

.revision-datos p {
    margin: 0;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.revision-datos p strong {
    display: block;
    color: #718078;
    font-size: 12px;
    margin-bottom: 7px;
}

.revision-datos .estado {
    display: inline-block;
    background: #edf4ef;
    color: #214638;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
}

/* TABLAS DE VERIFICACION */

.revision-corte table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.revision-corte td {
    padding: 11px 8px;
    border-bottom: 1px solid #e3e9e5;
    vertical-align: middle;
}

.revision-corte td:last-child {
    text-align: right;
    font-weight: 600;
}

.revision-corte .tabla-verificacion {
    table-layout: fixed;
}

.revision-corte .tabla-verificacion td:nth-child(1) {
    width: 53%;
    text-align: left;
    overflow-wrap: anywhere;
}

.revision-corte .tabla-verificacion td:nth-child(2) {
    width: 35%;
    text-align: right;
    white-space: nowrap;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.revision-corte .tabla-verificacion td:nth-child(3) {
    width: 12%;
    text-align: center;
}

.revision-corte .verificacion {
    width: 19px;
    height: 19px;
    accent-color: #214638;
    cursor: pointer;
    vertical-align: middle;
}

.revision-corte .verificacion:disabled {
    cursor: default;
}

.revision-corte .total {
    background: #edf4ef;
    color: #214638;
    font-weight: 750;
}

.revision-ventas .tabla-verificacion tr:first-child {
    background: #edf4ef;
    font-weight: 750;
}

/* RECEPCION DE EFECTIVO */

.revision-corte .revision-importe {
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 12px 15px;
    border: 1px solid #cbd6ce;
    border-radius: 8px;
    background: #fff;
    color: #214638;
    font-family: inherit;
    font-size: 23px;
    font-weight: 750;
    text-align: right;
    box-sizing: border-box;
}

.revision-corte .revision-importe:read-only {
    background: #edf4ef;
}

.revision-corte .revision-motivo {
    width: 100%;
    min-height: 85px;
    padding: 12px;
    border: 1px solid #cbd6ce;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
    box-sizing: border-box;
}

.revision-corte .revision-importe:focus,
.revision-corte .revision-motivo:focus {
    outline: none;
    border-color: #214638;
    box-shadow: 0 0 0 3px rgba(33,70,56,.10);
}

.revision-recepcion label {
    font-size: 14px;
    font-weight: 700;
}

/* BOTONES */

.revision-acciones {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
    margin-top: 20px;
}

.revision-aprobar,
.revision-aclarar {
    min-height: 46px;
    border: none;
    border-radius: 7px;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.revision-aprobar {
    background: #214638;
}

.revision-aclarar {
    background: #C51D4A;
}

.revision-aprobar:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.revision-corte .nota {
    font-size: 13px;
    color: #718078;
    line-height: 1.5;
}

.revision-observaciones p {
    font-size: 14px;
    line-height: 1.6;
    margin: 10px 0;
    overflow-wrap: anywhere;
}

.revision-volver {
    display: inline-block;
    color: #214638;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 15px;
}

.revision-volver:hover {
    text-decoration: underline;
}

/* DISTRIBUCION EN COMPUTADORA */

@media (min-width: 1101px) {

    .revision-ventas,
    .revision-gastos {
        align-self: stretch;
    }

    .revision-conciliacion {
        grid-column: 1;
        grid-row: 3;
    }

    .revision-recepcion {
        grid-column: 2;
        grid-row: 3 / 5;
    }

    .revision-observaciones {
        grid-column: 1;
        grid-row: 4;
    }

}

/* ADAPTACION PARA CELULARES Y TABLETAS */

@media (max-width: 1100px) {

    .revision-corte {
        grid-template-columns: minmax(0,1fr);
        gap: 14px;
    }

    .revision-corte .sistema-tarjeta {
        grid-column: 1;
    }

    .revision-corte .revision-datos {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

}

@media (max-width: 600px) {

    .revision-corte .sistema-tarjeta {
        padding: 14px;
    }

    .revision-corte td {
        font-size: 13px;
        padding: 10px 4px;
    }

    .revision-corte h2 {
        font-size: 16px;
    }

    .revision-acciones {
        grid-template-columns: 1fr;
    }

}

/* FIN REVISION ADMINISTRATIVA */


/* COMPACTACION DEL PANEL DE CORTES */

.app-content:has(> .panel-cortes) {
    padding-top: 18px;
}

.app-content:has(> .panel-cortes) .app-page-heading {
    margin-bottom: 16px;
    padding-bottom: 0;
}

.app-content:has(> .panel-cortes) .app-page-heading h1 {
    margin-top: 0;
    margin-bottom: 5px;
}

.app-content:has(> .panel-cortes) .app-page-heading p {
    margin-top: 0;
    margin-bottom: 0;
}

.panel-cortes .panel-consulta {
    padding: 16px 20px;
    margin-top: 0;
    margin-bottom: 14px;
}

.panel-cortes .panel-consulta .titulo-consulta {
    font-size: 17px;
    margin: 0 0 12px;
    padding: 0;
    border-bottom: none;
}

.panel-cortes .panel-consulta form {
    margin: 0;
    padding: 0;
}

.panel-cortes .panel-consulta .filtros {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.panel-cortes .panel-consulta .filtro {
    margin: 0;
    padding: 0;
}

.panel-cortes .panel-consulta label {
    font-size: 11px;
    margin-bottom: 5px;
}

.panel-cortes .panel-consulta input,
.panel-cortes .panel-consulta select,
.panel-cortes .panel-consulta button {
    height: 42px;
    min-height: 42px;
    padding: 8px 14px;
    font-size: 14px;
    margin: 0;
    box-sizing: border-box;
}

@media (max-width: 600px) {

    .panel-cortes .panel-consulta {
        padding: 12px;
    }

    .panel-cortes .panel-consulta .filtros {
        gap: 10px;
    }

    .panel-cortes .panel-consulta .filtro {
        flex: 1 1 130px;
        min-width: 0;
    }

    .panel-cortes .panel-consulta input,
    .panel-cortes .panel-consulta select {
        width: 100%;
        min-width: 0;
    }

    .panel-cortes .panel-consulta button {
        width: 100%;
    }

}

/* FIN COMPACTACION DEL PANEL */


/* COMPACTACION DE LOGOTIPOS DEL PANEL */

.panel-cortes .titulo-tabla {
    min-height: 0;
    height: auto;
    padding: 0;
    margin: 0 0 8px;
}

.panel-cortes .titulo-tabla .logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    min-height: 0;
    height: auto;
    padding: 0;
    margin: 0;
}

.panel-cortes .titulo-tabla .logos img,
.panel-cortes .titulo-tabla .logos img.logo-grande {
    width: 180px;
    height: 105px;
    max-width: 100%;
    max-height: 105px;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

.panel-cortes .tarjeta:has(> .titulo-tabla) {
    padding: 12px 16px 16px;
    margin-bottom: 16px;
}

.panel-cortes .tabla-contenedor {
    margin-top: 0;
}

@media (max-width: 600px) {

    .panel-cortes .titulo-tabla .logos {
        gap: 10px;
    }

    .panel-cortes .titulo-tabla .logos img,
    .panel-cortes .titulo-tabla .logos img.logo-grande {
        width: 30%;
        height: 75px;
    }

    .panel-cortes .tarjeta:has(> .titulo-tabla) {
        padding: 10px;
    }

}

/* FIN COMPACTACION DE LOGOTIPOS */


/* RESUMENES DE EFECTIVO COMPACTOS */

.panel-cortes .tarjeta.resumen-efectivo {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px 0;
    padding: 12px 18px;
    margin-top: 0;
    margin-bottom: 20px;
}

.panel-cortes .resumen-efectivo h2 {
    grid-column: 1 / -1;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    padding: 0 0 8px;
    border-bottom: 1px solid #e3e9e5;
}

.panel-cortes .resumen-efectivo .indicador-financiero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 4px 16px;
    min-height: 0;
}

.panel-cortes .resumen-efectivo .indicador-financiero:last-child {
    border-right: none;
}

.panel-cortes .resumen-efectivo .indicador-etiqueta {
    font-size: 11px;
    font-weight: 650;
    margin: 0;
}

.panel-cortes .resumen-efectivo .indicador-importe {
    font-size: 22px;
    font-weight: 750;
    line-height: 1.2;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.panel-cortes .tarjeta:has(> .titulo-tabla) {
    margin-bottom: 8px;
}

@media (max-width: 600px) {

    .panel-cortes .tarjeta.resumen-efectivo {
        padding: 10px;
        gap: 8px 0;
    }

    .panel-cortes .resumen-efectivo h2 {
        font-size: 12px;
    }

    .panel-cortes .resumen-efectivo .indicador-financiero {
        padding: 4px 6px;
    }

    .panel-cortes .resumen-efectivo .indicador-etiqueta {
        font-size: 10px;
    }

    .panel-cortes .resumen-efectivo .indicador-importe {
        font-size: clamp(11px,3.5vw,17px);
        overflow-wrap: anywhere;
    }

}

/* FIN RESUMENES COMPACTOS */


/* AJUSTE FINAL DE RESUMENES DE EFECTIVO */

.panel-cortes .tarjeta.resumen-efectivo {
    padding: 10px 14px;
    gap: 5px 0;
    margin-bottom: 14px;
}

.panel-cortes .resumen-efectivo h2 {
    font-size: 13px;
    padding-bottom: 6px;
}

.panel-cortes .resumen-efectivo .indicador-financiero {
    padding: 2px 12px;
    gap: 3px;
}

.panel-cortes .resumen-efectivo .indicador-etiqueta {
    font-size: 11px;
}

.panel-cortes .resumen-efectivo .indicador-importe {
    font-size: 16px;
    font-weight: 700;
}

@media (max-width: 600px) {

    .panel-cortes .resumen-efectivo .indicador-importe {
        font-size: clamp(11px,3.5vw,14px);
    }

    .panel-cortes .resumen-efectivo .indicador-financiero {
        padding: 2px 5px;
    }

}

/* FIN AJUSTE FINAL */


/* ESTADOS DE ENVIO DE CORTES */

.panel-cortes .estado-corte {
    display: block;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 3px;
}

.panel-cortes .estado-corte.sin-enviar {
    color: #b42318;
}

.panel-cortes .estado-corte.pendiente {
    color: #a16a00;
}

.panel-cortes .estado-corte.aprobado {
    color: #16803c;
}

/* FIN ESTADOS DE ENVIO */


/* TABLAS DE CORTES COMPACTAS Y ALINEADAS */

.panel-cortes table th {
    text-align: center;
    padding: 10px 8px;
    vertical-align: middle;
}

.panel-cortes table th:first-child {
    text-align: left;
}

.panel-cortes table td {
    padding: 9px 8px;
    vertical-align: middle;
    line-height: 1.3;
}

.panel-cortes table td:first-child {
    text-align: left;
}

.panel-cortes table td:not(:first-child) {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.panel-cortes .estado-corte {
    display: inline;
    font-size: 10px;
    margin: 0 3px;
    white-space: nowrap;
}

.panel-cortes table td:first-child a {
    white-space: nowrap;
}

/* FIN TABLAS COMPACTAS */


/* ALINEACION FINAL DE TABLAS */

.panel-cortes table th:not(:first-child),
.panel-cortes table td:not(:first-child) {
    text-align: center;
}

.panel-cortes table td {
    padding: 8px 6px;
}

.panel-cortes .estado-corte {
    display: inline;
    font-size: 13px;
    margin: 0 3px;
    font-weight: 700;
}

/* FIN ALINEACION FINAL */



/* CORRECCIONES DE DISENO MOVIL - SAFARI */

@media (max-width: 600px) {

    .panel-cortes .panel-consulta .filtros {
        align-items: flex-start;
        gap: 10px;
    }

    .panel-cortes .panel-consulta .filtro {
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .panel-cortes .panel-consulta input,
    .panel-cortes .panel-consulta select,
    .captura-corte #id_fecha,
    .captura-corte #id_turno {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 44px;
        min-height: 44px;
        box-sizing: border-box;
        margin: 0;
        padding: 8px;
        font-size: 16px;
    }

    .panel-cortes input[type="date"],
    .captura-corte input[type="date"] {
        -webkit-appearance: none;
        appearance: none;
        text-align: center;
    }

    .panel-cortes input[type="date"]::-webkit-date-and-time-value,
    .captura-corte input[type="date"]::-webkit-date-and-time-value {
        text-align: center;
        margin: 0;
        min-height: 0;
    }

    .captura-corte section:nth-of-type(1) .campo {
        min-width: 0;
        max-width: 100%;
    }

    .panel-cortes .tarjeta.resumen-efectivo {
        align-items: stretch;
    }

    .panel-cortes .resumen-efectivo .indicador-financiero {
        justify-content: flex-start;
        align-items: flex-start;
        min-width: 0;
        padding: 4px 5px;
    }

    .panel-cortes .resumen-efectivo .indicador-etiqueta {
        min-height: 28px;
        line-height: 14px;
        display: flex;
        align-items: flex-start;
        margin: 0;
    }

    .panel-cortes .resumen-efectivo .indicador-importe {
        margin: 0;
        line-height: 1.3;
    }

}

/* FIN CORRECCIONES DE DISENO MOVIL */


/* ENCABEZADO MOVIL UNIFORME */

@media (max-width: 600px) {

    .app-topbar {
        display: grid;
        grid-template-columns: auto minmax(0,1fr) auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 10px 8px;
        height: auto;
        min-height: 0;
        padding: 12px;
    }

    .app-topbar-brand {
        display: contents;
    }

    .app-topbar .app-menu-toggle {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
    }

    .app-topbar-title {
        grid-column: 2;
        grid-row: 1;
        font-size: 13px;
        white-space: normal;
        min-width: 0;
    }

    .app-topbar .app-user {
        grid-column: 3;
        grid-row: 1;
        max-width: 135px;
        min-width: 0;
        font-size: 11px;
        padding: 7px 9px;
        margin: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .app-topbar-logos {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(4,minmax(0,1fr));
        align-items: center;
        justify-items: center;
        gap: 8px;
        width: 100%;
        min-width: 0;
        padding-top: 8px;
        border-top: 1px solid #e3e9e5;
    }

    .app-topbar-logos img,
    .app-topbar-logos img:nth-child(2) {
        width: 100%;
        height: 42px;
        max-width: 85px;
        max-height: 42px;
        min-width: 0;
        object-fit: contain;
    }

}

/* FIN ENCABEZADO MOVIL UNIFORME */
