/* ready-card.css — point 15 (Karim, 26 Oct 2026: «yes agee gooo»): the «Ready to pay» card at the finance person's first
   look of the day (javascript/ready-card.js). Loaded by the home page and by Approvals, so it leans only on the CRM set's
   tokens (crm/styles/tokens.css), never on a page's own sheet. Its own `rc-` prefix; logical properties only; motion
   0.2 s, none under reduced motion. It hangs at the top corner under the top bar (a banner on a phone) and never takes
   the page's width — no sideways scroll; under the top bar's own menus (50) and any dialog. */
.rc-card { position: fixed; inset-block-start: calc(var(--topbar-h, 54px) + 12px); inset-inline-end: 16px; z-index: 45; inline-size: min(360px, calc(100vw - 32px)); }
.rc-card[hidden] { display: none; }
/* on Approvals it joins the news cards on the list's side (ready-card.js puts it there and marks it) */
.rc-card.rc-in-list { position: static; inline-size: auto; pointer-events: auto; }
.rc-in { position: relative; display: flex; gap: 12px; padding: 14px; padding-inline-end: 40px; border: 1px solid var(--border, #D6DFE8); border-radius: 14px;
  background: var(--surface, #FFFFFF); color: var(--text, #0C1B2A); box-shadow: var(--shadow-lg); font-family: var(--font-en); animation: rc-in .22s ease-out; }
.rc-in:lang(ar), :lang(ar) .rc-in { font-family: var(--font-ar); }
@keyframes rc-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.rc-card.is-out .rc-in { opacity: 0; transform: translateY(-8px); transition: opacity .2s ease-out, transform .2s ease-out; }
.rc-ic { display: inline-grid; place-items: center; flex: none; inline-size: 38px; block-size: 38px; border-radius: 50%; background: var(--success-soft, #E6F6D8); color: var(--success, #2F7F0A); }
.rc-ic svg { inline-size: 20px; block-size: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rc-body { flex: 1; min-inline-size: 0; display: flex; flex-direction: column; gap: 4px; }
.rc-body h2 { margin: 0; font-size: 15px; font-weight: 800; line-height: 1.3; }
.rc-n1 { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--text-2, #2E4257); }
.rc-sums { display: flex; flex-direction: column; gap: 1px; }
.rc-mn { display: inline-flex; align-items: baseline; gap: .35em; white-space: nowrap; }
.rc-n { font-family: var(--font-mono); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; unicode-bidi: isolate; direction: ltr; }
.rc-cc { font-family: var(--font-mono); font-size: 12px; color: var(--text-3, #4F627A); }
.rc-sub { margin: 0; font-size: 12px; color: var(--text-3, #4F627A); }
/* one line a kind (exchange requests · payment requests), each with its own Open */
.rc-ks { list-style: none; margin: 4px 0 2px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rc-k { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t b" "s b"; align-items: center; gap: 2px 10px; padding-block: 6px;
  border-block-start: 1px solid var(--border, #D6DFE8); }
.rc-k-t { grid-area: t; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13.5px; }
.rc-k-n { font-size: 12.5px; font-weight: 600; color: var(--text-3, #4F627A); }
.rc-k .rc-sums { grid-area: s; }
.rc-k .rc-btn { grid-area: b; }
.rc-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 6px; }
.rc-btn { display: inline-flex; align-items: center; justify-content: center; min-block-size: 34px; padding-inline: 14px; border: 1px solid transparent; border-radius: 8px;
  font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.rc-btn-primary { background: var(--brand, #1265B8); color: var(--on-solid, #FFFFFF); box-shadow: var(--shadow-brand); }
.rc-btn-primary:hover { background: var(--blue-700, #0F559C); }
.rc-btn-quiet { background: transparent; color: var(--brand, #1265B8); }
.rc-btn-quiet:hover { background: var(--brand-soft, #DBEBFA); }
.rc-btn:focus-visible, .rc-x:focus-visible { outline: 2px solid var(--brand, #1265B8); outline-offset: 2px; }
.rc-x { position: absolute; inset-block-start: 6px; inset-inline-end: 6px; display: inline-grid; place-items: center; inline-size: 32px; block-size: 32px; padding: 0; border: 0;
  border-radius: 8px; background: none; color: var(--text-3, #4F627A); cursor: pointer; }
.rc-x:hover { background: var(--surface-2, #F3F6FA); }
.rc-x svg { inline-size: 16px; block-size: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 760px) {
  .rc-card { inset-inline: 12px; inline-size: auto; inset-block-start: calc(var(--topbar-h, 54px) + 8px); }
  .rc-btn, .rc-x { min-block-size: 44px; }
  .rc-x { inline-size: 44px; block-size: 44px; inset-block-start: 2px; inset-inline-end: 2px; }
}
@media (prefers-reduced-motion: reduce) { .rc-in { animation: none; } .rc-card.is-out .rc-in { transition: none; } }
