:root{--ink:#172033;--muted:#7c879b;--line:#e9edf3;--blue:#2f7df4;--violet:#8b5cf6;--green:#1ca77a;--amber:#f3a63b;--red:#e45b6a;--shadow:0 8px 28px rgba(30,45,75,.06)}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:'Noto Sans SC','DM Sans',sans-serif;background:#f8f9fc;font-size:14px}.app-shell{display:flex;min-height:100vh}.sidebar{width:244px;background:#fff;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:24px 16px 18px;position:fixed;inset:0 auto 0 0}.brand{display:flex;align-items:center;gap:10px;padding:0 11px 24px}.brand-mark{width:31px;height:31px;border-radius:10px;background:linear-gradient(140deg,#1c5bd3,#7e55ec);color:#fff;display:grid;place-items:center;font-weight:800;font-size:17px;box-shadow:0 5px 12px #3a73da44}.brand-name{font-size:16px;font-weight:800;letter-spacing:.08em;line-height:1}.brand-sub{font-size:8px;color:#a0a9b8;letter-spacing:.12em;margin-top:5px}.workspace-switcher{height:42px;border:1px solid var(--line);border-radius:10px;background:#fbfcfe;display:flex;align-items:center;gap:7px;padding:0 11px;font-size:11px;color:#566176;margin-bottom:24px}.workspace-dot{width:7px;height:7px;border-radius:50%;background:#24b285;box-shadow:0 0 0 3px #d9f4e9}.chevron{margin-left:auto;color:#99a4b6}.side-label{font-size:10px;color:#adb5c2;font-weight:700;letter-spacing:.12em;text-transform:uppercase;padding:0 12px 8px}.side-label-bottom{margin-top:24px}.nav-list{display:flex;flex-direction:column;gap:3px}.nav-item{border:0;background:transparent;text-align:left;height:43px;border-radius:9px;padding:0 12px;display:flex;align-items:center;gap:12px;color:#6d7890;font-family:inherit;cursor:pointer;font-size:13px;transition:.2s}.nav-item:hover{background:#f4f7fb;color:var(--ink)}.nav-item.active{background:#edf4ff;color:var(--blue);font-weight:700}.nav-icon{width:18px;font-size:16px;text-align:center;color:currentColor}.nav-badge{margin-left:auto;background:#eaf2ff;color:var(--blue);font-size:10px;border-radius:9px;padding:2px 7px}.nav-badge.warn{background:#fff2df;color:#db8b23}.sidebar-footer{margin-top:auto;border-top:1px solid var(--line);padding:18px 7px 0;display:flex;align-items:center;gap:9px;font-size:11px}.avatar,.top-avatar{background:#202a3f;color:#fff;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:700}.sidebar-footer strong{display:block;font-size:11px}.sidebar-footer span{color:#a5adbb;font-size:10px}.sidebar-footer .more{margin-left:auto;color:#a5adbb;letter-spacing:2px}.main-content{margin-left:244px;min-width:0;flex:1}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px}.breadcrumb{display:flex;gap:11px;align-items:center;color:#a2aaba;font-size:12px}.breadcrumb b{font-weight:400;color:#d0d5dd}.breadcrumb strong{color:#1e2940;font-size:14px}.top-actions{display:flex;align-items:center;gap:17px}.search{height:34px;width:225px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;padding:0 10px;color:#a5afbe;background:#fbfcfe}.search input{border:0;outline:0;background:transparent;font-family:inherit;font-size:11px;width:100%;padding-left:7px;color:var(--ink)}.icon-btn{position:relative;border:0;background:transparent;color:#77839a;font-size:19px;cursor:pointer}.icon-btn i{position:absolute;width:5px;height:5px;border-radius:50%;background:#e45b6a;right:0;top:0}.top-avatar{width:28px;height:28px;font-size:12px}.view-root{width:100%;padding:28px 38px 50px}.page-intro{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:25px}.eyebrow{font-size:11px;color:var(--blue);font-weight:700;letter-spacing:.08em;margin-bottom:7px}.page-intro h1{font-size:25px;letter-spacing:-.03em;margin:0 0 8px}.page-intro p{margin:0;color:var(--muted);font-size:12px}.btn{border:0;border-radius:8px;padding:10px 16px;font-family:inherit;font-size:12px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:7px}.btn-primary{background:var(--blue);color:#fff;box-shadow:0 6px 12px #2f7df429}.btn-secondary{background:#fff;color:#58657a;border:1px solid var(--line)}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:17px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.kpi{padding:17px 18px 15px;position:relative;overflow:hidden}.kpi-head{display:flex;justify-content:space-between;align-items:center;color:#768298;font-size:11px}.kpi-icon{width:27px;height:27px;border-radius:8px;display:grid;place-items:center;font-size:14px}.kpi-icon.blue{background:#edf4ff;color:var(--blue)}.kpi-icon.violet{background:#f2edff;color:var(--violet)}.kpi-icon.green{background:#e9fbf4;color:var(--green)}.kpi-icon.amber{background:#fff5e7;color:var(--amber)}.kpi-value{font-size:26px;font-weight:800;letter-spacing:-.04em;margin:12px 0 5px}.kpi-value small{font-size:12px;font-weight:600;color:#8690a0;margin-left:4px}.kpi-foot{font-size:10px;color:#a0a9b8}.trend-up{color:#21a878;font-weight:700}.kpi-strip{position:absolute;right:-14px;bottom:-17px;width:105px;height:55px;border-radius:50%;border:7px solid #edf4ff;opacity:.7}.grid-two{display:grid;grid-template-columns:minmax(0,1.43fr) minmax(330px,.85fr);gap:17px;margin-bottom:17px}.panel{padding:19px 20px}.panel-title{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:19px}.panel-title h3{font-size:14px;margin:0 0 5px}.panel-title p{font-size:10px;color:#9da7b6;margin:0}.panel-link{color:var(--blue);font-size:11px;cursor:pointer}.chart{height:196px;display:flex;align-items:flex-end;gap:21px;padding:8px 7px 0;border-bottom:1px solid #eef1f5;position:relative;background:repeating-linear-gradient(to bottom,transparent 0,transparent 48px,#f3f5f8 49px)}.bar-col{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px}.bar{width:27px;border-radius:5px 5px 0 0;background:linear-gradient(to top,#2f7df4,#73a7ff);min-height:12px}.bar-value{font-size:9px;color:#8993a4}.bar-label{font-size:10px;color:#9099a9;position:absolute;bottom:-23px}.legend-row{display:flex;gap:16px;margin-top:30px;color:#8d97a7;font-size:10px}.legend-dot{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:5px;background:var(--blue)}.legend-dot.violet{background:var(--violet)}.dept-row{display:flex;align-items:center;padding:13px 0;border-bottom:1px solid #f0f2f5}.dept-row:last-child{border-bottom:0}.dept-bullet{width:9px;height:9px;border-radius:3px;margin-right:9px}.dept-name{font-size:11px;font-weight:700;flex:1}.dept-meta{text-align:right}.dept-profit{font-weight:800;font-size:14px}.dept-caption{font-size:10px;color:#9da7b6;margin-top:3px}.progress{height:5px;border-radius:4px;background:#f0f2f6;overflow:hidden;margin-top:10px}.progress span{display:block;height:100%;border-radius:4px}.warehouse-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.warehouse-card{border:1px solid var(--line);border-radius:10px;padding:14px}.warehouse-top{display:flex;justify-content:space-between;font-size:12px;font-weight:700}.warehouse-sub{font-size:10px;color:#9ca5b3;margin:6px 0 13px}.warehouse-value{font-size:22px;font-weight:800}.warehouse-value small{font-size:10px;color:#9aa4b4;font-weight:500;margin-left:4px}.tag{display:inline-flex;align-items:center;border-radius:5px;padding:4px 7px;font-size:10px;font-weight:700}.tag.blue{color:#2f6cc8;background:#edf4ff}.tag.green{color:#1a956c;background:#eaf9f3}.tag.orange{color:#ce861f;background:#fff4e3}.tag.red{color:#cc596a;background:#fff0f2}.tag.gray{color:#737e92;background:#f2f4f7}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;white-space:nowrap}.data-table th{text-align:left;color:#929cad;font-size:10px;font-weight:600;padding:0 12px 12px;border-bottom:1px solid var(--line)}.data-table td{padding:14px 12px;border-bottom:1px solid #f0f2f6;font-size:11px;color:#4e5a70}.data-table tr:last-child td{border-bottom:0}.data-table td:first-child{color:#26324a;font-weight:700}.order-id{font-family:'DM Sans',sans-serif;color:#265fc0!important}.activity-list{display:flex;flex-direction:column;gap:0}.activity{display:flex;gap:11px;padding:12px 0;border-bottom:1px solid #f1f3f6}.activity:last-child{border:0}.activity-time{font-size:10px;color:#a7afbc;width:35px}.activity-mark{width:7px;height:7px;border-radius:50%;background:#d6e3fc;margin-top:4px;box-shadow:0 0 0 4px #f0f5ff}.activity-text{font-size:11px;color:#525e72;line-height:1.5}.activity-type{margin-left:auto;font-size:10px;color:#9aa4b3}.section-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:17px}.mini-stat{padding:15px}.mini-label{color:#8d98aa;font-size:10px}.mini-value{font-size:20px;font-weight:800;margin-top:9px}.filters{display:flex;gap:8px;margin-bottom:15px}.filter-input,.filter-select{height:34px;border:1px solid var(--line);border-radius:7px;padding:0 10px;font-family:inherit;color:#626e82;background:#fff;font-size:11px;outline:0}.filter-input{min-width:210px}.split-layout{display:grid;grid-template-columns:1.15fr .85fr;gap:17px}.product-row{display:flex;align-items:center;gap:12px}.product-thumb{width:34px;height:34px;border-radius:8px;background:linear-gradient(135deg,#e6efff,#f4edff);display:grid;place-items:center;color:#6c79df;font-weight:800;font-size:12px}.product-name{font-weight:700;color:#2b3750}.product-sub{color:#9da6b5;font-size:10px;margin-top:3px}.bom-list{display:flex;flex-direction:column;gap:0}.bom-item{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #f0f2f6}.bom-item:last-child{border:0}.bom-code{font:700 10px 'DM Sans';color:#3568bd;width:75px}.bom-name{flex:1;font-size:11px}.bom-qty{font-size:11px;font-weight:700}.bom-type{font-size:10px;color:#9ba4b3}.status-pills{display:flex;gap:7px;flex-wrap:wrap}.status-pills .tag{cursor:pointer}.production-board{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.prod-card{border:1px solid var(--line);border-radius:9px;padding:13px}.prod-head{display:flex;justify-content:space-between;gap:8px}.prod-name{font-size:11px;font-weight:700}.prod-meta{color:#9da6b5;font-size:10px;margin-top:5px}.prod-progress{height:6px;background:#edf0f5;border-radius:4px;margin:14px 0 8px}.prod-progress span{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,#78a9ff,#2f7df4)}.prod-foot{display:flex;justify-content:space-between;font-size:10px;color:#8c97a8}.modal-backdrop{position:fixed;inset:0;background:#18253d66;display:none;place-items:center;z-index:10}.modal-backdrop.show{display:grid}.modal{width:min(620px,calc(100vw - 30px));background:#fff;border-radius:15px;padding:24px;box-shadow:0 25px 70px #14213f33}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-head h2{font-size:17px;margin:0}.close{border:0;background:#f3f5f8;border-radius:50%;width:26px;height:26px;color:#6f7a8d;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-field{display:flex;flex-direction:column;gap:6px}.form-field.full{grid-column:1/-1}.form-field label{font-size:10px;color:#7c8798;font-weight:700}.form-field input,.form-field select,.form-field textarea{height:37px;border:1px solid var(--line);border-radius:7px;padding:0 10px;font-family:inherit;font-size:12px;outline:0;background:#fff}.form-field textarea{height:auto;padding:9px;resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.toast{position:fixed;right:28px;bottom:24px;background:#1f2b42;color:#fff;padding:12px 17px;border-radius:9px;font-size:12px;box-shadow:0 9px 30px #1f2b4233;opacity:0;transform:translateY(10px);transition:.25s;pointer-events:none;z-index:20}.toast.show{opacity:1;transform:translateY(0)}@media(max-width:1100px){.sidebar{width:205px}.main-content{margin-left:205px}.topbar{padding:0 24px}.view-root{padding:24px}.kpi-grid{grid-template-columns:repeat(2,1fr)}.grid-two,.split-layout{grid-template-columns:1fr}.warehouse-grid{grid-template-columns:1fr 1fr}}@media(max-width:720px){.sidebar{width:64px;padding:18px 9px}.brand{padding:0 7px 22px}.brand-name,.brand-sub,.workspace-switcher,.side-label,.nav-item:not(.active)::after,.nav-item{font-size:0}.nav-item{justify-content:center;padding:0}.nav-icon{font-size:17px}.nav-badge{display:none}.sidebar-footer{justify-content:center;padding-left:0;padding-right:0}.sidebar-footer>div:not(.avatar),.sidebar-footer .more{display:none}.main-content{margin-left:64px}.topbar{padding:0 16px}.search{width:34px;border:0;padding:0}.search span{font-size:18px}.search input{display:none}.view-root{padding:20px 15px}.page-intro{align-items:flex-start;gap:14px;flex-direction:column}.section-grid{grid-template-columns:1fr 1fr}.warehouse-grid{grid-template-columns:1fr}.kpi-grid{gap:10px}.kpi{padding:13px}.kpi-value{font-size:21px}.chart{gap:7px}}
.cpq-modal{width:min(1120px,calc(100vw - 30px));max-height:92vh;overflow:auto}.order-line{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:14px;border:1px solid #e5eaf2;border-radius:12px;padding:14px;margin:10px 0;background:#fbfcff}.cpq-left{min-width:0}.cpq-left>.sku-select{margin-bottom:10px}.qty-label{display:flex;align-items:center;gap:8px;font-size:11px;color:#68758b;margin-bottom:10px}.qty-label input{width:70px}.config-group{border-top:1px solid #edf0f5;padding:10px 0}.config-group-title{font-size:11px;font-weight:800;color:#40506a;margin-bottom:8px}.cpq-field{margin:8px 0}.cpq-label{font-size:11px;color:#6c7890;margin-bottom:5px}.cpq-options{display:flex;flex-wrap:wrap;gap:7px}.cpq-option{border:1px solid #dce3ee;border-radius:8px;background:#fff;padding:8px 11px;color:#33415a;cursor:pointer;font-size:11px}.cpq-option:hover{border-color:#77a6f8}.cpq-option.selected{border-color:#2879ed;background:#edf5ff;color:#1261ca;box-shadow:0 0 0 1px #2879ed inset}.cpq-option b{font-size:10px;color:#e08a2e}.cpq-preview{border-left:1px solid #e7ebf2;padding-left:14px;display:flex;flex-direction:column;gap:8px}.preview-title{font-weight:800;color:#273752}.preview-price{font-size:18px;color:#1d63cb}.preview-price small{display:block;font-size:10px;color:#8792a3;margin-top:4px}.preview-subtitle{font-size:10px;font-weight:700;color:#758299;margin-bottom:4px}.preview-bom{font-size:11px;line-height:1.8;color:#4d5c75;flex:1}.order-total{margin-top:12px;padding:12px;border-radius:8px;background:#f0f5ff;text-align:right;color:#223452}.order-total strong{font-size:18px;color:#165fc5;margin-left:5px}.order-total small{display:block;color:#8a96a8;font-size:10px;margin-top:4px}
/* CPQ polish */
.cpq-modal{background:#f7f9fc}.cpq-modal .modal-head{background:#fff;border-bottom:1px solid #e9edf4;padding:20px 24px;position:sticky;top:0;z-index:3}.cpq-modal form{padding:18px 24px 24px}.cpq-modal .form-field.full>label{font-weight:800;color:#34445f}.order-line{grid-template-columns:minmax(0,1.25fr) minmax(310px,.75fr);background:#fff;border:1px solid #dfe7f2;box-shadow:0 4px 16px rgba(27,55,96,.05);padding:16px;min-height:370px}.cpq-left{padding-right:4px}.cpq-left>.sku-select{height:42px;font-weight:700;background:#f8fbff}.qty-label{margin:10px 0 14px}.qty-label input{height:36px;border:1px solid #d9e1ed;border-radius:7px;padding:0 10px}.config-group{padding:13px 0;border-top:1px solid #eef2f7}.config-group:first-of-type{border-top:0}.config-group-title{font-size:12px;color:#273b5b;letter-spacing:.02em}.cpq-field{margin:12px 0}.cpq-label{font-size:11px;font-weight:700;color:#66758e;margin-bottom:7px}.cpq-options{gap:8px}.cpq-option{min-height:34px;padding:8px 12px;border-radius:9px;transition:.15s ease}.cpq-option.selected{background:#eaf3ff;border-color:#2175eb;box-shadow:0 0 0 2px rgba(33,117,235,.12)}.cpq-preview{border-left:0;border-radius:12px;background:linear-gradient(180deg,#f1f6ff 0%,#fff 65%);padding:18px;min-height:330px;position:sticky;top:70px;box-shadow:inset 0 0 0 1px #dce8fa}.preview-title{font-size:13px;display:flex;align-items:center;gap:6px}.preview-title:before{content:'✓';display:inline-flex;width:20px;height:20px;align-items:center;justify-content:center;border-radius:50%;background:#2577e9;color:#fff;font-size:11px}.preview-price{font-size:25px;margin:9px 0 4px}.preview-price small{font-size:10px}.preview-subtitle{margin-top:13px;padding-top:11px;border-top:1px solid #dbe6f6}.preview-bom{background:#fff;border-radius:8px;padding:9px;min-height:78px;line-height:1.75}.cpq-preview .remove-line{margin-top:auto;width:100%;color:#a04f58;background:#fff5f5;border-color:#f1d6d9}.order-total{box-shadow:0 2px 8px rgba(26,84,164,.06)}
@media(max-width:820px){.order-line{grid-template-columns:1fr}.cpq-preview{position:static;min-height:220px}.cpq-modal form{padding:12px}.cpq-modal .modal-head{padding:16px}}
.order-entry-modal{width:min(900px,calc(100vw - 30px));max-height:88vh;overflow:auto}.modal-step{margin:5px 0 0;color:#7b879a;font-size:11px}.entry-hint{background:#f5f8fd;color:#6c7890;border-radius:8px;padding:10px 12px;font-size:11px;margin-bottom:10px}.order-line-simple{display:grid;grid-template-columns:minmax(0,1fr) 70px 78px 70px;gap:8px;align-items:center;border:1px solid #e1e8f2;border-radius:10px;padding:12px;margin:8px 0;background:#fff}.order-line-simple .line-summary{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #edf1f6;padding-top:9px;color:#34445f;font-size:12px}.line-config{display:block;color:#7b879a;font-size:10px;margin-top:4px}.line-amount{text-align:right;color:#1765cf;font-weight:800}.line-amount small{display:block;color:#8a95a6;font-size:10px;font-weight:400}.cpq-config-modal{width:min(880px,calc(100vw - 30px));max-height:86vh;overflow:auto}.cpq-config-body{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:16px;padding:18px 22px}.cpq-config-right{background:#f2f7ff;border:1px solid #d8e7fb;border-radius:12px;padding:16px;min-height:280px}.cpq-config-right>h3{margin:0 0 12px}.cpq-config-right strong{display:block;font-size:26px;color:#1765cf}.cpq-config-right small{color:#7d8ba1}.cpq-config-right h4{margin:22px 0 8px;color:#65748b;font-size:11px;border-top:1px solid #d8e4f5;padding-top:14px}.cpq-config-right div{font-size:11px;line-height:1.8;color:#40516d}.cpq-config-left .config-group{background:#fff;border:1px solid #e3eaf3;border-radius:10px;padding:12px;margin-bottom:10px}.cpq-config-left .config-group h4{margin:0 0 10px;font-size:12px;color:#2d4060}.cpq-config-left .cpq-option{background:#fff}
@media(max-width:760px){.cpq-config-body{grid-template-columns:1fr}.order-line-simple{grid-template-columns:1fr 70px 78px 70px}}
.product-thumb{overflow:hidden}.product-thumb img{width:100%;height:100%;object-fit:cover;border-radius:8px}.product-media-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:14px;align-items:start}.product-media-editor-grid input,.product-media-editor-grid textarea{width:100%;margin-bottom:8px}.product-image-preview{border:1px solid #e0e7f1;border-radius:10px;background:#f7f9fd;padding:8px;text-align:center;color:#8b96a8;font-size:10px}.product-image-preview img{display:block;width:100%;height:120px;object-fit:cover;border-radius:7px;margin-bottom:6px}.status-filter-bar{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.status-filter{border:1px solid #e0e6ef;background:#fff;color:#6f7c90;border-radius:7px;padding:8px 11px;font-family:inherit;font-size:11px;cursor:pointer}.status-filter:hover,.status-filter.active{color:#1962c6;border-color:#75a8ef;background:#edf5ff;font-weight:700}.order-filters{align-items:center;flex-wrap:wrap}.cpq-product-hero{display:flex;gap:12px;align-items:center;padding:0 22px 14px;border-bottom:1px solid #edf1f6}.cpq-product-hero img{width:72px;height:72px;object-fit:cover;border-radius:10px;border:1px solid #dfe7f2}.cpq-product-hero strong{font-size:14px}.cpq-product-hero p{margin:5px 0 0;color:#7d899c;font-size:11px}.cpq-price-controls{margin-top:15px;border-top:1px solid #d8e4f5;padding-top:13px;display:grid;gap:9px}.cpq-price-controls label{display:grid;gap:5px;color:#63738b;font-size:10px;font-weight:700}.cpq-price-controls input,.cpq-price-controls textarea{font:inherit;border:1px solid #d8e3f1;border-radius:7px;padding:8px;background:#fff;resize:vertical}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.detail-grid span,.order-notes>span{display:block;color:#8e99a9;font-size:10px;margin-bottom:4px}.detail-grid strong{font-size:12px}.order-notes{margin-top:18px;padding-top:14px;border-top:1px solid #eef1f5}.order-notes p{margin:0;color:#536178;font-size:12px;line-height:1.7}.order-approval-panel{border:1px solid #f1d9a8;background:#fffaf0}.approval-lines{font-size:11px;color:#6a5a3c;line-height:1.8}.order-detail-lines{display:grid;gap:10px}.order-detail-line{display:grid;grid-template-columns:66px minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px;border:1px solid #e7edf5;border-radius:10px;background:#fbfcff}.order-detail-line>img{width:66px;height:66px;object-fit:cover;border-radius:9px;border:1px solid #dfe7f2}.order-detail-main{min-width:0}.order-detail-title{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.order-detail-meta{font-size:10px;color:#7b879a;margin-top:6px}.order-detail-config{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px;color:#4d5e78;font-size:11px}.order-detail-remark{margin-top:8px;padding:7px 9px;background:#fff8e9;color:#8a6b32;border-radius:6px;font-size:10px}.order-detail-total{color:#1765cf;font-weight:800;font-size:14px;white-space:nowrap}@media(max-width:760px){.product-media-editor-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}.order-detail-line{grid-template-columns:52px minmax(0,1fr)}.order-detail-line>img{width:52px;height:52px}.order-detail-total{grid-column:2}.cpq-product-hero{padding:0 12px 12px}.status-filter-bar{width:100%}}
.nav-section-label{margin-top:17px}
.cpq-price-controls img{display:block;width:100%;max-width:180px;height:80px;object-fit:cover;border-radius:7px;border:1px solid #d8e3f1;margin-top:3px}
.product-picker-modal{width:min(900px,calc(100vw - 30px));max-height:84vh;overflow:auto}.product-picker-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;min-height:330px}.product-picker-tree{border:1px solid #e3eaf3;border-radius:10px;padding:8px;background:#f8faff;overflow:auto}.product-picker-tree-item{display:flex;align-items:center;gap:7px;width:100%;border:0;background:transparent;border-radius:7px;color:#53647e;padding:9px 8px;padding-left:calc(8px + var(--tree-depth, 0) * 16px);font:700 12px inherit;text-align:left;cursor:pointer}.product-picker-tree-item:hover{background:#edf5ff}.product-picker-tree-item.active{background:#e6f0ff;color:#1765cf}.product-picker-tree-item small{margin-left:auto;color:#94a1b3;font-weight:600}.tree-branch{width:12px;color:#9aa8bb}.product-picker-results{min-width:0}.product-picker-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e8edf4;padding:4px 0 12px;margin-bottom:14px;color:#22304a}.product-picker-heading span{font-size:11px;color:#8b97a8}.product-picker-empty{padding:36px 12px;text-align:center;color:#8b97a8;font-size:12px}.product-picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-picker-card{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #e1e8f2;border-radius:10px;background:#fff;padding:10px;cursor:pointer;transition:.15s}.product-picker-card:hover{border-color:#6fa4f4;background:#f7fbff;transform:translateY(-1px)}.product-picker-card img{width:48px;height:48px;object-fit:cover;border-radius:8px;border:1px solid #dfe7f2;flex:none}.product-picker-card span{min-width:0}.product-picker-card strong,.product-picker-card small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-picker-card strong{font-size:12px;color:#2f3e57}.product-picker-card small{font-size:10px;color:#8b97a8;margin-top:4px}.config-field-edit input{min-width:0}.config-group-edit .config-field-list{overflow-x:auto}.config-group-edit .config-field-edit>input{height:34px;border:1px solid #d9e2ee;border-radius:7px;padding:0 8px;font:11px inherit;color:#394861;background:#fff}.config-group-edit .config-field-edit>input:focus{border-color:#2f7df4;box-shadow:0 0 0 3px #2f7df41c;outline:0}.config-group-edit .config-field-edit:focus-within{background:#f6faff;border-radius:8px;padding:3px;margin-left:-3px;margin-right:-3px}.image-lightbox{position:fixed;inset:0;z-index:40;display:grid;place-items:center;background:rgba(18,29,49,.78);padding:40px;cursor:zoom-out}.image-lightbox img{max-width:min(760px,90vw);max-height:82vh;object-fit:contain;border-radius:12px;box-shadow:0 20px 70px rgba(0,0,0,.35);background:#fff;cursor:default}.image-lightbox-close{position:absolute;right:28px;top:22px;width:36px;height:36px;border:0;border-radius:50%;background:#fff;color:#35435c;font-size:24px;cursor:pointer}
@media(max-width:760px){.product-picker-layout{grid-template-columns:1fr}.product-picker-tree{max-height:180px}.product-picker-grid{grid-template-columns:1fr 1fr}.product-picker-card{padding:8px}.product-picker-card img{width:40px;height:40px}}
.config-group-edit>div[style*="grid-template-columns"],.config-group-edit .config-field-edit{grid-template-columns:90px 90px minmax(150px,1fr) minmax(120px,1fr) minmax(200px,1.25fr) minmax(200px,1.25fr) 28px!important;min-width:950px}.config-group-edit .config-field-list{padding-bottom:3px}
.ops-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.65fr);gap:17px}.ops-table-card{min-width:0}.ops-filters{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.ops-side-card{min-width:0}.ops-action{padding:6px 10px;font-size:10px}.ops-warning{color:#c67d29}.ops-empty{text-align:center;color:#9da6b5;padding:25px!important}.ops-queue{display:flex;flex-direction:column;gap:8px}.ops-queue-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid #eef1f5}.ops-queue-item:last-child{border-bottom:0}.ops-queue-item strong,.ops-queue-item small{display:block}.ops-queue-item strong{font-size:11px;color:#2c3b55}.ops-queue-item small{font-size:10px;color:#8b96a8;margin-top:4px}.ops-side-divider{border-top:1px solid #edf1f5;margin:18px 0}.ops-rules{margin:0;padding-left:17px;color:#66758b;font-size:11px;line-height:2}.ops-progress{width:105px;height:6px;border-radius:4px;background:#edf1f5;overflow:hidden;display:inline-block;vertical-align:middle;margin-right:6px}.ops-progress span{display:block;height:100%;border-radius:4px;background:#3a82ef}@media(max-width:980px){.ops-layout{grid-template-columns:1fr}.ops-side-card{order:-1}}@media(max-width:760px){.ops-filters{justify-content:flex-start}.ops-progress{width:75px}}
.line-summary-product{display:flex;align-items:center;gap:9px;min-width:0}.line-summary-product>img{width:42px;height:42px;object-fit:cover;border-radius:7px;border:1px solid #dfe7f2;flex:none}.line-summary-product>div{min-width:0}.cpq-option{display:inline-flex;align-items:center;gap:7px}.cpq-option-image{width:30px;height:30px;object-fit:cover;border-radius:5px;border:1px solid #dfe7f2}.cpq-selected-images{display:flex;gap:7px;margin:9px 0}.cpq-selected-images img{width:44px;height:44px;object-fit:cover;border-radius:7px;border:1px solid #dfe7f2}
.order-line-product{display:flex;align-items:center;gap:7px;min-width:0;color:#2d3c55}.order-line-product strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-line-product small{margin-left:auto;color:#8a95a6;font-size:10px}
.order-line-simple{display:block}.order-line-simple .line-summary{display:flex;align-items:center;justify-content:space-between;border-top:0;padding-top:0}.line-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;border-top:1px solid #edf1f6;margin-top:10px;padding-top:10px}.line-actions label{display:flex;align-items:center;gap:6px;color:#7b879a;font-size:10px}.line-actions input{width:62px;height:32px;border:1px solid #d9e2ee;border-radius:7px;padding:0 8px;font:12px inherit}.line-actions .btn{padding:8px 13px}

/* Theme switch */
.action-icon{width:16px;height:16px;display:grid;place-items:center}.action-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.theme-toggle{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#53627a;display:grid;place-items:center;cursor:pointer;transition:background .18s,border-color .18s,color .18s,transform .18s}.theme-toggle:hover{background:#f4f7fb;color:var(--blue);border-color:#bfd2ee;transform:translateY(-1px)}.theme-toggle:focus-visible{outline:3px solid #2f7df433;outline-offset:2px}
html[data-theme="dark"]{color-scheme:dark;--ink:#e8eef8;--muted:#97a5b9;--line:#28364b;--shadow:0 10px 30px rgba(0,0,0,.22)}
html[data-theme="dark"] body{background:#0c1420;color:var(--ink)}
html[data-theme="dark"] .sidebar,html[data-theme="dark"] .topbar,html[data-theme="dark"] .card,html[data-theme="dark"] .modal,html[data-theme="dark"] .cpq-modal .modal-head{background:#121c2b;border-color:var(--line)}
html[data-theme="dark"] .topbar{box-shadow:0 1px 0 rgba(255,255,255,.02)}
html[data-theme="dark"] .brand-name,html[data-theme="dark"] .breadcrumb strong,html[data-theme="dark"] .page-intro h1,html[data-theme="dark"] .panel-title h3,html[data-theme="dark"] .mini-value,html[data-theme="dark"] .warehouse-top,html[data-theme="dark"] .dept-name,html[data-theme="dark"] .dept-profit,html[data-theme="dark"] .modal-head h2,html[data-theme="dark"] .product-name,html[data-theme="dark"] .order-detail-title strong,html[data-theme="dark"] .ops-queue-item strong,html[data-theme="dark"] .product-picker-card strong,html[data-theme="dark"] .line-summary-product strong{color:#edf3fc}
html[data-theme="dark"] .nav-item{color:#9aa9bd}html[data-theme="dark"] .nav-item:hover{background:#192538;color:#eef4fc}html[data-theme="dark"] .nav-item.active{background:#172b49;color:#6da8ff}
html[data-theme="dark"] .search,html[data-theme="dark"] .filter-input,html[data-theme="dark"] .filter-select,html[data-theme="dark"] .form-field input,html[data-theme="dark"] .form-field select,html[data-theme="dark"] .form-field textarea,html[data-theme="dark"] .cpq-price-controls input,html[data-theme="dark"] .cpq-price-controls textarea,html[data-theme="dark"] .config-group-edit .config-field-edit>input,html[data-theme="dark"] .line-actions input{background:#0e1826;border-color:#304057;color:#dbe5f2}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#65748a}
html[data-theme="dark"] .theme-toggle,html[data-theme="dark"] .btn-secondary,html[data-theme="dark"] .status-filter,html[data-theme="dark"] .cpq-option,html[data-theme="dark"] .cpq-config-left .cpq-option,html[data-theme="dark"] .product-picker-tab,html[data-theme="dark"] .product-picker-card,html[data-theme="dark"] .product-picker-tree{background:#172233;border-color:#304057;color:#b8c5d7}
html[data-theme="dark"] .theme-toggle:hover,html[data-theme="dark"] .btn-secondary:hover,html[data-theme="dark"] .status-filter:hover{background:#1d2b40;color:#7db0fb;border-color:#44658e}
html[data-theme="dark"] .status-filter.active,html[data-theme="dark"] .product-picker-tab.active,html[data-theme="dark"] .cpq-option.selected{background:#17345a;border-color:#3d8cff;color:#85b8ff}
html[data-theme="dark"] .entry-hint,html[data-theme="dark"] .order-total,html[data-theme="dark"] .product-image-preview,html[data-theme="dark"] .order-detail-line,html[data-theme="dark"] .order-line-simple,html[data-theme="dark"] .cpq-config-left .config-group,html[data-theme="dark"] .warehouse-card,html[data-theme="dark"] .prod-card{background:#101a29;border-color:#293950;color:#b3c0d2}
html[data-theme="dark"] .cpq-config-right{background:#101f33;border-color:#2b4567}html[data-theme="dark"] .cpq-config-right div,html[data-theme="dark"] .cpq-config-right small{color:#9fb0c7}html[data-theme="dark"] .cpq-config-right>h3{color:#e9f1fb}
html[data-theme="dark"] .cpq-preview{background:linear-gradient(180deg,#13243a 0%,#101a29 65%);box-shadow:inset 0 0 0 1px #2b405d}html[data-theme="dark"] .preview-bom{background:#0d1725;color:#b4c2d5}
html[data-theme="dark"] .data-table th{color:#7f8da1;border-color:#29364a}html[data-theme="dark"] .data-table td{color:#aebbd0;border-color:#243145}html[data-theme="dark"] .data-table td:first-child{color:#dbe6f5}
html[data-theme="dark"] .chart{border-color:#2a374a;background:repeating-linear-gradient(to bottom,transparent 0,transparent 48px,#1b2738 49px)}
html[data-theme="dark"] .progress,html[data-theme="dark"] .prod-progress,html[data-theme="dark"] .ops-progress{background:#253247}
html[data-theme="dark"] .activity,html[data-theme="dark"] .dept-row,html[data-theme="dark"] .bom-item,html[data-theme="dark"] .ops-queue-item,html[data-theme="dark"] .ops-side-divider,html[data-theme="dark"] .line-actions,html[data-theme="dark"] .cpq-product-hero,html[data-theme="dark"] .cpq-price-controls{border-color:#273549}
html[data-theme="dark"] .activity-text,html[data-theme="dark"] .bom-name,html[data-theme="dark"] .order-detail-config,html[data-theme="dark"] .product-picker-card small{color:#aab8cb}
html[data-theme="dark"] .close{background:#202d40;color:#aab8ca}html[data-theme="dark"] .modal-backdrop{background:#050a12b8}
html[data-theme="dark"] .tag.gray{background:#222f42;color:#aab7ca}html[data-theme="dark"] .tag.blue{background:#17345a;color:#79b0ff}html[data-theme="dark"] .tag.green{background:#153b33;color:#70d7b7}html[data-theme="dark"] .tag.orange{background:#47341b;color:#f0b760}html[data-theme="dark"] .tag.red{background:#49242b;color:#f394a1}
html[data-theme="dark"] .order-approval-panel{background:#2b2417;border-color:#66532e}html[data-theme="dark"] .order-detail-remark{background:#302818;color:#ddc187}
html[data-theme="dark"] .image-lightbox img{background:#111a28}
.top-actions{position:relative}.top-avatar{cursor:pointer;border:0}.user-menu{position:absolute;right:0;top:43px;z-index:8;width:205px;padding:14px 15px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 14px 35px rgba(24,43,74,.16)}.user-menu strong,.user-menu span,.user-menu small{display:block}.user-menu strong{font-size:12px;color:var(--ink)}.user-menu span{font-size:10px;color:var(--muted);margin-top:4px}.user-menu small{font-size:10px;color:var(--muted)}.user-menu-divider{border-top:1px solid var(--line);margin:11px 0}
html[data-theme="dark"] .user-menu{background:#121c2b;border-color:#304057;box-shadow:0 14px 35px rgba(0,0,0,.35)}html[data-theme="dark"] .user-menu strong{color:#edf3fc}
.brand-copy{min-width:0}.sidebar-toggle{margin-left:auto;width:26px;height:26px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#748198;font-size:18px;line-height:1;cursor:pointer;display:grid;place-items:center}.sidebar-toggle:hover{color:var(--blue);border-color:#b9d0f1;background:#f5f8fd}.app-shell.sidebar-collapsed .sidebar{width:76px;padding-left:10px;padding-right:10px}.app-shell.sidebar-collapsed .main-content{margin-left:76px}.app-shell.sidebar-collapsed .brand{padding-left:7px;padding-right:7px;justify-content:center}.app-shell.sidebar-collapsed .brand-copy,.app-shell.sidebar-collapsed .side-label{display:none}.app-shell.sidebar-collapsed .sidebar-toggle{margin-left:0}.app-shell.sidebar-collapsed .nav-item{justify-content:center;padding-left:0;padding-right:0;font-size:0}.app-shell.sidebar-collapsed .nav-item .nav-icon{font-size:16px}.app-shell.sidebar-collapsed .nav-badge{display:none}.user-menu-logout{display:block;width:100%;margin-top:12px;padding:8px 0;border:1px solid #f0d7dc;border-radius:7px;background:#fff7f8;color:#c65a68;font:600 11px inherit;cursor:pointer}.user-menu-logout:hover{background:#ffeff1}.app-shell.sidebar-collapsed .sidebar-toggle{background:#f5f8fd}
html[data-theme="dark"] .sidebar-toggle{background:#172233;border-color:#304057;color:#b8c5d7}html[data-theme="dark"] .sidebar-toggle:hover{background:#1d2b40;color:#7db0fb}html[data-theme="dark"] .user-menu-logout{background:#351f27;border-color:#63313e;color:#ff9da9}html[data-theme="dark"] .user-menu-logout:hover{background:#48232e}
@media(max-width:720px){.sidebar-toggle{display:none}.app-shell.sidebar-collapsed .sidebar{width:64px}.app-shell.sidebar-collapsed .main-content{margin-left:64px}}
.brand-mark{flex:0 0 31px}.sidebar{overflow:hidden;transition:width .24s ease,padding .24s ease}.main-content{transition:margin-left .24s ease}.brand{transition:padding .24s ease,gap .24s ease}.brand-copy{max-width:160px;overflow:hidden;white-space:nowrap;transition:opacity .18s ease,max-width .24s ease}.sidebar-toggle{flex:0 0 26px;transition:width .2s ease,background .18s,border-color .18s,color .18s,transform .18s}.nav-item{transition:background .2s,color .2s,font-size .2s,padding .2s}.sidebar-bottom-controls{margin-top:auto;padding:16px 12px 0;border-top:1px solid var(--line);display:flex;justify-content:center}.sidebar-bottom-controls .sidebar-toggle{margin-left:0}.app-shell.sidebar-collapsed .brand{gap:4px;padding-left:0;padding-right:0;justify-content:center}.app-shell.sidebar-collapsed .brand-copy{display:block;max-width:0;opacity:0}.app-shell.sidebar-collapsed .sidebar{padding-left:8px;padding-right:8px}.app-shell.sidebar-collapsed .sidebar-bottom-controls{padding-left:0;padding-right:0;justify-content:center}.app-shell.sidebar-collapsed .sidebar-toggle{width:22px;flex-basis:22px}
.nav-icon{width:20px;height:20px;display:grid;place-items:center;flex:0 0 20px;font-size:0;color:#8190a6}.nav-icon svg{width:17px;height:17px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.nav-item:hover .nav-icon{color:#4f8ff7}.nav-item.active .nav-icon{color:var(--blue)}.app-shell.sidebar-collapsed .nav-item .nav-icon{width:20px;height:20px;flex-basis:20px}.app-shell.sidebar-collapsed .nav-icon svg{width:18px;height:18px}
.detail-link{border:0;background:transparent;padding:0;color:#2563c5;font:600 11px inherit;cursor:pointer}.detail-link:hover{text-decoration:underline}.detail-modal{width:min(680px,calc(100vw - 30px));max-height:86vh;overflow:auto}.detail-modal-body{font-size:12px;color:#516079}.detail-modal-body .detail-grid{margin:0}.detail-subsection{margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.detail-subsection>span,.detail-progress span{display:block;color:#8a96a8;font-size:10px;margin-bottom:7px}.detail-subsection p{margin:0;line-height:1.8}.detail-progress{margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.detail-progress>div:first-child{display:flex;justify-content:space-between;align-items:center}.detail-progress strong{font-size:13px;color:var(--ink)}.detail-alert{margin-top:17px;padding:11px 13px;border-radius:8px;color:#b46d17;background:#fff6e8;border:1px solid #f5dcae;font-size:11px}.detail-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:12px;margin-bottom:17px}
.workflow-panel{overflow:hidden}.workflow-panel .panel-title{align-items:flex-start}.workflow-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.workflow-actions .btn{padding:7px 11px;font-size:10px}.workflow-muted{font-size:10px;color:#9aa5b5}.workflow-timeline{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;margin:20px 4px 5px;position:relative}.workflow-timeline:before{content:"";height:2px;background:#e6ebf2;position:absolute;left:5%;right:5%;top:12px}.workflow-step{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:7px;color:#9aa5b5;font-size:10px;text-align:center}.workflow-step i{width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#f4f6fa;border:1px solid #dbe3ee;color:#8d98aa;font-style:normal;font-size:10px;font-weight:700}.workflow-step.done i{background:#e8f8f1;border-color:#a9e3cb;color:#1ca77a}.workflow-step.done,.workflow-step.active{color:#2e405e;font-weight:600}.workflow-step.active i{background:#e9f2ff;border-color:#6da6fa;color:#256fd0;box-shadow:0 0 0 4px #e9f2ff}.workflow-step.active span{color:#256fd0}.workflow-exception{margin:15px 0 0;padding:10px 12px;background:#fff6e8;border:1px solid #f3d9a7;color:#b16d16;border-radius:8px;font-size:11px}.workflow-modal-section{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.workflow-modal-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.workflow-modal-title strong{font-size:12px;color:var(--ink)}.workflow-modal-title span{font-size:10px;color:#8a96a8}.workflow-modal-section .workflow-timeline{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:14px}.workflow-modal-section .workflow-actions{justify-content:flex-start;margin-top:14px}
html[data-theme="dark"] .detail-link{color:#79b0ff}html[data-theme="dark"] .detail-subsection,html[data-theme="dark"] .detail-progress,html[data-theme="dark"] .detail-tabs{border-color:#28364b}html[data-theme="dark"] .detail-progress strong{color:#edf3fc}html[data-theme="dark"] .detail-alert{background:#3e2d16;border-color:#715222;color:#f0bd69}
html[data-theme="dark"] .workflow-timeline:before{background:#304057}html[data-theme="dark"] .workflow-step i{background:#1c293b;border-color:#3a4c65;color:#94a5bc}html[data-theme="dark"] .workflow-step.done i{background:#153b33;border-color:#2d765c;color:#70d7b7}html[data-theme="dark"] .workflow-step.active i{background:#17345a;border-color:#3d8cff;color:#79b0ff;box-shadow:0 0 0 4px #17345a}html[data-theme="dark"] .workflow-step.done,html[data-theme="dark"] .workflow-step.active{color:#dce7f5}html[data-theme="dark"] .workflow-exception{background:#3e2d16;border-color:#715222;color:#f0bd69}html[data-theme="dark"] .workflow-modal-section{border-color:#28364b}
.top-work-items-toggle{position:relative;width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#53627a;display:grid;place-items:center;font:600 17px/1 inherit;cursor:pointer}.top-work-items-toggle:hover{background:#f4f7fb;color:var(--blue);border-color:#bfd2ee}.top-work-items-toggle b{position:absolute;right:-5px;top:-6px;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:#e45b6a;color:#fff;font:700 9px/16px 'DM Sans',sans-serif}.notification-popover{position:absolute;right:47px;top:43px;z-index:9;width:350px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 16px 42px rgba(24,43,74,.16);overflow:hidden}.notification-popover-head{display:flex;justify-content:space-between;align-items:flex-start;padding:15px 16px;border-bottom:1px solid var(--line)}.notification-popover-head strong{display:block;font-size:13px;color:var(--ink)}.notification-popover-head small{display:block;margin-top:4px;color:var(--muted);font-size:10px}.notification-read-all,.notification-all-link{border:0;background:transparent;color:var(--blue);font:600 10px inherit;cursor:pointer}.notification-list{max-height:330px;overflow:auto}.notification-item{width:100%;display:flex;gap:10px;text-align:left;padding:12px 16px;border:0;border-bottom:1px solid #f0f2f6;background:#fff;cursor:pointer}.notification-item:hover,.notification-page-item:hover{background:#f7faff}.notification-item.unread{background:#f5f9ff}.notification-item strong,.notification-item small{display:block}.notification-item strong{font-size:11px;color:#2e3c55}.notification-item small{margin-top:4px;color:#7b879a;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notification-dot{width:8px;height:8px;border-radius:50%;background:#a9b5c5;flex:none;margin-top:4px}.notification-dot.approval{background:#f3a63b}.notification-dot.quality{background:#e45b6a}.notification-dot.logistics{background:#2f7df4}.notification-dot.activity{background:#8b5cf6}.notification-all-link{width:100%;padding:11px;border-top:1px solid var(--line)}.notification-empty{padding:25px;text-align:center;color:#9aa5b5;font-size:11px}.notification-page-card{min-height:360px}.notification-filters,.approval-filters{margin-bottom:15px}.notification-page-list{display:flex;flex-direction:column}.notification-page-item{display:flex;align-items:flex-start;gap:10px;width:100%;padding:14px 8px;border:0;border-bottom:1px solid #eef1f5;background:#fff;text-align:left;cursor:pointer}.notification-page-item.unread{background:#f7faff}.notification-page-content{flex:1;min-width:0}.notification-page-content strong,.notification-page-content small{display:block}.notification-page-content strong{font-size:12px;color:#2b3952}.notification-page-content small{font-size:11px;color:#78869a;margin-top:5px}.notification-page-meta{font-size:10px;color:#9aa5b5;white-space:nowrap}.approval-filters .status-filter span{margin-left:5px;color:#8c98aa}.approval-table td{vertical-align:top}.approval-action{padding:7px 10px;font-size:10px}.ops-empty{text-align:center;color:#9da6b5;padding:25px!important}
html[data-theme="dark"] .top-work-items-toggle,html[data-theme="dark"] .notification-popover,html[data-theme="dark"] .notification-item,html[data-theme="dark"] .notification-page-item{background:#121c2b;border-color:#28364b;color:#b8c5d7}html[data-theme="dark"] .top-work-items-toggle:hover,html[data-theme="dark"] .notification-item:hover,html[data-theme="dark"] .notification-page-item:hover{background:#19283d}html[data-theme="dark"] .notification-item.unread,html[data-theme="dark"] .notification-page-item.unread{background:#142943}html[data-theme="dark"] .notification-popover-head,html[data-theme="dark"] .notification-item,html[data-theme="dark"] .notification-page-item{border-color:#28364b}html[data-theme="dark"] .notification-popover-head strong,html[data-theme="dark"] .notification-item strong,html[data-theme="dark"] .notification-page-content strong{color:#edf3fc}html[data-theme="dark"] .notification-item small,html[data-theme="dark"] .notification-page-content small,html[data-theme="dark"] .notification-page-meta{color:#9aaac0}
@media(max-width:600px){.notification-popover{right:-55px;width:min(350px,calc(100vw - 24px))}}

/* Image upload */
.image-upload{margin:7px 0 8px}.image-upload-input{position:absolute;width:1px;height:1px;opacity:0}.image-upload-label{display:flex;align-items:center;gap:10px;min-height:58px;padding:10px 12px;border:1px dashed #c9d7ea;border-radius:9px;background:#f8fbff;color:#53647d;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}.image-upload-label:hover,.image-upload.dragover .image-upload-label{background:#eef5ff;border-color:#4d8df4;box-shadow:0 0 0 3px #2f7df414}.image-upload-input:focus-visible + .image-upload-label{outline:3px solid #2f7df433;outline-offset:2px}.image-upload-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#e8f1ff;color:var(--blue);flex:none}.image-upload-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.image-upload-copy{display:grid;gap:3px;min-width:0}.image-upload-copy strong{font-size:11px;color:#34445e}.image-upload-copy small{font-size:9px;color:#8a98ac}.image-upload-action{margin-left:auto;padding:6px 9px;border:1px solid #c8d9f2;border-radius:6px;background:#fff;color:#266dce;font-size:10px;font-weight:700;white-space:nowrap}.image-upload-name{display:block;min-height:15px;padding:0 2px;color:#8996a9;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.image-upload-field{display:grid;gap:5px}.image-upload-field-label{color:#63738b;font-size:10px;font-weight:700}.image-upload-field .image-upload{margin-top:0}.image-upload-field>#cpq-line-image-preview{display:block;width:100%;max-height:130px;object-fit:cover;border:1px solid #d8e3f1;border-radius:8px;background:#f7f9fd;padding:4px}.cpq-price-controls .image-upload-label{font-weight:400}.cpq-price-controls .image-upload-action{font:700 10px inherit}html[data-theme="dark"] .image-upload-label{background:#101c2b;border-color:#3a506f;color:#b8c5d7}html[data-theme="dark"] .image-upload-label:hover,html[data-theme="dark"] .image-upload.dragover .image-upload-label{background:#142b49;border-color:#5b96ed}html[data-theme="dark"] .image-upload-icon{background:#193252;color:#85b8ff}html[data-theme="dark"] .image-upload-copy strong{color:#e5edf8}html[data-theme="dark"] .image-upload-copy small,html[data-theme="dark"] .image-upload-name{color:#9aaac0}html[data-theme="dark"] .image-upload-action{background:#172536;border-color:#3b5b83;color:#85b8ff}html[data-theme="dark"] .image-upload-field>#cpq-line-image-preview{background:#101a29;border-color:#304057}
@media(max-width:720px){.workflow-timeline{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:15px}.workflow-timeline:before{display:none}.workflow-actions{justify-content:flex-start}}
.login-screen[aria-hidden="true"]{display:none}
html[data-auth="authenticated"] .login-screen{display:none}
.workflow-panel>.workflow-timeline{grid-template-columns:repeat(auto-fit,minmax(78px,1fr))}
.workflow-history{margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.workflow-history-row{display:grid;grid-template-columns:12px 1fr auto;gap:9px;align-items:start;padding:8px 0}.workflow-history-row>i{width:7px;height:7px;margin-top:4px;border-radius:50%;background:#76a9ee;box-shadow:0 0 0 3px #eaf2ff}.workflow-history-row strong,.workflow-history-row span{display:block}.workflow-history-row strong{font-size:11px;color:var(--ink)}.workflow-history-row span,.workflow-history-row time{font-size:10px;color:#8a96a8}.workflow-history-row time{white-space:nowrap}html[data-theme="dark"] .workflow-history{border-color:#28364b}html[data-theme="dark"] .workflow-history-row>i{background:#79b0ff;box-shadow:0 0 0 3px #17345a}
.config-group-edit{border:1px solid #e2e8f1;border-radius:12px;margin-bottom:12px;background:#fbfcff;overflow:hidden}.config-group-head,.config-field-head{display:flex;align-items:center;gap:9px}.config-group-head{padding:12px 14px;background:#f5f8fd;border-bottom:1px solid #e7edf5}.config-group-head input{flex:1;font-weight:700;background:transparent;border-color:transparent}.config-group-head input:focus{background:#fff;border-color:#b8cbea}.config-group-count,.config-field-count{color:#8a97aa;font-size:10px;white-space:nowrap}.config-group-head .btn,.config-field-head .btn{white-space:nowrap;padding:7px 10px;font-size:10px}.config-group-toggle,.config-field-toggle{width:24px;height:24px;border:1px solid #d9e3ef;border-radius:7px;background:#fff;color:#52719a;font-size:16px;line-height:1;cursor:pointer;display:grid;place-items:center;flex:none}.config-group-toggle:hover,.config-field-toggle:hover{color:#1765cf;border-color:#8db5eb}.config-group-body{padding:0 14px 14px}.config-group-collapsed .config-group-head{border-bottom:0}.config-group-collapsed .config-group-body,.config-field-collapsed .config-field-body{display:none}.config-field-edit{border:1px solid #e7edf5;border-radius:10px;background:#fff;padding:11px;margin:10px 0}.config-field-head{justify-content:space-between;margin-bottom:9px}.config-field-title{display:grid;grid-template-columns:minmax(120px,.65fr) minmax(140px,1fr);gap:7px;flex:1}.config-field-title input{font-size:11px;font-weight:600}.config-option-head,.config-option-edit{display:grid;grid-template-columns:minmax(120px,1.2fr) 78px minmax(110px,1fr) minmax(110px,1fr) 62px 72px minmax(130px,1.2fr) 30px;gap:7px;align-items:center}.config-option-head{padding:0 3px 5px;color:#8d9aae;font-size:10px}.config-option-edit{margin:6px 0}.config-option-edit input,.config-option-edit select{min-width:0;padding:8px 7px;font-size:10px}.config-option-edit .btn{padding:0;height:31px}.config-field-edit>.add-config-option,.config-group-edit>.add-config-field{margin-top:8px;padding:6px 10px;font-size:10px}.config-group-edit input,.config-field-edit input{max-width:100%}html[data-theme="dark"] .config-group-edit,html[data-theme="dark"] .config-field-edit{background:#111c2b;border-color:#304057}html[data-theme="dark"] .config-group-head{background:#182538;border-color:#304057}html[data-theme="dark"] .config-field-edit{background:#152235}html[data-theme="dark"] .config-option-head{color:#9aaac0}@media(max-width:900px){.config-option-head{display:none}.config-option-edit{grid-template-columns:1fr 78px 1fr 1fr;gap:6px;padding:8px;border:1px solid #edf1f6;border-radius:8px}.config-option-edit input:nth-of-type(5),.config-option-edit select,.config-option-edit input:nth-of-type(6){grid-column:auto}.config-option-edit input[data-config-option-image]{grid-column:1 / span 3}.config-option-edit .remove-config-option{grid-column:4;grid-row:2}.config-field-title{grid-template-columns:1fr}.config-group-head{align-items:stretch;flex-direction:column}}

/* Login */
html[data-auth="guest"]{overflow:hidden}html[data-auth="guest"] .app-shell{display:none}.login-screen{position:fixed;inset:0;z-index:50;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(430px,.92fr);background:#0b1223;color:#eef3ff}.login-visual{position:relative;min-width:0;background-image:url('/assets/login/fanreal-login-hero.png');background-size:cover;background-position:center;overflow:hidden}.login-visual-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,13,31,.88) 0%,rgba(8,14,35,.48) 49%,rgba(8,13,29,.08) 100%),linear-gradient(0deg,rgba(6,10,25,.72),transparent 48%)}.login-visual-content{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;padding:42px 52px 34px}.login-brand,.login-mobile-brand{display:flex;align-items:center;gap:10px}.login-brand-mark{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(140deg,#2f7df4,#8b5cf6);box-shadow:0 8px 20px #2f7df455;color:#fff;font-size:17px;font-weight:800}.login-brand strong,.login-mobile-brand strong{display:block;font:800 15px/1 'DM Sans',sans-serif;letter-spacing:.16em}.login-brand small,.login-mobile-brand small{display:block;margin-top:5px;color:#aeb9d2;font:500 8px/1 'DM Sans',sans-serif;letter-spacing:.14em}.login-visual-copy{margin-top:auto;margin-bottom:14%;max-width:470px}.login-kicker,.login-visual-copy>span{color:#8bb6ff;font:700 10px/1 'DM Sans',sans-serif;letter-spacing:.16em}.login-visual-copy h2{margin:16px 0 15px;color:#fff;font-size:clamp(30px,3.2vw,48px);line-height:1.17;letter-spacing:-.055em}.login-visual-copy em{font-style:normal;color:#d5c7ff}.login-visual-copy p{margin:0;color:#b7c1d5;font-size:13px;line-height:1.9}.login-visual-foot{display:flex;justify-content:space-between;color:#73809d;font:500 9px/1 'DM Sans',sans-serif;letter-spacing:.08em;text-transform:uppercase}.login-panel{display:flex;align-items:center;justify-content:center;background:#f8faff;color:#172033}.login-panel-inner{width:min(100%,420px);padding:48px 56px}.login-mobile-brand{display:none}.login-heading{margin-bottom:30px}.login-heading .login-kicker{display:block;margin-bottom:13px;color:#6283b3}.login-heading h1{margin:0;color:#172033;font-size:31px;letter-spacing:-.06em}.login-heading p{margin:8px 0 0;color:#7d8aa0;font-size:12px}.login-form{display:grid;gap:18px}.login-field{display:grid;gap:8px}.login-field>label{color:#57677f;font-size:11px;font-weight:700}.login-input-wrap{position:relative;display:flex;align-items:center}.login-input-wrap>svg{position:absolute;left:14px;width:16px;height:16px;fill:none;stroke:#8fa0b8;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.login-input-wrap input{width:100%;height:46px;padding:0 42px;border:1px solid #dce4ef;border-radius:9px;background:#fff;color:#1b263a;font:500 12px inherit;outline:0;transition:border-color .18s,box-shadow .18s}.login-input-wrap input::placeholder{color:#a8b2c1}.login-input-wrap input:focus{border-color:#6c9ff2;box-shadow:0 0 0 4px #2f7df414}.password-toggle{position:absolute;right:11px;border:0;background:transparent;color:#6a85af;font:600 10px inherit;cursor:pointer}.login-options{display:flex;justify-content:space-between;align-items:center;margin-top:-3px}.remember-option{display:flex;align-items:center;gap:7px;color:#7b879b;font-size:10px;cursor:pointer}.remember-option input{width:14px;height:14px;margin:0;accent-color:var(--blue)}.login-link{padding:0;border:0;background:transparent;color:#4a7ec9;font:600 10px inherit;cursor:pointer}.login-link:hover{text-decoration:underline}.login-submit{height:47px;margin-top:3px;border:0;border-radius:9px;background:linear-gradient(110deg,#2f7df4,#5c6ce7);color:#fff;font:700 12px inherit;letter-spacing:.02em;cursor:pointer;box-shadow:0 10px 22px #2f7df42b;transition:transform .18s,box-shadow .18s}.login-submit span{margin-left:7px;font-size:16px;vertical-align:-1px}.login-submit:hover{transform:translateY(-1px);box-shadow:0 13px 26px #2f7df43b}.login-error{min-height:14px;margin:-9px 0 0;color:#c85b6b;font-size:10px}.login-demo-note{display:flex;align-items:center;gap:7px;margin-top:24px;color:#98a3b4;font-size:10px}.login-demo-dot{width:6px;height:6px;border-radius:50%;background:#32b487;box-shadow:0 0 0 4px #32b4871c}.login-panel-foot{display:flex;justify-content:space-between;margin-top:54px;padding-top:15px;border-top:1px solid #e6ebf2;color:#a0abbc;font:500 9px/1 'DM Sans',sans-serif;letter-spacing:.05em}html[data-theme="dark"] .login-panel{background:#101a29;color:#e8eef8}html[data-theme="dark"] .login-heading h1{color:#edf3fc}html[data-theme="dark"] .login-heading p{color:#9aaac0}html[data-theme="dark"] .login-heading .login-kicker{color:#87b5ff}html[data-theme="dark"] .login-field>label{color:#acbad0}html[data-theme="dark"] .login-input-wrap input{background:#172536;border-color:#304057;color:#edf3fc}html[data-theme="dark"] .login-input-wrap input::placeholder{color:#7789a3}html[data-theme="dark"] .login-input-wrap>svg{stroke:#91a4c0}html[data-theme="dark"] .login-panel-foot{border-color:#28364b;color:#8191aa}html[data-theme="dark"] .login-demo-note{color:#8697b0}@media(max-width:900px){.login-screen{grid-template-columns:1fr 1fr}.login-visual-content{padding-left:32px;padding-right:32px}.login-panel-inner{padding-left:35px;padding-right:35px}}@media(max-width:720px){html[data-auth="guest"]{overflow:auto}.login-screen{position:relative;min-height:100vh;grid-template-columns:1fr;grid-template-rows:230px 1fr}.login-visual-content{padding:25px 24px 20px}.login-visual-copy{margin:30px 0 0}.login-visual-copy h2{margin:10px 0 0;font-size:28px}.login-visual-copy p,.login-visual-foot{display:none}.login-panel{align-items:flex-start}.login-panel-inner{padding:30px 24px 28px}.login-mobile-brand{display:flex;margin-bottom:31px}.login-mobile-brand .login-brand-mark{width:29px;height:29px;font-size:15px}.login-mobile-brand strong{font-size:14px}.login-heading{margin-bottom:24px}.login-heading h1{font-size:28px}.login-panel-foot{margin-top:40px}}
/* Form controls */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea) {
  border: 1px solid #dce4ef;
  border-radius: 9px;
  background: #fff;
  color: #25334b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

/* WAREHOUSE-OPERATION-LAYOUT-492: reuse the payable workspace layout for warehouse operations. */
.inventory-workspace-page {
  width: 100%;
  min-width: 0;
}

.inventory-workspace .inventory-workspace-toolbar.finance-payable-toolbar {
  margin: 16px 0 14px;
}

.inventory-workspace .inventory-document-toolbar.finance-payable-toolbar {
  grid-template-columns: minmax(280px, 1fr) minmax(140px, 220px) minmax(140px, 220px) auto;
}

.inventory-workspace .inventory-transfer-toolbar.finance-payable-toolbar {
  grid-template-columns: minmax(280px, 1fr) minmax(160px, 240px) auto;
}

.inventory-workspace .inventory-workspace-table {
  min-width: 1040px;
}

.inventory-workspace .inventory-documents-table th:nth-child(1) { width: 17%; }
.inventory-workspace .inventory-documents-table th:nth-child(2) { width: 17%; }
.inventory-workspace .inventory-documents-table th:nth-child(3) { width: 14%; }
.inventory-workspace .inventory-documents-table th:nth-child(4) { width: 13%; }
.inventory-workspace .inventory-documents-table th:nth-child(5) { width: 10%; }
.inventory-workspace .inventory-documents-table th:nth-child(6) { width: 20%; }
.inventory-workspace .inventory-documents-table th:nth-child(7) { width: 92px; }
.inventory-workspace .inventory-transfers-table th:nth-child(1) { width: 17%; }
.inventory-workspace .inventory-transfers-table th:nth-child(2) { width: 12%; }
.inventory-workspace .inventory-transfers-table th:nth-child(3),
.inventory-workspace .inventory-transfers-table th:nth-child(4) { width: 13%; }
.inventory-workspace .inventory-transfers-table th:nth-child(5) { width: 10%; }
.inventory-workspace .inventory-transfers-table th:nth-child(6) { width: 10%; }
.inventory-workspace .inventory-transfers-table th:nth-child(7) { width: 18%; }
.inventory-workspace .inventory-transfers-table th:nth-child(8) { width: 92px; }

.inventory-workspace .inventory-workspace-table td:last-child .btn {
  min-height: 34px;
}

/* INVENTORY-WORKSPACE-636: fit the shared filter and table pattern at desktop width. */
[data-inventory-safety-root] .inventory-movement-toolbar.finance-payable-toolbar[data-safety-filters] {
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(120px, .85fr)) 80px 80px;
}
[data-inventory-safety-root] [data-safety-filters] .btn { white-space: nowrap; align-self: end; justify-content: center; height: 40px; }
[data-inventory-safety-root] [data-safety-filters] .inventory-movement-filter-field > input {
  border: 1px solid #dce4ef;
  border-radius: 9px;
  background: #fff;
}
html[data-theme="dark"] [data-inventory-safety-root] [data-safety-filters] .inventory-movement-filter-field > input {
  border-color: #304057;
  background: #0e1826;
}
[data-inventory-safety-root] .inventory-safety-filter-action { width: 80px; min-width: 80px; justify-self: center; }
[data-inventory-safety-root] [data-supply-factory-field][hidden] { display: none; }
[data-inventory-safety-root] .warehouse-row-actions { flex-wrap: nowrap; }
.inventory-safety-dialog .inventory-safety-item-field { grid-column: 1 / -1; }
.inventory-safety-dialog [data-safety-item-picker] { width: 100%; }
.inventory-safety-dialog .inventory-safety-fixed-item { padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; }
[data-inventory-safety-root] .inventory-workspace-table { min-width: 0; width: 100%; table-layout: fixed; }
[data-inventory-safety-root] .inventory-workspace-table :is(th, td) { overflow-wrap: anywhere; }
[data-inventory-safety-root] .inventory-workspace-table th:nth-child(1) { width: 15%; }
[data-inventory-safety-root] .inventory-workspace-table th:nth-child(2) { width: 9%; }
[data-inventory-safety-root] .inventory-workspace-table th:nth-child(3),
[data-inventory-safety-root] .inventory-workspace-table th:nth-child(4),
[data-inventory-safety-root] .inventory-workspace-table th:nth-child(6) { width: 9%; }
[data-inventory-safety-root] .inventory-workspace-table th:nth-child(5) { width: 10%; }
[data-inventory-safety-root] .inventory-workspace-table th:nth-child(7) { width: 11%; }
[data-inventory-safety-root] .inventory-workspace-table th:nth-child(8) { width: 11%; }
[data-inventory-safety-root] .inventory-workspace-table th:nth-child(9) { width: 17%; }
@media (max-width: 1350px) {
  [data-inventory-safety-root] .inventory-movement-toolbar.finance-payable-toolbar[data-safety-filters] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  [data-inventory-safety-root] .inventory-movement-toolbar.finance-payable-toolbar[data-safety-filters] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-inventory-safety-root] .inventory-workspace-table { min-width: 960px; }
}
@media (max-width: 720px) {
  [data-inventory-safety-root] .inventory-movement-toolbar.finance-payable-toolbar[data-safety-filters] { grid-template-columns: 1fr; }
  [data-inventory-safety-root] [data-safety-filters] .btn { justify-content: center; }
}

/* WAREHOUSE-MOVEMENT-LAYOUT-495 / INV-MOVEMENT-LAYOUT-503: align the controls and keep the list in one panel. */
.inventory-movement-page {
  width: 100%;
  min-width: 0;
}

.inventory-movement-toolbar.finance-payable-toolbar {
  grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(120px, .8fr)) repeat(2, minmax(135px, .85fr)) 80px;
  column-gap: 12px;
  row-gap: 12px;
  align-items: end;
  margin: 0 0 18px;
}

.inventory-scrap-toolbar.inventory-movement-toolbar.finance-payable-toolbar {
  grid-template-columns: minmax(210px, 1.35fr) repeat(2, minmax(120px, .8fr)) repeat(2, minmax(135px, .85fr)) 80px;
}

.inventory-scrap-toolbar .inventory-movement-filter-field > input {
  border: 1px solid #dce4ef;
  border-radius: 9px;
  background: #fff;
}
html[data-theme="dark"] .inventory-scrap-toolbar .inventory-movement-filter-field > input {
  border-color: #304057;
  background: #0e1826;
}

.inventory-scrap-table.finance-table {
  min-width: 560px;
  table-layout: fixed;
}

.inventory-scrap-table th:nth-child(2) { width: 190px; }
.inventory-scrap-table th:nth-child(3) { width: 150px; }

.inventory-movement-list-panel > .detail-alert {
  margin-bottom: 18px;
}

.inventory-movement-toolbar > * {
  min-width: 0;
}

.inventory-movement-filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--finance-muted, var(--muted));
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

.inventory-movement-filter-field > span {
  line-height: 1.2;
}

.inventory-movement-toolbar .inventory-movement-filter-field > :is(input, select),
.inventory-movement-toolbar .inventory-movement-filter-field .select-trigger {
  width: 100%;
  min-width: 0;
  height: 40px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
}

.inventory-movement-toolbar .inventory-movement-filter-field > input::placeholder {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
}

.inventory-movement-toolbar .finance-filter-reset {
  width: 80px;
  min-width: 80px;
  justify-self: end;
}

.inventory-movement-table {
  min-width: 1240px;
  table-layout: fixed;
  font-family: 'Noto Sans SC', 'DM Sans', sans-serif;
}

.inventory-movement-item {
  display: grid;
  gap: 4px;
}

.inventory-movement-item small { margin: 0; }
.inventory-movement-table :is(th, td, strong, small, .tag) {
  font-family: inherit;
}

.inventory-movement-table.finance-payable-table th:nth-child(1) { width: 10%; }
.inventory-movement-table.finance-payable-table th:nth-child(2) { width: 16%; }
.inventory-movement-table.finance-payable-table th:nth-child(3) { width: 7%; }
.inventory-movement-table.finance-payable-table th:nth-child(4) { width: 10%; }
.inventory-movement-table.finance-payable-table th:nth-child(5),
.inventory-movement-table.finance-payable-table th:nth-child(6),
.inventory-movement-table.finance-payable-table th:nth-child(7) { width: 5.5%; }
.inventory-movement-table.finance-payable-table th:nth-child(5),
.inventory-movement-table.finance-payable-table th:nth-child(6),
.inventory-movement-table.finance-payable-table th:nth-child(7) {
  white-space: normal;
  line-height: 1.35;
}
.inventory-movement-table.finance-payable-table th:nth-child(8) { width: 18%; }
.inventory-movement-table.finance-payable-table th:nth-child(9) { width: 15%; }
.inventory-movement-table.finance-payable-table th:nth-child(10) { width: 7.5%; }

.inventory-movement-table.finance-payable-table th:last-child,
.inventory-movement-table.finance-payable-table td:last-child:not(.finance-empty) {
  position: static;
  min-width: 0;
  max-width: none;
  background: transparent;
  box-shadow: none;
}

.inventory-workspace .pe-pagination {
  margin-top: 14px;
  padding-right: 0;
  padding-left: 0;
}

@media (max-width: 1100px) {
  .inventory-scrap-toolbar.inventory-movement-toolbar.finance-payable-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-workspace .inventory-document-toolbar.finance-payable-toolbar,
  .inventory-workspace .inventory-transfer-toolbar.finance-payable-toolbar,
  .inventory-movement-toolbar.finance-payable-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-movement-toolbar .finance-filter-reset {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }
}

@media (max-width: 720px) {
  .inventory-scrap-toolbar.inventory-movement-toolbar.finance-payable-toolbar {
    grid-template-columns: 1fr;
  }

  .inventory-workspace .inventory-document-toolbar.finance-payable-toolbar,
  .inventory-workspace .inventory-transfer-toolbar.finance-payable-toolbar,
  .inventory-movement-toolbar.finance-payable-toolbar {
    grid-template-columns: 1fr;
  }

  .inventory-workspace .inventory-workspace-table {
    min-width: 0;
  }

  .inventory-workspace .inventory-workspace-table td:last-child .btn {
    width: auto;
  }

}

/* WAREHOUSE-INVENTORY-DOCUMENT-396: multi-item rows inside the existing dialog vocabulary. */
.inventory-document-dialog { width:min(1120px, calc(100vw - 48px)); max-height:calc(100vh - 48px); }
.inventory-document-detail-dialog { width:min(1040px, calc(100vw - 48px)); max-height:calc(100vh - 48px); }
.inventory-document-lines { margin-top:20px; padding:18px; border:1px solid var(--line); border-radius:16px; background:var(--panel-bg,#fff); }
.inventory-document-lines .panel-heading { margin-bottom:14px; }
.inventory-document-line { display:grid; grid-template-columns:minmax(0,2fr) minmax(110px,.7fr) minmax(0,1.2fr) auto; gap:12px; align-items:end; padding:14px 0; border-top:1px solid var(--line); }
.inventory-document-line:first-child { border-top:0; }
.inventory-document-line .btn { margin-bottom:1px; }
.inventory-document-line>.form-field { min-width:0; }
.inventory-document-line input,.inventory-document-line select,.inventory-document-line .cc-value-picker { width:100%; min-width:0; box-sizing:border-box; }
.inventory-current-stock { display:block; margin-top:5px; color:var(--muted); line-height:1.5; }
@media (max-width: 820px) {
  .inventory-document-dialog,.inventory-document-detail-dialog { width:calc(100vw - 24px); max-height:calc(100vh - 24px); }
  .inventory-document-line { grid-template-columns:1fr; }
}
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select) {
  min-height: 40px;
  padding: 0 12px;
}
:where(textarea) { min-height: 88px; padding: 10px 12px; resize: vertical; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea):hover { border-color: #b9cbe4; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea):focus { border-color: #5b94ed; box-shadow: 0 0 0 4px #2f7df414; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea):disabled { cursor: not-allowed; opacity: .62; background: #f3f6fa; }
:where(input, textarea)::placeholder { color: #9aa8ba; opacity: 1; }
select:not([multiple]) {
  appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m3.25 5.25 3.75 3.5 3.75-3.5' stroke='%2368798f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
select[multiple] { min-height: 108px; padding: 7px; cursor: pointer; }
select[multiple] option { padding: 7px 8px; border-radius: 6px; }
select[multiple] option:checked { background: #eaf3ff linear-gradient(0deg, #eaf3ff, #eaf3ff); color: #1765cf; }
input[type="checkbox"], input[type="radio"] {
  appearance: none;
  width: 17px;
  height: 17px;
  margin: 0;
  flex: none;
  border: 1px solid #c8d4e4;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
input[type="checkbox"] { border-radius: 5px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked { border-color: #2f7df4; background: #2f7df4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='m2.2 6.2 2.3 2.2 5.3-5' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
input[type="radio"]:checked { border: 5px solid #2f7df4; }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { border-color: #5b94ed; box-shadow: 0 0 0 4px #2f7df414; }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { cursor: not-allowed; opacity: .55; }
.search input { min-height: 0; padding: 0 0 0 7px; border: 0; box-shadow: none; background: transparent; }
.filter-input, .filter-select { height: 40px; min-height: 40px; border-radius: 9px; font-size: 12px; }
.filter-select { padding-right: 36px; }
.settings-user-filters { flex-wrap: wrap; }
.settings-user-filters .filter-input { flex: 1 1 360px; min-width: 280px; }
.settings-user-filters .filter-select-control,
.settings-user-filters .filter-select { flex: 0 1 240px; width: 240px; min-width: 180px; }
.form-field input, .form-field select { height: 40px; }
.form-field textarea { min-height: 92px; }
.form-field input[type="checkbox"], .form-field input[type="radio"] { width: 17px; height: 17px; }

.warehouse-dialog{border:0;max-height:calc(100vh - 40px);overflow:auto}.warehouse-dialog::backdrop{background:#18253d66}.warehouse-dialog .field-error,.warehouse-dialog .form-submit-error{color:#c94f5f;font-size:11px}.warehouse-dialog .form-submit-error{margin:14px 0 0}.warehouse-page-message{margin:-4px 0 16px;padding:10px 13px;border:1px solid #cce8da;border-radius:8px;background:#eefaf4;color:#22805e;font-size:12px}.warehouse-page-filters{justify-content:flex-start}.warehouse-row-actions{display:flex;align-items:center;gap:6px}.warehouse-row-actions .btn{padding:6px 9px;font-size:10px;white-space:nowrap}.warehouse-row-actions .warehouse-delete{color:#c94f5f}
.supplier-field-error,.supplier-form-error{display:block;margin:5px 0 0;color:var(--danger,#cc596a);font-size:12px;line-height:1.5}.supplier-field-error:empty,.supplier-form-error:empty{display:none}.supplier-form-error:focus{outline:2px solid var(--danger,#cc596a);outline-offset:2px}.form-field [aria-invalid="true"]{border-color:var(--danger,#cc596a)}
.qty-label input, .line-actions input { min-height: 34px; }
.compact-input, .config-option-edit input, .config-option-edit select { min-height: 34px; }
html[data-theme="dark"] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea) { border-color: #304057; background-color: #0e1826; color: #dbe5f2; }
html[data-theme="dark"] :where(input, textarea)::placeholder { color: #71819a; }
html[data-theme="dark"] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea):hover { border-color: #4a6385; }

@media(max-width:760px) {
  .settings-user-filters .filter-input,
  .settings-user-filters .filter-select-control,
  .settings-user-filters .filter-select { flex: 1 1 100%; width: 100%; min-width: 0; }
}
html[data-theme="dark"] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea):disabled { background: #172333; }
html[data-theme="dark"] select:not([multiple]) { background-color: #0e1826; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m3.25 5.25 3.75 3.5 3.75-3.5' stroke='%2392a7c2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-theme="dark"] select[multiple] option:checked { background: #17345a linear-gradient(0deg, #17345a, #17345a); color: #85b8ff; }
html[data-theme="dark"] input[type="checkbox"], html[data-theme="dark"] input[type="radio"] { border-color: #4a5f7e; background-color: #111e30; }
html[data-theme="dark"] input[type="checkbox"]:checked { border-color: #5b96ed; background-color: #367fe6; }
html[data-theme="dark"] input[type="radio"]:checked { border-color: #79adff; }

/* Custom select menu */
.select-control { position: relative; min-width: 0; width: 100%; }
.select-control > select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}
.select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 38px 0 12px;
  border: 1px solid #dce4ef;
  border-radius: 9px;
  background: #fff;
  color: #25334b;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.select-trigger::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #68798f;
  border-bottom: 1.5px solid #68798f;
  transform: translateY(-65%) rotate(45deg);
  transition: transform .18s ease, border-color .18s ease;
}
.select-trigger:hover { border-color: #b9cbe4; }
.select-control.open .select-trigger,
.select-trigger:focus-visible { border-color: #5b94ed; box-shadow: 0 0 0 4px #2f7df414; outline: 0; }
.select-control.open .select-trigger::after { border-color: #2f7df4; transform: translateY(-25%) rotate(225deg); }
.select-trigger:disabled { cursor: not-allowed; opacity: .62; background: #f3f6fa; }
.select-trigger-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-menu {
  position: absolute;
  z-index: 35;
  top: calc(100% + 7px);
  left: 0;
  width: 100%;
  max-height: 260px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #d5e0ef;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(30, 55, 94, .16), 0 2px 5px rgba(30, 55, 94, .06);
}
.select-menu.cc-floating-select {
  position: fixed;
  inset: auto;
  box-sizing: border-box;
  margin: 0;
  overflow-y: auto;
}
.select-menu.open-up { top: auto; bottom: calc(100% + 7px); }
.select-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #4d5d75;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.select-option:hover, .select-option:focus-visible { background: #f0f6ff; color: #1765cf; outline: 0; }
.select-option:disabled { cursor: not-allowed; opacity: .45; }
.select-option.selected { background: #eaf3ff; color: #1765cf; font-weight: 700; }
.select-option.selected::after { content: '✓'; margin-left: auto; color: #2f7df4; font-weight: 800; }
.select-option-preview {
  position: fixed;
  z-index: 90;
  width: min(240px, calc(100vw - 24px));
  max-height: min(320px, calc(100vh - 24px));
  padding: 12px;
  overflow-y: auto;
  border: 1px solid #d5e0ef;
  border-radius: 11px;
  background: #fff;
  color: #25334b;
  box-shadow: 0 16px 34px rgba(30, 55, 94, .16), 0 2px 5px rgba(30, 55, 94, .06);
}
.select-option-preview > strong { display: block; margin-bottom: 2px; font-size: 13px; }
.select-option-preview > span { display: block; margin-bottom: 9px; color: #8795a9; font-size: 11px; }
.select-option-preview-list { display: grid; gap: 6px; }
.select-option-preview-list > span { padding: 6px 8px; border-radius: 7px; background: #f4f7fb; font-size: 12px; line-height: 1.4; }
.select-option-preview-list > p { margin: 0; color: #8795a9; font-size: 12px; }
.filter-select-control .select-trigger { min-height: 40px; }
.compact-select-control .select-trigger { min-height: 34px; padding-left: 8px; padding-right: 30px; border-radius: 7px; font-size: 10px; }
.compact-select-control .select-trigger::after { right: 10px; width: 7px; height: 7px; }
.cpq-left > .select-control { margin-bottom: 10px; }
html[data-theme="dark"] .select-trigger { border-color: #304057; background: #0e1826; color: #dbe5f2; }
html[data-theme="dark"] .select-trigger::after { border-color: #92a7c2; }
html[data-theme="dark"] .select-trigger:hover { border-color: #4a6385; }
html[data-theme="dark"] .select-trigger:disabled { background: #172333; }
html[data-theme="dark"] .select-menu { border-color: #304057; background: #121f31; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .select-option { color: #b8c5d7; }
html[data-theme="dark"] .select-option:hover, html[data-theme="dark"] .select-option:focus-visible { background: #192f4d; color: #85b8ff; }
html[data-theme="dark"] .select-option.selected { background: #17345a; color: #85b8ff; }
html[data-theme="dark"] .select-option-preview { border-color: #304057; background: #121f31; color: #dbe5f2; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
html[data-theme="dark"] .select-option-preview-list > span { background: #19283b; }

/* Scrollbars */
html {
  scrollbar-width: thin;
  scrollbar-color: #c3cfdf transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: #c3cfdf;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background: #9eafc7; background-clip: padding-box; }
*::-webkit-scrollbar-corner { background: transparent; }
.select-menu::-webkit-scrollbar { width: 7px; height: 7px; }
.select-menu::-webkit-scrollbar-thumb { border-width: 2px; background: #b8c8dc; background-clip: padding-box; }
html[data-theme="dark"] { scrollbar-color: #435875 transparent; }
html[data-theme="dark"] *::-webkit-scrollbar-thumb { background: #435875; background-clip: padding-box; }
html[data-theme="dark"] *::-webkit-scrollbar-thumb:hover { background: #5a7394; background-clip: padding-box; }
html[data-theme="dark"] .select-menu::-webkit-scrollbar-thumb { background: #4b668a; background-clip: padding-box; }

/* Keep notification markers circular even when their type matches a component class (e.g. .activity). */
.notification-dot {
  display: block;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  flex: none;
  gap: 0;
}

/* Keep the navigation usable when its contents exceed the viewport height. */
.sidebar-menu {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.sidebar-menu:hover {
  scrollbar-color: rgba(158, 175, 199, .7) transparent;
}

.sidebar-menu::-webkit-scrollbar {
  width: 4px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.sidebar-menu:hover::-webkit-scrollbar-thumb {
  background: rgba(158, 175, 199, .7);
}

html[data-theme="dark"] .sidebar-menu:hover {
  scrollbar-color: rgba(90, 115, 148, .75) transparent;
}

html[data-theme="dark"] .sidebar-menu:hover::-webkit-scrollbar-thumb {
  background: rgba(90, 115, 148, .75);
}

.sidebar-bottom-controls {
  flex: 0 0 auto;
}

/* SALES-ORDER-DETAIL-UX-333: breadcrumbs only expose real navigation targets. */
.breadcrumb button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f7d92;
  font: 600 12px/1.4 inherit;
  cursor: pointer;
}

.breadcrumb button:hover,
.breadcrumb button:focus-visible {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* WAREHOUSE-INVENTORY-FILTERS-502: stable metadata filters and the shared list-table rhythm. */
.inventory-list-panel {
  min-width: 0;
}

.inventory-filters {
  display: grid;
  grid-template-columns: minmax(250px, 1.6fr) repeat(3, minmax(130px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

.inventory-filters > * {
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: 12px;
}

.inventory-filters .inventory-movement-filter-field > :is(input, select) {
  width: 100%; min-width: 0; height: 40px;
}

.inventory-filters .inventory-filter-reset {
  width: 80px;
  height: 40px;
  justify-self: end;
  justify-content: center;
  padding-right: 12px;
  padding-left: 12px;
}

.finance-payable-table.inventory-list-table {
  min-width: 960px;
  table-layout: fixed;
  font-family: 'Noto Sans SC', 'DM Sans', sans-serif;
}

.inventory-list-table :is(th, td, strong, small, .tag, .btn) {
  font-family: inherit;
}

.finance-payable-table.inventory-list-table th:nth-child(1) { width: 20%; }
.finance-payable-table.inventory-list-table th:nth-child(2) { width: 13%; }
.finance-payable-table.inventory-list-table th:nth-child(3) { width: 12%; }
.finance-payable-table.inventory-list-table th:nth-child(4) { width: 14%; }
.finance-payable-table.inventory-list-table th:nth-child(5),
.finance-payable-table.inventory-list-table th:nth-child(6),
.finance-payable-table.inventory-list-table th:nth-child(7),
.finance-payable-table.inventory-list-table th:nth-child(8) { width: 8%; }
.finance-payable-table.inventory-list-table th:nth-child(9) { width: 9%; }

.finance-payable-table.inventory-list-table th:last-child,
.finance-payable-table.inventory-list-table td:last-child:not(.finance-empty) {
  width: 9%;
  min-width: 0;
  max-width: none;
}

.inventory-list-table td {
  white-space: normal;
}

.inventory-list-table td > small,
.inventory-item-name {
  display: block;
  margin-top: 4px;
}

.inventory-item-code {
  padding: 0;
  font-weight: 700;
}

.inventory-item-name {
  color: inherit;
  font-size: 12px;
}

.inventory-list-table .tag {
  margin-top: 4px;
}

.inventory-list-table .inventory-available {
  color: var(--green);
}

.inventory-list-table td:last-child .btn {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 11px;
}

@media (max-width: 1180px) {
  .inventory-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inventory-filters .inventory-search-field {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .inventory-filters {
    grid-template-columns: 1fr;
  }

  .inventory-filters .inventory-search-field {
    grid-column: auto;
  }
}

/* UI-LIST-ACTION-COMPACT-462: reuse the receivable list's compact row action dimensions. */
.supplier-row-actions,
.agents-row-actions,
.warehouse-row-actions {
  align-items: center;
}

.cc-table .supplier-row-actions > .btn,
.supplier-row-actions > .order-more-actions > summary,
.agents-row-actions > .btn,
.agents-row-actions > .order-more-actions > summary,
.cc-table .warehouse-row-actions > .btn,
.warehouse-row-actions > .order-more-actions > summary {
  min-height: 0;
  padding: 7px 9px;
  font-size: 11px;
  line-height: normal;
  white-space: nowrap;
}

.tag.violet {
  color: #7048d8;
  background: #f2edff;
}

html[data-theme="dark"] .tag.violet {
  color: #cbb8ff;
  background: #302553;
}

/* SUPPLIER-ARCHIVE-LAYOUT-455: reuse catalog list, order detail and dialog patterns. */
.supplier-page,
.warehouse-page {
  min-width: 0;
}

.supplier-list-panel,
.warehouse-list-panel {
  min-width: 0;
}

.supplier-list-toolbar,
.warehouse-list-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(150px, 220px) minmax(150px, 220px) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.supplier-list-toolbar input,
.supplier-list-toolbar select,
.warehouse-list-toolbar input,
.warehouse-list-toolbar select {
  width: 100%;
}

.supplier-list-toolbar > .btn,
.warehouse-list-toolbar > .btn {
  width: auto;
  white-space: nowrap;
}

.supplier-list-table {
  min-width: 1000px;
  table-layout: fixed;
}

.supplier-col-name { width: 22%; }
.supplier-col-type { width: 8%; }
.supplier-col-status { width: 8%; }
.supplier-col-contact { width: 12%; }
.supplier-col-currency { width: 7%; }
.supplier-col-terms { width: 10%; }
.supplier-col-services { width: 19%; }
.supplier-col-actions { width: 14%; }

.warehouse-list-table {
  min-width: 860px;
  table-layout: fixed;
}

.warehouse-col-name { width: 30%; }
.warehouse-col-type { width: 12%; }
.warehouse-col-status { width: 11%; }
.warehouse-col-default { width: 18%; }
.warehouse-col-inventory { width: 12%; }
.warehouse-col-actions { width: 17%; }

.supplier-list-table tbody tr,
.warehouse-list-table tbody tr {
  cursor: pointer;
}

.supplier-list-table tbody tr:hover td,
.warehouse-list-table tbody tr:hover td {
  background: var(--surface, #f7f9fc);
}

.supplier-list-name,
.warehouse-list-name {
  width: 100%;
  min-width: 0;
}

.supplier-list-name > span {
  min-width: 0;
}

.supplier-list-name strong,
.supplier-services-cell > span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.supplier-row-actions {
  justify-content: flex-start;
}

.supplier-row-more > div {
  min-width: 132px;
}

.supplier-list-table tbody tr:nth-last-child(-n+2) .supplier-row-more > div {
  top: auto;
  bottom: calc(100% + 6px);
}

.supplier-list-table td:has(.supplier-row-more[open]) {
  position: relative;
  z-index: 9;
}

.supplier-list-name small {
  color: var(--muted, #7c879b);
  line-height: 1.45;
}

.warehouse-list-name small {
  color: var(--muted, #7c879b);
  line-height: 1.45;
}

.warehouse-list-name strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.warehouse-row-actions {
  justify-content: flex-start;
}

.warehouse-row-more > div {
  min-width: 132px;
}

.warehouse-list-table tbody tr:nth-last-child(-n+2) .warehouse-row-more > div {
  top: auto;
  bottom: calc(100% + 6px);
}

.warehouse-list-table td:has(.warehouse-row-more[open]) {
  position: relative;
  z-index: 9;
}

.supplier-detail-page .order-detail-identity > div {
  flex-wrap: wrap;
}

.supplier-information .order-info-panel {
  padding-top: 14px;
}

.cc.cc-category-dialog.supplier-dialog {
  width: min(860px, calc(100vw - 32px));
}

.cc.cc-category-dialog.warehouse-dialog {
  width: min(860px, calc(100vw - 32px));
}

.cc.cc-category-dialog.supplier-dialog .cc-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cc.cc-category-dialog.warehouse-dialog .cc-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cc.cc-category-dialog.warehouse-dialog .form-field {
  min-width: 0;
}

.cc.cc-category-dialog.warehouse-dialog .form-field > label:not(.rule-check) {
  display: block;
  margin-bottom: 8px;
  color: var(--muted, #7c879b);
  font-size: 12px;
  font-weight: 700;
}

.cc.cc-category-dialog.warehouse-dialog .form-field input:not([type="checkbox"]),
.cc.cc-category-dialog.warehouse-dialog .form-field select {
  width: 100%;
}

.cc.cc-category-dialog.warehouse-dialog .warehouse-default-field {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border: 1px solid var(--line, #e9edf3);
  border-radius: 10px;
  background: var(--surface, #f7f9fc);
}

.cc.cc-category-dialog.warehouse-dialog .warehouse-default-field[hidden] {
  display: none;
}

html.inventory-detail-dialog-open,
html.inventory-detail-dialog-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.cc.cc-category-dialog.inventory-detail-dialog {
  width: min(900px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  overflow: hidden;
}

.cc.cc-category-dialog.inventory-detail-dialog[open] {
  display: flex;
  flex-direction: column;
}

.inventory-detail-dialog-head {
  flex: 0 0 auto;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--cc-line);
}

.inventory-detail-dialog-subtitle {
  margin-top: 7px !important;
  color: var(--muted, #7c879b);
  font-size: 12px;
}

.inventory-detail-dialog-body {
  display: grid;
  min-height: 0;
  gap: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px 24px 24px;
}

.inventory-detail-section h4 {
  margin: 0 0 12px;
  font-size: 14px;
}

.inventory-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.inventory-detail-facts > div,
.inventory-detail-quantities article {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  background: var(--surface, #f7f9fc);
}

.inventory-detail-facts dt,
.inventory-detail-quantities span {
  color: var(--muted, #7c879b);
  font-size: 10px;
}

.inventory-detail-facts dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
}

.inventory-detail-quantities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.inventory-detail-quantities strong {
  display: block;
  margin-top: 6px;
  font-size: 19px;
}

.inventory-detail-available { color: var(--green, #1ca77a); }

.inventory-source-list {
  display: grid;
  gap: 8px;
}

.inventory-source-card {
  min-width: 0;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  overflow: hidden;
}

.inventory-source-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.inventory-source-summary::-webkit-details-marker { display: none; }
.inventory-source-summary strong { font-size: 13px; }
.inventory-source-summary span { color: var(--muted, #7c879b); font-size: 12px; }
.inventory-source-summary::after {
  content: '⌄';
  margin-left: auto;
  color: var(--muted, #7c879b);
  font-size: 17px;
  line-height: 1;
}

.inventory-source-card[open] .inventory-source-summary {
  border-bottom: 1px solid var(--cc-line);
}

.inventory-source-card[open] .inventory-source-summary::after { transform: rotate(180deg); }
.inventory-source-body { padding: 12px 14px 14px; }
.inventory-source-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inventory-source-fees { margin-top: 14px; }
.inventory-source-fees h5 { margin: 0 0 8px; font-size: 12px; }
.inventory-source-empty { margin: 12px 0 0; color: var(--muted, #7c879b); font-size: 12px; }

.inventory-detail-dialog .detail-subsection {
  margin: 0;
  padding: 0;
  border: 0;
  scroll-margin-top: 8px;
}

.inventory-detail-dialog .detail-subsection > span {
  margin-bottom: 12px;
  color: var(--ink, #172033);
  font-size: 14px;
  font-weight: 700;
}

.inventory-detail-dialog .detail-subsection .table-wrap {
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  padding-top: 10px;
}

.inventory-detail-dialog-actions {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 15px 24px;
  border-top: 1px solid var(--cc-line);
}

[data-theme="dark"] .inventory-detail-facts > div,
[data-theme="dark"] .inventory-detail-quantities article {
  background: #172435;
}

@media (max-width: 700px) {
  .cc.cc-category-dialog.inventory-detail-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .inventory-detail-dialog-head { padding: 18px 16px 15px; }
  .inventory-detail-dialog-body { padding: 16px; }
  .inventory-detail-facts { grid-template-columns: 1fr; }
  .inventory-source-facts { grid-template-columns: 1fr; }
  .inventory-source-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
  .inventory-source-summary strong { grid-column: 1; grid-row: 1; }
  .inventory-source-summary span { grid-column: 1; grid-row: 2; }
  .inventory-source-summary::after { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .inventory-detail-quantities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inventory-detail-dialog-actions { padding: 13px 16px; }
}
.cc.cc-category-dialog.warehouse-dialog .warehouse-default-field .rule-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.cc.cc-category-dialog.warehouse-dialog .form-help {
  display: block;
  margin-top: 6px;
  color: var(--muted, #7c879b);
  font-size: 11px;
}

.cc.cc-category-dialog.warehouse-dialog [aria-invalid="true"] {
  border-color: var(--danger, #cc596a);
}

.cc.cc-category-dialog.supplier-dialog [aria-invalid="true"] {
  border-color: var(--danger, #cc596a);
}

@media (max-width: 700px) {
  .supplier-list-toolbar,
  .warehouse-list-toolbar,
  .cc.cc-category-dialog.supplier-dialog .cc-form-grid,
  .cc.cc-category-dialog.warehouse-dialog .cc-form-grid {
    grid-template-columns: 1fr;
  }

  .supplier-list-toolbar > .btn,
  .warehouse-list-toolbar > .btn {
    width: 100%;
  }
}

/* PROCUREMENT-INVENTORY-CLOSED-LOOP-504: procurement reuses the finance and warehouse workspace vocabulary. */
.procurement-page,.procurement-record-page { width:100%;min-width:0; }
.procurement-workspace .procurement-toolbar.finance-payable-toolbar { grid-template-columns:minmax(260px,1.35fr) repeat(3,minmax(130px,.8fr)) 80px;margin:16px 0 14px; }
.procurement-workspace .procurement-table { min-width:1000px; }
.procurement-workspace .procurement-table th:last-child,
.procurement-workspace .procurement-table td:last-child:not(.finance-empty) { width:92px;min-width:92px;max-width:92px; }
.procurement-workspace .procurement-table-replenishment th:nth-child(1) { width:14%; }
.procurement-workspace .procurement-table-replenishment th:nth-child(2) { width:16%; }
.procurement-workspace .procurement-table-replenishment th:nth-child(3) { width:10%; }
.procurement-workspace .procurement-table-replenishment th:nth-child(4) { width:20%; }
.procurement-workspace .procurement-table-orders th:nth-child(1),
.procurement-workspace .procurement-table-receipts th:nth-child(1) { width:16%; }
.procurement-workspace .procurement-table-orders th:nth-child(2),
.procurement-workspace .procurement-table-receipts th:nth-child(2) { width:16%; }
.procurement-workspace .procurement-table td:last-child .btn { min-height:34px; }
.procurement-workspace .pe-pagination { background:transparent; }
.procurement-detail-hero,.procurement-detail-section,.procurement-editor { min-width:0; }
.procurement-detail-section { margin-top:16px;padding:18px; }
.procurement-detail-section .panel-heading { margin-bottom:14px; }
.procurement-record-page .procurement-detail-section .finance-table { min-width:0;table-layout:fixed; }
.procurement-record-page .procurement-detail-section .finance-table :is(th,td) { overflow-wrap:anywhere; }
.procurement-editor > .order-detail-heading { padding:18px; }
.procurement-editor .order-form-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
.procurement-editor .order-form-grid > label,.procurement-editor .form-field { display:flex;min-width:0;flex-direction:column;gap:6px; }
.procurement-editor-table { min-width:960px;table-layout:fixed; }
.procurement-editor-table :is(input,select,.cc-value-picker) { width:100%;min-width:0;box-sizing:border-box; }
.procurement-quantity-field { display:flex;align-items:center;gap:6px;min-width:0; }
.procurement-quantity-field > input { flex:1 1 auto;width:0;min-width:0;box-sizing:border-box; }
.procurement-quantity-field > span { display:inline;flex:0 0 auto;color:var(--muted);white-space:nowrap; }
.procurement-quantity-field > span[hidden] { display:none; }
.procurement-record-page .procurement-editor .procurement-receipt-editor-table { min-width:1100px; }
.procurement-receipt-editor-table th:first-child { width:200px; }
.procurement-receipt-editor-table th:nth-child(6) { width:200px; }
.procurement-editor-table:has([data-line-sources]) { min-width:1420px; }
.procurement-editor-table th:first-child,.procurement-editor-table td:first-child { width:240px; }
.procurement-editor-table td:first-child .cc-picker-trigger { height:auto;min-height:40px;padding-top:8px;padding-bottom:8px; }
.procurement-editor-table td:first-child .cc-picker-trigger>span { white-space:normal;overflow-wrap:anywhere;text-overflow:clip; }
.procurement-source-panel .panel-heading > div { min-width:0; }
.procurement-source-panel .panel-heading p { margin:4px 0 0; }
.procurement-source-picker-table { min-width:980px; }
.procurement-source-picker-table th:first-child,
.procurement-source-picker-table td:first-child { width:64px;text-align:center; }
.procurement-source-context strong,.procurement-source-context small { display:block;overflow-wrap:anywhere; }
.procurement-source-context small { color:var(--muted); }
.procurement-list-source { display:grid;align-content:start;gap:5px;min-width:0; }
.procurement-list-source small { min-width:0;color:var(--muted); }
.procurement-list-related-order { display:flex;align-items:baseline;gap:6px;min-width:0;color:var(--muted);font-size:11px; }
.procurement-list-related-order > span { white-space:nowrap; }
.procurement-list-related-order .procurement-document-link { min-width:0;overflow:hidden;text-overflow:ellipsis; }
.procurement-document-link { white-space:nowrap; }
.procurement-editor-sources,.procurement-source-trace { display:grid;gap:8px; }
.procurement-editor-source { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px 8px; }
.procurement-editor-source>span { grid-column:1/-1; }
.procurement-editor-source>label { display:grid;min-width:0;gap:4px;color:var(--muted);font-size:11px; }
.procurement-editor-source>[data-remove-source] { padding-inline:8px; }
.procurement-editor-source span,.procurement-source-trace > div { display:grid;gap:2px;min-width:0; }
.procurement-editor-source small,.procurement-source-empty { color:var(--muted); }
.procurement-manual-quantity { color:var(--ink);font-weight:600; }
.procurement-source-trace .order-id { width:max-content;border:0;padding:0;background:transparent;cursor:pointer;text-align:left; }
.procurement-source-trace .order-id:disabled { color:inherit;cursor:default;text-decoration:none; }
.procurement-correction-dialog { width:min(980px,calc(100vw - 48px)); }
.procurement-replenishment-detail,.procurement-replenishment-editor { display:grid;gap:18px; }
.procurement-replenishment-detail .order-key-facts .procurement-document-link { display:block; }
.procurement-replenishment-table .order-product-table-head,
.procurement-replenishment-table .procurement-replenishment-row { grid-template-columns:minmax(300px,1.55fr) minmax(120px,.62fr) minmax(150px,.72fr) minmax(145px,.7fr) minmax(145px,.7fr); }
.procurement-replenishment-row > div { display:grid!important;align-content:start!important;justify-content:normal!important;gap:4px;min-width:0;padding:13px 14px;border-left:1px solid var(--order-line);background:var(--order-card); }
.procurement-replenishment-row > div:first-child { border-left:0; }
.procurement-replenishment-row > div > span { display:none;color:var(--order-muted);font-size:11px; }
.procurement-replenishment-row > div > strong { overflow-wrap:anywhere;font-size:13px; }
.procurement-replenishment-item > small { color:var(--order-muted);font-size:11px; }
.procurement-replenishment-item .procurement-source-trace { margin-top:5px; }
.procurement-replenishment-item .procurement-source-trace small { color:var(--order-muted);font-size:10px; }
.procurement-replenishment-information .order-info-panel { padding-top:16px; }
.procurement-replenishment-editor .order-create-heading { margin:0; }
.procurement-replenishment-editor .order-details-form { margin:0; }
.procurement-replenishment-editor .order-form-section + .order-form-section { border-top:1px solid var(--line); }
.procurement-replenishment-editor .order-form-grid > .full { grid-column:1/-1; }
.procurement-replenishment-editor input[readonly] { background:var(--soft);color:var(--ink); }
.procurement-order-editor { display:grid;gap:18px;min-width:0; }
.procurement-order-editor .order-create-heading { margin:0; }
.procurement-order-editor .order-create-heading p:last-child { margin:4px 0 0;color:var(--muted);font-size:12px; }
.procurement-order-editor .order-details-form { margin:0;min-width:0; }
.procurement-order-editor .order-details-form > h2 { margin-bottom:0; }
.procurement-order-editor .order-form-section[hidden] { display:none; }
.procurement-order-editor .order-section-heading > div { min-width:0; }
.procurement-order-editor .order-section-heading > div > h3,
.procurement-order-editor .order-section-heading > div > p { margin:0; }
.procurement-order-editor .order-section-heading > div > p { margin-top:4px;color:var(--muted);font-size:12px; }
.procurement-order-editor .order-form-grid > .order-wide { grid-column:1/-1; }
.procurement-order-editor textarea { min-height:84px;resize:vertical; }
.procurement-order-editor .procurement-source-picker-table { width:100%;min-width:0;table-layout:fixed; }
.procurement-order-editor .procurement-source-picker-table th:nth-child(1) { width:6%; }
.procurement-order-editor .procurement-source-picker-table th:nth-child(2) { width:25%; }
.procurement-order-editor .procurement-source-picker-table th:nth-child(3) { width:20%; }
.procurement-order-editor .procurement-source-picker-table th:nth-child(4) { width:15%; }
.procurement-order-editor .procurement-source-picker-table th:nth-child(5) { width:14%; }
.procurement-order-editor .procurement-source-picker-table th:nth-child(6) { width:20%; }
.procurement-order-editor .procurement-source-picker-table input[type="checkbox"] { width:18px;height:18px; }
.procurement-order-editor :is(.procurement-source-picker-table,.procurement-editor-table) :is(th,td) { overflow-wrap:anywhere; }
.procurement-order-editor .procurement-editor-table { width:100%;min-width:0;table-layout:fixed; }
.procurement-order-editor .procurement-editor-table th:nth-child(1) { width:22%; }
.procurement-order-editor .procurement-editor-table th:nth-child(2) { width:17%; }
.procurement-order-editor .procurement-editor-table th:nth-child(3) { width:15%; }
.procurement-order-editor .procurement-editor-table th:nth-child(4) { width:18%; }
.procurement-order-editor .procurement-editor-table th:nth-child(5) { width:18%; }
.procurement-order-editor .procurement-editor-table th:nth-child(6) { width:10%; }
.procurement-selected-source-summary,.procurement-selected-source-empty { margin-bottom:14px;padding:14px;border:1px solid var(--line);background:var(--soft); }
.procurement-selected-source-head { display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px; }
.procurement-selected-source-head span,.procurement-selected-source-empty p { color:var(--muted);font-size:12px; }
.procurement-selected-source-empty p { margin:5px 0 0; }
.procurement-selected-source-table { min-width:680px!important;background:var(--card); }
.procurement-selected-source-table th:first-child { width:180px; }
.procurement-order-editor .order-form-actions { margin-top:4px; }
.procurement-editor .procurement-editor-first-section { padding-top:24px; }
.procurement-order-editor .procurement-order-steps { width:100%;gap:24px;margin:0;padding:4px 0 0;border-bottom:1px solid var(--line); }
.procurement-order-editor .procurement-order-steps li { flex:none;margin-bottom:-1px;padding:10px 2px 11px;border-bottom:2px solid transparent;border-radius:0;background:transparent;text-align:left; }
.procurement-order-editor .procurement-order-steps li.active { border-bottom-color:currentColor;background:transparent; }
.procurement-order-editor .procurement-order-steps + .order-form-section { border-top:0;padding-top:16px; }
.procurement-purchase-order-detail { display:grid;gap:18px; }
.procurement-purchase-order-table .order-product-table-head,
.procurement-purchase-order-table .procurement-purchase-order-row { grid-template-columns:minmax(250px,1.45fr) minmax(110px,.62fr) minmax(125px,.68fr) minmax(155px,.78fr) minmax(155px,.8fr) minmax(170px,.9fr); }
.procurement-purchase-order-row > div { display:grid!important;align-content:start!important;justify-content:normal!important;gap:4px;min-width:0;padding:13px 14px;border-left:1px solid var(--order-line);background:var(--order-card); }
.procurement-purchase-order-row > div:first-child { border-left:0; }
.procurement-purchase-order-row > div > span { display:none;color:var(--order-muted);font-size:11px; }
.procurement-purchase-order-row > div > strong { overflow-wrap:anywhere;font-size:13px; }
.procurement-purchase-order-row small { color:var(--order-muted);font-size:11px; }
.procurement-purchase-receipts .order-section-title p:last-child { margin:5px 0 0;color:var(--order-muted);font-size:12px;font-weight:400; }
.procurement-purchase-receipts .finance-table-wrap { margin-top:16px; }
.procurement-receipt-history-table { min-width:920px!important; }
.procurement-receipt-detail { display:grid;gap:18px; }
.procurement-receipt-detail .order-key-facts { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); }
.procurement-receipt-detail .order-key-facts strong { white-space:normal;overflow-wrap:anywhere; }
.procurement-receipt-detail .procurement-document-link { white-space:normal;overflow-wrap:anywhere; }
.procurement-receipt-detail :is(.procurement-receipt-lines,.procurement-receipt-corrections) .finance-table-wrap,
.procurement-receipt-detail .procurement-related-documents .order-info-grid { margin-top:16px; }
.procurement-receipt-detail :is(.procurement-receipt-lines,.procurement-receipt-corrections) .finance-table { width:100%;min-width:0;table-layout:fixed; }
.procurement-receipt-detail :is(.procurement-receipt-lines,.procurement-receipt-corrections) .finance-table :is(th,td) { white-space:normal;overflow-wrap:anywhere; }
.procurement-receipt-detail .procurement-related-documents .order-info-grid > div { min-width:0;padding:10px 12px;background:var(--order-soft); }
.procurement-receipt-detail .procurement-related-documents .order-info-grid span { display:block;margin-bottom:5px;color:var(--order-muted);font-size:11px; }
.procurement-receipt-detail .procurement-related-documents .order-info-grid strong { display:block;overflow-wrap:anywhere;font-size:13px; }
.procurement-receipt-detail .procurement-related-stack { display:grid;gap:8px; }
.procurement-receipt-detail .procurement-related-stack > div { display:grid;gap:2px;min-width:0; }
@media(max-width:760px) { .procurement-receipt-detail .order-key-facts { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.procurement-receipt-editor { min-width:0; }
.procurement-receipt-editor .order-details-form { margin:0;min-width:0; }
.procurement-receipt-editor .order-form-grid textarea { min-height:74px; }
.procurement-record-page.procurement-receipt-editor .procurement-receipt-editor-table { width:100%;min-width:0;table-layout:fixed; }
.procurement-receipt-editor-table th:first-child { width:15%; }
.procurement-receipt-editor-table th:nth-child(2) { width:11%; }
.procurement-receipt-editor-table th:nth-child(3),
.procurement-receipt-editor-table th:nth-child(4),
.procurement-receipt-editor-table th:nth-child(5) { width:13%; }
.procurement-receipt-editor-table th:nth-child(6) { width:22%; }
.procurement-receipt-editor-table th:nth-child(7) { width:13%; }
.procurement-receipt-editor-table td:first-child strong,
.procurement-receipt-editor-table td:first-child small { display:block;overflow-wrap:anywhere; }
.procurement-receipt-editor-table :is(input,.procurement-quantity-field) { width:100%;min-width:0;box-sizing:border-box; }
.procurement-order-picker-dialog.inventory-document-dialog { width:min(720px,calc(100vw - 48px));padding:0;overflow:hidden; }
.procurement-order-picker-form { display:flex;max-height:calc(100dvh - 48px);min-height:0;flex-direction:column; }
.procurement-order-picker-head { display:flex;flex:0 0 auto;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 26px 18px;border-bottom:1px solid var(--line); }
.procurement-order-picker-head h2 { margin:4px 0 0; }
.procurement-order-picker-head p:last-child { margin:6px 0 0;color:var(--muted);font-size:12px; }
.procurement-order-picker-body { flex:1 1 auto;min-height:0;overflow:auto;padding:20px 26px; }
.procurement-order-picker-search { display:grid;gap:7px;color:var(--muted);font-size:12px; }
.procurement-order-picker-options { display:grid;gap:10px;margin-top:14px; }
.procurement-order-picker-option { display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 14px;border:1px solid var(--line);background:var(--card);cursor:pointer; }
.procurement-order-picker-option:hover,.procurement-order-picker-option.is-selected { border-color:var(--primary);background:var(--soft); }
.procurement-order-picker-option input { width:17px;height:17px;margin:0; }
.procurement-order-picker-option span { display:grid;gap:4px;min-width:0; }
.procurement-order-picker-option strong,.procurement-order-picker-option small { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.procurement-order-picker-option small { color:var(--muted); }
.procurement-order-picker-option b { color:var(--muted);font-size:12px;white-space:nowrap; }
.procurement-order-picker-actions { display:flex;flex:0 0 auto;justify-content:flex-end;gap:10px;padding:15px 26px;border-top:1px solid var(--line); }
.inventory-movement-references { display:grid;gap:5px;min-width:0; }
.inventory-movement-reference { display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;gap:6px;min-width:0; }
.inventory-movement-reference-label { color:var(--muted);font-size:11px;white-space:nowrap; }
.inventory-movement-reference :is(strong,.inventory-movement-source-link) { min-width:0;overflow-wrap:anywhere;line-height:1.35; }
.inventory-movement-source-link { display:inline;padding:0;border:0;background:transparent;font:inherit;vertical-align:baseline; }
.inventory-movement-quantity { white-space:nowrap; }
.inventory-movement-unit { padding-left:3px;color:var(--muted);font-size:11px; }
@media(max-width:1100px) { .procurement-workspace .procurement-toolbar.finance-payable-toolbar { grid-template-columns:repeat(2,minmax(0,1fr)); } .procurement-workspace .procurement-toolbar .finance-filter-reset { width:100%; } }
@media(max-width:1180px) { .procurement-replenishment-table .procurement-replenishment-row { grid-template-columns:minmax(240px,1.35fr) repeat(4,minmax(120px,.7fr)); } }
@media(max-width:720px) { .procurement-workspace .procurement-toolbar.finance-payable-toolbar,.procurement-editor .order-form-grid { grid-template-columns:1fr; } .procurement-workspace .procurement-table { min-width:0; } .procurement-correction-dialog,.procurement-order-picker-dialog.inventory-document-dialog { width:calc(100vw - 24px); } .procurement-order-picker-head,.procurement-order-picker-body { padding-inline:18px; } .procurement-order-picker-actions { padding:13px 18px; } .procurement-order-picker-option { grid-template-columns:auto minmax(0,1fr); } .procurement-order-picker-option b { grid-column:2; } .procurement-replenishment-table .procurement-replenishment-row,.procurement-purchase-order-table .procurement-purchase-order-row { grid-template-columns:1fr; } .procurement-replenishment-row > div,.procurement-purchase-order-row > div { border-top:1px solid var(--order-line);border-left:0; } .procurement-replenishment-row > div:first-child,.procurement-purchase-order-row > div:first-child { border-top:0; } .procurement-replenishment-row > div > span,.procurement-purchase-order-row > div > span { display:block; } .procurement-order-editor .order-form-grid > .order-wide { grid-column:auto; } .procurement-order-editor .procurement-order-steps { width:calc(100% - 36px); } .procurement-selected-source-head { align-items:flex-start;flex-direction:column; } .procurement-order-editor .order-form-actions { flex-wrap:wrap; } .procurement-order-editor .order-form-actions > span { display:none; } .procurement-order-editor .order-form-actions .btn { flex:1;justify-content:center; } }
@media(max-width:720px) {
  .procurement-order-editor .procurement-order-steps { width:100%;gap:12px; }
  .procurement-order-editor .procurement-order-steps li { flex:1;padding-inline:4px;text-align:center; }
}

/* WAREHOUSE-OPERATION-DIALOG-512: reuse the shared archive dialog structure for warehouse operations. */
.cc.cc-category-dialog.warehouse-operation-dialog,
.cc.cc-category-dialog.warehouse-detail-dialog {
  padding: 0;
  overflow: hidden;
}
.cc.cc-category-dialog.warehouse-operation-dialog {
  max-height: calc(100dvh - 48px);
}
.cc.cc-category-dialog.warehouse-operation-dialog.inventory-document-dialog {
  width: min(1120px, calc(100vw - 48px));
}
.cc.cc-category-dialog.warehouse-operation-dialog.inventory-document-detail-dialog {
  width: min(1040px, calc(100vw - 48px));
}
.cc.cc-category-dialog.warehouse-operation-dialog[open],
.cc.cc-category-dialog.warehouse-detail-dialog[open] {
  display: flex;
  flex-direction: column;
}
.warehouse-operation-dialog-form {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}
.warehouse-operation-dialog-head,
.warehouse-detail-dialog-head {
  flex: 0 0 auto;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--cc-line, var(--line));
}
.warehouse-operation-dialog-head .cc-help,
.warehouse-detail-dialog-head .cc-help {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.warehouse-operation-dialog-body,
.warehouse-detail-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 20px 28px 24px;
}
.cc.cc-category-dialog .warehouse-operation-dialog-body > .cc-form-grid {
  margin: 0;
}
.cc.cc-category-dialog .warehouse-operation-dialog-body > .cc-form-grid .full {
  grid-column: 1 / -1;
}
.cc.cc-category-dialog .warehouse-operation-dialog-actions,
.cc.cc-category-dialog .warehouse-detail-dialog-actions {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 15px 28px;
  border-top: 1px solid var(--cc-line, var(--line));
  background: var(--card, #fff);
}
[data-theme="dark"] .cc.cc-category-dialog .warehouse-operation-dialog-actions,
[data-theme="dark"] .cc.cc-category-dialog .warehouse-detail-dialog-actions {
  background: #121c2b;
}
@media (max-width: 820px) {
  .cc.cc-category-dialog.warehouse-operation-dialog.inventory-document-dialog,
  .cc.cc-category-dialog.warehouse-operation-dialog.inventory-document-detail-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
  .warehouse-operation-dialog-head,
  .warehouse-detail-dialog-head {
    padding: 18px 18px 15px;
  }
  .warehouse-operation-dialog-body,
  .warehouse-detail-dialog-body {
    padding: 16px 18px 20px;
  }
  .cc.cc-category-dialog .warehouse-operation-dialog-actions,
  .cc.cc-category-dialog .warehouse-detail-dialog-actions {
    flex-wrap: wrap;
    padding: 13px 18px;
  }
  .warehouse-operation-dialog-body .inventory-document-lines {
    padding: 14px;
  }
}

/* WAREHOUSE-OPERATION-DIALOG-512-R2: visible detail panels and background scroll lock. */
html.app-dialog-scroll-locked,
html.app-dialog-scroll-locked body {
  overflow: hidden;
  overscroll-behavior: none;
}

.warehouse-operation-detail-body {
  display: grid;
  align-content: start;
  gap: 20px;
  overscroll-behavior: contain;
}

.warehouse-operation-detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.warehouse-operation-detail-facts > div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--cc-line, var(--line));
  border-radius: 10px;
  background: var(--surface, #f7f9fc);
}

.warehouse-operation-detail-facts span:not(.tag) {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.warehouse-operation-detail-facts strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.warehouse-operation-detail-facts .tag {
  display: inline-flex;
}

[data-theme="dark"] .warehouse-operation-detail-facts > div {
  background: #172233;
  border-color: #2a394e;
}

@media (max-width: 620px) {
  .warehouse-operation-detail-facts {
    grid-template-columns: 1fr;
  }
}

.finance-workspace-tabs.inventory-primary-tabs {
  --finance-muted: var(--muted);
  --finance-border: var(--line);
  --finance-soft: #f7f9fc;
  margin: 0;
  padding: 0;
}

.finance-payable-tabbar.inventory-primary-tabbar {
  margin: 0 0 17px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

[data-theme="dark"] .finance-workspace-tabs.inventory-primary-tabs {
  --finance-muted: #97a5b9;
  --finance-border: #28364b;
  --finance-soft: #101a29;
}
