.ozon-order-page {
  min-height: calc(100vh - 84px);
  padding: 16px;
  background: #f5f7fb;
  color: #1f2329;
  font-size: 14px;
}

.ozon-order-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 14px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.ozon-order-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #5f6673;
  font-size: 12px;
}

.ozon-order-toolbar input,
.ozon-order-toolbar select,
.ozon-order-pagination select {
  height: 32px;
  min-width: 150px;
  padding: 0 10px;
  color: #1f2329;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  outline: none;
}

.ozon-order-toolbar input:focus,
.ozon-order-toolbar select:focus,
.ozon-order-pagination select:focus {
  border-color: #409eff;
}

.ozon-field-wide input {
  min-width: 260px;
}

.ozon-order-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.ozon-order-table {
  width: 100%;
  min-width: 1580px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.ozon-order-table th,
.ozon-order-table td {
  padding: 9px 10px;
  vertical-align: middle;
  border-bottom: 1px solid #edf0f5;
  white-space: nowrap;
}

.ozon-order-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #1f2329;
  font-weight: 650;
  text-align: left;
  background: #fff;
  box-shadow: inset 0 -1px #edf0f5;
}

.ozon-order-table tr:hover td {
  background: #fafcff;
}

.ozon-order-table tr.is-quality-order td {
  color: #b42318;
  background: #fff1f0;
}

.ozon-order-table tr.is-quality-order:hover td {
  background: #ffe4e1;
}

.ozon-order-check {
  width: 42px;
  text-align: center;
}

.ozon-order-number {
  color: #b42318;
  font-weight: 700;
}

.ozon-quality-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  margin-right: 6px;
  color: #fff;
  background: #d92d20;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.ozon-status,
.ozon-api-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.ozon-status.is-warning,
.ozon-api-status {
  color: #b7791f;
  background: #fff8e6;
}

.ozon-status.is-primary {
  color: #2563eb;
  background: #eff6ff;
}

.ozon-status.is-success {
  color: #16794c;
  background: #eaf8f0;
}

.ozon-status.is-danger {
  color: #d03050;
  background: #fff1f0;
}

.ozon-prepare {
  font-size: 13px;
  font-weight: 650;
  color: #303642;
  white-space: nowrap;
}

.ozon-warehouse {
  font-weight: 650;
  color: #1f2329;
}

.ozon-muted,
.ozon-product-meta {
  max-width: 260px;
  margin-top: 3px;
  overflow: hidden;
  color: #7a8494;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ozon-product-cell {
  min-width: 620px;
}

.ozon-product {
  display: grid;
  grid-template-columns: 54px minmax(250px, 1fr) minmax(240px, 0.9fr);
  gap: 10px;
  align-items: start;
}

.ozon-product-thumb,
.ozon-product-img-empty {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  background: #f5f7fb;
}

.ozon-product-name {
  display: block;
  max-width: 300px;
  overflow: hidden;
  color: #3575d3;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.ozon-product-name:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.ozon-product-count {
  margin-top: 4px;
  color: #1f2329;
  font-weight: 650;
}

.ozon-source {
  max-width: 300px;
  overflow: hidden;
  color: #7a8494;
  font-size: 12px;
  line-height: 1.55;
}

.ozon-source div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ozon-source a {
  display: inline-block;
  max-width: 190px;
  overflow: hidden;
  color: #409eff;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.ozon-money {
  color: #1f2329;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.ozon-actions {
  width: 150px;
  background: #fafafa;
}

.ozon-btn {
  height: 28px;
  padding: 0 11px;
  color: #303642;
  font-size: 12px;
  cursor: pointer;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
}

.ozon-btn:hover:not(:disabled) {
  border-color: #409eff;
  color: #409eff;
}

.ozon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ozon-btn.is-primary {
  color: #fff;
  background: #3949db;
  border-color: #3949db;
}

.ozon-btn.is-danger {
  color: #fff;
  background: #ff4d4f;
  border-color: #ff4d4f;
}

.ozon-actions .ozon-btn {
  display: block;
  width: 110px;
  margin: 6px auto;
  font-weight: 650;
}

.ozon-order-empty {
  height: 160px;
  color: #7a8494;
  text-align: center;
}

.ozon-order-pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding: 14px 0;
  color: #5f6673;
}

.ozon-order-toast {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 3000;
  max-width: 420px;
  padding: 12px 16px;
  color: #1f2329;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.ozon-order-toast.is-success {
  border-color: #b7ebc6;
  background: #f0fff4;
}

.ozon-order-toast.is-warning {
  border-color: #ffe3a3;
  background: #fffaf0;
}

.ozon-order-toast.is-error {
  border-color: #ffc9c9;
  background: #fff5f5;
}

.ozon-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(15, 23, 42, 0.38);
}

.ozon-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 4001;
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
  transform: translate(-50%, -50%);
}

.ozon-modal-header,
.ozon-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.ozon-modal-header {
  border-bottom: 1px solid #edf0f5;
}

.ozon-modal-footer {
  border-top: 1px solid #edf0f5;
  justify-content: flex-end;
}

.ozon-modal-title {
  color: #1f2329;
  font-size: 14px;
  font-weight: 700;
}

.ozon-modal-close {
  width: 28px;
  height: 28px;
  color: #7a8494;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
}

.ozon-modal-body {
  padding: 16px;
}

.ozon-modal-desc {
  margin-bottom: 14px;
  color: #1f2329;
  font-size: 14px;
  line-height: 1.7;
}

.ozon-modal-link {
  color: #1677ff;
  font-weight: 700;
}

.ozon-modal-loading {
  padding: 10px 0 6px;
  color: #5f6673;
  font-size: 13px;
}

.ozon-modal-error {
  margin-top: 10px;
  color: #b42318;
  font-size: 12px;
}

.ozon-modal-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.ozon-modal-row label {
  color: #5f6673;
  font-size: 12px;
  line-height: 28px;
}

.ozon-reason-picker {
  position: relative;
}

.ozon-reason-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 16px 18px;
  color: #7a8494;
  background: #fff;
  border: 3px solid #1677ff;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
}

.ozon-reason-trigger-text {
  flex: 1;
  color: #97a0ad;
  font-size: 15px;
}

.ozon-reason-trigger-arrow {
  color: #5f6673;
  font-size: 22px;
  line-height: 1;
}

.ozon-reason-list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 16px 0;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.12);
}

.ozon-reason-option {
  display: block;
  width: 100%;
  padding: 15px 24px;
  color: #1f2329;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.ozon-reason-option:hover,
.ozon-reason-option.is-selected {
  background: #f3f7ff;
}

.ozon-modal-row textarea {
  width: 100%;
  padding: 8px 10px;
  color: #1f2329;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  outline: none;
}

.ozon-modal-row textarea {
  resize: vertical;
  min-height: 72px;
}

.ozon-modal-value {
  color: #1f2329;
  font-size: 13px;
  line-height: 28px;
}

.ozon-modal-row select,
.ozon-modal-row textarea {
  width: 100%;
  padding: 8px 10px;
  color: #1f2329;
  background: #fff;
  border: 1px solid #dcdfe6;
  border-radius: 6px;
  outline: none;
}

@media (max-width: 900px) {
  .ozon-order-page {
    padding: 10px;
  }

  .ozon-order-toolbar {
    align-items: stretch;
  }

  .ozon-order-toolbar label,
  .ozon-order-toolbar input,
  .ozon-order-toolbar select,
  .ozon-btn {
    width: 100%;
  }

  .ozon-modal-row {
    grid-template-columns: 1fr;
  }

  .ozon-reason-list {
    position: static;
    margin-top: 10px;
  }
}
