/* One sidebar width controls every page; no independent top-level navigation offsets. */
body.app-unified{--app-side:232px;background:var(--ap-bg,#f5f7f9);color:var(--ap-ink,#243746);font:14px/1.45 system-ui,sans-serif;margin:0}
.app-unified>main{box-sizing:border-box;margin:0 0 0 var(--app-side)!important;padding:12px 20px 28px!important;width:calc(100% - var(--app-side));max-width:none!important;min-width:0}
#app-navigation{box-sizing:border-box;position:fixed;inset:0 auto 0 0;width:var(--app-side);padding:16px 10px;background:var(--ap-surface,white);border-right:1px solid var(--ap-line,#dce4e9);overflow-y:auto;z-index:40;display:block}
#app-navigation .app-brand{font-size:23px;font-weight:750;padding:0 12px 16px;color:var(--ap-ink,#243746);text-decoration:none;display:block}
#app-nav-search{box-sizing:border-box;width:100%;min-width:0;margin:0 0 10px;padding:9px 10px;border:1px solid var(--ap-control,#c4d1d9);border-radius:6px;font:inherit;background:var(--ap-bg,#f5f7f9);color:inherit}
#app-nav-search:focus{outline:2px solid var(--ap-accent,#087f70);outline-offset:2px}
#app-nav-empty{padding:8px 12px;color:var(--ap-muted,#536777);font-size:12px}
#app-navigation summary{padding:8px 12px;font-size:12px;font-weight:650;color:var(--ap-muted,#536777);cursor:pointer}
#app-navigation a:not(.app-brand),#app-navigation button{box-sizing:border-box;display:block;text-decoration:none;color:inherit;padding:7px 10px 7px 20px;font-size:13px;border-radius:5px;line-height:1.4;white-space:normal;text-align:left}
#app-navigation a[aria-current=page]{color:var(--ap-accent,#066a5e);background:var(--ap-soft,#e6f2ee);border-left:3px solid var(--ap-accent,#087f70);font-weight:600}
#app-navigation .contains-active>summary{color:var(--ap-accent,#066a5e)}#app-navigation #sections{display:block}
#app-global{display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-height:46px;padding:6px 0 10px;border-bottom:1px solid var(--ap-line,#dce4e9);font-size:12px;margin-bottom:10px;background:var(--ap-bg,#f5f7f9)}
#app-company{margin-right:auto;font-weight:650;max-width:50%;overflow-wrap:anywhere}
#app-menu{display:none}#app-global button{padding:6px 10px;font:inherit;border:1px solid var(--ap-control,#c4d1d9);border-radius:5px;background:var(--ap-surface,white);color:var(--ap-ink,#243746)}
.app-unified main>nav.tabs,.app-unified #security-controls,.app-unified .release-links,.app-unified .enterprise-switch,.app-unified #enterpriseMenu{display:none!important}
.app-unified main>header:not(:has(h1)){display:none!important}
.app-unified.app-work .enterprise-topbar{display:none!important}
.app-unified.app-work .enterprise-topbar:has(#serverLatest:not([hidden]),#serverDraft:not([hidden]),#serverRetry:not([hidden])){display:flex!important}
.app-unified.app-work .enterprise-topbar>b,.app-unified.app-work .enterprise-topbar>a,.app-unified.app-work #enterpriseLocation{display:none!important}
.app-unified.app-work main>header{margin:8px 0!important;padding:0!important}
.app-unified h1{font-size:24px;margin:10px 0}.app-unified .heading{gap:8px}
.app-unified #freshness{margin:4px 10px 8px 0;font-size:12px}.app-unified #filters{padding:10px;gap:8px}
.app-unified #chips:empty{display:none}.app-unified #chips{margin:6px 0}.app-unified #summary{margin:8px 0;gap:8px}
.app-unified .ledger-summary{padding:8px 10px;border:0;background:transparent}.app-unified .ledger-summary b{font-size:16px}
.app-unified #tablePanel>.toolbar{padding:8px 10px;gap:8px}.app-unified .tablewrap{min-height:160px;max-height:none;overflow-x:auto;overflow-y:visible}
.app-unified td .truncate{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.app-unified .tablewrap th:last-child,.app-unified .tablewrap td:last-child{position:sticky;right:0;background:var(--ap-surface,white);width:100px;min-width:100px}
.app-unified .tablewrap th:last-child{z-index:2;background:var(--ap-alt,#edf2f5)}.app-unified td.money{white-space:nowrap}
#app-table-tools{position:relative;margin-left:auto}#app-table-tools>summary{cursor:pointer;padding:7px 10px;border:1px solid var(--ap-control,#c4d1d9);border-radius:5px}
#app-table-tools>.app-tools-body{position:absolute;right:0;top:100%;z-index:20;background:var(--ap-surface,white);border:1px solid var(--ap-control,#c4d1d9);border-radius:6px;box-shadow:0 8px 24px #18352c20;width:min(350px,80vw);padding:12px;display:grid;gap:10px;max-height:65vh;overflow:auto}
#app-table-tools #columns>div,#app-table-tools #exports>div{position:static;box-shadow:none;padding:6px 0;border:0}
.app-unified .enterprise-savebar,.app-unified .statusline{margin:6px 0!important}.app-unified .panel{padding:12px}
.app-unified .enterprise-totals{margin:8px 0}.app-unified .enterprise-totals>summary{padding:8px 12px}
.app-unified .enterprise-ledger{padding:0;overflow:visible}.app-unified .enterprise-ledger .sectionhead{padding:10px 12px;margin:0}.app-unified .enterprise-ledger .sectionhead h2{font-size:18px;margin:0}
.app-unified .enterprise-ledger .sectionhead small,.app-unified .enterprise-ledger .sectionhead .toolbar>span{display:none}
.app-unified .enterprise-ledger .bulkbox,.app-unified .enterprise-columns{margin:6px 12px;padding:6px 0}
.app-unified .enterprise-ledger .wrap{max-height:none;overflow-x:auto;overflow-y:visible}
.app-unified .professional-views{margin:8px 0;padding:8px 12px}
.app-unified #basis{margin:8px 0}.app-unified #full{margin-top:4px}
#app-scrim{position:fixed;inset:0;background:#18352c55;border:0;z-index:35}
.app-unified [hidden]{display:none!important}
.app-unified .app-filter-panel>.filters{display:flex!important;align-items:end;gap:10px}
.app-unified .app-filter-panel>.filters>.multi-filter:has(>label[hidden]):not(:has(>details)){display:none}
.app-unified .app-filter-panel>.filters>label,.app-unified .app-filter-panel>.filters>.multi-filter{flex:1;min-width:150px}
.app-unified .app-filter-panel>.filters>.enterprise-period{flex:1;min-width:190px}
.app-unified .app-filter-panel .filters input[type=search]{min-width:120px;width:100%}
.app-unified .app-grid-conditions{margin:6px 0!important;border:0!important;padding:4px 0!important;background:transparent!important}
.app-unified .app-work-toolbar{display:flex;gap:12px;align-items:center;padding:8px 12px;font-size:12px}
.app-work-toolbar>details{margin-left:auto;position:relative}.app-work-toolbar>details>summary{padding:7px 10px;border:1px solid var(--ap-control,#c4d1d9);border-radius:5px;cursor:pointer}
.app-work-toolbar .app-tools-body{position:absolute;right:0;top:100%;z-index:20;width:min(450px,82vw);max-height:65vh;overflow:auto;padding:12px;background:var(--ap-surface,white);border:1px solid var(--ap-control,#c4d1d9);border-radius:6px;box-shadow:0 8px 24px #18352c20}
.app-unified.app-work main>.filters{margin:4px 0;font-size:11px}.app-unified.app-work .statusline{font-size:11px}
.app-unified .release-header,.app-unified main>nav:has(a[href='/plans']),.app-unified main>a[href='/'],.app-unified main>a[href='/whats-new']{display:none}
.app-unified .app-filter-panel{margin:8px 0;padding:10px}.app-unified .app-filter-panel>.filters .multi-filter>details>summary{padding:8px 10px;font-size:12px}
.app-unified .app-filter-panel .advanced{margin-top:6px;padding-top:5px}.app-unified .multi-active{margin:6px 0}.app-unified .app-work-toolbar{padding:7px 12px}
.app-unified .enterprise-ledger td:last-child,.app-unified .enterprise-ledger th:last-child{position:sticky;right:0;background:var(--ap-surface,white);min-width:80px;z-index:2}.app-unified .enterprise-ledger th:last-child{background:var(--ap-alt,#eaf0f4);z-index:3}
#app-freshness{font-size:12px;color:var(--ap-muted,#536777);margin:4px 0 8px}.app-import-help{font-size:12px;margin:8px 0}
.app-unified .enterprise-ledger table{table-layout:fixed;min-width:1000px!important}.app-unified .enterprise-ledger th:first-child{width:38px}.app-unified .enterprise-ledger th:last-child{width:90px}
.app-unified .enterprise-ledger .clientcell button,.app-unified .enterprise-ledger .manageredit{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:left;overflow-wrap:anywhere;line-height:1.4;padding:0;border:0;background:transparent;font-size:12px;max-width:100%}
.app-unified .enterprise-ledger td{padding:9px 10px}
.app-unified .app-work-toolbar{flex-wrap:wrap}.app-unified .app-work-toolbar>.enterprise-totals{margin:0;flex:1;min-width:230px}.app-unified .app-work-toolbar>.enterprise-totals>summary{padding:0;border:0;background:transparent;font-weight:600}.app-unified .app-work-toolbar>.enterprise-totals[open]{flex-basis:100%}
.app-unified.app-work .statusline>span:first-child{display:none}.app-unified.app-work .statusline{justify-content:flex-end}
.app-unified .app-filter-panel>.filters>div.multi-filter>details>summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
@media(max-width:1000px){.app-unified>main{margin:0!important;width:100%;padding:10px 14px!important}#app-navigation{display:none;width:260px;max-width:85vw}#app-navigation.open{display:block}#app-menu{display:block}#app-global{position:sticky;top:0;z-index:25}#app-company{max-width:45%}}
@media(max-width:600px){.app-unified>main{padding:8px 10px!important}#app-global{gap:6px}#app-global>span:not(#app-company){max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-unified h1{font-size:21px}.app-unified #summary{grid-template-columns:1fr}.app-unified .ledger-summary{gap:8px}.app-unified #filters label{min-width:120px}.app-unified .enterprise-period{min-width:0}.app-unified .tablewrap table{min-width:880px}}

/* UX audit 23.10.2026: presentation only; financial caveats remain visible. */
.app-unified{--app-line:#dce4e9;--app-ink-muted:#536777}
.app-unified :where(button,input,select,textarea){box-sizing:border-box;font:inherit}
.app-unified :where(button,input:not([type=checkbox]):not([type=radio]),select){min-height:36px}
.app-unified :where(button,a,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--ap-accent,#117eaf);outline-offset:2px}
.app-unified :where(button,a,summary){touch-action:manipulation}
.app-unified :where(input[type=checkbox],input[type=radio]){accent-color:var(--ap-accent,#087f70)}
.app-skip{position:fixed;left:12px;top:-100px;z-index:1000;padding:10px 16px;background:var(--ap-surface,white);color:var(--ap-accent,#066a5e);border:2px solid var(--ap-accent,#087f70);border-radius:6px}
.app-skip:focus{top:12px}
.app-unified .heading{margin:12px 0 6px;align-items:center}
.app-unified .heading h1{margin:0;line-height:1.25}
.app-unified #filters{align-items:end;gap:10px 12px;padding:12px;border-radius:8px}
.app-unified #filters>label{min-width:130px;flex:1 1 140px}
.app-unified #filters>label:has(input[name=search]){flex:2 1 240px}
.app-unified #filters>label input,.app-unified #filters>label select{width:100%;max-width:none}
.app-unified #filters>details{flex:1 1 100%}
.app-unified #filters>details>summary{padding:6px 0;font-weight:600;color:var(--app-ink-muted)}
.app-unified #filters>details[open]{display:block;border-top:1px solid var(--app-line);padding-top:6px}
.app-unified #filters>details label{margin:6px 12px 6px 0;max-width:100%;vertical-align:top}
.app-unified #filters>details input,.app-unified #filters>details select{max-width:100%}
.app-unified #filters>button{order:2}
.app-unified #chips button{max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:left}
.app-unified .overview-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}
.app-unified .overview-group h2{font-size:16px;margin:8px 0}
.app-unified .overview-grid .metric{display:flex;flex-direction:column;gap:6px;padding:16px}
.app-unified .overview-grid .metric>b{font-variant-numeric:tabular-nums;margin:0;line-height:1.3}
.app-unified .overview-grid .metric>a{margin-top:auto;padding-top:6px}
.app-unified .ledger-summary{gap:6px 12px;padding:10px 0}
.app-unified .ledger-summary small{flex-basis:100%;line-height:1.5;font-size:13px}
.app-unified #tablePanel{border-radius:8px}
.app-unified #tablePanel>.toolbar{padding:10px 12px;gap:8px}
.app-unified #tablePanel #exports{position:relative}
.app-unified #tablePanel #exports>summary{padding:7px 10px;border:1px solid var(--ap-control,#c4d1d9);border-radius:5px;min-height:36px}
.app-unified #tablePanel #exports>div{right:0;top:calc(100% + 4px);min-width:190px;border-radius:6px;max-width:80vw}
.app-unified #app-table-tools>.app-tools-body{top:calc(100% + 4px);gap:12px}
.app-unified #selection:not(:empty){padding:8px 12px;background:var(--ap-soft,#e6f2ee);color:var(--ap-accent,#066a5e);border-top:1px solid var(--app-line)}
.app-unified .tablewrap,.app-unified .enterprise-ledger .wrap{max-height:68vh;max-height:68dvh;min-height:0;overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain;border-top:1px solid var(--app-line)}
.app-unified .tablewrap thead th,.app-unified .enterprise-ledger thead th{position:sticky;top:0;z-index:3;box-shadow:0 1px 0 var(--app-line);line-height:1.35}
.app-unified .tablewrap th:last-child,.app-unified .enterprise-ledger th:last-child{z-index:4}
.app-unified .tablewrap td,.app-unified .enterprise-ledger td{line-height:1.45}
.app-unified .tablewrap tbody tr:nth-child(even)>td{background:#fafbfd}
.app-unified .tablewrap tbody tr:hover>td{background:var(--ap-hover,#eef6f3)}
.app-unified .tablewrap tbody tr:has(input[data-select]:checked)>td{background:var(--ap-soft,#e6f2ee)}
.app-unified .money{font-variant-numeric:tabular-nums}
.app-unified .tablewrap th button{width:100%;text-align:inherit;min-height:32px}
.app-unified[data-density=compact] .tablewrap td{padding:6px 9px}
.app-unified #tablePanel footer{padding:10px 12px;gap:8px 12px;border-top:1px solid var(--app-line)}
.app-unified #tablePanel footer label{flex-direction:row;align-items:center;gap:8px}
.app-unified #basis{padding:10px 12px;border-left:3px solid #b4c8d2;background:var(--ap-alt,#edf2f5);line-height:1.55;font-size:12px;border-radius:0 5px 5px 0}
.app-unified #basis:empty{display:none}
.app-unified #freshness,.app-unified #app-freshness{line-height:1.5}
.app-unified #dialog{padding:20px;border-radius:10px;overflow:auto}
.app-unified #dialog h2{margin:0 85px 16px 0;font-size:21px;line-height:1.3}
.app-unified #dialog #close{position:sticky;top:0;z-index:5;background:var(--ap-surface,white)}
.app-unified #dialogBody{line-height:1.5}
.app-unified #dialogBody h3{font-size:16px;margin:20px 0 8px}
.app-unified #dialogBody p{margin:8px 0}
.app-unified #dialogBody input:not([type=checkbox]):not([type=radio]),.app-unified #dialogBody select,.app-unified #dialogBody textarea{max-width:100%}
.app-unified #dialogBody textarea{min-height:88px;padding:8px 10px;border:1px solid var(--ap-control,#c4d1d9);border-radius:5px}
.app-unified #dialogBody .record-fields{padding:12px;background:var(--ap-bg,#f5f7f9);border-radius:6px}
@media(max-width:600px){
 .app-unified #filters>label{min-width:0;flex:1 1 130px}
 .app-unified #filters>label:has(input[name=search]){flex-basis:100%}
 .app-unified #filters>details label{display:flex;margin:8px 0}
 .app-unified #filters>details input,.app-unified #filters>details select{width:100%;max-width:none}
 .app-unified #filters>button{flex:1 1 130px}
 .app-unified #count{flex:1 1 100%}
 .app-unified #app-table-tools{margin-left:0}
 .app-unified #app-table-tools>.app-tools-body{left:0;right:auto}
 .app-unified #tablePanel #exports>div{right:auto;left:0}
 .app-unified #tablePanel footer{justify-content:flex-start}
 .app-unified #tablePanel footer #page{font-size:12px}
 .app-unified #dialog{padding:16px;border-radius:0}
 .app-unified :where(button,summary){min-height:40px}
}
@media(prefers-reduced-motion:reduce){.app-unified *{scroll-behavior:auto!important}}

/* The sales workspace keeps its own permission-aware controller. */
.app-sales #app-navigation #sections{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin:12px 0;padding-top:12px;border-top:1px solid var(--app-line)}
.app-sales #app-navigation #sections button{width:100%;padding:9px 12px;border:0;background:transparent}
.app-sales #app-navigation #sections button[aria-pressed=true]{background:var(--ap-soft,#e6f2ee);color:var(--ap-accent,#066a5e);box-shadow:inset 3px 0 var(--ap-accent,#087f70);font-weight:650}
.app-sales .app-main-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px 12px;padding:12px;background:var(--ap-surface,white);border:1px solid var(--app-line);border-radius:8px}
.app-sales .app-main-filters>label{display:flex;flex-direction:column;gap:5px;flex:1 1 150px;min-width:0;font-size:12px}
.app-sales .app-main-filters>label:has(#search){flex:2 1 240px}
.app-sales .app-main-filters input,.app-sales .app-main-filters select{width:100%;min-width:0;max-width:none}
.app-sales .scroll:has(#table){max-height:68vh;max-height:68dvh;overflow:auto;scrollbar-gutter:stable;border:1px solid var(--app-line);border-radius:6px}
.app-sales #table th{position:sticky;top:0;z-index:2;background:var(--ap-alt,#edf2f5);box-shadow:0 1px 0 var(--app-line)}
.app-sales #table th,.app-sales #table td{padding:10px 12px;line-height:1.45}
.app-sales #table tbody tr:nth-child(even)>td{background:#fafbfd}
.app-sales #table tbody tr:hover>td{background:var(--ap-hover,#eef6f3)}
.app-sales #summary.cards{gap:10px;margin:12px 0}
.app-sales #summary.cards section{padding:14px;border:1px solid var(--app-line);border-radius:8px;background:var(--ap-surface,white)}
.app-sales #notice:empty,.app-sales #context:empty{display:none}
.app-sales #detail{padding:20px;max-height:90dvh;overflow:auto}
.app-sales #detail>.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px}
.app-sales #detail h2{margin:0;font-size:21px}
@media(max-width:600px){.app-sales .detail-grid{grid-template-columns:1fr;gap:4px}.app-sales .detail-grid dd{margin:0 0 10px}.app-sales #summary.cards section{min-width:0;flex-basis:100%}}

/* Workflow navigation, 24.10.2026. */
.app-unified .app-return{display:inline-block;padding:8px 0;font-weight:600}.app-unified .record-trail{display:flex;align-items:center;gap:12px;padding:0 0 12px;border-bottom:1px solid var(--ap-line,#dce4e9);margin-bottom:12px}.app-unified .record-trail span{font-size:12px;color:var(--ap-muted,#536777)}.app-sales #retryAccess{margin:4px 0 12px}.app-sales #clearFilters{font-size:12px}

/* Reading first: editing is available on request; mobile filters retain their controls. */
.app-unified .app-filter-disclosure{margin:0;border:0;padding:0}.app-unified .app-filter-disclosure>summary{display:none}
.app-unified .record-edit{border:1px solid var(--app-line);border-radius:8px;margin:12px 0;background:var(--ap-surface,#fff)}
.app-unified .record-edit>summary{padding:12px;font-weight:600;color:var(--app-accent,#164d85);cursor:pointer}
.app-unified #dialogBody .record-edit>form{margin:0;padding:0 12px 12px;border:0}
.app-unified .record-edit>form>h3{display:none}
@media(max-width:600px){.app-unified .app-filter-disclosure{margin:8px 0;border:1px solid var(--app-line);border-radius:8px;background:var(--ap-surface,#fff)}.app-unified .app-filter-disclosure>summary{display:list-item;padding:12px;font-weight:600;cursor:pointer}.app-unified .app-filter-disclosure #filters,.app-sales .app-filter-disclosure .app-main-filters{margin:0;border:0}.app-unified .record-edit>summary{padding:10px}}

/* Portal audit 26.10.2026: readable registries and consistent secondary screens. */
.app-unified .tablewrap table{table-layout:auto;min-width:100%}
.app-unified .tablewrap th[data-field=date]{min-width:130px}
.app-unified .tablewrap th[data-field=client]{min-width:220px}
.app-unified .tablewrap th[data-field=manager]{min-width:190px}
.app-unified .tablewrap th[data-field=number]{min-width:120px}
.app-unified .tablewrap th:is([data-field=type],[data-field=status],[data-field=linkStatus],[data-field=costStatus]){min-width:175px}
.app-unified .tablewrap th:is([data-field=description],[data-field=reason],[data-field=next],[data-field=documents]){min-width:240px}
.app-unified .tablewrap th.money{min-width:175px}
.app-unified .tablewrap td .truncate{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;overflow:hidden;overflow-wrap:anywhere;max-width:340px}
.app-unified .tablewrap td[data-field=date] .truncate{white-space:nowrap;display:block}
.app-unified .tablewrap td small{max-width:340px;overflow-wrap:anywhere}
.app-unified .app-scroll-hint{font-size:12px;line-height:1.45;color:var(--ap-muted,#536777);margin:0;padding:8px 12px;background:var(--ap-alt,#edf2f5);border-top:1px solid var(--ap-line,#dce4e9)}
.app-unified .app-scroll-hint[hidden]{display:none}
.app-sales #table .money{text-align:right;white-space:nowrap;min-width:150px;font-variant-numeric:tabular-nums}
.app-sales #table td:not(.money){min-width:125px;max-width:360px;overflow-wrap:anywhere}
.app-sales #table th button{text-align:inherit;width:100%}
.app-sales #table td:last-child{min-width:140px}
.app-unified :is(#app-table-tools,.app-work-toolbar>details){position:relative}
.app-unified #app-table-tools>.app-tools-body{width:min(350px,80vw);max-height:65dvh;overflow:auto}
.app-unified #app-table-tools label{white-space:normal}
.app-unified #app-table-tools #columns label{display:flex;align-items:center;gap:8px;min-height:32px}
.app-unified #app-table-tools #columns input[type=checkbox]{flex:none;margin:0}
.app-unified #pnl-page .card strong{overflow-wrap:anywhere;line-height:1.3}
.app-unified #pnl-page .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.app-unified #pnl-page :is(td,th){line-height:1.45}
.app-unified #pnl-page .scroll{max-height:68dvh;scrollbar-gutter:stable}
.app-unified #pnl-page .scroll thead th{position:sticky;top:0;z-index:2;background:var(--ap-alt,#edf2f5)}
@media(max-width:600px){.app-unified #app-global{position:static}.app-unified .record-trail{flex-wrap:wrap}.app-unified #app-table-tools>.app-tools-body{width:min(350px,calc(100vw - 44px))}}

/* Browser review 26.10.2026: preserve page identity, mobile summary and table guidance. */
.app-unified .app-scroll-hint{border-top:0;border-bottom:1px solid var(--ap-line,#dce4e9)}
.app-unified .app-admin-page #app>.toolbar>:is(b,.pill,#logout){display:none}
.app-unified .app-admin-page>header h1{font-size:25px;margin:0}
.app-sales #summary.cards>section{margin:0;min-width:0}
.app-sales main>header>span{display:none}
.app-sales main>header h1{margin:0;font-size:25px}
.app-sales main>header p{margin:6px 0 0}
.app-unified .tablewrap th button{background:transparent!important;border:0!important;border-radius:0;padding:0}
@media(max-width:600px){
 .app-sales #summary.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
 .app-sales #summary.cards>section{padding:10px;min-width:0}
 .app-sales #summary.cards .metric{font-size:18px;line-height:1.35;margin-top:4px;overflow-wrap:anywhere}
 .app-sales main>header{padding:12px;margin:8px 0}
 .app-unified .tablewrap td:last-child,.app-unified .tablewrap th:last-child{width:82px;min-width:82px}
 .app-unified #pnl-page h1{font-size:24px;line-height:1.2}
 .app-unified #pnl-page fieldset{padding:12px}
 .app-unified #pnl-page td,.app-unified #pnl-page th{padding:8px}
}

@media(max-width:600px){.app-unified .stock-tabs{gap:8px;margin-bottom:12px}.app-unified .stock-tabs .nav{margin:0;padding:9px 10px;min-height:44px}}

.app-sales #table .access-cell-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;max-width:340px;line-height:1.45}

/* Personal column widths: keep the existing scroll container and sticky headers. */
.app-unified th.app-column-header{position:sticky;top:0;padding-right:20px}
.app-unified .app-column-resize{position:absolute;right:0;top:0;bottom:0;width:10px;cursor:col-resize;touch-action:none;user-select:none;z-index:3;border-right:2px solid var(--ap-control,#c4d1d9)}
.app-unified .app-column-resize:hover,.app-unified .app-column-resize:focus-visible{background:var(--ap-soft,#e6f2ee);border-color:var(--ap-accent,#087f70);outline:2px solid var(--ap-accent,#087f70);outline-offset:-2px}
.app-unified .tablewrap table.app-column-sized,.app-unified table.app-column-sized{table-layout:fixed;min-width:0}
.app-unified table.app-column-sized th,.app-unified table.app-column-sized td,.app-sales #table.app-column-sized td:not(.money),.app-sales #table.app-column-sized .money{min-width:0!important;max-width:none!important;overflow-wrap:anywhere}
.app-unified table.app-column-sized td .truncate,.app-unified table.app-column-sized td small,.app-sales #table.app-column-sized .access-cell-text{display:block;max-width:none;white-space:normal;-webkit-line-clamp:unset;overflow-wrap:anywhere;text-overflow:clip}
body.app-column-dragging,body.app-column-dragging *{cursor:col-resize!important;user-select:none!important}
@media print{.app-column-resize{display:none!important}}
.app-sales #table th button{background:transparent!important;border:0!important;border-radius:0;padding:0;min-height:32px}

/* Task-based navigation: compact primary menu, complete contextual destinations. */
#app-navigation .app-nav-group{margin:2px 0 6px;border:0}
#app-navigation .app-nav-group>summary{padding:7px 10px;font-size:11px;letter-spacing:.025em}
#app-navigation .app-nav-primary{padding:8px 10px 8px 16px;min-height:35px}
#app-navigation .app-nav-secondary{margin:1px 0 1px 10px;padding-left:16px;border-left:1px solid var(--ap-line,#dce4e9);color:var(--ap-muted,#536777);font-size:12px}
#app-navigation .app-nav-attention{padding:9px 12px;margin-bottom:12px;border:1px solid var(--ap-line,#dce4e9);font-weight:650}
#app-navigation a[aria-current=location]{color:var(--ap-accent,#066a5e);background:var(--ap-soft,#e6f2ee);box-shadow:inset 3px 0 var(--ap-accent,#087f70);font-weight:650}
.app-unified #app-context-navigation{display:block!important;margin:0 0 16px;padding:10px 12px;border:1px solid var(--ap-line,#dce4e9);border-radius:8px;background:var(--ap-surface,white)}
.app-unified #app-context-navigation[hidden]{display:none!important}
.app-context-label{margin:0 0 7px;font-size:11px;font-weight:650;color:var(--ap-muted,#536777)}
.app-context-links{display:flex;flex-wrap:wrap;gap:5px 8px;align-items:center}
.app-context-links>a{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px;border:1px solid transparent;border-radius:6px;color:var(--ap-ink,#243746);text-decoration:none;line-height:1.35;font-size:13px;box-sizing:border-box}
.app-context-links>a:hover{background:var(--ap-hover,#eef6f3);border-color:var(--ap-line,#dce4e9)}
.app-context-links>a[aria-current=page]{background:var(--ap-soft,#e6f2ee);border-color:var(--ap-accent,#087f70);color:var(--ap-accent,#066a5e);font-weight:650}
@media(max-width:600px){.app-unified #app-context-navigation{padding:8px;margin-bottom:12px}.app-context-links{gap:4px}.app-context-links>a{min-height:40px;padding:7px 9px;font-size:12px}#app-navigation .app-nav-primary,#app-navigation .app-nav-secondary{min-height:40px}}
@media print{.app-unified #app-context-navigation{display:none!important}}
.app-unified .app-workflow-note{margin:12px 0;padding:12px 16px;border:1px solid var(--ap-line,#dce4e9);border-radius:12px;background:var(--ap-soft,#e6f2ee);color:var(--ap-ink,#243746);font-size:14px;line-height:1.5}
.app-unified .app-workflow-note[hidden]{display:none}
.app-unified .app-workflow-note a{color:var(--ap-accent,#087f70);font-weight:650}
#app-navigation a[data-day-start-blocked],#app-context-navigation a[data-day-start-blocked]{opacity:.48;cursor:pointer}
#app-navigation a[data-day-start-blocked]::after,#app-context-navigation a[data-day-start-blocked]::after{content:' · после начала дня';font-size:10px;font-weight:400}
@media print{.app-unified .app-workflow-note{display:none!important}}

/* Classic person search preserves the native control for forms and scripts. */
select.app-person-native{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden;clip-path:inset(50%);pointer-events:none}
.app-person-picker{position:relative;display:inline-block;width:100%;min-width:0;max-width:100%;vertical-align:middle}
.app-person-picker[hidden],.app-person-picker [hidden]{display:none!important}
.app-person-picker .app-person-picker-trigger,.app-person-picker-options>button{box-sizing:border-box;width:100%;min-height:34px;color:var(--ap-ink,#243746);background:var(--ap-surface,#fff);font:inherit;text-align:start}
.app-person-picker .app-person-picker-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;border:1px solid var(--ap-control,#c4d1d9);border-radius:6px;white-space:normal}
.app-person-picker-trigger::after{content:'';width:6px;height:6px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg);flex:none}
.app-person-picker-popup{display:grid;gap:5px;position:absolute;inset:calc(100% + 4px) 0 auto;z-index:35;min-width:min(13rem,80vw);padding:6px;border:1px solid var(--ap-control,#c4d1d9);border-radius:8px;background:var(--ap-surface,#fff);color:var(--ap-ink,#243746);box-shadow:0 8px 20px #0002}
.app-person-picker-popup input[type=search]{box-sizing:border-box;width:100%;min-width:0;min-height:34px;padding:5px 8px;border:1px solid var(--ap-control,#c4d1d9);border-radius:6px;background:var(--ap-bg,#f5f7f9);color:inherit;font:inherit}
.app-person-picker-options{display:grid;position:relative;max-height:min(15rem,35vh);overflow:auto;overscroll-behavior:contain}
.app-person-picker-options>button{display:block;padding:5px 8px;border:0;border-radius:5px;overflow-wrap:anywhere}
.app-person-picker-options>button[aria-selected=true]{font-weight:600}
.app-person-picker-options>button:is(:hover,.app-person-highlighted):not(:disabled){background:var(--ap-hover,#eaf3f5)}
.app-person-picker-popup [role=status]{color:var(--ap-muted,#536777);padding:4px 8px}
.app-person-picker :is(button,input):focus-visible{outline:2px solid var(--ap-accent,#087f70);outline-offset:1px}
@media(max-width:600px){.app-person-picker .app-person-picker-trigger,.app-person-picker-popup input[type=search],.app-person-picker-options>button{min-height:44px}}
