:root {
    --estado-pendiente: #6c757d; /* Gris */
    --estado-proceso: #0d6efd;   /* Azul */
    --estado-completado: #198754;/* Verde */
    --estado-reproceso: #dc3545; /* Rojo/Naranja */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Transición suave para cuando un trabajo llega a 100% y desaparece */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.chk-etapa {
    cursor: pointer;
    width: 1.5em;
    height: 1.5em;
}

.chk-etapa:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.progress {
    height: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 10px;
}

/* Prioridad visible únicamente en la celda Cliente / Paciente. */
.celda-urgente {
    background-color: #fff0db !important;
    border-left: 4px solid #f97316 !important;
    color: #7c2d12;
}

.badge-urgente {
    background-color: #f97316;
    color: #1f1307;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

/* Interruptor amplio para que pueda activarse con comodidad desde celulares. */
.urgente-switch {
    min-height: 62px;
    padding: 0.8rem 1rem 0.7rem 3.9rem;
    border: 1px solid #fed7aa;
    border-radius: 0.5rem;
    background: #fff7ed;
}

.urgente-switch .form-check-input {
    width: 3.1em;
    height: 1.65em;
    margin-left: -3.35rem;
    margin-top: 0.1rem;
    cursor: pointer;
}

.urgente-switch .form-check-label {
    color: #9a3412;
    cursor: pointer;
    font-weight: 700;
}

@media (max-width: 576px) {
    .urgente-switch .form-check-input {
        width: 3.4em;
        height: 1.85em;
    }
}
