.unit-model-layout thead .model-band{height:28px;padding:4px 8px;text-align:left;font-size:14px;font-weight:700;border-bottom:1px solid #ffffff35}
.unit-model-layout thead .model-fbw{background:#285419!important;color:#fff!important}
.unit-model-layout thead .model-fbs{background:#590e32!important;color:#fff!important}
.unit-model-layout thead .model-common{background:var(--surface-2,var(--panel))}
.unit-model-layout thead th .numeric-heading{position:relative;min-height:56px;padding:4px 3px;gap:6px;display:flex;flex-wrap:wrap;align-content:flex-start;justify-content:center}
.unit-model-layout thead th .numeric-heading>span:first-child{flex:1 1 100%;overflow-wrap:normal;word-break:normal;line-height:1.3;min-height:32px;display:flex;align-items:center;justify-content:center;font-size:12px;color:inherit;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.unit-model-layout .column-tools{display:flex;gap:4px;align-items:center;justify-content:center;flex-wrap:wrap}
.unit-model-layout thead .model-fbw button,.unit-model-layout thead .model-fbs button{color:#fff}
.unit-model-layout .unit-model-toggle{flex:0 0 28px;width:28px;height:28px;min-width:28px;background:#fff!important;color:#163b1e!important;border:2px solid #fff;border-radius:5px;font-size:22px;font-weight:700;line-height:22px;cursor:pointer}
.unit-model-layout .model-fbs .unit-model-toggle{color:#590e32!important}
.unit-model-layout .unit-model-toggle:focus-visible{outline:3px solid #ffbf47;outline-offset:2px}
.unit-model-layout .unit-common-input{display:flex;align-items:center;gap:4px;justify-content:center;margin:5px 3px;color:#fff}
.unit-model-layout .unit-common-input input{width:58px;max-width:70%;height:28px;background:#fff;color:#102218;border:1px solid #bbc8bd;border-radius:5px;padding:3px;text-align:center;font-size:12px}
.unit-model-layout [data-unit-column=product]{text-align:left}
.unit-model-layout [data-unit-column=product] .numeric-heading>span:first-child{justify-content:flex-start}
.unit-model-layout .unit-manual-value,.unit-model-layout .calculated-fallback{color:#b42332!important}
html[data-theme=dark] .unit-model-layout .unit-manual-value,html[data-theme=dark] .unit-model-layout .calculated-fallback{color:#ff9fa9!important}
.unit-model-layout td .cell-sub{display:none!important}
.unit-fbs-notice{font-size:12px;margin:0;padding:5px 12px;color:var(--text);background:var(--surface-2,var(--panel));border-top:1px solid var(--border)}
.unit-form-actions{display:flex;flex-wrap:wrap;gap:8px}
.unit-individual-commission{padding:12px 16px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;border:1px solid var(--border);border-radius:8px}
.unit-individual-commission .field{min-width:220px;max-width:320px}
.unit-model-layout .green{color:#12632e!important}.unit-model-layout .red{color:#b42332!important}
html[data-theme=dark] .unit-model-layout .green{color:#7ee5a1!important}html[data-theme=dark] .unit-model-layout .red{color:#ff9fa9!important}

.unit-model-label{position:sticky;left:210px;display:inline-block}
.unit-model-layout .unit-auto-period{display:block;font-size:11px;line-height:1.3;margin:3px 2px;color:#fff;white-space:normal}


.unit-model-layout thead th[data-unit-column]{--unit-header-bg:var(--surface-2,var(--panel));--unit-header-ink:var(--text);--unit-header-line:var(--border)}
.unit-model-layout thead .model-fbw[data-unit-column]{--unit-header-bg:#285419;--unit-header-ink:#fff;--unit-header-line:#62805b}
.unit-model-layout thead .model-fbs[data-unit-column]{--unit-header-bg:#590e32;--unit-header-ink:#fff;--unit-header-line:#97516f}
.unit-model-layout thead .model-fbw[data-unit-depth="1"]{--unit-header-bg:#52745f;--unit-header-line:#81998b}
.unit-model-layout thead .model-fbw[data-unit-depth="2"]{--unit-header-bg:#d5e5db;--unit-header-ink:#173d2b;--unit-header-line:#8fa99a}
.unit-model-layout thead .model-fbs[data-unit-depth="1"]{--unit-header-bg:#8d4968;--unit-header-line:#b17b94}
.unit-model-layout thead .model-fbs[data-unit-depth="2"]{--unit-header-bg:#efdbe5;--unit-header-ink:#53172f;--unit-header-line:#b88b9f}
.unit-model-layout thead th[data-unit-column]{background:var(--unit-header-bg)!important;color:var(--unit-header-ink)!important;border-color:var(--unit-header-line)!important}
.unit-model-layout thead th[data-unit-column] button,.unit-model-layout thead th[data-unit-column] .unit-auto-period,.unit-model-layout thead th[data-unit-column] .unit-common-input{color:var(--unit-header-ink)!important}
.unit-model-layout thead th[data-unit-column] .unit-model-toggle{background:var(--unit-header-ink)!important;color:var(--unit-header-bg)!important;border-color:var(--unit-header-ink)}
.unit-model-layout thead th[data-unit-column] .numeric-heading>span:first-child{display:block;white-space:normal;overflow-wrap:anywhere;word-break:normal;overflow:visible;text-overflow:clip;line-height:1.3;height:auto;max-height:none;min-height:0}
.unit-model-layout tbody td.num{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.unit-model-layout tbody td.num button{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.settings-individual-row{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.settings-individual-row h2{margin:0;min-width:240px;font-size:18px}
.settings-individual-row form{display:flex;align-items:center;gap:16px;flex-wrap:wrap;flex:1}
.settings-individual-row .unit-individual-commission{border:0;padding:0;flex:1}
