/* Money / QuickBooks uses the shared Listings tokens and outline icon style. */
#moneyBankReview { --qb-icon: var(--accent); }
.qb-heading { display:flex; gap:12px; align-items:center; margin:24px 0 16px; }
.qb-heading h3 { margin:0; font-size:var(--fs-title); letter-spacing:-.025em; }
.qb-heading p { margin:3px 0 0; color:var(--muted); font-size:var(--fs-small); }
.qb-icon { width:42px;height:42px;border-radius:13px;background:var(--accent-soft);color:var(--accent);display:inline-flex;align-items:center;justify-content:center;flex:none; }
.qb-icon svg, .qb-inline-icon svg { width:22px;height:22px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round; }
.qb-inline-icon { display:inline-flex;align-items:center;vertical-align:middle;margin-right:7px;color:var(--accent); }
.qb-inline-icon svg { width:18px;height:18px; }
.qb-widgets { grid-template-columns:repeat(4,minmax(0,1fr)); }
.qb-widgets .overview-widget { position:relative;padding:20px; }
.qb-widgets .qb-icon { width:34px;height:34px;border-radius:11px;margin-bottom:14px; }
.qb-widgets .qb-icon svg { width:19px;height:19px; }
.qb-widgets dd { font-size:clamp(23px,2.2vw,32px); }
.qb-position { background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);padding:22px;display:flex;gap:24px;align-items:center;justify-content:space-between;margin:16px 0; }
.qb-position small { display:block;color:var(--muted); }
.qb-position strong { display:block;font-size:clamp(24px,3vw,34px);letter-spacing:-.035em;font-variant-numeric:tabular-nums; }
.qb-position.negative { border-left:4px solid var(--warn); }
.qb-position.positive { border-left:4px solid var(--ok); }
.qb-freshness { display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:var(--fs-small);line-height:1.6;margin:12px 0 20px; }
.qb-source-note { border:1px solid var(--line);background:var(--surface-2);border-radius:var(--r);padding:14px 16px;font-size:var(--fs-small);margin:12px 0; }
.qb-toolbar { display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:var(--r-lg);padding:18px;margin:16px 0; }
.qb-toolbar label { flex:1 1 250px;font-weight:600; }
.qb-toolbar label:last-child { flex:0 1 170px; }
#moneyBankReview select, #moneyBankReview input:not([type=checkbox]), #moneyBankReview textarea { font:inherit;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--card);color:var(--ink);padding:10px 12px;min-height:44px;max-width:100%; }
#moneyBankReview input[type=checkbox] { width:18px;height:18px;accent-color:var(--accent);vertical-align:middle;margin-right:8px; }
#moneyBankReview select:focus, #moneyBankReview input:focus, #moneyBankReview textarea:focus { outline:2px solid var(--accent-soft);border-color:var(--accent); }
.qb-toolbar select { display:block;margin-top:8px;width:100%; }
#moneyBankReview .bank-review-row { background:var(--card);border:1px solid var(--line)!important;border-radius:var(--r)!important;box-shadow:var(--shadow);padding:0!important;overflow:hidden; }
.bank-review-row > summary { list-style:none;display:flex;align-items:center;gap:12px;padding:18px;cursor:pointer;min-height:70px; }
.bank-review-row > summary::-webkit-details-marker { display:none; }
.qb-row-main { min-width:0;flex:1; }
.qb-row-main b { display:block;overflow-wrap:anywhere; }
.qb-row-main small { color:var(--muted);display:block;margin-top:3px; }
.qb-row-amount { text-align:right;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums; }
.qb-row-amount small { display:block;color:var(--muted);font-weight:500;font-size:var(--fs-small);margin-top:3px; }
.bank-review-row > :not(summary) { margin-left:18px;margin-right:18px; }
.bank-review-row > :last-child { margin-bottom:18px; }
.bank-review-row fieldset { border:0;border-top:1px solid var(--line);padding:18px 0 0;margin-top:16px;min-width:0; }
.bank-review-row legend { font-weight:650;padding-right:12px; }
.bank-review-row fieldset > label, .bank-review-row fieldset > p { display:block;margin:14px 0; }
.bank-review-row label > div { margin-top:7px; }
.bank-review-row textarea { display:block;width:100%;margin-top:8px;min-height:85px!important;resize:vertical; }
.qb-entry-preview { border:1px solid var(--line);border-radius:var(--r);background:var(--surface-2);padding:16px 18px;margin:18px 0; }
.qb-entry-preview p { margin:0;line-height:1.8; }
#moneyBankReview .btn-primary { display:inline-flex;align-items:center;justify-content:center;gap:5px; }
#moneyBankReview button:disabled { opacity:.48;cursor:not-allowed; }
#moneyBankReview details:not(.bank-review-row) > summary { padding:9px 0;cursor:pointer;color:var(--ink);font-weight:600; }
#moneyBankReview pre { white-space:pre-wrap;overflow-wrap:anywhere;padding:16px;border-radius:var(--r-sm);background:var(--surface-2);font-size:12px; }
@media(max-width:1100px){ .qb-widgets{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:600px){ .qb-widgets{gap:10px;} .qb-widgets .overview-widget{padding:15px;} .qb-position{align-items:flex-start;flex-direction:column;gap:12px;padding:18px;} .qb-toolbar{padding:14px;} .qb-toolbar label{flex-basis:100%;} .bank-review-row > summary{padding:14px;gap:9px;} .bank-review-row > summary .qb-icon{width:34px;height:34px;border-radius:10px;} .qb-row-main b{font-size:13px;} #moneyBankReview input:not([type=checkbox]),#moneyBankReview select,#moneyBankReview textarea{font-size:16px;} .bank-review-row fieldset .btn-primary{width:100%;} }

.qb-bulk-tools { display:flex;gap:10px;align-items:center;flex-wrap:wrap;background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:16px;margin:16px 0;box-shadow:var(--shadow);position:sticky;top:72px;z-index:4; }
.qb-bulk-tools>div { flex:1;min-width:210px; }
.qb-bulk-tools small { display:block;color:var(--muted);margin-top:5px; }
.qb-bulk-tools [data-bulk-status] { flex-basis:100%;margin:0; }
.qb-batch-review { background:var(--card);border:2px solid var(--accent);border-radius:var(--r);padding:20px;margin:16px 0;scroll-margin-top:90px; }
.qb-batch-scroll { max-height:55vh;overflow:auto;border:1px solid var(--line);border-radius:var(--r); }
.qb-batch-scroll th { position:sticky;top:0;background:var(--card); }
.qb-batch-scroll td { vertical-align:top;min-width:130px; }
.qb-batch-scroll td:first-child { min-width:230px; }
.qb-batch-confirm { display:flex;align-items:flex-start;gap:10px;margin:18px 0; }
.qb-batch-actions { display:flex;gap:10px;flex-wrap:wrap; }
.bank-review-row>summary>[data-bulk-select] { width:19px;height:19px;flex:none;margin:0; }
@media(max-width:640px) { .qb-bulk-tools { position:static;padding:12px; }.qb-bulk-tools button { width:100%; }.qb-batch-review { padding:14px; } }

.qb-recommendation { border-left:4px solid var(--accent);background:var(--accent-soft);margin-top:8px; }
.qb-recommendation-title { color:var(--accent);font-weight:650;margin-bottom:10px; }
.qb-recommended-payee { font-size:22px;letter-spacing:-.02em; }
.qb-recommended-account { font-size:18px;font-weight:600;margin-bottom:8px!important; }
.qb-recommendation small { display:block;color:var(--muted);margin-top:8px; }
.qb-choice { display:flex;gap:8px;flex-wrap:wrap;margin:8px 0; }
.qb-choice select { flex:1;min-width:180px; }
.qb-payee-label { display:block;margin:14px 0 4px;font-weight:600; }
.qb-change-details { padding:12px 0;border-top:1px solid var(--line);margin-top:16px; }
.qb-change-details > summary,.qb-history > summary { color:var(--muted);cursor:pointer; }
@media(max-width:600px){.qb-choice select{width:100%;min-width:0;flex-basis:100%;}.qb-recommended-payee{font-size:20px;}.qb-recommended-account{font-size:17px;}}

.qb-choice-search{flex-basis:100%;font-size:var(--fs-small);font-weight:400;color:var(--muted);}.qb-choice-search input{width:100%;margin-top:6px;}

/* Keep the five business headline cards balanced across desktop and tablet. */
#moneyBusinessPicture .qb-picture-headlines > .overview-widget:last-child { grid-column:1 / -1; }
@media (min-width:1400px) {
  #moneyBusinessPicture .qb-picture-headlines { grid-template-columns:repeat(5,minmax(0,1fr)); }
  #moneyBusinessPicture .qb-picture-headlines > .overview-widget:last-child { grid-column:auto; }
}

/* Coding remains visible while rows stay closed for fast bulk review. */
.qb-row-coding { display:block;margin-top:10px;border-left:3px solid var(--accent);padding:2px 0 2px 10px;font-size:var(--fs-small);line-height:1.5;overflow-wrap:anywhere; }
.qb-row-coding > span { display:block; }
.qb-row-coding-label { color:var(--accent);font-size:12px;font-weight:600; }
.qb-row-coding-main { font-weight:650;margin-top:2px; }
.qb-row-coding-meta { color:var(--muted);font-size:12px;margin-top:3px; }
.qb-row-coding-warning { color:var(--warn);font-weight:600;margin-top:4px; }
.bank-review-row > summary { align-items:flex-start; }
.bank-review-row > summary > [data-bulk-select] { margin-top:12px; }
@media(max-width:640px){
 .bank-review-row > summary { display:grid;grid-template-columns:20px 30px minmax(0,1fr) auto;align-items:start;gap:8px; }
 .bank-review-row > summary .qb-icon { width:30px;height:30px; }
 .qb-row-main { display:contents; }
 .qb-row-main > b { grid-column:3;grid-row:1;align-self:center; }
 .qb-row-main > small { grid-column:3 / -1;grid-row:2;font-size:12px; }
 .qb-row-amount { grid-column:4;grid-row:1;font-size:13px; }
 .qb-row-amount small { font-size:11px; }
 .qb-row-coding { grid-column:3 / -1;grid-row:3;margin-top:4px; }
}

/* Headline cards disclose their own evidence with native keyboard support. */
#moneyBusinessPicture .qb-picture-card { min-width:0; }
#moneyBusinessPicture .qb-picture-card > summary { display:flex; flex-direction:column; gap:.6rem; cursor:pointer; list-style:none; }
#moneyBusinessPicture .qb-picture-card > summary::-webkit-details-marker { display:none; }
#moneyBusinessPicture .qb-picture-card > summary strong { font-size:1.9rem; }
#moneyBusinessPicture .qb-picture-card > summary:focus-visible { outline:3px solid #665bdb; outline-offset:6px; border-radius:8px; }
#moneyBusinessPicture .qb-picture-card[open] { grid-column:1 / -1; }
#moneyBusinessPicture .qb-picture-breakdown { margin-top:1rem; border-top:1px solid #e1e5ed; overflow-wrap:anywhere; }

/* Money is a focused workspace, not one expanded diagnostic document. */
#moneyBody .money-nav{display:flex;gap:8px;padding:8px;border:1px solid var(--line);border-radius:18px;background:var(--card);margin:4px 0 22px;flex-wrap:wrap;}
#moneyBody .money-nav button{flex:1 1 130px;display:flex;justify-content:center;align-items:center;gap:6px;border:0;border-radius:12px;background:transparent;padding:13px 16px;font-weight:600;color:var(--muted);cursor:pointer;}
#moneyBody .money-nav button.active{background:var(--accent-soft);color:var(--accent);}
#moneyBody .money-nav button:focus-visible{outline:3px solid var(--accent);outline-offset:2px;}
#moneyBody [data-money-view][hidden]{display:none!important;}
#moneyBody .money-fold{border:1px solid var(--line);border-radius:16px;background:var(--card);margin:12px 0;overflow:hidden;}
#moneyBody .money-fold>summary{padding:18px 20px;font-weight:600;cursor:pointer;}
#moneyBody .money-fold>[data-fold]{padding:0 20px 20px;}
#moneyBody .money-overview-actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0;}
#moneyBody .money-checks{margin-bottom:20px;}
#moneyBusinessPicture>.qb-heading{margin-top:0;}
#moneyBusinessPicture .qb-picture-card>summary{gap:10px;min-height:180px;}
#moneyBusinessPicture .qb-picture-card>summary>span{font-weight:600;}
#moneyBusinessPicture .qb-picture-card>summary strong{font-size:clamp(24px,2vw,32px);letter-spacing:-.025em;}
#moneyBusinessPicture .qb-picture-card>summary small{line-height:1.5;color:var(--muted);}
#moneyBusinessPicture .qb-picture-card>summary .money-card-link{color:var(--accent);margin-top:auto;font-weight:600;}
#moneyBusinessPicture>details{border-top:1px solid var(--line);padding:16px 0;}
#moneyBusinessPicture>details>summary{cursor:pointer;font-weight:600;}
@media(max-width:650px){#moneyBody .money-nav button{flex-basis:40%;padding:11px 6px;}#moneyBusinessPicture .qb-picture-card>summary{min-height:150px;}#moneyBody .money-overview-actions>*{flex:1 1 100%;}}
/* Money breakdowns: quiet hierarchy, clear amounts, source details on demand. */
#moneyBusinessPicture.qb-entry-preview{background:transparent;border:0;padding:6px 0;margin:8px 0 28px;}
#moneyBusinessPicture>.qb-heading{align-items:flex-start;margin:12px 0 18px;}
#moneyBusinessPicture>.qb-heading h3{font-size:30px;letter-spacing:-.04em;font-weight:700;}
#moneyBusinessPicture>.qb-heading>.qb-inline-icon{margin-top:8px;}
#moneyBusinessPicture>.hint{font-size:12px;max-width:105ch;line-height:1.6;}
#moneyBusinessPicture>.qb-source-note{background:#f4f3ff;border-color:#e5e2fc;color:#5b5684;padding:12px 16px;margin:16px 0 22px;}
#moneyBusinessPicture .qb-picture-headlines{gap:16px;align-items:stretch;margin:22px 0;}
#moneyBusinessPicture .qb-picture-card{background:var(--card,#fff);border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 3px 16px #26345305;transition:border-color .15s,box-shadow .15s;}
#moneyBusinessPicture .qb-picture-card:hover{border-color:#bcb6ef;box-shadow:0 8px 26px #5059d60b;}
#moneyBusinessPicture .qb-picture-card>summary{min-height:194px;gap:11px;}
.money-metric-top{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:3px;}
#moneyBusinessPicture .money-metric-top .qb-icon{margin:0;width:36px;height:36px;border-radius:12px;}
.money-metric-chevron{width:8px;height:8px;border-right:1.7px solid #a3a5b1;border-bottom:1.7px solid #a3a5b1;transform:rotate(45deg);margin-right:3px;transition:transform .15s;}
.qb-picture-card[open] .money-metric-chevron{transform:rotate(225deg);}
#moneyBusinessPicture .qb-picture-card>summary>span{font-size:13px;color:#565d6a;font-weight:550;}
#moneyBusinessPicture .qb-picture-card>summary strong{font-size:clamp(26px,2.4vw,36px);font-weight:700;letter-spacing:-.045em;line-height:1.15;font-variant-numeric:tabular-nums;}
#moneyBusinessPicture .qb-picture-card>summary .money-metric-unknown{font-size:25px;color:#7f8494;font-weight:550;}
#moneyBusinessPicture .qb-picture-card>summary small{font-size:12px;line-height:1.55;}
#moneyBusinessPicture .qb-picture-card>summary .money-card-link{display:flex;align-items:center;gap:8px;font-size:12px;padding-top:10px;}
#moneyBusinessPicture .qb-picture-card[open]{border-color:#c6c0f1;box-shadow:0 10px 35px #5059d60a;}
#moneyBusinessPicture .qb-picture-card[open]>summary{min-height:0;display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 20px;padding-bottom:20px;}
#moneyBusinessPicture .qb-picture-card[open] .money-metric-top{grid-column:1/-1;}
#moneyBusinessPicture .qb-picture-card[open]>summary>strong{grid-column:2;grid-row:2/4;}
#moneyBusinessPicture .qb-picture-card[open]>summary>.money-card-link{display:none;}
#moneyBusinessPicture .qb-picture-breakdown{border-top:1px solid var(--line);margin:0;padding-top:22px;}
.money-breakdown-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 18px;}
.money-breakdown-heading h4{font-size:16px;margin:0;font-weight:650;}
.money-breakdown-heading>span{font-size:12px;color:var(--muted);}
.qb-picture-breakdown>p{font-size:13px;color:var(--muted);margin:0 0 18px;line-height:1.7;}
.money-source-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:14px;margin:16px 0;}
.money-source-card{min-width:0;border:1px solid #e6e7ef;border-radius:17px;background:var(--card,#fff);padding:19px 20px;box-shadow:0 2px 5px #192b4803;}
.money-source-card>header{display:flex;align-items:flex-start;gap:10px;min-height:48px;}
.money-source-card>header>.qb-icon{width:32px;height:32px;margin:0;border-radius:10px;}
.money-source-card>header>.qb-icon svg{width:17px;height:17px;}
.money-source-card>header>div{flex:1;min-width:0;}
.money-source-card h4{margin:0 0 3px;font-size:14px;line-height:1.4;font-weight:650;overflow-wrap:anywhere;}
.money-source-card>header>div>span{font-size:11px;color:var(--muted);}
.money-evidence-badge{display:inline-flex;background:#f0f0fc;border:1px solid #e4e3f8;color:#625e92;border-radius:20px;padding:3px 8px;white-space:nowrap;font-size:10px;line-height:1.4;font-weight:600;}
.money-evidence-badge.needs-data{background:#f4f5f7;border-color:#e8e9ed;color:#777c88;}
.money-evidence-badge.needs-attention{background:#fff7e9;border-color:#f4e7cc;color:#8a6c32;}
.money-source-value{font-size:29px;font-weight:700;letter-spacing:-.035em;line-height:1.2;font-variant-numeric:tabular-nums;margin:20px 0 17px;color:var(--ink);}
.money-source-value>small{display:block;font-size:11px;letter-spacing:0;font-weight:400;color:var(--muted);margin-top:7px;line-height:1.5;}
.money-source-value.is-unknown{font-size:23px;font-weight:500;color:#9499a6;}
.money-source-secondary{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #f0f0f5;padding:12px 0;font-size:12px;}
.money-source-secondary>span{color:var(--muted);}
.money-source-secondary>b{font-variant-numeric:tabular-nums;font-weight:600;}
.money-source-card>footer{display:flex;align-items:flex-start;border-top:1px solid #f0f0f5;padding-top:12px;color:var(--muted);font-size:11px;line-height:1.6;}
.money-source-card>footer .qb-inline-icon{margin:1px 6px 0 0;}.money-source-card>footer svg{width:13px;height:13px;}
.money-source-provenance{font-size:12px;margin-top:8px;}
.money-source-provenance>summary{cursor:pointer;color:var(--accent);padding:10px 0;min-height:36px;}
.money-source-provenance p,.money-source-card .money-source-caveat{font-size:11px;line-height:1.65!important;color:var(--muted);margin:6px 0!important;}
.money-connection-detail{padding:12px 16px;background:var(--surface-2);border-radius:12px;margin-top:20px;}
.money-detail-empty{padding:24px;border:1px dashed #dcdde8;border-radius:14px;color:var(--muted);font-size:13px;}
#moneyBusinessPicture>.qb-position{background:linear-gradient(120deg,#f3f1ff,#f8f8fd);border-color:#e3dff8;box-shadow:none;padding:24px 28px;}
#moneyBusinessPicture>.qb-position strong{font-size:32px;color:#4d4782;margin:5px 0 8px;}
#moneyBusinessPicture>.qb-position small:last-child{max-width:95ch;font-size:12px;line-height:1.6;}
#moneyBusinessPicture>details{background:var(--card,#fff);border:1px solid var(--line);border-radius:15px;margin:10px 0;padding:0 20px;}
#moneyBusinessPicture>details>summary{padding:17px 0;font-size:13px;}
#moneyBusinessPicture>details>p{padding-bottom:16px;color:var(--muted);font-size:12px;}
@media(min-width:1200px){#moneyBusinessPicture .qb-picture-headlines{grid-template-columns:repeat(5,minmax(0,1fr));}#moneyBusinessPicture .qb-picture-headlines>.overview-widget:last-child{grid-column:auto;}}
@media(max-width:760px){#moneyBusinessPicture>.qb-heading h3{font-size:26px;}.money-breakdown-heading{align-items:flex-start;flex-direction:column;gap:4px;}#moneyBusinessPicture .qb-picture-card{padding:18px;border-radius:18px;}.money-source-card{padding:17px;}.money-source-grid{gap:12px;}#moneyBusinessPicture .qb-picture-card[open]>summary{grid-template-columns:1fr;}#moneyBusinessPicture .qb-picture-card[open]>summary>strong{grid-row:auto;grid-column:1;}#moneyBusinessPicture .qb-position{padding:20px;}}
@media(prefers-reduced-motion:reduce){#moneyBusinessPicture .qb-picture-card,.money-metric-chevron{transition:none;}}

#moneyBusinessPicture .qb-picture-card:not([open])>summary{height:100%;}
#moneyBusinessPicture>.money-snapshot-date{display:flex;align-items:center;font-size:12px;margin:6px 0 0;}
#moneyBusinessPicture>.money-snapshot-notes{border:0;background:transparent;padding:0;margin:2px 0 12px;box-shadow:none;}
#moneyBusinessPicture>.money-snapshot-notes>summary{padding:5px 0;font-size:11px;font-weight:400;color:var(--muted);}
#moneyBusinessPicture>.money-snapshot-notes>p{max-width:95ch;font-size:12px;line-height:1.7;padding:8px 0;}
/* Catalogue counters and unrelated scheduler chatter belong to their own screens. */
body:has(#tab-money.active) #stats{display:none;}
/* Source reconciliation: a review workspace, separate from accounting approval. */
.money-reconciliation{background:var(--card,#fff);border:1px solid var(--line);border-radius:22px;padding:26px;margin-bottom:26px;box-shadow:var(--shadow);}
.money-recon-header,.money-recon-detail>header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;}
.money-recon-eyebrow{display:block;color:var(--accent);font-size:10px;letter-spacing:.1em;font-weight:700;margin-bottom:8px;}
.money-recon-header h3,.money-recon-detail h3{font-size:24px;letter-spacing:-.035em;margin:0 0 7px;}
.money-recon-header p{font-size:13px;color:var(--muted);max-width:75ch;margin:0;line-height:1.65;}
.money-recon-counts{display:flex;align-items:center;gap:30px;background:#f7f6ff;border:1px solid #ece9fd;border-radius:15px;padding:18px 22px;margin:22px 0;}
.money-recon-counts>div{min-width:92px;}.money-recon-counts strong{display:block;font-size:25px;letter-spacing:-.03em;line-height:1.3;}.money-recon-counts span{font-size:11px;color:var(--muted);}.money-recon-counts>p{font-size:11px;color:var(--muted);max-width:38ch;margin:0 0 0 auto;line-height:1.6;}
.money-recon-filters{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;padding-bottom:20px;border-bottom:1px solid var(--line);}
.money-recon-filters label,.money-recon-review label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:600;color:var(--muted);}
.money-recon-filters select,.money-recon-filters input,.money-recon-review select,.money-recon-review textarea{font:inherit;font-size:13px;background:var(--card,#fff);color:var(--ink);border:1px solid var(--line);padding:10px 12px;border-radius:10px;min-height:42px;max-width:100%;}
.money-recon-filters input{max-width:150px;}.money-recon-filters .btn-sm{min-height:42px;display:inline-flex;align-items:center;text-decoration:none;}
.money-recon-message{font-size:12px;color:var(--accent);line-height:1.6;margin:12px 0;}.money-recon-message:empty{display:none;}
.money-recon-scope{font-size:11px;color:var(--muted);line-height:1.65;margin:18px 0 14px;}
.money-recon-list{display:grid;gap:9px;}
.money-recon-row{display:grid;grid-template-columns:92px minmax(160px,1fr) minmax(180px,.8fr) auto 16px;gap:14px;align-items:center;text-align:left;background:var(--card,#fff);border:1px solid var(--line);border-radius:14px;padding:17px 18px;cursor:pointer;width:100%;font:inherit;color:var(--ink);}
.money-recon-row:hover{border-color:#c5bfed;background:#fcfbff;}.money-recon-row:focus-visible,.money-recon-filters :focus-visible,.money-recon-review :focus-visible{outline:2px solid var(--accent);outline-offset:3px;}
.money-recon-store{font-size:11px;font-weight:600;color:var(--accent);}.money-recon-row-title>b{display:block;font-size:13px;font-weight:600;line-height:1.5;}.money-recon-row-title>small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:3px;}
.money-recon-row-values{display:grid;gap:5px;font-size:10px;color:var(--muted);}.money-recon-row-values>span{display:flex;justify-content:space-between;gap:10px;}.money-recon-row-values b{font-size:12px;color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums;}
.money-recon-state{display:inline-flex;align-items:center;font-size:10px;font-weight:600;border-radius:20px;padding:5px 9px;background:#fff7e9;color:#8c6b2c;line-height:1.4;white-space:nowrap;}
.money-recon-state.investigating{background:#eef1ff;color:#5b63a2;}.money-recon-state.marked_fixed,.money-recon-state.ignored{background:#f0f1f5;color:#6e7483;}.money-recon-state.source-resolved{background:#edf7f1;color:#347b5b;}.money-recon-arrow{color:var(--accent);font-size:15px;}.money-recon-changed{color:#98713e!important;}
.money-recon-pagination{display:flex;align-items:center;gap:8px;margin-top:18px;}.money-recon-pagination>span{margin-right:auto;font-size:11px;color:var(--muted);}
.money-recon-detail{border-top:1px solid var(--line);padding-top:26px;margin-top:28px;scroll-margin-top:24px;}.money-recon-detail>p{font-size:12px;color:var(--muted);line-height:1.7;margin:18px 0;}
.money-recon-source-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0;}.money-recon-source{background:#fafaff;border:1px solid #e6e4f3;border-radius:15px;padding:19px;min-width:0;}.money-recon-source h4{color:var(--accent);font-size:13px;margin:0 0 14px;}.money-recon-source dl{margin:0;}.money-recon-source dl>div{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #eeedf6;padding:10px 0;font-size:12px;}.money-recon-source dt{color:var(--muted);}.money-recon-source dd{margin:0;text-align:right;overflow-wrap:anywhere;max-width:62%;font-variant-numeric:tabular-nums;}
.money-recon-reference{border:1px solid var(--line);border-radius:14px;padding:18px;font-size:12px;}.money-recon-reference>p{font-size:11px;color:var(--muted);line-height:1.9;overflow-wrap:anywhere;margin:8px 0 16px;}.money-recon-reference>a{text-decoration:none;}
.money-recon-review{background:#f6f5ff;border:1px solid #e6e2fc;border-radius:15px;padding:20px;margin:20px 0;display:grid;gap:14px;}.money-recon-review h4{margin:0;font-size:14px;}.money-recon-review select{max-width:320px;}.money-recon-review textarea{resize:vertical;min-height:90px;}.money-recon-review p{font-size:11px;color:var(--muted);line-height:1.6;margin:0;}.money-recon-review button{justify-self:start;}
.money-recon-warning{background:#fff8ed;border:1px solid #f0e0c5;border-radius:12px;padding:14px!important;color:#8c6b2c!important;}
.money-recon-timeline>summary{font-size:12px;font-weight:600;cursor:pointer;padding:14px 0;}.money-recon-timeline article{border-left:2px solid #e1ddf7;padding:3px 0 4px 16px;margin:14px 0;font-size:12px;}.money-recon-timeline small{display:block;color:var(--muted);font-size:10px;margin:5px 0;}.money-recon-timeline p{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);line-height:1.6;margin:7px 0;}
@media(max-width:1100px){.money-recon-row{grid-template-columns:80px 1fr auto 16px;}.money-recon-row-values{grid-column:2;grid-row:2;}.money-recon-row .money-recon-state{grid-column:3;grid-row:1/3;}.money-recon-arrow{grid-column:4;grid-row:1/3;}.money-recon-counts{gap:20px;}}
@media(max-width:650px){.money-reconciliation{padding:18px;border-radius:18px;}.money-recon-header{flex-direction:column;gap:14px;}.money-recon-header h3,.money-recon-detail h3{font-size:21px;}.money-recon-counts{padding:16px;gap:16px;flex-wrap:wrap;}.money-recon-counts>div{min-width:70px;}.money-recon-counts>p{margin:0;max-width:none;flex-basis:100%;}.money-recon-filters>label{flex:1 1 40%;}.money-recon-filters input{max-width:100%;width:100%;}.money-recon-row{grid-template-columns:1fr auto;gap:9px;padding:15px;}.money-recon-store{grid-column:1;}.money-recon-row-title{grid-column:1/-1;grid-row:2;}.money-recon-row .money-recon-state{grid-column:2;grid-row:1;}.money-recon-row-values{grid-column:1/-1;grid-row:3;padding-top:8px;border-top:1px solid var(--line);}.money-recon-arrow{display:none;}.money-recon-source-pair{grid-template-columns:1fr;}.money-recon-detail>header{gap:10px;}.money-recon-detail>header>button{font-size:10px;white-space:nowrap;}.money-recon-pagination button{font-size:11px;}.money-recon-review{padding:16px;}}
[data-component-review] details[data-component-key]{margin:12px 0;background:#fff;}
[data-component-review] details[data-component-key]>summary{cursor:pointer;font-size:13px;line-height:1.6;color:var(--text,#27323a);}
[data-component-review] details[data-component-key][open]>summary{padding-bottom:12px;border-bottom:1px solid var(--line,#e6e8ef);}
[data-component-review] label{display:grid;gap:6px;margin:14px 0;font-size:12px;font-weight:600;}
[data-component-review] input:not([type=hidden]),[data-component-review] select,[data-component-review] textarea{box-sizing:border-box;width:100%;min-width:0;padding:11px 12px;border:1px solid var(--line,#dde1e9);border-radius:11px;background:#fff;color:inherit;font:inherit;font-weight:400;}
[data-component-review] textarea{min-height:88px;resize:vertical;}
[data-component-review] details[data-component-key]>details{margin:14px 0;padding:12px 0;border-top:1px solid var(--line,#e6e8ef);}
[data-component-review] [role=status]{font-size:12px;line-height:1.6;color:var(--muted,#64717c);}

/* Dated bank evidence stays in Connections, separate from accounting approval. */
#moneyBalanceWorker{padding:20px 22px;border-radius:18px;background:#f5f4ff;border-color:#e5e1fa;line-height:1.6;}
#moneyBalanceWorker>b{display:flex;align-items:center;gap:9px;font-size:14px;}
#moneyBalanceWorker>p{font-size:12px;color:var(--muted);margin:9px 0 0;max-width:100ch;}
#moneyBankEvidence>summary{display:flex;align-items:center;gap:9px;}
#moneyBankEvidenceBody{padding:0 22px 24px;font-size:14px;line-height:1.6;}
#moneyBankEvidenceBody>p:first-child{max-width:90ch;color:var(--muted);font-size:12px;margin:0 0 20px;}
#moneyBankEvidenceBody>label{display:grid;gap:7px;margin:17px 0;font-size:12px;font-weight:600;}
#moneyBankEvidenceBody select,#moneyBankEvidenceBody input[type=number]{width:100%;box-sizing:border-box;min-width:0;min-height:46px;padding:11px 13px;border:1px solid var(--line,#e0e3ec);border-radius:12px;background:var(--card,#fff);color:var(--text);font:inherit;font-size:14px;font-weight:400;}
#moneyBankEvidenceBody input[type=number]{max-width:130px;}
#moneyBankEvidenceBody label.btn-sm{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:500;margin:6px 0;}
#moneyBankEvidenceBody .btn-sm,#moneyBankEvidenceBody .btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:11px 16px;border-radius:12px;font-size:13px;margin:7px 6px 7px 0;}
#moneyBankEvidenceBody button:disabled,#moneyBankEvidenceBody label.btn-sm:has(input:disabled){opacity:.55;cursor:default;}
#moneyBankEvidenceBody>details{margin:10px 0 16px;}
#moneyBankEvidenceBody details>summary{cursor:pointer;font-size:12px;color:var(--muted);}
#moneyBankEvidenceBody .bank-evidence-card{border:1px solid #e4e1f3;background:#faf9ff;border-radius:17px;padding:20px 22px;margin:20px 0;}
#moneyBankEvidenceBody .bank-evidence-card h4{font-size:12px;font-weight:600;color:var(--muted);margin:0 0 5px;}
#moneyBankEvidenceBody .bank-evidence-card>strong{font-size:30px;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums;}
#moneyBankEvidenceBody .bank-evidence-card p{font-size:12px;margin:12px 0;max-width:95ch;}
#moneyBankEvidenceBody .bank-evidence-card>details{font-size:11px;margin-top:14px;}
#moneyBankEvidenceBody [role=status]:not(:empty){background:var(--accent-soft,#f0edff);color:var(--accent,#6455ca);padding:12px 14px;border-radius:12px;font-size:12px;}
#moneyBankEvidenceSaved{border-top:1px solid var(--line);padding-top:18px;margin-top:22px;}
#moneyBankEvidenceSaved h4{font-size:14px;margin:0 0 10px;}
#moneyBankEvidenceSaved>.qb-source-note{background:#fff;padding:14px 16px;}
#moneyBankEvidenceSaved>.qb-source-note>summary{font-size:13px;color:var(--text);font-weight:600;}
@media(max-width:650px){#moneyBalanceWorker{padding:17px 18px;}#moneyBankEvidenceBody{padding:0 17px 20px;}#moneyBankEvidenceBody .bank-evidence-card{padding:17px 18px;}#moneyBankEvidenceBody .btn-primary{width:100%;margin-right:0;}#moneyBankEvidenceBody select{font-size:16px;}}
.money-deduction-totals { margin:18px 0; }
.money-deduction-totals dt { max-width:76%; font-weight:400; }
.money-deduction-totals dd { margin:0; font-weight:650; font-variant-numeric:tabular-nums; }
.money-deduction-totals .money-source-secondary:last-child { margin-top:10px; padding:14px; border:0; border-radius:12px; background:rgba(112,96,215,.08); }
.money-deduction-totals .money-source-secondary:last-child dt { font-weight:650; }
.money-deduction-totals .money-source-secondary:last-child dd { font-size:19px; }

.overview-widgets.qb-widgets.money-history-charts { grid-template-columns:repeat(2,minmax(0,1fr)); margin:20px 0; }
.money-history-charts .overview-widget { min-width:0; }
@media(max-width:650px){.overview-widgets.qb-widgets.money-history-charts{grid-template-columns:minmax(0,1fr);}}

.money-historical-note input[type=text]{box-sizing:border-box;width:100%;font:inherit;font-size:13px;background:var(--card,#fff);color:var(--ink);border:1px solid var(--line);padding:10px 12px;border-radius:10px;min-height:42px}.money-historical-note textarea{box-sizing:border-box;width:100%}.money-historical-note .money-historical-confirm{flex-direction:row;align-items:flex-start;gap:10px;line-height:1.6}.money-historical-confirm input{flex:0 0 auto;margin:2px 0 0;accent-color:var(--accent)}

.money-contribution-period form{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.money-contribution-period h4,.money-contribution-period p,.money-contribution-period .money-contribution-result{flex-basis:100%;margin:0}.money-contribution-period label{display:grid;gap:6px;flex:1 1 160px;font-size:13px;color:var(--muted,#64748b)}.money-contribution-period input{min-height:42px;padding:9px 12px;border:1px solid var(--border,#dce2ec);border-radius:12px;background:var(--card,#fff);color:inherit}.money-contribution-period button{min-height:42px}.money-contribution-period .money-contribution-result{margin-top:10px}.money-contribution-period .qb-source-note{margin:0}
/* Today and every day (money.js moneyDailyRender): the one hero of the overview */
.money-today-hero { display:flex;flex-direction:column;gap:4px;margin:8px 0; }
.money-today-hero strong { font-size:1.75rem; }
#moneyDaily details[data-day] > summary { list-style:none;cursor:pointer; }
#moneyDaily details[data-day] .rectbl { margin:0; }

/* Headline cards are buttons in ONE row; the details open below the row as one compact panel (one at a time). */
#moneyBusinessPicture button.qb-picture-card{display:flex;flex-direction:column;gap:11px;width:100%;min-width:0;min-height:170px;text-align:left;font:inherit;color:inherit;cursor:pointer;background:var(--card,#fff);border:1px solid var(--line);border-radius:22px;padding:20px;}
#moneyBusinessPicture button.qb-picture-card>span{font-size:13px;color:#565d6a;font-weight:550;}
#moneyBusinessPicture button.qb-picture-card>strong{font-size:clamp(24px,2.2vw,34px);font-weight:700;letter-spacing:-.025em;}
#moneyBusinessPicture button.qb-picture-card>small{font-size:12px;line-height:1.5;color:var(--muted);}
#moneyBusinessPicture button.qb-picture-card .money-card-link{margin-top:auto;color:var(--accent);font-weight:600;}
#moneyBusinessPicture button.qb-picture-card:hover{border-color:#bcb6ef;}
#moneyBusinessPicture button.qb-picture-card.is-open{border-color:#665bdb;box-shadow:0 0 0 2px #665bdb22;}
#moneyBusinessPicture button.qb-picture-card.is-open .money-metric-chevron{transform:rotate(225deg);}
#moneyBusinessPicture button.qb-picture-card:focus-visible{outline:3px solid #665bdb;outline-offset:3px;}
#moneyBusinessPicture .qb-picture-panel:empty{display:none;}
#moneyBusinessPicture .qb-picture-panel{margin-top:12px;background:var(--card,#fff);border:1px solid var(--line);border-radius:18px;padding:16px 18px;overflow-wrap:anywhere;}
#moneyBusinessPicture .qb-picture-panel .qb-picture-breakdown{border:0;margin:0;padding:0;}
#moneyBusinessPicture .qb-picture-panel .money-breakdown-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;}
#moneyBusinessPicture .qb-picture-panel .money-breakdown-heading h4{margin:0;font-size:15px;}
.money-compact{width:100%;border-collapse:collapse;font-size:13px;}
.money-compact th{text-align:left;font-weight:600;color:var(--muted);padding:6px 8px;border-bottom:1px solid var(--line);white-space:nowrap;}
.money-compact td{padding:6px 8px;border-bottom:1px solid #f0f0f5;vertical-align:top;}
.money-compact tfoot td{border-bottom:0;padding-top:10px;}
@media(max-width:760px){.qb-widgets{grid-template-columns:repeat(2,minmax(0,1fr));}#moneyBusinessPicture button.qb-picture-card{min-height:150px;padding:14px;}}
.money-compact td b{white-space:nowrap;}
