.kctrl-form__section-title {
  margin-top: 20px;
  margin-bottom: 20px;
}

.url-field__row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}
.url-field__input {
  flex: 1;
  min-width: 0;
}
.url-field__remove-btn {
  flex-shrink: 0;
}
.url-field__add-btn {
  margin-top: 10px;
  flex-shrink: 0;
}

.file-field__table {
  border: 1px solid #d3d7dd;
  border-radius: 6px;
  background-color: #f6f7f9;
  padding: 12px;
  margin-bottom: 12px;
}
.file-field__header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)) 90px;
  gap: 12px;
  font-size: 0.9em;
  font-weight: 600;
  color: #445069;
  margin-bottom: 8px;
}
.file-field__header span:last-child {
  text-align: center;
}
.file-field__header-label {
  display: block;
  white-space: nowrap;
}
.file-field__body {
  display: grid;
  gap: 10px;
}
.file-field__row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)) 90px;
  gap: 12px;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e3e6eb;
  border-radius: 4px;
  padding: 10px 12px;
}
.file-field__row > * {
  min-width: 0;
}
.file-field__current img {
  max-width: 100%;
  height: auto;
}
.file-field__current {
  font-size: 0.95em;
  line-height: 1.4;
}
.file-field__current a {
  word-break: break-word;
}
.file-field__current--empty {
  color: #6c757d;
  font-size: 0.9em;
}
.file-field__current-label {
  display: inline-block;
}
.file-field__original {
  color: #6c757d;
  font-size: 0.85em;
  margin-top: 4px;
}
.file-field__upload input[type=file], .file-field__display input[type=text] {
  width: 100%;
}
.file-field__actions {
  text-align: center;
}
.file-field__actions .kctrl-button {
  min-width: 64px;
}
.file-field__order-controls {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}
.file-field__order-controls .kctrl-button {
  min-width: 36px;
  padding-left: 8px;
  padding-right: 8px;
}
.file-field__order-controls .kctrl-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.file-field__add-btn {
  margin-top: 10px;
  flex-shrink: 0;
}
.file-field__note {
  color: #666;
  font-size: 0.9em;
  margin-top: 8px;
}
.file-field--pdf-sort .file-field__header,
.file-field--pdf-sort .file-field__row {
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)) 80px 90px;
}
.file-field--pdf-sort .file-field__order {
  text-align: center;
}
.file-field--pdf-sort .file-field__order input[type=number] {
  width: 100%;
}
.file-field--banner .file-field__header,
.file-field--banner .file-field__row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) 90px;
}
.file-field--banner-border .file-field__header,
.file-field--banner-border .file-field__row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) 90px 110px;
}
.file-field--banner .file-field__link input[type=text] {
  width: 100%;
}
.file-field--banner .file-field__border {
  text-align: center;
}
.file-field--banner .file-field__border label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .file-field .file-field__header,
  .file-field .file-field__row {
    grid-template-columns: 1fr;
  }
  .file-field__row {
    gap: 8px;
  }
}
.kctrl-button-group {
  flex-wrap: wrap;
}

.kctrl-button-group:has(> .kctrl-button--green):has(> [type="submit"], > .kctrl-button--gray) {
  row-gap: 0.5rem;
}
.kctrl-button-group:has(> .kctrl-button--green):has(> [type="submit"], > .kctrl-button--gray)::after {
  content: "";
  flex-basis: 100%;
  order: 1;
}
.kctrl-button-group:has(> .kctrl-button--green):has(> [type="submit"], > .kctrl-button--gray) > :not(.kctrl-button--green) {
  order: 2;
}

.kctrl-card {
  overflow-wrap: anywhere;
}
