/* Reset básico para remover margens e paddings padrões */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    font-family: Arial, sans-serif;
    background-image: url('../img/background.jpg');
    background-color: #f5f5f5;
    background-size: cover;
    background-position: center;
}

.container {
    text-align: center;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    height: auto;
    /* Importante para dispositivos mais antigos */
    max-height: 200px;
    overflow: hidden;
    /* Previne esticamento */
}

.logo img {
    max-width: 120px;
    width: auto;
    /* Mudança importante */
    height: auto;
    max-height: 150px;
    object-fit: contain;
    display: block;
    /* Força comportamento de bloco */
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

h1 {
    font-size: 24px;
    font-weight: 600;
    color: #525252;
    text-align: center;
    margin-bottom: 20px;
}

select,
input[type="text"],
button,
#scanButton {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: rgb(149 157 165 / 84%) 0px 4px 12px;
}

input[type="text"] {
    background-color: #fff;
    color: #333;
}

input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5);
}

button,
#scanButton {
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
#scanButton:hover {
    background-color: #0056b3;
}

#resultado {
    margin-top: 20px;
    font-size: 18px;
    color: gray;
    font-weight: 500;
    text-align: center;
}

#msg_error {
    line-height: 20px;
    background-color: #ff8484;
    border-radius: 12px;
    padding: 10px;
}

#msg_info {
    line-height: 20px;
    background-color: #0079a4;
    border-radius: 12px;
    padding: 10px;
}

#msg_success {
    line-height: 20px;
    background-color: #00541b;
    border-radius: 12px;
    padding: 10px;
}

#codigo_pedido_white {
    color: #FFFFFF;
}

#codigo_pedido_green {
    color: #a1e1bd;
}

#codigo_pedido_red {
    color: #860000;
}

/* Estilos para placeholders */
::-webkit-input-placeholder {
    /* WebKit, Blink, Edge */
    color: #cacaca;
}

:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: #cacaca;
    opacity: 1;
}

::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #cacaca;
    opacity: 1;
}

:-ms-input-placeholder {
    /* Internet Explorer 10-11 */
    color: #cacaca;
}

::-ms-input-placeholder {
    /* Microsoft Edge */
    color: #cacaca;
}

::placeholder {
    /* Most modern browsers support this now. */
    color: #cacaca;
}

#interactive {
    /*width: 100%;
    height: 100px;
    position: relative;
    overflow: hidden;*/
    margin-bottom: 20px !important;
    border-radius: 10px;
    border: 2px solid rgb(2, 169, 46);
}

video {
    border-radius: 10px;
}

/* Media Queries para responsividade */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1rem;
    }

    input[type="text"],
    button,
    #scanButton {
        padding: 14px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 80px;
    }

    h1 {
        font-size: 1rem;
    }

    input[type="text"],
    button,
    #scanButton {
        padding: 12px 14px;
        font-size: 14px;
    }

    #resultado {
        font-size: 16px;
    }
}

::selection {
    background: #7efec0;
}

.card {
    margin: 25px 0;
    background: #fff;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.card .title {
    font-size: 22px;
    font-weight: 500;
}

.card .content {
    margin-top: 20px;
}

.card label.box {
    background: #ddd;
    margin-top: 12px;
    padding: 10px 12px;
    display: flex;
    border-radius: 5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

#one:checked~label.first,
#two:checked~label.second,
#three:checked~label.third {
    border-color: #2acd5e;
    background: #98f9c0;
}

.card label.box:hover {
    background: #73e4a2;
}

.card label.box .circle {
    height: 22px;
    width: 22px;
    background: #ccc;
    border: 5px solid transparent;
    display: inline-block;
    margin-right: 15px;
    border-radius: 50%;
    transition: all 0.25s ease;
    box-shadow: inset -4px -4px 10px rgba(0, 0, 0, 0.2);
}

#one:checked~label.first .circle,
#two:checked~label.second .circle,
#three:checked~label.third .circle {
    border-color: #07ce1b;
    background: #fff;
}

.card label.box .plan {
    display: flex;
    width: 100%;
    align-items: center;
}

.card input[type="radio"] {
    display: none;
}

.card .first {
    border-left: 10px solid #23acfd !important;
}

.card .second {
    border-left: 10px solid #a8a8a8 !important;
}

.card .third {
    border-left: 10px solid #068238 !important;
}

.card .fourth {
    border-left: 10px solid #ee6d6d !important;
}

.viewport {
    width: 100%;
    height: 100%;
    background-color: #000;
}

/* Estilo para ocultar elementos */
.hidden {
    display: none;
}

/* Estilo para exibir elementos */
.visible {
    display: block;
}

.link_mapa {
    color: #5996f3;
    text-decoration: none;
}

.form_input {
    margin-bottom: 10px;
}

.mostrar_imagens {
    color: #898888;
    transition: transform 1s cubic-bezier(0.55, 0.09, 0.68, 0.53);
}

.mostrar_imagens:hover {
    cursor: pointer;
    transform: rotate(360deg);
    /* Gira o elemento 360 graus */
}

.disabled-row {
    opacity: 0.6;
    pointer-events: none;
}

.disabled-row-text-line-through {
    opacity: 0.6;
    pointer-events: none;
    text-decoration: line-through;
}

