:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#263a39;background:#f5f7f8;font-synthesis:none;--accent:#147c70;--accent-hover:#0c665c;--muted:#82908f;--border:#e6eceb;--sidebar:248px}*{box-sizing:border-box}body{margin:0;font-size:13px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}a{color:inherit;text-decoration:none}.icon{width:20px;height:20px;flex-shrink:0;vertical-align:middle}button{color:inherit}button:focus-visible,a:focus-visible,svg rect:focus-visible{outline:3px solid #8cd5c5;outline-offset:3px}input:not([type="checkbox"]):focus,select:focus{border-color:#50a496;outline:3px solid #d9eee9}h1,h2,h3,p{margin:0}button{border:0;background:none}.sidebar{width:var(--sidebar);position:fixed;left:0;top:0;bottom:0;background:white;border-right:1px solid var(--border);display:flex;flex-direction:column;padding:27px 16px 0;z-index:5}.brand{display:flex;align-items:center;gap:10px;padding:0 8px;font-size:24px;font-weight:750;letter-spacing:-.7px}.brand-mark{display:flex;width:39px;height:39px;align-items:center;justify-content:center;border-radius:10px;background:var(--accent);color:white;font-weight:800;font-size:26px;box-shadow:0 3px 7px #0b766322}.brand-sub{display:block;font-size:8.3px;font-weight:500;letter-spacing:.15px;margin-top:2px;color:#81908d}.version{font-size:9px;font-weight:600;align-self:flex-start;margin:5px 0 0 auto;color:#728b85;border:1px solid #e0eae6;background:#f6faf8;letter-spacing:0;padding:3px 5px;border-radius:4px}.workspace{display:flex;gap:9px;align-items:center;border:1px solid var(--border);border-radius:8px;padding:12px 10px;margin:29px 0 26px}.workspace-avatar{display:flex;align-items:center;justify-content:center;background:#eff5f3;border:1px solid #e6eeeb;color:#6d8e83;width:30px;height:30px;border-radius:7px;font-size:10px;font-weight:700}.workspace strong{font-size:10.5px;display:block;font-weight:650;white-space:nowrap}.workspace small{font-size:9px;color:var(--muted);margin-top:5px;display:block}.workspace-dot{height:6px;width:6px;background:#419c80;border-radius:50%;margin-left:auto}.nav-label{font-size:9px;letter-spacing:1.4px;color:#9ba6a4;padding:0 12px;margin-bottom:11px;font-weight:650}.nav-item{display:flex;width:100%;align-items:center;gap:12px;padding:12px 14px;border-radius:7px;color:#788481;font-weight:550;font-size:12px;margin-bottom:5px;text-align:left;transition:background .12s,color .12s}.nav-item:hover{background:#f5f8f7;color:#285d53}.nav-item.active{background:#e9f4ef;color:#137762;font-weight:650}.nav-item .icon{width:18px;height:18px}.nav-count{margin-left:auto;font-size:10px;color:#7e9690;font-weight:500}.active .nav-count{color:#338e75;background:#d9eee3;padding:1px 6px;border-radius:4px}.sidebar-bottom{margin-top:auto}.sidebar-bottom .nav-item{font-size:11px}.pilot-note{display:flex;gap:9px;background:#f5f8f7;padding:13px 11px;border:1px solid #eaf0ec;border-radius:7px;margin:16px 0}.pilot-note>.icon{width:15px;color:#70978b}.pilot-note strong{display:block;font-size:10px;font-weight:650}.pilot-note span{display:block;color:#8b9a94;font-size:9px;line-height:1.6;margin-top:4px}.connection{height:48px;border-top:1px solid var(--border);display:flex;align-items:center;gap:6px;font-size:8px;color:#899a94;white-space:nowrap}.connection i{width:5px;height:5px;border-radius:50%;background:#c18b63}.connection i.online{background:#50aa84}.connection>span{margin-left:auto;font-size:7.5px;color:#9fa9a5}.main-shell{margin-left:var(--sidebar)}.topbar{height:77px;display:flex;align-items:center;justify-content:space-between;padding:0 35px;background:#fff;border-bottom:1px solid var(--border)}.breadcrumb{display:flex;align-items:center;gap:15px;font-size:11px;color:#94a09d}.breadcrumb .icon{height:12px;width:12px;color:#bec9c5}.breadcrumb strong{font-weight:500;color:#4a625a}.topbar-right{display:flex;align-items:center;gap:12px}.today{font-size:11px;display:flex;align-items:center;gap:7px;color:#7b8c85}.today .icon{width:15px}.divider{width:1px;height:23px;background:var(--border);margin:0 7px}.avatar{display:flex;align-items:center;justify-content:center;width:32px;height:32px;color:#578d79;background:#eaf1ed;border:1px solid #dce7e1;border-radius:50%;font-size:12px;font-weight:600}.user-label{font-size:10px;font-weight:650}.user-label small{display:block;font-size:8px;color:#97a19e;font-weight:400;margin-top:4px}main{padding:31px 34px 0;max-width:1740px;margin:auto}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}.eyebrow{font-size:8px;font-weight:650;letter-spacing:1.5px;color:#94a49e;margin-bottom:9px}h1{font-size:26px;font-weight:650;letter-spacing:-.6px;color:#263e36;line-height:1.2}.page-head p{color:#92a09a;font-size:11px;margin-top:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:37px;padding:9px 15px;border-radius:6px;font-size:11px;font-weight:550;white-space:nowrap;border:1px solid transparent;transition:background .15s,box-shadow .15s}.btn .icon{width:15px;height:15px}.btn.primary{color:#fff;background:var(--accent);border-color:var(--accent);box-shadow:0 2px 4px #0c615510}.btn.primary:hover:not(:disabled){background:var(--accent-hover);box-shadow:0 3px 7px #0a665822}.btn.secondary{background:white;border-color:#dce5e1;color:#5e746a}.btn.secondary:hover:not(:disabled){background:#f5faf7}.btn.small{font-size:10px;min-height:32px;padding:6px 10px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.stat-card{border:1px solid var(--border);border-radius:9px;background:white;padding:18px 18px 17px;box-shadow:0 2px 3px #213a2d02}.stat-label{display:flex;align-items:center;justify-content:space-between;gap:7px;color:#83958c;font-size:10px;font-weight:500}.stat-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:7px}.stat-icon .icon{width:16px;height:16px}.blue{color:#5f8fbc;background:#edf4fa}.teal{color:#3c9c86;background:#eaf5ef}.violet{color:#9b85bd;background:#f3effa}.orange{color:#ce9a56;background:#fff6e9}.stat-card>strong{display:block;font-size:31px;line-height:1.2;color:#30483d;font-weight:650;letter-spacing:-.5px;margin:11px 0}.stat-card>strong>small{font-size:10px;font-weight:400;color:#9aa79f;margin-left:8px;letter-spacing:0}.stat-detail{font-size:9px;color:#99a69e}.panel{border:1px solid var(--border);background:white;border-radius:9px;margin-bottom:22px;overflow:hidden;box-shadow:0 2px 4px #213a2d02}.shift-panel{padding:17px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px}.shift-info{display:flex;align-items:center;gap:12px}.shift-symbol{display:flex;align-items:center;justify-content:center;width:35px;height:35px;border:1px solid #e6eee9;border-radius:8px;background:#f6f9f7;color:#6f9786}.shift-symbol>.icon{width:18px}.shift-info strong{font-size:11px;font-weight:600}.shift-info p{font-size:9px;color:#91a297;margin-top:6px}.shift-info p span{padding:0 5px}.shift-controls{display:flex;gap:10px;align-items:center}input,select{border:1px solid #dfe7e3;border-radius:5px;background:white;color:#52685e;min-height:36px;padding:8px 10px;font-size:11px;max-width:100%}input::placeholder{color:#a7b1ac}input[type=date]{padding:7px 9px;font-size:10px;color:#647d6d}.segmented{display:flex;background:#f4f7f5;border:1px solid #e8eee9;border-radius:5px;padding:3px;gap:2px}.segmented button{padding:6px 10px;font-size:10px;color:#92a197;border-radius:4px;min-height:28px}.segmented button.selected{background:white;box-shadow:0 1px 4px #314b3b12;color:#417a61;font-weight:600}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px 18px}h2{font-size:13px;font-weight:650;color:#364e41}.count-pill{font-size:9px;margin-left:6px;padding:2px 6px;background:#f0f5f2;color:#8da193;border-radius:4px;vertical-align:1px;font-weight:500}.panel-heading p{font-size:9px;color:#97a69b;margin-top:7px}.search-field{display:flex;align-items:center;border:1px solid #e5ece7;border-radius:5px;padding-left:10px;width:209px;background:#fcfdfc}.search-field>.icon{width:13px;height:13px;color:#a0afa4}.search-field input{width:100%;border:none;background:transparent;min-height:31px;padding:7px;font-size:9px;outline-offset:0}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}thead{background:#f8faf9}th{font-size:8px;letter-spacing:.35px;text-transform:uppercase;color:#9aa89f;font-weight:550;padding:11px 18px;border-top:1px solid #edf1ee;border-bottom:1px solid #edf1ee}td{font-size:10px;padding:18px;color:#687d70;border-bottom:1px solid #edf2ee}tr:last-child td{border-bottom:0}td strong{font-size:10px;font-weight:600;color:#41594a}td small{font-size:8px;display:block;color:#a0ada3;margin-top:5px}td small span{padding:0 3px}.normal{font-weight:500}.numeric{text-align:right}.muted{color:#a0aca3}.resource{display:inline-flex;gap:5px;align-items:center}.resource>.icon{width:12px;height:12px;color:#7a9b87}.person-avatar{display:inline-flex;align-items:center;justify-content:center;height:22px;width:22px;border-radius:50%;font-size:8px;background:#edf3ee;color:#7b9a83;margin-right:7px}.person-avatar.large{width:32px;height:32px;font-size:11px;margin:0}.badge{display:inline-flex;align-items:center;border:1px solid #e5ece7;border-radius:4px;background:#f7f9f8;padding:4px 6px;line-height:1;font-size:8px;font-weight:500;color:#9aaa9d;white-space:nowrap}.badge.success,.badge.teal{background:#edf7f1;color:#498e68;border-color:#e0f0e5}.badge.warning{background:#fff8e9;color:#bd9a54;border-color:#f6ecd4}.badge.blue{background:#edf4fb;color:#7196b8;border-color:#e2edf6}.row-actions{display:flex;gap:2px;justify-content:flex-end}.icon-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:5px;width:28px;height:28px;color:#9cae9f;flex-shrink:0}.icon-btn .icon{width:14px;height:14px}.icon-btn:hover{color:#4d8d67;background:#eef5ef}.icon-btn.danger:hover{color:#bc655e;background:#fdf0ed}.actions-cell{width:74px}.clickable{cursor:pointer}.clickable:hover,.row-selected{background:#f6faf6}.inline-icon{height:12px;width:12px;margin-right:6px;color:#a3b1a4}.empty-state{text-align:center;padding:35px 20px 40px;border-top:1px solid #edf1ee}.empty-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid #e1ebe3;background:#f4f8f4;border-radius:12px;margin:0 auto 14px;color:#88a791}.empty-icon>.icon{width:23px;height:23px}.empty-state h3{font-size:13px;color:#5e7965;font-weight:550}.empty-state p{font-size:10px;line-height:1.7;max-width:350px;margin:8px auto 18px;color:#a0afa3}.empty-state .btn{font-size:10px;min-height:32px}.no-results{padding:35px;text-align:center;color:#9aab9c;font-size:11px;border-top:1px solid #edf1ee}.panel-footnote{font-size:10px;padding:0 22px 15px;color:#9bab9d}.gantt-placeholder{position:relative;text-align:center;padding:25px 15px 32px;border-top:1px solid #f0f3f0;overflow:hidden}.gantt-placeholder>.icon{width:25px;height:25px;color:#a7bfae;margin:7px 0 12px}.gantt-placeholder h3{font-size:12px;color:#8aa190;font-weight:500}.gantt-placeholder p{color:#acb9ae;font-size:9px;margin-top:8px;position:relative;z-index:1}.placeholder-track{position:absolute;inset:15px 22px;background:repeating-linear-gradient(to right,transparent 0,transparent calc(16.666% - 1px),#f0f4ef calc(16.666% - 1px),#f0f4ef 16.666%);pointer-events:none;opacity:.6}.placeholder-track i{position:absolute;height:9px;background:#f2f6f0;border-radius:3px;top:22px;width:18%;left:7%}.placeholder-track i:nth-child(2){left:65%;top:58px;width:25%}.placeholder-track i:nth-child(3){left:39%;top:94px;width:16%}.legend{padding:14px 22px;border-top:1px solid #edf2ed;display:flex;gap:24px;justify-content:center}.legend span{font-size:8px;color:#96a899;display:flex;align-items:center;gap:6px}.legend i,.event-list i{width:7px;height:7px;display:inline-block;border-radius:2px}.event-setup{fill:#ac9bc7;background:#ac9bc7}.event-handling{fill:#e7bc7b;background:#e7bc7b}.event-machining{fill:#5dafa0;background:#5dafa0}.event-inspection{fill:#8dafd0;background:#8dafd0}.gantt-scroll{overflow-x:auto;padding:8px 32px 25px 22px}.gantt{display:grid;grid-template-columns:160px minmax(470px,1fr);min-width:630px}.gantt-axis-label{font-size:8px;letter-spacing:1px;color:#a2b3a5;padding-bottom:12px}.gantt-axis{position:relative;height:31px;margin-left:7px}.gantt-axis span{position:absolute;transform:translateX(-50%);font-size:8px;color:#a0b2a3;top:0}.gantt-machine{display:flex;align-items:center;gap:9px;min-height:63px;border-top:1px solid #edf2ed;padding-right:15px}.resource-icon{color:#89a991;background:#f3f7f0;border-radius:5px;padding:5px}.resource-icon>.icon{width:14px;height:14px}.gantt-machine strong{font-size:9px;display:block;color:#78947d;max-width:119px;overflow:hidden;text-overflow:ellipsis}.gantt-machine small{font-size:8px;color:#a3b4a6;margin-top:5px;display:block}.gantt-track{border-top:1px solid #edf2ed;display:flex;align-items:center;padding-left:7px;min-height:63px}.gantt-track svg{width:100%;height:46px;overflow:visible}.gantt-track rect{cursor:pointer}.gantt-track rect:hover,.gantt-track rect:focus,.event-selected{filter:brightness(.85);stroke:#277461;stroke-width:1}.calculation-time{display:flex;gap:5px;color:#7eaa8c;font-size:9px}.calculation-time .icon{width:12px;height:12px}.pilot-strip,.catalog-hint{display:flex;align-items:center;gap:10px;font-size:9px;line-height:1.7;color:#97a99a;padding:0 1px}.pilot-strip>.icon,.catalog-hint>.icon{width:14px;height:14px;color:#96b39b}.getting-started{margin-top:22px;display:flex;align-items:center;justify-content:space-between;padding:18px 21px;border:1px dashed #dce7dc;background:#f1f7f0;border-radius:8px;gap:20px}.getting-started h3{font-size:12px;color:#72937a;font-weight:550}.getting-started p{font-size:9px;color:#9eb3a2;margin-top:6px}.getting-started .btn{font-size:9px;min-height:32px;background:transparent;border-color:#dae6d8;color:#83a28a}.page-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:28px 0 21px;font-size:8px;color:#b0bdb1}.footer-dot{margin:0 6px}.link-button{font-size:8px;color:#a2b4a5;padding:0}.link-button:hover{color:var(--accent)}.catalog-panel{min-height:310px}.catalog-hint{max-width:800px}.route-pills{display:flex;align-items:center;gap:5px;max-width:450px;flex-wrap:wrap}.route-pills>span:not(.route-arrow){font-size:8px;background:#f4f8f3;border:1px solid #e6eee3;color:#8ca08e;padding:5px 7px;border-radius:4px}.route-arrow{font-size:10px;color:#b8c7b6}.name-with-icon{display:flex;align-items:center;gap:10px}.item-icon{display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;background:#f2f7ef;border:1px solid #e7eee2;color:#98af94;border-radius:7px}.item-icon .icon{width:16px;height:16px}code{font-family:"Cascadia Code",Consolas,monospace;color:#92a58d;font-size:10px}.order-composition{display:flex;flex-direction:column;gap:7px}.order-composition span{display:flex;gap:20px;justify-content:space-between;font-size:9px}.order-composition b{font-size:8px;color:#9eaf98;font-weight:500}.machine-tags{display:flex;gap:6px;flex-wrap:wrap}.machine-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(225px,1fr));gap:18px;padding:0 22px 23px}.machine-card{border:1px solid #e6ede1;border-radius:8px;background:#fff;padding:18px}.machine-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px}.machine-art{width:45px;height:45px;display:flex;align-items:center;justify-content:center;color:#8aaf87;background:#f3f8ee;border:1px solid #e8efdf;border-radius:9px}.machine-art>.icon{width:26px;height:26px}.machine-card h3{font-size:13px;color:#6f8a67;font-weight:600;margin-bottom:7px}.machine-card>p{font-size:9px;color:#a3b299}.machine-card-foot{border-top:1px solid #edf2e9;margin-top:18px;padding-top:11px;display:flex;align-items:center;gap:3px}.machine-card-foot>span{font-size:8px;color:#9fb595;display:flex;align-items:center;gap:6px;margin-right:auto}.machine-card-foot i{height:5px;width:5px;background:#89b67c;border-radius:50%}.event-list{padding:0 22px 17px;max-height:330px;overflow:auto}.event-list>div{display:flex;align-items:center;gap:14px;padding:10px 0;border-top:1px solid #edf2e9;font-size:9px;color:#95a68b}.event-list strong{font-size:9px;min-width:150px;font-weight:500;color:#7e9771}.event-list small{font-size:8px;margin-left:auto;color:#a7b79d}.warning-panel,.inline-error{border:1px solid #f0e3c9;color:#af925b;background:#fffaf0;border-radius:7px;padding:14px 18px;font-size:10px;line-height:1.7;margin-bottom:20px}.warning-panel strong{font-size:11px}.warning-panel ul{padding-left:17px;margin:8px 0 0}.inline-error{display:flex;gap:10px;align-items:center;background:#fff2ed;color:#b37962;border-color:#f5e1d6}.inline-error>.icon{width:16px}.loading-panel{display:flex;align-items:center;justify-content:center;gap:13px;background:white;border:1px solid var(--border);border-radius:9px;min-height:220px;color:#9bad9b;font-size:12px}.spinner{display:inline-block;width:15px;height:15px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .7s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.error-panel{text-align:center;padding:55px 20px;background:#fff;border:1px solid #f0e6db;border-radius:9px}.error-panel>.icon{color:#d1ab79;width:30px;height:30px;margin-bottom:15px}.error-panel h2{font-size:17px}.error-panel p{max-width:500px;font-size:12px;line-height:1.7;color:#a38f76;margin:13px auto 22px}.demo-banner{font-size:11px;padding:12px 16px;background:#fffae8;border:1px solid #efe5bb;color:#b19b58;border-radius:7px;margin-bottom:20px}.boot{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:15px;color:#749076}.boot>span{font-size:12px}dialog{padding:0;border:1px solid #e1e9df;border-radius:12px;box-shadow:0 25px 100px #213e2b2b;max-width:calc(100vw - 32px);width:650px;max-height:calc(100dvh - 48px);color:#61795b;background:white}dialog.wide-dialog{width:820px}dialog::backdrop{background:#183d305e;}.dialog-header{padding:23px 25px 21px;border-bottom:1px solid #e9eee5;display:flex;justify-content:space-between;align-items:center}.dialog-header h2{font-size:19px;letter-spacing:-.3px;color:#526e49}.dialog-header .eyebrow{margin-bottom:7px}.dialog-body{padding:23px 25px;max-height:calc(100dvh - 240px);overflow-y:auto}.dialog-footer{padding:18px 25px;border-top:1px solid #e6eee1;display:flex;align-items:center;gap:10px;background:#fafcf8;border-radius:0 0 12px 12px}.dialog-footer>span{margin-right:auto;color:#a1b397;font-size:9px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 17px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field>span,.field-caption{font-size:10px;color:#869c7d;font-weight:500;display:block}.field input,.field select{width:100%;font-size:11px;border-color:#dfe8d8;color:#68825d}.field-help{font-size:9px;line-height:1.7;color:#a2b598}.form-section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:27px 0 15px}.form-section-heading h3{font-size:12px;color:#7c976e;font-weight:600}.form-section-heading p{font-size:9px;line-height:1.7;color:#a1b595;margin-top:5px}.form-note{font-size:10px;line-height:1.8;color:#a3b799;margin:13px 0}.warning-text{color:#b6a46a}.check-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.check-option{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #e5eddd;border-radius:6px;cursor:pointer}.check-option:has(input:checked){background:#f3faed;border-color:#bfd8ad}.check-option input{accent-color:var(--accent);width:14px;height:14px;min-height:0;margin:0;flex-shrink:0}.check-option>span{font-size:10px;color:#829f70}.check-option .icon{width:13px;height:13px;margin-right:4px}.check-option small{font-size:8px;color:#a8ba9a;margin:4px 0 0 19px;display:block}.operation-editor{border:1px solid #e3ecda;background:#fbfdf9;border-radius:7px;padding:15px;margin-bottom:14px}.operation-title{display:flex;align-items:center;gap:8px;margin-bottom:17px}.operation-title strong{font-size:10px;color:#91a67f;font-weight:500}.operation-grip .icon{width:14px;height:14px;color:#a5b894}.operation-title .icon-btn{margin-left:auto}.times-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.times-grid .field>span{font-size:9px;white-space:nowrap}.times-grid input{padding:8px;font-size:11px}.operation-machines{margin-top:19px}.order-item-editor{display:grid;grid-template-columns:1fr 130px 28px;gap:12px;align-items:end;border:1px solid #e7eedf;background:#fcfdfb;padding:12px;border-radius:6px;margin-bottom:12px}.order-item-editor>.icon-btn{margin-bottom:4px}.assignment-context{display:flex;align-items:center;gap:9px;background:#f4f9ef;border:1px solid #e7efdf;padding:11px 13px;border-radius:6px;font-size:10px;color:#8ba678;margin-top:20px}.assignment-context:empty{display:none}.assignment-context>.icon{width:16px;height:16px}.assignment-context strong{font-weight:550}.form-error{border:1px solid #efd8c6;border-radius:6px;background:#fff5ec;color:#b78b63;font-size:11px;line-height:1.7;padding:12px;margin-top:20px}.form-error[hidden]{display:none}.limits-copy h3{font-size:13px;color:#7f9b6c;margin-bottom:8px}.limits-copy p{font-size:11px;line-height:1.9;color:#97aa88;margin-bottom:23px}.toast{position:fixed;bottom:24px;right:24px;max-width:500px;z-index:50;transform:translateY(100px);opacity:0;transition:transform .2s,opacity .2s;background:#396f53;color:#fff;box-shadow:0 6px 28px #294d332c;border-radius:8px;padding:14px 20px;font-size:12px;line-height:1.6;pointer-events:none}.toast.visible{transform:translateY(0);opacity:1}.toast.error{background:#9d7359}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;margin:-1px;overflow:hidden;white-space:nowrap;padding:0;border:0}
@media(min-width:1450px){main{padding-top:37px}.page-head{margin-bottom:31px}.stat-card{padding:21px}.stat-card>strong{font-size:35px}.panel-heading{padding:23px}.stat-label{font-size:12px}.stat-detail{font-size:10px}th{font-size:9px}td,td strong{font-size:11px}.panel-heading p{font-size:10px}.shift-info strong{font-size:12px}.shift-info p{font-size:10px}.btn{font-size:12px;min-height:39px}.search-field input{font-size:10px}.nav-item{font-size:13px}h2{font-size:14px}}
@media(max-width:1200px){:root{--sidebar:218px}.sidebar{padding-left:12px;padding-right:12px}.brand{gap:7px;padding:0 5px;font-size:22px}.brand-sub{font-size:7px}.version{font-size:8px}.workspace{gap:7px;padding:10px 7px}.workspace strong{font-size:9px}.workspace small{font-size:8px}.workspace-avatar{width:27px;height:27px}.pilot-note{padding:10px 7px}.pilot-note span{font-size:8px}.topbar{padding:0 25px}main{padding:26px 23px 0}.shift-panel{flex-wrap:wrap}.shift-controls{margin-left:auto}.stats-grid{gap:12px}.stat-card{padding:15px 13px}.stat-label{font-size:9px}.stat-icon{width:25px;height:25px}.stat-card>strong{font-size:28px}.stat-detail{font-size:8px}.getting-started{align-items:flex-start}.getting-started .btn{font-size:8px}.panel-heading{padding-left:18px;padding-right:18px}}
@media(max-width:900px){:root{--sidebar:74px}.sidebar{padding:24px 10px 0}.brand{padding:0;justify-content:center}.brand>span:not(.brand-mark),.workspace,.nav-label,.nav-item>span,.pilot-note,.connection,.sidebar-bottom .nav-item span{display:none}.brand-mark{width:36px;height:36px;font-size:24px}.sidebar nav{margin-top:38px}.nav-item{justify-content:center;padding:14px 0;gap:0}.nav-item .icon{width:20px;height:20px}.sidebar-bottom{margin-bottom:18px}.topbar{height:65px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card{padding:17px}.stat-label{font-size:11px}.stat-detail{font-size:9px}.stat-card>strong{font-size:29px}.shift-controls{width:100%;justify-content:space-between;flex-wrap:wrap;margin-top:7px}.page-head h1{font-size:24px}.page-head .btn{font-size:10px}.getting-started{flex-direction:column;gap:15px}.user-label{display:none}.page-footer{font-size:7px}.page-footer .link-button{font-size:7px}.legend{gap:15px}.legend span{font-size:7px}}
@media(max-width:600px){:root{--sidebar:0px}.sidebar{position:fixed;bottom:0;top:auto;left:0;right:0;width:auto;height:65px;padding:0;border-top:1px solid var(--border);border-right:0}.sidebar .brand,.sidebar-bottom{display:none}.sidebar nav{display:flex;margin:0;height:100%;justify-content:space-around;padding:6px 4px}.nav-item{margin:0;width:19%;padding:5px;flex-direction:column;gap:4px}.nav-item>span:not(.nav-count){display:block;font-size:8px}.nav-item .icon{width:18px;height:18px}.topbar{padding:0 17px;height:57px}.breadcrumb{font-size:9px;gap:8px}.today{font-size:9px;gap:5px}.today .icon{height:12px;width:12px}.divider,.avatar{display:none}.topbar-right{gap:0}main{padding:22px 15px 70px}.page-head{gap:14px;align-items:flex-start;margin-bottom:22px}.eyebrow{font-size:6px;letter-spacing:1.2px}.page-head h1{font-size:21px}.page-head p{font-size:9px;line-height:1.7;margin-top:7px;max-width:220px}.page-head .btn{font-size:0;padding:9px;min-height:34px;margin-top:14px}.page-head .btn .icon{width:16px;height:16px}.page-head .btn span{display:none}.stats-grid{gap:10px;margin-bottom:17px}.stat-card{padding:13px}.stat-label{font-size:8px}.stat-icon{width:23px;height:23px}.stat-icon .icon{width:13px;height:13px}.stat-card>strong{font-size:28px;margin:10px 0}.stat-card>strong small{font-size:8px}.stat-detail{font-size:7px}.panel{margin-bottom:17px}.shift-panel{padding:15px;gap:5px}.shift-info strong{font-size:10px}.shift-controls{gap:7px}.shift-controls input{flex:1;width:120px;min-width:110px}.shift-controls .segmented{flex:1}.shift-controls .segmented button{flex:1;font-size:9px}.shift-controls>.btn{width:100%;margin-top:3px;font-size:10px}.panel-heading{padding:16px 14px;gap:10px;align-items:flex-start}.panel-heading h2{font-size:11px}.panel-heading p{font-size:8px;line-height:1.6;max-width:180px}.search-field{width:123px;flex-shrink:0}.search-field input{font-size:8px;padding:6px}.search-field .icon{width:11px}.badge{font-size:7px}.empty-state{padding:27px 15px}.empty-state h3{font-size:12px}.empty-state p{font-size:9px}.empty-state .btn{font-size:9px}.gantt-placeholder h3{font-size:11px}.gantt-placeholder p{font-size:8px;max-width:260px;margin:8px auto 0;line-height:1.7}.legend{gap:10px;padding:12px;flex-wrap:wrap}.legend span{font-size:7px}.legend i{width:5px;height:5px}.pilot-strip,.catalog-hint{font-size:8px;align-items:flex-start}.getting-started{padding:15px;margin-top:17px}.getting-started h3{font-size:11px}.getting-started p{font-size:8px;line-height:1.7}.getting-started .btn{font-size:8px;white-space:normal;text-align:left}.page-footer{padding-top:23px;align-items:flex-start;flex-direction:column;gap:10px}.machine-grid{grid-template-columns:1fr;padding:0 15px 15px;gap:12px}.calculation-time{font-size:7px;white-space:nowrap}.event-list{padding:0 14px 14px}.event-list>div{flex-wrap:wrap;gap:7px}.event-list strong{min-width:100px;font-size:8px}.event-list small{width:100%;margin:0 0 0 15px}.dialog-header{padding:19px 17px}.dialog-header h2{font-size:17px}.dialog-body{padding:18px 17px;max-height:calc(100dvh - 210px)}dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:9px}.dialog-footer{padding:14px 17px;gap:7px}.dialog-footer>span{font-size:7px}.dialog-footer .btn{font-size:10px;padding:8px 10px;min-height:34px}.form-grid{gap:14px;grid-template-columns:1fr}.field>span{font-size:10px}.field input,.field select{font-size:12px}.check-grid{grid-template-columns:1fr}.times-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.form-section-heading{align-items:flex-start;gap:8px}.form-section-heading h3{font-size:11px}.form-section-heading p{font-size:8px}.form-section-heading .btn{font-size:8px;padding:5px 7px;min-height:29px}.form-section-heading .btn .icon{width:11px}.operation-editor{padding:12px}.order-item-editor{grid-template-columns:1fr 90px 22px;gap:7px;padding:9px}.order-item-editor .field>span{font-size:8px}.order-item-editor input,.order-item-editor select{font-size:10px;padding:7px}.order-item-editor>.icon-btn{width:22px}.toast{bottom:82px;left:15px;right:15px;font-size:11px;padding:12px 15px}.limits-copy p{font-size:10px}.warning-panel,.inline-error{font-size:9px;padding:11px}.boot{flex-direction:column}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition:none!important}}

