/* Eficiencia por usuario. Manual CTI: navy #0B1B4B, lima #C4E000, grises y Poppins. Sin semáforo:
   la urgencia o el estado se marcan con intensidad (navy sólido → gris) e íconos. */
.eu-page, .eu-sheet { --eu-navy: #0B1B4B; --eu-navy-2: #1f3e8c; --eu-lime: #C4E000; --eu-line: #e2e7f0; --eu-muted: #6b7a93; --eu-soft: #f3f5f9;
  font-family: "Poppins", system-ui, sans-serif; color: var(--eu-navy); }
.eu-page .ef-tabs { margin-bottom: 12px; }
.eu-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 4px 0 14px; }
.eu-seg { display: inline-flex; border: 1px solid var(--eu-navy); border-radius: 10px; overflow: hidden; }
.eu-seg button { border: 0; background: #fff; color: var(--eu-navy); font: inherit; font-size: 0.85rem; font-weight: 600; padding: 8px 14px; min-height: 40px; cursor: pointer; }
.eu-seg button + button { border-left: 1px solid var(--eu-line); }
.eu-seg button.is-on { background: var(--eu-navy); color: #fff; box-shadow: inset 0 -3px 0 var(--eu-lime); }
.eu-f { display: grid; gap: 2px; font-size: 0.72rem; color: var(--eu-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.eu-f select, .eu-f input { font: inherit; font-size: 0.86rem; text-transform: none; letter-spacing: 0; color: var(--eu-navy); min-height: 40px; padding: 6px 10px; border: 1px solid #c8d2e3; border-radius: 10px; background: #fff; min-width: 150px; }

.eu-warn { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; margin-bottom: 14px; border-radius: 12px; background: var(--eu-navy); color: #fff; }
.eu-warn p { margin: 2px 0 0; font-size: 0.84rem; color: #d7deee; }
.eu-warn a { color: var(--eu-lime); font-weight: 700; text-decoration: none; white-space: nowrap; }
.eu-warn-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--eu-lime); color: var(--eu-navy); font-weight: 800; }

.eu-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.eu-kpi { background: #fff; border: 1px solid var(--eu-line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.eu-kpi:first-child { background: var(--eu-navy); color: #fff; border-color: var(--eu-navy); }
.eu-kpi:first-child .eu-kpi-l, .eu-kpi:first-child small { color: #c9d3ea; }
.eu-kpi:first-child .eu-kpi-v { color: var(--eu-lime); }
.eu-kpi-l { font-size: 0.74rem; font-weight: 600; color: var(--eu-muted); }
.eu-kpi-v, .eu-kpi .eu-kpi-v { font-size: 1.7rem; font-weight: 700; line-height: 1.1; color: var(--eu-navy); text-decoration: none; text-align: left; padding: 0; justify-self: start; }
.eu-kpi small { font-size: 0.74rem; color: var(--eu-muted); }
.eu-info { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 5px; border-radius: 50%; border: 1px solid currentColor; font-size: 0.6rem; font-weight: 700; font-style: normal; opacity: 0.6; cursor: help; vertical-align: 1px; }

.eu-h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 6px 0 10px; }
.eu-h2 h2 { margin: 0; font-size: 1.05rem; }
.eu-h2 small { color: var(--eu-muted); font-size: 0.8rem; }
.eu-sortbar { margin-left: auto; display: none; align-items: center; gap: 6px; font-size: 0.8rem; }
.eu-sortbar select { font: inherit; min-height: 36px; border: 1px solid #c8d2e3; border-radius: 8px; padding: 4px 8px; }
.eu-dir { min-width: 36px; min-height: 36px; border: 1px solid var(--eu-navy); border-radius: 8px; background: #fff; color: var(--eu-navy); }

.eu-num { font: inherit; color: inherit; background: none; border: 0; padding: 2px 0; cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.eu-num:hover, .eu-num:focus-visible { text-decoration-color: var(--eu-lime); }
.eu-zero { color: #b5c0d3; }

.eu-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--eu-line); border-radius: 14px; }
.eu-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.eu-table th { position: sticky; top: 0; background: var(--eu-soft); text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--eu-muted); padding: 8px 7px; white-space: nowrap; border-bottom: 1px solid var(--eu-line); }
.eu-table th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.eu-table th button span { margin-left: 4px; opacity: 0.6; }
.eu-table th[aria-sort="ascending"], .eu-table th[aria-sort="descending"] { color: var(--eu-navy); box-shadow: inset 0 -3px 0 var(--eu-lime); }
.eu-table td { padding: 8px 7px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.eu-table .is-num { text-align: right; white-space: nowrap; }
.eu-table tr.is-sin_actividad td { color: #55637d; }
.eu-avg td { background: var(--eu-soft); font-weight: 600; font-size: 0.78rem; color: var(--eu-muted); }
.eu-c-who { display: grid; grid-template-columns: 26px auto; column-gap: 8px; align-items: center; min-width: 180px; }
.eu-table tbody tr:not(.eu-subrow) td { border-bottom: 0; padding-bottom: 4px; }
.eu-subrow td { padding-top: 0; }
.eu-chips-l { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--eu-muted); align-self: center; margin-right: 2px; }
.eu-table td > .eu-span { display: block; margin-top: 2px; font-size: 0.7rem; color: var(--eu-muted); }
.eu-c-who .eu-live { grid-column: 2; }
.eu-rank { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.74rem; font-weight: 700; background: var(--eu-soft); color: var(--eu-muted); }
.eu-rank.is-top { background: var(--eu-navy); color: var(--eu-lime); }
.eu-who { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.eu-who b { display: block; white-space: nowrap; }
.eu-who small { display: block; font-size: 0.7rem; color: var(--eu-muted); text-transform: capitalize; }
.eu-who:hover b { text-decoration: underline; text-decoration-color: var(--eu-lime); text-underline-offset: 3px; }
.eu-av { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--eu-navy); color: var(--eu-lime); display: grid; place-items: center; font-weight: 700; font-size: 0.78rem; }
.eu-live { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 0.72rem; margin-top: 3px; }
.eu-st { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.eu-st i { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #9aa7bf; box-sizing: border-box; }
.eu-st.is-activo i { background: var(--eu-lime); border-color: var(--eu-navy); }
.eu-st.is-inactivo i { background: #fff; border-color: var(--eu-navy); }
.eu-st.is-sin_actividad { color: var(--eu-muted); font-weight: 600; }
.eu-cur { color: var(--eu-muted); max-width: 165px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eu-cur a { color: var(--eu-navy-2); }

.eu-vs { position: relative; display: block; width: 54px; height: 5px; margin: 3px 0 0 auto; border-radius: 999px; background: #e9eef6; }
.eu-vs i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: #8a97b8; }
.eu-vs.is-up i { background: var(--eu-navy); }
.eu-vs b { position: absolute; left: 50%; top: -3px; width: 2px; height: 11px; background: var(--eu-lime); }
.eu-vs.is-none { background: transparent; }

.eu-time { display: grid; gap: 2px; min-width: 104px; font-size: 0.8rem; }
.eu-time small { color: var(--eu-muted); font-size: 0.72rem; }
.eu-timebar { display: block; height: 6px; border-radius: 999px; background: #dfe4f0; overflow: hidden; }
.eu-timebar i { display: block; height: 100%; background: var(--eu-navy); }
.eu-span { white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 0.8rem; }
.eu-span small { margin: 0 3px; color: var(--eu-muted); }
.eu-inc { color: var(--eu-navy); }

.eu-spark { display: flex; align-items: flex-end; gap: 2px; height: 30px; min-width: 84px; }
.eu-spark > * { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; padding: 0; border: 0; background: none; min-width: 4px; cursor: default; }
.eu-spark > button { cursor: pointer; }
.eu-spark i { display: block; width: 100%; height: 2px; border-radius: 2px 2px 0 0; background: #dfe4f0; }
.eu-spark button i { background: var(--eu-navy); }
.eu-spark button:hover i { background: var(--eu-lime); }

.eu-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.eu-chip { font-size: 0.72rem; font-weight: 500; text-decoration: none; padding: 3px 7px; border-radius: 999px; background: var(--eu-soft); border: 1px solid var(--eu-line); white-space: nowrap; }
.eu-chip b { font-weight: 700; margin-right: 2px; }
.eu-chip small { color: var(--eu-muted); margin-left: 1px; }
.eu-chip:hover { border-color: var(--eu-navy); }

.eu-cards { display: none; gap: 10px; }
.eu-card { background: #fff; border: 1px solid var(--eu-line); border-left: 4px solid #c8d2e3; border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.eu-card.is-activo { border-left-color: var(--eu-navy); }
.eu-card header { display: flex; align-items: center; gap: 8px; }
.eu-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.eu-kv div { background: var(--eu-soft); border-radius: 8px; padding: 6px 8px; }
.eu-kv dt { font-size: 0.66rem; color: var(--eu-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.eu-kv dd { margin: 0; font-size: 1rem; font-weight: 700; }
.eu-kv dd .eu-vs { margin: 3px 0 0; width: 100%; }
.eu-card-row { display: flex; justify-content: space-between; gap: 10px; align-items: end; }
.eu-card .eu-num, .eu-card .eu-chip { min-height: 32px; }

.eu-empty { padding: 18px; border: 1px dashed #c8d2e3; border-radius: 12px; color: var(--eu-muted); background: #fff; }
.eu-pending { margin-top: 22px; }
.eu-pending > summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 6px 0; }
.eu-pending .pd-h2 { display: none; }

.eu-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(11, 27, 75, 0.45); display: flex; justify-content: flex-end; }
.eu-sheet[hidden] { display: none; }
.eu-panel { width: min(560px, 100%); height: 100%; overflow-y: auto; background: #fff; padding: 18px 20px 28px; display: grid; align-content: start; gap: 12px; font-family: "Poppins", system-ui, sans-serif; color: #0B1B4B; }
.eu-panel-head { display: grid; grid-template-columns: 44px 1fr 36px; gap: 10px; align-items: center; }
.eu-panel-head .eu-av { width: 44px; height: 44px; }
.eu-panel-head h2 { margin: 0; font-size: 1.2rem; }
.eu-kicker { margin: 0; font-size: 0.72rem; color: #6b7a93; }
.eu-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #c8d2e3; background: #fff; cursor: pointer; }
.eu-panel .eu-spark { height: 46px; }
.eu-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e2e7f0; }
.eu-tabs button { font: inherit; font-size: 0.84rem; font-weight: 600; border: 0; background: none; padding: 8px 10px; color: #6b7a93; cursor: pointer; min-height: 40px; }
.eu-tabs button[aria-selected="true"] { color: #0B1B4B; box-shadow: inset 0 -3px 0 #C4E000; }
.eu-tl { list-style: none; margin: 0; padding: 0; }
.eu-tl li { display: grid; grid-template-columns: 50px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef1f6; font-size: 0.82rem; }
.eu-tl time { font-weight: 700; font-variant-numeric: tabular-nums; }
.eu-tl span { color: #6b7a93; }
.eu-tl p { margin: 2px 0 0; color: #55637d; }
.eu-tl a { color: #1f3e8c; font-weight: 600; }

/* En vivo (pestaña secundaria): sin ámbar, por intensidad. */
.ef-card.is-inactivo { border-left-color: #7d8bb0; }
.is-inactivo .ef-status i { background: #fff; border: 2px solid #0B1B4B; box-sizing: border-box; }
.ef-card.is-activo { border-left-color: #0B1B4B; }

@media (max-width: 1100px) {
  .eu-table-wrap { display: none; }
  .eu-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .eu-sortbar { display: flex; }
}
@media (max-width: 640px) {
  .eu-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .eu-kpi-v, .eu-kpi .eu-kpi-v { font-size: 1.35rem; }
  .eu-cards { grid-template-columns: 1fr; }
  .eu-filters { gap: 8px; }
  .eu-seg { width: 100%; }
  .eu-seg button { flex: 1; padding: 8px 4px; }
  .eu-f { flex: 1 1 140px; }
  .eu-f select, .eu-f input { min-width: 0; width: 100%; }
  .eu-warn { grid-template-columns: 28px 1fr; }
  .eu-warn a { grid-column: 2; }
  .eu-sortbar { margin-left: 0; width: 100%; }
  .eu-sortbar select { flex: 1; }
}

/* Pendientes compacto (abajo de la tabla): columnas más angostas para que dos tarjetas quepan en 1280. */
@media (min-width: 721px) {
  .eu-pending .pd-row { grid-template-columns: max-content minmax(64px, 1fr) minmax(70px, 1fr) 48px 58px; }
}
.eu-pending .pd-card { min-width: 0; overflow: hidden; }
.eu-time .eu-num { justify-self: start; }

/* 111 · Preparación Fulfillment (navy, lima, blanco y gris del logo; sin semáforo ni degradados). */
.eu-prep-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 10px 0 12px; }
.eu-prep-kpi { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--eu-navy); }
.eu-prep-kpi:first-child { background: var(--eu-navy); color: #fff; }
.eu-prep-kpi:first-child .eu-num { color: var(--eu-lime); }
.eu-prep-kpi span { font-size: 0.74rem; font-weight: 600; }
.eu-prep-kpi b { font-size: 1.5rem; line-height: 1.1; }
.eu-prep-kpi small { font-size: 0.72rem; color: var(--eu-muted); }
.eu-prep-kpi:first-child small { color: #fff; }
@media (max-width: 760px) { .eu-prep-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Franja activo / ocioso: navy = activo, gris claro = ocioso. Sin degradados ni semáforo. */
.eu-franja { min-width: 180px; gap: 3px; }
.eu-franja-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-size: 0.78rem; color: var(--eu-navy); }
.eu-franja-head .eu-num { font-weight: 700; }
.eu-k-idle b { font-weight: 700; color: #5b6478; }
.eu-k-pct { margin-left: auto; font-weight: 700; }
.eu-franja-bar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: #dfe4f0; }
.eu-seg { flex: 0 1 0; min-width: 1px; height: 100%; padding: 0; border: 0; border-radius: 0; }
.eu-seg.is-act { background: var(--eu-navy); cursor: pointer; }
.eu-seg.is-act:hover, .eu-seg.is-act:focus-visible { background: var(--eu-lime); outline: none; }
.eu-seg.is-idle { background: #dfe4f0; }
.eu-franja-axis { display: flex; justify-content: space-between; gap: 6px; font-size: 0.68rem; color: var(--eu-muted); }
.eu-franja-ley i { display: inline-block; width: 8px; height: 8px; margin: 0 2px 0 6px; border-radius: 2px; vertical-align: -1px; }
.eu-franja-ley i.is-act { background: var(--eu-navy); }
.eu-franja-ley i.is-idle { background: #dfe4f0; }
.eu-seg.is-none { background: #f1f3f8; }
.eu-franja-ley i.is-none { background: #f1f3f8; border: 1px solid #dfe4f0; }
/* 158: comida — gris claro distinto (no es jornada ni ocioso). */
.eu-seg.is-lunch { background: #d4d6da; }
.eu-franja-ley i.is-lunch { background: #d4d6da; }
.eu-k-lunch { color: var(--eu-muted); }
.eu-franja-src { font-size: 0.68rem; color: var(--eu-muted); }
.eu-sp-sum { margin: 0 0 8px; font-weight: 600; color: var(--eu-navy); }
.eu-card-row .eu-franja { flex: 1 1 100%; }
.eu-card-row { flex-wrap: wrap; }

/* «Incluye en curso»: la cifra suma escaneos de tareas que aún no tienen «fin». Solo navy y lima. */
.eu-wip, .eu-chip-live, .ef-wip-tag { display: inline-block; font-size: 0.66rem; font-weight: 700; font-style: normal; line-height: 1.2; letter-spacing: 0.02em; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--eu-navy, #0B1B4B); background: var(--eu-lime, #C4E000); color: var(--eu-navy, #0B1B4B); white-space: nowrap; }
.eu-wip-dot { display: inline-block; width: 8px; height: 8px; margin-left: 4px; vertical-align: middle; border-radius: 2px; border: 1.5px solid var(--eu-navy, #0B1B4B); background: var(--eu-lime, #C4E000); box-sizing: border-box; }

