/* RAB editor: one useful canvas, optional original document. */
#modal.editor-rab195{width:calc(100vw - 24px)!important;max-width:none!important;max-height:calc(100dvh - 24px)!important;padding:16px!important;overflow:auto}
#modal.editor-rab195 #modal-content,#modal.editor-rab195 .form-guide-original,#modal.editor-rab195 form{min-width:0;max-width:100%}
#modal.editor-rab195 .form-guide-layout{display:block}#modal.editor-rab195 .form-guide{display:none}
.editor-rab195 .modal-head{position:sticky;top:-16px;z-index:35;background:white;padding:12px 0;border-bottom:1px solid #e2e9ee}
.editor-rab195 .modal-head h2{font-size:20px}.editor-rab195 .rab-compare-layout{display:grid;grid-template-columns:var(--rab-original-width,35%) minmax(0,1fr);grid-template-rows:auto;min-width:0;gap:12px;align-items:start}
.editor-rab195 .rab-original-panel,.editor-rab195 .rab-read-panel{display:block;grid-row:auto;min-width:0;padding:12px}
.editor-rab195[data-rab-layout=edit] .rab-compare-layout,.editor-rab195[data-rab-layout=original] .rab-compare-layout{grid-template-columns:minmax(0,1fr)}
.editor-rab195[data-rab-layout=edit] .rab-original-panel,.editor-rab195[data-rab-layout=original] .rab-read-panel{display:none}
.editor-rab195 .rab-read-panel .rab-edit-scroll,.editor-rab195 .rab-original-view{height:52dvh;max-height:52dvh;margin:10px 0;overflow:auto}
.editor-rab195 .rab-panel-header{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:0}.editor-rab195 .rab-panel-header h3{margin:0;font-size:14px}.editor-rab195 .rab-panel-total{padding:8px 12px;margin:0;flex:1;min-width:200px}.editor-rab195 .rab-panel-total strong{font-size:20px}.editor-rab195 .rab-panel-total small{font-size:12px}
.editor-rab195 .rab-sheet-grid{min-width:1000px;width:100%;table-layout:fixed}
.editor-rab195 .rab-sheet-grid th:nth-child(1){width:44px}.editor-rab195 .rab-sheet-grid th:nth-child(2){width:70px}.editor-rab195 .rab-sheet-grid th:nth-child(3){width:320px}.editor-rab195 .rab-sheet-grid th:nth-child(4){width:100px}.editor-rab195 .rab-sheet-grid th:nth-child(5){width:80px}.editor-rab195 .rab-sheet-grid th:nth-child(6),.editor-rab195 .rab-sheet-grid th:nth-child(7){width:150px}.editor-rab195 .rab-sheet-grid th:nth-child(8){width:86px}
.editor-rab195 .rab-sheet-grid input:not([type=checkbox]){font-size:var(--entry-font,14px)!important;height:42px}.editor-rab195 input[readonly]{background:#f1f5f7!important;color:#526b78!important}
.editor-rab195 .rab-import-summary{padding:8px 12px;margin:10px 0;font-size:13px}.editor-rab195 .rab-target-field{margin:8px 0}.editor-rab195 .modal-footer{position:sticky;bottom:-16px;background:white;padding:12px 0;z-index:35;border-top:1px solid #dce5eb}.editor-rab195 .save-status{margin:8px 0;font-size:13px}
.editor-tabs195{display:flex;flex-wrap:wrap;gap:6px}.editor-tabs195 .btn{min-height:38px;font-size:13px;padding:8px 12px}.editor-tabs195 [aria-pressed=true]{background:#14765a!important;color:white!important;border-color:#14765a!important}
.editor-toolbar195{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:10px 0}.editor-toolbar195>span{margin-left:auto;font-size:12px;color:#846020}.rab-panel-size195{font-size:12px;display:flex;align-items:center;gap:8px}.rab-panel-size195 input{width:100px}.editor-rab195:not([data-rab-layout=compare]) .rab-panel-size195{display:none}
.editor-help195{font-size:13px;max-width:100%}.editor-help195[open]{flex-basis:100%;padding:10px;background:#f7f9fb}.editor-help195 summary{padding:6px 0!important}.rab-mapping{margin-bottom:10px}
.doc-sheet-list{display:grid;gap:8px;max-height:180px;overflow:auto;margin:12px 0;padding:10px;background:#f7f9fb;border:1px solid #dce5eb;border-radius:8px}.doc-sheet-list label{display:flex;gap:8px;align-items:center}.doc-sheet-list small{margin-left:auto;color:#647a86}.doc-preview-scroll{max-width:100%;overflow:auto;max-height:55dvh;margin:12px 0}.doc-preview-scroll table{min-width:760px;width:100%;font-size:14px}.doc-preview-scroll th,.doc-preview-scroll td{padding:8px;vertical-align:top}.doc-preview-scroll small{display:block;font-size:12px;color:#637c89}.doc-preview-scroll :is(input,select){width:100%;min-width:100px;font-size:16px;min-height:40px}.doc-preview-scroll input[type=checkbox]{width:20px;min-width:0}.doc-preview-scroll canvas{display:block;max-width:100%;height:auto}
/* Schedule: the width and freeze coordinates come from measured visible columns. */
.sch-arena .sch-table{table-layout:fixed}.sch-arena .sch-table :is(th,td){box-sizing:border-box;white-space:normal;overflow-wrap:break-word}.sch-arena .sch-table th{position:sticky!important;top:0;overflow:hidden}
.sch-arena[data-edit-mode=progress] .sch-table :is(th,td):nth-child(6),.sch-arena[data-edit-mode=progress] .sch-table :is(th,td):nth-child(7),.sch-arena[data-edit-mode=progress] .sch-table :is(th,td):nth-child(8){display:none}
.sch-arena[data-edit-mode=plan] .sch-table :is(th,td):nth-child(4),.sch-arena[data-edit-mode=plan] .sch-table :is(th,td):nth-child(5){display:none}
.sch-arena[data-edit-mode=plan] #sch-entry-mode,.sch-arena[data-edit-mode=plan] .sch-fill-help{display:none}.sch-arena[data-edit-mode=progress] .sch-legend{display:none}
.sch-arena .sch-table input[readonly]{background:#f2f5f7;border-color:transparent;color:#526b78}.sch-arena .sch-add-volume>div{position:static;width:auto;padding:0;border:0;box-shadow:none;background:transparent}.sch-arena .sch-add-volume label{font-size:12px}.sch-equation195{padding:4px 0;font-variant-numeric:tabular-nums;color:#187359!important}
.sch-dates195{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;width:280px}.sch-dates195 label{font-size:12px;display:grid;gap:4px}.sch-dates195 input{font-size:14px!important;font-weight:400!important;min-height:40px}.sch-dates195 small{grid-column:1/-1}
.sch-save-strip{position:sticky;bottom:0;z-index:28;background:white;box-shadow:0 -4px 12px #1733450b}.sch-save-strip .actions{gap:8px}#sch-separate-curve195{margin-top:20px;padding:16px;border:1px solid #d7e1e9;border-radius:10px;background:#fff}#sch-separate-curve195 h3{font-size:14px;margin:0 0 12px}#sch-curve-canvas195 svg{display:block;width:100%;height:230px}.sch-overlay-line{fill:none;stroke-width:2.5}.sch-overlay-plan{stroke:#246bc2}.sch-overlay-real{stroke:#087e61}.sch-overlay-scale text{font-size:11px;fill:#647c8b}
.sch-footer-box195{overflow:auto;margin-top:14px;border:1px solid #d7e1e9;border-radius:8px;max-width:100%}.sch-footer-table195{border-collapse:collapse;font-size:13px}.sch-footer-table195 td{padding:8px;border-bottom:1px solid #dce6ed}.sch-footer-table195 td:first-child{min-width:240px;position:sticky;left:0;background:#f8fafc;z-index:2}.sch-footer-table195 small{display:block;font-size:11px;color:#657c88}.sch-footer-table195 .sch-footer-axis{height:44px}
.guide-stage-actions195{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.guide-stage-actions195 p{width:100%;font-size:13px;margin:8px 0}.guide-stage-actions195 .btn{min-height:40px;font-size:13px}
@media(max-width:900px){#modal.editor-rab195{width:calc(100vw - 12px)!important;padding:10px!important}.editor-rab195[data-rab-layout=compare] .rab-compare-layout{grid-template-columns:minmax(0,1fr)}.editor-rab195[data-rab-layout=compare] .rab-original-panel{display:none}.editor-rab195 .rab-panel-size195{display:none}.editor-rab195 .rab-read-panel .rab-edit-scroll,.editor-rab195 .rab-original-view{height:48dvh;max-height:48dvh}.editor-toolbar195>span{margin-left:0}.editor-rab195 .modal-footer{bottom:-10px;flex-wrap:wrap}.sch-save-strip{padding:10px}.sch-save-strip .actions{width:100%}.sch-save-strip .actions .btn{flex:1}.sch-arena .sch-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.sch-real-toolbar label:nth-child(2){min-width:0;flex-basis:100%}.editor-rab195 .rab-panel-total{min-width:0;flex-basis:100%}}
@media print{.editor-toolbar195,.guide-stage-actions195{display:none}.sch-save-strip{position:static}.sch-footer-box195{overflow:visible}#sch-separate-curve195{break-inside:avoid}}
#modal.editor-rab195{padding-bottom:84px!important}.editor-rab195 .modal-footer{position:fixed!important;bottom:12px;left:28px;right:28px;margin:0;background:white;padding:12px;border:1px solid #dce5eb;border-radius:8px;box-shadow:0 -4px 15px #18324712}.editor-rab195 .rab-sheet-grid tbody th:not(.rab-row-index){position:relative;top:auto;z-index:0}.editor-rab195 .editor-toolbar195{position:sticky;top:50px;z-index:30;background:#fff}.editor-rab195 #form-error:not(:empty){position:fixed;bottom:78px;left:28px;right:28px;z-index:36;background:#fff0ed;padding:10px;border:1px solid #e8b8b1;border-radius:6px}.editor-rab195 .save-status:not(:empty){position:fixed;bottom:78px;left:28px;right:28px;z-index:35;background:#eff7f3;padding:8px;border-radius:6px}
@media(max-width:900px){.editor-rab195 .modal-footer{left:16px;right:16px;bottom:6px}.editor-rab195 #form-error:not(:empty),.editor-rab195 .save-status:not(:empty){left:16px;right:16px;bottom:78px}}

.rab-check195{margin:8px 0 12px;border-bottom:1px solid #e3e9ee;padding-bottom:10px}.rab-check195 summary{font-size:13px;color:#456675;cursor:pointer}.rab-check195 .rab-target-field{margin-top:10px}
@media(max-width:900px){.editor-rab195 [data-rab-layout=compare]{display:none}.editor-rab195 .rab-panel-header{padding:8px}.editor-rab195 .rab-panel-header h3{font-size:13px}.editor-rab195 .editor-toolbar195{gap:6px;top:46px}.editor-rab195 .rab-panel-total{padding:8px}.editor-rab195 .rab-app-zoom{font-size:12px}.editor-rab195 .rab-app-zoom select{min-height:36px;padding:6px}.editor-rab195 .modal-footer{min-height:64px}.editor-rab195 .modal-footer .btn{min-height:40px}}
