/* =====================================================================
   Jood design system — forms, modals, feedback, list pages.
   ===================================================================== */

/* ---------- Forms ---------- */
.j-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.j-form.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.j-form.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.j-field { display: flex; flex-direction: column; gap: 5px; min-inline-size: 0; }
.j-field.span-2 { grid-column: span 2; }
.j-field.span-3 { grid-column: span 3; }
.j-field.span-4, .j-field.full { grid-column: 1 / -1; }
.j-field > label { font-size: 12.5px; color: var(--j-muted); font-weight: 600; }
.j-field > label.req::after { content: " *"; color: var(--j-bad); }
.j-hint { color: var(--j-muted); font-size: 12px; line-height: 1.5; }
.j-input, .j-select, .j-textarea {
  inline-size: 100%; padding: 9px 11px; border: 1px solid var(--j-line); border-radius: var(--j-radius-sm);
  background: var(--j-surface); color: var(--j-text); outline: none; transition: border-color .12s, box-shadow .12s;
}
.j-textarea { min-block-size: 80px; resize: vertical; line-height: 1.6; }
.j-input:focus, .j-select:focus, .j-textarea:focus { border-color: var(--j-blue); box-shadow: 0 0 0 3px var(--j-blue-soft); }
/* Locked fields stay readable: dark text on the muted background (the background, not faint text, says "locked"). */
.j-input:disabled, .j-select:disabled, .j-input[readonly] { background: var(--j-surface-2); color: var(--j-text); -webkit-text-fill-color: var(--j-text); opacity: 1; }
.j-input.num { text-align: end; }
.j-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.j-check input { inline-size: 16px; block-size: 16px; accent-color: var(--j-navy-3); }

.j-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; position: relative; }
.j-switch input { position: absolute; opacity: 0; pointer-events: none; }
.j-switch-track { inline-size: 38px; block-size: 22px; border-radius: 11px; background: var(--j-line); position: relative; transition: background .15s; flex: none; }
.j-switch-track span { position: absolute; inset-block-start: 3px; inset-inline-start: 3px; inline-size: 16px; block-size: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: inset-inline-start .15s; }
.j-switch input:checked + .j-switch-track { background: var(--j-teal); }
.j-switch input:checked + .j-switch-track span { inset-inline-start: 19px; }
.j-switch input:focus-visible + .j-switch-track { outline: 2px solid var(--j-blue); outline-offset: 2px; }
.j-switch.disabled { opacity: .5; cursor: not-allowed; }

.j-btn:disabled { opacity: .5; cursor: not-allowed; }
.j-btn.danger { color: var(--j-bad); }
.j-btn.danger:hover { border-color: var(--j-bad); background: var(--j-bad-soft); }
.j-btn.ghost { border-color: transparent; background: transparent; }
.j-btn.ghost:hover { background: var(--j-bg); }
.j-btn .j-kbd { background: transparent; color: inherit; opacity: .7; border-color: currentColor; }
.j-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- Modal ---------- */
.j-modal-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(2, 18, 34, .45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; animation: j-fade .12s ease; }
.j-modal { inline-size: 100%; max-inline-size: 560px; background: var(--j-surface); border-radius: 16px; box-shadow: var(--j-shadow-lg); border: 1px solid var(--j-line); display: flex; flex-direction: column; }
.j-modal.sm { max-inline-size: 420px; }
.j-modal.lg { max-inline-size: 820px; }
.j-modal.xl { max-inline-size: 1100px; }
.j-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-block-end: 1px solid var(--j-line); }
.j-modal-head h2 { font-size: 17px; font-weight: 800; }
.j-modal-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--j-muted); }
.j-modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.j-modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-block-start: 1px solid var(--j-line); background: var(--j-surface-2); border-end-start-radius: 16px; border-end-end-radius: 16px; }

