/* Cabinet navigation and compact workspace. Existing login and permissions stay intact. */
.confirmed-workspace{display:grid;grid-template-columns:245px minmax(0,1fr);gap:20px}.confirmed-tree{background:#fff;border:1px solid #dde4df;border-radius:10px;padding:14px;align-self:start}.confirmed-tree details{margin:10px 0}.confirmed-tree details details{margin-left:14px}.confirmed-tree summary{cursor:pointer;font-size:13px;font-weight:650;overflow-wrap:anywhere}.confirmed-tree button{font-size:11px;padding:7px;margin:7px 0}.confirmed-tree button.selected{background:#d5f397}.confirmed-content{min-width:0}.confirmed-content .text-button img{width:55px;height:55px;object-fit:contain;float:left;margin:0 10px 5px 0}.confirmed-content .stock-quantity{font-size:13px;padding:6px;white-space:nowrap}.confirmation-review{color:#895319}.confirmed-options label{display:flex;flex-direction:row;align-items:center;margin:15px 0;font-size:13px}.confirmed-options input{width:18px;height:18px}.confirmed-content h3{font-size:18px;margin:12px 0}@media(max-width:1000px){.confirmed-workspace{grid-template-columns:minmax(0,1fr)}.confirmed-tree{max-height:300px;overflow:auto}}
:root{--forest:#173b30;--forest-deep:#102e26;--lime:#d5f397;--line:#dde4df;--muted:#6b7b75;--sidebar:238px}
body{background:#f4f6f4;color:#182d25}
.skip-link{position:fixed;left:12px;top:-100px;z-index:100;background:white;padding:12px}.skip-link:focus{top:12px}
.shell-mode>header{position:fixed;inset:0 0 auto var(--sidebar);height:74px;max-width:none;background:#fff;border-bottom:1px solid var(--line);z-index:20;padding:16px 30px}
.shell-mode>header .brand{font-size:15px;font-weight:500;color:var(--muted);letter-spacing:0}
.shell-mode>main{margin-left:var(--sidebar);padding:102px 30px 36px;max-width:none;min-height:calc(100dvh - 50px)}
.shell-mode>footer{margin-left:var(--sidebar);max-width:none;padding:18px 30px}
#shell-nav{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:linear-gradient(150deg,var(--forest),var(--forest-deep));color:#e8f2eb;padding:0 12px 20px;z-index:40;overflow-y:auto;display:flex;flex-direction:column}
.sidebar-brand{display:block;font-size:25px;letter-spacing:-1px;font-weight:850;color:#f0f7e9;text-decoration:none;padding:23px 10px 25px;border-bottom:1px solid #ffffff25;margin-bottom:18px}
#shell-nav nav a,#shell-nav summary{display:flex;gap:13px;align-items:center;padding:13px 15px;margin:4px 0;color:#e4ede7;text-decoration:none;border-radius:7px;font-size:14px;line-height:1.3;cursor:pointer}
#shell-nav summary{list-style:none;font-weight:650}#shell-nav summary::after{content:'⌄';margin-left:auto}#shell-nav details[open]>summary::after{content:'⌃'}
#shell-nav summary::-webkit-details-marker{display:none}
#shell-nav nav a:hover,#shell-nav summary:hover{background:#ffffff12}
#shell-nav nav a.selected{background:var(--lime);color:#122a20;font-weight:750;box-shadow:inset 3px 0 #a6d34b}
#shell-nav .nav-children{border-left:1px solid #ffffff2e;margin-left:17px;padding-left:10px}#shell-nav .nav-children a{font-size:13px;padding:12px 10px}
#shell-nav a:focus-visible,#shell-nav summary:focus-visible{outline:2px solid var(--lime);outline-offset:1px}
.sidebar-foot{color:#a4b9ad;font-size:11px;margin:30px 10px 0;margin-top:auto;padding-top:35px}
.route-page:not(.is-active),.legacy-note{display:none!important}
.route-page{max-width:1600px;margin:0!important;min-width:0}
#breadcrumbs{font-size:12px;letter-spacing:.5px;margin:0 0 16px;color:#75837c}
.section-heading{margin:0 0 23px;align-items:center}.section-heading h2{margin:0;font-size:30px;letter-spacing:-.8px}
#home-panel h1{font-size:40px;letter-spacing:-1.2px}.intro{font-size:16px}
.home-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px;margin-top:28px}.home-links a{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;text-decoration:none;color:var(--forest);display:flex;flex-direction:column;gap:12px}.home-links strong{font-size:19px}.home-links span{font-size:14px;color:var(--muted)}
button{border-radius:7px;font-size:14px}input,select{font-size:14px}.inline-form{background:#fff;border:1px solid var(--line);padding:18px;border-radius:10px;align-items:flex-end;gap:14px;flex-wrap:wrap}.inline-form label{flex:1;min-width:155px;font-size:12px}.inline-form button{margin:0;height:45px}.inline-form input,.inline-form select{height:45px;padding:10px 12px;border-color:#cdd8cf}.hint{font-size:13px}
.catalog-table,.table-wrap{background:white;border:1px solid var(--line);border-radius:10px;overflow:auto;margin:18px 0}
.catalog-row{display:grid;grid-template-columns:minmax(280px,2.5fr) 125px minmax(150px,1.1fr) minmax(130px,1fr);gap:20px;align-items:center;padding:13px 18px;border-bottom:1px solid var(--line);font-size:13px;min-width:740px}.catalog-row:last-child{border:0}.catalog-row:not(.table-heading):hover{background:#f5f9ed}
.table-heading{background:#f0f3f1;color:#6c7c73;font-size:12px;font-weight:650}
.product-open{display:flex;gap:14px;align-items:center;text-align:left;background:transparent;padding:0;width:100%;font-weight:400}.product-open img,.table-photo-missing{width:60px;height:60px;object-fit:contain;background:#eef1eb;border-radius:7px;flex:none}.table-photo-missing{display:grid;place-items:center;color:#849387}.product-open strong{font-weight:650;font-size:14px;line-height:1.4;display:block}.product-open small,.text-button small,.data-table td small{display:block;font-size:12px;color:#75837c;margin-top:5px}
.table-stock .stock-quantity{font-size:13px;font-weight:750;display:inline-block;padding:6px 9px;border-radius:6px;margin:0}.table-place,.table-sheet{overflow-wrap:anywhere;color:#60746a}
#catalog-detail.product-drawer{position:fixed;inset:74px 0 0 auto;width:min(440px,100vw);max-width:none;margin:0;padding:24px;background:#fff;border:0;border-left:1px solid var(--line);border-radius:0;box-shadow:-12px 0 38px #173b301a;overflow-y:auto;overscroll-behavior:contain;z-index:35}
#catalog-close{float:right;padding:8px 11px;font-size:12px;margin-bottom:18px}
#catalog-detail-name{clear:both;font-size:24px;letter-spacing:-.4px;line-height:1.3}
#catalog-gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:20px 0}
#catalog-gallery .gallery-photo:first-child{grid-column:1/-1}#catalog-gallery img{height:75px;border:1px solid var(--line);border-radius:8px;background:#f4f5f2}
#catalog-gallery .gallery-photo:first-child img{height:265px}.gallery-photo:hover img{border-color:#9bbb65}
#catalog-detail-fields p{font-size:14px;padding:10px 0;border-bottom:1px solid #e9eee8;margin:0;line-height:1.5}#catalog-detail-fields .stock-quantity{display:inline-block;margin:8px 0;padding:8px 12px;font-size:17px}#catalog-detail-fields button{display:block;margin:10px 0;text-align:left}
.photo-viewer{z-index:100}.photo-viewer::backdrop{z-index:99}
.section-tabs{display:flex;gap:0;background:#eef2ef;width:fit-content;border:1px solid var(--line);border-radius:8px;overflow:hidden;margin:23px 0}.section-tabs button{background:transparent;border-radius:0;padding:15px 23px;color:#66796e;border-bottom:3px solid transparent}.section-tabs button[aria-selected=true]{background:var(--lime);border-bottom-color:var(--forest);color:#19372a}
.help-box{background:#edf2e8;border:1px solid #dce5d3;border-radius:8px;padding:13px 17px;font-size:13px;color:#48604e}.help-box summary{cursor:pointer;font-weight:650}.help-box p{line-height:1.65;max-width:850px}
.data-table{width:100%;border-collapse:collapse;font-size:13px;min-width:740px}.data-table th{background:#f0f3f1;color:#6c7c73;text-align:left;font-size:12px;padding:14px;font-weight:650;white-space:nowrap}.data-table td{border-top:1px solid var(--line);padding:14px;vertical-align:middle;line-height:1.45}.data-table tr:hover td{background:#f7faf2}.data-table td:first-child{min-width:220px;max-width:330px}.text-button{background:none;color:#203e2e;text-align:left;padding:0;font-weight:400;font-size:13px}.text-button:hover strong{text-decoration:underline}
.delta-zero,.delta-changed,.delta-neutral{display:inline-block;min-width:38px;text-align:center;padding:5px 10px;border-radius:6px;font-weight:700;font-variant-numeric:tabular-nums}.delta-zero{background:#e6f3d7;color:#356426}.delta-changed{background:#fff0c8;color:#8b5316}.delta-neutral{background:#eef1f0;color:#75837c}
.empty-state{padding:35px;text-align:center;color:#75837c}
#history-form label{min-width:150px}.history-columns,.history-summary{grid-template-columns:135px minmax(100px,1fr) minmax(120px,1.2fr) 80px minmax(110px,1.1fr) minmax(120px,1.1fr);gap:16px}.history-columns{background:#edf1ed;border-radius:8px 8px 0 0;padding:14px}.history-summary{padding:15px 14px;border-bottom:1px solid var(--line);background:#fff}.history-event[open] .history-summary{background:#e8f3d4}.history-expanded{background:#f9fbf5}.history-summary:hover{background:#f0f6e8}
.access-tabs button[aria-selected=true]{background:var(--lime);border-bottom:3px solid var(--forest)}.telegram-user{border-radius:10px}#users-list{margin-top:20px}
#operations-cards{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
#notice:not([hidden]){position:relative;z-index:45}
#menu-toggle{display:none}
@media(max-width:1100px){:root{--sidebar:210px}.shell-mode>main{padding:96px 20px 28px}.shell-mode>header{padding:15px 20px}.catalog-row{gap:12px}.history-columns,.history-summary{gap:10px;grid-template-columns:110px 1fr 1.1fr 65px 1fr 1.1fr}}
@media(max-width:850px){.shell-mode>header{left:0;height:65px;padding:12px 16px}.shell-mode>header .brand{display:none}.shell-mode>main{margin:0;padding:86px 16px 28px}.shell-mode>footer{margin:0;padding:18px 16px}
#shell-nav{transform:translateX(-100%);width:255px;transition:transform .18s}.menu-open #shell-nav{transform:translateX(0)}#menu-shade{position:fixed;inset:0;background:#102e2670;z-index:30}
#menu-toggle{display:block;padding:8px 13px;font-size:20px}.header-actions{flex-direction:row;align-items:center;gap:10px}.tag{font-size:11px;padding:8px}.section-heading h2{font-size:26px}.section-heading{display:flex;flex-wrap:wrap;gap:12px}
#catalog-detail.product-drawer{inset:65px 0 0 auto;width:min(440px,100vw);z-index:35}.drawer-open{overflow:hidden}
.section-tabs{width:100%}.section-tabs button{flex:1;padding:13px 6px;font-size:12px}.inline-form{padding:14px;gap:12px}.inline-form button{width:auto}
.history-columns{display:none}.history-summary{grid-template-columns:1fr 1fr;gap:8px 15px}.history-cell:before{content:attr(data-label) ': ';font-size:11px;color:#75837c}
.product-grid{grid-template-columns:1fr}.home-links{grid-template-columns:1fr}.status{padding:22px}.status h2{font-size:23px}#home-panel h1{font-size:32px}
}
@media(max-width:600px){
.inline-form{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch}.inline-form label,#history-form label{min-width:0;width:100%}.inline-form button{width:100%}
.catalog-row{min-width:0;grid-template-columns:1fr;gap:9px;padding:16px}.catalog-row.table-heading{display:none}
.product-open{gap:12px}.product-open img,.table-photo-missing{width:56px;height:56px}.product-open strong{font-size:14px}
.table-stock,.table-place,.table-sheet{margin-left:68px}.table-place::before{content:'Место: ';font-weight:650}.table-sheet{font-size:11px}
.table-stock .stock-quantity{font-size:14px}.catalog-table{overflow:hidden}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.catalog-price{font-weight:750;margin:7px 0 0;color:#193e31}.catalog-oe{display:block;overflow-wrap:anywhere;line-height:1.4}#catalog-detail-fields p{overflow-wrap:anywhere;white-space:pre-line}
.wheel-filters {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:16px 0;align-items:end;padding:16px;background:#eef3e8;border-radius:12px;}
.wheel-filters[hidden] {display:none;}
.wheel-filters label {display:grid;gap:8px;font-size:14px;}
.wheel-filters select {width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #b5c6b8;border-radius:8px;background:white;color:#183c32;font:inherit;}
.catalog-stock-filter {display:flex;flex-direction:row;align-items:center;gap:10px;min-height:44px;margin:12px 0;cursor:pointer;font-weight:600;}
.catalog-stock-filter input[type=checkbox] {width:20px;height:20px;min-height:20px;accent-color:#214c3b;flex:none;}
.wheel-field {min-width:0;display:grid;gap:8px;font-size:14px;font-weight:600;}
.wheel-multi {position:relative;min-width:0;}
.wheel-multi summary {cursor:pointer;min-height:44px;box-sizing:border-box;padding:10px 12px;background:#fff;border:1px solid #b5c6b8;border-radius:8px;overflow-wrap:anywhere;}
.wheel-multi[open] {z-index:5;}
.wheel-field:has(.wheel-multi[open]) {grid-column:1 / -1;}
.wheel-options {display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:5px;position:static;max-height:none;overflow:visible;background:white;border:1px solid #b5c6b8;border-radius:8px;padding:10px;margin-top:6px;}
.wheel-filters .wheel-option {display:flex;flex-direction:row;align-items:center;gap:7px;min-height:32px;margin:0;padding:2px 7px;cursor:pointer;font-weight:400;border:1px solid #e0e8de;border-radius:6px;white-space:nowrap;}
.wheel-option:has(input:checked) {background:#e2f4bd;border-color:#8cb54b;font-weight:600;}
.wheel-option:hover {background:#eef3e8;}
.wheel-options input[type=checkbox] {width:18px;height:18px;min-height:18px;flex:none;accent-color:#214c3b;}
.wheel-options button {grid-column:1 / -1;justify-self:start;width:auto;padding:7px 12px;margin:0 0 3px;}
@media(max-width:600px){.wheel-options{grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:5px;padding:8px}.wheel-filters .wheel-option{min-height:40px}}
