/*
 * PickUpFirst dashboard, Phase 3 self-service: the balance chip, minutes lines, next steps, Plan &
 * billing's money blocks, Help & support, the Contact support sheet, the time zone card and line
 * notes. Built on the theme tokens (tokens.css) and the portal components (portal.css). Every
 * block reads at 390px: grids collapse to one column, no fixed widths.
 */

/* Overview stats: as many tiles as there are facts (no "Est. value" without the customer's own job value) */
.stats--n { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
.balchip { text-decoration: none; color: inherit; }
a.stat.balchip:hover { background: var(--bg-alt); }
.balchip--low .stat__n, .balchip--big.balchip--low { color: var(--warn); }
.balchip--out .stat__n, .balchip--big.balchip--out { color: var(--miss-text); }
.balchip--big { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--line-2); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.balchip--big.balchip--ok { background: var(--signal-soft); color: var(--signal-text); }

.minutes__line { font-size: 14.5px; color: var(--ink-2); }
.minutes__line--extra { color: var(--muted); font-size: 13.5px; }
.money__line { font-size: 14.5px; color: var(--ink-2); }
.money__line b { color: var(--ink); font-weight: 600; }

.nextsteps__h { margin: 22px 0 -6px; font-size: 16.5px; font-weight: 600; letter-spacing: -0.02em; }
.nextsteps .extra__acts { flex-wrap: wrap; row-gap: 8px; }

/* the single top banner: info tone */
.banner--info { background: var(--info-soft); border-color: #d3e2f8; }
.banner--info > .i { color: var(--info); }

/* Plan & billing: balance forms */
.facts--flush { margin-top: 0; }
.moneyform { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.moneyform > summary { cursor: pointer; padding: 12px 16px; font-size: 14.5px; font-weight: 600; list-style: none; }
.moneyform > summary::-webkit-details-marker { display: none; }
.moneyform > summary::after { content: "+"; float: right; color: var(--signal-text); font-weight: 600; }
.moneyform[open] > summary::after { content: "–"; }
.moneyform[data-disabled] { opacity: .6; }
.moneyform__in { display: flex; flex-direction: column; gap: 14px; padding: 4px 16px 16px; }
.checkline { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.checkline input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--signal-ink); flex: none; }

.activity { margin: 8px 0 0; padding: 0; list-style: none; }
.activity li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.activity__date { color: var(--muted); font-variant-numeric: tabular-nums; }
.activity__what { min-width: 0; overflow-wrap: anywhere; color: var(--ink-2); }
.activity__amt { font-variant-numeric: tabular-nums; font-weight: 600; }
.activity__amt--in { color: var(--signal-text); }
.activity__amt--out { color: var(--ink); }

/* Help & support */
.helpgrid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.helpgrid .setsec + .setsec { margin-top: 0; }
.helplinks { margin-top: 16px; }
.supform { display: flex; flex-direction: column; gap: 16px; }
.supform .field { margin-top: 0; }
.reqlist { margin: 0; padding: 0; list-style: none; }
.reqlist__item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.reqlist__item:last-child { border-bottom: 0; }
.reqlist__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.reqlist__title { font-size: 14.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
a.reqlist__title { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.reqlist__sub { font-size: 13px; color: var(--muted); }
.reqlist__item .badge { flex: none; white-space: nowrap; }

/* Contact support entry points */
.app-side__support { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: none; font: 500 14px/1.4 var(--sans); color: var(--muted); cursor: pointer; text-align: left; }
.app-side__support .i { width: 17px; height: 17px; color: var(--muted); }
.app-side__support:hover { background: var(--line-2); color: var(--ink); }
.app-top__support { width: 36px; height: 36px; flex: none; display: inline-grid; place-items: center; }
.app-top__support:hover { color: var(--ink); border-color: var(--line-strong); }
.app-top__support .i { width: 17px; height: 17px; }
.app-sheet__btn { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 0; border-radius: 10px; background: none; font: 400 15px/1.4 var(--sans); color: var(--ink-2); cursor: pointer; text-align: left; }
.app-sheet__btn:hover { background: var(--line-2); color: var(--ink); }
.app-sheet__btn .i { width: 18px; height: 18px; color: var(--muted); }
.focus-top__support { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink-2); }
.focus-top__support .i { width: 16px; height: 16px; }
.dlg__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg__top .iconbtn { width: 36px; height: 36px; display: inline-grid; place-items: center; }
.dlg--sheet .dlg__in { max-height: min(86vh, 760px); overflow-y: auto; }

/* Lines: Wallet notes on a line card */
.linecard__note { margin: 0 0 10px; font-size: 13.5px; color: var(--ink-2); }
.linecard__note .mono { color: var(--muted); margin-right: 6px; }
.linecard__note--warn { color: var(--warn); }
.linecard__undo { margin-left: auto; }

/* Settings: the time zone card; the same picker inside "Where you work" is hidden here */
.tzcard { margin-bottom: 16px; }
.screen-settings [data-step="area"] [data-tz] { display: none; }

@media (max-width: 900px) {
  .helpgrid { grid-template-columns: minmax(0, 1fr); }
  .stats--n { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats--n > .stat:nth-child(2n + 1) { border-left: 0; }
}
@media (max-width: 600px) {
  .activity li { grid-template-columns: minmax(0, 1fr) auto; }
  .activity__date { grid-column: 1 / -1; font-size: 12.5px; }
  .reqlist__item { flex-direction: column; }
  .moneyform__in .field-row { grid-template-columns: minmax(0, 1fr); }
  .balchip--big { font-size: 16px; }
}
