/* Until Payday. Only this tool's own pieces; everything else is the shared tool frame.
   Colours come from the site's variables only (tests/catalogue.test.mjs checks there are no hex values here). */

.up-money { position: relative; display: flex; align-items: center; }
.up-sym { position: absolute; left: 14px; font-size: 18px; color: var(--slate); pointer-events: none; }
.up-amount { padding-left: 32px; font-size: 18px; font-variant-numeric: tabular-nums; }
.up-date { font-size: 18px; min-height: 48px; }
.up-over { display: flex; width: 100%; min-height: 44px; margin-top: 6px; font-size: 16px; }
.up-over input { width: 22px; height: 22px; }
.up-in { margin: 8px 0 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.up-in:empty { display: none; }

.up-rows { margin: 0 0 10px; padding: 0; list-style: none; }
.up-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 9.5em) 44px; gap: 8px; align-items: center; }
.up-row + .up-row { margin-top: 8px; }
.up-row .input { font-size: 16px; }
.up-row__amount { font-size: 18px; }
.up-row__x { min-width: 44px; min-height: 44px; padding: 0; font-size: 22px; line-height: 1; }
@media (max-width: 380px) {
  .up-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .up-row__name { grid-column: 1 / -1; }
  .up-row + .up-row { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--mist); }
}
#up-add[disabled] { opacity: .45; cursor: not-allowed; }

/* The sheet: the headline, the help line on a shortfall, the figures, then each commitment. */
.up-empty { margin: 0; padding: 26px 0 14px; font-size: 15px; color: var(--steel); }
.up-head { padding: 4px 0 14px; }
.up-big { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.up-sub { margin: 4px 0 0; font-size: 15.5px; color: var(--slate); }
.up-head.is-short { margin-bottom: 14px; padding: 12px 14px 14px; border-radius: var(--r-card); box-shadow: inset 0 0 0 2px var(--graphite); }
.up-head.is-short .up-sub { color: var(--graphite); }
.up-help { margin: 0 0 14px; font-size: 15px; }
.up-help a { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.up-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.up-table th, .up-table td { padding: 9px 0; border-bottom: 1px solid var(--silver); }
.up-table th { text-align: left; font-weight: 500; color: var(--slate); }
.up-table td { text-align: right; }
.up-table .is-key th, .up-table .is-key td { font-weight: 600; color: var(--graphite); }
.up-list { margin-top: 18px; }
.up-list__h { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.up-list__ul { margin: 0; padding: 0; list-style: none; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.up-list__ul li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--mist); }
.up-list__ul li span:first-child { overflow-wrap: anywhere; }
@media print { .up-help a::after { content: " (" attr(href) ")"; font-weight: 400; overflow-wrap: anywhere; } }
