/* 物料表格仅作用于本模块；手机每行保留字段名。 */
.project-page:has(.design-materials-card) { grid-template-columns:minmax(0,1fr); min-width:0; }
.project-page:has(.design-materials-card)>* { min-width:0; }
.project-page:has(.design-materials-card) .project-tabs-shell { min-width:0; overflow:hidden; }
.project-page:has(.design-materials-card) .tabs { max-width:100%; overflow-x:auto; }
.activity-plan-page,.activity-plan-head,.activity-plan-title { min-width:0; }
.activity-plan-title>div { min-width:0; }
.activity-plan-grid.materials-layout { grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); align-items:start; }
.design-materials-card { min-width:0; }
.materials-optional { display:inline-block; color:#718199; font-size:12px; font-weight:400; margin-left:8px; background:#f2f5f9; padding:3px 7px; border-radius:5px; vertical-align:middle; }
.design-materials-table { margin-top:18px; width:100%; overflow:auto; }
.design-materials-table table { width:100%; min-width:0; table-layout:fixed; border-collapse:collapse; }
.design-materials-table th,.design-materials-table td { padding:10px 6px; border-bottom:1px solid #e8edf4; vertical-align:top; text-align:left; overflow-wrap:anywhere; font-size:13px; }
.design-materials-table th { background:#f7f9fc; color:#526780; font-weight:500; }
.design-materials-table th:nth-child(1) { width:22%; }
.design-materials-table th:nth-child(2) { width:23%; }
.design-materials-table th:nth-child(3) { width:12%; }
.design-materials-table th:nth-child(4) { width:11%; }
.design-materials-table th:nth-child(5) { width:22%; }
.design-materials-table th:nth-child(6) { width:10%; }
.design-materials-table input { width:100%; min-width:0; font-size:13px; padding:8px; height:38px; }
.design-materials-table button { font-size:12px; padding:7px 4px; height:auto; }
.design-materials-table .materials-empty td { text-align:center; padding:32px 8px; color:#8a98ab; }
.materials-add { margin-top:14px; }
.materials-attachments { margin-top:22px; border-top:1px solid #e8edf4; padding-top:14px; }
.materials-attachments summary { cursor:pointer; color:#627895; font-size:13px; }
.materials-attachments .contract-file-panel { margin-top:14px; }
.materials-attachments .contract-file-list-box { min-height:140px; }
@media(max-width:1100px) { .activity-plan-grid.materials-layout { grid-template-columns:1fr; } }
@media(max-width:720px) {
  .activity-plan-head { flex-wrap:wrap; gap:12px; }
  .activity-plan-head .activity-plan-save { flex-shrink:0; }
  .activity-plan-title { flex:1; }
  .activity-plan-title p { white-space:normal; }
  .project-page:has(.design-materials-card) .detail-meta .tag { white-space:normal; }
  .design-materials-table table,.design-materials-table tbody { display:block; }
  .design-materials-table thead { display:none; }
  .design-materials-table tr:not(.materials-empty) { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:14px 0; border-bottom:1px solid #e8edf4; }
  .design-materials-table td { display:block; padding:0; border:0; }
  .design-materials-table td[data-label]::before { content:attr(data-label); display:block; color:#647890; font-size:12px; margin-bottom:6px; }
  .design-materials-table td:nth-child(1),.design-materials-table td:nth-child(2),.design-materials-table td:nth-child(5) { grid-column:1/-1; }
  .design-materials-table .materials-empty { display:block; }
  .design-materials-card { padding:18px; }
}
