/* Card buckets on Payments -> Payables (opt-in team feature `cardBuckets`, public/js/card-buckets.js).
   Hidden unless that file un-hides #ap-card-strip-wrap. The row is the shared wf-kpi-rail (scroll-snap, one line, never
   wraps; it is in index.html's RAILS list); these rules dress the cards and the tapped card's charge list.
   While a card is tapped, #pay-tab-payables carries .cbk-filtering: the payables list steps aside for that card's charges.
   Theme tokens only, the app font. */
#ap-card-strip-wrap { margin: 0 0 18px; font-family: var(--font-body); min-width: 0; max-width: 100%; }
#ap-card-strip-wrap[hidden], #ap-card-charges[hidden] { display: none !important; }
.cbk-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; color: var(--off-white); margin: 0 0 8px; }
#ap-card-strip.wf-kpi-rail { display: flex; --wf-kpi-basis: min(max(240px, 15rem), 100%); --wf-kpi-cap: min(max(300px, 18.75rem), 100%); --wf-kpi-gap: 12px; margin-bottom: 0; }
@media (max-width: 639.98px) { #ap-card-strip.wf-kpi-rail { --wf-kpi-basis: min(78vw, 300px); --wf-kpi-cap: min(78vw, 300px); } }
#ap-card-strip > .cbk-card, .cbk-grid > .cbk-card { display: flex; flex-direction: column; align-items: stretch !important; justify-content: flex-start !important; text-align: left !important; gap: 8px; min-height: 0 !important; padding: 14px 16px !important; margin: 0;
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: 14px; box-shadow: none; cursor: pointer;
  font-family: var(--font-body); transition: border-color .15s, background-color .15s; }
#ap-card-strip > .cbk-card:hover, .cbk-grid > .cbk-card:hover { border-color: var(--blue, var(--gold)); }
#ap-card-strip > .cbk-card:focus-visible, .cbk-grid > .cbk-card:focus-visible { outline: 2px solid var(--blue, var(--gold)); outline-offset: 2px; }
#ap-card-strip > .cbk-card.is-overdue, .cbk-grid > .cbk-card.is-overdue { border-color: color-mix(in srgb, var(--red) 45%, var(--border)); }
#ap-card-strip > .cbk-card.is-active, .cbk-grid > .cbk-card.is-active { border-color: var(--blue, var(--gold)); background: color-mix(in srgb, var(--blue, var(--gold)) 6%, var(--bg-raised)); box-shadow: inset 0 0 0 1px var(--blue, var(--gold)); }
.cbk-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cbk-ic { width: 36px; height: 36px; min-width: 36px; max-width: 36px; flex: 0 0 36px; aspect-ratio: 1 / 1; box-sizing: border-box; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--blue, var(--gold)); background: color-mix(in srgb, var(--blue, var(--gold)) 11%, transparent); }
.cbk-card.is-overdue .cbk-ic { color: var(--red); background: color-mix(in srgb, var(--red) 11%, transparent); }
.cbk-ic svg { width: 18px; height: 18px; }
.cbk-id { min-width: 0; }
.cbk-name { font-size: 14px; font-weight: 600; color: var(--white); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbk-l4 { font-weight: 500; color: var(--off-white); font-variant-numeric: tabular-nums; }
.cbk-items { font-size: 12px; color: var(--off-white); line-height: 1.3; white-space: nowrap; }
.cbk-grid .cbk-total, #ap-card-strip .cbk-total { font-size: 24px; line-height: 1.1; font-weight: 700; color: var(--white); margin: 0; font-variant-numeric: tabular-nums; letter-spacing: -0.3px; white-space: nowrap; }
.cbk-lines { display: grid; gap: 3px; padding-top: 8px; border-top: 1px solid var(--border); }
.cbk-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; line-height: 1.35; }
.cbk-k { color: var(--off-white); white-space: nowrap; }
.cbk-v { color: var(--white); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbk-v.cbk-dim { color: var(--off-white); font-weight: 500; }
/* Own cards vs bills (opt-in cardsVsBills): the small label over the WatchFlow balance. */
.cbk-bal-k { font-size: 11px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--off-white); line-height: 1.2; margin: 0 0 -4px; }
.cbk-over .cbk-k, .cbk-over .cbk-v { color: var(--red); font-weight: 700; }

