/*  BOTON RESPONSIVO*/
@media (max-width: 600px) {
    .form-nuevo {
        /* CLAVE: Sobreescribe el 50% y lo pone al 100% */
        width: 100% !important;

        /* Opcional: Reiniciar el margen o ajustarlo si es necesario */
        margin: 0;
    }

    .misdatosd {
        background-color: #EE0000 !important;
    }

    .misdatosi {
        background-color: #0066ff !important;
    }

}

.letras-label {
    font-weight: bold;
    color: #999999;
    font-size: medium;
}

.resultado-label {
    font-weight: bold;
    color: black;
    font-size: medium;
}



.modal-open {
    overflow: auto !important;
    /* Mantiene la barra de desplazamiento visible */
    padding-right: 0px !important;
    /* Evita que el contenido se mueva a la derecha */
}

.modal-hide {
    overflow: auto !important;
    /* Mantiene la barra de desplazamiento visible */
    padding-right: 0px !important;
    /* Evita que el contenido se mueva a la derecha */
}


.form-nuevo {
    width: 50%;
    margin: 0 auto;
}



.fondo {
    background-color: rgb(49, 66, 82);
}

.redondeo-verde {
    background-color: #006600;
    color: white;
    border-radius: 10px;
    margin-right: 20px;

}

.redondeo-verde:hover {
    color: gold;
}

.manito:hover {
    cursor: grab;
}

.redondeo-boton {
    background-color: rgb(0, 80, 200);
    color: white;
    border-radius: 10px;
    margin-right: 20px;


}

.redondeo-boton:hover {
    color: gold;
}


.select-menu {
    border-radius: 10px;
    width: 80%;
    margin-right: 100px;
}

.estado-pendiente {
    background-color: #FF99FF;
    /* Rojo muy claro */
    color: black;
    /* Rojo oscuro */
}

.en-proceso {
    /* Fondo rojo claro, texto oscuro para contraste */
    background-color: #009900;
    /* Rojo muy claro */
    color: white;
    /* Rojo oscuro */
}

.terminado {
    /* Fondo rojo claro, texto oscuro para contraste */
    background-color: #0066ff;
    /* Rojo muy claro */
    color: white;
    /* Rojo oscuro */
}

.entregado {
    background-color: #9966ff;
    /* Rojo muy claro */
    color: white;
    /* Rojo oscuro */
}

.rechazado {
    background-color: #EE0000;
    /* Rojo muy claro */
    color: white;
    /* Rojo oscuro */
}

.sinSolucion {
    background-color: #999999;
    /* Rojo muy claro */
    color: white;
    /* Rojo oscuro */
}

.enviado-Terceros {
    background-color: #FFFF00;
    /* Rojo muy claro */
    color: black;
    /* Rojo oscuro */
}

.garantia {
    background-color: #ffaa00;
    /* Rojo muy claro */
    color: black;
    /* Rojo oscuro */
}


.th-title{
    box-sizing: content-box;
    display: table-cell;    
height: 20px;
padding: 8px 8px 8px 8px;    


}

.tabless{

box-sizing: border-box;
clear: both;
display: table;
height: 100%;

}
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

.modal {
    overflow-y: auto !important;
}
#modalCrearOrden .modal-body {
    max-height: calc(100vh - 200px); /* alto máximo relativo a la ventana */
    overflow-y: auto;
}
.patron-wrapper {
    display: inline-block;
    padding: 8px;
    border-radius: 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
}

#patronCanvas {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #ccc;
    touch-action: none; /* para evitar scroll en móviles mientras dibujan */
}
/* ======================= */
/*   MODAL INTERVENCIÓN    */
/* ======================= */

.modal-intervencion .modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    overflow: hidden;
}

.modal-intervencion .intervencion-header {
    background: linear-gradient(135deg, #5cb85c, #00a7d0);
    color: #fff;
    border-bottom: none;
    padding-top: 15px;
    padding-left: 15px;
    padding-bottom: 15px;
}

.modal-intervencion .intervencion-header .modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.modal-intervencion .modal-icon {
    font-size: 20px;
}

.modal-intervencion .modal-subtitle {
    margin-top: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.modal-intervencion .close {
    color: #fff;
    opacity: 0.9;
}

.modal-intervencion .close:hover {
    opacity: 1;
}

/* BODY */
.modal-intervencion .intervencion-body {
    background-color: #f7f9fb;
    padding: 20px 25px;
}

.modal-intervencion .intervencion-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #555;
    margin-bottom: 5px;
}

.modal-intervencion .intervencion-input,
.modal-intervencion .intervencion-textarea {
    border-radius: 6px;
    border-color: #d2d6de;
    box-shadow: inset 0 0 0 transparent;
    transition: all 0.2s ease-in-out;
    font-size: 13px;
}

.modal-intervencion .intervencion-input:focus,
.modal-intervencion .intervencion-textarea:focus {
    border-color: #3c8dbc;
    box-shadow: 0 0 0 2px rgba(60,141,188,0.15);
}

/* FOOTER */
.modal-intervencion .intervencion-footer {
    background-color: #f9fafc;
    border-top: 1px solid #e0e4ea;
}

.modal-intervencion .btn-intervencion-guardar {
    padding: 6px 16px;
    font-weight: 600;
}

.modal-intervencion .btn-intervencion-guardar i {
    margin-right: 4px;
}

/* Sutil hover en botones */
.modal-intervencion .btn-default:hover {
    background-color: #f4f4f4;
}

.modal-intervencion .btn-primary:hover {
    background-color: #367fa9;
}

/* Input-group addon un poco más suave */
.modal-intervencion .input-group-addon {
    background-color: #eef3f7;
    border-color: #d2d6de;
}




/*************************/
/* ================= MODAL SERVICIOS ================= */

.modal-servicio-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.30);
    border: none;
}

.modal-servicio-header {
    background: linear-gradient(135deg, #00bcd4, #007bff);
    color: #fff;
    border-bottom: none;
    padding: 18px 20px;
}

.modal-servicio-header .modal-title {
    font-weight: 600;
    font-size: 18px;
}

.modal-servicio-header small {
    display: block;
    margin-top: 4px;
    opacity: 0.9;
}

.modal-servicio-close {
    color: #fff;
    opacity: 1;
}

.modal-servicio-body {
    background-color: #f8fbff;
    padding: 22px;
}

.modal-servicio-body .form-control {
    border-radius: 6px;
    height: 42px;
}

.modal-servicio-body textarea.form-control {
    height: auto;
}

.modal-servicio-footer {
    background-color: #eef3f8;
    border-top: none;
    padding: 15px 20px;
}

.modal-servicio-footer .btn {
    min-width: 130px;
    font-weight: 600;
}