/* Scoped worksheet UI; document shell and actuarial forms are unchanged. */
#tplWorksheetTools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;background:#f8fafc;border-bottom:1px solid #cbd5e1;padding:7px;flex-shrink:0;position:relative;z-index:4;grid-column:1/-1}
#tplWorksheetTools button,#tplWorksheetTools select{font:12px Arial,sans-serif;padding:5px 8px;border:1px solid #94a3b8;border-radius:4px;background:white;color:#172554}
#tplWorksheetTools input[type=color]{width:32px;height:29px;padding:1px}
#templateGrid.tpl-spreadsheet-grid{display:block!important;overflow:auto!important;padding:0!important;min-width:0;min-height:0;background:#eef2f7!important;position:relative}
#templateGrid .tpl-live-sheet{border-collapse:collapse!important;table-layout:fixed!important;width:max-content!important;min-width:100%;background:white;color:#111;line-height:1.25}
#templateGrid .tpl-live-sheet th{background:#e8edf3;color:#334155;position:sticky;font:11px Arial;text-align:center;padding:4px;box-shadow:inset 0 0 0 .5px #bfcbd8;z-index:2}
#templateGrid .tpl-live-sheet thead th{top:0}#templateGrid .tpl-live-sheet tbody th{left:0}
#templateGrid .tpl-live-sheet td{position:relative;padding:2px 4px;box-sizing:border-box;outline:.5px solid #e2e8f0;min-width:20px;cursor:cell;max-width:600px}
#templateGrid .tpl-live-sheet td.selected-range{box-shadow:inset 0 0 0 1000px #2563eb16}
#templateGrid .tpl-live-sheet td.selected{outline:2px solid #2563eb;outline-offset:-2px}
#templateGrid .tpl-cell-value{overflow:hidden;max-height:300px;min-height:14px}
#templateGrid .tpl-cell-editor{width:100%;min-height:24px;padding:0;margin:0;border:0;background:white;color:#111;font:inherit;resize:vertical;position:relative;z-index:3}
#templateGrid [data-resize-col]{position:absolute;right:-3px;top:0;bottom:0;width:7px;cursor:col-resize;z-index:5}
#templateGrid [data-resize-row]{position:absolute;bottom:-3px;left:0;right:0;height:7px;cursor:row-resize;z-index:5}
.tpl-sheet-pager{display:flex;align-items:center;gap:10px;padding:6px;font:12px Arial;background:#f1f5f9}
.rs-linked-preview-table{border-collapse:collapse!important;table-layout:fixed;width:100%;background:transparent}
.rs-linked-preview-table td{padding:1px 3px!important;overflow:hidden;text-overflow:clip;box-sizing:border-box}
.rs-report-camera.linked-table{cursor:cell;overflow:hidden!important;display:block!important;padding:0!important}
.rs-report-camera.linked-table>small{display:none}
#templateDesignerModal .word-block{box-sizing:border-box}
#templateDesignerModal.native-document-workspace.tpl-worksheet-mode .tpl-formula-bar{display:grid!important;flex-shrink:0}
#templateDesignerModal.native-document-workspace #templateGrid.tpl-spreadsheet-grid{padding:0!important;background:#edf1f5!important}
#templateDesignerModal .tpl-work{overflow:hidden;min-width:0}
#templateDesignerModal .tpl-live-sheet td{user-select:none}
.rs-report-camera.linked-table .rs-linked-preview-table{max-width:none!important;min-width:0!important;margin:0!important}
