/* Till reports (Reports → Till). Leans on the rp-* building blocks in staff.css. */
.till { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.till__bar { flex-wrap: wrap; gap: 8px 16px; }
.till__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.till__actions input[type="date"] { min-width: 0; }
.till__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.till > *, .till__body > * { min-width: 0; }
.till__section { min-width: 0; }
.till__conn-set { min-inline-size: 0; }
.till__window { margin: 0; color: var(--muted-c); font-size: .9rem; }
.till__note,
.till__hint,
.till__footnote { margin: 0; color: var(--muted-c); font-size: .88rem; line-height: 1.45; }
.till__note { padding: 8px 12px; border-left: 3px solid var(--amber, #f5a623); background: color-mix(in srgb, var(--amber, #f5a623) 8%, transparent); }
.till__empty { margin: 0; color: var(--muted-c); }
.till__cards { margin: 0; }

.till__section { border: 1px solid var(--line-c); border-radius: var(--radius, 8px); background: var(--panel-c); }
.till__summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.till__summary::-webkit-details-marker { display: none; }
.till__summary::before { content: '▸'; color: var(--muted-c); transition: transform .15s ease; }
.till__section[open] > .till__summary::before { transform: rotate(90deg); }
.till__summary-title { font-weight: 600; color: var(--ink-c, inherit); }
.till__summary-sub { color: var(--muted-c); font-size: .88rem; }
.till__section > :not(summary) { margin: 0 14px 14px; }
.till__section .rp-scroll { max-height: 520px; }
.till__search { display: flex; flex-direction: column; gap: 4px; max-width: 320px; }

.till__tbl td:last-child:empty { width: 1%; }
.till__meter { display: block; width: 100%; min-width: 80px; height: 8px; border-radius: 4px; background: var(--line-c); overflow: hidden; }
.till__meter-fill { display: block; height: 100%; border-radius: 4px; background: var(--amber, #f5a623); }

@media (max-width: 560px) {
  .till__actions { width: 100%; }
  .till__actions .inline-field { flex: 1 1 160px; }
  .till__meter { min-width: 48px; }
}
@media print {
  .till__actions, .till__search { display: none; }
  .till__section { break-inside: avoid; }
}

/* Takings check */
.till__check { border-color: var(--amber, #f5a623); }
.till__stack { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.till__sub { color: var(--muted-c); font-size: .78rem; white-space: nowrap; }
.till__diff { font-weight: 600; white-space: nowrap; }
.till__diff--ok { color: var(--ok, #2e7d32); }
.till__diff--bad { color: var(--bad, #c62828); }
.till__total td { font-weight: 700; border-top: 2px solid var(--line-c); }
.till__muted td { color: var(--muted-c); text-decoration: line-through; }
.till__list > summary { cursor: pointer; color: var(--muted-c); font-size: .9rem; margin-bottom: 8px; }

/* Connections (owner only) */
.till__conn-form { display: grid; gap: 14px; }
.till__conn-set { display: grid; gap: 8px; margin: 0; padding: 12px 14px; border: 1px solid var(--line-c); border-radius: var(--radius, 8px); }
.till__conn-set legend { padding: 0 6px; font-weight: 600; }
.till__field { display: grid; gap: 4px; max-width: 420px; }
.till__field span { font-size: .85rem; color: var(--muted-c); }
.till__field input { width: 100%; box-sizing: border-box; }
.till__conn-status { margin: 0; font-size: .88rem; }
.till__conn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.till__conn-msg { margin: 0; font-size: .88rem; color: var(--muted-c); }
