.dw-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 8px 0 24px;
}
.dw-heading h2 {
  font-size: 26px;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}
.dw-heading p,
.dw-note {
  color: var(--text-secondary, #667085);
  line-height: 1.7;
  margin: 8px 0;
}
.dw-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.dw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.dw-card {
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e4e7ec);
  border-radius: 18px;
  padding: 24px;
  margin: 0 0 20px;
  box-shadow: 0 3px 12px rgba(16, 24, 40, 0.025);
  overflow-wrap: anywhere;
}
.dw-card h3 {
  font-size: 20px;
  margin: 12px 0;
}
.dw-card p {
  line-height: 1.7;
  margin: 8px 0;
}
.dw-metric {
  font-size: 28px;
  font-weight: 700;
}
.dw-metric small {
  font-size: 14px;
  font-weight: 400;
}
.dw-badge {
  display: inline-flex;
  border-radius: 999px;
  background: #eff6ff;
  color: #175cd3;
  padding: 6px 12px;
  font-size: 14px;
}
.dw-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dw-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
  min-width: 0;
}
.dw-field input,
.dw-field select,
.dw-field textarea {
  min-height: 44px;
}
.dw-field textarea {
  width: 100%;
}
.dw-menu-editor {
  margin: 14px 0;
}
.modal .dw-menu-editor {
  max-height: 360px;
  overflow: auto;
}
.dw-menu-row {
  display: grid;
  grid-template-columns: 24px minmax(150px, 1fr) 110px 110px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #eaecf0;
  padding: 16px 4px;
}
.dw-menu-row[hidden] {
  display: none;
}
.dw-menu-row small {
  display: block;
  color: #667085;
  line-height: 1.7;
  margin: 5px 0;
}
.dw-menu-row strong {
  font-size: 16px;
}
.dw-menu-row input[type='checkbox'] {
  width: 20px;
  height: 20px;
}
.dw-order {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid #eaecf0;
}
.dw-code {
  font-family: monospace;
  font-size: 22px;
  letter-spacing: 1px;
}
.dw-evidence-photo {
  width: 96px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
  margin: 8px;
}
.dw-plan-table {
  overflow: auto;
}
.dw-plan-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.dw-plan-table th,
.dw-plan-table td {
  text-align: left;
  padding: 14px;
  border-bottom: 1px solid #eaecf0;
  vertical-align: top;
}
.dw-plan-table th {
  background: #f9fafb;
  white-space: nowrap;
}
.dw-plan-table td:nth-child(2) {
  min-width: 260px;
}
.dw-plan-table strong {
  display: block;
}
.dw-plan-table input[type='number'] {
  width: 100px;
}
.dw-plan-table input[type='checkbox'] {
  width: 22px;
  height: 22px;
}
@media (max-width: 600px) {
  .dw-heading,
  .dw-order {
    flex-direction: column;
  }
  .dw-form-grid {
    grid-template-columns: 1fr;
  }
  .dw-card {
    padding: 18px;
  }
  .dw-heading h2 {
    font-size: 23px;
  }
  .dw-menu-row {
    grid-template-columns: 24px minmax(100px, 1fr) 80px;
  }
  .dw-menu-row > :last-child {
    grid-column: 2 / 4;
  }
  .dw-menu-row > span:last-child {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .dw-card .btn {
    min-height: 44px;
  }
}
