
/*
 Theme Name: GeneratePress Child
 Template: generatepress
*/
/* ESPACIO ENTRE BUSCADOR Y PRIMER PARTE HISTÓRICO */
.sw-historico ul.tablero-lista{
    margin-top: 18px !important;
}
/* SOLUCIÓN REAL ANCHO HISTÓRICO */

.sw-historico .tablero-item{
    flex: 0 0 100%;
}
.sw-notas-internas-dot{
    display:inline-block;
    width:10px;
    height:10px;
    background:#ff9800;
    border-radius:50%;
    margin-right:8px;
    vertical-align:middle;
    opacity:.8;
}
/* =================================================
   01-03-2026 · ALERTAS INDUSTRIALES PRODUCCIÓN
   ================================================= */

.sw-alertas-container{
    margin:25px 0;
}

/* ===== BASE ALERTA ===== */

.sw-alerta{
    display:flex;
    align-items:center;
    gap:18px;
    padding:22px 28px;
    margin-bottom:16px;
    border-radius:12px;
    font-weight:800;
    font-size:22px;
    letter-spacing:.5px;
    text-transform:uppercase;
    box-shadow:0 8px 18px rgba(0,0,0,.15);
    border-left:8px solid;
}

/* ===== ICONO ===== */

.sw-alerta::before{
    font-size:28px;
    font-weight:900;
}

/* ===== ROJO CRÍTICO ===== */

.sw-alerta-roja{
    background:#c62828;
    color:#fff;
    border-color:#ffeb3b;
    animation:swCriticalPulse 1.8s infinite;
}

.sw-alerta-roja::before{
    content:"🚨";
}

/* ===== NARANJA URGENTE ===== */

.sw-alerta-naranja{
    background:#ef6c00;
    color:#fff;
    border-color:#fff176;
}

.sw-alerta-naranja::before{
    content:"⚠";
}

/* ===== ANIMACIÓN PROFESIONAL ===== */

@keyframes swCriticalPulse{
    0% { box-shadow:0 0 0 rgba(255,235,59,0); }
    50% { box-shadow:0 0 25px rgba(255,235,59,.9); }
    100% { box-shadow:0 0 0 rgba(255,235,59,0); }
}

.estado-actual{
    margin:15px 0 20px 0;
    font-size:18px;
    font-weight:600;
    text-align:center;
}

.estado-actual strong{
    color:#2b7cff;
}
/* PIPELINE ESTADOS PRODUCCIÓN */

.sw-estado-pipeline{
display:flex;
align-items:center;
justify-content:space-between;
margin:30px 0;
position:relative;
}

/* linea base */

.sw-estado-pipeline::before{
content:"";
position:absolute;
top:20px;
left:0;
right:0;
height:4px;
background:#ddd;
z-index:1;
}

/* item estado */

.sw-estado-item{
position:relative;
z-index:2;
background:#fff;
padding:8px 12px;
font-size:14px;
text-align:center;
}

/* circulo */

.sw-estado-item::before{
content:"";
display:block;
width:18px;
height:18px;
border-radius:50%;
background:#ccc;
margin:0 auto 6px auto;
}

/* estado actual */

.sw-estado-item.actual::before{
background:#2ecc71;
}

/* estados completados */

.sw-estado-item.completado::before{
background:#27ae60;
}

/* linea progreso */

.sw-estado-pipeline::after{
content:"";
position:absolute;
top:20px;
left:0;
height:4px;
background:#27ae60;
z-index:1;
width:0%;
}

/* =================================================
SELECTAWORK · PIPELINE MÓVIL
Fecha: 06-03-2026
Pipeline centrado con iconos grandes alineados
================================================= */

@media (max-width:768px){

/* apagar líneas del pipeline desktop */

.sw-estado-pipeline::before,
.sw-estado-pipeline::after{
display:none !important;
}

/* eliminar círculo antiguo */

.sw-estado-item::before{
content:none !important;
}

/* contenedor */

.sw-estado-pipeline{
display:flex;
flex-direction:column;
align-items:center;
gap:28px;
margin:30px 0;
}

/* item */

.sw-estado-item{
display:flex;
align-items:center;
gap:18px;
font-size:16px;
white-space:nowrap;
}

/* icono */

.sw-estado-item::after{
content:"●";
font-size:54px;
line-height:1;
width:60px;
text-align:center;
order:-1;
color:#c62828;
}

/* estado actual */

.sw-estado-item.actual::after{
content:"●";
color:#2ecc71;
}

/* estados completados */

.sw-estado-item.completado::after{
content:"✓";
color:#27ae60;
font-weight:900;
}

}
/* =================================================
SELECTAWORK — FORMATO HISTORIAL CAMBIOS
Evita saltos de línea en el log
Fecha: 07-03-2026
================================================= */

.sw-log-line{
white-space:nowrap;
margin-bottom:6px;
font-family:monospace;
}
/* =================================================
SELECTAWORK — BOTONES ENTRAR / SALIR TRABAJO
Descripción: Estilo visual para los botones de
entrada y salida de operarios en el parte.
Colores industriales: verde producción / rojo salida.
Fecha: 08-03-2026
================================================= */

/* botón entrar */

.sw-btn-entro{
background:#18a558;
color:#fff;
border:none;
padding:10px 16px;
font-weight:600;
border-radius:6px;
cursor:pointer;
transition:all .2s ease;
}

.sw-btn-entro:hover{
background:#148a49;
transform:translateY(-1px);
}


/* botón salir */

.sw-btn-salgo{
background:#d64545;
color:#fff;
border:none;
padding:10px 16px;
font-weight:600;
border-radius:6px;
cursor:pointer;
transition:all .2s ease;
}

.sw-btn-salgo:hover{
background:#b83636;
transform:translateY(-1px);
}
/* =================================================
SELECTAWORK — BADGE PRIORIDAD MISMO ANCHO BOTONES
Descripción: fuerza mismo ancho para prioridad y
botones laterales del tablero.
Fecha: 15-03-2026
================================================= */

.tablero-acciones .etiqueta-prio{

    display:block;

    width:160px;

    font-size:14px;
    font-weight:600;

    padding:8px 14px;

    border-radius:6px;

    line-height:1;

    margin-bottom:10px;

    text-align:center;

}

/* =================================================
SELECTAWORK — ICONOS TABLERO EN UNA LÍNEA
Fecha: 10-03-2026
================================================= */

.sw-tablero-iconos{
    display:flex;
    align-items:center;
    gap:8px;
}

