:root{--color-primary: #2f8f72;--color-accent: #b78b55;--color-background: #f7f8f5;--color-surface: #ffffff;--color-text: #162126;--color-muted: #637078;--color-border: #dce4e7;--color-border-strong: #cbd8dc;--color-section: #f2f5f3;--color-field: #fbfcfb;--font-family: "Segoe UI", Arial, sans-serif;--font-size-base: 14px;--radius-card: 8px;--shadow-soft: 0 20px 60px rgba(28, 42, 45, .1);--table-cell-padding: 13px 12px}*{box-sizing:border-box}body{margin:0;background:var(--color-background);color:var(--color-text);font-family:var(--font-family);font-size:var(--font-size-base);letter-spacing:0}html{scroll-behavior:smooth}.app-shell{min-height:100vh;display:grid;grid-template-columns:252px 1fr}.product-window-shell{grid-template-columns:1fr}.sidebar{background:#102820;color:#eef7f1;padding:22px 16px;min-height:100vh;display:flex;flex-direction:column}.mobile-menu-button,.mobile-nav-backdrop{display:none}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:8px;background:#f4efe6;color:#102820;font-weight:800}.brand-copy{margin-top:12px;display:grid;gap:2px}.brand-copy strong{font-size:19px}.brand-copy span{color:#b9c9c0}.nav{margin-top:28px;display:grid;gap:6px}.nav-item-group{display:grid;gap:6px}.nav button{min-height:40px;display:flex;align-items:center;padding:0 12px;border-radius:8px;border:0;background:transparent;color:#d9e8e0;cursor:pointer;font:inherit;font-weight:650;text-decoration:none}.nav button.active{background:#17392e;box-shadow:inset 3px 0 0 var(--color-primary)}.nav button.subnav-button{min-height:34px;margin-left:14px;padding-left:14px;font-size:13px;color:#bfd2c8;border-left:1px solid rgba(238,247,241,.16)}.nav button.subnav-button.active{color:#fff;background:#17392e}.main{min-width:0}.topbar{height:86px;border-bottom:1px solid var(--color-border);background:#ffffffe0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 28px}h1,h2,p{margin:0}h1{font-size:27px}.topbar p,.panel-head p{color:var(--color-muted);margin-top:6px}.system-pill{border:1px solid var(--color-border);border-radius:999px;padding:8px 12px;background:var(--color-surface);font-weight:700}.topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.user-pill{border:1px solid var(--color-border);border-radius:999px;background:#f8fbfa;padding:8px 12px;display:grid;gap:1px;min-width:130px}.user-pill strong{font-size:13px}.user-pill span{color:var(--color-muted);font-size:11px;font-weight:800;text-transform:uppercase}.auth-loading,.login-shell{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#2f8f722e,#b78b551f),var(--color-background)}.login-panel{width:min(460px,calc(100vw - 32px));border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-surface);box-shadow:var(--shadow-soft);padding:28px;display:grid;gap:18px}.login-panel h1{margin:8px 0;font-size:32px}.login-panel p{margin:0;color:var(--color-muted);line-height:1.5}.login-form{display:grid;gap:12px}.clock-pill{margin-top:auto;border:1px solid rgba(238,247,241,.18);border-radius:8px;padding:10px 12px;background:#17392e;color:#eef7f1;display:grid;gap:2px;text-align:left;line-height:1.15}.clock-pill strong{color:#cfe0d7;font-size:12px}.clock-pill span{color:#f4efe6;font-size:15px;font-weight:850;font-variant-numeric:tabular-nums}.page-content{padding:28px;min-width:0}.panel{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-card);box-shadow:var(--shadow-soft)}.panel.wide{width:100%}.panel-head{padding:18px 18px 0}.kpi-grid{padding:18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.kpi{border:1px solid #dce7e5;border-radius:8px;padding:16px;background:#fbfcfb;box-shadow:0 10px 26px #1c2a2d0d}.kpi.warn strong{color:#d96b52}.kpi.good{background:linear-gradient(180deg,#f7fcf9,#eef8f3);border-color:#c9e5da}.kpi.good strong{color:var(--color-primary)}.kpi.accent{background:linear-gradient(180deg,#fffaf2,#fbf2e4);border-color:#e7d2b5}.kpi.accent strong{color:var(--color-accent)}.kpi span{color:var(--color-muted);display:block;margin-bottom:10px}.kpi strong{font-size:25px}.kpi small{display:block;color:var(--color-muted);margin-top:8px;font-weight:650}.dashboard-page,.reports-page,.warehouse-page{display:grid;gap:18px}.warehouse-hero{padding:22px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end;background:linear-gradient(180deg,#fbfcfb,#eef5f1)}.warehouse-hero h2{margin:4px 0 8px;font-size:28px}.warehouse-hero p{margin:0;color:var(--color-muted)}.warehouse-hero-metrics,.warehouse-calculated-grid{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:10px}.warehouse-workspace{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:16px;align-items:start}.warehouse-list-panel,.warehouse-form-panel{padding:16px}.warehouse-list-panel{position:sticky;top:92px;max-height:calc(100vh - 116px);overflow:hidden;display:grid;gap:12px}.warehouse-list-head,.warehouse-form-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.warehouse-list-actions{display:flex;gap:8px;flex-wrap:wrap}.warehouse-list-head h2,.warehouse-form-head h2{margin:0 0 4px}.warehouse-list-head p,.warehouse-form-head p{margin:0;color:var(--color-muted)}.warehouse-search{width:100%;height:42px;border:1px solid #cfe0e8;border-radius:8px;background:#fff;color:var(--color-text);font:inherit;padding:0 12px}.warehouse-toggle{display:flex;align-items:center;gap:8px;color:var(--color-muted);font-weight:800;font-size:13px}.warehouse-toggle input{width:18px;height:18px}.warehouse-product-list{overflow:auto;display:grid;gap:8px;padding-right:4px}.warehouse-product-card{border:1px solid var(--color-border);border-radius:8px;background:#fff;color:var(--color-text);text-align:left;cursor:pointer;padding:12px;display:grid;gap:5px}.warehouse-product-card.active{border-color:var(--color-primary);background:#eaf7f1;box-shadow:inset 3px 0 0 var(--color-primary)}.warehouse-product-card strong{font-size:14px}.warehouse-product-card span,.warehouse-product-card small{color:var(--color-muted);line-height:1.35}.warehouse-product-card small{font-weight:800}.warehouse-form-panel{display:grid;gap:14px;min-width:0}.warehouse-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.warehouse-missing-strip,.success-note{border:1px solid #bfe5d2;border-radius:8px;background:#eaf8f1;color:#087043;font-weight:800;padding:11px 12px;margin:0}.warehouse-missing-strip{border-color:#f1d4b3;background:#fff8ee;color:#8a4d11}.warehouse-section{border:1px solid #cfe0e8;border-radius:8px;background:#f7faf9;padding:14px;display:grid;gap:12px}.warehouse-section h3{margin:0;font-size:15px}.warehouse-field-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.warehouse-field{min-height:72px;border:1px solid #d8e6ec;border-radius:8px;background:#fff;padding:9px 10px;display:grid;gap:6px}.warehouse-field span{color:var(--color-muted);font-size:12px}.warehouse-field input{width:100%;min-width:0;height:36px;border:1px solid #cfe0e8;border-radius:8px;color:var(--color-text);font:inherit;font-weight:850;padding:0 10px}.warehouse-calculated-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.warehouse-metric{border:1px solid #d8e6ec;border-radius:8px;background:#fff;padding:12px;display:grid;gap:7px}.warehouse-metric span{color:var(--color-muted);font-size:12px}.warehouse-metric strong{font-size:20px}.warehouse-metric.warn strong{color:#d8542e}.warehouse-metric.ok strong{color:#087043}.warehouse-photo-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:end}.barcode-scanner-panel{border:1px solid var(--color-border-strong);border-radius:var(--radius-card);background:#0c1514;overflow:hidden;display:grid}.barcode-scanner-panel video{width:100%;min-height:220px;max-height:360px;object-fit:cover;background:#0c1514}.barcode-scanner-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px;background:#f8fbfa;color:var(--color-muted);font-size:12px;font-weight:750}.barcode-scanner-notice{margin:0;padding:10px 12px;background:#fff8ee;color:#8a4d11;font-size:12px;font-weight:800}.barcode-manual-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px;background:#f8fbfa}.barcode-manual-row input{min-width:0;height:38px;border:1px solid var(--color-border-strong);border-radius:8px;background:#fff;color:var(--color-text);font:inherit;font-weight:750;padding:0 10px}.compact-empty{padding:26px}.report-hero{padding:22px;display:flex;justify-content:space-between;gap:18px;align-items:flex-end;background:linear-gradient(180deg,#fbfcfb,#eef5f1)}.report-hero h2{margin:4px 0 8px;font-size:28px}.report-hero p{margin:0;color:var(--color-muted);max-width:760px}.report-export-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.report-type-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.report-type-card{min-height:86px;border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface);color:var(--color-text);text-align:left;padding:14px;cursor:pointer;box-shadow:var(--shadow-soft)}.report-type-card strong,.report-type-card span{display:block}.report-type-card strong{margin-bottom:7px}.report-type-card span{color:var(--color-muted);font-size:12px;line-height:1.35}.report-type-card.active{border-color:var(--color-primary);background:#eef8f3;box-shadow:inset 0 3px 0 var(--color-primary),var(--shadow-soft)}.report-filter-panel{padding:16px}.report-filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;align-items:stretch}.report-filter-grid .theme-control{min-width:0;min-height:64px;align-items:stretch;flex-direction:column;gap:7px}.report-filter-grid .theme-control input:not([type=color]),.report-filter-grid .theme-control select{width:100%;min-width:0}.report-filter-grid .theme-control input[type=date]{min-width:148px}.report-filter-grid .mini-button{min-height:44px;align-self:end;justify-content:center;padding:0 16px;white-space:nowrap}.report-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px}.report-summary-card{padding:14px}.report-summary-card span{color:var(--color-muted);font-size:12px;display:block;margin-bottom:8px}.report-summary-card strong{font-size:22px}.report-table-panel{padding:16px;min-width:0}.report-table-wrap{overflow:auto;max-height:64vh;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);max-width:100%}.report-table{min-width:1200px;width:100%;border-collapse:separate;border-spacing:0;font-size:12px}.report-table th{position:sticky;top:0;z-index:1;background:#edf4f1;color:var(--color-muted);text-transform:uppercase;font-size:11px}.report-table th,.report-table td{border-bottom:1px solid var(--color-border);padding:9px 11px;white-space:nowrap;vertical-align:top}.report-table .report-cell-text{white-space:normal;min-width:160px;max-width:300px}.report-table .report-cell-number{text-align:right}.report-table tbody tr:hover td{background:#f6fbf8}.dashboard-hero{min-height:184px;padding:22px;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:20px;background:linear-gradient(135deg,#2f8f7221,#b78b551a),var(--color-surface)}.dashboard-hero-copy{display:flex;flex-direction:column;justify-content:space-between;gap:22px}.dashboard-hero h2{margin:8px 0;font-size:34px;line-height:1.08}.dashboard-hero p{max-width:760px;color:var(--color-muted);font-size:15px;margin:0}.dashboard-status-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.dashboard-status-pill{min-height:52px;border:1px solid #d6e2df;border-radius:8px;background:#ffffffb8;padding:9px 12px;display:grid;gap:3px}.dashboard-status-pill span{color:var(--color-muted);font-size:11px;font-weight:750;text-transform:uppercase}.dashboard-status-pill strong{font-size:14px}.dashboard-status-pill.ok{border-color:#bfe3d1;background:#eefaf3}.dashboard-status-pill.warn{border-color:#efc2ae;background:#fff3ed}.dashboard-status-pill.warn strong{color:#c95431}.dashboard-hero-value{border:1px solid #cfddd9;border-radius:8px;background:#ffffffd1;padding:20px;display:grid;align-content:center;gap:8px}.dashboard-hero-value span{color:var(--color-muted);font-weight:800}.dashboard-hero-value strong{font-size:36px;line-height:1.05}.dashboard-hero-value small{color:var(--color-muted);line-height:1.45}.dashboard-command-panel{background:#f8fbf9}.monthly-profit-panel{overflow:hidden}.monthly-profit-panel .compact-head{padding:16px 18px 12px;border-bottom:1px solid #dce7e5;background:#edf4f1}.monthly-profit-summary{padding:18px 18px 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.monthly-profit-summary div{border:1px solid #d6e2df;border-radius:8px;background:#f9fbfa;padding:13px}.monthly-profit-summary span{display:block;color:var(--color-muted);font-size:12px;margin-bottom:8px}.monthly-profit-summary strong{font-size:19px}.monthly-profit-summary .positive,.monthly-profit-column strong.positive{color:var(--color-primary)}.monthly-profit-summary .negative,.monthly-profit-column strong.negative{color:#d96b52}.monthly-profit-chart{padding:18px;min-height:250px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px;align-items:end}.monthly-profit-column{min-width:0;display:grid;grid-template-rows:150px auto auto;gap:7px;text-align:center}.monthly-profit-bar-wrap{height:150px;border-radius:8px;background:#edf3f1;border:1px solid #d6e2df;display:flex;align-items:end;justify-content:center;padding:5px}.profit-bar{width:100%;min-height:4px;border-radius:6px;display:block}.profit-bar.positive{background:linear-gradient(180deg,#2f8f72,#1d5c49)}.profit-bar.negative{background:linear-gradient(180deg,#ef8b70,#d96b52)}.monthly-profit-column strong{font-size:12px;white-space:nowrap}.monthly-profit-column small{color:var(--color-muted);font-weight:700}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.dashboard-panel{min-width:0;overflow:hidden}.dashboard-panel .compact-head h2{font-size:18px}.dashboard-panel .compact-head{padding:16px 18px 12px;border-bottom:1px solid #dce7e5;background:#edf4f1}.dashboard-panel .compact-head p{margin-bottom:0}.dashboard-panel-strong{border-color:#c9dcd8}.dashboard-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.value-breakdown,.bar-list,.compact-list,.alert-grid{padding:18px}.total-value{border:1px solid #d6e2df;border-radius:8px;background:#f7faf8;padding:14px;margin-bottom:12px}.total-value span,.breakdown-row span,.bar-row span{color:var(--color-muted);font-size:12px}.total-value strong{display:block;margin-top:6px;font-size:24px}.breakdown-row,.bar-row{display:grid;gap:8px;margin-bottom:12px}.breakdown-row>div:first-child,.bar-row>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.progress-track{height:9px;border-radius:999px;background:#e0e8e7;overflow:hidden}.progress-track b{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,var(--color-primary),var(--color-accent))}.alert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.alert-tile{border:1px solid #d6e2df;border-radius:8px;background:#f8fbfa;padding:14px}.alert-tile.warn{background:#fff7f2;border-color:#f0c9ba}.alert-tile span{color:var(--color-muted);display:block;margin-bottom:8px}.alert-tile strong{font-size:24px}.compact-list{display:grid;gap:8px}.compact-row{min-height:58px;border:1px solid #d6e2df;border-radius:8px;background:#f9fbfa;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.compact-row div{min-width:0}.compact-row span{display:block;color:var(--color-muted);margin-top:4px;font-size:12px}.compact-row b{text-align:right;white-space:nowrap}.table-wrap{overflow:auto;padding:18px}table{width:100%;min-width:760px;border-collapse:collapse}th{text-align:left;color:var(--color-muted);font-size:12px;text-transform:uppercase;padding:12px;background:#f6f8f7}td{border-top:1px solid #edf1f2;padding:var(--table-cell-padding)}tbody tr{transition:background .16s ease,box-shadow .16s ease}tbody tr:hover{background:#fbfcfb}td span{display:block;color:var(--color-muted);margin-top:3px}.sku{color:#0f6f7c;font-weight:800}.internal-id{color:var(--color-muted);font-weight:800;white-space:nowrap}.appearance-panel{scroll-margin-top:24px;max-width:760px}.settings-panel{scroll-margin-top:24px;max-width:1180px}.user-settings{padding:18px;display:grid;gap:12px}.user-setting-row{border:1px solid #cbd8dc;border-radius:8px;background:#f8fbfa;padding:12px;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;align-items:stretch}.user-setting-row .theme-control{min-width:0;min-height:66px;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px}.user-setting-row .theme-control input:not([type=color]),.user-setting-row .theme-control select{width:100%;min-width:0}.user-setting-row .mini-button{align-self:center;justify-self:start}.checkbox-control{align-content:center}.user-setting-row .checkbox-control{flex-direction:row;align-items:center;justify-content:space-between}.checkbox-control input{width:22px;height:22px}.theme-form{padding:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.theme-control{min-height:54px;border:1px solid #edf1f2;border-radius:8px;background:#fbfcfb;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.theme-control span{color:var(--color-muted);font-size:12px;font-weight:800}.theme-control input[type=color]{width:52px;height:32px;border:1px solid #dce4e7;border-radius:8px;background:transparent;padding:2px}.theme-control select{min-width:150px;height:36px;border:1px solid #dce4e7;border-radius:8px;background:#fff;color:var(--color-text);font:inherit;padding:0 10px}.theme-control input:not([type=color]){min-width:0;height:36px;border:1px solid #dce4e7;border-radius:8px;background:#fff;color:var(--color-text);font:inherit;padding:0 10px}.settings-head{border-top:1px solid var(--color-border);margin-top:8px}.settings-block{border-top:1px solid var(--color-border);margin-top:16px}.settings-subhead{padding:18px 18px 0}details.settings-block{border:1px solid var(--color-border);border-radius:var(--radius-card);background:var(--color-surface);overflow:hidden}details.settings-block+details.settings-block{margin-top:12px}details.settings-block .settings-subhead{min-height:64px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;background:var(--color-section)}details.settings-block .settings-subhead::-webkit-details-marker{display:none}details.settings-block .settings-subhead>span{border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface);color:var(--color-muted);padding:6px 10px;font-size:12px;font-weight:850;white-space:nowrap}details.settings-block[open] .settings-subhead>span{color:var(--color-primary)}details.settings-block[open] .settings-subhead>span{font-size:12px}.settings-subhead h3{margin:0;font-size:18px}.settings-subhead p{color:var(--color-muted);margin-top:6px}.carton-settings,.component-settings{display:grid;gap:10px;padding:18px}.component-type-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;padding:18px}.component-type-row{border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-field);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;padding:12px}.component-type-row .theme-control{align-items:stretch;flex-direction:column;gap:7px}.component-type-row .theme-control input{width:100%}.component-type-row .mini-button{min-height:38px}.component-type-settings .settings-actions{grid-column:1 / -1}.carton-setting-row{border:1px solid #edf1f2;border-radius:8px;background:#fbfcfb;display:grid;grid-template-columns:minmax(120px,.9fr) minmax(210px,1.4fr) repeat(4,minmax(120px,.85fr)) auto;gap:10px;align-items:end;padding:12px}.component-setting-row{border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-field);display:grid;grid-template-columns:minmax(150px,.9fr) minmax(260px,1.6fr) repeat(2,minmax(160px,1fr)) auto;gap:10px;align-items:end;padding:12px}.component-setting-row.missing{border-color:#efb8a8;background:#fff1ea}.component-setting-row .theme-control{align-items:stretch;flex-direction:column;justify-content:flex-start;gap:7px}.component-setting-row .theme-control input,.component-setting-row .theme-control select{width:100%}.component-setting-row .mini-button{min-height:38px;justify-content:center;align-self:end;grid-column:5;grid-row:2}.component-setting-row .theme-control:nth-child(5),.component-setting-row .theme-control:nth-child(6),.component-setting-row .theme-control:nth-child(7),.component-setting-row .theme-control:nth-child(8){grid-row:2}.component-setting-row .component-name-control{grid-column:span 2}.carton-setting-row .theme-control{align-items:stretch;flex-direction:column;justify-content:flex-start;gap:7px}.carton-setting-row .theme-control input{width:100%}.carton-setting-row .mini-button{min-height:38px;justify-content:center}.settings-actions{gap:10px}.settings-actions .mini-button,.settings-actions .primary-button{min-height:40px;border-radius:8px;margin:0;padding:0 14px;font-size:12px;font-weight:850;display:inline-flex;align-items:center;justify-content:center}.epr-rate-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;padding:18px}.epr-rate-setting-row{border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-field);display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:10px;align-items:center;padding:12px}.epr-rate-setting-row strong{min-width:0}.epr-rate-setting-row .theme-control{min-height:0;align-items:stretch;flex-direction:column;gap:7px;padding:0;border:0;background:transparent}.epr-rate-setting-row .theme-control input{width:100%}.epr-rate-settings .settings-actions{grid-column:1 / -1}.calculate-button{margin-top:12px}.wide-control{grid-column:1 / -1}.primary-button{margin:0 18px 18px;min-height:40px;border:0;border-radius:8px;padding:0 14px;background:var(--color-primary);color:#fff;font-weight:750}.ghost-button{min-height:36px;border:1px solid var(--color-border);border-radius:8px;background:#ffffffd6;color:var(--color-text);cursor:pointer;font:inherit;font-size:12px;font-weight:850;padding:0 12px}.ghost-button:hover{border-color:var(--color-primary)}.module-head{display:grid;grid-template-columns:minmax(280px,1fr) minmax(560px,auto);align-items:start;gap:18px;padding-bottom:14px}.module-head>.primary-button,.module-head>.ghost-button{justify-self:end;align-self:start}.product-tools{display:flex;align-items:end;justify-content:end;flex-wrap:wrap;gap:12px;min-width:0;width:min(100%,850px);justify-self:end;border:1px solid #d7e2e4;border-radius:8px;background:#f8fbfa;padding:10px}.product-tools .search-box{flex:1 1 240px;max-width:300px}.create-product-button{margin:0;white-space:nowrap;min-height:40px}.bulk-edit-toggle{white-space:nowrap;min-height:40px}.create-product-panel{margin:0 18px 8px;border:1px solid var(--color-border-strong);border-radius:8px;background:#f3f7f5;padding:16px;display:grid;gap:14px}.create-product-header{display:flex;align-items:start;justify-content:space-between;gap:16px}.create-product-header h3{margin:0 0 4px}.create-product-header p{margin:0;color:var(--color-muted)}.create-product-active input{width:22px;min-height:22px}.form-error{margin:0;border:1px solid #efb8a8;border-radius:8px;background:#fff1ea;color:#9f3d22;font-weight:800;padding:10px 12px}.segmented-control{height:40px;border:1px solid var(--color-border);border-radius:8px;background:#fbfcfb;display:grid;grid-template-columns:repeat(3,minmax(72px,1fr));gap:4px;padding:4px}.segmented-control button{border:0;border-radius:6px;background:transparent;color:var(--color-muted);cursor:pointer;font:inherit;font-size:12px;font-weight:800}.segmented-control button.active{background:#102820;color:#fff}.search-box{min-width:0;display:grid;gap:7px;color:var(--color-muted);font-size:12px;font-weight:700}.search-box input{width:100%;height:40px;border:1px solid var(--color-border);border-radius:8px;background:#fbfcfb;color:var(--color-text);padding:0 12px;font:inherit}.search-box input:focus,.search-box select:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #2f8f7224;outline:none}.search-box select{width:100%;height:40px;border:1px solid var(--color-border);border-radius:8px;background:#fbfcfb;color:var(--color-text);padding:0 12px;font:inherit}.product-filter-bar{margin:0 18px;border:1px solid #d2dee1;border-radius:8px;background:#f4f8f6;padding:14px;display:grid;grid-template-columns:repeat(4,minmax(170px,1fr)) minmax(120px,auto);gap:14px;align-items:end}.product-filter-bar .search-box{min-width:0}.clear-filter-button{min-height:40px;justify-content:center}.product-module{overflow:hidden;scroll-margin-top:24px}.product-workspace{padding:18px;display:grid;grid-template-columns:minmax(620px,1.1fr) minmax(520px,.9fr);gap:18px;align-items:start}.bulk-edit-panel{margin:18px;border:1px solid var(--color-border-strong);border-radius:8px;background:#eef5f2;overflow:hidden;display:grid;gap:0}.bulk-edit-head{border-bottom:1px solid #cbdadd;background:#f8fbfa;padding:16px 18px;display:flex;justify-content:space-between;gap:16px;align-items:start}.bulk-edit-head h3{margin:0 0 4px}.bulk-edit-head p{margin:0;color:var(--color-muted)}.bulk-edit-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:end}.bulk-edit-toolbar{padding:14px 18px;border-bottom:1px solid #cbdadd;display:grid;grid-template-columns:minmax(260px,420px) auto 1fr;gap:14px;align-items:end;background:#f3f8f6}.bulk-checkbox{min-height:40px;display:inline-flex;align-items:center;gap:8px;color:var(--color-text);font-weight:800;white-space:nowrap}.bulk-checkbox input,.bulk-check-cell input{width:20px;height:20px}.bulk-status{justify-self:end;color:var(--color-muted);font-size:12px;font-weight:800}.bulk-message{margin:12px 18px 0;border:1px solid #b7d9cc;border-radius:8px;background:#e7f5ee;color:#16724d;font-weight:850;padding:10px 12px}.bulk-table-wrap{max-height:min(72vh,820px);overflow:auto;border-top:1px solid #dbe6e7;background:#fff}.bulk-edit-table{min-width:3800px;border-collapse:separate;border-spacing:0;table-layout:fixed}.bulk-edit-table th,.bulk-edit-table td{border-bottom:1px solid #d9e4e5;border-right:1px solid #e3ecec;background:#fff;padding:8px;height:54px;vertical-align:middle}.bulk-edit-table th{position:sticky;top:0;z-index:3;background:#eaf2ef;color:var(--color-muted);font-size:11px;text-transform:uppercase;text-align:left;white-space:nowrap}.bulk-edit-table input,.bulk-edit-table select{width:100%;height:36px;border:1px solid #cbdadd;border-radius:7px;background:#fbfcfb;color:var(--color-text);font:inherit;font-weight:750;padding:0 10px}.bulk-edit-table input:focus,.bulk-edit-table select:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px #2f8f7224;outline:none}.bulk-edit-table .id-col{width:70px;min-width:70px;left:0;font-weight:900;color:var(--color-muted)}.bulk-edit-table .sku-col{width:190px;min-width:190px;left:70px}.bulk-edit-table .name-col{width:300px}.bulk-edit-table .bulk-sticky{position:sticky;z-index:2;background:#f9fcfb;box-shadow:1px 0 #d9e4e5}.bulk-edit-table th.bulk-sticky{z-index:4;background:#e1ece8}.bulk-edit-table .bulk-readonly{background:#f1f6f4;font-weight:900;white-space:nowrap}.bulk-edit-table .dirty-row td{background:#fffaf0}.bulk-edit-table .dirty-row .bulk-sticky{background:#fff4d8}.bulk-empty{padding:24px;color:var(--color-muted);font-weight:800}.receiving-module{overflow:hidden}.receiving-kpis{padding:0 18px 16px;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.metric-card{border:1px solid var(--color-border);border-radius:8px;background:var(--color-field);padding:14px;display:grid;gap:10px}.metric-card span{color:var(--color-muted)}.metric-card strong{font-size:22px}.receiving-filter-bar{grid-template-columns:minmax(220px,1.2fr) minmax(180px,1fr) minmax(150px,.7fr) minmax(150px,.7fr) auto}.receiving-create-panel{margin-top:16px}.issuing-create-panel{padding:18px}.issuing-create-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,360px);gap:14px;align-items:start}.issuing-cart-form{display:grid;gap:14px;min-width:0}.form-section-card,.issuing-cart-sidebar{border:1px solid #cbdde0;border-radius:8px;background:#f8fbfa;padding:14px}.form-section-card h4,.issuing-cart-sidebar h4{margin:0 0 12px;font-size:14px}.issuing-cart-sidebar{position:sticky;top:76px;display:grid;gap:12px}.issuing-cart-summary{display:grid;gap:8px}.issuing-cart-list{display:grid;gap:8px;max-height:320px;overflow:auto}.issuing-cart-list p{margin:0;color:var(--color-muted);font-size:13px}.issuing-cart-line{border:1px solid var(--color-border);border-radius:8px;background:var(--color-field);padding:10px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.issuing-cart-line span{display:block;color:var(--color-muted);font-size:12px;margin-top:4px}.receiving-table-wrap{margin:18px;max-height:720px;padding:0;border:1px solid var(--color-border);border-radius:8px;overflow-x:hidden}.receiving-table-wrap table{width:100%;table-layout:fixed}.receiving-table-wrap th,.receiving-table-wrap td{padding:10px 8px;font-size:12px;vertical-align:top}.issuing-module .receiving-table-wrap th:nth-child(1),.issuing-module .receiving-table-wrap td:nth-child(1){width:58px}.issuing-module .receiving-table-wrap th:nth-child(2),.issuing-module .receiving-table-wrap td:nth-child(2){width:68px}.issuing-module .receiving-table-wrap th:nth-child(3),.issuing-module .receiving-table-wrap td:nth-child(3){width:165px}.issuing-module .receiving-table-wrap th:nth-child(4),.issuing-module .receiving-table-wrap td:nth-child(4){width:66px}.issuing-module .receiving-table-wrap th:nth-child(5),.issuing-module .receiving-table-wrap td:nth-child(5){width:62px}.issuing-module .receiving-table-wrap th:nth-child(6),.issuing-module .receiving-table-wrap td:nth-child(6){width:62px}.issuing-module .receiving-table-wrap th:nth-child(7),.issuing-module .receiving-table-wrap td:nth-child(7){width:88px}.issuing-module .receiving-table-wrap th:nth-child(8),.issuing-module .receiving-table-wrap td:nth-child(8){width:72px}.issuing-module .receiving-table-wrap th:nth-child(9),.issuing-module .receiving-table-wrap td:nth-child(9){width:130px}.issuing-module .receiving-table-wrap th:nth-child(10),.issuing-module .receiving-table-wrap td:nth-child(10){width:90px}.issuing-module .receiving-table-wrap th:nth-child(11),.issuing-module .receiving-table-wrap td:nth-child(11){width:76px}.issuing-module .receiving-table-wrap th:nth-child(12),.issuing-module .receiving-table-wrap td:nth-child(12){width:138px}.issuing-module .receiving-table-wrap th,.issuing-module .receiving-table-wrap td{padding:8px 6px;overflow-wrap:anywhere}.receiving-table-wrap thead th{position:sticky;top:0;z-index:2;box-shadow:0 1px 0 var(--color-border)}.receiving-table-wrap td span{color:var(--color-muted);display:block;font-size:12px;margin-top:4px}.issuing-group-row td{background:#e8f4ef;border-top:1px solid #c5d9d4;border-bottom:1px solid #c5d9d4;font-weight:850}.issuing-group-row td span{font-weight:700}.issuing-item-row td{background:var(--color-surface)}.table-action-cell{min-width:0;width:190px}.issuing-module .table-action-cell{width:138px}.issuing-module .row-actions{gap:4px;justify-content:flex-start}.issuing-module .document-cell{overflow:visible}.issuing-module .document-cell .document-link-list,.issuing-module .issuing-group-actions,.issuing-module .document-attach-actions{display:grid;grid-template-columns:1fr;align-items:start;justify-items:start;gap:6px;min-width:0;white-space:normal}.issuing-module .document-cell .mini-button,.issuing-module .issuing-group-actions .mini-button,.issuing-module .document-attach-actions .mini-button,.issuing-module .document-attach-actions select{width:100%;max-width:112px}.compact-meta-cell{display:grid;gap:2px;min-width:0}.compact-meta-cell span{margin:0;font-size:11px;line-height:1.25;color:var(--color-muted);overflow-wrap:anywhere}.compact-meta-cell b{color:var(--color-text)}.compact-cost-cell{display:grid;gap:2px}.compact-cost-cell span{margin:0;font-size:11px}.compact-cost-cell strong{font-size:12px}.document-link-list{display:inline-flex;align-items:center;gap:6px;flex-wrap:nowrap;white-space:nowrap}.document-link-list span{margin:0;font-size:11px;font-weight:800;color:var(--color-muted)}.inline-edit-row>td{background:#eef5f2;padding:12px}.inline-edit-panel{border:1px solid #c8dadd;border-radius:8px;background:#f7fbfa;padding:12px}.inline-edit-title{display:flex;align-items:baseline;gap:10px;margin-bottom:12px}.inline-edit-title span{color:var(--color-muted);font-size:12px}.document-attach-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap;min-width:150px}.document-attach-actions select{width:92px;min-height:28px;border:1px solid var(--color-border);border-radius:999px;background:#f6f8f8;color:var(--color-text);font:inherit;font-size:12px;font-weight:750;padding:0 8px}.success-line{margin:14px 18px 0;border:1px solid #bce5cf;border-radius:8px;background:#eaf8f0;color:#116b3f;font-weight:800;padding:10px 12px}.product-list-wrap{padding:0;border:1px solid #edf1f2;border-radius:8px;max-height:760px;scroll-behavior:smooth;font-size:13px}.product-list-wrap thead th{position:sticky;top:0;z-index:2;box-shadow:0 1px #edf1f2;padding:0}.sortable-th{width:100%;min-height:42px;border:0;background:transparent;color:var(--color-muted);cursor:pointer;font:inherit;font-size:11px;font-weight:850;text-align:left;text-transform:uppercase;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}.product-cost-header{min-width:150px;color:var(--color-muted);font-size:11px;font-weight:850;text-align:left;text-transform:uppercase;padding:12px;background:#f6f8f8}.sortable-th:hover{background:#edf4f1;color:var(--color-text)}.sortable-th b{color:var(--color-primary);font-size:11px}.product-list-wrap tbody tr{cursor:pointer}.product-list-wrap td{padding:10px 12px;line-height:1.25}.product-list-wrap td strong,.product-list-wrap td.sku{font-size:13px}.product-list-wrap td span{font-size:12px}.product-cost-summary{min-width:148px;display:grid;gap:3px;color:var(--color-muted);font-size:11px;line-height:1.18;white-space:nowrap}.product-cost-summary b{color:var(--color-text);font-size:11px}.product-cost-summary .negative{color:var(--color-danger)}.selected-row{background:#eef7f2;box-shadow:inset 3px 0 0 var(--color-primary)}.product-detail{border:1px solid #dce4e7;border-radius:8px;background:linear-gradient(180deg,#f4efe68c,#fff0 220px),var(--color-surface);min-height:420px;max-height:calc(100vh - 130px);padding:18px;position:sticky;top:102px;display:flex;flex-direction:column;overflow:hidden}.product-detail.fullscreen{position:fixed;top:18px;right:18px;bottom:18px;left:18px;z-index:30;max-height:none;min-height:0;border-color:var(--color-primary);box-shadow:0 24px 80px #10282047}.product-detail.fullscreen .detail-content{padding-right:10px}.product-detail.fullscreen .epr-summary{grid-template-columns:repeat(7,minmax(0,1fr))}.product-detail.fullscreen .epr-form-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.product-detail.empty-state{display:grid;place-content:center;text-align:center;color:var(--color-muted)}.detail-hero{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:16px;align-items:center;flex:0 0 auto}.fullscreen-toggle{align-self:start}.detail-window-actions{align-self:start;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.product-window-page{min-height:100vh}.product-window-page .product-detail{position:static;max-height:none;min-height:calc(100vh - 56px)}.product-photo{width:92px;height:112px;border-radius:8px;border:1px solid #d8e2dd;background:radial-gradient(circle at 50% 20%,rgba(255,255,255,.9) 0 12%,transparent 13%),linear-gradient(180deg,#e8f3ee 0,#e8f3ee 30%,#7fb99d 31%,#7fb99d 70%,#f7f1e7 71%,#f7f1e7);display:grid;place-items:end center;padding-bottom:18px;color:#102820;font-weight:900;box-shadow:inset 0 0 0 8px #ffffff3d;cursor:pointer;overflow:hidden;position:relative}.product-photo span{width:38px;height:30px;display:grid;place-items:center;border-radius:6px;background:#ffffffd1}.product-photo img{width:100%;height:100%;object-fit:cover;position:absolute;top:0;right:0;bottom:0;left:0}.product-photo small{min-width:42px;min-height:22px;border-radius:999px;background:#ffffffe0;color:#102820;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:850;position:relative;z-index:1}.hidden-file-input{display:none}.eyebrow{color:var(--color-accent);font-size:12px;font-weight:800;text-transform:uppercase}.detail-hero h3{margin:6px 0;font-size:22px}.detail-hero p:last-child{color:var(--color-muted)}.detail-tabs{margin-top:16px;border:1px solid #edf1f2;border-radius:8px;background:#ffffffb8;display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));padding:4px;gap:4px;flex:0 0 auto}.detail-tab{min-height:34px;border:0;border-radius:6px;background:transparent;color:var(--color-muted);cursor:pointer;font:inherit;font-size:12px;font-weight:800;line-height:1.15;padding:6px 8px;overflow-wrap:anywhere}.detail-tab.active{background:#102820;color:#fff}.detail-content{min-height:0;overflow-y:auto;padding-right:4px}.detail-stats{margin-top:18px;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}.pricing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.pricing-controls{margin:12px 0;display:grid;grid-template-columns:repeat(2,minmax(180px,260px));gap:10px}.pricing-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pricing-calculator-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.partner-pricing-list{display:grid;gap:10px}.partner-pricing-row{border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-field);display:grid;grid-template-columns:minmax(260px,1.6fr) minmax(130px,.75fr) repeat(4,minmax(112px,.65fr)) minmax(150px,auto);gap:10px;align-items:stretch;padding:10px}.partner-pricing-row .edit-field,.partner-pricing-row .field-chip{min-height:78px;height:100%;align-content:center}.partner-pricing-row .edit-field input,.partner-pricing-row .edit-field select{min-height:34px}.partner-row-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end;min-height:78px;height:100%}.partner-pricing-row .mini-button{min-height:38px;justify-content:center;white-space:nowrap}.partner-pricing-row .mini-button:disabled{cursor:not-allowed;opacity:.55}.partner-price-message{border:1px solid #c7ead8;border-radius:8px;background:#e8f6ef;color:#147a50;padding:10px 12px;font-weight:750}.cost-line{min-height:54px;border-bottom:1px solid #edf1f2;padding:8px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:center}.cost-line:last-child{border-bottom:0}.cost-line span,.cost-line small{color:var(--color-muted)}.cost-line span,.cost-line strong,.cost-line small{min-width:0}.cost-line small{grid-column:1 / -1;font-size:12px}.pricing-alerts{border:1px solid #edf1f2;border-radius:8px;background:#fbfcfb;padding:12px;margin-top:12px}.pricing-alerts strong,.pricing-alerts span{display:block}.pricing-alerts strong{margin-bottom:8px}.warning-line,.ok-line{border-radius:8px;padding:8px 10px;margin-top:6px;font-size:12px;font-weight:750}.warning-line{background:#fff1ea;color:#a94b32}.ok-line{background:#e8f6ef;color:#147a50}.metric,.field-chip{border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-field);padding:11px;min-width:0;box-shadow:inset 0 1px #ffffffc7}.metric span,.field-chip span{display:block;color:var(--color-muted);font-size:12px;margin-bottom:6px}.metric strong,.field-chip strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.detail-fields{margin-top:12px;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.overview-money-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px}.money-card{border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-section);padding:16px;display:grid;gap:8px;box-shadow:inset 0 1px #fffc}.money-card span{color:var(--color-muted);font-size:12px;font-weight:850}.money-card strong{font-size:clamp(24px,3vw,34px);line-height:1.05}.money-card small{color:var(--color-muted);font-size:12px;line-height:1.45}.money-card.cost{border-color:#d7c6aa;background:#fffaf0}.money-card.profit{border-color:#bddfd1;background:#f1faf6}.money-card.warn{border-color:#efb8a8;background:#fff1ea}.detail-section{margin-top:18px}.detail-section h4{margin:0 0 10px;font-size:14px}.structured-form{display:grid;gap:14px}.detail-section>.form-card+.form-card{margin-top:12px}.form-card{border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-section);padding:12px;box-shadow:inset 0 1px #ffffffdb}.form-card h5{margin:-12px -12px 12px;border-bottom:1px solid var(--color-border);border-radius:7px 7px 0 0;background:#eef3f1;padding:11px 12px;font-size:13px;color:#2b3b42}.form-card-toggle{width:calc(100% + 24px);min-height:42px;margin:-12px -12px 12px;border:0;border-bottom:1px solid var(--color-border);border-radius:7px 7px 0 0;background:#eef3f1;color:#2b3b42;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px;text-align:left;font:inherit}.form-card-toggle span{font-size:13px;font-weight:850}.form-card-toggle b{border:1px solid var(--color-border);border-radius:999px;background:#ffffffc7;color:var(--color-muted);flex:0 0 auto;font-size:11px;padding:5px 9px}.form-card-toggle:hover b{border-color:var(--color-primary);color:var(--color-primary)}.form-card.collapsed{padding-bottom:0}.form-card.collapsed .form-card-toggle{margin-bottom:0;border-bottom:0;border-radius:7px}.detail-row{min-height:58px;border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-field);padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.document-link{color:inherit;text-decoration:none}.document-link:hover{border-color:var(--color-primary)}.document-toolbar{border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-section);display:flex;align-items:end;gap:10px;padding:12px;margin-bottom:10px}.document-toolbar .edit-field{max-width:260px;flex:1 1 220px}.related-documents{display:grid;gap:6px;margin-top:10px}.related-document{border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-field);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 8px}.related-document span{margin:0;color:var(--color-text);font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-preview-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#10212673;padding:22px;display:grid;place-items:center}.document-preview{width:min(1180px,96vw);height:min(840px,92vh);border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface);box-shadow:0 24px 80px #10282047;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.document-preview-head{min-height:58px;border-bottom:1px solid var(--color-border);padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.document-preview-head span{display:block;color:var(--color-muted);font-size:12px;margin-top:4px}.document-frame{width:100%;height:100%;border:0;background:#fff}.document-preview-note{border-width:1px 0 0;border-radius:0;margin:0}.detail-row>div:first-child{min-width:0}.detail-row span{display:block;color:var(--color-muted);margin-top:4px;font-size:12px}.row-end{display:grid;justify-items:end;gap:6px;flex:0 0 auto;text-align:right}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.edit-actions{justify-content:flex-start;margin-top:12px}.mini-button{min-height:28px;border:1px solid var(--color-border);border-radius:999px;background:#f6f8f8;color:var(--color-text);cursor:pointer;font:inherit;font-size:12px;font-weight:850;padding:0 10px;text-decoration:none;display:inline-flex;align-items:center}.mini-button:hover{border-color:var(--color-primary)}.danger-mini-button{border-color:#ffc6b4;background:#fff3ee;color:#b23d19}.danger-mini-button:hover{border-color:#d8542e;color:#8f2d12}.mini-button.danger{background:#fff1ea;border-color:#f0c9ba;color:#b85237}.row-end span{margin-top:0}.note-box{border:1px solid var(--color-border-strong);border-radius:8px;background:#fffdf8;padding:12px}.note-box strong{display:block;margin-bottom:6px}.note-box p{color:var(--color-muted);line-height:1.45}.status-badge{min-width:48px;min-height:24px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;padding:0 9px;font-size:11px;font-weight:850;border:1px solid transparent}.status-badge.ok{background:#e8f6ef;border-color:#c7ead8;color:#147a50}.status-badge.warn{background:#fff1ea;border-color:#f0c9ba;color:#b85237}.status-badge.empty,.status-badge.neutral{background:#f4f6f6;border-color:#dce4e7;color:var(--color-muted)}.movement-row strong{text-transform:capitalize}.muted-line{color:var(--color-muted);border:1px dashed var(--color-border);border-radius:8px;padding:14px}.epr-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.epr-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.epr-form-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.shipping-estimate-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.edit-field{border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-field);padding:10px;display:grid;gap:6px;min-width:0}.edit-field span{color:var(--color-muted);font-size:12px}.edit-field input,.edit-field select,.edit-field textarea,.epr-material-row input{width:100%;min-height:36px;border:1px solid #ccd9dd;border-radius:8px;background:#fff;color:var(--color-text);font:inherit;font-weight:700;padding:0 10px}.edit-field input:focus,.edit-field select:focus,.edit-field textarea:focus,.epr-material-row input:focus{border-color:var(--color-primary);outline:2px solid color-mix(in srgb,var(--color-primary) 20%,transparent)}.edit-field textarea{min-height:84px;padding:10px;resize:vertical}.checkbox-field{align-content:start}.checkbox-field input{width:22px;min-height:22px}.text-area-field{margin-top:10px}.readonly-fields{opacity:.72}.calculation-note{margin-top:10px;border:1px solid #dbe5e3;border-radius:8px;background:#f7faf8;padding:9px 10px;color:var(--color-muted);font-size:12px;line-height:1.45}.epr-materials{border:1px solid var(--color-border-strong);border-radius:8px;overflow:hidden;background:var(--color-field)}.epr-material-head,.epr-material-row{display:grid;grid-template-columns:minmax(160px,1.6fr) minmax(92px,.8fr) repeat(3,minmax(92px,1fr));gap:8px;align-items:center}.epr-material-head{min-height:40px;background:#eaf0ee;color:var(--color-muted);font-size:12px;padding:0 12px;text-transform:uppercase}.epr-material-row{min-height:50px;border-top:1px solid var(--color-border);padding:7px 12px}.epr-material-row:nth-child(odd){background:#f8faf9}.epr-material-row span{font-weight:800}.epr-material-row b{text-align:right}.recipe-toolbar{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:10px}.recipe-toolbar .calculation-note{margin:0;flex:1 1 auto}.recipe-toolbar .mini-button{flex:0 0 auto;margin-top:0}.packaging-recipe{display:grid;gap:10px}.packaging-recipe-row{border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-field);display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(5,minmax(110px,.9fr)) minmax(180px,1.2fr) auto;gap:10px;align-items:stretch;padding:10px}.packaging-recipe-row.missing{border-color:#efb8a8;background:#fff1ea}.recipe-component-field select{min-width:0}.inline-button{width:fit-content;margin:14px 0 0}.work-page{max-width:860px}.work-list{padding:18px;display:grid;gap:10px}.work-item{min-height:58px;border:1px solid #edf1f2;border-radius:8px;background:#fbfcfb;display:flex;align-items:center;gap:12px;padding:12px}.work-item span{width:10px;height:10px;border-radius:999px;background:var(--color-primary);flex:0 0 auto}.partners-module{overflow:hidden}.partner-tools{display:flex;align-items:end;gap:12px}.partner-filter{grid-template-columns:repeat(4,minmax(78px,1fr))}.partner-actionbar{padding:14px 18px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.partner-counts{display:flex;align-items:center;gap:10px;color:var(--color-muted);font-weight:700;flex-wrap:wrap}.partner-counts strong{color:var(--color-text);font-size:18px}.partner-counts span{border:1px solid var(--color-border);border-radius:999px;background:var(--color-field);padding:5px 9px;font-size:12px}.partners-workspace{padding:18px;display:grid;grid-template-columns:minmax(620px,1.1fr) minmax(420px,.9fr);gap:18px;align-items:start}.partner-list-wrap{padding:0;border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-surface);max-height:calc(100vh - 270px)}.partner-table{min-width:780px}.partner-table tr{cursor:pointer}.partner-table .selected-row{background:#ecf6f1;box-shadow:inset 3px 0 0 var(--color-primary)}.partner-editor{border:1px solid var(--color-border-strong);border-radius:8px;background:var(--color-section);padding:14px;display:grid;gap:12px;min-width:0}.partner-editor-head{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px}.partner-editor-head span{color:var(--color-muted);font-size:12px;font-weight:800}.partner-editor-head h3{margin:3px 0 0;font-size:19px}.partner-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.partner-message{border:1px solid #c7ead8;border-radius:8px;background:#e8f6ef;color:#147a50;padding:10px 12px;font-weight:750}.partner-editor-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}@media (max-width: 1500px){.report-type-grid,.warehouse-field-grid,.warehouse-calculated-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.product-workspace{grid-template-columns:1fr}.product-list-wrap{max-height:520px}.product-detail{position:static;max-height:none}.detail-content{overflow-y:visible;padding-right:0}.detail-tabs{grid-template-columns:repeat(auto-fit,minmax(112px,1fr))}}@media (max-width: 1180px){.report-hero{align-items:flex-start;flex-direction:column}.warehouse-hero,.warehouse-workspace{grid-template-columns:1fr}.warehouse-list-panel{position:static;max-height:none}.warehouse-product-list{max-height:420px}.report-export-actions{justify-content:flex-start}.topbar,.page-content{padding-left:18px;padding-right:18px}.module-head{align-items:stretch;grid-template-columns:1fr}.product-tools{align-items:stretch;justify-content:stretch;justify-self:stretch;width:100%}.product-tools>*{flex:1 1 180px}.product-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-hero{grid-template-columns:1fr}.dashboard-hero-value strong{font-size:30px}.clear-filter-button{width:fit-content}.search-box{min-width:0}.detail-hero{grid-template-columns:78px minmax(0,1fr)}.product-photo{width:78px;height:96px}.fullscreen-toggle{grid-column:1 / -1;justify-self:start}.carton-setting-row{grid-template-columns:repeat(2,minmax(0,1fr))}.carton-setting-row .mini-button{grid-column:1 / -1;width:fit-content}.component-setting-row,.user-setting-row{grid-template-columns:repeat(2,minmax(0,1fr))}.component-setting-row .component-name-control,.component-setting-row .theme-control:nth-child(5),.component-setting-row .theme-control:nth-child(6),.component-setting-row .theme-control:nth-child(7),.component-setting-row .theme-control:nth-child(8),.component-setting-row .mini-button{grid-column:auto;grid-row:auto}.component-setting-row .mini-button{width:fit-content}.pricing-calculator-grid,.receiving-kpis,.receiving-filter-bar,.partner-pricing-row{grid-template-columns:repeat(2,minmax(0,1fr))}.partner-pricing-row .mini-button{width:fit-content}.partners-workspace{grid-template-columns:1fr}.partner-list-wrap{max-height:520px}}@media (max-width: 900px){.report-type-grid,.report-filter-grid,.warehouse-field-grid,.warehouse-calculated-grid,.warehouse-hero-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.warehouse-form-head,.warehouse-list-head{flex-direction:column}.warehouse-actions{justify-content:flex-start}.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;inset:0 auto 0 0;z-index:60;width:min(82vw,310px);transform:translate(-105%);transition:transform .18s ease;box-shadow:20px 0 60px #00000047}.sidebar.mobile-open{display:flex;transform:translate(0)}.mobile-menu-button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--color-border);border-radius:999px;background:var(--color-surface);color:var(--color-text);font:inherit;font-weight:850;padding:0 14px}.mobile-nav-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:55;border:0;background:#0a16126b}.topbar{height:auto;min-height:74px;padding:12px 14px;align-items:flex-start}.topbar h1{font-size:24px}.topbar-actions{justify-content:flex-end}.page-content,.kpi-grid,.dashboard-grid,.dashboard-kpis,.alert-grid{grid-template-columns:1fr}.dashboard-hero{padding:16px}.dashboard-hero h2{font-size:26px}.dashboard-status-row{align-items:stretch;flex-direction:column}.dashboard-hero-value strong{font-size:25px}.module-head{align-items:stretch;grid-template-columns:1fr}.product-tools{align-items:stretch}.product-tools>*{flex-basis:100%}.topbar{height:auto;min-height:86px;align-items:flex-start;flex-direction:column;padding-top:14px;padding-bottom:14px}.product-filter-bar,.user-setting-row,.receiving-kpis,.receiving-filter-bar{grid-template-columns:1fr}.search-box{min-width:0}.product-workspace{grid-template-columns:1fr}.product-detail{position:static;max-height:none}.detail-stats,.overview-money-grid,.detail-fields,.epr-summary,.epr-form-grid,.pricing-grid,.pricing-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-money-grid{grid-template-columns:1fr}.detail-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.epr-material-head,.epr-material-row{grid-template-columns:1fr}.epr-material-row b{text-align:left}.pricing-calculator-grid,.partner-pricing-row{grid-template-columns:1fr}.partner-tools{align-items:stretch;flex-direction:column}.partner-filter,.partner-form-grid{grid-template-columns:1fr}}@media (max-width: 620px){.report-type-grid,.report-filter-grid,.report-summary-grid,.warehouse-field-grid,.warehouse-calculated-grid,.warehouse-hero-metrics,.warehouse-photo-row{grid-template-columns:1fr}.warehouse-actions .primary-button,.warehouse-actions .mini-button,.warehouse-photo-row .mini-button{width:100%;justify-content:center}.report-filter-grid .mini-button{width:fit-content}}
