@import url("css/login.css");
@import url("css/layout.css");
@import url("css/cliente.css");


/* APP CSS */
html, body {
    margin: 0;
    padding: 0;
    font-family: Georgia, serif;
}
.success-banner {
    background: #d4edda;
    color: #155724;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    border: 1px solid #c3e6cb;
}

.status-emesso {
    background: #d9f7df;
    color: #218739;
}


.status-da-emettere {
    background: #fff2cc;
    color: #b88600;
}

@media print {

    button {
        display: none;
    }


    body {
        background: white;
        margin: 0;
    }


    .print-page {
        page-break-inside: avoid;
    }
}



@page {
    size: A4;
    margin: 15mm;
}




/* HEADER */

.print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}



.company-area {
    display: flex;
    align-items: center;
    gap: 15px;
}



    .company-area h1 {
        margin: 0;
        font-size: 26px;
    }



    .company-area h2 {
        margin: 5px 0;
        font-size: 18px;
    }




.print-logo {
    width: 55px !important;
    height: 55px !important;
    object-fit: contain;
}





.order-number-box {
    text-align: right;
}


    .order-number-box strong {
        display: block;
    }


    .order-number-box span {
        display: block;
        font-size: 18px;
        font-weight: bold;
    }


    .order-number-box small {
        font-size: 12px;
    }





/* DATI CLIENTE */


.print-info {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-top: 15px;
}




.print-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}



    .print-box h3 {
        margin: 0 0 8px 0;
        font-size: 15px;
    }



    .print-box p {
        margin: 0;
    }






/* NOTE */


.print-note {
    background: #fff8dc;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
}


    .print-note h3 {
        margin: 0 0 5px 0;
    }



    .print-note p {
        margin: 0;
    }






/* TABELLA */


.print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 13px;
}



    .print-table th,
    .print-table td {
        text-align: center;
        vertical-align: middle;
    }







/* TOTALE */


.print-total-box {
    width: 250px;
    margin-top: 20px;
    margin-left: auto;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    text-align: right;
    font-size: 14px;
}



    .print-total-box div {
        margin-bottom: 8px;
    }



.totale-finale {
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
}


.ordine-titolo {
    font-size: 14px;
    font-weight: bold;
}


.numero-ordine {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}


.data-ordine {
    display: flex;
    flex-direction: column;
    font-size: 14px;
}


    .data-ordine strong:first-of-type {
        font-size: 18px;
    }


/* NASCONDI PULSANTE */

.print-button {
    margin-top: 30px;
}



@media print {

    .print-button {
        display: none;
    }
}