/* Native table layout: no generated cell labels and no hover-dependent content. */
.spreadsheet-mode[hidden]{display:none!important}
.spreadsheet-mode{display:grid;gap:10px;min-width:0}
.sheet-instructions{font-size:12px;color:var(--muted);line-height:1.6}
.sheet-instructions>summary{width:max-content;cursor:pointer;color:var(--brand);font-weight:650;padding:5px 0}
.sheet-instructions>div{padding:12px 16px;border:1px solid var(--line);border-radius:9px;background:var(--surface);margin:6px 0}
.sheet-instructions p{margin:4px 0;font-size:12px}
.spreadsheet-mode .spreadsheet-scroll{position:relative;overflow:auto;max-height:68vh;isolation:isolate;border:1px solid #cad8e4;border-radius:10px;background:var(--surface);scrollbar-gutter:stable;overscroll-behavior:contain}
.spreadsheet-scroll:focus-visible{outline:2px solid #2379b2;outline-offset:3px}
.spreadsheet-mode .budget-spreadsheet{display:table;border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%;min-width:0;font-size:13px;color:var(--text)}
.budget-spreadsheet>colgroup>.sheet-col-item{width:25%}
.budget-spreadsheet>colgroup>.sheet-col-quantity{width:10%}
.budget-spreadsheet>colgroup>.sheet-col-money{width:12%}
.budget-spreadsheet>colgroup>.sheet-col-percent{width:7%}
.budget-spreadsheet>colgroup>.sheet-col-result{width:12%}
.budget-spreadsheet>colgroup>.sheet-col-actions{width:4%}
.spreadsheet-mode .budget-spreadsheet>thead{display:table-header-group;position:sticky;top:var(--sheet-sticky-offset,0px);z-index:5}
.spreadsheet-mode .budget-spreadsheet>tbody{display:table-row-group}
.spreadsheet-mode .budget-spreadsheet>thead>tr,.spreadsheet-mode .budget-spreadsheet>tbody>tr{display:table-row;transform:none}
.spreadsheet-mode .budget-spreadsheet>thead>tr>th,.spreadsheet-mode .budget-spreadsheet>tbody>tr>td{display:table-cell;box-sizing:border-box;min-width:0;max-width:none;width:auto;height:auto;border:0;border-right:1px solid #dfe7ee;border-bottom:1px solid #dfe7ee;padding:12px 7px;vertical-align:top;line-height:1.45;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;transform:none;transition:none}
.spreadsheet-mode .budget-spreadsheet>thead>tr>th{position:static;text-align:right;white-space:normal;font-size:11px;font-weight:750;letter-spacing:.025em;text-transform:none;background:#f0f4f8;color:#4a657d}
.spreadsheet-mode .budget-spreadsheet .sheet-header-groups>th{top:0;height:33px;padding:8px 10px;text-align:center;font-size:10px;line-height:16px;letter-spacing:.06em;text-transform:uppercase;background:#e7eef5;border-bottom:1px solid #cedce7}
.spreadsheet-mode .budget-spreadsheet .sheet-header-columns>th{height:42px;padding:8px 4px;vertical-align:middle}
.spreadsheet-mode .budget-spreadsheet .sheet-header-columns>th:first-child{position:sticky;text-align:left;left:0;z-index:7}
.spreadsheet-mode .budget-spreadsheet .sheet-header-columns>th:nth-last-child(2){text-align:right}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td{background:#fff;text-align:right;white-space:normal}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row:nth-child(odd)>td{background:#fafcfe}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row:hover>td{background:#f0f6fb}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td:first-child{position:sticky;left:0;z-index:2;text-align:left;white-space:normal;line-height:1.45;background:#fff}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row:nth-child(odd)>td:first-child{background:#fafcfe}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row:hover>td:first-child{background:#f0f6fb}
.spreadsheet-mode .budget-spreadsheet .sheet-data-row>td::before,.spreadsheet-mode .budget-spreadsheet .sheet-data-row>td::after{content:none!important;display:none!important}
.budget-spreadsheet .sheet-data-row>td:first-child>b{display:block;margin-left:24px;font-size:13px;font-weight:700;line-height:1.5}
.budget-spreadsheet .composition-toggle{display:block;margin-left:24px;width:calc(100% - 24px);padding:0;font-size:13px;font-weight:700;line-height:1.5}
.budget-spreadsheet .sheet-data-row>td:first-child>small{margin:5px 0 0 24px;font-size:10px;line-height:1.5;color:#688094;white-space:normal}
.budget-spreadsheet .sheet-data-row .sheet-drag-handle{float:left;margin:0 4px 0 0;width:20px;padding:3px 1px;font-size:17px;border-radius:4px}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td small{display:block;margin-top:5px;font-size:10px;color:#688094;white-space:normal}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td.sheet-sale{background:#f0f7fc}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td.sheet-cost{background:#f0f8f5}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td.sheet-result{background:#f7f9ef;font-weight:650}
.budget-spreadsheet>thead>tr>th.sheet-sale{background:#e2eef8!important;color:#235e8c}
.budget-spreadsheet>thead>tr>th.sheet-cost{background:#e1f1e9!important;color:#326954}
.budget-spreadsheet>thead>tr>th.sheet-result{background:#edf1d9!important;color:#5c653c}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-stage-heading>td{padding:0!important;background:#e9f0f7!important;border-bottom:1px solid #cddce9}
.budget-spreadsheet .sheet-stage-summary{position:sticky;left:0;width:max-content;max-width:calc(100vw - 140px);padding:8px 12px;gap:10px;min-height:37px;box-sizing:border-box}
.budget-spreadsheet .sheet-stage-summary button{font-size:12px;padding:2px 0}
.budget-spreadsheet .sheet-stage-summary small{font-size:11px;white-space:nowrap}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td.sheet-editable{cursor:text;position:relative}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td.sheet-editable:hover{box-shadow:inset 0 0 0 1px #8db8d7;background:#e9f3fb}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td.sheet-editable:focus-visible{outline:2px solid #1873b0;outline-offset:-2px}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td.editing{padding:6px!important;background:#e9f3fb}
.budget-spreadsheet td.editing input{width:100%!important;min-width:0!important;max-width:100%!important;text-align:right;font-size:13px;min-height:34px;padding:6px}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td.sheet-association-cell{white-space:normal;text-align:left;padding:8px}
.budget-spreadsheet .association-compact{margin:0;max-width:none;font-size:11px}
.budget-spreadsheet td:first-child .association-compact{clear:both;margin:12px 0 0 24px;padding-top:10px;border-top:1px dashed #d8e3ed}
.budget-spreadsheet td:first-child .association-compact>label{font-size:10px;color:#648099;gap:5px;line-height:1.4;letter-spacing:0}
.association-selected:empty,.association-linked:empty{display:none}
.association-selected{display:flex;align-items:start;gap:8px;margin-bottom:7px;min-width:0;color:#1d6555}
.association-selected>div{min-width:0;flex:1}
.association-selected b{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.association-selected small{display:block;font-size:10px;margin-top:3px;color:#5d7c72}
.association-selected button{border:0;background:#edf4f1;border-radius:4px;color:#42715e;cursor:pointer;padding:2px 6px;font-size:16px}
.association-scope-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 28px));max-height:90vh;overflow:auto;border:1px solid #d5e1eb;border-radius:18px;padding:0;color:#173d58;background:#fff;box-shadow:0 24px 80px #08263c55}
.association-scope-dialog::backdrop{background:#08283caa;backdrop-filter:blur(3px)}
.association-scope-dialog>header{position:static;display:block;height:auto;min-height:0;padding:24px;border-bottom:1px solid #dce6ee;background:#f7fafc;color:#173d58}
.association-scope-dialog h2{font-size:24px;margin:7px 0}
.association-scope-dialog>header>small{font-size:10px;font-weight:750;letter-spacing:.09em;color:#176291}
.association-scope-dialog p{font-size:13px;line-height:1.6;color:#627c90;margin:8px 0 0}
.association-scope-items{padding:20px 24px;display:grid;gap:16px}
.association-scope-items>div{display:grid;gap:6px;padding-left:12px;border-left:3px solid #b6d5e8}
.association-scope-items>div:nth-child(2){border-color:#73b49d}
.association-scope-items small{font-size:11px;color:#627c90}
.association-scope-items b{font-size:14px;line-height:1.5}
.association-scope-dialog footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;padding:16px 24px;border-top:1px solid #dce6ee;background:#f7fafc}
.association-scope-dialog .btn{min-height:38px;padding:9px 12px;font-size:12px}
@media(max-width:1050px){.spreadsheet-mode .budget-spreadsheet{font-size:12px}.spreadsheet-mode .budget-spreadsheet>thead>tr>th,.spreadsheet-mode .budget-spreadsheet>tbody>tr>td{padding-left:4px;padding-right:4px}.budget-spreadsheet td:first-child .association-compact{margin-left:0}.budget-spreadsheet .sheet-data-row>td:first-child>b,.budget-spreadsheet .composition-toggle{font-size:12px}.budget-spreadsheet .association-compact input[type=search]{font-size:11px}}
@media(max-width:760px){.spreadsheet-mode .budget-spreadsheet{min-width:880px}}
.association-compact>label{font-size:0;letter-spacing:0;gap:0}
.budget-spreadsheet .association-compact input[type=search]{min-height:32px;padding:6px 8px;border:1px solid #d6e1e9;border-radius:5px;font-size:12px;font-weight:400;line-height:1.4;margin:0}
.budget-spreadsheet .association-compact .association-linked{font-size:10px;margin-top:5px;gap:4px;line-height:1.4}
.budget-spreadsheet .association-compact .association-linked span{font-size:10px;padding:2px 4px;border-radius:3px}
.budget-spreadsheet .association-compact .association-options{max-height:250px;min-width:0;margin-top:6px;border-radius:5px;position:static}
.budget-spreadsheet .association-options>button{display:block;min-width:0;padding:8px;font-size:12px;line-height:1.5;overflow-wrap:anywhere;white-space:normal}
.budget-spreadsheet .association-options>button>small{font-size:10px!important}
.budget-spreadsheet .association-feedback:empty{display:none}
.budget-spreadsheet .association-feedback{font-size:11px;white-space:normal}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-description-row>td{padding:6px 12px 5px;background:#fff;border-top:1px solid #cddce8;text-align:left;white-space:normal}
.sheet-description-layout{display:block;margin-left:24px}
.sheet-item-description{min-width:0;line-height:1.55}
.sheet-item-description>b{display:block;font-size:13px;font-weight:700;line-height:1.45}
.budget-spreadsheet .sheet-item-description .composition-toggle{margin:0;width:100%;font-size:13px;line-height:1.45}
.sheet-item-description>small{display:block;margin-top:2px;color:#688094;font-size:10px;line-height:1.4}
.budget-spreadsheet .sheet-description-layout .association-compact{margin:0;padding:0;border:0;max-width:none}
.budget-spreadsheet .sheet-description-layout .association-compact>label{font-size:10px;gap:5px;line-height:1.4}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-values-row>td:first-child{position:static;text-align:right}
.budget-spreadsheet .sheet-values-row>td:first-child>small{margin:5px 0 0}
.budget-spreadsheet .sheet-values-row>td{padding-top:7px!important;padding-bottom:7px!important}
.budget-spreadsheet .sheet-description-row .sheet-drag-handle{float:left;margin:0;padding:3px 1px;width:20px;font-size:17px}
@media(max-width:760px){.sheet-description-layout{grid-template-columns:1fr;gap:12px}}
.budget-spreadsheet .association-label-host{display:flex;margin:0;max-width:100%;font-size:12px;line-height:1.25}
.association-label{display:inline-flex;align-items:baseline;gap:5px;max-width:100%;padding:0;border:0;border-radius:3px;background:transparent;color:#52788d;font:inherit;font-size:12px;line-height:1.25;text-align:left;cursor:pointer;box-shadow:none}
.association-label>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
.association-label>span:first-child{color:#829aa9;font-size:13px}
.association-label-chevron{font-size:15px;color:#8198a7}
.association-label:hover{color:#075b91;text-decoration:underline;text-underline-offset:3px;background:transparent}
.association-label:focus-visible{outline:2px solid #3987b8;outline-offset:3px}
.association-label-empty{font-size:11px;color:#8295a3}
.association-picker-dialog{box-sizing:border-box;width:min(720px,calc(100vw - 28px));max-height:90dvh;padding:0;border:1px solid #d6e2eb;border-radius:16px;background:#fff;color:#193c56;box-shadow:0 24px 80px #08263c55;overflow:auto}
.association-picker-dialog::backdrop{background:#08283c99;backdrop-filter:blur(3px)}
.association-picker-dialog>header{position:static;height:auto;display:flex;align-items:start;justify-content:space-between;gap:16px;padding:22px 24px 18px;border-bottom:1px solid #e1e9ef;background:#f8fafc}
.association-picker-dialog>header>div{min-width:0}
.association-picker-dialog header small{font-size:10px;font-weight:750;letter-spacing:.09em;color:#668095}
.association-picker-dialog h2{font-size:23px;line-height:1.3;margin:6px 0}
.association-picker-dialog header p{font-size:13px;color:#698091;line-height:1.5;margin:0}
.association-picker-dialog header>button{flex-shrink:0;display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #dce5ed;border-radius:7px;background:#fff;color:#607c91;font-size:18px;cursor:pointer}
.association-picker-body{padding:20px 24px;max-height:55dvh;overflow:auto}
.association-picker-body>.budget-association{margin:0;max-width:none}
.association-picker-body label{font-size:12px;line-height:1.5;color:#577185;letter-spacing:0;gap:8px}
.association-picker-body input[type=search]{width:100%;min-height:42px;padding:10px 12px;border:1px solid #cddde9;border-radius:8px;font:inherit;font-size:14px;color:#193c56;background:#fff;box-sizing:border-box}
.association-picker-body input:focus{outline:2px solid #5b9dc6;outline-offset:1px}
.association-picker-body .association-options{max-height:none;overflow:visible;margin-top:12px;border-radius:8px}
.association-picker-body .association-options>button{font-size:13px;line-height:1.5;align-items:start}
.association-picker-body .association-selected{padding:10px 12px;border:1px solid #d6e7df;border-radius:8px;background:#f4faf7;margin-bottom:16px}
.association-picker-dialog footer{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:14px 24px;border-top:1px solid #e1e9ef;background:#f8fafc}
.association-picker-dialog footer>span{margin-right:auto;font-size:11px;color:#718795;line-height:1.5}
.association-picker-dialog footer .btn{min-height:36px;padding:8px 13px;font-size:12px}
.sheet-service-heading{display:flex;align-items:flex-start;gap:14px;justify-content:space-between;min-width:0}
.sheet-service-heading>b,.budget-spreadsheet .sheet-service-heading>.composition-toggle{flex:1;min-width:0;width:auto;margin:0;font-size:13px;line-height:1.3}
.sheet-service-heading>.sheet-origin-badge{display:inline-flex;flex:0 1 auto;align-items:center;max-width:35%;margin:0;padding:1px 7px;border:1px solid hsl(var(--source-hue,210) 38% 84%);border-radius:5px;background:hsl(var(--source-hue,210) 48% 95%);color:hsl(var(--source-hue,210) 48% 30%);font-size:10px;font-weight:600;line-height:1.4;white-space:normal;text-align:right}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-values-row>td.sheet-quantity,.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-values-row>td.sheet-result{vertical-align:middle;white-space:nowrap}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-values-row>td.sheet-quantity>small,.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-values-row>td.sheet-result>small{display:inline;margin:0 0 0 5px;font-size:10px;font-weight:400;white-space:nowrap}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-values-row>td{vertical-align:middle}
.budget-spreadsheet td.sheet-quantity.editing input{display:inline-block;width:calc(100% - 23px)!important;min-width:0;max-width:100%}
.budget-spreadsheet .line-actions-menu>summary{height:26px;width:26px;border-radius:5px;font-size:12px;background:transparent}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td:last-child{padding:12px 2px}
.spreadsheet-mode .budget-spreadsheet .sheet-header-groups>th:last-child{padding-left:2px;padding-right:2px;white-space:nowrap}
.budget-spreadsheet .line-actions-menu>div{width:170px;z-index:10;top:30px}
.budget-spreadsheet .line-actions-menu>div button{font-size:12px;min-height:34px;padding:8px}
.spreadsheet-mode .budget-spreadsheet>tbody>.composition-detail>td{padding:0!important;white-space:normal;background:#f3f7fb}
.budget-spreadsheet .composition-panel{padding:18px;max-width:1100px;position:sticky;left:0;box-sizing:border-box}
.spreadsheet-mode .budget-spreadsheet .sheet-entry>td{background:#eff6fc;white-space:normal;text-align:right}
.spreadsheet-mode .budget-spreadsheet .sheet-entry>td:first-child{text-align:left}
.budget-spreadsheet .sheet-entry input[data-field]{width:100%!important;min-width:0!important;max-width:100%;font-size:12px;padding:6px;min-height:34px}
.budget-spreadsheet .sheet-entry label{font-size:11px}
.budget-spreadsheet .sheet-entry-association{font-size:11px;color:var(--muted)}
.spreadsheet-mode .budget-spreadsheet .sheet-entry-controls>td{padding:10px 12px!important;background:#eff6fc}
.sheet-entry-controls>td>div{display:flex;gap:12px;align-items:center;position:sticky;left:12px;width:max-content}
.budget-spreadsheet .sheet-selected>td{background:#e4f0fa!important}
.spreadsheet-mode .sheet-selection-bar{padding:10px 14px;font-size:12px;gap:10px}
.spreadsheet-mode .sheet-selection-bar small{font-size:11px}
.spreadsheet-mode .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[data-theme=dark] .spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td{background:#1b2a38;color:#dce6ee;border-color:#314555}
html[data-theme=dark] .spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td.sheet-sale{background:#20374b}
html[data-theme=dark] .spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td.sheet-cost{background:#203c35}
html[data-theme=dark] .spreadsheet-mode .budget-spreadsheet>tbody>.sheet-data-row>td.sheet-result{background:#343c29}
/* Amber = business rule; slate = calculated/read-only. Reasons remain accessible. */
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-values-row>td.sheet-locked{position:relative;cursor:help}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-values-row>td.sheet-readonly{background:#f2f5f8!important;color:#5c6e7d}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-values-row>td.sheet-rule-locked{background:#fff6e5!important;color:#885818;box-shadow:inset 0 -2px #d8ad5973}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-values-row>td.sheet-rule-locked{background:#fff6e5!important;color:#885818;box-shadow:inset 0 -2px #d8ad59}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-values-row>td.sheet-locked:focus-visible{outline:2px solid #71899c;outline-offset:-2px}
.spreadsheet-mode .budget-spreadsheet>tbody>.sheet-values-row>td.sheet-rule-locked:focus-visible{outline-color:#b68534}
.field-lock-reason{display:none;position:absolute;bottom:calc(100% + 5px);right:0;z-index:12;width:max-content;max-width:240px;padding:8px 10px;border:1px solid #d2dce5;border-radius:6px;background:#fff;color:#40566a;box-shadow:0 5px 16px #12344b1a;font-size:11px;font-weight:400;line-height:1.45;white-space:normal;text-align:left;pointer-events:none}
.sheet-locked:hover>.field-lock-reason,.sheet-locked:focus-visible>.field-lock-reason{display:block}
.budget-pricing-controls input[readonly],.budget-sheet input[readonly],.budget-sheet input:disabled,.component-sale-table input:disabled{background:#f2f5f8!important;border-color:#d5dfe7!important;color:#5c6e7d!important;opacity:1;cursor:help}
.budget-pricing-controls input[name=desconto_percentual][readonly],.budget-sheet input.field-rule-locked,.component-sale-table input.field-rule-locked{background:#fff6e5!important;border-color:#d8ad59!important;color:#885818!important;opacity:1;cursor:help}
html[data-theme=dark] .spreadsheet-mode .budget-spreadsheet>tbody>.sheet-values-row>td.sheet-readonly{background:#293746!important;color:#b6c5d1}
html[data-theme=dark] .spreadsheet-mode .budget-spreadsheet>tbody>.sheet-values-row>td.sheet-rule-locked{background:#45381f!important;color:#f2ce88}
.budget-spreadsheet .composition-panel.component-sheet-panel{max-width:none;padding:0;border:0;background:#f8fafc;position:static}
.component-detail-bar{display:flex;align-items:center;gap:14px;padding:7px 12px;color:#657d90;font-size:11px;border-bottom:1px solid #d9e3ec}
.component-detail-bar>span:first-child{font-weight:650;color:#446079}
.component-detail-bar>[data-save-status]{margin-left:auto}
.component-detail-bar>details{position:relative}
.component-detail-bar summary{display:grid;place-items:center;width:20px;height:20px;border:1px solid #ccdae5;border-radius:50%;cursor:pointer;list-style:none;font-size:11px;font-weight:650}
.component-detail-bar details>p{position:absolute;right:0;top:22px;z-index:15;width:260px;max-width:65vw;padding:12px;border:1px solid #ccdae5;border-radius:7px;background:white;color:#456079;font-size:12px;line-height:1.5;box-shadow:0 5px 20px #153d581a}
.component-sheet-panel .component-sale-table{table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px;background:white}
.component-sheet-panel .component-sale-table th,.component-sheet-panel .component-sale-table td{box-sizing:border-box;border:0;border-right:1px solid #dfe7ee;border-bottom:1px solid #dfe7ee;padding:8px 9px!important;text-align:right;vertical-align:middle;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;position:relative}
.component-sheet-panel .component-sale-table th{background:#edf2f7;color:#5c758a;font-size:10px;font-weight:700}
.component-sheet-panel .component-sale-table th:first-child,.component-sheet-panel .component-sale-table td:first-child{width:36%;text-align:left;padding-left:24px!important}
.component-sheet-panel .component-sale-table th:nth-child(2){width:14%}
.component-sheet-panel .component-sale-table th:nth-child(5){width:10%}
.component-sheet-panel .component-sale-table td:nth-child(4),.component-sheet-panel .component-sale-table td:nth-child(6){background:#f0f7fc}
.component-sheet-panel .component-sale-table td.sheet-readonly{background:#f2f5f8;color:#5c6e7d;cursor:help}
.component-sheet-panel .component-sale-table td.sheet-rule-locked{background:#fff6e5;color:#885818;cursor:help}
.component-sheet-panel .component-sale-table td.component-editable{cursor:text}
.component-sheet-panel .component-sale-table td.component-editable:hover{background:#e9f3fb;box-shadow:inset 0 0 0 1px #8db8d7}
.component-sheet-panel .component-sale-table td.component-editable:focus-visible,.component-sheet-panel .component-sale-table td.sheet-locked:focus-visible{outline:2px solid #1873b0;outline-offset:-2px}
.component-sheet-panel .component-sale-table td.editing{padding:3px!important;background:#e9f3fb}
.component-sheet-panel .component-sale-table input{box-sizing:border-box;width:100%!important;min-width:0;max-width:100%;min-height:30px;padding:4px 6px;border:1px solid #3987b8;border-radius:4px;color:#193c56;font:inherit;text-align:right;background:white}
.component-sheet-panel .component-sale-table input[aria-invalid=true]{border-color:#b7354a;background:#fff4f5}
.component-detail-total{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:7px 12px;font-size:11px;line-height:1.4;color:#657d90;border-bottom:1px solid #d4e0e9}
.component-detail-total>[data-summary]{font-weight:600;color:#446079}
.component-sheet-panel .workspace-error{margin:5px 12px;font-size:12px}
html[data-theme=dark] .component-sheet-panel .component-sale-table td.sheet-rule-locked{background:#45381f;color:#f2ce88}
html[data-theme=dark] .component-sheet-panel .component-sale-table td.sheet-readonly{background:#293746;color:#b6c5d1}
