/* tab-sprzedaz.css: only what is specific to Sprzedaż (task #94): the month lump sums of the
   „Paragony i wpisy ręczne” view. The view switch, chips, filters, table, menus, bulk bar, notice and
   the panel card are the shared pattern in css/invoice-list.css (task #105, decision D25).
   Colours, spacing and type only from css/variables.css. */

.sales-lump__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-4); }
.sales-lump__row + .sales-lump__row { margin-top: var(--spacing-5); padding-top: var(--spacing-5); border-top: 1px solid var(--color-border); }
.sales-lump__field { display: flex; flex-direction: column; gap: var(--spacing-2); min-width: 0; }
.sales-lump__field .label { margin: 0; font-size: var(--font-size-sm); font-weight: 600; }
.sales-lump__input { width: 100%; min-height: 44px; text-align: right; font-size: var(--font-size-base); font-variant-numeric: tabular-nums; }
.sales-lump__hint { margin: 0; font-size: var(--font-size-xs); color: var(--color-text-muted); }

@media (max-width: 767px) {
    .sales-lump__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-3); }
    .sales-lump__row .sales-lump__field:first-child { grid-column: 1 / -1; }
    .sales-lump__field .label { font-size: var(--font-size-base); }
    .sales-lump__input { font-size: 1rem; }
    .sales-lump__hint { font-size: var(--font-size-sm); }
}

/* „Faktury” 1:1 with .mockups/kalkulator-v2 (#108): 24 px between the switch, the tiles and the list (as Zakupy),
   three tiles sized by content as the mockup .inv-summary */
section[data-route="sprzedaz"] .list-screen, #sales-root .ledger { gap: var(--spacing-6); }
#sales-root .stat-row--sales { grid-template-columns: repeat(3, minmax(0, auto)); }
@media (max-width: 767px) {
    section[data-route="sprzedaz"] .list-screen, #sales-root .ledger { gap: var(--spacing-4); }
    #sales-root .stat-row--sales { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--spacing-2); }
}
