
/*****************/
    /*BRIX*/
/*****************/
#modal-brix .modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Centra verticalmente */
}

#modal-brix .modal-content {
    width: 90%;  /* Mantiene el ancho en 90% */
    max-height: 90vh; /* Limita la altura al 90% de la pantalla */
    height: auto; /* Se ajusta al contenido */
}

.semaforo-indicador {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: gray; /* Estado neutro o inicial */
    border: 1px solid #ccc;
}
.semaforo-verde {
    background-color: #28a745 !important;
}
.semaforo-rojo {
    background-color: #dc3545 !important;
}


/*****************/
    /*CAROZO*/
/*****************/
#x_idpp_carozo {
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
}

label[for="x_idpp_carozo"] {
    font-size: 1.3rem;
    font-weight: bold; 
    text-align: center;
}

button.carozo_buscar {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
}

.tabla-carozo input.form-control {
    width: 100%;
    font-size: 1rem;
    height: 2.8rem;
    box-sizing: border-box;
    text-align: center;
}

.tabla-carozo textarea.form-control {
    resize: vertical;
    height: 3.2rem;
    line-height: 1.4rem;
    padding: 0.4rem;
    font-size: 2rem;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.tabla-carozo .input-row select.form-control {
    width: 100%;
    font-size: 1rem;
    height: 2.8rem !important;
    box-sizing: border-box;
    text-align: center;
    background-color: #606060;
    border: 1px solid #888;
    color: #fff;
    font-weight: 700;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.tabla-carozo .input-row select.form-control:focus {
    background-color: #505050;
    border-color: #bbb;
    outline: none;
    color: #fff;
}

.tabla-carozo .input-row td {
    padding: 0.4rem 0.2rem !important;
    vertical-align: middle;
}

.tabla-carozo .hora-cell {
    font-size: 1rem;
    text-align: center;
    vertical-align: middle;
}

.tabla-carozo .col-hora { width: 6%; }
.tabla-carozo .col-num { width: 8%; }
.tabla-carozo .col-lin { width: 10%; }
.tabla-carozo .col-nombre { width: 20%; }
.tabla-carozo .col-obs { width: 22%; }
.tabla-carozo .col-btn { width: 6%; }

.tabla-carozo #btFila {
    padding: 0.6rem 1.2rem; /* más espacio interno */
    font-size: 1.2rem;       /* texto más grande */
    font-weight: 600;
    border-radius: 3px;
    color: white;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}


.tabla-carozo .col-btn {
    padding: 0.4rem !important; /* más espacio para botones */
}

.tabla-carozo .col-btn button {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.tabla-carozo .table td,
.tabla-carozo .table th {
    text-align: center;
    vertical-align: middle;
    padding: 0.4rem;
    border: 1px solid #000 !important;
}

.tabla-carozo .input-row input.form-control,
.tabla-carozo .input-row textarea.form-control {
    background-color: #606060;
    border: 1px solid #888;
    color: #fff;
    font-weight: 700;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.tabla-carozo .input-row input.form-control:focus,
.tabla-carozo .input-row textarea.form-control:focus {
    background-color: #505050;
    border-color: #bbb;
    outline: none;
    color: #fff;
}

.tabla-carozo input.form-control[name="nombre"] {
    font-size: 0.9rem;
    height: 2.8rem;
    line-height: 1.4rem;
    padding: 0.3rem 0.5rem;
    text-align: left;
    background-color: #606060;
    border: 1px solid #888;
    color: #fff;
    font-weight: 700;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.tabla-carozo input.form-control[name="observacion"] {
    font-size: 0.9rem;
    height: 2.8rem;
    line-height: 1.4rem;
    padding: 0.3rem 0.5rem;
    text-align: left;
    background-color: #606060;
    border: 1px solid #888;
    color: #fff;
    font-weight: 700;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.tabla-carozo tr.fila-par {
    background-color: #3b3b3b; /* Color claro para pares */
}

.tabla-carozo tr.fila-impar {
    background-color: #464646; /* Blanco para impares */
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
    .tabla-carozo .input-row input.form-control,
    .tabla-carozo .input-row textarea.form-control,
    .tabla-carozo .input-row select.form-control {
        font-size: 1rem !important;
        height: 2.8rem !important;
        line-height: normal !important;
        padding: 0.25rem 0.4rem !important;
    }

    .tabla-carozo input.form-control[name="nombre"],
    .tabla-carozo input.form-control[name="observacion"] {
        font-size: 0.8rem !important;
        height: 2.4rem !important;
        padding: 0.25rem 0.4rem !important;
    }

    .tabla-carozo .hora-cell {
        font-size: 0.8rem !important;
    }

    .tabla-carozo textarea.form-control {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 768px) {
    .tabla-carozo .input-row input.form-control,
    .tabla-carozo .input-row textarea.form-control,
    .tabla-carozo .input-row select.form-control {
        font-size: 0.75rem !important;
        height: 2.2rem !important;
        padding: 0.2rem 0.3rem !important;
    }

    .tabla-carozo input.form-control[name="nombre"],
    .tabla-carozo input.form-control[name="observacion"] {
        font-size: 0.7rem !important;
        height: 2.2rem !important;
        padding: 0.2rem 0.3rem !important;
    }

    .tabla-carozo textarea.form-control {
        font-size: 1rem !important;
    }

    .tabla-carozo .hora-cell {
        font-size: 0.7rem !important;
    }
}


/* --- MODO CLARO --- */
body[data-theme="light"] .tabla-carozo tr.fila-par {
    background-color: #dddddd;
}
body[data-theme="light"] .tabla-carozo tr.fila-impar {
    background-color: #fff;
}
body[data-theme="light"] .tabla-carozo input.form-control,
body[data-theme="light"] .tabla-carozo textarea.form-control {
    background-color: #e9e9e9;
    border: 1px solid #888;
    color: #000;
}
body[data-theme="light"] .tabla-carozo input.form-control[name="nombre"],
body[data-theme="light"] .tabla-carozo input.form-control[name="observacion"] {
    background-color: #e9e9e9;
    color: #000;
    border: 1px solid #888;
}
body[data-theme="light"] .tabla-carozo .input-row select.form-control {
    background-color: #e9e9e9;
    border: 1px solid #888;
    color: #000;
}
body[data-theme="light"] .tabla-carozo input.form-control:focus,
body[data-theme="light"] .tabla-carozo textarea.form-control:focus,
body[data-theme="light"] .tabla-carozo .input-row select.form-control:focus {
    background-color: #c5c5c5;
    border-color: #444;
    outline: none;
    color: #000;
}
body[data-theme="light"] input::placeholder {
    color: #555555;  /* oscuro */
    font-weight: 400;
    opacity: 1;
}
body[data-theme="light"] #btFila {
    color: #fff;  /* claro */
    font-weight: 400;
    opacity: 1;
}
body[data-theme="light"] .tabla-carozo select option {
    color: #000000;
}


/* --- MODO OSCURO --- */
body[data-theme="dark"] .tabla-carozo tr.fila-par {
    background-color: #3b3b3b;
}
body[data-theme="dark"] .tabla-carozo tr.fila-impar {
    background-color: #464646;
}
body[data-theme="dark"] .tabla-carozo input.form-control,
body[data-theme="dark"] .tabla-carozo textarea.form-control {
    background-color: #606060;
    border: 1px solid #888;
    color: #fff;
}
body[data-theme="dark"] .tabla-carozo input.form-control[name="nombre"],
body[data-theme="dark"] .tabla-carozo input.form-control[name="observacion"] {
    background-color: #606060;
    color: #fff;
    border: 1px solid #888;
}
body[data-theme="dark"] .tabla-carozo .input-row select.form-control {
    background-color: #606060;
    border: 1px solid #888;
    color: #fff;
}
body[data-theme="dark"] .tabla-carozo input.form-control:focus,
body[data-theme="dark"] .tabla-carozo textarea.form-control:focus,
body[data-theme="dark"] .tabla-carozo .input-row select.form-control:focus {
    background-color: #505050;
    border-color: #bbb;
    outline: none;
    color: #fff;
}
body[data-theme="dark"] input::placeholder {
    color: #cecece;  /* claro */
    font-weight: 400;
    opacity: 1;
}

body[data-theme="dark"] #btFila {
    color: #3b3b3b;
    font-weight: 400;
    opacity: 1;
}

body[data-theme="dark"] .tabla-carozo select option {
    color: #ffffff;
}

body[data-theme="dark"] .tabla-carozo .placeholder-text {
    color: #949494;
}