/* OLIMPO Agents · Daniela 01/11/2026 · #605 / #606: adjuntos de color, «Para: agente», columna de agentes a pie de ventana + logo, modo día claro,
   tarjetas de entrega (tipo, miniaturas, desplegable), ficha de orden legible. Hoja aditiva al FINAL de la cascada. Montserrat siempre. */

/* ============ 1) ADJUNTOS = fichas de color (no se pierden en el morado) ============ */
html body .adj-chip{display:inline-flex;align-items:center;gap:10px;max-width:100%;min-width:0;padding:6px 6px 6px 6px;border-radius:14px;border:2px solid var(--ac,#F05613);background:var(--af,#FFF0E5);color:var(--at,#4A1A04);font:inherit;font-size:.78rem;text-align:left;text-decoration:none;box-shadow:0 2px 10px rgba(0,0,0,.25)}
html body .adj-chip.adj-enl{--ac:#2F9BFF;--af:#E4F2FF;--at:#0B2B4A;--ai:#0B6BC9}
html body .adj-chip.adj-img{--ac:#F05613;--af:#FFF0E5;--at:#4A1A04;--ai:#C2410C}
html body .adj-chip.adj-arc{--ac:#0FA968;--af:#E5F8EE;--at:#06382A;--ai:#067A4D}
html body .adj-chip.err{--ac:#E5242B;--af:#FFE9EA;--at:#5C0A0E;--ai:#B3151B}
html body .adj-chip.sube{opacity:.78}
html body .adj-chip .adj-ic{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.8);color:var(--ai)}
html body .adj-chip .adj-ic svg{width:20px;height:20px}
html body .adj-chip .adj-th{flex:none;width:52px;height:52px;border-radius:10px;border:2px solid #fff;object-fit:cover;background:#fff}
html body .adj-chip .adj-n{display:grid;gap:1px;min-width:0;line-height:1.2}
html body .adj-chip .adj-n b{font-size:.6rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ai);font-weight:800}
html body .adj-chip .adj-n i{font-style:normal;font-weight:700;font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(260px,52vw);color:var(--at)}
html body .adj-chip .adj-n small{font-size:.68rem;opacity:.78;color:var(--at);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(260px,52vw)}
html body .adj-chip>b{display:none}
html body .adj-chip .adj-x,html body .adj-chip .adj-xt{flex:none;width:30px;height:30px;min-width:30px;border-radius:50%;border:0;background:rgba(0,0,0,.14);color:var(--at);font-size:1.15rem;line-height:1;display:grid;place-items:center;padding:0}
html body .adj-chip .adj-x:hover,html body .adj-chip .adj-xt:hover{background:rgba(0,0,0,.28)}
html body button.adj-chip,html body a.adj-chip{cursor:pointer}
html body button.adj-chip.oa-f:not(.tiene){cursor:default}
html body #adj-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:2px 0 6px}
html body .adj-cuenta{flex:none;align-self:center;padding:3px 10px;border-radius:99px;background:#F05613;color:#fff;font-size:.66rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
/* la caja se marca mientras lleve adjuntos */
html body #caja.con-adj{border-color:#F05613!important;box-shadow:0 0 0 2px #F05613,0 0 28px rgba(240,86,19,.45)!important}
/* fichas dentro de la ficha de la orden */
.of-adjs{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.of-adjs .adj-chip{box-shadow:none}

/* ============ 2) CAJA: «Para: agente» + «Todos» ============ */
html body .para-box{position:relative;display:flex;align-items:center;gap:6px;min-width:0;width:100%}
html body .para-box>select{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;z-index:2;padding:0}
html body .para-vis{flex:1;min-width:0;display:flex;align-items:center;gap:8px;min-height:44px;padding:5px 10px 5px 8px;border-radius:12px;border:1px solid var(--borde);background:var(--tarj2);color:var(--texto);pointer-events:none}
html body .para-vis .pv-av{flex:none;width:30px;height:30px;border-radius:50%;overflow:hidden;display:grid;place-items:center}
html body .para-vis .pv-av>*{max-width:100%;max-height:100%}
html body .para-vis .pv-grp{background:var(--borde);color:var(--naranja)}
html body .para-vis .pv-grp svg{width:18px;height:18px}
html body .para-vis .pv-t{display:grid;min-width:0;line-height:1.15;flex:1}
html body .para-vis .pv-t small{font-size:.6rem;letter-spacing:.12em;text-transform:uppercase;color:var(--suave);font-weight:700}
html body .para-vis .pv-t b{font-size:.86rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .para-vis .pv-ch{flex:none;width:16px;height:16px;color:var(--suave)}
html body .para-vis .pv-ch svg{width:16px;height:16px}
html body .para-box.dir .para-vis{border-color:#F05613;box-shadow:0 0 0 1px #F05613,0 0 14px rgba(240,86,19,.3)}
html body .para-box.dir .pv-t small{color:#F05613}
html body .para-todos{position:relative;z-index:3;flex:none;min-height:34px;padding:0 12px;border-radius:99px;border:1px solid var(--naranja);background:var(--naranja);color:#fff;font-weight:800;font-size:.74rem;white-space:nowrap}
html body .para-todos:hover{filter:brightness(1.08)}
html body .para-todos[hidden]{display:none}
@media(min-width:901px){html body .caja{grid-template-columns:minmax(210px,252px) minmax(0,1fr) auto auto auto}}

/* ============ 3) COLUMNA DE AGENTES: hasta el borde de abajo + logo ============ */
@media(min-width:901px){
  html body .consola{--cp:14px}
  html body .agentes{max-height:none!important;height:auto;align-self:stretch;min-height:0!important;display:flex!important;flex-direction:column;overflow-x:hidden;overflow-y:auto;
    margin:0 0 calc(-1 * var(--cp)) calc(-1 * var(--cp));border-radius:0 18px 0 0;border-left:0;border-bottom:0;padding-left:calc(var(--cp) + 12px)!important;padding-bottom:0!important}
  html body .agentes>*{flex:none}
  html body.izq-plegada .agentes{padding-left:calc(var(--cp) + 6px)!important}
  html body .agentes .ag-logo{margin-top:auto;position:sticky;bottom:0;z-index:4;display:flex;align-items:center;gap:10px;padding:12px 4px 12px 2px;background:var(--tarj);border-top:1px solid var(--borde)}
  html body .agentes .ag-logo img{width:30px;height:30px;border-radius:8px;object-fit:contain;flex:none}
  html body .agentes .ag-logo span{display:grid;line-height:1.1}
  html body .agentes .ag-logo b{font-size:.84rem;letter-spacing:.06em;font-weight:800;color:var(--texto)}
  html body .agentes .ag-logo small{font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:var(--naranja);font-weight:700}
  html body.izq-plegada .agentes .ag-logo{justify-content:center;padding:10px 0;margin-left:-6px}
  html body.izq-plegada .agentes .ag-logo span{display:none}
}
@media(min-width:901px) and (max-width:1440px),(min-width:901px) and (max-height:760px){html body .consola{--cp:8px}}
@media(max-width:900px){html body .agentes .ag-logo{display:none}}

/* ============ 4) MODO DÍA: claro de verdad (blanco / gris muy claro, acentos morado y naranja) ============ */
html[data-theme="dia"],html[data-theme="dia"] body{background:#F5F6FA!important}
html:root[data-theme="dia"]{--fondo:#F5F6FA;--tarj:#FFFFFF;--tarj2:#F2F0F8;--borde:#E1DDEC;--escena:#FAFAFD;--texto:#1B1630;--suave:#5B5675;--oz-bg:#F5F6FA;--punto:rgba(138,63,209,.12)}
html[data-theme="dia"] .agentes,html[data-theme="dia"] .caja,html[data-theme="dia"] .escena{background:#fff}
html[data-theme="dia"] .agentes .ag-logo{background:#fff}

/* ============ 5) TARJETAS DE ENTREGA ============ */
.dn-ti{background:var(--c)!important;color:#fff}
.dn-ti svg{width:19px;height:19px;stroke:#fff;fill:none}
.dn-x{display:grid;gap:8px;margin-top:8px;min-width:0;max-width:100%;cursor:default}
.dn-tipos{display:flex;flex-wrap:wrap;gap:6px}
.dn-t{display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 8px;border-radius:99px;font-size:.7rem;font-weight:800;letter-spacing:.02em;background:color-mix(in srgb,var(--tc) 18%,transparent);color:color-mix(in srgb,var(--tc) 72%,var(--texto));border:1px solid color-mix(in srgb,var(--tc) 55%,transparent)}
.dn-t svg{width:14px;height:14px;flex:none}
.dn-min{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.dn-th{position:relative;width:54px;height:54px;padding:0;border-radius:10px;overflow:hidden;border:1px solid var(--borde);background:var(--tarj);display:grid;place-items:center;color:var(--suave);cursor:pointer}
.dn-th img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.dn-th img[hidden]{display:none}
.dn-th .dn-fb svg{width:22px;height:22px}
.dn-th.ok .dn-fb{display:none}
.dn-th.k-video::after{content:"";position:absolute;right:4px;bottom:4px;width:16px;height:16px;border-radius:50%;background:rgba(0,0,0,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23fff'/%3E%3C/svg%3E") center/12px no-repeat}
.dn-th:hover{border-color:var(--naranja)}
.dn-mas{display:grid;place-items:center;min-width:34px;height:54px;padding:0 6px;border-radius:10px;background:var(--tarj2);border:1px dashed var(--borde);font-size:.74rem;font-weight:800;color:var(--suave)}
.dn-det{border:1px solid var(--borde);border-radius:10px;background:var(--tarj)}
.dn-det>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:34px;padding:0 10px;font-size:.74rem;font-weight:800;color:var(--naranja)}
.dn-det>summary::-webkit-details-marker{display:none}
.dn-det>summary::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-3px;transition:transform .15s}
.dn-det[open]>summary::after{transform:rotate(-135deg);margin-top:3px}
.dn-s2{display:none}.dn-det[open] .dn-s1{display:none}.dn-det[open] .dn-s2{display:inline}
.dn-cuerpo{display:grid;gap:10px;padding:2px 10px 12px;min-width:0}
.dn-quien{display:flex;gap:10px;align-items:center;min-width:0}
.dn-av{flex:none;width:30px;height:30px;border-radius:50%;overflow:hidden;display:grid;place-items:center}
.dn-quien b{display:block;font-size:.78rem}.dn-quien small{color:var(--suave);font-size:.7rem}
.dn-res small,.dn-arch small{display:block;font-size:.62rem;letter-spacing:.12em;text-transform:uppercase;color:var(--suave);font-weight:800;margin-bottom:3px}
.dn-res p{margin:0 0 6px;font-size:.78rem;line-height:1.5;overflow-wrap:anywhere;white-space:normal}.dn-res p.dn-v{color:var(--suave)}
.dn-b{min-height:34px;padding:0 12px;border-radius:10px;border:1px solid var(--naranja);background:transparent;color:var(--naranja);font-weight:800;font-size:.74rem}
.dn-b:hover{background:var(--naranja);color:#fff}
.dn-arch ul{list-style:none;margin:0;padding:0;display:grid;gap:5px}
.dn-arch li button{width:100%;display:flex;align-items:center;gap:8px;min-height:36px;padding:3px 8px 3px 4px;border-radius:9px;border:1px solid var(--borde);background:var(--tarj2);text-align:left;font-size:.74rem}
.dn-arch li button:hover{border-color:var(--naranja)}
.dn-fi{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:color-mix(in srgb,var(--tc) 22%,transparent);color:color-mix(in srgb,var(--tc) 75%,var(--texto))}
.dn-fi svg{width:16px;height:16px}
.dn-fn{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
.dn-arch li small{display:inline;margin:0;font-size:.66rem;letter-spacing:0;text-transform:none;font-weight:600;flex:none}
.dn-adjs{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.dn-adjs .adj-chip{padding:3px 8px 3px 4px;gap:6px;border-width:1px;box-shadow:none}
.dn-adjs .adj-chip .adj-ic{width:24px;height:24px;border-radius:7px}.dn-adjs .adj-chip .adj-ic svg{width:14px;height:14px}
.dn-adjs .adj-chip .adj-th{width:30px;height:30px;border-width:1px}
.dn-adjs .adj-chip .adj-n b{display:none}.dn-adjs .adj-chip .adj-n i{font-size:.7rem;max-width:150px}
/* en la Historia la tarjeta crece hacia abajo */
html body .orden-item.dn-on{flex-wrap:wrap;align-items:flex-start}
html body .orden-item.dn-on>.dn-x,html body .orden-item.dn-on>.dn-adjs{flex:1 1 100%;order:9}
html body .orden-item.dn-on>.ctl{order:8}
.hoy-ord.dn-card>div{min-width:0}

/* ============ 6) «ESTÁ PASANDO»: iconos de las acciones en vivo ============ */
html body .hy-t p .hy-ic{display:inline-grid;place-items:center;width:24px;height:24px;margin-right:8px;border-radius:8px;vertical-align:middle;background:rgba(24,178,107,.16);color:#18B26B;animation:dnPulso 1.8s ease-in-out infinite}
html body .hy-t p .hy-ic svg{width:15px;height:15px}
html body .hy-ag.esp .hy-ic{background:rgba(244,197,66,.2);color:#C79A10;animation:none}
@keyframes dnPulso{0%,100%{box-shadow:0 0 0 0 rgba(24,178,107,.45)}50%{box-shadow:0 0 0 5px rgba(24,178,107,0)}}
@media(prefers-reduced-motion:reduce){html body .hy-t p .hy-ic{animation:none}}
.hy-rastro{display:flex;gap:5px;margin:4px 0 2px;flex-wrap:wrap}
.hy-ri{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:var(--tarj2);border:1px solid var(--borde);color:var(--suave)}
.hy-ri svg{width:13px;height:13px}
.fa-e{display:flex;align-items:center;gap:8px}
.fa-ei{flex:none;display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:var(--tarj);border:1px solid var(--borde);color:var(--naranja);font-style:normal}
.fa-ei svg{width:13px;height:13px}
.fa-e>span:not(.fa-ei){flex:1;min-width:0;overflow-wrap:anywhere}

/* ============ 7) FICHA DE ORDEN (#606): resultado entero o con «Ver más», proceso plegado ============ */
html body .of-md.mini{display:block;overflow:visible;max-height:none}
.of-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:7;line-clamp:7;overflow:hidden}
.of-clamp>:first-child{margin-top:0}.of-clamp>:last-child{margin-bottom:0}
.of-res{display:grid;gap:8px}
.of-resb{display:inline-flex;gap:8px;flex-wrap:wrap;margin-left:auto;font-weight:600}
.of-res>.of-resb{margin-left:0}
.of-s h3:has(>.of-resb){flex-wrap:wrap}
.of-resb .of-b{min-height:36px;display:inline-flex;align-items:center;gap:6px;padding:0 12px;font-size:.78rem}
.of-resb .of-b svg{width:16px;height:16px}
.of-pasos,.of-log{border:1px solid var(--borde);border-radius:12px;background:var(--tarj2)}
.of-pasos>summary,.of-log>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:46px;padding:8px 14px}
.of-pasos>summary::-webkit-details-marker,.of-log>summary::-webkit-details-marker{display:none}
.of-pt,.of-lg-t{font-size:.95rem;font-weight:800}
.of-pr,.of-log>summary>small{color:var(--suave);font-size:.78rem;font-weight:600}
.of-log>summary>small{padding:0;background:none}
.of-pv{margin-left:auto;display:inline-flex;align-items:center;gap:8px;color:var(--naranja);font-size:.78rem;font-weight:800}
.of-pv::after{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-top:-3px;transition:transform .15s}
details[open]>summary .of-pv::after{transform:rotate(-135deg);margin-top:3px}
.pv-b{display:none}details[open]>summary .pv-a{display:none}details[open]>summary .pv-b{display:inline}
.of-pasos>.of-lin{margin:0 14px 12px}
/* lector a pantalla completa */
.olr-caja{background:var(--fondo)}
.olr-cuerpo{flex:1;min-height:0;overflow:auto;padding:26px 16px 56px}
.olr-pag{max-width:860px;margin:0 auto}
.olr-cab{display:flex;gap:14px;align-items:center;margin-bottom:18px;min-width:0}
.olr-cab>div{min-width:0}
.olr-cab small{color:var(--naranja);font-weight:800;letter-spacing:.08em;text-transform:uppercase;font-size:.72rem}
.olr-cab h2{font-size:1.2rem;line-height:1.35;margin:4px 0 0;overflow-wrap:anywhere}
.olr-md{font-size:1.06rem!important;line-height:1.75!important;padding:22px 26px!important}
@media(max-width:600px){.olr-md{padding:16px!important}.olr-cuerpo{padding:16px 10px 40px}}

/* ============ 8) #607: «Hoy» sin cabecera grande; fecha en la pestaña y píldora en «Tareas» ============ */
html body #hoy .hoy-cab{display:none!important}
.dn-fecha{font-weight:700;opacity:.85;margin-left:2px;white-space:nowrap}
.dn-pill{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:6px;border-radius:99px;background:#F05613;color:#fff;font-style:normal;font-size:.68rem;font-weight:800;line-height:1}
.dn-pill[hidden]{display:none}
html body #olr{padding:0!important;overflow:hidden!important;place-items:stretch}
html body #olr .olr-caja{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;border:0}
html body .olr-cab h2{text-transform:none;letter-spacing:0;font-weight:800;font-size:1.2rem}
html body .olr-cab small{letter-spacing:.08em}
.dn-arch,.dn-res,.dn-quien{min-width:0}
.dn-arch ul{grid-template-columns:minmax(0,1fr)}
.dn-arch li{min-width:0}
.dn-arch li button{min-width:0;overflow:hidden}
.dn-det{min-width:0}
.dn-quien>div{min-width:0}.dn-quien small{display:block;overflow-wrap:anywhere}
/* 01/11 #626: botones del resultado en la ficha, de 44 px */
.of-resb .of-b{min-height:44px}
