/* Extras for the BeeLedger Cloud console, on top of the app's own stylesheet (app.css). */
.nav-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.nav-link .grow { flex: 1; }
.test-pill { color: var(--warn); border-color: var(--warn-line); background: var(--warn-bg); cursor: default; }
.rev-bars { display: flex; gap: 8px; align-items: flex-end; height: 180px; padding-top: 6px; }
.rev-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.rev-col b { width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--honey); }
.rev-col:not(:last-child) b { background: color-mix(in srgb, var(--honey) 45%, var(--surface-sunk)); }
.rev-col span { font-size: 12px; color: var(--text-3); }
.input-inline { width: auto; min-width: 160px; min-height: 38px; border-radius: var(--pill); }
.tabs .tab { text-decoration: none; }
.tab-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--surface-sunk); font-size: 12px; font-weight: 700; }
.action-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.action-row:first-of-type { border-top: 0; }
.action-row .field { margin: 0; }
.action-row .field:not(.grow) { width: 170px; }
.action-row .grow { flex: 1; min-width: 180px; }
.test-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.thread { display: grid; gap: var(--s-3); }
.attach { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.attach img { max-width: 100%; max-height: 380px; border-radius: 10px; border: 1px solid var(--line); display: block; }
.file-btn { cursor: pointer; }
.kv dd { overflow-wrap: anywhere; }
.table tr.clickable { cursor: pointer; }
@media (max-width: 600px) { .action-row .field:not(.grow) { width: 100%; } .rev-bars { gap: 4px; } .rev-col span { font-size: 10px; } }
/* One even rhythm between blocks: cards carry no margin of their own; each top-level block is spaced the same. */
.content .card { margin: 0; }
.content > .grid-2, .content > .card, .content > .stats, .content > .alert, .content > .page-header { margin: 0 0 var(--s-5); }
.content > .back { margin-bottom: var(--s-2); }
.grid-2 { align-items: stretch; }
@media (max-width: 600px) { .grid-2 { gap: var(--s-4); } .table.stack-sm td.strong, .table.stack-sm td.full { grid-column: 1 / -1; } }

/* Payments to confirm */
.confirm-list { display: grid; gap: 0; }
.confirm-item { padding: 18px 20px; border-top: 1px solid var(--border, #e7e2d8); display: grid; gap: 12px; }
.confirm-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.confirm-amount { display: grid; text-align: right; }
.confirm-amount b { font-size: 18px; }
.confirm-kv { margin: 0; }
.confirm-actions { display: grid; gap: 10px; }
.confirm-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.field-inline { display: grid; gap: 4px; font-size: 13px; color: var(--text-2, #555); }
.field-inline .input { min-width: 120px; }
.field-inline.grow { flex: 1 1 260px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; padding-bottom: 8px; }
@media (max-width: 640px) { .confirm-amount { text-align: left; } .confirm-form > * { flex: 1 1 100%; } }

/* Neat details */
.stat-top { min-width: 0; }
.stat-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.kv { align-items: baseline; }
.kv dd { line-height: 1.45; }
.action-row .field:not(.grow) { width: 132px; }
.action-row .grow { min-width: 140px; }
.action-row .help { flex: 1; min-width: 140px; align-self: center; margin: 0; }
.action-row .btn { white-space: nowrap; }
.table td.wrap-any { overflow-wrap: anywhere; }
.table td.nowrap, .table th.nowrap { white-space: nowrap; }
.empty-note { margin: 0; color: var(--text-3); }

/* Tabs are links here (buttons in the app): make each one a centred box the same height, with or without a count. */
.tabs { align-items: center; flex-wrap: nowrap; }
.tabs .tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; line-height: 1; text-decoration: none; }
.tabs .tab .tab-n { margin-left: 0; line-height: 1; }
.toolbar .search { min-height: 42px; }
.toolbar { align-items: center; }
.action-row { align-items: flex-end; }
.action-row .help { align-self: flex-end; min-height: 40px; display: flex; align-items: center; }
.action-row .check-row { align-self: center; align-items: center; min-height: 32px; }
.action-row .check-row input { margin-top: 0; }
.action-row > .btn-sm { align-self: center; }
@media (max-width: 600px) { .toolbar .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: 20px; } .toolbar .search { flex-basis: 100%; } }
