
:root{--paper:#f6f5f3;--white:#fff;--ink:#20252e;--muted:#747982;--line:#eae8e5;--peach:#f58b58;--orange:#e56f38;--soft:#fff0e7;--green:#57a97b;--blue:#659fc8;--purple:#a18bce;--shadow:0 3px 18px #34291b04,0 1px 2px #34291b02;--radius:20px}*{box-sizing:border-box}html{color-scheme:light;scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}a{color:inherit;text-decoration:none}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #659fc8;outline-offset:4px}button{border:0}button:disabled{opacity:.4;cursor:not-allowed}svg{flex-shrink:0}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.app{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100vh}.side{position:sticky;top:0;height:100vh;padding:35px 17px 23px;color:#bdbfbd;background:radial-gradient(ellipse at 10% 0,#343837 0,transparent 60%),linear-gradient(155deg,#272b29,#1d211f);display:flex;flex-direction:column}.brand{display:flex;gap:10px;align-items:center;font-size:23px;font-weight:700;letter-spacing:-.8px;color:var(--ink)}.side .brand{color:white;padding:0 16px}.brand-mark{width:28px;height:32px;fill:var(--peach)}.nav{display:grid;gap:9px;margin-top:42px}.nav a{display:flex;align-items:center;gap:13px;padding:12px 16px;border-radius:9px;font-size:14px;position:relative;transition:background .15s}.nav a:hover{background:#ffffff0b}.nav a.active{background:linear-gradient(100deg,#f88e5a30,#f88e5a13);color:#fff3eb}.nav a.active:before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:4px;background:#f69a69}.nav a.active .icon{color:#ffac80}.side-foot{margin-top:auto}.side-foot .nav{margin:0}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid #ffffff16;margin:18px 12px 0;padding-top:20px;font-size:14px}.avatar{width:35px;height:35px;border-radius:50%;background:#e8e7e3;color:#474b4f;display:grid;place-items:center;font-size:14px}.profile .avatar{background:#ffffff1a;color:#e2e5e1}.profile small{display:block;color:#979c97;font-size:12px}.main{width:100%;max-width:1580px;padding:34px 32px 28px;min-width:0;margin:0 auto}.top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}h1,h2,h3,p{margin:0}h1{font-size:26px;letter-spacing:-.9px;font-weight:650;line-height:1.25}h2{font-size:20px;letter-spacing:-.5px;font-weight:650}h3{font-size:16px;font-weight:600}.subtitle{color:var(--muted);font-size:14px;margin-top:5px}.top-tools{display:flex;align-items:center;gap:12px}.demo{color:#c56b3b;background:#fff0e7;font-size:12px;padding:5px 10px;border-radius:8px;white-space:nowrap}.location{display:flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:10px;background:#ffffff99;padding:7px 10px}.location .icon{width:17px}.location select{border:0;background:transparent;font-size:14px;color:var(--ink);max-width:110px}.mobile-head,.bottom-nav{display:none}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat{display:flex;align-items:center;gap:15px;padding:22px;background:linear-gradient(130deg,#fff,#fdfcfb);border:1px solid #eae7e3;border-radius:18px;box-shadow:var(--shadow);text-align:left}.stat-label{font-size:14px;color:var(--muted)}.stat strong{display:block;font-size:28px;line-height:1.2;margin-top:6px;letter-spacing:-.7px;font-weight:650}.round{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#fff0e6;color:#ef8b54}.round.green{background:#eaf5ee;color:var(--green)}.round.blue{background:#edf3fa;color:var(--blue)}.panel{padding:21px;background:#ffffffbc;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:20px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.quiet{border:1px solid var(--line);background:#ffffff88;border-radius:11px;padding:8px 13px;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px}.quiet:hover{background:#f6f4f1}.primary{background:linear-gradient(145deg,#ff9b68,#f18450);color:#fff;border:1px solid #ef8c5c;border-radius:12px;padding:10px 16px;box-shadow:0 4px 10px #e5804420;font-weight:600;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:43px}.primary:hover{filter:brightness(.97)}.primary .icon{width:17px;height:17px}.icon-button{height:40px;width:40px;border-radius:50%;background:#ffffffaa;display:grid;place-items:center;color:var(--muted)}.icon-button:hover{background:#eeece8}.board{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.column{background:linear-gradient(#f6f5f2,#f8f7f5);border-radius:12px;padding:12px;min-height:218px;--tone:var(--peach)}.column:nth-child(2){--tone:var(--blue)}.column:nth-child(3){--tone:var(--green)}.column:nth-child(4){--tone:var(--purple)}.column-head{display:flex;align-items:center;gap:7px;font-size:14px;margin-bottom:13px;font-weight:550}.dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:var(--tone,var(--green))}.column-head span:last-child{margin-left:auto;font-weight:400;color:var(--muted)}.mini-card{background:#fff;border:1px solid #ece9e4;border-radius:11px;padding:13px;width:100%;text-align:left;margin-bottom:10px;transition:transform .15s,box-shadow .15s}.mini-card:hover{transform:translateY(-2px);box-shadow:0 6px 18px #332b1510}.mini-top{display:flex;justify-content:space-between;gap:8px;font-size:13px;margin-bottom:8px}.mini-top span{color:var(--muted);font-size:12px}.mini-body{display:flex;align-items:center;gap:10px}.mini-body>div:first-child{min-width:0;flex:1}.mini-name{font-size:14px}.thumb{width:58px;height:62px;border-radius:9px;background:#f3f0ed url('products.png') no-repeat;background-size:300% 100%;background-position:0 50%;flex-shrink:0}.thumb.connector{background-position:50% 50%}.thumb.wire{background-position:100% 50%}.progress{height:5px;border-radius:5px;background:#eae9e6;overflow:hidden;margin:12px 0 7px}.progress i{height:100%;display:block;background:linear-gradient(90deg,var(--tone,var(--peach)),color-mix(in srgb,var(--tone,var(--peach)) 65%,white));border-radius:5px}.fine{font-size:12px;color:var(--muted)}.empty-column{min-height:146px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#999eaa;gap:10px;text-align:center;font-size:12px;padding:14px}.empty-column .icon{width:27px;height:27px}.board-note{font-size:12px;color:var(--muted);margin-top:13px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap;font-size:14px}th{font-size:12px;font-weight:400;color:var(--muted);background:#f6f5f3}th:first-child{border-radius:10px 0 0 10px}th:last-child{border-radius:0 10px 10px 0}th,td{padding:12px 13px}td{border-bottom:1px solid #efeeeb}tbody tr:last-child td{border-bottom:0}.table-order{padding:0;background:none;text-align:left;font-weight:550;font-size:14px}.status{display:inline-flex;align-items:center;gap:6px;background:#edf3f9;color:#5c88ae;padding:4px 9px;border-radius:20px;font-size:12px;white-space:nowrap}.status.done{background:#edf5ed;color:#589770}.status.wait{background:#f4efe7;color:#aa8b59}.table-progress{min-width:116px;display:flex;align-items:center;gap:9px;font-size:12px}.table-progress .progress{width:75px;margin:0}.materials{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.material{padding:12px;border:1px solid #ebe8e4;background:#fff;border-radius:13px;display:flex;gap:13px;align-items:center;text-align:left;width:100%;transition:box-shadow .15s}.material:hover{box-shadow:0 4px 16px #332b1510}.material .thumb{width:76px;height:81px}.material h3{font-size:14px}.material .fine{margin:2px 0 10px}.stock-number{font-size:14px}.stock-number:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#69ad7d;margin-right:7px}.material.low .stock-number:before{background:#e6aa5d}.demo-note{font-size:12px;color:#91918f;text-align:center;margin:20px 0 6px}.mobile-orders,.stage-summary{display:none}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px;flex-wrap:wrap}.search{position:relative;flex:1;max-width:340px;min-width:180px}.search .icon{position:absolute;left:13px;top:12px;width:18px;height:18px;color:#93979f}.search input{width:100%;padding:11px 12px 11px 40px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);font-size:14px}.segments{display:flex;gap:3px;background:#ebeae7;padding:4px;border-radius:11px}.segments button{border-radius:8px;padding:7px 12px;font-size:14px;color:#777b80;background:transparent;min-height:36px}.segments button.active{background:#fff;box-shadow:0 2px 5px #00000006;color:#333}.empty-state{padding:60px 20px;text-align:center;color:var(--muted)}.empty-state .icon{width:36px;height:36px;margin-bottom:15px;color:#c5b8a9}.empty-state h2{margin-bottom:8px;color:var(--ink)}.mobile-card{display:block;text-align:left;padding:17px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow);width:100%;margin-bottom:12px}.mobile-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:14px;font-weight:600}.mobile-card-body{display:flex;gap:15px;align-items:center}.mobile-card-body>div:first-child{flex:1}.mobile-card-body .thumb{height:75px;width:78px}.mobile-card .progress{max-width:165px}.stage-summary{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}.stage-chip{padding:13px;display:flex;gap:12px;align-items:center;text-align:left;border:1px solid var(--line);border-radius:15px;background:#fff}.stage-chip .round{width:38px;height:38px}.stage-chip .round .icon{width:18px;height:18px}.stage-chip .label{font-size:12px;color:var(--muted)}.stage-chip strong{display:block;font-weight:600;font-size:20px}.stock-heading{font-size:14px;color:var(--muted);margin-bottom:16px}.settings-list{display:grid;gap:0}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding:20px 0}.settings-row:last-child{border:0}.settings-row h3{margin-bottom:4px}.settings-row p{font-size:14px;color:var(--muted)}.settings-row span{color:var(--orange);font-size:14px;white-space:nowrap}dialog{padding:0;border:1px solid #e8e4df;border-radius:24px;width:min(520px,calc(100% - 28px));max-height:88dvh;background:#fdfcfb;box-shadow:0 30px 100px #1418192b;color:var(--ink)}dialog::backdrop{background:#20252166;backdrop-filter:blur(5px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fdfcfb;z-index:1}.dialog-content{padding:24px}.detail-hero{display:flex;align-items:center;gap:18px;margin-bottom:23px}.detail-hero .thumb{width:95px;height:100px}.detail-hero h2{font-size:23px;margin:8px 0}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.detail-cell{background:#f3f2ef;border-radius:12px;padding:13px}.detail-cell strong{display:block;margin-top:4px;font-size:20px;font-weight:550}.detail-cell span{font-size:12px;color:var(--muted)}.detail-line{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.detail-line span{color:var(--muted)}.field{display:grid;gap:7px;font-size:14px;margin-bottom:18px}.field input,.field select{width:100%;padding:12px 13px;color:var(--ink);background:#fff;border:1px solid #e3e0db;border-radius:10px;min-height:46px}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-message{font-size:13px;color:#b55838;min-height:20px;margin-bottom:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:12px 20px;border-radius:12px;background:#292e2b;color:#fff;font-size:14px;box-shadow:0 8px 30px #0002;z-index:100;max-width:calc(100% - 30px);width:max-content}.greeting-mobile{display:none}.overview-toggle{display:none}.mobile-board-title{display:none}.board-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.filter-chip{padding:9px 14px;border-radius:10px;border:1px solid var(--line);background:#fff;font-size:14px}.filter-chip.active{background:#fff0e7;color:#bc6e45;border-color:#f1d8c9}
@media(min-width:1550px){.main{padding:40px}.column{padding:16px}.mini-card{padding:16px}.board{gap:16px}}
@media(max-width:1150px){.app{grid-template-columns:190px 1fr}.main{padding:26px 22px}.board{grid-template-columns:repeat(2,1fr)}.materials{grid-template-columns:1fr}.material .thumb{width:65px;height:65px}.stat{padding:17px;gap:11px}.stat-label{font-size:12px}.top .avatar{display:none}.column{min-height:180px}}
@media(max-width:700px){body{background:radial-gradient(ellipse at 100% 0,#f5ebe344,transparent 45%),#f8f7f5}.app{display:block}.side{display:none}.main{padding:20px 18px calc(100px + env(safe-area-inset-bottom));max-width:560px}.mobile-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;padding-top:env(safe-area-inset-top)}.brand{font-size:22px}.brand-mark{width:25px;height:29px}.mobile-head .avatar{height:39px;width:39px}.top{display:block;margin-bottom:21px}.desktop-title,.subtitle{display:none}.greeting-mobile{display:block;font-size:25px;letter-spacing:-.8px;font-weight:650;margin:0 0 10px}.top-tools{gap:10px}.top-tools .avatar{display:none}.location{border:0;padding:0;background:none}.location select{padding:2px 0;font-size:14px}.demo{font-size:12px;padding:3px 8px}.stats{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.stat{padding:16px 12px;gap:10px;border-radius:16px}.stat:nth-child(3){display:none}.stat .round{width:39px;height:39px}.stat-label{font-size:12px}.stat strong{font-size:23px;margin:0 0 2px}.stat>div:last-child{display:flex;flex-direction:column-reverse}.overview-toggle{display:flex;margin-bottom:23px}.overview-toggle button{flex:1}.overview-toggle button.active{background:linear-gradient(140deg,#ffa46d,#f68b52);color:white;box-shadow:0 3px 9px #e68f5020}.panel{background:transparent;border:0;padding:0;box-shadow:none;margin-bottom:25px}.panel-head{margin-bottom:15px}.panel-head h2{font-size:21px}.panel-head .quiet{font-size:12px;min-height:34px;padding:6px 10px;background:#ffffff88}.overview-board .board,.overview-board .board-note{display:none}.stage-summary{display:grid}.orders-table{display:none}.mobile-orders{display:block}.mobile-card .status{font-size:11px}.bottom-nav{display:flex;justify-content:space-around;position:fixed;bottom:0;left:0;right:0;z-index:20;border-top:1px solid #e7e3ddbb;padding:10px 8px calc(9px + env(safe-area-inset-bottom));background:#fdfcfbee;backdrop-filter:blur(18px);box-shadow:0 -5px 25px #47362203}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:4px;color:#80848b;font-size:12px;min-width:65px;min-height:46px;padding:3px 6px}.bottom-nav a.active{color:#ee8c55}.bottom-nav a.active .icon{stroke-width:2.1}.bottom-nav .icon{height:23px;width:23px}.materials{gap:10px}.material{padding:12px}.material .thumb{width:74px;height:76px}.material>div:last-child{flex:1}.material h3{font-size:15px}.material .fine{font-size:12px}.toolbar{gap:12px}.toolbar .search{max-width:none;flex-basis:100%}.toolbar .primary{margin-left:auto}.toolbar .segments{order:2}.board{grid-template-columns:1fr}.column{min-height:auto;padding:14px}.column-head{font-size:16px}.column .mini-card{padding:16px}.column .mini-name{font-size:16px}.column .mini-top{font-size:14px}.column .mini-top span{font-size:13px}.column .thumb{width:70px;height:72px}.dialog-content{padding:20px}.dialog-head{padding:18px 20px}.dialog-head h2{font-size:19px}.toast{bottom:calc(88px + env(safe-area-inset-bottom));font-size:13px}.settings-row{align-items:flex-start;flex-direction:column;gap:7px}.two-fields{grid-template-columns:1fr}.board-filters{flex-wrap:nowrap;overflow:auto;padding-bottom:4px}.filter-chip{white-space:nowrap}.detail-cell{padding:12px}.mobile-board-title{display:block}.overview-orders .primary{border-radius:50%;height:36px;width:36px;min-height:36px;padding:0}.overview-orders .primary span{display:none}.overview-orders .primary .icon{width:21px;height:21px}.demo-note{font-size:12px;text-align:left;line-height:1.6}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
.auth-shell{max-width:440px;margin:10vh auto;padding:30px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}.auth-shell h1{margin:22px 0 8px}.auth-shell .field{margin-top:18px}.auth-shell .primary{width:100%}.error-box{background:#fff0e8;color:#9c3d22;padding:12px 15px;border-radius:12px;font-size:14px;margin-bottom:18px}.page-message{padding:30px 15px;text-align:center;color:var(--muted)}.form-note{font-size:13px;color:var(--muted);margin:10px 0 20px}.notes{white-space:pre-wrap;overflow-wrap:anywhere}textarea{font:inherit;border:1px solid var(--line);border-radius:10px;min-height:100px;padding:12px;resize:vertical}.inline-check{display:flex;align-items:center;gap:8px;margin:12px 0 18px;font-size:14px}.inline-check input{height:20px;width:20px}.team-list{display:grid;gap:12px}.team-row{padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.team-row small{display:block;color:var(--muted)}.hint{background:#f4f3f0;border-radius:12px;padding:16px;margin-bottom:20px;font-size:14px}.field select{max-width:100%}.detail-cell strong{overflow-wrap:anywhere}.login-brand{font-weight:750;font-size:25px;color:var(--orange)}@media(max-width:700px){.auth-shell{margin:35px 16px;padding:25px}.top-tools{flex-wrap:wrap}.team-row{align-items:flex-start;flex-direction:column}.panel{overflow-wrap:anywhere}.settings-row .primary{max-width:100%}.auth-shell input,.field input,.field select,.search input,textarea{font-size:16px}}

/* Production and material inventory. Counts shown in cards always come from the server. */
.production-intro { margin:0 0 24px; }
.production-eyebrow { display:block; margin-bottom:7px; color:var(--orange); font-size:12px; font-weight:650; letter-spacing:.6px; }
.production-intro h2 { font-size:25px; letter-spacing:-.7px; }
.production-intro p { max-width:720px; color:var(--muted); font-size:14px; margin-top:7px; }
.production-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:24px; }
.production-stat { min-width:0; padding:20px; border:1px solid var(--line); border-radius:17px; background:#ffffffc7; box-shadow:var(--shadow); }
.production-stat>span { display:block; color:var(--muted); font-size:13px; }
.production-stat>strong { display:block; font-size:31px; line-height:1.25; font-weight:650; letter-spacing:-.7px; margin:8px 0; overflow-wrap:anywhere; }
.production-stat>small { display:block; color:var(--muted); font-size:11px; }
.production-stat.accent { background:linear-gradient(125deg,#fff0e4,#fff9f4); border-color:#f1dbc9; }
.production-stat.accent>strong { color:#bd6435; }
.production-stat.positive>strong,.production-positive { color:#3b8c60; }
.production-negative { color:#b84d32; }
.production-muted { color:var(--muted); }
.production-toolbar .search input { padding-left:14px; }
.production-toolbar .primary { margin-left:auto; }
.production-board { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.production-welding { --tone:#e9905e; }
.production-soldering { --tone:#6098ba; }
.production-packaging { --tone:#69a586; }
.production-column { min-width:0; padding:16px; background:#eeece888; border:1px solid #e6e3df; border-radius:16px; }
.production-column-head { display:flex; align-items:center; gap:8px; }
.production-column-head h3 { font-size:15px; }
.production-column-head>.fine { margin-left:auto; background:#fff; border-radius:7px; padding:2px 7px; }
.production-stage-hint { font-size:11px; color:var(--muted); margin:7px 0 15px; min-height:32px; }
.production-batch-card { display:block; width:100%; text-align:left; margin-bottom:12px; padding:15px; border:1px solid #e6e3dd; border-radius:12px; background:#fff; transition:box-shadow .15s,transform .15s; }
.production-batch-card:hover { transform:translateY(-2px); box-shadow:0 5px 16px #252b2510; }
.production-card-top { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; margin-bottom:9px; }
.production-card-top>strong { font-size:13px; }
.production-card-top>small { color:var(--muted); font-size:11px; text-align:right; overflow-wrap:anywhere; }
.production-batch-card h3 { font-size:15px; overflow-wrap:anywhere; }
.production-card-quantity { display:flex; align-items:baseline; gap:8px; margin-top:12px; }
.production-card-quantity strong { font-size:22px; font-weight:650; }
.production-card-quantity span { font-size:11px; color:var(--muted); }
.production-column-empty { padding:32px 12px; color:#969a9c; border:1px dashed #dbd8d3; border-radius:11px; text-align:center; font-size:13px; }
.production-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:24px 0 5px; }
.production-completed { margin-top:23px; }
.production-completed-list { display:flex; gap:8px; flex-wrap:wrap; margin-top:11px; }
.production-flow-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.production-flow-cell { display:block; min-width:0; padding:17px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.production-flow-cell:hover { border-color:var(--tone); }
.production-flow-index { display:block; width:28px; height:28px; border-radius:8px; background:color-mix(in srgb,var(--tone) 14%,white); color:var(--tone); text-align:center; font-size:12px; line-height:28px; font-weight:700; margin-bottom:13px; }
.production-flow-cell h3 { font-size:14px; margin-bottom:10px; }
.production-flow-cell>strong { display:block; font-size:27px; font-weight:650; }
.production-flow-cell>strong small { font-size:12px; font-weight:400; color:var(--muted); }
.production-flow-cell p { margin-top:3px; }
.production-table-small { display:block; margin-top:2px; font-size:11px; color:var(--muted); }
.production-text-link { color:#b8643b; font-weight:550; }
.production-desktop-table { max-width:100%; }
.production-mobile-table { display:none; }
.production-mobile-metrics { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin-top:15px; }
.production-mobile-metrics span { color:var(--muted); font-size:11px; }
.production-mobile-metrics strong { display:block; font-size:18px; color:var(--ink); font-weight:600; margin-top:3px; }
.production-card-actions { display:flex; gap:8px; margin-top:16px; flex-wrap:wrap; }
.production-stock-tabs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:24px; }
.production-loading { padding:60px 15px; display:flex; align-items:center; justify-content:center; gap:12px; font-size:14px; color:var(--muted); }
.production-spinner { height:20px; width:20px; border:2px solid #eaded2; border-top-color:var(--orange); border-radius:50%; animation:production-spin 1s linear infinite; }
@keyframes production-spin { to { transform:rotate(360deg); } }
.production-error .fine { margin:10px 0 18px; }
.production-empty-mark { display:grid; place-items:center; width:50px; height:50px; border-radius:15px; background:var(--soft); color:var(--orange); margin:0 auto 17px; font-size:28px; }
.production-empty p { max-width:520px; margin:0 auto; }
.production-empty .primary { margin-top:23px; }
.production-subtitle { display:block; }
.production-detail-stages { margin-top:20px; }
.production-detail-stage { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:15px 0; border-bottom:1px solid var(--line); }
.production-detail-stage>div { min-width:0; }
.production-detail-stage small { color:var(--tone); font-size:11px; font-weight:650; }
.production-detail-stage h3 { margin:2px 0 4px; }
.production-detail-stage .quiet { flex-shrink:0; }
.production-shipping-hint { display:flex; justify-content:space-between; align-items:center; gap:12px; background:#edf4ed; border-radius:12px; padding:16px; margin:20px 0 6px; }
.production-shipping-hint strong { font-size:13px; }
.production-shipping-hint .primary { font-size:12px; }
.production-detail-notes { margin-top:18px; font-size:14px; }
.production-history-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:27px 0 8px; }
.production-events { list-style:none; padding:0; margin:20px 0; }
.production-events li { display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.production-events li:last-child { border:0; }
.production-event-mark { flex-shrink:0; display:grid; place-items:center; height:28px; width:28px; border-radius:9px; color:#5a9072; background:#eaf2ec; font-size:13px; }
.production-event-mark.shipment { color:#be784f; background:#fbecdf; }
.production-events li>div { min-width:0; }
.production-events strong { font-size:13px; font-weight:600; }
.production-events p { font-size:13px; margin-top:3px; overflow-wrap:anywhere; }
.production-events small { display:block; color:var(--muted); font-size:11px; margin-top:6px; }
.production-form-model { margin-bottom:18px; font-size:15px; font-weight:600; }
.production-available { background:#fbefe4; border:1px solid #f0dfcd; }
.production-available>span { color:#a17958; font-size:12px; }
.production-available>strong { display:block; font-size:27px; font-weight:600; margin:5px 0 8px; }
.production-available>p { font-size:12px; color:#8c7767; }
.production-batch-norms { margin:22px 0; padding:14px; background:#f4f3ef; border:1px solid var(--line); border-radius:12px; }
.production-batch-norms summary { cursor:pointer; font-weight:550; font-size:13px; }
.production-batch-norm-stage { margin-top:18px; }
.production-batch-norm-stage h3 { font-size:13px; }
.production-batch-norm-stage .detail-line { font-size:12px; }
.production-consumption { margin-bottom:20px; padding:15px; border:1px solid var(--line); background:#f5f4f0; border-radius:12px; }
.production-consumption h3 { font-size:14px; margin-bottom:5px; }
.production-consumption-row { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); padding:10px 0; font-size:12px; }
.production-consumption-row:last-child { border:0; }
.production-consumption-row small { display:block; color:var(--muted); margin-top:4px; }
.production-consumption-row strong { white-space:nowrap; }
.production-norm-rows { display:grid; gap:0; margin:15px 0; }
.production-norm-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:13px 0; border-bottom:1px solid var(--line); }
.production-norm-row strong { font-size:14px; }
.production-norm-row small { display:block; font-size:11px; color:var(--muted); margin-top:3px; }
.production-norm-row input { width:125px; flex-shrink:0; padding:11px 12px; border:1px solid #e3e0db; border-radius:10px; background:#fff; color:var(--ink); }
.production-material-events { max-width:760px; }
@media(max-width:1150px) {
  .production-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .production-board { gap:10px; }
  .production-column { padding:12px; }
  .production-column-head h3 { font-size:14px; }
  .production-batch-card { padding:12px; }
}
@media(max-width:850px) {
  .production-board { grid-template-columns:1fr; }
  .production-stage-hint { min-height:0; }
  .production-column { padding:16px; }
}
@media(max-width:700px) {
  .production-intro { margin-bottom:21px; }
  .production-intro h2 { font-size:23px; }
  .production-intro p { font-size:13px; line-height:1.65; }
  .production-stats { gap:10px; margin-bottom:22px; }
  .production-stat { padding:15px 13px; border-radius:15px; }
  .production-stat>span { font-size:11px; }
  .production-stat>strong { font-size:27px; margin:6px 0; }
  .production-stat>small { font-size:10px; }
  .production-flow-grid { grid-template-columns:1fr; gap:9px; }
  .production-flow-cell { display:grid; grid-template-columns:30px 1fr auto; align-items:center; column-gap:12px; padding:15px; }
  .production-flow-index { margin:0; grid-row:1/3; }
  .production-flow-cell h3 { margin:0; font-size:14px; }
  .production-flow-cell>strong { grid-column:3; grid-row:1/3; font-size:25px; }
  .production-flow-cell p { grid-column:2; }
  .production-flow .panel-head { align-items:flex-start; }
  .production-flow .panel-head h2 { font-size:18px; }
  .production-flow .panel-head .quiet { font-size:10px; padding:7px; }
  .production-desktop-table { display:none; }
  .production-mobile-table { display:block; }
  .production-mobile-table .mobile-card .quiet { margin-top:12px; }
  .production-mobile-table .production-card-actions .quiet { margin-top:0; }
  .production-stock-tabs { gap:7px; }
  .production-stock-tabs .filter-chip { padding:9px 11px; font-size:12px; }
  .production-pagination { flex-wrap:wrap; }
  .production-pagination>span { font-size:11px; }
  .production-pagination>.quiet { font-size:12px; padding:8px 10px; }
  .production-toolbar .segments { order:0; }
  .production-column-head h3 { font-size:16px; }
  .production-batch-card { padding:16px; }
  .production-error,.production-empty { background:#fff; padding:25px 18px; border:1px solid var(--line); border-radius:17px; }
  .production-subtitle { display:block; }
  .production-detail-stage .fine { font-size:11px; }
  .production-shipping-hint { flex-direction:column; align-items:stretch; }
  .production-shipping-hint .primary { margin-top:5px; }
  .production-norm-row { gap:10px; }
  .production-norm-row input { width:105px; font-size:16px; }
  .production-norm-row>span { min-width:0; overflow-wrap:anywhere; }
  .production-history-head .fine { font-size:10px; }
  .production-stock-hint { font-size:12px; line-height:1.7; }
}
@media(prefers-reduced-motion:reduce) { .production-spinner { animation:none; } }
.connection-summary{padding:14px;border:1px solid var(--line);border-radius:12px;background:#faf9f7;margin:18px 0;font-size:13px}.connection-summary>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:5px 0}.connection-summary strong{text-align:right;font-weight:600}.connection-good{color:#36754e}.connection-pending{color:#9c5e2f}.connection-message{margin-top:12px;color:var(--muted);line-height:1.6}.team-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}@media(max-width:700px){.team-actions{justify-content:flex-start}.connection-summary{font-size:12px}}
