.material-cost{padding:20px;min-width:0}.material-cost-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}.material-cost-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;min-width:100px}.material-cost-form input,.material-cost-form select{border:1px solid #ccd5df;border-radius:6px;padding:9px 10px;box-sizing:border-box;min-height:38px;width:130px}.material-cost-form .material-cost-model{flex:1;min-width:260px}.material-cost-model input{width:100%}.material-cost-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.material-cost-card{border:1px solid #dce4ed;border-radius:8px;padding:16px;background:#f6f9fc}.material-cost-card span{display:block;font-size:13px;color:#546579}.material-cost-card strong{display:block;font-size:23px;color:#1b4b76;margin-top:8px;overflow-wrap:anywhere}.material-cost-card:last-child{background:#eaf5f1;border-color:#b9d8cb}.material-cost-card:last-child strong{color:#18664e}.material-cost-warning{color:#9c4b14;background:#fff7ed;padding:8px;border-radius:5px}.material-cost-hint{color:#65758a;padding:20px 0}.material-cost-table{overflow:auto;max-height:340px;border:1px solid #dce4ed;border-radius:7px;margin:12px 0 20px}.material-cost-table table{width:100%;border-collapse:collapse;white-space:nowrap}.material-cost-table th,.material-cost-table td{padding:10px;text-align:right;border-bottom:1px solid #e4eaf0}.material-cost-table th:first-child,.material-cost-table td:first-child{text-align:left}.material-cost-table th{position:sticky;top:0;background:#edf2f7}.material-cost-table small{display:block}.material-cost details{color:#536477;line-height:1.7}@media(max-width:650px){.material-cost{padding:12px}.material-cost-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.material-cost-card{padding:10px}.material-cost-card strong{font-size:19px}.material-cost-form .material-cost-model{min-width:100%}.material-cost-form label{flex:1}.material-cost-form input,.material-cost-form select{width:100%}}
.material-cost-tabs,.material-cost-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.material-cost-entry{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:16px 0}.material-cost-entry label{display:flex;flex-direction:column;gap:6px;font-size:13px}.material-cost-entry input,.material-cost-toolbar input{min-height:36px;border:1px solid #ccd5df;border-radius:5px;padding:7px 10px;box-sizing:border-box;max-width:100%}.material-cost-grid{max-height:500px}.material-cost-grid table{min-width:1120px;table-layout:fixed}.material-cost-grid th:nth-child(1),.material-cost-grid th:nth-child(2){width:25%}.material-cost-grid th:last-child{width:100px}.material-cost-grid input{width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:4px;padding:9px;box-sizing:border-box;text-align:left}.material-cost-grid select{max-width:65px}.material-cost-grid th:nth-child(2),.material-cost-grid td:nth-child(2){text-align:left}.material-cost-selected{background:#edf6ff}.material-cost-table td{white-space:normal;overflow-wrap:anywhere}.material-cost-grid td{vertical-align:top}.material-cost-grid td:last-child{white-space:nowrap}.material-cost-grid .btn{padding:4px 6px;font-size:12px}.material-cost-entry input{width:190px}.material-cost-entry label:first-child input{width:260px}@media(max-width:650px){.material-cost-entry label{width:100%}.material-cost-entry input,.material-cost-entry label:first-child input{width:100%}.material-cost-tabs .btn{flex:1;font-size:12px}.material-cost-toolbar input{width:100%}}

.material-cost-search{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0}

.material-cost-entry textarea,.material-cost-entry select,.material-cost-toolbar select{max-width:100%;box-sizing:border-box;border:1px solid #ccd5df;border-radius:5px;padding:7px;min-height:36px}.material-cost-entry textarea{width:360px;min-width:0}.material-cost-toolbar label{display:flex;flex-direction:column;gap:6px}.material-cost-table details{min-width:220px;max-width:600px}.material-cost-table details p{white-space:normal}@media(max-width:650px){.material-cost-entry textarea,.material-cost-entry select{width:100%}.material-cost-toolbar label{max-width:100%}}

.material-cost-table table[aria-label="历史成本快照"]{min-width:1000px;table-layout:auto}.material-cost-table table[aria-label="历史成本快照"] td:last-child{min-width:420px;text-align:left}.material-cost-table table[aria-label="历史成本快照"] td:nth-child(3){min-width:150px}.material-cost-table table[aria-label="历史成本快照"] details{max-width:600px}

.gm-rule-target{min-width:180px;width:100%;box-sizing:border-box;padding:6px;border:1px solid #ccd5df;border-radius:4px}.gm-bom-components{min-width:300px;max-width:600px}.material-cost textarea[aria-label="品牌规则批量粘贴"]{display:block;width:min(100%,700px);box-sizing:border-box;margin:10px 0}
