#panel-product-cost .cost-notice{padding:12px;background:#fff3cd;border-left:4px solid #d69e2e;font-weight:700}
#panel-product-cost .cost-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:end}
#panel-product-cost label{display:block;min-width:0}
#panel-product-cost small{display:block;color:#586575;overflow-wrap:anywhere}
#panel-product-cost .cost-section{padding:14px 0;border-top:1px solid #dbe2e8}
#panel-product-cost .cost-section summary{font-weight:700;cursor:pointer}
#panel-product-cost .cost-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
#panel-product-cost .cost-input-grid input{width:100%;box-sizing:border-box}
#panel-product-cost .cost-price-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center;padding:12px 0}
#panel-product-cost .cost-price-row>label{max-width:180px}
#panel-product-cost .cost-price-row input{max-width:100%;box-sizing:border-box}
#panel-product-cost td{vertical-align:top;overflow-wrap:anywhere}
#panel-product-cost table{table-layout:fixed;width:100%}
#panel-product-cost th:first-child{width:22%}
#panel-product-cost details p{font-size:13px;white-space:normal}
#panel-product-cost .cost-explanation,#panel-product-cost .cost-warning{color:#755719}
@media(max-width:700px){
 #panel-product-cost .cost-toolbar>label{flex:1 1 100%}
 #panel-product-cost .cost-toolbar input,#panel-product-cost .cost-toolbar select{max-width:100%;box-sizing:border-box}
 #panel-product-cost .cost-table table,#panel-product-cost .cost-table tbody{display:block}
 #panel-product-cost .cost-table thead{display:none}
 #panel-product-cost .cost-table tr{display:block;height:auto;min-height:0;border:1px solid #dbe2e8;border-radius:8px;padding:10px;margin:12px 0}
 #panel-product-cost .cost-table td{display:grid;grid-template-columns:95px minmax(0,1fr);height:auto;min-height:0;width:auto;border:0;padding:6px 0;white-space:normal}
 #panel-product-cost .cost-cell{min-width:0}
 #panel-product-cost .cost-table td:before{content:attr(data-label);font-weight:700;color:#586575}
 #panel-product-cost .cost-input-grid{grid-template-columns:minmax(0,1fr)}
}