/* ---------- Error / toast ---------- */
.j-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--j-bad-soft); color: var(--j-bad); border: 1px solid color-mix(in srgb, var(--j-bad) 25%, transparent); }
.j-error > div { flex: 1; }
.j-error ul { margin: 6px 0 0; padding-inline-start: 18px; font-size: 13px; }
.j-error .j-icon { margin-block-start: 2px; }
.j-note { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--j-blue-soft); color: var(--j-blue); font-size: 13px; }
.j-note.warn { background: var(--j-warn-soft); color: var(--j-warn); }
.j-note.bad { background: var(--j-bad-soft, #fdecea); color: var(--j-bad, #C0392B); }
.j-note.ok { background: var(--j-ok-soft, #e9f7ef); color: var(--j-ok, #1E8449); }
.j-toasts { position: fixed; inset-block-start: 16px; inset-inline: 0; z-index: 90; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.j-toast { pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: var(--j-navy); color: #fff; box-shadow: var(--j-shadow-lg); font-weight: 600; animation: j-fade .15s ease; cursor: pointer; }
.j-toast.ok .j-icon { color: var(--j-teal); }
.j-toast.bad { background: var(--j-bad); }

/* ---------- Toolbar & list pages ---------- */
.j-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 18px; border-block-end: 1px solid var(--j-line); }
.j-toolbar .j-input, .j-toolbar .j-select { inline-size: auto; min-inline-size: 150px; }
.j-toolbar .grow { flex: 1; }
.j-search-box { position: relative; flex: 1; min-inline-size: 200px; max-inline-size: 360px; }
.j-search-box .j-icon { position: absolute; inset-inline-start: 10px; inset-block-start: 50%; transform: translateY(-50%); color: var(--j-muted); }
.j-search-box .j-input { padding-inline-start: 34px; }
/* Table cells must stay table cells (no flex on td), or rows break apart. */
.j-table .row-actions { white-space: nowrap; text-align: end; inline-size: 1%; }
.j-table .row-actions > * + * { margin-inline-start: 4px; }
.j-table .row-actions > * { vertical-align: middle; }
.j-table tr.muted-row td { color: var(--j-muted); }
.j-table tr.clickable { cursor: pointer; }
.j-table td .sub { display: block; color: var(--j-muted); font-size: 12px; }
.j-table tfoot td { font-weight: 700; background: var(--j-surface-2); border-block-start: 1px solid var(--j-line); }
.j-table-wrap { overflow-x: auto; }
.j-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; border-block-start: 1px solid var(--j-line); font-size: 13px; color: var(--j-muted); }
.j-tabs { display: flex; align-items: center; gap: 4px; border-block-end: 1px solid var(--j-line); padding: 0 18px; overflow-x: auto; overflow-y: hidden; }
.j-tabs button { border: 0; background: transparent; padding: 12px 14px; color: var(--j-muted); font-weight: 600; border-block-end: 2px solid transparent; margin-block-end: -1px; white-space: nowrap; }
.j-tabs button.on { color: var(--j-navy-3); border-block-end-color: var(--j-teal); }
:root[data-theme="dark"] .j-tabs button.on { color: var(--j-text); }
.j-section-title { font-size: 13px; font-weight: 800; color: var(--j-text); margin: 6px 0 -4px; }
.j-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13.5px; }
.j-kv dt { color: var(--j-muted); }
.j-kv dd { margin: 0; }

/* Sticky action bar at the bottom of editing screens (totals + workflow buttons) */
.j-actionbar {
  position: fixed; inset-block-end: 0; inset-inline-end: 0; inset-inline-start: var(--j-side-w);
  z-index: 20; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 12px 26px; background: var(--j-surface); border-block-start: 1px solid var(--j-line);
  box-shadow: 0 -6px 20px rgba(2, 29, 57, .06);
}
.is-collapsed .j-actionbar { inset-inline-start: var(--j-side-w-collapsed); }
@media (max-width: 960px) { .j-actionbar { inset-inline-start: 0; padding: 10px 14px; gap: 12px; } }

/* Printing: only the page content */
@media print {
  .j-side, .j-top, .j-toasts, .j-flyout, .j-flyout-scrim, .j-actionbar, .j-page-actions, #blazor-error-ui { display: none !important; }
  .j-shell { display: block !important; }
  .j-content { padding: 0 !important; }
  body { background: #fff; }
  .j-card { box-shadow: none; }
}

/* Permission tree in the role editor */
.j-perm-module { border: 1px solid var(--j-line); border-radius: 12px; overflow: hidden; }
.j-perm-module + .j-perm-module { margin-block-start: 12px; }
.j-perm-module > header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--j-surface-2); font-weight: 800; }
.j-perm-screen { display: grid; grid-template-columns: 220px 1fr; gap: 10px; padding: 10px 14px; border-block-start: 1px solid var(--j-line); align-items: start; }
.j-perm-screen > b { font-weight: 600; }
.j-perm-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.j-perm-actions .crit { color: var(--j-bad); }
.j-perm-actions .fin { color: var(--j-warn); }

/* Sign-in pages: centered card on the dark brand background (owner's house style, as in Sarh) */
.j-login-scene {
  position: relative; min-block-size: 100vh; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; padding: 56px 16px;
  background: radial-gradient(ellipse at 50% 30%, #0E416A 0%, #0A2E4F 45%, #021C35 100%);
}
.j-login-skyline { position: absolute; inset: auto 0 0 0; inline-size: 100%; block-size: 46vh; z-index: -1; color: rgba(255, 255, 255, .06); }
.j-login-skyline .trend { color: rgba(0, 191, 174, .30); }
.j-login-center { inline-size: 100%; display: grid; place-items: center; gap: 18px; }
.j-login-card {
  position: relative; inline-size: 100%; max-inline-size: 410px; padding: 30px 30px 22px;
  background: #fff; color: #021D39; border-radius: 22px; box-shadow: 0 24px 60px rgba(2, 12, 28, .45); overflow: hidden;
}
.j-login-card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; block-size: 4px; background: linear-gradient(90deg, #01EBD8, #02ACC6, #005CC3); }
.j-login-brand { display: grid; justify-items: center; gap: 2px; margin: 4px 0 16px; text-align: center; }
.j-login-brand img { inline-size: 92px; block-size: 92px; border-radius: 50%; object-fit: contain; background: #fff; padding: 14px; box-shadow: 0 6px 18px rgba(13, 32, 64, .18); margin-block-end: 8px; }
.j-login-brand strong { font-size: 20px; font-weight: 800; color: #021D39; }
.j-login-brand strong .ltr { font-family: var(--j-font-num); font-size: 14px; color: #5B6B82; margin-inline-start: 4px; }
.j-login-brand span { font-size: 12.5px; color: #00A396; font-weight: 700; }
.j-auth-title { font-size: 16px; margin: 0 0 4px; text-align: center; color: #5B6B82; font-weight: 700; }
.j-auth-sub { color: #5B6B82; margin: 0 0 12px; font-size: 13px; text-align: center; line-height: 1.7; }
.j-login-card form { display: grid; gap: 12px; margin: 0; }
.j-login-card .j-input { background: #fff; color: #021D39; border-color: #E6EDF5; }
.j-login-card .j-field > label { color: #5B6B82; }
.j-login-card .j-check { color: #021D39; }
.j-login-card .j-btn.primary { justify-content: center; inline-size: 100%; padding-block: 11px; }
.j-login-card .j-error { margin-block-end: 12px; }
.j-login-note { margin: 14px 0 0; font-size: 11.5px; color: #5B6B82; text-align: center; }
.j-login-foot { margin: 0; color: rgba(255, 255, 255, .45); font-size: 12px; }
.j-company-pick { display: flex; flex-direction: column; gap: 10px; }
.j-company-pick button { display: flex; align-items: center; gap: 12px; inline-size: 100%; padding: 14px; border-radius: 12px; border: 1px solid #E6EDF5; background: #F8FAFD; color: #021D39; text-align: start; }
.j-company-pick button:hover { border-color: #00BFAE; background: #fff; }
.j-company-pick button span { flex: 1; font-weight: 700; }
.j-company-pick small { color: #5B6B82; }
.j-company-pick .j-pick-office { display: block; font-weight: 400; font-size: 12px; }
.j-company-pick .j-pick-count { font-style: normal; min-inline-size: 22px; padding: 1px 7px; border-radius: 999px; background: #C0392B; color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
@media (max-width: 560px) { .j-login-card { padding: 26px 20px 18px; } .j-login-brand img { inline-size: 78px; block-size: 78px; } }

@media (max-width: 760px) {
  .j-form, .j-form.cols-3, .j-form.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .j-field.span-2, .j-field.span-3 { grid-column: auto; }
  .j-perm-screen { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Reports ---------- */
.report-filters { margin-block-end: 14px; }
.report-run { justify-content: flex-end; flex-direction: row; align-items: flex-end; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 16px 18px; }
.report-head h2 { font-size: 16px; font-weight: 800; }
.report-head p { margin: 2px 0 0; color: var(--j-muted); font-size: 13px; }
.report-sum { display: flex; gap: 22px; }
.report-sum span { display: flex; flex-direction: column; align-items: flex-end; }
.report-sum small { color: var(--j-muted); font-size: 11.5px; }
.report-sum b { font-size: 17px; }
.j-table th.center { text-align: center; }
.j-table td small { color: var(--j-muted); font-size: 11px; }
.tb-header td { font-weight: 700; background: var(--j-surface-2); }
.tb-code { display: inline-block; min-inline-size: 70px; color: var(--j-muted); }
@media print { .report-filters { display: none; } }
.fy-card + .fy-card { margin-block-start: 14px; }
.cc-code { display: inline-block; min-inline-size: 56px; color: var(--j-muted); }
.muted { color: var(--j-muted); }

/* ═══ Jood data grid (JGrid): filter row, sorting, grouping, column chooser ═══ */
.jg-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-block-end: 1px solid var(--j-line); }
.jg-search { max-inline-size: 300px; }
.jg-groups { flex: 1; min-inline-size: 260px; min-block-size: 40px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 4px 10px;
             border: 1px dashed var(--j-line); border-radius: 10px; color: var(--j-muted); font-size: 12.5px; }
.jg-hint { white-space: nowrap; }
.jg-chip { display: inline-flex; align-items: center; gap: 6px; block-size: 28px; padding: 0 9px; border-radius: 8px; background: var(--j-navy-3); color: #fff; font-weight: 700; font-size: 12.5px; }
.jg-chip button { background: none; border: 0; color: inherit; padding: 0; display: grid; opacity: .8; cursor: pointer; }
.jg-add.j-select { block-size: 30px; inline-size: auto; min-inline-size: 0; font-size: 12.5px; border-style: dashed; color: var(--j-muted); padding-block: 0; }
.jg-colsbox { position: relative; }
.jg-colsbox .j-btn.on { background: var(--j-navy-3); color: #fff; border-color: var(--j-navy-3); }
.jg-cols-backdrop { position: fixed; inset: 0; z-index: 29; }
.jg-cols { position: absolute; inset-inline-end: 0; inset-block-start: calc(100% + 6px); z-index: 30; min-inline-size: 240px; max-block-size: 380px; overflow: auto;
           display: flex; flex-direction: column; gap: 2px; padding: 8px; background: var(--j-surface); border: 1px solid var(--j-line); border-radius: 12px; box-shadow: var(--j-shadow-lg); }
.jg-col { display: flex; align-items: center; gap: 9px; block-size: 34px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: var(--j-text); font: inherit; font-size: 13px; text-align: start; cursor: pointer; }
.jg-col:hover { background: var(--j-surface-2); }
.jg-col .box { inline-size: 18px; block-size: 18px; border-radius: 5px; border: 1.5px solid var(--j-line); display: grid; place-items: center; flex: none; }
.jg-col.on .box { background: var(--j-teal); border-color: var(--j-teal); color: #fff; }
.jg-reset { margin-block-start: 6px; justify-content: center; }
.jg th[draggable="true"] { cursor: pointer; user-select: none; }
.jg th[draggable="true"]:hover, .jg th.sorted { color: var(--j-text); }
.jg th .j-icon { vertical-align: middle; margin-inline-start: 4px; }
.jg .jg-filters th { padding: 6px 8px; background: var(--j-surface); }
.jg .jg-filters .j-input, .jg .jg-filters .j-select { block-size: 30px; inline-size: 100%; min-inline-size: 70px; padding-block: 0; padding-inline: 8px; font-size: 12.5px; font-weight: 400; }
.jg .jg-filters .on { border-color: var(--j-teal); background: var(--j-teal-soft); }
.jg td.num { font-variant-numeric: tabular-nums; }
.jg tr.jg-group td { background: var(--j-blue-soft); color: var(--j-text); font-size: 13px; padding-block: 8px; cursor: pointer; font-weight: 700; }
.jg tr.jg-group.lv1 td, .jg tr.jg-group.lv2 td { background: var(--j-surface-2); }
.jg-glabel { display: inline-flex; align-items: center; gap: 6px; }
.jg-glabel small { color: var(--j-muted); font-weight: 600; }
.jg-count { display: inline-block; min-inline-size: 22px; padding: 0 7px; border-radius: 99px; background: var(--j-surface); border: 1px solid var(--j-line); color: var(--j-muted); font-size: 11.5px; font-weight: 700; text-align: center; font-family: var(--j-font-num); }
.jg tfoot td { font-weight: 800; border-block-start: 2px solid var(--j-line); }

/* ═══ Debit / credit colors (owner's convention from Sarh): debit red, credit green ═══ */
:root { --j-debit: #C0392B; --j-credit: #1E8449; }
:root[data-theme="dark"] { --j-debit: #F08074; --j-credit: #4CC38A; }
.dr { color: var(--j-debit); }
.cr { color: var(--j-credit); }

/* ═══ Trial balance ═══ */
.tb-toolbar .j-input[type="date"] { min-inline-size: 0; inline-size: 150px; }
.tb-lbl { font-size: 13px; color: var(--j-muted); }
.tb thead th.tb-band { text-align: center; border-inline-start: 1px solid var(--j-line); color: var(--j-text); }
.tb thead th.dr { color: var(--j-debit); font-weight: 700; }
.tb thead th.cr { color: var(--j-credit); font-weight: 700; }
/* Amount cells are LTR (digits), so the band separators use the page side, not the cell's logical start. */
[dir="rtl"] .tb .tb-sep { border-right: 1px solid var(--j-line); }
[dir="ltr"] .tb .tb-sep { border-left: 1px solid var(--j-line); }
.tb-code-h { inline-size: 110px; }
.tb td.tb-code { color: var(--j-muted); direction: ltr; text-align: end; inline-size: 110px; }
.tb td { padding-block: 9px; }
.tb td.num { font-variant-numeric: tabular-nums; }
.tb tbody tr.tb-group td { background: var(--j-surface-2); font-weight: 700; }
.tb tbody tr.tb-group.lv1 td { background: color-mix(in srgb, var(--j-blue-soft) 70%, var(--j-surface)); font-weight: 800; }
.tb tbody tr.tb-group td.tb-code { color: var(--j-navy-3); }
.tb td.tb-close { font-weight: 700; }
.tb tfoot td { font-weight: 800; font-size: 14px; border-block-start: 2px solid var(--j-line); }
.tb-print-head { display: none; padding: 0 0 10px; }
.tb-print-head h2 { font-size: 18px; font-weight: 800; }
.tb-print-head p { margin: 2px 0 0; color: var(--j-muted); }
@media print { .tb-print-head { display: block; } .tb-toolbar, .j-hintbar { display: none !important; } }

/* Shortcut hint bar under a screen (owner's MTA style). */
.j-hintbar { display: flex; gap: 20px; flex-wrap: wrap; padding: 10px 4px 0; font-size: 12.5px; color: var(--j-muted); }
.j-hintbar span { display: inline-flex; align-items: center; gap: 6px; }

/* ═══ Print preview (JPdfPreview) ═══ */
.j-pdf-back { position: fixed; inset: 0; z-index: 90; background: rgba(2, 18, 36, .55); }
.j-pdf { position: fixed; inset: 3vh 3vw; z-index: 91; background: var(--j-surface); border-radius: 16px; display: flex; flex-direction: column; box-shadow: var(--j-shadow-lg); overflow: hidden; }
.j-pdf-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-block-end: 1px solid var(--j-line); background: var(--j-surface-2); flex-wrap: wrap; }
.j-pdf-head h2 { margin: 0; flex: 1; font-size: 16px; font-weight: 800; min-inline-size: 160px; }
.j-pdf-icon { inline-size: 34px; block-size: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--j-navy); color: var(--j-teal); }
.j-pdf-body { position: relative; flex: 1; background: #525659; }
.j-pdf-body iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; }
.j-pdf-wait { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; }
.j-pdf-foot { padding: 8px 14px; font-size: 12.5px; color: var(--j-muted); border-block-start: 1px solid var(--j-line); }
.j-pdf:not([data-kind="html"]) .only-html { display: none; }
.j-pdf:not([data-kind="pdf"]) .only-pdf { display: none; }
.j-warn-text { color: var(--j-warn); font-weight: 600; font-size: 13px; }

/* ═══ General ledger / journal book ═══ */
.gl tr.gl-account td { background: var(--j-blue-soft); font-weight: 800; color: var(--j-text); padding-block: 10px; }
.gl .gl-code { color: var(--j-navy-3); margin-inline-end: 8px; }
:root[data-theme="dark"] .gl .gl-code { color: var(--j-sky); }
.gl .gl-open { margin-inline-start: 12px; font-size: 12px; font-weight: 600; color: var(--j-blue); }
.gl tr.gl-opening td { color: var(--j-muted); font-weight: 600; }
.gl tr.gl-total td { font-weight: 800; border-block-end: 2px solid var(--j-line); background: var(--j-surface-2); }
.jb tr.jb-entry td { background: var(--j-surface-2); font-weight: 700; padding-block: 9px; }
.jb .jb-number { color: var(--j-navy-3); margin-inline-end: 10px; }
:root[data-theme="dark"] .jb .jb-number { color: var(--j-sky); }
.jb .jb-type { font-size: 11.5px; font-weight: 700; color: var(--j-muted); border: 1px solid var(--j-line); border-radius: 6px; padding: 1px 7px; margin-inline-end: 8px; }
.jb tr.jb-line td { padding-block: 7px; }
/* Classic journal layout: the credit side is indented under the debit side. */
.jb td.jb-credit { padding-inline-start: 42px; }
.j-table thead th.dr { color: var(--j-debit); }
.j-table thead th.cr { color: var(--j-credit); }
