/* Gestión de equipo, lote 2, grupo B (02/12/2026): expediente, documentos y personas. Solo colores de marca: azul noche #0B1B33,
   fondo noche #061429, azul eléctrico #0D8EF2, azul intenso #0B64F0, cian radar #17B8F6, brillo #6FE0FF, blanco hielo #F4F8FF,
   pizarra #607089, niebla #E3EAF5 y nube #F5F8FC (el amarillo #F2C14E solo en el siguiente paso, en la hoja del lote 0).
   Sin animaciones nuevas: solo el giro corto de la flecha del árbol, que con movimiento reducido no se mueve. */

/* ---------- Hallazgo 32 ---------- */
/* Carpeta en azul (antes amarillo) */
.co-page .co-kf-i,.co-page form.co-drop [data-knew-subir] .co-kf-i{color:var(--c-pri)}
.co-page .co-kfic{background:var(--c-soft)}
/* La prioridad alta en azul noche la pone el grupo A en la hoja del módulo (var(--c-ink), que en oscuro se aclara) */
/* En el expediente, el siguiente paso es el único botón con relleno (amarillo); los demás, sin relleno */
html .co-shell.co-page .co-expv button.co-primary:not(.co-siguiente):not(.ot-notes *){background:transparent;border-color:var(--c-pline);color:var(--c-link);box-shadow:none}
html .co-shell.co-page .co-expv button.co-primary:not(.co-siguiente):not(.ot-notes *):hover:not(:disabled){background:var(--c-soft);border-color:var(--c-pri);transform:none;box-shadow:none}

/* ---------- Hallazgo 39: historial del expediente ---------- */
.co-page .co-tl-det{font-size:12px;color:var(--c-muted);justify-self:end;text-align:right}
.co-page .co-tl-det summary{cursor:pointer;color:var(--c-muted);font:600 12px/1.4 var(--c-font);list-style:none;padding:2px 4px;border-radius:6px}
.co-page .co-tl-det summary::-webkit-details-marker{display:none}
.co-page .co-tl-det summary:hover{color:var(--c-link)}
.co-page .co-tl-det[open] summary{color:var(--c-ink)}
.co-page .co-tl-det code{font-size:12px;color:var(--c-muted)}

/* ---------- Hallazgo 45: aviso de lista cortada (Memorias) y tope de Archivos ---------- */
.co-page .co-kaviso{margin:0;padding:10px 18px;font-size:13px;color:var(--c-muted);border-top:1px solid var(--c-line2)}
.co-page .co-kaviso[hidden]{display:none}

/* ---------- Hallazgo 9 y 42: Personas y permisos ---------- */
.co-page .co-pp-row{grid-template-columns:44px minmax(0,1fr) 150px 170px 170px 130px}
.co-page .co-pp-row>.co-when{white-space:normal}
.co-page .co-pp-m{display:none!important}
.co-page .co-pp-papel{color:var(--c-ink)}
.co-page .co-pp-puesto{display:flex;align-items:center;gap:2px;min-width:0}
.co-page .co-pp-puesto>span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.co-shell.co-page .co-pp-puesto button.co-icon-btn{width:30px;min-width:30px;height:30px;min-height:30px}
.co-page .co-pp-q{margin-top:4px;font-size:13px;font-weight:500}
.co-page .co-pp-q summary{cursor:pointer;color:var(--c-link);font-weight:600;width:fit-content}
.co-page .co-pp-q p{margin:4px 0 0;color:var(--c-muted);font-weight:500;line-height:1.45}
.co-page .co-pp-leyenda{border-top:1px solid var(--c-line2);padding:12px 18px}
.co-page .co-pp-leyenda summary{cursor:pointer;color:var(--c-link);font:600 13px/1.4 var(--c-font);width:fit-content}
.co-page .co-pp-leyenda dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px 22px;margin:12px 0 8px}
.co-page .co-pp-leyenda dt{font:700 13px/1.3 var(--c-font);color:var(--c-ink)}
.co-page .co-pp-leyenda dd{margin:2px 0 0;font-size:13px;line-height:1.45;color:var(--c-muted)}
.co-page .co-pp-leyenda p{margin:0}
@media(max-width:760px){
  .co-page .co-pp-row{grid-template-columns:minmax(0,1fr)}
  .co-page .co-pp-row>.co-av,.co-page .co-pp-row>.co-when{display:none}
  .co-page .co-pp-m{display:block!important}
}