/* punto verde */

.sw-notas-internas-dot{
    background:#2ecc71 !important;
}

/* =================================================
SELECTAWORK — MENSAJE ERROR LOGIN
Descripción: Muestra el error centrado encima del
formulario de acceso.
Fecha: 10-03-2026
================================================= */

/* CONTENEDOR LOGIN */

.sw-login-wrapper{
    max-width:340px;
    margin:0 auto;
}

/* MENSAJE ERROR */

.sw-login-error{
    background:#e53935;
    color:#fff;
    padding:12px 16px;
    border-radius:8px;
    margin-bottom:18px;
    text-align:center;
    font-weight:600;
}

/* =================================================
SELECTAWORK — BOTÓN SUBIR FOTO PRODUCCIÓN
Descripción: Estilo visual del botón de subida
de fotos en el bloque de producción.
Fecha: 14-03-2026
================================================= */

.sw-subir-foto{

    background:#2f6fd6;
    color:#ffffff;

    border:none;
    border-radius:8px;

    padding:10px 16px;

    font-weight:600;
    font-size:14px;

    cursor:pointer;

    display:inline-flex;
    align-items:center;
    gap:6px;

}

.sw-subir-foto:hover{

    background:#2153a8;

}


/* miniaturas */

.parte-imagenes img{

    width:140px;
    height:140px;

    object-fit:cover;

    border-radius:8px;

    border:1px solid #d9d9d9;

    cursor:zoom-in;

}



/* =================================================
SELECTAWORK — GRID IMÁGENES MÓVIL
Descripción: Reduce columnas en pantallas pequeñas.
Fecha: 14-03-2026
================================================= */

@media (max-width:768px){

    .parte-imagenes{

        gap:8px;

    }

}

/* =================================================
SELECTAWORK — EFECTO HOVER MINIATURAS
Descripción: Añade efecto visual al pasar el ratón
por las imágenes del parte.
Fecha: 14-03-2026
================================================= */

.parte-imagenes img{

    transition:transform 0.15s ease, box-shadow 0.15s ease;

}

.parte-imagenes img:hover{

    transform:scale(1.05);

    box-shadow:0 4px 10px rgba(0,0,0,0.25);

}



/* =================================================
SELECTAWORK — GALERÍA ESTABLE DE MINIATURAS
Descripción: evita que las imágenes rompan el layout
y mantiene un ancho fijo del parte.
Fecha: 14-03-2026
================================================= */

.parte-imagenes{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

/* =================================================
SELECTAWORK — TAMAÑO MINIATURAS PARTE
Descripción: fija el tamaño real de las miniaturas
de producción e imágenes del trabajo.
Fecha: 14-03-2026
================================================= */

.parte-img-wrap{
    position:relative;
    width:140px !important;
    height:140px !important;
    flex:0 0 140px !important;
    overflow:hidden;
}

/* imagen */

.parte-img-wrap img{
    width:140px !important;
    height:140px !important;
    object-fit:cover;
    border-radius:8px;
    border:1px solid #d9d9d9;
    cursor:zoom-in;
    display:block;
}

/* overlay +X */

.parte-img-more{

    position:absolute;
    inset:0;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(0,0,0,0.6);
    color:#fff;

    font-size:22px;
    font-weight:700;

    border-radius:8px;

    pointer-events:none;

}

/* ocultar imágenes extra */

.parte-img-hidden{
    display:none !important;
}



/* =================================================
SELECTAWORK — TÍTULOS ESTADOS TABLERO
Descripción: Tamaño y negrita para los encabezados
de estado del tablero de producción.
Fecha: 15-03-2026
================================================= */

.tablero-titulo-estado{
    font-size:20px;
    font-weight:700;
}

/* =================================================
   ACF – CAMPOS OBLIGATORIOS Y ERRORES
   ================================================= */
.acf-required {
    color: #c00;
    font-weight: bold;
}

.acf-field.acf-error .acf-input input,
.acf-field.acf-error .acf-input textarea,
.acf-field.acf-error .acf-input select {
    border: 2px solid #d63638 !important;
    background-color: #fff5f5;
}

.acf-error-message {
    color: #c00;
    font-weight: bold;
}

/* Aviso global ACF */
.acf-notice.-error {
    background-color: #fff3f3;
    border: 1px solid #d63638;
    color: #1e1e1e;
    padding: 12px 16px;
    border-radius: 4px;
}

.acf-notice.-error p {
    margin: 0;
    font-weight: 600;
}

/* =================================================
   ACF – INPUTS (VISIBILIDAD Y USABILIDAD)
   ================================================= */
.acf-form .acf-input input,
.acf-form .acf-input textarea,
.acf-form .acf-input select {
    border: 1px solid #8c8f94;
    background-color: #fff;
    padding: 8px 10px;
    border-radius: 4px;
}

}

/* Mantiene visible el botón */
.acf-image-uploader .acf-button {
    display: inline-block !important;
}

/* Miniaturas con bordes redondeados */
.parte-imagenes img,
.acf-form img {
    border-radius: 8px;
}

/* =================================================
   TABLERO – TARJETAS
   ================================================= */
