/* Staff portal: common readable density; no document/export or desktop-shell styles. */
.app-shell{padding-top:24px;padding-bottom:64px}
.app-shell .page-head,.app-shell .page-head.compact{gap:16px;align-items:center;margin-bottom:20px;flex-wrap:wrap}
.app-shell .page-head>div:first-child{min-width:0;flex:1 1 280px}
.app-shell .page-head .page-actions{flex:0 1 auto;display:flex;flex-wrap:wrap;gap:8px}
.app-shell .page-title,.app-shell .project-subpage-head .page-title,.app-shell .knowledge-article-head h1,.app-shell .finance-overview-head h1{font-size:clamp(25px,2.3vw,34px);line-height:1.18;letter-spacing:-.025em;overflow-wrap:anywhere}
.app-shell .page-subtitle{font-size:14px;line-height:1.5;margin-top:7px;max-width:90ch}
.app-shell .eyebrow{font-size:11px;letter-spacing:.07em;margin:0 0 7px;line-height:1.5}
.app-shell .section-head{gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.app-shell .section-head h2{font-size:20px;line-height:1.25}
.app-shell .button{min-height:40px;padding:9px 14px;font-size:13px;line-height:1.35;border-radius:9px;max-width:100%}
.app-shell .panel{border-radius:14px;min-width:0}
.app-shell .object-layout{gap:18px;align-items:start}
.app-shell .object-layout>.panel,.app-shell .summary-panel{padding:20px}
.app-shell .object-layout aside{min-width:0}
.app-shell .summary-panel h2{font-size:20px}
.app-shell .form-grid{gap:14px 16px}
.app-shell .object-form{padding:22px}
.app-shell .form-actions{gap:8px;margin-top:20px;padding-top:16px;flex-wrap:wrap}
.app-shell input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=color]):not([type=file]),.app-shell select,.app-shell textarea{font-size:14px;padding:9px 11px;line-height:1.4;border-radius:8px;min-width:0}
.app-shell input[type=checkbox],.app-shell input[type=radio]{width:auto;flex-shrink:0;accent-color:#64f5ad}
.app-shell .registry-toolbar{gap:8px;margin-bottom:14px}
.app-shell .registry-toolbar>*{min-width:0}
.app-shell .registry-row{min-height:52px;padding-top:9px;padding-bottom:9px}
.app-shell .registry-head{min-height:36px}
.app-shell .project-grid{gap:14px}
.app-shell .project-card{min-height:220px;padding:18px;border-radius:14px}
.app-shell .project-card h2{font-size:20px;line-height:1.3;margin:22px 0 8px;overflow-wrap:anywhere}
.app-shell .project-card>p{min-height:0;margin-bottom:18px;font-size:13px}
.app-shell .project-meta{margin-top:16px}
.app-shell .empty-state{padding:38px 22px}
.app-shell .empty-state h2{font-size:20px;margin-top:15px}
.app-shell .empty-state p{font-size:14px;line-height:1.5;margin-bottom:18px}
.app-shell .tabs{margin-bottom:18px}
.app-shell .tabs>a,.app-shell .tabs>span{padding:11px 12px;line-height:1.4}
.app-shell .back-link:not(.project-back){margin-bottom:12px;min-height:36px;padding:7px 11px}
.app-shell :is(.task-kpis,.stats-grid,.procurement-kpis,.warehouse-kpis){gap:12px;margin-bottom:16px}
.app-shell .finance-overview-head{margin:4px 0 20px}
.app-shell .finance-overview-head p{font-size:14px;line-height:1.5}
.app-shell .knowledge-article-head{margin-bottom:22px}
.app-shell .knowledge-article-head>div{margin:14px 0 8px}
.app-shell .knowledge-article-head>p{margin-top:10px;font-size:14px;line-height:1.55}
.app-shell .knowledge-article{padding:24px}
.app-shell .knowledge-layout{gap:20px;align-items:start}
.app-shell .knowledge-layout>*,.app-shell .knowledge-aside,.app-shell .history-layout>*{min-width:0}
.app-shell .knowledge-body{font-size:15px;line-height:1.65}
.app-shell .knowledge-body h2{font-size:23px;line-height:1.3;margin:22px 0 12px}
.app-shell .knowledge-body h3{font-size:18px;line-height:1.35;margin:20px 0 10px}
.app-shell .knowledge-body :is(pre,table),.app-shell .knowledge-code pre{max-width:100%;overflow:auto}
.app-shell .knowledge-code pre{font-size:13px;line-height:1.55}
.app-shell .overview-object-notes{padding:16px 20px;margin:0 0 18px}
.app-shell .overview-object-notes .section-head{margin-bottom:8px}
.app-shell .overview-object-notes h2{font-size:16px}
.object-note-text{font-size:14px;line-height:1.6;overflow-wrap:anywhere;max-width:110ch;color:#c0cbd5}
.object-note-text+.object-note-text{margin-top:12px}
.object-note-text>strong{display:block;font-size:12px;color:#93a5b5;margin-bottom:5px}
.app-shell .auth-copy h1{font-size:clamp(30px,3vw,42px);line-height:1.15}
.app-shell .auth-copy .lead{font-size:16px;line-height:1.55}
.app-shell .auth-panel{gap:16px;padding:24px}
.app-shell .auth-panel h2{font-size:24px}
.app-shell .install-page h1{font-size:clamp(26px,3vw,36px);line-height:1.2}
/* Keep horizontal movement within wide data tables, not the whole page. */
.app-shell .table-scroll{max-width:100%;min-width:0;overscroll-behavior-x:contain}
.app-shell .table-scroll :is(th,td){overflow-wrap:normal}
.app-shell .settings-tabs{min-width:0;max-width:100%;overflow-x:auto;flex-wrap:nowrap;overscroll-behavior-x:contain;scrollbar-width:thin;margin-top:0}
.app-shell .settings-tabs>a{flex:0 0 auto;white-space:nowrap}
.app-shell .finance-head{margin:4px 0 20px;gap:16px;flex-wrap:wrap}
.app-shell .finance-head h1{font-size:clamp(25px,2.3vw,34px);line-height:1.2;letter-spacing:-.025em}
.app-shell .finance-head p{font-size:14px;line-height:1.5}
.app-shell .eng-head{margin:6px 0 20px;gap:16px;align-items:center;flex-wrap:wrap}
.app-shell .eng-grid>*{min-width:0}
.app-shell .eng-card{min-width:0;overflow:hidden}
.app-shell .eng-card h2{font-size:20px;line-height:1.3}
.app-shell .eng-scroll{min-width:0;max-width:100%}
.app-shell .eng-row>*{min-width:0;overflow-wrap:anywhere}
.app-shell .calculation-hash{overflow-wrap:anywhere;word-break:break-word}
.app-shell .history-filters{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:10px}
.app-shell .history-filters>*{min-width:0}
.app-shell .catalog-admin-list{max-width:100%;overflow-x:auto}
.app-shell .equipment-stages .stage-equipment-head{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 90px 180px;gap:12px}
.app-shell .warehouse-document>.panel:has(.order-picker-row,.receipt-picker-row,.kit-picker-row,.catalog-order-row){max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.app-shell .warehouse-document :is(.order-picker-row,.receipt-picker-row,.kit-picker-row){min-width:850px}
.app-shell .warehouse-document .catalog-order-row{min-width:700px}
@media(max-width:900px){.app-shell .eng-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.app-shell .equipment-stages .stage-equipment-head,.app-shell .equipment-stages .stage-equipment-row{grid-template-columns:minmax(0,1fr) 55px 95px;gap:8px}.app-shell .warehouse-document>.panel:has(.order-picker-row,.receipt-picker-row,.kit-picker-row,.catalog-order-row)::before{content:'Таблицу можно прокрутить влево и вправо';display:block;padding:10px 14px;color:#93a5b5;font-size:11px}.app-shell .auth-copy h1{font-size:30px}}
@media(min-width:901px){.topbar{min-height:64px}.topbar .brand-logo{width:175px;height:auto}.topnav>a{font-size:13px;padding:8px 9px}.user-menu{gap:12px;font-size:13px}.app-shell .project-tabs{top:64px}}
@media(max-width:1000px){.app-shell .page-actions{justify-content:flex-start}.app-shell .registry-toolbar{grid-template-columns:minmax(0,1fr) auto}.app-shell .knowledge-layout,.app-shell .history-layout{grid-template-columns:minmax(0,1fr)}.app-shell .manual-equipment-form{grid-template-columns:minmax(0,1fr) 110px;gap:10px}}
@media(max-width:700px){.app-shell{padding-top:16px;padding-bottom:92px;width:calc(100% - 24px)}.app-shell .page-head,.app-shell .page-head.compact{margin-bottom:16px;gap:12px}.app-shell .page-head>div:first-child{flex-basis:100%}.app-shell .page-title,.app-shell .project-subpage-head .page-title,.app-shell .knowledge-article-head h1{font-size:25px;line-height:1.22}.app-shell .page-subtitle{font-size:13px}.app-shell .object-layout>.panel,.app-shell .summary-panel,.app-shell .object-form{padding:16px}.app-shell .object-layout{gap:14px}.app-shell .button{min-height:42px}.app-shell .registry-toolbar{grid-template-columns:minmax(0,1fr)}.app-shell .registry-toolbar .view-switch{justify-self:start}.app-shell .form-grid{gap:12px}.app-shell .manual-equipment-form{grid-template-columns:minmax(0,1fr)}.app-shell .overview-object-notes{padding:14px 16px}.app-shell .knowledge-body{font-size:15px}.app-shell .auth-panel{padding:20px}.app-shell .table-scroll{border-radius:10px}}
@media print{.app-shell{padding:0}.app-shell .page-title{font-size:28px}}
@media(min-width:1001px){.app-shell .warehouse-document-head label:has(input[type=file]){grid-column:span 2}}
@media(max-width:700px){.app-shell .knowledge-article{padding:18px}.app-shell .knowledge-article-head>div{margin-top:12px}}
