/* XINOVA light workspace. Loaded after the shared component styles. */
@font-face{font-family:"Yekan Bakh";src:url('/static/fonts/YekanBakh-Regular.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Yekan Bakh";src:url('/static/fonts/YekanBakh-Bold.woff2') format('woff2');font-style:normal;font-weight:700;font-display:swap}
@font-face{font-family:"Yekan Bakh";src:url('/static/fonts/YekanBakh-ExtraBlack.woff2') format('woff2');font-style:normal;font-weight:800 900;font-display:swap}
:root{--ink:#1b302f;--muted:#596e6c;--navy:#183c38;--navy-2:#21544e;--panel:#fff;--bg:#f7f8f4;--line:#dce8e2;--cyan:#0f8173;--cyan-2:#2aab99;--blue:#286fa7;--violet:#6954a6;--amber:#a66412;--danger:#bc4350;--success:#127a62;--shadow:0 18px 48px rgba(31,70,59,.1);--shadow-soft:0 6px 22px rgba(31,70,59,.055);font-family:"Yekan Bakh",Tahoma,sans-serif;color:var(--ink)}
html{color-scheme:light;font-size:16px}body{color:var(--ink);background:radial-gradient(circle at 72% 0,#eef8f2 0,transparent 34%),var(--bg)}
::selection{background:#c8eee3;color:#173a34}::-webkit-scrollbar{width:9px;height:9px}::-webkit-scrollbar-track{background:#f1f5f0}::-webkit-scrollbar-thumb{background:#b7cfc5;border-radius:20px;border:2px solid #f1f5f0}
body:before,body:after{display:none}.ambient-one{background:radial-gradient(circle,rgba(51,161,135,.08),transparent 70%)}.ambient-two{background:radial-gradient(circle,rgba(220,187,116,.09),transparent 70%)}
.sidebar{background:#fff;color:var(--ink);border-left:1px solid var(--line);box-shadow:-8px 0 35px rgba(29,64,53,.035)}.sidebar:before{background:radial-gradient(circle,rgba(52,167,138,.09),transparent 70%)}.sidebar:after{display:none}
.brand{padding-bottom:27px}.brand-mark{background:linear-gradient(145deg,#dff5eb,#b9e6d5);color:#0f7768;box-shadow:none;border:1px solid #bee6d7}.brand strong{color:#1b5047}.brand small{color:#6f9388}.nav-label{color:#778e87;font-size:10px}.nav a{color:#526e66;border:1px solid transparent}.nav a span{font-size:13px}.nav a:hover{background:#f3f9f4;color:#176b5c;transform:none}.nav a.active{background:#e6f4eb;color:#146f5f;box-shadow:inset -3px 0 #269a80;border-color:#d5ebdc}.nav a.active .ui-icon{color:#0b796a;filter:none}.nav a>i{background:#168a75;box-shadow:none}.sidebar-health{background:#f3f9f4;border:1px solid #dcebe0;color:#54746a}.sidebar-health b{color:#315d52;font-size:11px}.sidebar-health small{color:#69867a;font-size:10px}.sidebar-foot{border-color:var(--line)}.user-chip>span,.top-avatar{background:#e7f4ec;color:#16745f;border:1px solid #d2e8db}.user-chip b{color:#274840;font-size:12px}.user-chip small{color:#6d827b;font-family:inherit}.logout{color:#58736b}.logout:hover{color:var(--danger);background:#fff0f0}
.topbar{background:rgba(255,255,255,.93);border-color:var(--line);box-shadow:0 4px 18px rgba(38,72,59,.035)}.page-identity h1{color:#203b34;font-size:22px}.eyebrow{color:#117867;font-size:10px;font-family:inherit;letter-spacing:.3px}.status-pill,.top-icon,.icon-btn{background:#fff;color:#486b60;border-color:var(--line);font-size:11px}.top-icon:hover,.icon-btn:hover{background:#eaf6ef;color:#136c5c}.content{padding-top:29px}
.hero-strip{min-height:255px;color:var(--ink);background:radial-gradient(circle at 17% 30%,#d8f0e1,transparent 27%),linear-gradient(112deg,#fffdf9,#f0f8ed 55%,#e5f1e8);border:1px solid #d9e9dc;box-shadow:var(--shadow-soft)}.hero-strip:before{background:radial-gradient(circle at 65% 140%,rgba(65,163,132,.1),transparent 46%)}.hero-strip h2{color:#184f43;font-size:clamp(27px,2.3vw,38px);line-height:1.4}.hero-strip p{color:#526f65;font-size:13px}.hero-live{color:#166e5d;background:#fff;border:1px solid #d7e9dd;font-size:10px}.hero-live i{background:#188a72;box-shadow:none}.hero-link{color:#35675b;font-size:12px}.hero-link:hover{color:#0e755f}.orb-core{background:linear-gradient(145deg,#fafef9,#bde8d6);color:#16806d;border:1px solid #8bcbb4;box-shadow:0 12px 32px rgba(39,137,104,.16)}.orbit{border-color:rgba(29,137,109,.25)}.orbit:before{background:#259c80;box-shadow:none}.orbit-chip{background:#fff;color:#587c6b;border-color:#d9e9da;box-shadow:var(--shadow-soft)}.orbit-chip b{color:#137968}
.btn-primary,.btn-glow{background:#137e6c;color:#fff;box-shadow:0 8px 19px rgba(18,117,94,.17)}.btn-primary:hover,.btn-glow:hover{background:#0e6b5c;box-shadow:0 10px 25px rgba(18,117,94,.23)}.btn-outline,.btn-light,.btn-secondary{background:#fff;color:#275c50;border:1px solid #cbded3}.btn-outline:hover,.btn-secondary:hover{background:#eff8f1;border-color:#9bcdb8;color:#0e6f5d}.btn-danger{color:#a93243}.btn{font-size:11px}.btn-sm{font-size:10px}
.stat-card,.card,.form-card,.wizard-card,.catalog-shell,.ledger-shell,.production-shell{background:#fff;border-color:#dfeae1;box-shadow:var(--shadow-soft);backdrop-filter:none}.stat-card:hover,.card:hover{box-shadow:var(--shadow)}.stat-card>strong{color:#183e35;font-family:"Yekan Bakh",sans-serif}.stat-title,.card-head h3,.action-grid b{color:#25443c}.stat-card>small,.compact-list small,.page-head p,.action-grid small{color:#657d73}.stat-trend{background:#eff6f0;color:#496e60}.stat-icon.cyan{background:#e0f4ea;color:#117f6b}.stat-icon.violet{background:#f0edfb;color:#6550a4}.stat-icon.blue{background:#e8f2fa;color:#2873aa}.stat-icon.amber{background:#fff2e3;color:#a5681c}.section-icon{background:#e5f4eb;color:#157e69}.warning-icon{background:#fff1df;color:#9b631c}.violet-icon{background:#f0edfa;color:#674ea5}.card-head h3{font-size:16px}.page-head h2{font-size:25px}.page-head p{font-size:12px}.view-all,.card-head>a{font-size:11px;color:#477064}.view-all:hover,.card-head>a:hover{color:#0d7964}
.action-grid>a,.info-item,.form-section-card,.inbound-status-strip,.material-kpis article,.ledger-kpis article,.receiving-kpis article,.production-kpis article,.quick-create,.record-row,.case-meta,.process-banner,.profile-summary,.profile-detail,.upload-zone,.kanban-column,.kanban-card,.ctb-panel,.ctb-stats>div,.schedule-metric,.request-context{background:#fff;color:var(--ink);border-color:#dce8df;box-shadow:var(--shadow-soft)}.action-grid>a:hover{background:#f2faf4;border-color:#b8ddc6}.form-section-card>header h3,.material-kpis strong,.ledger-kpis strong,.receiving-kpis b,.production-kpis strong,.record-row b,.case-head h3,.profile-summary h3,.ctb-hero h3,.ctb-stats strong{color:#25443c}.step-index,.po-summary>span,.qc-lock>span,.location-index{background:#e3f3e9;color:#16745f;border-color:#cbe5d4}
.table-wrap{border-color:#dfeae2;background:#fff}table{background:#fff}th,.materials-table th,.ledger-table th,.production-control-table th,.ctb-table th{background:#f2f7f2;color:#415f54;border-color:#dce8df;font-size:11px;box-shadow:none}td{color:#2c443b;border-color:#e6eee8;font-size:12px}tbody tr:hover,.materials-table tr:hover td,.ledger-main-row:hover td,.production-order-row:hover td{background:#f5faf5}.code{color:#096e61}.badge{background:#eef5ef;color:#426458;border-color:#d7e5da;font-size:10px}.badge-danger{background:#fff0f0;color:#a83a49;border-color:#f0ced2}.badge-success{background:#e5f5eb;color:#106f54;border-color:#c8e6d4}.empty{color:#60796d!important}.empty.good{color:#187758!important}
label{font-size:12px;color:#31544a}input,select,textarea,.enterprise-form input,.stack-form input,.stack-form select,.decision-form textarea,.inline-form input,.filter-bar input,.filter-bar select,.smart-input input,.metric-input input,.ledger-searchbox input,.material-filters input,.material-filters select,.production-filter-form input,.production-filter-form select{background:#fff;color:#203c33;border-color:#cdded2;box-shadow:none}input::placeholder,textarea::placeholder{color:#788f82}input:focus,select:focus,textarea:focus{border-color:#228c73;box-shadow:0 0 0 4px rgba(25,133,102,.12)}.hint,.form-hint{color:#60796d}.filter-bar,.material-filters,.catalog-toolbar,.catalog-pagination,.ledger-table-meta,.ledger-pagination,.production-table-meta,.kanban-column>header{background:#f5f9f4;border-color:#dce9dd;color:#597467}.catalog-toolbar>div b,.ledger-table-meta b,.production-table-meta b{color:#28483d}
.po-summary,.qc-lock,.location-row,.allocation-meter,.mrp-insight,.attachment-list>a,.supplier-stack>div,.drawer-details>div,.stock-stack>div,.ledger-event,.ledger-history-panel,.dialog-notice,.module-pills a,.reference-groups span,.import-rules span,.category-chip,.location-chip,.stock-value,.status-badge,.order-status,.ledger-quick-views,.view-switch,.kitting-signal{background:#f7faf6;color:#31594c;border-color:#dce8dd}.po-summary small,.qc-lock small,.allocation-meter,.mrp-insight p,.ledger-event p{color:#60796b}.quick-create>summary{color:#176d57}.auto-chip,.metric-input span,.unit-locked-input span{background:#e6f3e9;color:#166e58}.quarantine-pill{background:#fff2e2;color:#98611e;border-color:#f0d8af}.icon-action,.ledger-expand,.action-menu-toggle,.page-links a{background:#fff;border-color:#d7e6db;color:#3a6655}.action-menu,.popover-form,.suggestion-box,.inventory-dialog,.access-dialog,.production-dialog{background:#fff;color:var(--ink);border-color:#d6e6db;box-shadow:0 24px 55px rgba(25,65,46,.16)}.action-menu button,.action-menu a{color:#345b4c}.action-menu button:hover,.action-menu a:hover{background:#edf7ee;color:#126b52}.material-drawer{background:#fbfdf9;color:var(--ink);border-right:1px solid #d9e6da}.material-drawer section,.drawer-metrics article,.price-chart{background:#fff;border-color:#dce8df}.drawer-metrics strong{color:#25443c}.kanban-column>header{background:#f1f7f1}.kanban-card.stopped,.production-order-row.stopped td{background:#fff2f1}.receipt-value,.landed-cost{background:linear-gradient(120deg,#e8f5eb,#f9fdf7);color:#214f3d;border:1px solid #d3e7d7;box-shadow:var(--shadow-soft)}.receipt-value strong,.landed-cost strong{color:#147459}.receipt-value span,.receipt-value small,.landed-cost>span,.landed-cost small{color:#517462}.receipt-value .value-orb{background:#fff;color:#15745f;border-color:#cce6d6}.upload-zone{background:#f1faf1;color:#196c54;border-color:#a8d4b8}.upload-zone b{color:#205b46}.sticky-form-actions,.sticky-form-actions.inbound-actions{background:rgba(255,255,255,.96);border-color:#dbe9dc;color:#365e4d;box-shadow:0 -8px 25px rgba(30,65,46,.08)}
.enterprise-hero,.mes-header{background:linear-gradient(115deg,#e7f5e9,#fdfcf6);border-color:#d4e6d8;color:#1d493a;box-shadow:var(--shadow-soft)}.enterprise-hero *,.mes-header *{text-shadow:none}.integrity-banner{background:#eaf7ed;border-color:#c9e7d2;color:#205a45}.workflow-card,.meta-grid div,.decision-timeline>div>span{background:#fff;color:var(--ink);border-color:#dce8df}.compliance-note{background:#fff5e7;color:#77521f;border-color:#efd7ad}
/* The login page uses the same light palette as the signed-in workspace. */
.login-shell{background:#f7faf5;color:var(--ink)}.login-backdrop{background:radial-gradient(circle at 21% 48%,#d5edda 0,transparent 29%),radial-gradient(circle at 61% 83%,#f4ebd5 0,transparent 32%),linear-gradient(120deg,#f2f8ef,#fffdf7);animation:none}.login-noise{opacity:.018}.login-panel{background:transparent}.login-brand strong{color:#184e40}.login-brand small{color:#6a8a78}.story-copy{text-shadow:none}.story-kicker{color:#21755c}.story-kicker i{background:#258c71;box-shadow:none}.story-copy h1{color:#173d33}.story-copy h1 em{color:#117c62;text-shadow:none}.story-copy>p{color:#526f60;font-size:14px}.story-metrics div{border-color:#c7ddca}.story-metrics strong{color:#1d543e;font-family:"Yekan Bakh",sans-serif}.story-metrics span,.login-trust{color:#587966;font-size:10px}.glass-card{background:#fff;backdrop-filter:none;box-shadow:0 24px 70px rgba(30,79,48,.11);animation:cardIn .55s ease both}.login-card{border:1px solid #d6e8d8}.login-icon{background:#e3f4e8;color:#16785d;border-color:#cde6d2}.login-card h2{color:#1d4939}.login-card>p{color:#5d7667;font-size:12px}.login-card label{color:#375947;font-size:12px}.login-card input{color:#244a38;background:#fff;border-color:#cadfce}.login-card input:focus{background:#fff;border-color:#21896a;box-shadow:0 0 0 4px rgba(25,133,102,.12)}.login-submit{background:#137e61;color:#fff;box-shadow:0 12px 28px rgba(16,112,78,.16);font-size:12px}.security-note{color:#5b8068}.mobile-brand{color:#1d5441}
/* Production and BI charts remain functional, with clear light surfaces. */
.galaxy-command-deck{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(430px,.85fr);gap:17px;margin:19px 0}.galaxy-chart-panel,.galaxy-health-panel,.galaxy-bi-radar{position:relative;overflow:hidden;border:1px solid #dfeae1;border-radius:24px;background:#fff;box-shadow:var(--shadow-soft);padding:22px}.galaxy-chart-panel:after,.galaxy-health-panel:after,.galaxy-bi-radar:after{content:"";position:absolute;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,rgba(57,158,113,.08),transparent 68%);left:-100px;top:-130px;pointer-events:none}.galaxy-panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;position:relative;z-index:1}.galaxy-panel-head h3{margin:6px 0 0;font-size:16px;color:#24483a}.live-signal,.galaxy-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:30px;border:1px solid #cce5d2;background:#edf8ee;color:#1a765b;font-size:10px;font-weight:700}.live-signal i{width:6px;height:6px;border-radius:50%;background:#208a6c;animation:pulse 1.8s infinite}.galaxy-line-stage{height:195px;position:relative;margin-top:14px}.galaxy-line-stage canvas{width:100%;height:100%;display:block}.galaxy-chart-axis{display:grid;grid-template-columns:repeat(7,1fr);direction:ltr;color:#547364;font-size:10px;padding:0 7px}.galaxy-chart-axis span{text-align:center}.galaxy-rings{display:grid;grid-template-columns:repeat(4,minmax(82px,1fr));gap:10px;margin-top:23px;direction:ltr}.galaxy-rings article{position:relative;display:grid;place-items:center;align-content:center;min-height:130px;border:1px solid #e0ece2;border-radius:18px;background:#f7fbf7;overflow:hidden}.galaxy-ring{position:absolute;inset:9px;margin:auto;width:106px;height:106px}.galaxy-rings strong{position:relative;font-size:20px;font-weight:800;color:#1b4535}.galaxy-rings span{position:relative;color:#537260;font-size:10px;margin-top:7px;direction:rtl}.galaxy-rings-large{grid-template-columns:repeat(5,1fr);margin:10px 0 2px}.galaxy-rings-large article{min-height:168px}.galaxy-rings-large .galaxy-ring{width:132px;height:132px}.galaxy-rings-large strong{font-size:24px}.galaxy-bi-radar{margin-bottom:17px}.bi-bars>div{background:#f8fbf7;padding:11px 14px;border:1px solid #e0ebe1;border-radius:13px}.bi-bars>div>div{background:#e2ece4;border:1px solid #d4e3d7}.bi-bars i{width:0;background:linear-gradient(90deg,#249977,#50a9b1 62%,#8369b2);transition:width 1.1s cubic-bezier(.2,.8,.2,1);box-shadow:none}
@media(max-width:1180px){.galaxy-command-deck{grid-template-columns:1fr}.galaxy-rings-large{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.topbar{background:rgba(255,255,255,.96)}.galaxy-command-deck{margin:14px 0}.galaxy-chart-panel,.galaxy-health-panel{padding:17px}.galaxy-line-stage{height:165px}.galaxy-rings,.galaxy-rings-large{grid-template-columns:repeat(2,1fr)}.hero-strip{min-height:300px}.login-panel{background:transparent}.login-backdrop{opacity:1}.login-story{z-index:4}.login-brand{pointer-events:auto}}
@media(max-width:520px){.galaxy-line-stage{height:145px}.galaxy-panel-head{align-items:flex-start}.live-signal{display:none}.galaxy-rings article{min-height:118px}.galaxy-ring{width:94px;height:94px}.galaxy-rings-large .galaxy-ring{width:108px;height:108px}.galaxy-rings-large article{min-height:140px}.galaxy-chart-axis{font-size:8px}.hero-strip h2{font-size:25px}.login-panel{padding:100px 20px 28px}}
@media(prefers-reduced-motion:reduce){.live-signal i{animation:none}.bi-bars i{transition:none}}
/* Dense ERP content needs readable labels at normal desktop distance. */
.brand strong,.login-brand strong,.mobile-brand b{font-family:"Yekan Bakh",sans-serif}
.nav-label,.sidebar-health small,.user-chip small,.stat-card>small,.compact-list small,.info-item span,.timeline-item small,.story-metrics span,.login-trust,.security-note,.receipt-value small,.landed-cost small{font-size:11px}
.stat-title,.compact-list b,.info-item strong,.timeline-item h4,.action-grid b,.action-grid small,.form-hint{font-size:12px}
.stat-card>strong{font-size:32px;line-height:1.2}.stat-trend,.view-all,.card-head>a,.badge,.hero-live,.hero-link,.story-kicker{font-size:11px}
.galaxy-rings span,.galaxy-chart-axis,.module-pills a,.status-badge,.order-status{font-size:11px}
.login-card>p{line-height:1.85}.page-identity h1,.card-head h3,.page-head h2{line-height:1.45}
.bom-cost-report .bom-table{min-width:1120px}
.bom-cost-report .bom-table th{white-space:normal;min-width:82px;line-height:1.7}
.bom-cost-report .bom-table td{vertical-align:top;white-space:nowrap}
.bom-cost-report .bom-table td:first-child{white-space:normal;min-width:170px}
.bom-cost-report .bom-percent{display:inline-block;padding:5px 10px;border-radius:10px;background:#e5f5ee;color:#126146;font-size:1.04rem;direction:ltr}
.bom-cost-report .bom-total-row td{background:#eaf3ef;border-top:2px solid #79b79c;font-weight:700}
.bom-cost-report .hint{line-height:1.9}

/* Keep the wide BOM report in its own scroll region and put costing above it. */
.formulation-layout{display:flex;flex-direction:column;align-items:stretch;gap:16px;min-width:0}
.formulation-layout>*{min-width:0;max-width:100%}
.bom-canvas{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}
.bom-grid-card{width:100%;min-width:0;max-width:100%;overflow:hidden}
.bom-grid-card .table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.bom-cost-report .bom-table td:last-child{display:table-cell}
.live-cost-panel{order:-1;position:relative;top:auto;display:grid;grid-template-columns:minmax(160px,1fr) minmax(175px,1fr) minmax(260px,1.5fr) minmax(180px,1fr);align-items:stretch;gap:12px;width:100%;padding:16px;overflow:visible;border:1px solid #d3e7da;border-radius:20px;background:linear-gradient(120deg,#fff,#f6fbf5);color:#25443a;box-shadow:var(--shadow-soft)}
.live-cost-panel>header{display:flex;align-items:flex-start;gap:11px;padding:8px 4px;border:0}
.live-cost-panel>header>span{flex:0 0 38px;background:#e3f4e9;color:#17745e}
.live-cost-panel header small{font:700 10px "Yekan Bakh",Tahoma,sans-serif;letter-spacing:.3px;color:#248368}
.live-cost-panel h3{font-size:16px;line-height:1.5;color:#234a3c}
.live-cost-panel header p{margin:5px 0 0;color:#607b6b;font-size:11px;line-height:1.6}
.live-cost-panel .cost-main{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:14px 16px;border:1px solid #cce8d7;border-radius:15px;background:#edf8ef;text-align:right}
.live-cost-panel .cost-main small{color:#4c7761;font-size:11px}
.live-cost-panel .cost-main strong{margin:4px 0;color:#126a53;font:800 clamp(20px,2vw,27px) "Yekan Bakh",Tahoma,sans-serif;overflow-wrap:anywhere}
.live-cost-panel .cost-main span{color:#517765;font-size:11px}
.live-cost-panel dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px;align-content:center;min-width:0;margin:0;padding:3px 8px}
.live-cost-panel dl>div{display:block;min-width:0;padding:5px 0;border:0}
.live-cost-panel dt{color:#617b6c;font-size:10px}
.live-cost-panel dd{margin:3px 0 0;color:#26483a;font:700 12px "Yekan Bakh",Tahoma,sans-serif;overflow-wrap:anywhere}
.live-cost-panel dl .total{color:#136d57}
.live-cost-actions{display:flex;flex-direction:column;justify-content:center;gap:7px;min-width:0}
.live-cost-actions p{margin:0;color:#607b6c;font-size:10px;line-height:1.7}
.live-cost-panel form{padding:0}
.live-cost-panel .btn{width:100%;min-height:36px;font-size:11px}
.live-cost-panel .btn-outline{background:#fff;color:#236452;border-color:#bddcc8}
.live-cost-panel .btn-outline:hover{background:#edf8ee;color:#125a47}
.live-cost-panel .final-approve{margin:0;background:#137e6c;color:#fff;border-color:#137e6c}
@media(max-width:1050px){.live-cost-panel{grid-template-columns:repeat(2,minmax(0,1fr))}.live-cost-actions{flex-direction:row;align-items:center;flex-wrap:wrap}.live-cost-actions p{flex:1 1 100%}.live-cost-actions form{flex:1 1 180px}}
@media(max-width:620px){.live-cost-panel{grid-template-columns:1fr;padding:14px}.live-cost-panel>header{padding:0}.live-cost-panel dl{padding:4px}.live-cost-actions{display:grid;grid-template-columns:1fr}.live-cost-actions p{grid-column:1}.bom-grid-card .card-head{flex-wrap:wrap;gap:10px}}

/* Readable detail labels across the workspace and within the formulation table. */
.table-sub{font-size:10.5px;line-height:1.5}
.formulation-layout .hint{font-size:11px;line-height:1.85}
.quick-add-component label,.quick-add-component>header>span{font-size:11px}
.quick-add-component .component-result small,.quick-add-component .selected-component small{font-size:10px}
.quick-add-component .scale-preview small,.quick-add-component .scale-preview span{font-size:10px}
.bom-cost-report .card-head h3{font-size:17px}
.bom-cost-report .bom-table th{font-size:11px;line-height:1.5}
.bom-cost-report .bom-table td{font-size:12px;line-height:1.55}
.bom-cost-report .bom-table .table-sub{font-size:10.5px}
.bom-cost-report .scrap-chip{font:700 11px "Yekan Bakh",Tahoma,sans-serif}
.bom-cost-report .bom-table th:first-child,.bom-cost-report .bom-table td:first-child{position:sticky;right:0;z-index:2;border-left:1px solid #dce9dd;background:#fff;box-shadow:-4px 0 10px rgba(25,70,51,.04)}
.bom-cost-report .bom-table th:first-child{z-index:3;background:#f2f7f2}
.bom-cost-report .bom-total-row td:first-child{background:#eaf3ef}
.bom-scroll-hint{display:none;margin:0 16px 10px;color:#4d705e;font-size:11px}
@media(max-width:760px){.bom-scroll-hint{display:block}}

/* Editing a row opens in the browser's modal layer, beyond the scrollable table. */
.bom-editor-dialog{width:min(440px,calc(100vw - 28px));max-height:calc(100vh - 32px);padding:18px;border:1px solid #d4e5d8;border-radius:18px;background:#fff;color:#244838;box-shadow:0 24px 70px rgba(21,54,39,.22)}
.bom-editor-dialog::backdrop{background:rgba(18,39,31,.48)}
.bom-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.bom-editor-heading h3{margin:4px 0 0;font-size:17px}
.bom-editor-heading .icon-action{flex:0 0 34px;font-size:22px;line-height:1}
.bom-editor-dialog .bom-row-editor{position:static;display:grid;width:100%;gap:13px;padding:0;border:0;border-radius:0;background:#fff;box-shadow:none}
.bom-editor-dialog .bom-row-editor label{font-size:12px}
.bom-editor-dialog .bom-row-editor input,.bom-editor-dialog .bom-row-editor select{width:100%;min-height:42px}
.bom-editor-dialog .bom-row-editor .btn{min-height:42px;font-size:12px}
