/* =========================================================
   🧾 MODAL FACTURA
   ========================================================= */

.modal-factura-overlay {

    position: fixed;

    inset: 0;

    background:
        rgba(0,0,0,0.65);

    display: none;

    align-items: center;

    justify-content: center;

    z-index: 9999;
}

.modal-factura-open {

    display: flex;
}

.modal-factura-container {

    width: 95%;

    max-width: 1200px;

    height: 95vh;

    background: white;

    border-radius: 20px;

    overflow: hidden;

    display: flex;

    flex-direction: column;
}

.modal-factura-header {

    padding: 20px;

    border-bottom:
        1px solid #eee;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.modal-factura-body {

    flex: 1;

    overflow-y: auto;

    padding: 20px;

    background: #f5f5f5;
}

.modal-factura-footer {

    padding: 20px;

    border-top:
        1px solid #eee;

    display: flex;

    justify-content: flex-end;

    gap: 15px;
}

.modal-factura-close {

    border: none;

    background: transparent;

    font-size: 1.3rem;

    cursor: pointer;
}