:root{--lte-sidebar-width:240px;--desk-accent:#0d6efd;--desk-border:#dee2e6;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#212529;background:#f4f6f9}
body{font-family:inherit;font-size:14px;color:#212529;background:#f4f6f9;line-height:1.5}
.app-wrapper{min-height:100dvh}.app-main{min-width:0;max-width:none;margin:0;padding:0;background:#f4f6f9}.app-content{padding:20px;min-width:0}
.app-header{padding:0 20px;gap:14px;min-height:62px;border-bottom:1px solid var(--desk-border);box-shadow:0 1px 3px #00000005}.page-heading{font-size:18px;font-weight:600;min-width:0}.app-header .badge{margin-left:auto;background:#e7f4ec;color:#237143;font-size:11px;font-weight:500;padding:7px 10px;white-space:nowrap}.menu-toggle{background:transparent;color:#6c757d;border:0;padding:8px 12px;font-size:22px;line-height:1}
.app-sidebar{background:#343a40!important;color:#c2c7d0}.sidebar-brand{border-bottom:1px solid #ffffff14}.brand-link{text-decoration:none!important;display:flex;align-items:center;gap:10px;color:#fff!important}.brand-mark{background:#0d6efd;color:white;display:grid;place-items:center;border-radius:9px;width:34px;height:34px;font-size:21px;font-weight:700}.brand-text{font-size:20px}.sidebar-wrapper{padding:20px 12px}.nav-caption{font-size:10px;letter-spacing:1.5px;padding:0 12px;color:#8f98a3;margin-bottom:14px}.sidebar-note{padding:24px 12px;color:#a6aeb8;font-size:12px;border-top:1px solid #ffffff12;margin-top:24px}.sidebar-note small{font-size:11px;color:#85909b}
#section-tabs{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:0}#section-tabs button{padding:12px;text-align:left;border:0;border-radius:6px;background:transparent;color:#c2c7d0;font-size:14px}#section-tabs button span{font-size:19px;margin-right:8px}#section-tabs button:hover{background:#ffffff12;color:white}#section-tabs button.active{background:#0d6efd;color:white;box-shadow:0 2px 5px #0002}
button,input,select,textarea{font-family:inherit;font-size:14px;border:1px solid #ced4da;border-radius:6px;padding:9px 12px;line-height:1.5}input,select,textarea{color:#212529;background:white}button{background:#0d6efd;border-color:#0d6efd;color:white;transition:background .15s}button:hover{background:#0b5ed7}button:disabled{cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #86b7fe;outline-offset:2px}input[type=checkbox]{accent-color:#0d6efd!important}p{color:#6c757d}.detail{color:#6c757d}.notice{background:#eff5ff;color:#426080;border:1px solid #dce9fc}#login{max-width:460px;margin:8vh auto;padding:28px;background:white;border:1px solid var(--desk-border);border-top:3px solid #0d6efd;border-radius:8px;box-shadow:0 3px 12px #00000008}#login>strong{font-size:21px}#login button{width:100%;margin-top:6px}#login .detail{text-align:center}
#status,#cache-status{margin:0 0 12px;font-size:12px}#status:empty,#cache-status:empty{display:none}.cart-toolbar,.toolbar{border:1px solid var(--desk-border);border-radius:8px;box-shadow:0 1px 3px #00000004;background:white}.cart-toolbar{padding:14px 18px;gap:14px;align-items:end}.cart-toolbar select,.cart-toolbar input{width:130px;min-height:38px}.cart-toolbar label{font-size:12px;color:#6c757d}#cart-open{margin-left:auto;min-height:40px}#cart-feedback{flex-basis:100%;color:#198754}#cart-feedback:empty{display:none}.toolbar{margin:16px 0;padding:14px;gap:12px;align-items:center}.toolbar input{min-width:180px}.stock-filter{white-space:nowrap}.warehouse-filter summary{border-radius:6px;border-color:#ced4da;padding:9px 12px;font-size:13px}.warehouse-menu{border-color:#dee2e6;box-shadow:0 6px 24px #0002}.warehouse-actions button:last-child{background:#f8f9fa;color:#495057;border-color:#dee2e6}.warehouse-filter{z-index:8}
.catalog-layout{grid-template-columns:210px minmax(0,1fr);gap:16px}.group-panel{padding:10px 8px;border-radius:8px;border-color:var(--desk-border);max-height:calc(100dvh - 290px)}#groups-toggle{display:flex;justify-content:space-between;width:100%;background:transparent;color:#495057;border:0;font-weight:600;text-align:left;padding:6px 8px 12px;cursor:default}#groups-toggle span{display:none}.group-name{color:#495057}.group-toggle{color:#6c757d}.group-name:hover{background:#f0f5ff}.group-name.selected{background:#e6f0ff;color:#0d6efd}.group-toggle:hover{background:#edf2f7}#count{font-size:12px;margin-bottom:8px;color:#6c757d}#results,#orders-table{border:1px solid var(--desk-border);border-radius:8px;max-height:calc(100dvh - 300px);background:white}table{color:#343a40;font-size:13px}th,td{padding:12px;border-color:#e9ecef;min-width:100px}th,th:first-child{background:#f8f9fa;font-size:12px;color:#495057;font-weight:600}td:first-child,th:first-child{min-width:250px;max-width:310px}tr:nth-child(even) td{background:#fcfcfd}.stock-cell{color:#343a40}.price-line{font-size:12px}.add-cart{background:#e8f1ff;color:#0d6efd;border-color:#d0e2ff;padding:5px 10px}.add-cart:hover{background:#0d6efd;color:white}.reserve-link{color:#b96d13;background:transparent;border-color:#b96d13}.reserve-link:hover{background:transparent;color:#8c5109}#more,#orders-more{background:white;color:#0d6efd;border-color:#ced4da}
#orders-section h2{font-size:22px;display:inline-block;margin:0 16px 12px 0}#reload-orders{float:right;background:white;color:#0d6efd;border-color:#ced4da}#order-filters{clear:both}#orders-table{max-height:65dvh}#orders-table .order-link{color:#0d6efd}#orders-count{font-size:12px}#orders-notice{font-size:12px}
dialog#cart-dialog,dialog#reserve-dialog{border:1px solid #dee2e6;border-radius:10px;box-shadow:0 20px 80px #0003;color:#212529;background:#fff;padding:24px;max-height:92dvh}dialog::backdrop{background:#17212fcc!important}.dialog-header{border-bottom:1px solid #e9ecef;padding-bottom:16px;align-items:center;position:sticky;top:-24px;background:white;z-index:4}.dialog-header h2{font-size:19px;line-height:1.4}.dialog-header button{background:#f1f3f5;border:0;color:#495057;flex:none;width:36px;height:36px;padding:5px}.cart-total{color:#212529}.checkout-fields{margin-top:18px}.checkout-fields label{min-width:0}.checkout-fields select{max-width:100%}.checkout-actions button:first-child{background:#f8f9fa;color:#495057;border-color:#dee2e6}.cart-grid{margin:16px 0}.cart-grid button{background:#fff1f1;border-color:#ffdbdb;color:#b02a37}.reserve-order{border-color:#dee2e6}.order-reserve-total{color:#b96d13}.order-meta p{color:#495057}
@media(min-width:768px) and (max-width:1199px){.catalog-layout{grid-template-columns:170px minmax(0,1fr)}.app-content{padding:14px}}
@media(max-width:767px){
 body{font-size:14px}.app-header{padding:0 10px;min-height:56px;gap:6px}.page-heading{font-size:15px}.app-header .badge{font-size:9px;padding:5px 7px}.menu-toggle{padding:8px;font-size:22px}.app-content{padding:12px}.app-main{width:100%;overflow-x:clip}#status,#cache-status{font-size:11px;line-height:1.5}
 #login{margin:24px auto;padding:20px}input,select,textarea{font-size:16px!important;min-height:44px}button{min-height:42px}#login>strong{font-size:20px}.cart-toolbar{gap:10px;padding:12px;display:grid;grid-template-columns:1fr 1fr}.cart-toolbar label{min-width:0}.cart-toolbar select,.cart-toolbar input{width:100%;padding:8px}#cart-open{grid-column:1/-1;width:100%;margin:0}#cart-feedback{grid-column:1/-1;overflow-wrap:anywhere;font-size:12px}.toolbar{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px;margin:12px 0}.toolbar #search{grid-column:1/-1;width:100%;min-width:0}.toolbar #sort{grid-column:1/-1;width:100%;font-size:14px!important}.warehouse-filter{min-width:0}.warehouse-filter summary{font-size:12px;padding:11px 8px;min-height:44px;white-space:normal}.warehouse-menu{left:0;right:auto;width:min(320px,calc(100vw - 48px));max-width:none}.stock-filter{font-size:12px;white-space:normal;gap:6px}.toolbar .stock-filter input,.toolbar #warehouse-options input{min-height:20px;width:20px;height:20px}.catalog-layout{display:block}.group-panel{margin-bottom:12px;max-height:none;padding:0;overflow:visible}#groups-toggle{cursor:pointer;padding:12px;min-height:44px}#groups-toggle span{display:inline}#groups{display:none;padding:0 8px 10px;max-height:50dvh;overflow:auto}.groups-open #groups{display:block}.group-name,.group-toggle{min-height:42px}.group-toggle{flex-basis:32px}.group-name{font-size:14px}#count{margin:8px 0 12px}
 #results,#orders-table{max-height:none;overflow:visible;border:0;background:transparent;border-radius:0}#results table,#orders-table table{display:block;min-width:0;width:100%;background:transparent}#results thead,#orders-table thead{display:none}#results tbody,#orders-table tbody{display:grid;gap:12px}#results tbody tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:white;border:1px solid #dee2e6;border-radius:8px;overflow:hidden;padding:0 12px 8px}#results td{position:static!important;min-width:0!important;max-width:none!important;padding:9px 4px;background:transparent!important;font-size:13px;border-bottom:1px solid #f0f2f4;text-align:left}#results td:first-child{grid-column:1/-1;padding:14px 0 10px;display:grid;grid-template-columns:1fr auto;gap:4px 10px}#results td:first-child strong{grid-column:1/-1;font-size:15px;line-height:1.5}#results td:first-child .detail{align-self:center;overflow-wrap:anywhere}#results .add-cart{margin:0;font-size:12px;min-height:40px;white-space:nowrap}#results td:nth-child(2){grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 20px;padding:12px 0}.price-line{margin:0;font-size:13px;white-space:normal}#results .stock-cell:before{content:attr(data-label);display:block;font-size:11px;font-weight:400;color:#6c757d;margin-bottom:4px}#results td.stock-total{grid-column:1/-1;display:flex;align-items:center;gap:12px;background:#f3f7ff!important;border-radius:5px;margin-top:6px;padding:10px;color:#0a58ca}#results td.stock-total:before{margin:0;font-weight:600;color:#0a58ca}.reserve-link{margin:4px 0 0;min-height:32px;font-size:11px}#results td.stock-total .reserve-link{margin-left:auto}#more{width:100%;min-height:44px;margin:12px 0}
 #orders-section h2{font-size:20px;margin:0 0 12px}#reload-orders{float:none;width:100%;margin-bottom:0}#order-filters{grid-template-columns:1fr 1fr;gap:10px}#order-filters label{min-width:0}#order-filters label:nth-child(4){grid-column:1/-1}#order-filters input,#order-filters select{font-size:14px!important}#order-filters button{width:100%}#orders-table tbody tr{display:grid;grid-template-columns:1fr 1fr;background:white;border:1px solid #dee2e6;border-radius:8px;padding:12px;gap:6px 12px}#orders-table td{position:static;min-width:0!important;max-width:none!important;background:transparent;border:0;padding:4px 0;overflow-wrap:anywhere;font-size:13px}#orders-table td:before{content:attr(data-label);display:block;color:#6c757d;font-size:11px;margin-bottom:2px}#orders-table td:first-child{grid-column:1/-1;border-bottom:1px solid #e9ecef;padding:0 0 8px}#orders-table td:first-child:before{display:none}#orders-table .order-link{font-size:16px;min-height:36px}#orders-table td:nth-child(4),#orders-table td:last-child{grid-column:1/-1}#orders-more{width:100%}
 dialog#cart-dialog,dialog#reserve-dialog{width:calc(100vw - 16px);max-width:none;max-height:calc(100dvh - 16px);margin:auto;padding:16px;border-radius:10px}.dialog-header{top:-16px;gap:8px;padding-bottom:12px}.dialog-header h2{font-size:17px;overflow-wrap:anywhere}.dialog-header button{min-height:40px;width:40px;height:40px}.cart-form button{width:100%}.checkout-fields{grid-template-columns:1fr;gap:12px}.checkout-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.checkout-actions button{padding:10px;font-size:13px}.order-meta{grid-template-columns:1fr}.cart-grid,.order-lines{overflow:visible}.cart-grid table,.order-lines table{display:block;min-width:0!important;width:100%;background:transparent}.cart-grid thead,.order-lines thead,.cart-grid .table-head-row,.order-lines .table-head-row{display:none}.cart-grid tbody,.order-lines tbody{display:block}.cart-grid tr,.order-lines tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;padding:12px;border:1px solid #dee2e6;border-radius:8px;margin-bottom:12px}.cart-grid td,.order-lines td{min-width:0!important;max-width:none!important;padding:0!important;position:static!important;border:0;background:transparent!important;overflow-wrap:anywhere;font-size:13px}.cart-grid td:before,.order-lines td:before{content:attr(data-label);display:block;color:#6c757d;font-size:11px;margin-bottom:4px}.cart-grid td:first-child,.order-lines td:first-child{grid-column:1/-1;font-weight:600;min-width:0!important}.cart-grid input{width:100%;max-width:130px;font-size:16px!important}.cart-grid button{width:100%;min-height:40px}.order-reserve-total{float:none;display:block;margin:8px 0}.reserve-order>summary{padding:12px}.order-content{padding:0 10px 12px}#cart-body>button{width:100%}.cart-total{font-size:18px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
#order-filters-toggle{display:none}@media(max-width:767px){#order-filters-toggle{display:block;width:100%;margin:10px 0;background:white;color:#495057;border-color:#dee2e6}#order-filters{display:none}#order-filters.filters-open{display:grid}#order-filters label:nth-child(3),#order-filters label:nth-child(7){grid-column:1/-1}dialog#cart-dialog,dialog#reserve-dialog{width:calc(100% - 24px);max-width:calc(100% - 24px)}}
/* Compact catalog controls and header status. */
.app-header #cache-status{margin:0 0 0 auto;font-size:11px;text-align:right;max-width:42%;line-height:1.4;color:#6c757d}.app-header .badge{margin-left:0}.app-header #cache-status:empty + .badge{margin-left:auto}
.unified-toolbar{display:flex;flex-wrap:nowrap;align-items:center;margin:0 0 16px;padding:12px;gap:10px}.price-controls{display:flex;align-items:center;gap:8px;flex:none}.price-controls label{margin:0;color:#6c757d;font-size:11px}.price-controls input,.price-controls select{display:block;width:90px;min-width:0;margin-top:3px;padding:8px;font-size:13px}.price-controls input{width:75px}.unified-toolbar #search{flex:1 1 180px;min-width:100px;width:0}.unified-toolbar #sort{width:135px;font-size:12px}.unified-toolbar #cart-open{margin:0;flex:none;white-space:nowrap;font-size:12px}.unified-toolbar .stock-filter{font-size:12px}.unified-toolbar #cart-feedback{display:none}.unified-toolbar .warehouse-filter summary{font-size:12px}.unified-toolbar .warehouse-menu{right:0;left:auto}
@media(min-width:768px) and (max-width:1150px){.unified-toolbar{gap:6px;padding:10px}.price-controls select{width:74px}.price-controls input{width:60px}.unified-toolbar #sort{width:112px}.unified-toolbar .stock-filter{white-space:normal;max-width:90px}.unified-toolbar .warehouse-filter summary{padding:8px}.unified-toolbar #cart-open{padding:8px}.app-header #cache-status{font-size:10px}}
@media(max-width:767px){.app-header{flex-wrap:wrap;gap:4px 6px;padding:8px 10px}.app-header #cache-status{order:4;max-width:none;width:100%;margin:0;font-size:10px;text-align:left;padding-left:36px}.app-header .badge{margin-left:auto}.unified-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:12px}.price-controls{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px}.price-controls input,.price-controls select{width:100%;font-size:16px}.unified-toolbar #search{width:100%;grid-column:1/-1;min-width:0}.unified-toolbar #sort{grid-column:auto;width:100%;font-size:13px!important}.unified-toolbar #cart-open{grid-column:auto;width:100%;font-size:13px}.unified-toolbar .warehouse-menu{left:0;right:auto}.unified-toolbar #cart-feedback:not(:empty){display:block;grid-column:1/-1}}
@media(min-width:768px){.unified-toolbar{align-items:flex-end}.unified-toolbar .price-controls{align-items:flex-end}.unified-toolbar .price-controls input,.unified-toolbar .price-controls select,.unified-toolbar #search,.unified-toolbar #sort,.unified-toolbar #cart-open,.unified-toolbar .warehouse-filter summary{height:38px;min-height:38px;box-sizing:border-box}.unified-toolbar .warehouse-filter{align-self:flex-end}.unified-toolbar .stock-filter{height:38px;align-self:flex-end;display:flex;align-items:center}.unified-toolbar .warehouse-filter summary{display:flex;align-items:center}.unified-toolbar .warehouse-filter summary:before{content:'▸';margin-right:5px}.unified-toolbar .warehouse-filter[open] summary:before{content:'▾'}}
@media(min-width:768px){#results th:nth-child(n+3),#results td.stock-cell{text-align:center}#results td.stock-cell .reserve-link{margin-left:auto;margin-right:auto}}
.reserve-document-link{background:transparent;color:#0d6efd;border:0;padding:2px 0;font-weight:600;text-decoration:underline;text-align:left;min-height:32px}.reserve-document-link:hover{background:transparent;color:#0a58ca}.reserve-back{margin:14px 0 0;background:#f8f9fa;color:#0d6efd;border-color:#dee2e6}.reserve-back:hover{background:#e8f1ff}
/* Main navigation lives in the top bar; no sidebar grid column. */
.layout-top-nav .app-wrapper{display:flex;flex-direction:column;min-height:100dvh}.layout-top-nav .app-main{width:100%;flex:1;margin:0}.top-header{display:flex;flex-wrap:nowrap;gap:20px;padding:10px 20px;min-height:64px;position:sticky;top:0;z-index:1030}.top-header .brand-link{flex:none;color:#343a40!important;padding:0}.top-header .brand-text{font-size:18px}.top-header #section-tabs{flex-direction:row;align-items:center;gap:6px;flex:none}.top-header #section-tabs button{background:transparent;color:#495057;padding:8px 12px;white-space:nowrap}.top-header #section-tabs button:hover{background:#edf3ff;color:#0d6efd}.top-header #section-tabs button.active{background:#0d6efd;color:white;box-shadow:none}.top-header #cache-status{margin-left:auto;max-width:34%}.top-header .badge{flex:none}
@media(max-width:1000px) and (min-width:768px){.top-header{gap:10px;padding:10px 14px}.top-header #section-tabs button{padding:8px;font-size:13px}.top-header .brand-text{font-size:16px}.top-header #cache-status{font-size:10px}.top-header .badge{font-size:9px;padding:6px}}
@media(max-width:767px){.top-header{flex-wrap:wrap;gap:8px;padding:10px 12px;position:relative}.top-header .brand-link{order:0}.top-header .brand-text{font-size:17px}.top-header .badge{order:1;margin-left:auto}.top-header #section-tabs{order:2;flex:1 0 100%;display:grid;grid-template-columns:1fr 1fr;gap:6px}.top-header #section-tabs button{font-size:12px;padding:8px 5px;text-align:center;min-height:42px}.top-header #section-tabs button span{font-size:15px;margin-right:4px}.top-header #cache-status{order:3;max-width:none;width:100%;margin:0;padding:0;text-align:left;font-size:10px}}
/* Category sidebar below the full-width top navigation. */
.layout-top-nav .app-wrapper{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;align-items:start}.layout-top-nav.has-category-sidebar .app-wrapper{grid-template-columns:240px minmax(0,1fr)}.top-header{grid-column:1/-1}.layout-top-nav .app-main{grid-row:2;grid-column:1;min-width:0}.has-category-sidebar .app-main{grid-column:2}.category-sidebar{grid-row:2;grid-column:1;margin:0;padding:16px 10px;border:0;border-right:1px solid #dee2e6;border-radius:0;position:sticky;top:64px;height:calc(100dvh - 64px);max-height:calc(100dvh - 64px);overflow:auto;background:#fff}.catalog-layout{display:block}
@media(max-width:767px){.layout-top-nav.has-category-sidebar .app-wrapper{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto 1fr}.category-sidebar{grid-row:2;grid-column:1;position:static;height:auto;max-height:none;margin:12px 12px 0;padding:0;border:1px solid #dee2e6;border-radius:8px;overflow:visible}.has-category-sidebar .app-main{grid-row:3;grid-column:1}.category-sidebar #groups{max-height:50dvh;overflow:auto}}
@media(min-width:768px) and (max-width:1100px){.layout-top-nav.has-category-sidebar .app-wrapper{grid-template-columns:180px minmax(0,1fr)}.unified-toolbar{flex-wrap:wrap}.unified-toolbar #search{flex:1 1 160px}.top-header{flex-wrap:wrap}.top-header #cache-status{max-width:100%}}
.search-select{position:relative;min-width:0}.checkout-fields .search-select input{margin-top:4px;padding-right:24px}.search-select:after{content:'⌄';position:absolute;right:10px;top:12px;pointer-events:none;color:#6c757d}.search-select:has([aria-expanded="true"]){z-index:20}.search-select-list{position:absolute;left:0;right:0;top:100%;margin-top:3px;max-height:240px;overflow:auto;overscroll-behavior:contain;background:white;border:1px solid #b8c9e4;border-radius:6px;box-shadow:0 8px 24px #0002;z-index:30}.search-select-list [role=option]{padding:10px 12px;cursor:pointer;font-size:14px;overflow-wrap:anywhere}.search-select-list [role=option]:hover,.search-select-list [aria-selected=true]{background:#e7f0ff;color:#0a58ca}.search-select-empty{padding:12px;color:#6c757d;font-size:13px}@media(max-width:767px){.search-select-list{max-height:200px}.search-select-list [role=option]{min-height:44px}}

@media(max-width:767px){#results .stock-cell{overflow-wrap:anywhere}#results .stock-cell .reserve-link{max-width:100%;white-space:normal}}

.mobile-add-cart{display:none}@media(max-width:767px){#results tbody tr{padding:0;gap:0;border-radius:8px}#results td:first-child{display:block;padding:14px 14px 12px;border-bottom:1px solid #dee2e6}#results td:first-child strong{display:block;font-size:16px;line-height:1.4;font-weight:600}#results td:first-child .detail,#results td:first-child .add-cart{display:none}#results td:nth-child(2){padding:12px 14px;gap:8px 20px;border-bottom:1px solid #dee2e6}#results td.stock-cell:not(.stock-total){padding:10px 8px;text-align:center}#results .stock-cell:before{font-size:12px}#results td.stock-total{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:0 0 0 14px;margin:0;border-top:1px solid #dee2e6;border-radius:0;background:white!important;color:#212529;font-weight:700;min-height:48px}#results td.stock-total:before{content:"ИТОГО:";color:inherit}#results td.stock-total .mobile-add-cart{display:block;align-self:stretch;margin:0 0 0 auto;padding:12px 14px;min-height:48px;border:0;border-left:1px solid #dee2e6;border-radius:0;background:#f7f9fc;color:#212529;font-size:14px;font-weight:700;white-space:nowrap}#results td.stock-total .reserve-link{order:2;flex-basis:100%;margin:0 10px 8px 0;font-weight:400}#results .stock-cell:not(.stock-total) .reserve-link{margin:4px auto 0}}

#app-account{display:flex;gap:8px;align-items:center;font-size:12px}#app-account[hidden]{display:none}body[data-role=viewer] #tab-orders,body[data-role=viewer] #orders-section,body[data-role=viewer] #catalog>p.detail{display:none!important}body[data-role=viewer] .reserve-link{cursor:default;text-decoration:none;border:0;opacity:1}body[data-role=viewer] #results td.stock-total{padding:12px 14px}

#login .remember-login{display:flex;align-items:center;gap:9px;font-size:14px}#login .remember-login input{width:18px;height:18px;margin:0;flex:none}

.warehouse-menu .warehouse-actions{padding-right:40px}#warehouses-close{position:absolute;right:8px;top:8px;width:36px;height:36px;min-height:36px;padding:0;border:0;background:#f1f3f5;color:#495057;font-size:26px;line-height:1;border-radius:6px}#warehouses-close:hover{background:#e2e6ea}

#cart-body .checkout-actions{display:flex;flex-wrap:wrap;gap:8px}#cart-body .cart-clear{margin-left:auto;background:#dc3545;color:#fff;border:1px solid #dc3545}#cart-body .cart-clear:hover{background:#bb2d3b;border-color:#b02a37}

#cart-body .cart-markup-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}#cart-body .cart-markup-fields label{min-width:0;margin:14px 0;display:flex;flex-direction:column;justify-content:space-between}#cart-body .cart-markup-fields input{width:100%;min-width:0}

#cart-body .cart-delivery-row{display:flex;align-items:center;gap:20px;flex-wrap:wrap}#cart-body .cart-delivery-row>label{flex:1;min-width:160px}#cart-body .cart-delivery-row>.cart-total{margin:14px 0 14px auto;text-align:right;white-space:nowrap}

.product-measures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.product-measures label{min-width:0;margin:0}.product-measures input{width:100%;min-width:0}.product-measures .detail{grid-column:1/-1;margin:0}@media(max-width:480px){.product-measures{grid-template-columns:1fr;gap:6px}}

#cart-body .cart-delivery-row{display:flex;flex-direction:column;align-items:stretch;gap:0}#cart-body .cart-delivery-row>label{flex:none;width:100%;min-width:0}#cart-body .cart-delivery-row>.cart-total{align-self:flex-end;margin:0 0 16px;text-align:right}

#group-refresh-status{font-size:13px;color:#495057;margin:0 0 8px;padding:8px 10px;background:#f0f3f7;border-radius:5px}#group-refresh-status.updating{color:#084298;background:#e7f1ff}#group-refresh-status.updating:before{content:"↻ ";font-weight:bold}

/* Compact catalogue controls and one-line refresh/count summary. */
#catalog .unified-toolbar{margin-bottom:6px;padding:7px 10px;gap:8px}
.catalog-summary{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:0 0 6px}
.catalog-summary #group-refresh-status{flex:1 1 420px;margin:0;padding:3px 7px;font-size:12px;line-height:1.4}
.catalog-summary #group-refresh-status:empty{display:none}
.catalog-summary #count{flex:none;margin:0 0 0 auto;font-size:12px;line-height:1.4}
#catalog>#cart-feedback:empty{display:none}
@media(min-width:768px){
 #catalog .unified-toolbar{align-items:center}
 #catalog .price-controls{align-items:center;gap:8px}
 #catalog .price-controls label{display:flex;align-items:center;gap:5px;white-space:nowrap}
 #catalog .price-controls input,#catalog .price-controls select{margin:0;padding:6px 8px}
 #catalog .price-controls input{width:62px}
 #catalog .price-controls select{width:76px}
 #catalog .unified-toolbar #search,#catalog .unified-toolbar #sort,#catalog .unified-toolbar #cart-open,#catalog .unified-toolbar #refresh-catalog,#catalog .price-controls input,#catalog .price-controls select,#catalog .warehouse-filter summary{height:34px;min-height:34px;padding-top:6px;padding-bottom:6px}
 #catalog .unified-toolbar #refresh-catalog{font-size:12px;white-space:nowrap;padding-left:10px;padding-right:10px}
 #catalog .unified-toolbar .stock-filter{height:34px;align-self:center}
 #catalog .unified-toolbar .warehouse-filter{align-self:center}
}
@media(max-width:767px){
 #catalog .unified-toolbar{padding:8px;gap:6px}
 #catalog .price-controls{gap:6px}
 .catalog-summary{gap:3px;margin-bottom:5px}
 .catalog-summary #group-refresh-status{flex-basis:100%;font-size:11px}
 .catalog-summary #count{font-size:11px}
}

.catalog-summary #cart-feedback{flex:0 1 auto;min-width:0;max-width:40%;margin:0;padding:0;font-size:12px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#198754}
.catalog-summary #cart-feedback:empty{display:none}
@media(max-width:767px){.catalog-summary #cart-feedback{max-width:100%;font-size:11px}}
/* Mobile cabinet: compact navigation, options dialog, two-line product cards. */
#mobile-menu,#mobile-section,#mobile-options,.mobile-stock-toggle{display:none}
#mobile-account-menu{display:contents}
.top-header .brand-link{order:-2}.top-header #section-tabs{order:-1}
#mobile-options-dialog{border:1px solid #dee2e6;border-radius:12px;padding:12px;width:calc(100vw - 20px);max-width:600px;max-height:90dvh;overflow:auto;color:#212529;background:#fff}
#mobile-options-dialog::backdrop{background:#15223880}
.mobile-options-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.mobile-options-heading button{padding:6px 12px;background:#f1f3f5;color:#495057}
@media(max-width:767px){
 .top-header{position:relative;min-height:48px;padding:4px 8px;gap:6px;display:flex;flex-wrap:wrap}
 #mobile-menu{display:block;order:-5;flex:0 0 42px;padding:4px;font-size:23px;min-height:40px;background:#f8f9fa;color:#343a40;border-color:#dee2e6}
 #mobile-section{display:block;order:-4;flex:1;min-width:0;width:0;min-height:40px!important;padding:6px 30px 6px 9px;font-size:14px!important}
 .top-header #section-tabs{display:none!important}
 #mobile-account-menu{display:none}
 .mobile-menu-open #mobile-account-menu{display:flex;order:5;flex:1 0 100%;flex-wrap:wrap;align-items:center;gap:8px;padding:8px;border-top:1px solid #dee2e6}
 #mobile-account-menu .brand-link{order:0}#mobile-account-menu #app-account{order:1}#mobile-account-menu .badge{order:2;margin:0}#mobile-account-menu #cache-status{order:3;flex-basis:100%;padding:0;margin:0}
 .category-sidebar{display:grid;grid-template-columns:auto minmax(0,1fr);gap:5px;margin:3px 8px 0;padding:0;border:0;background:transparent;border-radius:0}
 #mobile-options{display:block;min-height:40px;padding:6px 10px;align-self:start;font-size:13px}
 .category-sidebar #groups-toggle{min-height:40px;padding:6px 10px;border:1px solid #dee2e6;border-radius:6px;background:white;font-size:14px;text-align:left;min-width:0}
 .category-sidebar #groups{grid-column:1/-1;background:white;border-radius:6px}
 .app-main .app-content{padding:4px 8px!important}
 .layout-top-nav .app-main{margin:0!important;padding-top:0!important}
 #catalog .catalog-summary{margin:0 0 4px;gap:2px}
 #catalog .catalog-summary #group-refresh-status{font-size:10px;padding:2px 4px}
 #catalog .catalog-summary #count,#catalog .catalog-summary #cart-feedback{font-size:10px}
 #catalog #mobile-options-dialog .unified-toolbar{margin:0;padding:0;border:0;box-shadow:none;gap:8px}
 #mobile-options-dialog .warehouse-menu{position:relative;left:auto;right:auto;top:auto;width:100%;max-width:none;box-shadow:none}
 #mobile-options-dialog .warehouse-filter[open]{grid-column:1/-1}
 #mobile-options-dialog input,#mobile-options-dialog select{min-height:44px}
 #results{max-height:none!important;overflow:visible!important;border:0}
 #results tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:0;margin:0 0 5px;gap:0;background:white;border:1px solid #dee2e6;border-radius:7px;overflow:hidden}
 #results td:first-child{grid-column:1/-1;display:flex;align-items:center;gap:6px;padding:6px 8px;min-width:0;max-width:none;border-bottom:0}
 #results td:first-child strong{flex:1;min-width:0;font-size:13px;line-height:1.25;overflow-wrap:anywhere}
 #results td:first-child .add-cart{display:block;flex:none;position:relative;width:34px;height:34px;min-height:34px;margin:0;padding:4px;border:0;border-radius:5px;font-size:0;background:#eaf2ff;color:#0d6efd}
 #results td:first-child .add-cart:after{content:'🛒';font-size:20px}
 #results td:nth-child(2){grid-column:1;display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;min-width:0;padding:2px 4px 6px 8px;border:0;font-size:11px}
 #results td:nth-child(2) .price-line{margin:0;white-space:normal;font-size:11px;line-height:1.3}
 #results td.stock-total,body[data-role=viewer] #results td.stock-total{grid-column:2;grid-row:2;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:3px;min-height:0;padding:2px 6px 6px 2px;margin:0;border:0;font-size:11px;background:white!important}
 #results td.stock-total:before{content:'ИТОГО:';font-size:10px}
 #results td.stock-total .mobile-add-cart{display:none!important}
 #results td.stock-total .reserve-link{display:none}
 #results .mobile-stock-toggle{display:inline-block;min-height:30px;padding:3px 5px;margin-left:3px;background:#f1f5fa;border:1px solid #dee2e6;color:#334155;font-size:11px;font-weight:400}
 #results td.warehouse-stock{display:none!important}
 #results tr.stocks-expanded td.warehouse-stock.has-stock{display:flex!important;grid-column:1/-1;align-items:center;gap:8px;justify-content:flex-end;padding:5px 8px;min-width:0;border-top:1px solid #edf0f3;border-bottom:0;font-size:12px}
 #results tr.stocks-expanded td.warehouse-stock:before{margin-right:auto;font-size:12px;color:#64748b}
 #results tr.stocks-expanded .warehouse-stock .reserve-link{margin:0;font-size:11px}
}
@media(max-width:767px){#results tbody{gap:0}#mobile-options-dialog .unified-toolbar #cart-open{min-height:44px}#results .warehouse-stock:before{margin-bottom:0}}

@media(max-width:767px){
 .category-sidebar{grid-template-columns:auto minmax(0,1fr) auto}
 .category-sidebar #mobile-options{grid-column:1;grid-row:1}
 .category-sidebar #groups-toggle{grid-column:2;grid-row:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .category-sidebar #cart-open{grid-column:3;grid-row:1;margin:0;width:auto;min-height:40px;padding:6px 8px;font-size:12px;white-space:nowrap;align-self:start}
 .category-sidebar #groups{grid-column:1/-1;grid-row:2}
}

@media(max-width:767px){
 #cart-body .cart-grid tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.8fr);gap:8px;padding:10px;margin-bottom:8px}
 #cart-body .cart-grid td:first-child{grid-column:1/-1;grid-row:1}
 #cart-body .cart-grid td:nth-child(2){grid-column:1;grid-row:2}
 #cart-body .cart-grid td:nth-child(3){grid-column:2;grid-row:2}
 #cart-body .cart-grid td:nth-child(5){grid-column:3;grid-row:2;text-align:right}
 #cart-body .cart-grid td:nth-child(4){grid-column:1/3;grid-row:3;display:flex;align-items:center;flex-wrap:wrap;gap:4px}
 #cart-body .cart-grid td:nth-child(4):before{flex-basis:100%;margin:0}
 #cart-body .cart-grid td:nth-child(4) input{width:68px;max-width:68px;min-height:40px;padding:6px}
 #cart-body .cart-grid .cart-available{flex:1 1 90px;margin:0 0 0 4px;font-size:11px;line-height:1.3}
 #cart-body .cart-grid td:nth-child(6){grid-column:3;grid-row:3;align-self:end;justify-self:end}
 #cart-body .cart-grid td:nth-child(6):before{display:none}
 #cart-body .cart-grid .cart-remove-item{display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:40px;padding:8px;font-size:0}
 #cart-body .cart-grid .cart-remove-item:after{content:'';width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3 6h18M9 6V3h6v3M5 6l1 15h12l1-15M10 10v7m4-7v7'/%3E%3C/svg%3E") center/contain no-repeat}
}

.cart-adjustments{display:contents}
@media(max-width:767px){
 #cart-body .cart-grid td:first-child:before{display:none}
 #cart-body .cart-adjustments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;margin:10px 0 6px}
 #cart-body .cart-adjustments .cart-markup-fields{display:contents}
 #cart-body .cart-adjustments label{display:flex;flex-direction:column;justify-content:flex-end;gap:3px;margin:0;min-width:0;font-size:11px;line-height:1.2}
 #cart-body .cart-adjustments input,#cart-body .cart-adjustments select{display:block;width:100%;min-width:0;min-height:40px;height:40px;margin:0;padding:6px 8px;border-radius:6px;font-size:16px!important}
 #cart-body .cart-adjustments+.detail{font-size:10px;line-height:1.3;margin:4px 0 8px}
 #cart-body .cart-grid{margin-top:8px}
}

#orders-table .order-shipment{display:none}
@media(max-width:767px){
 #orders-table tbody{gap:6px}
 #orders-table tbody tr{grid-template-columns:26px minmax(0,1fr) minmax(0,1fr);padding:8px 10px;gap:4px 8px}
 #orders-table tbody td{padding:0!important;font-size:12px;line-height:1.35}
 #orders-table tbody td:before{font-size:10px;margin:0}
 #orders-table tbody td:nth-child(1){grid-column:1;grid-row:1;border:0;align-self:center}
 #orders-table tbody td:nth-child(2){grid-column:2;grid-row:1;text-align:left}
 #orders-table tbody td:nth-child(2):before{display:none}
 #orders-table .order-link{font-size:14px;min-height:30px}
 #orders-table tbody td:nth-child(4){grid-column:3;grid-row:1;text-align:right;align-self:center}
 #orders-table tbody td:nth-child(6){grid-column:1/-1;grid-row:2;font-weight:600;font-size:13px}
 #orders-table tbody td:nth-child(6):before{display:none}
 #orders-table tbody td:nth-child(3){grid-column:1/3;grid-row:3}
 #orders-table tbody td.order-shipment{display:block;grid-column:3;grid-row:3}
 #orders-table tbody td:nth-child(10){grid-column:1/3;grid-row:4;font-weight:600}
 #orders-table tbody td:nth-child(12){grid-column:1/-1;grid-row:5}
 #orders-table tbody td:nth-child(5),#orders-table tbody td:nth-child(7),#orders-table tbody td:nth-child(8),#orders-table tbody td:nth-child(9),#orders-table tbody td:nth-child(11){display:none}
 #orders-table tbody td:nth-child(3):before,#orders-table tbody td.order-shipment:before,#orders-table tbody td:nth-child(10):before,#orders-table tbody td:nth-child(12):before{display:inline;margin-right:5px}
}

.orders-actions{display:contents}
@media(max-width:767px){
 #orders-section>h2{display:none}
 #orders-section .orders-actions{display:grid;grid-template-columns:auto minmax(0,1fr) minmax(0,1fr);gap:5px;margin:0 0 8px;align-items:stretch}
 #orders-section .orders-actions #print-orders,#orders-section .orders-actions #reload-orders,#orders-section .orders-actions #order-filters-toggle{display:block;float:none;width:100%;min-width:0;min-height:40px;margin:0;padding:7px 5px;font-size:12px;line-height:1.2;border-radius:6px;white-space:normal}
}

@media(max-width:767px){#orders-section #orders-notice,#orders-section #orders-count{display:none}}

@media(max-width:767px){
 #orders-table tbody{gap:4px}
 #orders-table tbody tr{grid-template-columns:22px minmax(0,1fr) auto;gap:3px 7px;padding:7px 9px;border-radius:7px;align-items:center}
 #orders-table .order-select-cell input{width:20px;height:20px;min-height:20px;margin:0;vertical-align:middle}
 #orders-table .order-link{display:inline-block;min-height:24px;padding:2px 0;font-size:13px;line-height:20px}
 #orders-table tbody td:nth-child(4){font-size:10px;white-space:nowrap}
 #orders-table tbody td:nth-child(4):before{display:none}
 #orders-table tbody td:nth-child(6){grid-column:1/3;grid-row:2;font-size:13px;line-height:1.3}
 #orders-table tbody td:nth-child(10){grid-column:3;grid-row:2;text-align:right;font-size:13px;white-space:nowrap}
 #orders-table tbody td:nth-child(10):before{display:none}
 #orders-table tbody td:nth-child(3),#orders-table tbody td.order-shipment{font-size:11px;line-height:1.3}
 #orders-table tbody td.order-shipment{text-align:right}
 #orders-table tbody td:nth-child(12){grid-row:4;font-size:11px;color:#64748b;line-height:1.3}
 #orders-table tbody tr.order-no-comment td:nth-child(12){display:none}
}

@media(max-width:767px){
 #catalog .catalog-summary #count{display:none}
 #catalog .catalog-summary #search{display:block;flex:1 0 100%;width:100%;min-width:0;box-sizing:border-box;min-height:38px;height:38px;margin:3px 0 2px;padding:7px 10px;border-radius:6px}
}


#orders-table tbody tr.order-shipped,#orders-table tbody tr.order-shipped>td{background:#e5f5e9;border-color:#b9dfc4}
#orders-table tbody tr.order-part-shipped,#orders-table tbody tr.order-part-shipped>td{background:#e4f2ff;border-color:#bad9f3}

body[data-role=viewer] #tab-shipments,body[data-role=viewer] :is(#shipments-section,#receipts-section){display:none!important}
.shipments-heading,.order-document-tabs,.invoice-orders{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.shipments-heading{justify-content:space-between}.shipments-heading h2{margin:0}
:is(#shipments-filters,#receipts-filters){display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:8px 0}:is(#shipments-filters,#receipts-filters) label{font-size:12px}:is(#shipments-filters,#receipts-filters) input{display:block;margin-top:3px;min-width:0}
.invoice-list{overflow:auto}.invoice-list table{width:100%;border-collapse:collapse}.invoice-list td,.invoice-list th{padding:8px;text-align:left;border-bottom:1px solid #e5e9ef}.invoice-list td:first-child button{background:none;color:#0d6efd;padding:0;min-height:30px;text-decoration:underline;border:0}
#invoice-dialog{width:calc(100vw - 24px);max-width:1500px;max-height:94dvh;padding:16px;border:1px solid #dee2e6;border-radius:10px}#invoice-dialog::backdrop{background:#15223880}.invoice-lines{overflow:auto}.invoice-lines table{min-width:650px;width:100%;border-collapse:collapse}.invoice-lines td,.invoice-lines th{padding:8px;border-bottom:1px solid #e5e9ef;text-align:left}
.order-document-tabs{margin:8px 0}.order-document-tabs button{background:#f5f7fa;color:#334155;border:1px solid #d5deea}.order-document-tabs [aria-selected=true]{background:#0d6efd;color:white}.order-documents-panel[hidden],#edit-form[hidden]{display:none!important}
@media(max-width:767px){
 .shipments-heading h2{display:none}:is(#shipments-filters,#receipts-filters){display:grid;grid-template-columns:1fr 1fr;gap:5px}:is(#shipments-filters,#receipts-filters) input{width:100%;box-sizing:border-box;font-size:14px!important;min-height:36px}:is(#shipments-filters,#receipts-filters) label{min-width:0}
 .invoice-list table,.invoice-list tbody{display:block}.invoice-list thead{display:none}.invoice-list tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;background:white;border:1px solid #dee2e6;border-radius:7px;padding:8px;margin:5px 0}.invoice-list td{display:block;border:0;padding:0;font-size:12px;min-width:0;overflow-wrap:anywhere}.invoice-list td:before{content:attr(data-label);font-size:10px;color:#64748b;margin-right:4px}.invoice-list td:first-child:before,.invoice-list td:nth-child(2):before,.invoice-list td:nth-child(3):before{display:none}.invoice-list td:nth-child(2),.invoice-list td:nth-child(6){text-align:right}.invoice-list td:nth-child(3){grid-column:1/-1;font-weight:600}.invoice-list td:last-child{grid-column:1/-1}.order-document-tabs button{font-size:13px;padding:7px;min-height:36px}
}

#shipment-create-dialog{width:calc(100vw - 24px);max-width:1000px;max-height:94dvh;padding:16px;border:1px solid #dee2e6;border-radius:10px}#shipment-create-dialog::backdrop{background:#15223880}.shipment-create-form>label{display:block}.shipment-create-item{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;border:1px solid #dee2e6;padding:10px;margin:8px 0;border-radius:6px}.shipment-create-item>strong,.shipment-create-item>p{grid-column:1/-1;margin:0}.shipment-create-item label{font-size:12px;min-width:0;margin:0}.shipment-create-item input,.shipment-create-item select{display:block;width:100%;box-sizing:border-box}.shipment-create-form textarea{width:100%;box-sizing:border-box}

body[data-role=viewer] #tab-transfers,body[data-role=viewer] #transfers-section{display:none!important}
.transfers-heading,.order-document-tabs,.invoice-orders{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.transfers-heading{justify-content:space-between}.transfers-heading h2{margin:0}
#transfers-filters{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin:8px 0}#transfers-filters label{font-size:12px}#transfers-filters input{display:block;margin-top:3px;min-width:0}
#transfer-dialog{width:calc(100vw - 24px);max-width:1500px;max-height:94dvh;padding:16px;border:1px solid #dee2e6;border-radius:10px}#transfer-dialog::backdrop{background:#15223880}.invoice-lines{overflow:auto}.invoice-lines table{min-width:650px;width:100%;border-collapse:collapse}.invoice-lines td,.invoice-lines th{padding:8px;border-bottom:1px solid #e5e9ef;text-align:left}
@media(max-width:767px){ .transfers-heading h2{display:none}#transfers-filters{display:grid;grid-template-columns:1fr 1fr;gap:5px}#transfers-filters input{width:100%;box-sizing:border-box;font-size:14px!important;min-height:36px}#transfers-filters label{min-width:0}
}

#transfer-create-dialog{width:calc(100vw - 24px);max-width:1000px;max-height:94dvh;padding:16px;border:1px solid #dee2e6;border-radius:10px}#transfer-create-dialog::backdrop{background:#15223880}.transfer-create-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.transfer-create-form label{display:block}.transfer-create-form input,.transfer-create-form select,.transfer-create-form textarea{display:block;box-sizing:border-box;width:100%}.transfer-create-row{display:grid;grid-template-columns:1fr 130px 40px;align-items:center;gap:8px;border-bottom:1px solid #ddd;padding:8px 0}.transfer-create-row label{font-size:0}.transfer-create-row input{font-size:14px}.transfer-post-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}#transfer-create-dialog button{margin:4px}@media(max-width:550px){.transfer-create-row{grid-template-columns:1fr 90px 30px}.transfer-create-fields{grid-template-columns:1fr}#transfer-create-dialog{padding:10px}}

#transfer-create-dialog .dialog-header h2{min-width:0;white-space:normal;overflow-wrap:anywhere;flex:1}#transfer-create-dialog .dialog-header button{flex-shrink:0}#transfer-create-dialog .transfer-create-form label{margin:0}#transfer-create-dialog .transfer-create-fields{margin-bottom:12px}

/* Order actions: print belongs to the global header, only in the orders section. */
.top-header #print-orders{order:4;flex:none;white-space:nowrap;margin:0}
.top-header #print-orders[hidden]{display:none!important}
#orders-section .orders-actions{display:flex;justify-content:flex-end;gap:8px;margin-bottom:10px}
#orders-section .orders-actions #reload-orders{float:none}
@media(max-width:767px){
 .top-header #print-orders{order:-3;min-height:40px;padding:6px 9px;font-size:12px}
 #orders-section .orders-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-bottom:8px}
}

#section-tabs .section-icon{display:inline-block;vertical-align:-3px;margin-right:6px;flex-shrink:0}

.top-header :is(#shipments-refresh,#receipts-refresh),.top-header #transfers-refresh{order:4;flex:none;white-space:nowrap;margin:0}
.top-header :is(#shipments-refresh,#receipts-refresh)[hidden],.top-header #transfers-refresh[hidden]{display:none!important}
@media(max-width:767px){.top-header :is(#shipments-refresh,#receipts-refresh),.top-header #transfers-refresh{order:-3;min-height:40px;padding:6px 8px;font-size:11px}}

.top-header #reload-orders{order:4;flex:none;float:none;width:auto;white-space:nowrap;margin:0}
.top-header #reload-orders[hidden]{display:none!important}
@media(min-width:768px){#orders-section .orders-actions{display:none}}
@media(max-width:767px){
 .top-header #reload-orders{order:-3;min-height:40px;padding:6px 8px;font-size:11px}
 #orders-section .orders-actions{grid-template-columns:1fr}
}

/* Shared document filter panel, matching customer orders. */
:is(#shipments-filters,#receipts-filters),#transfers-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:16px 0;padding:14px;background:#fff;border:1px solid var(--desk-border);border-radius:8px;box-shadow:0 1px 3px #00000004}
:is(#shipments-filters,#receipts-filters) label,#transfers-filters label{display:flex;flex-direction:column;flex:1 1 140px;min-width:0;margin:0;gap:6px;font-size:12px;color:#495057}
:is(#shipments-filters,#receipts-filters) input,:is(#shipments-filters,#receipts-filters) select,#transfers-filters input,#transfers-filters select{display:block;width:100%;min-width:0;height:40px;margin:0;padding:9px 12px;font-size:14px;box-sizing:border-box}
:is(#shipments-filters,#receipts-filters) button,#transfers-filters button{flex:none;min-height:40px;margin:0;white-space:nowrap}
@media(max-width:767px){
 :is(#shipments-filters,#receipts-filters),#transfers-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px;margin:8px 0}
 :is(#shipments-filters,#receipts-filters) label,#transfers-filters label{gap:4px}
 :is(#shipments-filters,#receipts-filters) input,:is(#shipments-filters,#receipts-filters) select,#transfers-filters input,#transfers-filters select{font-size:14px!important;height:40px;min-height:40px;padding:7px 8px}
 #transfers-filters label:nth-of-type(3){grid-column:1/-1}
 :is(#shipments-filters,#receipts-filters) button,#transfers-filters button{width:100%;padding:7px 10px}
}

/* Keep document filters close to the navigation bar. */
.app-main .app-content:has(#orders-section:not([hidden]),:is(#shipments-section,#receipts-section):not([hidden]),#transfers-section:not([hidden])){padding-top:8px}
#order-filters,:is(#shipments-filters,#receipts-filters),#transfers-filters{margin-top:0}

/* Compact document cards and freshness captions. */
:is(#shipments-filters,#receipts-filters),#transfers-filters{margin-bottom:5px}
:is(#shipments-status,#receipts-status),#transfers-status{margin:3px 0 5px;font-size:11px;line-height:1.3;color:#64748b}
:is(#shipments-status,#receipts-status):empty,#transfers-status:empty{display:none}
@media(max-width:767px){
 :is(#shipments-list,#receipts-list),#transfers-list{overflow:visible}
 :is(#shipments-list,#receipts-list) tbody,#transfers-list tbody{display:grid;gap:4px}
 :is(#shipments-list,#receipts-list) tbody tr,#transfers-list tbody tr{grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:7px 9px;margin:0;align-items:center}
 :is(#shipments-list,#receipts-list) td,#transfers-list td{min-width:0!important;max-width:none!important;background:transparent!important;line-height:1.3;font-size:11px;padding:0;border:0}
 :is(#shipments-list,#receipts-list) td:first-child,#transfers-list td:first-child{grid-column:1;grid-row:1}
 :is(#shipments-list,#receipts-list) td:first-child button,#transfers-list td:first-child button{min-height:24px;padding:2px 0;font-size:13px;line-height:20px;text-align:left}
 #shipments-list td:nth-child(3),#receipts-list td:nth-child(2),#transfers-list td:nth-child(3){grid-column:2;grid-row:1;font-size:10px;white-space:nowrap;text-align:right}
 #shipments-list td:nth-child(2),#receipts-list td:nth-child(3){grid-column:1;grid-row:2;font-size:13px}
 :is(#shipments-list,#receipts-list) td:nth-child(6){grid-column:2;grid-row:2;font-size:13px;font-weight:600;text-align:right}
 :is(#shipments-list,#receipts-list) td:nth-child(6):before{display:none}
 :is(#shipments-list,#receipts-list) td:nth-child(4){grid-column:1;grid-row:3}
 :is(#shipments-list,#receipts-list) td:nth-child(5){grid-column:2;grid-row:3;text-align:right}
 :is(#shipments-list,#receipts-list) td:nth-child(7){grid-column:1/-1;grid-row:4;color:#64748b}
 #transfers-list td:nth-child(4){grid-column:1;grid-row:2;font-size:12px;font-weight:600}
 #transfers-list td:nth-child(5){grid-column:2;grid-row:2;font-size:12px;font-weight:600;text-align:right}
 #transfers-list td:nth-child(4):before{display:inline;content:'Из';font-weight:400}
 #transfers-list td:nth-child(5):before{content:'В';font-weight:400}
 #transfers-list td:nth-child(2){grid-column:1/-1;grid-row:3}
 #transfers-list td:nth-child(6){grid-column:1/-1;grid-row:4;text-align:left;color:#64748b}
 :is(#shipments-list,#receipts-list) tr.document-no-comment td:last-child,#transfers-list tr.document-no-comment td:last-child{display:none}
}

.document-filters-toggle{display:none}
@media(max-width:767px){
 .document-filters-toggle{display:block;width:100%;min-height:40px;margin:0 0 5px;padding:7px 10px;font-size:12px;background:white;color:#495057;border-color:#dee2e6}
 :is(#shipments-filters,#receipts-filters),#transfers-filters{display:none}
 :is(#shipments-filters,#receipts-filters).filters-open,#transfers-filters.filters-open{display:grid}
}

#order-filters{margin-bottom:5px}
#orders-count{margin:3px 0 5px;font-size:11px;line-height:1.3}

@media(max-width:767px){
 .top-header #order-filters-toggle,.top-header .document-filters-toggle{display:block;order:-2;flex:none;width:auto;min-height:40px;margin:0;padding:6px 8px;font-size:11px;white-space:nowrap;background:white;color:#495057;border-color:#dee2e6}
 .top-header #order-filters-toggle[hidden],.top-header .document-filters-toggle[hidden]{display:none!important}
 #orders-section .orders-actions{display:none}
}

@media(min-width:768px){
 #orders-table{max-height:var(--orders-available-height,calc(100dvh - 240px))}
 #orders-more{margin:8px 0 0}
 .app-content:has(#orders-section:not([hidden])){padding-bottom:12px}
}

.top-header #refresh-catalog{order:4;flex:none;white-space:nowrap;margin:0}
.top-header #refresh-catalog[hidden]{display:none!important}
@media(max-width:767px){.top-header #refresh-catalog{order:-3;min-height:40px;padding:6px 8px;font-size:11px}}

@media(min-width:768px){
 #results{max-height:var(--catalog-available-height,calc(100dvh - 240px))}
 #catalog #more{margin:8px auto 0}
 .app-content:has(#catalog:not([hidden])){padding-bottom:12px}
}

body[data-role=viewer] #tab-receipts{display:none!important}
#receiptInvoice-dialog{width:calc(100vw - 24px);max-width:1500px;max-height:94dvh;padding:16px;border:1px solid #dee2e6;border-radius:10px}

@media(max-width:767px){
 .top-header :is(#reload-orders,#refresh-catalog,#shipments-refresh,#transfers-refresh,#receipts-refresh){font-size:0!important;position:relative;width:40px;min-width:40px;height:40px;min-height:40px;flex:0 0 40px;padding:0;display:inline-flex;align-items:center;justify-content:center}
 .top-header :is(#reload-orders,#refresh-catalog,#shipments-refresh,#transfers-refresh,#receipts-refresh)::before{content:'↻';display:block;font:28px/1 Arial,sans-serif}
}

@media(max-width:767px){
 .top-header #print-orders{font-size:0!important;position:relative;width:40px;min-width:40px;height:40px;min-height:40px;flex:0 0 40px;padding:0;display:inline-flex;align-items:center;justify-content:center}
 .top-header #print-orders::before{content:'';display:block;width:22px;height:22px;background:url('/print-icon.svg') center/contain no-repeat}
}

/* Skip navigation must not occupy space or leak into the mobile header. */
.skip-links{position:absolute;width:0;height:0;margin:0;padding:0;z-index:100000}
.skip-links .skip-link{position:fixed;top:8px;left:8px;width:1px;height:1px;margin:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip-links .skip-link:focus{width:auto;height:auto;max-width:calc(100vw - 16px);padding:8px 12px;overflow:visible;clip-path:none;white-space:normal;background:#0d6efd;color:white;border-radius:6px;outline:3px solid #ffbf47;outline-offset:2px}

@media(max-width:767px){.top-header #clear-print-orders{width:40px;min-width:40px;height:40px;min-height:40px;padding:0;font-size:0}.top-header #clear-print-orders::before{content:"×";font:24px/1 Arial,sans-serif}}

.top-header #clear-print-orders{order:4;flex:none;white-space:nowrap;margin:0 0 0 -14px;background:#fff;color:#526175;border:1px solid #dce3ed}
.top-header #clear-print-orders[hidden]{display:none!important}
@media(min-width:768px) and (max-width:1000px){.top-header #clear-print-orders{margin-left:-4px}}
@media(max-width:767px){.top-header #clear-print-orders{order:-3;margin:0}}

/* Keep the update timestamp on its own compact row below header actions. */
@media(min-width:768px){
 .top-header{flex-wrap:wrap;row-gap:4px}
 .top-header #app-account{order:9;flex:none;margin-left:auto;white-space:nowrap}
 .top-header #cache-status{order:10;flex:0 0 100%;width:100%;max-width:none;margin:0;padding:0;text-align:right;white-space:nowrap;font-size:11px;line-height:16px}
}

.orders-product-filter{flex:1 1 260px;min-width:220px}.orders-product-filter>label{display:block;font-size:12px;margin-bottom:5px}.orders-product-controls{display:flex;gap:6px;align-items:center}.orders-product-controls input{width:100%;min-width:0!important;flex:1}.orders-product-controls button{flex:none;width:auto!important;white-space:nowrap}
#orders-product-dialog{width:min(720px,calc(100vw - 24px));max-height:85dvh;padding:16px;border:1px solid #dce3ed;border-radius:10px;overflow:auto}#orders-product-dialog::backdrop{background:#15223880}#orders-product-dialog>input{width:100%;box-sizing:border-box}.order-product-choice{display:block;width:100%;text-align:left;background:#fff;color:#243247;border:1px solid #dce3ed;margin:6px 0;padding:10px}.order-product-choice small{display:block;color:#6c757d;margin-top:3px}.order-product-choice:hover{background:#edf4ff}
@media(max-width:767px){.orders-product-filter{grid-column:1/-1;min-width:0}#orders-product-dialog{padding:12px}}

@media(max-width:767px){
 .top-header #mobile-section{flex:1 1 150px;width:auto;min-width:120px;}
 .top-header #mobile-menu,.top-header #print-orders,.top-header #clear-print-orders,.top-header :is(#reload-orders,#refresh-catalog,#shipments-refresh,#transfers-refresh,#receipts-refresh){width:42px;min-width:42px;height:42px;min-height:42px;flex:0 0 42px;border-radius:8px;}
 .top-header :is(#order-filters-toggle,#shipments-filters-toggle,#transfers-filters-toggle,#receipts-filters-toggle){min-height:42px;margin:0;padding:7px 10px;border-radius:8px;}
 .top-header #clear-print-orders:disabled{display:none!important;}
}

@media(max-width:767px){
 .top-header #mobile-section{flex:1 1 80px;min-width:80px;}
 .top-header :is(#order-filters-toggle,#shipments-filters-toggle,#transfers-filters-toggle,#receipts-filters-toggle){flex:0 0 42px;width:42px;min-width:42px;height:42px;padding:0;font-size:0;display:inline-flex;align-items:center;justify-content:center;}
 .top-header :is(#order-filters-toggle,#shipments-filters-toggle,#transfers-filters-toggle,#receipts-filters-toggle)::before{content:'';width:20px;height:20px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;}
 .top-header :is(#order-filters-toggle,#shipments-filters-toggle,#transfers-filters-toggle,#receipts-filters-toggle)[aria-expanded=true]{color:#0d6efd;background:#eaf2ff;}
}



.shipment-order-links a{color:#0d6efd;text-decoration:underline;text-underline-offset:2px;white-space:nowrap}.shipment-order-links{min-width:0;overflow-wrap:anywhere}.shipment-order-links a:focus-visible{outline:2px solid #0d6efd;outline-offset:3px}

@media(max-width:767px){
 #order-editor .shipment-table tbody tr,#shipments-list .shipment-table tbody tr{grid-template-columns:minmax(0,1fr) auto;}
 #order-editor .shipment-table td,#shipments-list .shipment-table td{display:block;grid-column:auto;grid-row:auto;text-align:left;font-size:12px;font-weight:400;color:inherit;}
 #order-editor .shipment-table td:before,#shipments-list .shipment-table td:before{display:inline;content:attr(data-label);font-size:10px;color:#64748b;margin-right:5px;}
 #order-editor .shipment-table td:nth-child(1),#shipments-list .shipment-table td:nth-child(1){grid-column:1;grid-row:1;}
 #order-editor .shipment-table td:nth-child(3),#shipments-list .shipment-table td:nth-child(3){grid-column:2;grid-row:1;text-align:right;font-size:10px;}
 #order-editor .shipment-table td:nth-child(6),#shipments-list .shipment-table td:nth-child(6){grid-column:1;grid-row:2;font-weight:600;}
 #order-editor .shipment-table td:nth-child(9),#shipments-list .shipment-table td:nth-child(9){grid-column:2;grid-row:2;text-align:right;font-weight:600;}
 #order-editor .shipment-table td:is(:nth-child(1),:nth-child(3),:nth-child(6),:nth-child(9)):before,#shipments-list .shipment-table td:is(:nth-child(1),:nth-child(3),:nth-child(6),:nth-child(9)):before{display:none;}
 #order-editor .shipment-table td:nth-child(4),#shipments-list .shipment-table td:nth-child(4),#order-editor .shipment-table td:nth-child(10),#shipments-list .shipment-table td:nth-child(10){grid-column:1/-1;}
 #order-editor .shipment-table .document-no-comment td:nth-child(10),#shipments-list .shipment-table .document-no-comment td:nth-child(10){display:none;}
}

#shipments-product-dialog{width:min(720px,95vw);max-height:90dvh;overflow:auto;padding:16px;border:1px solid #dce3ed;border-radius:12px}#shipments-product-dialog::backdrop{background:#15223880}#shipments-product-dialog>input{width:100%;box-sizing:border-box}#shipments-filters .orders-product-filter{min-width:200px}

#receipts-product-dialog{width:min(720px,95vw);max-height:90dvh;overflow:auto;padding:16px;border:1px solid #dce3ed;border-radius:12px}#receipts-product-dialog::backdrop{background:#15223880}#receipts-product-dialog>input{width:100%;box-sizing:border-box}
@media(max-width:767px){
 #receipts-list td{grid-column:auto!important;grid-row:auto!important;text-align:left!important;font-weight:400!important;font-size:12px!important;}
 #receipts-list td:before{display:inline!important;content:attr(data-label);font-size:10px;color:#64748b;margin-right:5px;}
 #receipts-list td:nth-child(1){grid-column:1!important;grid-row:1!important;}
 #receipts-list td:nth-child(3){grid-column:2!important;grid-row:1!important;text-align:right!important;font-size:10px!important;}
 #receipts-list td:nth-child(4){grid-column:1!important;grid-row:2!important;font-weight:600!important;}
 #receipts-list td:nth-child(7){grid-column:2!important;grid-row:2!important;font-weight:600!important;text-align:right!important;}
 #receipts-list td:nth-child(8){grid-column:1/-1!important;}
 #receipts-list td:is(:nth-child(1),:nth-child(3),:nth-child(4),:nth-child(7)):before{display:none!important;}
}

#transfers-product-dialog{width:min(720px,95vw);max-height:90dvh;overflow:auto;padding:16px;border:1px solid #dce3ed;border-radius:12px}#transfers-product-dialog::backdrop{background:#15223880}#transfers-product-dialog>input{width:100%;box-sizing:border-box}
@media(max-width:767px){#transfers-list td:nth-child(6){grid-column:2;grid-row:3;text-align:right;}#transfers-list td:nth-child(7){grid-column:1/-1;grid-row:4;color:#64748b;}#transfers-list td:nth-child(6):before{display:inline;content:attr(data-label);font-size:10px;color:#64748b;margin-right:5px;}}

@media(max-width:767px){#transfers-list td:nth-child(2){grid-column:1;grid-row:3;}}

@media(max-width:767px){
 .layout-top-nav .top-header{position:sticky;top:0;z-index:1030;background:#fff;}
 .layout-top-nav .category-sidebar{position:sticky;top:var(--mobile-header-height,50px);z-index:1029;background:#f4f6f9;margin-top:0;padding:4px 0;}
 #catalog .catalog-summary{position:sticky;top:calc(var(--mobile-header-height,50px) + var(--mobile-catalog-height,48px));z-index:1028;background:#f4f6f9;padding:3px 0 5px;}
 #catalog .catalog-summary #search{scroll-margin-top:calc(var(--mobile-header-height,50px) + var(--mobile-catalog-height,48px));}
 .top-header.mobile-menu-open #mobile-account-menu{max-height:55dvh;overflow-y:auto;}
}

.order-payments{border-top:1px solid #dce3ec;padding:12px 0;margin:12px 0}.order-payment-summary{margin:6px 0}.order-payment-actions{display:flex;flex-wrap:wrap;gap:8px}.order-payment-list>div{padding:7px 0;border-bottom:1px solid #e7ebf0}.order-payments details{margin-top:10px}@media(max-width:700px){.order-payment-actions>button{flex:1 1 42%;min-width:0;font-size:13px;padding:8px}.order-payment-summary{font-size:13px}}/* Product selection is the trailing part of the search field. */
.orders-product-controls{gap:0!important;align-items:stretch!important}
.orders-product-controls>input{border-radius:6px 0 0 6px!important;margin:0!important;height:38px!important;min-height:38px!important;box-sizing:border-box;border-right:0!important}
.orders-product-controls>button{border-radius:0 6px 6px 0!important;margin:0!important;height:38px!important;min-height:38px!important;box-sizing:border-box;padding:6px 12px!important;align-self:stretch}
.orders-product-controls>input:focus{position:relative;z-index:1}

/* Payment and shipment indicators stay beside the order number at every width. */
#orders-table .order-completion-icons{display:inline-flex;align-items:center;gap:5px;margin-left:7px;vertical-align:middle;white-space:nowrap}
#orders-table .order-completion-icon{display:inline-flex;position:relative;align-items:center;justify-content:center;width:18px;height:18px;vertical-align:middle;outline-offset:3px;cursor:help}
#orders-table .order-completion-icon svg{display:block;width:18px;height:18px}
#orders-table .order-completion-icon.is-paid{color:#188438}
#orders-table .order-completion-icon.is-shipped{color:#0d6efd}
#orders-table .order-completion-icon:is(:hover,:focus):after{content:attr(data-tooltip);position:absolute;top:calc(100% + 5px);left:0;z-index:30;padding:5px 8px;border-radius:4px;background:#263445;color:white;font-size:12px;font-weight:400;white-space:nowrap;pointer-events:none}
@media(max-width:800px){#orders-table .order-completion-icons{gap:4px;margin-left:6px}#orders-table .order-completion-icon:is(:hover,:focus):after{left:auto;right:0}}

.document-posted-cell{color:#20a84a!important;font-weight:700;font-size:17px}
.document-posted-cell:before{font-weight:400;color:#64748b}
#orders-table .order-identity{display:inline-flex;align-items:center;flex-wrap:nowrap;white-space:nowrap;gap:7px;vertical-align:middle}
#orders-table .order-identity .order-link{flex:none;white-space:nowrap;overflow-wrap:normal;word-break:normal}
#orders-table .order-identity .order-completion-icons{flex:none;margin-left:0}
#orders-table .order-number-cell{white-space:nowrap;overflow-wrap:normal}
#orders-table .order-completion-icon.is-reserved{color:#c77a08}
@media(max-width:767px){
 #orders-table tbody td.order-number-cell{grid-column:2/-1;grid-row:1;text-align:left}
 #orders-table tbody td:nth-child(4){grid-column:2/-1;grid-row:2;text-align:left}
 #orders-table tbody td:nth-child(6){grid-row:3}
 #orders-table tbody td:nth-child(10){grid-row:3}
 #orders-table tbody td:nth-child(3),#orders-table tbody td.order-shipment{grid-row:4}
 #orders-table tbody td:nth-child(12){grid-row:5}
}

#orders-table .order-completion-icon,#orders-table .order-completion-icon svg{width:23px;height:23px;flex:none}

/* Compact order filters: identical label spacing and control baseline. */
#order-filters{align-items:end;padding:8px;row-gap:6px}
#order-filters>label,#order-filters>.orders-product-filter{margin:0;min-width:0}
#order-filters>label{display:flex;flex-direction:column;gap:2px;line-height:1.2}
#order-filters .orders-product-filter>label{margin:0 0 2px;line-height:1.2}
#order-filters input,#order-filters select,#order-filters button{margin-top:0!important;margin-bottom:0!important;height:34px!important;min-height:34px!important;box-sizing:border-box;padding-top:5px!important;padding-bottom:5px!important}
#order-filters>button{align-self:end}
@media(max-width:767px){#order-filters input,#order-filters select,#order-filters button{height:38px!important;min-height:38px!important}}

/* Primary order journal values; time remains secondary. */
#orders-table th:is(:nth-child(2),:nth-child(5),:nth-child(10)),
#orders-table td:nth-child(2) .order-link,
#orders-table td:is(:nth-child(5),:nth-child(10)),
#orders-table th.order-date-heading strong,
#orders-table td:nth-child(4) strong{font-weight:700}
#orders-table th.order-date-heading,#orders-table td:nth-child(4) .order-time{font-weight:400}
#orders-table td:nth-child(4) strong,#orders-table td:nth-child(4) .order-time{white-space:nowrap}

.shipment-table th:is(:nth-child(1),:nth-child(3),:nth-child(6),:nth-child(9)),
.shipment-table td:first-child button,.shipment-table td:nth-child(3) strong,
.shipment-table td:is(:nth-child(6),:nth-child(9)){font-weight:700}
.shipment-table td:nth-child(3) .shipment-time{font-weight:400;white-space:nowrap}
.shipment-table td:nth-child(3) strong{white-space:nowrap}
@media(min-width:768px){
 #orders-table th:nth-child(5),#orders-table td:nth-child(5),
 .shipment-table th:nth-child(6),.shipment-table td:nth-child(6){min-width:210px;width:230px;max-width:none}
}

/* Primary receipt and transfer journal fields. */
#receipts-list th:is(:nth-child(1),:nth-child(3),:nth-child(4),:nth-child(7)),
#receipts-list td:first-child button,#receipts-list td:nth-child(3) strong,
#receipts-list td:is(:nth-child(4),:nth-child(7)),
#transfers-list th:is(:nth-child(1),:nth-child(3)),
#transfers-list td:first-child button,#transfers-list td:nth-child(3) strong{font-weight:700}
:is(#receipts-list,#transfers-list) .document-time{font-weight:400;white-space:nowrap}
#receipts-list td:nth-child(3) strong,#transfers-list td:nth-child(3) strong{white-space:nowrap}
@media(min-width:768px){#receipts-list th:nth-child(4),#receipts-list td:nth-child(4){min-width:210px;width:230px;max-width:none}}

/* Match compact order filters across document journals. */
:is(#shipments-filters,#receipts-filters,#transfers-filters){align-items:end;padding:8px;row-gap:6px}
:is(#shipments-filters,#receipts-filters,#transfers-filters)>label,
:is(#shipments-filters,#receipts-filters,#transfers-filters)>.orders-product-filter{margin:0;min-width:0}
:is(#shipments-filters,#receipts-filters,#transfers-filters)>label{display:flex;flex-direction:column;gap:2px;line-height:1.2}
:is(#shipments-filters,#receipts-filters,#transfers-filters) .orders-product-filter>label{margin:0 0 2px;line-height:1.2}
:is(#shipments-filters,#receipts-filters,#transfers-filters) :is(input,select,button){margin-top:0!important;margin-bottom:0!important;height:34px!important;min-height:34px!important;box-sizing:border-box;padding-top:5px!important;padding-bottom:5px!important}
:is(#shipments-filters,#receipts-filters,#transfers-filters)>button{align-self:end}
@media(max-width:767px){:is(#shipments-filters,#receipts-filters,#transfers-filters) :is(input,select,button){height:38px!important;min-height:38px!important}}

/* Catalog actions share the product text height instead of adding a third line. */
#results .add-cart:after{content:none!important}
#results .add-cart svg{display:block;flex:none;width:20px;height:20px}
@media(min-width:768px){
 #results tbody td{padding-top:9px;padding-bottom:9px;vertical-align:middle}
 #results tbody td:first-child{position:relative;padding-right:58px}
 #results td:first-child strong{display:block;line-height:1.3}
 #results td:first-child .detail{margin-top:4px;line-height:1.25}
 #results td:first-child .add-cart{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:34px;height:34px;min-height:34px;padding:6px;margin:0;border-radius:7px}
 #results .price-line{line-height:1.35;margin:0}
 #results .price-line+.price-line{margin-top:4px}
}
@media(max-width:767px){#results td:first-child .add-cart{display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-height:40px;padding:8px}}

@media(min-width:768px){
 #results table{width:auto;min-width:0;max-width:100%;table-layout:auto;margin-right:auto}
 #results th,#results td{width:auto;min-width:0;padding-left:10px;padding-right:10px}
 #results th:first-child,#results td:first-child{min-width:200px;max-width:none}
 #results tbody td:first-child{padding-right:54px}
 #results td:first-child strong{max-width:min(42rem,54vw);white-space:normal;overflow-wrap:anywhere}
 #results td:first-child>.stock-print-check{position:absolute;left:10px;float:none}
 #results td:first-child>.stock-print-check+strong{margin-left:26px}
 #results th:not(:first-child),#results td:not(:first-child){white-space:nowrap}
 #results td:nth-child(2){max-width:none}
}
@media(max-width:767px){#results td.stock-total[data-single-warehouse]:before{content:attr(data-single-warehouse) ':'}}

.cart-grid th:nth-child(1),.cart-grid th:nth-child(3),.cart-grid th:nth-child(4),.cart-grid th:nth-child(5),
.cart-grid td:first-child,.cart-grid td:nth-child(4) input,.cart-grid td:nth-child(5),
.cart-grid .cart-price-number,.cart-grid td:nth-child(3) s,.cart-grid td:nth-child(3) strong{font-weight:700}

#cart-dialog .cart-grid input.cart-edit-amount{width:125px;min-width:85px;max-width:100%;font-weight:700}

#transfer-create-dialog .transfer-table-wrap{overflow:auto;margin:16px 0}
#transfer-create-dialog .transfer-draft-table{width:100%;border-collapse:collapse}
#transfer-create-dialog .transfer-draft-table th,#transfer-create-dialog .transfer-draft-table td{padding:8px;text-align:left;border-bottom:1px solid #e2e8ef;vertical-align:middle}
#transfer-create-dialog .transfer-draft-table th{background:#f4f7fb}
#transfer-create-dialog .transfer-draft-table th:first-child,#transfer-create-dialog .transfer-draft-table td:first-child{width:1%;white-space:nowrap}
#transfer-create-dialog .transfer-draft-table td:nth-child(3){width:110px}
#transfer-create-dialog .transfer-draft-table td:nth-child(4){width:1%;white-space:nowrap}
#transfer-create-dialog .transfer-draft-table td:last-child{width:1%;text-align:right}
#transfer-create-dialog .transfer-draft-table small{display:block;color:#798390;margin-top:4px}
#transfer-create-dialog .transfer-draft-table input{width:100px;font-weight:700}
#transfer-create-dialog .transfer-draft-actions{display:flex;justify-content:space-between;border-top:1px solid #e2e8ef;padding-top:10px;gap:8px}
#transfer-create-dialog .transfer-create-form>.checkout-notice:empty{display:none}


/* Catalog status occupies the space above filters; the table follows closely below. */
@media(min-width:768px){
 .app-main .app-content:has(#catalog:not([hidden])){padding-top:4px}
 #catalog>.catalog-summary{margin:0 0 4px}
 #catalog>.unified-toolbar{margin-bottom:10px}
}

/* Document notices precede filters, leaving only a compact gap before the list. */
:is(#shipments-status,#receipts-status,#transfers-status){margin:0 0 4px}
:is(#shipments-filters,#receipts-filters,#transfers-filters){margin-bottom:10px}

/* Compact navigation; update details no longer reserve a second header row. */
.top-header .brand-link,.top-header #badge{display:none!important}
#header-update{position:relative;order:8;flex:none;font-size:12px;color:#6c757d}
#header-update:has(#cache-status:empty){display:none}
#header-update summary{cursor:pointer;white-space:nowrap;padding:8px 4px;list-style:none}
#header-update summary::after{content:'⌄';margin-left:5px}
.top-header #header-update #cache-status{position:absolute;right:0;top:100%;width:max-content;max-width:min(360px,calc(100vw - 32px));margin:4px 0 0;padding:12px;background:#fff;border:1px solid #dce3ed;border-radius:8px;box-shadow:0 4px 16px #0002;text-align:left;white-space:normal;font-size:12px;line-height:1.5;z-index:1040}
@media(min-width:768px){
 .top-header{min-height:50px;padding:5px 14px;gap:8px;row-gap:4px}
 .top-header #section-tabs{gap:3px;margin:0}
 .top-header #section-tabs button{padding:7px 9px;min-height:36px;font-size:14px}
 .top-header>button,.top-header #app-logout{padding:7px 10px;min-height:36px;font-size:13px}
 .top-header #clear-print-orders{margin:0}
 .top-header #app-account{font-size:12px}
 .category-sidebar{top:50px;height:calc(100dvh - 50px);max-height:calc(100dvh - 50px)}
}
@media(max-width:767px){
 #mobile-account-menu #header-update{order:3;flex-basis:100%}
 .top-header #header-update #cache-status{position:static;width:auto;max-width:none;margin:0;box-shadow:none}
}

/* Refresh action and its last-update time share one compact button. */
.top-header #header-update{display:none!important}
@media(min-width:768px){
 .top-header button.header-refresh{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:4px 12px;min-height:42px;background:#fff;color:#0d6efd;border:1px solid #cbd7e6;line-height:1.2}
 .top-header button.header-refresh::after{content:attr(data-updated);display:block;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:400;color:#6c757d;line-height:1.3}
 .top-header button.header-refresh:hover{background:#f4f8ff}
}

/* Order list messages share the placement used by other documents. */
#orders-section :is(#orders-notice,#orders-count){margin:0 0 4px}
#orders-section :is(#orders-notice,#orders-count):empty{display:none}
#orders-section #order-filters{margin-top:0;margin-bottom:10px}

.orders-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 4px}
.orders-summary-messages{flex:1;min-width:0}
#orders-section .orders-summary :is(#status,#orders-notice,#orders-count){margin:0;font-size:12px;line-height:1.4}
.orders-summary #orders-count{flex:none;margin-left:auto;text-align:right}
.orders-summary:has(.orders-summary-messages:empty):has(#orders-count:empty){display:none}

.document-list-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 4px}
.document-list-messages{flex:1;min-width:0}
.document-list-summary :is(#status,#shipments-status,#receipts-status,#transfers-status,.document-list-count){margin:0;font-size:12px;line-height:1.4}
.document-list-count{flex:none;margin-left:auto!important;text-align:right;color:#64748b}
.document-list-summary p:empty{display:none}

#orders-product-dialog.catalog-product-picker{width:calc(100vw - 32px);max-width:1800px;height:min(900px,92dvh);max-height:92dvh;overflow:hidden;display:flex;flex-direction:column;gap:12px}
#orders-product-dialog:not([open]){display:none!important}
.catalog-product-picker .dialog-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;margin:0}.catalog-product-picker .dialog-header h2{margin:0}.catalog-product-picker .dialog-header button{margin-left:auto;flex:none}
.picker-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.picker-toolbar>input{flex:1;min-width:200px}.picker-stock-only{display:flex;align-items:center;gap:6px;margin:0;white-space:nowrap}.picker-stock-only input{width:18px;margin:0}
.picker-toolbar details{position:relative}.picker-toolbar summary{cursor:pointer;white-space:nowrap}.picker-warehouse-options{position:absolute;right:0;top:100%;z-index:5;width:280px;max-height:45vh;overflow:auto;padding:12px;background:white;border:1px solid #dce3ed;border-radius:8px;box-shadow:0 4px 18px #0002}.picker-warehouse-options label{display:flex;align-items:center;gap:8px;margin:6px 0}.picker-warehouse-options input{width:18px;margin:0}
.picker-content{display:flex;gap:14px;min-height:0;flex:1}.picker-groups{width:260px;flex:none;overflow:auto}.picker-groups>input{width:100%;box-sizing:border-box}.picker-groups button{display:block;width:100%;text-align:left;white-space:normal;padding:8px;margin:3px 0;background:#f6f8fb;color:#344054;border:0;font-size:12px}.picker-groups button[aria-pressed="true"]{background:#0d6efd;color:white}
.picker-main{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.picker-main>p{margin:0 0 8px}.picker-results{overflow:auto;flex:1;min-height:0}.picker-results table{width:100%;font-size:13px}.picker-results th{position:sticky;top:0;background:#f4f6f9;z-index:1}.picker-results :is(td,th){padding:10px;min-width:100px;white-space:nowrap;text-align:left}.picker-results td:first-child{min-width:280px;max-width:430px;white-space:normal}.picker-product-name{padding:0;border:0;background:transparent;color:#0d6efd;font-weight:600;text-align:left;white-space:normal}.picker-results small{display:block;color:#748175}.picker-main>button{align-self:center;margin-top:8px}
@media(max-width:767px){.picker-content{flex-direction:column}.picker-groups{width:auto;max-height:150px}.picker-results td:first-child{min-width:220px}.picker-toolbar{gap:8px}#orders-product-dialog.catalog-product-picker{padding:12px;width:calc(100vw - 12px)}}

.picker-groups .picker-tree-children{margin-left:12px;padding-left:8px;border-left:1px solid #dce3ed}
.picker-groups details{margin:2px 0}.picker-groups summary{display:list-item;cursor:pointer;list-style-position:outside;margin-left:16px;color:#6c757d}.picker-groups summary>button{display:inline-block;width:calc(100% - 4px);vertical-align:middle;margin:0;text-align:left}.picker-groups .picker-tree-leaf{padding-left:18px}.picker-groups button{overflow-wrap:anywhere}

.picker-groups summary{display:flex;align-items:center;list-style:none;margin-left:0}.picker-groups summary::-webkit-details-marker{display:none}.picker-tree-arrow{display:inline-flex;justify-content:center;align-items:center;width:26px;min-height:32px;flex:none}.picker-groups details[open]>summary>.picker-tree-arrow{transform:rotate(90deg)}.picker-groups summary>button{width:auto;flex:1;min-width:0}

#groups .group-line{display:flex;align-items:center;gap:0;margin:3px 0}
#groups .group-name{display:block;flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere;border:0;border-radius:8px;background:#f6f8fb;color:#344054;text-align:left;padding:8px 10px;margin:0;font-size:12px;font-weight:400}
#groups>.group-name{width:100%;margin:3px 0}
#groups .group-name:hover{background:#edf4ff}
#groups .group-name.selected{background:#0d6efd;color:#fff}
#groups .group-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;min-height:32px;margin:0;padding:0;border:0;background:transparent;color:#6c757d}
#groups span.group-toggle{visibility:hidden}
#groups ul{list-style:none;margin:0;padding:0}
#groups ul ul{margin-left:12px;padding-left:8px;border-left:1px solid #dce3ed}
@media(max-width:767px){#groups .group-name{font-size:14px;min-height:42px}#groups .group-toggle{min-height:42px}}

#mobile-print-menu{display:none}
@media(max-width:767px){
 .category-sidebar{grid-template-columns:40px 40px minmax(0,1fr) auto;gap:6px;overflow:visible}
 .category-sidebar #mobile-options{width:40px;height:40px;min-height:40px;padding:8px;display:flex;align-items:center;justify-content:center}
 .category-sidebar #mobile-print-menu{display:block;grid-column:2;grid-row:1;position:relative;margin:0;min-width:0;align-self:start}
 #mobile-print-menu>summary{width:40px;height:40px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:3px;border:1px solid #0d6efd;border-radius:6px;background:#0d6efd;color:#fff;cursor:pointer;list-style:none}
 #mobile-print-menu>summary::-webkit-details-marker{display:none}
 #mobile-print-menu>summary small{font-size:9px;line-height:10px}
 .category-sidebar #groups-toggle{grid-column:3;min-width:0;width:100%;height:40px;min-height:40px;margin:0;padding:6px 8px;font-size:12px;align-self:start}
 .category-sidebar #cart-open{grid-column:4;height:40px;min-height:40px}
 .category-sidebar #mobile-print-menu #stock-print-bar{position:absolute;top:46px;left:-46px;z-index:60;box-sizing:border-box;width:260px;max-width:calc(100vw - 28px);display:grid;grid-template-columns:1fr auto auto;margin:0;padding:12px;gap:8px;background:#fff;border:1px solid #dce3ed;border-radius:8px;box-shadow:0 6px 20px #17212f26}
 .category-sidebar #mobile-print-menu:not([open]) #stock-print-bar{display:none}
 .category-sidebar #mobile-print-menu #stock-print-count{grid-column:1/-1}
 .order-catalog-picking #mobile-print-menu{display:none}
}

#cart-open .cart-button-icon{display:none}
@media(max-width:767px){
 .category-sidebar #cart-open{display:flex;align-items:center;justify-content:center;gap:4px;min-width:48px;padding:6px}
 #cart-open .cart-button-icon{display:block;flex:none}
 #cart-open .cart-button-caption{display:none}
 #cart-open .cart-button-count{font-size:12px;line-height:1;font-weight:600}
}

.order-mobile-customer{display:none}
@media(max-width:767px){
 #orders-table tbody td.order-number-cell{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0;white-space:normal}
 #orders-table .order-number-cell .order-identity{flex:0 1 auto;min-width:0;flex-wrap:wrap}
 #orders-table .order-mobile-customer{display:block;flex:1 1 35%;min-width:0;text-align:right;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:1.35;padding-top:4px;font-weight:600}
}

@media(max-width:767px){
 #orders-table .order-mobile-posted{display:inline-block;margin-left:6px;color:#198754;font-size:16px;font-weight:700;line-height:1;vertical-align:baseline}
 #orders-table tbody td:nth-child(3),#orders-table tbody td.order-shipment{display:none}
 #orders-table tbody td:nth-child(12){grid-row:4}
}

@media(max-width:767px){
 dialog#cart-dialog{box-sizing:border-box;width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 16px);padding:12px;border-radius:12px}
 #cart-dialog>.dialog-header{padding-bottom:8px;margin-bottom:8px;gap:8px}
 #cart-dialog #cart-title{font-size:20px;margin:0}
 #cart-dialog #cart-close{width:40px;height:40px;min-height:40px;padding:6px}
 #cart-body .cart-adjustments{gap:8px;margin:0}
 #cart-body .cart-adjustments label,#cart-body .cart-extra-settings label{font-size:12px;margin:0;line-height:1.3}
 #cart-body .cart-adjustments input,#cart-body .cart-adjustments select,#cart-body .cart-extra-settings input,#cart-body .cart-extra-settings select{box-sizing:border-box;min-height:40px;height:40px;margin-top:4px;padding:6px 8px;font-size:16px}
 #cart-body .cart-extra-settings{margin:8px 0;font-size:12px;color:#64748b}
 #cart-body .cart-extra-settings summary{cursor:pointer;padding:8px 0}
 #cart-body .cart-extra-settings .cart-markup-fields{margin:0 0 8px;gap:8px}
 #cart-body .cart-grid tr{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 8px;padding:10px;margin:0 0 8px}
 #cart-body .cart-grid td:first-child{grid-column:1/3;grid-row:1;font-size:14px;line-height:1.3;align-self:center}
 #cart-body .cart-grid .cart-item-code{display:block;font-size:10px;color:#8290a0;font-weight:400;margin-top:2px}
 #cart-body .cart-grid td:nth-child(2){grid-column:1/-1;grid-row:2;font-size:12px;color:#64748b}
 #cart-body .cart-grid td:nth-child(2):before{display:none}
 #cart-body .cart-grid td:nth-child(3){grid-column:1;grid-row:3}
 #cart-body .cart-grid td:nth-child(4){grid-column:2;grid-row:3;display:block}
 #cart-body .cart-grid td:nth-child(4):before{content:attr(data-quantity-label)}
 #cart-body .cart-grid td:nth-child(5){grid-column:3;grid-row:3;text-align:left}
 #cart-body .cart-grid td:nth-child(6){grid-column:3;grid-row:1;align-self:start}
 #cart-dialog .cart-grid td input,#cart-dialog .cart-grid input.cart-edit-amount{box-sizing:border-box;width:100%;min-width:0;max-width:none;height:40px;min-height:40px;padding:6px 8px;font-size:16px}
 #cart-body .cart-grid td:before{font-size:11px;margin-bottom:3px}
 #cart-body .cart-grid td.cart-stock-line{grid-column:1/-1;grid-row:4}
 #cart-body .cart-grid td.cart-stock-line:before{display:none}
 #cart-body .cart-grid .cart-available{margin:0;font-size:11px;line-height:1.3}
 #cart-body .cart-delivery-row{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin:8px 0}
 #cart-body .cart-delivery-row>label{width:100px;flex:0 0 100px;margin:0;font-size:12px}
 #cart-body #cart-delivery{box-sizing:border-box;height:40px;min-height:40px;margin:4px 0 0;padding:6px 8px;font-size:16px}
 #cart-body .cart-delivery-row>.cart-total{margin:0;align-self:center;font-size:18px;white-space:normal}
 #cart-body>.checkout-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 0}
 #cart-body>.checkout-actions button{width:100%;min-width:0;min-height:42px;margin:0;padding:8px;font-size:13px;line-height:1.2}
 #cart-body>.checkout-actions .cart-clear{background:white;color:#dc3545;border:1px solid #f1b8bd}
 #cart-body .cart-storage-note{font-size:10px;margin:8px 0 0;line-height:1.3;color:#8290a0}
}

@media(min-width:768px){
 #orders-table table{width:100%}
 #orders-table table :is(th,td){min-width:0;padding:5px 8px;vertical-align:middle;white-space:nowrap;line-height:1.3}
 #orders-table table thead th{height:34px}
 #orders-table table tbody td{height:36px;box-sizing:border-box}
 #orders-table table .order-select-cell{width:36px;min-width:36px;text-align:center}
 #orders-table .order-link{min-height:24px}
 #orders-table table :is(th,td):is(:nth-child(5),:nth-child(6),:nth-child(7),:nth-child(8),:nth-child(12)){
  max-width:0;overflow:hidden;text-overflow:ellipsis
 }
 #orders-table table :is(th,td):nth-child(5){width:15%}
 #orders-table table :is(th,td):nth-child(6){width:9%}
 #orders-table table :is(th,td):nth-child(7){width:10%}
 #orders-table table :is(th,td):nth-child(8){width:9%}
 #orders-table table :is(th,td):nth-child(12){width:20%}
 #orders-table table :is(th,td):is(:nth-child(10),:nth-child(11)){text-align:right;font-variant-numeric:tabular-nums}
}

#group-tree-resizer{display:none}
@media(min-width:768px){
 .layout-top-nav.has-category-sidebar .app-wrapper{
  grid-template-columns:clamp(180px,var(--tree-width,var(--tree-default,240px)),min(50%,720px)) minmax(0,1fr);
 }
 .has-category-sidebar #group-tree-resizer{
  display:grid;place-items:center;grid-area:2 / 1;justify-self:end;align-self:start;
  position:sticky;top:50px;height:calc(100dvh - 50px);width:9px;transform:translateX(100%);
  z-index:2;cursor:col-resize;touch-action:none;user-select:none;
 }
 .order-catalog-picking #group-tree-resizer{grid-row:3}
 #group-tree-resizer::after{content:"";width:3px;height:36px;border-radius:3px;background:#aeb8c4}
 #group-tree-resizer:is(:hover,:focus-visible,.dragging){background:#e5efff}
 #group-tree-resizer:is(:hover,:focus-visible,.dragging)::after{background:#0d6efd}
}
@media(min-width:768px) and (max-width:1100px){
 .has-category-sidebar .app-wrapper{--tree-default:180px}
}
@media screen {
 #groups .group-name:has(>.lks-thermo-name),
 .picker-groups button:has(>.lks-thermo-name){
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:#494949;color:#fff
 }
 #groups .group-name:has(>.lks-thermo-name)::after,
 .picker-groups button:has(>.lks-thermo-name)::after{
  content:"";flex:0 0 22px;height:22px;
  background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 13.5V4.75a2.75 2.75 0 1 1 5.5 0v8.75a5 5 0 1 1-5.5 0Z M9.25 8v9.2 M15.5 5h5m-5 4h2.5m-2.5 4h5'/%3E%3Ccircle cx='9.25' cy='17.8' r='1.6' fill='white' stroke='none'/%3E%3C/svg%3E")
 }
 #groups .group-name:has(>.lks-thermo-name):hover,
 .picker-groups button:has(>.lks-thermo-name):hover{background:#494949}
 #groups .group-name.selected:has(>.lks-thermo-name),
 .picker-groups button[aria-pressed="true"]:has(>.lks-thermo-name){box-shadow:inset 0 0 0 2px #72adff}
 #groups .group-name>.lks-thermo-name,
 .picker-groups button>.lks-thermo-name{min-width:0;background:transparent;padding:0;color:inherit}
}

.order-catalog-picking .app-wrapper{
 --picking-controls-bottom:calc(var(--mobile-header-height,50px) + var(--picking-banner-height,0px));
}
.order-catalog-picking .order-catalog-banner{
 grid-row:2;top:var(--mobile-header-height,50px);z-index:1029
}
@media(min-width:768px){
 .layout-top-nav.order-catalog-picking .app-wrapper{grid-template-rows:auto auto 1fr}
 .order-catalog-picking .category-sidebar,.order-catalog-picking.has-category-sidebar #group-tree-resizer{
  top:var(--picking-controls-bottom);height:calc(100dvh - var(--picking-controls-bottom));max-height:calc(100dvh - var(--picking-controls-bottom))
 }
}
@media(max-width:767px){
 .layout-top-nav.has-category-sidebar.order-catalog-picking .app-wrapper{grid-template-rows:auto auto auto 1fr}
 .layout-top-nav.order-catalog-picking .category-sidebar{top:var(--picking-controls-bottom);z-index:1028}
 .order-catalog-picking #catalog .catalog-summary{top:calc(var(--picking-controls-bottom) + var(--mobile-catalog-height,48px));z-index:1027}
}
