/* Single compact layout contract for all existing and future workspace screens. */
.inline-help{position:relative;margin-left:auto}.inline-help summary{cursor:pointer;color:var(--muted)}.inline-help p{position:absolute;right:0;top:20px;z-index:60;width:420px;max-width:80vw;padding:12px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);font-size:12px;line-height:1.5}
.grid-tools{display:flex;gap:7px;align-items:center;justify-content:flex-end;font-size:11px;margin-bottom:5px}.grid-tools button{font-size:11px;padding:3px 8px;min-height:26px}.grid-tools span{margin-right:auto}.unified-grid th{position:relative;padding-right:24px;white-space:normal}.unified-grid th>button:first-child{font-size:11px;border:0;background:none;padding:0;color:inherit;text-align:left;font-weight:600}.unified-grid th>.column-filter-button{position:absolute;right:2px;top:50%;transform:translateY(-50%)}.unified-grid td.numeric{text-align:right;font-variant-numeric:tabular-nums}.unified-grid td{max-width:280px}.unified-grid td small{display:block;font-size:10px;color:var(--muted)}
.unit-table th{height:42px;position:relative;padding-right:20px}.unit-table th>button[data-unit-sort]{height:auto;min-height:28px;display:inline-block;width:auto;padding:0;font-size:11px}.unit-table th>.column-filter-button{position:absolute;right:1px;top:50%;transform:translateY(-50%);width:18px;height:20px;min-height:20px;padding:0!important;display:block}
:root{--font-ui:Arial,Helvetica,sans-serif;--control-height:28px;--page-gap:8px;font-family:var(--font-ui);font-size:12px}
body,button,input,select,textarea,table{font-family:var(--font-ui)}
.main{padding:12px 18px 14px}.topbar{height:36px;padding:0 18px}
.page-head{min-height:30px;margin:0 0 var(--page-gap);gap:10px;align-items:center}.page-head h1{font-size:20px;line-height:1.25;font-weight:600;letter-spacing:0;margin:0}.page-head p{margin:3px 0 0;font-size:11px;line-height:1.3}
.page-head .actions{margin-left:auto}h2{font-size:16px;margin-bottom:10px}h3{font-size:14px}
.tabs{gap:22px;margin:0 0 var(--page-gap);min-height:31px}.tabs .tab{font-size:12px;line-height:18px;padding:6px 0}
.toolbar{min-height:38px;padding:4px 7px;margin-bottom:var(--page-gap);gap:7px;border-radius:6px;font-size:11px}.toolbar input,.toolbar select,.toolbar button,.page-head button,.page-head select,.actions button{min-height:var(--control-height);padding:4px 9px;font-size:11px;border-radius:5px}.toolbar label{font-size:11px;gap:6px}.toolbar input[type=checkbox]{min-height:0}.toolbar .search{min-width:150px}
.workspace-scope{position:relative;z-index:8}.workspace-scope select{max-width:180px}.workspace-scope .search{flex:1 1 225px}.workspace-scope button{white-space:nowrap}
.card{padding:12px 16px;margin-bottom:10px;border-radius:10px}.notice{padding:7px 10px;margin-bottom:8px;line-height:1.4}.hint{line-height:1.4;font-size:11px}.section-subtitle{margin:4px 0 8px}.settings-group{margin-bottom:16px}.settings-group h2{font-size:14px;margin-bottom:8px}.settings-tile{padding:12px}
.center-table,.mart-table,.report-table,.annual-table,.expense-table,.notes-table{font-family:var(--font-ui);font-size:11px}.center-table th,.mart-table th,.annual-table th,.expense-table th,.notes-table th{padding:6px 8px;font-size:11px;line-height:1.3}.center-table td,.mart-table td,.annual-table td,.expense-table td{padding:4px 8px}
.center-scroll{max-height:calc(100dvh - 220px);overflow:auto}.center-table thead th{position:sticky;top:0;z-index:2;background:var(--head)}
.order-day-row{display:grid!important;grid-template-columns:84px 54px minmax(0,1fr) 12px;gap:10px;align-items:center;width:100%}.order-day-row>strong{min-width:0!important}.order-day-row>span:first-of-type{text-align:right;white-space:nowrap}.order-day-row .status-bar{width:100%;min-width:0}
.status-explanation{position:absolute;right:0;top:30px;width:350px;max-width:90vw;padding:12px 15px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);line-height:1.5;z-index:50}.status-explanation ul{padding-left:18px;margin:8px 0}.status-explanation p{position:static!important;width:auto!important;padding:0!important;border:0!important;box-shadow:none!important;margin:8px 0 0!important;background:none!important}.orders-help{position:relative}.orders-help>p{display:none}
.orders-summary{padding:7px 10px}.orders-pagination{min-height:28px;margin:0 0 6px}.orders-pagination button{padding:3px 8px}.orders-compact-empty{padding:8px}
.negative-percent{background:#fde7e8!important;color:#ad2432!important}.report-table tr.kind-category td.negative-percent{color:#ad2432!important}
.product-combobox{position:relative}.product-combobox>input{width:100%;font-size:12px;padding:7px 10px}.searchable-source{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;opacity:0;pointer-events:none;bottom:0}.product-options{position:absolute;top:100%;left:0;right:0;z-index:60;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow);max-height:270px;overflow:auto}.product-options button{display:block;width:100%;border:0;border-radius:0;text-align:left;padding:8px 10px;font-size:12px}.product-options button.selected{background:var(--head)}.product-options>span{display:block;padding:10px;color:var(--muted)}
.column-filter-button{border:0;background:none;padding:2px 4px!important;min-height:20px!important;color:var(--muted);font-size:10px}.column-filter-button.active{background:#d3e9f6;color:#095780}.column-filter-dialog{width:340px;max-width:95vw;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);padding:14px}.column-filter-dialog .values{max-height:200px;overflow:auto;margin:8px 0}.column-filter-dialog label{font-size:12px}.column-filter-dialog .values label{display:flex;gap:6px;padding:4px}.column-filter-dialog .form-grid{gap:10px}.column-filter-dialog input{padding:6px}
@media(max-width:1250px){.workspace-scope select{max-width:135px}.workspace-scope{gap:5px}.workspace-scope .search{flex-basis:160px}.main{padding:10px 12px}.order-day-row{grid-template-columns:78px 44px minmax(0,1fr) 10px;gap:8px}}

.unified-grid tr.kind-result td{background:var(--sheet);color:#00ffff;font-weight:600;border-color:#53697e}
.compact-filter-head{position:relative;padding-right:22px!important}.compact-filter-head>.column-filter-button{position:absolute;right:2px;top:50%;transform:translateY(-50%)}
.compact-table-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:22px;font-size:10px;color:var(--muted)}.compact-table-tools button{font-size:10px;min-height:22px;padding:2px 6px}.compact-table-tools button[hidden]{display:none}

/* Shared desktop design: readable controls, quiet surfaces, explicit scope. */
:root{--font-ui:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--control-height:34px;--page-gap:12px;--ink:#243244;--muted:#697585;--blue:#0879d5;--line:#dfe5ec;--bg:#f5f6f8;--head:#edf3f8;--shadow:0 4px 18px #24324408;font-size:13px}
[hidden]{display:none!important}
body{font-size:13px;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-size:13px;min-height:34px;border-radius:8px;transition:background .15s,border-color .15s,box-shadow .15s}
input[type=checkbox],input[type=radio]{min-height:16px;width:16px;height:16px;accent-color:var(--blue)}
button:hover{background:#f0f4f8;border-color:#b7c5d5}button:active:not(:disabled):not(.column-filter-button){transform:translateY(1px)}
:is(button,input,select,textarea,summary,a):focus-visible{outline:3px solid #1683ed55;outline-offset:2px}
.primary{background:#1477c9;border-color:#1477c9}.primary:hover{background:#0a64b2;border-color:#0a64b2}
.topbar{height:44px;font-size:12px;background:#ffffffeb}.main{padding:20px 22px 22px}
.page-head{min-height:38px;margin-bottom:14px}.page-head h1{font-size:23px;font-weight:650;letter-spacing:-.45px}.page-head p,.hint{font-size:12px;line-height:1.5}
.page-head .actions button,.page-head select,.actions button{font-size:12px;min-height:34px;padding:6px 11px}
.tabs{gap:22px;min-height:36px;margin-bottom:12px}.tabs .tab{font-size:13px;padding:7px 0;min-height:36px;font-weight:500}.tabs .tab.active{font-weight:650}
.toolbar{padding:9px 12px;gap:9px;min-height:50px;border-radius:12px;font-size:12px;background:#fff;box-shadow:0 1px 2px #24324403}
.toolbar input,.toolbar select,.toolbar button{font-size:12px;min-height:34px;padding:6px 10px;border-radius:8px}.toolbar label{font-size:12px}.toolbar .search{min-width:0}
.workspace-scope{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr)) minmax(185px,1.8fr) auto;align-items:end;gap:10px;padding:11px 12px 12px}
.workspace-scope .scope-field{display:grid;gap:5px;min-width:0;margin:0}.scope-field>span{color:var(--muted);font-size:11px;font-weight:550;line-height:14px;letter-spacing:.1px}
.workspace-scope select,.workspace-scope .search{width:100%;min-width:0;max-width:none;margin:0;flex:none;height:34px}.workspace-scope input::placeholder{color:#7c8795}
.scope-actions{display:flex;gap:6px;align-items:center;min-height:34px}.scope-actions button{font-size:11px;padding:6px 9px}
.workspace-scope[data-profile=cabinet]{grid-template-columns:minmax(150px,220px) minmax(150px,260px) auto;justify-content:start}
.scope-summary{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap;padding-top:2px}.scope-summary button{min-height:26px;padding:3px 9px;border-radius:20px;background:#edf5fc;border-color:#dcecf9;font-size:11px;color:#22577e;display:flex;align-items:center;gap:8px}.scope-summary button span{font-size:15px;line-height:14px}
.card{border-radius:14px;padding:16px 18px;margin-bottom:12px;box-shadow:var(--shadow)}
.settings-group h2{font-size:15px;font-weight:600;color:var(--muted);margin:18px 0 10px}.settings-tile{padding:17px;border-radius:13px;box-shadow:0 1px 2px #24324404}.settings-tile strong{font-size:14px}.settings-tile small{font-size:12px;line-height:1.45}
.center-table,.mart-table,.report-table,.annual-table,.expense-table,.notes-table{font-size:12px}
.center-table th,.mart-table th,.annual-table th,.expense-table th,.notes-table th{font-size:11.5px;line-height:1.4;padding:8px 10px;font-weight:600}
.center-table td,.mart-table td,.annual-table td,.expense-table td{padding:6px 10px}.unified-grid th>button:first-child{font-size:11.5px;min-height:28px;line-height:1.4}.unified-grid td small{font-size:11px}
.grid-tools,.compact-table-tools{font-size:11.5px;gap:8px;margin-bottom:8px}.grid-tools button,.compact-table-tools button{font-size:11px;padding:4px 9px;min-height:29px;border-radius:7px}
.column-filter-button{min-width:22px;min-height:24px!important;border-radius:5px;font-size:12px;color:#708197}.column-filter-button:hover{background:#dcebf6;color:#185888}.column-filter-button.active{background:#c9e6fa;color:#005d9b;box-shadow:inset 0 0 0 1px #9bcef0}
.column-filter-dialog{border-radius:16px;padding:18px}.column-filter-dialog label{font-size:12px}.column-filter-dialog input{padding:8px}.column-filter-dialog .values label{padding:7px 4px;align-items:center}
dialog{border-radius:16px}dialog::backdrop{background:#1b2b4140;backdrop-filter:blur(2px)}.side-drawer{border-radius:18px 0 0 18px}
.form-grid{gap:14px}.form-grid label,.center-form label{font-size:12px}.form-error:not(:empty){padding:10px 12px;background:#fff0ee;border:1px solid #f2d2cf;border-radius:8px;font-size:12px}
.unified-grid tr.kind-result td{color:#e9f7ff}.order-day-row{grid-template-columns:90px 58px minmax(0,1fr) 14px;gap:12px}.orders-summary{padding:10px 12px}
@media(max-width:1250px){.main{padding:15px}.workspace-scope{grid-template-columns:repeat(4,minmax(105px,1fr))}.workspace-scope .scope-search{grid-column:1/4}.scope-actions{justify-content:flex-end}.workspace-scope[data-profile=cabinet]{grid-template-columns:minmax(130px,1fr) minmax(130px,1fr) auto}.page-head h1{font-size:22px}}
@media(max-width:760px){.workspace-scope{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-scope .scope-search{grid-column:1/-1}.scope-actions{grid-column:1/-1}.workspace-scope[data-profile=cabinet]{grid-template-columns:repeat(2,minmax(0,1fr))}.main{padding:12px}.page-head{flex-wrap:wrap}.tabs{gap:18px}.card{padding:12px}.toolbar{padding:9px}.scope-actions button{min-height:38px}}
@media(pointer:coarse){button,select,input:not([type=checkbox]):not([type=radio]),.toolbar button,.toolbar select,.toolbar input{min-height:42px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
/* OPIU keeps every meaningful desktop filter in a single quiet panel. */
.main[data-page=opiu],.main[data-page=year]{padding-top:8px}
.main[data-page=opiu]>.page-head,.main[data-page=year]>.page-head{min-height:34px;margin-bottom:6px}
.main[data-page=opiu]>.tabs{margin-bottom:8px;min-height:32px}
.workspace-scope[data-profile=opiu],.workspace-scope[data-profile=annual]{display:flex;flex-wrap:nowrap;align-items:end;gap:8px;padding:8px 10px;margin-bottom:9px}
.workspace-scope:is([data-profile=opiu],[data-profile=annual]) .scope-field{flex:1 1 110px;min-width:95px;max-width:180px}
.workspace-scope:is([data-profile=opiu],[data-profile=annual]) .scope-actions{order:9;flex:0 0 auto}
.workspace-scope:is([data-profile=opiu],[data-profile=annual]) .report-period-controls{display:contents}
.workspace-scope[data-profile=opiu] .report-period-controls{display:flex;flex:1;justify-content:flex-end;align-items:center;gap:10px;margin:0;padding:0;min-height:34px;border:0;box-shadow:none;background:transparent}
.workspace-scope[data-profile=opiu] #category-filter{margin-right:auto}
.opiu-period-line{display:flex;gap:16px;align-items:center;min-height:34px;margin:0 0 8px;font-size:12px}
.opiu-period-line label{display:flex;gap:8px;align-items:center;margin:0;color:var(--muted)}
.opiu-period-line select{min-height:32px;padding:5px 9px;max-width:230px;background:#fff;color:var(--ink)}
.workspace-scope:is([data-profile=opiu],[data-profile=annual]) .inline-label{white-space:nowrap;gap:5px;margin-bottom:0;min-height:34px;align-items:center}
.workspace-scope:is([data-profile=opiu],[data-profile=annual]) .inline-label select{max-width:180px}
.workspace-scope:is([data-profile=opiu],[data-profile=annual]) #category-filter{min-width:130px;max-width:180px}
.workspace-scope:is([data-profile=opiu],[data-profile=annual]) .scope-summary{display:none}
.report-table tr.expanded-parent td{background:#e6eff7;color:#294967;font-weight:650;border-top:1px solid #cedcea;border-bottom:1px solid #cedcea}
.report-table tr.expanded-parent td:first-child{box-shadow:inset 3px 0 #4787b8}
.report-table .fold{min-height:16px;height:16px;min-width:16px;padding:0 2px;font-size:11px;line-height:14px}
.report-table td.percent.trend-good{background:#eef8f2;color:#16724e}
.report-table td.percent.trend-bad{background:#fff0ef;color:#b54843}
.main[data-page=opiu] .column-filter-button,.main[data-page=year] .column-filter-button{display:none}
.annual-table{--annual-label:330px;--annual-amount:132px;--annual-percent:58px;border-collapse:separate;border-spacing:0}
.annual-table tbody th,.annual-table thead tr:first-child th:first-child{min-width:var(--annual-label);width:var(--annual-label);max-width:var(--annual-label)}
.annual-table td{min-width:var(--annual-amount);text-align:right;font-variant-numeric:tabular-nums}
.annual-table tbody td{color:var(--ink)}
.annual-table td.percent{min-width:var(--annual-percent);width:var(--annual-percent);font-size:10px;color:#69829b;font-weight:400}
.annual-table thead tr:first-child th{top:0;height:28px}
.annual-table thead tr:nth-child(2) th{top:28px;height:24px;min-width:0;width:auto}
.annual-table thead th[rowspan]{height:52px;left:0;z-index:8}
.annual-table thead tr:nth-child(2) th{left:auto;min-width:var(--annual-amount);max-width:none;background:var(--head);border-right:1px solid #e5eaf0}
.annual-table thead tr:nth-child(2) th.percent{min-width:var(--annual-percent);width:var(--annual-percent);max-width:var(--annual-percent);font-size:10px}
.annual-table thead tr:first-child th:not(:first-child){text-align:center}
.annual-table .annual-total-head,.annual-table td.annual-total-sum,.annual-table th.annual-total-sum{position:sticky;left:var(--annual-label);z-index:4;background:#f0f6fa}
.annual-table td.annual-total-percent,.annual-table th.annual-total-percent{position:sticky;left:calc(var(--annual-label) + var(--annual-amount));z-index:4;background:#f0f6fa;border-right:3px solid #bacbd9;min-width:var(--annual-percent);width:var(--annual-percent)}
.annual-table:not(.with-percent) .annual-total-sum{border-right:3px solid #bacbd9}
.annual-table .annual-total-head{z-index:7;border-right:3px solid #bacbd9}
.annual-table thead .annual-total-sum,.annual-table thead .annual-total-percent{z-index:7}
.annual-table tr.kind-section td.percent,.annual-table tr.kind-result td.percent{color:#d8e7f5}
.category-calculation{margin:0 0 6px;font-size:11px}
/* Latest owner reference: one header, first filter is the period. */
.main[data-page=opiu] .opiu-head{align-items:center;gap:12px;min-height:42px;margin-bottom:8px}
.opiu-head h1{font-size:17px;letter-spacing:-.25px;white-space:nowrap;flex:0 0 auto}
.opiu-head>.tabs{display:flex;gap:0;min-height:32px;margin:0;border:0;border-radius:9px;background:#e9edf3;padding:2px;flex:0 0 auto}
.opiu-head>.tabs .tab{border:0;border-radius:7px;padding:5px 8px;min-height:28px;font-size:11px;white-space:nowrap;line-height:18px}
.opiu-head>.tabs .tab.active{background:#fff;color:#0677d3;box-shadow:0 1px 3px #23344912}
.opiu-head .report-tech{margin-left:auto;gap:7px;white-space:nowrap;flex-wrap:nowrap}
.report-tech .inline-label{font-size:10px;gap:4px;margin:0;min-height:28px;white-space:nowrap}
.report-tech .badge{font-size:9px;padding:4px 7px}
.opiu-head .actions button{font-size:10px;min-height:28px;padding:4px 7px}
.workspace-scope:is([data-profile=opiu],[data-profile=annual]) .scope-actions{display:flex}
.workspace-scope[data-profile=opiu] .report-period-controls,.workspace-scope[data-profile=annual] .report-period-controls{display:contents}
.workspace-scope:is([data-profile=opiu],[data-profile=annual]) .scope-period{flex:0 0 185px;min-width:150px;max-width:220px}
.workspace-scope[data-profile=opiu] .scope-report-category{flex:1 1 130px;max-width:180px;margin-left:0}
.workspace-scope[data-profile=opiu] #category-filter{margin:0;width:100%;max-width:none;min-width:0}
.main[data-page=year]>.page-head .actions>.inline-label{font-size:11px;margin:0;gap:5px}
.notes-controls{display:flex;align-items:end;gap:10px;padding:8px 10px}.notes-controls .scope-period{flex:0 0 185px}.notes-controls .notes-search-field{flex:1}.notes-controls .scope-field{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0}.notes-controls .scope-field>span{font-size:11px;color:var(--muted)}.opiu-head #notes-status{min-height:28px;font-size:11px;padding:4px 8px}
@media(max-width:1600px){.opiu-head{flex-wrap:wrap}.opiu-head .report-tech{margin-left:auto}.opiu-head h1{font-size:18px}.opiu-head>.tabs .tab{padding:5px 7px}}
@media(max-width:760px){.opiu-head>.tabs{max-width:100%;overflow:auto}.opiu-head .report-tech{flex-wrap:wrap;justify-content:flex-end}.workspace-scope:is([data-profile=opiu],[data-profile=annual]) .scope-period{flex:1 1 40%}}
@media(max-width:1450px){.workspace-scope[data-profile=opiu],.workspace-scope[data-profile=annual]{flex-wrap:wrap}.workspace-scope:is([data-profile=opiu],[data-profile=annual]) .scope-field{max-width:none;flex-basis:125px}}
@media(max-width:760px){.workspace-scope:is([data-profile=opiu],[data-profile=annual]) .scope-field{flex-basis:40%;min-width:0}.workspace-scope:is([data-profile=opiu],[data-profile=annual]) .inline-label{flex-wrap:wrap}.annual-table{--annual-label:250px}}
[data-assembly-guide],.assembly-checks{margin:16px 0}
.assembly-check{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line,#e4e9ef)}
.assembly-check>div{flex:1}.assembly-check p{margin:4px 0 0}.assembly-check.ready>span{color:#248452}.assembly-check.pending>span{color:#9a6700}
.order-chart-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.order-chart-head h3{font-size:14px}.order-chart-head span{color:#66758a;font-size:12px}
.order-chart-scroll{overflow:auto;max-width:100%;margin-bottom:10px}.order-chart-scroll svg{min-width:100%;display:block}.order-chart-column{fill:#3888d9}.order-chart-column:hover{fill:#1266b9}.order-chart-scroll text{fill:#617187;font-size:10px}.order-chart-scroll line{stroke:#dfe6ed}.chart-values{width:100%;max-width:680px;margin-top:12px}.chart-values td{padding:6px 10px;text-align:right}.chart-values td:first-child{text-align:left}
.rnp-controls>label{display:flex;align-items:center;gap:8px;color:#5d6c80;font-size:12px}.rnp-notice{margin:8px 0}.rnp-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rnp-kpis .card{display:flex;flex-direction:column;gap:10px;margin:0}.rnp-kpis strong{font-size:25px;letter-spacing:-.5px}.rnp-kpis small,.rnp-kpis span{color:#66758a}.rnp-bars{display:flex;gap:12px;overflow:auto;align-items:flex-end;padding:12px 0}.rnp-bars>div{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:30px;flex:1}.rnp-bars rect{fill:#3989dd}.rnp-bars small{font-size:10px;color:#66758a}.rnp-bars strong{font-size:11px}.rnp-bars+ .hint{margin-bottom:0}@media(max-width:850px){.rnp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}

.rnp-week-card .center-scroll{max-height:68vh}
.rnp-week-card .unified-grid thead th{background:#f2f6fa;vertical-align:top;min-width:118px}
.rnp-week-card .unified-grid .grid-group-row th{height:32px;background:#e8f0f8;color:#315478;text-align:left;position:sticky;top:0;z-index:3;border-right:2px solid #fff}
.rnp-week-card .unified-grid thead tr:nth-child(2) th{top:32px;position:sticky;z-index:2}
.rnp-note-button{display:block;max-width:230px;white-space:normal;text-align:left;font-size:11px;min-height:28px;color:#2c648f;background:#f1f7fc;border-color:#d9e6f2}
#rnp-note-dialog{width:min(520px,calc(100vw - 32px))}#rnp-note-dialog textarea{display:block;width:100%;min-height:140px;margin:10px 0 18px}
#rnp-body.loading{opacity:.5;transition:opacity .12s}

/* Shared report frame: title + sheet tabs + tools, then meaningful filters. */
.main[data-page]{padding-top:8px}
.table-scroll{overflow-anchor:none}
.main>.report-head,.main[data-page=opiu]>.report-head,.main[data-page=year]>.report-head{display:flex;align-items:center;gap:12px;min-height:36px;margin:0 0 8px}
.main>.report-head h1,.main>.report-head.opiu-head h1{font-size:17px;line-height:1.25;letter-spacing:-.25px;margin:0;white-space:nowrap}
.report-head>.tabs{display:flex;gap:0;min-height:32px;margin:0;border:0;border-radius:9px;background:#e9edf3;padding:2px;flex:0 1 auto;min-width:0}
.report-head>.tabs .tab{border:0;border-radius:7px;padding:5px 8px;min-height:28px;font-size:11px;line-height:18px;white-space:nowrap}
.report-head>.tabs .tab.active{background:#fff;color:#0677d3;box-shadow:0 1px 3px #23344912}
.report-head .report-tech{margin-left:auto;display:flex;align-items:center;gap:7px;flex-wrap:nowrap}
.report-head .actions :is(button,select,input){font-size:11px;min-height:28px;padding:4px 7px;border-radius:6px}
.report-head .actions input[type=checkbox]{min-height:0;padding:0}.report-head .actions .inline-label{margin:0;white-space:nowrap;font-size:10px;gap:4px}
.report-updated{font-size:10px;color:#738198;white-space:nowrap;text-align:right}
.main>.workspace-scope,.main>.workspace-scope[data-profile]{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:8px 10px;margin-bottom:9px;min-height:0}
.workspace-scope[hidden]{display:none!important}
.workspace-scope .scope-field,.workspace-scope:is([data-profile=opiu],[data-profile=annual]) .scope-field{display:flex;flex-direction:column;flex:1 1 108px;min-width:100px;max-width:180px;gap:4px;margin:0;order:1}
.workspace-scope .scope-field>span{font-size:11px;line-height:14px;color:#708097;font-weight:500}
.workspace-scope .scope-field :is(input,select){height:34px;min-width:0;width:100%;max-width:none;font-size:12px;margin:0;padding:5px 9px}
.workspace-scope [data-scope-local],.workspace-scope[data-profile] .report-period-controls{display:contents}
.workspace-scope .scope-field.scope-period,.workspace-scope:is([data-profile=opiu],[data-profile=annual]) .scope-period{order:0;flex:0 1 145px;min-width:125px;max-width:205px}
.workspace-scope[data-profile=opiu] .scope-period{flex-basis:185px;min-width:178px}
.workspace-scope .view-field:not(.scope-period),.workspace-scope .scope-report-category{order:2}
.workspace-scope .scope-search{flex:1.35 1 135px;min-width:120px;max-width:230px;grid-column:auto}
.workspace-scope .scope-actions{order:4;display:flex;gap:6px;grid-column:auto;align-items:center}
.workspace-scope .scope-actions:has(button[hidden]):not(:has(button:not([hidden]))){display:none}
.workspace-scope .scope-summary{display:none}
.workspace-scope [data-scope-local]>:is(button,details,.badge,.hint){order:4;align-self:center}
.workspace-scope .scope-field[hidden]{display:none!important}
.report-head .inline-help p{z-index:40}.scope-field.view-field.scope-search{max-width:420px}
.approval-dates{margin:0 0 8px;font-size:11px}
.main[data-page=year] .expense-grid{padding:10px 12px}.expense-grid h2{font-size:14px;margin:0 0 9px}
.expense-grid .compact-table-tools{display:none}
#expenses-form{padding:12px 14px}#expenses-form h2{font-size:15px;margin:0 0 5px}#expenses-form p.hint{margin:3px 0 8px}
#expenses-form fieldset{border:0;margin:6px 0;padding:0}#expenses-form .entry-table{table-layout:fixed}
#expense-rows th:nth-child(1){width:25%}#expense-rows th:nth-child(2){width:13%}#expense-rows th:nth-child(3){width:16%}#expense-rows th:last-child{width:38px}
#expense-rows :is(td,th){padding:4px 5px}#expense-rows :is(input:not([type=checkbox]),textarea){width:100%;max-width:none;min-height:32px;padding:6px 8px;font-size:12px}
#expense-rows textarea{height:34px;min-height:34px;resize:vertical}#expense-rows .inline-label{margin:0;font-size:11px}
#expenses-form>.form-error:empty{margin:0}#expenses-form>button.primary{margin-top:8px}
.annual-compact.annual-table{table-layout:fixed;min-width:0;width:100%;--annual-label:clamp(185px,19vw,280px);--annual-amount:auto}
.annual-compact .annual-label-col{width:var(--annual-label)}
.annual-compact.annual-table :is(th,td){min-width:0;max-width:none;width:auto;padding:5px 4px;font-size:11px;line-height:1.25;white-space:nowrap}
.annual-compact.annual-table tbody th,.annual-compact.annual-table thead tr:first-child th:first-child{width:var(--annual-label);min-width:0;max-width:none;white-space:normal;text-align:left}
.annual-compact.annual-table thead th{height:34px;text-align:center;top:0}
.annual-compact.annual-table thead{position:sticky;top:0;z-index:8}
.annual-compact.annual-table thead th{background:var(--head)}
.annual-compact.annual-table .annual-total-head,.annual-compact.annual-table .annual-total-sum{left:var(--annual-label);border-right:2px solid #bacbd9}
.annual-value{display:block;font-variant-numeric:tabular-nums}.annual-compact.annual-table .annual-cell-percent{display:block;min-height:13px;font-size:9px;font-weight:400;color:#71859c;margin-top:2px}
.annual-compact.annual-table tr:is(.kind-section,.kind-result) .annual-cell-percent{color:#dbe8f5}
.expense-table{table-layout:fixed;width:100%;min-width:0}
.expense-table :is(th,td){min-width:0;width:auto;padding:6px 4px;font-size:11px;white-space:nowrap}
.expense-table th:first-child{width:210px;min-width:0;max-width:210px}
.expense-table td:nth-child(2),.expense-table thead th:nth-child(2){left:210px}
.orders-sticky .status-label{font-size:11px}.orders-sticky .status-label strong{font-size:13px;font-weight:650}.orders-sticky .status-label small{font-size:10px}
.order-day-row,.orders-days .order-day-row{grid-template-columns:122px 56px minmax(0,1fr);gap:10px}
.order-day-row>strong{display:flex;align-items:center;gap:7px}.day-expander{font-size:16px;width:15px;color:#2675ad}.day-hint{margin:1px 0 8px;font-size:12px}
.expansion-choices{display:flex;flex-direction:column;gap:9px;margin:15px 0 20px}.expansion-choices .inline-label{white-space:normal;align-items:flex-start;line-height:1.4;margin:0}
.grid-continuous .unified-grid tbody tr:not(.grid-spacer){height:48px}
.unified-grid thead th{padding-right:28px}
.order-day-block .grid-continuous{max-height:calc(100dvh - 225px);min-height:0}
.grid-continuous .unified-grid td{height:48px;padding:4px 7px;box-sizing:border-box}
.grid-continuous .grid-cell{max-height:38px;line-height:18px;overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere}
.grid-continuous .numeric .grid-cell{white-space:nowrap;overflow-wrap:normal}
.grid-continuous .grid-cell button{min-height:28px;font-size:11px;padding:4px 7px}
.grid-continuous .grid-actions{display:flex;gap:4px;white-space:nowrap}
.grid-continuous .grid-spacer,.grid-continuous .grid-spacer td{padding:0!important;border:0!important;min-height:0;line-height:0;background:transparent}
#penalty-grid .unified-grid th{padding:5px 28px 5px 6px;font-size:11px}#penalty-grid .unified-grid th button{font-size:11px}
@media(min-width:1480px){.main>.report-head{flex-wrap:nowrap}.main>.workspace-scope{flex-wrap:nowrap}}
@media(max-width:1479px){.main>.report-head{flex-wrap:wrap}.report-head>.tabs{max-width:100%;overflow:auto}.report-updated{white-space:normal}}
@media(max-width:1180px){.annual-compact.annual-table,.expense-table{min-width:1050px}.main>.report-head h1{font-size:17px}}
@media(max-width:760px){.main>.workspace-scope .scope-field{min-width:0;max-width:none;flex:1 1 40%}.main>.workspace-scope .scope-actions{margin-left:auto}.report-head .report-tech{flex-wrap:wrap}.report-updated{font-size:9px}.order-day-row,.orders-days .order-day-row{grid-template-columns:112px 42px minmax(0,1fr)}#expense-rows{min-width:680px}}

/* One-click reading focus spans sticky cells and all periods. */
.unit-table thead{position:sticky;top:0;z-index:8}
.unit-table thead th{position:sticky;top:0;z-index:3;min-width:130px;max-width:180px;height:76px;padding:8px 28px 8px 8px;vertical-align:middle;line-height:1.35;background:#e6f1f7;box-sizing:border-box}
.unit-table thead th>button[data-unit-sort]{width:100%;height:auto;min-height:0;font-size:11px;line-height:1.35;white-space:normal;overflow-wrap:break-word}
.unit-table thead [data-unit-pin]{z-index:5}
.unit-table td[data-unit-pin]{cursor:pointer}
.unit-table tfoot{position:sticky;bottom:0;z-index:6}
.unit-table tfoot td{height:34px;background:#e6f1f7!important;font-weight:700;color:#213e5a;box-shadow:0 -1px #aec5d8;overflow:visible}
.unit-table tfoot [data-unit-pin]{z-index:7;background:#e6f1f7}
.unit-table th[data-unit-column="103"]{min-width:155px}
.unit-analysis-table{min-width:1060px}
.unit-table.unit-analysis-table :is(th,td),.unit-table.unit-analysis-table [data-unit-pin="article"],.unit-table.unit-analysis-table thead th{min-width:0;max-width:none;width:auto}
.unit-analysis-table thead th{padding:8px 20px 8px 7px;height:86px}
.unit-analysis-table thead th>button[data-unit-sort]{font-size:10.5px}
.unit-analysis-table td{padding:4px 7px;font-size:11px}
.unit-table .unit-coverage-button{min-height:18px;border:0;background:transparent;padding:0 3px;color:#386589;font-size:14px;vertical-align:middle}
.unit-coverage-list{max-height:45vh;overflow:auto;line-height:1.7;padding-left:22px}
button.reset-active{background:#fff0cf;border-color:#d69b2c;color:#754900;font-weight:600;box-shadow:0 0 0 1px #eabd6266}
button.reset-active:hover{background:#ffe4ad;border-color:#b77b13}
.unit-table td.ad-rate-positive,.unified-grid td.ad-rate-positive,td.ad-rate-positive{color:#168046;font-weight:700}
.unit-table tbody td.unit-status{text-align:left;font-weight:600;font-size:11px}
.unit-table tbody td.unit-status-profit{background:#e1f1e7;color:#17653d}
.unit-table tbody td.unit-status-low{background:#fff2cd;color:#775311}
.unit-table tbody td.unit-status-loss{background:#fce1e3;color:#962f3f}
.unit-table tbody td.unit-status-unknown{background:#eceef1;color:#66717f;font-weight:400}
.unit-table tbody td.unit-expense-alert{background:#fce9eb;box-shadow:inset 0 -2px #d97180}
.unit-table tbody tr:hover td.unit-status-profit{background:#d3eadc}
.unit-table tbody tr:hover td.unit-status-low{background:#ffebba}
.unit-table tbody tr:hover td.unit-status-loss,.unit-table tbody tr:hover td.unit-expense-alert{background:#f8d6dc}
.rnp-scheme-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rnp-scheme-chart.card{margin:0;min-width:0;padding:16px 18px}
.rnp-scheme-chart h2{font-size:15px;margin:0 0 10px}
.rnp-scheme-chart[data-scheme="FBS"] rect{fill:#317dca}
.rnp-scheme-chart[data-scheme="FBW"] rect{fill:#1693a1}
.rnp-scheme-chart .rnp-bars{gap:6px}
.rnp-chart-unselected{min-height:160px;display:grid;place-content:center;color:var(--muted);font-size:12px}
.rnp-chart-caption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:11px;margin:8px 2px 12px}
.grid-tools>.rnp-week-tools{margin:0;gap:8px;font-size:11px;color:var(--muted);flex-shrink:0}
.grid-tools>.rnp-week-tools select{height:29px;min-height:29px;max-width:225px;margin:0;font-size:11px}
.rnp-week-card .grid-tools{min-height:29px;flex-wrap:wrap}
@media(max-width:760px){.rnp-scheme-charts{grid-template-columns:1fr}.rnp-week-card .grid-tools{gap:6px}.grid-tools>.rnp-week-tools select{max-width:190px}}
.main[data-page=unit] .workspace-scope .scope-field.scope-period{flex:0 0 210px;min-width:210px;max-width:220px}
.column-filter-dialog{box-sizing:border-box;width:390px;max-width:calc(100vw - 24px);overflow-x:hidden}
.column-filter-dialog .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.column-filter-dialog .form-grid label,.column-filter-dialog input:not([type=checkbox]){min-width:0;max-width:100%;width:100%;box-sizing:border-box}
.column-filter-dialog .filter-empty{display:flex;align-items:center;gap:8px;margin:12px 0}
.column-filter-dialog form>label:not(.inline-label):not(.filter-empty){display:grid;gap:6px;margin:12px 0}
.column-filter-dialog form>label:has(input[type=search])+.actions{margin-top:12px;margin-bottom:12px}
.scope-search:has(.scope-product-options){position:relative}
.scope-search:has(.scope-product-options:not([hidden])){z-index:35}
.workspace-scope:has(.product-options:not([hidden])){z-index:45}
.order-detail-panel{margin:4px 0 16px;padding:12px;border:2px solid #8caec6;border-radius:10px;background:#f4f9fc;box-shadow:0 3px 9px #16355212}
.order-detail-panel.has-status-filter{border-color:#287aad;background:#edf6fc}
.order-detail-panel .orders-detail-tools{gap:12px;align-items:center;padding:2px 0 12px;background:transparent;flex-wrap:wrap}
.orders-detail-tools label{display:flex;gap:7px;align-items:center;font-size:12px;font-weight:600}
.order-detail-panel .orders-detail-tools>label{display:flex;flex-direction:row;align-items:center;gap:7px;margin:0;text-align:left}
.order-detail-panel .orders-detail-tools>label select,.order-detail-panel .orders-detail-tools>button{height:36px;min-height:36px;margin:0;box-sizing:border-box}
.order-detail-selection{padding:6px 10px;border-radius:6px;background:#d9ebf8;color:#184d77;font-size:12px;font-weight:600}
.order-detail-panel .order-detail-grid{background:white;border-radius:6px;min-width:0}
.order-day-row[aria-expanded=true]{background:#eaf3fa;border-radius:7px;color:#184d77}
.quality-counters{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.quality-summary{margin:16px 0}.quality-summary .table-overflow{overflow:auto;margin-top:10px}
.workspace-scope .scope-actions{order:-1;align-self:end;margin:0 4px 0 0}
.workspace-scope [data-scope-field=marketplace]{order:1}
.workspace-scope [data-scope-field=cabinet]{order:2}
.workspace-scope [data-scope-field=brand]{order:3}
.workspace-scope [data-scope-field=category],.workspace-scope .scope-category-position{order:4!important}
.workspace-scope [data-scope-field=manager]{order:5}
.workspace-scope [data-scope-field=article]{order:6}
.orders-period-shortcuts,.orders-view-switch{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
.orders-period-shortcuts>span,.orders-view-switch>span{font-size:11px;font-weight:600;color:#526985;margin-right:3px}
.orders-view-switch{padding-left:12px;margin-left:8px;border-left:1px solid #c4d5e5}
.orders-view-switch button[aria-pressed=true],.orders-period-shortcuts button[aria-pressed=true]{background:#e1f0ff;border-color:#75aee0;color:#145d91;font-weight:600}
.orders-summary-line>.actions{gap:10px}
.orders-summary-line .orders-help{margin-left:6px}
@media(max-width:760px){.orders-view-switch{padding-left:0;margin-left:0;border-left:0;flex-basis:100%}.workspace-scope .scope-actions{margin-left:0!important}}
.scope-product-options{position:absolute;left:0;top:100%;width:max(100%,300px);max-width:min(430px,85vw);max-height:310px;overflow:auto;border:1px solid #c8d8e8;border-radius:8px;background:white;box-shadow:0 8px 22px #18355224}
.scope-product-options button{display:block;width:100%;text-align:left;white-space:normal;border:0;border-radius:0;padding:8px 10px;font-size:12px}
.scope-product-options button small{display:block;color:var(--muted);margin-top:3px}
.scope-product-options button.selected{background:#e6f1fb}
.scope-product-options>span{display:block;padding:12px;font-size:12px}
.rnp-kpis.dashboard-kpis{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:12px}
.rnp-kpis .dash-kpi{min-height:130px}
.rnp-kpis .dash-kpi strong{font-size:21px}
.rnp-week-tools{display:flex;align-items:center;gap:10px;margin:8px 0}
.rnp-week-tools label{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--muted)}
.rnp-week-tools select{min-height:32px;padding:4px 8px;font-size:12px}
#rnp-columns-form>label{display:flex;flex-direction:column;gap:6px;font-size:12px;margin:12px 0}
#rnp-columns-form>.actions{margin-top:10px}
#rnp-columns-form .unit-column-list{max-height:45vh}
#rnp-columns-dialog{width:min(720px,calc(100vw - 32px))}
#rnp-columns-form .rnp-plan-choice{display:flex;align-items:center;gap:12px;min-height:38px;padding:3px 0}
#rnp-columns-form .rnp-plan-choice[hidden]{display:none}
#rnp-columns-form .rnp-plan-choice label{flex:1;display:flex;align-items:center;gap:8px;font-size:12px;min-width:0}
#rnp-columns-form .rnp-plan-choice select{width:145px;min-height:29px;font-size:11px;padding:4px 7px}
.rnp-week-card.card{padding:10px;margin-bottom:0}
.rnp-week-card .center-scroll{max-height:none}
.rnp-week-card .grid-continuous .unified-grid tbody tr:not(.grid-spacer),.rnp-week-card .grid-continuous .unified-grid td{height:34px}
.rnp-week-card .grid-continuous .grid-cell{max-height:26px;line-height:13px;font-size:11px}
.rnp-week-card .unified-grid thead th{min-width:105px;max-width:170px;padding:6px 22px 6px 7px;font-size:10.5px}
.rnp-week-card .unified-grid .grid-group-row th{height:50px;min-width:105px;max-width:170px;white-space:normal;line-height:14px;padding:6px 8px}
.rnp-week-card .unified-grid thead tr:nth-child(2) th{top:50px;height:32px}
.rnp-week-card .unified-grid thead{position:sticky;top:0;z-index:4}
.rnp-week-card .unified-grid tfoot{position:sticky;bottom:0;z-index:5}
.rnp-week-card .unified-grid tfoot td{background:#e6f1f7;font-weight:700;border-top:1px solid #aec5d8;height:34px;white-space:nowrap}
.rnp-week-card .rnp-note-button{min-height:24px;padding:3px 6px;line-height:16px}
@media(max-width:1250px){.rnp-kpis.dashboard-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.rnp-kpis.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.main[data-page=unit] .workspace-scope .scope-field.scope-period{flex:1 1 210px;max-width:none}.unit-table thead th{min-width:130px}}
table[data-row-selection] tbody tr.report-row-selected > :is(td,th){background:#e8e9ed!important;color:#273c4f!important}
table[data-row-selection] tbody tr.report-row-selected :is(.percent,.annual-cell-percent){color:#607287!important}

/* The calendar add control keeps a square shape despite global button sizing. */
.cash-day-top{min-height:26px;height:26px}
.cash-day-top button{display:inline-grid;place-items:center;flex:0 0 26px;width:26px;height:26px;min-width:26px;min-height:26px;padding:0;border-radius:6px;border:1px solid #c5dafa;background:#eef5ff;color:#0071e3;font-size:20px;line-height:1}
.cash-day-top button:hover{background:#dceaff;border-color:#85b5f4}
.cash-day-top button:focus-visible{outline:2px solid #0071e3;outline-offset:2px}

/* Add a catalog choice without replacing the unfinished product form. */
.category-picker{display:flex;align-items:flex-end;gap:10px;min-width:0}
.category-picker>label{flex:1;min-width:0}
.category-picker>button{margin-bottom:9px;flex-shrink:0}
.category-create{padding:12px;border:1px solid var(--line);background:#f4f8fc;border-radius:8px}
.category-error{color:#ad243e;font-size:12px;margin:0}
.category-error:empty{display:none}

/* Order metrics open a full-width report, independently of narrow edit forms. */
.side-drawer.orders-report-dialog{inset:0;margin:auto;width:calc(100vw - 40px);max-width:1560px;height:calc(100dvh - 40px);max-height:900px;padding:18px 22px;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.orders-report-dialog[open]{display:flex;flex-direction:column;gap:10px}
.orders-report-dialog>.dialog-head{position:static;flex:0 0 auto;padding:0;min-height:36px}
.orders-report-body,.orders-report-body>[id^="ow-detail-"],.orders-report-body .order-detail-grid,.orders-report-body .order-penalty-grid,#fbw-detail-grid{display:flex;flex-direction:column;min-height:0;flex:1}
.orders-report-dialog .grid-continuous{flex:1;max-height:none;min-height:0}
.orders-report-dialog .orders-detail-tools,.orders-report-dialog .grid-tools{flex:0 0 auto}
.orders-report-dialog .unified-grid th{overflow-wrap:anywhere}
.orders-report-dialog .unified-grid td,.orders-report-dialog .unified-grid th,#fbw-grid .unified-grid td,#fbw-grid .unified-grid th{border-right:1px solid var(--line)}
.orders-report-dialog .unified-grid tr>:last-child,#fbw-grid .unified-grid tr>:last-child{border-right:0}
#fbw-grid .unified-grid th:not(:first-child){text-align:right}
#fbw-grid .unified-grid th:not(:first-child)>button:first-child{text-align:right;width:100%}
#fbw-grid .unified-grid tbody tr:nth-child(even):not(.grid-spacer) td{background:#f8fafc}
@media(max-width:760px){.side-drawer.orders-report-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px);padding:10px;border-radius:8px}.category-picker{flex-wrap:wrap}.category-picker>label{flex-basis:100%}.category-picker>button{margin-bottom:0}}

.permission-readonly { text-align:center; color:#718096; }
/* Promotion shares the report grid; only input and reconciliation affordances differ. */
.promotion-card{padding:12px 16px}.promotion-card .center-scroll{max-height:calc(100vh - 280px)}
.promotion-card th{white-space:normal}.promotion-card td .grid-cell{white-space:normal;overflow-wrap:anywhere}
.promotion-card tfoot{position:sticky;bottom:0;z-index:3;background:#e5f0f6;font-weight:600}
.promotion-card tfoot td{padding:9px 10px;border-top:1px solid #b3cddb;background:#e5f0f6}
.promo-edit{border:0;background:transparent;color:#1676b4;margin-left:10px;padding:3px 5px}
.promo-difference{color:#a44525;font-weight:600}.promotion-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.external-entry{border:0;padding:0;margin:0;min-width:0}.external-entry:disabled{opacity:.45}
.external-entry>.input-overflow{max-width:100%;overflow:auto}
.external-entry .input-table{table-layout:fixed;min-width:970px}.external-entry th:nth-child(-n+2){width:140px}.external-entry th:nth-child(3){width:215px}.external-entry th:nth-child(4){width:105px}.external-entry th:last-child{width:40px}
.external-entry input,.external-entry select{width:100%;min-width:0}.promotion-history{margin-top:15px}.promotion-history>details{margin:10px}
.promo-check-dialog{width:min(520px,calc(100vw - 40px));border:1px solid #ccdae5;border-radius:14px;padding:20px;color:#24354b}
.promo-check-dialog::backdrop{background:#20334950;backdrop-filter:blur(3px)}.promo-check-dialog .actions{flex-wrap:wrap}.promo-check-dialog input{width:100%}
.promotion-hide-zeros{white-space:nowrap;margin-right:12px;font-size:12px}
.order-monitor.warning { background:#fff0bc; color:#754700; padding:4px 7px; border-radius:5px; }
.order-monitor.critical { background:#fce0e5; color:#a31536; padding:4px 7px; border-radius:5px; font-weight:600; }
.orders-summary .status-filter-title { font-size:12px; color:#516982; margin:10px 0 7px; }
.orders-summary .status-legend { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:10px; }
.orders-summary .status-legend .status-label { border:1px solid #bbcbdc; border-radius:7px; background:#fff; padding:9px 11px; min-height:38px; cursor:pointer; box-shadow:0 1px 2px #203d5a12; }
.orders-summary .status-legend .status-label:hover { border-color:#3388c9; background:#edf6ff; }
.orders-summary .status-legend .status-label.selected { border:2px solid #2379be; padding:8px 10px; background:#e4f1ff; box-shadow:0 0 0 1px #2379be22; }
.orders-summary .status-legend .status-label:focus-visible { outline:3px solid #69b8ee; outline-offset:2px; }
.unified-grid .order-drill { min-width:56px; border:1px solid #91bbde; background:#eaf4ff; color:#085b9b; border-radius:6px; font-weight:600; cursor:pointer; padding:6px 9px; }
.unified-grid .order-drill:hover { background:#cfe7ff; border-color:#2979b6; }
.unified-grid .order-drill:focus-visible { outline:3px solid #69b8ee; outline-offset:2px; }
.order-drill-hint { color:#315d82; margin-right:auto; }

/* Staff and assignment review, 06.10.2026. */
.unit-table tbody td.unit-expense-return{background:#e1f1e7!important;color:#20563c!important;box-shadow:inset 0 -2px #82b697}
.staff-fields{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:12px;align-items:end}.staff-fields input,.staff-fields select{width:100%;box-sizing:border-box}
.staff-access-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.staff-access-grid fieldset{border:1px solid #d7e3ef;border-radius:8px;padding:10px;min-width:0}
.staff-manager-picks,.staff-brand-picks{display:flex;flex-wrap:wrap;gap:8px 16px}.staff-manager-picks label,.staff-brand-picks label{background:#f3f7fb;border-radius:5px;padding:6px 8px}
.staff-permissions{margin:10px 0}.staff-permissions summary{cursor:pointer;font-weight:600}.staff-permission-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:8px;padding:12px 0}.staff-permission-grid>div{display:flex;gap:8px;align-items:center;justify-content:space-between}
.staff-permission-grid input[type=checkbox]{width:auto}.staff-form{padding:16px!important}.staff-form h2{margin:0}.staff-form .actions{margin-top:10px}.staff-row-actions{white-space:nowrap}.staff-row-actions button{margin-right:6px}.staff-list{padding:10px 14px!important}.staff-scroll{overflow:auto}.staff-scroll td{padding:9px 10px}.staff-pending{color:#8a611b}.staff-scroll th{position:sticky;top:0;background:var(--head);z-index:2}.staff-toolbar{padding:8px 12px!important}.staff-toolbar input{max-width:380px}
.staff-permission-grid label{display:flex;flex-direction:row;align-items:center;gap:7px;margin:0}.staff-permission-grid input[type=checkbox]{flex:none;margin:0}.staff-permission-grid>div{border-bottom:1px solid #edf1f6;padding:5px 0}
.manager-compact-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:8px;padding:8px!important;margin:0!important}.manager-compact-toolbar label{flex:0 1 135px;min-width:105px}.manager-compact-toolbar label:first-child{flex-basis:108px}.manager-compact-toolbar .manager-search{flex:1 1 160px}.manager-compact-toolbar input,.manager-compact-toolbar select{width:100%;padding:7px}.manager-compact-toolbar .actions{align-self:end;white-space:nowrap;gap:5px}.manager-brief{margin:8px 0!important}
.manager-dialog{width:min(900px,calc(100vw - 48px));max-height:85vh;overflow:auto;border:1px solid #bfd2e4;border-radius:12px;padding:20px}.manager-dialog::backdrop{background:#12263d66}.manager-dialog .staff-fields{grid-template-columns:1fr 1fr 1.5fr}.manager-dialog .center-table{width:100%}
#settings-manager-body,#catalog-quality-body{padding:12px!important}.settings-focused{overflow:hidden}.settings-focused #main{overflow:hidden}.settings-focused .quality-summary{margin:8px 0}.quality-compact-toolbar{margin:0!important;padding:8px!important;gap:8px}.quality-compact-toolbar label{min-width:125px}.quality-compact-toolbar select{padding:7px}.quality-compact-toolbar .quality-active{margin-left:auto;font-weight:600}.quality-note{margin:8px 0!important}.quality-counters{margin:8px 0!important}
.settings-grid{gap:9px}.settings-tile{padding:12px!important}.settings-group{margin-bottom:16px}.settings-group h2{font-size:14px;margin:10px 0}
.settings-focused .work{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.settings-focused #main{flex:1;min-height:0;width:100%;max-width:none}.settings-focused .topbar{flex-shrink:0}
@media(max-width:1100px){.staff-fields{grid-template-columns:repeat(2,minmax(140px,1fr))}.staff-permission-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}}
@media(max-width:900px){.staff-access-grid{grid-template-columns:1fr}.staff-list{overflow-x:auto}.staff-scroll table{min-width:800px}.staff-fields,.manager-dialog .staff-fields{grid-template-columns:1fr 1fr}.staff-permission-grid{grid-template-columns:1fr}.manager-compact-toolbar .actions{flex-wrap:wrap}.settings-focused{overflow:auto}}

.rnp-stock-filter{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:6px 0 10px}
body.rnp-focused{overflow:hidden}body.rnp-focused #main{overflow:hidden}.rnp-stock-filter input::-webkit-inner-spin-button{appearance:none}
.rnp-stock-filter label{display:flex;gap:6px;align-items:center}.rnp-stock-filter input{width:85px;min-height:30px}
.rnp-week-card .rnp-note-button{white-space:nowrap;min-width:124px;max-width:none;font-size:11px}
.rnp-week-card td:has(.rnp-note-button){min-width:145px}.rnp-week-card td:has(.rnp-note-button) .grid-cell{max-height:30px;overflow:visible}

/* v11: requested compact presentation; detail remains accessible. */
.sales-orders-equal{background:#f0f2f5!important}
#cp-grid .grid-cell,#ap-grid .grid-cell{box-sizing:border-box;display:flex;align-items:center;min-height:34px;padding-top:2px;padding-bottom:2px}
#cp-grid .grid-cell:has(.cp-number){justify-content:flex-end}
#cp-grid input.cp-number{height:30px;min-height:30px;max-height:30px;box-sizing:border-box;margin:0;padding:4px 8px}
#ap-grid .ap-vendor-code{min-width:230px;width:230px}
#ap-grid .ap-vendor-code .grid-cell{white-space:nowrap;overflow:visible;max-height:none}
#ap-history-dialog .card{margin:14px 0 0;box-shadow:none}
.dw-page-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;position:relative}
.dw-page-head #workspace-scope{order:1;flex:1 1 650px;width:auto;min-width:0;margin:0;padding:0;background:transparent;border:0;box-shadow:none}
.dw-page-head #workspace-scope .scope-field{min-width:130px;flex:1 1 130px;max-width:195px}
.dw-page-head .actions{order:2;margin-left:auto}.dw-page-head h1{order:0}.dw-page-head .dw-fact-plan{order:0}
.dw-updated{position:absolute;right:0;bottom:-17px;font-size:10px;color:#7b8fa7}
.dw-workspace{padding-top:14px}.dw-tile{min-height:190px;padding-bottom:12px}.dw-period{margin-bottom:18px}
.dw-tile .dw-plan-coverage{display:none}.dw-method{margin:12px 0;font-size:12px;color:#60758d}.dw-method summary{cursor:pointer}
@media(min-width:1500px){.dw-page-head #workspace-scope{flex-basis:600px}.dw-tile{min-height:205px}}

.sc-workspace{min-width:0}.sc-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(210px,1.1fr);gap:10px;margin:12px 0}.sc-kpi-pair{display:grid;gap:7px}.sc-kpi{padding:13px 16px;border-radius:10px;display:flex;flex-direction:column;gap:8px}.sc-kpi small{font-size:11px}.sc-kpi strong{font-size:22px;white-space:nowrap}.sc-kpi span{font-size:11px}.sc-fact{background:linear-gradient(145deg,#294d79,#192e49);color:#fff}.sc-result{background:#e9f5ef;border:1px solid #cce7d9;color:#1a5747}.sc-goal{padding:14px 17px;background:#fff;border:1px solid #d9e5ef;border-radius:10px;display:flex;flex-direction:column;gap:7px}.sc-goal small{font-size:11px;color:#6b8299}.sc-goal input{width:100%;font-size:22px;color:#203b60;font-weight:650;border:0;padding:5px 0}.sc-goal input::placeholder{color:#b3bdc9}.sc-goal strong{font-size:21px}.sc-goal-formula{font-size:10px;color:#7890a5;line-height:1.4}.sc-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.sc-section-head h2{font-size:14px;margin:0}.sc-section-head .active{background:#e1efff;box-shadow:inset 0 0 0 1px #87b8eb}.sc-fields{display:flex;flex-wrap:wrap;gap:10px}.sc-fields .scope-field{min-width:100px;flex:1 1 110px}.sc-fields .scope-field span{font-size:11px;color:#6e859e;display:block;margin-bottom:5px}.sc-fields input,.sc-fields select{width:100%;min-width:0}.sc-fields input::placeholder{color:#a4b0bd}.sc-fields input:not(:placeholder-shown){background:#eff6ff}.sc-conditions,.sc-conclusion{margin:12px 0}.sc-conclusion{font-size:12px;padding:12px 16px}.sc-conclusion p{margin:5px 0}.sc-pending{opacity:.6}.sc-pending:after{content:'Пересчитываем…';color:#537b9f}.sc-cell-fact{background:#eff5fc}.sc-cell-result{background:#eff8f3}.sc-article{padding:0!important;border:0!important;background:transparent!important;color:#2267a4!important;white-space:normal;text-align:left;font-size:11px}.sc-workspace #sc-grid{padding:10px}.sc-workspace .grid-cell{font-size:11px}.sc-workspace .center-scroll{max-height:560px}.sc-method{font-size:12px;line-height:1.6;color:#66809b;margin-top:12px}.sc-method summary{cursor:pointer;color:#284f77}.sc-dialog{width:min(1120px,94vw);max-width:94vw;max-height:90vh;overflow:auto}.sc-dialog .dialog-head{margin-bottom:20px}.sc-dialog .sc-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.sc-item-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px}.sc-item-layout table{font-size:12px}.sc-check{display:flex;gap:8px;margin:20px 0}.sc-dialog [data-sc=clear-item]{margin-top:14px}
@media(max-width:1200px){.sc-kpi strong{font-size:19px}.sc-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.sc-goal{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:center}.sc-goal-formula{grid-column:1/-1}.sc-section-head{flex-wrap:wrap}}
@media(max-width:800px){.sc-kpis{grid-template-columns:1fr}.sc-kpi-pair{grid-template-columns:1fr 1fr}.sc-item-layout{grid-template-columns:1fr}.sc-dialog .sc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Client review, 08.10.2026. */
#main #insight-period.client-period-select{width:250px;min-width:250px;max-width:100%;padding-right:28px}
.sc-goal input{border:2px solid #789ed0;border-radius:7px;padding:8px 10px;background:#f4f8ff;box-sizing:border-box}
.sc-goal input:focus{outline:3px solid #bfd8fa;outline-offset:2px;background:#fff}
.sc-edit-hint{font-size:11px;color:#315e8c}.sc-goal-help{font-size:11px;line-height:1.45}.sc-goal-help summary{cursor:pointer;color:#285f95}.sc-goal-formula{font-size:12px;color:#365675}
body.report-contained #main:has(.sc-workspace){display:flex;flex-direction:column;overflow:hidden;min-height:0}
.sc-workspace{display:flex;flex-direction:column;flex:1;min-height:0}
.sc-workspace #sc-grid{display:flex;flex-direction:column;flex:1;min-height:0;margin-bottom:0;overflow:hidden}
.sc-workspace .center-scroll{position:relative;flex:1;min-height:0;max-height:none;overscroll-behavior:contain}
.sc-workspace .center-scroll>table>thead{position:sticky;top:0;z-index:5}
.sc-workspace .sc-kpis{margin-top:0}.sc-workspace .sc-method{margin-bottom:12px}

.manager-retired-toggle{margin:10px 0}.manager-dialog form>label{display:block;margin:14px 0}.manager-dialog form>label input:not([type=checkbox]),.manager-dialog form>label select{display:block;width:100%;margin-top:5px}.manager-dialog .inline-label{display:flex}