.disabled-row .checkboxPedido {
    pointer-events: none;
}

#result {
    margin-top: 10px;
}

.blink {
    animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.spin {
    display: inline-block;
    /* importante para permitir rotação */
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.box-etiquetas-campos {
    display: inline-table;
}

.etiqueta-produto {
    width: 100mm;
    height: 100mm;
    background: #93de93;
    color: #222;
    /*border: 2px solid #49a849;*/
    border-radius: 10px;
    font-family: Arial, sans-serif;
    padding: 0px 10px 10px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    font-size: 17px;
}

.etiqueta-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    /*border: 1px solid red;*/
}

.etiqueta-topo>span {
    font-size: 1.5rem;
    line-height: 1.5rem;
}

.label-campos {
    font-weight: 400;
}

.nome-cliente {
    text-align: center;
    display: block;
    align-content: center;
    border: 3px solid black;
    border-radius: 7px;
    font-size: 1.40rem;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    max-width: 95mm;
    height: 17mm;
    padding: 0 2px;
}

.valor-campos {
    font-weight: 600;
    margin-bottom: 5px;
}

.linha {
    align-items: baseline;
    margin: 2px 0 !important;
    /*gap: 8px;
    display: flex;*/
}

.input-valor {
    margin-bottom: 3px !important;
    background: #bdecbd !important;
    height: 20px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
    padding: 12px 10px !important;
    border-radius: 4px !important;
    min-height: 0 !important;
    line-height: 1.2 !important;
    width: 50mm !important;
}

#cidade {
    width: 65mm !important;
}

.etiqueta-campos {
    text-align: left;
}

.etiqueta-topo>img {
    width: 72px;
}

.etiqueta-logo {
    color: #229a2c;
}

.etiqueta-tel {
    color: #229a2c;
}

.endereco {
    color: #229a2c;
    font-weight: 600;
    font-size: .7rem;
}


.etiqueta-footer {
    bottom: 0 !important;
    position: absolute;
    /*border: 1px solid yellow;*/
}

.email {
    margin-left: 75px !important;
}

.etiqueta-footer>span {
    color: #229a2c;
    font-size: .6rem;
    font-weight: 600;
}

#btnImprimirEtiqueta {
    width: 100mm;
    margin-top: 20px;
    margin-bottom: 20px;
    font-weight: 600;
    height: 55px;
    font-size: 1.2rem;
}

#produto:hover {
    cursor: pointer;
}

#produtoInput {
    width: 90mm !important;
}

.linha-nf-data {
    display: flex;
}

.col-left {
    width: 65mm;
}

#nota-fiscal {
    width: 30mm !important;
}

.col-right {
    width: 25mm;
    text-align: right;
}

#data-pedido {
    width: 25mm !important;
    font-size: .9rem !important;
    padding-left: 5px !important;
}

.linha-lote {
    right: 3mm;
    top: 75%;
    position: absolute;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: right top;
    font-size: .8rem;
    font-weight: bold;
}

#qtd-caixa {
    width: 25mm !important;
}

#qtd-rolos {
    width: 20mm !important;
}

#linha-produto {
    width: 90mm !important;
    max-width: 90mm !important;
}

.print-btn {
    width: 100mm;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    font-weight: 600;
    height: 55px;
    font-size: 1.2rem;
}

@media print {
    @page {
        size: 100mm 100mm portrait;
        margin: 0;
    }

    body,
    html {
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box;
        height: 100mm !important;
        width: 100mm !important;
        overflow: hidden !important;
    }

    body * {
        visibility: hidden !important;
    }

    #etiqueta,
    #etiqueta * {
        visibility: visible !important;
    }

    #etiqueta {
        display: block !important;
        width: 108mm !important;
        height: 105mm !important;
        top: 0 !important;
        left: 0 !important;

        margin-left: 8mm !important;

        padding-top: 25mm !important;
        padding-bottom: 6mm !important;

        border: none !important;
        overflow: hidden !important;
        position: absolute !important;
        page-break-after: avoid !important;
    }

    #produtoInput {
        display: none !important;
    }

    .input-valor {
        display: inline !important;
        font-weight: bold !important;
        color: #000 !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    #produto {
        width: 90mm !important;
        max-width: 90mm !important;
    }

    #linha-produto {
        width: 90mm !important;
        max-width: 90mm !important;
    }

    /* Esconde logo, telefone, rodapé, site, email e botão de impressão */
    .etiqueta-topo img,
    .etiqueta-tel,
    .etiqueta-footer,
    .site,
    .email,
    .print-btn {
        display: none !important;
    }

    .linha-pedido {
        border-bottom: 2px solid black;
        border-top: 2px solid black;
        width: 290px;
        padding: 1px
    }

    .linha-pedido>span {
        font-weight: 900 !important;
        font-size: 17px !important;
    }

    .linha-pedido>input {
        font-weight: 900 !important;
        font-size: 19px !important;
    }

    .linha-lote {
        position: absolute !important;
        right: 16px !important;
        top: 300px !important;
        transform: rotate(90deg) !important;
        transform-origin: right top !important;
        font-size: .8rem !important;
        font-weight: bold !important;
        background: none !important;
        z-index: 100 !important;
        color: #000 !important;
    }
}