.workspace-shell{margin:0;min-width:0;background:#f5f7f9;color:#24384a}.workspace-shell #portalShell{max-width:1600px;margin:auto}.portal-bar{display:flex;align-items:center;gap:18px;padding:16px 24px;background:#fff;border-bottom:1px solid #dae2e8;flex-wrap:wrap}.portal-brand{font-weight:800;font-size:21px;color:#24384a;text-decoration:none}.portal-bar #portalProjectName{margin-right:auto;font-weight:600}.portal-grid{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;padding:24px}.portal-grid #portalSections{align-self:start;position:sticky;top:16px;background:#fff;border:1px solid #dae2e8;border-radius:14px;padding:12px}.portal-grid #portalSections>summary{font-weight:700;padding:10px;cursor:pointer}.portal-grid #portalMenu{display:flex;flex-direction:column;gap:4px;margin-top:8px}.portal-grid #portalMenu a{padding:12px;text-decoration:none;border-radius:8px;color:#30495b;line-height:1.4}.portal-grid #portalMenu a[aria-current]{background:#e5f1ed;color:#185a46;font-weight:700}.portal-grid #portalBody{min-width:0}.portal-grid #portalBody main{max-width:none;padding:0;margin:0}.portal-grid #portalBody>header,.workspace-shell .vent-top,.workspace-shell .vent-menu,.workspace-shell #ventTitle,.workspace-shell .platform-sidebar{display:none!important}.workspace-shell .vent-layout{display:block}.workspace-shell .vent-layout>#ventMain{min-width:0}.workspace-shell #portalHeading{font-size:clamp(24px,3vw,34px);margin:14px 0 22px;line-height:1.2}.workspace-shell #portalBreadcrumbs{font-size:14px;line-height:1.7;overflow-wrap:anywhere}.workspace-shell #portalBreadcrumbs a{color:#355f75}.workspace-shell .record-scroll,.workspace-shell .archive-table{max-width:100%;overflow-x:auto}.portal-skip{position:absolute;top:-100px;left:12px;z-index:50;background:white;padding:12px;border:2px solid #185a46}.portal-skip:focus{top:8px}.workspace-shell :focus-visible{outline:3px solid #1e7760;outline-offset:3px}.portal-pagination{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0}.portal-pagination button{min-height:44px}.workspace-shell .portal-grid main>nav,.workspace-shell #ventLayout>.vent-top{display:none}.workspace-shell .workspace-view{max-width:100%;padding:20px;background:#fff;border:1px solid #dae2e8;border-radius:14px}.workspace-shell table{border-collapse:collapse}.workspace-shell th{text-align:left}.workspace-shell td,.workspace-shell th{padding:10px;border-bottom:1px solid #dfe5e9}.workspace-shell .portal-back{display:inline-block;margin-bottom:16px}.workspace-shell [hidden]{display:none!important}
@media(max-width:760px){.portal-grid{grid-template-columns:minmax(0,1fr);gap:14px;padding:14px 10px}.portal-grid #portalSections{position:static;padding:6px 10px}.portal-bar{gap:10px;padding:12px}.portal-bar #portalProjectName{font-size:14px}.portal-brand{font-size:18px}.portal-bar a,.portal-bar button{min-height:44px;display:inline-flex;align-items:center}.portal-grid #portalMenu a{min-height:44px}.workspace-shell .fields{grid-template-columns:minmax(0,1fr)}.workspace-shell input,.workspace-shell select,.workspace-shell textarea{max-width:100%;box-sizing:border-box}.workspace-shell .panel{min-width:0}.workspace-shell .vent-filters{flex-wrap:wrap}.workspace-shell #portalHeading{margin:10px 0 16px}}

.workspace-shell .platform-shell{display:block}.workspace-shell #branchOperations{display:none!important}.workspace-shell[data-portal-view="operations"] #branchOperations{display:block!important}

html body.workspace-shell.portal-theme{background:#f5f7f9;color:#24384a}

.workspace-shell nav[aria-label="Другие кабинеты"]{display:none!important}
.portal-search{margin:0;min-width:220px;max-width:440px;flex:1}.portal-search label{display:block;font-size:13px;margin-bottom:4px}.portal-search>div{display:flex;gap:6px}.portal-search input{min-width:0;flex:1;width:100%;padding:9px;border:1px solid #8799a5;border-radius:6px}.portal-search button{min-height:44px;padding:8px 12px}.portal-search div{align-items:center}.portal-search input[type="search"]{margin:0}.workspace-shell #portalSearchChanged{padding:10px;background:#fff4d7}
@media(max-width:760px){.portal-search{flex-basis:100%;max-width:none;order:5}}

.record-state-filter{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.record-state-filter p{flex-basis:100%;margin:0}.record-state-filter select{min-height:44px}.record-table tr.record-cancelled>td{background:linear-gradient(120deg,#fff8f8,#ffecec);color:#432323;opacity:1;text-decoration:none}.record-cancelled-label{font-weight:650;color:#842424}.record-state-filter label{min-width:180px}

.portal-recovery a{display:inline-flex;align-items:center;min-height:44px}.portal-recovery code{overflow-wrap:anywhere}
.portal-menu-heading{font-size:.85rem;color:#52646c;padding:16px 10px 4px;margin:0}.portal-account{position:relative}.portal-account summary{cursor:pointer;padding:10px;max-width:320px;overflow-wrap:anywhere}.portal-account[open]{background:white;border-radius:8px;padding:8px;box-shadow:0 4px 16px #20374020}.portal-account a{display:block;padding:10px}.portal-branch-label{font-size:.8rem;max-width:200px}.portal-branch-label select{max-width:100%;min-height:44px}.portal-bar{flex-wrap:wrap}.portal-brand{white-space:normal}.portal-search{min-width:0}.portal-search input{min-width:0;width:100%}.portal-bar #portalProjectName{font-size:.85rem;max-width:320px}.workspace-shell main{min-width:0}.portal-back{display:inline-block;padding:10px 0}.workspace-shell[data-portal-view="orders"] #records,.workspace-shell[data-portal-view="expenses"] #records,.workspace-shell[data-portal-view="orders"] #cleanRecords,.workspace-shell[data-portal-view="expenses"] #cleanRecords{display:none!important}.workspace-shell[data-portal-view="orders"] #reportToolbar,.workspace-shell[data-portal-view="expenses"] #reportToolbar,.workspace-shell[data-portal-view="orders"] #reportKpis,.workspace-shell[data-portal-view="expenses"] #reportKpis,.workspace-shell[data-portal-view="orders"] #newOrder,.workspace-shell[data-portal-view="expenses"] #newOrder,.workspace-shell[data-portal-view="orders"] #newExpense,.workspace-shell[data-portal-view="expenses"] #newExpense,.workspace-shell[data-portal-view="orders"] #portalRecordStateForm,.workspace-shell[data-portal-view="orders"] #portalCustomPeriod,.workspace-shell[data-portal-view="expenses"] #portalCustomPeriod{display:none!important}.workspace-shell[data-portal-view="orders"] .entry-shortcuts,.workspace-shell[data-portal-view="expenses"] .entry-shortcuts,.workspace-shell.cleaning-theme[data-portal-view="orders"] .toolbar,.workspace-shell.cleaning-theme[data-portal-view="expenses"] .toolbar{display:none!important}.workspace-shell #portalLedger{margin:16px 0;min-width:0}.workspace-shell #portalLedger .finance-actions{margin:16px 0}.finance-table details a{display:block;padding:8px}.workspace-shell[data-portal-view="orders"] .vent-period,.workspace-shell[data-portal-view="expenses"] .vent-period{display:none!important}
@media(max-width:760px){.portal-bar{gap:8px;padding:12px}.portal-brand{font-size:1rem}.portal-account{max-width:100%}.portal-account summary{max-width:230px}.portal-search{flex-basis:100%;order:5}.portal-branch-label{max-width:150px}.portal-bar #portalProjectName{flex-basis:100%;max-width:none}}

.workspace-shell #workflowFrom,.workspace-shell #workflowThrough{display:none}.workspace-shell #workflowFilterForm label:has(#workflowFrom),.workspace-shell #workflowFilterForm label:has(#workflowThrough){display:none}.account-row-actions summary{cursor:pointer;min-height:36px}.account-row-actions button{display:block;width:100%;margin:6px 0}.workspace-shell .account-row-actions{min-width:150px}
