﻿.ingresos-app {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    user-select: none;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
}

.ingresos-app footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    flex-shrink: 0;
    background-color: black;
    color: white;
    font-size: 10pt;
    font-family: Tahoma;
}

#loading {
    position: fixed;
    z-index: 3;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    display: none;
}

.loadingLogoDistri {
    width: 85%;
}

.loadingOverlay {
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0.5;
    left: 0;
}

.loadingContent {
    width: 100%;
    text-align: center;
    position: absolute;
    top: 50%;
    margin: auto;
    left: 0;
    right: 0;
    transform: translateY(-50%);
}

    .loadingContent p, .loadingContent a {
        text-align: center;
        font-size: 22pt;
        font-family: 'Source Sans Pro', sans-serif;
        color: white;
        margin-top: 10px;
    }

.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ellipsis div {
        position: absolute;
        top: 33px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #0047AB;
        animation-timing-function: cubic-bezier(0, 1, 1, 0);
    }

        .lds-ellipsis div:nth-child(1) {
            left: 8px;
            animation: lds-ellipsis1 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(2) {
            left: 8px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(3) {
            left: 32px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(4) {
            left: 56px;
            animation: lds-ellipsis3 0.6s infinite;
        }

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

.letrasmaller {
    font-size: 12pt;
}

.fontEAN {
    font-size: 9pt;
    font-weight: 500;
    color: #428EF8;
}

.imagepick {
    width: 100%;
}

    .imagepick:hover {
        opacity: 0.7;
        cursor: pointer;
    }

.ir-arriba {
    display: none;
    padding: 20px;
    background: #024959;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
}

#camera video {
    width: 100%;
    max-width: 640px;
}

@keyframes titileo {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.btn-titilando {
    animation: titileo 1s infinite;
}

.highlight {
    background-color: yellow;
    color: black;
    padding: 0 2px;
}

.logo-redondo {
    height: 80px;
    border-radius: 50%;
    border: 1px solid #666;
}

.btn-with-image-history {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2309388b' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
    background-size: 18px 18px; /* Ajusta el icono embebido */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    height: 30px; /* Ajusta la altura del botón */
    width: 30px; /* Ajusta el ancho del botón según lo necesario */
    padding: 10px; /* Aumenta el espacio interno */
    color: white; /* Cambia el color del texto si es necesario */
    border: none; /* Quita el borde si no lo quieres */
    text-align: center; /* Centra el texto o contenido dentro del botón */
    font-size: 14px; /* Ajusta el tamaño del texto */
    line-height: 1.2; /* Ajusta la altura de línea para centrar texto */
}

.btn-with-image-autorizada {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
    background-size: 18px 18px; /* Ajusta el icono embebido */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    height: 30px; /* Ajusta la altura del botón */
    width: 30px; /* Ajusta el ancho del botón según lo necesario */
    padding: 10px; /* Aumenta el espacio interno */
    color: white; /* Cambia el color del texto si es necesario */
    border: none; /* Quita el borde si no lo quieres */
    text-align: center; /* Centra el texto o contenido dentro del botón */
    font-size: 14px; /* Ajusta el tamaño del texto */
    line-height: 1.2; /* Ajusta la altura de línea para centrar texto */
}

.btn-with-image-transfer {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 0-15-6.7L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M3 12a9 9 0 0 0 15 6.7l3-2.7'/%3E%3Cpath d='M21 21v-5h-5'/%3E%3C/svg%3E");
    background-size: 18px 18px; /* Ajusta el icono embebido */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    height: 30px; /* Ajusta la altura del botón */
    width: 30px; /* Ajusta el ancho del botón según lo necesario */
    padding: 10px; /* Aumenta el espacio interno */
    color: white; /* Cambia el color del texto si es necesario */
    border: none; /* Quita el borde si no lo quieres */
    text-align: center; /* Centra el texto o contenido dentro del botón */
    font-size: 14px; /* Ajusta el tamaño del texto */
    line-height: 1.2; /* Ajusta la altura de línea para centrar texto */
}

.btn-with-image-back {
    background-image: url('../../img/back-icon.png');
    background-size: cover; /* Asegura que la imagen cubra todo el botón */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    height: 30px; /* Ajusta la altura del botón */
    width: 30px; /* Ajusta el ancho del botón según lo necesario */
    padding: 10px; /* Aumenta el espacio interno */
    color: white; /* Cambia el color del texto si es necesario */
    border: none; /* Quita el borde si no lo quieres */
    text-align: center; /* Centra el texto o contenido dentro del botón */
    font-size: 14px; /* Ajusta el tamaño del texto */
    line-height: 1.2; /* Ajusta la altura de línea para centrar texto */
}

.btn-with-image-ok {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 18px 18px; /* Ajusta el icono embebido */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    height: 30px; /* Ajusta la altura del botón */
    width: 30px; /* Ajusta el ancho del botón según lo necesario */
    padding: 10px; /* Aumenta el espacio interno */
    color: white; /* Cambia el color del texto si es necesario */
    border: none; /* Quita el borde si no lo quieres */
    text-align: center; /* Centra el texto o contenido dentro del botón */
    font-size: 14px; /* Ajusta el tamaño del texto */
    line-height: 1.2; /* Ajusta la altura de línea para centrar texto */
}

.btn-with-image-cancel {
    background-image: url('../../img/cancel-icon.png');
    background-size: cover; /* Asegura que la imagen cubra todo el botón */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    height: 30px; /* Ajusta la altura del botón */
    width: 30px; /* Ajusta el ancho del botón según lo necesario */
    padding: 10px; /* Aumenta el espacio interno */
    color: white; /* Cambia el color del texto si es necesario */
    border: none; /* Quita el borde si no lo quieres */
    text-align: center; /* Centra el texto o contenido dentro del botón */
    font-size: 14px; /* Ajusta el tamaño del texto */
    line-height: 1.2; /* Ajusta la altura de línea para centrar texto */
}

.btn-with-image-find {
    background-image: url('../../img/find-icon.png');
    background-size: cover; /* Asegura que la imagen cubra todo el botón */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    height: 30px; /* Ajusta la altura del botón */
    width: 30px; /* Ajusta el ancho del botón según lo necesario */
    padding: 10px; /* Aumenta el espacio interno */
    color: white; /* Cambia el color del texto si es necesario */
    border: none; /* Quita el borde si no lo quieres */
    text-align: center; /* Centra el texto o contenido dentro del botón */
    font-size: 14px; /* Ajusta el tamaño del texto */
    line-height: 1.2; /* Ajusta la altura de línea para centrar texto */
}

.btn-with-image-alert {
    background-image: url('../../img/alert-icon.png');
    background-size: cover; /* Asegura que la imagen cubra todo el botón */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    height: 30px; /* Ajusta la altura del botón */
    width: 30px; /* Ajusta el ancho del botón según lo necesario */
    padding: 10px; /* Aumenta el espacio interno */
    color: white; /* Cambia el color del texto si es necesario */
    border: none; /* Quita el borde si no lo quieres */
    text-align: center; /* Centra el texto o contenido dentro del botón */
    font-size: 14px; /* Ajusta el tamaño del texto */
    line-height: 1.2; /* Ajusta la altura de línea para centrar texto */
}

.btn-with-image-barcode {
    background-image: url('../../img/barcode.png');
    background-size: cover; /* Asegura que la imagen cubra todo el botón */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    height: 30px; /* Ajusta la altura del botón */
    width: 30px; /* Ajusta el ancho del botón según lo necesario */
    padding: 10px; /* Aumenta el espacio interno */
    color: white; /* Cambia el color del texto si es necesario */
    border: none; /* Quita el borde si no lo quieres */
    text-align: center; /* Centra el texto o contenido dentro del botón */
    font-size: 14px; /* Ajusta el tamaño del texto */
    line-height: 1.2; /* Ajusta la altura de línea para centrar texto */
}

/*********************************** MODAL INSTALL *****************************************/
.install-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0078d7;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 10px;
    align-items: center;
}
.install-banner button {
    background-color: white;
    color: #0078d7;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}
.install-banner button:hover {
    background-color: #e0e0e0;
}

.scanner-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: red;
    z-index: 10;
    animation: scanLine 2s infinite ease-in-out;
}

@keyframes scanLine {
    0% {
        top: 10%;
    }

    50% {
        top: 90%;
    }

    100% {
        top: 10%;
    }
}

/* ===== AppFacturacion visual alignment for Ingresos ===== */
.ingresos-app {
    min-height: 100dvh;
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom));
    background: var(--app-bg, #f0f4f8);
    color: var(--ink, #1f2937);
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    letter-spacing: 0;
}

.ingresos-app.ingresos-no-footer {
    padding-bottom: 1rem;
}

.ingresos-control-detalle-app {
    --control-accent: #0f7f89;
    --control-accent-strong: #53318f;
    --control-picking-top-offset: 3.25rem;
    --control-picking-fixed-card-height: 13.1rem;
    --control-picking-actionbar-height: 76px;
}

.ingresos-autorizadas-app {
    --control-accent: #0f7f89;
    --control-accent-strong: #53318f;
    --control-picking-top-offset: 3.25rem;
    --control-picking-fixed-card-height: 7.2rem;
    --control-picking-actionbar-height: 76px;
}

.ingresos-app .container-fluid.p-3 {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.75rem !important;
}

.ingresos-simple-loading {
    display: grid;
    min-height: calc(100dvh - 3.25rem);
    place-items: center;
    color: var(--brand, #09388b);
    font-size: 1.05rem;
    font-weight: 900;
}

.ingresos-app header.fixed-top {
    position: static !important;
    left: 0;
    right: 0;
    max-width: none;
    margin: 0 0 0.75rem;
    padding: 0.7rem 0.75rem !important;
    border: 1px solid rgba(9, 56, 139, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--ink, #1f2937) !important;
    box-shadow: 0 4px 16px rgba(0, 43, 98, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ingresos-app header.fixed-top .row {
    --bs-gutter-x: 0.5rem;
    align-items: center;
}

.ingresos-app header.fixed-top .row:first-child {
    min-height: 2rem;
}

.ingresos-app header.fixed-top .ingresos-section-heading {
    padding-bottom: 0.45rem;
    border-bottom: 1px solid #e8eef8;
}

.ingresos-app header.fixed-top .ingresos-section-heading.is-provider-choice {
    border-bottom: 0;
}

.ingresos-app header.fixed-top h6 {
    margin: 0;
    color: var(--brand, #09388b);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.05;
}

.ingresos-header-copy {
    display: block;
    margin-top: 0.18rem;
    color: var(--muted, #64748b) !important;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.15;
}

.ingresos-selection-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ingresos-selection-context-copy {
    min-width: 0;
}

.ingresos-selection-context-copy h6,
.ingresos-selection-context-copy .ingresos-header-copy {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ingresos-change-provider-button {
    flex: 0 0 auto;
    min-height: 2.2rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 900;
}

.ingresos-app header.fixed-top span,
.ingresos-app header.fixed-top label,
.ingresos-app header.fixed-top div {
    color: inherit;
}

.ingresos-app header.fixed-top img.d-inline-block {
    display: none;
}

.ingresos-app header.fixed-top .form-select,
.ingresos-app header.fixed-top .form-control {
    min-height: 2.45rem;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background-color: #ffffff;
    color: var(--ink, #1f2937);
    font-weight: 750;
    box-shadow: 0 4px 12px rgba(0, 43, 98, 0.06);
}

.ingresos-app header.fixed-top .form-select:focus,
.ingresos-app header.fixed-top .form-control:focus {
    border-color: var(--brand, #09388b);
    box-shadow: 0 0 0 0.18rem rgba(13, 71, 161, 0.1);
}

.ingresos-search-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
}

.ingresos-control-search-line {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    margin-bottom: 0;
}

.ingresos-control-filter-field {
    min-width: 0;
}

.ingresos-control-search-line .form-control,
.ingresos-control-search-line .ingresos-scan-priority-button {
    min-height: 2.45rem;
}

.ingresos-control-search-line .ingresos-scan-priority-button {
    border-radius: 12px !important;
}

.ingresos-control-sticky-card {
    z-index: 1040;
}

.ingresos-control-fixed-spacer {
    height: var(--control-picking-fixed-card-height);
}

.ingresos-autorizadas-fixed-spacer {
    height: var(--control-picking-fixed-card-height);
}

.ingresos-control-title-line {
    width: 100%;
}

.ingresos-control-summary strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ingresos-control-summary.control-picking-summary {
    grid-template-columns: minmax(0, 10fr) minmax(0, 7fr) minmax(0, 3fr);
}

.ingresos-control-progress .progress-bar {
    background: linear-gradient(90deg, var(--control-accent-strong, #09388b), var(--control-accent, #11a7b5)) !important;
}

.ingresos-control-sync-alert-button {
    min-width: 8.1rem;
}

.ingresos-control-actionbar-icon-save {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2309388b' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2Z'/%3E%3Cpath d='M17 21v-8H7v8'/%3E%3Cpath d='M7 3v5h8'/%3E%3C/svg%3E");
}

.ingresos-autorizadas-search-line.control-picking-search-line {
    grid-template-columns: minmax(0, 1fr);
}

.ingresos-autorizadas-app .ingresos-control-actionbar {
    justify-content: flex-start;
}

.ingresos-autorizadas-app .ingresos-control-actionbar-button {
    flex: 0 1 calc(50% - 0.225rem);
}

.ingresos-search-line.has-leading-action {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.ingresos-search-line .ingresos-barcode-search-button.btn-with-image-barcode {
    border-color: transparent !important;
    background-color: transparent !important;
    box-shadow: none;
}

.ingresos-app header.fixed-top + div[style*="padding-top"] {
    padding-top: 0 !important;
}

.ingresos-app .btn-with-image-history,
.ingresos-app .btn-with-image-autorizada,
.ingresos-app .btn-with-image-transfer,
.ingresos-app .btn-with-image-back,
.ingresos-app .btn-with-image-ok,
.ingresos-app .btn-with-image-cancel,
.ingresos-app .btn-with-image-find,
.ingresos-app .btn-with-image-alert,
.ingresos-app .btn-with-image-barcode {
    display: inline-grid;
    place-items: center;
    width: 2.45rem !important;
    min-width: 2.45rem;
    height: 2.45rem !important;
    min-height: 2.45rem;
    padding: 0 !important;
    border: 1px solid #dbe4f0 !important;
    border-radius: 12px !important;
    background-color: #ffffff !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 1.25rem 1.25rem !important;
    box-shadow: 0 5px 14px rgba(0, 43, 98, 0.1);
    color: transparent !important;
    font-size: 0 !important;
    line-height: 1 !important;
    transition: transform 0.12s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.ingresos-app .btn-with-image-ok {
    border-color: transparent !important;
    background-color: var(--brand, #09388b) !important;
    box-shadow: 0 8px 18px rgba(9, 56, 139, 0.24);
}

.ingresos-app .btn-with-image-transfer {
    border-color: transparent !important;
    background-color: #14804a !important;
    box-shadow: 0 8px 18px rgba(20, 128, 74, 0.22);
}

.ingresos-app .btn-with-image-autorizada {
    border-color: transparent !important;
    background-color: #f5b82e !important;
    box-shadow: 0 8px 18px rgba(245, 184, 46, 0.22);
}

.ingresos-app .btn-with-image-barcode {
    border-color: transparent !important;
    background-color: #f5b82e !important;
    box-shadow: 0 8px 18px rgba(245, 184, 46, 0.22);
}

.ingresos-app .btn-with-image-alert,
.ingresos-app .btn-with-image-cancel {
    border-color: rgba(192, 57, 43, 0.22) !important;
    background-color: #fff5f5 !important;
}

.ingresos-app .btn-with-image-history {
    background-color: #eef5ff !important;
}

.ingresos-app .btn-with-image-history:active,
.ingresos-app .btn-with-image-autorizada:active,
.ingresos-app .btn-with-image-transfer:active,
.ingresos-app .btn-with-image-back:active,
.ingresos-app .btn-with-image-ok:active,
.ingresos-app .btn-with-image-cancel:active,
.ingresos-app .btn-with-image-find:active,
.ingresos-app .btn-with-image-alert:active,
.ingresos-app .btn-with-image-barcode:active {
    transform: scale(0.96);
}

.ingresos-app section {
    display: grid;
    gap: 0.7rem;
}

.ingresos-app section > .container-fluid {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.ingresos-empty-state {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 1rem 0.85rem;
    border: 1px solid #dbe4f0;
    border-left: 4px solid #94a3b8;
    border-radius: 8px;
    background: #ffffff;
    color: var(--muted, #64748b);
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 43, 98, 0.07);
}

.ingresos-empty-state.is-success {
    border-left-color: #14804a;
    background: #f4fbf7;
}

.ingresos-empty-state strong {
    color: var(--ink, #1f2937);
    font-size: 0.95rem;
    font-weight: 950;
}

.ingresos-empty-state span {
    max-width: 28rem;
    color: var(--muted, #64748b);
    font-size: 0.82rem;
    font-weight: 760;
    line-height: 1.25;
}

.ingresos-empty-state img {
    width: 2rem;
    height: 2rem;
}

.ingresos-provider-grid {
    display: grid;
    gap: 0.65rem;
}

.ingresos-provider-card {
    position: relative;
    display: grid;
    gap: 0.32rem;
    width: 100%;
    min-height: 4.85rem;
    padding: 0.75rem 3.85rem 0.75rem 0.85rem;
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-left: 4px solid var(--brand, #09388b);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink, #1f2937);
    text-align: left;
    box-shadow: 0 4px 14px rgba(0, 43, 98, 0.08);
    transition: transform 0.12s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.ingresos-provider-card::before {
    content: "";
    position: absolute;
    top: calc(50% - 0.29rem);
    right: 2.02rem;
    width: 0.58rem;
    height: 0.58rem;
    border: 2px solid rgba(9, 56, 139, 0.7);
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    animation: ingresosProviderTapPulse 1.6s ease-out infinite;
}

.ingresos-provider-card::after {
    content: "";
    position: absolute;
    top: calc(50% - 0.45rem);
    right: 0.54rem;
    width: 2.75rem;
    height: 2.75rem;
    opacity: 0.92;
    pointer-events: none;
    transform-origin: 58% 78%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'%3E%3Cpath d='M30.5 7V2.5M20.2 11.2 17 8M14.8 20.5H9.8M40.8 11.2 44 8M46.2 20.5h5' stroke='%2309388b' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M26.7 49.6 15.5 38.4c-1.6-1.6-1.6-4.1 0-5.7 1.5-1.5 3.9-1.6 5.5-.2l4.8 4.2V20.8c0-2.4 1.9-4.3 4.3-4.3s4.3 1.9 4.3 4.3v9.4c0-2.1 1.7-3.8 3.8-3.8s3.8 1.7 3.8 3.8v2c0-2.1 1.7-3.8 3.8-3.8s3.8 1.7 3.8 3.8v3c0-2 1.6-3.6 3.6-3.6s3.6 1.6 3.6 3.6v8.6c0 8.7-7 15.7-15.7 15.7h-6.9c-4.3 0-8.4-1.7-11.5-4.8Z' fill='%23ffffff' stroke='%2309388b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    animation: ingresosProviderTapHand 1.6s ease-in-out infinite;
}

.ingresos-provider-card:active {
    transform: scale(0.985);
}

@keyframes ingresosProviderTapHand {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    36% {
        transform: translate(-3px, 4px) rotate(-5deg) scale(0.94);
    }

    54% {
        transform: translate(-3px, 4px) rotate(-5deg) scale(0.94);
    }

    74% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes ingresosProviderTapPulse {
    0%,
    28% {
        opacity: 0;
        transform: scale(0.5);
    }

    42% {
        opacity: 0.85;
        transform: scale(0.75);
    }

    78% {
        opacity: 0;
        transform: scale(2.45);
    }

    100% {
        opacity: 0;
        transform: scale(2.45);
    }
}

.ingresos-provider-name {
    color: var(--ink, #1f2937);
    font-size: 0.95rem;
    font-weight: 950;
    line-height: 1.15;
}

.ingresos-provider-count {
    color: var(--brand-data, #074da2);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.1;
}

.ingresos-provider-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
}

.ingresos-provider-meta span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    min-height: 1.45rem;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    background: #eef5ff;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
}

.ingresos-provider-meta strong {
    color: var(--brand-data, #074da2);
    font-size: 0.76rem;
}

@media (max-width: 380px) {
    .ingresos-provider-card {
        padding-right: 3.25rem;
    }

    .ingresos-provider-card::after {
        right: 0.42rem;
        width: 2.35rem;
        height: 2.35rem;
    }

    .ingresos-provider-card::before {
        right: 1.75rem;
    }
}

.ingresos-review-note {
    display: grid;
    gap: 0.25rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #dbe4f0;
    border-left: 4px solid #94a3b8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 43, 98, 0.07);
}

.ingresos-review-note span {
    color: var(--muted, #64748b);
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1.05;
}

.ingresos-review-note strong {
    color: var(--ink, #1f2937);
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.25;
}

.ingresos-app .ingresos-product-selection-modal .product-selection-shell {
    grid-template-rows: minmax(18rem, 40dvh) minmax(0, 1fr) auto;
    background: #edf3fb;
}

.ingresos-app .ingresos-product-selection-modal .ingresos-product-modal-hero {
    position: relative;
    display: grid;
    grid-template-columns: none;
    place-items: center;
    min-height: 18rem;
    gap: 0;
    overflow: hidden;
    padding: 0;
    border-bottom: 0;
    background: linear-gradient(180deg, #eef5ff 0%, #dfe8f5 58%, #243f75 100%);
}

.ingresos-app .ingresos-product-selection-modal .ingresos-product-modal-hero::after {
    display: block;
}

.ingresos-app .ingresos-product-selection-modal .product-modal-dismiss {
    top: calc(0.75rem + env(safe-area-inset-top));
    right: 0.75rem;
    left: auto;
    width: 2.45rem;
    height: 2.45rem;
    background: #eef5ff;
    box-shadow: 0 4px 14px rgba(0, 43, 98, 0.1);
}

.ingresos-app .ingresos-product-selection-modal .product-modal-dismiss span {
    border-color: var(--brand, #09388b);
}

.ingresos-app .ingresos-product-selection-modal .product-hero-image {
    position: absolute;
    top: 1rem;
    z-index: 1;
    width: min(58vw, 16.5rem);
    height: min(58vw, 16.5rem);
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ingresos-app .ingresos-product-selection-modal .product-hero-image img {
    padding: 0;
    filter: drop-shadow(0 18px 18px rgba(15, 23, 42, 0.18));
}

.ingresos-app .ingresos-product-selection-modal .product-hero-image.is-missing {
    top: 4.2rem;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.38);
}

.ingresos-app .ingresos-product-selection-modal .ingresos-product-modal-info {
    position: absolute;
    right: 1.2rem;
    bottom: 1.65rem;
    left: 1.2rem;
    z-index: 2;
    gap: 0.75rem;
    color: #ffffff;
}

.ingresos-app .ingresos-product-selection-modal .ingresos-product-modal-info h2 {
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.16;
    text-shadow: 0 2px 10px rgba(5, 18, 43, 0.28);
    -webkit-line-clamp: 2;
}

.ingresos-app .ingresos-product-selection-modal .ingresos-product-modal-info .ingresos-product-modal-meta {
    display: flex;
    grid-template-columns: none;
    flex-wrap: wrap;
    gap: 0.28rem;
    align-items: center;
}

.ingresos-app .ingresos-product-selection-modal .ingresos-product-modal-info .ingresos-product-modal-meta span {
    display: block;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.03em;
    line-height: 1;
    text-transform: uppercase;
}

.ingresos-app .ingresos-product-selection-modal .ingresos-product-modal-info .ingresos-product-modal-meta span::before {
    display: none;
}

.ingresos-app .ingresos-product-selection-modal .ingresos-product-modal-info .ingresos-product-modal-meta span + span::before {
    content: "";
    display: inline-block;
    width: 0.2rem;
    height: 0.2rem;
    margin: 0 0.5rem 0.12rem 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.ingresos-app .ingresos-product-selection-modal .product-selection-body {
    gap: 0.65rem;
    padding: 0.8rem;
}

.ingresos-app .ingresos-product-selection-modal .ingresos-product-quantity-card {
    min-height: 0;
    padding: 0.85rem;
    border-radius: 8px;
}

.ingresos-app .ingresos-product-selection-modal .ingresos-product-quantity-card > span {
    color: var(--ink, #1f2937);
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: none;
}

.ingresos-app .ingresos-product-selection-modal .ingresos-product-modal-form {
    padding: 0.8rem;
    border-radius: 8px;
}

.ingresos-app .ingresos-product-selection-modal .ingresos-product-modal-form label {
    gap: 0.35rem;
    font-size: 0.72rem;
}

.ingresos-app .ingresos-product-selection-modal .ingresos-product-modal-form textarea.form-control {
    min-height: 4.25rem;
}

.ingresos-app .row.border,
.ingresos-app .row.border-bottom {
    margin-right: 0;
    margin-left: 0;
    overflow: hidden;
    border: 1px solid #dbe4f0 !important;
    border-left: 4px solid var(--brand, #09388b) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 3px 12px rgba(0, 43, 98, 0.07);
}

.ingresos-oc-card,
.ingresos-product-card {
    position: relative;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.ingresos-oc-card {
    padding-right: 3.4rem !important;
}

.ingresos-autorizadas-app .ingresos-oc-card {
    padding-right: 0.75rem !important;
}

.ingresos-autorizadas-app .ingresos-oc-summary {
    min-width: 0;
    padding-right: 6.4rem !important;
}

.ingresos-autorizadas-app .ingresos-save-action {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0;
    z-index: 1;
}

.ingresos-oc-card.is-selected {
    border-color: var(--brand, #09388b) !important;
    border-left-color: #14804a !important;
    box-shadow: 0 6px 18px rgba(20, 128, 74, 0.14);
}

.ingresos-product-card.has-difference {
    border-left-color: var(--danger-mid, #c0392b) !important;
    background: #fff5f5 !important;
}

.ingresos-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    margin: 0.25rem 0 0.35rem;
}

.ingresos-card-meta span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    min-height: 1.45rem;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    background: #eef5ff;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
}

.ingresos-card-meta strong {
    color: var(--brand-data, #074da2);
    font-size: 0.76rem;
}

.ingresos-card-meta span.is-warning {
    background: #fff4d6;
    color: #8a5b00;
}

.ingresos-card-meta span.is-warning strong {
    color: #8a3d00;
}

.ingresos-card-action {
    min-width: 4.4rem;
    border-radius: 8px;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1.05;
    white-space: normal;
}

.ingresos-autorizadas-app .ingresos-card-action {
    animation: ingresosGuardarOcBlink 1.05s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.5);
    margin-top: 0 !important;
    will-change: filter, box-shadow, transform;
}

@keyframes ingresosGuardarOcBlink {
    0%,
    100% {
        filter: brightness(1);
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.5), 0 5px 12px rgba(20, 128, 74, 0.14);
        transform: translateY(0);
    }

    50% {
        filter: brightness(1.18);
        box-shadow: 0 0 0 5px rgba(25, 135, 84, 0.18), 0 8px 18px rgba(20, 128, 74, 0.26);
        transform: translateY(-1px);
    }
}

.ingresos-app .row[style*="lightcoral"] {
    border-left-color: var(--danger-mid, #c0392b) !important;
    background: #fff5f5 !important;
}

.ingresos-app .row[style*="lightgrey"],
.ingresos-app .row[style*="lightgray"] {
    border-left-color: #94a3b8 !important;
    background: #f8fafc !important;
}

.ingresos-app .row.border p,
.ingresos-app .row.border-bottom p {
    color: var(--ink, #1f2937);
}

.ingresos-app .row.border .h6,
.ingresos-app .row.border-bottom .h6 {
    color: var(--ink, #1f2937);
    font-size: 0.92rem;
    line-height: 1.18;
}

.ingresos-app .fontEAN {
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
}

.ingresos-app .imagepick {
    width: 100%;
    max-height: 7.25rem;
    padding: 0.22rem;
    border: 1px solid #e8eef8;
    border-radius: 10px;
    background: #ffffff;
    object-fit: contain;
}

.ingresos-pasados-section {
    display: grid;
    gap: 0.6rem;
    padding-top: 1rem !important;
}

.ingresos-pasados-separator {
    margin: 0.45rem 0 0.1rem;
    border-color: #cbd7e7;
    opacity: 1;
}

.ingresos-pasados-title {
    margin: 0;
    padding: 0.55rem 0.75rem;
    border: 1px solid #dbe4f0;
    border-left: 4px solid #64748b;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef5ff 100%);
    box-shadow: 0 3px 12px rgba(0, 43, 98, 0.07);
}

.ingresos-pasados-title span {
    display: block;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
}

.ingresos-pasado-card {
    overflow: hidden;
    border: 1px solid #dbe4f0;
    border-left: 4px solid #94a3b8;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(0, 43, 98, 0.08);
}

.ingresos-pasado-main {
    align-items: center;
    margin: 0;
    padding: 0.6rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.ingresos-pasado-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ingresos-pasado-media .imagepick {
    width: 100%;
    max-width: 5.6rem;
    max-height: 5.6rem;
    padding: 0.28rem;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px #f1f5f9;
}

.ingresos-pasado-info {
    display: grid;
    gap: 0.22rem;
    padding: 0 0.55rem !important;
}

.ingresos-pasado-code,
.ingresos-pasado-name {
    margin: 0;
    color: var(--ink, #1f2937);
    line-height: 1.16;
}

.ingresos-pasado-code {
    color: var(--brand, #09388b);
    font-size: 0.82rem;
    font-weight: 950;
}

.ingresos-pasado-name {
    font-size: 0.9rem;
    font-weight: 900;
}

.ingresos-pasado-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.1rem;
}

.ingresos-pasado-meta span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.22rem;
    min-height: 1.45rem;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    background: #eef5ff;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
}

.ingresos-pasado-meta strong {
    color: var(--brand-data, #074da2);
    font-size: 0.78rem;
}

.ingresos-pasado-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ingresos-pasado-details {
    display: grid;
    border-top: 1px solid #e8eef8;
    background: #f8fafc;
}

.ingresos-pasado-detail-head,
.ingresos-pasado-detail-row {
    display: grid;
    grid-template-columns: 0.75fr 1fr minmax(0, 1.45fr);
    gap: 0.35rem;
    align-items: center;
    padding: 0.42rem 0.65rem;
}

.ingresos-pasado-detail-head {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
}

.ingresos-pasado-detail-row {
    border-top: 1px solid #e8eef8;
    color: var(--ink, #1f2937);
    font-size: 0.78rem;
    font-weight: 780;
}

.ingresos-pasado-detail-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ingresos-app img[src$="arrowup-icon2.png"] {
    width: 1.9rem;
    height: 1.9rem;
    filter: hue-rotate(184deg) saturate(0.9) brightness(0.88);
}

.ingresos-app .form-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.2rem 0.35rem;
    border: 0;
    background: transparent;
}

.ingresos-app .form-check-input {
    width: 1.55rem;
    height: 1.55rem;
    margin: 0;
    border: 2px solid #b7c7dd;
    border-radius: 8px;
}

.ingresos-oc-card .form-check-input {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
}

.ingresos-oc-check-column {
    position: absolute;
    top: 50%;
    right: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    transform: translateY(-50%);
}

.ingresos-app .form-check-input:checked {
    border-color: var(--brand, #09388b);
    background-color: var(--brand, #09388b);
}

.ingresos-oc-card:not(.is-selected) .form-check-input:not(:checked) {
    border-color: #0b5ed7 !important;
    background-color: #ffffff;
    box-shadow: 0 0 0 0 rgba(9, 56, 139, 0.58);
    animation: ingresosOcCheckboxGlow 1.45s ease-in-out infinite;
}

.ingresos-oc-card.is-selected .form-check-input:checked {
    border-color: #14804a !important;
    background-color: #14804a;
    box-shadow: 0 0 0 3px rgba(20, 128, 74, 0.14);
    animation: none;
}

@keyframes ingresosOcCheckboxGlow {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(9, 56, 139, 0.58), 0 0 0 0 rgba(9, 56, 139, 0.18);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(9, 56, 139, 0.2), 0 0 16px rgba(9, 56, 139, 0.42);
        transform: scale(1.06);
    }
}

.ingresos-controlar-oc-button.is-ready {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.52);
    animation: ingresosControlarOcBlink 1.05s ease-in-out infinite;
}

@keyframes ingresosControlarOcBlink {
    0%,
    100% {
        filter: brightness(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.52);
        transform: translateY(0);
    }

    50% {
        filter: brightness(1.12);
        box-shadow: 0 0 0 5px rgba(13, 110, 253, 0.22), 0 0 18px rgba(13, 110, 253, 0.36);
        transform: translateY(-1px);
    }
}

.ingresos-app .alert {
    border-radius: 12px;
    font-weight: 760;
}

.ingresos-app .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 43, 98, 0.22);
}

.ingresos-app .modal-header {
    border-bottom: 1px solid #e8eef8;
    background: #f8fbff !important;
}

.ingresos-app .modal-title {
    color: var(--brand, #09388b);
    font-weight: 900;
}

.ingresos-app footer {
    display: flex;
    align-items: center;
    z-index: 30;
    min-height: calc(4.1rem + env(safe-area-inset-bottom));
    padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom));
    border-top: 1px solid #dbe4f0;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink, #1f2937);
    box-shadow: 0 -8px 22px rgba(0, 43, 98, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.ingresos-app footer p {
    margin: 0;
    color: var(--muted, #64748b);
    font-size: 0.82rem;
    font-weight: 760;
}

.ingresos-app footer .btn {
    min-height: 2.4rem;
    border-radius: 999px;
    font-weight: 850;
}

.ingresos-footer-bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    max-width: 900px;
    min-width: 0;
    margin: 0 auto;
}

.ingresos-footer-actions-only {
    justify-content: flex-end;
}

.ingresos-footer-meta {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--muted, #64748b);
    font-size: 0.82rem;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ingresos-footer-summary {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--ink, #1f2937);
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
}

.ingresos-footer-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.ingresos-selection-footer-bar,
.ingresos-selection-footer-actions {
    width: 100%;
}

.ingresos-selection-footer-actions {
    justify-content: flex-end;
}

.ingresos-app footer .ingresos-selection-footer-button {
    flex: 0 1 auto;
    min-width: 0;
    min-height: 2.55rem;
    padding: 0.4rem 0.45rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.1;
    white-space: nowrap;
}

.ingresos-app footer.ingresos-selection-footer {
    min-height: calc(76px + env(safe-area-inset-bottom));
    padding: 0.55rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom));
    border-top: 1px solid #cbd8e8;
    background: rgba(213, 220, 226, 0.98);
    box-shadow: 0 -8px 22px rgba(15, 23, 42, 0.14);
}

.ingresos-selection-footer-bar {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(7.6rem, 1fr);
    align-items: stretch;
    gap: 0.45rem;
    max-width: none;
    min-height: 3.25rem;
}

.ingresos-selection-footer-secondary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.45rem;
}

.ingresos-app footer .ingresos-selection-footer-button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.42rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.38rem 0.45rem;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #f8fbff;
    color: #172033;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 43, 98, 0.08);
}

.ingresos-app footer .ingresos-selection-footer-button:disabled {
    opacity: 0.62;
}

.ingresos-app footer .ingresos-selection-footer-button strong,
.ingresos-app footer .ingresos-selection-footer-button small {
    min-width: 0;
    overflow: hidden;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ingresos-app footer .ingresos-selection-footer-button strong {
    align-self: end;
    color: #172033;
    font-size: 0.76rem;
    font-weight: 950;
}

.ingresos-app footer .ingresos-selection-footer-button small {
    align-self: start;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 850;
}

.ingresos-selection-footer-icon {
    grid-row: 1 / -1;
    display: block;
    width: 1.32rem;
    height: 1.32rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 1.32rem 1.32rem;
}

.ingresos-selection-footer-icon-authorized {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2353318f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2 2 4-5'/%3E%3Cpath d='M21 12c-1.2 5.2-4.3 8-9 8s-7.8-2.8-9-8c1.2-5.2 4.3-8 9-8s7.8 2.8 9 8Z'/%3E%3C/svg%3E");
}

.ingresos-selection-footer-icon-refresh {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%230f7f89' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-15.5 6.2'/%3E%3Cpath d='M3 12A9 9 0 0 1 18.5 5.8'/%3E%3Cpath d='M3 17v5h5'/%3E%3Cpath d='M21 7V2h-5'/%3E%3C/svg%3E");
}

.ingresos-selection-footer-icon-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2309388b' stroke-width='2.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 12l2 2 4-5'/%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3C/svg%3E");
}

.ingresos-controladas-footer-bar,
.ingresos-controladas-footer-actions {
    width: 100%;
}

.ingresos-controladas-footer-actions {
    justify-content: flex-end;
}

.ingresos-app footer .ingresos-controladas-footer-button {
    min-height: 2.55rem;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    font-size: 0.86rem;
    line-height: 1.1;
    white-space: nowrap;
}

.ingresos-review-button {
    min-height: 2.45rem;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    border-radius: 8px !important;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.ingresos-session-button {
    flex: 0 0 auto;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    white-space: nowrap;
}

.ingresos-app footer .ingresos-save-button {
    min-width: 5.7rem;
    min-height: 2.45rem;
    padding: 0.35rem 0.9rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 900;
}

.ingresos-controladas-footer-bar,
.ingresos-controladas-footer-actions {
    flex: 1 1 auto;
    width: 100%;
}

.ingresos-controladas-footer-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.ingresos-app footer .ingresos-controladas-footer-button {
    width: 100%;
    min-width: 0;
    min-height: 2.7rem;
    padding: 0.45rem 0.3rem;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.ingresos-app footer .btn-with-image-history,
.ingresos-app footer .btn-with-image-autorizada,
.ingresos-app footer .btn-with-image-transfer,
.ingresos-app footer .btn-with-image-back,
.ingresos-app footer .btn-with-image-ok,
.ingresos-app footer .btn-with-image-cancel,
.ingresos-app footer .btn-with-image-find,
.ingresos-app footer .btn-with-image-alert,
.ingresos-app footer .btn-with-image-barcode {
    border-radius: 12px !important;
}

.ingresos-app .ir-arriba {
    right: 1rem;
    bottom: calc(4.9rem + env(safe-area-inset-bottom));
    width: 2.7rem;
    height: 2.7rem;
    padding: 0;
    border-radius: 999px;
    background: var(--brand, #09388b);
    box-shadow: 0 10px 24px rgba(9, 56, 139, 0.2);
}

.ingresos-app .ir-arriba img {
    width: 1.25rem;
    height: 1.25rem;
}

.ingresos-controladas-loading-modal {
    z-index: 1065;
}

.ingresos-controladas-loading-modal .modal-dialog {
    margin: 1rem;
}

.ingresos-controladas-loading-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 43, 98, 0.22);
}

.ingresos-controladas-loading-modal .modal-body {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    padding: 1.45rem 1.25rem;
    text-align: center;
}

.ingresos-controladas-loading-modal img {
    display: block;
    width: min(68vw, 320px);
    max-height: 72px;
    object-fit: contain;
}

.ingresos-controladas-loading-modal span {
    color: var(--ink, #1f2937);
    font-size: 1rem;
    font-weight: 900;
}

.ingresos-controladas-loading-backdrop {
    z-index: 1060;
}

.ingresos-historico-title-row {
    display: flex;
    justify-content: space-between;
    gap: 0.65rem;
}

.ingresos-app header.fixed-top .ingresos-historico-back-button {
    width: 2.45rem;
    min-width: 2.45rem;
    height: 2.45rem;
    min-height: 2.45rem;
    padding: 0;
    border-radius: 12px;
}

.ingresos-historico-search-line {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.ingresos-historico-search-line .btn {
    width: 2.45rem;
    min-width: 2.45rem;
    height: 2.45rem;
    min-height: 2.45rem;
    padding: 0;
    border-radius: 12px;
}

.ingresos-historico-table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 43, 98, 0.08);
}

.ingresos-historico-table {
    min-width: 820px;
    margin: 0;
    table-layout: fixed;
    font-size: 0.78rem;
}

.ingresos-historico-table th,
.ingresos-historico-table td {
    padding: 0.55rem 0.5rem;
    vertical-align: middle;
    border-color: #e8eef8;
}

.ingresos-historico-table th {
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.ingresos-historico-table td {
    color: var(--ink, #1f2937);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.ingresos-historico-loading-modal {
    z-index: 1065;
}

.ingresos-historico-loading-modal .modal-dialog {
    margin: 1rem;
}

.ingresos-historico-loading-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 43, 98, 0.22);
}

.ingresos-historico-loading-modal .modal-body {
    display: grid;
    justify-items: center;
    gap: 0.85rem;
    padding: 1.45rem 1.25rem;
    text-align: center;
}

.ingresos-historico-loading-modal img {
    display: block;
    width: min(68vw, 320px);
    max-height: 72px;
    object-fit: contain;
}

.ingresos-historico-loading-modal span {
    color: var(--ink, #1f2937);
    font-size: 1rem;
    font-weight: 900;
}

.ingresos-historico-loading-backdrop {
    z-index: 1060;
}

@media (min-width: 760px) {
    .ingresos-app {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .ingresos-app header.fixed-top {
        top: auto;
        border-top: 1px solid rgba(9, 56, 139, 0.1);
        border-radius: 18px;
    }

    .ingresos-app footer {
        left: 50%;
        width: min(900px, calc(100% - 2rem));
        transform: translateX(-50%);
        border: 1px solid #dbe4f0;
        border-bottom: 0;
        border-radius: 18px 18px 0 0;
    }
}

@media (max-width: 560px) {
    .ingresos-footer-meta {
        display: block;
        font-size: 0.72rem;
    }

    .ingresos-footer-summary {
        font-size: 0.72rem;
    }

    .ingresos-footer-bar {
        justify-content: space-between;
    }

    .ingresos-app footer .ingresos-selection-footer-button,
    .ingresos-app footer .ingresos-controladas-footer-button,
    .ingresos-review-button {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
        font-size: 0.76rem;
    }
}

.ingresos-footer-bar.ingresos-footer-actions-only {
    justify-content: flex-end;
}

@media (max-width: 700px) {
    .ingresos-historico-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .ingresos-historico-table,
    .ingresos-historico-table thead,
    .ingresos-historico-table tbody,
    .ingresos-historico-table tr,
    .ingresos-historico-table th,
    .ingresos-historico-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .ingresos-historico-table {
        font-size: 0.82rem;
    }

    .ingresos-historico-table thead {
        display: none;
    }

    .ingresos-historico-table tbody {
        display: grid;
        gap: 0.7rem;
    }

    .ingresos-historico-table tr {
        padding: 0.85rem 0.95rem;
        border: 1px solid #dbe4f0;
        border-left: 4px solid var(--brand, #09388b);
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 4px 14px rgba(0, 43, 98, 0.08);
    }

    .ingresos-historico-table td {
        display: flex;
        justify-content: space-between;
        gap: 0.85rem;
        padding: 0.35rem 0 !important;
        border: 0 !important;
        text-align: right;
        line-height: 1.25;
    }

    .ingresos-historico-table td::before {
        content: attr(data-label);
        flex: 0 0 auto;
        color: var(--muted, #64748b);
        font-size: 0.7rem;
        font-weight: 900;
        text-align: left;
        text-transform: uppercase;
    }

    .ingresos-historico-table td:first-child {
        display: block;
        padding-bottom: 0.65rem !important;
        color: var(--brand, #09388b);
        font-size: 0.92rem;
        font-weight: 900;
        text-align: left;
    }

    .ingresos-historico-table td:first-child::before {
        display: block;
        margin-bottom: 0.16rem;
    }
}

