/* ===============================================
   ESTILOS GENERALES Y RESET
=============================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #F5EDE2;
    overflow-x: hidden;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===============================================
   ORDEN DE ELEMENTOS EN MÓVILES
=============================================== */

.main-container .row {
    display: flex;
}

/* Asegurar que el contenido esté primero en móviles */
.col-md-8 {
    order: 1;
}

.col-md-4 {
    order: 2;
}

@media (min-width: 768px) {
    .col-md-8 {
        order: 2;
    }
    
    .col-md-4 {
        order: 1;
    }
}

.nova-logo {
    position: absolute;
    top: 5px;
    left: 5px; 
    font-size: 30px; 
    font-weight: bold; 
    z-index: 1000; 
    color: rgb(255, 255, 255);
    letter-spacing: 2px; 
    transform: rotate(-10deg); 
}

.libra-logo {
    display: block;
    font-size: 14px; 
    transform: rotate(-5deg); 
    margin-top: -5px; 
    text-align: center;
}

.logo-right {
    position: absolute;
    top: 25px; 
    right: 25px; 
    z-index: 1000; 
}

.logo-image {
    width: 120px; 
    height: auto;
}

/* ===============================================
   LAYOUT PRINCIPAL
=============================================== */

.leftside { 
    height: 100vh;
    width: 100%;
    background: blue;
    position: relative;
    overflow: hidden;
}

.rightside {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: #F5EDE2;
    padding: 20px;
    position: relative;
}

.full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===============================================
   SECCIÓN DE BÚSQUEDA
=============================================== */

.search-section {
    flex: 0 0 auto;
    margin-bottom: 20px;
    /* Centrado vertical cuando no hay resultados */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    transition: all 0.3s ease;
}

/* Cuando hay resultados, la sección se posiciona arriba */
.search-section.has-results {
    min-height: auto;
    align-items: flex-start;
    padding-top: 20px;
}

.buscador-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.text-tittle {
    color: #000000;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.text-label {
    color: #000000;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 500;
}

.input-group {
    display: flex;
    width: 100%;
}

.input-group .form-control {
    flex: 1;
    border-right: none;
    border-radius: 5px 0 0 5px;
}

.input-group .btn {
    border-radius: 0 5px 5px 0;
    border-left: none;
}

/* ===============================================
   SECCIÓN DE RESULTADOS
=============================================== */

.results-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pdf-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.pdf-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.pdf-viewer-container {
    padding: 20px;
    background: white;
}

.pdf-embed {
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 70vh;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    display: block;
}

.pdf-actions {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* ===============================================
   BOTONES
=============================================== */

.btn-buscar {
    color: #ffffff;
    background-color: #E40046;
    border: #E40046;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 10px 20px;
}

.btn-buscar:hover {
    background-color: #c50f46;
    border-color: #c50f46;
    color: white;
}

.btn-buscar:active {
    background-color: #700a29;
    border-color: #700a29;
}

.custom-btn {
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background-color: #E40046;
    border-color: #E40046;
    color: white;
    font-weight: 500;
}

.custom-btn:hover {
    background-color: #c50f46;
    border-color: #c50f46;
    color: white;
    text-decoration: none;
}

.custom-btn:active {
    background-color: #700a29;
    border-color: #700a29;
    color: white;
}

/* ===============================================
   MENSAJES DE ERROR
=============================================== */

.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.error {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    max-width: 500px;
    padding: 20px;
    display: flex;
    align-items: center;
    background: #FCE8DB;
    border-radius: 8px;
    border: 1px solid #EF665B;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.1);
}

.error__icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    flex-shrink: 0;
}

.error__icon path {
    fill: #EF665B;
}

.error__title {
    font-weight: 500;
    font-size: 16px;
    color: #71192F;
    line-height: 1.4;
}

/* ===============================================
   VALIDACIÓN DE FORMULARIOS
=============================================== */

.is-invalid {
    border-color: #dc3545;
}

.form-control:focus {
    border-color: #E40046;
    box-shadow: 0 0 0 0.2rem rgba(228, 0, 70, 0.25);
}

/* ===============================================
   FOOTER
=============================================== */

.footer {
    width: 100%;
    background-color: #807d7d;
    padding: 20px 0;
    margin-top: auto;
    position: relative;
}

.footer hr {
    margin: 0 0 20px 0;
    border: none;
    border-top: 1px solid #dee2e6;
}

.footer-content {
    text-align: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    color: white;
    margin-bottom: 20px;
}

.footer-text p {
    margin-bottom: 10px;
    line-height: 1.4;
}

.footer-logo ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-logo li {
    display: flex;
    align-items: center;
}

.footer-logo a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.footer-logo svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.footer-logo a:hover svg {
    transform: scale(1.2);
}