.tablero-item {
    display: block;
    padding: 14px;
    margin-bottom: 14px;
    border: 1px solid #ddd;
    border-left: 6px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

/* Estados */
.tablero-item.estado-pendiente {
    border-left-color: #f0ad4e;
    background: #fff8ee;
}

/* TEXTO NEGRO FUERTE EN PENDIENTES */
.tablero-item.estado-pendiente .tablero-titulo-principal{
    color:#000 !important;
    font-weight:700 !important;
}

.tablero-item.estado-pendiente .tablero-cliente{
    color:#000 !important;
    font-weight:600 !important;
}


.tablero-item.estado-en_proceso {
    border-left-color: #5bc0de;
    background: #f2fbff;
}

.tablero-item.estado-terminado {
    border-left-color: #5cb85c;
    background: #f2fff4;
}

.tablero-item.estado-entregado {
    border-left-color: #777;
    background: #f7f7f7;
}


/* Título */
.tablero-titulo {
    font-weight: 600;
    color: #1e1e1e;
    text-decoration: none;
    white-space: normal;
    word-break: break-word;
}

.tablero-titulo:hover {
    text-decoration: underline;
}

/* Estado */
.tablero-estado {
    padding: 4px 6px;
}

/* Urgente */
.tablero-urgente {
    padding: 4px 6px;
    background: #d63638;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

/* Fecha */
.tablero-fecha {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

/* Imágenes tablero */
.tablero-imagenes {
    display: flex;
    gap: 8px;
}


.estado-botones{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:14px;
 margin:22px 0;
}

.estado-btn{
 padding:18px 12px;
 font-weight:800;
 font-size:18px;
 letter-spacing:1px;
 text-transform:uppercase;

 border-radius:10px;
 border:0;
 cursor:pointer;

 color:#b91c1c;            /* ROJO LEGIBLE */
 background:#e5e7eb;

 box-shadow:0 2px 4px rgba(0,0,0,.15);
}

/* Estado activo */
.estado-btn.is-active{
 outline:3px solid #000;
 box-shadow:0 0 0 3px rgba(0,0,0,.15);
}

/* Colores de fondo por estado */
.estado-pendiente{
 background:#fde68a;
}

.estado-en_proceso{
 background:#bfdbfe;
}

.estado-terminado{
 background:#bbf7d0;
}

.estado-entregado{
 background:#d1d5db;
}

.parte-img{
 width:100%;
 max-width:140px;
 border-radius:8px;
 cursor:pointer;
}

/* OVERLAY */
#img-overlay{
 position:fixed;
 inset:0;
 background:rgba(0,0,0,.9);
 z-index:9999;
 display:flex;
 align-items:center;
 justify-content:center;
}

#img-overlay img{
 max-width:95%;
 max-height:95%;
}
#img-overlay{
 position:fixed;
 inset:0;
 background:rgba(0,0,0,.9);
 z-index:9999;
 display:flex;
 align-items:center;
 justify-content:center;
}

#img-overlay img{
 max-width:95%;
 max-height:95%;
}

#img-overlay-counter{
 position:absolute;
 top:20px;
 right:20px;
 color:#fff;
 font-size:16px;
 font-weight:600;
 background:rgba(0,0,0,.6);
 padding:6px 10px;
 border-radius:20px;
}
.sw-toggle-edit{
 margin-top:25px;
 padding:12px 18px;
 font-size:14px;
 font-weight:700;
 text-transform:uppercase;
 border-radius:8px;
 border:0;
 cursor:pointer;
 background:#111;
 color:#fff;
}

.sw-edit-form{
 margin-top:15px;
 padding:15px;
 background:#f3f4f6;
 border-radius:10px;
}

.sw-tablero-toolbar{
 display:flex;
 justify-content:flex-end;
 margin:10px 0 20px;
}


/* BOTÓN VER DETALLES */
.btn-detalles{
 padding:7px 12px;
 font-size:12px;
 font-weight:700;
 text-transform:uppercase;
 border-radius:6px;
 background:#2563eb; /* AZUL */
 color:#fff;
 text-decoration:none;
 text-align:center;
}
#sw-filtro-activos{
    padding:7px 12px;
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    border-radius:6px;
    border:0;
    cursor:pointer;

    background:#2563eb;
    color:#fff;

    box-shadow:0 2px 4px rgba(0,0,0,.2);
}

#sw-filtro-activos:hover{
    background:#1d4ed8;
}

/* BOTONES URGENTE */
.toggle-urgente{
 padding:6px 10px;
 font-size:12px;
 font-weight:700;
 border-radius:6px;
 border:0;
 cursor:pointer;
 text-transform:uppercase;
}

.btn-urgente-on{
 background:#dc2626; /* rojo */
 color:#fff;
}

.btn-urgente-off{
 background:#16a34a; /* verde */
 color:#fff;
}
@media (max-width: 768px){

  /* Tarjeta completa */
  .tablero-item{
    padding:12px;
  }


  /* Info (estado + título) ocupa todo el ancho */
  .tablero-info{
    width:100%;
  }

  /* Título más grande y claro */
  .tablero-titulo{
    font-size:16px;
    line-height:1.3;
  }

  /* Botones grandes para dedo */
  .btn-detalles,
  .toggle-urgente{
    width:100%;
    text-align:center;
    font-size:14px;
    padding:10px;
  }

}
/* Feedback visual al actualizar estado */
.tablero-item{
 transition: background-color .4s ease;
}

.tablero-item.sw-actualizado{
 background-color: #dcfce7; /* verde claro visible */
}

}
/* Feedback visual botones estado (detalle) */
.estado-btn{
 transition: background-color .3s ease, opacity .3s ease;
}

.estado-btn.sw-ok{
 background-color:#dcfce7 !important; /* verde claro */
 color:#065f46;
}

.estado-btn:disabled{
 opacity:.6;
 cursor:not-allowed;
}
.tablero-titulo-estado{
 display:flex;
 align-items:center;
 gap:6px;
}

.tablero-contador{
 font-size:13px;
 font-weight:600;
 color:#fa0707; /* ROJO */
}
.tablero-titulo-estado{
 margin-left:12px; /* mismo margen que la tarjeta */
}
/* Alinear títulos de estado con el contenido real de las tarjetas */
.tablero-titulo-estado{
 padding-left:40px;
 box-sizing:border-box;
}
/* Quitar desplazamiento del contenedor */
.tablero-lista{
  margin-left:0 !important;
  padding-left:0 !important;
}

/* Alinear títulos exactamente con tarjetas */
.tablero-titulo-estado{
  padding-left:0 !important;
}
.btn-editar-parte{
 background:#7c3aed; /* MORADO */
 color:#fff;
 padding:7px 12px;
 font-size:12px;
 font-weight:700;
 text-transform:uppercase;
 border-radius:6px;
 text-decoration:none;
 text-align:center;
}

.btn-editar-parte:hover{
 background:#6d28d9;
}
.btn-eliminar-parte{
  background:#facc15;      /* amarillo */
  color:#000;
  padding:6px 10px;
  font-size:12px;
  font-weight:700;
  border-radius:6px;       /* esquinas redondeadas */
  border:none;
  cursor:pointer;
  margin-top:6px;
  display:inline-block;
}

.btn-eliminar-parte:hover{
  background:#eab308;      /* amarillo más oscuro */
}
/* ===== ACF IMÁGENES – MEJORA VISUAL ===== */


/* Botón "Añadir imagen" */
.acf-image-uploader .acf-button {
    background: #2b7cff;          /* azul agradable */
    color: #fff;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.2;
    border: none;
}

/* Hover */
.acf-image-uploader .acf-button:hover {
    background: #1f5fd1;
}

/* Espaciado del bloque imagen */
.acf-image-uploader {
    padding: 8px 0;
}