/* the tapped card's charges: the tracker filtered to that card */
#pay-tab-payables.cbk-filtering:not(.cbk-page) > :is(#ap-filter-card, #ap-active-filters, #ap-search-meta, .payments-table-card) { display: none !important; }
#ap-card-charges { margin: 14px 0 0; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 14px; font-family: var(--font-body); overflow: hidden; }
.cbk-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cbk-panel-title { font-size: 15px; font-weight: 600; color: var(--white); }
.cbk-panel-sub { font-size: 12.5px; color: var(--off-white); margin-top: 2px; font-variant-numeric: tabular-nums; }
.cbk-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.cbk-row:last-child { border-bottom: 0; }
.cbk-row-main { min-width: 0; }
.cbk-row-title { color: var(--white); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbk-row-sub { color: var(--off-white); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbk-row-due { color: var(--off-white); font-size: 12.5px; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.cbk-row.is-overdue .cbk-row-due { color: var(--red); font-weight: 600; }
.cbk-chip { font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red) 9%, transparent); border-radius: 999px; padding: 2px 8px; }
.cbk-row-amt { color: var(--white); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; min-width: 96px; }
.cbk-empty { padding: 14px 16px; color: var(--off-white); font-size: 13px; }
@media (max-width: 639.98px) {
  .cbk-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .cbk-row-due { grid-column: 1; grid-row: 2; }
  .cbk-row-amt { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
  .cbk-row-sub { white-space: normal; }
}

/* Card bills paid (key cardBillsPaid, 10-20): charges grouped into bills, Mark paid opens a form in place, payments listed below. */
.cbk-bill { border-bottom: 1px solid var(--border); }
.cbk-bill:last-of-type { border-bottom: 0; }
/* The bill header is a FULL-WIDTH bar: deep red when overdue, a dark slate when not yet due; light text, a light outline Mark paid button. */
.cbk-bill-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; min-height: 64px; box-sizing: border-box;
  background: #343c4b; color: #fff; }
.cbk-bill.is-overdue .cbk-bill-head { background: #8a1c1c; }
.cbk-bill-line { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; min-width: 0; }
.cbk-bill-title { font-size: 14px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: .9px; word-spacing: .2em; }
.cbk-bill-sub { font-size: 12.5px; color: rgba(255,255,255,.82); font-variant-numeric: tabular-nums; flex: 1 0 100%; }
.cbk-pay-btn { text-transform: uppercase; letter-spacing: .9px; word-spacing: .3em; font-weight: 800 !important; }
/* Desktop: the whole bar reads on ONE line, all caps: BILL DUE AUG 15, 2026 · OVERDUE · 1 CHARGE · $9,800.00 OPEN  [MARK PAID] */
@media (min-width: 640px) {
  .cbk-bill-line { flex-wrap: nowrap; gap: 0; }
  .cbk-bill-title, .cbk-bill-sub, .cbk-bill-head .cbk-chip { word-spacing: .2em; font-size: 14px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; white-space: nowrap; color: #fff; }
  .cbk-bill-sub { flex: 0 1 auto; }
  .cbk-bill .cbk-bill-head .cbk-chip { border: 0; background: none; border-radius: 0; padding: 0; }
  .cbk-bill-head .cbk-chip::before, .cbk-bill-sub::before { content: "\00b7"; margin: 0 10px; opacity: .7; }
  .cbk-bill-sub { color: rgba(255,255,255,.9); }
}
.cbk-bill-head .cbk-chip { font-weight: 800; letter-spacing: .9px; color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.14); }
.cbk-pay-btn { flex: 0 0 auto; white-space: nowrap; min-height: 44px; min-width: 44px; padding: 0 18px; color: #fff !important; background: transparent !important;
  border: 1.5px solid rgba(255,255,255,.85) !important; border-radius: 8px; font-weight: 600; cursor: pointer; }
.cbk-pay-btn:hover { background: rgba(255,255,255,.16) !important; }
.cbk-pay-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cbk-row-left { margin-left: 4px; font-size: 11.5px; font-weight: 500; color: var(--off-white); }
.cbk-pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.cbk-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; margin: 0; }
.cbk-f > span { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--off-white); }
.cbk-f input[type="text"] { width: 100%; box-sizing: border-box; min-height: 48px; padding: 0 16px; font-family: var(--font-body); font-size: 16px;
  color: var(--white); background: var(--bg-void); border: 1px solid var(--border); border-radius: 8px; outline: 0; transition: border-color .15s; }
.cbk-f input[type="text"]:focus { border-color: var(--blue, var(--gold)); }
.cbk-f input[type="text"]::placeholder { color: var(--off-white); }
.cbk-f select:not(.wfsp-src) { width: 100%; min-height: 48px; }
.cbk-pay-other { margin-top: 6px; }
.cbk-pay-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.cbk-modal { width: 520px; }
.cbk-modal .cbk-pay-grid { grid-template-columns: minmax(0, 1fr); }
.cqa.cbk-pay { padding: 12px 16px 14px; }
.cbk-pay-left { margin-right: auto; font-size: 12.5px; color: var(--off-white); font-variant-numeric: tabular-nums; }
.cbk-pay-left.is-bad, .cbk-pay-err { color: var(--red); font-size: 12.5px; }
.cbk-pay-err:empty { display: none; }
.cbk-hist { border-top: 1px solid var(--border); padding: 4px 0; }
.cbk-hist-title { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--off-white); padding: 10px 16px 4px; }
.cbk-hist-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; }
.cbk-hist-row.is-void .cbk-row-title { text-decoration: line-through; color: var(--off-white); }
@media (max-width: 639.98px) {
  .cbk-pay-grid { grid-template-columns: minmax(0, 1fr); }
  .cbk-bill-head { flex-wrap: nowrap; }
  .cbk-bill-txt { flex: 1 1 0; }
  .cbk-bill-line .cbk-bill-title { flex: 1 0 100%; }
  .cbk-bill-line .cbk-bill-sub { flex: 0 1 auto; }
}