/* ===============================================
   INPUTS PARA MÓVILES - CORRECIONES ESPECÍFICAS
=============================================== */

@media (max-width: 768px) {
    /* Reset de bootstrap que puede estar causando problemas */
    .input-group-append {
        display: flex !important;
        width: 100% !important;
        margin-left: 0 !important;
    }
    
    .input-group-append .btn {
        width: 100% !important;
        flex: none !important;
        border-radius: 8px !important;
        margin-left: 0 !important;
    }
    
    /* Contenedores de inputs */
    .input-group {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px;
    }
    
    .form-group {
        width: 100% !important;
    }
    
    .form-group .input-group {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .input-group-append {
        display: flex !important;
        width: 100% !important;
    }
    
    .input-group-append .btn {
        width: 100% !important;
    }
    
    .input-group {
        gap: 15px;
    }
}

/* ===============================================
   RESPONSIVE DESIGN
=============================================== */

@media (max-width: 1200px) {
    .pdf-embed {
        height: 50vh;
        min-height: 300px;
        max-height: 55vh;
    }
    
    .buscador-wrapper,
    .pdf-container {
        max-width: 95%;
    }
}

@media (max-width: 900px) {
    .pdf-embed {
        height: 40vh;
        min-height: 250px;
        max-height: 45vh;
    }
    
    .text-tittle {
        font-size: 24px;
    }
    
    .buscador-wrapper,
    .pdf-container {
        margin: 0 10px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .rightside {
        min-height: auto;
        padding: 20px 15px;
        order: 1; /* Contenido principal primero */
    }
    
    /* En móviles, la sección de búsqueda no se centra verticalmente */
    .search-section {
        min-height: auto !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding-top: 0 !important;
    }
    
    .main-container .row {
        flex-direction: column; /* Orden normal, no reverse */
    }
    
    .leftside {
        height: 40vh;
        min-height: 250px;
        order: 2; /* Imagen segundo */
        position: relative;
    }
    
    .nova-logo {
        top: 15px;
        left: 15px; 
        font-size: 18px;
        z-index: 10;
    }
    
    .libra-logo {
        font-size: 9px;
        margin-top: -3px;
    }
    
    .logo-right {
        top: 15px; 
        right: 15px;
        position: fixed; /* Fijo para que no se superponga */
        z-index: 1001;
    }
    
    .logo-image {
        width: 80px; 
    }
    
    .text-tittle {
        font-size: 24px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .text-label {
        font-size: 16px;
        margin-bottom: 15px;
        text-align: center;
    }
    
    /* Mejorar inputs en móviles */
    .input-group {
        flex-direction: column;
        gap: 12px;
        width: 100% !important;
    }
    
    .input-group .form-control {
        border-radius: 8px;
        border: 2px solid #ced4da;
        margin-bottom: 0;
        font-size: 16px; /* Importante para iOS */
        padding: 15px;
        height: auto;
        min-height: 50px;
        width: 100% !important;
        flex: none !important;
        box-sizing: border-box;
    }
    
    .input-group .btn {
        border-radius: 8px;
        border: none;
        font-size: 16px;
        padding: 15px 20px;
        min-height: 50px;
        font-weight: 600;
        width: 100% !important;
        flex: none !important;
        display: block !important;
        visibility: visible !important;
    }
    
    /* Asegurar que el botón "Buscar" sea visible */
    .btn-buscar {
        display: block !important;
        width: 100% !important;
        visibility: visible !important;
        background-color: #E40046 !important;
        color: white !important;
        border: none !important;
    }
    
    /* Mejorar formulario de email en móviles */
    .pdf-actions .input-group {
        gap: 10px;
        width: 100% !important;
    }
    
    .pdf-actions .input-group .form-control {
        min-height: 45px;
        font-size: 16px;
        padding: 12px;
        width: 100% !important;
        flex: none !important;
        box-sizing: border-box;
    }
    
    .pdf-actions .input-group .btn {
        min-height: 45px;
        font-size: 14px;
        padding: 12px 15px;
        width: 100% !important;
        flex: none !important;
        display: block !important;
        visibility: visible !important;
    }
    
    /* Botón de enviar correo específico */
    .pdf-actions .btn-success {
        display: block !important;
        width: 100% !important;
        visibility: visible !important;
        background-color: #28a745 !important;
        color: white !important;
        border: none !important;
    }
    
    .pdf-embed {
        height: 40vh;
        min-height: 300px;
        max-height: 50vh;
    }
    
    .pdf-actions .row {
        flex-direction: column;
    }
    
    .pdf-actions .col-md-6 {
        margin-bottom: 15px;
    }
    
    .buscador-wrapper {
        padding: 25px 20px;
        margin-bottom: 20px;
        width: calc(100% - 16px) !important;
        max-width: none !important;
        box-sizing: border-box;
    }
    
    .pdf-container {
        padding: 20px 15px;
        width: calc(100% - 16px) !important;
        max-width: none !important;
        box-sizing: border-box;
    }
    
    /* Asegurar que los form-group también tomen todo el ancho */
    .form-group {
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .pdf-actions .row {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .pdf-actions .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-bottom: 15px;
    }
    
    .footer-text p {
        font-size: 14px;
    }
    
    .footer-logo ul {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .leftside {
        height: 35vh;
        min-height: 200px;
    }
    
    .rightside {
        padding: 15px 10px;
    }
    
    .buscador-wrapper,
    .pdf-container {
        margin: 0 8px;
        padding: 20px 15px;
        width: calc(100% - 16px) !important;
        max-width: none !important;
        box-sizing: border-box;
    }
    
    .nova-logo {
        font-size: 16px;
        top: 10px;
        left: 10px;
    }
    
    .libra-logo {
        font-size: 8px;
    }
    
    .logo-right {
        top: 10px;
        right: 10px;
        position: fixed;
    }
    
    .logo-image {
        width: 65px;
    }
    
    .text-tittle {
        font-size: 22px;
        margin-bottom: 18px;
        text-align: center;
    }
    
    .text-label {
        font-size: 14px;
        margin-bottom: 12px;
        text-align: center;
    }
    
    /* Inputs más grandes en pantallas muy pequeñas */
    .input-group {
        width: 100% !important;
        flex-direction: column !important;
        gap: 15px;
    }
    
    .input-group .form-control {
        font-size: 16px; /* Prevenir zoom en iOS */
        padding: 18px 15px;
        min-height: 55px;
        width: 100% !important;
        flex: none !important;
        box-sizing: border-box;
        border-radius: 8px;
        border: 2px solid #ced4da;
    }
    
    .input-group .btn {
        font-size: 16px;
        padding: 18px 20px;
        min-height: 55px;
        width: 100% !important;
        flex: none !important;
        border-radius: 8px;
        border: none;
        display: block !important;
        visibility: visible !important;
    }
    
    /* Botones específicos para 480px */
    .btn-buscar {
        display: block !important;
        width: 100% !important;
        visibility: visible !important;
        background-color: #E40046 !important;
        color: white !important;
    }
    
    .pdf-actions .input-group {
        width: 100% !important;
        gap: 12px;
    }
    
    .pdf-actions .input-group .form-control {
        min-height: 50px;
        padding: 15px;
        width: 100% !important;
        flex: none !important;
        box-sizing: border-box;
        border-radius: 8px;
        border: 2px solid #ced4da;
    }
    
    .pdf-actions .input-group .btn {
        min-height: 50px;
        padding: 15px;
        width: 100% !important;
        flex: none !important;
        border-radius: 8px;
        border: none;
        display: block !important;
        visibility: visible !important;
    }
    
    .pdf-actions .btn-success {
        display: block !important;
        width: 100% !important;
        visibility: visible !important;
        background-color: #28a745 !important;
        color: white !important;
    }
    
    .pdf-embed {
        height: 35vh;
        min-height: 250px;
        max-height: 40vh;
    }
    
    .footer-text p {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .footer-logo ul {
        gap: 10px;
    }
    
    .footer-logo svg {
        width: 20px;
        height: 20px;
    }
}

/* ===============================================
   MEJORAS DE ACCESIBILIDAD Y UX
=============================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states mejorados para accesibilidad */
.btn:focus,
.form-control:focus {
    outline: 2px solid #E40046;
    outline-offset: 2px;
}

/* Estados de hover más claros */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Animaciones suaves para transiciones */
.pdf-container,
.buscador-wrapper,
.error {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdf-container:hover,
.buscador-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Mejora visual para mensajes de estado */
.alert {
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Loader personalizado */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* ===============================================
   PRINT STYLES
=============================================== */

@media print {
    .footer,
    .logo-right,
    .nova-logo,
    .btn,
    .pdf-actions {
        display: none !important;
    }
    
    .pdf-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    body {
        background: white;
    }
}

/* ===============================================
   REWORK FACTURAS LIBRA 2026
=============================================== */

:root {
    --clic-primary: #E40046;
    --clic-primary-dark: #b8003a;
    --clic-primary-soft: #fff0f5;
    --clic-dark: #1a1a2e;
    --clic-gray: #6c757d;
    --clic-border: #e9ecef;
    --clic-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    --clic-radius: 24px;
}

body.facturas-page {
    min-height: 100vh;
    background: #f8f9fa;
    color: var(--clic-dark);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.facturas-shell {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    min-height: 100vh;
    padding: 2rem clamp(1rem, 4vw, 3rem);
}

.hero-panel,
.search-card,
.results-card,
.empty-card {
    background: #fff;
    border: 1px solid var(--clic-border);
    border-radius: var(--clic-radius);
    box-shadow: var(--clic-shadow);
}

.hero-panel {
    display: flex;
    flex-direction: column;
    min-height: 640px;
    overflow: hidden;
    position: sticky;
    top: 94px;
}

.hero-copy {
    background: linear-gradient(135deg, var(--clic-primary), var(--clic-primary-dark));
    color: #fff;
    padding: 2rem;
}

.eyebrow,
.section-label,
.doc-type {
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.search-card h2,
.results-card h2,
.empty-card h2 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-copy p {
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 0;
}

.hero-image {
    flex: 1;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    width: 100%;
}

.content-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.search-card,
.results-card,
.empty-card {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.section-label,
.doc-type {
    color: var(--clic-primary);
}

.facturas-form {
    margin-top: 1.35rem;
}

.facturas-form .input-group-text {
    background: var(--clic-primary-soft);
    border-color: rgba(228, 0, 70, 0.2);
    color: var(--clic-primary);
}

.btn-clic {
    --bs-btn-bg: var(--clic-primary);
    --bs-btn-border-color: var(--clic-primary);
    --bs-btn-hover-bg: var(--clic-primary-dark);
    --bs-btn-hover-border-color: var(--clic-primary-dark);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    font-weight: 700;
}

.btn-outline-clic {
    --bs-btn-border-color: var(--clic-primary);
    --bs-btn-color: var(--clic-primary);
    --bs-btn-hover-bg: var(--clic-primary);
    --bs-btn-hover-border-color: var(--clic-primary);
    --bs-btn-hover-color: #fff;
    font-weight: 700;
}

.captcha-wrap {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.results-header,
.document-info,
.document-actions {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.results-header {
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.result-count {
    background: var(--clic-primary-soft);
    border-radius: 999px;
    color: var(--clic-primary);
    font-weight: 800;
    padding: 0.45rem 0.75rem;
}

.document-card {
    border: 1px solid var(--clic-border);
    border-radius: 18px;
    padding: 1rem;
}

.document-card.featured {
    background: linear-gradient(180deg, #fff, #fff8fb);
}

.document-card.compact {
    background: #fff;
}

.document-icon {
    align-items: center;
    background: var(--clic-primary);
    border-radius: 16px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 48px;
    font-size: 1.25rem;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.document-icon.soft {
    background: var(--clic-primary-soft);
    color: var(--clic-primary);
}

.document-info h3,
.document-info h4 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0.15rem 0;
    word-break: break-word;
}

.document-info p {
    color: var(--clic-gray);
    margin: 0;
}

.document-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 1rem;
}

.pdf-preview {
    background: #f1f3f5;
    border-radius: 16px;
    margin-top: 1rem;
    overflow: hidden;
}

.pdf-preview object {
    border: 0;
    display: block;
    height: min(62vh, 680px);
    width: 100%;
}

.notes-section {
    margin-top: 1.5rem;
}

.notes-section h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.notes-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.empty-card {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
}

.empty-card > i {
    color: var(--clic-primary);
    font-size: 1.75rem;
    margin-top: 0.2rem;
}

.lyra-footer {
    background: var(--clic-dark);
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0;
    padding: 3rem 0 2rem;
}

.lyra-footer h5,
.lyra-footer h3 {
    color: #fff;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.lyra-footer h3 {
    font-size: 1.2rem;
}

.lyra-footer p {
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
}

.footer-icon {
    color: var(--clic-primary);
}

.lyra-footer .social-links {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.lyra-footer .social-links a {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    display: inline-flex;
    font-size: 0.9rem;
    height: 36px;
    justify-content: center;
    text-decoration: none;
    transition: all .25s;
    width: 36px;
}

.lyra-footer .social-links a:hover {
    background: var(--clic-primary);
    border-color: var(--clic-primary);
    color: #fff;
}

.lyra-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 1.4rem;
    text-align: center;
}

.lyra-footer-bottom p {
    font-size: 0.78rem;
    margin: 0;
}

.lyra-footer-bottom .clic-tag {
    color: #ff1a6c;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    .facturas-shell {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .hero-panel {
        min-height: auto;
        position: static;
    }

    .hero-image {
        max-height: 280px;
        min-height: 220px;
    }

}

@media (max-width: 575.98px) {
    .input-group.input-group-lg {
        flex-direction: column;
    }

    .input-group.input-group-lg > .form-control,
    .input-group.input-group-lg > .input-group-text,
    .input-group.input-group-lg > .btn {
        border-radius: 12px !important;
        margin-top: 0.4rem;
        width: 100%;
    }

    .results-header,
    .document-info,
    .document-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .document-actions .btn {
        width: 100%;
    }

    .pdf-preview object {
        height: 420px;
    }
}
