.config-table input:disabled,
.config-table select:disabled,
.config-table textarea:disabled {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  opacity: 1;
  -webkit-text-fill-color: var(--ink);
  cursor: default;
}

.config-table .row-actions {
  position: sticky;
  right: 0;
  z-index: 3;
  min-width: 78px;
  background: white !important;
  text-align: center;
}

.config-table th[title],
.global-table-section td[title],
.editor-grid label[title] {
  cursor: help;
}

.config-table th[title],
.global-table-section td[title] strong,
.editor-grid label[title] {
  text-decoration: underline dotted #98a3ad;
  text-underline-offset: 3px;
}

.underlying-editor {
  width: min(1040px, calc(100vw - 32px));
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.underlying-editor::backdrop {
  background: rgba(14, 22, 29, .56);
}

.underlying-editor form {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.underlying-editor-body {
  flex: 1;
  min-height: 0;
  padding: 18px 20px;
  overflow: auto;
}

.editor-name {
  display: block;
  max-width: 280px;
  margin-bottom: 18px;
  font-weight: 700;
}

.editor-name input {
  display: block;
  width: 100%;
  margin-top: 5px;
  text-transform: uppercase;
}

.editor-sections {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
}

.editor-sections section {
  border: 1px solid var(--line);
}

.editor-sections h3 {
  margin: 0;
  padding: 9px 12px;
  font-size: 13px;
  background: #f3f6f7;
  border-bottom: 1px solid var(--line);
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
  padding: 13px;
}

.editor-grid label {
  font-size: 12px;
  font-weight: 650;
}

.editor-grid input,
.editor-grid select {
  display: block;
  width: 100%;
  margin-top: 4px;
}

.dialog-actions {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 9px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: #f8f9fa;
}

#editor-error {
  min-height: 20px;
  margin: 12px 0 0;
}

@media (max-width: 760px) {
  .editor-sections,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .dialog-actions {
    grid-template-columns: auto 1fr auto;
  }

  .dialog-actions span {
    display: none;
  }
}