/* "+ Add card" (job 6) */
.cbk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.cbk-head .cbk-eyebrow { margin: 0; }
.cbk-add-btn { background: none; border: 0; padding: 6px 2px; min-height: 32px; font: inherit; font-size: 13px; font-weight: 600; color: var(--blue, var(--gold)); cursor: pointer; }
.cbk-add-btn:hover { text-decoration: underline; }
.cbk-add-btn[hidden], #ap-card-strip[hidden] { display: none !important; }
.cqa { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 14px; margin: 0 0 12px; }
.cqa-title { margin: 0 0 10px; }

/* Card pages (key cardBillsPaid): the All cards page and one card's page. The Payables tab shows only this page's parts: the page
   header + bills (#ap-card-charges), then, on a card's page, the list's own filter bar and rows, already filtered to the card. */
#pay-tab-payables.cbk-page > :not(#ap-card-strip-wrap):not(#ap-filter-card):not(#ap-active-filters):not(#ap-search-meta):not(.payments-table-card):not(#ap-empty-state):not(#ap-error-state) { display: none !important; }
#pay-tab-payables.cbk-page #ap-card-strip, #pay-tab-payables.cbk-page .cbk-head { display: none !important; }
#pay-tab-payables.cbk-all > :not(#ap-card-strip-wrap) { display: none !important; }
.cbk-head-acts { display: flex; align-items: center; gap: 14px; }
#ap-card-charges.cbk-pg, #pay-tab-payables.cbk-page #ap-card-charges { background: none; border: 0; border-radius: 0; overflow: visible; margin: 0 0 14px; }
.cbk-pagehead { display: flex; align-items: center; gap: 14px; margin: 0 0 12px; min-width: 0; }
.cbk-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; flex: 0 0 auto; }
.cbk-back svg { width: 16px; height: 16px; }
.cbk-pagetitle { min-width: 0; }
.cbk-pagetitle .cbk-panel-title { font-size: 20px; font-weight: 700; }
.cbk-pk-row.wf-kpi-rail { display: flex; margin: 0 0 14px; --wf-kpi-gap: 12px; --wf-kpi-basis: min(220px, 100%); --wf-kpi-cap: 280px; }
@media (min-width: 640px) { .cbk-pk-row.wf-kpi-rail { overflow: visible; } .cbk-pk-row.wf-kpi-rail > .cbk-pk { flex: 1 1 0; max-width: none; } }
.cbk-pk-v { font-size: 22px; font-weight: 700; color: var(--white); margin: 0; font-variant-numeric: tabular-nums; letter-spacing: -0.3px; line-height: 1.15; }
.cbk-pk-s { font-size: 12.5px; font-weight: 500; color: var(--off-white); letter-spacing: 0; }
.cbk-pk.is-over .pay-kpi-value, .cbk-pk.is-over .pay-kpi-label, .cbk-pk.is-over .cbk-k { color: var(--red); }
.cbk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cbk-grid > .cbk-card { min-width: 0; }
#pay-tab-payables.cbk-page:not(.cbk-all) #ap-card-charges .cbk-bill, #pay-tab-payables.cbk-page:not(.cbk-all) #ap-card-charges .cbk-hist { background: var(--bg-raised); border: 1px solid var(--border); }
#pay-tab-payables.cbk-page:not(.cbk-all) #ap-card-charges .cbk-bill { border-radius: 14px; overflow: hidden; margin: 0 0 12px; }
#pay-tab-payables.cbk-page:not(.cbk-all) #ap-card-charges .cbk-hist { border-radius: 14px; margin: 0 0 12px; }
@media (max-width: 639.98px) {
  .cbk-pagetitle .cbk-panel-title { font-size: 17px; }
  .cbk-grid { grid-template-columns: minmax(0, 1fr); }
}

