/* Accounts module: dashboard, accounts, transfers, wires, exchange. Classes are prefixed acx- to stay out of other modules' way. */

/* Account cards */
.acx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.acx-card { display: block; position: relative; border: 1px solid #cbd7e2; border-radius: 5px; padding: 12px 14px 12px; background: linear-gradient(180deg, #fff, #f5f8fb); color: var(--text); box-shadow: var(--shadow); min-width: 0; border-top: 3px solid #0a6fd2; }
.acx-card:hover { border-color: #8fb3d8; color: var(--text); box-shadow: 0 4px 12px rgba(18, 45, 72, .12); }
.acx-card.savings { border-top-color: #13b985; } .acx-card.business { border-top-color: #6b45c7; }
.acx-card.pending { border-top-color: #f0a71e; } .acx-card.frozen, .acx-card.closed, .acx-card.rejected { border-top-color: #c50039; opacity: .9; }
.acx-card .nm { font-weight: 700; font-size: 13px; display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acx-card .no { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.acx-card .bal { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin-top: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acx-card .av { font-size: 11.5px; color: var(--muted); }
.acx-card .tag { position: absolute; right: 10px; top: 10px; }
.acx-card .cur { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 5px; border-radius: 3px; background: #e4f0ff; color: #0f5aa6; font-size: 10.5px; font-weight: 700; }
.acx-card.add { display: grid; place-items: center; text-align: center; border-style: dashed; border-top: 1px dashed #9fb2c6; background: #fbfdff; color: var(--blue); min-height: 120px; font-weight: 700; }
.acx-card.add i { font-size: 22px; display: block; margin-bottom: 4px; }

/* Quick actions */
.acx-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 8px; }
.acx-quick a { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 12px 6px; border: 1px solid #dde5ed; border-radius: 4px; background: var(--panel2); color: #22517a; font-size: 12px; font-weight: 700; }
.acx-quick a i { font-size: 20px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #e4f0ff; color: #0a6fd2; }
.acx-quick a:hover { border-color: #8fb3d8; background: #eef6ff; }

/* Two-series bar chart built on ct-bars */
.acx-bars { height: 170px; }
.acx-bars .bar { gap: 3px; }
.acx-bars .pair { display: flex; align-items: flex-end; gap: 3px; width: 100%; justify-content: center; flex: 1; }
.acx-bars .pair span { width: 42%; max-width: 22px; min-height: 2px; border-radius: 2px 2px 0 0; }
.acx-bars .pair .in { background: linear-gradient(180deg, #17b07a, #0a9160); }
.acx-bars .pair .out { background: linear-gradient(180deg, #2083ee, #0962d3); }
.acx-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); margin-top: 8px; flex-wrap: wrap; }
.acx-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.acx-legend .in { background: #0a9160; } .acx-legend .out { background: #0962d3; }

/* Reminders */
.acx-remind { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line2); font-size: 12.5px; color: var(--text); }
.acx-remind:last-child { border-bottom: 0; }
.acx-remind i { font-size: 16px; width: 30px; height: 30px; flex: none; border-radius: 3px; display: grid; place-items: center; }
.acx-remind.bad i { background: var(--badBg); color: var(--badFg); } .acx-remind.warn i { background: var(--warnBg); color: var(--warnFg); } .acx-remind.info i { background: var(--infoBg); color: var(--infoFg); }
.acx-remind b { display: block; }
.acx-remind span { color: var(--muted); }

/* Big figure + quote summary */
.acx-figure { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.acx-quote { border: 1px solid #c2d9f5; background: var(--infoBg); border-radius: 4px; padding: 10px 12px; display: grid; gap: 6px; font-size: 12.5px; }
.acx-quote div { display: flex; justify-content: space-between; gap: 10px; }
.acx-quote div b { font-variant-numeric: tabular-nums; text-align: right; }
.acx-quote .big { font-size: 15px; border-top: 1px solid #c2d9f5; padding-top: 6px; }
.acx-err { color: var(--badFg); font-weight: 700; font-size: 12px; }

/* Receipts and printable pages */
.acx-receipt { max-width: 720px; }
.acx-receipt .head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line2); }
.acx-receipt .head .ok { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--okBg); color: var(--okFg); font-size: 22px; flex: none; }
.acx-receipt .head .bad { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--badBg); color: var(--badFg); font-size: 22px; flex: none; }
.acx-printhead { display: none; }
.acx-mono { font-family: Consolas, 'Courier New', monospace; letter-spacing: .02em; overflow-wrap: anywhere; }
.acx-copy { cursor: pointer; border: 0; background: none; color: var(--blue); padding: 0 0 0 6px; font-size: 13px; }
.acx-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.acx-timeline-wrap { padding: 4px 2px 0; }
.acx-stmt td.r, .acx-stmt th.r { text-align: right; }

/* Wire beneficiary toggle */
.acx-newben { margin-top: 12px; }
.acx-newben[hidden] { display: none; }
.acx-sep { border: 0; border-top: 1px solid var(--line2); margin: 2px 0; }

@media (max-width: 640px) {
    .acx-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acx-card .bal { font-size: 20px; }
    .acx-figure { font-size: 24px; }
}
@media print {
    body { background: #fff; }
    .ct-main { padding: 0 !important; }
    .ct-content { padding: 0 !important; }
    .ct-panel { box-shadow: none; border-color: #999; break-inside: avoid; }
    .acx-printhead { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; border-bottom: 2px solid #061a36; padding-bottom: 10px; }
    .acx-printhead img { height: 36px; }
    .ct-toasts, .ct-pager { display: none !important; }
    .ct-tablewrap { overflow: visible; }
    .ct-tbl td, .ct-tbl th { white-space: normal; }
}
