.modal-card:has(.batch-create-table-form) {
  width: min(900px, calc(100vw - 32px));
  max-width: 900px;
}

.batch-create-table-form {
  max-height: min(74vh, 760px);
  overflow-y: auto;
  padding-right: 5px;
}

.batch-column-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 44vh;
  overflow-y: auto;
  padding: 4px 5px 4px 1px;
}

.batch-column-row {
  display: grid;
  grid-template-columns: 38px minmax(190px, 1fr) minmax(155px, .7fr) minmax(200px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
}

.batch-column-row input,
.batch-column-row select {
  width: 100%;
  min-width: 0;
  border-radius: 12px;
}

.batch-column-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
}

.batch-column-options {
  grid-column: auto;
}

@media (max-width: 760px) {
  .modal-card:has(.batch-create-table-form) {
    width: calc(100vw - 20px);
  }

  .batch-column-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .batch-column-row select,
  .batch-column-options {
    grid-column: 2;
  }
}
