/* 
   Estandarización de Colores para Órdenes de Trabajo
   Este archivo centraliza todos los colores utilizados en la aplicación para status, origen y criticidad
*/

:root {
    /* ========== STATUS DE LAS ÓRDENES DE TRABAJO ========== */
    /* Cada status tiene un color único y consistente */
    --ot-status-generada: rgb(160, 160, 160); /* GEN - Status 1: Generada */
    --ot-status-en-proceso: rgb(19, 10, 135); /* INP - Status 2: En Proceso */
    --ot-status-suspendida: rgb(226, 128, 7); /* SUS - Status 3: Suspendida */
    --ot-status-cerrada: rgba(0, 128, 0, 0.8); /* CLO - Status 4: Cerrada */
    --ot-status-cancelada: rgb(146, 84, 16); /* CAN - Status 5: Cancelada */
    --ot-status-eliminada: rgb(180, 36, 10); /* DEL - Status 6: Eliminada */
    --ot-status-liberada: rgb(61, 180, 14); /* REL - Status 7: Liberada */
    /* Alias para compatibilidad retroactiva */
    --otgen: var(--ot-status-generada);
    --otpro: var(--ot-status-en-proceso);
    --otsus: var(--ot-status-suspendida);
    --otcer: var(--ot-status-cerrada);
    --otanu: var(--ot-status-cancelada);
    --otcan: var(--ot-status-eliminada);
    --otlib: var(--ot-status-liberada);
    /* ========== ORIGEN DE LAS ÓRDENES DE TRABAJO ========== */
    /* Cada origen tiene un color único y distintivo */
    --ot-origen-solicitud-trabajo: rgb(121, 177, 10); /* SOLTRA - Origen 1: Solicitud Trabajo (Verde) */
    --ot-origen-falla: rgb(228, 20, 20); /* FAIL   - Origen 2: Falla (Rojo) */
    --ot-origen-planificacion: rgb(64, 128, 255); /* PLAN   - Origen 3: Planificación (Azul) */
    --ot-origen-programado: rgb(209, 200, 26); /* SCH    - Origen 4: Programado (Amarillo) */
    /* Alias para compatibilidad retroactiva */
    --otsoltra: var(--ot-origen-solicitud-trabajo);
    --otfalla: var(--ot-origen-falla);
    --otplan: var(--ot-origen-planificacion);
    --otprog: var(--ot-origen-programado);
    /* ========== CRITICIDADES ========== */
    --ot-criticidad-leve: rgb(121, 177, 10); /* Verde */
    --ot-criticidad-moderada: rgb(64, 128, 255); /* Azul */
    --ot-criticidad-urgente: rgb(209, 70, 0); /* Naranja */
    --ot-criticidad-critica: rgb(228, 20, 20); /* Rojo */
    /* Alias para compatibilidad retroactiva */
    --crilev: var(--ot-criticidad-leve);
    --crimod: var(--ot-criticidad-moderada);
    --criurg: var(--ot-criticidad-urgente);
    --cricri: var(--ot-criticidad-critica);
    /* ========== PRIORIDADES ========== */
    --ot-prioridad-nula: green;
    --ot-prioridad-baja: blue;
    --ot-prioridad-media: orange;
    --ot-prioridad-alta: darkred;
    /* Alias para compatibilidad retroactiva */
    --prinul: var(--ot-prioridad-nula);
    --pribaj: var(--ot-prioridad-baja);
    --primed: var(--ot-prioridad-media);
    --prialt: var(--ot-prioridad-alta);
}

/* ========== CLASES DE UTILIDAD PARA STATUS ========== */
.ot-status-generada { background-color: var(--ot-status-generada); color: white; font-weight: bold; }
.ot-status-en-proceso { background-color: var(--ot-status-en-proceso); color: white; font-weight: bold; }
.ot-status-suspendida { background-color: var(--ot-status-suspendida); color: white; font-weight: bold; }
.ot-status-cerrada { background-color: var(--ot-status-cerrada); color: white; font-weight: bold; }
.ot-status-cancelada { background-color: var(--ot-status-cancelada); color: white; font-weight: bold; }
.ot-status-eliminada { background-color: var(--ot-status-eliminada); color: white; font-weight: bold; }
.ot-status-liberada { background-color: var(--ot-status-liberada); color: white; font-weight: bold; }

/* ========== CLASES DE UTILIDAD PARA ORIGEN ========== */
.ot-origen-solicitud-trabajo { background-color: var(--ot-origen-solicitud-trabajo); color: white; font-weight: bold; }
.ot-origen-falla { background-color: var(--ot-origen-falla); color: white; font-weight: bold; }
.ot-origen-planificacion { background-color: var(--ot-origen-planificacion); color: white; font-weight: bold; }
.ot-origen-programado { background-color: var(--ot-origen-programado); color: white; font-weight: bold; }

/* ========== CLASES DE UTILIDAD PARA CRITICIDAD ========== */
.ot-criticidad-leve { color: var(--ot-criticidad-leve); font-weight: bold; }
.ot-criticidad-moderada { color: var(--ot-criticidad-moderada); font-weight: bold; }
.ot-criticidad-urgente { color: var(--ot-criticidad-urgente); font-weight: bold; }
.ot-criticidad-critica { color: var(--ot-criticidad-critica); font-weight: bold; }

/* ========== CLASES DE UTILIDAD PARA PRIORIDAD ========== */
.ot-prioridad-nula { color: var(--ot-prioridad-nula); font-weight: bold; }
.ot-prioridad-baja { color: var(--ot-prioridad-baja); font-weight: bold; }
.ot-prioridad-media { color: var(--ot-prioridad-media); font-weight: bold; }
.ot-prioridad-alta { color: var(--ot-prioridad-alta); font-weight: bold; }