/* ---------- Grupo de chat: buscador de licitación (39) ---------- */
.co-page .co-group-form .co-field{width:100%}

/* ---------- Archivos como base documental (BD2, BD3, BD1, BD4) ---------- */
/* Barra de la ruta: primera línea con la ruta (o los resultados) y segunda con el buscador y los filtros */
.co-page .co-kcrumbs{display:block;padding:10px 14px}
.co-page .co-kl1{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:34px}
.co-page .co-kl1>.co-end{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.co-page .co-kfiltros{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.co-page .co-kfiltros-b{margin-top:0;flex:1;min-width:0}
.co-shell.co-page .co-kfiltros .co-kbusca{flex:1 1 260px;max-width:none;min-width:200px;padding-right:4px}
.co-page .co-kbusca input::-webkit-search-cancel-button{display:none}
.co-shell.co-page .co-kbusca button.co-kborrar{width:30px;min-width:30px;height:30px;min-height:30px}
.co-shell.co-page .co-kbusca button.co-kborrar[hidden]{display:none}
.co-page .co-kres{font:600 14px/1.3 var(--c-font);color:var(--c-ink);gap:10px}
.co-page .co-kres-b{padding:0}
.co-page .co-kres-b[hidden]{display:none}
.co-page .co-knew-m{display:none!important}
/* Fila: temática bajo el nombre, carpeta del resultado y quién lo subió bajo la fecha */
.co-page .co-file-row .co-t>strong{display:block}
.co-page .co-ktl{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;margin-top:2px}
.co-page .co-ktl:empty{display:none}
.co-shell.co-page button.co-ktema:not(.ot-notes *),.co-shell.co-page button.co-kubic:not(.ot-notes *){min-height:28px;padding:0 6px;margin-left:-6px;font-size:12.5px;font-weight:600;color:var(--c-muted)}
.co-shell.co-page button.co-ktema:not(.ot-notes *):hover,.co-shell.co-page button.co-kubic:not(.ot-notes *):hover{color:var(--c-link)}
.co-page .co-ktema .co-i,.co-page .co-ktema-t .co-i{width:14px;height:14px}
.co-page .co-ktema-t{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;color:var(--c-muted)}
.co-page span.co-kubic{font-size:12.5px;font-weight:600;color:var(--c-muted)}
.co-page .co-ktema-w .co-menu{width:260px}
.co-page .co-menu button[aria-current=true]{color:var(--c-pri)}
.co-page .co-ksubido small{display:block;margin-top:2px;font-size:12px;font-weight:500;color:var(--c-muted);overflow:hidden;text-overflow:ellipsis}
.co-shell.co-page .co-field.co-ktema-sub{width:auto}
/* Árbol de carpetas */
.co-page .co-ktree-w{position:sticky;top:12px;align-self:start;min-width:0}
.co-page .co-ktree-w .co-ktree{position:static}
.co-shell.co-page button.co-ktoggle:not(.ot-notes *){display:none}
.co-page .co-karbol,.co-page .co-ksubl{list-style:none;margin:0;padding:0}
.co-page .co-ksubl{padding-left:14px}
.co-page .co-kfila{display:flex;align-items:center;gap:0;min-width:0}
.co-shell.co-page .co-ktree .co-kfila .co-knode{flex:1;min-width:0;padding:0 8px 0 4px}
.co-shell.co-page button.co-kexp:not(.ot-notes *){width:28px;min-width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:8px;background:none;color:var(--c-muted);flex:none}
.co-shell.co-page button.co-kexp:not(.ot-notes *):hover{background:var(--c-hover);color:var(--c-ink)}
.co-page .co-kexp-i{transition:transform .15s ease}
.co-page .co-kexp[aria-expanded=true] .co-kexp-i{transform:rotate(90deg)}
.co-page .co-kexp-sp{width:28px;flex:none}
.co-shell.co-page button.co-kfile:not(.ot-notes *){display:flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;min-height:32px;padding:0 8px 0 32px;border:0;border-radius:9px;background:none;color:var(--c-ink);font:500 13px/1.3 var(--c-font);text-align:left;cursor:pointer}
.co-shell.co-page button.co-kfile:not(.ot-notes *):hover{background:var(--c-hover)}
.co-page .co-kfile .co-i{width:15px;height:15px;color:var(--c-muted)}
.co-page .co-kfile span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.co-page .co-kvacio{padding:4px 8px 6px 32px;font-size:12.5px;color:var(--c-muted)}
.co-shell.co-page .co-ktree button.co-kmas:not(.ot-notes *){margin-left:26px;font-size:12.5px}
.co-page .co-ksuelto .co-i{color:var(--c-muted)}
@media(prefers-reduced-motion:reduce){.co-page .co-kexp-i{transition:none}}
@media(max-width:820px){
  .co-page .co-ktree-w{position:static}
  .co-shell.co-page button.co-ktoggle:not(.ot-notes *){display:flex;justify-content:space-between;width:100%;min-height:44px;margin:0 0 8px;background:var(--c-sf);overflow:hidden;text-overflow:ellipsis}
  .co-shell.co-page button.co-ktoggle:not(.ot-notes *):after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:-4px 4px 0 10px;flex:none}
  .co-shell.co-page button.co-ktoggle[aria-expanded=true]:not(.ot-notes *):after{transform:rotate(-135deg);margin-top:4px}
  .co-page .co-ktree-w.co-kplegado .co-ktree{display:none}
  .co-page .co-knew-m{display:inline-flex!important}
  .co-shell.co-page .co-ktree .co-kfila .co-knode,.co-shell.co-page button.co-kfile:not(.ot-notes *){min-height:40px}
  .co-shell.co-page button.co-kexp:not(.ot-notes *){width:40px;min-width:40px;height:40px;min-height:40px}
  .co-shell.co-page button.co-ktema:not(.ot-notes *),.co-shell.co-page button.co-kubic:not(.ot-notes *){min-height:40px}
}
@media(max-width:760px){
  .co-shell.co-page .co-kfiltros .co-kbusca{flex-basis:100%}
  .co-shell.co-page .co-kfiltros .co-field.co-select{flex:1 1 calc(50% - 4px);width:auto;min-width:0}
  .co-shell.co-page .co-field.co-ktema-sub{width:100%}
}
/* Oscuro: la hoja común pone borde y fondo a todos los botones del módulo (con !important). La temática, la carpeta del resultado
   y los nodos del árbol son texto pulsable, no etiquetas: sin borde ni fondo, para que no parezcan píldoras. */
:root[data-ot-theme=dark] .co-shell.co-page button.co-ktema,:root[data-ot-theme=dark] .co-shell.co-page button.co-kubic,:root[data-ot-theme=dark] .co-shell.co-page button.co-kfile,:root[data-ot-theme=dark] .co-shell.co-page button.co-kexp,:root[data-ot-theme=dark] .co-shell.co-page button.co-kborrar,:root[data-ot-theme=dark] .co-shell.co-page .co-ktree button.co-kmas{border-color:transparent!important;background-color:transparent!important}
:root[data-ot-theme=dark] .co-shell.co-page button.co-ktema,:root[data-ot-theme=dark] .co-shell.co-page button.co-kubic{color:var(--c-muted)!important}
:root[data-ot-theme=dark] .co-shell.co-page button.co-kfile{color:var(--c-ink)!important}
:root[data-ot-theme=dark] .co-shell.co-page button.co-ktema:hover,:root[data-ot-theme=dark] .co-shell.co-page button.co-kubic:hover{color:var(--c-link)!important}
/* Menú de temática: se abre hacia la derecha del botón y, si no cabe debajo, hacia arriba */
.co-page .co-ktema-w .co-menu{left:0;right:auto;width:min(260px,calc(100vw - 32px))}
.co-page .co-ktema-w .co-menu.co-karriba{top:auto;bottom:calc(100% + 6px)}
:root[data-ot-theme=dark] .co-shell.co-page .co-ktema-w .co-menu button{border-color:transparent!important;background-color:transparent!important}
:root[data-ot-theme=dark] .co-shell.co-page .co-ktema-w .co-menu button:hover{background-color:rgba(255,255,255,.06)!important}
/* Oscuro: la hoja común rellena todos los botones principales con !important; en el expediente, solo el siguiente paso va relleno */
:root[data-ot-theme=dark] .co-shell.co-page .co-expv button.co-primary:not(.co-siguiente):not(.ot-notes *){background-color:transparent!important;border-color:rgba(111,224,255,.35)!important;color:#6FE0FF!important}
