/* 0.6.11 — compact office workspace. Warehouse and sign-in selectors are untouched. */
.work-mode .work-header.office-sidebar{position:fixed;inset:0 auto 0 0;z-index:15;display:flex;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:0;width:228px;height:100vh;height:100dvh;min-height:0;overflow:auto;padding:28px 16px 20px;background:#101f32;border:0;border-right:1px solid #30475f}
.work-mode .office-sidebar .work-brand{display:flex;min-height:50px;height:auto;max-width:none;flex:none;border:0;padding:0 4px;margin-bottom:34px;background:none}
.office-sidebar .brand-lockup{gap:10px;min-width:0}
.work-mode .office-sidebar .brand-symbol{width:33px;height:33px}
.work-mode .office-sidebar .logo .brand-word{font-size:23px;letter-spacing:-.6px}
.work-mode .office-sidebar .brand-caption{font-size:5.7px;letter-spacing:1.25px}
.office-nav-caption{display:block;padding:0 13px;margin-bottom:12px;color:#9cb2ce;font-size:10px;font-weight:700;letter-spacing:1.8px;text-transform:uppercase}
.work-mode .work-header.office-sidebar .work-nav{display:flex;flex-direction:column;align-items:stretch;align-self:stretch;flex:0 0 auto;order:0;gap:8px;width:100%;height:auto;min-height:0;padding:0;overflow:visible}
.work-mode .work-header.office-sidebar .work-nav button{position:relative;justify-content:flex-start;gap:12px;min-height:49px;width:100%;min-width:0;padding:13px 12px;background:transparent;border:1px solid transparent;border-radius:8px;color:#c5d5e8;font-size:13px;line-height:1.35;white-space:normal;text-align:left;box-shadow:none}
.work-mode .work-header.office-sidebar .work-nav button>span{min-width:0;overflow-wrap:anywhere}
.work-mode .work-header.office-sidebar .work-nav button:hover{background:#1a304a;border-color:#35516f;color:#f4f8fd}
.work-mode .work-header.office-sidebar .work-nav button.active{background:#263648;color:#ffba79;border-color:#7d5c3e;box-shadow:inset 3px 0 #ffa24c;font-weight:750}
.office-sidebar .office-nav-icon{width:20px;height:20px;stroke-width:1.7}
.work-mode .work-header.office-sidebar .work-account{display:flex;flex-direction:column;align-items:stretch;flex:none;gap:14px;width:100%;min-height:0;height:auto;margin:36px 0 0;padding:20px 5px 0;border-top:1px solid #30475f}
.work-mode .work-header.office-sidebar .work-nav+.work-account{margin-top:auto;padding-top:22px}
.work-mode .office-sidebar .work-online{color:#a9c1d9;font-size:12px;gap:8px;margin:22px 8px 0}
.work-mode .office-sidebar .work-online:before{width:7px;height:7px;background:#75dbb2}
.work-mode .office-sidebar .work-online.office-offline{color:#ffb0b9}
.work-mode .office-sidebar .work-online.office-offline:before{background:#ff9caa}
.work-mode .work-header.office-sidebar .work-role{display:flex;align-items:center;gap:10px;max-width:none;margin:0;padding:7px 4px;border:0;background:transparent;border-radius:0;color:#e4edf8;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.office-account-avatar{display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px solid #455f7c;border-radius:50%;background:#213852;color:#ffbc7e;font-size:14px;font-weight:700}
.office-sidebar .work-role>span:last-child{min-width:0}
.office-sidebar .work-role small{display:block;font-size:11px;color:#9db2cb;margin-top:2px}
.work-mode .work-header.office-sidebar .work-exit{align-self:flex-start;min-height:34px;margin-left:48px;padding:3px 0;border:0;border-radius:4px;background:transparent;color:#a6bad3;font-size:11px;text-align:left}
.work-mode .work-header.office-sidebar .work-exit:hover{color:#fff;background:none;text-decoration:underline}

/* The sibling scope also includes plan/materials, which use the shared header. */
.office-sidebar+.work-office{width:auto;max-width:none;min-width:0;margin:0 0 0 228px;padding:28px 30px 36px;min-height:100vh}
.office-sidebar+.work-office .work-hero,.office-sidebar+.work-office .production-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px;padding:0}
.office-sidebar+.work-office .work-hero h1,.work-mode .office-sidebar+.work-office .production-heading h1{font-size:32px;font-weight:750;letter-spacing:-1px;line-height:1.15;margin:0}
.office-sidebar+.work-office .work-eyebrow,.office-sidebar+.work-office .section-eyebrow{display:block;font-size:9px;letter-spacing:1.6px;margin:0 0 9px;color:#9fb5d0}
.office-sidebar+.work-office .work-hero p,.office-sidebar+.work-office .production-heading p{font-size:12px;line-height:1.5;margin:9px 0 0;color:#aabed6}
.office-sidebar+.work-office .work-hero .btn,.office-sidebar+.work-office .production-heading .btn{flex:none;min-width:0;min-height:44px;padding:12px 17px;border-radius:8px;font-size:13px;gap:10px;justify-content:center}
.office-sidebar+.work-office .work-hero .btn>span{font-size:21px}
.office-sidebar+.work-office .work-filterbar{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin:0 0 22px;padding:0 0 16px;border:0;border-bottom:1px solid #30465f;border-radius:0;background:none}
.office-sidebar+.work-office .work-filterbar button{display:flex;gap:8px;flex:0 0 auto;min-height:38px;padding:8px 11px;border:1px solid transparent;border-radius:7px;background:transparent;color:#aec1da;box-shadow:none;font-size:12px;font-weight:600}
.office-sidebar+.work-office .work-filterbar button:hover{background:#1b2e46;color:#fff}
.office-sidebar+.work-office .work-filterbar button.active{background:#26394d;border-color:#98704a;color:#ffbe83;box-shadow:none}
.office-sidebar+.work-office .work-filterbar small{min-width:20px;min-height:20px;padding:3px 5px;border-radius:4px;background:#223b57;color:#d5e5f6;font-size:10px}
.office-sidebar+.work-office .work-filterbar button.active small{background:#62452c;color:#fff0df}
.office-sidebar+.work-office .trash-hint{margin:0 0 18px;font-size:12px;line-height:1.5;color:#b3c7df}

/* One visible selection and one detail pane; actions always target that selection. */
.office-workspace-grid{display:grid;grid-template-columns:minmax(280px,31%) minmax(0,1fr);gap:20px;align-items:start;min-width:0}
.office-job-list.work-journal{position:sticky;top:24px;display:flex;flex-direction:column;gap:12px;min-width:0;max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain;border:0;padding:2px 3px 4px 2px;scrollbar-width:thin;scrollbar-color:#3c536f transparent}
.office-job-list .work-job{flex:none;min-width:0;border:1px solid #304a67;border-radius:10px;background:#14263b;overflow:hidden}
.office-job-list .work-job.expanded{background:#1b2d43;border:1px solid #ffa24c;box-shadow:inset 3px 0 #ffa24c}
.office-job-list .work-job-heading,.office-job-list .work-job.expanded .work-job-heading{display:flex;flex-direction:column;align-items:stretch;gap:13px;min-height:0;width:100%;padding:18px;text-align:left;background:transparent;border:0;color:#edf3fb}
.office-job-list .work-job-heading:hover{background:#21364e}
.office-job-list .work-job-heading:focus-visible{outline:3px solid #ffd09f;outline-offset:-4px;border-radius:8px}
.office-job-list .work-job-title b{font-size:16px;line-height:1.35;font-weight:700;overflow-wrap:anywhere;color:#edf3fb}
.office-job-list .work-job-title small{font-size:10px;line-height:1.45;overflow-wrap:anywhere;color:#9eb5d0;margin:7px 0 0}
.office-job-status{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.office-job-list .work-job-heading .chip{display:inline-flex;min-width:0;max-width:100%;gap:6px;padding:4px 8px;border-radius:5px;font-size:10px;line-height:1.4;font-weight:600;background:#243b54!important;color:#c6d9ef}
.office-job-list .work-job-heading .chip.orange{background:#493522!important;color:#ffc082}
.office-job-list .work-job-heading .chip.green{background:#1b4136!important;color:#8ce4be}
.office-job-list .work-job-heading .chip.blue{background:#203f62!important;color:#aad3ff}
.office-job-list .work-job-heading .chip.red{background:#4b2938!important;color:#ffb1bf}
.office-job-list .work-job-heading .chip .dot{width:5px;height:5px}
.office-job-meta{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.office-job-list .work-due{display:block;max-width:100%;font-size:11px;line-height:1.5;color:#abc2db;overflow-wrap:anywhere}
.office-job-list .work-due.office-due-overdue{color:#ffb1b8}
.office-job-list .work-job-count{font-size:17px;letter-spacing:-.3px;line-height:1.3;color:#eff5fd;text-align:left;white-space:nowrap}
.office-job-list .work-job-count small{display:inline;font-size:11px;color:#b2c7e0;font-weight:400;letter-spacing:0}
.office-job-list .progress{width:100%;height:5px;margin:0;background:#2e4660}
.office-job-list .progress>span{background:#75dbb2}
.office-job-alert{display:block;color:#ffd09b;font-size:10px;line-height:1.5;overflow-wrap:anywhere}
.office-workspace-grid>.office-detail-panel{min-width:0;margin:2px 0 0;padding:23px;border:1px solid #35506d;border-radius:11px;background:#14263b;box-shadow:0 5px 20px #0001}
.office-detail-panel .work-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 18px}
.office-detail-panel .work-detail-heading>div{min-width:0}
.office-detail-meta{font-size:11px;line-height:1.5;color:#a9bfd9;margin-bottom:8px;overflow-wrap:anywhere}
.office-detail-panel .work-detail-heading h2{font-size:23px;line-height:1.3;font-weight:750;letter-spacing:-.5px;color:#f2f6fc;margin:0;overflow-wrap:anywhere}
.office-detail-panel .work-detail-heading>.chip{flex:none;font-size:10px;padding:5px 8px;border-radius:6px;line-height:1.4}
.office-detail-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.office-detail-panel .office-detail-toolbar>.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:10px 13px;border-radius:7px;font-size:12px;line-height:1.2;white-space:normal}
.office-detail-toolbar>.btn:last-child{margin-left:auto}
.office-detail-progress{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px;color:#b4c9e1;font-size:12px}
.office-detail-panel .work-detail-progress{font-size:14px;line-height:1.4;color:#d9e7f7}
.office-detail-progress strong{font-size:19px;font-weight:750;color:#f1f6fc}
.office-detail-panel>.progress{height:6px;margin:0 0 24px;background:#2c4560;border-radius:8px}
.office-detail-panel>.progress>span{background:#75dbb2}
.office-detail-panel .office-change-warning{border:1px solid #74583c;border-left:3px solid #ffae63;border-radius:6px;padding:11px 13px;margin:0 0 18px;background:#352d25;color:#ffd09d!important;font-size:12px;line-height:1.5}
.office-detail-panel .work-job-note{font-size:13px;color:#c4d5e9;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 18px}
.office-composition-title{display:flex;align-items:baseline;justify-content:space-between;gap:15px;border-top:1px solid #304a65;padding-top:20px;margin-bottom:15px}
.office-composition-title h3{font-size:15px;font-weight:700;line-height:1.4;color:#edf4fc;margin:0}
.office-composition-title>span{font-size:11px;color:#a4bdd8;white-space:nowrap}
.office-detail-panel .work-composition-columns,.office-detail-panel .work-composition-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(115px,.4fr) 86px;gap:15px;align-items:center}
.office-detail-panel .work-composition-columns{font-size:9px;letter-spacing:.25px;line-height:1.4;padding:10px 0;border-color:#35516e;color:#aac0d9}
.office-detail-panel .work-composition-line{padding:16px 0;font-size:12px;line-height:1.55;border-color:#2c4662;color:#d4e2f3;min-width:0}
.office-detail-panel .office-product{gap:12px;align-items:center;min-width:0}
.office-detail-panel .office-product .product-photo{flex:none;width:56px;height:56px;border-radius:7px}
.office-detail-panel .work-composition-line strong{font-size:14px;line-height:1.4;color:#eef5fd;font-weight:700;overflow-wrap:anywhere}
.office-detail-panel .work-composition-line .sku{font-size:10px;line-height:1.5;margin-top:6px;color:#a5bdd8;overflow-wrap:anywhere}
.office-detail-panel .office-line-kit{color:#d5e5f7;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.office-detail-panel .work-composition-line>b{font-size:23px;font-weight:750;text-align:right;letter-spacing:-.6px;color:#f0f6fd;white-space:nowrap}
.office-detail-panel .work-composition-line>b small{font-size:13px;font-weight:400;letter-spacing:0;display:inline;color:#a8bfdc}
.office-detail-panel .work-composition-line.complete>b{color:#89e4be}
.office-detail-panel .work-composition-line .work-warning{font-size:11px;color:#ffd09b!important;line-height:1.5;white-space:normal}
.office-detail-panel .line-change{font-size:10px;line-height:1.4;max-width:100%;margin-top:9px;padding:6px 8px}
.office-detail-panel .line-change strong{font-size:10px;color:inherit}
.office-detail-panel .line-change span{font-size:10px}
.office-detail-panel .source-list{border:1px solid #35506d;border-radius:7px;margin:20px 0 0;padding:12px 14px;font-size:11px;line-height:1.5;color:#b4c9e1;background:#122238}
.office-detail-panel .source-list pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;max-width:100%;margin-top:12px}
.office-detail-panel .work-detail-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;border-top:1px solid #2c4662;margin-top:20px;padding-top:18px}
.office-detail-panel .work-detail-footer>.row{margin-left:auto;flex-wrap:wrap}
.office-detail-panel .work-detail-footer>.small{flex-basis:100%;line-height:1.6;overflow-wrap:anywhere}
.office-detail-panel .work-detail-footer .btn{min-height:34px;padding:8px 11px;border-radius:6px;font-size:11px;line-height:1.35;white-space:normal}
.office-detail-panel .work-detail-footer .btn.red{border:1px solid #6d3c4e;background:#392737;color:#ffbdc7}
.office-empty{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:350px;padding:40px 24px;border:1px solid #304a67;border-radius:10px;background:#14263b}
.office-empty h2{font-size:25px;color:#dbe8f8}
.office-empty p{font-size:13px;line-height:1.65;color:#aac0d9;max-width:480px}
.office-sidebar+.work-office .production-totals{margin:22px 0}
.office-sidebar+.work-office .report-filters{padding:16px;background:#14263b;border:1px solid #35506d;border-radius:9px;gap:13px}
.office-sidebar+.work-office .report-filters .field{min-width:0}
.office-sidebar+.work-office .team-columns{gap:20px;min-width:0}
.office-sidebar+.work-office .team-panel{min-width:0;border-radius:10px;padding:22px}
.office-sidebar+.work-office .team-panel input{min-width:0;width:100%}
.office-sidebar+.work-office .catalog-grid{gap:18px}
.office-sidebar+.work-office .catalog-card{min-width:0;border-radius:10px}

@media(min-width:1600px){
 .office-sidebar+.work-office{padding:32px 38px 40px}
 .office-workspace-grid{grid-template-columns:340px minmax(0,1fr);gap:24px}
 .office-workspace-grid>.office-detail-panel{padding:28px}
 .office-detail-panel .work-composition-columns,.office-detail-panel .work-composition-line{grid-template-columns:minmax(0,1fr) minmax(165px,.4fr) 118px;gap:24px}
 .office-detail-panel .work-composition-line strong{font-size:17px}
 .office-detail-panel .office-product .product-photo{width:68px;height:68px}
 .office-detail-panel .office-line-kit{font-size:14px}
 .office-detail-panel .work-composition-line .sku{font-size:11px}
}
@media(max-width:1179px){
 .office-sidebar+.work-office{padding:24px}
 .office-workspace-grid{display:flex;flex-direction:column;gap:20px}
 .office-job-list.work-journal{position:static;display:flex;flex-direction:row;align-items:stretch;max-height:none;width:100%;overflow:auto;padding:2px 2px 10px;gap:12px;scroll-snap-type:x proximity}
 .office-job-list .work-job{width:275px;max-width:85%;scroll-snap-align:start}
 .office-job-list .work-job-heading,.office-job-list .work-job.expanded .work-job-heading{height:100%;padding:16px;gap:11px}
 .office-workspace-grid>.office-detail-panel,.office-empty{width:100%}
 .office-sidebar+.work-office .team-columns{grid-template-columns:1fr}
 .office-sidebar+.work-office .worker-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
 .work-mode .work-header.office-sidebar{position:static;display:grid;grid-template-columns:1fr auto;gap:16px;width:auto;height:auto;min-height:0;overflow:visible;padding:18px 22px;border-right:0;border-bottom:1px solid #30475f}
 .work-mode .office-sidebar .work-brand{grid-column:1;grid-row:1;margin:0;padding:0;min-height:36px}
 .office-nav-caption{display:none}
 .work-mode .work-header.office-sidebar .work-account,.work-mode .work-header.office-sidebar .work-nav+.work-account{grid-column:2;grid-row:1;display:flex;flex-direction:row;align-items:center;gap:12px;width:auto;min-height:0;margin:0;padding:0;border:0}
 .work-mode .office-sidebar .work-online{font-size:10px;margin:0;gap:6px}
 .work-mode .work-header.office-sidebar .work-role{display:none}
 .work-mode .work-header.office-sidebar .work-exit{margin:0;align-self:center;min-height:32px;font-size:10px}
 .work-mode .work-header.office-sidebar .work-nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .work-mode .work-header.office-sidebar .work-nav button{padding:11px 12px;min-height:43px;font-size:11px;gap:9px;border-color:#2f4864;background:#14283f}
 .work-mode .work-header.office-sidebar .work-nav button.active{background:#263648;border-color:#98704a}
 .office-sidebar .office-nav-icon{width:17px;height:17px}
 .office-sidebar+.work-office{margin:0;padding:24px 22px;min-height:0}
 .office-sidebar+.work-office .work-hero h1,.work-mode .office-sidebar+.work-office .production-heading h1{font-size:29px}
}
@media(max-width:600px){
 .work-mode .work-header.office-sidebar{padding:16px;gap:16px 10px;grid-template-columns:minmax(0,1fr) auto}
 .work-mode .office-sidebar .logo .brand-word{font-size:21px}
 .work-mode .office-sidebar .brand-symbol{width:28px;height:28px}
 .work-mode .office-sidebar .brand-caption{font-size:5px}
 .work-mode .office-sidebar .brand-lockup{gap:8px}
 .work-mode .work-header.office-sidebar .work-account{flex-direction:column;align-items:flex-end;gap:4px}
 .work-mode .work-header.office-sidebar .work-exit{min-height:24px;font-size:9px;align-self:flex-end}
 .work-mode .work-header.office-sidebar .work-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .work-mode .work-header.office-sidebar .work-nav button{font-size:11px;min-height:44px}
 .office-sidebar+.work-office{padding:22px 16px 28px}
 .office-sidebar+.work-office .work-hero,.office-sidebar+.work-office .production-heading{align-items:flex-start;flex-wrap:wrap;flex-direction:row;gap:16px;margin-bottom:20px}
 .office-sidebar+.work-office .work-hero h1,.work-mode .office-sidebar+.work-office .production-heading h1{font-size:28px}
 .office-sidebar+.work-office .work-hero p,.office-sidebar+.work-office .production-heading p{font-size:11px;line-height:1.55}
 .office-sidebar+.work-office .work-hero .btn{min-height:40px;padding:10px 13px;font-size:12px}
 .office-sidebar+.work-office .work-filterbar{gap:5px;margin-bottom:16px;padding-bottom:14px}
 .office-sidebar+.work-office .work-filterbar button{flex:1 1 auto;padding:8px 9px;min-height:36px;font-size:10px;gap:6px}
 .office-sidebar+.work-office .work-filterbar small{font-size:9px;min-height:18px;min-width:18px}
 .office-job-list .work-job{width:260px;max-width:90%}
 .office-job-list .work-job-title b{font-size:15px}
 .office-job-list .work-job-count{font-size:16px}
 .office-job-list .work-due{font-size:10px}
 .office-workspace-grid{gap:14px}
 .office-workspace-grid>.office-detail-panel{padding:18px 15px;border-radius:9px}
 .office-detail-panel .work-detail-heading{gap:10px;flex-wrap:wrap;margin-bottom:16px}
 .office-detail-panel .work-detail-heading h2{font-size:20px}
 .office-detail-meta{font-size:10px}
 .office-detail-panel .work-detail-heading>.chip{font-size:9px}
 .office-detail-toolbar{gap:6px;margin-bottom:20px}
 .office-detail-panel .office-detail-toolbar>.btn{font-size:11px;padding:10px;min-height:38px}
 .office-detail-toolbar>.btn:last-child{margin-left:0}
 .office-detail-panel .work-detail-progress{font-size:12px}
 .office-detail-progress strong{font-size:17px}
 .office-detail-panel .work-composition-columns{display:none}
 .office-detail-panel .work-composition-line{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px 0}
 .office-detail-panel .office-product{grid-column:1/-1;align-items:flex-start;gap:11px}
 .office-detail-panel .office-product .product-photo{width:58px;height:58px}
 .office-detail-panel .work-composition-line strong{font-size:15px}
 .office-detail-panel .work-composition-line .sku{font-size:10px}
 .office-detail-panel .office-line-kit{grid-column:1;font-size:12px;line-height:1.5;padding-left:69px}
 .office-detail-panel .office-line-kit:before{content:'1 комплект';display:block;margin-bottom:3px;color:#9eb5d0;font-size:10px}
 .office-detail-panel .work-composition-line>b{grid-column:2;font-size:24px;align-self:end}
 .office-detail-panel .work-composition-line>b:after{content:'комплектов';display:block;margin-top:3px;font-size:9px;color:#a6bdd7;letter-spacing:0;font-weight:400}
 .office-detail-panel .work-composition-line>b small{font-size:14px}
 .office-detail-panel .source-list{font-size:11px;padding:12px}
 .office-detail-panel .work-detail-footer{align-items:flex-start;gap:10px}
 .office-detail-panel .work-detail-footer .btn{font-size:10px}
 .office-sidebar+.work-office .worker-stat-grid{grid-template-columns:1fr}
 .office-sidebar+.work-office .report-filters{gap:10px;padding:13px}
 .office-sidebar+.work-office .team-panel{padding:18px}
 .office-empty{min-height:280px}
 .office-empty h2{font-size:22px}
}
@media print{
 .office-sidebar{display:none!important}
 .office-sidebar+.work-office{margin:0!important;padding:0!important;min-height:0}
 .office-job-list{display:none!important}
 .office-workspace-grid{display:block}
}
