@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    outline: none;
    text-decoration: none;
    list-style: none;
}

a {
    color: inherit;
}

body {
    height: 100vh;
    overflow-x: hidden;
    background-color: #333;
    display: flex;
}

select, input {
    width: 100%;
    padding: 10px 0 10px 12px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
}

select {
    cursor: pointer;
}

input:hover, select:hover {
    animation: increase 0.4s forwards;
}

#input-hour {
    cursor: pointer;
}

p {
    padding: 1px 0;
}

label {
    margin-top: 5px;
    color: yellowgreen;
    font-weight: 500;
    padding-left: 2px;
}

button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 25px;
    background-color: yellowgreen;
    font-weight: 600;
    cursor: pointer;

    &:hover {
        background-color: transparent;
        color: white;
        border: 1px solid white;
    }
}

i {
    font-size: 14px;
}

#btn-supply {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0 50px 30px 0;
    color: yellowgreen;
    background-color: transparent;
    border: 1px solid yellowgreen;

    &:hover {
        border-color: white;
        color: white;
        transform: scale(1.1);
    }
}

.checkbox-field {
    label {
        display: flex;
        font-size: 12px;
        gap: 6px;
        color: white;
        font-weight: 400;

        input {
            width: 14px;
            accent-color: #fff;
        }
    }
}

#supply-panel-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(4, 4, 10, 0.7);

    .supply-panel-content {
        position: absolute;
        inset: 0;
        margin: auto;
        width: 560px;
        height: 340px;
        background-color: white;
        z-index: 2;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 70px;

        h2 {
            position: absolute;
            top: 0;
            margin: 20px;
        }

        #btn-close-panel {
            position: absolute;
            top: 0;
            right: 0;
            width: 30px;
            height: 30px;
            margin: 10px 10px 0 0;
            background-color: #333;
            color: white;

            &:hover {
                color: #333;
                border: 2px solid #333;
                background-color: white;
            }
        }

        span {
            width: 85%;
            margin-bottom: 10px;
            text-align: center;
        }

        input {
            width: 250px;
            border: 1px solid #555;
            margin-bottom: 10px;
        }

        #btn-register-supply {
            width: 150px;
            margin-top: 20px;
            color: #333;

            &:hover {
                border: 2px solid #333;
                color: #333;
            }
        }

        #message {
            margin-top: 10px;
            width: 300px;
            border: 2px solid #333;
            border-radius: 20px;
            padding: 3px 10px;
            font-size: 12px;
            color: white;
            background-color: #333;
        }
    }
    
}



#btn-second-copy:hover {
    transform: scale(1.2);
    transition: 0.4s;
}

#btn-print:hover {
    transform: translateX(-5px) scale(1.2);
    transition: 0.4s;
}

#btn-clear:hover {
    transform: translateX(5px) scale(1.2);
    transition: 0.4s;
}

@keyframes increase {
    to {
        transform: scale(1.02);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    .content {
        width: 80%;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: start;
    }
}

.informations {
    width: 100%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 30px;
    margin-top: 120px;

    .groups {
        width: 100%;
        display: flex;
        gap: 20px;

        .group1,
        .group2 {
            width: 100%;
            display: flex;
            flex-direction: column;
        }
    }

    .buttons {
        display: flex;
        column-gap: 5px;
    }
}

#printing-area {
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: center;
    margin-right: 20px;
    gap: 20px;
}

.ticket {
    width: 420px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 10px;
    border-bottom: .1px solid rgba(0, 0, 0, 0.24);
    align-items: center;

    .ticket-content {
        width: 100%;
        height: 100%;
        padding: 20px 34px;

        .ticket-header {
            width: 100%;
            margin-bottom: 8px;

            img {
                width: 70px;
                height: 70px;
                margin-top: 5px;
            }

            .logo {
                display: flex;
                justify-content: space-between;
            }

            .ticket-tittle {
                line-height: 36px;
                margin-bottom: 16px;
            }

            .receipt {
                border-top: 1px solid #333;
                padding-top: 10px;
                margin-top: 10px;
            }

            #num-supply {
                border-bottom: 1px solid #333;
                padding-bottom: 10px;
            }

            .location {
                width: 96%;
                display: flex;
                justify-content: space-between;
            }
        
        }

        .ticket-body {
            width: 100%;
            line-height: 20px;

            .date {
                width: 96%;
            }

            .quantities {
                width: 96%;
                display: flex;
                gap: 26px;
            }

            .third {
                width: 75%;
                padding-bottom: 15px;
            }

            .end {
                height: 35px;
            }
        }

    }
}

@media print {

    body * {
        visibility: hidden;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
        display: block !important; /* Anula flex/grid do site original */
        height: auto !important;
    }

    #printing-area, #printing-area * {
        visibility: visible;
    }

    #printing-area {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        zoom: 75%;

        .second-copy, .second-copy * {
            display: none !important;
        }

        .ticket {
            font-size: 18px;
        }

        .ticket-content {
            padding-top: 0 !important;
            margin-top: 0 !important;
            padding: 15px;
        }

        .final {
            line-height: 70px;
        }
    }
    
}

@media (max-width: 820px) {

    header {
        padding: 0 2rem;
    }

    .informations {
        width: 90%;
        margin-top: 30px;
    }

    body {
        width: 100vw;
        height: 110vh;
    }

    .content {
        display: flex;
        flex-direction: column;
        justify-content: start;
        row-gap: 0;
    }

}