.hole-groups {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.hole-group {
  border: 1px solid var(--line, #d7dde2);
  border-radius: 18px;
  background: #fff;
  padding: 1.15rem;
  box-shadow: 0 8px 28px rgb(24 50 74 / 6%);
}

.hole-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hole-group-header h4 {
  margin: 0;
  font-size: 1.05rem;
}

.hole-group-header button,
.add-hole-group {
  width: auto;
}

.hole-group-header button {
  padding: .55rem .8rem;
  color: #7c2d12;
  background: #fff7ed;
  border-color: #fed7aa;
}

.hole-group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.hole-group-grid .field-wide {
  grid-column: span 2;
}

.hole-group-grid .checkbox-field {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  padding: .65rem .75rem;
  border: 1px solid var(--line, #d7dde2);
  border-radius: 10px;
  background: #f8fafc;
}

.hole-group-grid .checkbox-field input {
  width: auto;
  min-width: 1rem;
  margin: 0;
}

.hole-builder-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.hole-builder-actions small {
  max-width: 52rem;
}

.post-hole-scope-note {
  margin: 1rem 0 0;
  padding: .9rem 1rem;
  border-left: 4px solid #b45309;
  background: #fff7ed;
  border-radius: 0 10px 10px 0;
}

.group-result-table td:first-child,
.group-result-table th:first-child {
  white-space: nowrap;
}

@media (max-width: 820px) {
  .hole-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hole-group {
    padding: .9rem;
  }

  .hole-group-grid {
    grid-template-columns: 1fr;
  }

  .hole-group-grid .field-wide {
    grid-column: auto;
  }

  .hole-builder-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
