/* 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;
    margin-bottom: 15px;
    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;
}

.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;
}

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

.disabled-row-text-line-through {
    opacity: 0.8;
    text-decoration: line-through;
}

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

.checkboxPedido {
    height: 1.2rem !important;
    width: 1.2rem !important;
}

.label-pedido-andamento {
    margin-bottom: 10px;
}

.btn-finalizar-pedido,
.btn-pausar-pedido,
.btn-rebobinamento-pedido {
    margin: 10px 0px 0px 0px !important;
}

.spinner-border {
    width: 18px !important;
    height: 18px !important;
    --bs-spinner-animation-speed: 2s !important;
}

tr:hover {
    cursor: pointer;
}

#enviarSelecionados.fixed {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    max-width: 350px;
    /* Limita a largura máxima do botão a 90% da tela */
    margin: 0 auto;
    /* Centraliza o botão horizontalmente */
}

#enviarSelecionados.hidden {
    display: none;
}

#searchOrderInput:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

mark {
    background-color: #fff3cd;
    color: #664d03;
    padding: 0.1em 0.2em;
    border-radius: 0.25rem;
}

.alert {
    font-size: 0.875rem;
}

.input-pesquisa-ordens {
    background-color: #e2f2f5;
}

.label-horario-solicitacao {
    font-size: 1rem;
}

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

#startButton {
    margin-bottom: 0px;
}

#codigoPedido {
    margin-top: 10px;
}

#pedido-status-alert {
    margin-bottom: 10px !important;
}

@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);
    }
}


#totalProduzir {
    margin-bottom: 10px !important;
    padding: .2rem;
    display: block;
    border-radius: 15px;
    box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.15);
}

.linha-personalizada-amarela {
    --bs-table-bg: #f9f2c3b0 !important;
}

.linha-personalizada-vermelha {
    --bs-table-bg: #ffd7d7 !important;
}

#spanLegenda {
    font-size: .8rem;
}

#strongAmarela {
    color: #b9aa44 !important;
}

#strongVermelha {
    color: #bf5454 !important;
}

.linha-urgente-atrasada {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 22px !important;
    padding: 0 !important;
    text-align: center;
    vertical-align: middle;
    overflow: visible;
    white-space: nowrap;
}

.linha-urgente-e-atrasada {
    --bs-table-bg: #03ff14 !important;
}

.label-urgente {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 9px;
    font-weight: 600;
    padding: 2px 1px;
    border-radius: 6px;
    color: white;
    background: red;
    line-height: 1;
    margin: 0;
    max-width: 16px;
    box-sizing: border-box;
}

.label-atrasada {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 9px;
    font-weight: 600;
    padding: 2px 1px;
    border-radius: 6px;
    color: white;
    background: rgb(202, 192, 3);
    line-height: 1;
    margin: 0;
    max-width: 16px;
    box-sizing: border-box;
}

.blink-urgente {
    animation: blink 2s alternate infinite;
}