/* Caja: the cash book. Only tokens from tokens.css. */
.cj-head { margin-bottom: var(--e-24); }
.cj-lab { font-size: var(--t-s); font-weight: var(--w-control); color: var(--soft); }
.cj-now .figures { margin-top: var(--e-8); }
.cj-step { display: flex; align-items: center; gap: var(--e-12); flex-wrap: wrap; margin-top: var(--e-40); }
.cj-step h2 { font-size: var(--t-xl); }
.cj-month { margin-top: var(--e-16); }
.cj-month + .sheet { margin-top: var(--e-32); }

/* One movement: the day in its own column, who or what, the detail, the amount. */
.item.cj-row { grid-template-columns: calc(var(--base) * 2.25) minmax(0, 1fr) auto; }
.cj-row .cj-day { grid-row: 1 / span 2; grid-column: 1; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; align-self: start; padding-top: var(--e-2); }
.cj-row .cj-day b { font-weight: var(--w-strong); font-size: var(--t-b); }
.cj-row .cj-day small { color: var(--soft); font-size: var(--t-xs); }
.cj-row .t { grid-column: 2; grid-row: 1; }
.cj-row .m { grid-column: 2; grid-row: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cj-row .m:empty { display: none; }
.cj-row .amt { grid-column: 3; grid-row: 1 / span 2; }
.cj-void .cj-row .t, .cj-void .cj-row .amt { text-decoration: line-through; text-decoration-color: var(--soft); color: var(--soft); }
.cj-void .cj-row .tag { text-decoration: none; }

.cj-filters .seg { flex: 0 1 auto; }
.cj-foot { justify-content: space-between; margin-top: var(--e-16); padding-top: var(--e-12); border-top: 1px solid var(--line); }
/* On a phone the figures go two by two so the movements come sooner. */
@media (max-width: 719.98px) {
  .cj-now .figures, .cj-month { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e-20) var(--e-16); }
  .cj-step { margin-top: var(--e-32); }
}
@media (max-width: 719.98px) { .cj-head .btn { padding: 0 var(--e-12); } }
