#enc-cuadrantes-322{font:inherit;color:#16364e;border:2px solid #b4d3e1;background:#f5fafc;border-radius:14px;padding:16px;margin-top:16px;min-width:0}
#enc-cuadrantes-322 *{box-sizing:border-box}
#enc-cuadrantes-322 .cd322-cabecera{display:flex;align-items:start;justify-content:space-between;flex-wrap:wrap;gap:12px}
#enc-cuadrantes-322 h3{margin:0 0 7px;font-size:20px}
#enc-cuadrantes-322 h4{font-size:16px;margin:19px 0 9px}
#enc-cuadrantes-322 p{margin:7px 0;line-height:1.45}
#enc-cuadrantes-322 .cd322-controles{display:flex;gap:8px;flex-wrap:wrap;align-items:end;margin:14px 0}
#enc-cuadrantes-322 .cd322-controles label{display:grid;gap:5px;font-size:13px;font-weight:700}
#enc-cuadrantes-322 input,#enc-cuadrantes-322 select{font:inherit;color:#16364e;border:1px solid #9fb9c8;border-radius:7px;background:white;padding:8px;max-width:100%}
#enc-cuadrantes-322 button{cursor:pointer;border:1px solid #145878;background:#155273;color:#fff;border-radius:8px;padding:8px 11px;font-weight:650}
#enc-cuadrantes-322 button:disabled{opacity:.55;cursor:not-allowed}
#enc-cuadrantes-322 .cd322-controles .activo{background:#09613a;border-color:#09613a}
#enc-cuadrantes-322 [data-c322-estado]{background:#e6f1f6;color:#214f69;padding:8px 10px;border-radius:8px;font-size:13px;margin:10px 0}
#enc-cuadrantes-322 [data-c322-estado].error{background:#fff1ed;color:#963e28}
#enc-cuadrantes-322 .cd322-scroll{overflow:auto;max-width:100%;border:1px solid #bfd5e2;border-radius:9px;background:#fff}
#enc-cuadrantes-322 .cd322-tabla{width:100%;border-collapse:separate;border-spacing:0;min-width:770px;font-size:13px}
#enc-cuadrantes-322 .cd322-tabla th{background:#e8f2f7;color:#153d56;text-align:left;position:sticky;top:0;z-index:2;padding:10px 8px;border-bottom:2px solid #b5ccdc;white-space:nowrap}
#enc-cuadrantes-322 .cd322-tabla td{padding:8px;border-bottom:1px solid #e4edf2;vertical-align:top;max-width:260px;line-height:1.4}
#enc-cuadrantes-322 .cd322-tabla tr:nth-child(even) td{background:#f9fcfe}
#enc-cuadrantes-322 .cd322-tabla th:first-child,#enc-cuadrantes-322 .cd322-tabla td:first-child{position:sticky;left:0;z-index:1;min-width:145px;max-width:200px;background:#ecf5fa;font-weight:650}
#enc-cuadrantes-322 .cd322-tabla th:first-child{z-index:3}
#enc-cuadrantes-322 .cd322-celda{display:grid;gap:4px;min-width:112px}
#enc-cuadrantes-322 .cd322-asignacion{background:#f0f8ff;border-left:3px solid #1678a4;padding:6px;border-radius:5px;display:grid;gap:3px;min-width:120px}
#enc-cuadrantes-322 .cd322-asignacion strong{white-space:nowrap}
#enc-cuadrantes-322 .cd322-asignacion small{color:#47697c;font-size:11px}
#enc-cuadrantes-322 .cd322-vacio,#enc-cuadrantes-322 .cd322-atenuado{color:#5d7584;font-size:13px}
#enc-cuadrantes-322 .cd322-rutas{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:9px}
#enc-cuadrantes-322 .cd322-resumen{border:1px solid #d2e0ea;background:white;border-radius:9px;padding:10px;display:grid;gap:6px;font-size:13px}
#enc-cuadrantes-322 .cd322-resumen button{justify-self:start}
#enc-cuadrantes-322 .cd322-edicion{margin:16px 0;padding:14px;border:2px solid #1a779e;background:white;border-radius:11px}
#enc-cuadrantes-322 .cd322-edicion[hidden]{display:none}
#enc-cuadrantes-322 .cd322-edicion>div{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:10px 0}
#enc-cuadrantes-322 .cd322-edicion label{display:grid;gap:5px;font-weight:650;font-size:13px}
#enc-cuadrantes-322 .cd322-edicion .guardar{background:#087344;border-color:#087344}
#enc-cuadrantes-322 .cd322-leyenda{font-size:12px;color:#586f7e}
@media(max-width:650px){#enc-cuadrantes-322{padding:10px}#enc-cuadrantes-322 .cd322-controles{align-items:stretch}#enc-cuadrantes-322 .cd322-controles label{width:100%}#enc-cuadrantes-322 .cd322-controles input{width:100%}}

#enc-cuadrantes-322 .cd322-sinruta{display:block;color:#687d89;font-size:12px;padding:5px 0}

/* PASO 323: cada ruta conserva su color en el cuadrante (diario y semanal). */
#enc-cuadrantes-322 .cd323-fila-ruta td{background:color-mix(in srgb,var(--cd323-color) 8%,white)!important}
#enc-cuadrantes-322 .cd323-fila-ruta td:first-child{border-left:7px solid var(--cd323-color);font-weight:750}
#enc-cuadrantes-322 .cd322-asignacion{border-left:6px solid var(--cd323-color,#1765a3);background:color-mix(in srgb,var(--cd323-color,#1765a3) 11%,white)}
#enc-cuadrantes-322 .cd322-resumen{border-left:7px solid var(--cd323-color,#1765a3);background:color-mix(in srgb,var(--cd323-color,#1765a3) 10%,white)}
#enc-cuadrantes-322 .cd322-resumen small{font-size:12px;line-height:1.4;color:#375061}
#enc-cuadrantes-322 .cd322-edicion{border-color:var(--cd323-color,#1a779e)}
#enc-cuadrantes-322 .cd322-sinruta{color:#66717a;background:#f4f5f6;border-radius:5px}

/* PASO 325: identidad de cada trabajador separada del color de la ruta. */
#enc-cuadrantes-322 .cp325-marca-personal{display:inline-flex;align-items:center;gap:6px;max-width:100%;font-weight:700;white-space:normal}
#enc-cuadrantes-322 .cp325-punto-personal{display:inline-block;width:15px;height:15px;min-width:15px;background:var(--cp325-color,#596876);border:1px solid #fff;border-radius:50%;box-shadow:0 0 0 1px var(--cp325-color,#596876)}
#enc-cuadrantes-322 .cp325-grupo-personal{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center}
