/* Response policy view — small layout helpers not already covered by the shared workspace/
   section/table/form vocabulary in console.css and decoys-reports.css (.workspace-page,
   .section, .card, table.data, .login-label/.login-input/.login-error, .btn, .pill). Only the
   editable-rules-table and add-rule-form shapes below are new to this page. */

/* table.data.* beats table.data's own min-width:720px (same-weight class selectors, so the more
   specific compound selector — not source order — is what has to win here). */
table.data.response-rules-table {
  min-width: 920px;
}

.response-rules-table input.login-input,
.response-rules-table textarea.login-input {
  width: 100%;
  box-sizing: border-box;
}

.response-rules-table textarea.login-input {
  resize: vertical;
}

.response-pos-cell {
  white-space: nowrap;
}

.response-move-btns {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.response-enabled-cell {
  text-align: center;
}

.response-enabled-checkbox {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--gold);
}

.response-add-card {
  margin-top: 0.9rem;
}

.response-add-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.6rem;
}

.response-add-limit {
  grid-column: 1 / -1;
  margin: 0.2rem 0 0;
}

.response-savebar {
  margin-top: 1.2rem;
}

.response-savebar__row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.response-caption.is-dirty {
  color: var(--gold);
}

.response-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.response-preview-row .login-input {
  flex: 1 1 16rem;
  min-width: 0;
}

@media (max-width: 640px) {
  table.data.response-rules-table {
    min-width: 640px;
  }
}
