.shell{max-width:1480px;margin:16px auto 48px}.budget-layout{display:grid;grid-template-columns:minmax(190px,228px) minmax(0,1fr)}.budget-nav{padding:18px 10px;border-right:1px solid var(--line);background:#f8fafb}.budget-nav summary{display:none}.budget-nav button{display:block;text-align:left;width:100%;background:transparent;color:#304957;font-size:14px;line-height:1.35;padding:12px;border-radius:7px}.budget-nav button.current,.budget-nav button[aria-current=page]{color:#006a85;background:#dff1f5;font-weight:650}.budget-content{min-width:0}.budget-content [hidden],.budget-layout [hidden]{display:none!important}.section-page{padding:24px;min-height:330px}.section-page>h2,.tools-heading h2{font-size:22px}.tools-heading,.tools-actions{display:flex;align-items:center;justify-content:space-between;gap:.7rem;flex-wrap:wrap}.tools-heading{margin-bottom:18px}.tools-actions{justify-content:flex-start;margin:10px 0}.tools-actions button,.tool-row button{font-size:14px;padding:8px 12px}.tools-actions label,.tools-form label{display:grid;gap:5px}.tools-form{display:grid;gap:14px;max-width:500px;margin:20px 0}.tool-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:14px 0}.tool-row small,.annual-grid small{display:block;color:var(--muted);font-size:12px}.tool-row p{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:4px}.tools-menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:10px;margin:16px 0}.tools-menu button{text-align:left;padding:14px 15px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#244d5b}.tools-menu button:hover{background:#eaf5f7}.table-scroll{overflow:auto}.annual-grid{border-collapse:separate;border-spacing:0;font-size:13px}.annual-grid th,.annual-grid td{padding:6px 9px;border-bottom:1px solid var(--line);text-align:right}.annual-grid th:first-child{position:sticky;left:0;z-index:1;text-align:left;min-width:134px;max-width:220px;background:white}.annual-grid td button{display:block;color:inherit;background:none;text-align:right;width:100%;font-variant-numeric:tabular-nums;font-size:13px;padding:4px}.annual-grid td button.actual{color:#00768c}.annual-grid .totals{background:#f0f5f6;font-weight:700}.annual-grid .selected-month{background:#eff9fa}.section-page .error:empty{display:none}.budget-mobile-select{display:none}.compact-budget .plan-row,.compact-budget .history-row,.compact-budget .account,.compact-budget .category{padding-block:6px;min-height:0}.budget-content.hide-accounts .workspace{grid-template-columns:1fr}.budget-content.hide-accounts .accounts,.budget-content.hide-planned .plans-section,.budget-content.hide-history .history-section{display:none}.home-reminders{padding:12px 24px;border-top:1px solid var(--line)}.home-reminders li{margin:5px 0}.section-breadcrumb{margin-bottom:14px}.section-breadcrumb button{padding:0}.dashboard-actions .quiet{white-space:normal}
@media(max-width:800px){.budget-layout{display:block}.budget-nav{padding:6px 12px;border:0;border-bottom:1px solid var(--line)}.budget-nav nav{display:none}.budget-mobile-select{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:10px;font-weight:600}.budget-mobile-select select{min-width:0}.section-page{padding:16px}.shell{margin:0 auto;border-radius:0}.tools-heading h2,.section-page>h2{font-size:19px}.annual-grid th:first-child{min-width:95px;max-width:116px}.tool-row{align-items:flex-start}.annual-grid td button{font-size:12px}.tools-actions .secondary{font-size:13px}}
.capture{padding:0 24px 16px;border-bottom:1px solid var(--line)}.capture-tabs{display:flex;flex-wrap:wrap;gap:4px;border-bottom:1px solid var(--line);padding:4px 0}.capture-tabs button{background:transparent;color:#536971;border-radius:5px;padding:8px 12px}.capture-tabs button.active{background:#e3f2f5;color:#075c71;font-weight:600}.capture-area{padding-top:12px}.capture-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(185px,100%),1fr));gap:12px;align-items:end}.capture-fields>p:only-of-type{display:none}.capture-fields label,.capture-fields fieldset{min-width:0}.capture-fields label{display:grid;font-size:13px;gap:4px}.capture-fields input,.capture-fields select,.capture-fields textarea{width:100%;min-width:0;padding:7px;font:inherit;border:1px solid #c9d8dd;border-radius:5px}.capture-fields textarea{resize:vertical}.capture-fields fieldset{max-height:110px;overflow:auto}.capture-fields input[type=checkbox]{width:auto}.quick-entry .error:empty{display:none}.capture-area details{grid-column:1/-1}.capture-area details label{display:inline-flex;align-items:center;padding:5px}.capture-fields label:has(textarea){grid-column:span 2}@media(max-width:620px){.capture{padding:0 14px 12px}.capture-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.capture-tabs button{padding:7px 8px;font-size:13px}.capture-fields label:has(textarea){grid-column:1/-1}}
.entry-field{display:flex;align-items:stretch;gap:.25rem}
.entry-field input{flex:1;min-width:0;width:0}
.entry-field .entry-tool{padding:.28rem .55rem;background:var(--paper,#f4f2ea);color:var(--ink,#323d32);border:1px solid #bec8b8;border-radius:8px;min-width:2rem}
.annual-grid .annual-delta{display:none}.annual-grid.with-difference .annual-delta{display:block;border-top:1px dotted var(--line);padding-top:4px}
.annual-grid .annual-total{min-width:75px;font-variant-numeric:tabular-nums;background:#edf5f6}.annual-display,.schedule-choice{font-size:13px;color:var(--muted)}.schedule-choice{display:inline-flex;align-items:center;gap:.35rem;margin-top:.75rem}
.budget-content.hide-categories .categories,.budget-content.hide-categories .category-section{display:none}
@media(min-width:801px){
  .budget-layout{display:block}
  .budget-nav{padding:4px 12px;border-right:0;border-bottom:1px solid var(--line)}
  .budget-nav nav{display:flex;flex-wrap:wrap;align-items:center;gap:3px}
  .budget-nav button{width:auto;padding:10px 12px}
}
@media(min-width:1020px){
  .operation-desk{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-bottom:1px solid var(--line)}
  .operation-desk .capture{border-bottom:0}
  .operation-desk .history-section{border-left:1px solid var(--line)}
  .operation-desk .history-section .section-heading{padding:10px 16px}
  .operation-desk #history{max-height:335px;overflow:auto;scrollbar-gutter:stable}
  .operation-desk .history-row{padding:9px 14px;gap:10px}
  .operation-desk .history-row .row-actions{display:flex;flex-direction:column;align-items:flex-end}
  .operation-desk .history-row .row-actions button{padding:2px 5px}
  .hide-history .operation-desk{grid-template-columns:1fr}
}
@media(max-width:1019px){
  .operation-desk #history{max-height:240px;overflow:auto}
}
.schedule-month{display:flex;align-items:center;gap:.6rem;margin-bottom:12px;font-size:14px}.schedule-month input{max-width:13rem}

/* Compact cabinet pages share the headings, controls, and paper panels of the entry screen. */
#section-panel {
  --cabinet-line:#d7d7d7;
  --cabinet-band:#eee;
  --cabinet-ink:#404040;
  --cabinet-link:#456a83;
  min-width:0;
  padding:0 0 18px;
  color:var(--cabinet-ink);
  font:15px/1.35 Arial, Helvetica, sans-serif;
}
#section-body {min-width:0}
#section-breadcrumb:empty {display:none}
#section-panel :is(h2,h3,h4) {margin:0;color:#444;font-family:inherit;letter-spacing:normal}
#section-panel h2 {font-size:17px;line-height:24px;font-weight:600}
#section-panel h3 {font-size:15px;font-weight:600}
#section-panel :is(.tools-heading,.annual-heading,#section-body>h2,.dir-heading,.report-table-heading) {
  border:1px solid var(--cabinet-line);
  border-radius:3px 3px 0 0;
  padding:4px 9px;
  min-height:31px;
  margin:0;
  color:#464646;
  background:linear-gradient(#f9f9f9,#e8e8e8);
}
#section-panel :is(button.secondary,.tools-actions button,.tools-form button,.tool-row button,.tools-menu button,.annual-controls button,.schedule-month input) {
  border:1px solid #b5b5b5;
  border-radius:3px;
  background:linear-gradient(#fff,#ececec);
  color:#414141;
  font:13px/1.25 Arial,Helvetica,sans-serif;
  padding:4px 9px;
  min-height:25px;
}
#section-panel :is(button.secondary,.tools-actions button,.tools-form button,.tool-row button,.tools-menu button,.annual-controls button):hover {
  background:#e9e9e9;color:#242424;
}
#section-panel :is(.tools-form,.tools-actions,.schedule-month) :is(select,input:not([type=checkbox]),textarea),
#section-panel .dir-editor :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  width:100%;min-height:26px;border:1px solid #b7b7b7;border-radius:3px;
  background:#fff;color:#333;padding:3px 6px;font:14px Arial,Helvetica,sans-serif;
}
#section-panel div.tools-actions {margin:5px 0;gap:7px}
#section-panel .tools-heading .tools-actions {margin:0}
#section-panel .tools-menu {display:flex;flex-direction:column;align-items:flex-start;gap:0;margin:0;padding:5px 9px 9px;border:1px solid var(--cabinet-line);border-top:0;background:white}
#section-panel .tools-menu button {border:0;border-radius:0;padding:4px 3px;min-height:25px;background:none;color:var(--cabinet-link);text-align:left;text-decoration:underline;text-underline-offset:2px}
#section-panel .tools-form {max-width:480px;gap:9px;margin:0;padding:12px;background:#fff;border:1px solid var(--cabinet-line)}
#section-panel .tool-row {padding:5px 9px;min-height:35px;border:1px solid var(--cabinet-line);border-top:0;background:#fff}
#section-panel .tool-row small,#section-panel .hint,#section-panel .empty {color:#777;font-size:13px}
#section-panel .tools-form label.check {display:flex;align-items:center;gap:6px}
#section-panel .check input[type=checkbox],#section-panel .annual-controls input {width:auto;min-height:0;margin:0;accent-color:#6b7e86}
#section-panel .annual-heading {display:flex;justify-content:space-between;align-items:center;min-height:32px;padding:0 0 4px;border:0;background:transparent}
.annual-heading h2 small {font-size:13px;font-weight:400;color:#777}
.annual-heading .tools-actions b {font-size:14px}
#section-panel .annual-scroll {position:relative;border:1px solid var(--cabinet-line);border-top:0;background:#fff;max-height:72vh}
#section-panel .annual-grid {width:100%;font:14px Arial,Helvetica,sans-serif;color:#444;isolation:isolate}
#section-panel .annual-grid th,#section-panel .annual-grid td {min-width:175px;padding:3px 6px;vertical-align:middle;border:0;border-right:1px solid #ddd;border-bottom:1px solid #e9e9e9;font-weight:400;background:white}
#section-panel .annual-grid thead th {position:sticky;top:0;z-index:2;background:#f0f0f0;color:#494949;text-align:center;white-space:nowrap;font-size:13px;font-weight:bold;padding:7px}
#section-panel .annual-grid th:first-child {position:sticky;left:0;z-index:1;width:245px;min-width:245px;max-width:245px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#section-panel .annual-grid thead th:first-child {z-index:3}
#section-panel .annual-grid .annual-entry th {padding-left:18px}
#section-panel .annual-grid .totals :is(th,td) {background:#efefef;font-weight:bold}
#section-panel .annual-grid td:nth-child(odd) {background:#f5f5f5}
#section-panel .annual-grid .annual-entry td {height:51px}
#section-panel .annual-grid .selected-month {box-shadow:inset 0 2px #d3d6d0}
.annual-amounts,.annual-metrics {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.annual-metrics {font-size:11px;margin-top:4px;color:#777;font-weight:normal}
#section-panel .annual-grid .annual-delta {font-size:10px;line-height:13px;color:#888;margin:4px 0 0}
.annual-grid.hide-plan .annual-amounts,.annual-grid.hide-fact .annual-amounts {grid-template-columns:1fr}
.annual-grid.hide-plan .annual-metrics span:first-child,.annual-grid.hide-fact .annual-metrics span:last-child {visibility:hidden}
#section-panel .annual-grid thead .selected-month {background:#e9ebe7}
#section-panel .annual-grid td button,.annual-grid .annual-group {color:inherit;background:none;border:0;border-radius:0;padding:1px 0;min-height:0;line-height:16px}
#section-panel .annual-grid td button {font:14px/17px Arial;white-space:nowrap;text-decoration:underline dotted #888;text-underline-offset:2px}
#section-panel .annual-grid td .actual {font-size:13px;color:#6d6d6d;text-decoration-style:solid}
#section-panel .annual-grid .annual-group {font:600 14px/20px Arial;text-align:left;white-space:nowrap}
.annual-grid .annual-group::before {content:'▾';font-size:10px;display:inline-block;width:14px}
.annual-grid .annual-group[aria-expanded=false]::before {content:'▸'}
#section-panel .annual-grid .annual-total {background:#f5f5f5}
.annual-grid.hide-plan :is([data-cell=plan],.annual-plan-sum),.annual-grid.hide-fact :is([data-cell=fact],.annual-fact-sum) {display:none!important}
.annual-controls {display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:5px 9px;border:1px solid #d7d7d7;border-top:0;background:#f5f5f5;font-size:13px}
.annual-controls label {display:inline-flex;align-items:center;gap:4px}
.annual-controls button {margin-left:auto}
#section-nav .nav-submenu {display:grid;gap:0}
#section-nav .nav-submenu button {padding:4px 8px 4px 22px;min-height:0;text-align:left;font-size:13px}
#section-nav .nav-submenu button[aria-current=page] {font-weight:bold}
@media(max-width:700px) {
  #section-panel {padding:0 0 12px}
  #section-panel .annual-grid th:first-child {min-width:108px;max-width:124px}
  #section-panel .annual-grid th,#section-panel .annual-grid td {min-width:154px;padding-inline:4px}
  #section-panel .annual-grid td button {font-size:13px}
  .annual-heading h2 small {display:block;font-size:11px;line-height:14px}
  .annual-controls {gap:7px}
}
.annual-grid:not(.include-excluded) .annual-entry[data-excluded] {display:none}
