.wh-child { display: flex; flex-direction: column; gap: 0.75rem; }

.wh-child-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.child-title { font-size: 0.9rem; font-weight: 600; flex: 1; }

.child-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  &.full-width { grid-column: 1 / -1; }
  label { font-size: 0.78rem; font-weight: 500; }
  input, select, textarea {
    padding: 0.3rem 0.45rem;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 4px;
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }
  textarea { resize: vertical; }
}

.field-error { font-size: 0.72rem; color: #d32f2f; }
.form-actions { display: flex; gap: 0.5rem; }
.wh-message   { font-size: 0.82rem; margin: 0.2rem 0; }
.wh-status    { font-size: 0.82rem; opacity: 0.6; padding: 0.4rem 0; }

.wh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  th, td {
    padding: 0.35rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
  }
  th { font-weight: 600; background: var(--table-header-bg, #fafafa); }
  tr:hover td { background: var(--hover-bg, #f5f5f5); }
}

.row-actions { white-space: nowrap; }

.btn {
  padding: 0.3rem 0.7rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  &.btn-primary   { background: #1976d2; color: #fff; }
  &.btn-secondary { background: #757575; color: #fff; }
  &.btn-sm        { padding: 0.25rem 0.55rem; font-size: 0.78rem; }
  &.btn-link      { background: none; color: #1976d2; text-decoration: underline; padding: 0; }
  &.btn-danger-link { background: none; color: #d32f2f; text-decoration: underline; padding: 0; }
  &:disabled      { opacity: 0.5; cursor: not-allowed; }
}
