/* Portal · Cajas (Cortes, Caja chica, Reposiciones de caja) y Nómina (Portal final, 17-nov). Solo colores con variables. */

/* La semana va en la barra de Finanzas (fin-kit bar, .pt-fin-bar .week); aquí solo el gris del dato que no hay */
.cj-gray { color: var(--pt-ink-3); }

/* Cortes: cada día con sus cajas lado a lado (CONCEPTO | MAÑANA | TARDE | DÍA), sin tarjeta alrededor: la tabla es la tarjeta y el
   día es su renglón de sección, con «Reimprimir cierre» a la derecha (como la prueba) */
.cj-dayblock { display: flex; flex-direction: column; gap: var(--sp-1); }
.cj-scroll { overflow-x: auto; }
.pt .cj-t { min-width: max-content; }
.pt .cj-t .t__row > .t__c.r { justify-content: flex-end; text-align: right; }
.pt .cj-t .cj-strong { font-weight: 700; }
.pt .cj-t .cj-dayrow { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 36px; padding-top: 2px; padding-bottom: 2px; } /* los tres puntos a la derecha (25-nov) */
.pt .cj-t .cj-dayrow > b { position: sticky; left: 14px; font: 700 14.5px/1.2 var(--pt-font); }
.pt .cj-t .cj-dayrow > .cj-link { position: sticky; left: 90px; }
.pt .cj-t .cj-dayrow > .pt-pill { margin-right: auto; } /* «Sin Cerrar día» junto al día (R-caja-40, 3-dic) */
.pt .cj-link { padding: 0 10px; color: var(--pt-blue); font-weight: 600; }
.pt .cj-link:hover { color: var(--pt-blue); }
.cj-two { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; }
.cj-two small { color: var(--pt-ink-3); font-size: var(--fs-sm); white-space: nowrap; }
.cj-who { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }

/* Reconteos, plegado bajo cada día */
.cj-more > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2); padding: var(--sp-1) 4px; list-style: none; cursor: pointer; }
.cj-more > summary::-webkit-details-marker { display: none; }
.cj-more > summary::after { content: '▾'; margin-left: auto; color: var(--pt-ink-3); }
.cj-more[open] > summary::after { content: '▴'; }
.cj-more > summary small { color: var(--pt-ink-3); font-weight: 400; }
.cj-wrap { overflow-wrap: anywhere; white-space: normal; }

/* Reposición de caja chica por pasos */
.cj-step { color: var(--pt-ink-3); font-weight: 600; }
.cj-sum { display: flex; flex-direction: column; border: 1px solid var(--pt-line); border-radius: var(--r-md); }
.cj-sum__row { display: flex; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--pt-line); }
.cj-sum__row:last-child { border-bottom: 0; }
.cj-sum__row b { font-variant-numeric: tabular-nums; }

/* Cortes en el teléfono (19-nov): el concepto arriba a todo lo ancho y abajo las cajas y DÍA en columnas iguales; la tabla ya no se
   corre de lado (si un día tiene muchas cajas, solo esa tabla se desliza dentro de su marco) */
@media (max-width: 760px) {
  .pt .cj-t { min-width: min-content; }
  .pt .cj-t .t__row--head > .t__c:first-child { display: none; }
  .pt .cj-t .t__row:not(.t__row--head):not(.cj-dayrow) > .t__c:first-child { grid-column: 1 / -1; padding-bottom: 0; }
  .pt .cj-t .t__row > .t__c { padding-left: 8px; padding-right: 8px; }
  .pt .cj-t .t__c.r .pt-pill { height: auto; min-height: 24px; padding-top: 3px; padding-bottom: 3px; border-radius: 12px; line-height: 1.2; white-space: normal; text-align: right; }
  .pt .cj-t .cj-dayrow { justify-content: space-between; }
  .pt .cj-t .cj-dayrow > b, .pt .cj-t .cj-dayrow > .cj-link { position: static; }
  .cj-two small { white-space: normal; text-align: right; }
}
