/* Taller Mackauto — fase 4 (estados). */

/* =====================================================================
   F4-01 · Chip del estado visible (listas, ficha de cliente)
   El color llega en --mack-estado desde EstadoVisible::color().
   ===================================================================== */
.mack-estado {
    --mack-estado: #64748b;
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    gap: 0.3125rem;
    min-width: 0;
    border: 1px solid color-mix(in srgb, var(--mack-estado) 35%, white);
    border-radius: 999px;
    background: color-mix(in srgb, var(--mack-estado) 12%, white);
    padding: 0.125rem 0.5rem;
    color: color-mix(in srgb, var(--mack-estado) 70%, #0f172a);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1rem;
    white-space: normal;
    overflow-wrap: anywhere;
}

.mack-estado__punto {
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--mack-estado);
}

.mack-estado__detalle {
    font-weight: 600;
    opacity: 0.85;
}

/* =====================================================================
   F4-01 · Tablero: 4 columnas
   ===================================================================== */
@media (min-width: 1024px) {
    .ops-advisor-home-board.mack-tablero-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ops-job-board-column.mack-col-estado[data-lane-color] {
    border-top-color: var(--mack-estado, #94a3b8);
}

.mack-col-estado .ops-job-board-column__title::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.375rem;
    border-radius: 999px;
    background: var(--mack-estado, #94a3b8);
    vertical-align: 0.0625rem;
}

/* El punto de color del desplegable del móvil (el botón solo se ve en el móvil). */
.mack-col-estado .mack-estado-punto {
    flex-shrink: 0;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 999px;
    background: var(--mack-estado, #94a3b8);
}

@media (max-width: 767.98px) {
    .ops-advisor-home-board .mack-col-estado {
        border-left: 4px solid var(--mack-estado, #94a3b8);
    }
}

/* Detalle corto dentro de «En taller» («Esperando piezas»…). */
.mack-tarjeta-detalle {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    border-radius: 999px;
    background: #eff6ff;
    padding: 0.0625rem 0.4375rem;
    color: #1e40af;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mack-tablero-tarjeta__pie .mack-tablero-tarjeta__hora {
    margin-left: auto;
}

/* =====================================================================
   F4-01 · Inicio: 4 tarjetas y la barra «Coches por estado»
   ===================================================================== */
.ops-shop-dash-next__item.mack-inicio-estado[data-tone] {
    border-left-color: var(--mack-estado, #94a3b8);
}

.ops-shop-dash-next__item.mack-inicio-estado .ops-shop-dash-next__kicker::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.375rem;
    border-radius: 999px;
    background: var(--mack-estado, #94a3b8);
    vertical-align: 0.0625rem;
}

.mack-flujo-4 .mack-flujo-4__seg,
.mack-flujo-4__leyenda .mack-flujo-4__punto {
    background: var(--mack-estado, #94a3b8);
}
