/* w-koszt-programu-do-faktur.css: kalkulator kosztu programu do faktur (cztery programy, jeden wiersz na program). Tylko tokeny z style.css, klasy .w-koszt-… Motyw jasny. */
.w-koszt-box { display: flex; flex-direction: column; gap: 20px; width: 100%; min-width: 0; }
.w-koszt-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px 18px; align-items: end; min-width: 0; }
.w-koszt-ksiegowa { grid-column: 1 / -1; }
@media (max-width: 640px) { .w-koszt-form { grid-template-columns: minmax(0, 1fr); } }

.w-koszt-result { min-width: 0; }
.w-koszt-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.w-koszt-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 8px 18px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); min-width: 0; }
.w-koszt-row.is-best { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); }
.w-koszt-row.is-brak { background: var(--surface-2); }
.w-koszt-uwaga { grid-column: 1 / -1; }

.w-koszt-main, .w-koszt-cena { min-width: 0; }
.w-koszt-main p, .w-koszt-cena p, .w-koszt-uwaga { margin: 0; }
.w-koszt-prog { font-size: 1.05rem; font-weight: 800; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.w-koszt-plan { font-size: .92rem; color: var(--text); }
.w-koszt-limit { font-size: .85rem; color: var(--muted); }
.w-koszt-mies { font-size: 1.3rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--text); overflow-wrap: anywhere; }
.w-koszt-jedn { font-size: .82rem; font-weight: 600; color: var(--muted); }
.w-koszt-rok, .w-koszt-brak { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.w-koszt-uwaga { font-size: .85rem; color: var(--muted); }
.w-koszt-link { white-space: nowrap; text-decoration: none; }

@media (max-width: 720px) {
  .w-koszt-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .w-koszt-link { justify-self: start; margin-top: 4px; }
}

/* stopka widgetu */
.w-koszt-footer { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.w-koszt-footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.w-koszt-meta { margin: 0; font-size: .85rem; color: var(--muted); }
.w-koszt-copy-status { margin: 0; font-size: .85rem; color: var(--ok); min-height: 1em; }
.w-koszt-copy-status:empty { display: none; }
