/* CP+ · chi phí sản xuất chuẩn theo lệnh */
.cp-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:8px 0;padding:8px 10px;border:1px dashed var(--line);border-radius:9px;background:var(--surface-2);font-size:13px}
.cp-line .cp-k{font-size:11.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.cp-line .cp-v{flex:1 1 220px;min-width:0;overflow-wrap:anywhere} .cp-line .cp-v b{font-variant-numeric:tabular-nums}
.cp-machines{display:flex;flex-wrap:wrap;gap:6px}
.cp-mc{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:9px;padding:7px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;min-height:36px}
.cp-mc.on{border-color:var(--brand);background:var(--sky);color:var(--brand);box-shadow:inset 0 0 0 1px var(--brand)}
.cp-mseg{padding:0 0 10px}
.cp-lines{display:flex;flex-direction:column;gap:6px;margin-bottom:6px}
.cp-lrow{display:grid;grid-template-columns:minmax(0,1fr) 130px 36px;gap:6px;align-items:center}
.cp-frow{display:grid;grid-template-columns:minmax(0,1fr) 70px 90px 120px 36px;gap:6px;align-items:center;margin:6px 0}
.cp-res{margin-top:10px} .cp-res td{vertical-align:top}
.cp-warn{margin:6px 0 0;padding-left:18px;color:var(--warn);font-size:12.5px}
.cp-act{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)} .cp-act h4{margin:0 0 6px;font-size:14px}
.cp-t td.num small{white-space:normal} .cp-ck{width:34px;text-align:center} .cp-ck input{width:18px;height:18px}
.cp-tiles{margin:4px 0 12px}
.cp-rnote{margin-bottom:10px}
@media (max-width:760px){
  .cp-lrow{grid-template-columns:minmax(0,1fr) 96px 36px}
  .cp-frow{grid-template-columns:minmax(0,1fr) 64px 36px} .cp-frow input:nth-child(3),.cp-frow input:nth-child(4){grid-column:span 1}
  .cp-ck{width:auto;text-align:left}
}
.cp-slots td{vertical-align:middle} .cp-slots input{min-width:64px} .cp-slots td:first-child{font-weight:600;white-space:nowrap}
.cp-form{margin-bottom:6px}
.cp-res{width:100%;table-layout:fixed} .cp-res td{overflow-wrap:anywhere} .cp-res td:nth-child(2),.cp-res td:nth-child(3){width:22%} .cp-res td:nth-child(4){width:24%}
@media (max-width:760px){ .cp-res{font-size:12.5px} .cp-res td{padding:6px 4px} .cp-res td:nth-child(3){display:none} .cp-res td:first-child{width:auto} .cp-res tr.tot td:first-child{width:auto} }