*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","PingFang SC","Microsoft YaHei",sans-serif;font-size:15px;letter-spacing:-.01em;color:#1d1d1f;background:#f5f5f7;min-height:100vh;-webkit-font-smoothing:antialiased}
.hidden{display:none!important}
a{color:#790078;text-decoration:none;font-weight:600}a:hover{text-decoration:underline}
.auth-bg{min-height:100vh;background:linear-gradient(135deg,#f4f5f7 0%,#dfe3e8 48%,#b7bec8 100%);display:flex;align-items:center;justify-content:center;padding:20px}
.auth-card{background:#fff;border-radius:20px;padding:40px;width:100%;max-width:420px;max-height:calc(100vh - 40px);overflow-y:auto;box-shadow:0 25px 80px rgba(0,0,0,.3)}
.auth-btn{width:100%;padding:14px;border-radius:10px;font-size:16px;font-weight:700;cursor:pointer;border:none;color:#fff;margin-top:8px}
.auth-btn:active{transform:scale(0.98)}
.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}
.topbar{background:rgba(255,255,255,.92);backdrop-filter:saturate(180%) blur(18px);-webkit-backdrop-filter:saturate(180%) blur(18px);border-bottom:1px solid rgba(60,60,67,.12);position:sticky;top:0;z-index:50}
.topbar-inner{max-width:1440px;margin:0 auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between;height:64px}
.brand-lockup{display:flex;align-items:center;gap:12px;min-width:0}.brand-logo{display:block;width:120px;height:auto;object-fit:contain}.brand-name{padding-left:12px;border-left:1px solid #d2d2d7;color:#424245;font-size:15px;font-weight:650;letter-spacing:-.02em;white-space:nowrap}
.trial-banner{max-width:1440px;margin:0 auto;padding:10px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff8e8;border-bottom:1px solid #f2d58c;color:#7a5200;font-size:13px}.trial-banner-copy{display:flex;align-items:center;gap:9px;min-width:0}.trial-banner-mark{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#fff0bf;color:#9a6700;flex:none;font-size:14px}.trial-banner-copy #trialBannerText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trial-banner-action{border:1px solid #d8a934;border-radius:9px;background:#fff;color:#815400;padding:6px 11px;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.trial-banner-action:hover{background:#fff4cf}.trial-banner.is-critical{background:#fff0f0;border-bottom-color:#f4b4b4;color:#9b2222}.trial-banner.is-critical .trial-banner-mark{background:#ffdede;color:#b42318}.trial-banner.is-critical .trial-banner-action{border-color:#e47878;color:#a51d1d}
.user-trigger{cursor:pointer;display:flex;align-items:center;gap:8px;padding:7px 11px;border-radius:11px;border:1px solid #d2d2d7;background:rgba(255,255,255,.72);transition:background .15s,border-color .15s,box-shadow .15s}.user-trigger:hover{background:#f5f5f7;border-color:#b8b8bd;box-shadow:0 2px 8px rgba(0,0,0,.06)}.user-avatar{width:25px;height:25px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#1d1d1f;color:#fff;font-size:11px;font-weight:700}.user-chevron{font-size:13px;color:#86868b;line-height:1;transform:translateY(-1px)}
.tabbar{background:rgba(255,255,255,.92);border-bottom:1px solid rgba(60,60,67,.12);box-shadow:0 1px 4px rgba(0,0,0,.03)}
.tabbar-inner{max-width:1440px;margin:0 auto;padding:0 20px;display:flex;gap:6px;overflow-x:auto}.tabbar-inner::-webkit-scrollbar{display:none}
.tab-btn{height:58px;padding:0 21px;display:inline-flex;align-items:center;gap:10px;font-size:16px;font-weight:600;letter-spacing:-.015em;color:#424245;border-bottom:2px solid transparent;cursor:pointer;transition:color .18s,background .18s,border-color .18s;white-space:nowrap;background:none;border-top:none;border-left:none;border-right:none}.tab-btn:hover{background:#f5f5f7;color:#1d1d1f}.tab-btn.active{border-bottom-color:#790078;color:#790078;background:#fbf5fb}.tab-btn small{font-size:11px;font-weight:500;letter-spacing:.04em;color:#86868b;margin-left:-3px}.nav-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:none}.nav-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}
.content{max-width:1440px;margin:0 auto;padding:28px 24px}
/* ===== DASHBOARD / APPLE-INSPIRED OPERATIONS OVERVIEW ===== */
.dashboard-page{display:flex;flex-direction:column;gap:24px;padding-bottom:18px}
.dashboard-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:4px 4px 0}
.dashboard-hero-copy{min-width:0}.dashboard-eyebrow,.dashboard-kicker{font-size:10px;font-weight:700;letter-spacing:.14em;color:#86868b;text-transform:uppercase}
.dashboard-hero h1{margin-top:8px;font-size:30px;line-height:1.15;letter-spacing:-.035em;color:#1d1d1f;font-weight:750}
.dashboard-hero p{margin-top:8px;font-size:14px;color:#6e6e73}
.dashboard-hero-side{display:flex;align-items:flex-end;gap:18px;flex:none}.dashboard-date{display:flex;flex-direction:column;gap:4px;text-align:right;color:#86868b;font-size:11px}.dashboard-date strong{font-size:13px;color:#424245;font-weight:600;white-space:nowrap}
.dashboard-actions{display:flex;gap:8px}.dashboard-actions .btn{border-radius:9px;padding:8px 12px}.dashboard-actions .btn-gray{background:#fff;color:#424245;border:1px solid #d2d2d7}.dashboard-actions .btn-gray:hover{background:#f5f5f7}.dashboard-action-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.dashboard-metric-grid{display:grid;grid-template-columns:minmax(300px,1.6fr) repeat(3,minmax(165px,1fr));gap:14px}
.dashboard-metric-card{min-height:154px;background:#fff;border:1px solid rgba(60,60,67,.13);border-radius:16px;padding:20px 21px;box-shadow:0 5px 18px rgba(0,0,0,.035);display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}
.dashboard-metric-asset{background:linear-gradient(140deg,#17191d 0%,#33363c 100%);color:#fff;border:none;box-shadow:0 10px 24px rgba(29,29,31,.16)}
.dashboard-metric-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#6e6e73;font-size:13px}.dashboard-metric-asset .dashboard-metric-head{color:rgba(255,255,255,.76)}
.dashboard-metric-head>span:first-child{display:flex;align-items:center;gap:8px}.dashboard-metric-overline,.dashboard-metric-index{font-size:9px;letter-spacing:.1em;color:#a1a1a6;font-weight:700}.dashboard-metric-asset .dashboard-metric-overline{color:rgba(255,255,255,.48)}
.dashboard-symbol{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;color:#6e6e73;flex:none}.dashboard-symbol svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.dashboard-symbol-inverse{color:rgba(255,255,255,.86)}
.dashboard-metric-value{margin-top:12px;font-size:34px;line-height:1;font-weight:760;letter-spacing:-.045em;color:#fff}.dashboard-metric-value small{font-size:14px;letter-spacing:0;font-weight:500;color:inherit;opacity:.72}.dashboard-metric-value-dark{color:#1d1d1f}.dashboard-metric-caption{font-size:12px;color:#86868b}.dashboard-asset-breakdown{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-top:14px;font-size:11px;color:rgba(255,255,255,.58);border-top:1px solid rgba(255,255,255,.12)}.dashboard-asset-breakdown b{color:rgba(255,255,255,.9);font-weight:600}.dashboard-metric-card:not(.dashboard-metric-asset) .dashboard-asset-breakdown{color:#86868b}
.dashboard-content-grid,.dashboard-bottom-grid{display:grid;grid-template-columns:1.18fr 1fr;gap:16px}.dashboard-bottom-grid{grid-template-columns:1.18fr 1fr}
.dashboard-panel{min-width:0;background:#fff;border:1px solid rgba(60,60,67,.13);border-radius:16px;padding:22px 24px;box-shadow:0 5px 18px rgba(0,0,0,.035)}
.dashboard-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.dashboard-section-head h2{margin-top:5px;font-size:19px;line-height:1.2;letter-spacing:-.025em;color:#1d1d1f;font-weight:700}.dashboard-text-button{border:none;background:none;color:#6f2c91;font-size:12px;font-weight:600;cursor:pointer;padding:3px 0;white-space:nowrap}.dashboard-text-button span{font-size:15px;margin-left:3px}.dashboard-text-button:hover{color:#4f1d6d}
.dashboard-panel-note{display:flex;align-items:center;gap:7px;margin:-7px 0 18px;font-size:12px;color:#86868b}.dashboard-panel-note b{color:#424245;font-weight:700}.dashboard-status-dot{width:6px;height:6px;border-radius:50%;background:#34c759;box-shadow:0 0 0 4px rgba(52,199,89,.12)}
.inventory-mix{display:grid;gap:18px}.inventory-mix-caption{font-size:11px;color:#a1a1a6;margin-top:-7px;margin-bottom:-4px}.inventory-mix-row{display:grid;gap:7px}.inventory-mix-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.inventory-mix-label{display:flex;align-items:center;gap:8px;font-size:13px;color:#424245;font-weight:600}.inventory-mix-label .dashboard-symbol{width:18px;height:18px}.inventory-mix-label .dashboard-symbol svg{width:17px;height:17px}.inventory-mix-value{display:flex;align-items:baseline;gap:4px;color:#86868b;font-size:12px}.inventory-mix-value b{font-size:16px;color:#1d1d1f;font-weight:700}.inventory-mix-track{height:5px;background:#f1f1f3;border-radius:99px;overflow:hidden}.inventory-mix-track span{display:block;height:100%;min-width:0;border-radius:99px;background:#6f2c91}.inventory-mix-row:nth-child(3) .inventory-mix-track span{background:#8e8e93}.inventory-mix-row:nth-child(4) .inventory-mix-track span{background:#c7a6dc}.inventory-mix-meta{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#a1a1a6}
.dashboard-count-badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 7px;border-radius:99px;background:#f6eef9;color:#6f2c91;font-size:12px;font-weight:700}.dashboard-alert-list,.dashboard-activity-list,.dashboard-product-alerts{min-height:150px}.dashboard-alert-group{margin-bottom:16px}.dashboard-alert-group:last-child{margin-bottom:0}.dashboard-alert-group-head{display:flex;align-items:center;padding-bottom:7px;border-bottom:1px solid #f1f1f3}.dashboard-alert-group-head>span{display:flex;align-items:center;gap:7px}.dashboard-alert-group-head .dashboard-symbol{width:18px;height:18px;color:#6f2c91}.dashboard-alert-group-head .dashboard-symbol svg{width:16px;height:16px}.dashboard-alert-group-head b{font-size:12px;color:#424245}.dashboard-alert-group-head small{font-size:11px;color:#a1a1a6}
.dashboard-alert-row,.dashboard-product-row{display:flex;align-items:center;gap:10px;min-width:0;padding:10px 0;border-bottom:1px solid #f5f5f7;cursor:pointer;transition:background .15s}.dashboard-alert-row:hover,.dashboard-product-row:hover{background:#fbfbfc;margin:0 -8px;padding-left:8px;padding-right:8px;border-radius:8px}.dashboard-alert-dot{width:7px;height:7px;border-radius:50%;background:#f5a623;flex:none}.dashboard-alert-row.is-danger .dashboard-alert-dot,.dashboard-product-row.is-danger .dashboard-alert-dot{background:#ff3b30}.dashboard-alert-copy,.dashboard-product-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.dashboard-alert-copy b,.dashboard-product-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#424245;font-weight:600}.dashboard-alert-copy small,.dashboard-product-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#a1a1a6}.dashboard-alert-message{flex:none;font-size:11px;color:#ff9500}.dashboard-alert-row.is-danger .dashboard-alert-message{color:#ff3b30}.dashboard-archive-button{flex:none;border:1px solid #e5e5ea;border-radius:7px;background:#fff;color:#86868b;font-size:10px;padding:4px 7px;cursor:pointer;opacity:0;transition:opacity .15s}.dashboard-alert-row:hover .dashboard-archive-button,.dashboard-product-row:hover .dashboard-archive-button{opacity:1}.dashboard-archive-button:hover{color:#6f2c91;border-color:#c7a6dc}
.dashboard-more-note,.dashboard-archived-note{padding:9px 0 0;color:#a1a1a6;font-size:11px}.dashboard-archived-note{padding-top:12px;border-top:1px solid #f1f1f3}.dashboard-archived-section{margin-top:12px;padding-top:10px;border-top:1px solid #f1f1f3}.dashboard-archived-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;background:none;color:#86868b;font-size:11px;text-align:left;padding:2px 0;cursor:pointer}.dashboard-archived-toggle span:last-child{color:#6f2c91;font-weight:600}.dashboard-archived-toggle span:last-child::after{content:' ↓';font-size:12px}.dashboard-archived-toggle.is-open span:last-child::after{content:' ↑'}.dashboard-archived-list{display:none;margin-top:8px;padding:4px 10px;border-radius:9px;background:#fafafa}.dashboard-archived-list.is-open{display:block}.dashboard-archived-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #f1f1f3}.dashboard-archived-row:last-child{border-bottom:none}.dashboard-archived-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.dashboard-archived-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#6e6e73;font-weight:600}.dashboard-archived-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#a1a1a6}.dashboard-release-button{flex:none;border:1px solid #c7a6dc;border-radius:7px;background:#fff;color:#6f2c91;font-size:10px;padding:4px 8px;cursor:pointer}.dashboard-release-button:hover{background:#f6eef9}.dashboard-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:145px;color:#a1a1a6;text-align:center}.dashboard-empty b{font-size:13px;color:#6e6e73;font-weight:600}.dashboard-empty span:last-child{font-size:11px}.dashboard-empty-mark{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#edf8ef;color:#34c759;font-size:16px;font-weight:700;margin-bottom:3px}.dashboard-activity-row{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #f5f5f7}.dashboard-activity-row:last-child{border-bottom:none}.dashboard-activity-icon{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;font-size:17px;font-weight:700;flex:none}.dashboard-activity-icon.is-in{background:#edf8ef;color:#34c759}.dashboard-activity-icon.is-out{background:#fff0ef;color:#ff3b30}.dashboard-activity-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.dashboard-activity-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#424245;font-weight:600}.dashboard-activity-copy small{font-size:11px;color:#a1a1a6}.dashboard-activity-qty{font-size:14px;font-weight:700;white-space:nowrap}.dashboard-activity-qty.is-in{color:#34c759}.dashboard-activity-qty.is-out{color:#ff3b30}.dashboard-activity-qty small{margin-left:3px;font-size:10px;color:#a1a1a6;font-weight:500}.dashboard-product-row{padding:11px 0}.dashboard-product-qty{font-size:13px;font-weight:700;color:#ff9500;white-space:nowrap}.dashboard-product-row.is-danger .dashboard-product-qty{color:#ff3b30}.dashboard-export-link{padding-top:14px;text-align:right}.dashboard-export-link a{font-size:11px;color:#6f2c91}.dashboard-export-link a span{font-size:14px;margin-left:3px}
.btn{padding:10px 20px;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;border:none;transition:background .18s,border-color .18s,box-shadow .18s,transform .15s;display:inline-flex;align-items:center;gap:7px}
.btn:active{transform:scale(0.97)}
.btn-primary{background:#790078;color:#fff}.btn-primary:hover{background:#5e005c}
.btn-green{background:#16a34a;color:#fff}.btn-green:hover{background:#15803d}
.btn-red{background:#dc2626;color:#fff}.btn-red:hover{background:#b91c1c}
.btn-gray{background:#6b7280;color:#fff}.btn-gray:hover{background:#4b5563}
.btn-sm{padding:6px 12px;font-size:13px}
.btn-xs{padding:4px 10px;font-size:12px}
input,select,textarea{padding:10px 12px;border:1px solid #d2d2d7;border-radius:10px;font-size:15px;outline:none;width:100%;background:#fff;color:#1d1d1f;transition:border-color .18s,box-shadow .18s}
input:focus,select:focus{border-color:#790078;box-shadow:0 0 0 3px rgba(121,0,120,.15)}
table{width:100%;border-collapse:collapse}
th{background:#f8fafc;padding:12px 10px;text-align:left;font-size:13px;color:#64748b;border-bottom:2px solid #e2e8f0;font-weight:600;white-space:nowrap}
td{padding:12px 10px;border-bottom:1px solid #f1f5f9;font-size:15px}
tr:hover td{background:#f8fafc}
.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);display:flex;align-items:flex-start;justify-content:center;z-index:1000;padding-top:5vh;overflow-y:auto}
.modal{background:#fff;border-radius:16px;padding:28px;width:92%;max-width:640px;max-height:85vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.3);margin-bottom:5vh}
.stocktake-modal{width:96%!important;max-width:1080px!important;max-height:92vh!important;overflow:hidden!important;padding:22px!important}
.stocktake-sheet{display:flex;flex-direction:column;min-height:0;height:100%}
.stocktake-head{flex:none}
.stocktake-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.stocktake-title-row h3{margin-bottom:4px}
.stocktake-hint{font-size:13px;color:#6b7280;line-height:1.5;margin-bottom:14px}
.stocktake-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.stocktake-stat{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border:1px solid #e5e7eb;border-radius:10px;background:#f8fafc;color:#64748b;font-size:13px}
.stocktake-stat b{font-size:20px;color:#111827}
.stocktake-stat.is-green{background:#f0fdf4;border-color:#bbf7d0}.stocktake-stat.is-green b{color:#15803d}
.stocktake-stat.is-gray{background:#f8fafc}.stocktake-stat.is-gray b{color:#6b7280}
.stocktake-stat.is-orange{background:#fff7ed;border-color:#fed7aa}.stocktake-stat.is-orange b{color:#c2410c}
.stocktake-filter-row{display:grid;grid-template-columns:minmax(260px,1fr) 180px auto auto;gap:10px;align-items:center;margin-bottom:12px}
.stocktake-filter-row input,.stocktake-filter-row select{min-width:0}
.stocktake-table-wrap{flex:1;min-height:180px;max-height:calc(92vh - 330px);overflow:auto;border:1px solid #e5e7eb;border-radius:10px;background:#fff}
.stocktake-table{min-width:760px}
.stocktake-table th{position:sticky;top:0;z-index:2;background:#f1f5f9;padding:11px 10px}
.stocktake-table td{padding:9px 10px;vertical-align:middle}
.stocktake-group-row td{padding:8px 12px;background:#f8fafc!important;border-top:1px solid #dbe3ec;border-bottom:1px solid #e5e7eb;cursor:pointer}
.stocktake-group-title{display:flex;align-items:center;gap:8px;color:#475569;font-size:13px;line-height:1.4}
.stocktake-group-title b{color:#1f2937}.stocktake-group-arrow{width:16px;color:#790078;font-size:14px;font-weight:700;text-align:center}.stocktake-group-divider{color:#cbd5e1}.stocktake-group-count{margin-left:auto;color:#94a3b8;font-size:12px}
.stocktake-group-row:hover td{background:#f1f5f9!important}
.stocktake-type-col{width:72px}.stocktake-item-col{min-width:300px}
.stocktake-type{display:inline-block;padding:4px 8px;border-radius:6px;background:#f3e8ff;color:#6b21a8;font-size:12px;font-weight:700;white-space:nowrap}
.stocktake-item-cell{min-width:300px;white-space:normal;word-break:break-word}
.stocktake-item-title{font-size:14px;font-weight:700;color:#111827;line-height:1.4}
.stocktake-item-meta{font-size:12px;color:#6b7280;line-height:1.5;margin-top:3px}
.stocktake-system-cell{min-width:90px;text-align:center;font-weight:700;white-space:nowrap}
.stocktake-actual-cell{min-width:110px}.stocktake-actual-cell input{width:100px;padding:7px 8px;font-size:14px}
.stocktake-unit-hint{font-size:12px;color:#6b7280;margin-top:4px;white-space:nowrap}
.stocktake-diff-cell{min-width:60px;text-align:center;font-weight:700;white-space:nowrap}
.stocktake-note-cell{min-width:125px}.stocktake-note-cell input{width:120px;padding:7px 8px;font-size:13px}
.stocktake-row-diff td{background:#fffaf2!important}.stocktake-row-negative td:first-child{border-left:3px solid #dc2626}.stocktake-row-positive td:first-child{border-left:3px solid #16a34a}
.stocktake-footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:12px}
.stocktake-pager{display:flex;align-items:center;gap:10px;color:#6b7280;font-size:13px;white-space:nowrap}
.stocktake-actions{display:flex;justify-content:flex-end;gap:8px}
.flow-page{min-width:0}
.flow-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:18px;padding:2px 4px 0}
.flow-page-kicker,.flow-table-kicker{display:block;color:#a1a1a6;font-size:10px;font-weight:700;letter-spacing:.14em;line-height:1.2;text-transform:uppercase}
.flow-page-head h2{margin:7px 0 5px;color:#1d1d1f;font-size:30px;letter-spacing:-.045em;line-height:1.15}
.flow-page-head p{margin:0;color:#86868b;font-size:13px}
.flow-page-note{display:flex;align-items:center;gap:7px;padding-bottom:5px;color:#86868b;font-size:11px;white-space:nowrap}
.flow-live-dot{width:7px;height:7px;border-radius:50%;background:#34c759;box-shadow:0 0 0 4px rgba(52,199,89,.12)}
.flow-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}
.flow-summary-card{display:flex;align-items:baseline;gap:8px;padding:11px 14px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;color:#64748b;font-size:13px;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.flow-summary-card b{font-size:20px;color:#111827}.flow-summary-card small{font-size:12px;color:#94a3b8}
.flow-summary-card.is-green{background:#f0fdf4;border-color:#bbf7d0}.flow-summary-card.is-green b{color:#15803d}
.flow-summary-card.is-red{background:#fff7f7;border-color:#fecaca}.flow-summary-card.is-red b{color:#dc2626}
.flow-summary-card.is-blue{background:#eff6ff;border-color:#bfdbfe}.flow-summary-card.is-blue b{color:#1d4ed8}
.flow-filter-card{margin-bottom:16px;padding:12px 14px;border:1px solid rgba(60,60,67,.12);border-radius:14px;background:rgba(255,255,255,.72);box-shadow:0 4px 14px rgba(0,0,0,.025)}
.flow-filter-bar{display:grid;grid-template-columns:minmax(300px,1fr) 150px 150px 150px auto;gap:10px;align-items:center}
.flow-search-wrap{display:flex;gap:8px;min-width:0}.flow-search-field{display:flex;align-items:center;gap:7px;min-width:0;flex:1;height:38px;padding:0 10px;border:1px solid #d2d2d7;border-radius:10px;background:#fff;transition:border-color .18s,box-shadow .18s}.flow-search-field:focus-within{border-color:#a05aa0;box-shadow:0 0 0 3px rgba(121,0,120,.1)}.flow-search-field svg{width:15px;height:15px;flex:0 0 15px;fill:none;stroke:#86868b;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.flow-search-field input{min-width:0;width:100%;height:36px;padding:0;border:0;outline:0;box-shadow:none!important;background:transparent;font-size:12px}.flow-search-field input::placeholder{color:#a1a1a6}.flow-search-wrap .btn{flex:none}
.flow-filter-bar>select,.flow-filter-bar>input[type=date]{height:38px;box-sizing:border-box;padding:0 11px;border:1px solid #d2d2d7;border-radius:10px;background:#fff;color:#424245;font-size:12px}
.flow-clear-btn{background:#fff;color:#6e6e73;border:1px solid #d2d2d7}.flow-clear-btn:hover{background:#f5f5f7;color:#1d1d1f;border-color:#b8b8bd}
.flow-card{padding:0;overflow:hidden;position:relative}.flow-table-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:16px 18px 13px;border-bottom:1px solid #f1f1f3}.flow-table-head strong{display:block;margin-top:6px;color:#1d1d1f;font-size:18px;letter-spacing:-.025em}.flow-table-head>span:last-child{padding-bottom:2px;color:#a1a1a6;font-size:11px}.flow-table-wrap{max-height:calc(100vh - 460px);min-height:280px;overflow:auto;position:relative;isolation:isolate;border-radius:0}
.flow-table{min-width:1180px;border-collapse:separate;border-spacing:0}.flow-table thead{position:static}.flow-table th{position:sticky;top:0;z-index:10;padding:11px 10px;background:#fafafd;color:#86868b;box-shadow:0 1px 0 #e2e8f0;font-size:11px;font-weight:650}.flow-table td{padding:12px 10px;border-top:1px solid #f1f1f3;color:#424245;font-size:12px;vertical-align:middle}.flow-item-col,.flow-item-cell{min-width:260px}.flow-item-cell{white-space:normal;word-break:break-word}.flow-table th:last-child,.flow-table td:last-child{min-width:86px;text-align:center;white-space:nowrap}
.flow-item-title{font-weight:700;color:#111827;line-height:1.4}.flow-item-meta{margin-top:3px;color:#6b7280;font-size:12px;line-height:1.45}
.flow-qty-in,.flow-qty-out{font-weight:800;font-size:17px;white-space:nowrap}.flow-qty-in{color:#16a34a}.flow-qty-out{color:#dc2626}.flow-qty-in small,.flow-qty-out small{font-size:11px;font-weight:500;margin-left:3px;color:#6b7280}
.flow-doc-cell{max-width:145px;word-break:break-all}.flow-note-cell{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.flow-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 4px;color:#6b7280;font-size:13px}.flow-pager-buttons{display:flex;align-items:center;gap:10px}.flow-pager-buttons button:disabled{opacity:.45;cursor:not-allowed}
.flow-auth-card{max-width:460px!important}.flow-auth-modal h3{margin-bottom:0}.flow-auth-record{display:flex;flex-direction:column;gap:4px;padding:11px 12px;border:1px solid #e5e7eb;border-radius:8px;background:#f8fafc;margin-bottom:14px}.flow-auth-record span{font-size:13px;color:#64748b}
.modal h3{font-size:20px;font-weight:700;margin-bottom:20px}
.form-row{margin-bottom:16px}
.form-label{display:block;font-size:14px;font-weight:600;color:#374151;margin-bottom:6px}
.form-grid{display:grid;gap:12px}
.form-grid-2{grid-template-columns:1fr 1fr}
.form-grid-3{grid-template-columns:1fr 1fr 1fr}
.card{background:#fff;border:1px solid rgba(60,60,67,.12);border-radius:14px;padding:20px;box-shadow:0 4px 18px rgba(0,0,0,.045)}
.kpi-value{font-size:28px;font-weight:800}
.kpi-label{font-size:14px;color:#64748b;margin-top:4px}
.toast{position:fixed;top:20px;right:20px;padding:14px 24px;border-radius:10px;color:#fff;font-weight:600;font-size:15px;z-index:9999;animation:slideIn .3s}
@keyframes slideIn{from{transform:translateX(100px);opacity:0}to{transform:translateX(0);opacity:1}}
.chip{display:inline-block;padding:3px 12px;border-radius:99px;font-size:13px;font-weight:600}
.chip-green{background:#dcfce7;color:#166534}.chip-red{background:#fee2e2;color:#991b1b}
.chip-yellow{background:#fef9c3;color:#854d0e}.chip-blue{background:#dbeafe;color:#1e40af}
.chip-gray{background:#f3f4f6;color:#374151}.chip-purple{background:#f3e8ff;color:#6b21a8}
.roll-table{font-size:13px}.roll-table th{padding:6px 8px;font-size:12px}.roll-table td{padding:6px 8px;font-size:13px}
.expand-btn{cursor:pointer;user-select:none;font-size:18px}.expand-btn:hover{color:#790078}
.sub-row{background:#f0f7ff!important}
.img-thumb{width:48px;height:48px;border-radius:8px;object-fit:cover;background:#f1f5f9}
.img-placeholder{width:48px;height:48px;border-radius:8px;background:#f1f5f9;display:flex;align-items:center;justify-content:center;color:#cbd5e1;font-size:20px}
.flex{display:flex}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}
.gap-1{gap:4px}.gap-2{gap:8px}.gap-3{gap:12px}.gap-4{gap:16px}
.grid{display:grid}.grid-2{grid-template-columns:1fr 1fr}.grid-4{grid-template-columns:repeat(4,1fr)}.grid-5{grid-template-columns:repeat(5,1fr)}
.flex-1{flex:1}.min-w-200{min-width:200px}.min-w-130{min-width:130px}.min-w-120{min-width:120px}
.text-center{text-align:center}.text-sm{font-size:14px}.text-xs{font-size:12px}.text-lg{font-size:18px}.text-xl{font-size:20px}
.font-bold{font-weight:700}.font-semibold{font-weight:600}.font-mono{font-family:monospace}
.mt-2{margin-top:8px}.mt-4{margin-top:16px}.mb-4{margin-bottom:16px}.mb-5{margin-bottom:20px}.mb-6{margin-bottom:24px}
.text-gray-300{color:#d1d5db}.text-gray-400{color:#9ca3af}.text-gray-500{color:#6b7280}
.supplier-group{margin-bottom:16px;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.supplier-header{display:flex;align-items:center;padding:16px 20px;cursor:pointer;background:#fafafa;border-bottom:1px solid #f1f5f9;gap:12px;transition:background .15s}
.supplier-header:hover{background:#fdf0fd}
.supplier-header .arrow{font-size:18px;transition:transform .2s;width:24px;text-align:center}
.supplier-header .arrow.open{transform:rotate(90deg)}
.supplier-name{font-size:17px;font-weight:700;color:#1f2937;flex:1}
.supplier-stats{font-size:13px;color:#9ca3af}
.product-group{margin:0;border-bottom:1px solid #f1f5f9}
.product-group:last-child{border-bottom:none}
.product-header{display:flex;align-items:center;padding:12px 20px 12px 48px;cursor:pointer;gap:12px;transition:background .15s}
.product-header:hover{background:#fdf0fd}
.product-header .arrow{font-size:16px;width:20px;text-align:center;transition:transform .2s}
.product-header .arrow.open{transform:rotate(90deg)}
.product-name{font-size:15px;font-weight:600;color:#374151;flex:1}
.product-stats{font-size:12px;color:#9ca3af}
.fabric-items{padding:0 20px 0 68px}
.fabric-row{display:flex;align-items:center;padding:8px 12px;gap:12px;border-top:1px solid #f8fafc;font-size:14px}
.fabric-row .expand-btn{width:20px;font-size:16px}
.fabric-color{width:80px;color:#6b7280;font-size:13px}
.fabric-meters{width:80px;font-weight:700;font-family:monospace;text-align:right;font-size:14px}
.fabric-rolls{width:50px;font-family:monospace;color:#9ca3af;text-align:center;font-size:13px}
.fabric-location{width:80px;color:#9ca3af;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fabric-status{width:60px;text-align:center}
.fabric-actions{flex:1;display:flex;gap:4px;justify-content:flex-end;flex-wrap:wrap}
.rolls-panel{padding:8px 12px 8px 88px;background:#f8fafc;border-top:1px solid #e5e7eb}
.batch-input{padding:6px 8px;border:1.5px solid #d1d5db;border-radius:6px;font-size:13px;outline:none}
.batch-input:focus{border-color:#790078}
.search-highlight{background:#fef3c7!important;animation:highlightPulse 2s ease-in-out}
@keyframes highlightPulse{0%{background:#fde68a}100%{background:#fef3c7}}

.text-blue-600{color:#790078}.text-green-600{color:#16a34a}.text-red-500{color:#ef4444}.text-red-600{color:#dc2626}.text-indigo-600{color:#4f46e5}.text-purple-600{color:#9333ea}
.bg-red-50{background:#fef2f2}.bg-yellow-50{background:#fffbeb}
.overflow-x{overflow-x:auto}
.sticky{position:sticky}.top-0{top:0}.z-50{z-index:50}
.rounded-lg{border-radius:8px}.rounded-xl{border-radius:12px}
/* ===== MOBILE ADAPTATION ===== */

/* ===== SIDEBAR LAYOUT (base, before media query) ===== */
.sidebar-layout{display:flex;gap:0;height:calc(100vh - 112px)}
.sidebar{width:260px;min-width:260px;background:#fff;border-right:1px solid #e5e7eb;display:flex;flex-direction:column;overflow:hidden}
.sidebar-search{padding:12px;border-bottom:1px solid #f1f5f9}
.sidebar-search input{width:100%;padding:8px 10px;border:1.5px solid #d1d5db;border-radius:6px;font-size:13px;outline:none}
.sidebar-search input:focus{border-color:#790078;box-shadow:0 0 0 2px rgba(121,0,120,.12)}
.sidebar-actions{padding:8px 12px;border-bottom:1px solid #f1f5f9;display:flex;gap:6px;flex-wrap:wrap}
.sidebar-tree{flex:1;overflow-y:auto;padding:4px 0}
.sidebar-topbar{display:none}
.tree-node{cursor:pointer;user-select:none}
.tree-l1{display:flex;align-items:baseline;padding:10px 12px;gap:8px;font-size:14px;font-weight:700;color:#1f2937;transition:background .15s;border-left:3px solid transparent}
.tree-l1:hover{background:#fdf0fd}
.tree-l1.active{background:#f3e8ff;border-left-color:#790078;color:#790078}
.tree-l1 .arrow{font-size:12px;width:16px;text-align:center;transition:transform .2s;color:#9ca3af;flex-shrink:0}
.tree-l1 .arrow.open{transform:rotate(90deg)}
.tree-l1 .tree-body{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;flex:1;min-width:0}
.tree-l1>.tree-text{line-height:1.4;word-break:break-word}
.tree-l1 .badge{font-size:11px;font-weight:600;color:#9ca3af;background:#f3f4f6;padding:1px 6px;border-radius:10px;white-space:nowrap;flex-shrink:0}
.tree-l2-wrap{display:none}
.tree-l2-wrap.open{display:block}
.tree-l2{display:flex;align-items:baseline;padding:8px 12px 8px 32px;gap:6px;font-size:13px;font-weight:600;color:#374151;transition:background .15s;border-left:3px solid transparent}
.tree-l2:hover{background:#fdf0fd}
.tree-l2.active{background:#f3e8ff;border-left-color:#790078;color:#790078}
.tree-l2 .arrow{font-size:11px;width:14px;text-align:center;transition:transform .2s;color:#9ca3af;flex-shrink:0}
.tree-l2 .arrow.open{transform:rotate(90deg)}
.tree-l2 .tree-body{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;flex:1;min-width:0}
.tree-l2>.tree-text{line-height:1.4;word-break:break-word}
.tree-l2 .badge{font-size:10px;color:#9ca3af;background:#f3f4f6;padding:1px 5px;border-radius:8px;white-space:nowrap;flex-shrink:0}
.tree-l2 .tree-edit-btn{flex-shrink:0}
.tree-l3-wrap{display:none}
.tree-l3-wrap.open{display:block}
.tree-l4-wrap{display:none}
.tree-l4-wrap.open{display:block}
.tree-l3{display:flex;align-items:baseline;padding:6px 12px 6px 52px;gap:6px;font-size:12px;color:#6b7280;transition:background .15s;border-left:3px solid transparent}
.tree-l3:hover{background:#fdf0fd}
.tree-l3.active{background:#f3e8ff;border-left-color:#790078;color:#790078;font-weight:600}
.tree-l3 .tree-body{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;flex:1;min-width:0}
.tree-l3>.tree-text{line-height:1.4;word-break:break-word}
.tree-l3 .badge{font-size:10px;color:#9ca3af;white-space:nowrap;flex-shrink:0}
.tree-l3 .tree-edit-btn{flex-shrink:0}
.tree-l4{display:flex;align-items:baseline;padding:6px 12px 6px 66px;gap:6px;font-size:12px;color:#6b7280;transition:background .15s;border-left:3px solid transparent}
.tree-l4:hover{background:#fdf0fd}
.tree-l4.active{background:#f3e8ff;border-left-color:#790078;color:#790078;font-weight:600}
.tree-l4 .tree-body{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 6px;flex:1;min-width:0}
.tree-l4>.tree-text{line-height:1.4;word-break:break-word}
.tree-l4 .badge{font-size:10px;color:#9ca3af;white-space:nowrap;flex-shrink:0}
.tree-l4 .tree-edit-btn{flex-shrink:0}
.sidebar-main{flex:1;overflow-y:auto;padding:20px 24px;background:#f3f4f6}
.sidebar-main .card{margin-bottom:0}
.sidebar-empty{color:#9ca3af;text-align:center;padding:60px 20px;font-size:15px}
.breadcrumb{display:flex;align-items:center;gap:6px;margin-bottom:16px;font-size:13px;color:#6b7280}
.breadcrumb span{cursor:pointer;font-weight:600;color:#790078}
.breadcrumb span:hover{text-decoration:underline}
.breadcrumb .sep{color:#d1d5db}
.breadcrumb .current{color:#1f2937;font-weight:700;cursor:default}
.breadcrumb .current:hover{text-decoration:none}
.tree-edit-btn{opacity:0;cursor:pointer;font-size:12px;padding:2px 4px;border-radius:3px;transition:opacity .15s;color:#9ca3af;margin-left:auto;flex:none}
.tree-edit-btn:hover{color:#790078;background:#f3e8ff}
.tree-l1:hover .tree-edit-btn,.tree-l2:hover .tree-edit-btn,.tree-l3:hover .tree-edit-btn,.tree-l4:hover .tree-edit-btn{opacity:1}
.tree-search-hl{background:#fef3c7!important;border-left-color:#f59e0b!important;animation:highlightPulse 2s ease-in-out}

/* Bottom navigation bar for mobile */
.mobile-bottom-nav{display:none;position:fixed;bottom:0;left:0;right:0;background:rgba(255,255,255,.94);backdrop-filter:saturate(180%) blur(18px);-webkit-backdrop-filter:saturate(180%) blur(18px);border-top:1px solid rgba(60,60,67,.16);z-index:200;padding:2px 0 env(safe-area-inset-bottom);box-shadow:0 -4px 18px rgba(0,0,0,.08)}
.mobile-nav-inner{display:flex;justify-content:center;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.mobile-nav-inner::-webkit-scrollbar{display:none}
.mobile-nav-item{flex:0 0 auto;min-width:68px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 4px 6px;cursor:pointer;border:none;background:none;font-size:10px;color:#86868b;transition:color .15s;gap:3px;-webkit-tap-highlight-color:transparent}
.mobile-nav-item:active{opacity:.7}
.mobile-nav-item.active{color:#790078}.mobile-nav-item.active .nav-icon{background:#f5e9f5;border-radius:8px;width:30px;height:24px}.mobile-nav-item .nav-icon{width:24px;height:24px;line-height:1}.mobile-nav-item .nav-icon svg{width:20px;height:20px;stroke-width:1.7}
.mobile-nav-item .nav-label{font-weight:600;white-space:nowrap}

/* Sidebar toggle button for mobile */
.sidebar-toggle{display:none;position:fixed;top:56px;right:12px;width:56px;height:56px;border-radius:16px;background:#790078;color:#fff;border:none;font-size:13px;cursor:pointer;z-index:190;box-shadow:0 4px 16px rgba(121,0,120,.5);flex-direction:column;align-items:center;justify-content:center;gap:2px;-webkit-tap-highlight-color:transparent;animation:sidebarPulse 1.5s ease-in-out 3}
.sidebar-toggle .toggle-icon{font-size:20px;line-height:1}
.sidebar-toggle .toggle-label{font-size:11px;font-weight:700;line-height:1;letter-spacing:1px}
.sidebar-toggle:active{transform:scale(.92)}
.sidebar-toggle.no-pulse{animation:none}
.mobile-quick-menu{display:none}

/* ===== BOM & Production Order ===== */
.modal-card{background:#fff;border-radius:16px;padding:28px;width:92%;max-width:640px;max-height:85vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.3);margin-bottom:5vh}
.btn-orange{background:#f59e0b;color:#fff}.btn-orange:hover{background:#d97706}
.status-badge{display:inline-block;padding:3px 10px;border-radius:99px;font-size:12px;font-weight:600}
.status-draft{background:#f3f4f6;color:#374151}
.status-active{background:#dcfce7;color:#166534}
.status-frozen{background:#dbeafe;color:#1e40af}
.status-disabled{background:#f3f4f6;color:#9ca3af}
.status-shortage{background:#fee2e2;color:#991b1b}
.status-ready{background:#d1fae5;color:#065f46}
.status-issued{background:#e0f2fe;color:#075985}
.size-tag{display:inline-block;padding:2px 8px;border-radius:6px;font-size:12px;font-weight:600;background:#f3e8ff;color:#6b21a8;margin:1px}
.detail-header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px}
.production-layout{gap:18px;height:calc(100vh - 148px);min-height:520px}
.production-layout .sidebar{width:360px;min-width:360px;border:1px solid rgba(60,60,67,.12);border-radius:16px;box-shadow:0 7px 24px rgba(0,0,0,.045);overflow:hidden}
.production-layout .sidebar-main{padding:22px 0 22px 0;background:transparent;overflow-y:auto}
.production-layout .sidebar-topbar{padding:17px 18px 13px;border-bottom:1px solid #f1f1f3}
.production-layout .sidebar-actions{padding:12px 16px;border-bottom:1px solid #f1f1f3;background:#fff}
.production-layout .sidebar-actions .btn{border-radius:9px}
.production-button-icon{width:14px;height:14px;flex:0 0 14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.production-list-tools{padding:12px 16px 10px;background:#fff}
.production-list-tools input{height:36px;padding:0 11px;border-radius:9px;background:#fbfbfd;font-size:12px}
.production-list-tools input:focus{background:#fff}
.production-order-card{gap:10px;margin:4px 6px;padding:10px 9px;border:1px solid transparent;align-items:center;border-radius:11px}
.production-order-card:hover{background:#faf7fb;border-color:#f0e4f1}
.production-order-card.active{background:#f8f1f8;border-color:#e2cce4}
.production-order-thumb{width:42px;height:42px;flex:0 0 42px;border-radius:9px;object-fit:cover;background:#f5f5f7;border:1px solid #e5e5ea}
.production-order-thumb-empty{display:flex;align-items:center;justify-content:center;color:#b8a5bb;font-size:23px}.production-order-thumb-empty svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.production-order-topline{display:flex;align-items:baseline;justify-content:space-between;gap:8px;min-width:0}
.production-order-no{display:block;overflow:hidden;color:#1d1d1f;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.production-order-qty{flex:none;color:#790078;font-size:14px;font-weight:750;white-space:nowrap}
.production-order-qty small{margin-left:2px;color:#a05aa0;font-size:10px;font-weight:600}
.production-order-meta{display:block;overflow:hidden;margin-top:4px;color:#6e6e73;font-size:11px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}
.production-order-foot{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:6px;color:#a1a1a6;font-size:10px;white-space:nowrap}
.production-order-foot .status-badge{padding:2px 7px;font-size:10px}
.production-month-group{padding:0 0 4px}.production-month-group>.bom-cat-title{display:flex;align-items:center;justify-content:space-between;padding:10px 12px 7px;color:#424245;font-size:12px;font-weight:650}.production-month-group>.bom-cat-title>span:first-child{display:inline-flex;align-items:center;gap:7px}.production-month-icon{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;color:#a1a1a6}.production-month-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.production-month-group>.bom-cat-title>span:last-child{padding:2px 7px!important;border-radius:99px!important;background:#f5f5f7!important;color:#86868b!important;font-size:10px!important}
.production-month-select{display:inline-flex;align-items:center;gap:5px;min-width:0;padding:4px 8px 4px 9px;border:1px solid #d2d2d7;border-radius:99px;background:#fff;color:#86868b;transition:border-color .18s,box-shadow .18s}
.production-month-select:focus-within{border-color:#a05aa0;box-shadow:0 0 0 3px rgba(121,0,120,.1)}
.production-month-select>svg{width:13px;height:13px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.production-month-select>span{font-size:11px;white-space:nowrap}
.production-month-select select{min-width:112px;max-width:170px;height:21px;padding:0 16px 0 0;border:0;outline:0;background:#fff;color:#424245;font:inherit;font-size:11px;cursor:pointer}
.production-detail-hero{margin:0 22px 16px;padding:22px 24px 18px;background:#fff;border:1px solid rgba(60,60,67,.12);border-radius:16px;box-shadow:0 6px 20px rgba(0,0,0,.035)}
.production-detail-hero .detail-header{align-items:center}
.production-detail-image{width:96px;height:96px;flex:0 0 96px;border:1px solid #e5e5ea;border-radius:14px;object-fit:cover;cursor:pointer;background:#f5f5f7}
.production-detail-image-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:#a1a1a6;cursor:default}.production-detail-image-empty span{display:flex}.production-detail-image-empty span svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.production-detail-image-empty small{font-size:10px}
.production-detail-header{align-items:flex-start!important;gap:20px}
.production-detail-gallery-wrap{width:300px;min-width:0;flex:0 0 300px}
.production-color-gallery{display:flex;align-items:stretch;gap:10px;min-width:0}
.production-color-gallery-stage{width:142px;min-width:0;flex:0 0 142px;padding:10px;border:1px solid #e5e5ea;border-radius:14px;background:#fbfbfd;box-sizing:border-box}
.production-color-gallery-stage-head{display:flex;align-items:flex-end;justify-content:space-between;gap:6px;margin-bottom:7px;min-width:0}
.production-color-gallery-stage-head>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.production-color-gallery-stage-head span,.production-color-gallery-rail-head span{color:#a1a1a6;font-size:9px;letter-spacing:.08em;text-transform:uppercase}
.production-color-gallery-stage-head strong{overflow:hidden;color:#1d1d1f;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.production-color-gallery-stage-head small{flex:none;color:#86868b;font-size:10px;white-space:nowrap}
.production-color-gallery-media{height:128px;overflow:hidden;border-radius:9px;background:#fff}
.production-color-preview-image{display:flex;width:100%;height:100%;align-items:center;justify-content:center;object-fit:contain;background:#fff;color:#a1a1a6;cursor:pointer}
.production-color-preview-image-empty{flex-direction:column;gap:5px;cursor:default}
.production-color-preview-image svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.production-color-preview-image small{font-size:10px}
.production-color-gallery-rail{min-width:0;flex:1;padding:3px 0}
.production-color-gallery-rail-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0 2px 7px}
.production-color-gallery-rail-head small{color:#86868b;font-size:10px;white-space:nowrap}
.production-color-gallery-options{display:flex;flex-direction:column;gap:6px;max-height:220px;overflow-y:auto;padding:1px 2px 1px 0;scrollbar-width:thin}
.production-color-option{display:flex;align-items:center;gap:7px;width:100%;min-width:0;padding:5px;border:1px solid #e5e5ea;border-radius:10px;background:#fff;color:#424245;text-align:left;cursor:pointer;transition:border-color .18s,background .18s,box-shadow .18s}
.production-color-option:hover{border-color:#c7a6dc;background:#fcf8fc}
.production-color-option.is-active{border-color:#790078;background:#faf2fa;box-shadow:0 0 0 2px rgba(121,0,120,.08)}
.production-color-thumb{display:flex;width:34px;height:34px;flex:0 0 34px;align-items:center;justify-content:center;overflow:hidden;border-radius:7px;background:#f5f5f7;color:#b8a5bb;object-fit:contain}
.production-color-thumb-empty{border:1px dashed #d2d2d7}.production-color-thumb svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.production-color-option-copy{display:flex;min-width:0;flex-direction:column;gap:2px}
.production-color-option-copy strong{overflow:hidden;color:#424245;font-size:11px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.production-color-option.is-active .production-color-option-copy strong{color:#790078}
.production-color-option-copy small{overflow:hidden;color:#a1a1a6;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.production-detail-copy{min-width:220px;flex:1}
.production-detail-kicker{color:#a1a1a6;font-size:10px;font-weight:700;letter-spacing:.14em;line-height:1.2;text-transform:uppercase}
.production-detail-copy h2{margin:7px 0 8px;color:#1d1d1f;font-size:22px;line-height:1.18;letter-spacing:-.035em}.production-detail-copy h2 span{color:#c7c7cc;font-weight:400}
.production-detail-meta{color:#6e6e73;font-size:12px;line-height:1.8}.production-detail-meta strong{color:#424245;font-weight:650}
.production-detail-actions{align-self:flex-end;justify-content:flex-end;max-width:100%;margin-left:auto}
.production-detail-actions .btn{border-radius:9px;padding:7px 10px;font-size:12px}
.production-auto-calc-state{display:flex;align-items:center;justify-content:center;gap:9px;min-height:220px;padding:36px 20px;color:#6e6e73;text-align:center}.production-auto-calc-state strong{color:#424245;font-size:14px}.production-auto-calc-state small{display:block;margin-top:4px;color:#a1a1a6;font-size:11px}.production-auto-calc-spinner{width:16px;height:16px;border:2px solid #ead7ea;border-top-color:#790078;border-radius:50%;animation:productionAutoCalcSpin .8s linear infinite}@keyframes productionAutoCalcSpin{to{transform:rotate(360deg)}}
.production-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;height:100%;min-height:260px;padding:40px 20px;color:#a1a1a6;text-align:center}.production-empty-state strong{color:#6e6e73;font-size:14px}.production-empty-state>span:last-child{font-size:12px}.production-empty-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin-bottom:5px;border-radius:15px;background:#f7eef7;color:#790078}.production-empty-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.production-order-modal{max-width:760px;max-height:90vh;overflow-y:auto}
.production-modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.production-modal-heading h3{margin:7px 0 0}.production-modal-note{padding-top:3px;color:#a1a1a6;font-size:11px;text-align:right}
.production-preview-field{margin-bottom:18px}.production-field-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:7px}.production-field-head .form-label{margin-bottom:0}.production-field-hint{display:block;margin-top:4px;color:#a1a1a6;font-size:11px}
.production-preview-drop{min-height:116px;padding:12px;border:1px dashed #d2d2d7;border-radius:13px;background:#fbfbfd;outline:none;transition:border-color .18s,background .18s,box-shadow .18s;cursor:pointer}.production-preview-drop:hover,.production-preview-drop:focus{border-color:#b66ab6;background:#fff;box-shadow:0 0 0 3px rgba(121,0,120,.08)}.production-preview-drop.is-dragging{border-color:#790078;background:#faf0fa}
.production-preview-empty{display:flex;align-items:center;justify-content:center;gap:11px;min-height:88px;color:#6e6e73}.production-preview-empty>div{display:flex;flex-direction:column;gap:4px}.production-preview-empty strong{color:#424245;font-size:13px}.production-preview-empty span{font-size:11px;color:#a1a1a6}.production-preview-empty kbd{margin-left:auto;padding:4px 7px;border:1px solid #e5e5ea;border-radius:6px;background:#fff;color:#86868b;font-family:inherit;font-size:10px;white-space:nowrap}.production-preview-mark{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:10px;background:#f7eef7;color:#790078;font-size:21px;font-weight:400}.production-preview-mark svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.production-preview-filled{display:flex;align-items:center;gap:12px;min-height:88px}.production-preview-filled>img{width:88px;height:88px;flex:0 0 88px;object-fit:cover;border-radius:10px;border:1px solid #e5e5ea;background:#f5f5f7}.production-preview-filled-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.production-preview-filled-copy strong{color:#424245;font-size:13px}.production-preview-filled-copy span{color:#a1a1a6;font-size:11px}.production-preview-filled-actions{display:flex;gap:6px;align-self:flex-end}.production-preview-action{padding:6px 9px;border:1px solid #d2d2d7;border-radius:8px;background:#fff;color:#6f2c91;font-size:11px;cursor:pointer}.production-preview-action:hover{background:#f8f1f8;border-color:#c7a6dc}.production-preview-action.is-muted{color:#86868b}
.production-shortage-panel{margin-top:12px;padding:16px 17px;border:1px solid #fecaca;border-radius:12px;background:#fff7f7}
.production-shortage-title{display:flex;align-items:center;gap:7px;color:#dc2626;font-size:15px;line-height:1.4}
.production-shortage-title small{color:#a1a1a6;font-size:11px;font-weight:500}
.production-shortage-group{margin-top:13px;color:#1e40af;font-size:13px;font-weight:700}
.production-shortage-list{margin:6px 0 0;padding:0;list-style:none}.production-shortage-list li{display:flex;align-items:center;gap:6px;min-width:0}
.production-shortage-list li+li{margin-top:6px}
.production-shortage-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 11px;border:1px solid transparent;border-radius:9px;background:rgba(255,255,255,.65);color:#dc2626;text-align:left;cursor:pointer}
.production-shortage-link:hover{border-color:#fecaca;background:#fff}
.production-shortage-link{flex:1;min-width:0;width:auto}.production-shortage-link>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.45}
.production-shortage-link small{display:inline-flex;align-items:center;gap:4px;flex:none;color:#b91c1c;font-size:12px;white-space:nowrap}
.production-shortage-link svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.production-shortage-procurement-action{flex:none;padding:7px 9px;border:1px solid #e8cfe8;border-radius:8px;background:#fff;color:#790078;font-size:11px;cursor:pointer;white-space:nowrap}.production-shortage-procurement-action:hover{background:#f8f1f8;border-color:#c7a6dc}
.production-schedule-view{min-height:calc(100vh - 148px);padding:24px 26px 56px;background:#f5f5f7}.production-plan-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.production-plan-head h2{margin:7px 0 5px;color:#1d1d1f;font-size:30px;letter-spacing:-.045em}.production-plan-head p{margin:0;color:#86868b;font-size:13px}.production-plan-actions{display:flex;gap:8px;flex-wrap:wrap}.production-plan-actions .btn{border-radius:9px}.production-plan-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.production-plan-stat{padding:15px 17px;border:1px solid rgba(60,60,67,.12);border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(0,0,0,.035)}.production-plan-stat span{display:block;color:#86868b;font-size:11px}.production-plan-stat strong{display:block;margin:6px 0 2px;color:#1d1d1f;font-size:26px;line-height:1;font-weight:720;letter-spacing:-.04em}.production-plan-stat small{color:#a1a1a6;font-size:10px}.production-plan-stat.is-purple strong{color:#790078}.production-plan-stat.is-green strong{color:#00875a}.production-plan-stat.is-dark strong{color:#374151}.production-plan-toolbar{display:flex;align-items:center;gap:9px;margin-bottom:13px}.production-plan-search{display:flex;align-items:center;gap:8px;min-width:280px;height:38px;padding:0 11px;border:1px solid #d2d2d7;border-radius:10px;background:#fff}.production-plan-search svg{width:15px;height:15px;fill:none;stroke:#a1a1a6;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:0 0 15px}.production-plan-search input{width:100%;border:0;outline:0;background:transparent;color:#1d1d1f;font-size:12px}.production-plan-toolbar select{height:38px;padding:0 30px 0 11px;border:1px solid #d2d2d7;border-radius:10px;background:#fff;color:#424245;font-size:12px}.production-plan-table-card{border:1px solid rgba(60,60,67,.12);border-radius:16px;background:#fff;box-shadow:0 7px 24px rgba(0,0,0,.045);overflow:hidden}.production-plan-table-top{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:18px 20px 14px;border-bottom:1px solid #f1f1f3}.production-plan-table-top h3{margin:6px 0 0;color:#1d1d1f;font-size:19px;letter-spacing:-.025em}.production-plan-count{padding-bottom:2px;color:#a1a1a6;font-size:11px}.production-plan-table-wrap{overflow:auto}.production-plan-table{width:100%;min-width:1160px;border-collapse:collapse;table-layout:fixed}.production-plan-table th{height:40px;padding:0 10px;background:#fafafd;color:#86868b;font-size:10px;font-weight:650;text-align:left;white-space:nowrap}.production-plan-table td{height:76px;padding:9px 10px;border-top:1px solid #f1f1f3;color:#424245;font-size:11px;vertical-align:middle}.production-plan-table tbody tr:hover{background:#fcf9fc}.production-plan-table .plan-preview-col{width:62px;text-align:center}.production-plan-table .plan-order-col{width:205px}.production-plan-table .plan-action-col{width:78px;text-align:right}.production-plan-table .plan-preview-col img,.production-plan-thumb-empty{display:inline-flex;width:46px;height:46px;align-items:center;justify-content:center;object-fit:cover;border:1px solid #e5e5ea;border-radius:10px;background:#f5f5f7;color:#b8a5bb}.production-plan-thumb-empty svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.production-plan-order{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.production-plan-order strong{max-width:100%;overflow:hidden;color:#1d1d1f;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.production-plan-order span{max-width:100%;overflow:hidden;color:#424245;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.production-plan-order small{max-width:100%;overflow:hidden;color:#a1a1a6;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.production-plan-order:hover strong{color:#790078}.production-plan-table .plan-number{color:#790078;font-size:14px;font-weight:720;white-space:nowrap}.production-plan-table .plan-number small{margin-left:2px;color:#a05aa0;font-size:10px;font-weight:600}.plan-date{color:#6e6e73;font-size:11px;white-space:nowrap}.production-plan-muted{color:#c7c7cc}.plan-progress-cell{max-width:118px;overflow:hidden;color:#6e6e73;font-size:10px;line-height:1.45;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.production-plan-pill{display:inline-flex;align-items:center;min-height:22px;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:650;white-space:nowrap}.production-plan-pill.is-pending{background:#f5f5f7;color:#86868b}.production-plan-pill.is-received{background:#eef2ff;color:#4f46e5}.production-plan-pill.is-progress{background:#fff4e5;color:#c77700}.production-plan-pill.is-ready{background:#eaf9f1;color:#00875a}.production-plan-pill.is-done{background:#e8f7ef;color:#00875a}.plan-offline-cell{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.plan-offline-cell small{color:#a1a1a6;font-size:10px}.production-plan-empty{display:flex;min-height:280px;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#a1a1a6}.production-plan-empty strong{color:#6e6e73;font-size:14px}.production-plan-empty>span:last-child{font-size:12px}.production-schedule-modal{width:94%;max-width:720px}.production-schedule-modal-sub{margin:6px 0 0;color:#86868b;font-size:12px}.production-schedule-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.production-schedule-form-grid .form-row{margin-bottom:13px}.production-schedule-form-grid .form-row input,.production-schedule-form-grid .form-row select,.production-schedule-form-grid .form-row textarea{width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid #d2d2d7;border-radius:9px;background:#fff;color:#424245;font:inherit;font-size:12px;outline:0}.production-schedule-form-grid .form-row textarea{resize:vertical;line-height:1.5}.production-schedule-form-grid .form-row input:focus,.production-schedule-form-grid .form-row select:focus,.production-schedule-form-grid .form-row textarea:focus{border-color:#b66ab6;box-shadow:0 0 0 3px rgba(121,0,120,.08)}.production-schedule-wide{grid-column:1 / -1}.production-schedule-modal-hint{display:flex;align-items:flex-start;gap:7px;margin-top:2px;padding:10px 12px;border-radius:10px;background:#faf7fb;color:#86868b;font-size:11px;line-height:1.5}.production-schedule-modal-hint svg{width:15px;height:15px;flex:0 0 15px;fill:none;stroke:#a05aa0;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.production-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.production-modal-actions .btn{display:inline-flex;align-items:center;gap:6px;border-radius:9px}
.plan-color-list{display:flex;align-items:center;gap:4px;max-width:100%;overflow:hidden;flex-wrap:wrap}
.plan-color-chip{display:inline-flex;align-items:baseline;gap:3px;max-width:100%;padding:2px 6px;border:1px solid #e5d7ec;border-radius:6px;background:#faf5fc;color:#6f2c91;line-height:1.2;white-space:nowrap}
.plan-color-chip strong{max-width:92px;overflow:hidden;color:#6f2c91;font-size:10px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.plan-color-chip small{max-width:72px;overflow:hidden;color:#a05aa0;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.bom-tab{display:inline-block;padding:4px 12px;border-radius:6px;font-size:12px;cursor:pointer;background:#f3f4f6;color:#6b7280;transition:all .15s}
.bom-tab.active{background:#790078;color:#fff}
.bom-cat{margin-bottom:8px}
.bom-cat-header{display:flex;align-items:center;gap:6px;padding:8px 10px;cursor:pointer;font-size:14px;font-weight:700;color:#374151;border-radius:6px;user-select:none}
.bom-cat-header:hover{background:#f9fafb}
.bom-cat-header .arrow{font-size:10px;transition:transform .2s;color:#9ca3af}
.bom-cat-header .arrow.open{transform:rotate(90deg)}
.bom-cat-body{display:none;padding-left:4px}
.bom-cat-body.open{display:block}
.bom-card{display:flex;gap:10px;padding:8px 10px;margin:3px 0;border-radius:8px;cursor:pointer;transition:background .15s;align-items:flex-start}
.bom-card:hover{background:#f9fafb}
.bom-card.active{background:#f0fdf4}
.bom-card-img{width:48px;height:48px;border-radius:6px;object-fit:cover;border:1px solid #e5e7eb;flex-shrink:0;background:#f3f4f6;display:flex;align-items:center;justify-content:center;font-size:20px;color:#d1d5db}
.bom-card-info{flex:1;min-width:0}
.bom-card-title{font-size:13px;font-weight:600;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bom-card-sub{font-size:12px;color:#6b7280;margin-top:2px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bom-card-time{font-size:11px;color:#9ca3af;margin-top:2px}
.bom-group{margin-bottom:6px}
.bom-group-header{display:flex;align-items:center;gap:6px;padding:6px 10px;cursor:pointer;font-size:13px;font-weight:600;color:#374151;border-radius:6px;user-select:none}
.bom-group-header:hover{background:#f9fafb}
.bom-group-header .arrow{font-size:10px;transition:transform .2s;color:#9ca3af}
.bom-group-header .arrow.open{transform:rotate(90deg)}
.bom-group-body{display:none;padding-left:4px}
.bom-group-body.open{display:block}
.detail-actions{display:flex;gap:6px;flex-wrap:wrap}
.modal-card .form-row{margin-bottom:12px}
@keyframes sidebarPulse{0%,100%{box-shadow:0 4px 16px rgba(121,0,120,.5);transform:scale(1)}50%{box-shadow:0 4px 24px rgba(121,0,120,.8),0 0 0 8px rgba(121,0,120,.15);transform:scale(1.08)}}

/* 收货凭证 */
.procurement-readonly-value{display:flex;min-height:36px;align-items:center;padding:0 10px;border:1px solid #e5e5ea;border-radius:9px;background:#f8f8fa;color:#424245;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.procurement-receipt-history{margin-top:14px;padding:12px 14px;border:1px solid #e5e5ea;border-radius:10px;background:#fbfbfd}.procurement-receipt-history-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;color:#424245;font-size:12px}.procurement-receipt-history-head span,.procurement-receipt-history-row>span{color:#a1a1a6;font-size:10px}.procurement-receipt-history-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-top:1px solid #f1f1f3}.procurement-receipt-history-row>div{display:flex;min-width:0;flex-direction:column;gap:2px}.procurement-receipt-history-row strong{color:#424245;font-size:11px}.procurement-receipt-history-row small{color:#a1a1a6;font-size:10px}
.procurement-receive-summary{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px;padding:11px 13px;border:1px solid #e8d7e8;border-radius:10px;background:#fcf6fc;color:#6e6e73;font-size:11px;line-height:1.6}.procurement-receive-summary strong{flex:none;color:#790078}.procurement-receive-item{padding:14px;border:1px solid #e5e5ea;border-radius:11px;background:#fff}.procurement-receive-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.procurement-receive-toolbar label{display:flex;min-width:0;flex-direction:column;gap:5px;color:#86868b;font-size:10px}.procurement-receive-toolbar input,.procurement-receive-toolbar select{width:100%;box-sizing:border-box}.procurement-roll-editor{margin-top:13px;padding-top:12px;border-top:1px solid #f1f1f3}.procurement-roll-editor-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;color:#424245;font-size:12px;font-weight:650}.procurement-roll-header,.procurement-roll-row{display:grid;grid-template-columns:1.1fr .85fr 1fr 1fr .8fr .9fr .8fr .9fr auto;align-items:center;gap:6px}.procurement-roll-header{padding:0 8px 5px;color:#a1a1a6;font-size:9px}.procurement-roll-row{padding:6px 8px;border-radius:8px;background:#fbfbfd}.procurement-roll-row+.procurement-roll-row{margin-top:5px}.procurement-roll-row input{width:100%;min-width:0;box-sizing:border-box;padding:7px;border:1px solid #e5e5ea;border-radius:7px;font-size:11px}.procurement-roll-row .btn{padding:7px 8px}.procurement-roll-editor.is-kg .procurement-roll-header,.procurement-roll-editor.is-kg .procurement-roll-row{grid-template-columns:1.05fr .8fr .85fr .95fr .72fr .9fr .85fr .85fr .8fr auto}

@media(max-width:768px){
  .brand-name{display:none}.trial-banner{padding:10px 16px}.trial-banner-copy #trialBannerText{white-space:normal;line-height:1.4}
  /* Show bottom nav, hide top tabbar */
  .tabbar{display:none!important}
  .mobile-bottom-nav{display:block}
  
  /* Adjust content padding for bottom nav */
  .content{padding:16px 12px 80px!important}
  
  /* Topbar simplify */
  .topbar-inner{padding:0 14px;height:56px}
  .brand-logo{width:150px!important}
  .user-trigger{padding:6px 8px}.user-trigger #currentUserName{font-size:13px!important}
  .topbar-inner .text-sm{display:none}
  
  /* Auth pages */
  .auth-card{padding:28px 20px;max-width:100%}
  
  /* Grid: 1 column on mobile */
  .grid-2,.grid-4,.grid-5{grid-template-columns:1fr!important}
  
  /* KPI cards: 2 columns */
  #kpiCards{grid-template-columns:1fr 1fr!important}
  
  /* Dashboard: stack */
  .content .grid[style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr!important}
  
  /* Finance KPIs: stack */
  #finKpi{grid-template-columns:1fr!important}
  
  /* Finance grid: stack */
  .content .grid[style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr!important}
  
  /* Sidebar layout: drawer mode on mobile */
  .sidebar-layout{display:flex!important;flex-direction:column;height:calc(100vh - 56px - 56px)!important;overflow:hidden}
  .sidebar{display:none!important;position:fixed;top:56px;left:0;bottom:0;width:100%!important;min-width:100%!important;z-index:300;background:#fff;border-right:none;flex-direction:column}
  .sidebar.sidebar-drawer-open{display:flex!important}
  .sidebar-overlay{display:none;position:fixed;inset:0;top:56px;background:rgba(0,0,0,.35);z-index:299}
  .sidebar-overlay.active{display:block}
  .sidebar-search{padding:12px 16px}
  .sidebar-search input{font-size:15px!important;padding:10px 12px!important}
  .sidebar-actions{padding:10px 16px}
  .sidebar-topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #e5e7eb;background:#fafafa}
  .sidebar-topbar-title{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:700;color:#1f2937}
  .sidebar-topbar-close{background:#790078;border:none;border-radius:10px;padding:8px 18px;font-size:15px;font-weight:700;color:#fff;cursor:pointer;box-shadow:0 2px 8px rgba(121,0,120,.35);animation:closePulse 1.2s ease-in-out 3}
  .sidebar-topbar-close:active{transform:scale(.95);background:#5e005c}
  @keyframes closePulse{0%,100%{box-shadow:0 2px 8px rgba(121,0,120,.35);transform:scale(1)}50%{box-shadow:0 2px 16px rgba(121,0,120,.6),0 0 0 6px rgba(121,0,120,.12);transform:scale(1.05)}}
  .sidebar-tree{flex:1;overflow-y:auto;padding:4px 0;-webkit-overflow-scrolling:touch}
  .tree-l1{padding:14px 16px!important;font-size:16px!important}
  .tree-l2{padding:12px 16px 12px 28px!important;font-size:15px!important}
  .tree-l3{padding:10px 16px 10px 48px!important;font-size:14px!important}
  .tree-l4{padding:10px 16px 10px 62px!important;font-size:13px!important}
  .tree-l1 .badge,.tree-l2 .badge,.tree-l3 .badge,.tree-l4 .badge{font-size:12px!important}
.tree-l1 .tree-edit-btn{flex-shrink:0}
  .sidebar-toggle{display:flex}
  .sidebar-main{flex:1;overflow-y:auto;padding:12px 10px;background:#f3f4f6;min-height:0}
  
  /* Form grids: stack */
  .form-grid-2,.form-grid-3{grid-template-columns:1fr!important}
  
  /* Buttons: bigger touch targets */
  .btn{min-height:44px;padding:12px 16px;font-size:14px}
  .btn-sm{min-height:36px;padding:8px 12px}
  .btn-xs{min-height:32px;padding:6px 10px;font-size:12px}
  
  /* Inputs: bigger touch targets */
  input,select,textarea{min-height:44px;font-size:16px;padding:10px 12px}
  
  /* Tables: horizontal scroll */
  .card table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .card table thead,.card table tbody,.card table tr{display:table;width:100%;min-width:600px}
  
  /* Modal: full width */
  .modal{width:95%!important;padding:20px 16px!important;max-height:90vh!important;border-radius:12px!important}
  
  /* Flow filter: stack */
  #tab-flow .flex{flex-direction:column;align-items:stretch!important}
  #tab-flow .flex>*{width:100%!important;min-width:0!important;max-width:100%!important}
  
  /* Finance filter: stack */
  #tab-finance .flex{flex-direction:column;align-items:stretch!important;gap:8px!important}
  #tab-finance .flex>*{width:100%!important}
  #tab-finance .flex .flex{flex-direction:row;flex-wrap:wrap;gap:8px}
  
  /* Card padding */
  .card{padding:14px 12px}
  
  /* KPI value smaller */
  .kpi-value{font-size:22px}
  .finance-page-head{align-items:flex-start;flex-direction:column;gap:14px;margin:0 0 14px}
  .finance-page-head h2{font-size:24px}
  .finance-page-actions{width:100%}
  .finance-export-btn{justify-content:center;width:100%}
  .inv-cards{grid-template-columns:1fr!important}
  .inv-hero{align-items:flex-start;flex-direction:column;gap:16px;padding:22px 20px}
  .inv-hero-value{font-size:30px}
  .inv-hero-side{padding-bottom:0}
  .finance-detail-heading{align-items:flex-start;flex-direction:column;gap:5px}
  
  /* Tree edit buttons always visible on mobile */
  .tree-edit-btn{opacity:1!important}
  
  /* Sidebar search/actions padding */
  .sidebar-search{padding:8px 10px}
  .sidebar-actions{padding:6px 10px}
  
  /* Product tree: reduce padding */
  .tree-l2{padding-left:20px}
  .tree-l3{padding-left:36px}
  .tree-l4{padding-left:50px}
  .fabric-items{padding-left:40px}
  .rolls-panel{padding-left:40px}
  
  /* User menu: full width dropdown */
  #userMenu{right:-40px;min-width:200px}
  
  /* Topbar: hide subtitle to prevent overflow */
  
  /* Toast: avoid topbar overlap */
  .toast{top:56px!important}
  
  /* Sidebar/content: bottom safe area for nav */
  .sidebar-main{padding-bottom:70px!important}
  .sidebar-tree{overscroll-behavior:contain}
  
  /* KPI odd card: full width */
  #kpiCards{grid-template-columns:1fr 1fr}
  #kpiCards .kpi-card:last-child:nth-child(odd){grid-column:1/-1}
}

/* ===== PROCUREMENT CONTROL — shortage to purchase tracking ===== */
.procurement-page{min-width:0}
.procurement-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:2px 4px 18px;margin-bottom:2px}
.procurement-page-heading{min-width:0}
.procurement-page-kicker,.procurement-section-kicker{display:block;color:#86868b;font-size:10px;font-weight:700;letter-spacing:.14em;line-height:1.2;text-transform:uppercase}
.procurement-page-heading h2{margin:7px 0 4px;color:#1d1d1f;font-size:28px;line-height:1.15;letter-spacing:-.035em}
.procurement-page-heading p{margin:0;color:#6e6e73;font-size:13px}
.procurement-page-actions{display:flex;align-items:center;gap:8px}
.procurement-action-icon{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.procurement-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.procurement-stat{display:flex;min-height:104px;flex-direction:column;gap:4px;padding:16px 18px;border:1px solid rgba(60,60,67,.12);border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(0,0,0,.035)}
.procurement-stat span{color:#6e6e73;font-size:12px}.procurement-stat strong{color:#1d1d1f;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:28px;line-height:1.1;letter-spacing:-.05em}.procurement-stat small{margin-top:auto;color:#a1a1a6;font-size:11px}.procurement-stat.is-purple strong{color:#790078}.procurement-stat.is-yellow strong{color:#b45309}.procurement-stat.is-red strong{color:#dc2626}
.procurement-view-tabs{display:flex;align-items:center;gap:8px;margin-bottom:16px;padding-bottom:4px;border-bottom:2px solid #e8d8e9}
.procurement-view-tab{padding:13px 20px;border:0;border-bottom:3px solid transparent;border-radius:10px 10px 0 0;background:none;color:#86868b;font-size:18px;font-weight:750;line-height:1.3;cursor:pointer}.procurement-view-tab.active{border-bottom-color:#790078;background:#fbf3fb;color:#790078}.procurement-view-tab:hover{color:#424245;background:#fcf8fc}
.procurement-archive-status-tabs{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.procurement-archive-status-tab{display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 12px;border:1px solid #e5e5ea;border-radius:9px;background:#fff;color:#6e6e73;font-size:12px;font-weight:650;cursor:pointer}.procurement-archive-status-tab b{color:#a1a1a6;font-size:11px}.procurement-archive-status-tab.active{border-color:#cda7cf;background:#fbf3fb;color:#790078;box-shadow:inset 0 -2px 0 #790078}.procurement-archive-status-tab.active b{color:#790078}.procurement-archive-status-tab:hover{border-color:#cda7cf;color:#790078}
.procurement-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:14px}.procurement-toolbar select{height:36px;padding:0 27px 0 10px;border:1px solid #d2d2d7;border-radius:9px;background:#fff;color:#424245;font-size:12px}.procurement-search{display:flex;align-items:center;gap:7px;min-width:300px;height:36px;padding:0 10px;border:1px solid #d2d2d7;border-radius:9px;background:#fff}.procurement-search:focus-within{border-color:#a05aa0;box-shadow:0 0 0 3px rgba(121,0,120,.1)}.procurement-search svg{width:15px;height:15px;flex:none;fill:none;stroke:#a1a1a6;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.procurement-search input{width:100%;height:100%;padding:0;border:0;outline:0;background:transparent;color:#1d1d1f;font-size:12px}.procurement-note{display:flex;align-items:center;gap:7px;margin:0 2px 12px;color:#86868b;font-size:11px}.procurement-live-dot{width:7px;height:7px;border-radius:50%;background:#34c759;box-shadow:0 0 0 3px #e5f7e9}
.procurement-table-card{padding:0;overflow:hidden}.procurement-table-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:18px 20px 14px;border-bottom:1px solid #f1f1f3}.procurement-table-head strong{display:block;margin-top:6px;color:#1d1d1f;font-size:18px;letter-spacing:-.025em}.procurement-table-head>span{padding-bottom:2px;color:#a1a1a6;font-size:11px}.procurement-table-wrap{overflow:auto}.procurement-table{width:100%;min-width:1050px;border-collapse:collapse}.procurement-table th{padding:10px 12px;background:#fbfbfd;color:#86868b;font-size:11px;font-weight:600;text-align:left;white-space:nowrap}.procurement-table td{padding:13px 12px;border-top:1px solid #f1f1f3;color:#424245;font-size:12px;vertical-align:middle}.procurement-table tbody tr:hover td{background:#fcf9fc}.procurement-material-name,.procurement-table td:first-child>div{display:flex;flex-direction:column;gap:4px;min-width:210px}.procurement-material-name strong{overflow-wrap:anywhere;color:#424245;font-size:12px;font-weight:650}.procurement-material-name small,.procurement-table td small{display:block;color:#a1a1a6;font-size:10px;line-height:1.4}.procurement-order-count{display:block;padding:0;border:0;background:none;color:#790078;font-size:12px;font-weight:650;cursor:pointer}.procurement-order-preview,.procurement-material-summary,.procurement-linked-orders{display:block;max-width:205px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.procurement-covered{color:#15803d!important}.procurement-remaining{color:#dc2626!important;font-weight:700}.procurement-overdue{display:inline-flex;margin-left:6px;padding:2px 5px;border-radius:5px;background:#fff0ef;color:#dc2626;font-size:10px}.procurement-status{display:inline-flex;align-items:center;min-height:23px;padding:3px 8px;border-radius:99px;font-size:11px;font-weight:650;white-space:nowrap}.procurement-status.is-gray{background:#f1f1f3;color:#6e6e73}.procurement-status.is-purple{background:#f6eafa;color:#790078}.procurement-status.is-yellow{background:#fff4df;color:#b45309}.procurement-status.is-red{background:#fff0ef;color:#dc2626}.procurement-status.is-blue{background:#eaf3ff;color:#1d5fa7}.procurement-status.is-green{background:#e5f7e9;color:#15803d}.procurement-row-actions{display:flex;align-items:center;gap:6px;white-space:nowrap}.procurement-row-actions .btn{border-radius:8px}.procurement-action-col{width:150px}.procurement-table tr.is-focused td{background:#fff8ff!important;box-shadow:inset 0 1px 0 #d9b7dc,inset 0 -1px 0 #d9b7dc}.procurement-loading,.procurement-empty{display:flex;min-height:240px;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:#a1a1a6;text-align:center}.procurement-empty strong{color:#6e6e73;font-size:14px}.procurement-empty span{font-size:11px}.procurement-empty-mark{display:flex;width:34px;height:34px;align-items:center;justify-content:center;margin-bottom:4px;border-radius:50%;background:#e5f7e9;color:#15803d;font-size:18px;font-weight:700}.procurement-loading-mark{color:#790078;font-size:25px;animation:procurementSpin 1s linear infinite}@keyframes procurementSpin{to{transform:rotate(360deg)}}
.procurement-modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.procurement-modal-heading h3{margin:7px 0 5px;color:#1d1d1f;font-size:21px;letter-spacing:-.03em}.procurement-modal-heading p{margin:0;color:#6e6e73;font-size:12px}.procurement-modal-note{padding-top:4px;color:#a1a1a6;font-size:11px;text-align:right}.procurement-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.procurement-form-grid>div{min-width:0}.procurement-form-wide{grid-column:1/-1}.procurement-form-grid select,.procurement-form-grid input{width:100%;box-sizing:border-box}.procurement-form-hint{margin-top:14px;padding:10px 12px;border-radius:9px;background:#f8f1f8;color:#6e6e73;font-size:11px;line-height:1.6}.procurement-allocation-preview{margin-top:10px;padding:10px 12px;border:1px solid #f1f1f3;border-radius:9px;color:#86868b;font-size:11px;line-height:1.7}.procurement-allocation-preview b{color:#790078}.procurement-impact-summary{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:13px;padding:12px;border-radius:10px;background:#fbfbfd;color:#86868b;font-size:11px}.procurement-impact-summary b{margin-left:4px;color:#424245;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.procurement-impact-list{border-top:1px solid #f1f1f3}.procurement-impact-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #f1f1f3}.procurement-impact-row>div{display:flex;min-width:0;flex-direction:column;gap:3px}.procurement-impact-row strong{color:#424245;font-size:12px}.procurement-impact-row small{overflow:hidden;color:#a1a1a6;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.procurement-impact-row>span:not(.procurement-status){color:#6e6e73;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;white-space:nowrap}.procurement-progress-list{display:flex;flex-direction:column;gap:12px}.procurement-progress-item{padding:14px;border:1px solid #e5e5ea;border-radius:11px;background:#fff}.procurement-progress-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.procurement-progress-item-head>div{display:flex;min-width:0;flex-direction:column;gap:4px}.procurement-progress-item-head strong{color:#424245;font-size:13px}.procurement-progress-item-head small{color:#a1a1a6;font-size:10px}.procurement-progress-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.procurement-progress-grid>div{display:flex;min-width:0;flex-direction:column;gap:5px}.procurement-progress-grid label{color:#86868b;font-size:10px}.procurement-progress-grid input,.procurement-progress-grid select{width:100%;box-sizing:border-box}.procurement-progress-wide{grid-column:1/-1}.procurement-progress-hint,.procurement-progress-footnote{margin-top:10px;color:#a1a1a6;font-size:10px;line-height:1.6}.procurement-progress-footnote{padding:10px 12px;border-radius:9px;background:#fff9ed;color:#9a6b17}

@media(max-width:768px){
  .procurement-page-head{align-items:flex-start;flex-direction:column;gap:14px;padding:0 0 14px}.procurement-page-heading h2{font-size:24px}.procurement-page-actions{width:100%}.procurement-page-actions .btn{flex:1}.procurement-stats{grid-template-columns:1fr 1fr;gap:8px}.procurement-stat{min-height:92px;padding:13px 12px}.procurement-stat strong{font-size:23px}.procurement-toolbar{align-items:stretch;flex-wrap:wrap}.procurement-search{min-width:0;flex:1 1 100%}.procurement-toolbar select{flex:1;min-width:0}.procurement-table-head{padding:16px 14px 13px}.procurement-table td,.procurement-table th{padding-right:10px;padding-left:10px}.procurement-form-grid{grid-template-columns:1fr}.procurement-form-wide{grid-column:auto}.procurement-impact-row{grid-template-columns:minmax(0,1fr) auto}.procurement-impact-row>span:last-child{grid-column:2}.procurement-progress-grid{grid-template-columns:1fr}.procurement-progress-wide{grid-column:auto}
}

@media(max-width:768px){.procurement-receive-toolbar{grid-template-columns:1fr}.procurement-roll-editor{overflow:auto}.procurement-roll-header,.procurement-roll-row{min-width:860px}}

/* ===== BOM WORKBENCH ===== */
.bom-page{min-width:0}
.bom-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:4px 0 18px}
.bom-page-heading{min-width:0}
.bom-page-kicker{color:#86868b;font-size:11px;font-weight:700;letter-spacing:.14em;line-height:1.2}
.bom-page-heading h2{margin:8px 0 4px;color:#1d1d1f;font-size:32px;font-weight:700;letter-spacing:-.04em}
.bom-page-heading p{color:#6e6e73;font-size:13px}
.bom-page-actions{display:flex;align-items:center;gap:8px;flex:none}
.bom-toolbar-btn{padding:9px 14px;border-radius:10px}
.bom-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.bom-icon-lg{width:20px;height:20px}
.bom-stat-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}
.bom-stat{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:12px 15px;border:1px solid rgba(60,60,67,.12);border-radius:12px;background:#fff;box-shadow:0 3px 12px rgba(0,0,0,.025)}
.bom-stat-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.bom-stat-copy span{color:#86868b;font-size:11px}
.bom-stat-copy strong{color:#1d1d1f;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:22px;letter-spacing:-.05em}
.bom-stat-mark{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:10px;background:#f7eef7;color:#790078}
.bom-stat.is-active .bom-stat-mark{background:#eaf8ee;color:#16803d}
.bom-stat.is-frozen .bom-stat-mark{background:#eef4ff;color:#315ca8}
.bom-stat.is-draft .bom-stat-mark{background:#f5f5f7;color:#6e6e73}
.bom-layout{height:calc(100vh - 262px);min-height:430px;overflow:hidden;border:1px solid rgba(60,60,67,.12);border-radius:16px;background:#fff;box-shadow:0 5px 20px rgba(0,0,0,.035)}
.bom-sidebar{width:348px;min-width:348px;border-right:1px solid #e5e5ea;background:#fbfbfd}
.bom-sidebar-intro{display:flex;align-items:center;justify-content:space-between;padding:13px 16px 9px;color:#1d1d1f;font-size:13px;font-weight:700}
.bom-sidebar-intro span:last-child{color:#a1a1a6;font-size:11px;font-weight:500}
.bom-search-field{display:flex;align-items:center;gap:8px;margin:0 12px 10px;padding:8px 10px;border:1px solid #d2d2d7;border-radius:9px;background:#fff;color:#86868b;transition:border-color .18s,box-shadow .18s}
.bom-search-field:focus-within{border-color:#a05aa0;box-shadow:0 0 0 3px rgba(121,0,120,.1)}
.bom-search-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#1d1d1f;font:inherit;font-size:13px}
.bom-search-field input::placeholder{color:#a1a1a6}
.bom-status-tabs{display:flex;gap:5px;padding:0 12px 10px;overflow-x:auto;scrollbar-width:none}
.bom-status-tabs::-webkit-scrollbar{display:none}
.bom-tab{display:inline-flex;align-items:center;gap:5px;flex:none;padding:6px 9px;border:1px solid transparent;border-radius:99px;background:transparent;color:#6e6e73;cursor:pointer;font:inherit;font-size:11px;white-space:nowrap;transition:background .18s,border-color .18s,color .18s}
.bom-tab b{color:#a1a1a6;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;font-weight:600}
.bom-tab:hover{border-color:#d2d2d7;background:#fff;color:#424245}
.bom-tab.active{border-color:#790078;background:#790078;color:#fff}
.bom-tab.active b{color:rgba(255,255,255,.8)}
.bom-tree{flex:1;min-height:0;overflow-y:auto;padding:2px 8px 14px}
.bom-tree::-webkit-scrollbar,.bom-detail-scroll::-webkit-scrollbar{width:8px}
.bom-tree::-webkit-scrollbar-thumb,.bom-detail-scroll::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:99px;background:#d2d2d7;background-clip:padding-box}
.bom-cat{margin:3px 0 5px}
.bom-cat-header,.bom-group-header{display:flex;align-items:center;gap:8px;min-width:0;padding:9px 9px;border-radius:9px;cursor:pointer;user-select:none;transition:background .18s}
.bom-cat-header:hover,.bom-group-header:hover{background:#f1f1f4}
.bom-cat-header .arrow,.bom-group-header .arrow{display:inline-flex;align-items:center;justify-content:center;width:14px;color:#a1a1a6;font-size:10px;transition:transform .18s}
.bom-cat-header .arrow.open,.bom-group-header .arrow.open{transform:rotate(90deg)}
.bom-cat-header .bom-icon,.bom-group-header .bom-icon{width:15px;height:15px;color:#a05aa0}
.bom-cat-label,.bom-group-label{min-width:0;overflow:hidden;color:#424245;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.bom-cat-count,.bom-group-count{margin-left:auto;color:#a1a1a6;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;white-space:nowrap}
.bom-cat-edit{display:inline-flex;margin-left:3px;padding:3px;border:0;border-radius:6px;background:transparent;color:#a1a1a6;cursor:pointer}
.bom-cat-edit:hover{background:#fff;color:#790078}
.bom-cat-body,.bom-group-body{display:none}
.bom-cat-body.open,.bom-group-body.open{display:block}
.bom-cat-body{padding:0 0 2px 18px}
.bom-group{margin:2px 0}
.bom-group-header{padding:7px 8px}
.bom-group-header .bom-icon{color:#86868b}
.bom-group-body{padding:0 0 2px 8px}
.bom-card{display:flex;align-items:center;gap:9px;min-width:0;margin:2px 0;padding:8px;border:1px solid transparent;border-radius:10px;background:transparent;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}
.bom-card:hover{border-color:#e5d8e5;background:#fff;box-shadow:0 3px 10px rgba(0,0,0,.035)}
.bom-card.active{border-color:#d7a8d7;background:#fff;box-shadow:0 3px 12px rgba(121,0,120,.09)}
.bom-card-img{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:none;border:1px solid #e5e5ea;border-radius:9px;object-fit:cover;background:#f5f5f7;color:#a1a1a6}
.bom-card-img .bom-icon{width:18px;height:18px}
.bom-card-info{min-width:0;flex:1}
.bom-card-title{overflow:hidden;color:#1d1d1f;font-size:12px;font-weight:700;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}
.bom-card-sub{display:flex;align-items:center;gap:5px;min-width:0;margin-top:4px;color:#86868b;font-size:10px;line-height:1.3;flex-wrap:wrap}
.bom-card-sub .bom-color{max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bom-card-time{margin-top:3px;color:#a1a1a6;font-size:10px}
.bom-status{display:inline-flex;align-items:center;padding:3px 7px;border-radius:99px;font-size:10px;font-weight:600;white-space:nowrap}
.bom-status-draft{background:#f1f1f3;color:#6e6e73}.bom-status-active{background:#e6f7eb;color:#16803d}.bom-status-frozen{background:#eaf1ff;color:#315ca8}.bom-status-disabled{background:#f1f1f3;color:#a1a1a6}
.bom-result-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:180px;padding:20px;color:#a1a1a6;font-size:12px;text-align:center}
.bom-result-empty .bom-icon{width:25px;height:25px;color:#c7a3c7}
.bom-sidebar-main{min-width:0}
.bom-detail-scroll{height:100%;overflow-y:auto;padding:28px 30px 38px;background:#f5f5f7}
.bom-detail-view{max-width:1180px;margin:0 auto}
.bom-detail-breadcrumb{display:flex;align-items:center;gap:7px;margin-bottom:12px;color:#a1a1a6;font-size:11px}
.bom-detail-breadcrumb strong{color:#6e6e73;font-weight:600}
.bom-detail-card{border:1px solid rgba(60,60,67,.12);border-radius:16px;background:#fff;box-shadow:0 4px 16px rgba(0,0,0,.035)}
.bom-summary-card{padding:22px 24px 18px}
.bom-summary-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.bom-summary-identity{display:flex;align-items:center;gap:15px;min-width:0}
.bom-summary-image{display:flex;align-items:center;justify-content:center;width:72px;height:72px;flex:none;border:1px solid #e5e5ea;border-radius:14px;object-fit:cover;background:#f7f7f8;color:#a1a1a6;cursor:pointer}
.bom-summary-image .bom-icon{width:25px;height:25px}
.bom-summary-copy{min-width:0}
.bom-detail-eyebrow{display:block;color:#86868b;font-size:10px;font-weight:700;letter-spacing:.14em}
.bom-summary-copy h3{margin:6px 0 4px;color:#1d1d1f;font-size:24px;letter-spacing:-.035em;line-height:1.18;overflow-wrap:anywhere}
.bom-summary-copy p{color:#6e6e73;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.bom-summary-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;flex:none}
.bom-summary-actions .btn{padding:8px 11px;border-radius:9px;font-size:12px}
.bom-summary-actions .bom-icon{width:14px;height:14px}
.bom-more-wrap{position:relative}
.bom-more-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:20;min-width:145px;padding:5px;border:1px solid #e5e5ea;border-radius:11px;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.13)}
.bom-more-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:8px 9px;border:0;border-radius:7px;background:transparent;color:#424245;cursor:pointer;font:inherit;font-size:12px;text-align:left}
.bom-more-menu button:hover{background:#f5f5f7}
.bom-more-menu button.is-danger{color:#b42318}
.bom-summary-meta{display:flex;align-items:center;gap:8px;padding-top:17px;margin-top:18px;border-top:1px solid #f1f1f3;flex-wrap:wrap}
.bom-meta-chip{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:8px;background:#f8f8fa;color:#6e6e73;font-size:11px}
.bom-meta-chip strong{color:#424245;font-weight:700}
.bom-note{display:flex;gap:8px;margin-top:12px;padding:10px 12px;border-radius:9px;background:#f8f8fa;color:#6e6e73;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.bom-note .bom-icon{margin-top:2px;color:#a05aa0}
.bom-cost-card{display:grid;grid-template-columns:minmax(210px,1.1fr) repeat(4,minmax(0,1fr));gap:1px;margin-top:14px;overflow:hidden;border:1px solid #e3f0e6;border-radius:14px;background:#e3f0e6}
.bom-cost-total,.bom-cost-item{padding:16px 14px;background:#fff}
.bom-cost-total{background:#f1fbf4}
.bom-cost-label{display:block;color:#6e6e73;font-size:11px}
.bom-cost-total strong{display:block;margin-top:7px;color:#16803d;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:24px;letter-spacing:-.05em}
.bom-cost-total small{display:block;margin-top:3px;color:#6e6e73;font-size:10px}
.bom-cost-item strong{display:block;margin-top:7px;color:#1d1d1f;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:16px}
.bom-material-card{margin-top:14px;padding:22px 24px}
.bom-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:13px}
.bom-section-heading h4{margin-top:5px;color:#1d1d1f;font-size:20px;letter-spacing:-.03em}
.bom-section-count{color:#86868b;font-size:11px;white-space:nowrap}
.bom-material-scroll{max-height:calc(100vh - 475px);min-height:210px;overflow:auto;border:1px solid #e5e5ea;border-radius:11px}
.bom-material-scroll::-webkit-scrollbar{width:8px;height:8px}.bom-material-scroll::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:99px;background:#d2d2d7;background-clip:padding-box}
.bom-data-table{width:100%;min-width:820px;border-collapse:separate;border-spacing:0;font-size:12px}
.bom-data-table th{position:sticky;top:0;z-index:2;padding:10px 11px;border-bottom:1px solid #e5e5ea;background:#f8f8fa;color:#86868b;font-size:10px;font-weight:600;text-align:left;white-space:nowrap}
.bom-data-table td{padding:11px;border-bottom:1px solid #f1f1f3;color:#424245;vertical-align:middle}
.bom-detail-row.is-hidden{display:none}
.bom-data-table tr:last-child td{border-bottom:0}
.bom-data-table .bom-material-name{min-width:190px;color:#1d1d1f;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.bom-data-table .bom-material-name small{display:block;margin-top:3px;color:#a1a1a6;font-size:10px;font-weight:400;line-height:1.4}
.bom-data-table .bom-supplier{max-width:135px;color:#6e6e73;overflow-wrap:anywhere}
.bom-data-table .bom-number{color:#1d1d1f;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:700;white-space:nowrap}
.bom-data-table .bom-unit{color:#86868b;white-space:nowrap}
.bom-size-tags{display:flex;gap:3px;max-width:135px;flex-wrap:wrap}
.bom-size-tag{display:inline-flex;padding:3px 6px;border-radius:5px;background:#f7eef7;color:#790078;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;font-weight:600;white-space:nowrap}
.bom-required{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:#e6f7eb;color:#16803d;font-weight:700}
.bom-required.is-optional{background:#f1f1f3;color:#a1a1a6}
.bom-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap}
.bom-row-actions .btn{padding:6px 8px;border-radius:7px;font-size:11px}
.bom-group-row td{padding:0;border-bottom:1px solid #e5e5ea;background:#fafaff}
.bom-group-toggle{display:flex;align-items:center;gap:8px;width:100%;padding:10px 11px;border:0;background:transparent;color:#315ca8;cursor:pointer;font:inherit;font-size:12px;font-weight:700;text-align:left}
.bom-group-toggle .bom-icon{width:13px;height:13px}
.bom-group-toggle .bom-icon:first-child{transition:transform .18s}
.bom-group-toggle.is-open .bom-icon:first-child{transform:rotate(90deg)}
.bom-group-summary{margin-left:auto;color:#86868b;font-size:10px;font-weight:500}
.bom-empty{height:100%;min-height:300px;background:transparent}
.bom-empty-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:18px;background:#f7eef7;color:#a05aa0}
.bom-empty-icon .bom-icon{width:28px;height:28px}
.bom-empty strong{color:#424245;font-size:16px}.bom-empty span:last-child{color:#86868b;font-size:12px}
.bom-loading{padding:28px;color:#a1a1a6;font-size:12px;text-align:center}
.bom-modal-heading{display:flex;align-items:center;gap:11px;margin-bottom:18px}
.bom-modal-heading h3{margin:0 0 4px;font-size:18px}
.bom-modal-heading p{color:#86868b;font-size:12px}
.bom-modal-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:#f7eef7;color:#790078}
.bom-modal-icon .bom-icon{width:20px;height:20px}
.bom-modal-hint{padding:10px 12px;border-radius:9px;background:#f8f8fa;color:#86868b;font-size:11px;line-height:1.5}
.bom-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}

@media(max-width:1050px){
  .bom-sidebar{width:310px;min-width:310px}
  .bom-detail-scroll{padding:22px 20px 30px}
  .bom-cost-card{grid-template-columns:repeat(3,minmax(0,1fr))}
  .bom-cost-total{grid-column:span 3}
}
@media(max-width:768px){
  .bom-page-head{align-items:flex-start;flex-direction:column;gap:14px;padding:0 0 14px}
  .bom-page-heading h2{font-size:24px}
  .bom-page-actions{width:100%}.bom-page-actions .bom-toolbar-btn{width:100%;justify-content:center}
  .bom-stat-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .bom-stat{padding:10px 11px}.bom-stat-copy strong{font-size:19px}
  .bom-layout{height:calc(100vh - 290px);min-height:390px;border-radius:12px}
  .bom-sidebar{width:100%;min-width:100%}
  .bom-layout .sidebar-main{padding:0}
  .bom-detail-scroll{padding:18px 14px 80px}
  .bom-summary-card,.bom-material-card{padding:17px 14px}
  .bom-summary-top{align-items:flex-start;flex-direction:column}
  .bom-summary-actions{justify-content:flex-start;width:100%}
  .bom-summary-copy h3{font-size:20px}
  .bom-cost-card{grid-template-columns:repeat(2,minmax(0,1fr))}.bom-cost-total{grid-column:span 2}
  .bom-material-scroll{max-height:calc(100vh - 520px);min-height:190px}
}

/* ===== PRODUCT AREA — quiet, searchable inventory workspace ===== */
.product-page{min-width:0}
.product-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:2px 4px 18px;margin-bottom:2px}
.product-page-heading{min-width:0}
.product-page-kicker,.product-detail-eyebrow{display:block;color:#86868b;font-size:10px;font-weight:700;letter-spacing:.14em;line-height:1.2;text-transform:uppercase}
.product-page-heading h2{margin:7px 0 4px;color:#1d1d1f;font-size:28px;line-height:1.15;letter-spacing:-.035em}
.product-page-heading p{margin:0;color:#6e6e73;font-size:13px}
.product-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.product-toolbar-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 13px;border-radius:10px;white-space:nowrap}
.product-toolbar-btn.btn-gray{background:#fff;color:#424245;border:1px solid #d2d2d7}
.product-toolbar-btn.btn-gray:hover{background:#f5f5f7;color:#1d1d1f;border-color:#b8b8bd}
.product-toolbar-btn.btn-primary{background:#790078;color:#fff;border:1px solid #790078}
.product-toolbar-btn.btn-primary:hover{background:#620061}
.product-icon{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;flex:0 0 17px;color:currentColor;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.product-icon use{pointer-events:none}
.product-toolbar-btn .product-icon{width:15px;height:15px;flex-basis:15px}
.product-layout{height:calc(100vh - 218px);min-height:420px;border:1px solid rgba(60,60,67,.12);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 28px rgba(0,0,0,.045)}
.product-layout .sidebar{width:300px;min-width:300px;border-right:1px solid #e5e5ea}
.product-sidebar-search{padding:17px 16px 15px;background:#fff;border-bottom:1px solid #e5e5ea}
.product-sidebar-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px;color:#1d1d1f;font-size:13px;font-weight:700}
.product-sidebar-count{overflow:hidden;color:#a1a1a6;font-size:10px;font-weight:500;text-overflow:ellipsis;white-space:nowrap}
.product-search-field{display:flex;align-items:center;gap:7px;height:36px;padding:0 10px;border:1px solid #d2d2d7;border-radius:9px;background:#fbfbfd;transition:border-color .18s,box-shadow .18s,background .18s}
.product-search-field:focus-within{border-color:#9c5aa0;background:#fff;box-shadow:0 0 0 3px rgba(121,0,120,.1)}
.product-search-field>.product-icon{width:16px;height:16px;flex-basis:16px;color:#86868b}
.product-search-field input,.product-search-field input:focus{width:100%;height:34px;padding:0;border:0!important;outline:0;box-shadow:none!important;background:transparent;font-size:12px;color:#1d1d1f}
.product-search-field input::placeholder{color:#a1a1a6}
.product-layout .sidebar-tree{padding:8px 6px 14px;background:#fff}
.product-layout .tree-node{position:relative}
.product-layout .tree-l1,.product-layout .tree-l2,.product-layout .tree-l3{border-left:2px solid transparent;border-radius:8px;transition:background .16s,border-color .16s,color .16s}
.product-layout .tree-l1{padding:10px 10px;gap:7px;color:#1d1d1f;font-size:13px}
.product-layout .tree-l2{padding:8px 10px 8px 30px;gap:6px;color:#424245;font-size:12px}
.product-layout .tree-l3{padding:10px 10px 10px 50px;gap:6px;color:#6e6e73;font-size:12px}
.product-layout .tree-l1:hover,.product-layout .tree-l2:hover,.product-layout .tree-l3:hover{background:#faf7fb}
.product-layout .tree-l1.active,.product-layout .tree-l2.active,.product-layout .tree-l3.active{background:#f8f1f8;border-left-color:#790078;color:#5f005f}
.product-layout .tree-body{align-items:center;gap:5px 8px}
.product-layout .tree-text{display:inline-flex;align-items:center;min-width:0;gap:7px;line-height:1.4;word-break:break-word}
.product-layout .tree-text>.product-icon{width:15px;height:15px;flex-basis:15px;color:#86868b}
.product-layout .tree-l1 .tree-text>.product-icon{color:#790078}
.product-layout .tree-l2 .tree-text>.product-icon{color:#6e6e73}
.product-layout .tree-l3 .tree-text>.product-icon{color:#a05aa0}
.product-tree-name,.product-tree-size{overflow-wrap:anywhere}
.product-tree-size{font-weight:600}
.product-layout .badge{margin-left:auto;padding:2px 6px;border-radius:99px;background:#f5f5f7;color:#86868b;font-size:10px;font-weight:600;white-space:nowrap}
.product-layout .product-tree-qty{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.product-layout .product-tree-qty.is-danger{background:#fff1f0;color:#c9342c}
.product-layout .tree-edit-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-left:0;padding:0;border-radius:7px;color:#a1a1a6}
.product-layout .tree-edit-btn .product-icon{width:14px;height:14px;flex-basis:14px}
.product-layout .tree-edit-btn:hover{background:#f5eaf5;color:#790078}
.product-layout .tree-add-item{display:flex;align-items:center;gap:6px;padding:8px 10px 8px 50px;color:#a1a1a6;font-size:11px}
.product-layout .tree-add-item:hover{color:#790078;background:#faf7fb;border-radius:8px}
.product-layout .tree-add-item .product-icon{width:14px;height:14px;flex-basis:14px}
.product-tree-empty{display:flex;flex-direction:column;align-items:center;gap:7px;padding:48px 18px;color:#6e6e73;text-align:center;font-size:12px}
.product-tree-empty .product-icon{width:25px;height:25px;color:#a1a1a6}
.product-layout .sidebar-main{min-width:0;padding:26px 30px;background:#f5f5f7}
.product-detail-view,.product-overview,.product-search-panel{min-width:0}
.product-breadcrumb{display:flex;align-items:center;gap:8px;margin-bottom:18px;min-width:0;color:#790078;font-size:12px}
.product-breadcrumb span{cursor:pointer}.product-breadcrumb span:hover{text-decoration:underline}.product-breadcrumb i{color:#c2c2c7;font-style:normal}.product-breadcrumb b{overflow:hidden;color:#1d1d1f;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.product-card{min-width:0;border:1px solid rgba(60,60,67,.12);border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(0,0,0,.035)}
.product-summary-card{padding:22px 24px 18px;margin-bottom:16px}
.product-item-summary{padding:26px 28px 22px;margin-bottom:16px}
.product-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;min-width:0}
.product-summary-identity{display:flex;align-items:flex-start;gap:14px;min-width:0}
.product-summary-identity>div:last-child{min-width:0}
.product-summary-identity h3{margin:6px 0 5px;color:#1d1d1f;font-size:21px;line-height:1.25;letter-spacing:-.025em;overflow-wrap:anywhere}
.product-summary-identity p{margin:0;color:#6e6e73;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.product-image-placeholder,.product-detail-image{display:flex;align-items:center;justify-content:center;width:64px;height:64px;flex:0 0 64px;border-radius:12px;background:#f7eef7;color:#a05aa0;overflow:hidden}
.product-image-placeholder .product-icon{width:24px;height:24px}.product-detail-image{width:82px;height:82px;flex-basis:82px;background:#f5f5f7}.product-detail-image img{display:block;width:100%;height:100%;object-fit:cover;cursor:pointer}.product-detail-image small{margin-top:2px;color:#a1a1a6;font-size:10px}
.product-summary-stock{min-width:126px;text-align:right}.product-summary-stock>span{display:block;color:#86868b;font-size:11px}.product-summary-stock>strong{display:block;margin-top:6px;color:#5f005f;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:28px;line-height:1.1;letter-spacing:-.05em}.product-summary-stock>strong.is-danger{color:#dc2626}.product-summary-stock>strong small{margin-left:4px;color:#86868b;font-family:inherit;font-size:12px;font-weight:500;letter-spacing:0}.product-summary-stock>em{display:block;margin-top:7px;color:#86868b;font-size:11px;font-style:normal}
.product-summary-metrics,.product-summary-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:18px;padding-top:15px;border-top:1px solid #f1f1f3}.product-summary-metrics>span{color:#86868b;font-size:12px}.product-summary-metrics>span b{margin-right:3px;color:#424245;font-size:16px}.product-summary-metrics>.product-status-chip{margin-right:auto}
.product-summary-actions{margin-top:18px}.product-detail-card,.product-flow-card{padding:20px 22px;margin-bottom:16px}
.product-item-summary .product-summary-head{align-items:center;gap:28px}
.product-item-summary .product-summary-identity{gap:18px}
.product-item-summary .product-detail-image{width:104px;height:104px;flex-basis:104px;border-radius:16px}
.product-item-summary .product-detail-eyebrow{margin-bottom:6px}
.product-item-summary .product-summary-identity h3{font-size:26px;line-height:1.2}
.product-item-summary .product-summary-identity p{font-size:14px;line-height:1.6}
.product-item-summary .product-summary-stock{min-width:170px;padding-left:24px;border-left:1px solid #f1f1f3}
.product-item-summary .product-summary-stock>span{font-size:12px}
.product-item-summary .product-summary-stock>strong{font-size:34px}
.product-item-summary .product-summary-stock .product-status-wrap{justify-content:flex-end;margin-top:8px}
.product-item-summary .product-summary-actions{margin-top:24px;padding-top:20px;gap:10px}
.product-item-summary .product-summary-actions .btn{min-height:38px;padding:9px 14px}
.product-item-summary .product-summary-actions .product-danger-action{margin-left:auto}
.product-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}.product-section-heading h4{margin:5px 0 0;color:#1d1d1f;font-size:16px;letter-spacing:-.01em}.product-section-count{color:#86868b;font-size:11px;white-space:nowrap}
.product-table-wrap{max-height:calc(100vh - 490px);min-height:160px;overflow:auto;border:1px solid #f1f1f3;border-radius:10px}.product-data-table{table-layout:auto;min-width:780px}.product-data-table th{position:sticky;top:0;z-index:2;padding:10px;color:#86868b;background:#fbfbfd;border-bottom:1px solid #e5e5ea;box-shadow:0 1px 0 #e5e5ea;font-size:11px;font-weight:600;white-space:nowrap}.product-data-table td{padding:12px 10px;color:#424245;border-bottom:1px solid #f1f1f3;font-size:13px;vertical-align:middle}.product-data-table tr:last-child td{border-bottom:0}.product-click-row{cursor:pointer}.product-click-row:hover td{background:#fbfbfd}
.product-primary-cell{color:#1d1d1f!important;font-weight:600}.product-primary-cell>.product-icon{width:15px;height:15px;margin-right:7px;color:#a05aa0;vertical-align:-3px}.product-row-mark{display:inline-flex}.product-item-name{display:inline-flex;flex-direction:column;gap:3px;max-width:300px;line-height:1.35;overflow-wrap:anywhere}.product-item-name small{color:#a1a1a6;font-size:10px;font-weight:400}.product-size-cell{font-weight:600;white-space:nowrap}.product-number-cell{color:#1d1d1f!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:700!important;text-align:right;white-space:nowrap}.product-number-cell.is-danger{color:#dc2626!important}.product-number-cell small{margin-left:4px;color:#86868b;font-family:inherit;font-size:10px;font-weight:500}.product-price-cell{color:#790078!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;white-space:nowrap}.product-note-cell{max-width:210px;color:#86868b!important;overflow-wrap:anywhere}.product-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap}.product-row-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:4px}.product-row-actions .btn .product-icon{width:13px;height:13px;flex-basis:13px}.product-danger-action{color:#9b3d39!important}.product-danger-action:hover{background:#fff1f0!important;border-color:#e7b8b5!important;color:#b52d27!important}
.product-status-wrap{display:inline-flex;align-items:center;gap:4px;flex-wrap:wrap}.product-status-chip{display:inline-flex;align-items:center;padding:4px 8px;border-radius:99px;font-size:11px;font-weight:600;line-height:1;white-space:nowrap}.product-chip-success{background:#e4f8ea;color:#15803d}.product-chip-warning{background:#fff4dc;color:#b45309}.product-chip-danger{background:#fff0ef;color:#c9342c}.product-status-detail{display:block;color:#a1a1a6;font-size:10px;white-space:nowrap}
.product-item-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:34px;row-gap:18px;margin-top:24px;padding-top:22px;border-top:1px solid #f1f1f3}.product-item-meta-grid>div{display:flex;flex-direction:column;gap:6px;min-width:0;padding:0 2px}.product-item-meta-grid span{color:#86868b;font-size:12px}.product-item-meta-grid b{color:#424245;font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.product-flow-list{min-height:42px;overflow:auto;border:1px solid #f1f1f3;border-radius:11px;background:#fff}.product-flow-table{width:100%;min-width:520px}.product-flow-table th{padding:12px 14px;color:#86868b;background:#fbfbfd;border-bottom:1px solid #e5e5ea;font-size:12px;text-align:left}.product-flow-table td{padding:13px 14px;border-bottom:1px solid #f1f1f3;color:#424245;font-size:13px;vertical-align:middle}.product-flow-table tr:last-child td{border-bottom:0}.product-flow-direction{display:inline-flex;padding:5px 9px;border-radius:99px;font-size:11px;font-weight:600}.product-flow-direction.is-in{background:#e4f8ea;color:#15803d}.product-flow-direction.is-out{background:#fff0ef;color:#c9342c}.product-flow-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:82px;padding:22px;color:#86868b;background:#fbfbfd;font-size:13px;text-align:center}.product-flow-empty::before{content:'↕';display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9px;background:#f7eef7;color:#790078;font-size:18px;font-weight:700}
.product-overview{display:flex;flex-direction:column;gap:16px}.product-overview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:6px 4px 2px}.product-overview-head h3{margin:7px 0 5px;color:#1d1d1f;font-size:24px;letter-spacing:-.03em}.product-overview-head p{color:#6e6e73;font-size:13px}.product-overview-mark{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:15px;background:#f7eef7;color:#790078}.product-overview-mark .product-icon{width:25px;height:25px}.product-overview-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.product-overview-kpi{display:flex;flex-direction:column;gap:5px;min-height:116px;padding:16px 17px;border:1px solid rgba(60,60,67,.12);border-radius:13px;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.03)}.product-overview-kpi>span{color:#6e6e73;font-size:12px}.product-overview-kpi>strong{color:#1d1d1f;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:27px;line-height:1.1;letter-spacing:-.05em}.product-overview-kpi>small{margin-top:auto;color:#a1a1a6;font-size:11px}.product-overview-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:16px}.product-overview-panel{min-width:0;padding:20px 22px}.product-alert-list{display:flex;flex-direction:column}.product-alert-row{display:flex;align-items:center;gap:9px;min-width:0;padding:11px 0;border-bottom:1px solid #f1f1f3;cursor:pointer}.product-alert-row:last-child{border-bottom:0}.product-alert-row:hover{margin:0 -8px;padding-right:8px;padding-left:8px;border-radius:8px;background:#fbfbfd}.product-alert-dot{width:7px;height:7px;flex:none;border-radius:50%;background:#f5a623}.product-alert-dot.is-danger{background:#ff3b30}.product-alert-copy{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}.product-alert-copy b{overflow:hidden;color:#424245;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.product-alert-copy small{overflow:hidden;color:#a1a1a6;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.product-alert-row>strong{color:#424245;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;white-space:nowrap}.product-overview-more,.product-overview-empty{padding-top:10px;color:#86868b;font-size:11px;text-align:center}.product-overview-empty{display:flex;align-items:center;justify-content:center;gap:7px;min-height:80px;padding-top:0}.product-type-list{display:grid;gap:10px}.product-type-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border-radius:10px;background:#f8f8fa}.product-type-row>span:first-child{display:flex;align-items:center;gap:8px;color:#6e6e73;font-size:12px}.product-type-row>span:first-child .product-icon{width:16px;height:16px;color:#a05aa0}.product-type-row>span:last-child{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.product-type-row strong{color:#1d1d1f;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px}.product-type-row small{color:#a1a1a6;font-size:10px}
.product-search-panel{padding-top:2px}.product-search-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:6px 4px 16px}.product-search-heading h3{margin:7px 0 5px;color:#1d1d1f;font-size:24px;letter-spacing:-.03em}.product-search-heading p{color:#6e6e73;font-size:12px}.product-search-count{padding:5px 9px;border-radius:99px;background:#f7eef7;color:#790078;font-size:11px;font-weight:700;white-space:nowrap}.product-search-table-wrap{max-height:calc(100vh - 365px)}.product-search-empty{min-height:240px}
@media(max-width:768px){
  .product-page-head{align-items:flex-start;flex-direction:column;gap:14px;padding:0 0 14px}.product-page-heading h2{font-size:24px}.product-page-actions{width:100%;justify-content:flex-start}.product-page-actions .product-toolbar-btn{flex:1 1 auto}.product-layout{height:calc(100vh - 246px);min-height:360px;border-radius:12px}.product-layout .sidebar{width:100%;min-width:100%}.product-layout .sidebar-main{padding:20px 14px}.product-summary-card{padding:18px 16px 15px}.product-summary-head{gap:12px}.product-summary-identity{gap:10px}.product-summary-identity h3{font-size:17px}.product-summary-stock{min-width:100px}.product-summary-stock>strong{font-size:22px}.product-summary-metrics>.product-status-chip{margin-right:0}.product-detail-card,.product-flow-card,.product-overview-panel{padding:16px 12px}.product-table-wrap{max-height:calc(100vh - 500px)}.product-item-summary{padding:20px 18px 18px}.product-item-summary .product-summary-head{align-items:flex-start;flex-direction:column;gap:18px}.product-item-summary .product-detail-image{width:88px;height:88px;flex-basis:88px}.product-item-summary .product-summary-identity h3{font-size:21px}.product-item-summary .product-summary-stock{width:100%;min-width:0;padding:16px 0 0;border-top:1px solid #f1f1f3;border-left:0;text-align:left}.product-item-summary .product-summary-stock .product-status-wrap{justify-content:flex-start}.product-item-summary .product-summary-actions .product-danger-action{margin-left:0}.product-item-meta-grid{grid-template-columns:1fr;gap:14px;margin-top:20px;padding-top:18px}.product-overview-head h3,.product-search-heading h3{font-size:21px}.product-overview-kpis{grid-template-columns:1fr 1fr;gap:8px}.product-overview-kpi{min-height:102px;padding:13px 12px}.product-overview-kpi>strong{font-size:22px}.product-overview-grid{grid-template-columns:1fr;gap:12px}.product-search-heading{align-items:flex-start}
}

/* ===== TABLET (769-1024px) ===== */
@media(min-width:769px) and (max-width:1024px){
  .sidebar{width:220px;min-width:220px}
  #kpiCards{grid-template-columns:1fr 1fr 1fr!important}
}

/* ===== LIGHTBOX ===== */
/* ===== INVENTORY ASSET ===== */
.finance-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:4px 4px 18px}
.finance-page-kicker,.finance-section-kicker{display:block;color:#86868b;font-size:10px;font-weight:700;letter-spacing:.16em;line-height:1.2}
.finance-page-head h2{margin:7px 0 5px;color:#1d1d1f;font-size:28px;letter-spacing:-.035em}
.finance-page-head p{color:#6e6e73;font-size:13px}
.finance-page-actions{display:flex;align-items:center;gap:8px;flex:none}
.finance-export-btn{display:inline-flex;align-items:center;gap:7px}
.finance-action-icon{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.inv-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;min-height:126px;background:linear-gradient(135deg,#211d2a,#5f0b5c 62%,#790078);border-radius:18px;padding:25px 28px;margin-bottom:14px;color:#fff}
.inv-hero-label{font-size:12px;opacity:.76;margin-bottom:7px;letter-spacing:.02em}
.inv-hero-value{font-size:38px;font-weight:800;line-height:1;letter-spacing:-.045em;font-variant-numeric:tabular-nums}
.inv-hero-side{display:flex;align-items:center;gap:7px;padding-bottom:2px;color:rgba(255,255,255,.72);font-size:11px;white-space:nowrap}
.finance-live-dot{width:7px;height:7px;border-radius:50%;background:#b8f5c8;box-shadow:0 0 0 4px rgba(184,245,200,.12)}
.inv-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}
.inv-card{min-width:0;background:#fff;border:1px solid rgba(60,60,67,.12);border-radius:14px;padding:17px 17px 15px;box-shadow:0 4px 14px rgba(0,0,0,.03);text-align:left}
.inv-card-top{display:flex;align-items:center;gap:8px;min-width:0;margin-bottom:15px}
.inv-card-icon{display:flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;border-radius:9px;background:#f7eef7;color:#790078}
.inv-card-icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.inv-card-accessory .inv-card-icon{background:#edf8f0;color:#16803d}
.inv-card-product .inv-card-icon{background:#edf3ff;color:#2563eb}
.inv-card-label{min-width:0;color:#6e6e73;font-size:12px;font-weight:600}
.inv-card-share{margin-left:auto;color:#a1a1a6;font-size:11px;font-variant-numeric:tabular-nums}
.inv-card-value{font-size:22px;font-weight:800;line-height:1.1;margin-bottom:12px;font-variant-numeric:tabular-nums}
.inv-card-bar{height:5px;border-radius:99px;background:#f1f1f3;overflow:hidden;margin-bottom:8px}
.inv-card-bar-fill{height:100%;border-radius:99px;transition:width .6s ease}
.inv-card-pct{color:#a1a1a6;font-size:11px}
.finance-detail-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 4px 10px}
.finance-detail-heading>div{display:flex;flex-direction:column;gap:5px}
.finance-detail-heading strong{color:#1d1d1f;font-size:17px;letter-spacing:-.02em}
.finance-detail-heading>span{color:#a1a1a6;font-size:11px}
.inv-section{background:#fff;border-radius:14px;margin-bottom:16px;box-shadow:0 1px 4px rgba(0,0,0,.06);overflow:hidden}
.inv-section-head{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;cursor:pointer;transition:background .15s;gap:10px}
.inv-section-head:hover{background:#fafafa}
.inv-section-head .arrow{font-size:14px;transition:transform .2s;color:#9ca3af;flex:none}
.inv-section-head .arrow.open{transform:rotate(90deg)}
.inv-section-title{font-size:15px;font-weight:700;color:#1f2937;display:flex;align-items:center;gap:8px}
.inv-section-total{font-size:15px;font-weight:700;color:#790078}
.inv-section-body{display:none;border-top:1px solid #f1f5f9}
.inv-section-body.open{display:block}
.inv-tbl{width:100%;border-collapse:collapse}
.inv-tbl th{padding:10px 14px;text-align:left;font-size:12px;color:#64748b;border-bottom:1px solid #f1f5f9;font-weight:600;background:#fafafa;white-space:nowrap}
.inv-tbl td{padding:10px 14px;font-size:14px;border-bottom:1px solid #f8fafc}
.inv-tbl tr:last-child td{border-bottom:none}
.inv-tbl .num{text-align:right;font-family:monospace;font-weight:600}
.inv-tbl .sub{background:#f8fafc;font-weight:700}
.inv-tbl .supplier-row td{background:#fafafa;font-weight:700;font-size:13px;color:#374151;border-bottom:1px solid #e5e7eb;padding:8px 14px}
.inv-group{border-bottom:1px solid #f1f5f9}
.inv-group:last-child{border-bottom:none}
.inv-group-head{display:flex;align-items:center;padding:10px 18px;cursor:pointer;transition:background .15s;gap:8px;font-size:13px;color:#374151}
.inv-group-head:hover{background:#f8fafc}
.inv-group-head .arrow{font-size:12px;transition:transform .2s;color:#9ca3af;flex:none}
.inv-group-head .arrow.open{transform:rotate(90deg)}
.inv-group-summary{margin-left:auto;font-size:12px;color:#6b7280;font-weight:500}
.inv-group-body{display:none;padding:0}
.inv-group-body.open{display:block}
.lightbox{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.85);display:none;justify-content:center;align-items:center;z-index:9999;cursor:pointer}.lightbox img{max-width:90%;max-height:90%;object-fit:contain;border-radius:8px;box-shadow:0 0 40px rgba(0,0,0,0.5)}.lightbox-close{position:absolute;top:20px;right:30px;color:#fff;font-size:36px;cursor:pointer;z-index:10000}

/* ===== PROCUREMENT MODAL LAYOUT ===== */
.procurement-modal{box-sizing:border-box;width:calc(100% - 12px)!important;max-width:1120px!important;max-height:90vh!important;padding:24px!important}
@media(max-width:768px){.procurement-modal{width:95%!important;max-width:none!important;max-height:90vh!important;padding:20px 16px!important}}

/* ===== PRINT STYLES ===== */
@media print {
  .topbar, .tabbar, .sidebar, .sidebar-actions, .sidebar-search,
  .btn, .modal-overlay, .toast, .breadcrumb, .auth-bg,
  .lightbox, #modalRoot { display: none !important; }
  body { background: white; font-size: 12px; }
  .content { padding: 0; max-width: 100%; }
  .card { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
  table { page-break-inside: avoid; }
  th, td { padding: 6px 8px; font-size: 11px; }
  .sidebar-layout { display: block; height: auto; }
  .sidebar-main { padding: 0; overflow: visible; }
  .no-print { display: none !important; }
  .print-only { display: block !important; }
  .print-header { display: block !important; text-align: center; margin-bottom: 20px; }
  .print-header h1 { font-size: 18px; margin: 0; }
  .print-header p { font-size: 12px; color: #666; margin: 4px 0 0; }
}

/* ===== COMPACT PASSWORD RESET ===== */
@media screen {
  .auth-reset-card{max-width:520px;padding:24px 30px 18px;max-height:calc(100vh - 28px);overflow-y:auto;scrollbar-width:thin}
  .auth-reset-head{margin-bottom:14px!important}
  .auth-reset-key{font-size:34px!important;line-height:1;margin-bottom:6px!important}
  .auth-reset-head h1{font-size:25px!important;line-height:1.2}
  .auth-reset-head p{font-size:13px}
  .auth-reset-card .form-row{margin-bottom:10px}
  .auth-reset-card .form-label{margin-bottom:4px}
  .auth-reset-card input{height:42px;box-sizing:border-box;padding:8px 11px;font-size:15px}
  .auth-reset-card .btn{height:42px!important}
  .auth-reset-hint{padding:8px 11px!important;margin:-2px 0 9px!important;font-size:12px!important;line-height:1.45!important}
  .auth-reset-password-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .auth-reset-password-grid .form-row{min-width:0}
  .auth-reset-actions{margin-top:0}
  .auth-reset-actions .auth-btn{margin-top:2px;padding:11px;font-size:15px}
  .auth-reset-links{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:9px!important;line-height:1.4}
  .auth-reset-link-separator{color:#d1d5db}
}

@media screen and (max-height:760px) and (min-width:561px) {
  .auth-reset-card{padding-top:16px;padding-bottom:12px}
  .auth-reset-head{margin-bottom:9px!important}
  .auth-reset-key{font-size:28px!important;margin-bottom:4px!important}
  .auth-reset-head h1{font-size:22px!important}
  .auth-reset-card .form-row{margin-bottom:7px}
  .auth-reset-card input{height:38px;padding:6px 10px}
  .auth-reset-card .btn{height:38px!important}
  .auth-reset-hint{margin-bottom:7px!important}
  .auth-reset-actions .auth-btn{padding:9px}
  .auth-reset-links{margin-top:6px!important}
}

@media screen and (max-width:560px) {
  .auth-reset-card{width:calc(100% - 8px);padding:20px 18px 15px;max-height:calc(100vh - 16px)}
  .auth-reset-password-grid{grid-template-columns:1fr;gap:0}
}

/* ===== COMPACT USER REGISTRATION ===== */
@media screen {
  .auth-register-card{max-width:760px;padding:26px 30px 18px;max-height:calc(100vh - 28px);overflow-y:auto;scrollbar-width:thin}
  .auth-register-layout{display:grid;grid-template-columns:minmax(0,1fr) 148px;gap:26px;align-items:start}
  .auth-register-head{margin-bottom:13px!important}
  .auth-register-logo{margin-bottom:8px;line-height:0}
  .auth-register-logo img{width:230px!important}
  .auth-register-head h1{font-size:24px!important;line-height:1.2}
  .auth-register-head p{font-size:13px}
  .auth-register-guide{display:flex;align-items:center;gap:6px;margin-bottom:11px;padding:7px 9px;border-radius:8px;background:#faf7fb;color:#86868b;font-size:11px;line-height:1.3}
  .auth-register-guide span{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:50%;background:#790078;color:#fff;font-size:10px;font-weight:700}
  .auth-register-guide i{font-style:normal;color:#c4a5c4;font-size:15px;line-height:1}
  .auth-register-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
  .auth-register-fields .form-row{min-width:0;margin-bottom:9px}
  .auth-register-company,.auth-register-email,.auth-register-email-code{grid-column:1/-1}
  .auth-register-fields .form-label{margin-bottom:4px}
  .auth-register-fields input{height:40px;box-sizing:border-box;padding:7px 10px;font-size:14px}
  .auth-register-email-code .btn{height:40px!important}
  .auth-register-actions{display:flex;gap:10px;margin-top:1px}
  .auth-register-actions .auth-btn{margin-top:2px;padding:10px 12px;font-size:15px}
  .auth-register-help{padding:16px 10px;border:1px solid #ead8ea;border-radius:12px;background:#fbf7fb;text-align:center}
  .auth-register-help-title{margin-bottom:10px;color:#424245;font-size:13px;font-weight:700}
  .auth-register-help img{display:block;width:104px;height:132px;margin:0 auto;border-radius:9px;object-fit:contain;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.08)}
  .auth-register-help-copy{margin-top:9px;color:#6e6e73;font-size:11px;line-height:1.45}
  .auth-register-help-note{margin-top:4px;color:#a1a1a6;font-size:10px}
  .auth-register-footer{margin-top:12px;padding-top:11px;border-top:1px solid #f1f5f9;text-align:center;font-size:13px;color:#9ca3af}
}

@media screen and (max-height:760px) and (min-width:561px) {
  .auth-register-card{padding-top:16px;padding-bottom:12px}
  .auth-register-logo{margin-bottom:5px}
  .auth-register-logo img{width:205px!important}
  .auth-register-head{margin-bottom:8px!important}
  .auth-register-head h1{font-size:22px!important}
  .auth-register-guide{margin-bottom:7px;padding:5px 8px}
  .auth-register-fields .form-row{margin-bottom:6px}
  .auth-register-fields input,.auth-register-email-code .btn{height:36px!important;padding:5px 9px}
  .auth-register-actions .auth-btn{padding:8px 10px}
  .auth-register-help{padding:10px 8px}
  .auth-register-help img{width:82px;height:104px}
  .auth-register-help-copy{margin-top:6px}
  .auth-register-footer{margin-top:7px;padding-top:7px}
}

@media screen and (max-width:560px) {
  .auth-register-card{width:calc(100% - 8px);padding:20px 18px 15px;max-height:calc(100vh - 16px)}
  .auth-register-layout{display:block}
  .auth-register-logo img{width:215px!important}
  .auth-register-head{margin-bottom:10px!important}
  .auth-register-guide{margin-bottom:9px;font-size:10px}
  .auth-register-help{display:grid;grid-template-columns:64px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;margin-top:4px;padding:8px 10px;text-align:left}
  .auth-register-help-title{grid-column:2;grid-row:1;margin:0}
  .auth-register-help img{grid-column:1;grid-row:1 / span 2;width:64px;height:82px;margin:0}
  .auth-register-help-copy{grid-column:2;grid-row:2;margin:2px 0 0}
  .auth-register-help-note{display:none}
  .auth-register-footer{margin-top:10px;padding-top:9px}
}
.print-only { display: none; }

@media(max-width:768px){
  .flow-filter-bar{grid-template-columns:1fr;gap:8px}
  .flow-search-wrap{width:100%}.flow-search-wrap .btn{min-height:44px}
  .flow-summary{grid-template-columns:1fr 1fr;gap:7px}.flow-summary-card{padding:9px 10px;font-size:12px}.flow-summary-card b{font-size:18px}
  .flow-table-wrap{max-height:calc(100vh - 420px);min-height:240px}.flow-table{display:table!important;width:100%;min-width:1180px}.flow-table thead{display:table-header-group!important}.flow-table tbody{display:table-row-group!important}.flow-table tr{display:table-row!important}.flow-pagination{flex-direction:column;align-items:stretch}.flow-pager-buttons{justify-content:space-between}
  .stocktake-modal{width:96%!important;max-height:92vh!important;padding:14px!important}
  .stocktake-title-row{gap:8px}
  .stocktake-title-row h3{font-size:18px}
  .stocktake-title-row .btn{flex-shrink:0;min-height:38px;padding:8px 10px}
  .stocktake-summary{grid-template-columns:1fr 1fr;gap:7px}
  .stocktake-stat{padding:8px 10px;font-size:12px}
  .stocktake-stat b{font-size:18px}
  .stocktake-filter-row{grid-template-columns:1fr;gap:8px}
  .stocktake-table-wrap{max-height:calc(92vh - 420px);min-height:200px}
  .stocktake-footer{flex-direction:column;align-items:stretch;gap:10px}
  .stocktake-pager,.stocktake-actions{justify-content:space-between}
  .stocktake-actions .btn{flex:1;justify-content:center}
  .production-layout{display:block!important;height:auto!important;min-height:0}
  .production-layout .sidebar{width:100%;min-width:0;height:auto;max-height:none;border-radius:14px}
  .production-layout .sidebar-tree{max-height:42vh}
  .production-layout .sidebar-main{padding:12px 0 80px!important;overflow:visible}
  .production-detail-hero{margin:0;padding:17px 16px;border-radius:14px}
  .production-detail-hero .detail-header{align-items:flex-start}
  .production-detail-header{display:block!important}
  .production-detail-gallery-wrap{width:100%;margin-bottom:16px}
  .production-color-gallery{display:block}
  .production-color-gallery-stage{width:100%;padding:10px}
  .production-color-gallery-media{height:180px}
  .production-color-gallery-rail{padding-top:11px}
  .production-color-gallery-options{display:flex;max-height:none;flex-direction:row;overflow-x:auto;overflow-y:hidden;padding-bottom:3px}
  .production-color-option{width:132px;flex:0 0 132px}
  .production-detail-image{width:76px;height:76px;flex-basis:76px;border-radius:11px}
  .production-detail-copy{min-width:0}
  .production-detail-copy h2{font-size:18px}
  .production-detail-meta{font-size:11px;line-height:1.7}
  .production-detail-actions{width:100%;margin-left:0;justify-content:flex-start}
  .production-order-modal{width:94%;padding:20px!important}
  .production-modal-heading{gap:8px}
  .production-modal-note{max-width:125px}
  .production-preview-empty{justify-content:flex-start}
  .production-preview-empty kbd{display:none}
  .production-preview-filled{align-items:flex-start;flex-wrap:wrap}
  .production-preview-filled-copy{padding-top:5px}
  .production-preview-filled-actions{width:100%;margin-left:100px}
  .production-schedule-view{min-height:0;padding:17px 12px 70px}
  .production-plan-head{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:16px}
  .production-plan-head h2{font-size:25px}
  .production-plan-actions{width:100%}
  .production-plan-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .production-plan-stat{padding:12px 13px;border-radius:12px}
  .production-plan-stat strong{font-size:23px}
  .production-plan-toolbar{align-items:stretch;flex-direction:column}
  .production-plan-search{min-width:0}
  .production-plan-toolbar select{width:100%}
  .production-plan-table-card{border-radius:14px}
  .production-plan-table-top{padding:15px 16px 12px}
  .production-schedule-form-grid{display:block}
  .production-schedule-modal{width:94%;padding:20px!important}
}

/* ===== DASHBOARD RESPONSIVE OVERRIDES ===== */
.dashboard-product-row.is-danger .dashboard-alert-dot{background:#ff3b30}
@media(max-width:1024px){
  .dashboard-metric-grid{grid-template-columns:1.45fr repeat(3,minmax(140px,1fr))}
  .dashboard-metric-card{padding:18px 16px}.dashboard-asset-breakdown{gap:8px}
}
@media(max-width:768px){
  .dashboard-page{gap:16px;padding-bottom:10px}
  .dashboard-hero{align-items:flex-start;flex-direction:column;gap:16px;padding:2px 0 0}
  .dashboard-hero h1{font-size:25px}.dashboard-hero p{font-size:13px}
  .dashboard-hero-side{width:100%;align-items:center;justify-content:space-between;gap:10px}.dashboard-date{text-align:left}.dashboard-actions{margin-left:auto}.dashboard-actions .btn{padding:8px 10px;font-size:12px}
  .dashboard-metric-grid{grid-template-columns:1fr 1fr!important;gap:10px}
  .dashboard-metric-card{min-height:132px;padding:16px 14px;border-radius:14px}.dashboard-metric-asset{grid-column:1/-1;min-height:145px}
  .dashboard-metric-value{font-size:28px}.dashboard-metric-caption{font-size:11px}.dashboard-metric-head{font-size:12px}.dashboard-metric-overline{display:none}.dashboard-asset-breakdown{font-size:10px;gap:8px}
  .dashboard-content-grid,.dashboard-bottom-grid{grid-template-columns:1fr;gap:12px}.dashboard-panel{padding:18px 16px;border-radius:14px}.dashboard-section-head{margin-bottom:16px}.dashboard-section-head h2{font-size:17px}
  .dashboard-alert-list,.dashboard-activity-list,.dashboard-product-alerts{min-height:120px}.dashboard-archive-button{opacity:1}.dashboard-alert-message{max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* ===== DASHBOARD PROCUREMENT WATCH ===== */
.dashboard-procurement-alerts{min-height:150px}.dashboard-procurement-row{display:flex;align-items:center;gap:10px;min-width:0;padding:11px 0;border-bottom:1px solid #f5f5f7;cursor:pointer;transition:background .15s}.dashboard-procurement-row:last-child{border-bottom:none}.dashboard-procurement-row:hover{background:#fbfbfc;margin:0 -8px;padding-left:8px;padding-right:8px;border-radius:8px}.dashboard-procurement-symbol{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#f6eef9;color:#6f2c91;flex:none}.dashboard-procurement-symbol .dashboard-symbol,.dashboard-procurement-symbol .dashboard-symbol svg{width:16px;height:16px}.dashboard-procurement-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.dashboard-procurement-copy b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#424245;font-weight:600}.dashboard-procurement-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#a1a1a6}.dashboard-procurement-side{display:flex;align-items:flex-end;flex-direction:column;gap:4px;flex:none}.dashboard-procurement-side strong{font-size:11px;color:#dc2626;white-space:nowrap}.dashboard-procurement-row:not(.is-danger) .dashboard-procurement-side strong{color:#b45309}
.dashboard-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:11px;padding-top:10px;border-top:1px solid #f1f1f3}.dashboard-pagination button{min-width:52px;padding:5px 8px;border:1px solid #e5e5ea;border-radius:7px;background:#fff;color:#6f2c91;font-size:11px;cursor:pointer}.dashboard-pagination button:hover:not(:disabled){background:#f6eef9;border-color:#c7a6dc}.dashboard-pagination button:disabled{color:#c7c7cc;background:#fafafa;cursor:not-allowed}.dashboard-pagination span{flex:1;color:#a1a1a6;font-size:11px;text-align:center;white-space:nowrap}
@media(max-width:768px){.dashboard-procurement-alerts{min-height:120px}}

/* ===== FABRIC AREA — focused inventory workspace ===== */
.fabric-page{min-width:0}
.fabric-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:2px 4px 18px;margin-bottom:2px}
.fabric-page-heading{min-width:0}
.fabric-page-kicker,.fabric-section-eyebrow{display:block;color:#86868b;font-size:10px;font-weight:700;letter-spacing:.14em;line-height:1.2;text-transform:uppercase}
.fabric-page-heading h2{margin:7px 0 4px;color:#1d1d1f;font-size:28px;line-height:1.15;letter-spacing:-.035em}
.fabric-page-heading p{margin:0;color:#6e6e73;font-size:13px}
.fabric-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.fabric-toolbar-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 13px;border-radius:10px;white-space:nowrap}
.fabric-toolbar-btn.btn-gray{background:#fff;color:#424245;border:1px solid #d2d2d7}
.fabric-toolbar-btn.btn-gray:hover{background:#f5f5f7;color:#1d1d1f;border-color:#b8b8bd}
.fabric-toolbar-btn.btn-primary{background:#790078;color:#fff;border:1px solid #790078}
.fabric-toolbar-btn.btn-primary:hover{background:#620061}
.fabric-icon{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;flex:0 0 17px;color:currentColor;vertical-align:middle}
.fabric-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fabric-button-icon{width:15px;height:15px;flex-basis:15px}
.fabric-layout{height:calc(100vh - 218px);min-height:420px;border:1px solid rgba(60,60,67,.12);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 28px rgba(0,0,0,.045)}
.fabric-layout .sidebar{width:300px;min-width:300px;border-right:1px solid #e5e5ea}
.fabric-sidebar-search{padding:17px 16px 15px;background:#fff;border-bottom:1px solid #e5e5ea}
.fabric-sidebar-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px;color:#1d1d1f;font-size:13px;font-weight:700}
.fabric-sidebar-count{overflow:hidden;color:#a1a1a6;font-size:10px;font-weight:500;letter-spacing:0;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.fabric-search-field{display:flex;align-items:center;gap:7px;height:36px;padding:0 10px;border:1px solid #d2d2d7;border-radius:9px;background:#fbfbfd;transition:border-color .18s,box-shadow .18s,background .18s}
.fabric-search-field:focus-within{border-color:#9c5aa0;background:#fff;box-shadow:0 0 0 3px rgba(121,0,120,.1)}
.fabric-search-field>.fabric-icon{width:16px;height:16px;flex-basis:16px;color:#86868b}
.fabric-search-field input,.fabric-search-field input:focus{width:100%;height:34px;padding:0;border:0!important;outline:0;box-shadow:none!important;background:transparent;font-size:12px;color:#1d1d1f}
.fabric-search-field input::placeholder{color:#a1a1a6}
.fabric-layout .sidebar-tree{padding:8px 6px 14px;background:#fff}
.fabric-layout .tree-node{position:relative}
.fabric-layout .tree-l1,.fabric-layout .tree-l2,.fabric-layout .tree-l3,.fabric-layout .tree-l4{border-left:2px solid transparent;border-radius:8px;transition:background .16s,border-color .16s,color .16s}
.fabric-layout .tree-l1{padding:10px 10px;gap:7px;color:#1d1d1f;font-size:13px}
.fabric-layout .tree-l2{padding:8px 10px 8px 30px;gap:6px;color:#424245;font-size:12px}
.fabric-layout .tree-l3{padding:7px 10px 7px 50px;gap:6px;color:#6e6e73;font-size:12px}
.fabric-layout .tree-l4{padding:7px 10px 7px 70px;gap:6px;color:#6e6e73;font-size:12px}
.fabric-layout .tree-l1:hover,.fabric-layout .tree-l2:hover,.fabric-layout .tree-l3:hover,.fabric-layout .tree-l4:hover{background:#faf7fb}
.fabric-layout .tree-l1.active,.fabric-layout .tree-l2.active,.fabric-layout .tree-l3.active,.fabric-layout .tree-l4.active{background:#f8f1f8;border-left-color:#790078;color:#5f005f}
.fabric-layout .tree-l1 .arrow,.fabric-layout .tree-l2 .arrow,.fabric-layout .tree-l3 .arrow{font-size:10px;color:#a1a1a6}
.fabric-layout .tree-body{align-items:center;gap:5px 8px}
.fabric-layout .tree-text{display:inline-flex;align-items:center;min-width:0;gap:7px;line-height:1.4;word-break:break-word}
.fabric-layout .tree-text .fabric-icon{width:15px;height:15px;flex-basis:15px;color:#86868b}
.fabric-layout .tree-l1 .tree-text .fabric-icon{color:#790078}
.fabric-layout .tree-l2 .tree-text .fabric-icon{color:#6e6e73}
.fabric-layout .tree-l3 .tree-text .fabric-icon{color:#a05aa0}
.fabric-layout .tree-l4 .tree-text .fabric-icon{width:13px;height:13px;flex-basis:13px;color:#a1a1a6}
.fabric-layout .badge{margin-left:auto;padding:2px 6px;border-radius:99px;background:#f5f5f7;color:#86868b;font-size:10px;font-weight:600;white-space:nowrap}
.fabric-layout .tree-actions{display:flex;align-items:center;gap:2px;margin-left:auto;flex:0 0 auto}
.fabric-layout .tree-edit-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-left:0;padding:0;border-radius:7px;color:#a1a1a6}
.fabric-layout .tree-edit-btn .fabric-icon{width:14px;height:14px;flex-basis:14px}
.fabric-layout .tree-edit-btn:hover{background:#f5eaf5;color:#790078}
.fabric-layout .tree-danger-btn:hover{background:#fff1f0;color:#c9342c}
.fabric-layout .tree-add-item{padding-top:6px;padding-bottom:8px;color:#a1a1a6;font-size:11px}
.fabric-layout .tree-add-item>span{display:inline-flex;align-items:center;gap:6px}
.fabric-layout .tree-add-item .fabric-icon{width:14px;height:14px;flex-basis:14px}
.fabric-layout .tree-search-hl{background:#fbf5fb!important;border-left-color:#c28ac2!important;animation:none}
.fabric-tree-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:48px 18px;color:#6e6e73;text-align:center;font-size:12px}
.fabric-tree-empty small{color:#a1a1a6;font-size:11px}
.fabric-layout .sidebar-main{padding:26px 30px;background:#f5f5f7}
.fabric-layout .sidebar-main .card{box-shadow:0 5px 18px rgba(0,0,0,.035)}
.fabric-breadcrumb{margin-bottom:18px;font-size:12px}
.fabric-breadcrumb span{color:#790078}
.fabric-breadcrumb .current{overflow:hidden;color:#1d1d1f;text-overflow:ellipsis;white-space:nowrap}
.fabric-summary-card{padding:22px 24px 18px;border-radius:16px}
.fabric-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;min-width:0}
.fabric-summary-title{display:flex;align-items:flex-start;gap:12px;min-width:0}
.fabric-title-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#f7eef7;color:#790078}
.fabric-title-icon .fabric-icon{width:20px;height:20px;flex-basis:20px}
.fabric-detail-title{margin:0 0 5px;color:#1d1d1f;font-size:20px;font-weight:700;line-height:1.25;letter-spacing:-.02em;overflow-wrap:anywhere}
.fabric-detail-subtitle{display:block;overflow:hidden;color:#6e6e73;font-size:12px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}
.fabric-spec-note{display:block;margin-top:5px;color:#a1a1a6;font-size:11px}
.fabric-summary-number{min-width:132px;text-align:right}
.fabric-summary-number strong{display:block;color:#5f005f;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:26px;line-height:1.1;letter-spacing:-.04em}
.fabric-summary-number>span{display:block;margin-top:3px;color:#6e6e73;font-size:11px}
.fabric-summary-number small{display:block;margin-top:7px;color:#86868b;font-size:11px}
.fabric-summary-number em{display:block;margin-top:8px;font-style:normal}
.fabric-summary-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:18px;padding-top:15px;border-top:1px solid #f1f1f3}
.fabric-action-divider{width:1px;height:20px;margin:0 2px;background:#e5e5ea}
.fabric-detail-card{padding:20px 22px}
.fabric-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}
.fabric-section-heading h4{margin:5px 0 0;color:#1d1d1f;font-size:16px;font-weight:700;letter-spacing:-.01em}
.fabric-section-count{color:#86868b;font-size:11px;white-space:nowrap}
.fabric-data-table{table-layout:auto}
.fabric-data-table th{padding:10px 10px;color:#86868b;background:#fbfbfd;border-bottom:1px solid #e5e5ea;font-size:11px;font-weight:600}
.fabric-data-table td{padding:13px 10px;color:#424245;border-bottom:1px solid #f1f1f3;font-size:13px;vertical-align:middle}
.fabric-data-table tr:last-child td{border-bottom:0}
.fabric-data-table tr:hover td{background:#fbfbfd}
.fabric-click-row{cursor:pointer}
.fabric-primary-cell{color:#1d1d1f!important;font-weight:600}
.fabric-open-cell{display:table-cell;cursor:pointer}
.fabric-open-cell>.fabric-icon{width:15px;height:15px;margin-right:7px;color:#a05aa0;vertical-align:-3px}
.fabric-number-cell{font-weight:700!important;color:#1d1d1f!important;text-align:right;white-space:nowrap}
.fabric-muted-cell{color:#6e6e73!important}
.fabric-muted-number{color:#790078!important;white-space:nowrap}
.fabric-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap}
.fabric-row-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:4px}
.fabric-row-actions .btn .fabric-icon{width:13px;height:13px;flex-basis:13px}
.fabric-danger-action{color:#9b3d39!important}
.fabric-danger-action:hover{background:#fff1f0!important;border-color:#e7b8b5!important;color:#b52d27!important}
.fabric-rolls-content{min-width:0}
.fabric-roll-table-wrap{max-height:calc(100vh - 475px);min-height:180px;overflow:auto;border:1px solid #f1f1f3;border-radius:10px}
.fabric-roll-table-wrap .fabric-data-table{min-width:980px}
.fabric-roll-table-wrap .fabric-data-table th{position:sticky;top:0;z-index:2;background:#fbfbfd;box-shadow:0 1px 0 #e5e5ea}
.fabric-roll-table-wrap .fabric-data-table td{padding:11px 10px;font-size:12px}
.fabric-roll-spec{min-width:170px;color:#790078!important;font-size:11px!important;white-space:nowrap}
.fabric-roll-archive-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:10px 12px;border:1px solid #ead8ea;border-radius:10px;background:#fcf8fc;color:#6e6e73;font-size:12px}
.fabric-roll-archived-row td{color:#8e8e93;background:#fafafa!important}
.fabric-roll-archived-row .fabric-primary-cell{color:#6e6e73}
.fabric-roll-archived-badge{display:inline-flex;align-items:center;min-height:26px;padding:0 9px;border-radius:999px;background:#f1f1f3;color:#6e6e73;font-size:11px;white-space:nowrap}
.fabric-row-actions .btn-xs{min-height:28px;padding:5px 8px;font-size:11px;border-radius:7px}
.fabric-roll-entry-modal,.fabric-batch-roll-modal{padding:18px 20px!important}
.fabric-roll-entry-modal{max-width:680px!important}
.fabric-batch-roll-modal{max-width:1120px!important}
.fabric-roll-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:-2px 0 10px}
.fabric-roll-modal-head h3{margin:4px 0 3px;color:#1d1d1f;font-size:22px;line-height:1.15;letter-spacing:-.035em}
.fabric-roll-modal-head p{margin:0;color:#86868b;font-size:12px;line-height:1.4}
.fabric-roll-eyebrow{display:block;color:#a1a1a6;font-size:10px;font-weight:700;letter-spacing:.15em;line-height:1.2}
.fabric-roll-mark{display:flex;align-items:center;justify-content:center;min-width:42px;height:34px;padding:0 9px;border-radius:11px;background:#f7eef7;color:#790078;font-size:12px;font-weight:700;white-space:nowrap}
.fabric-roll-guide{display:flex;align-items:flex-start;gap:8px;margin-bottom:10px;padding:8px 10px;border-radius:10px;background:#faf7fb;color:#6e6e73;font-size:11px;line-height:1.45}
.fabric-roll-guide-icon{display:flex;align-items:center;justify-content:center;width:19px;height:19px;flex:0 0 19px;border-radius:50%;background:#790078;color:#fff;font-size:11px;font-weight:700}
.fabric-roll-guide p{margin:1px 0 0}.fabric-roll-guide strong{color:#424245;font-weight:700}
.fabric-roll-section,.fabric-batch-common{margin-bottom:10px;padding:10px 12px 1px;border:1px solid #e5e5ea;border-radius:11px;background:#fff}
.fabric-roll-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.fabric-roll-section-head strong{color:#424245;font-size:13px;font-weight:700}.fabric-roll-section-head span{color:#a1a1a6;font-size:10px;white-space:nowrap}
.fabric-roll-entry-modal .form-row{margin-bottom:8px}
.fabric-roll-entry-modal .form-label{margin-bottom:4px;font-size:11px}
.fabric-roll-entry-modal input,.fabric-roll-entry-modal select{padding:7px 9px;border-radius:8px;font-size:12px}
.fabric-roll-calc-hint{margin:-2px 0 7px;color:#86868b;font-size:10px;line-height:1.4}
.fabric-roll-calc-hint strong{color:#424245;font-weight:700}
.fabric-roll-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px;padding-top:9px;border-top:1px solid #f1f1f3}
.fabric-roll-footer>span{color:#a1a1a6;font-size:10px;line-height:1.4}.fabric-roll-footer .btn{border-radius:9px;font-size:12px}
.fabric-batch-common{padding-bottom:10px;background:#fbfbfd}
.fabric-batch-common-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px 10px;align-items:end}
.fabric-batch-common-grid>div{min-width:0}.fabric-batch-common-grid .form-label{margin-bottom:4px;font-size:11px}
.fabric-batch-common-grid input,.fabric-batch-common-grid select{padding:7px 9px;border-radius:8px;font-size:12px}
.fabric-batch-add-row{display:flex;align-items:flex-end;height:100%}.fabric-batch-add-row .btn{width:100%;justify-content:center;border-radius:8px;font-size:11px}
.fabric-batch-table-wrap{max-height:320px;overflow:auto;border:1px solid #e5e5ea;border-radius:10px;background:#fff}
.fabric-batch-table{min-width:1120px;table-layout:fixed}.fabric-batch-table th{position:sticky;top:0;z-index:2;padding:9px 6px;background:#fbfbfd;box-shadow:0 1px 0 #e5e5ea;font-size:10px}
.fabric-batch-table td{padding:5px 6px;border-bottom:1px solid #f1f1f3}.fabric-batch-table tr:last-child td{border-bottom:0}
.fabric-batch-table th:nth-child(1),.fabric-batch-table td:nth-child(1){width:38px;text-align:center}.fabric-batch-table th:nth-child(2),.fabric-batch-table td:nth-child(2){width:150px}.fabric-batch-table th:nth-child(3),.fabric-batch-table td:nth-child(3),.fabric-batch-table th:nth-child(4),.fabric-batch-table td:nth-child(4){width:86px}.fabric-batch-table th:nth-child(5),.fabric-batch-table td:nth-child(5){width:92px}.fabric-batch-table th:nth-child(6),.fabric-batch-table td:nth-child(6),.fabric-batch-table th:nth-child(7),.fabric-batch-table td:nth-child(7){width:108px}.fabric-batch-table th:nth-child(8),.fabric-batch-table td:nth-child(8),.fabric-batch-table th:nth-child(9),.fabric-batch-table td:nth-child(9),.fabric-batch-table th:nth-child(10),.fabric-batch-table td:nth-child(10){width:86px}
.fabric-batch-table .batch-input{width:100%;padding:7px 7px;border:1px solid #d2d2d7;border-radius:7px;font-size:11px;color:#424245}.fabric-batch-table .batch-input::placeholder{color:#b8b8bd}.fabric-batch-index{color:#a1a1a6;font-size:11px!important;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.fabric-search-panel{padding-top:20px}
.fabric-search-query{margin:-6px 0 14px;color:#6e6e73;font-size:12px}
.fabric-search-match td{background:#fbf5fb!important}
.fabric-search-match td:first-child{box-shadow:inset 2px 0 #c28ac2}
.fabric-match-tag{display:inline-flex;margin-left:7px;padding:2px 6px;border-radius:99px;background:#f6eaf6;color:#790078;font-size:10px;font-weight:600;vertical-align:1px;white-space:nowrap}
.fabric-overview{display:flex;flex-direction:column;gap:16px}
.fabric-overview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:6px 4px 2px}
.fabric-overview-head h3{margin:7px 0 5px;color:#1d1d1f;font-size:24px;letter-spacing:-.03em}
.fabric-overview-head p{color:#6e6e73;font-size:13px}
.fabric-overview-mark{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:15px;background:#f7eef7;color:#790078}
.fabric-overview-mark .fabric-icon{width:25px;height:25px;flex-basis:25px}
.fabric-overview-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.fabric-overview-kpi{display:flex;flex-direction:column;gap:5px;min-height:116px;padding:16px 17px;border:1px solid rgba(60,60,67,.12);border-radius:13px;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.03)}
.fabric-overview-kpi>span{color:#6e6e73;font-size:12px}
.fabric-overview-kpi>strong{color:#1d1d1f;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:27px;line-height:1.1;letter-spacing:-.05em}
.fabric-overview-kpi>strong em{margin-left:4px;color:#86868b;font-family:inherit;font-size:12px;font-style:normal;font-weight:500;letter-spacing:0}
.fabric-overview-kpi>small{margin-top:auto;color:#a1a1a6;font-size:11px}
.fabric-overview-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}
.fabric-overview-panel{min-width:0;padding:20px 22px}
.fabric-overview-alert-list,.fabric-overview-supplier-list{display:flex;flex-direction:column}
.fabric-overview-alert-row,.fabric-overview-supplier-row{display:flex;align-items:center;gap:10px;min-width:0;padding:11px 0;border-bottom:1px solid #f1f1f3}
.fabric-overview-alert-row:last-child,.fabric-overview-supplier-row:last-child{border-bottom:0}
.fabric-overview-alert-row{cursor:pointer}
.fabric-overview-alert-row:hover{margin:0 -8px;padding-right:8px;padding-left:8px;border-radius:8px;background:#fbfbfd}
.fabric-overview-alert-dot{width:7px;height:7px;flex:none;border-radius:50%;background:#f5a623}
.fabric-overview-alert-dot.is-danger{background:#ff3b30}
.fabric-overview-alert-copy,.fabric-overview-supplier-copy{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.fabric-overview-alert-copy b,.fabric-overview-supplier-copy b{overflow:hidden;color:#424245;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.fabric-overview-alert-copy small,.fabric-overview-supplier-copy small{overflow:hidden;color:#a1a1a6;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.fabric-overview-alert-row>strong,.fabric-overview-supplier-row>strong{color:#424245;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;font-weight:700;white-space:nowrap}
.fabric-overview-empty{display:flex;align-items:center;justify-content:center;gap:7px;min-height:80px;color:#86868b;font-size:12px}
.fabric-overview-ok{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#e1f7e7;color:#16a34a;font-weight:700}
.fabric-overview-more{padding-top:10px;color:#86868b;font-size:11px;text-align:center}
.fabric-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;height:100%;min-height:320px;padding:30px;color:#6e6e73}
.fabric-empty strong{color:#424245;font-size:15px}
.fabric-empty>span:last-child{font-size:12px;color:#a1a1a6}
.fabric-empty-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin-bottom:4px;border-radius:15px;background:#f7eef7;color:#790078}
.fabric-empty-icon .fabric-icon{width:24px;height:24px;flex-basis:24px}

@media(max-width:768px){
  .fabric-page-head{align-items:flex-start;flex-direction:column;gap:14px;padding:0 0 14px}
  .fabric-page-heading h2{font-size:24px}
  .fabric-page-actions{width:100%;justify-content:flex-start}
  .fabric-page-actions .fabric-toolbar-btn{flex:1 1 auto}
  .fabric-layout{height:calc(100vh - 246px);min-height:360px;border-radius:12px}
  .fabric-layout .sidebar{width:100%;min-width:100%}
  .fabric-layout .sidebar-main{padding:20px 14px}
  .fabric-summary-card{padding:18px 16px 15px}
  .fabric-summary-head{gap:12px}
  .fabric-title-icon{width:34px;height:34px;flex-basis:34px;border-radius:10px}
  .fabric-detail-title{font-size:17px}
  .fabric-summary-number{min-width:100px}
  .fabric-summary-number strong{font-size:22px}
  .fabric-summary-actions .fabric-toolbar-btn{flex:0 0 auto}
  .fabric-detail-card{padding:16px 12px}
  .fabric-roll-table-wrap{max-height:calc(100vh - 500px)}
  .fabric-overview-head{gap:12px}
  .fabric-overview-head h3{font-size:21px}
  .fabric-overview-kpis{grid-template-columns:1fr 1fr;gap:8px}
  .fabric-overview-kpi{min-height:102px;padding:13px 12px}
  .fabric-overview-kpi>strong{font-size:22px}
  .fabric-overview-grid{grid-template-columns:1fr;gap:12px}
  .fabric-overview-panel{padding:16px 12px}
}

/* ===== ACCESSORY AREA — compact inventory workspace ===== */
.accessory-page{min-width:0}
.accessory-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:2px 4px 18px;margin-bottom:2px}
.accessory-page-heading{min-width:0}
.accessory-page-kicker,.accessory-section-eyebrow{display:block;color:#86868b;font-size:10px;font-weight:700;letter-spacing:.14em;line-height:1.2;text-transform:uppercase}
.accessory-page-heading h2{margin:7px 0 4px;color:#1d1d1f;font-size:28px;line-height:1.15;letter-spacing:-.035em}
.accessory-page-heading p{margin:0;color:#6e6e73;font-size:13px}
.accessory-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.accessory-toolbar-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:8px 13px;border-radius:10px;white-space:nowrap}
.accessory-toolbar-btn.btn-gray{background:#fff;color:#424245;border:1px solid #d2d2d7}
.accessory-toolbar-btn.btn-gray:hover{background:#f5f5f7;color:#1d1d1f;border-color:#b8b8bd}
.accessory-toolbar-btn.btn-primary{background:#790078;color:#fff;border:1px solid #790078}
.accessory-toolbar-btn.btn-primary:hover{background:#620061}
.accessory-icon{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;flex:0 0 17px;color:currentColor;vertical-align:middle}
.accessory-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.accessory-button-icon{width:15px;height:15px;flex-basis:15px}
.accessory-layout{height:calc(100vh - 218px);min-height:420px;border:1px solid rgba(60,60,67,.12);border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 8px 28px rgba(0,0,0,.045)}
.accessory-layout .sidebar{width:300px;min-width:300px;border-right:1px solid #e5e5ea}
.accessory-sidebar-search{padding:17px 16px 15px;background:#fff;border-bottom:1px solid #e5e5ea}
.accessory-sidebar-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px;color:#1d1d1f;font-size:13px;font-weight:700}
.accessory-sidebar-count{overflow:hidden;color:#a1a1a6;font-size:10px;font-weight:500;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
.accessory-search-field{display:flex;align-items:center;gap:7px;height:36px;padding:0 10px;border:1px solid #d2d2d7;border-radius:9px;background:#fbfbfd;transition:border-color .18s,box-shadow .18s,background .18s}
.accessory-search-field:focus-within{border-color:#9c5aa0;background:#fff;box-shadow:0 0 0 3px rgba(121,0,120,.1)}
.accessory-search-field>.accessory-icon{width:16px;height:16px;flex-basis:16px;color:#86868b}
.accessory-search-field input,.accessory-search-field input:focus{width:100%;height:34px;padding:0;border:0!important;outline:0;box-shadow:none!important;background:transparent;font-size:12px;color:#1d1d1f}
.accessory-search-field input::placeholder{color:#a1a1a6}
.accessory-layout .sidebar-tree{padding:8px 6px 14px;background:#fff}
.accessory-layout .tree-node{position:relative}
.accessory-layout .tree-l1,.accessory-layout .tree-l2,.accessory-layout .tree-l3,.accessory-layout .tree-l4{border-left:2px solid transparent;border-radius:8px;transition:background .16s,border-color .16s,color .16s}
.accessory-layout .tree-l1{padding:10px 10px;gap:7px;color:#1d1d1f;font-size:13px}
.accessory-layout .tree-l2{padding:8px 10px 8px 30px;gap:6px;color:#424245;font-size:12px}
.accessory-layout .tree-l3{padding:7px 10px 7px 50px;gap:6px;color:#6e6e73;font-size:12px}
.accessory-layout .tree-l4{padding:7px 10px 7px 70px;gap:6px;color:#6e6e73;font-size:12px}
.accessory-layout .tree-l1:hover,.accessory-layout .tree-l2:hover,.accessory-layout .tree-l3:hover,.accessory-layout .tree-l4:hover{background:#faf7fb}
.accessory-layout .tree-l1.active,.accessory-layout .tree-l2.active,.accessory-layout .tree-l3.active,.accessory-layout .tree-l4.active{background:#f8f1f8;border-left-color:#790078;color:#5f005f}
.accessory-layout .tree-l1 .arrow,.accessory-layout .tree-l2 .arrow,.accessory-layout .tree-l3 .arrow{font-size:10px;color:#a1a1a6}
.accessory-layout .tree-body{align-items:center;gap:5px 8px}
.accessory-layout .tree-text{display:inline-flex;align-items:center;min-width:0;gap:7px;line-height:1.4;word-break:break-word}
.accessory-layout .tree-text .accessory-icon{width:15px;height:15px;flex-basis:15px;color:#86868b}
.accessory-layout .tree-l1 .tree-text .accessory-icon{color:#790078}
.accessory-layout .tree-l2 .tree-text .accessory-icon{color:#6e6e73}
.accessory-layout .tree-l3 .tree-text .accessory-icon{color:#a05aa0}
.accessory-layout .tree-l4 .tree-text .accessory-icon{width:13px;height:13px;flex-basis:13px;color:#a1a1a6}
.accessory-layout .badge{margin-left:auto;padding:2px 6px;border-radius:99px;background:#f5f5f7;color:#86868b;font-size:10px;font-weight:600;white-space:nowrap}
.accessory-layout .tree-actions{display:flex;align-items:center;gap:2px;margin-left:auto;flex:0 0 auto}
.accessory-layout .tree-edit-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-left:0;padding:0;border-radius:7px;color:#a1a1a6}
.accessory-layout .tree-edit-btn .accessory-icon{width:14px;height:14px;flex-basis:14px}
.accessory-layout .tree-edit-btn:hover{background:#f5eaf5;color:#790078}
.accessory-layout .tree-danger-btn:hover{background:#fff1f0;color:#c9342c}
.accessory-layout .tree-add-item{padding-top:6px;padding-bottom:8px;color:#a1a1a6;font-size:11px}
.accessory-layout .tree-add-item>span{display:inline-flex;align-items:center;gap:6px}
.accessory-layout .tree-search-hl{background:#fbf5fb!important;border-left-color:#c28ac2!important;animation:none}
.accessory-layout .sidebar-main{padding:26px 30px;background:#f5f5f7}
.accessory-layout .sidebar-main .card{box-shadow:0 5px 18px rgba(0,0,0,.035)}
.accessory-breadcrumb{margin-bottom:18px;font-size:12px}
.accessory-breadcrumb span{color:#790078}
.accessory-breadcrumb .current{overflow:hidden;color:#1d1d1f;text-overflow:ellipsis;white-space:nowrap}
.accessory-summary-card{padding:22px 24px 18px;border-radius:16px;margin-bottom:16px}
.accessory-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;min-width:0}
.accessory-summary-title{display:flex;align-items:flex-start;gap:12px;min-width:0}
.accessory-title-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#f7eef7;color:#790078}
.accessory-title-icon .accessory-icon{width:20px;height:20px;flex-basis:20px}
.accessory-detail-title{margin:0 0 5px;color:#1d1d1f;font-size:20px;font-weight:700;line-height:1.25;letter-spacing:-.02em;overflow-wrap:anywhere}
.accessory-detail-subtitle{display:block;overflow:hidden;color:#6e6e73;font-size:12px;line-height:1.45;text-overflow:ellipsis;white-space:nowrap}
.accessory-summary-metrics{display:flex;align-items:flex-start;gap:22px;flex-wrap:wrap;text-align:right}
.accessory-summary-metrics>div{display:flex;flex-direction:column;gap:4px}
.accessory-summary-metrics strong{color:#5f005f;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:21px;line-height:1.1;letter-spacing:-.04em}
.accessory-summary-metrics span{color:#86868b;font-size:11px}
.accessory-unit-summary{margin-top:18px;padding-top:14px;border-top:1px solid #f1f1f3}
.accessory-unit-list{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
.accessory-unit-list>span{display:inline-flex;align-items:baseline;gap:4px;padding:5px 9px;border-radius:8px;background:#f8f8fa;color:#6e6e73;font-size:11px}
.accessory-unit-list>span b{color:#1d1d1f;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px}
.accessory-summary-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:18px;padding-top:15px;border-top:1px solid #f1f1f3}
.accessory-detail-card{padding:20px 22px}
.accessory-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}
.accessory-section-heading h4{margin:5px 0 0;color:#1d1d1f;font-size:16px;font-weight:700;letter-spacing:-.01em}
.accessory-section-count{color:#86868b;font-size:11px;white-space:nowrap}
.accessory-table-wrap{max-height:calc(100vh - 475px);min-height:160px;overflow:auto;border:1px solid #f1f1f3;border-radius:10px}
.accessory-data-table{table-layout:auto;min-width:720px}
.accessory-data-table th{position:sticky;top:0;z-index:2;padding:10px;color:#86868b;background:#fbfbfd;border-bottom:1px solid #e5e5ea;font-size:11px;font-weight:600;box-shadow:0 1px 0 #e5e5ea}
.accessory-data-table td{padding:12px 10px;color:#424245;border-bottom:1px solid #f1f1f3;font-size:13px;vertical-align:middle}
.accessory-data-table tr:last-child td{border-bottom:0}
.accessory-click-row{cursor:pointer}
.accessory-click-row:hover td{background:#fbfbfd}
.accessory-primary-cell{color:#1d1d1f!important;font-weight:600}
.accessory-primary-cell>.accessory-icon{width:15px;height:15px;margin-right:7px;color:#a05aa0;vertical-align:-3px}
.accessory-item-name{line-height:1.4;overflow-wrap:anywhere}
.accessory-item-meta{display:block;margin-top:3px;color:#86868b;font-size:11px;font-weight:400;line-height:1.35;overflow-wrap:anywhere}
.accessory-number-cell{font-weight:700!important;color:#1d1d1f!important;text-align:right;white-space:nowrap}
.accessory-number-cell small{font-family:inherit;color:#86868b;font-size:11px;font-weight:500}
.accessory-number-cell em{display:block;margin-top:3px;color:#a1a1a6;font-family:inherit;font-size:10px;font-style:normal;font-weight:500}
.accessory-price-cell{color:#790078!important;white-space:nowrap}
.accessory-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;white-space:nowrap}
.accessory-row-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:4px}
.accessory-row-actions .btn .accessory-icon{width:13px;height:13px;flex-basis:13px}
.accessory-danger-action{color:#9b3d39!important}
.accessory-danger-action:hover{background:#fff1f0!important;border-color:#e7b8b5!important;color:#b52d27!important}
.accessory-image-thumb{width:48px;height:48px;border-radius:9px;object-fit:cover;background:#f1f1f3}
.accessory-image-placeholder{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:9px;background:#f5f5f7;color:#c2c2c7}
.accessory-image-placeholder .accessory-icon{width:20px;height:20px;flex-basis:20px}
.accessory-search-panel{padding-top:20px}
.accessory-search-query{margin:-6px 0 14px;color:#6e6e73;font-size:12px}
.accessory-item-summary{padding:22px 24px 18px;border-radius:16px;margin-bottom:16px}
.accessory-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.accessory-item-identity{display:flex;align-items:flex-start;gap:14px;min-width:0}
.accessory-item-copy{min-width:0}
.accessory-item-kicker{display:flex;align-items:center;gap:6px;color:#790078;font-size:11px;font-weight:700;line-height:1.3}
.accessory-item-kicker .accessory-icon{width:14px;height:14px;flex-basis:14px}
.accessory-item-stock{display:flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:120px;text-align:right}
.accessory-item-stock>span{color:#86868b;font-size:11px}
.accessory-item-stock>strong{color:#15803d;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:30px;line-height:1;letter-spacing:-.05em}
.accessory-item-stock>strong.is-warning{color:#b45309}
.accessory-item-stock>strong.is-danger{color:#dc2626}
.accessory-item-stock>strong small{margin-left:4px;color:#86868b;font-family:inherit;font-size:12px;font-weight:500;letter-spacing:0}
.accessory-item-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid #f1f1f3}
.accessory-item-meta-grid>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.accessory-item-meta-grid span{color:#86868b;font-size:11px}
.accessory-item-meta-grid b{color:#424245;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.accessory-detail-image{position:relative;display:flex;align-items:center;justify-content:center;width:82px;height:82px;flex:0 0 82px;border-radius:12px;background:#f5f5f7;overflow:hidden}
.accessory-detail-image>img{display:block;width:100%;height:100%;object-fit:cover;cursor:pointer}
.accessory-detail-image-empty{flex-direction:column;gap:5px;border:1px dashed #d2d2d7;color:#a1a1a6;cursor:pointer}
.accessory-detail-image-empty>span{display:flex}
.accessory-detail-image-empty .accessory-icon{width:24px;height:24px;flex-basis:24px}
.accessory-detail-image-empty small{font-size:10px}

/* Shared image input: click, drag and paste use the same compact workflow. */
.image-upload-control{display:inline-flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:180px;outline:none;border-radius:12px;transition:background .18s,box-shadow .18s}.image-upload-control.is-dragging{background:#fbf4fb;box-shadow:0 0 0 3px rgba(121,0,120,.1)}.image-upload-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.image-upload-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:180px;min-height:112px;padding:14px;border:1px dashed #d2d2d7;border-radius:12px;background:#fbfbfd;color:#86868b;cursor:pointer;transition:border-color .18s,background .18s}.image-upload-control:hover .image-upload-drop,.image-upload-control:focus-within .image-upload-drop{border-color:#b66ab6;background:#fff}.image-upload-drop strong{font-size:13px;color:#424245;font-weight:600}.image-upload-drop span:last-child,.image-upload-help{font-size:11px;color:#a1a1a6}.image-upload-icon{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:#f7eef7;color:#790078;font-size:22px;font-weight:300}.image-upload-filled{display:flex;align-items:center;gap:10px}.image-upload-filled>img{display:block;object-fit:cover;border-radius:10px;border:1px solid #e5e5ea;background:#f5f5f7}.image-upload-actions{display:flex;flex-direction:column;gap:5px}.image-upload-action{padding:5px 9px;border:1px solid #d2d2d7;border-radius:7px;background:#fff;color:#6f2c91;font-size:11px;cursor:pointer}.image-upload-action:hover{background:#f8f1f8;border-color:#c7a6dc}.image-upload-action-danger{color:#a1a1a6}.image-upload-action-danger:hover{color:#c53030;border-color:#efb4b4;background:#fff7f7}
.product-color-image-picker{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:72px;min-height:72px;padding:4px;border-radius:12px;outline:none}.product-color-image-picker>img{display:block;width:64px;height:64px;object-fit:cover;border-radius:9px;border:1px solid #e5e5ea;cursor:pointer}.product-color-image-picker.product-color-image-empty{border:1px dashed #d2d2d7;background:#fbfbfd;color:#790078;cursor:pointer}.product-color-image-picker.product-color-image-empty>span{font-size:25px}.product-color-image-picker small{font-size:9px;color:#a1a1a6;white-space:nowrap}.product-color-image-picker.is-dragging{background:#fbf4fb;box-shadow:0 0 0 3px rgba(121,0,120,.1)}
.bom-image-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:220px;min-height:112px;padding:16px;border:1px dashed #d2d2d7;border-radius:12px;background:#fbfbfd;color:#86868b;cursor:pointer;outline:none;transition:border-color .18s,background .18s,box-shadow .18s}.bom-image-drop:hover,.bom-image-drop:focus,.bom-image-drop.is-dragging{border-color:#b66ab6;background:#fff;box-shadow:0 0 0 3px rgba(121,0,120,.08)}.bom-image-drop .bom-icon{width:24px;height:24px;color:#790078}.bom-image-filled{align-items:flex-start;flex-direction:row;min-height:0;padding:10px;gap:10px}.bom-image-filled>span{align-self:center;font-size:11px;color:#a1a1a6}
.accessory-image-edit{position:absolute;right:5px;bottom:5px;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:2px solid #fff;border-radius:8px;background:#790078;color:#fff;cursor:pointer}
.accessory-image-edit .accessory-icon{width:13px;height:13px;flex-basis:13px}
.accessory-flow-card{padding:20px 22px}
.accessory-flow-list{min-height:42px;overflow:auto}
.accessory-flow-list table{min-width:650px}
.accessory-flow-list th{padding:9px 8px;font-size:11px}
.accessory-flow-list td{padding:10px 8px;font-size:12px}
.accessory-overview{display:flex;flex-direction:column;gap:16px}
.accessory-overview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:6px 4px 2px}
.accessory-overview-head h3{margin:7px 0 5px;color:#1d1d1f;font-size:24px;letter-spacing:-.03em}
.accessory-overview-head p{color:#6e6e73;font-size:13px}
.accessory-overview-mark{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:15px;background:#f7eef7;color:#790078}
.accessory-overview-mark .accessory-icon{width:25px;height:25px;flex-basis:25px}
.accessory-overview-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.accessory-overview-kpi{display:flex;flex-direction:column;gap:5px;min-height:116px;padding:16px 17px;border:1px solid rgba(60,60,67,.12);border-radius:13px;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.03)}
.accessory-overview-kpi>span{color:#6e6e73;font-size:12px}
.accessory-overview-kpi>strong{color:#1d1d1f;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:27px;line-height:1.1;letter-spacing:-.05em}
.accessory-overview-kpi:nth-child(3)>strong{font-size:21px;letter-spacing:-.08em;white-space:nowrap}
.accessory-overview-kpi>small{margin-top:auto;color:#a1a1a6;font-size:11px}
.accessory-overview-kpi.is-alert>strong{color:#b45309}
.accessory-overview-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:16px}
.accessory-overview-panel{min-width:0;padding:20px 22px}
.accessory-alert-list{display:flex;flex-direction:column}
.accessory-alert-row{display:flex;align-items:center;gap:10px;min-width:0;padding:11px 0;border-bottom:1px solid #f1f1f3;cursor:pointer}
.accessory-alert-row:last-child{border-bottom:0}
.accessory-alert-row:hover{margin:0 -8px;padding-right:8px;padding-left:8px;border-radius:8px;background:#fbfbfd}
.accessory-alert-dot{width:7px;height:7px;flex:none;border-radius:50%;background:#f5a623}
.accessory-alert-dot.is-danger{background:#ff3b30}
.accessory-alert-copy{display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.accessory-alert-copy b{overflow:hidden;color:#424245;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.accessory-alert-copy small{overflow:hidden;color:#a1a1a6;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.accessory-alert-qty{color:#424245;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;font-weight:700;white-space:nowrap}
.accessory-overview-more{padding-top:10px;color:#86868b;font-size:11px;text-align:center}
.accessory-overview-empty{display:flex;align-items:center;justify-content:center;gap:7px;min-height:80px;color:#86868b;font-size:12px}
.accessory-ok-mark{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#e1f7e7;color:#16a34a;font-weight:700}
.accessory-unit-list-large{display:grid;gap:10px;margin-top:2px}
.accessory-unit-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 13px;border-radius:10px;background:#f8f8fa}
.accessory-unit-row>span{display:flex;align-items:center;gap:8px;color:#6e6e73;font-size:12px}
.accessory-unit-row>span .accessory-icon{width:16px;height:16px;flex-basis:16px;color:#a05aa0}
.accessory-unit-row strong{color:#1d1d1f;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:16px}

@media(max-width:768px){
  .accessory-page-head{align-items:flex-start;flex-direction:column;gap:14px;padding:0 0 14px}
  .accessory-page-heading h2{font-size:24px}
  .accessory-page-actions{width:100%;justify-content:flex-start}
  .accessory-page-actions .accessory-toolbar-btn{flex:1 1 auto}
  .accessory-layout{height:calc(100vh - 246px);min-height:360px;border-radius:12px}
  .accessory-layout .sidebar{width:100%;min-width:100%}
  .accessory-layout .sidebar-main{padding:20px 14px}
  .accessory-summary-card,.accessory-item-summary{padding:18px 16px 15px}
  .accessory-summary-head,.accessory-item-top{gap:14px}
  .accessory-summary-metrics{gap:12px}
  .accessory-summary-metrics strong{font-size:17px}
  .accessory-detail-title{font-size:17px}
  .accessory-detail-card,.accessory-flow-card,.accessory-overview-panel{padding:16px 12px}
  .accessory-table-wrap{max-height:calc(100vh - 500px)}
  .accessory-item-stock{min-width:92px}
  .accessory-item-stock>strong{font-size:23px}
  .accessory-item-meta-grid{grid-template-columns:1fr 1fr;gap:10px}
  .accessory-overview-head h3{font-size:21px}
  .accessory-overview-kpis{grid-template-columns:1fr 1fr;gap:8px}
  .accessory-overview-kpi{min-height:102px;padding:13px 12px}
  .accessory-overview-kpi>strong{font-size:22px}
  .accessory-overview-grid{grid-template-columns:1fr;gap:12px}
}

/* ===== SHARED APP FRAME / PROCUREMENT READABILITY ===== */
@media(min-width:769px){
  .topbar-inner,.tabbar-inner,.content{width:100%;max-width:1440px;padding-right:32px;padding-left:32px}
  .tabbar-inner{justify-content:space-between;gap:0;overflow-x:visible}
  .tab-btn{flex:1 1 0;min-width:0;justify-content:center;padding-right:12px;padding-left:12px;gap:8px}
}
@media(min-width:769px) and (max-width:1200px){
  .tabbar-inner{justify-content:flex-start;gap:6px;overflow-x:auto}
  .tab-btn{flex:0 0 auto;padding-right:16px;padding-left:16px}
}

.procurement-stat span{font-size:13px}
.procurement-stat small{font-size:12px}
.procurement-toolbar select{font-size:14px}
.procurement-search input{font-size:14px}
.procurement-note{font-size:12px}
.procurement-table{min-width:1120px}
.procurement-table th{padding:12px 14px;font-size:12px}
.procurement-table td{padding:16px 14px;font-size:14px}
.procurement-material-cell{display:flex;align-items:center;gap:12px;min-width:270px}
.procurement-material-image-wrap{position:relative;display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex:0 0 48px;border:1px solid #e5e5ea;border-radius:10px;background:#f5f5f7;overflow:hidden}
.procurement-material-image{display:block;width:100%;height:100%;object-fit:cover;cursor:zoom-in}
.procurement-material-placeholder{display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex:0 0 48px;border:1px solid #e5e5ea;border-radius:10px;background:#f5f5f7;color:#a1a1a6}
.procurement-material-placeholder svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.procurement-material-placeholder-fallback{position:absolute;inset:0;border:0;border-radius:0}
.procurement-material-name{flex:1;min-width:0}
.procurement-material-name strong{font-size:14px}
.procurement-material-name small,.procurement-table td small{font-size:12px}
.procurement-order-count{font-size:14px}
.procurement-order-preview,.procurement-material-summary,.procurement-linked-orders{max-width:225px}
.procurement-status{min-height:25px;padding:4px 9px;font-size:12px}
.procurement-archived-label{margin-top:4px;color:#a1a1a6;font-size:11px!important}

/* ===== ACCESSORY ENTRY: QUICK FIRST, ALL DETAILS VISIBLE ===== */
.accessory-entry-modal{padding:14px 18px!important}
.accessory-entry-modal .acc-entry-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:-2px 0 9px}
.acc-entry-eyebrow{display:block;margin-bottom:4px;color:#a1a1a6;font-size:10px;font-weight:700;letter-spacing:.16em}
.accessory-entry-modal .acc-entry-heading h3{margin:0 0 4px;color:#1d1d1f;font-size:22px;letter-spacing:-.04em}
.acc-entry-heading p{margin:0;color:#86868b;font-size:12px;line-height:1.5}
.acc-entry-mark{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:#f7eef7;color:#790078;font-size:23px;font-weight:300;line-height:1}
.acc-entry-guide{display:flex;align-items:flex-start;gap:8px;margin-bottom:9px;padding:7px 9px;border-radius:9px;background:#faf7fb;color:#6e6e73}
.acc-entry-guide-icon{display:flex;align-items:center;justify-content:center;width:20px;height:20px;flex:0 0 20px;border-radius:50%;background:#790078;color:#fff;font-size:10px;font-weight:700}
.acc-entry-guide strong{display:block;margin:1px 0 3px;color:#424245;font-size:12px}
.acc-entry-guide p{margin:0;font-size:10px;line-height:1.4}
.acc-entry-section{padding:9px 10px 0;border:1px solid #e5e5ea;border-radius:11px;background:#fff}
.acc-entry-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.acc-entry-section-head strong{color:#424245;font-size:13px}
.acc-entry-section-head span{color:#a1a1a6;font-size:10px}
.accessory-entry-modal .form-row{margin-bottom:7px}
.accessory-entry-modal .form-label{font-size:12px;margin-bottom:3px}
.accessory-entry-modal input,.accessory-entry-modal select{font-size:12px;padding:6px 8px;border-radius:8px}
.acc-entry-name-row{margin-top:1px}
.acc-entry-helper{margin:2px 0 0;color:#a1a1a6;font-size:10px;line-height:1.25}
.acc-entry-text-button{display:inline-flex;margin-top:4px;padding:0;border:0;background:none;color:#790078;font-size:11px;cursor:pointer}
.acc-entry-text-button:hover{text-decoration:underline}
.acc-entry-batch-note{margin-top:3px;padding:4px 6px;border-radius:7px;background:#f8f1f8;color:#6e2c91;font-size:9px;line-height:1.2;white-space:nowrap}
.acc-entry-disclosure{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;margin-top:6px;padding:6px 2px;border:0;border-top:1px solid #f1f1f3;background:#fff;color:#424245;text-align:left;cursor:pointer}
.acc-entry-disclosure>span:first-child{display:flex;align-items:center;gap:8px}
.acc-entry-disclosure strong{font-size:12px;font-weight:650}
.acc-entry-disclosure small{color:#a1a1a6;font-size:10px}
.acc-entry-disclosure>span:last-child{color:#790078;font-size:11px;font-weight:600;white-space:nowrap}
.acc-entry-disclosure:hover strong{color:#790078}
.acc-entry-disclosure-static{cursor:default}
.acc-entry-disclosure-static:hover strong{color:#424245}
.acc-entry-advanced{display:none;padding:7px 10px 0;border:1px solid #f1f1f3;border-radius:0 0 11px 11px;background:#fbfbfd}
.acc-entry-advanced.is-open{display:block}
.acc-entry-advanced .form-row:last-child{margin-bottom:8px}
.accessory-entry-modal .image-upload-control{min-width:150px}
.accessory-entry-modal .image-upload-drop{width:150px;min-height:52px;padding:6px;border-radius:9px}
.accessory-entry-modal .image-upload-icon{width:26px;height:26px;border-radius:8px;font-size:18px}
.accessory-entry-modal .image-upload-drop strong{font-size:12px}
.accessory-entry-modal .image-upload-drop span:last-child,.accessory-entry-modal .image-upload-help{font-size:10px}
.accessory-entry-modal .image-upload-filled>img{width:60px!important;height:60px!important}
.accessory-entry-modal .image-upload-filled{gap:8px}
.acc-entry-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px;padding-top:6px;border-top:1px solid #f1f1f3}
.acc-entry-footer>span{color:#a1a1a6;font-size:10px;line-height:1.4}
.acc-entry-footer .btn{border-radius:9px;font-size:12px}
.acc-entry-footer .acc-save-continue{background:#f1f1f3;color:#6e6e73}
.acc-entry-footer .acc-save-continue:hover{background:#e5e5ea;color:#424245}
@media(max-width:768px){
  .accessory-entry-modal{padding:20px 16px!important}
  .accessory-entry-modal .acc-entry-heading h3{font-size:22px}
  .accessory-entry-modal .form-grid-2{grid-template-columns:1fr}
  .acc-entry-section,.acc-entry-advanced{padding-right:12px;padding-left:12px}
  .acc-entry-footer{align-items:stretch;flex-direction:column}
  .acc-entry-footer>span{order:2}
  .acc-entry-footer>div{width:100%;flex-wrap:wrap}
  .acc-entry-footer .btn{flex:1 1 auto;justify-content:center}
}
@media(max-width:768px){
  .fabric-roll-entry-modal,.fabric-batch-roll-modal{padding:16px 14px!important}
  .fabric-roll-modal-head h3{font-size:20px}
  .fabric-roll-section{padding-right:10px;padding-left:10px}
  .fabric-roll-entry-modal .form-grid-2,.fabric-roll-entry-modal .form-grid-3{grid-template-columns:1fr}
  .fabric-roll-footer{align-items:stretch;flex-direction:column}
  .fabric-roll-footer>span{order:2}
  .fabric-roll-footer>div{width:100%;flex-wrap:wrap}
  .fabric-roll-footer .btn{flex:1 1 auto;justify-content:center}
  .fabric-batch-common-grid{grid-template-columns:1fr 1fr}
  .fabric-batch-table-wrap{max-height:280px}
}

/* ===== PRODUCT ENTRY: clear first-run flow ===== */
.product-entry-modal{width:92%;max-width:680px!important;padding:22px 24px!important}
.product-entry-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:-2px 0 14px}
.product-entry-eyebrow{display:block;margin-bottom:5px;color:#a1a1a6;font-size:10px;font-weight:700;letter-spacing:.16em}
.product-entry-heading h3{margin:0 0 5px;color:#1d1d1f;font-size:23px;letter-spacing:-.04em}
.product-entry-heading p{margin:0;color:#86868b;font-size:12px;line-height:1.5}
.product-entry-mark{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:0 0 40px;border-radius:13px;background:#f7eef7;color:#790078;font-size:18px;font-weight:700}
.product-entry-guide{display:flex;align-items:flex-start;gap:9px;margin-bottom:11px;padding:10px 11px;border-radius:10px;background:#faf7fb;color:#6e6e73}
.product-entry-guide-icon{display:flex;align-items:center;justify-content:center;width:20px;height:20px;flex:0 0 20px;border-radius:50%;background:#790078;color:#fff;font-size:12px;font-weight:700}
.product-entry-guide strong{display:block;margin:1px 0 3px;color:#424245;font-size:12px}
.product-entry-guide p{margin:0;font-size:11px;line-height:1.5}
.product-entry-section{margin-bottom:10px;padding:11px 12px 1px;border:1px solid #e5e5ea;border-radius:11px;background:#fff}
.product-entry-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.product-entry-section-head strong{color:#424245;font-size:13px}
.product-entry-section-head span{color:#a1a1a6;font-size:10px}
.product-entry-modal .form-row{margin-bottom:9px}
.product-entry-modal .form-label{margin-bottom:4px;color:#424245;font-size:12px}
.product-entry-modal input,.product-entry-modal select{box-sizing:border-box;width:100%;padding:7px 9px;border:1px solid #d2d2d7;border-radius:8px;background:#fff;color:#424245;font-size:12px;outline:0;transition:border-color .18s,box-shadow .18s,background .18s}
.product-entry-modal input:focus,.product-entry-modal select:focus{border-color:#a05aa0;box-shadow:0 0 0 3px rgba(121,0,120,.08)}
.product-entry-modal input::placeholder{color:#b0b0b5}
.product-entry-modal input.product-entry-readonly{background:#f5f5f7;color:#6e6e73;cursor:not-allowed}
.product-entry-help{display:block;margin-top:3px;color:#a1a1a6;font-size:10px;line-height:1.35}
.product-entry-modal .image-upload-control{min-width:150px}
.product-entry-modal .image-upload-drop{width:150px;min-height:78px;padding:9px;border-radius:9px}
.product-entry-modal .image-upload-icon{width:26px;height:26px;border-radius:8px;font-size:18px}
.product-entry-modal .image-upload-drop strong{font-size:12px}
.product-entry-modal .image-upload-drop span:last-child,.product-entry-modal .image-upload-help{font-size:10px}
.product-entry-modal .image-upload-filled>img{width:82px!important;height:82px!important}
.product-entry-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px;padding-top:9px}
.product-entry-footer>span{color:#a1a1a6;font-size:10px;line-height:1.4}
.product-entry-footer .btn{border-radius:9px;font-size:12px}
@media(max-width:768px){
  .product-entry-modal{padding:20px 16px!important}
  .product-entry-heading h3{font-size:22px}
  .product-entry-modal .form-grid-2{grid-template-columns:1fr}
  .product-entry-section{padding-right:10px;padding-left:10px}
  .product-entry-footer{align-items:stretch;flex-direction:column}
  .product-entry-footer>span{order:2}
  .product-entry-footer>div{width:100%}
  .product-entry-footer .btn{flex:1;justify-content:center}
}

/* ===== BOM ENTRY: guided but compact forms ===== */
.bom-entry-modal,.bom-item-entry-modal{width:92%;max-width:720px!important;padding:20px 22px!important}
.bom-entry-modal .bom-modal-heading,.bom-item-entry-modal .bom-modal-heading{align-items:flex-start;margin-bottom:12px}
.bom-entry-modal .bom-modal-heading h3,.bom-item-entry-modal .bom-modal-heading h3{margin:0 0 4px;color:#1d1d1f;font-size:21px;letter-spacing:-.035em}
.bom-entry-modal .bom-modal-heading p,.bom-item-entry-modal .bom-modal-heading p{margin:0;color:#86868b;font-size:11px;line-height:1.45}
.bom-entry-mark{display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#f7eef7;color:#790078;font-size:17px;font-weight:700}
.bom-entry-guide{display:flex;align-items:flex-start;gap:9px;margin-bottom:10px;padding:9px 10px;border-radius:10px;background:#faf7fb;color:#6e6e73}
.bom-entry-guide-icon{display:flex;align-items:center;justify-content:center;width:20px;height:20px;flex:0 0 20px;border-radius:50%;background:#790078;color:#fff;font-size:12px;font-weight:700}
.bom-entry-guide strong{display:block;margin:1px 0 3px;color:#424245;font-size:12px}
.bom-entry-guide p{margin:0;color:#6e6e73;font-size:10px;line-height:1.5}
.bom-entry-section{margin-bottom:10px;padding:10px 11px 1px;border:1px solid #e5e5ea;border-radius:11px;background:#fff}
.bom-entry-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.bom-entry-section-head strong{color:#424245;font-size:13px}
.bom-entry-section-head span{color:#a1a1a6;font-size:10px}
.bom-entry-section-body{min-width:0}
.bom-entry-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.bom-entry-grid-2>.form-row:nth-child(5){grid-column:1/-1}
.bom-entry-selection-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.bom-entry-selection-grid>.form-row{grid-column:1/-1}
.bom-entry-selection-grid>.bom-entry-cascade{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 12px;min-width:0}
.bom-entry-rules-grid>.bom-entry-two-col{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
.bom-entry-info-grid{display:block}
.bom-item-entry-overlay{align-items:flex-start;padding:24px;box-sizing:border-box}
.bom-item-entry-modal{width:calc(100% - 48px)!important;max-width:1080px!important;max-height:calc(100vh - 48px)!important;margin:0!important;overflow-y:auto}
.bom-item-entry-layout{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(500px,1.1fr);gap:10px 14px;align-items:start}
.bom-item-entry-layout>.bom-entry-section{margin-bottom:0}
.bom-item-entry-layout>.bom-entry-section:nth-child(1){grid-column:1;grid-row:1}
.bom-item-entry-layout>.bom-entry-section:nth-child(2){grid-column:2;grid-row:1 / span 3}
.bom-item-entry-layout>.bom-entry-section:nth-child(3){grid-column:1;grid-row:2}
.bom-item-entry-layout>.bom-entry-section:nth-child(4){grid-column:1;grid-row:3}
.bom-entry-modal .form-row,.bom-item-entry-modal .form-row{min-width:0;margin-bottom:8px}
.bom-entry-modal .form-label,.bom-item-entry-modal .form-label{margin-bottom:4px;color:#424245;font-size:12px}
.bom-entry-modal input,.bom-entry-modal select,.bom-entry-modal textarea,.bom-item-entry-modal input,.bom-item-entry-modal select,.bom-item-entry-modal textarea{box-sizing:border-box;width:100%;padding:7px 9px;border:1px solid #d2d2d7;border-radius:8px;background:#fff;color:#424245;font-size:12px;outline:0;transition:border-color .18s,box-shadow .18s}
.bom-entry-modal input:focus,.bom-entry-modal select:focus,.bom-entry-modal textarea:focus,.bom-item-entry-modal input:focus,.bom-item-entry-modal select:focus,.bom-item-entry-modal textarea:focus{border-color:#a05aa0;box-shadow:0 0 0 3px rgba(121,0,120,.08)}
.bom-entry-modal input::placeholder,.bom-entry-modal textarea::placeholder,.bom-item-entry-modal input::placeholder{color:#b0b0b5}
.bom-entry-help{display:block;margin-top:3px;color:#a1a1a6;font-size:10px;line-height:1.35}
.bom-entry-modal .bom-image-drop{min-width:0;min-height:82px;padding:10px;border-radius:9px}
.bom-entry-modal .bom-image-drop .bom-icon{width:22px;height:22px}
.bom-entry-modal .bom-image-drop span{font-size:10px!important}
.bom-entry-modal #bomImgPreview img{max-width:140px!important;max-height:100px!important}
.bom-entry-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:2px;padding-top:8px}
.bom-entry-footer>span{color:#a1a1a6;font-size:10px;line-height:1.4}
.bom-entry-footer .btn{border-radius:9px;font-size:12px}
.bom-item-entry-modal .bom-entry-cascade>.form-row{margin-bottom:8px}
.bom-item-entry-modal .bom-size-choice{display:inline-flex!important;align-items:center!important;gap:5px!important;padding:5px 8px!important;border-radius:8px!important;background:#fbfbfd;cursor:pointer}
.bom-item-entry-modal .bom-size-choice:hover{border-color:#b66ab6!important;background:#fff}
.bom-item-entry-modal .bom-size-selector{display:flex;flex-direction:column;gap:9px;padding:2px 0 3px}
.bom-item-entry-modal .bom-size-all{display:grid!important;grid-template-columns:auto 1fr;align-items:center;column-gap:6px;row-gap:2px;background:#faf5fb;border-color:#d8b4d8!important}
.bom-item-entry-modal .bom-size-all span{font-weight:700;color:#790078}
.bom-item-entry-modal .bom-size-all small{grid-column:2;color:#a1a1a6;font-size:10px}
.bom-item-entry-modal .bom-size-group{padding:7px 8px 8px;border:1px solid #ececf0;border-radius:9px;background:#fff}
.bom-item-entry-modal .bom-size-group>strong{display:block;margin-bottom:6px;color:#6e6e73;font-size:11px;font-weight:700}
.bom-item-entry-modal .bom-size-options{display:flex;flex-wrap:wrap;gap:6px}
.bom-item-entry-modal .bom-size-options .bom-size-choice{min-width:42px;justify-content:center}
.bom-item-entry-modal .bom-size-choice.is-checked{border-color:#790078!important;background:#f7eef7;color:#790078;font-weight:700}
.bom-item-entry-modal .bom-size-legacy{border-style:dashed;background:#fbfbfd}
.bom-item-entry-modal .bom-size-help{display:block;color:#a1a1a6;font-size:10px;line-height:1.45}
.bom-item-entry-modal .biSizeCb{display:inline-block!important;width:14px;height:14px;margin:0;accent-color:#790078}
.bom-item-entry-modal .bom-size-selection-summary{padding:8px 10px;border:1px solid #ead7ea;border-radius:8px;background:#fcf7fc;color:#790078;font-size:11px;font-weight:700}
.bom-item-entry-modal .bom-size-system-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.bom-item-entry-modal .bom-size-system{border:1px solid #e7e7ec;border-radius:10px;background:#fff;overflow:hidden}
.bom-item-entry-modal .bom-size-system.is-open{grid-column:1/-1;border-color:#d6b4d6;box-shadow:0 2px 8px rgba(121,0,120,.06)}
.bom-item-entry-modal .bom-size-system-header{display:flex;align-items:center;justify-content:space-between;width:100%;padding:7px 9px;border:0;background:#fafafd;color:#3f3f46;text-align:left;cursor:pointer}
.bom-item-entry-modal .bom-size-system-header:hover{background:#fcf5fc}
.bom-item-entry-modal .bom-size-system-header strong{font-size:12px}
.bom-item-entry-modal .bom-size-system-header small{display:inline-block;margin-left:8px;color:#a1a1a6;font-size:10px;font-weight:400}
.bom-item-entry-modal .bom-size-chevron{color:#790078;font-size:15px;line-height:1;transform:rotate(0);transition:transform .18s}
.bom-item-entry-modal .bom-size-system.is-open .bom-size-chevron{transform:rotate(180deg)}
.bom-item-entry-modal .bom-size-system-body{padding:7px 9px 8px;border-top:1px solid #f0f0f3}
.bom-item-entry-modal .bom-size-category-tabs{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:8px}
.bom-item-entry-modal .bom-size-category-tab{padding:5px 10px;border:1px solid #dedee5;border-radius:999px;background:#fff;color:#6e6e73;font-size:11px;cursor:pointer}
.bom-item-entry-modal .bom-size-category-tab.is-active{border-color:#790078;background:#f7eef7;color:#790078;font-weight:700}
.bom-item-entry-modal .bom-size-category-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;color:#6e6e73;font-size:10px}
.bom-item-entry-modal .bom-size-category-actions button{padding:0;border:0;background:transparent;color:#790078;font-size:10px;cursor:pointer}
.bom-item-entry-modal .bom-size-category-actions button+button{margin-left:8px;color:#9a5a9a}
.bom-item-entry-modal .bom-size-custom{display:flex;gap:6px;margin-top:8px}
.bom-item-entry-modal .bom-size-custom input{flex:1;padding:5px 8px!important;font-size:11px!important}
.bom-item-entry-modal .bom-size-custom button{padding:5px 9px;border:1px solid #d9b8d9;border-radius:7px;background:#fff;color:#790078;font-size:10px;cursor:pointer;white-space:nowrap}
.bom-item-entry-modal .bom-size-custom button:hover{background:#f8eef8}
.bom-item-entry-modal .biSizeCb{display:inline-block!important;width:14px;height:14px;margin:0;accent-color:#790078}
.bom-edit-entry-modal .bom-entry-footer{position:sticky;bottom:-1px;z-index:3;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid #f0f0f2}
.bom-edit-entry-modal .bom-image-filled>img{max-width:140px!important;max-height:100px!important;object-fit:contain}
.bom-entry-readonly{background:#f5f5f7!important;color:#6e6e73!important;cursor:not-allowed}
.bom-entry-lock-note{display:flex;align-items:flex-start;gap:8px;margin:-2px 0 10px;padding:9px 10px;border:1px solid #f5d6a2;border-radius:10px;background:#fff8eb;color:#8a5b16}
.bom-entry-lock-note>span{display:flex;flex:0 0 17px;color:#a66a00}.bom-entry-lock-note .bom-icon{width:17px;height:17px}
.bom-entry-lock-note strong{display:block;font-size:11px}.bom-entry-lock-note p{margin:2px 0 0;color:#9a7a45;font-size:10px;line-height:1.45}
.bom-action-locked{display:inline-flex;align-items:center;gap:5px;padding:8px 10px;border:1px solid #e5e5ea;border-radius:9px;color:#86868b;font-size:11px;white-space:nowrap}
.bom-action-locked .bom-icon{width:15px;height:15px}
@media(max-width:768px){
  .bom-item-entry-overlay{padding:12px}
  .bom-entry-modal,.bom-item-entry-modal{padding:18px 15px!important}
  .bom-item-entry-modal{width:calc(100% - 24px)!important;max-height:calc(100vh - 24px)!important}
  .bom-item-entry-layout{display:block}
  .bom-item-entry-layout>.bom-entry-section{margin-bottom:10px}
  .bom-entry-grid-2,.bom-entry-selection-grid,.bom-entry-selection-grid>.bom-entry-cascade,.bom-entry-rules-grid>.bom-entry-two-col{display:block}
  .bom-entry-modal .form-row,.bom-item-entry-modal .form-row{margin-bottom:9px}
  .bom-entry-grid-2>.form-row:nth-child(5){grid-column:auto}
  .bom-entry-footer{align-items:stretch;flex-direction:column}
  .bom-entry-footer>span{order:2}
  .bom-entry-footer>div{width:100%}
  .bom-entry-footer .btn{flex:1;justify-content:center}
}

/* ===== MOBILE SHELL: focused navigation and single-scroll auth pages ===== */
.mobile-quick-menu{color:#1d1d1f}
.mobile-quick-menu[aria-hidden="true"]{pointer-events:none}
.mobile-quick-backdrop{display:block}
.mobile-quick-sheet{display:block}
.mobile-quick-grid{display:grid}
.mobile-quick-item{font:inherit}

@media(max-width:768px){
  /* The main app owns the mobile viewport; unauthenticated auth pages never expose app chrome. */
  #mainApp.hidden .mobile-bottom-nav,#mainApp.hidden .sidebar-toggle{display:none!important}
  body{overflow-x:hidden}
  body.mobile-menu-open{overflow:hidden}

  .topbar{z-index:500}
  .topbar-inner{height:54px;padding:0 12px}
  .brand-logo{width:132px!important}
  .content{padding:14px 12px calc(84px + env(safe-area-inset-bottom))!important}

  /* Five clear destinations replace the cramped ten-item strip. */
  .mobile-bottom-nav{display:block;z-index:600;padding:4px 0 env(safe-area-inset-bottom);background:rgba(255,255,255,.96);box-shadow:0 -5px 20px rgba(29,29,31,.08)}
  .mobile-nav-inner{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));width:100%;overflow:visible}
  .mobile-nav-item{min-width:0;width:100%;padding:5px 2px 4px;gap:3px;font-size:11px;line-height:1.1;color:#86868b}
  .mobile-nav-item .nav-icon{width:30px;height:25px;border-radius:8px}
  .mobile-nav-item .nav-icon svg{width:21px;height:21px}
  .mobile-nav-item.active,.mobile-nav-item.is-open{color:#790078}
  .mobile-nav-item.active .nav-icon,.mobile-nav-item.is-open .nav-icon{width:34px;height:25px;background:#f7eef7}
  .mobile-nav-item.active .nav-icon svg,.mobile-nav-item.is-open .nav-icon svg{width:21px;height:21px}
  .mobile-nav-item .nav-label{font-size:11px;font-weight:650}

  /* Quick access opens as a short bottom sheet, so every module remains reachable without visual noise. */
  .mobile-quick-menu{display:block;position:fixed;inset:0;z-index:700;visibility:visible}
  .mobile-quick-menu.hidden{display:none!important}
  .mobile-quick-backdrop{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:rgba(29,29,31,.38);cursor:pointer}
  .mobile-quick-sheet{position:absolute;right:0;bottom:0;left:0;padding:9px 16px calc(14px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;background:rgba(255,255,255,.98);box-shadow:0 -12px 38px rgba(29,29,31,.18);animation:mobileSheetIn .18s ease-out}
  .mobile-quick-grabber{width:34px;height:4px;margin:0 auto 13px;border-radius:99px;background:#d2d2d7}
  .mobile-quick-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
  .mobile-quick-kicker{display:block;margin-bottom:3px;color:#a1a1a6;font-size:9px;font-weight:700;letter-spacing:.16em;text-transform:uppercase}
  .mobile-quick-head h2{font-size:21px;line-height:1.1;letter-spacing:-.035em}
  .mobile-quick-close{min-height:36px;padding:7px 12px;border:1px solid #d2d2d7;border-radius:9px;background:#fff;color:#424245;font-size:12px;font-weight:650;cursor:pointer}
  .mobile-quick-close:active{background:#f5f5f7}
  .mobile-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .mobile-quick-item{display:flex;align-items:center;min-width:0;min-height:72px;padding:10px;border:1px solid #e5e5ea;border-radius:13px;background:#fff;color:#424245;text-align:left;cursor:pointer;transition:border-color .15s,background .15s,transform .15s}
  .mobile-quick-item:active{background:#faf7fb;border-color:#c7a6dc;transform:scale(.98)}
  .mobile-quick-item-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;margin-right:9px;border-radius:10px;background:#f7eef7;color:#790078}
  .mobile-quick-item-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .mobile-quick-item-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}
  .mobile-quick-item-copy strong{overflow:hidden;color:#1d1d1f;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
  .mobile-quick-item-copy small{overflow:hidden;color:#86868b;font-size:10px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
  .mobile-quick-item-arrow{flex:none;margin-left:5px;color:#a1a1a6;font-size:18px;line-height:1}
  .mobile-quick-empty{grid-column:1/-1;padding:14px 0;color:#86868b;font-size:12px;text-align:center}
  @keyframes mobileSheetIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}

  /* A page-level drawer toggle stays above the bottom nav and no longer covers the header. */
  .sidebar-toggle{top:auto;right:12px;bottom:calc(74px + env(safe-area-inset-bottom));width:52px;height:44px;border-radius:13px;z-index:610;box-shadow:0 5px 16px rgba(121,0,120,.32)}
  .sidebar-toggle .toggle-icon{font-size:18px}
  .sidebar-toggle .toggle-label{font-size:10px}
  .sidebar{top:54px!important;bottom:calc(70px + env(safe-area-inset-bottom))!important}
  .sidebar-overlay{top:54px!important;bottom:calc(70px + env(safe-area-inset-bottom))!important}

  /* Auth pages use one scroll owner. The action footer remains visible when a form is long. */
  .auth-bg{height:100vh;height:100dvh;min-height:100vh;min-height:100dvh;align-items:flex-start;justify-content:center;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:12px 10px calc(18px + env(safe-area-inset-bottom))}
  .auth-card{width:100%;max-height:none!important;overflow:visible!important;margin:0;border-radius:18px;padding:22px 16px 16px;box-shadow:0 16px 42px rgba(29,29,31,.18)}
  #authLogin{align-items:center}
  #authLogin .auth-card{max-width:380px;margin:auto 0}
  #authLogin .auth-card>div:first-child{margin-bottom:22px!important}
  #authLogin .auth-card>div:first-child img{width:250px!important}
  #authLogin .auth-card>div:last-child{margin-top:13px!important;font-size:13px!important}
  #authRegister .auth-register-card,#authReset .auth-reset-card{max-width:520px;margin:0}
  .auth-register-card,.auth-reset-card{padding:18px 16px 12px!important}
  .auth-register-layout{display:block!important}
  .auth-register-head,.auth-reset-head{margin-bottom:11px!important}
  .auth-register-logo{margin-bottom:6px!important}
  .auth-register-logo img{width:210px!important}
  .auth-register-head h1,.auth-reset-head h1{font-size:22px!important}
  .auth-register-head p,.auth-reset-head p{font-size:12px!important}
  .auth-register-guide{margin-bottom:9px!important;padding:7px 8px!important;font-size:10px!important}
  .auth-register-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 9px}
  .auth-register-fields .form-row{margin-bottom:8px}
  .auth-register-fields input,.auth-reset-card input{height:44px!important;min-height:44px!important;padding:9px 10px!important;font-size:15px!important}
  .auth-register-fields .form-label,.auth-reset-card .form-label{margin-bottom:4px;font-size:12px}
  .auth-register-company,.auth-register-email,.auth-register-email-code{grid-column:1/-1}
  .auth-register-email-code .btn,.auth-reset-email-row .btn{height:44px!important;min-height:44px!important;padding:9px 10px!important;font-size:12px}
  .auth-register-actions{display:flex;gap:8px;margin-top:1px}
  .auth-register-actions .auth-btn{min-height:44px!important;margin-top:1px;padding:10px 8px!important;font-size:14px}
  .auth-register-help{display:grid;grid-template-columns:62px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;margin-top:10px;padding:8px 9px;text-align:left}
  .auth-register-help-title{grid-column:2;grid-row:1;margin:0;font-size:12px}
  .auth-register-help img{grid-column:1;grid-row:1 / span 2;width:62px;height:78px;margin:0}
  .auth-register-help-copy{grid-column:2;grid-row:2;margin:2px 0 0;font-size:10px}
  .auth-register-help-note{display:none}
  .auth-register-footer,.auth-reset-links{position:sticky;bottom:-1px;z-index:4;margin-top:10px!important;padding:10px 0 calc(7px + env(safe-area-inset-bottom))!important;border-top:1px solid #f1f1f3;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);font-size:13px!important}
  .auth-reset-key{font-size:32px!important;margin-bottom:4px!important}
  .auth-reset-hint{margin:-2px 0 9px!important;padding:8px 10px!important;font-size:12px!important}
  .auth-reset-card .form-row{margin-bottom:8px}
  .auth-reset-password-grid{display:block!important}
  .auth-reset-actions .auth-btn{min-height:46px!important;margin-top:1px;padding:11px!important;font-size:15px}
}

@media(max-width:380px){
  .topbar-inner{padding:0 10px}
  .brand-logo{width:120px!important}
  .content{padding-right:10px!important;padding-left:10px!important}
  .mobile-nav-item .nav-label{font-size:10px}
  .mobile-quick-sheet{padding-right:12px;padding-left:12px}
  .mobile-quick-item{min-height:68px;padding:8px}
  #authLogin .auth-card{padding:18px 14px 13px}
  #authLogin .auth-card>div:first-child img{width:220px!important}
  .auth-register-card,.auth-reset-card{padding-right:13px!important;padding-left:13px!important}
  .auth-register-fields{display:block}
  .auth-register-actions .auth-btn{font-size:13px}
}

/* Color-variant image mapping */
.variant-image-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:4px 0 10px;color:#374151;font-size:13px}.variant-image-heading strong{display:block;font-size:14px;color:#111827}.variant-image-heading small{display:block;margin-top:4px;color:#9ca3af;font-size:11px}.variant-image-heading>span{flex-shrink:0;color:#790078;font-size:12px;font-weight:700}.variant-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}.variant-image-card{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:10px;align-items:center;padding:10px;border:1px solid #e5e7eb;border-radius:12px;background:#fff}.variant-image-card-name{min-width:0}.variant-image-card-name strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:#1f2937}.variant-image-card-name small{display:block;margin-top:4px;color:#9ca3af;font-size:11px}.variant-image-picker{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:76px;border:1px dashed #d1d5db;border-radius:9px;background:#fafafa;color:#790078;cursor:pointer;overflow:hidden}.variant-image-picker:hover,.variant-image-picker.is-dragging{border-color:#790078;background:#fcf4fc}.variant-image-picker img{width:76px;height:76px;object-fit:cover}.variant-image-picker strong{font-size:11px;font-weight:600}.variant-image-picker small{font-size:10px;color:#9ca3af}.variant-image-picker-action{position:absolute;left:4px;right:4px;bottom:4px;padding:2px 0;border-radius:4px;background:rgba(17,24,39,.72);color:#fff;text-align:center;font-size:10px}.variant-image-remove{position:absolute;top:3px;right:3px;border:0;border-radius:10px;padding:1px 5px;background:#ef4444;color:#fff;font-size:10px;cursor:pointer}.variant-image-plus{font-size:20px;line-height:20px}.variant-image-empty{padding:12px;border:1px dashed #d1d5db;border-radius:9px;color:#9ca3af;text-align:center;font-size:12px;background:#fafafa}
@media(max-width:640px){.variant-image-grid{grid-template-columns:1fr}.variant-image-card{grid-template-columns:minmax(0,1fr) 100px}}
+.procurement-print-page{min-width:0;padding:0 0 36px}
.procurement-print-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:2px 4px 18px}
.procurement-print-page-head h2{margin:7px 0 4px;color:#1d1d1f;font-size:28px;line-height:1.15;letter-spacing:-.035em}
.procurement-print-page-head p{max-width:680px;margin:0;color:#6e6e73;font-size:13px;line-height:1.6}
.procurement-print-page-actions{display:flex;align-items:center;gap:8px;flex:none}
.procurement-print-save-status{display:inline-flex;align-items:center;min-height:30px;padding:0 4px;color:#86868b;font-size:11px;white-space:nowrap}
.procurement-print-save-status.is-pending{color:#a05aa0}
.procurement-print-save-status.is-saving{color:#790078}
.procurement-print-save-status.is-saved{color:#218739}
.procurement-print-save-status.is-error{color:#c62828}
.procurement-print-workspace{display:grid;grid-template-columns:286px minmax(0,1fr);align-items:start;gap:16px}
.procurement-print-settings{position:sticky;top:16px;min-width:0;border:1px solid rgba(60,60,67,.12);border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(0,0,0,.035);overflow:hidden}
.procurement-print-settings-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px 12px;border-bottom:1px solid #f1f1f3}
.procurement-print-settings-head strong{color:#1d1d1f;font-size:15px}
.procurement-print-settings-head span{padding:3px 7px;border-radius:99px;background:#f7eef7;color:#790078;font-size:10px;font-weight:650}
.procurement-print-settings-body{display:flex;flex-direction:column;gap:11px;padding:14px 16px 16px}
.procurement-print-settings-body label{display:flex;flex-direction:column;gap:5px;color:#6e6e73;font-size:11px;font-weight:650}
.procurement-print-settings-body input,.procurement-print-settings-body textarea{box-sizing:border-box;width:100%;padding:8px 9px;border:1px solid #d2d2d7;border-radius:8px;background:#fff;color:#424245;font:inherit;font-size:12px;font-weight:400;outline:0;resize:vertical}
.procurement-print-settings-body input:focus,.procurement-print-settings-body textarea:focus{border-color:#a05aa0;box-shadow:0 0 0 3px rgba(121,0,120,.08)}
.procurement-print-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.procurement-print-settings-section{display:flex;flex-direction:column;gap:9px;padding:11px 10px;border:1px solid #eee7ef;border-radius:10px;background:#fcf8fc}
.procurement-print-settings-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:1px}
.procurement-print-settings-section-head strong{color:#424245;font-size:11px}
.procurement-print-settings-section-head span{color:#a05aa0;font-size:10px}
.procurement-print-settings-section label{gap:4px}
.procurement-print-settings-section textarea{resize:vertical}
.procurement-print-options{display:flex;flex-direction:column;gap:8px;padding:11px 10px;border:1px solid #eee7ef;border-radius:10px;background:#fcf8fc}
.procurement-print-options strong{color:#424245;font-size:11px}
.procurement-print-options label{display:flex;align-items:center;flex-direction:row;gap:7px;color:#6e6e73;font-size:11px;font-weight:400;cursor:pointer}
.procurement-print-options input{width:14px;height:14px;margin:0;accent-color:#790078}
.procurement-print-settings-tip{margin:0;padding:9px 10px;border-radius:8px;background:#fbfbfd;color:#86868b;font-size:10px;line-height:1.55}
.procurement-print-preview{min-width:0;overflow:auto}
.procurement-print-sheet{box-sizing:border-box;min-width:980px;padding:28px 30px 22px;border:1px solid rgba(60,60,67,.13);border-radius:14px;background:#fff;box-shadow:0 5px 18px rgba(0,0,0,.035);color:#1d1d1f}
.procurement-print-sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;padding-bottom:16px;border-bottom:3px solid #790078}
.procurement-print-brand{color:#790078;font-size:11px;font-weight:800;letter-spacing:.18em;line-height:1.2}
.procurement-print-sheet-head h1{margin:7px 0 4px;color:#1d1d1f;font-size:30px;line-height:1.1;letter-spacing:-.04em}
.procurement-print-sheet-head p{margin:0;color:#86868b;font-size:12px}
.procurement-print-sheet-meta{display:flex;align-items:flex-end;flex-direction:column;gap:8px;padding-top:2px;text-align:right}
.procurement-print-sheet-meta strong{color:#1d1d1f;font-size:15px;letter-spacing:.02em}
.procurement-print-sheet-meta span{color:#86868b;font-size:11px}
.procurement-print-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:16px 0}
.procurement-print-summary>div{min-width:0;min-height:55px;padding:10px 11px;border:1px solid #e5e5ea;border-radius:9px;background:#fbfbfd}
.procurement-print-summary span{display:block;margin-bottom:6px;color:#86868b;font-size:10px}
.procurement-print-summary strong{display:block;overflow:hidden;color:#424245;font-size:13px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.procurement-print-note{margin:0 0 14px;padding:10px 12px;border-left:3px solid #c28ac1;border-radius:0 8px 8px 0;background:#fcf8fc;color:#6e6e73;font-size:12px;line-height:1.55}
.procurement-print-note strong{color:#424245}
.procurement-print-info-panel{margin:0 0 14px;border:1px solid #e5dce7;border-radius:10px;background:#fff}
.procurement-print-info-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-bottom:1px solid #eee7ef;background:#fcf8fc}
.procurement-print-info-head strong{color:#424245;font-size:12px}
.procurement-print-info-head span{color:#a05aa0;font-size:10px}
.procurement-print-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.procurement-print-info-grid>div{min-width:0;padding:9px 12px;border-right:1px solid #f0edf1;border-bottom:1px solid #f0edf1}
.procurement-print-info-grid>div:nth-child(3n){border-right:0}
.procurement-print-info-grid>div:nth-last-child(-n+3){border-bottom:0}
.procurement-print-info-grid span{display:block;margin-bottom:5px;color:#86868b;font-size:10px}
.procurement-print-info-grid strong{display:block;overflow-wrap:anywhere;color:#424245;font-size:12px;line-height:1.35}
.procurement-print-info-grid strong em{color:#b0b0b5;font-style:normal;font-weight:400}
.procurement-print-table-wrap{overflow:auto;border:1px solid #d9d9df;border-radius:9px}
.procurement-print-table{width:100%;border-collapse:collapse;table-layout:fixed}
.procurement-print-table th{padding:10px 9px;border-bottom:2px solid #790078;background:#790078;color:#fff;font-size:12px;font-weight:700;line-height:1.35;text-align:left;vertical-align:middle}
.procurement-print-table td{padding:10px 9px;border-bottom:1px solid #e9e9ee;color:#424245;font-size:13px;line-height:1.45;vertical-align:middle}
.procurement-print-table tbody tr:nth-child(even) td{background:#fcfbfd}
.procurement-print-table tbody tr:last-child td{border-bottom:0}
.procurement-print-table th.print-col-index,.procurement-print-table td.print-col-index{width:40px;text-align:center}
.procurement-print-table th.print-col-material{width:190px}
.procurement-print-table th.print-col-image{width:86px;text-align:center}
.procurement-print-table th.print-col-orders{width:205px}
.print-material-cell{min-width:0}
.print-material-cell strong{display:block;overflow-wrap:anywhere;color:#1d1d1f;font-size:13px}
.print-material-name-input{display:block;width:100%;color:#1d1d1f;font-weight:700}
.print-material-name-input{font-size:13px}
.print-material-type{display:block;margin:3px 0;color:#86868b;font-size:10px}
.print-material-variant-input{display:block;width:100%;color:#6e6e73;font-size:10px}
.print-material-cell small,.print-number-cell small{display:block;margin-top:3px;color:#86868b;font-size:10px}
.print-number-cell{white-space:nowrap;text-align:right}
.print-number-cell .procurement-print-inline-input{max-width:76px;text-align:right}
.print-quantity-control,.print-price-control{display:flex;align-items:center;justify-content:flex-end;gap:4px}
.print-quantity-unit{color:#6e6e73;font-size:11px}
.print-price-control>span{color:#86868b;font-size:11px}
.print-number-cell .procurement-print-inline-input.is-emphasis{color:#790078;font-weight:750}
.print-image-cell{text-align:center}
.procurement-print-image-wrap{position:relative;display:flex;width:68px;height:68px;align-items:center;justify-content:center;margin:0 auto;border:1px solid #e5e5ea;border-radius:8px;background:#f8f8fa;overflow:hidden}
.procurement-print-image-wrap img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.procurement-print-image-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:4px;box-sizing:border-box;color:#a1a1a6;font-size:10px;text-align:center}
.procurement-print-image-muted{color:#a1a1a6;font-size:10px}
.print-orders-cell{min-width:0;overflow-wrap:anywhere;color:#6e6e73;font-size:11px}
.procurement-print-order-line{display:flex;flex-direction:column;gap:2px;margin:0 0 6px;padding-bottom:5px;border-bottom:1px dashed #e5e5ea}
.procurement-print-order-line:last-child{margin-bottom:0;padding-bottom:0;border-bottom:0}
.procurement-print-order-line strong{color:#424245;font-size:11px;line-height:1.3}
.procurement-print-order-line span{color:#86868b;font-size:10px;line-height:1.35}
.procurement-print-order-empty{color:#a1a1a6;font-size:10px}
.print-orders-input{min-height:58px;line-height:1.4;resize:vertical;white-space:pre-wrap}
.print-line-note{min-width:74px}
.procurement-print-inline-input{box-sizing:border-box;width:100%;min-width:0;padding:4px 5px;border:1px solid #e2d2e2;border-radius:5px;background:#fffafd;color:#424245;font:inherit;font-size:12px;outline:0}
.procurement-print-inline-input:focus{border-color:#790078;box-shadow:0 0 0 2px rgba(121,0,120,.1)}
.procurement-print-totals{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:18px;padding:14px 2px 4px;color:#6e6e73;font-size:11px}
.procurement-print-totals b{margin-left:4px;color:#1d1d1f;font-size:14px}
.procurement-print-totals span:last-child b{color:#790078}
.procurement-print-signatures{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:20px;padding-top:15px;border-top:1px solid #d9d9df}
.procurement-print-signatures>div{display:flex;min-height:44px;flex-direction:column;gap:15px;padding:0 3px;border-bottom:1px solid #9d9da5;color:#6e6e73;font-size:11px}
.procurement-print-signatures b{min-height:16px;color:#424245;font-size:12px;font-weight:500}
.procurement-print-footer{margin-top:18px;color:#a1a1a6;font-size:10px;text-align:center}
.procurement-print-empty{padding:30px!important;color:#a1a1a6!important;text-align:center!important}
@media(max-width:1100px){
  .procurement-print-page-head{align-items:flex-start;flex-direction:column;gap:14px}
  .procurement-print-page-actions{width:100%}
  .procurement-print-page-actions .btn{flex:1}
  .procurement-print-workspace{grid-template-columns:250px minmax(0,1fr);gap:12px}
  .procurement-print-sheet{padding-right:22px;padding-left:22px}
  .procurement-print-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:768px){
  .procurement-print-workspace{display:block}
  .procurement-print-settings{position:static;margin-bottom:12px}
  .procurement-print-sheet{min-width:900px}
}
@media print{
  @page{size:A4 landscape;margin:6mm}
  body{background:#fff!important;color:#1d1d1f!important}
  #mobileNav,#sidebarToggle,.topbar,.tabbar,.sidebar,.sidebar-overlay{display:none!important}
  .procurement-print-page{display:block!important;padding:0!important}
  .procurement-print-page-head,.procurement-print-settings{display:none!important}
  .procurement-print-workspace{display:block!important}
  .procurement-print-preview{overflow:visible!important}
  .procurement-print-sheet{width:100%;min-width:0;padding:0;border:0;border-radius:0;box-shadow:none}
  .procurement-print-sheet{page-break-inside:avoid;break-inside:avoid}
  .procurement-print-sheet-head{padding-bottom:8px}
  .procurement-print-sheet-head h1{font-size:24px}
  .procurement-print-summary{gap:6px;margin:10px 0}
  .procurement-print-info-panel{margin-bottom:10px}
  .procurement-print-info-grid>div{padding:6px 8px}
  .procurement-print-info-grid span{margin-bottom:2px;font-size:8px}
  .procurement-print-info-grid strong{font-size:9px}
  .procurement-print-summary>div{min-height:42px;padding:7px 8px}
  .procurement-print-summary span{margin-bottom:3px;font-size:9px}
  .procurement-print-summary strong{font-size:11px}
  .procurement-print-table-wrap{overflow:visible;border-radius:0}
  .procurement-print-table th{padding:7px 6px;font-size:10px}
  .procurement-print-table td{padding:7px 6px;font-size:11px}
  .procurement-print-table thead{display:table-header-group}
  .procurement-print-table tr{page-break-inside:avoid}
  .procurement-print-image-wrap{width:54px;height:54px}
  .procurement-print-inline-input{padding:0;border:0;background:transparent;color:inherit;font-size:10px}
  .print-material-name-input{font-size:10px;font-weight:700}
  .print-material-variant-input,.print-material-type,.print-quantity-unit,.print-price-control>span,.procurement-print-order-line span{font-size:8px}
  .print-number-cell .procurement-print-inline-input{max-width:58px}
  .print-orders-input{min-height:0;resize:none;overflow:visible}
  .procurement-print-order-line{gap:1px;margin-bottom:3px;padding-bottom:3px}
  .procurement-print-order-line strong{font-size:9px}
  .procurement-print-inline-input:focus{box-shadow:none}
  .procurement-print-totals{gap:12px;padding-top:9px;font-size:9px}
  .procurement-print-totals b{font-size:11px}
  .procurement-print-signatures{margin-top:12px;padding-top:10px;gap:12px}
  .procurement-print-signatures>div{min-height:34px;gap:8px;font-size:9px}
  .procurement-print-signatures b{font-size:10px}
  .procurement-print-footer{display:none!important}
}