.mobile-settings{display:none}@media(max-width:600px){.mobile-settings{display:inline-flex;margin-right:9px;color:#6e9383}}

/* Keep hidden table labels inside the scrolling region, not the document viewport. */
.table-scroll,.gantt-scroll{position:relative;max-width:100%}.sr-only{top:0;left:0}

/* Visual reconstruction from all six screenshots of the supplied specification. */
:root{font-family:Arial,"Segoe UI",sans-serif;background:#f3f6f1;color:#25382e;font-size:15px;--accent:#24392c;--accent-hover:#345540;--border:#dce5d7}body{font-size:15px;background:#f3f6f1}.app-header{display:flex;align-items:center;gap:28px;padding:18px 26px 22px;min-height:104px}.app-header .brand{width:270px;flex-shrink:0;font-size:23px;line-height:1.1;padding:0;letter-spacing:-.4px;gap:13px;font-weight:400}.app-header .brand-mark{background:white;color:#233a2a;box-shadow:none;border-radius:50%;height:47px;width:47px;font-size:27px;font-weight:400}.app-header .brand b{display:block;color:#337347;font-size:23px;font-weight:600;margin-top:5px}.app-header .brand small{display:block;font-size:12px;margin-top:10px;color:#51614c;letter-spacing:0}.capsule-nav{display:flex;align-items:center;justify-content:center;gap:5px;flex:1;background:white;min-height:64px;border-radius:40px;padding:7px 15px}.capsule-nav a,.capsule-nav button{padding:16px 19px;border-radius:30px;color:#425443;font-size:15px;line-height:1;font-weight:400}.capsule-nav a.active{background:#fff0c5;color:#25382d}.capsule-nav a:hover,.capsule-nav button:hover{background:#f4f7ef}.capsule-nav a.active:hover{background:#fff0c5}.header-tools{display:flex;gap:5px;flex-shrink:0}.icon-btn{width:37px;height:37px;color:#607559}.icon-btn .icon{width:19px;height:19px}.pilot-bar{display:flex;align-items:center;justify-content:space-between;padding:12px 25px;background:#e6f0e0;border-top:1px solid #e0e9db;border-bottom:1px solid #d1dfc8;font-size:12px;color:#506848}.pilot-bar .link-button{font-size:12px;color:#52694a}main{padding:28px 19px 0;max-width:none;margin:0}.page-head{margin:0 2px 24px;align-items:center}.page-head h1{font-size:29px;font-weight:400;letter-spacing:-.5px}.panel{border:1px solid #e0e8da;border-radius:23px;box-shadow:none;margin-bottom:24px}.shop-map{border-radius:0;background:white}.map-heading{display:flex;align-items:center;flex-wrap:wrap;gap:18px;padding:30px 28px;border-bottom:2px solid #dce6d4}.map-heading h1{font-size:24px;letter-spacing:-.7px;font-weight:600;margin-right:1px;white-space:nowrap}.map-stat{display:flex;flex-direction:column;gap:5px;align-items:flex-start;font-size:13px;white-space:nowrap}.map-stat span{color:#66755e;font-size:12px}.map-stat small{font-size:11px;color:#6d7b65}.map-stat strong{font-size:21px;font-weight:600;letter-spacing:.1px}.metric{padding:0;text-align:left;cursor:pointer}.map-date{display:flex;gap:12px;align-items:center;margin-left:auto}.round-button{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid #d9e4cf;border-radius:50%;font-size:24px;color:#334a30;flex-shrink:0}.map-date input{border-radius:30px;min-height:49px;font-size:16px;padding:10px 20px;color:#34452f;background:white;border-color:#d8e3cf}.segmented{border-radius:29px;background:#f3f6f0;border:1px solid #d9e5cf;padding:4px}.segmented button{font-size:14px;padding:11px 16px;min-height:39px;border-radius:25px;color:#66745e}.segmented button.selected{background:#327749;color:white;font-weight:600;box-shadow:none}.btn{font-size:14px;min-height:44px;padding:11px 17px;border-radius:25px;font-weight:500;box-shadow:none!important}.btn.primary{background:#23362b;border-color:#23362b}.btn.secondary{background:white;color:#53644c;border-color:#d9e3d1}.btn .icon{width:17px;height:17px}.shop-section{padding:24px}.shop-section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px;gap:15px}.shop-section-heading h2{font-size:19px;font-weight:500;color:#283f2d}.shop-section-heading>div{display:flex;gap:18px;align-items:center}.shop-section-heading .link-button{font-size:13px;color:#69825e}.shop-floor{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:12px;padding:12px;background:#f4f7ef;border:1px solid #dce7d2;border-radius:16px}.map-machine{min-height:285px;display:flex;flex-direction:column;border:1px solid #d8e5ce;border-top:7px solid #37754c;border-radius:15px;background:#e7f1df;padding:9px 8px}.map-machine.milling{background:#eee8f5;border-color:#e2d8ef;border-top-color:#7e649a}.map-machine>header{display:flex;align-items:flex-start;gap:6px;justify-content:space-between;padding:2px 0 9px;min-height:37px}.map-machine h3{font-size:14px;font-weight:500;line-height:1.4;color:#263e2c;word-break:break-word}.load-chip{font-size:12px;background:white;border:1px solid #d4e1ca;border-radius:6px;padding:5px;white-space:nowrap}.map-jobs{display:flex;flex-direction:column;gap:8px;flex:1}.map-job{background:white;border:1px solid #d9e5cf;border-left:2px solid #d7bca3;border-radius:9px;padding:9px 7px;text-align:left;width:100%;color:#283e2c}.map-job>strong{font-size:16px;font-weight:500;line-height:1.4;display:block;word-break:break-word}.map-job-quantity{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:8px 0;border-bottom:1px solid #dce6d5;margin-bottom:7px}.map-job-quantity>span{font-size:12px;color:#6b7a61;max-width:60%;line-height:1.4}.map-job-quantity b{font-size:28px;line-height:1;font-weight:600;white-space:nowrap}.map-job-quantity small{font-size:11px;font-weight:400;margin-left:4px}.map-plan-label{font-size:10px;line-height:1.5;color:#99a78e;margin-top:5px;display:block}.map-no-jobs{border:1px dashed #d3e0c7;border-radius:8px;min-height:190px;display:flex;align-items:center;justify-content:center;text-align:center;font-size:13px;color:#7a8c6d;padding:20px;flex:1}.milling .map-no-jobs{border-color:#ded2ea;color:#8d7b9b}.map-machine>footer{text-align:center;font-size:11px;color:#768e67;padding-top:10px}.map-note{font-size:12px;color:#8da07b;margin:15px 1px 0}.panel-heading{padding:23px 22px}.panel-heading h2{font-size:19px;font-weight:500}.panel-heading p{font-size:12px;line-height:1.5;color:#839678;margin-top:7px}.search-field{width:375px;border-radius:13px;padding-left:13px;background:white}.search-field input{font-size:14px;min-height:40px;padding:9px 10px}.search-field>.icon{width:17px;height:17px}.count-pill{font-size:12px;padding:3px 8px}.table-scroll{position:relative;max-width:100%}table{white-space:normal}thead{background:#f2f6ef}th{font-size:14px;letter-spacing:0;text-transform:none;font-weight:400;padding:15px 16px;color:#49623f;border-color:#dce6d3;white-space:nowrap}td{font-size:14px;padding:17px 16px;color:#3f5b35;border-color:#edf1e9}td strong{font-size:15px;font-weight:500;color:#3f5b35}td small{font-size:11px;color:#90a181}.resource{font-size:13px;white-space:nowrap}.resource>.icon{width:16px;height:16px}.person-avatar{width:27px;height:27px;font-size:11px}.badge{font-size:11px;padding:6px 8px;border-radius:7px}.empty-state{padding:38px 20px}.empty-state h3{font-size:18px}.empty-state p{font-size:14px;max-width:520px}.empty-state .btn{font-size:14px;min-height:42px}.empty-icon{width:57px;height:57px}.no-results{font-size:14px;padding:35px}.legend span{font-size:12px}.legend i{width:10px;height:10px}.gantt-axis-label,.gantt-axis span{font-size:11px}.gantt{grid-template-columns:190px minmax(470px,1fr)}.gantt-machine strong{font-size:13px;max-width:155px}.gantt-machine small{font-size:11px}.gantt-machine,.gantt-track{min-height:74px}.gantt-axis{height:36px}.pilot-strip,.catalog-hint{font-size:12px;color:#839877}.pilot-strip>.icon,.catalog-hint>.icon{width:17px;height:17px}.page-footer{font-size:11px;padding:26px 5px;color:#96a88a}.getting-started{font-size:14px}.getting-started .btn{font-size:13px}.form-note{font-size:13px;line-height:1.8}.catalog-panel{min-height:340px}.name-with-icon strong{font-size:15px}code{font-size:12px}.machine-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));padding:0 22px 23px}.machine-card{padding:20px;border-radius:16px}.machine-card h3{font-size:18px}.machine-card>p,.machine-card-foot>span{font-size:12px}.machine-tags{gap:8px}.event-list>div,.event-list strong{font-size:13px}.event-list small{font-size:11px}.inline-error,.warning-panel{font-size:13px}.toast{font-size:14px}.dialog-header{padding:24px 25px}.dialog-header h2{font-size:25px;font-weight:400}.dialog-body{padding:27px 25px}.dialog-footer{padding:20px 25px}.dialog-footer>span{font-size:12px}.dialog-footer .btn{font-size:14px}.field{gap:10px}.field>span,.field-caption{font-size:14px;color:#5a6d50}.field input,.field select,input,select{font-size:15px;min-height:46px;border-radius:13px;color:#566d4c;border-color:#d7e2cc;padding:11px 13px}.form-grid{gap:22px}.form-section-heading h3{font-size:18px}.form-section-heading p{font-size:13px}.form-section-heading .btn{font-size:13px;min-height:40px}.check-option>span{font-size:13px}.check-option small{font-size:11px}.form-error{font-size:14px}.operation-title strong{font-size:13px}.times-grid .field>span{font-size:12px}.times-grid input{font-size:14px}.order-item-editor{grid-template-columns:1fr 180px 37px;padding:20px}.limits-copy h3{font-size:18px}.limits-copy p{font-size:15px}.eyebrow{font-size:10px}.dialog-header .eyebrow{display:none}.mobile-settings{display:none}
@media(min-width:1450px){.shop-floor{grid-template-columns:repeat(auto-fill,minmax(176px,1fr))}.map-heading{gap:20px}.map-heading .btn{padding-left:15px;padding-right:15px}.map-heading .map-date{margin-left:auto}}
@media(max-width:1200px){.app-header{gap:18px;padding:17px 20px}.app-header .brand{width:190px}.capsule-nav a,.capsule-nav button{padding:15px}.header-tools{gap:1px}.map-date{margin-left:0}.map-heading{gap:18px;padding:24px}.map-heading .map-stat{margin-right:9px}.shop-floor{grid-template-columns:repeat(auto-fill,minmax(185px,1fr))}}
@media(max-width:800px){.app-header{flex-wrap:wrap;gap:15px;padding:17px}.app-header .brand{width:auto;margin-right:auto;font-size:20px}.app-header .brand b{font-size:20px}.app-header .brand small{font-size:11px;margin-top:5px}.app-header .brand-mark{width:40px;height:40px}.capsule-nav{order:3;flex-basis:100%;min-height:55px;padding:5px}.capsule-nav a,.capsule-nav button{font-size:14px;padding:14px}.header-tools{order:2}.pilot-bar{font-size:10px;padding:10px 17px;gap:15px}.pilot-bar .link-button{font-size:10px}.map-heading{padding:20px;gap:17px}.map-heading h1{font-size:24px;width:100%}.map-heading .map-stat span{font-size:11px}.map-heading .map-stat strong{font-size:20px}.map-heading .map-date{width:100%;justify-content:center;gap:10px}.map-heading .map-date input{flex:1;max-width:300px}.map-heading>.btn{font-size:13px;padding:10px 14px}.map-heading .segmented{margin-right:auto}.shop-section{padding:18px}.shop-section-heading{align-items:flex-start;flex-direction:column;gap:13px}.shop-section-heading h2{font-size:18px}.shop-section-heading>div{width:100%;justify-content:space-between}.shop-section-heading .btn{font-size:12px;min-height:38px}.shop-floor{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px}.map-machine h3{font-size:13px}.map-job>strong{font-size:15px}.map-machine{padding:8px 7px;min-height:285px}.map-job-quantity>span{font-size:11px}.map-job-quantity b{font-size:25px}.map-no-jobs{font-size:12px;padding:15px}.map-machine>footer{font-size:10px}.page-head h1{font-size:28px}.page-head .btn{font-size:13px}.panel-heading{align-items:flex-start}.panel-heading h2{font-size:17px}.search-field{width:240px}.search-field input{font-size:13px}.form-grid{grid-template-columns:1fr 1fr}.check-grid{grid-template-columns:1fr 1fr}.getting-started{font-size:13px;line-height:1.7}.dialog-header h2{font-size:22px}.dialog-body{max-height:calc(100dvh - 235px)}}
@media(max-width:600px){main{padding:22px 12px 0}.capsule-nav{gap:0}.capsule-nav a,.capsule-nav button{padding:13px 10px;font-size:13px}.app-header{min-height:0;padding:13px 13px 17px}.app-header .brand{gap:8px}.app-header .brand b{font-size:19px}.app-header .brand small{font-size:10px}.app-header .brand-mark{height:36px;width:36px;font-size:24px}.pilot-bar{padding:10px 13px;font-size:9px;line-height:1.6}.pilot-bar .link-button{font-size:9px;white-space:nowrap}.map-heading{padding:22px 15px;gap:15px}.map-heading .map-stat{margin:0;white-space:normal;max-width:calc(50% - 10px)}.map-heading .map-stat:first-of-type{width:100%;max-width:100%}.map-stat span{font-size:11px}.map-heading .map-date{gap:8px}.map-heading .map-date input{max-width:calc(100% - 100px);font-size:14px;min-height:44px;padding:10px 13px}.round-button{width:42px;height:42px;font-size:22px}.segmented button{font-size:12px;padding:10px 12px;min-height:36px}.map-heading>.btn{font-size:12px;min-height:40px;padding:10px 11px}.map-heading>.btn.primary{width:100%}.shop-section{padding:15px 10px}.shop-section-heading{padding:0 5px}.shop-section-heading h2{font-size:17px}.shop-section-heading>div{gap:9px}.shop-section-heading .link-button{font-size:11px}.shop-floor{padding:8px;gap:8px;border-radius:12px}.map-machine{min-height:275px;border-top-width:6px;padding:7px 6px;border-radius:11px}.map-machine h3{font-size:12px}.load-chip{font-size:10px;padding:4px}.map-job{padding:7px 6px}.map-job>strong{font-size:14px}.map-job-quantity{flex-wrap:wrap;gap:7px}.map-job-quantity>span{max-width:100%;font-size:10px}.map-job-quantity b{font-size:24px;margin-left:auto}.map-plan-label{font-size:9px}.map-no-jobs{min-height:190px;font-size:11px;padding:10px}.map-note{font-size:10px;line-height:1.7}.panel-heading{padding:20px 15px;gap:14px;flex-wrap:wrap}.panel-heading h2{font-size:18px}.panel-heading p{font-size:12px;max-width:none}.search-field{width:100%}.search-field input{font-size:14px;min-height:41px}.page-head{gap:15px;margin-bottom:20px}.page-head h1{font-size:28px}.page-head .btn{font-size:13px;padding:11px 14px;margin:0;min-height:42px}.page-head .btn span{display:inline}.page-head .btn .icon{width:15px;height:15px}th{font-size:12px;padding:13px 14px}td,td strong{font-size:13px;padding:15px 14px}.table-scroll{overflow-x:auto}.table-scroll table{min-width:850px}.badge{font-size:10px}.legend{gap:13px;padding:15px}.legend span{font-size:10px}.pilot-strip,.catalog-hint{font-size:11px;line-height:1.8;gap:8px}.getting-started{padding:16px;font-size:13px}.getting-started .btn{font-size:12px}.page-footer{font-size:10px;gap:8px;padding:24px 3px;line-height:1.6}.empty-state h3{font-size:17px}.empty-state p{font-size:13px}.empty-state .btn{font-size:13px}.dialog-header{padding:20px 17px}.dialog-header h2{font-size:23px}.dialog-body{padding:22px 17px;max-height:calc(100dvh - 220px)}.dialog-footer{padding:16px 17px;flex-wrap:wrap}.dialog-footer>span{font-size:10px}.dialog-footer .btn{font-size:12px;min-height:40px;padding:10px 12px}.form-grid{grid-template-columns:1fr;gap:19px}.field>span,.field-caption{font-size:14px}.field input,.field select{font-size:15px;min-height:46px}.check-grid{grid-template-columns:1fr}.form-note{font-size:12px}.form-section-heading h3{font-size:17px}.form-section-heading p{font-size:12px}.form-section-heading .btn{font-size:12px;min-height:37px}.check-option>span{font-size:13px}.check-option small{font-size:11px}.times-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.times-grid .field>span{font-size:12px}.times-grid input{font-size:14px}.order-item-editor{grid-template-columns:1fr 110px 30px;padding:13px;gap:10px}.order-item-editor .field>span{font-size:12px}.order-item-editor input,.order-item-editor select{font-size:14px}.form-error{font-size:13px}.toast{bottom:20px;font-size:13px}.limits-copy p{font-size:14px}.event-list>div,.event-list strong{font-size:12px}.event-list small{font-size:10px}.gantt-machine strong{font-size:13px}.gantt-machine small{font-size:11px}}

.parts-norms th:nth-child(1){width:19%}.parts-norms th:nth-child(2){width:12%}.parts-norms th:nth-child(n+3){width:22%}.norm-line{display:flex;align-items:center;justify-content:space-between;gap:25px;min-height:29px;white-space:nowrap;font-size:14px}.norm-line b{font-weight:400;color:#243e29}.part-name{font-size:16px;padding:0;color:#48623d;text-align:left;line-height:1.5}.part-name:hover{text-decoration:underline}.parts-norms td{vertical-align:middle}.parts-norms td small{font-size:11px;margin-top:7px}.order-cards{background:#f3f6f1;padding-top:18px}.order-card{background:white;border-radius:24px;padding:20px;margin-bottom:20px;border:1px solid #e2eadb}.order-card:last-child{margin-bottom:0}.order-card-summary{display:flex;align-items:center;gap:27px;background:#f3f6f0;padding:12px 13px;min-height:73px}.order-toggle{font-size:14px;padding:0 4px;color:#48633c}.order-number{min-width:130px}.order-number>button{font-size:20px;text-decoration:underline;text-underline-offset:4px;color:#4e6942;padding:0}.order-number small{font-size:13px;display:block;color:#6d825f;margin-top:8px}.order-card-summary>div>span{font-size:13px;color:#6d815f;display:block;margin-bottom:7px}.order-card-summary>div>strong{font-size:15px;display:block;font-weight:500;color:#334d2c;line-height:1.5}.order-card-summary .order-forecast{margin-right:auto}.order-forecast strong{padding:5px 10px;background:#e4efdc;border-radius:20px;color:#698859!important;font-weight:400!important;font-size:13px!important}.order-expanded{padding:20px 35px 5px}.order-expanded>div{display:flex;gap:25px;align-items:center;padding:14px 0;border-bottom:1px solid #e5ecdf;font-size:14px;color:#758c65}.order-expanded>div strong{font-size:15px;color:#4c693e;font-weight:500;flex:1}.order-expanded>div b{font-weight:400}.order-expanded>.btn{margin-top:20px}.order-expanded[hidden]{display:none}.reference-editor{width:calc(100vw - 30px)!important;max-width:1800px;border-radius:0;height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}.reference-editor #editor-form{height:100%;display:flex;flex-direction:column}.reference-editor .dialog-header{padding:25px 22px}.reference-editor .dialog-body{flex:1;max-height:none;padding:28px 22px 20px}.reference-editor .dialog-footer{border-radius:0;background:#f3f6f0;padding:21px 22px}.reference-editor .dialog-footer>span{font-size:13px}.reference-editor .dialog-footer .btn.primary{min-width:200px}.part-identity{grid-template-columns:1.6fr .8fr;column-gap:23%;row-gap:22px;max-width:none}.part-identity .field:nth-child(3){max-width:530px}.operation-sheet{border:1px solid #d9e4cf;border-radius:16px;overflow:hidden;margin-top:65px;background:#f3f6f0}.operation-sheet>h3{font-size:18px;font-weight:500;color:#3e5437;padding:20px 18px 14px}.operation-grid{min-width:1280px;width:100%;table-layout:fixed}.operation-grid th{font-size:14px;white-space:normal;padding:14px 10px;font-weight:400;line-height:1.5}.operation-grid th:first-child{width:45px}.operation-grid th:nth-child(2){width:230px}.operation-grid th:nth-child(8){width:220px}.operation-grid th:last-child{width:45px}.operation-grid tbody{background:white}.operation-grid .operation-editor{background:white;border:0;border-radius:0;margin:0;padding:0}.operation-grid td{padding:10px;vertical-align:top;background:white;position:relative}.operation-grid td:first-child{background:#f3f6f0;text-align:center;padding-top:27px;color:#607d50}.operation-grid td:nth-child(2)>.field+.field{margin-top:9px}.operation-grid .field>span{position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.operation-grid .field input,.operation-grid .field select{width:100%;font-size:15px;min-height:47px;text-align:right;padding:10px 12px}.operation-grid td:nth-child(2) input,.operation-grid td:nth-child(2) select{text-align:left}.operation-grid .operation-machines{margin:0}.machine-picker summary{border:1px solid #d7e2cc;border-radius:13px;padding:14px 11px;min-height:47px;cursor:pointer;font-size:14px;color:#637c53;background:white;white-space:nowrap}.machine-picker .check-grid{grid-template-columns:1fr;margin-top:8px;min-width:190px}.machine-picker .check-option{padding:8px;font-size:12px}.machine-picker .check-option>span{font-size:12px;white-space:normal}.machine-picker .check-option small{font-size:10px}.machine-picker .form-note{font-size:12px;line-height:1.5}.add-row-button{margin-top:45px}.reference-editor .form-note{font-size:12px;color:#93a385;max-width:1100px}.order-dialog .dialog-body{background:#fff}.order-dialog .form-grid{grid-template-columns:1.5fr 1fr;gap:23px}.order-dialog .form-section-heading{margin-top:40px}.order-dialog .order-item-editor{display:grid;grid-template-columns:minmax(300px,1.5fr) minmax(160px,.5fr) minmax(200px,.7fr) 40px;gap:16px;background:white;border:1px solid #e0e9d8;border-radius:16px;padding:15px;min-height:185px;margin:13px 0}.order-position-title{grid-column:1/-1;display:flex;align-items:center;gap:20px;background:#f3f6f0;padding:7px;font-size:14px}.order-position-title strong{font-weight:600;color:#3d5335}.order-position-title span{color:#8a9d7b;font-size:13px}.position-due{align-self:start;padding-top:1px}.position-due>span{font-size:14px;color:#6a7f5d;display:block;margin-bottom:10px}.position-due>strong{font-weight:400;font-size:14px;border:1px solid #d7e2cc;border-radius:13px;min-height:46px;display:flex;align-items:center;padding:11px;color:#96a58c;background:#f4f7f0}.order-dialog .order-item-editor>.icon-btn{align-self:start;margin-top:30px}.reference-editor .form-section-heading .btn{white-space:nowrap}
@media(max-width:800px){.order-card-summary{gap:16px;flex-wrap:wrap}.order-card-summary>div{min-width:130px}.order-number{min-width:90px!important}.order-forecast{margin-left:38px}.order-card-summary .row-actions{margin-left:auto}.part-identity{column-gap:30px;grid-template-columns:1fr 1fr}.reference-editor .dialog-body{padding:22px 17px}.operation-sheet{margin-top:40px}.order-dialog .order-item-editor{grid-template-columns:1fr 150px 36px}.order-item-editor .position-due{grid-column:1/3}.order-dialog .order-item-editor>.icon-btn{grid-column:3;grid-row:2}.order-dialog .form-grid{grid-template-columns:1fr 1fr}.order-expanded{padding:15px 5px}}
@media(max-width:600px){.order-card{padding:13px;border-radius:18px}.order-card-summary{padding:12px 8px;gap:18px 14px}.order-card-summary>div>strong{font-size:14px}.order-number>button{font-size:19px}.order-number small{font-size:12px}.order-toggle{padding:0}.order-card-summary>div{min-width:110px}.order-card-summary .order-forecast{margin-left:0}.order-expanded>div{gap:10px;flex-wrap:wrap;font-size:12px}.order-expanded>div strong{font-size:13px}.order-expanded>.btn{font-size:12px}.reference-editor{width:calc(100vw - 12px)!important;max-width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px)}.reference-editor .dialog-header{padding:19px 15px}.reference-editor .dialog-header h2{font-size:21px}.reference-editor .dialog-body{max-height:none;padding:22px 15px}.reference-editor .dialog-footer{padding:16px 15px;gap:8px}.reference-editor .dialog-footer>span{width:100%;font-size:10px}.reference-editor .dialog-footer .btn.primary{min-width:0;flex:1}.part-identity{grid-template-columns:1fr;gap:19px}.operation-sheet{margin-top:32px}.operation-sheet>h3{font-size:17px;padding:17px 14px 10px}.operation-grid{min-width:1240px}.add-row-button{margin-top:27px;font-size:13px}.order-dialog .form-grid{grid-template-columns:1fr}.order-dialog .order-item-editor{grid-template-columns:1fr 85px 26px;gap:12px;padding:12px;min-height:200px}.order-dialog .order-item-editor .field{grid-column:1/3}.order-dialog .order-item-editor .field:nth-of-type(2){grid-column:1/3}.order-dialog .order-item-editor>.icon-btn{grid-column:3;grid-row:2;margin-top:28px;width:26px}.order-item-editor .position-due{grid-column:1/3}.order-position-title{font-size:13px;gap:12px}.order-position-title span{font-size:11px}.order-item-editor .field>span{font-size:13px}.order-item-editor input,.order-item-editor select{font-size:14px}.position-due>span,.position-due>strong{font-size:13px}.norm-line{font-size:13px}.parts-norms{min-width:1050px!important}.parts-norms td{padding:15px 14px}.part-name{font-size:14px}}

/* Independent copy of manual-CUP's machine map geometry and visual tokens.
   Runtime assignments, calculation and actions remain CUP v3.1 only. */
.shop-map{border-radius:24px;overflow:visible}.shop-map .map-heading{padding:20px 24px;gap:14px;border-bottom:1px solid #dde5d8}.shop-map .map-heading h1{font-size:19px;letter-spacing:-.4px;font-weight:600}.shop-map .map-stat{gap:2px}.shop-map .map-stat span{font-size:10px;color:#455447}.shop-map .map-stat small{font-size:9px;color:#455447}.shop-map .map-stat strong{font-size:16px;color:#1e2c23}.shop-map .map-date{gap:10px}.shop-map .round-button{width:42px;height:42px;font-size:21px}.shop-map .map-date input{min-height:42px;font-size:13px;padding:9px 18px}.shop-map .segmented button{font-size:12px;min-height:32px;padding:9px 12px}.shop-map .map-heading>.btn{font-size:12px;min-height:40px;padding:9px 13px}.manual-map-toolbar{display:flex;justify-content:flex-end;align-items:center;gap:18px;padding:10px 24px 0}.manual-map-toolbar .btn{min-height:32px;font-size:11px;padding:6px 12px}.manual-map-toolbar .link-button{font-size:11px;color:#5b705f}.manual-shop-map{--manual-card-height:248.4px;padding:16px 20px 0;display:flex;flex-direction:column;gap:18px;color:#1e2c23}.manual-shop-floor{min-width:0}.manual-shop-floor+.manual-shop-floor{border-top:1px solid #dde5d8;padding-top:14px}.manual-shop-floor>h2{margin:0 0 10px;font-size:16px;font-weight:500;color:#1e2c23}.manual-floor-pan{min-width:0;border:1px solid #dde5d8;border-radius:12px;background:#f3f6f2;overflow:visible}.manual-floor-grid{box-sizing:border-box;display:grid;width:100%;max-width:100%;min-width:0;grid-template-columns:repeat(10,minmax(0,148px));grid-template-rows:var(--manual-card-height) 26px var(--manual-card-height);column-gap:8px;row-gap:0;align-items:start;padding:10px 8px}.manual-street-label{align-self:center;text-align:center;font-size:10px;line-height:1.4;color:#5b705f;border-block:1px dashed #dde5d8;padding:3px 0}.manual-shop-map .map-machine{box-sizing:border-box;display:flex;flex-direction:column;align-self:start;width:100%;min-width:0;height:var(--manual-card-height);min-height:var(--manual-card-height);margin:0;padding:7px 6px 6px;gap:5px;border:1px solid #dde5d8;border-top:4px solid #2f6b45;border-radius:10px;background:#e5f0e2;color:#24372c;font-variant-numeric:tabular-nums;container-type:inline-size;overflow:hidden}.manual-shop-map .map-machine.milling{background:#eee8f5;border-color:#dde5d8;border-top:4px solid #766092}.manual-shop-map .map-machine:hover{border-color:#455447}.manual-shop-map .map-machine:focus-within{outline:2px solid #2f6b45;outline-offset:2px}.manual-shop-map .map-machine>header{display:flex;align-items:flex-start;justify-content:space-between;min-height:26px;gap:5px;padding:0}.manual-machine-name{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;flex:1 1 0;min-width:0;min-height:24px;padding:0;border:0;background:transparent;color:#24372c;text-align:left;cursor:pointer}.manual-machine-name:disabled{opacity:1;cursor:default;color:inherit}.manual-machine-name strong{font-size:12px;font-weight:650;line-height:1.2;white-space:normal;overflow-wrap:normal;letter-spacing:0}.manual-shop-map .load-chip{display:inline-flex;align-items:center;gap:3px;background:white;border:1px solid #d3dfd3;border-radius:6px;font-size:11px;line-height:1.2;min-height:24px;padding:3px 4px;white-space:nowrap;color:#24372c;max-width:none}.manual-shop-map .load-chip .icon{width:12px;height:12px}.manual-shop-map .map-jobs{display:flex;flex-direction:column;flex:1;min-height:0;gap:5px;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin}.manual-shop-map .map-no-jobs{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:1;min-height:0;margin:0;padding:8px 4px;border:1px dashed #dde5d8;border-radius:6px;background:transparent;text-align:center;font-size:11px;line-height:1.35;color:#5b705f}.manual-shop-map .map-job{display:flex;flex-direction:column;flex:none;gap:4px;width:100%;background:white;padding:6px;border:0;border-left:2px solid #deb19c;border-radius:7px;text-align:left;line-height:1.25;color:#24372c}.manual-shop-map .map-job>strong{font-size:14px;font-weight:650;line-height:1.25;letter-spacing:-.15px;overflow-wrap:normal}.manual-shop-map .map-job-quantity{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:4px;margin:0;padding:0;border:0}.manual-shop-map .map-job-quantity>span{font-size:11px;line-height:1.25;color:#4b6052;max-width:none;flex:1;min-width:0}.manual-shop-map .map-job-quantity>span>small{display:block;font-size:9px;line-height:1.3;color:#8b9d89;margin-top:2px}.manual-shop-map .map-job-quantity b{font-size:clamp(20px,20cqi,26px);font-weight:650;line-height:1.12;letter-spacing:-.6px;white-space:nowrap}.manual-shop-map .map-job-quantity b>small{font-size:10px;font-weight:400;line-height:1;letter-spacing:0;margin-left:3px;color:#526657}.manual-shop-map .map-plan-label{display:block;font-size:9px;line-height:1.3;color:#8a9d84;margin:1px 0 0}.manual-map-legend{display:flex;gap:20px;align-items:center;flex-wrap:wrap;padding:12px 20px;color:#455447;font-size:12px}.manual-map-legend>span{display:flex;gap:7px;align-items:center}.manual-map-legend i{width:9px;height:9px;border-radius:2px;display:inline-block}.manual-map-legend i.turning{background:#2f6b45}.manual-map-legend i.milling{background:#766092}.manual-map-legend>small{font-size:11px;margin-left:auto;color:#7b8b75}.additional-machine-grid{--manual-card-height:248.4px;display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,148px));gap:8px;padding:10px 8px;border:1px solid #dde5d8;border-radius:12px;background:#f3f6f2}.manual-shop-map .additional-machine-grid .map-machine{grid-column:auto!important;grid-row:auto!important}
@media(max-width:1000px){.shop-map .map-heading .map-stat:first-of-type{flex-basis:100%;max-width:none}.shop-map .map-heading .map-date{margin-left:0}.manual-map-toolbar{padding:10px 20px 0}}
@media(max-width:600px){.shop-map{border-radius:20px}.shop-map .map-heading{padding:20px 16px;gap:14px}.shop-map .map-heading h1{font-size:21px}.shop-map .map-heading .map-stat{max-width:calc(50% - 9px)}.shop-map .map-heading .map-stat:first-of-type{max-width:100%}.shop-map .map-stat span{font-size:11px}.shop-map .map-stat strong{font-size:17px}.shop-map .map-date input{font-size:13px;min-height:42px}.shop-map .round-button{width:39px;height:39px}.shop-map .map-heading>.btn{font-size:12px}.manual-shop-map{padding:15px 13px 0;gap:18px}.manual-shop-floor>h2{font-size:15px;margin-bottom:10px}.manual-map-toolbar{padding:12px 14px 0;gap:12px;justify-content:space-between}.manual-map-toolbar .btn{font-size:11px;min-height:34px}.manual-map-toolbar .link-button{font-size:10px}.manual-floor-grid{padding:10px 8px;column-gap:8px;row-gap:0}.manual-shop-map .map-machine{border-top-width:4px;border-radius:10px;min-height:var(--manual-card-height);height:var(--manual-card-height);padding:7px 6px 6px;gap:5px}.manual-shop-map .map-no-jobs{font-size:11px;min-height:0;padding:8px 4px}.manual-shop-map .manual-machine-name strong{font-size:12px}.manual-shop-map .map-job>strong{font-size:14px}.manual-shop-map .load-chip{font-size:11px;padding:3px 4px}.manual-map-legend{font-size:11px;gap:15px;padding:15px 14px}.manual-map-legend>small{font-size:10px;flex-basis:100%;margin:0}}
.machine-context-menu{position:fixed;z-index:1200;min-width:210px;max-width:calc(100vw - 16px);padding:6px;background:#fff;border:1px solid #d7e1d2;border-radius:12px;box-shadow:0 10px 32px #263c2b30}.machine-context-menu button{width:100%;padding:12px 14px;border:0;border-radius:8px;background:#fff;text-align:left;color:#213f2c;font:inherit;cursor:pointer}.machine-context-menu button:hover,.machine-context-menu button:focus-visible{background:#edf4e9;outline:2px solid #557d48;outline-offset:-2px}.plan-setup-choice{display:flex;align-items:center;gap:10px;padding:15px 0;font-weight:600}.plan-setup-choice input{width:19px;height:19px;accent-color:#315e3e}.map-machine:focus-visible{outline:3px solid #315e3e;outline-offset:3px}
.machine-context-menu button:disabled{opacity:.45;cursor:default}.machine-context-menu button:disabled:hover{background:#fff;outline:0}
.calendar-toolbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.calendar-toolbar label{font-size:12px;display:grid;gap:4px}.calendar-toolbar input{max-width:160px}.calendar-scroll{overflow:auto;max-height:680px;border-top:1px solid #e0e6dd}.staff-calendar-table{min-width:1600px;width:100%;border-collapse:separate;border-spacing:0}.staff-calendar-table th,.staff-calendar-table td{padding:4px;border-right:1px solid #e3e8df;border-bottom:1px solid #e3e8df;text-align:center;min-width:40px}.staff-calendar-table thead th{position:sticky;top:0;z-index:2;background:#f4f7f2}.staff-calendar-table th:first-child{position:sticky;left:0;z-index:1;background:#fff;min-width:200px;text-align:left}.staff-calendar-table thead th:first-child{z-index:3;background:#f4f7f2}.staff-calendar-table th small{display:block;font-size:11px;color:#73816c}.staff-calendar-table th.weekend{background:#e9eee6}.calendar-cell{width:100%;min-width:31px;min-height:34px;border:0;border-radius:5px;font:600 13px inherit;cursor:pointer}.calendar-cell:hover{outline:2px solid #54734b}.status-day{background:#f5eaa4;color:#625100}.status-night{background:#d4c2e9;color:#4e3070}.status-off{background:#e9ece7;color:#596552}.status-vacation{background:#bde1c7;color:#245d36}.status-sick{background:#facdcd;color:#812e2e}.status-unpaid{background:#bddce9;color:#285a70}.status-unknown{background:#f5f6f3;color:#87927f}.calendar-draft-note{padding:10px 20px;font-size:13px;color:#63715c}.calendar-legend{display:flex;flex-wrap:wrap;gap:12px;padding:14px 20px}.calendar-legend span{display:flex;gap:6px;align-items:center;font-size:12px}.calendar-legend b{display:inline-grid;place-items:center;min-width:28px;min-height:25px;border-radius:4px}.personnel-calendar>.form-note{padding:0 20px 15px}.worker-records{margin-top:18px;padding:14px}.worker-records>summary{cursor:pointer;font-weight:600;padding:8px}.calendar-worker-picker{max-height:220px;overflow:auto;border:1px solid #dce4d7;border-radius:8px;margin-bottom:18px;padding:10px}.calendar-worker-picker label{display:flex;gap:8px;align-items:center;padding:5px}.calendar-worker-picker input{width:17px;height:17px}.calendar-fill-dialog{max-width:760px;width:calc(100vw - 30px)}.calendar-fill-dialog .form-grid label{display:grid;gap:6px}.calendar-fill-dialog .form-grid input,.calendar-fill-dialog .form-grid select{width:100%}

.calendar-toolbar select{font:inherit;min-height:44px;padding:8px 12px;border:1px solid #dde5d8;border-radius:12px;background:#fff;color:#24372c;min-width:150px}

.event-waiting{fill:#b9c0bc;background:#b9c0bc;stroke:#7e8a83;stroke-dasharray:3 2}
.continuation-panel .event-list{padding:0 24px 24px}

.gantt-view-toggle{display:flex;gap:8px;padding:0 24px 16px}.gantt-view-toggle [aria-pressed="true"]{background:#e5f0e2;border-color:#6b8c73}.operator-gantt{padding:0 24px 24px}.operator-gantt-row{padding:16px 0;border-bottom:1px solid #dce6d8;min-width:0}.operator-gantt-actions{display:grid;gap:6px;padding-left:24px}.operator-gantt-action{text-align:left;white-space:normal;max-width:100%;overflow-wrap:anywhere}.operator-gantt-conflict{color:#a23b32}.operator-gantt-axis{font-size:12px;color:#708177}.operator-gantt-idle{margin-top:12px}.operator-gantt-idle summary{cursor:pointer}.operator-gantt-track{display:block}

.shift-sheet-dialog{width:min(1080px,96vw);max-width:96vw;height:94vh;max-height:94vh;padding:0;overflow:hidden}.shift-sheet-dialog[open]{display:flex;flex-direction:column}.shift-sheet-dialog .dialog-header h2{font-size:1.15rem}.shift-sheet-note,.shift-sheet-status{margin:8px 24px;font-size:.85rem;line-height:1.4}.shift-sheet-status{min-height:2.3em}.shift-sheet-frame{display:block;width:100%;flex:1;min-height:180px;border:0;border-top:1px solid #dce5dc;background:#fff}.shift-sheet-dialog .dialog-footer{flex:none}.operator-gantt-row>[data-print-worker]{margin:0 0 10px 8px}
.operator-dialog{width:1100px;max-width:calc(100vw - 32px)}.operator-dialog .dialog-body{max-height:calc(100dvh - 150px);padding:18px 24px}.operator-dialog .dialog-header p{margin-top:6px;font-size:12px}.operator-dialog-select{display:flex;align-items:center;gap:12px;margin-bottom:14px}.operator-dialog-select select{max-width:100%;min-width:220px}.map-operator-loads{display:grid;gap:3px;padding:3px 7px}.operator-load-indicator{display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;font-size:10px;text-align:left;padding:4px 5px;border-radius:5px;background:#f1f5ed}.operator-load-indicator span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.operator-load-indicator strong{color:#45653b}.operator-load-indicator:hover{background:#e1ecd8}.operator-dialog .operator-gantt-action{white-space:normal}.map-machine .load-chip{cursor:default}
/* Fixed calendar columns avoid repeated intrinsic sizing of every employee/day cell. */
.staff-calendar-table{table-layout:fixed}
.staff-calendar-table thead th:first-child{width:200px}
.staff-calendar-table th:first-child{white-space:normal;overflow-wrap:anywhere}
/* Windowed personnel rows retain native table semantics and natural name heights. */
.calendar-scroll{overflow-anchor:none}
.staff-calendar-table .calendar-spacer td{padding:0;border:0;min-width:0;line-height:0}
.staff-calendar-table [data-calendar-row] th strong{line-height:18px}
.staff-calendar-table [data-calendar-row] th small{line-height:16px}
.calendar-cell:focus-visible{outline:3px solid #274e21;outline-offset:-2px}

/* A dark outlined I-beam stays visible independently of the Windows pointer theme. */
input,textarea,[contenteditable="true"]{caret-color:#213f2c;cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M8 3h8M12 3v18M8 21h8' fill='none' stroke='white' stroke-width='4'/%3E%3Cpath d='M8 3h8M12 3v18M8 21h8' fill='none' stroke='%23213f2c' stroke-width='2'/%3E%3C/svg%3E") 12 12,text;}

.shop-map > .map-heading{position:sticky;top:0;z-index:20;background:#fff;box-shadow:0 3px 8px #213f2c12;border-radius:22px 22px 0 0;}

.shift-weekday{font-size:13px;font-weight:600;color:#455447;white-space:nowrap;}

.assignment-fixed-context{margin:0 0 18px;font-weight:600;color:#31543c;}

/* Short numeric values keep compact controls instead of filling their grid column. */
.field input[type="number"],.operation-grid .field input[type="number"]{width:14ch;max-width:100%;min-width:0;}
.field input[name="requiredMachines"],.field input[name="op-slots"],.field input[name="duration"]{width:10ch;}
.field input[name="quantity"],.field input[name="item-quantity"],.field input[name="item-completedQuantity"]{width:14ch;}
.field input[name="op-setup"]{width:12ch;}
#calendar-dialog{width:340px;max-width:calc(100vw - 24px);}
#calendar-dialog .dialog-body{padding:22px 24px;}
.worker-name-actions{display:flex;align-items:center;gap:14px;}
.worker-name-actions>.row-actions{display:flex;flex-shrink:0;}
@media(max-width:600px){.worker-name-actions{gap:6px}.worker-name-actions .icon-btn{padding:5px;}}
.field input[name="number"]{width:20ch;max-width:100%;}
.field select[name="role"],.field select[name="department"],.field select[name="type"],.field select[name="op-type"],.field select[name="op-machineGroup"]{width:fit-content;max-width:100%;min-width:14ch;}

.order-expanded{max-width:720px;padding:12px 24px 16px;}
.order-expanded>div{display:grid;grid-template-columns:28px minmax(120px,1fr) max-content;gap:12px;padding:8px 0;}
.order-expanded>div strong{flex:initial;min-width:0;}
.order-expanded>div b{white-space:nowrap;}
@media(max-width:600px){.order-expanded{padding:12px}.order-expanded>div{gap:8px;grid-template-columns:20px minmax(80px,1fr) max-content;}}

.operation-features{margin-top:8px;min-width:190px;font-size:12px;text-align:left;}
.operation-features summary{cursor:pointer;padding:6px 0;color:#52674a;}
.operation-features>div{display:grid;gap:9px;padding:10px;border:1px solid #dce5d8;border-radius:8px;background:#f7faf5;}
.operation-features label{display:flex;align-items:center;gap:8px;text-align:left;line-height:1.35;}
.operation-features input[type="checkbox"]{width:17px;height:17px;min-height:17px;flex:none;padding:0;accent-color:#315e3e;}
.cloud-login{min-height:100vh;display:grid;place-items:center;padding:24px}.cloud-login form,.cloud-login>section{width:min(100%,380px);padding:28px;background:white;border:1px solid var(--border);border-radius:20px;display:grid;gap:18px}.cloud-login label{display:grid;gap:8px}.cloud-login input{width:100%;min-height:44px;border:1px solid var(--border);border-radius:12px;padding:10px;caret-color:#20382a}.cloud-login-error{color:#a23b32}.cloud-logout{flex-shrink:0}
@media(max-width:600px){.cloud-download{display:none}}

.item-readiness{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;font-size:12px;color:#536657;font-weight:500}.map-job .item-readiness{font-size:10px;margin:3px 0 5px}.closed-item-label{display:inline-flex;border:1px solid #b8d4bc;border-radius:8px;padding:2px 6px;background:#e6f2e8;color:#245d35;font-size:11px;font-weight:600}.item-readiness.is-closed{color:#245d35}.order-expanded>.order-item-closed{background:#edf6ee;border-radius:8px}.order-item-closed>strong{color:#376444}
/* Keep form actions outside the scrolling content, including short/high-DPI work areas. */
#editor[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 24px)}
#editor>form{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 26px);width:100%}
#editor.reference-editor>form{height:100%;flex:1}
#editor .dialog-header,#editor .dialog-footer{flex:0 0 auto}
#editor .dialog-body{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto}
.common-program-badge{display:inline-block;font-size:10px;color:#496e47;background:#edf4e8;border-radius:5px;padding:2px 5px;margin:2px 0}

.manual-shop-map .map-job-setup{background:#fffaf0;border-left:4px solid #c6a267;color:#635032;gap:5px}.map-job-setup .map-setup-label{font-weight:700;color:#755b30}.map-job-setup>small{display:block;color:#755b30}

.manual-shop-map .map-common-row{display:flex;align-items:baseline;justify-content:space-between;gap:6px;margin:2px 0;white-space:nowrap;font-size:11px;line-height:1.4}.manual-shop-map .map-common-row b{font-size:21px;line-height:1.1}.manual-shop-map .map-common-row small{font-size:10px}.manual-shop-map .map-common-program{gap:4px}

/* Employee rest is shown separately from productive work and machine processing. */
.operator-gantt .event-break{fill:#e5bc78;stroke:#9b773f;stroke-width:.5}.operator-gantt-action-break{background:#fffaf0;border-color:#d8bf97}

.operator-gantt .event-break{fill:#ae8fcb;stroke:#80639d;stroke-width:.5}.operator-gantt .event-idle{fill:transparent;stroke:#bcc8b6;stroke-width:1}.operator-gantt-row>svg .event-setup{fill:#e7bc7b}.operator-gantt-action-break{background:#f0e9f7;border-color:#c1abd6}.gantt-cell-tooltip{position:fixed;z-index:10000;max-width:min(600px,90vw);padding:7px 10px;border-radius:6px;background:#26372d;color:#fff;font-size:12px;line-height:1.4;pointer-events:none;box-shadow:0 2px 8px #0003}.gantt-cell-tooltip[hidden]{display:none}

.machine-queue-dialog{width:850px;max-width:calc(100vw - 24px)}
.machine-queue-list{margin:16px 0;padding-left:28px}.machine-queue-list>li{padding:16px 4px;border-bottom:1px solid #dce5d5}.machine-queue-list>li::marker{font-weight:600;color:#607858}.machine-queue-description{display:inline-flex;vertical-align:middle;flex-direction:column;gap:6px;width:calc(100% - 155px);min-width:160px}.machine-queue-description small{color:#718269}.machine-queue-actions{display:inline-flex;gap:4px;vertical-align:middle;margin-left:12px}.machine-queue-actions .icon-btn:disabled{opacity:.3}.machine-queue-dialog .dialog-header p{margin:5px 0 0;color:#718269}
@media(max-width:600px){.machine-queue-description{width:100%}.machine-queue-actions{margin:10px 0 0}.machine-queue-dialog .dialog-body{padding:16px}.machine-queue-dialog .dialog-footer{flex-wrap:wrap}}

.machine-queue-actions{flex-wrap:wrap;max-width:205px;justify-content:flex-end}.machine-queue-description{width:calc(100% - 225px)}.machine-queue-actions .machine-queue-mode{margin-top:6px;min-width:110px}.queue-mode-reason{display:block;font-size:11px;line-height:1.35;width:100%;color:#718269}.machine-queue-mode:disabled{opacity:.55}
@media(max-width:600px){.machine-queue-description{width:100%}.machine-queue-actions{max-width:none;justify-content:flex-start}.queue-mode-reason{max-width:300px}}

.map-machine-release{display:flex;flex-wrap:wrap;gap:2px 5px;flex-shrink:0;padding:3px 5px;font-size:10px;line-height:1.25;color:var(--text);overflow-wrap:anywhere}.map-machine-release strong{font-weight:500}

.map-separate-program{cursor:default}.map-separate-row{display:flex;align-items:center;justify-content:space-between;gap:3px;width:100%;border:0;background:transparent;color:inherit;padding:6px 0;text-align:left;font:inherit;font-size:11px}.map-separate-row b{font-size:22px}.map-separate-row:focus-visible{outline:2px solid var(--primary);outline-offset:1px}

.manual-shop-map .map-separate-row{min-height:0;height:auto;padding:2px 0;border-radius:0;line-height:1.2;white-space:nowrap;font-size:10px}.manual-shop-map .map-separate-row>span{white-space:nowrap}.manual-shop-map .map-separate-row b{font-size:21px;line-height:1}.manual-shop-map .map-separate-program{gap:4px}

.part-name-actions{display:flex;align-items:center;gap:8px}.part-name-actions .row-actions{display:flex;flex-shrink:0;gap:2px}.part-name-actions .icon-btn{width:28px;height:28px;min-height:28px;padding:4px}.parts-norms .part-name-actions .part-name{min-width:0;text-align:left}.parts-norms .norm-line{white-space:nowrap}

#queue-mode-form .dialog-body>label{display:grid;gap:8px;max-width:300px;margin:16px 0}#mode-batches:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}#mode-batches label{display:grid;gap:8px;align-content:start}#mode-batches .form-note{grid-column:1/-1;margin:0}@media(max-width:600px){#mode-batches:not([hidden]){grid-template-columns:1fr}}


.assembly-components{margin-top:24px}.component-editor{display:grid;grid-template-columns:minmax(180px,1fr) 150px 40px;align-items:end;gap:12px;margin:12px 0}.component-editor input{max-width:120px}@media(max-width:600px){.component-editor{grid-template-columns:1fr 110px 36px}}

.order-component-row strong small{display:block;margin-top:3px;color:var(--muted);font-weight:400;font-size:11px}


.map-common-row:has(.map-common-status){flex-wrap:wrap;gap:2px}.map-common-status{width:100%;font-size:10px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
.manual-shop-map .map-common-row>.map-common-status{display:block;flex:0 0 100%;min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:10px;line-height:1.25}

.manual-work-row{display:grid;grid-template-columns:2fr 1.5fr 1.5fr 110px 36px;align-items:end;gap:10px;margin:16px 0}.manual-work-row input{max-width:110px}.manual-shift-dialog #manual-shift-result{margin-top:24px}@media(max-width:700px){.manual-work-row{grid-template-columns:1fr 1fr}.manual-work-row>button{justify-self:end}}

.manual-pdf-dialog{width:min(1100px,96vw);height:92dvh;padding:0;overflow:hidden}.manual-pdf-dialog[open]{display:flex;flex-direction:column}.manual-pdf-dialog iframe{flex:1;min-height:0;width:100%;border:0}.manual-pdf-dialog .dialog-footer{flex-shrink:0}

#manual-pdf-dialog{position:fixed;inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:0;overflow:hidden}#manual-pdf-dialog>.dialog-header,#manual-pdf-dialog>.dialog-footer{flex:none;padding:10px 18px}#manual-pdf-dialog>.dialog-header h2{font-size:20px}#manual-pdf-dialog>iframe{display:block;flex:1 1 0;min-width:0;max-width:100%;min-height:0;width:100%;border:0}

.manual-additional-works{display:grid;gap:7px;margin-top:16px}.manual-additional-works textarea{font:inherit;color:inherit;resize:vertical;min-height:74px;width:100%;border:1px solid var(--border);border-radius:10px;padding:10px}

.proportional-dialog{max-width:850px}.flow-members{width:100%;border-collapse:collapse}.flow-members td,.flow-members th{padding:10px;text-align:left;border-bottom:1px solid #e3e7ed}.flow-members td small{display:block;color:#667085;margin-top:4px}.flow-members input[type=number]{width:100px}.flow-members input[type=checkbox]{width:18px;height:18px}.flow-summary{padding:14px;border-radius:10px;background:#f1f6fb;margin-top:16px}.proportional-dialog .dialog-footer>span{font-size:12px}.proportional-dialog .form-grid{grid-template-columns:1fr 1fr}.proportional-dialog .form-grid>:last-child{grid-column:1/-1}

/* Checkboxes use their native square size, without the text-field focus halo. */
input[type="checkbox"]{min-height:0;}input[type="checkbox"]:focus{outline:none;box-shadow:none;}

#mode-daily:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}#mode-daily label{display:grid;gap:8px;align-content:start}#mode-daily .form-note{grid-column:1/-1;margin:0}@media(max-width:600px){#mode-daily:not([hidden]){grid-template-columns:1fr}}



.manual-mode-question{max-width:700px;width:calc(100vw - 32px)}

.manual-preset-tools{display:flex;gap:12px;align-items:end;margin-bottom:16px}.manual-preset-tools label{flex:1}.manual-preset-tools select{width:100%}.t2-split{font-size:12px;margin-top:6px}.t2-split input{max-width:100px}.preset-name-dialog{max-width:480px;width:calc(100% - 32px)}

/* Production-flow guide: one saved model, five focused views. */
.production-flow-dialog{width:1100px;max-width:calc(100vw - 24px)}
.production-flow-dialog .dialog-header h2{font-size:26px;margin:0}
.production-flow-dialog .dialog-header p{max-width:830px;margin:8px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
.production-flow-dialog .flow-identity{gap:12px 18px;margin-bottom:20px}
.flow-guide-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;position:sticky;top:0;z-index:2;background:#fff;padding:8px 0 14px;border-bottom:1px solid var(--border);margin-bottom:22px}
.joint-current{display:grid;gap:10px;margin:18px 0}.joint-current>div{display:grid;grid-template-columns:1fr auto;gap:6px 14px;padding:14px;border:1px solid var(--border);border-radius:12px}.joint-current span{grid-column:1;line-height:1.5}.joint-current button{grid-column:2;grid-row:1/3;align-self:center}.joint-selection{border:1px solid var(--border);border-radius:12px;padding:14px;margin-bottom:18px}.joint-selection label{display:flex;align-items:center;gap:12px;padding:10px 0}.joint-selection input{flex:none;width:18px;height:18px}.joint-selection small{display:block;font-size:12px;margin-top:4px}.joint-parameter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}.joint-parameter-grid input{max-width:140px}.joint-error{margin:12px 0}
.flow-guide-tabs button{display:flex;align-items:center;gap:7px;justify-content:center;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--text);padding:9px 7px;font:inherit;font-size:12px;line-height:1.3;min-height:48px}
.flow-guide-tabs button span{display:grid;place-items:center;flex:none;border-radius:50%;width:20px;height:20px;background:var(--surface,#f3f6ee);font-size:11px}
.flow-guide-tabs button[aria-selected=true]{background:var(--primary,#253b2d);border-color:var(--primary,#253b2d);color:#fff;font-weight:600}
.flow-guide-tabs button[aria-selected=true] span{background:#ffffff24}
.production-flow-dialog [data-flow-page][hidden],.production-flow-dialog [data-flow-schedule][hidden]{display:none!important}
.production-flow-dialog [data-flow-page]>h3{font-size:21px;margin:0 0 8px}
.production-flow-dialog [data-flow-page]>.form-note{margin:0 0 18px;line-height:1.6}
.flow-technology-card{border:1px solid var(--border);border-radius:12px;margin:12px 0;overflow:hidden}
.flow-technology-card>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;padding:14px 16px;list-style:none;background:#f7f9f4}
.flow-technology-card>summary:before{content:'▸';font-size:14px}.flow-technology-card[open]>summary:before{content:'▾'}
.flow-technology-card>summary strong{flex:1;font-size:14px}.flow-technology-card>summary span{font-size:12px;color:var(--muted)}
.flow-technology-card>p{padding:0 16px;font-size:13px}
.flow-technology-table,.flow-schedule-table{width:100%;border-collapse:collapse}
.flow-technology-table th,.flow-technology-table td,.flow-schedule-table th,.flow-schedule-table td{padding:11px 13px;border-bottom:1px solid var(--border);text-align:left;font-size:13px}
.flow-technology-table th,.flow-schedule-table th{background:#f4f7f0;font-weight:500}
.flow-technology-table td:not(:first-child),.flow-technology-table th:not(:first-child){text-align:center;width:100px;white-space:nowrap}
.flow-schedule-table td:first-child{min-width:180px}.flow-schedule-table td small{display:block;margin-top:4px;font-size:11px;color:var(--muted)}
.flow-schedule-table select{max-width:200px;min-width:150px;font-size:13px}
.flow-station-link{display:block;border:0;background:none;color:var(--primary,#2d6c43);font:inherit;font-size:12px;line-height:1.4;text-align:left;text-decoration:underline;text-underline-offset:3px;padding:7px 0;cursor:pointer}
.flow-inline-notice{padding:12px 14px;border-left:3px solid #b89b60;background:#fffaf0;font-size:13px;line-height:1.6}
.production-flow-dialog .flow-members input[type=number]{max-width:100px;min-height:42px}
.flow-guide-footer{gap:8px;flex-wrap:wrap}.flow-guide-footer>span{margin-right:auto;font-size:11px;max-width:190px;line-height:1.4}.flow-guide-footer .btn{padding:10px 15px;min-height:42px}
.machine-queue-mode-dialog{width:780px;max-width:calc(100vw - 24px)}
.machine-queue-mode-dialog .dialog-header p{margin:8px 0 0;font-size:13px;color:var(--muted)}
#mode-cadence>label{display:grid;gap:8px;max-width:300px;margin:16px 0}
#mode-batches input{max-width:110px}#mode-daily input,#mode-balanced input{max-width:180px}
#mode-balanced:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}#mode-balanced label{display:grid;gap:8px;align-content:start}#mode-balanced .form-note{grid-column:1/-1;margin:0}
@media(max-width:760px){.production-flow-dialog .dialog-header h2{font-size:22px}.flow-guide-tabs{display:flex;overflow-x:auto;gap:6px;scrollbar-width:thin}.flow-guide-tabs button{flex:none;min-width:135px}.production-flow-dialog .flow-identity{grid-template-columns:1fr}.production-flow-dialog .flow-identity>*{grid-column:auto!important}.flow-guide-footer>span{display:none}.flow-technology-card>summary{flex-wrap:wrap}.flow-technology-card>summary span{width:100%;padding-left:22px}#mode-balanced:not([hidden]){grid-template-columns:1fr}}
.flow-stock-table input[type="number"]{width:7.5rem;min-width:0;text-align:center}
.flow-stock-table td:last-child{width:12rem}
.flow-stock-table td:last-child span{font-size:.9rem;color:var(--muted,#68786a)}
.flow-assembly-summary{font-weight:600;line-height:1.5}

.planning-item-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.planning-item-controls .btn{font-size:13px;padding:8px 12px}.planning-item-controls .badge{white-space:normal}
.order-expanded>div>.planning-item-controls{grid-column:2/-1;min-width:0}
.operation-progress{margin:0 0 18px 40px;border:1px solid #dce5d7;border-radius:12px;background:#fff;max-width:650px;overflow:hidden}
.operation-progress>summary{cursor:pointer;padding:10px 14px;font-weight:600;font-size:14px;background:#f5f8f2}
.operation-progress-form{padding:14px}.operation-progress-form .form-note{font-size:12px;line-height:1.5;margin:0 0 12px}.operation-progress-form>.field{max-width:220px;margin-bottom:12px}
.operation-progress-form table{width:100%;min-width:0;table-layout:auto}.operation-progress-form th,.operation-progress-form td{padding:8px 10px;font-size:13px;text-align:left}.operation-progress-form th:nth-child(n+2),.operation-progress-form td:nth-child(n+2){text-align:center;width:120px}.operation-progress-form input[type=number]{width:92px;min-width:0;min-height:38px;padding:7px;text-align:center}.operation-progress-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.operation-progress-actions .btn{padding:9px 16px;font-size:13px}
@media(max-width:600px){.operation-progress{margin-left:0}.operation-progress-form{padding:10px}.operation-progress-form th,.operation-progress-form td{padding:6px;font-size:12px}.operation-progress-form input[type=number]{width:74px}}

.project-machine-toolbar{display:flex;gap:12px;align-items:center;margin:20px 0}.project-machine-toolbar select{flex:1;max-width:430px}.project-machine-list{display:grid;gap:18px}.project-machine-card{border:1px solid var(--border);border-radius:16px;padding:18px;background:#fff;scroll-margin:12px}.project-machine-card:focus{outline:2px solid #8ba78a;outline-offset:3px}.project-machine-heading{display:flex;align-items:center;gap:10px;margin-bottom:16px}.project-machine-heading h4{font-size:18px;margin:0;flex:1}.project-machine-index{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#eef3e9;font-size:13px;color:#52674e}.project-machine-remove,.project-job-remove{border:0;background:transparent;color:#68786a;font:inherit;cursor:pointer;padding:8px;font-size:12px}.project-job-remove{font-size:24px;line-height:1}.project-machine-jobs{display:grid;gap:12px;margin-bottom:14px}.project-machine-job{display:grid;grid-template-columns:minmax(160px,1.5fr) minmax(145px,1fr) 115px 88px 76px;gap:12px;align-items:end}.project-machine-field{display:grid;gap:7px;min-width:0;font-size:12px}.project-machine-field>span{line-height:1.4}.project-machine-field select,.project-machine-field input{min-width:0;width:100%;min-height:42px;padding:9px 11px;font-size:13px}.project-machine-field input[type=number]{text-align:center}.project-machine-setup{display:flex;align-items:center;gap:7px;font-size:12px;min-height:42px}.project-machine-setup input{width:16px;height:16px;min-height:0;padding:0;flex:none}.project-job-saved{font-size:11px;align-self:center;color:#7d8d78;padding-top:20px}.project-machine-mode{margin-top:16px;border-top:1px solid var(--border);padding-top:14px}.project-machine-mode>.project-machine-field{max-width:460px}.project-machine-mode .form-note{font-size:12px;line-height:1.5;margin:8px 0}.project-machine-parameters{display:flex;gap:18px;flex-wrap:wrap;margin-top:14px}.project-machine-parameters>.project-machine-field{max-width:310px;flex:1;min-width:180px}.project-machine-parameters input{max-width:125px}.project-machine-empty{padding:26px;text-align:center;border:1px dashed var(--border);border-radius:14px;font-size:14px;color:var(--muted)}
@media(max-width:850px){.project-machine-job{grid-template-columns:minmax(140px,1fr) minmax(130px,1fr) 100px}.project-machine-setup{grid-column:1}.project-job-saved,.project-job-remove{justify-self:end;grid-column:3;padding-top:0}.project-machine-card{padding:14px}}
@media(max-width:540px){.project-machine-toolbar{align-items:stretch;flex-direction:column}.project-machine-toolbar select{max-width:none}.project-machine-job{grid-template-columns:minmax(0,1fr) 105px;padding-bottom:12px;border-bottom:1px solid var(--border)}.project-machine-job>.project-machine-field:first-child,.project-machine-job>.project-machine-field:nth-child(2){grid-column:1/-1}.project-machine-setup{grid-column:2;grid-row:3}.project-job-saved,.project-job-remove{grid-column:2}.project-machine-heading h4{font-size:16px}.project-machine-remove{max-width:90px}.project-machine-parameters{flex-direction:column;gap:10px}}
/* Numeric values are edited by typing, never by browser spinner buttons. */
input[type="number"]{appearance:textfield;-moz-appearance:textfield}
input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.fact-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.fact-toolbar input[type=file]{max-width:230px;margin-left:12px}.fact-document-list{display:flex;gap:8px;overflow:auto;padding:6px 0 16px}.fact-document-list button{display:flex;flex-direction:column;align-items:flex-start;min-width:180px;max-width:300px;white-space:normal}.fact-selected{outline:2px solid #117c70}.fact-workspace{display:grid;grid-template-columns:minmax(320px,1fr) minmax(430px,1.1fr);gap:24px;align-items:start}.fact-original{position:sticky;top:20px}.fact-original iframe{width:100%;height:75vh;border:1px solid #d9dfdc;background:white}.fact-original img{width:100%;height:auto;max-height:75vh;object-fit:contain;border:1px solid #d9dfdc}.fact-review fieldset{border:0;padding:0;min-width:0}.fact-review legend{margin:12px 0}.fact-row{background:white;border:1px solid #d9dfdc;border-radius:12px;padding:16px;margin:14px 0}.fact-row-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.fact-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.fact-row label{display:flex;flex-direction:column;font-size:12px;gap:5px;margin-bottom:10px}.fact-row input,.fact-row select,.fact-row textarea{width:100%;min-width:0;padding:8px;border:1px solid #bfc9c4;border-radius:6px;background:white;color:#18382b}.fact-row textarea{min-height:55px}.fact-warning{background:#fff4d4;color:#694b09;padding:8px 12px;border-left:3px solid #be8c24;margin:12px 0}.fact-warning p{margin:4px 0}.fact-confirm{display:flex;gap:10px;align-items:flex-start;margin:20px 0}.fact-confirm input{width:auto}.fact-message{padding:12px;background:#e2f4ed}.fact-raw pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.fact-raw{margin-top:20px}.fact-review small{font-size:12px;font-weight:normal}.fact-journal h2{overflow-wrap:anywhere}@media(max-width:1000px){.fact-workspace{grid-template-columns:1fr}.fact-original{position:static}.fact-original iframe{height:60vh}}@media(max-width:550px){.fact-fields{grid-template-columns:1fr 1fr}}
.fact-pdf-scroll{overflow:auto;max-height:80vh;background:white;border:1px solid #d9dfdc}.fact-pdf canvas{display:block;max-width:none;height:auto}.fact-pdf .fact-toolbar{margin:8px 0}.fact-pdf .fact-toolbar button{padding:8px 12px}.fact-journal .form-note{color:#64766b}
.fact-workspace{grid-template-columns:minmax(600px,1.8fr) minmax(340px,1fr);gap:18px}.fact-original{min-width:0}.fact-review{min-width:0;max-height:90vh;overflow:auto;padding:0 5px}.fact-scan-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:18px;align-items:start;background:#fff;min-width:600px}.fact-scan-paper{min-width:0}.fact-scan-paper img{display:block;width:100%;height:auto;max-height:none;border:0}.fact-scan-labels{position:relative;z-index:2;display:flex;flex-direction:column;gap:9px;padding:10px 8px 12px 0;font-size:12px;overflow-wrap:anywhere}.fact-scan-callout{text-align:left;white-space:normal;font:inherit;line-height:1.4;overflow-wrap:anywhere;background:#fff8e9;border:1px solid #c27022;border-radius:6px;padding:7px;color:#523315;cursor:pointer;min-height:38px}.fact-scan-callout:hover,.fact-scan-callout:focus-visible,.fact-scan-callout.fact-scan-active{background:#ffdf9c;outline:2px solid #945110}.fact-scan-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible;z-index:1}.fact-scan-lines ellipse{fill:rgba(255,178,53,.08);stroke:#cc6200;stroke-width:1.7}.fact-scan-lines path{fill:none;stroke:#b2671f;stroke-width:1;opacity:.6}.fact-scan-lines .fact-scan-active ellipse{stroke:#004b9b;stroke-width:3;fill:rgba(0,100,200,.1)}.fact-warning summary{cursor:pointer;font-weight:600}.fact-warning[open]{max-height:240px;overflow:auto}.fact-original>div:not(.fact-toolbar):has(>.fact-scan-paper){overflow:visible}.fact-original:has(>.fact-scan-stage){overflow:auto}.fact-row :focus{outline:3px solid #b86b14;outline-offset:2px}@media(max-width:1150px){.fact-workspace{grid-template-columns:1fr}.fact-original{position:static;overflow:auto}.fact-review{max-height:none;overflow:visible}.fact-scan-stage{grid-template-columns:minmax(0,1fr) 210px}.fact-pdf-scroll{max-height:80vh}}
.fact-scan-labels>.fact-scan-callout,.fact-scan-labels>details{position:absolute;left:0;right:8px}.fact-scan-callout small{display:block;margin-top:5px;font-size:10px;color:#76614c}.fact-scan-labels>.fact-scan-callout[hidden]{display:none}

.manual-work-row-daily{grid-template-columns:2fr 1.5fr 1.5fr 110px 150px 36px}@media(max-width:1000px){.manual-work-row-daily{grid-template-columns:1fr 1fr}}
.inventory-revision,.plan-explanation{width:min(1120px,95vw);max-height:92vh;padding:0}.inventory-revision .dialog-body,.plan-explanation .dialog-body{overflow:auto;max-height:70vh}.inventory-revision .table-wrap,.plan-explanation .table-wrap{overflow-x:auto}.inventory-revision table,.plan-explanation table{width:100%;border-collapse:collapse}.inventory-revision td,.inventory-revision th,.plan-explanation td,.plan-explanation th{padding:10px;text-align:left;border-bottom:1px solid #dce5d4}.inventory-revision input[type=number]{width:145px;min-width:100px}.inventory-part{margin:24px 0;padding-bottom:20px;border-bottom:1px solid #dce5d4}.inventory-revision textarea{width:100%;min-height:80px}.inventory-revision details,.plan-explanation details{margin-top:16px}

/* Assistant entry temporarily hidden at the user's request. */
#ai-assistant > .ai-launch { display: none; }
.flow-quick-links{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.flow-quick-links .btn{white-space:normal;text-align:left}.flow-shortcuts{padding-bottom:16px;margin-bottom:20px;border-bottom:1px solid #d7e2d1}.flow-shortcuts>[data-flow-new]{margin-left:10px}
.flow-identity>[hidden]{display:none!important}
.flow-route-controls{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1.25fr) minmax(130px,.6fr);gap:18px;margin:8px 0 24px}.flow-route-field{display:flex;min-width:0;flex-direction:column;gap:8px}.flow-route-field select,.flow-route-field input{width:100%;min-width:0}.flow-route-operations{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.flow-route-operation{display:grid;grid-template-columns:minmax(160px,1fr) auto minmax(130px,1fr);gap:12px;align-items:center;padding:16px;border:1px solid #d7e2d1;border-radius:14px;background:#fff}.flow-route-description{display:flex;gap:10px;align-items:center;min-width:0}.flow-route-description strong,.flow-route-selected{overflow-wrap:anywhere}.flow-route-index{display:inline-grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:#edf2e9;color:#395b40}.flow-route-selected{font-weight:600;color:#294b38}.flow-route-warning{grid-column:1/-1;margin:4px 0;color:#875710;background:#fff6df;padding:10px;border-radius:8px}.flow-route-map{grid-column:1/-1;min-width:0;border-top:1px solid #d7e2d1;margin-top:5px;padding-top:16px}.flow-route-map-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.flow-route-map .form-note{margin:8px 0}.flow-route-floor{min-width:0;margin:14px 0 0;padding:12px;border:1px solid #dce5d7;border-radius:12px;background:#f4f7f1}.flow-route-floor h4{margin:0 0 10px;font-size:16px}.flow-route-map-pan{max-width:100%;overflow-x:auto;padding-bottom:4px}.flow-route-map-grid{display:grid;grid-template-columns:repeat(10,minmax(66px,1fr));grid-template-rows:auto 24px auto;gap:5px;min-width:730px}.flow-route-machine{min-width:0;min-height:66px;padding:7px 5px;display:flex;flex-direction:column;gap:3px;align-items:flex-start;text-align:left;border:1px solid #8aa285;border-top:4px solid #39815a;border-radius:9px;background:#fff;color:#254332;cursor:pointer;font:inherit}.flow-route-machine strong{font-size:14px}.flow-route-machine small{font-size:10px;line-height:1.25;overflow-wrap:anywhere}.flow-route-machine:disabled{border-color:#d1d8cf;background:#e8ece5;color:#899185;cursor:not-allowed;opacity:.72}.flow-route-machine:not(:disabled):hover,.flow-route-machine[aria-pressed=true]{border-color:#18794e;background:#dff1e3;outline:2px solid #18794e;outline-offset:-2px}.flow-route-machine:focus-visible{outline:3px solid #ad6d1e;outline-offset:1px}.flow-route-street{text-align:center;align-self:center;font-size:11px;color:#73806d;white-space:nowrap}.flow-route-map-extra{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:8px}.flow-route-map-extra .flow-route-machine{min-height:70px}@media(max-width:700px){.flow-route-controls{grid-template-columns:minmax(0,1fr)}.flow-route-operation{grid-template-columns:minmax(0,1fr) auto;padding:12px}.flow-route-selected{grid-column:1/-1}.flow-route-map-heading .btn{padding:8px 12px;font-size:12px}.flow-route-floor{padding:8px}.flow-route-description strong{font-size:15px}} 

.flow-plan-check{margin-top:20px;padding:20px}.flow-plan-audit>summary{cursor:pointer;font-weight:600}.flow-plan-audit[open]>summary{margin-bottom:14px}.flow-plan-audit section+section{margin-top:20px}.flow-plan-audit table{width:100%;min-width:640px}.flow-plan-audit th,.flow-plan-audit td{vertical-align:top;padding:10px}.flow-plan-audit small{display:block;margin-top:5px}
