.orders-modal__dialog--user-form {
  max-width: 520px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.modal-form__section {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
  min-width: 0;
}

.modal-form__section:last-of-type {
  margin-bottom: 12px;
}

.modal-form__legend {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--theme-muted);
  margin: 0 0 10px;
  padding: 0;
  width: 100%;
}

.modal-form__legend-hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.modal-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.modal-form__grid--1col {
  grid-template-columns: 1fr;
  margin-bottom: 12px;
}

.modal-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.modal-form__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-subtle);
}

.modal-form__input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--theme-input-border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--theme-input-text);
  background: var(--theme-input-bg);
  width: 100%;
  box-sizing: border-box;
}

.modal-form__input--color {
  padding: 2px 4px;
  max-width: 72px;
}

.modal-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--theme-card-border);
}

@media (max-width: 560px) {
  .modal-form__grid {
    grid-template-columns: 1fr;
  }
}

.orders-modal__success {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 12px;
}

.orders-modal--confirm-layer {
  z-index: 1100;
}

.orders-modal--bulk-progress-layer {
  z-index: 1200;
}

.bulk-progress {
  height: 10px;
  border-radius: 999px;
  background: var(--theme-spinner-track);
  overflow: hidden;
  margin: 12px 0 8px;
}

.bulk-progress__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  width: 0%;
  transition: width 0.2s ease;
}

.bulk-progress__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-modal-title);
}

.bulk-progress-log {
  max-height: 220px;
  overflow-y: auto;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--theme-summary-bg);
  border: 1px solid var(--theme-summary-border);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.5;
  color: var(--theme-table-cell-text);
}

.bulk-progress-log__line--ok {
  color: #047857;
}

.bulk-progress-log__line--err {
  color: #b91c1c;
}

.bulk-progress-log__line--info {
  color: var(--theme-subtle);
}

.orders-modal__dialog--confirm {
  max-width: 440px;
}

.orders-modal__confirm-text {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--theme-modal-title);
  line-height: 1.45;
}

.orders-modal__confirm-refs {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--theme-modal-title);
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.orders-modal__confirm-refs-item strong {
  color: var(--theme-heading);
}

.orders-modal__confirm-refs-sep {
  color: var(--theme-muted);
  font-weight: 700;
}

.orders-modal__confirm-hint {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--theme-muted);
  line-height: 1.4;
}

.orders-modal__actions--footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.orders-modal__actions--confirm-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.orders-btn--large {
  padding: 8px 14px;
  font-size: 12px;
}

.orders-btn--ghost {
  background: var(--theme-ghost-bg);
  color: var(--theme-subtle);
  border-color: var(--theme-input-border);
}

.orders-btn--ghost:hover {
  background: var(--theme-ghost-hover-bg);
}

.orders-btn--ghost:disabled,
.orders-btn--success:disabled,
.orders-btn--primary:disabled,
.orders-btn--danger:disabled,
.orders-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
