.sc-heading{display:inline-flex;align-items:center;gap:5px}.sc-toggle,.sc-plus,.sc-total,.sc-cell{font:inherit;color:inherit;background:transparent;border:0;cursor:pointer}.sc-toggle{padding:0;text-align:left;font-weight:600}.sc-plus{border:1px solid var(--ui-line);border-radius:4px;width:20px;height:20px;padding:0;font-size:15px;line-height:18px;color:var(--ui-muted)}.sc-plus:hover{color:var(--ui-text);border-color:#88ad94}.sc-total{width:100%;text-align:right;font-weight:600;padding:3px}.sc-total small{display:block;color:var(--ui-muted);font-size:9px}.sc-cell{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:140px;padding:5px 7px;border:1px solid transparent;border-radius:5px;text-align:right}.sc-cell:hover:enabled{border-color:#88ad94;background:var(--ui-hover)}.sc-cell:disabled{opacity:1;cursor:default}.sc-cell small{font-size:10px;color:var(--ui-muted);white-space:nowrap}.sc-cell small span{font-size:8px}.sc-part-heading small{display:block;font-size:9px;font-weight:500;color:var(--ui-muted);margin-top:4px}html[data-theme] body #app .commercial-table :is(.sc-part-cell,.sc-part-heading){min-width:160px!important;width:160px!important;max-width:none!important;border-left:1px solid var(--ui-line)!important}.sc-part-heading{box-shadow:inset 0 2px #88ad94}.sc-dialog{box-sizing:border-box;width:390px;max-width:calc(100vw - 32px);padding:22px;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-card);color:var(--ui-text);font:12px Montserrat,Arial,sans-serif}.sc-dialog::backdrop{background:#0007}.sc-dialog header,.sc-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.sc-dialog h2{margin:0;font-size:17px}.sc-dialog p{color:var(--ui-muted);font-size:11px}.sc-dialog label{display:block;margin:15px 0 6px}.sc-dialog input{display:block;box-sizing:border-box;width:100%;padding:9px;margin-top:6px;border:1px solid var(--ui-line);border-radius:6px;background:var(--ui-canvas);color:var(--ui-text);font:inherit}.sc-dialog .sc-inputs{display:grid;grid-template-columns:2fr 1fr;gap:12px}.sc-dialog .sc-check{display:flex;gap:8px;align-items:center;font-size:11px}.sc-check input{width:auto;margin:0}.sc-dialog footer{justify-content:flex-end;margin-top:18px}.sc-dialog .sc-error{color:#cb827b}.sc-dialog .btn{background:var(--ui-hover);color:var(--ui-text);border:1px solid var(--ui-line)}.sc-dialog button[type=submit]{background:#375942;color:#eef7f0;border-color:#50715b}

.sc-total-note{float:right}.sc-total:has(+.sc-total-note){width:calc(100% - 22px)}


/* Amount-only inline subcollections, with visible expansion state and totals. */
html[data-theme] body #app .commercial-table .sc-plus{width:26px;height:26px;min-width:26px;font-size:19px!important;line-height:22px;display:inline-flex;align-items:center;justify-content:center}
html[data-theme] body #app .commercial-table .sc-plus.has-values{background:#dcebe0;color:#315c40;border-color:#9dbda7}
html[data-theme=lili] body #app .commercial-table .sc-plus.has-values{background:#2c4435;color:#c5e2ce;border-color:#668b72}
html[data-theme] body #app .commercial-table .sc-input{box-sizing:border-box;width:100%;min-width:0;padding:6px 8px!important;text-align:right;border:1px solid var(--ui-line)!important;border-radius:5px;background:transparent;color:var(--ui-text);font:inherit}
.sc-input:focus{outline:1px solid #88ad94;outline-offset:1px}.sc-input.saving{opacity:.65}.sc-input.save-error{outline:1px solid #c16b68}.sc-cell-error{display:block;white-space:normal;color:#c16b68;font-size:10px;margin-top:4px}.sc-readonly{display:block;text-align:right}.sc-column-total{color:var(--ui-text)!important;font-weight:600!important;font-variant-numeric:tabular-nums}

/* Expanded season: a continuous warm band through parts and season total. */
html[data-theme] body #app .seasn-actuals{
 --sc-season-body:#fbf0e3;--sc-season-head:#f4e2cc;--sc-season-edge:#d6b58d;--sc-season-input:#fffaf3;
}
html[data-theme=lili] body #app .seasn-actuals{
 --sc-season-body:#393129;--sc-season-head:#483a2c;--sc-season-edge:#8c6e4c;--sc-season-input:#302b26;
}
html[data-theme] body #app .shell>.main .seasn-actuals .commercial-table :is(td.sc-part-cell,td.sc-part-cell+td[data-sc-season-total]){
 background:var(--sc-season-body)!important;
}
html[data-theme] body #app .shell>.main .seasn-actuals .commercial-table :is(th.sc-part-heading,th.sc-part-heading+th[data-sc-heading]){
 background:var(--sc-season-head)!important;box-shadow:inset 0 2px var(--sc-season-edge)!important;
}
html[data-theme] body #app .shell>.main .seasn-actuals .commercial-table :is(.sc-part-heading,.sc-part-cell){
 border-left-color:var(--sc-season-edge)!important;
}
html[data-theme] body #app .shell>.main .seasn-actuals .commercial-table :is(th.sc-part-heading+th[data-sc-heading],td.sc-part-cell+td[data-sc-season-total]){
 border-right:1px solid var(--sc-season-edge)!important;
}
html[data-theme] body #app .shell>.main .seasn-actuals .commercial-table .sc-part-cell .sc-input{
 background:var(--sc-season-input)!important;border-color:var(--sc-season-edge)!important;
}

/* Season totals stay beside their season, including expanded collection headings. */
html[data-theme] body #app .shell>.main .seasn-actuals .commercial-table thead th[data-season-label] {
  vertical-align: top;
  padding-top: 9px;
  padding-bottom: 9px;
}
html[data-theme] body #app .shell>.main .seasn-actuals .commercial-table .numbers-season-total {
  display: block;
  margin-top: 5px;
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: inherit;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
html[data-theme] body #app .shell>.main .seasn-actuals .commercial-table th[data-season-label] .sc-heading {
  min-height: 26px;
}

html[data-theme] body #app .shell>.main .seasn-actuals .commercial-table .numbers-season-title {display:flex;align-items:center;min-height:26px;}

/* Keep Numbers quiet: empty note controls retain their accessible click target, without a pencil. */
html[data-theme] body #app .seasn-actuals :is(.commercial-historical-note,.commercial-note-button):not(.has-note) {
  font-size: 0 !important;
}