/* Miniatura más limpia cuando hay imagen */
.acf-image-uploader img {
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* Botón eliminar imagen (más discreto) */
.acf-image-uploader .acf-icon.-cancel {
    background: #e74c3c;
    color: #fff;
    border-radius: 50%;
}
/* ===== BOTÓN CREAR PARTE ===== */

.acf-form input[type="submit"],
.acf-form button[type="submit"] {
    background: #2ecc71;          /* verde producción */
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 3px 8px rgba(0,0,0,.2);
    cursor: pointer;
}

/* Hover */
.acf-form input[type="submit"]:hover,
.acf-form button[type="submit"]:hover {
    background: #27ae60;
}

/* En móvil: ancho completo */
@media (max-width: 768px) {
    .acf-form input[type="submit"],
    .acf-form button[type="submit"] {
        width: 100%;
        text-align: center;
    }
}
/* ===== LIMPIEZA FORMULARIO IMÁGENES ACF ===== */

/* Ocultar SOLO el texto "No hay ninguna imagen seleccionada" */
.acf-field[data-type="image"] .acf-input p:not(:has(.acf-button)) {
    display: none !important;
}


/* Ocultar etiquetas "Imagen 1", "Imagen 2", "Imagen 3" */
.acf-field[data-type="image"] > .acf-label {
    display: none !important;
}

/* Ajustar espacio para que no quede hueco raro */
.acf-field[data-type="image"] {
    padding-top: 8px;
}

/* Botón añadir imagen (refuerzo por si ACF cambia clases) */
.acf-field[data-type="image"] .acf-button {
    background: #2b7cff;
    color: #fff;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    border: none;
}

/* Hover */
.acf-field[data-type="image"] .acf-button:hover {
    background: #1f5fd1;
}
/* ===== ACF IMÁGENES EN 3 BLOQUES ===== */

/* Contenedor general: 3 columnas */
.acf-field[data-type="image"] {
    width: 30%;
    display: inline-block;
    vertical-align: top;
    margin-right: 2%;
    box-sizing: border-box;
}

/* Quitar margen al último */
.acf-field[data-type="image"]:nth-of-type(3n) {
    margin-right: 0;
}

/* Caja visual */
.acf-field[data-type="image"] .acf-input {
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    background: #fafafa;
}

/* Texto informativo */
.acf-field[data-type="image"] .acf-input p {
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
}

/* Botón añadir imagen */
.acf-field[data-type="image"] .acf-button {
    background: #2b7cff;
    color: #fff;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    border: none;
}

/* Hover */
.acf-field[data-type="image"] .acf-button:hover {
    background: #1f5fd1;
}

/* Cuando ya hay imagen */
.acf-field[data-type="image"] img {
    max-width: 100%;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* MÓVIL: una debajo de otra */
@media (max-width: 768px) {
    .acf-field[data-type="image"] {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
}
.acf-field[data-type="image"]:nth-of-type(3) {
    margin-right: 0;
}
.acf-field[data-type="image"] .acf-input {
    padding: 8px;        /* antes era demasiado */
}
.acf-field[data-type="image"] .acf-input p {
    margin: 0 0 6px;
    font-size: 11px;
}
/* ===== FECHA DE ENTREGA – ESTADOS VISUALES ===== */

.fecha-entrega {
    font-size: 15px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    margin: 10px 0;
}

.fecha-vencida {
    background: #e74c3c;
    color: #fff;
}

.fecha-hoy,
.fecha-manana {
    background: #f39c12;
    color: #fff;
}

.fecha-ok {
    background: #2ecc71;
    color: #fff;
}
.lista-envios{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.envio-card{
    display:flex;
    gap:15px;
    padding:15px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
    align-items:center;
}

.envio-thumb img{
    width:90px;
    height:90px;
    object-fit:cover;
    border-radius:6px;
}

.envio-info{
    flex:1;
}

.btn-ver,
.btn-editar{
    display:inline-block;
    padding:6px 12px;
    border-radius:4px;
    text-decoration:none;
    font-size:14px;
}

.btn-ver{
    background:#2e7d32;
    color:#fff;
}

.btn-editar{
    background:#1565c0;
    color:#fff;
}
.detalle-envio{
    max-width:800px;
}

.envio-galeria{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-top:15px;
}

.envio-galeria img{
    width:180px;
    height:180px;
    object-fit:cover;
    border-radius:8px;
    cursor:pointer;
}

.btn-volver{
    display:inline-block;
    margin-top:15px;
    padding:8px 14px;
    background:#444;
    color:#fff;
    text-decoration:none;
    border-radius:4px;
}
.envio-img-wrap{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.envio-filename{
    font-size:12px;
    margin-top:5px;
    opacity:.6;
}
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.site-content {
    flex: 1;
}
.lista-envios{
    max-width:900px;
    margin:0 auto;
}
.lista-envios{
    width:100%;
}

.envio-card{
    display:flex;
    align-items:center;
    gap:20px;
    padding:20px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
}

.envio-thumb{
    width:140px;
    min-width:140px;
}

.envio-thumb img{
    width:140px;
    height:140px;
    object-fit:cover;
    border-radius:8px;
    display:block;
}

.envio-info{
    flex:1;
}
.page-id-290 .inside-article{
    width:100% !important;
    max-width:100% !important;
}

.page-id-290 .content-area{
    width:100% !important;
}
.page-id-298 .inside-article{
    width:100% !important;
    max-width:100% !important;
}

.page-id-298 .content-area{
    width:100% !important;
}
/* =================================================
 * SELECTAWORK – ANCHO COMPLETO GLOBAL
 * ================================================= */

body.logged-in .inside-article{
    width:100% !important;
    max-width:100% !important;
}

body.logged-in .content-area{
    width:100% !important;
    max-width:100% !important;
}

body.logged-in .container{
    max-width:100% !important;
}
.estado-envio{
    display:inline-block;
    padding:6px 12px;
    border-radius:6px;
    font-weight:600;
    margin-bottom:10px;
}

.estado-pendiente{
    background:#fff3e0;
    color:#e65100;
}

.estado-enviado{
    background:#e8f5e9;
    color:#1b5e20;
}

.tablero-imagenes{
    display:flex;
    gap:6px;
    margin-top:6px;
}


.img-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    font-size:50px;
    color:white;
    background:none;
    border:none;
    cursor:pointer;
    padding:20px;
}

#img-prev{ left:20px; }
#img-next{ right:20px; }

.img-nav:hover{
    opacity:0.7;
}
.tarjeta-vencida{
    border-left:12px solid #e53935 !important;
    border-right:12px solid #e53935 !important;
    background:#fff5f5;

    animation: pulsoVencido 2s infinite;
}

@keyframes pulsoVencido{
    0%   { box-shadow:0 0 0 0 rgba(229,57,53,0.5); }
    70%  { box-shadow:0 0 0 12px rgba(229,57,53,0); }
    100% { box-shadow:0 0 0 0 rgba(229,57,53,0); }
}


.etiqueta-prio{
    display:inline-block;
    padding:3px 8px;
    border-radius:6px;
    font-size:12px;
    font-weight:bold;
    margin-bottom:5px;
}

/* colores */
.prio-alta{
    background:#e53935;
    color:white;
}

.prio-media{
    background:#fdd835;
    color:#333;
}

.prio-baja{
    background:#e0e0e0;
    color:#555;
}

.tablero-info{
    flex:1;
}

.tablero-titulo{
    font-size:18px;
    font-weight:700;
    margin-bottom:4px;
}

.tablero-cliente{
    color:#777;
    margin-bottom:6px;
}

.tablero-fecha{
    padding:6px 10px;
    font-weight:700;
    border-radius:4px;
    display:inline-block;
}

.fecha-roja{
    background:#d9534f;
    color:#fff;
}

.fecha-naranja{
    background:#f0ad4e;
    color:#fff;
}

.fecha-amarilla{
    background:#ffc107;
}

.prioridad-badge{
    color:#fff;
    padding:6px 10px;
    margin-top:6px;
    border-radius:4px;
    font-weight:700;
}

.tablero-cliente{
    margin-top:6px;
    color:#555;
}

/* FECHA BADGE */
.badge-fecha{
    display:inline-block;
    margin-top:10px;
    padding:6px 12px;
    border-radius:6px;
    font-weight:bold;
}

.badge-normal{ background:#f0f0f0; }
.badge-urgente{ background:#f4b400; }
.badge-vencido{
    background:#e53935;
    color:white;
}


/* PRIORIDAD */
.prio-alta{ background:#e53935;color:white; }
.prio-media{ background:#f5ff00;color:black; }
.prio-baja{ background:#43a047;color:white; }

/* ===== COLUMNA IZQUIERDA ===== */
.tablero-info{
    flex:1;
}


/* CLIENTE */
.tablero-cliente{
    font-size:15px;
    color:#666;
    margin-bottom:12px;
}

/* ===== BADGE FECHA ===== */
.badge-fecha{
    display:inline-block;
    padding:6px 12px;
    border-radius:6px;
    font-weight:bold;
    font-size:13px;
}

/* normal */
.badge-normal{
    background:#e0e0e0;
    color:#333;
}

/* próxima */
.badge-urgente{
    background:#f4b400;
    color:white;
}

/* vencida */
.badge-vencido{
    background:#e53935;
    color:white;
}

/* ===== MINIATURAS ===== */
.tablero-imagenes{
    margin-top:15px;
}

/* ===== PANEL DERECHO ===== */

/* =====================================
   TABLERO PRODUCCIÓN – LAYOUT DEFINITIVO
===================================== */

/* =================================================
SELECTAWORK — LAYOUT TARJETA TABLERO
Descripción: estructura horizontal estable entre
la información del trabajo y las acciones.
Fecha: 15-03-2026
================================================= */

.tablero-fila-superior{
    display:grid;
    grid-template-columns: 1fr auto;
    gap:20px;
    align-items:start;
}

/* COLUMNA IZQUIERDA */
.tablero-info{
    flex:1;
    display:flex;
    flex-direction:column;
}


/* CLIENTE */
.tablero-cliente{
    font-size:15px;
    color:#666;
    margin-bottom:10px;
}

/* BADGE FECHA */
.badge-fecha{
    display:inline-block;
    padding:6px 12px;
    border-radius:6px;
    font-weight:bold;
    font-size:13px;
    margin-bottom:10px;
}

.badge-normal{
    background:#e0e0e0;
    color:#333;
}

.badge-urgente{
    background:#f4b400;
    color:white;
}

.badge-vencido{
    background:#e53935;
    color:white;
}

/* IMÁGENES */
.tablero-imagenes{
    display:flex;
    gap:10px;
    margin-top:12px;
}

.tablero-imagenes img{
    width:110px !important;
    height:110px !important;
    object-fit:cover !important;
    object-position:center !important;
    aspect-ratio:1/1 !important;
    border-radius:8px;
    display:block;
}


/* =================================================
   FIX DEFINITIVO TABLERO PRODUCCIÓN
   (estructura limpia y estable)
================================================= */

/* Columna izquierda vertical */
.tablero-info{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
}

.tablero-titulo-principal{
1160
    font-size:20px;
1161
    font-weight:700;
1162
    line-height:1.3;
1163
​
1164
    display:flex;
1165
    align-items:center;
1166
    gap:8px;
1167
    flex-wrap:wrap;
1168
}


/* Cliente */
.tablero-cliente{
    font-size:15px;
    color:#666;
}

/* Badge fecha */
.badge-fecha{
    margin-top:6px;
}

/* Miniaturas SIEMPRE debajo */
.tablero-imagenes{
    display:flex;
    gap:10px;
    margin-top:15px;
}

.tablero-imagenes img{
    width:110px;
    height:110px;
    object-fit:cover;
    border-radius:8px;
    cursor:pointer;
}

/* =================================================
   PULIDO FINAL TARJETA PRODUCCIÓN
================================================= */

/* Espaciado columna izquierda */
.tablero-info{
    gap:10px;
}

/* Separación miniaturas */
.tablero-imagenes{
    margin-top:12px;
}

/* Miniaturas más elegantes */
.tablero-imagenes img{
    box-shadow:0 2px 6px rgba(0,0,0,.15);
    transition:transform .15s ease;
}

.tablero-imagenes img:hover{
    transform:scale(1.05);
}

/* Separación general tarjeta */
.tablero-item{
    padding:18px;
}
/* =================================================
   ALERTA VISUAL AUTOMÁTICA – PARTES VENCIDOS
   ================================================= */

/* borde rojo fuerte */
.tarjeta-vencida{
    border-left:12px solid #e53935 !important;
    border-right:12px solid #e53935 !important;
    position:relative;
}


/* animación suave tipo ERP */
@keyframes sw-pulse{
    0% { box-shadow:0 0 0 0 rgba(229,57,53,0.6); }
    70% { box-shadow:0 0 0 12px rgba(229,57,53,0); }
    100% { box-shadow:0 0 0 0 rgba(229,57,53,0); }
}

.tarjeta-vencida{
    animation: sw-pulse 2.5s infinite;
}
.sw-alerta-vencido{
    font-size:20px;
    margin-right:6px;
    vertical-align:middle;
    flex-shrink:0;
}
#sw-filtro-activos{
    background:#2563eb !important;
    color:#fff !important;

    padding:8px 14px !important;
    font-size:13px !important;
    font-weight:700 !important;

    border-radius:6px !important;
    border:0 !important;
    cursor:pointer !important;

    box-shadow:0 2px 4px rgba(0,0,0,.25) !important;
}

#sw-filtro-activos:hover{
    background:#1d4ed8 !important;
}
#sw-filtro-criticos{

    background:#2563eb !important;
    color:#fff !important;

    border-radius:6px !important;
    border:none !important;

    padding:8px 14px !important;
    font-size:13px !important;
    font-weight:700 !important;

    cursor:pointer !important;
}

/* hover */
#sw-filtro-criticos:hover{
    background:#1d4ed8 !important;
}
.tablero-operario{
    font-size:14px;
    font-weight:700;
    color:#2563eb;
    margin:6px 0 10px;
}
/* ===== MINIATURAS DETALLE TRABAJO CUADRADAS ===== */
1309
​
1310
.parte-imagenes img{
1311
    width:140px !important;
1312
    height:140px !important;
1313
    object-fit:cover !important;
1314
    border-radius:8px;
1315
    display:block;
1316
}
/* =====================================
   DETALLE TRABAJO – DISEÑO TARJETAS LIMPIO
===================================== */

/* Contenedor general */
.parte-operario{
    display:flex;
    flex-direction:column;
    gap:18px;
}

/* Tarjeta individual */
.parte-operario p{
    background:#ffffff;
    border-radius:10px;
    padding:18px 20px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
    border-left:6px solid #2563eb;
    border:1px solid #e5e7eb;   /* 👈 borde fino completo */
    margin:0;

    font-size:16px;
    line-height:1.6;
}

/* Título dentro de tarjeta */
.parte-operario p strong{
    display:block;
    font-size:13px;
    letter-spacing:.5px;
    text-transform:uppercase;
    color:#6b7280;
    margin-bottom:8px;
}

/* ===== COLORES POR TIPO ===== */

/* Trabajo a realizar */
.parte-operario p:nth-of-type(3){
    border-left-color:#16a34a;
    border-color:#dcfce7;
}

/* Notas */
.parte-operario p:nth-of-type(4){
    border-left-color:#f59e0b;
    border-color:#fef3c7;
}

/* Persona sugerida */
.persona-sugerida{
    background:#ffffff;
    border-left:6px solid #2563eb;
    border:1px solid #dbeafe;
    padding:16px 18px;
    border-radius:10px;
    box-shadow:0 2px 6px rgba(0,0,0,.05);
}

/* ===== FIX DEFINITIVO TEXTO FECHA VENCIDA ===== */

.fecha-entrega.fecha-vencida{
    background:#e53935 !important;
    color:#ffffff !important;
}

.fecha-entrega.fecha-vencida strong{
    color:#ffffff !important;
}
/* ===== CARD DATOS PRINCIPALES ===== */

.parte-datos-card{
    background:#fff;
    border-radius:12px;
    padding:18px 20px;
    margin:20px 0;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    border-left:5px solid #2563eb;
    display:flex;
    gap:30px;
    flex-wrap:wrap;
}

.dato-item{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.dato-label{
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.5px;
    color:#6b7280;
    font-weight:700;
}

.dato-valor{
    font-size:16px;
    font-weight:700;
    color:#111;
}
/* ===== TARJETAS DETALLE ===== */

.parte-card{
    background:#fff;
    border-radius:12px;
    padding:18px 22px;
    margin:20px 0;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    border-left:6px solid #2563eb;
}

/* TITULO BLOQUE */
.card-titulo{
    font-size:13px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.5px;
    color:#6b7280;
    margin-bottom:10px;
}

/* TEXTO BLOQUE */
.card-texto{
    font-size:16px;
    line-height:1.6;
    color:#111;
}

/* ===== DATOS PRINCIPALES GRID ===== */

.datos-grid{
    display:flex;
    gap:40px;
    flex-wrap:wrap;
}

.dato-titulo{
    font-size:12px;
    text-transform:uppercase;
    font-weight:800;
    color:#6b7280;
}

.dato-texto{
    font-size:16px;
    font-weight:700;
    color:#111;
}
.parte-operario {
    position: relative;
}

.check-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    font-size: 42px;
    color: #00c853;
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
    z-index: 10;
}

.parte-operario.check-activo .check-feedback {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.tablero-item {
    position: relative;
}

/* ===== CHECK SELECTAWORK LIMPIO ===== */

.check-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    font-size: 80px;
    color: #00d84a;
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    z-index: 9999;
    text-shadow: 0 0 20px rgba(0,216,74,.7);
}

.parte-operario.check-activo .check-feedback {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.parte-card {
    border: 1px solid #3b6edc;
    border-left: 6px solid #3b6edc;
}
.parte-card .card-texto p {
    background: none;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
}
.parte-card .card-texto {
    font-family: "Courier New", monospace;
    white-space: pre-wrap;
    tab-size: 8;
}
.sw-cambiar-estado{
    background:#2bb673;
    color:#fff;
    text-transform:uppercase;
    font-weight:700;
    text-align:center;
    padding:14px 20px;
    border-radius:12px;
    margin:25px 0 15px 0;
    letter-spacing:1px;
}
/* ===== LOGIN INTRANET ===== */

body.home .main-navigation{
    display:none;
}

body.home .site-header{
    display:none;
}
body.home{
    background:#f4f6f8;
}

body.home .entry-content{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:80vh;
}
body.home form{
    background:#fff;
    padding:50px 40px;
    border-radius:16px;
    box-shadow:0 20px 50px rgba(0,0,0,0.08);
    max-width:420px;
    width:100%;
    text-align:center;
}

body.home form::before{
    content:"";
    display:block;
    width:220px;
    height:80px;
    margin:0 auto 25px auto;
    background:url("http://selectawork.local/wp-content/uploads/2026/02/SelectaWork.png") no-repeat center;
    background-size:contain;
}

body.home h1.entry-title{
    display:none;
}
body.home .site-content{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
}
/* BOTÓN ACCEDER LOGIN */

body.home input[type="submit"]{
    background:#16c60c;
    color:#fff;
    font-weight:700;
    border:none;
    border-radius:8px;
    padding:12px 24px;
    transition:all .2s ease;
}

body.home input[type="submit"]:hover{
    background:#13a809;
}

/* ===== LOGOUT LIMPIO GENERATEPRESS ===== */

.menu-logout a{
    background:#16c60c;
    color:#fff !important;
    padding:6px 12px !important;
    border-radius:6px;
    margin-left:15px;
    
    display:inline-block !important;
    line-height:1.2 !important;
    height:auto !important;
    font-weight:600;
    text-align:center;
}

.menu-logout a span{
    display:block;
}

.logout-text{
    font-size:12px;
}

.logout-user{
    font-size:10px;
    font-weight:400;
    opacity:0.9;
}

.menu-logout a:hover{
    background:#13a809;
}
/* ===== CENTRAR MENÚ HEADER ===== */

.main-navigation .inside-navigation{
    display:flex;
    justify-content:center;
}

.main-navigation ul{
    margin:0 auto;
}
.site-header .header-wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
}
/* ===== CENTRAR MENÚ HEADER SELECTAWORK ===== */

.site-header .inside-header{
    display:flex;
    align-items:center;
}

.main-navigation{
    margin-left:auto;
    margin-right:auto;
}

.main-navigation ul{
    display:flex;
    justify-content:center;
}
/* ===== TAMAÑO LOGO HEADER ===== */

.site-logo img{
    max-height:60px;
    width:auto;
}
/* ===== LOGIN UX PROFESIONAL ===== */

/* Fondo blanco puro del formulario */
body.home form{
    background:#ffffff !important;
}

/* Inputs visibles y modernos */
body.home input[type="text"],
body.home input[type="password"]{
    background:#ffffff;
    border:2px solid #e1e5ea;
    border-radius:6px;
    padding:12px;
    width:100%;
    transition:all .2s ease;
}

/* Hover / focus */
body.home input[type="text"]:focus,
body.home input[type="password"]:focus{
    border-color:#16c60c;
    box-shadow:0 0 0 2px rgba(22,198,12,.15);
    outline:none;
}

/* Labels más claros */
body.home label{
    font-weight:600;
    color:#444;
}
/* ===== LOGIN FONDO BLANCO TOTAL ===== */

/* Fondo general */
body.home{
    background:#ffffff !important;
}

/* Contenedor principal */
body.home .site{
    background:#ffffff !important;
}

/* Área de contenido */
body.home .site-content{
    background:#ffffff !important;
}

/* Contenedor interior */
body.home .inside-article{
    background:#ffffff !important;
}

/* Formulario */
body.home form{
    background:#ffffff !important;
}
/* ===== COLOR ESTADO EN PAUSA ===== */

.estado-en_pausa{
    border-left:6px solid #f39c12;
}
/* ===== HEADER FIJO SELECTAWORK ===== */

.site-header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:9999;
    background:#ffffff;
    box-shadow:0 2px 8px rgba(0,0,0,0.08);
}

/* espacio para que el contenido no quede debajo */
.site-content{
    padding-top:140px;
}
/* ===== ESPACIADO INTERNO HEADER ===== */

.site-header{
    padding: 12px 0;
}

/* baja un poco el botón cerrar sesión */
.sw-logout-btn{
    margin-top: 4px;
}
.sw-btn-volver{
    display:inline-block;
    padding:12px 18px;
    background:#f0f0f0;
    border-radius:8px;
    text-decoration:none;
    color:#333;
    font-weight:600;
}

.sw-btn-volver:hover{
    background:#e0e0e0;
}
.btn-duplicar-parte{
    display:inline-block;
    margin-top:10px;
    padding:10px 16px;
    background:#1976d2;
    color:white;
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
}
.fecha-pedido{
    margin:10px 0 8px;
    font-size:14px;
    color:#666;
}
.sw-paginacion{
    margin-top:25px;
    text-align:center;
}

.sw-paginacion a,
.sw-paginacion span{
    display:inline-block;
    padding:8px 12px;
    margin:4px;
    border-radius:6px;
    background:#eee;
    text-decoration:none;
}

.sw-paginacion .current{
    background:#1976d2;
    color:white;
}
.sw-paginacion{
    margin-top:25px;
    text-align:center;
}

.sw-paginacion a,
.sw-paginacion span{
    display:inline-block;
    padding:8px 12px;
    margin:4px;
    border-radius:6px;
    background:#eee;
    text-decoration:none;
}

.sw-paginacion .current{
    background:#1976d2;
    color:white;
}
.acf-field.sw-hidden {
    display: none !important;
}
/* ========================================
   HISTÓRICO ENTREGADOS – ESTILO VERDE
======================================== */

/* Tarjetas histórico */
.tablero-item.estado-entregado{
    border:2px solid #2bbf6a;
    border-left:8px solid #2bbf6a;
    border-radius:8px;
}

/* Badge ENTREGADO */
.tablero-item.estado-entregado .badge-fecha{
    background:#2bbf6a;
    color:#fff;
    border:none;
    font-weight:600;
}

/* Botón BUSCAR */
.sw-buscador-historico button{
    background:#2bbf6a;
    color:#fff;
    border:none;
    border-radius:6px;
    padding:8px 16px;
    cursor:pointer;
    transition:.2s;
}

/* Hover botón */
.sw-buscador-historico button:hover{
    background:#22a95c;
}

/* Input buscador */
.sw-buscador-historico input{
    border:2px solid #2bbf6a;
    border-radius:6px;
/* Separación buscador → primer parte */

/* Espacio antes del primer parte del histórico */
.sw-historico .tablero-lista li:first-child{
    margin-top: 30px !important;
}

.sw-historico .tablero-fila-superior{
    justify-content: stretch;
}
.sw-historico .tablero-item{
    padding-left:0;
    padding-right:0;
}
.sw-historico .tablero-fila-superior{
    justify-content: flex-start;
}
.sw-notas-internas-icono{
    margin-left:8px;
    font-size:18px;
    vertical-align:middle;
    color:#1fa22e;
}
.sw-notas-internas-dot{
    display:inline-block;
    width:10px;
    height:10px;
    background:#22c55e;
    border-radius:50%;
    margin-left:8px;
    vertical-align:middle;
}
	.sw-operarios-lista{
    background:#f7fff7;
    border-left:4px solid #2ecc71;
    padding:12px 15px;
    margin-bottom:20px;
    border-radius:6px;
}

.sw-operarios-lista ul{
    margin:8px 0 0 0;
    padding-left:18px;
}
/* =================================================
   ALERTAS VISUALES CRÍTICAS SELECTAWORK (DEFINITIVO)
   ================================================= */

/* FONDO ROJO FIJO */
.tablero-item .etiqueta-prio.prio-alta,
.tablero-item .badge-vencido,
.tablero-item .badge-urgente {
    background-color: #ff0000 !important;
    font-weight: 700 !important;
}

/* ANIMACIÓN DEL TEXTO */
.tablero-item .etiqueta-prio.prio-alta,
.tablero-item .badge-vencido,
.tablero-item .badge-urgente {
    animation: swColorPulse 1.8s infinite !important;
}

/* CAMBIO DE COLOR SUAVE Y MUY VISIBLE */
@keyframes swColorPulse {
    0%   { color: #ffffff; }
    50%  { color: #ffff00; }   /* amarillo fuerte */
    100% { color: #ffffff; }
}
	/* DESACTIVAR PARPADEO ANTIGUO */
.tarjeta-vencida,
.estado-en_proceso.tarjeta-vencida,
.tablero-item.tarjeta-vencida {
    animation: none !important;
    opacity: 1 !important;
}
	/* ALERTA TEXTO CRÍTICO */
.badge-vencido,
.badge-urgente,
.prio-alta {
    animation: swTextAlert 1.6s infinite !important;
}

/* ANIMACIÓN DE COLOR */
@keyframes swTextAlert {
    0%   { color: #ffffff; }
    50%  { color: #ffeb3b; }
    100% { color: #ffffff; }
}
	/* =================================================
   DESACTIVAR ALERTAS EN TRABAJOS FINALIZADOS
   ================================================= */

/* QUITAR PARPADEO */
.estado-entregado .badge-vencido,
.estado-entregado .badge-urgente,
.estado-entregado .prio-alta,
.estado-terminado .badge-vencido,
.estado-terminado .badge-urgente,
.estado-terminado .prio-alta,
.estado-entregado .badge-vencido *,
.estado-entregado .badge-urgente *,
.estado-entregado .prio-alta *,
.estado-terminado .badge-vencido *,
.estado-terminado .badge-urgente *,
.estado-terminado .prio-alta * {
    animation: none !important;
    color: inherit !important;
}

/* RESTAURAR FONDOS NORMALES */
.estado-entregado .badge-vencido,
.estado-entregado .badge-urgente,
.estado-terminado .badge-vencido,
.estado-terminado .badge-urgente {
    background: #28a745 !important;
    color: white !important;
}

/* BORDE VERDE FINAL */
.estado-entregado {
    border-left: 6px solid #28a745 !important;
}

.estado-terminado {
    border-left: 6px solid #28a745 !important;
}
	/* =================================================
   APAGAR TODAS LAS ALARMAS EN ENTREGADOS / TERMINADOS
   ================================================= */

/* 1️⃣ QUITAR ROJOS Y PARPADEOS DE LA TARJETA */
.tablero-item.estado-entregado,
.tablero-item.estado-terminado {

    border-left: 6px solid #28a745 !important;
    border-right: none !important;
    animation: none !important;
    opacity: 1 !important;
}

/* MATAR CLASES DE URGENCIA QUE SE APLICAN */
.tablero-item.estado-entregado.tarjeta-vencida,
.tablero-item.estado-terminado.tarjeta-vencida {
    border-left: 6px solid #28a745 !important;
    animation: none !important;
}

/* 2️⃣ QUITAR PARPADEO DE BADGES */
.estado-entregado .badge-vencido,
.estado-entregado .badge-urgente,
.estado-entregado .prio-alta,
.estado-terminado .badge-vencido,
.estado-terminado .badge-urgente,
.estado-terminado .prio-alta {

    animation: none !important;
    background: #28a745 !important;
    color: #ffffff !important;
}

/* 3️⃣ QUITAR ANIMACIONES INTERNAS */
.estado-entregado .badge-vencido *,
.estado-entregado .badge-urgente *,
.estado-entregado .prio-alta *,
.estado-terminado .badge-vencido *,
.estado-terminado .badge-urgente *,
.estado-terminado .prio-alta * {
    animation: none !important;
    color: #ffffff !important;
}
	/* =================================================
   DESACTIVAR PARPADEO PRIORIDAD EN PARTES CERRADOS
   ================================================= */

.estado-entregado .prio-alta,
.estado-terminado .prio-alta,
.estado-entregado .prio-alta *,
.estado-terminado .prio-alta * {
    animation: none !important;
    color: #ffffff !important;
}
/* =====================================
   BOTÓN LOGOUT SELECTAWORK (CORRECTO GP)
   ===================================== */

.main-navigation .main-nav ul li.sw-user-menu a {
    background: #1cc44c !important;
    color: #ffffff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    margin-left: 10px !important;
}

.main-navigation .main-nav ul li.sw-user-menu a:hover {
    background: #17a640 !important;
    color: #ffffff !important;
}
	.sw-oculto{
    display:none !important;
}
	/* ===== ESTADO CRÍTICO UNIFICADO ===== */

.badge-critico,
.etiqueta-prio.prio-alta {
    background: #e53935 !important;
    color: #ffffff !important;
}

.badge-critico *,
.etiqueta-prio.prio-alta * {
    animation: swTextColor 1.6s infinite !important;
}
/* =================================================
01-03-2026 · ALERTAS DETALLE ESTILO TABLERO
================================================= */

.sw-alertas-container{
    margin:20px 0;
}

.sw-alerta{
    text-align:center;
    font-weight:900;
    font-size:22px;
    margin:12px 0;
    padding:8px 0;
    letter-spacing:.5px;
}

.sw-alerta-naranja{
    color:#ff7a00;
}

.sw-alerta-roja{
    color:#d60000;
    animation: swBlink 1.4s infinite;
}

/* PARPADEO SOLO PRIORIDAD ALTA */
.sw-alerta-roja{
    animation: swBlink 1.4s infinite;
}

@keyframes swBlink{
    0%{opacity:1}
    50%{opacity:.25}
    100%{opacity:1}
}

/* PARPADEO SOLO PRIORIDAD ALTA */

.sw-alerta-roja{
    animation: swBlink 1.4s infinite;
}

@keyframes swBlink{
    0%{opacity:1}
    50%{opacity:.25}
    100%{opacity:1}
}