/* + Add card: several holders */
.cbk-f-wide { grid-column: 1 / -1; }
.cqa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cqa-chips:empty { display: none; }
.cqa-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px 0 12px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--white); text-transform: none; letter-spacing: 0; }
.cqa-chip button { min-width: 44px; min-height: 44px; margin: -4px 0; border: 0; background: transparent; color: var(--off-white); font-size: 20px; cursor: pointer; border-radius: 999px; }

.cbk-pk-s { white-space: nowrap; }

/* Thin KPI cards on the card page: a long figure + its "4 charges" note wraps under it instead of ending in an ellipsis. */
.cbk-pk .pay-kpi-value { overflow: visible !important; text-overflow: clip !important; white-space: normal !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.cbk-pk .cbk-pk-s { white-space: nowrap; font-size: 12.5px; }

/* All cards page: three sections, each with a divider line and a small calm coloured heading (cards keep the same box style). */
.cbk-sec { margin: 18px 0 0; }
.cbk-sec-head { display: flex; align-items: center; gap: 10px; padding: 0 0 8px; margin: 0 0 12px; border-bottom: 1px solid var(--sec-line, var(--border)); }
.cbk-sec-title { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--sec-ink); }
.cbk-sec-n { font-size: 11px; font-weight: 600; color: var(--sec-ink); background: var(--sec-tint); border-radius: 999px; padding: 1px 8px; }
.cbk-sec-due { --sec-ink: #b42318; --sec-tint: color-mix(in srgb, #b42318 10%, transparent); --sec-line: color-mix(in srgb, #b42318 35%, var(--border)); }
.cbk-sec-soon { --sec-ink: #a15c07; --sec-tint: color-mix(in srgb, #d98a0b 14%, transparent); --sec-line: color-mix(in srgb, #d98a0b 40%, var(--border)); }
.cbk-sec-fresh { --sec-ink: #067647; --sec-tint: color-mix(in srgb, #067647 11%, transparent); --sec-line: color-mix(in srgb, #067647 35%, var(--border)); }
:root[data-theme="dark"] .cbk-sec-due, html.dark .cbk-sec-due { --sec-ink: #f4877d; }
:root[data-theme="dark"] .cbk-sec-soon, html.dark .cbk-sec-soon { --sec-ink: #f0b44c; }
:root[data-theme="dark"] .cbk-sec-fresh, html.dark .cbk-sec-fresh { --sec-ink: #6ce0a4; }

/* One card's page, read like a statement (04h) */
.cbk-sentence { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--white); max-width: 62ch; }
.cbk-bill-txt { min-width: 0; flex: 1 1 auto; }
.cbk-bill-note { margin-top: 3px; font-size: 12.5px; color: rgba(255,255,255,.82); }
.cbk-bill-head .cbk-bill-note { text-transform: none; letter-spacing: 0; }
.cbk-sec .cbk-bill { margin: 0 0 12px; }
details.cbk-paid > summary.cbk-sec-head, details.cbk-later > summary { cursor: pointer; list-style: none; min-height: 44px; box-sizing: border-box; }
details.cbk-paid > summary.cbk-sec-head { margin-bottom: 0; }
details.cbk-paid[open] > summary.cbk-sec-head { margin-bottom: 12px; }
details.cbk-paid > summary::-webkit-details-marker, details.cbk-later > summary::-webkit-details-marker { display: none; }
.cbk-sec-chev { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--sec-ink, currentColor); border-bottom: 2px solid var(--sec-ink, currentColor); transform: rotate(45deg); transition: transform .15s; }
details.cbk-paid[open] .cbk-sec-chev { transform: rotate(-135deg); }
details.cbk-later > summary { display: flex; align-items: center; color: var(--off-white); font-size: 13px; font-weight: 600; padding: 0 2px; }
.cbk-sec .cbk-hist { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 14px; margin: 0; }
.cbk-listlink { display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 8px; padding: 0 4px; background: none; border: 0; color: var(--blue, var(--gold)); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* The long Payables list under the bills stays folded until asked for */
#pay-tab-payables.cbk-page:not(.cbk-all):not(.cbk-list-open) > :is(#ap-filter-card, #ap-active-filters, #ap-search-meta, .payments-table-card, #ap-empty-state, #ap-error-state) { display: none !important; }

/* Desktop: the card pages' KPI cards share the full content width, the same grid rule as the other wf-kpi-thin rows (wf-fit.css KPI rows). Phone stays a swipe row. */
@media (min-width: 769px) {
  html body #pay-tab-payables .cbk-pk-row.wf-kpi-rail.wf-kpi-thin {
    display: grid !important; grid-auto-flow: column !important; grid-template-columns: none !important;
    grid-auto-columns: minmax(140px, 1fr) !important; gap: 10px !important; align-items: stretch !important;
    overflow-x: auto !important; overflow-y: hidden !important; padding: 4px !important; margin: -4px -4px 10px !important;
  }
  html body #pay-tab-payables .cbk-pk-row.wf-kpi-rail.wf-kpi-thin > .pay-kpi { min-width: 0 !important; max-width: none !important; width: auto !important; flex: none !important; }
}

/* a card swipe over several watches: one row, opening to the watches and their shares */
.cbk-row.cbk-swipe { display: block; padding: 0; }
.cbk-swipe-d { display: block; }
.cbk-swipe-s { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px 0px; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; list-style: none; min-height: 44px; position: relative; }
.cbk-swipe-s::-webkit-details-marker { display: none; }
.cbk-row.in-bill .cbk-swipe-s { grid-template-columns: minmax(0, 1fr) 96px 0px; }
.cbk-swipe-chev { width: 8px; height: 8px; border-right: 1.6px solid var(--off-white); border-bottom: 1.6px solid var(--off-white); transform: rotate(45deg); position: absolute; right: 18px; top: 50%; margin-top: -6px; transition: transform .15s; }
.cbk-swipe-d[open] .cbk-swipe-chev { transform: rotate(-135deg); margin-top: -2px; }
.cbk-swipe-ps { display: grid; gap: 0; padding: 0 16px 10px 28px; }
.cbk-swipe-p { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; border: 0; border-top: 1px solid var(--border); background: none; color: var(--white); font: inherit; text-align: left; cursor: pointer; }
.cbk-swipe-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbk-swipe-t small { margin-left: 8px; color: var(--off-white); font-size: 12px; }
.cbk-swipe-p b { font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 96px; text-align: right; margin-right: 14px; }
.cbk-swipe-p:hover .cbk-swipe-t { color: var(--blue, var(--gold)); }
@media (max-width: 640px) { .cbk-swipe-s, .cbk-row.in-bill .cbk-swipe-s { grid-template-columns: minmax(0, 1fr) auto; } .cbk-swipe-p b { min-width: 0; margin-right: 18px; } .cbk-swipe-s .cbk-row-due { display: none; } .cbk-swipe-ps { padding-left: 16px; } }
@media (max-width: 640px) { .cbk-swipe-s { padding-right: 36px; } .cbk-swipe-chev { right: 16px; } }

/* Card with no due day (Hal 2026-10-22): one tap to set it, on the tile and on the card's page. 44px touch target. */
.cbk-setdue { margin-top: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border, rgba(0, 0, 0, .18)); border-radius: 10px; background: var(--card-bg, #fff); color: inherit; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.cbk-card .cbk-setdue { display: block; margin-top: 8px; }
.cbk-norule { margin-top: -4px; color: var(--muted); }
.cbk-norule + .cbk-setdue { margin: 0 0 16px; }
.cbk-sec-n { white-space: nowrap; word-spacing: .15em; }
/* VAT refund / FX credit on a card (opt-in vatRefundSplit, 2026-10-27) */
.cbk-credit .cbk-k, .cbk-credit .cbk-v { color: var(--green, #2f9e6a); font-weight: 700; }
.cbk-credits { margin-top: 8px; }
.cbk-credit-row .cbk-row-amt { color: var(--green, #2f9e6a); }
.cbk-chip-pending { background: color-mix(in srgb, var(--amber, #c98a1b) 16%, transparent); color: var(--amber, #c98a1b); }
.cbk-incredit { font-size: 13px; font-weight: 600; color: var(--green, #2f9e6a); }
.cbk-pk.is-credit .pay-kpi-value, .cbk-pk.is-credit .wf-kpi-thin-v { color: var(--green, #2f9e6a); }
/* A posted credit with "Apply to next bill" (2026-10-27): the button sits in its own column on desktop, on its own line on a phone. */
.cbk-credit-row.has-act { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.cbk-apply { white-space: nowrap; min-height: 44px; }
@media (max-width: 639.98px) {
  .cbk-credit-row.has-act { grid-template-columns: minmax(0, 1fr) auto; }
  .cbk-credit-row.has-act .cbk-apply { grid-column: 1 / -1; justify-self: start; }
}
