/* 22/10 · Contenido › Piezas: estado del sync con la planilla del pedido. Una franja arriba del tablero: punto de color,
   «Planilla sincronizada hace X min · N anuncios · avisos», la pestaña y el link; los avisos se despliegan agrupados.
   Prefijo psync- (ps- ya es de contenido-pasarsela.css). Peso máximo 600. */
.psync-sync { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 14px; }
.psync-sync.mal { border-color: var(--bad); }
.psync-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; }
.psync-pt { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 6px; background: var(--ink-3); }
.psync-pt.ok { background: var(--go); }
.psync-pt.aviso { background: var(--warn); }
.psync-pt.mal { background: var(--bad); }
.psync-txt { flex: 1 1 auto; min-width: 0; }
.psync-frase { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.psync-frase b { font-weight: 600; color: var(--ink); }
.psync-sep { color: var(--ink-3); }
.psync-extra { margin: 2px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.psync-sync.mal .psync-extra { color: var(--ink-2); }
.psync-nuevo { display: inline-block; margin-right: 8px; padding: 0 9px; border-radius: 99px; background: var(--dom-contenido-soft); color: var(--dom-contenido); font-weight: 600; }
.psync-av { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: 600 13.5px var(--sans); color: var(--link); cursor: pointer; min-height: 28px; }
.psync-av.urg { color: var(--bad); }
.psync-av:focus-visible, .psync-b:focus-visible, .psync-c:focus-visible, .psync-chk input:focus-visible, .psync-link:focus-visible, .psync-g summary:focus-visible { outline: 2px solid var(--focus, var(--go)); outline-offset: 2px; border-radius: 4px; }
.psync-car { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -3px 2px 0; transition: transform .15s; }
.psync-av[aria-expanded="true"] .psync-car { transform: rotate(-135deg); margin-top: 3px; }
.psync-sin { color: var(--ink-3); }
.psync-der { display: flex; gap: 12px; align-items: center; flex: none; }
.psync-hoja { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; white-space: nowrap; }
.psync-link { font-size: 13px; font-weight: 600; color: var(--link); text-decoration: none; white-space: nowrap; min-height: 28px; display: inline-flex; align-items: center; }
.psync-link:hover { text-decoration: underline; }
.psync-lista { border-top: 1px solid var(--line); padding: 4px 16px 10px 38px; max-height: 360px; overflow: auto; }
.psync-g { padding: 8px 0 2px; }
.psync-g + .psync-g { border-top: 1px dashed var(--line); }
.psync-g summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink-2); list-style: none; display: flex; gap: 6px; align-items: center; min-height: 28px; }
.psync-g summary::-webkit-details-marker { display: none; }
.psync-g summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin-right: 4px; transition: transform .15s; }
.psync-g[open] summary::before { transform: rotate(45deg); }
.psync-g summary b { font-weight: 600; color: var(--ink-3); }
.psync-g.resolver summary { color: var(--bad); }
.psync-g ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.psync-g li { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.psync-ref { flex: none; min-width: 112px; font-weight: 600; color: var(--ink); }
.psync-msg { flex: 1 1 auto; min-width: 0; }
.psync-acc { flex: none; display: inline-flex; gap: 6px; }
.psync-b { flex: none; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); border-radius: 8px; padding: 2px 10px; font: 600 12px var(--sans); cursor: pointer; min-height: 28px; }
.psync-b.pri { border-color: var(--go); color: var(--go); }
.psync-b:disabled { opacity: .45; cursor: default; }
.psync-c, .psync-chk input { width: 16px; height: 16px; accent-color: var(--go); flex: none; margin: 0; align-self: center; }
.psync-g li.dec { align-items: center; }
.psync-barra { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 8px; padding: 8px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.psync-chk { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; color: var(--ink); cursor: pointer; }
.psync-barra > span { flex: 1 1 auto; }
.psync-msg-r { margin: -6px 0 14px; font-size: 12.5px; color: var(--ink-2); }
/* El lado a lado antes de confirmar */
.psync-dlg { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); color: var(--ink); display: none; flex-direction: column; }
.psync-dlg[open] { display: flex; }
.psync-dlg::backdrop { background: rgba(0, 0, 0, .55); }
.psync-dlg-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.psync-dlg-h b { font-size: 15px; font-weight: 600; }
.psync-x { border: 0; background: none; color: var(--ink-2); font-size: 16px; cursor: pointer; min-width: 36px; min-height: 36px; border-radius: 8px; }
.psync-dlg-c { overflow: auto; padding: 14px 18px; display: grid; gap: 18px; }
.psync-cmp header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 8px; }
.psync-cmp header b { font-size: 13.5px; font-weight: 600; }
.psync-cmp header small { font-size: 12px; color: var(--ink-3); }
.psync-cols, .psync-lado { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.psync-cols span { font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.psync-campo { margin-top: 8px; }
.psync-campo > small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.psync-lado p { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; max-height: 260px; overflow: auto; border: 1px solid var(--line); }
.psync-lado .cen { background: var(--bg); color: var(--ink-2); }
.psync-lado .pla { background: var(--bg); color: var(--ink); border-color: color-mix(in oklab, var(--go) 45%, var(--line)); }
.psync-lado del { text-decoration: line-through; color: var(--bad); background: var(--bad-soft); border-radius: 3px; }
.psync-lado ins { text-decoration: none; color: var(--ink); background: color-mix(in oklab, var(--go) 40%, transparent); border-radius: 3px; font-weight: 600; }
.psync-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.psync-dlg-p { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--line); }
.psync-dlg-p p { margin: 0; flex: 1 1 320px; font-size: 13px; color: var(--ink); }
.psync-dlg-p div { display: flex; gap: 8px; }
.psync-dlg-p button:disabled { opacity: .6; cursor: default; }
@media (max-width: 767px) {
  .psync-row { display: grid; grid-template-columns: 10px 1fr; padding: 12px; }
  .psync-der { grid-column: 2; flex-wrap: wrap; }
  .psync-frase { gap: 2px 12px; }
  .psync-frase b { flex: 1 0 100%; }
  .psync-sep { display: none; }
  .psync-lista { padding: 4px 12px 10px; }
  .psync-g li { flex-wrap: wrap; gap: 2px 10px; }
  .psync-ref { min-width: 0; }
  .psync-acc { width: 100%; flex-wrap: wrap; }
  .psync-b { min-height: 36px; }
  .psync-cols { display: none; }
  .psync-lado { grid-template-columns: 1fr; }
  .psync-sr { position: static; width: auto; height: auto; clip: auto; display: block; font-weight: 600; font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
  .psync-dlg { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
}
