.porCobrarResultadosVN {
    max-height: 68vh;
    overflow-y: auto;
    overflow-x: hidden;
    text-align: left;
    padding-right: 8px;
}

.porCobrarResultadosVN .panel-heading {
    overflow: hidden;
}

.porCobrarResultadosVN .well:last-child {
    margin-bottom: 0;
}

/* =========================================================
   VISOR EXCEL TINGLE VN
   ========================================================= */

.modal-excel-viewer-vn {
    z-index: 30000 !important;
}


/* Caja principal */

.modal-excel-viewer-vn .tingle-modal-box {
    width: 83vw;
    max-width: 95vw;
    height: 92vh;

    margin: auto;

    border-radius: 12px;
    overflow: hidden;
}


/* Quitamos padding propio de Tingle */

.modal-excel-viewer-vn .tingle-modal-box__content {
    padding: 0;
    height: 100%;
}


/* Estructura */

.modal-excel-vn-shell {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 92vh;

    background: #ffffff;
}


/* =========================================================
   HEADER
   ========================================================= */

.modal-excel-vn-header {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 64px;

    padding: 12px 18px 12px 22px;

    background: #008000;

    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}


/* Nombre del archivo */

.modal-excel-vn-title {
    min-width: 0;
    flex: 1;

    padding-right: 20px;

    color: #ffffff;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Botón cerrar */

.modal-excel-vn-close {
    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.15);

    color: #ffffff;

    font-size: 30px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.modal-excel-vn-close:hover {
    background: rgba(255, 255, 255, 0.28);
}


.modal-excel-vn-close:active {
    transform: scale(0.94);
}


/* =========================================================
   VISOR
   ========================================================= */

.modal-excel-vn-content {
    flex: 1;

    min-height: 0;
    width: 100%;

    overflow: hidden;

    background: #f5f6f8;
}


.modal-excel-vn-iframe {
    display: block;

    width: 100% !important;
    height: 100% !important;

    border: 0;

    background: #ffffff;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .modal-excel-viewer-vn .tingle-modal-box {
        width: 83vw;
        max-width: 98vw;
        height: 95vh;
    }

    .modal-excel-vn-shell {
        height: 95vh;
    }

    .modal-excel-vn-header {
        min-height: 58px;

        padding: 10px 12px 10px 15px;
    }

    .modal-excel-vn-title {
        font-size: 16px;
    }

    .modal-excel-vn-close {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}

/* =========================================================
   PDF VIEWER TINGLE VN
   ========================================================= */

.modal-pdf-viewer-vn {
    z-index: 31000 !important;
}


/* Caja Tingle */

.modal-pdf-viewer-vn .tingle-modal-box {
    width: 83vw !important;
    max-width: 83vw !important;
    height: 90vh;

    margin: auto;

    border-radius: 12px;

    overflow: hidden;

    background: #fff;
}


/* Eliminamos padding Tingle */

.modal-pdf-viewer-vn .tingle-modal-box__content {
    height: 100%;

    padding: 0 !important;
}


/* =========================================================
   ESTRUCTURA
   ========================================================= */

.modal-pdf-vn-shell {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 90vh;

    background: #ffffff;
}


/* =========================================================
   HEADER PDF
   ========================================================= */

.modal-pdf-vn-header {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 66px;

    padding: 11px 16px 11px 22px;

    background: #c0392b;

    border-bottom: 1px solid rgba(0, 0, 0, 0.12);

    box-sizing: border-box;
}


.modal-pdf-vn-heading {
    min-width: 0;

    flex: 1;
}


.modal-pdf-vn-title {
    color: #ffffff;

    font-size: 20px;
    font-weight: 600;

    line-height: 1.25;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    padding-right: 20px;
}


.modal-pdf-vn-subtitle {
    margin-top: 3px;

    color: rgba(255,255,255,0.80);

    font-size: 12px;

    line-height: 1.2;
}


/* Cerrar */

.modal-pdf-vn-close {
    flex: 0 0 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;

    border-radius: 8px;

    background: rgba(255,255,255,0.15);

    color: #fff;

    font-size: 30px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}


.modal-pdf-vn-close:hover {
    background: rgba(255,255,255,0.28);
}


.modal-pdf-vn-close:active {
    transform: scale(0.94);
}


/* =========================================================
   CUERPO
   ========================================================= */

.modal-pdf-vn-body {
    flex: 1;

    min-height: 0;

    width: 100%;

    overflow: hidden;

    background: #525659;
}


/* =========================================================
   EMBED NORMAL
   ========================================================= */

.modal-pdf-vn-normal-root {
    width: 100%;
    height: 100%;
}


.modal-pdf-vn-embed {
    display: block;

    width: 100% !important;
    height: 100% !important;

    border: 0;
}


/* =========================================================
   PDF.JS SEGURO
   ========================================================= */

.modal-pdf-vn-secure-root {
    width: 100%;
    height: 100%;
}


.modal-pdf-vn-secure-viewer {
    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;
}


.modal-pdf-vn-canvas-wrapper {
    flex: 1;

    min-height: 0;

    position: relative;

    width: 100%;

    overflow: auto;

    background: #ffffff;
}


.modal-pdf-vn-pages {
    width: 100%;

    padding: 20px 0;
}


.modal-pdf-vn-page-canvas {
    display: block;

    max-width: calc(100% - 40px);

    margin: 0 auto 15px auto;

    background: white;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.40);
}


/* =========================================================
   DESCARGA CONTROLADA
   ========================================================= */

.modal-pdf-vn-download-bar {
    flex: 0 0 auto;

    text-align: center;

    padding: 8px 12px;

    background: #f5f5f5;

    border-bottom: 1px solid #ddd;
}


/* =========================================================
   FALLBACK
   ========================================================= */

.modal-pdf-vn-fallback-frame {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    background: #fff;
}


/* ERROR */

.modal-pdf-vn-error {
    padding: 50px 20px;

    color: white;

    text-align: center;

    font-size: 15px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .modal-pdf-viewer-vn .tingle-modal-box {
        width: 97vw !important;
        max-width: 97vw !important;

        height: 94vh;
    }


    .modal-pdf-vn-shell {
        height: 94vh;
    }


    .modal-pdf-vn-header {
        min-height: 58px;

        padding:
            9px
            10px
            9px
            14px;
    }


    .modal-pdf-vn-title {
        font-size: 16px;
    }


    .modal-pdf-vn-close {
        flex-basis: 36px;

        width: 36px;
        height: 36px;
    }
}