
/* One geometry contract for report commands, fields, dropdowns and tool panes. */
.rw-editor.rw-editor--ribbon{
 --rw-control-size:36px;--rw-icon-size:18px;--rw-icon-large:28px;--rw-space:8px;
 --rw-accent:#276c46;--rw-text:#253b32;--rw-muted:#65766c;--rw-border:#d4dfd8;
 --rw-hover:#eaf2ed;--rw-selected:#dcece1;--rw-surface:#f6f8f7;
 position:relative;isolation:isolate;height:100%;min-height:0;flex:1;gap:0;overflow:hidden;
 color:var(--rw-text);background:#fff;font-family:"Segoe UI",Calibri,Arial,sans-serif;
}
.rw-editor.rw-editor--ribbon [hidden]{display:none!important}
.rw-editor--ribbon :is(.rw-ribbon,.rw-tool-pane,.rw-command-feedback,.rw-statusbar,.rw-zoom) *,
.sc-popup[data-select-surface=report] *{box-sizing:border-box}
.rw-editor--ribbon .rw-ribbon{position:relative;flex:none;min-width:0;background:var(--rw-surface);border-bottom:1px solid var(--rw-border)}
.rw-editor--ribbon .rw-quickbar{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 12px;background:#fff;border-bottom:1px solid #edf1ee}
.rw-editor.rw-editor--ribbon .rw-ribbon .rw-quickbar [data-rw-action=tool-collapse-ribbon]{margin-left:auto}
.rw-editor--ribbon .rw-ribbon-tabs{display:flex;align-items:stretch;gap:0;min-height:42px;padding:0 12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;background:#fff;border-bottom:1px solid var(--rw-border)}
.rw-editor--ribbon .rw-ribbon-tab{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#42564a;font:400 14px/20px "Segoe UI",Arial,sans-serif;white-space:nowrap;cursor:pointer}
.rw-editor.rw-editor--ribbon .rw-ribbon-tab[aria-selected=true]{background:#f0f6f2;color:var(--rw-accent);border-bottom-color:var(--rw-accent);box-shadow:none;font-weight:600}
.rw-editor--ribbon .rw-ribbon-tab:focus-visible{outline:2px solid var(--rw-accent);outline-offset:-3px}
.rw-editor--ribbon .rw-ribbon-panel{display:flex;align-items:stretch;gap:0;height:160px;min-height:160px;max-height:160px;padding:8px 12px;box-sizing:border-box;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scroll-padding-inline:12px;scroll-snap-type:x proximity;background:var(--rw-surface)}
.rw-editor--ribbon .rw-ribbon-group{display:grid;grid-template-rows:116px 16px;gap:4px;flex:0 0 auto;min-width:max-content;padding:0 12px;border-right:1px solid var(--rw-border);scroll-snap-align:start;scroll-margin-inline:12px}
.rw-editor--ribbon .rw-ribbon-group:first-child{padding-left:0}.rw-editor--ribbon .rw-ribbon-group:last-child{border-right:0}
.rw-editor--ribbon .rw-ribbon-group-controls{display:flex;align-items:center;gap:8px;height:116px;min-height:116px;min-width:max-content}
.rw-editor--ribbon .rw-ribbon-group-label{display:block;height:16px;min-height:16px;margin:0;color:var(--rw-muted);font:400 11px/16px "Segoe UI",Arial,sans-serif;text-align:center;white-space:nowrap}
.rw-editor--ribbon .rw-ribbon-buttons{display:grid;grid-template-rows:repeat(3,36px);grid-auto-flow:column;grid-auto-columns:max-content;gap:4px 8px;align-items:stretch;min-width:0;height:116px;min-height:116px}
.rw-editor--ribbon .rw-ribbon-buttons>:is(label,p,span){grid-row:1/span 3;align-self:center}
.rw-editor--ribbon .rw-ribbon-buttons>p,.rw-editor--ribbon .rw-ribbon-buttons>span{max-width:240px;margin:0;font-size:13px;line-height:20px;white-space:normal;overflow-wrap:anywhere}
.rw-editor.rw-editor--ribbon .rw-command,.rw-editor.rw-editor--ribbon :is(.rw-ribbon,.rw-tool-pane) .btn{
 position:relative;display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;flex:none;
 min-height:36px;height:36px;margin:0;padding:8px 10px;border:1px solid transparent;border-radius:5px;
 background:transparent;box-shadow:none;color:var(--rw-text);font:400 13px/18px "Segoe UI",Arial,sans-serif;
 text-align:left;text-transform:none;letter-spacing:normal;white-space:nowrap;cursor:pointer;
}
.rw-editor.rw-editor--ribbon .rw-command-icon{display:block;flex:0 0 18px;width:18px;min-width:18px;height:18px;max-height:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;overflow:visible;color:var(--rw-accent)}
.rw-editor--ribbon .rw-command-label{display:block;min-width:0;font:inherit;line-height:18px;white-space:inherit}
.rw-editor.rw-editor--ribbon .rw-command:hover:not(:disabled){background:var(--rw-hover);border-color:#bfd2c5}
.rw-editor.rw-editor--ribbon .rw-command:focus-visible{outline:2px solid var(--rw-accent);outline-offset:-2px;background:var(--rw-hover)}
.rw-editor.rw-editor--ribbon .rw-command[aria-pressed=true]{background:var(--rw-selected);border-color:#a8c7b2;color:#1f5b39}
.rw-editor--ribbon .rw-command:disabled{opacity:.42;cursor:default}
.rw-editor.rw-editor--ribbon .rw-command-icon-only{width:36px;min-width:36px;max-width:36px;height:36px;min-height:36px;padding:8px;justify-content:center}
.rw-editor--ribbon .rw-command-icon-only .rw-command-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.rw-editor.rw-editor--ribbon .rw-ribbon .rw-command-large{display:flex;flex-direction:column;align-items:center;justify-content:center;grid-row:1/span 3;width:100px;min-width:84px;max-width:112px;height:116px;min-height:116px;padding:10px 8px;gap:8px;text-align:center;white-space:normal}
.rw-editor.rw-editor--ribbon .rw-ribbon .rw-command-large .rw-command-icon{flex:0 0 28px;width:28px;min-width:28px;height:28px}
.rw-editor--ribbon .rw-command-large .rw-command-label{max-width:96px;line-height:18px;overflow-wrap:anywhere}
.rw-editor--ribbon [data-rw-action=fill-down] .rw-command-icon{transform:rotate(90deg)}
.rw-editor--ribbon [data-rw-action=tool-sheet-left] .rw-command-icon{transform:rotate(180deg)}
.rw-editor--ribbon .rw-ribbon-group[data-rw-group="Буфер обмена"] .rw-ribbon-buttons{grid-template-columns:100px max-content}
.rw-editor--ribbon [data-rw-action=tool-paste]{grid-column:1;grid-row:1/span 3}
.rw-editor--ribbon [data-rw-action=grid-cut]{grid-column:2;grid-row:1}
.rw-editor--ribbon [data-rw-action=tool-copy]{grid-column:2;grid-row:2}
.rw-editor--ribbon [data-rw-action=ribbon-pane][data-pane=clipboard]{grid-column:2;grid-row:3}
.rw-editor--ribbon .rw-ribbon-group-controls label{display:flex;flex:none;flex-direction:column;justify-content:center;gap:4px;min-width:0;max-width:none;width:144px;margin:0;font:400 12px/16px "Segoe UI",Arial,sans-serif}
.rw-editor--ribbon .rw-control-caption{display:block;min-height:16px;line-height:16px;color:#53685b;white-space:nowrap}
.rw-editor--ribbon .rw-ribbon-group-controls :is(input,select):not(.sc-native):not([type=checkbox]):not([type=color]),
.rw-editor--ribbon .rw-scoped-control .sc-trigger{width:100%;min-width:0;height:36px;min-height:36px;max-height:none;padding:7px 10px;border:1px solid #cbd9d0;border-radius:5px;background:#fff;color:var(--rw-text);font:400 13px/20px "Segoe UI",Arial,sans-serif;box-shadow:none}
.rw-editor--ribbon .rw-scoped-control .sc-root,.rw-editor--ribbon .rw-scoped-control .sc-field{width:100%;min-width:0;flex:none}
.rw-editor--ribbon .rw-scoped-control .sc-trigger{display:flex;align-items:center;gap:8px;white-space:nowrap}
.rw-editor--ribbon .rw-scoped-control .sc-value{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rw-editor--ribbon .rw-scoped-control .sc-chevron{display:flex;align-items:center;flex:none;width:16px;height:16px}
.rw-editor--ribbon .rw-scoped-control .sc-chevron .icon{display:block;width:16px;height:16px;flex:none}
.rw-editor--ribbon .rw-scoped-control .sc-trigger[aria-expanded=true]{border-color:var(--rw-accent);outline:2px solid #dbeadd;outline-offset:-2px}
.rw-editor--ribbon .rw-scoped-control .sc-clear{width:28px;height:28px;min-height:28px;padding:6px;border:0}
.rw-editor--ribbon .rw-font-controls,.rw-editor--ribbon .rw-align-controls{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:8px}
.rw-editor--ribbon .rw-font-row{display:flex;flex:none;align-items:center;gap:4px;min-height:36px}
.rw-editor--ribbon .rw-font-row>label{display:block;flex:none;width:36px;min-width:0}
.rw-editor--ribbon .rw-font-row .rw-control-caption{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.rw-editor--ribbon [data-rw-control="style-fontFamily"]{width:144px!important}.rw-editor--ribbon [data-rw-control="style-fontSize"]{width:56px!important}
.rw-editor--ribbon [data-rw-control="style-align"]{width:112px!important}.rw-editor--ribbon [data-rw-control="style-format"]{width:144px!important}
.rw-editor--ribbon [data-rw-control="shape-type"]{width:224px!important}.rw-editor--ribbon [data-rw-control="meta-name"]{width:180px!important}
.rw-editor--ribbon [data-rw-control="print-paperSize"]{width:104px!important}.rw-editor--ribbon [data-rw-control="print-scale"]{width:116px!important}
.rw-editor--ribbon [data-rw-control="start-row"],.rw-editor--ribbon [data-rw-control="start-column"]{width:112px!important}
.rw-editor--ribbon .rw-color-control{position:relative;width:36px!important;height:36px;min-width:36px;border-radius:5px;cursor:pointer}
.rw-editor--ribbon .rw-color-control:hover,.rw-editor--ribbon .rw-color-control:focus-within{background:var(--rw-hover);outline:2px solid #b1c8b8;outline-offset:-2px}
.rw-editor--ribbon .rw-color-symbol{position:absolute;inset:3px 5px 8px;text-align:center;font:21px/25px Arial,sans-serif;pointer-events:none;color:#315b41}
.rw-editor--ribbon .rw-color-control:after{content:'';position:absolute;bottom:5px;left:7px;right:7px;height:3px;background:var(--rw-swatch);border:1px solid #aab8ad;pointer-events:none}
.rw-editor--ribbon .rw-color-control input[type=color]{position:absolute;inset:0;width:36px;height:36px;min-height:36px;padding:0;opacity:0;cursor:pointer}
.rw-editor--ribbon .rw-ribbon-group-controls label:has(input[type=checkbox]){display:flex;flex-direction:row;align-items:center;justify-content:flex-start;width:180px;gap:8px;white-space:normal;font-size:13px;line-height:18px}
.rw-editor--ribbon .rw-ribbon-group-controls input[type=checkbox]{width:18px;height:18px;min-height:18px;flex:none;margin:0;accent-color:var(--rw-accent)}
.rw-editor--ribbon .rw-ribbon-group[data-rw-group="Число"] .rw-ribbon-group-controls{display:grid;grid-template-columns:70px 70px;grid-template-rows:36px 36px;align-content:center;gap:8px 4px}
.rw-editor--ribbon .rw-ribbon-group[data-rw-group="Число"] label{grid-column:1/span 2;grid-row:1}
.rw-editor--ribbon .rw-ribbon-overflow{position:static;display:flex;align-items:center;gap:4px;flex:none;margin-left:4px}
.rw-editor.rw-editor--ribbon .rw-ribbon-overflow .btn{display:flex;align-items:center;justify-content:center;width:36px;min-width:36px;height:36px;padding:8px;border:1px solid var(--rw-border);font-size:0;background:#fff}
.rw-editor--ribbon .rw-ribbon-overflow .btn:before{content:'';display:block;width:8px;height:8px;border:solid #4b7357;border-width:1.5px 1.5px 0 0;transform:rotate(45deg)}
.rw-editor--ribbon .rw-ribbon-overflow .btn[data-direction="-1"]:before{transform:rotate(-135deg)}
.rw-editor.rw-editor--ribbon .rw-formulabar{flex:none;display:flex;align-items:flex-end;flex-wrap:nowrap;gap:12px;padding:8px 12px;background:#fff;border-bottom:1px solid var(--rw-border)}
.rw-editor.rw-editor--ribbon .rw-formulabar>label{min-width:0;gap:4px;font:400 11px/16px "Segoe UI",Arial,sans-serif}
.rw-editor.rw-editor--ribbon .rw-formulabar>label:first-child{flex:0 0 124px}.rw-editor.rw-editor--ribbon .rw-formulabar>label:last-child{flex:1;padding-left:28px}
.rw-editor.rw-editor--ribbon .rw-formulabar input{width:100%;height:36px;min-height:36px;padding:7px 10px;border:1px solid #cbd9d0;border-radius:5px;font:400 13px/20px "Segoe UI",Arial,sans-serif}
.rw-editor--ribbon .rw-tool-pane{display:flex;flex-direction:column;flex:0 0 384px;width:384px;max-width:42%;min-width:0;min-height:0;overflow:hidden;border-left:1px solid var(--rw-border);background:#fff}
.rw-editor--ribbon .rw-tool-pane-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex:none;padding:16px;border-bottom:1px solid var(--rw-border);background:#f7faf8}
.rw-editor--ribbon .rw-tool-pane-header>div{min-width:0;flex:1}.rw-editor--ribbon [data-rw-pane-title]{display:block;font-size:16px;line-height:22px}
.rw-editor--ribbon [data-rw-pane-target]{display:block;margin-top:4px;font-size:12px;line-height:18px;overflow-wrap:anywhere;color:var(--rw-muted)}
.rw-editor--ribbon .rw-tool-pane>[data-rw-tool-pane]{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;margin:0;padding:16px;border:0;border-radius:0;box-sizing:border-box}
.rw-editor--ribbon .rw-tool-pane>[data-rw-tool-pane]>summary{display:none}
.rw-editor--ribbon .rw-tool-pane-content{display:flex;flex-direction:column;gap:16px}.rw-editor--ribbon .rw-tool-pane-content>details>summary{display:none}.rw-editor--ribbon .rw-tool-pane-content>.rw-binding{padding:0;border:0;border-radius:0}
.rw-editor--ribbon .rw-tool-pane :is(.rw-tool-form,.rw-function-builder){display:flex;flex-direction:column;gap:16px}
.rw-editor--ribbon .rw-tool-pane .rw-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px;margin:0 0 16px}
.rw-editor--ribbon .rw-tool-pane .rw-toolbar>label{width:auto;min-width:0}
.rw-editor--ribbon .rw-tool-pane .rw-toolbar>.btn{width:100%}
.rw-editor--ribbon .rw-tool-pane label{display:flex;flex-direction:column;flex:none;gap:6px;min-width:0;max-width:100%;margin:0;font:400 13px/18px "Segoe UI",Arial,sans-serif}
.rw-editor--ribbon .rw-tool-pane :is(input,select,textarea):not(.sc-native):not([type=checkbox]):not([type=color]){width:100%;min-width:0;max-width:100%;min-height:36px;padding:7px 10px;border:1px solid #cbd9d0;border-radius:5px;font:400 13px/20px "Segoe UI",Arial,sans-serif;box-sizing:border-box;background:#fff}
.rw-editor--ribbon .rw-tool-pane textarea{min-height:80px;resize:vertical}
.rw-editor.rw-editor--ribbon .rw-tool-pane .btn{height:auto;min-height:36px;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left;justify-content:flex-start;border-color:var(--rw-border);background:#fff}
.rw-editor--ribbon .rw-tool-pane .btn.primary{background:#e5f1e7;border-color:#b1ccb8;color:#1d5936}
.rw-editor--ribbon .rw-tool-pane .rw-command-icon-only{height:36px;justify-content:center;max-width:36px;border-color:transparent;background:transparent}
.rw-editor--ribbon .rw-tool-pane :is(p,small){margin:0;color:var(--rw-muted);font-size:13px;line-height:20px;white-space:normal;overflow-wrap:anywhere}
.rw-editor--ribbon .rw-tool-pane h3{margin:0;font-size:14px;line-height:20px}
.rw-editor--ribbon .rw-tool-pane fieldset{display:grid;gap:12px;min-width:0;margin:12px 0;padding:12px;border:1px solid var(--rw-border);border-radius:6px}
.rw-editor--ribbon .rw-tool-pane legend{font-size:13px;line-height:18px;white-space:normal;overflow-wrap:anywhere}
.rw-editor--ribbon .rw-tool-two-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rw-editor--ribbon .rw-tool-check{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:8px!important;line-height:20px!important}
.rw-editor--ribbon .rw-tool-check input{width:18px;height:18px;min-height:18px;margin:1px 0 0;accent-color:var(--rw-accent);flex:none}
.rw-editor--ribbon .rw-tool-actions{display:flex;flex-wrap:wrap;gap:8px}.rw-editor--ribbon .rw-find-results{display:grid;gap:8px}
.rw-editor--ribbon [data-rw-function-info],.rw-editor--ribbon [data-rw-function-preview]{display:block;margin:0;padding:12px;border:1px solid #d4e3d7;border-radius:6px;background:#f0f6f1;white-space:pre-wrap;font-size:13px;line-height:20px;overflow-wrap:anywhere}
.rw-editor--ribbon [data-rw-function-info] code{font:12px/20px Consolas,monospace;white-space:normal;overflow-wrap:anywhere}.rw-editor--ribbon [data-rw-function-preview]:empty{display:none}
.rw-editor--ribbon .rw-command-feedback{position:absolute;bottom:84px;left:12px;z-index:30;display:flex;align-items:flex-start;gap:12px;max-width:min(620px,calc(100% - 24px));padding:12px;border:1px solid #b6d0bb;border-left:4px solid #4c8459;border-radius:6px;background:#f6fbf4;box-shadow:0 4px 18px #193e2420;box-sizing:border-box}
.rw-editor--ribbon .rw-command-feedback>div{min-width:0;flex:1}.rw-editor--ribbon .rw-command-feedback :is(strong,span){display:block;font-size:13px;line-height:20px;overflow-wrap:anywhere}
.rw-editor--ribbon .rw-command-feedback span{margin-top:4px}.rw-editor--ribbon .rw-command-feedback.is-error{border-color:#d3a492;border-left-color:#ac5d42;background:#fff8f4}
.rw-editor--ribbon .rw-statusbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:4px 12px;border-top:1px solid var(--rw-border);background:var(--rw-surface);font-size:12px;line-height:18px}
.rw-editor--ribbon .rw-statusbar .rw-status{flex:1;min-width:0;max-width:52%;min-height:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:18px;color:var(--rw-muted)}
.rw-editor--ribbon .rw-selection-stats{margin-left:auto;min-width:0;max-width:45%;font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rw-editor--ribbon .rw-zoom{display:flex;align-items:center;gap:4px;flex:none;font-size:12px}.rw-editor--ribbon .rw-zoom output{min-width:44px;text-align:center}
.rw-editor.rw-editor--ribbon .rw-zoom .btn{width:32px;min-width:32px;height:32px;min-height:32px;padding:6px;justify-content:center}
.mwd-workbook-window>.mwd-workbook-header .btn{min-height:36px;font-size:13px;line-height:18px;padding:8px 12px}
.sc-popup[data-select-surface=report]{z-index:2200;gap:8px;padding:8px;border:1px solid #cad9cf;border-radius:6px;box-shadow:0 8px 24px #183b2826;color:#253b32;font:400 13px/20px "Segoe UI",Arial,sans-serif}
.sc-popup[data-select-surface=report] .sc-search{height:36px;min-height:36px;padding:7px 10px;border-radius:5px;font:inherit}
.sc-popup[data-select-surface=report] .sc-option{align-items:center;gap:8px;min-height:36px;padding:8px;border-radius:4px;color:inherit;font:inherit;line-height:20px}
.sc-popup[data-select-surface=report] .sc-mark{width:18px;height:18px;margin:0}.sc-popup[data-select-surface=report] .sc-mark .icon{display:block;width:16px;height:16px}
.sc-popup[data-select-surface=report] .sc-option:hover,.sc-popup[data-select-surface=report] .sc-option:focus-visible{background:#eaf2ed;outline:2px solid #b7cebf;outline-offset:-2px}
.sc-popup[data-select-surface=report] .sc-option.is-selected{background:#e1eee5;color:#245e3c}
@media(max-width:850px){.rw-editor--ribbon .rw-tool-pane{position:absolute;right:0;top:0;bottom:0;z-index:20;flex:none;width:min(384px,calc(100% - 16px));max-width:none;box-shadow:-8px 0 28px #18372826}.rw-editor--ribbon .rw-ribbon-panel{padding-inline:8px}.rw-editor--ribbon .rw-ribbon-tabs{padding-inline:8px}.rw-editor--ribbon .rw-ribbon-tab{padding-inline:12px}.rw-editor--ribbon .rw-quickbar{padding-inline:8px}}
@media(max-width:600px){.rw-editor--ribbon .rw-quickbar{gap:4px}.rw-editor--ribbon .rw-quickbar :is([data-rw-action=undo],[data-rw-action=redo],[data-rw-action=tool-collapse-ribbon]){width:36px;min-width:36px;padding:8px;justify-content:center}.rw-editor--ribbon .rw-quickbar :is([data-rw-action=undo],[data-rw-action=redo],[data-rw-action=tool-collapse-ribbon]) .rw-command-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.rw-editor.rw-editor--ribbon .rw-formulabar{gap:8px;padding-inline:8px}.rw-editor.rw-editor--ribbon .rw-formulabar>label:first-child{flex:0 0 92px}.rw-editor--ribbon .rw-statusbar .rw-status{display:none}.rw-editor--ribbon .rw-selection-stats{margin-left:0;max-width:60%}.rw-editor--ribbon .rw-tool-pane-header{padding:12px}.rw-editor--ribbon .rw-tool-pane>[data-rw-tool-pane]{padding:12px}}
@media(max-width:400px){.rw-editor--ribbon .rw-quickbar [data-rw-action=preview]{width:36px;min-width:36px;padding:8px;justify-content:center}.rw-editor--ribbon .rw-quickbar [data-rw-action=preview] .rw-command-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.rw-editor--ribbon .rw-ribbon-panel{scroll-behavior:auto}}

.bm-drawer.rc-drawer .bm-drawer-body{display:flex;flex-direction:column;gap:28px;padding:24px}
.rc-drawer .rc-group{display:flex;flex-direction:column;gap:18px;min-width:0;margin:0;padding:0;border:0;background:transparent}
.rc-drawer .rc-context-group{padding:0;background:transparent;gap:0}
.rc-context-content{display:flex;flex-direction:column;gap:14px;min-width:0;margin-top:12px;padding:16px;background:#f3f7f0;border-radius:8px}
.rc-group>legend{display:flex;align-items:center;gap:6px;max-width:100%;padding:0;margin-bottom:10px;font-size:14px;line-height:22px;font-weight:600;color:#526a5b}
.rc-context-group>legend{padding:0;margin:0}
.rc-drawer .rc-fields-group>legend{font-weight:400;color:#6b7a70}
.rc-group>legend>span{min-width:0;overflow-wrap:anywhere}
.rc-context-values{display:grid;gap:14px;min-width:0;margin:0}
.rc-context-values>div{display:grid;gap:4px;min-width:0}
.rc-context-values dt{margin:0;font-size:14px;line-height:22px;color:#63776b}
.rc-context-values dd{margin:0;font-size:16px;line-height:24px;font-weight:600;color:#1d3830;white-space:pre-wrap;overflow-wrap:anywhere}
.rc-drawer .rc-source-control{display:flex;align-items:flex-start;gap:8px;min-width:0;width:100%}
.rc-drawer .rc-source-control[hidden]{display:none!important}
.rc-drawer .rc-source-control>:first-child{flex:1;min-width:0;max-width:100%}
.rc-drawer .rc-source-control .rc-context-pencil{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:8px;margin:0;border:1px solid #d6e1d7;border-radius:6px;background:#fff;color:#41674e}
.rc-drawer .rc-context-pencil .icon{width:18px;height:18px;flex:none}
.rc-drawer .mw-reference-inline{min-width:0;width:100%;margin:0;font-weight:400}
.rc-drawer .mw-reference-inline [data-mw-reference-value]{width:100%;min-width:0;box-sizing:border-box;font-size:14px;line-height:22px;padding:10px 12px}
.rc-drawer .mw-reference-inline-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.rc-drawer .mw-reference-inline small{display:block;margin-top:8px;font-size:12px;line-height:18px;white-space:normal}
.rc-drawer .rc-source-inline{padding:0;border:0;border-radius:0;background:transparent;gap:8px}
.rc-drawer .rc-source-inline [data-mw-reference-value]{min-height:44px;max-height:180px;border:1px solid #a8bf9b;background:#fff;border-radius:6px;resize:vertical}
.rc-drawer .rc-source-inline .mw-reference-inline-actions{align-items:center;gap:8px;margin-top:0}
.rc-drawer .rc-source-inline .mw-reference-inline-actions .btn{min-height:36px;padding:7px 10px;font-size:13px;line-height:20px}
.rc-drawer .rc-source-inline [data-mw-reference-cancel]{border-color:transparent;background:transparent;color:#54695b}
.rc-drawer .rc-source-inline [data-mw-reference-status]:empty{display:none}
.rc-drawer .bm-drawer-field{display:flex;flex-direction:column;gap:8px;margin:0;min-width:0}
.rc-drawer .bm-drawer-field .rc-field-label{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px;line-height:22px;font-weight:600;color:#344f41}
.rc-drawer .bm-drawer-field :is(textarea,input:not([type=checkbox]),select){font-size:14px;line-height:22px;min-width:0;max-width:100%;box-sizing:border-box}
.rc-drawer .bm-drawer-field textarea{width:100%;min-height:92px;padding:10px 12px}
.rc-drawer .bm-drawer-field .sc-trigger{min-height:40px;font-size:14px;line-height:22px}
.rc-drawer .bm-drawer-field .rt-derived{font-size:14px;line-height:22px;white-space:pre-wrap;overflow-wrap:anywhere}
.rc-drawer [data-mw-form-guidance][hidden],.rc-drawer [data-mw-guidance-host][hidden]{display:none!important}
.rc-drawer .rc-info,.rc-help-popup .rc-help-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;min-height:30px;padding:6px;border:1px solid transparent;border-radius:6px;background:transparent;color:#537660;cursor:pointer}
.rc-drawer .rc-info .icon,.rc-help-popup .icon{width:18px;height:18px;min-width:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.rc-drawer .rc-info:hover,.rc-drawer .rc-info[aria-expanded=true],.rc-help-popup .rc-help-close:hover{background:#e8f0e4;border-color:#bad0b3}
.rc-drawer .rc-info:focus-visible,.rc-help-popup button:focus-visible{outline:2px solid #6c9956;outline-offset:2px}
.rc-record-switcher{padding:12px 0 0;border-top:1px solid #dbe4dc;font-size:14px;line-height:22px}
.rc-record-switcher>summary{cursor:pointer;color:#526e5b}.rc-record-switcher .bm-drawer-records{margin-top:12px}
.rc-drawer .rc-save-help{margin:0;align-self:flex-end}
.rc-help-popup{position:fixed;z-index:2500;display:flex;flex-direction:column;box-sizing:border-box;min-width:0;padding:0;overflow:hidden;border:1px solid #c8d9c4;border-radius:10px;background:#fff;box-shadow:0 10px 36px #12322926;color:#233e32;font-family:Manrope,"Segoe UI",Arial,sans-serif}
.rc-help-popup *{box-sizing:border-box}.rc-help-popup>header{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-bottom:1px solid #e1e8df;background:#f4f8f1}
.rc-help-popup h3{flex:1;min-width:0;margin:0;font-size:15px;line-height:22px;font-weight:700;letter-spacing:0;overflow-wrap:anywhere}
.rc-help-content{min-height:0;padding:16px;overflow:auto;overscroll-behavior:contain}.rc-help-content p{margin:0;font-size:14px;line-height:22px;white-space:pre-line;overflow-wrap:anywhere}
.rc-help-content dl{display:grid;gap:14px;margin:16px 0 0}.rc-help-content dt{font-size:13px;line-height:20px;color:#607365}.rc-help-content dd{margin:4px 0 0;font-size:14px;line-height:22px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:650px){.bm-drawer.rc-drawer .bm-drawer-body{gap:24px;padding:16px}.rc-drawer .rc-group{gap:14px}.rc-drawer .rc-context-group{gap:0}.rc-context-content{padding:12px}.rc-help-popup{max-width:calc(100vw - 24px)}}

.mw-drawer .bm-drawer-body{padding:20px 24px}.mw-drawer .bm-drawer-field{display:flex;flex-direction:column;gap:8px;margin:0}.mw-drawer .bm-drawer-field>span{font-size:12px;font-weight:600}.mw-drawer .bm-drawer-field textarea,.mw-drawer .bm-drawer-field>.input{width:100%;min-height:44px;box-sizing:border-box}.mw-drawer footer{flex-wrap:wrap;gap:8px}.mw-drawer footer>.btn:first-child{margin-right:auto}.mw-field-error:empty{display:none}.mw-save-status{font-size:11px;color:#788779;line-height:1.6}.mw-recovery{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:65;display:flex;align-items:center;gap:14px;padding:12px 18px;border:1px solid #d7e2cd;border-radius:12px;background:#f5faee;box-shadow:0 6px 28px #12282c18;font-size:12px}.mw-drawer:fullscreen{position:fixed;inset:0;width:100%;max-width:none;background:#fff;overflow:auto}@media(max-width:650px){.mw-recovery{left:12px;right:12px;transform:none}.mw-drawer .bm-drawer-body{padding:16px}.mw-drawer footer>.btn:first-child{width:100%}}
/* ModelWorkspace owns geometry. Keep intrinsic table/canvas sizes inside their scrollports. */
.mw-workspace,#mw-stage-content,.mw-surface{min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.mw-surface{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.mw-surface>*:not(.bm-drawer),.mw-surface .bm-digital-stack>*,.mw-profile-element{min-width:0;max-width:100%;box-sizing:border-box}
.mw-profile-element{width:100%;scroll-margin-top:20px}
.mw-element-note{display:flex;align-items:baseline;gap:12px;margin:14px 4px 10px;font-size:12px;color:#738574;line-height:1.7}
.mw-element-note>span{font-weight:700;flex:none}
.mw-element-note>p{min-width:0;overflow-wrap:anywhere}
.mw-workspace .bm-stage-heading>div{min-width:0;overflow-wrap:anywhere}
.mw-workspace .bm-workspace-tools>*{min-width:0;max-width:100%}
.mw-surface .panel,.mw-surface .panel-body,.mw-surface .table-wrap,.mw-surface .bm-table-scroll{min-width:0;max-width:100%;box-sizing:border-box}
.mw-surface .table-wrap{overflow-x:auto;overscroll-behavior-x:contain}
.mw-surface .panel-head{flex-wrap:wrap;gap:12px}
.mw-surface .panel-head>div,.mw-surface .row{min-width:0}
.mw-surface .field,.mw-surface .field>.sc-root{min-width:0;max-width:100%}
.mw-surface .rt-panel{width:100%}
.mw-surface .panel-head>.row,.mw-surface .bm-digital-stack>.row{flex-wrap:wrap}
.mw-surface .bm-board-workspace,.mw-surface .bm-board-shell{min-width:0;max-width:100%}
.mw-board-header{align-items:flex-start;flex-wrap:wrap;gap:12px;padding:16px}
.mw-board-header .mb-board-caption{flex:1 1 340px;min-width:0;overflow-wrap:anywhere}
.mw-board-header .mb-board-caption>b{font-size:13px;line-height:1.5}
.mw-board-header .mb-board-caption>span{font-size:11px;line-height:1.7;color:#7b8b78}
.mw-board-header .mw-board-actions{flex:0 1 auto;flex-wrap:wrap;justify-content:flex-end;max-width:100%}
.mw-surface .mb-navigation>.row{min-width:0;max-width:100%;flex-wrap:wrap}
.mw-surface .mb-line-mode{min-width:0;flex-wrap:wrap}
.mw-surface .mb-inspector{flex-wrap:wrap}
.mw-surface .mb-inspector>div{min-width:0;max-width:100%;overflow-wrap:anywhere}
.mw-surface .mb-inspector>div:last-child{display:flex;flex-wrap:wrap;gap:8px}
.mw-field-diagnostics:empty{display:none}
@media(max-width:650px){
 .mw-workspace .bm-audience-filter{width:100%;max-width:none;margin-left:0;flex-wrap:wrap}
 .mw-workspace .bm-audience-filter .sc-root{min-width:0;flex:1}
 .mw-board-header{padding:14px}
 .mw-board-header .mw-board-actions{justify-content:flex-start}
}

/* Record drawers have one viewport contract, independently of board scroll. */
[data-mw-viewport-drawer].bm-drawer{position:fixed;inset:0 0 0 auto;height:100vh;height:100dvh;max-height:100dvh;width:var(--bm-drawer-width,570px);max-width:calc(100% - 12px);z-index:120;display:flex;flex-direction:column;overflow:hidden}
[data-mw-viewport-drawer]>header,[data-mw-viewport-drawer] form>footer{flex:none}
[data-mw-viewport-drawer] form{min-height:0;overflow:hidden;flex:1;display:flex;flex-direction:column}
[data-mw-viewport-drawer] .bm-drawer-body{min-height:0;overflow:auto;flex:1;overscroll-behavior:contain}
[data-mw-drawer-enter]{animation:mw-drawer-enter .2s ease-out}
@keyframes mw-drawer-enter{from{transform:translateX(100%)}to{transform:translateX(0)}}
.mw-field-group-form .field input[type=checkbox]{width:16px;height:16px;min-height:0;padding:0;align-self:flex-start;accent-color:var(--primary)}
.mw-field-group .bm-table-save{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;border-top:1px solid #dce5d7}
@media(prefers-reduced-motion:reduce){[data-mw-drawer-enter]{animation:none}}



[data-mw-left-drawer].bm-drawer{inset:0 auto 0 0}[data-mw-left-drawer] .bm-drawer-resizer{left:auto;right:0}[data-mw-left-drawer][data-mw-drawer-enter]{animation-name:mw-left-drawer-enter}@keyframes mw-left-drawer-enter{from{transform:translateX(-100%)}to{transform:translateX(0)}}

.mw-matrix th[scope="colgroup"],.mw-matrix th[scope="rowgroup"]{background:#edf4e5;color:#214936;text-align:center;vertical-align:middle;border:1px solid #d7e2d0}.mw-matrix thead tr+tr th{border-top:1px solid #d7e2d0}.mw-matrix th[scope="row"]{vertical-align:middle}

[data-wd-native-matrices]{display:grid;gap:24px;margin-top:24px;min-width:0}[data-wd-native-matrices]>.panel{margin:0;min-width:0}.native-matrix-save{padding:16px 20px;border-top:1px solid #dce5d7;display:flex;align-items:center;justify-content:space-between;gap:16px}.native-matrix-save>div:last-child{display:flex;gap:8px}.native-matrix-save .form-error:empty{display:none}.native-matrix-save .form-error{margin:6px 0 0}.native-matrix-records{display:grid;gap:10px;container-type:inline-size}.native-matrix-record{position:relative;min-width:0}.native-matrix-record:has(>.native-matrix-actions){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}.native-matrix-record>.mw-cell-editor{min-width:0;grid-column:1}.native-matrix-record>.native-matrix-qualifier{grid-column:1/-1}.native-matrix-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px;max-width:100%;grid-column:2;grid-row:1;box-sizing:border-box;min-width:0;padding:6px 8px 0 0}.native-matrix-actions>.btn.icon-btn{position:static;display:inline-flex;align-items:center;justify-content:center;flex:none;box-sizing:border-box;width:28px;min-width:28px;height:32px;min-height:32px;padding:6px;margin:0;opacity:.8}.native-matrix-actions>.btn.icon-btn>.icon{width:16px;height:16px}.native-matrix-record:focus-within .native-matrix-actions>.btn,.native-matrix-record:hover .native-matrix-actions>.btn{opacity:1}@container(max-width:240px){.native-matrix-record:has(>.native-matrix-actions){grid-template-columns:minmax(0,1fr)}.native-matrix-actions{grid-column:1;grid-row:2;justify-self:end;padding:0 8px 8px 0}}.native-matrix-qualifier{display:block;color:#71857a;font-size:10px;padding:4px 8px}.native-matrix-history{font-size:11px;color:#71857a}.mw-matrix-field-heading{font-size:11px;color:#71857a;min-width:150px}[data-wd-native-matrices] .mw-matrix td{padding:8px;vertical-align:top}@media(max-width:650px){.native-matrix-save{flex-wrap:wrap}.native-matrix-save>div:last-child{flex-wrap:wrap}}

/* Matrix layout controls share the same data cells in both presentations. */
.mw-matrix-tools{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px;border-bottom:1px solid currentColor}
.mw-matrix-pin-hint{flex-basis:100%;margin:0;padding:8px;border-radius:6px;background:#edf4e5;color:#4c6b58;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.bm-workspace-tools .bm-view-tabs{min-width:0;max-width:100%;flex-wrap:wrap}
.mw-matrix-tools [aria-pressed=true]{background:var(--mint);color:var(--navy)}
.mw-matrix-panel .table-wrap{max-height:min(72dvh,700px);overflow:auto;position:relative;overscroll-behavior:contain;isolation:isolate}
.mw-matrix-panel table.mw-matrix{table-layout:fixed;min-width:0;border-collapse:separate;border-spacing:0}
.mw-matrix-panel table.mw-matrix th,.mw-matrix-panel table.mw-matrix td{min-width:0;max-width:none;overflow-wrap:anywhere;box-sizing:border-box}
.mw-matrix-panel table.mw-matrix th{position:relative;padding-right:14px;white-space:normal}
.mw-matrix-panel table.mw-matrix .mw-axis-pinned{position:sticky;z-index:2;background:var(--canvas)}
.mw-matrix-panel table.mw-matrix .mw-heading-pinned{position:sticky;z-index:3;background:var(--canvas)}
.mw-matrix-panel table.mw-matrix thead .mw-axis-pinned.mw-heading-pinned{z-index:4}
.mw-matrix-resizer{position:absolute;inset:0 -3px 0 auto;width:9px;cursor:col-resize;touch-action:none;z-index:5;border-right:2px solid transparent}
.mw-matrix-resizer:hover,.mw-matrix-resizer:focus-visible{border-right-color:var(--navy);outline:2px solid var(--mint)}
[data-wd-native-matrices][hidden]{display:none}
@media(max-width:600px){.mw-matrix-tools{padding:12px;gap:8px}.mw-matrix-tools .btn{flex:1 1 150px;white-space:normal;min-height:40px}.mw-matrix-panel .table-wrap{max-height:65dvh}}
/* Report workbook: the app theme surrounds user-authored spreadsheet formatting. */
.rw-editor{min-width:0;max-width:100%;display:flex;flex-direction:column;gap:12px}
.rw-editor--ribbon{height:100%;min-height:0;flex:1;gap:0;overflow:hidden;background:#fff}
.rw-editor--ribbon [hidden]{display:none!important}
.rw-editor--ribbon .rw-formulabar{flex:none;flex-wrap:nowrap;gap:10px;align-items:end;padding:7px 12px;border-bottom:1px solid #dce5d7;background:#fff}
.rw-editor--ribbon .rw-formulabar label{font-size:10px;min-width:0;gap:3px}
.rw-editor--ribbon .rw-formulabar small{display:none}
.rw-editor--ribbon .rw-formulabar input{min-height:30px;padding:5px 8px;font-size:13px}
.rw-editor--ribbon .rw-formulabar>label:first-child{flex:0 0 130px}
.rw-editor--ribbon .rw-formulabar>label:last-child{flex:1;position:relative;padding-left:26px}
.rw-editor--ribbon .rw-formulabar>label:last-child:before{content:'fx';position:absolute;left:0;bottom:7px;font:italic 18px Georgia,serif;color:#71866a}
.rw-work-area{position:relative;display:flex;flex:1;min-height:0;min-width:0;overflow:hidden}
.rw-work-area>[data-rw-report-view]{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;overflow:hidden}
.rw-editor--ribbon .rw-sheet-scroll{flex:1;min-height:80px;max-height:none;border:0;overflow:auto}
.rw-workbook-bottom{flex:none;border-top:1px solid #dce5d7;background:#f7faf5;min-width:0}
.rw-editor--ribbon .rw-sheet-tabs{padding:5px 10px;gap:5px;border-bottom:1px solid #e2e9dd;align-items:center;flex-wrap:nowrap;overflow-x:auto}
.rw-editor--ribbon .rw-sheet-tabs>*{flex:none;white-space:nowrap}.rw-sheet-actions{display:flex;gap:5px;margin-left:auto}
.rw-editor--ribbon .rw-sheet-tabs .btn{min-height:30px;font-size:12px;padding:6px 13px}
.rw-editor--ribbon .rw-status{font-size:11px;min-height:0;flex:1}
.rw-border-controls{display:grid!important;grid-template-columns:repeat(3,28px);gap:4px}.rw-border-controls>label{grid-column:span 3;display:flex;flex-direction:row;align-items:center}.rw-border-controls input[type=color]{width:28px!important;min-height:24px!important;height:24px;padding:1px!important}
.rw-editable td.rw-freeze-row{position:sticky;top:24px;z-index:8;background-color:#fff}.rw-editable td.rw-freeze-column{position:sticky;left:40px;z-index:7;background-color:#fff;border-right:2px solid #8aa281}.rw-editable td.rw-freeze-row.rw-freeze-column{z-index:10}.rw-editable.rw-no-headings td.rw-freeze-row{top:0}.rw-editable.rw-no-headings td.rw-freeze-column{left:0}.rw-editable thead th{position:sticky;top:0;z-index:11}.rw-editable td.rw-freeze-row{border-bottom:2px solid #8aa281}
.rw-editable tbody th{position:sticky;left:0;z-index:9;background:#f4f6f3}.rw-editable tbody th.rw-freeze-row{position:sticky;z-index:12;border-bottom:2px solid #8aa281}.rw-editable thead th.rw-freeze-column{z-index:13;border-right:2px solid #8aa281}.rw-editable thead th.rw-grid-corner{left:0;z-index:14}
.rt-choice-row{display:flex;align-items:stretch;gap:4px;min-width:0}.rt-choice-row>label{flex:1;min-width:0}.mw-reference-pencil{width:30px;min-height:30px;flex:none;display:flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:5px;background:transparent;color:inherit;cursor:pointer}.mw-reference-pencil:hover,.mw-reference-pencil:focus-visible{background:#edf5e5;border-color:#b8cfa4;outline:2px solid #7b9d60;outline-offset:-2px}.mw-reference-pencil svg{width:16px;height:16px}
.mw-reference-control{display:flex;align-items:flex-start;gap:6px;min-width:0;width:100%}.mw-reference-control>.rt-choice,.mw-reference-control>.rt-group-value,.mw-reference-control>[data-source-label]{flex:1;min-width:0;overflow-wrap:anywhere}.mw-reference-control>.mw-reference-pencil{margin:4px;flex:none}.mw-reference-drawer.bm-drawer{position:fixed;left:auto;right:0;top:0;bottom:0;width:min(560px,100vw);max-width:100vw;z-index:650;display:flex;flex-direction:column;background:#fff;box-shadow:-12px 0 32px #10282b26;box-sizing:border-box}.mw-reference-drawer>header,.mw-reference-drawer>footer{padding:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #d8e2d1;flex:none}.mw-reference-drawer h2{font-size:18px;margin:0}.mw-reference-drawer>.bm-drawer-body{padding:20px;overflow:auto;flex:1;min-height:0}.mw-reference-source-row{padding:12px;border:1px solid #d8e2d1;border-radius:8px;margin-bottom:12px}.mw-reference-source-row .mw-reference-control{align-items:center}.mw-reference-drawer>footer{border-top:1px solid #d8e2d1;border-bottom:0;justify-content:flex-end}.mw-reference-drawer .mw-reference-inline{margin:0}
.mw-reference-edit-source[hidden]{display:none!important}.mw-reference-inline{display:flex;flex-direction:column;gap:9px;padding:10px;border:1px solid #9ab87a;border-radius:7px;background:#fbfdf8;min-width:0;max-width:100%;box-sizing:border-box}.mw-reference-inline [data-mw-reference-value]{width:100%;min-width:0;box-sizing:border-box;min-height:36px;padding:8px 10px;border:1px solid #b9cda8;border-radius:5px;background:#fff;color:inherit;font:inherit;line-height:1.5}.mw-reference-inline textarea{resize:vertical;min-height:72px}.mw-reference-inline-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.mw-reference-inline-actions .btn{min-height:32px;font-size:12px;white-space:normal}.mw-reference-inline small{font-size:11px;line-height:1.5;color:#65785c;overflow-wrap:anywhere}.mw-reference-inline.has-error{border-color:#c1826e}.mw-reference-inline.has-error small,[data-mw-reference-error]{color:#a34b36}.mw-cell-editor .mw-reference-inline{margin:6px}.rt-choice-row .mw-reference-pencil{margin:4px}
.rw-gridlines-hidden .rw-grid td,.rw-gridlines-hidden .rw-grid th{border-color:transparent}

.rw-editor--ribbon>.rw-issues[role=region]{flex:none;max-height:200px;overflow:auto;margin:0;border-radius:0}
@media(max-width:850px){.rw-editor--ribbon .rw-formulabar{padding:6px}.rw-editor--ribbon .rw-formulabar>label:first-child{flex-basis:100px}}
.rw-print-band{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;min-height:32px;padding:8px 4px;box-sizing:border-box;background:#fff;color:#24363a;font-size:11px;line-height:1.35;white-space:pre-wrap}.rw-print-band>div:nth-child(2){text-align:center}.rw-print-band>div:nth-child(3){text-align:right}.rw-print-band img{max-width:100%;height:auto;object-fit:contain;vertical-align:middle}
.rw-toolbar,.rw-formatbar,.rw-formulabar,.rw-sheet-tabs{display:flex;gap:8px;flex-wrap:wrap;align-items:end;min-width:0}
.rw-report-pages label{display:flex;align-items:center;gap:6px}.rw-report-pages input{width:6em;max-width:100%;min-width:0}
.rw-editor label{display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:90px;max-width:100%}
.rw-editor label>input,.rw-editor label>select{min-height:34px;max-width:100%;box-sizing:border-box}
.rw-formatbar input[type=number]{width:76px}.rw-formatbar input[type=color]{width:58px;padding:3px}
.rw-sheet-tabs{overflow:auto;flex-wrap:nowrap;padding:8px 0}.rw-sheet-tabs .btn{white-space:nowrap;flex:0 0 auto}
.rw-editor [aria-selected=true],.rw-editor [aria-pressed=true]{background:var(--mint);color:var(--navy)}
.rw-formulabar>label:first-child{flex:0 1 140px}.rw-formulabar>label:last-child{flex:1 1 220px}
.rw-formulabar input{width:100%}.rw-status{font-size:12px;overflow-wrap:anywhere;min-height:20px}
.rw-sheet-scroll{max-width:100%;max-height:68dvh;overflow:auto;border:1px solid currentColor;position:relative;overscroll-behavior:contain;isolation:isolate}
.rw-sheet-canvas{position:relative;min-height:100px;background:var(--canvas)}
.rw-grid{table-layout:fixed;border-collapse:collapse;border-spacing:0;background:white;color:var(--navy)}
.rw-grid td,.rw-grid th{box-sizing:border-box;min-width:0;padding:3px 5px;vertical-align:middle;overflow-wrap:anywhere}
.rw-output td{position:relative;padding:0;overflow:visible}
.rw-output-content{position:absolute;inset:0;display:flex;box-sizing:border-box;overflow:hidden;line-height:1.15;padding:0 4px}
.rw-output-content>span{min-width:0;max-width:100%}
.rw-editable td,.rw-editable th{border:1px solid var(--line)}
.rw-editable th{font-size:11px;font-weight:500;background:var(--canvas);text-align:center;position:sticky;z-index:2}
.rw-editable thead th{top:0}.rw-editable tbody th{left:0}.rw-editable thead th:first-child{left:0;z-index:3}
.rw-grid :is(input,textarea)[data-rw-cell]{border:0;background:transparent;color:inherit;border-radius:0;width:100%;min-width:0;min-height:24px;height:100%;padding:0;font:inherit;text-align:inherit;box-shadow:none;outline-offset:2px}
.rw-grid .rw-active{outline:2px solid var(--navy);outline-offset:-2px}.rw-grid .rw-bound{box-shadow:inset 3px 0 var(--mint)}
.rw-error{color:var(--red);text-decoration:underline dotted}.rw-binding{padding:12px;border:1px solid var(--line);border-radius:8px}
.rw-issues{border:1px solid var(--line);border-radius:8px;margin:8px 0;padding:10px 12px;min-width:0}.rw-issues summary{cursor:pointer;font-weight:600}.rw-issues ol{display:grid;gap:8px;max-height:240px;overflow:auto;padding:0 0 0 24px;margin:10px 0}.rw-issues li{padding-left:2px;overflow-wrap:anywhere}.rw-issues li span{display:block;font-size:12px;margin:4px 0;color:var(--muted)}.rw-issues li .btn{max-width:100%;height:auto;white-space:normal;text-align:left}
.rw-binding p{font-size:12px;margin:10px 0 0}.rw-shape-settings{display:flex;flex-wrap:wrap;gap:8px;min-width:0;padding:12px;margin-top:8px;border:1px solid var(--line)}
.rw-shape-settings label{flex:1 1 100px}.rw-shape-settings input{width:100%}
.rw-shape{position:absolute;display:flex;align-items:center;justify-content:center;text-align:center;padding:6px;box-sizing:border-box;pointer-events:none;overflow:hidden;line-height:1.25;z-index:1}
.rw-shape span{white-space:pre-wrap;overflow-wrap:anywhere}.rw-shape-roundRect{border-radius:18px}.rw-shape-ellipse{border-radius:50%}.rw-shape-diamond{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}.rw-shape-chevron{clip-path:polygon(0 0,82% 0,100% 50%,82% 100%,0 100%,18% 50%)}.rw-shape-snip2DiagRect{clip-path:polygon(7% 0,100% 0,100% 80%,93% 100%,0 100%,0 20%)}.rw-shape-snip2SameRect{clip-path:polygon(7% 0,93% 0,100% 20%,100% 100%,0 100%,0 20%)}
.rw-live-report{min-width:0}.rw-live-report .rw-sheet-scroll{max-height:78dvh}.mwd-editor-content:has(.rw-editor){min-width:0}
@media(max-width:600px){.rw-toolbar,.rw-formatbar,.rw-formulabar{gap:10px}.rw-toolbar>.btn,.rw-formatbar>.btn{min-height:38px}.rw-editor label{flex:1 1 130px}.rw-sheet-scroll{max-height:58dvh}.rw-formulabar>label:first-child,.rw-formulabar>label:last-child{flex:1 1 100%}.rw-sheet-tabs .btn{min-height:40px}}


.rw-shape{padding:0;overflow:visible;background:transparent;clip-path:none;border-radius:0}
.rw-shape>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.rw-shape>span{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;padding:0 4px;box-sizing:border-box;overflow:hidden}

.rw-block-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;padding:8px 0}.rw-block-fields label{flex-direction:row;align-items:center;gap:8px}.rw-block-fields input{min-height:0;width:auto}.rw-binding fieldset{min-width:0;margin:12px 0;padding:12px;border:1px solid var(--line)}

.rw-grid textarea[data-rw-cell]{resize:none;display:block;overflow:auto;white-space:inherit}

.rw-grid .rw-selected:not(.rw-active){box-shadow:inset 0 0 0 2px #82a961}

@container (max-width:120px){.native-matrix-record .mw-cell-editor input:not([type=checkbox]):not([type=radio]),.native-matrix-record .mw-cell-editor textarea,.native-matrix-record .mw-cell-editor select{padding-left:4px;padding-right:4px}}

.rw-source-search{margin:10px 0 14px;padding:12px;border:1px solid #dce5d7;border-radius:8px;background:#f8faf6;min-width:0}.rw-source-search label{display:flex;flex-direction:column;gap:6px;font-weight:600}.rw-source-search input{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.rw-source-search ul{display:grid;gap:6px;max-height:240px;overflow:auto;margin:8px 0;padding:0;list-style:none}.rw-source-search li{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}.rw-source-search li button{height:auto;min-height:34px;white-space:normal;overflow-wrap:anywhere;text-align:left}.rw-source-search small{overflow-wrap:anywhere;color:#718576}

.mw-image-crop-note{margin:0 0 16px;line-height:1.6;overflow-wrap:anywhere}.mw-image-crop-source{display:block;margin-bottom:12px;color:var(--mw-muted,#71857a);overflow-wrap:anywhere}.mw-image-crop-stage{display:grid;place-items:center;min-width:0;padding:8px;margin-bottom:18px;border:1px solid var(--mw-border,#dce5d7);border-radius:10px;background:#f4f7f2}.mw-image-crop-stage canvas{display:block;width:100%;height:auto;min-width:0;touch-action:none;cursor:move}.modal-editor [data-image-crop]{min-width:0}.modal-editor [data-image-crop] .form-actions{display:flex;flex-wrap:wrap}.modal-editor [data-image-crop] input[type=range]{width:100%;min-width:0;padding:0}
@container(max-width:480px){.modal-editor [data-image-crop] .form-actions>.btn{flex:1 1 130px}}

/* Office-style report editor. Document cell styles and saved book data stay independent. */
.rw-editor--ribbon{--rw-accent:#217346;--rw-line:#d5d8da;font-family:"Segoe UI",Calibri,Arial,sans-serif;color:#242424;background:#fff}.rw-editor--ribbon [data-rw-action=tool-paste]{grid-column:1;grid-row:1/4;align-self:stretch}.rw-editor--ribbon [data-rw-action=grid-cut]{grid-column:2;grid-row:1}.rw-editor--ribbon [data-rw-action=tool-copy]{grid-column:2;grid-row:2}.rw-editor--ribbon [data-rw-action=ribbon-pane][data-pane=clipboard]{grid-column:2;grid-row:3}.rw-editor--ribbon .rw-formulabar{background:#fff;border-bottom:1px solid #c8cbcd;padding:7px 8px;gap:8px}.rw-editor--ribbon .rw-formulabar input{border-radius:2px;border-color:#c8cbcd;min-height:29px;font-size:13px}.rw-editor--ribbon .rw-grid th{background:#f1f2f3;color:#666;font-family:Calibri,"Segoe UI",sans-serif;font-size:12px;font-weight:400}.rw-editor--ribbon .rw-grid th button{font:inherit;color:inherit;border:0;background:transparent;padding:0;width:100%;height:100%;min-height:22px;cursor:default}.rw-editor--ribbon .rw-grid th button:hover{background:#d5e7dc;color:#165d35}.rw-editor--ribbon .rw-grid td.rw-selected{background-color:#e9f1ec;box-shadow:none}.rw-editor--ribbon .rw-grid td.rw-active{outline:2px solid #217346;outline-offset:-2px;background-color:#fff;z-index:4}.rw-editor--ribbon .rw-grid td.rw-cut-cell{outline:2px dashed #217346;outline-offset:-2px}.rw-editor--ribbon .rw-sheet-tabs{background:#f5f5f5;border-top:1px solid #d6d9d7;gap:0;padding:0 8px}.rw-editor--ribbon .rw-sheet-tabs>.btn{border:0;border-right:1px solid #ddd;background:#f5f5f5;color:#555;border-radius:0;min-height:32px;padding:4px 16px}.rw-editor--ribbon .rw-sheet-tabs>.btn.active,.rw-editor--ribbon .rw-sheet-tabs>.btn[aria-selected=true]{background:#fff;color:#217346;box-shadow:inset 0 -3px #217346;font-weight:600}.rw-editor--ribbon .rw-grid textarea{caret-color:#217346}.rw-editor--ribbon .rw-sheet-scroll{scrollbar-color:#b8b8b8 #f3f3f3;scrollbar-width:auto}


/* Report ribbon: explicit geometry, independent of cabinet form styles. */
.rw-editor--ribbon{position:relative;isolation:isolate;color:#223b34}
.rw-editor--ribbon [data-rw-pane-title]{display:block;font-size:14px;line-height:20px}
.rw-editor--ribbon [data-rw-pane-target]{display:block;margin-top:5px;font-size:11px;line-height:16px;overflow-wrap:anywhere;color:#6a7f70}
.rw-editor--ribbon [data-rw-function-info]{white-space:pre-line;background:#f3f7f2;border:1px solid #dce7dc;border-radius:7px;padding:12px;line-height:1.7!important;color:#294835!important;overflow-wrap:anywhere}
.rw-editor--ribbon [data-rw-function-preview]{display:block;padding:12px;border-radius:6px;background:#eef5e9;white-space:pre-wrap;font-size:12px;line-height:1.5}
.rw-editor--ribbon [data-rw-function-preview]:empty{display:none}
.rw-editor--ribbon [data-rw-group="Фигуры"] select{width:205px!important;max-width:205px!important}

/* Cell selection and in-cell editing are separate interaction modes. */
.rw-grid textarea[data-rw-cell]{cursor:cell;caret-color:transparent;user-select:none}.rw-grid textarea[data-rw-cell]:not([data-rw-editing=true]):focus{outline:none;box-shadow:none}.rw-grid textarea[data-rw-cell][data-rw-editing=true]{cursor:text;caret-color:#217346;user-select:text;outline:none}.rw-grid td.rw-editing{box-shadow:inset 0 0 0 1px #217346;background-color:#fff}
.rt-merged-value{display:flex;align-items:center;gap:8px;min-width:0;padding:8px}.rt-merged-value>span{flex:1;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}.rt-merged-value>.btn{flex:none}.mw-reference-source-row .mw-reference-control>div{flex:1;min-width:0}.mw-reference-source-row p{margin:4px 0;overflow-wrap:anywhere;line-height:1.6}.mw-reference-drawer .bm-drawer-body>p{margin:0 0 18px;line-height:1.6;font-size:13px;color:#647465}
