@import"https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&display=swap";:root{--bg-1: #f5f0e8;--bg-2: #e8f0ea;--panel: #ffffff;--row-selected-bg: #d8f0df;--ink: #121212;--muted: #5e5e5e;--line: #cfc9bf;--accent: #2b6a5a;--accent-2: #3d8b78;--shadow: 0 12px 30px rgba(0, 0, 0, .08);--surface-mix: #ffffff;--surface-soft: #f8f4ed}[data-theme=dark]{--bg-1: #14161a;--bg-2: #1b1e23;--panel: #20242b;--row-selected-bg: #1f3a33;--ink: #ececec;--muted: #b8bdc4;--line: #4a5260;--accent: #3d8b78;--accent-2: #56b39c;--shadow: 0 12px 30px rgba(0, 0, 0, .45);--surface-mix: #20242b;--surface-soft: #181b20}*{box-sizing:border-box}body{margin:0;font-family:Space Grotesk,Segoe UI,sans-serif;color:var(--ink);background:radial-gradient(900px 500px at 10% -10%,rgba(61,139,120,.12),transparent 60%),radial-gradient(800px 400px at 100% 0%,rgba(43,106,90,.1),transparent 55%),linear-gradient(160deg,var(--bg-1),var(--bg-2));min-height:100vh}a{color:inherit}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:32px}.auth-card{width:min(420px,92vw);background:var(--panel);padding:32px;border-radius:18px;box-shadow:var(--shadow);border:1px solid var(--line)}.brand{font-size:20px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-bottom:8px}.brand img{width:150px;height:auto;display:block;margin:0 auto}[data-theme=dark] .brand img{filter:brightness(0) invert(1)}.sidebar-user-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 14px}.sidebar-user{font-size:13px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.sidebar-user-button{background:none;border:none;padding:0;text-align:left;cursor:pointer;font:inherit;color:var(--ink)}.sidebar-user.muted.sidebar-user-button{color:var(--ink)}.sidebar-user-button:hover{text-decoration:underline;color:var(--accent)}.preferences-group{margin-top:18px}.preferences-group h3{margin:0 0 10px;font-size:14px;text-transform:uppercase;letter-spacing:.4px;color:var(--muted)}.preferences-toggle{display:inline-flex;align-items:center;gap:8px;font-size:14px;-webkit-user-select:none;user-select:none;cursor:pointer}.preferences-toggle input{accent-color:var(--accent)}.preferences-switch{position:relative;display:inline-block;width:40px;height:22px;background:var(--line);border-radius:999px;transition:background .2s ease;flex-shrink:0}.preferences-switch input{opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.preferences-switch-thumb{position:absolute;top:3px;left:3px;width:16px;height:16px;background:var(--panel);border-radius:50%;transition:transform .2s ease;pointer-events:none;box-shadow:0 1px 3px #00000040}.preferences-switch.on{background:var(--accent)}.preferences-switch.on .preferences-switch-thumb{transform:translate(18px)}.sidebar-pill{font-size:11px;padding:6px 10px;white-space:nowrap}h1{margin:0 0 10px}h2{margin:0 0 12px}.section-heading{margin:0;display:inline-flex;align-items:center;gap:10px}.section-heading-icon{width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;color:var(--section-color);flex:0 0 auto}.section-heading-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.section-heading-label{color:var(--section-color);font-weight:700}.muted{color:var(--muted)}.form{display:grid;gap:12px}.form label{display:grid;gap:6px;font-size:14px}.form input,.form select,.form textarea{padding:10px 12px;border-radius:10px;border:1px solid var(--line);font-family:inherit}.form textarea{min-height:180px;resize:vertical}.form-row-inline{display:flex;gap:8px}button{font-family:inherit;cursor:pointer;color:var(--ink);background:transparent}input,select,textarea{color:var(--ink);background:var(--panel)}.primary{background:var(--accent);border:none;color:#fff;padding:10px 14px;border-radius:10px;font-weight:600}.primary:disabled{background:#a8b3ae;color:#f4f4f4;cursor:not-allowed}.ghost{background:transparent;border:1px solid var(--line);padding:8px 12px;border-radius:10px;color:var(--ink)}.link{background:none;border:none;padding:0;margin-top:12px;color:var(--accent);font-weight:600}.notice{margin-top:12px;padding:10px;background:var(--surface-soft);border:1px dashed var(--line);border-radius:10px}.dismissible-banner{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dismissible-banner-message{min-width:0;flex:1 1 auto}.dismissible-banner-actions{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto}.dismissible-banner-dismiss{white-space:nowrap}.token{margin-top:10px;font-size:13px;background:#f1f6f4;padding:8px;border-radius:8px;border:1px solid var(--line)}.error{background:#ffe6e6;border:1px solid #f3b0b0;padding:8px;border-radius:8px;font-size:13px;margin-bottom:10px}.app-shell{display:grid;grid-template-columns:208px 1fr;min-height:100vh}.sidebar{display:flex;flex-direction:column;padding:28px 22px;border-right:2px solid var(--line);background:color-mix(in srgb,var(--panel) 70%,transparent);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.nav{display:grid;gap:12px}.nav-item,.nav-sub{width:100%;text-align:left;padding:10px 12px;border-radius:10px;border:1px solid transparent;background:transparent;font-weight:600}.nav-item{display:flex;align-items:center;gap:10px}.nav-icon{display:inline-flex;width:24px;height:24px;align-items:center;justify-content:center;color:var(--accent);border-radius:8px;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--surface-mix));background:color-mix(in srgb,var(--accent) 15%,var(--surface-mix));box-shadow:inset 0 0 0 1px #ffffff8c}.nav-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.nav-item[data-nav-key=dashboard] .nav-icon{color:#4f46e5;border-color:#c7d2fe;background:#eef2ff}.nav-item[data-nav-key=order_management] .nav-icon{color:#2563eb;border-color:#bfdbfe;background:#eff6ff}.nav-item[data-nav-key=inventory_management] .nav-icon{color:#d97706;border-color:#fed7aa;background:#fff7ed}.nav-item[data-nav-key=shipping_management] .nav-icon{color:#0f766e;border-color:#99f6e4;background:#f0fdfa}.nav-item[data-nav-key=activity] .nav-icon{color:#475569;border-color:#cbd5e1;background:#f8fafc}.nav-item[data-nav-key=user_management] .nav-icon{color:#db2777;border-color:#fbcfe8;background:#fdf2f8}.nav-item[data-nav-key=tools] .nav-icon{color:#16a34a;border-color:#bbf7d0;background:#f0fdf4}.nav-item[data-nav-key=config] .nav-icon{color:#64748b;border-color:#cbd5e1;background:#f8fafc}.nav-label{flex:1}.nav-item.active,.nav-sub.active{background:var(--panel);border-color:var(--line);box-shadow:var(--shadow)}.subnav{display:grid;gap:6px;margin:6px 0 10px 12px}.nav-sub{font-size:13px;font-weight:500}.sidebar-note{font-size:12px;color:var(--muted);flex:1}.sidebar-footer{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:auto;padding-top:10px}.sidebar-logout{padding:6px 10px;white-space:nowrap}.sidebar-footer .sidebar-note{text-align:center}.sidebar-toggle{margin-top:16px;width:100%;border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:8px 12px;font-weight:600}.app-shell.collapsed{grid-template-columns:86px 1fr}.app-shell.collapsed .sidebar{padding:24px 12px}.app-shell.collapsed .brand img{width:48px;margin:0 auto}.app-shell.collapsed .nav-item{justify-content:center}.app-shell.collapsed .nav-label,.app-shell.collapsed .subnav,.app-shell.collapsed .sidebar-note,.app-shell.collapsed .sidebar-footer,.app-shell.collapsed .sidebar-user-row,.app-shell.collapsed .sidebar-user{display:none}.content{padding:18px 34px;display:block;--section-color: var(--accent)}.content[data-section=order_status]{--section-color: #1e40af}.content[data-section=order_bom]{--section-color: #2563eb}.content[data-section=order_outlet]{--section-color: #0284c7}.content[data-section=order_preproduction]{--section-color: #4f46e5}.content[data-section=order_sample_orders]{--section-color: #6d28d9}.content[data-section=inventory_materials]{--section-color: #b45309}.content[data-section=inventory_stock_balances]{--section-color: #d97706}.content[data-section=inventory_consumption_rules]{--section-color: #ca8a04}.content[data-section=inventory_stock_movements]{--section-color: #a16207}.content[data-section=shipping_management],.content[data-section=shipping_shipments]{--section-color: #0f766e}.content[data-section=activity]{--section-color: #475569}.content[data-section=users]{--section-color: #be123c}.content[data-section=roles]{--section-color: #db2777}.content[data-section=tools_orders]{--section-color: #15803d}.content[data-section=tools_shipping]{--section-color: #059669}.content[data-section=tools_stocks]{--section-color: #4d7c0f}.content[data-section=tools_reports]{--section-color: #16a34a}.content[data-section=tools_pricing]{--section-color: #65a30d}.content[data-section=config_clients]{--section-color: #334155}.content[data-section=config_locations]{--section-color: #475569}.content[data-section=config_events]{--section-color: #52525b}.content[data-section=config_carriers]{--section-color: #57534e}.content[data-section=config_suppliers]{--section-color: #64748b}.content[data-section=config_product_types]{--section-color: #71717a}.content[data-section=config_material_types]{--section-color: #78716c}.content[data-section=config_jobs]{--section-color: #6b7280}[data-theme=dark] .content[data-section=order_status]{--section-color: #93b4ff}[data-theme=dark] .content[data-section=order_bom]{--section-color: #8aa9ff}[data-theme=dark] .content[data-section=order_outlet]{--section-color: #56c5f5}[data-theme=dark] .content[data-section=order_preproduction]{--section-color: #a5b4fc}[data-theme=dark] .content[data-section=order_sample_orders]{--section-color: #c4b5fd}[data-theme=dark] .content[data-section=inventory_materials]{--section-color: #fdba74}[data-theme=dark] .content[data-section=inventory_stock_balances]{--section-color: #fcd34d}[data-theme=dark] .content[data-section=inventory_consumption_rules]{--section-color: #fde047}[data-theme=dark] .content[data-section=inventory_stock_movements]{--section-color: #fbbf24}[data-theme=dark] .content[data-section=shipping_management],[data-theme=dark] .content[data-section=shipping_shipments]{--section-color: #5eead4}[data-theme=dark] .content[data-section=activity]{--section-color: #cbd5e1}[data-theme=dark] .content[data-section=users]{--section-color: #fb7185}[data-theme=dark] .content[data-section=roles]{--section-color: #f472b6}[data-theme=dark] .content[data-section=tools_orders]{--section-color: #4ade80}[data-theme=dark] .content[data-section=tools_shipping]{--section-color: #34d399}[data-theme=dark] .content[data-section=tools_stocks]{--section-color: #a3e635}[data-theme=dark] .content[data-section=tools_reports]{--section-color: #4ade80}[data-theme=dark] .content[data-section=tools_pricing]{--section-color: #bef264}[data-theme=dark] .content[data-section=config_clients],[data-theme=dark] .content[data-section=config_locations]{--section-color: #cbd5e1}[data-theme=dark] .content[data-section=config_events]{--section-color: #d4d4d8}[data-theme=dark] .content[data-section=config_carriers]{--section-color: #d6d3d1}[data-theme=dark] .content[data-section=config_suppliers]{--section-color: #cbd5e1}[data-theme=dark] .content[data-section=config_product_types]{--section-color: #d4d4d8}[data-theme=dark] .content[data-section=config_material_types]{--section-color: #d6d3d1}[data-theme=dark] .content[data-section=config_jobs]{--section-color: #cbd5e1}.section-accent-bar{height:5px;background:var(--section-color);border-radius:999px;margin-bottom:7px;margin-top:-9px;flex:0 0 auto}.content[data-section] .section-toolbar,.content[data-section] .table-toolbar{background:color-mix(in srgb,var(--section-color) 6%,var(--surface-mix));border:1px solid color-mix(in srgb,var(--section-color) 18%,var(--surface-mix));border-radius:12px;padding:10px 12px}.content[data-section] .table-toolbar{margin:16px 0}.content.content-fixed{height:100vh;overflow:hidden;display:flex;flex-direction:column;min-height:0}.header{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:40px}.header h1{margin-bottom:4px}.header p{margin:0}.header-actions{display:flex;align-items:center;gap:12px}.pill{padding:8px 12px;border-radius:999px;border:1px solid var(--line);font-size:12px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px}.config-locations-layout{grid-template-columns:minmax(0,7fr) minmax(320px,3fr)}@media (max-width: 1200px){.config-locations-layout{grid-template-columns:1fr}}.tool-grid{display:grid;grid-template-columns:repeat(var(--tool-columns, 3),minmax(0,1fr));gap:18px}.card{background:var(--panel);padding:18px;border-radius:16px;border:1px solid var(--line);box-shadow:var(--shadow)}.sample-orders{display:flex;flex-direction:column;flex:1;height:auto;min-height:0;overflow:hidden}.sample-orders .table-top{display:grid;flex:0 0 auto;position:relative;z-index:2}.sample-orders .table-shell{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel);position:relative;z-index:1}.sample-orders .table-header{display:flex;flex-direction:column;border-bottom:1px solid var(--line);flex:0 0 auto}.sample-orders .table-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:8px 10px;background:var(--panel)}.sample-orders .table-header-scroll{overflow:hidden}.sample-orders .table-header .table{margin:0}.activity-layout{display:grid;grid-template-columns:minmax(420px,1fr) minmax(420px,1fr);gap:16px;align-items:start}.activity-list-card,.activity-detail-card{display:flex;flex-direction:column;min-height:560px}.activity-filters{margin-bottom:8px}.activity-filters input,.activity-filters select{padding:8px 10px;border-radius:10px;border:1px solid var(--line)}.activity-runs-scroll,.activity-records-scroll,.activity-artifacts-scroll{max-height:460px;overflow:auto;border:1px solid var(--line);border-radius:12px}.activity-table{width:100%;border-collapse:collapse}.activity-table th,.activity-table td{font-size:12px;vertical-align:top}.activity-runs-scroll .activity-table tbody tr{cursor:pointer}.activity-table tbody tr.active{background:#eff6ff;color:#121212}[data-theme=dark] .activity-table tbody tr.active{background:#1e3a5f;color:var(--ink)}.activity-status{display:inline-flex;align-items:center;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.02em}.activity-status.success{background:#e7f8ee;color:#136c3e}.activity-status.warning{background:#fff4dc;color:#8a5a08}.activity-status.error{background:#fee8e7;color:#9a221a}.activity-status.running{background:#e7f0ff;color:#1d4ed8}.activity-summary{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}.activity-summary-pill{background:transparent;color:inherit}.activity-summary-pill.active{font-weight:600}.activity-summary-pill-all.active{background:#e7f0ff;border-color:#bfdbfe;color:#1d4ed8}.activity-summary-pill-success.active{background:#e7f8ee;border-color:#b7e4c7;color:#136c3e}.activity-summary-pill-warning.active{background:#fff4dc;border-color:#f3d9a6;color:#8a5a08}.activity-summary-pill-failed.active{background:#fee8e7;border-color:#f7c2bf;color:#9a221a}.activity-block-title{margin:14px 0 8px;font-size:14px}.activity-artifact-actions{display:flex;gap:6px;flex-wrap:wrap}.activity-detail-card details summary{cursor:pointer;color:var(--accent)}.activity-detail-card details pre{margin:8px 0 0;padding:8px;border-radius:8px;border:1px solid var(--line);background:var(--surface-soft);color:var(--ink);white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,monospace;font-size:11px;max-height:140px;overflow:auto}.section-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}.section-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.toolbar-actions{display:flex;align-items:center;gap:8px}.presence-avatars{display:flex;align-items:center;gap:4px;margin-left:auto;margin-right:4px}.presence-avatar{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:600;cursor:default;-webkit-user-select:none;user-select:none;flex-shrink:0}.import-status-line{display:flex;align-items:center;gap:8px;margin-bottom:8px}.table-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0}.table-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.quick-filter-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.quick-filter-button{display:inline-flex;align-items:center;gap:8px}.quick-filter-button.active{border-color:var(--accent);color:var(--accent)}.quick-filter-count{width:25px;height:25px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;line-height:1;color:#fff;background:#9ca3af}.quick-filter-count.ok{background:#1f9d55}.quick-filter-count.alert{background:#c0392b}.table-filters input{padding:8px 10px;border-radius:10px;border:1px solid var(--line)}.shipping-shipments .table-shell{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel)}.shipping-shipments .table-header{border-bottom:1px solid var(--line)}.shipping-shipments .table-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:8px 10px}.shipping-shipments .table-header-scroll{overflow:hidden}.shipping-shipments .shipment-main-table{table-layout:fixed}.shipping-shipments .shipment-main-table th,.shipping-shipments .shipment-main-table td{padding:8px 10px;vertical-align:middle}.shipping-shipments .table-scroll{max-height:calc(100vh - 410px);overflow-x:auto;overflow-y:auto}.shipment-expand-cell{display:flex;gap:6px;flex-wrap:wrap}.shipping-shipments .shipment-main-table th:first-child,.shipping-shipments .shipment-main-table td:first-child{position:sticky;left:0;z-index:6;background:var(--panel)}.shipping-shipments .shipment-main-table th:nth-child(2),.shipping-shipments .shipment-main-table td:nth-child(2){position:sticky;left:40px;z-index:5;background:var(--panel)}.shipping-shipments .shipment-main-table th:nth-child(3),.shipping-shipments .shipment-main-table td:nth-child(3){position:sticky;left:210px;z-index:4;background:var(--panel);box-shadow:2px 0 #94a3b8}.shipping-shipments .table tbody tr.row-selected td:first-child,.shipping-shipments .table tbody tr.row-selected td:nth-child(2),.shipping-shipments .table tbody tr.row-selected td:nth-child(3){background:var(--row-selected-bg)}.shipment-status-select,.shipment-status-pill{display:inline-flex;align-items:center;justify-content:center;min-width:120px;border-radius:10px;padding:6px 10px;font-weight:600;border:1px solid transparent;color:#111827}.shipment-status-select.status-prep,.shipment-status-pill.status-prep{background:#fef08a}.shipment-status-select.status-ready,.shipment-status-pill.status-ready{background:#facc15}.shipment-status-select.status-way,.shipment-status-pill.status-way{background:#86efac}.shipment-status-select.status-needs-action,.shipment-status-pill.status-needs-action{background:#fca5a5}.shipment-status-select.status-failed,.shipment-status-pill.status-failed{background:#fca5a5;color:#7f1d1d}.shipment-status-select.status-delivered,.shipment-status-pill.status-delivered{background:#22c55e;color:#052e16}.shipment-status-select.status-canceled,.shipment-status-pill.status-canceled{background:#ef4444;color:#fff}.shipment-expand-toggle{padding:8px 4px;font-size:11px}.shipment-expand-toggle.active{border-color:var(--accent);color:var(--accent)}.shipment-expanded-row td{background:var(--surface-soft)}.shipment-expanded-card{border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--panel);width:fit-content}.shipment-expanded-card h4{margin:0 0 8px;font-size:13px}.shipment-expanded-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.shipment-items-add{display:flex;align-items:center;gap:8px}.shipment-items-add input{width:170px;padding:6px 9px;border:1px solid var(--line);border-radius:10px}.shipment-items-add button{padding:6px 12px}.shipment-documents-add{display:flex;align-items:center;gap:8px}.shipment-documents-add select,.shipment-documents-add input{padding:6px 9px;border:1px solid var(--line);border-radius:10px}.shipment-documents-add input{width:190px}.shipment-documents-add button{padding:6px 12px}.shipment-expanded-scroll{max-height:220px;overflow:auto}.shipment-items-table{width:fit-content;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:14px}.shipment-items-table th,.shipment-items-table td{padding:6px 8px;font-size:12px;vertical-align:middle}.shipment-items-table th:nth-child(1),.shipment-items-table td:nth-child(1){width:90px}.shipment-items-table th:nth-child(2),.shipment-items-table td:nth-child(2){width:120px}.shipment-items-table th:nth-child(3),.shipment-items-table td:nth-child(3){width:100px}.shipment-items-table th:nth-child(4),.shipment-items-table td:nth-child(4){width:130px}.shipment-items-table th:nth-child(5),.shipment-items-table td:nth-child(5),.shipment-items-table th:nth-child(6),.shipment-items-table td:nth-child(6){width:60px}.shipment-items-table th:nth-child(7),.shipment-items-table td:nth-child(7){width:86px}.shipment-item-remove{padding:4px 8px;font-size:11px}.shipment-tracking-link{color:var(--accent);text-decoration:underline;text-underline-offset:2px}.table-actions{display:flex;align-items:center;gap:8px}.table-actions select{padding:8px 10px;border-radius:10px;border:1px solid var(--line)}.filter-toggle.active{border-color:var(--accent);color:var(--accent)}.filter-panel{max-height:0;overflow:hidden;opacity:0;transition:max-height .25s ease,opacity .2s ease;margin-top:8px}.bulk-panel{margin-top:10px;border:1px dashed var(--line);border-radius:12px;padding:12px;background:var(--surface-soft);color:var(--ink)}.bulk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px 16px;align-items:end}.bulk-grid label{display:grid;gap:6px;font-size:13px}.bulk-grid input,.bulk-grid select{padding:8px 10px;border-radius:10px;border:1px solid var(--line);font-family:inherit;font-size:13px}.bulk-actions{display:flex;justify-content:flex-end}.filter-panel.open{max-height:420px;opacity:1}.filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px 16px;padding:12px;border:1px dashed var(--line);border-radius:12px;background:var(--surface-soft);color:var(--ink)}.filter-grid label{display:grid;gap:6px;font-size:13px}.filter-grid input{padding:8px 10px;border-radius:10px;border:1px solid var(--line);font-family:inherit;font-size:13px}.filter-actions{display:flex;align-items:flex-end;justify-content:flex-end}.table-scroll{overflow-x:auto}.sample-orders .table-scroll{flex:1 1 auto;min-height:0;overflow-x:auto;overflow-y:auto}.sample-orders .table{border-collapse:separate;border-spacing:0;width:100%;table-layout:fixed}.sample-orders .table-header th{background:var(--panel);box-shadow:inset 0 -1px 0 var(--line)}.table tbody tr.row-selected>td{background:var(--row-selected-bg)}.order-bom .table th:first-child,.order-bom .table td:first-child{width:44px;min-width:44px;max-width:44px;position:sticky;left:0;z-index:6;background:var(--panel)}.order-bom .table th:nth-child(2),.order-bom .table td:nth-child(2){width:130px;min-width:130px;max-width:130px;position:sticky;left:44px;z-index:5;background:var(--panel)}.order-bom .table th:nth-child(3),.order-bom .table td:nth-child(3){width:160px;min-width:160px;max-width:160px;position:sticky;left:174px;z-index:4;background:var(--panel);box-shadow:2px 0 0 var(--line)}.order-bom .table tbody tr.row-selected td:first-child,.order-bom .table tbody tr.row-selected td:nth-child(2),.order-bom .table tbody tr.row-selected td:nth-child(3){background:var(--row-selected-bg)}.materials .row-inactive td,.materials .row-inactive input,.materials .row-inactive select{color:var(--muted)}.materials .stock-low{color:#b42318;font-weight:600}.materials .stock-ok{color:#0f766e;font-weight:600}.order-status .stock-low{color:#b42318;font-weight:600}.order-status .stock-ok{color:#0f766e;font-weight:600}.order-status .link-cell{display:flex;align-items:center;gap:6px}.order-status .link-cell a{white-space:nowrap;font-size:12px}.order-status .readonly-value{display:inline-block;line-height:1.35;white-space:nowrap}.order-status .readonly-offset{margin-top:6px}.order-status input.product-type-accessory{background:#e9f1ff;color:#121212}.order-status .table select.status-bg-alert{background:#fee2e2;color:#121212}.order-status .table select.status-bg-ok{background:#dcfce7;color:#121212}.order-status .table select.status-bg-warn{background:#fef3c7;color:#121212}.order-status .table select.status-bg-neutral{background:var(--panel);color:var(--ink)}.order-status .table-header-actions{justify-content:space-between}.order-status .table-header-left-actions{display:flex;align-items:center;gap:8px}.order-status .select-ids-input{min-width:260px;max-width:360px;width:100%;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);padding:8px 10px}.order-status .table-header-edit-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.order-status .table{width:4946px;min-width:4946px;table-layout:fixed}.order-status .table th,.order-status .table td{padding:8px 10px;vertical-align:top}.order-status .table th{white-space:nowrap}.order-status .table th:first-child,.order-status .table td:first-child{width:44px;min-width:44px;max-width:44px;padding-left:8px;padding-right:8px;position:sticky;left:0;z-index:6;background:var(--panel)}.order-status .table th:nth-child(2),.order-status .table td:nth-child(2){width:88px;min-width:88px;max-width:88px;position:sticky;left:44px;z-index:5;background:var(--panel)}.order-status .table th:nth-child(3),.order-status .table td:nth-child(3){width:150px;min-width:150px;max-width:150px;position:sticky;left:132px;z-index:4;background:var(--panel);box-shadow:2px 0 0 var(--line)}.order-status .table tbody tr.row-selected td:first-child,.order-status .table tbody tr.row-selected td:nth-child(2),.order-status .table tbody tr.row-selected td:nth-child(3){background:var(--row-selected-bg)}.order-status .table th:nth-child(4),.order-status .table td:nth-child(4){width:158px;min-width:158px;max-width:158px}.order-status .table th:nth-child(5),.order-status .table td:nth-child(5){width:180px;min-width:180px;max-width:180px}.order-status .table th:nth-child(6),.order-status .table td:nth-child(6){width:65px;min-width:65px;max-width:65px}.order-status .table th:nth-child(7),.order-status .table td:nth-child(7){width:77px;min-width:77px;max-width:77px}.order-status .table th:nth-child(8),.order-status .table td:nth-child(8){width:104px;min-width:104px;max-width:104px}.order-status .table th:nth-child(9),.order-status .table td:nth-child(9){width:60px;min-width:60px;max-width:60px}.order-status .table th:nth-child(10),.order-status .table td:nth-child(10){width:447px;min-width:447px;max-width:447px}.order-status .table th:nth-child(11),.order-status .table td:nth-child(11){width:164px;min-width:164px;max-width:164px}.order-status .table th:nth-child(12),.order-status .table td:nth-child(12){width:149px;min-width:149px;max-width:149px}.order-status .table th:nth-child(13),.order-status .table td:nth-child(13){width:160px;min-width:160px;max-width:160px}.order-status .table th:nth-child(14),.order-status .table td:nth-child(14){width:170px;min-width:170px;max-width:170px}.order-status .table th:nth-child(15),.order-status .table td:nth-child(15){width:164px;min-width:164px;max-width:164px}.order-status .table th:nth-child(16),.order-status .table td:nth-child(16){width:164px;min-width:164px;max-width:164px}.order-status .table th:nth-child(17),.order-status .table td:nth-child(17){width:150px;min-width:150px;max-width:150px}.order-status .table th:nth-child(18),.order-status .table td:nth-child(18){width:170px;min-width:170px;max-width:170px}.order-status .table th:nth-child(19),.order-status .table td:nth-child(19){width:130px;min-width:130px;max-width:130px}.order-status .table th:nth-child(20),.order-status .table td:nth-child(20){width:143px;min-width:143px;max-width:143px}.order-status .table th:nth-child(21),.order-status .table td:nth-child(21){width:84px;min-width:84px;max-width:84px}.order-status .table th:nth-child(22),.order-status .table td:nth-child(22){width:149px;min-width:149px;max-width:149px}.order-status .table th:nth-child(23),.order-status .table td:nth-child(23){width:149px;min-width:149px;max-width:149px}.order-status .table th:nth-child(24),.order-status .table td:nth-child(24){width:143px;min-width:143px;max-width:143px}.order-status .table th:nth-child(25),.order-status .table td:nth-child(25){width:144px;min-width:144px;max-width:144px}.order-status .table th:nth-child(26),.order-status .table td:nth-child(26){width:240px;min-width:240px;max-width:240px}.order-status .table th:nth-child(27),.order-status .table td:nth-child(27){width:260px;min-width:260px;max-width:260px}.order-status .table th:nth-child(28),.order-status .table td:nth-child(28){width:260px;min-width:260px;max-width:260px}.order-status .table th:nth-child(29),.order-status .table td:nth-child(29){width:260px;min-width:260px;max-width:260px}.order-status .table th:nth-child(30),.order-status .table td:nth-child(30){width:170px;min-width:170px;max-width:170px}.order-status .table th:nth-child(31),.order-status .table td:nth-child(31){width:150px;min-width:150px;max-width:150px}.preproduction .table th:nth-child(11),.preproduction .table td:nth-child(11),.preproduction .table th:nth-child(14),.preproduction .table td:nth-child(14){padding-left:4px;padding-right:4px}.preproduction .table td:nth-child(11) .date-field,.preproduction .table td:nth-child(14) .date-field,.preproduction .table td:nth-child(11) .date-input-wrap,.preproduction .table td:nth-child(14) .date-input-wrap{min-width:0}.materials .color-input{display:flex;align-items:center;gap:8px}.materials .color-input input{flex:1;min-width:0}.materials .color-swatch{width:18px;height:18px;border-radius:4px;border:1px solid var(--line);background:#f4f4f4;flex:0 0 18px}.materials .color-swatch.invalid{background-color:#f4f4f4;background-image:linear-gradient(45deg,transparent 45%,#c2413a 45%,#c2413a 55%,transparent 55%),linear-gradient(-45deg,transparent 45%,#c2413a 45%,#c2413a 55%,transparent 55%)}.date-field{display:flex;align-items:center;gap:6px}.date-field input{flex:1}.table input,.table select{width:100%;border:1px solid var(--line);border-radius:8px;padding:6px 8px;font-family:inherit;font-size:13px}.table .date-field input{width:auto}.config-cell{display:flex;align-items:center;justify-content:space-between;gap:8px}.config-editor-trigger{display:inline-flex;align-items:center;justify-content:center;width:80px;height:30px;padding:0}.config-editor-trigger svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.config-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.35);display:flex;align-items:center;justify-content:center;z-index:1200}.config-modal{width:min(760px,calc(100vw - 48px));background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:16px}.config-modal h3{margin:0 0 10px}.config-modal textarea{width:100%;min-height:240px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,monospace;font-size:13px}.config-modal-actions{margin-top:12px;display:flex;justify-content:flex-end;gap:8px}.image-modal{width:min(960px,calc(100vw - 48px));min-height:240px;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);padding:22px 16px 16px;position:relative;display:flex;align-items:center;justify-content:center}.image-modal img{max-width:100%;max-height:min(78vh,760px);object-fit:contain}.image-modal-close{position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font-size:14px;line-height:1;display:inline-flex;align-items:center;justify-content:center}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:14px}.pagination select{border-radius:10px;border:1px solid var(--line);padding:6px 10px}.progress{width:100%;height:8px;border-radius:999px;background:#e5e1d7;overflow:hidden;margin-bottom:12px}.progress-bar{height:100%;background:var(--accent);transition:width .2s ease}.table{width:100%;border-collapse:collapse;font-size:14px}.table th,.table td{text-align:left;padding:8px 6px;border-bottom:1px solid var(--line)}.role-card{display:grid;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.role-card:last-child{border-bottom:none}.roles-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}.roles-selector{display:grid;gap:6px;min-width:260px}.roles-selector select,.roles-create-row input,.roles-name-input input,.role-reassign-panel select{padding:8px 10px;border-radius:10px;border:1px solid var(--line);font-family:inherit}.roles-toolbar-actions{display:flex;align-items:center;gap:8px}.roles-delete{border-color:#d8b2b2;color:var(--ink)}[data-theme=dark] .roles-delete{border-color:#6b3030;color:#ff9b9b}.roles-create-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:14px}.roles-create-row label{display:grid;gap:6px;min-width:260px}.roles-create-row p{margin:0}.roles-single-editor{border:1px solid var(--line);border-radius:12px;padding:12px}.roles-editor-header{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap}.roles-name-input{display:grid;gap:6px;min-width:260px}.role-reassign-panel{margin-top:14px;border:1px solid #e0c99a;background:#fff7e8;color:#5b4a1f;border-radius:12px;padding:12px;display:grid;gap:10px}[data-theme=dark] .role-reassign-panel{border-color:#5a4a1c;background:#2a230f;color:#f1d98a}.role-reassign-panel p{margin:0}.role-reassign-panel label{display:grid;gap:6px;max-width:300px}.roles-reassign-actions{display:flex;gap:8px}.permission-tree{display:grid;gap:10px}.permission-section{border:1px solid var(--line);border-radius:12px;padding:10px;background:var(--panel)}.permission-section>label{display:inline-flex;align-items:center;gap:8px;font-weight:600}.permission-subsections{display:grid;gap:10px;margin-top:10px}.permission-subsection{border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);padding:8px 10px}.permission-subsection-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.permission-subsection-header>label{display:inline-flex;align-items:center;gap:8px}.permission-readonly{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.permission-actions{margin-top:8px;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px 10px;font-size:13px}.permission-actions label{display:inline-flex;align-items:center;gap:6px}.tool-overview{grid-column:1 / -1;display:grid;gap:10px}.tool-card{display:grid;gap:8px}.tool-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tool-path{font-family:SF Mono,Consolas,Liberation Mono,monospace;font-size:12px;padding:4px 10px;border-radius:999px;border:1px dashed var(--line);background:var(--surface-soft);color:var(--ink)}.tool-name{font-weight:600;font-size:15px}.tool-params{display:grid;gap:8px;font-size:13px}.tool-param{display:grid;gap:4px;padding:8px 10px;border-radius:12px;border:1px solid var(--line);background:#f8f4ed}.tool-param-title{display:flex;flex-direction:column;gap:2px}.tool-param-name{font-weight:600}.tool-param-meta,.tool-param-note,.tool-empty{font-size:12px;color:var(--muted)}.tool-form{display:grid;gap:10px}.tool-input{display:grid;gap:6px;font-size:13px}.tool-input input,.tool-input select{padding:10px 12px;border-radius:10px;border:1px solid var(--line);font-family:inherit;background:var(--panel);color:var(--ink)}.tool-label{display:flex;flex-direction:column;gap:4px;font-weight:600}.tool-label-meta,.tool-note{font-weight:400;color:var(--muted);font-size:12px}.tool-actions{display:flex;justify-content:flex-start}.tool-result{margin:0;padding:12px;border-radius:12px;border:1px solid var(--line);background:var(--surface-soft);color:var(--ink);font-size:12px;overflow-x:auto}.create-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:0 0 12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel) 75%,transparent)}.create-form label{display:grid;gap:6px;font-size:13px}.create-form input,.create-form select{padding:10px 12px;border-radius:10px;border:1px solid var(--line);font-family:inherit;background:var(--panel);color:var(--ink)}.create-actions{display:flex;gap:8px;align-items:flex-end}.dashboard{display:grid;gap:16px}.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.dashboard-header p{margin:0}.dashboard-mock-pill{background:color-mix(in srgb,var(--accent) 12%,var(--surface-mix));border-color:color-mix(in srgb,var(--accent) 35%,var(--surface-mix))}.dashboard-kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dashboard-kpi-card{border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--panel);box-shadow:0 8px 20px #1212120d}.dashboard-kpi-card h3{margin:0 0 8px;font-size:14px}.dashboard-kpi-card p{margin:0}.dashboard-kpi-value{font-size:36px;font-weight:700;line-height:1;margin:0 0 8px}.dashboard-grid-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dashboard-panel{border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--panel);box-shadow:0 8px 20px #1212120d}.dashboard-panel-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.dashboard-panel-header h3{margin:0;font-size:16px}.dashboard-factory-list{display:grid;gap:10px}.dashboard-factory-item{border:1px solid var(--line);border-radius:12px;padding:10px;background:var(--surface-soft)}.dashboard-factory-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}.dashboard-pill{font-size:11px;font-weight:700;border-radius:999px;padding:4px 8px;border:1px solid transparent}.dashboard-pill.danger{color:#9f1239;background:#ffe4e6;border-color:#fecdd3}.dashboard-pill.warning{color:#92400e;background:#fef3c7;border-color:#fde68a}.dashboard-pill.ok{color:#166534;background:#dcfce7;border-color:#bbf7d0}.dashboard-factory-meta{font-size:12px;margin-bottom:6px}.dashboard-progress{height:8px;border-radius:999px;background:var(--surface-soft);overflow:hidden;margin-bottom:5px}.dashboard-progress-fill{height:100%}.dashboard-progress-fill.danger{background:linear-gradient(90deg,#fb7185,#e11d48)}.dashboard-progress-fill.warning{background:linear-gradient(90deg,#fbbf24,#f59e0b)}.dashboard-progress-fill.ok{background:linear-gradient(90deg,#4ade80,#16a34a)}.dashboard-window{font-size:12px}.dashboard-delivery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-delivery-item{border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);padding:10px;display:grid;gap:4px}.dashboard-delivery-item strong{font-size:20px;line-height:1.2}.dashboard-size-change-card{display:grid;align-content:start}.dashboard-size-change-number{font-size:56px;line-height:1;font-weight:700;margin-bottom:8px}.dashboard-size-change-card p{margin:0}.dashboard-chart{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:6px;min-height:230px;align-items:end}.dashboard-bar-col{display:grid;grid-template-rows:auto 1fr auto;align-items:end;gap:4px}.dashboard-bar-value{font-size:11px;text-align:center;color:var(--muted)}.dashboard-bar-track{height:170px;border-radius:10px 10px 0 0;background:var(--surface-soft);border:1px solid var(--line);display:flex;align-items:flex-end;overflow:hidden}.dashboard-bar{width:100%;background:linear-gradient(180deg,#4d9482,#2b6a5a)}.dashboard-bar-label{text-align:center;font-size:11px;color:var(--muted)}@media (max-width: 900px){.app-shell{grid-template-columns:1fr}.sidebar{border-right:none;border-bottom:2px solid var(--line)}.header{flex-direction:column;align-items:flex-start}.dashboard-kpi-grid,.dashboard-grid-two{grid-template-columns:1fr}.dashboard-chart{overflow-x:auto;grid-template-columns:repeat(15,minmax(34px,1fr))}}@media (max-width: 1100px){.activity-layout{grid-template-columns:1fr}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 700px){.tool-grid{grid-template-columns:1fr}}
