/* pages/transfers.css — the transfer list (#/transfers, 2026-10-22). Tokens only (lint_css.js reads this file): colours,
   durations and layers come from tokens.css; table alignment from the shared table layer in styles.css; the status chip is
   the shared .badge, its word and its colour together. Motion: none of its own -- the cards rise with every page's first
   paint, and the one reduced-motion guard in styles.css stills that. */
.tr { display: flex; flex-direction: column; gap: var(--sp-4); }
.tr > .card, .tr > .kpi-row { margin-bottom: 0; }

/* the controls: month, shop, status, export -- they wrap before they widen a phone */
.tr-ctl { padding: var(--sp-4); }
.tr-ctl-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-3); }
.tr-field { display: flex; flex-direction: column; min-width: 0; }
.tr-field .finput { min-width: 160px; font-size: var(--fs-md); }
.tr-field .segmented { flex-wrap: wrap; }
.tr-field .segmented .seg { min-height: 36px; }
.tr-exp { margin-left: auto; }
.tr-exp .btn .ic { margin-right: var(--sp-1); }
.tr-note { margin: var(--sp-3) 0 0; line-height: 1.5; }

/* the list per shop */
.tr-shop .card-h { margin-bottom: var(--sp-3); }
.tr-table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.tr-table th { font-size: var(--fs-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-muted);
  padding: 8px; border-bottom: 0.5px solid var(--line); white-space: nowrap; vertical-align: bottom; }
.tr-table td { padding: 8px; border-bottom: 0.5px solid var(--line); vertical-align: top; }
.tr-table td:first-child { min-width: 200px; max-width: 320px; }
.tr-row:hover > td { background: var(--surface-3); }
/* the item's name is the button that opens its details: 44 px tall to a finger, a link's look to the eye */
.tr-open { display: block; width: 100%; min-height: 44px; padding: 0; margin: 0; border: 0; background: transparent; color: var(--info);
  font: inherit; text-align: left; cursor: pointer; }
.tr-open .ti-name { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.tr-open:hover .ti-name { color: var(--ink-strong); }
.tr-chip { white-space: nowrap; }
.tr-chip--none { background: var(--surface-3); color: var(--ink); border-color: var(--line-strong); }
.tr-flag { margin-top: var(--sp-1); font-size: var(--fs-xs); font-weight: 650; color: var(--warn); }
.tr-more { margin: var(--sp-3) 0 0; }

/* what the file says about itself */
.tr-stale { background: var(--warn-wash); }
.tr-stale p { margin: 0 0 var(--sp-1); color: var(--ink); line-height: 1.5; }
.tr-stale .ic { color: var(--warn); margin-right: var(--sp-1); }
.tr-built, .tr-caveat { margin: 0; line-height: 1.5; }
.tr-caveat .ic { margin-right: var(--sp-1); vertical-align: -2px; }

@media (max-width: 640px) {
  .tr .kpi-row.kpi-5 { grid-template-columns: 1fr 1fr; }
  .tr-table td:first-child { min-width: 150px; }
  .tr-exp { margin-left: 0; width: 100%; }
  .tr-exp .btn { width: 100%; justify-content: center; }
  .tr-field, .tr-field .finput { width: 100%; }
}
