/* Keep the flex item narrower than its kanban/table min-content width. */
html,body,#root{width:100%;min-width:0;max-width:100%;margin:0}
[data-slot=sidebar-wrapper]{width:100%;min-width:0;max-width:100%}
[data-slot=sidebar-inset]{flex:1 1 0%;width:0;min-width:0;max-width:100%}
.workspace{width:100%;min-width:0;max-width:100%;padding:24px}
.page-header{min-width:0;gap:12px;flex-wrap:wrap;padding:22px 24px}
.page-header>div{min-width:0}.page-header h1{overflow-wrap:anywhere}
.page-header>[data-slot=button]{flex-shrink:0}
.toolbar{min-width:0;max-width:100%;gap:10px;row-gap:12px}
.search{flex:1 1 220px;min-width:min(180px,100%);max-width:360px}
.toolbar-right{min-width:0;max-width:100%;flex:0 1 auto;gap:8px;justify-content:flex-end}
.toolbar [data-slot=button]{max-width:100%;white-space:normal;height:auto;min-height:42px;padding-block:9px}
.toolbar .view-toggle{flex-shrink:0}.toolbar .view-toggle [data-slot=button]{height:36px;min-height:36px;padding:8px}
.toolbar>input,.toolbar>[data-slot=select-trigger],.toolbar-right>[data-slot=select-trigger]{max-width:100%;min-width:0}
.kanban{display:flex;flex-wrap:nowrap;gap:16px;align-items:stretch;overflow-x:auto;overflow-y:auto;min-width:0;max-width:100%;width:100%;max-height:calc(100dvh - 270px);min-height:280px;padding:0 0 16px;overscroll-behavior-x:contain;scrollbar-width:auto;scrollbar-color:#7b8f70 #dfe5db;-webkit-overflow-scrolling:touch}
.kanban-column{flex:0 0 266px;min-width:0;width:266px;min-height:320px;padding:14px 12px;align-self:stretch}
.column-heading{align-items:start;gap:6px;min-height:50px}.column-heading h2{min-width:0;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.column-heading>span{flex-shrink:0}.column-sum{font-size:13px;overflow-wrap:anywhere}
.column-cards{min-width:0;gap:10px}.inventory-card{min-width:0;padding:12px;gap:7px}
.inventory-card>strong{font-size:15px}.inventory-card>b{font-size:17px;overflow-wrap:anywhere}
.card-facts,.serial,.card-agent{font-size:13px;overflow-wrap:anywhere}.card-facts>span{min-width:0;max-width:100%}
.showcase-board{display:block;max-height:none;min-height:0;overflow:visible}.showcase-board .kanban-column{min-height:0;width:100%}
.showcase-board .column-cards{grid-template-columns:repeat(auto-fill,minmax(min(240px,100%),1fr))}
.table-wrap,[data-slot=table-container],.warehouse-layout>section,.report-grid>*{min-width:0;max-width:100%}
.table-wrap{width:100%;overflow:auto}.filter-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr) 40px}
.filter-row input{min-width:0}.warehouse-grid{grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr))}
.warehouse-tree{max-width:100%;min-width:0}.supplier-card{flex-wrap:wrap;gap:18px}
.supplier-card>div:nth-child(2){min-width:120px;overflow-wrap:anywhere}
.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.compatibility-row{grid-template-columns:minmax(0,1.3fr) minmax(0,1.3fr) minmax(0,1.2fr) minmax(0,.8fr) minmax(0,.8fr) 32px}
.card-tabs,.section-tabs,.stage-rail{max-width:100%;min-width:0}
body[data-license-readonly=true] [data-slot=sidebar-inset]::before{content:'Изменения приостановлены. Доступны просмотр и выгрузка данных.';display:block;padding:14px 24px;background:#fff2d4;color:#68480e;border-bottom:1px solid #dcc68f;font-size:15px;line-height:1.5}
@media(min-width:1600px){.workspace{padding:26px 30px}.kanban{gap:14px}.kanban-column{padding:14px 12px}}
@media(max-width:1150px){.toolbar-right{flex:1 1 100%;width:100%;margin-left:0;justify-content:flex-start}.warehouse-layout{grid-template-columns:minmax(200px,250px) minmax(0,1fr)}}
@media(max-width:800px){.workspace{padding:16px}.page-header{padding:16px;min-height:74px}.search{max-width:none}.toolbar-right>[data-slot=button]{flex:0 1 auto}.warehouse-layout{display:block}.report-grid{grid-template-columns:minmax(0,1fr)}.filter-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px}.compatibility-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px}.kanban{max-height:calc(100dvh - 260px)}.kanban-column{min-height:220px}.column-heading h2{font-size:15px}body[data-license-readonly=true] [data-slot=sidebar-inset]::before{padding:12px 16px}}
@media(max-width:480px){.toolbar-right{justify-content:flex-start}.toolbar-right>[data-slot=button]{flex:1 1 auto}.toolbar>.search{flex-basis:100%}.toolbar [data-slot=button]{font-size:13px}.kanban{max-height:calc(100dvh - 270px)}.kanban-column{flex-basis:250px;width:250px;min-height:240px}.column-heading{min-height:32px}.column-empty{padding:20px 8px}.supplier-card{padding:16px}.report-card{padding:20px}.form-grid input[type=date]{min-width:0}.editor-dialog{padding:16px!important}}

.kanban::-webkit-scrollbar{height:12px;width:10px}.kanban::-webkit-scrollbar-track{background:#dfe5db;border-radius:3px}.kanban::-webkit-scrollbar-thumb{background:#7b8f70;border:2px solid #dfe5db;border-radius:5px}
.stage-rail>button:disabled{opacity:.5;cursor:not-allowed}.inventory-card[draggable=false]:active{cursor:pointer}
