/* Full-screen schedule workbench. Other editors retain their drawer layout. */
dialog.editor-drawer.editor-fullscreen{inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;background:var(--page);color:var(--text)}
dialog.editor-fullscreen .editor-drawer-header{padding:10px 20px;gap:12px;background:var(--surface)}
dialog.editor-fullscreen .editor-drawer-header h2{font-size:19px;margin:0}
dialog.editor-fullscreen .editor-drawer-header .zone-label{font-size:10px;margin:0 0 2px}
dialog.editor-fullscreen .editor-drawer-close{height:38px;width:38px;flex-basis:38px}
dialog.editor-fullscreen .editor-drawer-body{padding:0;overflow:hidden;display:flex;min-height:0}
dialog.editor-fullscreen .editor-drawer-body>form,dialog.editor-fullscreen .editor-drawer-body>form>fieldset{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;width:100%;margin:0;padding:0}
dialog.editor-fullscreen .editor-feedback,dialog.editor-fullscreen .editor-discard{margin:6px 16px;max-height:25dvh}
.editor-fullscreen .schedule-composer{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;padding:10px 16px 0;gap:8px}
.editor-fullscreen .schedule-reconciliation{display:flex;flex-shrink:0;align-items:center;gap:22px;padding:7px 12px;margin:0;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.schedule-reconciliation>div{display:flex;flex-direction:column;gap:2px;min-width:120px;font-variant-numeric:tabular-nums}
.schedule-reconciliation>div>span{font-size:11px;color:var(--muted)}
.schedule-reconciliation strong{font-size:17px;white-space:nowrap}
.schedule-reconciliation p{margin:0 0 0 auto;font-size:12px;line-height:1.4;max-width:360px}
.schedule-ready{color:var(--accent);font-weight:700}.schedule-pending{color:var(--muted)}
.editor-fullscreen .schedule-composer>.error{padding:8px 12px;margin:0;max-height:80px;overflow:auto;flex-shrink:0}
.editor-fullscreen .schedule-workspace{display:grid;grid-template-columns:clamp(230px,21vw,330px) minmax(0,1fr);flex:1;min-height:0;gap:12px;margin:0}
.editor-fullscreen .schedule-groups{display:flex;flex-direction:column;min-width:0;min-height:0;border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--surface);color:var(--text);gap:10px}
.schedule-groups h3{display:flex;justify-content:space-between;margin:0;font-size:15px}.schedule-groups h3 small{color:var(--muted)}
.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-composer label{margin:0;font-size:12px;color:var(--text)}
.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-composer input:not([type=checkbox]),.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-composer select,.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-composer textarea{min-height:36px;padding:7px 9px;margin-top:4px;font-size:13px}
.schedule-new-group{display:grid;gap:7px}.schedule-new-group>button{width:100%;margin:0;min-height:36px;padding:7px}
.schedule-group-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px}
.editor-fullscreen .schedule-group{padding:10px;margin:0 0 7px;border:1px solid var(--line);border-radius:7px;background:var(--page);color:var(--text);overflow-wrap:anywhere;line-height:1.4}
.editor-fullscreen .schedule-group.selected{border:2px solid var(--accent);padding:9px;background:color-mix(in srgb,var(--accent) 12%,var(--surface));box-shadow:inset 3px 0 var(--accent)}
.schedule-group strong{font-size:13px}.schedule-group span{font-size:12px;color:var(--muted)}
.schedule-sidebar-note{margin:0;font-size:11px;line-height:1.4}
.schedule-main{display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface)}
.schedule-tabs{display:flex;flex-shrink:0;gap:6px;padding:6px 10px;border-bottom:1px solid var(--line);background:var(--page)}
.schedule-tabs button{padding:8px 13px;margin:0;font-size:13px;font-weight:650;border-color:transparent;background:transparent;color:var(--text)}
.schedule-tabs button.selected{border-color:var(--accent);background:var(--surface);box-shadow:inset 0 -3px var(--accent)}
.schedule-tabs button span{font-size:11px;font-weight:400;margin-left:7px;color:var(--muted)}
.schedule-target{display:flex;gap:8px;padding:6px 12px;font-size:12px;min-width:0;flex-shrink:0;background:color-mix(in srgb,var(--accent) 8%,var(--surface))}
.schedule-target>span{white-space:nowrap;color:var(--muted)}.schedule-target strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schedule-filters{display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(150px,1fr) minmax(170px,.8fr);gap:10px;padding:8px 12px;flex-shrink:0}
.editor-fullscreen .schedule-use-title{font-size:11px;text-align:left;align-self:flex-start;margin:0 12px 5px;padding:3px 7px;min-height:24px}
.editor-fullscreen .schedule-selection{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;gap:8px;position:static;padding:7px 12px;margin:0;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;background:var(--page);font-size:12px}
.schedule-selection>span{margin-right:auto}.schedule-selection button{margin:0;padding:7px 10px;min-height:33px;font-size:12px}.schedule-selection small{font-size:11px}
.schedule-grid-scroll{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.schedule-grid-scroll table{border-collapse:separate;border-spacing:0;min-width:650px;width:100%;table-layout:fixed}
.schedule-grid-scroll th{position:sticky;top:0;z-index:1;background:var(--page);color:var(--text);box-shadow:0 1px var(--line);font-size:11px;padding:9px 10px;vertical-align:middle}
.schedule-grid-scroll td{border-top:1px solid var(--line);padding:9px 10px;font-size:12px;line-height:1.4;vertical-align:top;max-width:none}
.schedule-grid-scroll td strong{font-size:13px;line-height:1.4}.schedule-grid-scroll td small{font-size:11px;line-height:1.4;color:var(--muted)}
.schedule-grid-scroll td.money,.schedule-grid-scroll th.money{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.schedule-position-table th:nth-child(1){width:42px}.schedule-position-table th:nth-child(2){width:45%}.schedule-position-table th:nth-child(3){width:13%}.schedule-position-table th:nth-child(4){width:16%}
.editor-fullscreen .schedule-check input[type=checkbox]{width:19px;height:19px;margin:2px auto;accent-color:var(--accent);cursor:pointer}
.schedule-row-picked td,.schedule-current-row td{background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
.schedule-free{font-size:11px;color:var(--muted)}.schedule-position-table td button{font-size:11px;padding:4px 7px;min-height:26px;margin-top:5px}
.schedule-empty{padding:24px;margin:0;color:var(--muted)}
.schedule-pagination{flex-shrink:0;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:7px;padding:7px 10px;border-top:1px solid var(--line);font-size:12px;background:var(--surface)}
.schedule-pagination>span:first-child{margin-right:auto}
.editor-fullscreen .schedule-pagination label{display:flex;align-items:center;gap:6px;font-size:11px}.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-pagination select{width:68px;min-height:30px;padding:4px;margin:0}
.schedule-pagination button{font-size:12px;padding:5px 9px;min-height:30px}
.schedule-terms-hint{padding:9px 12px;margin:0;font-size:12px;color:var(--muted);flex-shrink:0}
.schedule-terms-table{min-width:830px!important}.schedule-terms-table th:first-child{width:26%}.schedule-terms-table th:nth-child(2),.schedule-terms-table th:nth-child(3){width:145px}.schedule-terms-table th:nth-child(4){width:145px}
.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-terms-table input,.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-terms-table textarea{margin:0;min-width:0;width:100%}.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-terms-table textarea{min-height:60px;max-height:150px;resize:vertical}
.schedule-group-tools{flex-shrink:0;padding:7px 12px;border-top:1px solid var(--line);max-height:32%;overflow:auto;font-size:12px;background:var(--page)}
.schedule-group-tools summary{cursor:pointer;overflow-wrap:anywhere}.schedule-group-tools>div{display:flex;gap:8px;align-items:end;padding-top:8px;flex-wrap:wrap}.schedule-group-tools label{flex:1}.schedule-group-tools button{font-size:12px;padding:7px 10px}.schedule-group-tools p{margin:10px 0}
.editor-fullscreen .schedule-footnote{flex-shrink:0;font-size:11px;line-height:1.4;color:var(--muted);margin:0;padding-bottom:6px}
.editor-fullscreen .schedule-savebar{display:flex;flex-shrink:0;align-items:end;gap:12px;padding:10px 16px;border-top:2px solid var(--line);background:var(--surface);box-shadow:0 -3px 12px #0001;z-index:2}
.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-savebar label{margin:0;font-size:11px;min-width:180px}.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-savebar label:has(textarea){flex:1}
.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-savebar textarea,.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-savebar select{min-height:38px;height:38px;max-height:72px;margin-top:4px;padding:7px 9px;font-size:13px}
.editor-fullscreen .schedule-savebar button{min-height:38px;padding:9px 15px;white-space:nowrap;font-size:13px}
@media(max-width:1100px){.editor-fullscreen .schedule-workspace{grid-template-columns:230px minmax(0,1fr);gap:8px}.schedule-selection>span{flex-basis:100%}.schedule-selection button{flex:1}.schedule-filters{grid-template-columns:1fr 1fr}.schedule-filters>label:first-child{grid-column:1/-1}.schedule-reconciliation p{max-width:260px}.schedule-savebar{gap:8px}.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-savebar label{min-width:150px}}
@media(max-width:760px),(max-height:600px){dialog.editor-fullscreen .editor-drawer-body{overflow:auto;display:block}dialog.editor-fullscreen .editor-drawer-body>form,dialog.editor-fullscreen .editor-drawer-body>form>fieldset{min-height:100%;display:block}.editor-fullscreen .schedule-composer{padding:10px}.editor-fullscreen .schedule-workspace{display:flex;flex-direction:column}.editor-fullscreen .schedule-groups{max-height:310px;flex:none}.schedule-group-list{max-height:140px;flex:auto}.schedule-main{min-height:480px;height:65dvh}.editor-fullscreen .schedule-reconciliation{flex-wrap:wrap;gap:10px}.schedule-reconciliation>div{min-width:100px;flex:1}.schedule-reconciliation strong{font-size:14px}.schedule-reconciliation p{max-width:none;margin:0;flex-basis:100%}.editor-fullscreen .schedule-savebar{position:sticky;bottom:0;flex-wrap:wrap;padding:8px 10px}.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-savebar label{flex:1;min-width:130px}.editor-fullscreen .schedule-savebar button{flex:1}.schedule-tabs button span{display:none}.editor-fullscreen .schedule-footnote{padding:6px 0}.schedule-filters{grid-template-columns:1fr 1fr}.schedule-group-tools{max-height:40%}}

.editor-fullscreen .schedule-savebar>p{flex:1;margin:0;font-size:12px;color:var(--muted)}

/* Direct section actions and a separate free-position picker. */
.schedule-section-actions{display:flex;flex-shrink:0;align-items:center;gap:8px;flex-wrap:wrap;padding:0 0 2px}
.schedule-section-actions>button{padding:8px 14px;font-weight:600;font-size:13px;min-height:36px;margin:0}
.schedule-section-actions>span{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:120px;margin-left:8px}
.schedule-name-editor,.schedule-remove-confirm{display:flex;flex-shrink:0;align-items:end;gap:10px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);flex-wrap:wrap;max-height:28dvh;overflow:auto}
.schedule-name-editor>label{flex:1;min-width:220px}.schedule-name-editor>button,.schedule-remove-confirm>button{padding:8px 12px;font-size:13px;min-height:36px}
.schedule-remove-confirm{align-items:center}.schedule-remove-confirm>span{flex:1;min-width:200px;font-size:13px}
.schedule-member-heading{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:color-mix(in srgb,var(--accent) 7%,var(--surface));border-bottom:1px solid var(--line)}
.schedule-member-heading>div{min-width:0}.schedule-member-heading span{display:block;font-size:10px;font-weight:650;letter-spacing:.04em;color:var(--muted)}
.schedule-member-heading strong{display:block;font-size:15px;line-height:1.5;max-height:3em;overflow:auto;overflow-wrap:anywhere}
.schedule-member-heading>button{flex-shrink:0;min-height:36px;margin:0;padding:8px 12px;font-size:13px}
.schedule-member-heading button small{display:inline;margin-left:5px;color:inherit;font-size:11px;font-weight:400}
.schedule-simple-search{padding:8px 12px;flex-shrink:0}.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-simple-search input{margin:0}
.schedule-source-filter{flex-shrink:0;padding:0 12px 8px;font-size:12px;max-height:26dvh;overflow:auto}
.schedule-source-filter summary{cursor:pointer;color:var(--muted)}.schedule-source-filter>div{display:flex;align-items:end;gap:10px;padding-top:8px;flex-wrap:wrap}.schedule-source-filter label{flex:1;min-width:220px}.schedule-source-filter button{font-size:12px;padding:8px 10px}
.schedule-position-table.schedule-members th:nth-child(1){width:auto}.schedule-position-table.schedule-members th:nth-child(2){width:120px}.schedule-position-table.schedule-members th:nth-child(3){width:155px}.schedule-position-table.schedule-members th:nth-child(4){width:150px}
.schedule-position-table.schedule-picking th:nth-child(1){width:42px}.schedule-position-table.schedule-picking th:nth-child(2){width:auto}.schedule-position-table.schedule-picking th:nth-child(3){width:120px}.schedule-position-table.schedule-picking th:nth-child(4){width:155px}
@media(max-width:760px){.schedule-section-actions>button{flex:1;padding:8px;font-size:12px}.schedule-section-actions>span{flex-basis:100%;margin:0}.schedule-member-heading{align-items:start}.schedule-member-heading>button{max-width:160px;white-space:normal}.schedule-name-editor>label{flex-basis:100%}.schedule-simple-search{padding:6px 10px}}

.schedule-year-heading{padding:10px 12px 6px;font-weight:750;color:var(--accent,#087f70);border-top:1px solid var(--border,#ccd7e4)}

/* Keep reference information outside the table's height budget. */
.editor-fullscreen .schedule-composer{gap:6px;padding:8px 14px 0}
.editor-fullscreen .schedule-reconciliation{padding:6px 10px;gap:20px}
.schedule-reconciliation>div{flex-direction:row;align-items:baseline;gap:7px;min-width:0}
.schedule-reconciliation strong{font-size:15px}.schedule-reconciliation p{font-size:11px;max-width:440px}
.schedule-year-budget{position:relative;flex-shrink:0;margin:0;border:1px solid var(--line);border-radius:7px;background:var(--surface);z-index:5}
.schedule-year-budget>summary{display:flex;align-items:center;gap:16px;min-height:32px;padding:4px 10px;cursor:pointer;list-style:none;font-size:12px;white-space:nowrap}
.schedule-year-budget>summary::-webkit-details-marker{display:none}.schedule-budget-label{font-weight:650;flex-shrink:0}.schedule-budget-arrow{display:inline-block;transition:transform .15s}.schedule-year-budget[open] .schedule-budget-arrow{transform:rotate(90deg)}
.schedule-budget-years{display:flex;gap:22px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.schedule-budget-years>span{flex-shrink:0}.schedule-budget-status{margin-left:auto;font-size:11px;flex-shrink:0}
.schedule-budget-details{position:absolute;top:calc(100% + 4px);left:-1px;right:-1px;max-height:40dvh;overflow:auto;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 10px 30px #0005;white-space:normal}
.schedule-budget-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}.schedule-budget-detail-heading button{font-size:12px;min-height:30px;padding:5px 10px;margin:0}
.schedule-budget-details .table-wrap{overflow:auto;max-height:180px;margin:6px 0}.schedule-budget-details table{width:100%;min-width:750px;font-size:12px}.schedule-budget-details td,.schedule-budget-details th{text-align:right;padding:5px 8px}.schedule-budget-details td:first-child,.schedule-budget-details th:first-child{text-align:left}.schedule-budget-details p{font-size:12px;margin:7px 0 0;padding:6px 8px}
.schedule-help{position:relative;flex-shrink:0;margin:0;font-size:11px;color:var(--muted);padding-bottom:4px;z-index:3}.schedule-help summary{cursor:pointer}.schedule-help>p{position:absolute;bottom:100%;left:0;right:0;max-height:30dvh;overflow:auto;margin:0 0 4px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 -6px 24px #0003;font-size:12px}
.editor-fullscreen .schedule-workspace{grid-template-columns:clamp(220px,18vw,275px) minmax(0,1fr);gap:8px}
.editor-fullscreen .schedule-groups{padding:9px;gap:6px}.schedule-groups h3{font-size:13px}.schedule-year-heading{padding:6px 8px 4px;font-size:12px}
.schedule-tabs{padding:3px 8px}.schedule-tabs button{padding:6px 10px;min-height:30px;font-size:12px}
.schedule-member-heading{padding:5px 9px;gap:10px}.schedule-member-heading>div:first-child{flex:0 1 230px}.schedule-member-heading span{display:none}.schedule-member-heading strong{font-size:13px;max-height:2.8em;line-height:1.4}.schedule-member-heading>button{font-size:12px;padding:5px 9px;min-height:30px}
.schedule-member-heading .schedule-simple-search{padding:0;flex:1;min-width:180px}.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-simple-search input{min-height:30px;padding:5px 8px;font-size:12px}
.schedule-pick-tools{display:flex;align-items:center;gap:10px;flex-shrink:0;padding:4px 9px;border-bottom:1px solid var(--line);background:var(--page)}
.schedule-source-filter{position:relative;padding:0;font-size:11px;max-height:none;overflow:visible;flex:0 1 245px;min-width:125px;z-index:3}.schedule-source-filter summary{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.schedule-source-filter>div{position:absolute;top:calc(100% + 8px);left:0;width:min(430px,75vw);padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 6px 20px #0004}
.editor-fullscreen .schedule-selection{flex:1;min-width:0;padding:0;border:0;flex-wrap:nowrap;gap:6px}.schedule-selection>span{flex-basis:auto;white-space:nowrap}.schedule-selection button{flex:0 0 auto;min-height:30px;padding:5px 8px;font-size:11px}.schedule-selection small{font-size:10px}
.schedule-grid-scroll th{padding:6px 9px}.schedule-grid-scroll td{padding:5px 9px;vertical-align:middle}.schedule-grid-scroll td strong{display:block;line-height:1.3;font-size:12px}.schedule-grid-scroll td small{display:block;line-height:1.25;font-size:10px}.schedule-position-table input[type=number]{width:110px;max-width:100%;font:inherit;padding:5px}
.schedule-pagination{padding:4px 8px;gap:5px;font-size:11px}.schedule-pagination button{min-height:28px;padding:4px 8px;font-size:11px}
.editor-fullscreen .schedule-savebar{padding:6px 14px;gap:10px}.editor-fullscreen .schedule-savebar button{min-height:34px;padding:7px 12px}.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-savebar textarea,.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-savebar select{height:34px;min-height:34px;margin-top:2px}
@media(max-width:1100px){.schedule-member-heading>div:first-child{flex-basis:160px}.schedule-source-filter{flex-basis:150px}.schedule-selection button{padding:5px}.schedule-budget-years{gap:14px}.schedule-reconciliation{gap:12px}.schedule-reconciliation>div{flex-direction:column;gap:1px}.schedule-reconciliation p{max-width:230px}}
@media(max-width:760px){.editor-fullscreen .schedule-workspace{display:flex}.schedule-budget-years{display:none}.schedule-year-budget>summary{gap:8px}.schedule-budget-details{max-height:55dvh}.schedule-member-heading{flex-wrap:wrap}.schedule-member-heading>div:first-child{flex:1}.schedule-member-heading .schedule-simple-search{flex-basis:100%;order:3}.schedule-pick-tools{flex-wrap:wrap}.schedule-source-filter{flex-basis:100%}.editor-fullscreen .schedule-selection{flex-wrap:wrap}.schedule-selection>span{flex-basis:100%}.schedule-selection button{flex:1}.schedule-help>p{max-height:50dvh}}

/* Keep controls in one toolbar; the position list owns the remaining height. */
dialog.editor-fullscreen .editor-drawer-header{padding:6px 14px;min-height:46px}dialog.editor-fullscreen .editor-drawer-header .zone-label{display:none}
.schedule-main-toolbar{display:flex;align-items:center;flex-shrink:0;gap:6px;padding:4px 8px;border-bottom:1px solid var(--line);background:var(--page)}
.schedule-main-toolbar .schedule-tabs{padding:0;border:0;gap:3px}.schedule-main-toolbar .schedule-tabs button{white-space:nowrap;padding:6px 8px}
.schedule-main-toolbar .schedule-member-heading{flex:1;min-width:0;padding:0;border:0;background:transparent;gap:8px}.schedule-main-toolbar .schedule-simple-search{flex:1;min-width:140px}
.schedule-groups .schedule-help{padding:0}.schedule-groups .schedule-help>p{right:auto;width:min(620px,85vw)}
.schedule-grid-scroll th.money{white-space:normal}.schedule-grid-scroll td{padding-top:4px;padding-bottom:4px}
@media(max-width:1100px){.schedule-main-toolbar .schedule-tabs button{padding:6px;font-size:11px}.schedule-main-toolbar .schedule-tabs button span{display:none}.schedule-main-toolbar .schedule-member-heading>button{font-size:11px;padding:5px}.schedule-main-toolbar .schedule-simple-search{min-width:110px}}
@media(max-width:760px){.schedule-main-toolbar{flex-wrap:wrap}.schedule-main-toolbar .schedule-tabs{width:100%}.schedule-main-toolbar .schedule-member-heading{flex-basis:100%;flex-wrap:nowrap;align-items:center}.schedule-main-toolbar .schedule-simple-search{order:0;flex-basis:auto}}

.schedule-main-toolbar .schedule-member-heading>.schedule-simple-search{flex:1;min-width:110px}
.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-main-toolbar .schedule-simple-search input{width:100%;height:30px;min-height:30px;margin:0;padding:4px 8px}
.editor-fullscreen .schedule-grid-scroll td{padding:3px 9px}
.editor-fullscreen .schedule-grid-scroll th{padding:5px 9px}

/* Accepted quantities by schedule period: compact controls and full-height table. */
dialog.editor-fullscreen .editor-drawer-body .period-acceptance-editor>fieldset{padding:12px 20px 0;gap:8px;overflow:hidden}.period-acceptance-editor>fieldset>*{flex-shrink:0}.period-acceptance-editor>fieldset>.period-acceptance-table{flex:1 1 200px;min-height:100px;max-height:none;margin:0}.editor-drawer .period-acceptance-editor label{margin:0}.period-acceptance-help{font-size:12px}.period-acceptance-help p{max-height:70px;overflow:auto}.period-acceptance-footer{display:flex;align-items:end;gap:20px;min-width:0;padding:8px 0 12px}.period-acceptance-footer>label{flex:1;min-width:100px}.editor-drawer .period-acceptance-footer textarea{min-height:44px;height:44px;max-height:100px;resize:none}.editor-drawer .editor-drawer-body .period-acceptance-save:last-child{position:static;margin:0;padding:0;border:0;box-shadow:none;background:transparent;flex-wrap:nowrap}.period-acceptance-table input{margin:0!important}.period-acceptance-editor .actions{margin:0}.period-acceptance-editor>fieldset>label input{margin-top:3px}
@media(max-width:650px){dialog.editor-fullscreen .editor-drawer-body .period-acceptance-editor>fieldset{padding:8px 12px 0}.period-acceptance-footer{flex-wrap:wrap;gap:6px}.period-acceptance-footer>label{flex-basis:100%}.period-acceptance-table td:first-child{min-width:220px}}

.period-acceptance-position{display:block;font-weight:650;margin-bottom:3px}.period-acceptance-table th,.period-acceptance-table td{padding:8px 12px}

/* CSV source registry: an independent full-screen review with a bounded, scrollable table. */
dialog.editor-fullscreen .registry-import{flex:1;min-width:0;min-height:0;width:100%;padding:8px 16px;gap:6px;overflow:hidden}.registry-import>*{flex-shrink:0}dialog.editor-fullscreen .registry-import-table{flex:1 1 220px;min-height:120px;max-height:none;margin:0;overflow:auto}.registry-import .section-toolbar{margin:0;gap:8px}.registry-import .registry-batch{gap:8px}.editor-drawer .registry-import label{margin:0;font-size:12px}.editor-drawer .registry-import input:not([type=checkbox]),.editor-drawer .registry-import select,.editor-drawer .registry-import textarea{padding:6px 8px;min-height:32px;margin-top:3px;font-size:13px}.registry-import button,.registry-import .button{padding:6px 10px;min-height:32px;font-size:13px}.registry-import .registry-note{font-size:12px}.registry-note .notice{max-height:90px;overflow:auto;margin:6px 0 0;padding:8px}.registry-import-table td{padding:7px 10px;font-size:12px}.registry-import-table th{font-size:12px;padding:6px 10px}.registry-import-table small{font-size:11px}.registry-new-object summary{overflow-wrap:anywhere;line-height:1.35;padding-top:5px}.registry-import-actions{position:static;padding:6px 0 0;display:flex;gap:10px;align-items:end;flex-wrap:wrap;background:var(--surface)}.registry-import-actions>label:first-child{flex:1;min-width:240px}.registry-import-actions .check{flex:1;min-width:250px;padding:6px}.editor-drawer .editor-drawer-body .registry-import .actions:last-child{position:static;inset:auto;margin:0;padding:0;background:transparent;border:0;box-shadow:none;flex-wrap:nowrap}.registry-import-actions .actions{width:auto}.registry-import-table table{margin:0}.registry-import .registry-batch label{margin:0}.registry-panel .money{white-space:nowrap}.registry-panel .money small{white-space:normal}@media(max-width:760px){dialog.editor-fullscreen .registry-import{overflow:auto;padding:8px}.registry-import>.registry-import-table{flex:0 0 300px;min-height:300px}.registry-import-actions{position:static}.registry-import-actions>.actions{width:100%}.registry-batch{flex-wrap:wrap}}

.registry-import-table .notice,.registry-import-table .error{margin:4px 0 0;padding:6px 8px}

/* Comparison replaces the editor; feedback stays above the workspace. */
dialog.editor-fullscreen .schedule-conflict-review{flex:1;min-width:0;min-height:0;overflow:auto;margin:6px 16px;overflow-wrap:anywhere}
dialog.editor-fullscreen .editor-drawer-body>form[hidden]{display:none}

/* Period split uses the existing wide workspace and the same personal draft. */
.schedule-period-split{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden;gap:6px;padding:8px}
.schedule-split-heading{display:flex;align-items:baseline;gap:12px;font-size:12px;flex-shrink:0}.schedule-split-heading strong{font-size:15px}
.schedule-split-periods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;flex-shrink:0}.schedule-split-periods>section{border:1px solid var(--line);border-radius:8px;padding:7px 10px;min-width:0;background:var(--page)}
.schedule-split-periods h4{margin:0 0 4px;font-size:13px}.schedule-split-dates{display:grid;grid-template-columns:repeat(2,minmax(0,160px));gap:10px;margin-top:5px}
.editor-drawer.editor-fullscreen .editor-drawer-body .schedule-period-split input:not([type=checkbox]){height:30px;min-height:30px;padding:4px 7px;margin-top:2px;font-size:12px}
.schedule-split-hint{font-size:11px;line-height:1.35;margin:0;flex-shrink:0;color:var(--muted)}
.schedule-split-search{display:flex;gap:7px;align-items:center;flex-shrink:0;font-size:12px}.schedule-split-search input{flex:1;min-width:120px}.schedule-split-search span{white-space:nowrap}.schedule-split-search button{padding:5px 8px;min-height:30px;font-size:11px;white-space:nowrap}
.schedule-split-grid{flex:1 1 0;min-height:0;overflow:auto;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:6px}.schedule-split-grid::-webkit-scrollbar{width:12px;height:12px}.schedule-split-grid::-webkit-scrollbar-track{background:var(--page)}.schedule-split-grid::-webkit-scrollbar-thumb{background:var(--muted);border:3px solid var(--page);border-radius:8px}.schedule-split-grid table{min-width:700px}.schedule-split-grid th:first-child{width:35px}.schedule-split-grid th:nth-child(3){width:115px}.schedule-split-grid th:nth-child(4),.schedule-split-grid th:nth-child(5){width:170px}.schedule-split-grid input[type=text]{width:100%}
.schedule-split-footer{display:flex;align-items:center;gap:8px;flex-shrink:0;border-top:1px solid var(--line);padding-top:6px;font-size:12px}.schedule-split-footer>div{flex:1;min-width:0;max-height:70px;overflow:auto}.schedule-split-footer small{display:block;color:var(--muted);margin-top:3px}.schedule-split-footer button{padding:6px 10px;min-height:32px;white-space:nowrap;font-size:12px}
@media(max-height:850px){.schedule-split-periods>section{padding:4px 7px}.schedule-split-periods h4{font-size:12px}.schedule-period-split{gap:4px;padding:5px}.schedule-split-heading span{font-size:11px}.schedule-split-hint{font-size:10px}}
@media(max-width:1000px){.schedule-split-search{flex-wrap:wrap}.schedule-split-footer{flex-wrap:wrap}.schedule-split-periods{gap:5px}.schedule-split-dates{gap:5px}.schedule-split-footer>div{flex-basis:100%}}

.editor-fullscreen .has-period-split>.schedule-reconciliation,.editor-fullscreen .has-period-split>.schedule-section-actions,.editor-fullscreen .schedule-savebar[hidden]{display:none}

.schedule-advance-editor{padding:1rem;display:block!important;overflow:auto;min-height:0}.schedule-advance-editor .fields{display:grid;grid-template-columns:repeat(3,minmax(12rem,1fr));gap:1rem}.schedule-advance-editor table{width:100%}.schedule-advance-editor td{vertical-align:top}.schedule-advance-editor small{display:block}@media(max-width:800px){.schedule-advance-editor .fields{grid-template-columns:1fr}}

/* Keep estimate quantities intact and retain column context while scrolling. */
.estimate-execution-table{max-width:100%;max-height:60vh;overflow:auto;scrollbar-gutter:stable;border:1px solid var(--line);border-radius:8px}
.estimate-execution-table:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.estimate-execution-table table{min-width:1120px;width:100%;table-layout:auto;border-collapse:separate;border-spacing:0}
.estimate-execution-table th,.estimate-execution-table td{padding:10px 12px;vertical-align:top}
.estimate-execution-table thead th{position:sticky;top:0;z-index:1;background:var(--surface);color:var(--text);box-shadow:0 1px var(--line)}
.estimate-execution-table th:first-child,.estimate-execution-table td:first-child{min-width:280px;width:30%}
.estimate-execution-table td:nth-child(2){min-width:64px;white-space:nowrap;overflow-wrap:normal;word-break:normal}
.estimate-execution-table .estimate-number{white-space:nowrap;overflow-wrap:normal;word-break:normal;text-align:right;font-variant-numeric:tabular-nums;max-width:none}
.estimate-execution-table th:nth-child(n+3):nth-child(-n+6){text-align:right;white-space:nowrap}
.estimate-execution-table td:nth-child(7){min-width:110px}
.estimate-execution-table td:last-child{min-width:130px}
.estimate-execution-table td button{width:100%;min-height:40px;white-space:normal}
@media(max-width:720px){.estimate-execution-table{max-height:55vh}.estimate-execution-table th,.estimate-execution-table td{padding:9px 10px}}
.estimate-execution-table::-webkit-scrollbar{width:12px;height:12px}
.estimate-execution-table::-webkit-scrollbar-track{background:var(--page)}
.estimate-execution-table::-webkit-scrollbar-thumb{background:var(--muted);border:3px solid var(--page);border-radius:8px}
.estimate-execution-table::-webkit-scrollbar-corner{background:var(--page)}
/* Preparation controls must not become a sidebar in the full-screen schedule editor. */
dialog.editor-fullscreen .editor-drawer-body:has(>.preparation-editor-actions){flex-direction:column}
dialog.editor-fullscreen .editor-drawer-body>.preparation-editor-actions{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:6px 16px}
dialog.editor-fullscreen .schedule-conflict-review section[aria-label="Распределение финансирования"] td:first-child,dialog.editor-fullscreen .schedule-conflict-review section[aria-label="Распределение финансирования"] td:last-child{white-space:nowrap;overflow-wrap:normal}

/* Keep summary totals separate when the schedule editor is narrow. */
@media(max-width:760px){.editor-fullscreen .schedule-reconciliation{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px}.editor-fullscreen .schedule-reconciliation>div{min-width:0;align-items:flex-start;flex-direction:column}.editor-fullscreen .schedule-reconciliation p{grid-column:1/-1;max-width:none;margin:0}.editor-fullscreen .schedule-reconciliation strong{max-width:100%;overflow-x:auto}}
