.bookkeeping-page .bk-company{margin:10px 0 0;font:700 26px/1.2 Georgia,serif;color:var(--green)}
.bookkeeping-page .bk-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:16px 20px;margin:0 0 20px}
.bookkeeping-page .bk-card h2{font-size:22px;margin:0 0 8px}
.bookkeeping-page .bk-banner{background:#fffaf0;border:2px solid #b8860b;border-radius:10px;padding:14px 18px;margin:0 0 20px}
.bookkeeping-page .bk-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 20px}
.bookkeeping-page .bk-tile{background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 18px;display:flex;flex-direction:column;gap:2px}
.bookkeeping-page .bk-tile-label{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.bookkeeping-page .bk-tile strong{font:700 28px/1.2 Georgia,serif;color:var(--green)}
.bookkeeping-page .bk-tile small{color:var(--muted);font-size:13px}
.bookkeeping-page .neg{color:#a3361f}.bookkeeping-page .pos{color:#1f6b3a}
.bookkeeping-page .bk-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.bookkeeping-page .bk-list{margin:0;padding-left:18px}
.bookkeeping-page .bk-trend{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;align-items:end}
.bookkeeping-page .bk-bar{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:13px}
.bookkeeping-page .bk-bars{display:flex;gap:4px;align-items:flex-end;height:120px;width:100%;justify-content:center;border-bottom:1px solid var(--line)}
.bookkeeping-page .bk-bars span{display:block;width:30%;min-height:2px;border-radius:3px 3px 0 0}
.bookkeeping-page .bk-bars .in{background:#2f7a4f}.bookkeeping-page .bk-bars .out{background:#c0872b}
.bookkeeping-page .bk-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;align-items:end}
.bookkeeping-page .bk-form label{display:flex;flex-direction:column;gap:4px;font-weight:600;font-size:14px}
.bookkeeping-page .bk-form .bk-wide{grid-column:span 2}
.bookkeeping-page .bk-form button{justify-self:start}
.bookkeeping-page .bk-check{flex-direction:row!important;align-items:center;gap:8px!important;font-weight:500!important}
.bookkeeping-page input,.bookkeeping-page select,.bookkeeping-page textarea{font:inherit;padding:8px 10px;border:1px solid #b9c4b8;border-radius:6px;background:#fff;color:var(--ink);max-width:100%}
.bookkeeping-page input[type=checkbox]{width:18px;height:18px;padding:0}
.bookkeeping-page textarea{width:100%}
.bookkeeping-page button{font:inherit;font-weight:650;padding:9px 16px;border-radius:6px;border:1px solid var(--green);background:var(--green);color:#fff;cursor:pointer}
.bookkeeping-page button.secondary{background:#fff;color:var(--green)}
.bookkeeping-page button:disabled{opacity:.6;cursor:wait}
.bookkeeping-page .bk-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
.bookkeeping-page .bk-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin:0 0 12px}
.bookkeeping-page .bk-filters label{display:flex;flex-direction:column;font-size:14px;font-weight:600;gap:4px}
.bookkeeping-page .bk-table-wrap{overflow-x:auto}
.bookkeeping-page .bk-table{width:100%;border-collapse:collapse;font-size:14px}
.bookkeeping-page .bk-table th{text-align:left;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);border-bottom:2px solid var(--line);padding:8px 8px}
.bookkeeping-page .bk-table td{border-bottom:1px solid var(--line);padding:8px;vertical-align:top}
.bookkeeping-page .bk-table td select{min-width:200px}
.bookkeeping-page .bk-sub{display:block;color:var(--muted);font-size:12.5px;line-height:1.4}
.bookkeeping-page .bk-row-actions{display:flex;flex-wrap:wrap;gap:6px}
.bookkeeping-page .bk-row-actions button{padding:5px 10px;font-size:13px}
.bookkeeping-page .bk-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.bookkeeping-page .bk-high{background:#e2f1e6;color:#1f6b3a}.bookkeeping-page .bk-mid{background:#fdf1d8;color:#7a5306}.bookkeeping-page .bk-low{background:#fbe3dd;color:#a3361f}.bookkeeping-page .bk-none{background:#eceeea;color:#4c5852}
.bookkeeping-page .bk-help{display:inline-block;position:relative;cursor:help;color:var(--green);font-weight:400;margin-left:2px}
.bookkeeping-page .bk-help:hover::after,.bookkeeping-page .bk-help:focus::after{content:attr(data-tip);position:absolute;left:50%;top:100%;transform:translateX(-50%);margin-top:6px;z-index:20;width:260px;padding:10px 12px;background:#183a37;color:#fff;border-radius:8px;font-size:13px;line-height:1.45;font-weight:400;text-transform:none;letter-spacing:0;box-shadow:0 4px 14px rgba(0,0,0,.2)}
.bookkeeping-page .bk-msg{padding:10px 14px;border-radius:8px;background:#e2f1e6;margin:0 0 16px}
.bookkeeping-page .bk-msg.error{background:#fbe3dd;color:#7d2412}
.bookkeeping-page .bk-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0}
.bookkeeping-page .bk-plan{border:1px solid var(--line);border-radius:10px;padding:14px 18px}
.bookkeeping-page .bk-plan.current{border:2px solid var(--green);background:#f3f7f0}
.bookkeeping-page .bk-plan h3{margin:0;font:700 19px/1.3 Georgia,serif}
.bookkeeping-page .bk-price{font-size:22px;font-weight:750;color:var(--green);margin:4px 0}
.bookkeeping-page .bk-plan ul{padding-left:18px;font-size:14px}
.bookkeeping-page .bk-current{font-weight:700;color:var(--green)}
.bookkeeping-page .bk-total{font-weight:700;font-size:17px}
.bookkeeping-page .bk-q{border-bottom:1px solid var(--line);padding:10px 0}
.bookkeeping-page .bk-q-body{font-weight:600;margin:2px 0}
.bookkeeping-page .bk-a{background:#f3f7f0;border-radius:8px;padding:8px 12px;margin:6px 0;white-space:pre-wrap}
.bookkeeping-page dialog{border:1px solid var(--line);border-radius:12px;padding:20px 24px;max-width:560px;width:calc(100% - 32px)}
.bookkeeping-page dialog label{display:flex;flex-direction:column;gap:4px;font-weight:600;margin:0 0 10px}
.bookkeeping-page .bk-preview img{max-width:100%;max-height:60vh}
.bookkeeping-page [hidden]{display:none!important}
@media(max-width:900px){.bookkeeping-page .bk-tiles,.bookkeeping-page .bk-grid2,.bookkeeping-page .bk-plans{grid-template-columns:1fr}.bookkeeping-page .bk-form{grid-template-columns:1fr}.bookkeeping-page .bk-form .bk-wide{grid-column:auto}}
@media print{.bookkeeping-page .tool-layout{display:grid!important}}
.bookkeeping-page .bk-label{display:block}
.bookkeeping-page .bk-one{grid-template-columns:minmax(0,1fr);max-width:520px}
.bookkeeping-page .bk-one .bk-wide{grid-column:auto}
.bookkeeping-page .bk-form .bk-check{padding-bottom:9px}
.bookkeeping-page .bk-one .bk-check{padding-bottom:0}
.bookkeeping-page span.neg,.bookkeeping-page span.pos{white-space:nowrap}
.bookkeeping-page .bk-row-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:flex-start}.bookkeeping-page .bk-row-actions button{margin:0;padding:6px 10px;font-size:13px}
.bookkeeping-page .bk-ledger-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 14px;margin:8px 0 12px}
.bookkeeping-page .bk-ledger-filters select,.bookkeeping-page .bk-ledger-filters input{width:100%}
.bookkeeping-page .bk-totals{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#f6f8f4}
.bookkeeping-page .bk-total{display:flex;flex-direction:column;min-width:110px}
.bookkeeping-page .bk-total small{font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.bookkeeping-page .bk-total strong{font-size:18px}
.bookkeeping-page .bk-total-note{flex-basis:100%;margin:0}
.bookkeeping-page .bk-gl-head td{background:#eef2ec;border-top:2px solid var(--line);padding-top:10px}
.bookkeeping-page .bk-gl-sub td{background:#fafbf8;border-bottom:2px solid var(--line)}
.bookkeeping-page .bk-strong{font-weight:700}
@media (max-width:760px){.bookkeeping-page .bk-ledger-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Phase 2: bills, invoices, accounts, checks, fuel, spending and close checklist */
.bookkeeping-page .bk-tiles{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.bookkeeping-page .bk-card h3{font:700 17px/1.3 Georgia,serif;margin:18px 0 8px}
.bookkeeping-page .bk-banner.bk-ok{background:#f0f7f1;border-color:#2f7a4f}
.bookkeeping-page .bk-bulk{background:#f3f7f0;border:1px solid var(--line);border-radius:8px;padding:8px 12px;align-items:center}
.bookkeeping-page .bk-tags{color:#2d5a4a}
.bookkeeping-page .bk-inline{grid-template-columns:repeat(2,max-content)}
.bookkeeping-page .bk-check-item{border:1px solid var(--line);border-radius:8px;padding:10px 14px;margin:0 0 10px}
.bookkeeping-page .bk-check-issue{border-left:4px solid #a3361f}.bookkeeping-page .bk-check-info{border-left:4px solid #b8860b}.bookkeeping-page .bk-check-ok{border-left:4px solid #2f7a4f}
.bookkeeping-page .bk-check-head{display:flex;gap:10px;align-items:center}
.bookkeeping-page .bk-check-item .note{margin:6px 0}
.bookkeeping-page .bk-spend-top{display:flex;flex-wrap:wrap;gap:24px;align-items:center}
.bookkeeping-page .bk-donut-wrap{position:relative;width:220px;height:220px;flex:0 0 220px}
.bookkeeping-page .bk-donut{width:100%;height:100%;transform:rotate(0deg)}
.bookkeeping-page .bk-donut-total{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.bookkeeping-page .bk-donut-total small{color:var(--muted);font-size:12px}.bookkeeping-page .bk-donut-total strong{font:700 18px/1.2 Georgia,serif;color:var(--green)}
.bookkeeping-page .bk-legend{list-style:none;margin:0;padding:0;display:grid;gap:6px;min-width:240px;flex:1}
.bookkeeping-page .bk-legend li{display:grid;grid-template-columns:14px 1fr auto;gap:8px;align-items:center;font-size:14px}
.bookkeeping-page .bk-swatch{width:14px;height:14px;border-radius:3px;display:block}
.bookkeeping-page .bk-hbars{display:grid;gap:6px}
.bookkeeping-page .bk-hbar{display:grid;grid-template-columns:minmax(140px,240px) 1fr minmax(120px,auto);gap:10px;align-items:center;font-size:14px}
.bookkeeping-page .bk-hbar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bookkeeping-page .bk-hbar-track{background:#eef1ec;border-radius:4px;height:14px;overflow:hidden}
.bookkeeping-page .bk-hbar-fill{display:block;height:100%;background:#1f6f8b;border-radius:4px}
.bookkeeping-page .bk-hbar-val{text-align:right;color:var(--muted);white-space:nowrap}
.bookkeeping-page .bk-steps{display:grid;gap:10px;margin:8px 0}
.bookkeeping-page .bk-step{border-bottom:1px solid var(--line);padding:0 0 8px}
.bookkeeping-page .bk-step .bk-sub{margin-left:26px}
@media (max-width:760px){.bookkeeping-page .bk-hbar{grid-template-columns:1fr;gap:2px}.bookkeeping-page .bk-hbar-val{text-align:left}}
.bookkeeping-page .bk-table td:last-child .bk-row-actions{flex-wrap:nowrap}
.bookkeeping-page .bk-legend{max-width:440px}

/* Top expenses: a tile that spans two columns in the overview grid. */
.bookkeeping-page .bk-tile-top{grid-column:span 2}
.bookkeeping-page .bk-tile-top table{margin-top:4px;font-size:14px}
.bookkeeping-page .bk-tile-top td,.bookkeeping-page .bk-tile-top th{padding:3px 8px 3px 0}
@media(max-width:900px){.bookkeeping-page .bk-tile-top{grid-column:auto}}

.bk-share{border-left:4px solid #1f6b3a}
.bk-share p{margin:0 0 .5rem}
.bk-share-actions{display:flex;flex-wrap:wrap;gap:8px}

/* Settings > Chart of accounts (view only). */
.bk-chart-group{border:1px solid var(--line);border-radius:8px;margin:8px 0;padding:0 12px}
.bk-chart-group>summary{cursor:pointer;padding:10px 0;font-weight:650}
.bk-chart-group[open]>summary{border-bottom:1px solid var(--line);margin-bottom:8px}
.bk-chart-group .bk-table-wrap{margin-bottom:10px}
.bk-chart-costs{display:grid;gap:6px;min-width:220px}
.bk-chart-item{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:.92em}
.bk-chart-costs>button{justify-self:start}
/* Register view: a checkbook-style ledger with a side list of banks and cards. */
.bookkeeping-page .bk-register-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.bookkeeping-page .bk-register-layout:has(> .bk-reg-side:not([hidden])){grid-template-columns:minmax(0,1fr) 240px}
.bookkeeping-page .bk-register{font-size:13px;font-variant-numeric:tabular-nums}
.bookkeeping-page .bk-register thead th{position:sticky;top:0;background:#f3f5f4;z-index:1;padding:6px 8px;font-size:11px}
.bookkeeping-page .bk-register th.num,.bookkeeping-page .bk-register td.num{text-align:right;white-space:nowrap}
.bookkeeping-page .bk-register th.clr,.bookkeeping-page .bk-register td.clr{text-align:center;width:36px}
.bookkeeping-page .bk-register td{padding:4px 8px;border-bottom:1px solid #e3e7e5;vertical-align:top}
.bookkeeping-page .bk-register tbody tr:nth-child(even) td{background:#f8faf9}
.bookkeeping-page .bk-register tbody tr:hover td{background:#eef4f1}
.bookkeeping-page .bk-register .bk-reg-date{white-space:nowrap}
.bookkeeping-page .bk-reg-payee,.bookkeeping-page .bk-reg-memo{display:flex;flex-direction:column;gap:2px;min-width:0}
.bookkeeping-page .bk-reg-payee{min-width:170px}
.bookkeeping-page .bk-reg-line1{font-weight:600;color:var(--ink,#18211e)}
.bookkeeping-page .bk-reg-memo .bk-reg-line1{font-weight:400}
.bookkeeping-page .bk-reg-line2{font-size:12px;color:var(--muted)}
.bookkeeping-page .bk-reg-pending{color:#8a5a00}
.bookkeeping-page .bk-reg-excluded td{color:var(--muted);text-decoration:line-through}
.bookkeeping-page .bk-reg-excluded td .bk-row-actions{text-decoration:none}
.bookkeeping-page .bk-register .pos{color:#1d6b3a}
.bookkeeping-page .bk-register .neg,.bookkeeping-page .bk-reg-side .neg{color:#a32020}
.bookkeeping-page .bk-register .bk-reg-clr{font:inherit;font-weight:700;width:22px;height:22px;min-height:0;min-width:0;padding:0;border:1px dashed #c9d1cd;border-radius:50%;background:transparent;color:#1d6b3a;cursor:pointer;line-height:1}
.bookkeeping-page .bk-register .bk-reg-clr.is-cleared{border:1px solid #1d6b3a;background:#e6f2ea}
.bookkeeping-page .bk-reg-clr:disabled{cursor:default;opacity:.6}
.bookkeeping-page .bk-reg-memo{min-width:110px}
.bookkeeping-page .bk-reg-menu{position:relative;display:inline-block}
.bookkeeping-page .bk-register td:last-child{width:1%;text-align:right}
.bookkeeping-page .bk-reg-menu summary{cursor:pointer;list-style:none;font-size:12px;font-weight:600;padding:3px 10px;border:1px solid #c9d1cd;border-radius:4px;background:#fff;white-space:nowrap}
.bookkeeping-page .bk-reg-menu summary::-webkit-details-marker{display:none}
.bookkeeping-page .bk-reg-menu-panel{position:absolute;right:0;top:calc(100% + 4px);z-index:5;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 6px 18px rgba(0,0,0,.12);padding:8px}
.bookkeeping-page .bk-register .bk-row-actions{gap:6px;flex-wrap:nowrap}
.bookkeeping-page .bk-register .bk-row-actions button{padding:2px 8px;font-size:12px;min-height:26px}
.bookkeeping-page .bk-reg-foot{display:flex;flex-wrap:wrap;gap:8px 28px;justify-content:flex-end;padding:10px 8px;border-top:2px solid var(--line);background:#f3f5f4;font-size:14px}
.bookkeeping-page .bk-reg-foot strong:first-child{margin-right:auto}
.bookkeeping-page .bk-reg-side{border:1px solid var(--line);border-radius:8px;padding:12px;background:#fbfcfb;position:sticky;top:12px;font-size:13px}
.bookkeeping-page .bk-reg-side h3{margin:0 0 8px;font-size:15px}
.bookkeeping-page .bk-reg-acct{display:flex;justify-content:space-between;gap:8px;width:100%;font:inherit;text-align:left;background:none;border:0;border-radius:4px;padding:6px 8px;cursor:pointer;color:inherit}
.bookkeeping-page .bk-reg-acct:hover{background:#eef4f1}
.bookkeeping-page .bk-reg-acct.is-current{background:#183a37;color:#fff}
.bookkeeping-page .bk-reg-acct.is-current .neg{color:#ffd2d2}
.bookkeeping-page .bk-reg-acct span:last-child{white-space:nowrap;font-variant-numeric:tabular-nums}
.bookkeeping-page .bk-reg-group,.bookkeeping-page .bk-reg-net{display:flex;justify-content:space-between;gap:8px;padding:10px 8px 4px;border-top:1px solid var(--line);margin-top:6px;font-variant-numeric:tabular-nums}
.bookkeeping-page .bk-reg-add{margin-top:12px;width:100%}
@media(max-width:1300px){.bookkeeping-page .bk-register-layout:has(> .bk-reg-side:not([hidden])){grid-template-columns:minmax(0,1fr)}.bookkeeping-page .bk-reg-side{position:static;order:-1}}
.bookkeeping-page button.bk-link{background:none;border:0;padding:0;color:var(--green);text-decoration:underline;cursor:pointer;font:inherit;font-weight:600;text-align:left;min-height:0}
.bookkeeping-page button.bk-link{min-height:0;margin:0;padding:0;border:0;background:none;color:var(--green);font:inherit;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
/* Full bookkeeper (Customer Bookkeeping and Company Books, 2026-11-01): direct imports, register categories,
   folded sections and the chart of accounts with average spending. */
/* Ledger imports go straight into the register; no sorting step. */
body.full-books label:has(> input[name="preview"]),body.full-books #bk-stage{display:none!important}
/* Register line two: category picker, then Approve, Edit, Exclude and Research. */
body.full-books .bk-reg-cat{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;margin-top:4px}
body.full-books .bk-reg-select{font:inherit;font-size:12px;max-width:280px;padding:2px 4px;border:1px solid #c9d1cd;border-radius:4px;background:#fff;color:#1f2a27}
body.full-books .bk-reg-select.bk-reg-pending{border-color:#d9b25c;background:#fffaf0}
body.full-books .bk-reg-tag{font-size:11px;color:#8a5a00;white-space:nowrap}
body.full-books .bk-reg-btn{font-size:12px;padding:2px 8px;min-height:0;line-height:1.5}
body.full-books .bk-research h4{margin:12px 0 4px}
body.full-books .bk-research ul{margin:0;padding-left:20px}
/* Approved label, the "apply to all" choice, and the closed Add an entry / Import sections (2026-10-31). */
body.full-books .bk-reg-tag.bk-reg-ok{color:var(--green);font-weight:600}
body.full-books dialog label.bk-scope{display:flex;flex-direction:row;gap:10px;align-items:center;font-weight:500;margin:10px 0;cursor:pointer}
body.full-books dialog label.bk-scope input{width:20px;height:20px;flex:none;margin:0}
body.full-books details.bk-fold{background:#fff;border:1px solid var(--line);border-radius:10px;margin:0 0 16px}
body.full-books details.bk-fold>summary{cursor:pointer;padding:12px 20px;font:18px/1.3 Georgia,serif;color:var(--ink)}
body.full-books details.bk-fold>summary:hover{background:#eef2ea;border-radius:10px}
body.full-books details.bk-fold>fieldset{border:0;margin:0;padding-top:0}
body.full-books details.bk-fold>fieldset>legend{display:none}
/* Chart of accounts: one table with main accounts and indented sub-accounts, plus average spending. */
body.full-books .bk-coa-top{margin:8px 0 12px}
body.full-books .bk-coa-h{margin:8px 0 6px;font:18px/1.3 Georgia,serif}
body.full-books .bk-coa-avg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;max-width:760px}
body.full-books .bk-coa-avg-item{background:#f3f6f0;border:1px solid var(--line);border-radius:8px;padding:10px 14px}
body.full-books .bk-coa-avg-label{display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
body.full-books .bk-coa-avg-item strong{font-size:20px}
body.full-books .bk-coa-table th.bk-num,body.full-books .bk-coa-table td.bk-num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
body.full-books .bk-coa-table tr.bk-coa-sec th{background:#e9efe4;color:var(--ink);font-size:13px;letter-spacing:.06em;text-transform:uppercase;padding:8px}
body.full-books .bk-coa-table tr.bk-coa-main td{background:#fff}
body.full-books .bk-coa-table tr.bk-coa-sub td{background:#fbfcfa}
body.full-books .bk-coa-table tr.bk-coa-sub .bk-coa-name,body.full-books .bk-coa-table tr.bk-coa-sub .bk-coa-hint{padding-left:22px;display:block}
body.full-books .bk-coa-table tr.bk-coa-sub td.bk-coa-code{color:var(--muted)}
body.full-books .bk-coa-hint{font-size:13px;color:var(--muted);margin-top:2px}
body.full-books .bk-coa-table .bk-reg-btn{min-height:28px;padding:2px 10px;margin:0 0 0 6px;font-size:12px}
@media(max-width:700px){body.full-books .bk-coa-avg{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Settings and Reports sections fold to their heading; text uses the full card width (2026-10-31). */
body.full-books .bk-card p,body.full-books .bk-card .note{max-width:none}
body.full-books details.bk-card-fold>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px}
body.full-books details.bk-card-fold>summary::-webkit-details-marker{display:none}
body.full-books details.bk-card-fold>summary::before{content:"\25B8";font-size:16px;color:var(--green);transition:transform .15s}
body.full-books details.bk-card-fold[open]>summary::before{transform:rotate(90deg)}
body.full-books details.bk-card-fold>summary h2{margin:0}
body.full-books details.bk-card-fold[open]>summary{margin-bottom:8px}
body.full-books .bk-report-dates-title{margin:0 0 4px;font-weight:700}
body.full-books .bk-report-dates .bk-filters{margin:0}
/* Customer page column is narrower than Company Books: the Banks and cards panel moves under the register. */
body.full-books:not(.company-books) .bk-register-layout:has(> .bk-reg-side:not([hidden])){grid-template-columns:minmax(0,1fr)}
/* AI suggestions box on Transactions (replaces the Review page), beside View in the ledger filters. */
.bookkeeping-page .bk-ai-box{grid-column:span 3;border:1px solid #d9d4c7;border-radius:8px;background:#fbfaf6;padding:8px 12px;display:flex;flex-direction:column;gap:6px;align-self:end}
.bookkeeping-page .bk-ai-head{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline}
.bookkeeping-page .bk-ai-head .note{margin:0}
.bookkeeping-page .bk-ai-box .bk-actions{margin:0;flex-wrap:wrap;gap:8px}
.bookkeeping-page .bk-ai-box button{min-height:36px;padding:6px 14px;font-size:14px}
@media (max-width:760px){.bookkeeping-page .bk-ai-box{grid-column:1/-1}}
.bookkeeping-page .bk-group-pick{display:flex;flex-direction:column;gap:6px}.bookkeeping-page .bk-group-pick [hidden]{display:none}

.bookkeeping-page .bk-dialog-error{color:#8a1c1c;background:#fdecea;border:1px solid #e3b4ae;border-radius:6px;padding:8px 10px;margin:0 0 10px}.bookkeeping-page .bk-dialog-error[hidden]{display:none}
.bookkeeping-page .bk-reg-xfer{background:none;border:0;padding:0 0 0 8px;font:inherit;font-size:.85em;color:#1d4f73;text-decoration:underline;cursor:pointer}.bookkeeping-page .bk-reg-xfer.bk-reg-pending{color:#8a4b00}
/* Register line one: payee on the left, Edit, Exclude and Research on the right; line two keeps the
   category, the transfer account and Approve or Approved, so an entry is never three lines (2026-11-03). */
body.full-books .bk-reg-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
body.full-books .bk-reg-top .bk-reg-line1{min-width:0;overflow-wrap:anywhere}
body.full-books .bk-reg-acts{display:flex;flex:none;gap:6px;align-items:center}
body.full-books .bk-reg-excluded td .bk-reg-acts{text-decoration:none}
body.full-books .bk-reg-cat{flex-wrap:nowrap}
body.full-books .bk-reg-cat .bk-reg-select{flex:1 1 auto;width:130px;max-width:280px}
body.full-books .bk-reg-acts button,body.full-books .bk-reg-cat button{margin:0}
body.full-books .bk-reg-cat>:not(select){flex:none}
@media (max-width:760px){body.full-books .bk-reg-cat,body.full-books .bk-reg-top{flex-wrap:wrap}}
body.full-books .bk-reg-payee{min-width:320px}
body.full-books .bk-reg-cat .bk-reg-xfer{flex:1 1 auto;width:60px;max-width:max-content;min-width:0;min-height:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:760px){body.full-books .bk-reg-payee{min-width:0}}
/* Receipts: several at once, and receipts on entries */
.bookkeeping-page .bk-receipt-drop.is-drag{outline:2px dashed #1d4f73;outline-offset:4px;background:#eef4f8}
.bookkeeping-page .bk-progress{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:4px;font-size:14px}
.bookkeeping-page .bk-progress[hidden]{display:none}
.bookkeeping-page .bk-progress-item{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:#fff}
.bookkeeping-page .bk-progress-name{overflow-wrap:anywhere;font-weight:600}
.bookkeeping-page .bk-progress-item.is-done .bk-progress-state{color:#1f6b3a}
.bookkeeping-page .bk-progress-item.is-error .bk-progress-state{color:#8a1c1c}
.bookkeeping-page .bk-reg-receipt{background:none;border:0;padding:0;margin:0;min-height:0;font:inherit;color:#1d4f73;text-decoration:underline;cursor:pointer}
.bookkeeping-page .bk-reg-receipt:hover{color:#0f3350}
.bookkeeping-page .bk-reg-add-receipt{color:var(--muted)}
.bookkeeping-page .bk-receipt-box{border-top:1px solid var(--line);margin:6px 0 10px;padding-top:8px}
.bookkeeping-page .bk-receipt-head{font-size:15px;margin:0 0 6px}
.bookkeeping-page .bk-receipt-viewer .bk-preview img{display:block;max-width:100%;max-height:70vh;margin:0 auto}
@media (hover:hover) and (pointer:fine){.bookkeeping-page #bk-receipt-photo-btn{display:none}}

.bookkeeping-page .bk-more{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;padding:14px 8px;border-top:1px solid var(--line)}
.bookkeeping-page .bk-more .note{margin:0}
/* Daily log */
.bk-facts{display:grid;grid-template-columns:max-content max-content;gap:.25rem 1.5rem;margin:.5rem 0 1rem}
.bk-facts dt{color:var(--muted,#555)}
.bk-facts dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.bk-warn{color:#8a3b00;font-weight:600}
.bookkeeping-page .bk-neg,.bookkeeping-page .bk-tile strong.bk-neg{color:#a11a1a}
.bookkeeping-page .bk-form .bk-odo{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 16px;border:1px solid var(--line);border-radius:10px;padding:12px}
.bookkeeping-page .bk-odo>p{grid-column:1/-1;margin:0}
.bookkeeping-page .bk-odo-col{display:grid;gap:8px;align-content:start}
.bookkeeping-page .bk-photo input[type=file]{font-size:13px;max-width:100%}
.bookkeeping-page .bk-day-who small{display:block;color:var(--muted)}
@media(max-width:900px){.bookkeeping-page .bk-form .bk-odo{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.bookkeeping-page .bk-form .bk-odo{grid-template-columns:1fr}}
/* Status pull-down in the Route days list: saves on change. */
#bk-days select.bk-day-status{width:auto;min-width:0;max-width:7.5rem;padding:.3rem 1.6rem .3rem .5rem;font-size:.875rem;min-height:2.25rem}
