* {
    box-sizing: border-box;
    font-family: 'Trebuchet MS', Arial, sans-serif;
}

body {
    background: #f2f2f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0 60px;
    margin: 0;
}

.titulo-factura {
    border-radius: 30px;
    color: #000;
    background: #fff;
    height: 50px;
    width: 800px;
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.factura-tabla-wrap,
.dialogo-wrap {
    width: 800px;
    max-width: 90%;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
}

.factura-fecha-numero {
    display: flex;
    justify-content: space-between;
    color: #000;
    font-size: 14px;
    margin-bottom: 10px;
}

table.factura-csv {
    width: 100%;
    border-collapse: collapse;
    color: #000;
}

table.factura-csv th,
table.factura-csv td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
}

table.factura-csv th {
    background: #000;
    color: #fff;
}

tr.fila-subtotal td {
    background: #f7f7f7;
    font-weight: bold;
}

tr.fila-total td {
    background: #000;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.boton-factura {
    border-radius: 30px;
    color: black;
    background: white;
    border: 2px solid #000;
    height: 50px;
    width: 200px;
    max-width: 100%;
    cursor: pointer;
    font-size: 22px;
    margin-top: 20px;
    transition: background .3s, color .3s, border-color .3s;
}

.boton-factura:hover {
    background: violet;
    color: white;
    border-color: transparent;
}

.boton-factura-azul {
    border-radius: 30px;
    color: black;
    background: white;
    border: 2px solid #000;
    height: 50px;
    width: 200px;
    max-width: 100%;
    cursor: pointer;
    font-size: 22px;
    margin-top: 20px;
    transition: background .3s, color .3s, border-color .3s;
}

.boton-factura-azul:hover {
    background: blue;
    color: white;
    border-color: transparent;
}


.boton-factura:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.boton-factura:disabled:hover {
    background: #fff;
    color: #000;
    border-color: #000;
}

.enlace-dialogo {
    margin-top: 15px;
    display: inline-block;
    color: #000;
}

.botones-accion {
    text-align: center;
}

.boton-chico {
    width: 100px;
    margin-left: 10px;
}

@media print {
    body * {
        visibility: hidden;
    }

    .factura-tabla-wrap,
    .factura-tabla-wrap * {
        visibility: visible;
    }

    .factura-tabla-wrap {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
    }

    .no-imprimir {
        display: none !important;
    }
}

.barra-titulo {
    border-radius: 30px;
    color: #000;
    background: #fff;
    border: 1px solid #ccc;
    height: 50px;
    width: 600px;
    max-width: 100%;
    padding: 0 20px;
    font-size: 16px;
    display: block;
    margin: 0 auto 20px;
}

.area-texto {
    border-radius: 20px;
    color: #000;
    background: #fff;
    border: 1px solid #ccc;
    height: 500px;
    width: 800px;
    max-width: 100%;
    font-size: 25px;
    padding: 15px;
    display: block;
    box-sizing: border-box;
    resize: vertical;
}

.botones-dialogo {
    text-align: center;
    margin-top: 10px;
}

.botones-archivo {
    text-align: center;
    margin-bottom: 15px;
}

.botones-dialogo .boton-factura {
    margin: 20px 10px 0;
}

.mensaje-error {
    color: #c0392b;
    text-align: center;
    margin-top: 10px;
    display: none;
    font-size: 14px;
}

.texto-gris {
    color: #777;
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}
