/* Screenshot review 05.10. One scroll surface per report and consistent controls. */
.workspace-scope [data-scope-field=manager]{order:-2!important}
.report-tech .report-choice{display:flex;align-items:center;gap:7px;margin:0;padding:4px 8px;border:1px solid #9dbedb;border-radius:8px;background:#e9f3fc;color:#234d70}
.report-tech .report-choice>span{font-size:10px;font-weight:600}
.report-tech .report-choice select{padding:6px 26px 6px 8px;font-size:11px;min-height:30px;background:white;max-width:190px}
.report-tech .report-config,.report-tech [data-scope-action=mine]{background:#e9f3fc;border-color:#9dbedb;color:#234d70;font-weight:600}
.report-tech #unit-fines{accent-color:#a83e45}
.unit-table td.unit-drr-known{background:#edf0f3!important;color:#253c4f!important;font-weight:600}
.unit-table td.unit-drr-high{background:#fce4e7!important;color:#97333e!important;font-weight:600;border-bottom-color:#e88896}
.unit-table td.unit-expense-alert{background:#fce4e7!important}
body.report-contained{height:100dvh;overflow:hidden}
body.report-contained .layout{height:100dvh;min-height:0}
body.report-contained .work{height:100dvh;min-height:0;display:flex;flex-direction:column}
body.report-contained #main{width:100%;flex:1;min-height:0;overflow:auto;padding-bottom:8px}
body.report-contained .table-scroll,body.report-contained .unit-scroll{min-height:140px;overscroll-behavior:contain}
body:has(dialog[open]){overflow:hidden!important}
.orders-report-body{overflow:hidden}
.orders-report-body>#order-period-grid,.orders-report-body>#fbw-detail-grid{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}
.orders-report-dialog .grid-continuous{overflow:auto;overscroll-behavior:contain;flex:1 1 0!important;min-height:0!important;max-height:none!important}
.orders-report-dialog .orders-detail-tools{flex-wrap:wrap}
.rule-example{color:#8b96a3;font-style:italic}
.rules-setup{margin-top:18px;border-top:1px solid #dbe4ec;padding-top:16px}
.rules-setup p{max-width:850px;font-size:12px;line-height:1.5}
.rule-warning{background:#fff2c4;color:#856111}
.rule-critical{background:#fce4e7;color:#97333e}
.report-loading{min-height:180px;display:grid;place-content:center;gap:12px;text-align:center}
.report-loading button{justify-self:center}
@media(max-width:900px){.report-tech .report-choice>span{display:none}.report-tech .report-choice select{max-width:155px}.report-head{flex-wrap:wrap}}

.scope-manager-first{order:-20!important}.rule-warning{background:#fff2cd}.rule-critical{background:#fce1e3}label.rule-warning,label.rule-critical{padding:8px;border-radius:7px}

.close-layout{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:18px;align-items:start}.close-steps{padding:0;margin:0;list-style:none;display:grid;gap:8px}.close-steps button{width:100%;text-align:left;display:grid;grid-template-columns:32px 1fr;gap:4px 8px;padding:14px;white-space:normal}.close-steps span{grid-row:span 2;font-weight:700}.close-steps small{grid-column:2;color:#65748b}.close-steps .active{background:#edf3ff;border-color:#7191cb}.close-next{margin-top:24px}.close-success{background:#e1f1e7;padding:12px;border-radius:8px}.close-return{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 14px;border:1px solid #ccd8e8;background:#eef4fc;border-radius:8px;margin-bottom:10px}.close-return span{font-size:13px}#close-memo{margin-top:20px}#close-memo code{overflow-wrap:anywhere}#close-memo textarea{width:100%;resize:vertical;margin:8px 0 14px}.close-period label{display:grid;gap:4px}.close-detail{min-width:0}.close-detail p{overflow-wrap:anywhere}.close-steps button:disabled{opacity:.65}@media(max-width:850px){.close-layout{grid-template-columns:1fr}.close-steps{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.close-return{flex-wrap:wrap}}

.report-personal{display:flex;align-items:center;background:#eaf3ff;border:1px solid #90bce7;border-radius:7px;padding:3px}.report-personal button{border:0;background:transparent}.report-personal button+button{border-left:1px solid #afc9e4;border-radius:0}.report-personal button:hover{background:#dbeaff}
