#order-management-page {
  display: grid;
  gap: 18px;
}

.om-intro {
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.2), transparent 15rem),
    linear-gradient(135deg, #061a44, #0b5cff);
  box-shadow: 0 18px 42px rgba(8, 38, 93, 0.16);
}

.om-intro .eyebrow {
  color: #a9c8ff;
}

.om-intro h2 {
  margin: 2px 0 0;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.om-intro p {
  max-width: 760px;
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.om-total {
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.om-tabs {
  padding: 5px;
  display: flex;
  width: fit-content;
  border: 1px solid #e3eaf6;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(8, 38, 93, 0.07);
}

.om-tab {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #6d7b96;
  background: transparent;
  font-weight: 820;
}

.om-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #0b5cff, #4a89ff);
  box-shadow: 0 8px 18px rgba(11, 92, 255, 0.2);
}

.om-filter {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(5, minmax(130px, 0.7fr)) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid #e3eaf6;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(8, 38, 93, 0.08);
}

.om-filter label {
  display: grid;
  gap: 8px;
  color: #10213f;
  font-size: 0.78rem;
  font-weight: 780;
}

.om-filter input,
.om-filter select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #e3eaf6;
  border-radius: 12px;
  outline: none;
  color: #10213f;
  background: #fbfdff;
}

.om-filter input:focus,
.om-filter select:focus {
  border-color: #2f78ff;
  box-shadow: 0 0 0 4px rgba(47, 120, 255, 0.1);
  background: #fff;
}

.om-filter-actions {
  display: flex;
  gap: 8px;
}

.om-filter-actions button {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 800;
}

.om-apply {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #0b5cff, #4a89ff);
  box-shadow: 0 10px 22px rgba(11, 92, 255, 0.2);
}

.om-reset {
  border: 1px solid #e3eaf6;
  color: #0b3a86;
  background: #fff;
}

.om-panel {
  overflow: hidden;
  border: 1px solid #e3eaf6;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(8, 38, 93, 0.08);
}

.om-table-wrap {
  overflow-x: auto;
}

.om-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.om-table th,
.om-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e3eaf6;
  text-align: left;
  vertical-align: middle;
}

.om-table th {
  color: #6d7b96;
  background: #f8faff;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.om-table td {
  color: #10213f;
  font-size: 0.78rem;
}

.om-table tr:last-child td {
  border-bottom: 0;
}

.om-table tr:hover td {
  background: #fbfdff;
}

.om-cell {
  display: grid;
  gap: 4px;
}

.om-cell b {
  color: #061a44;
}

.om-cell small {
  color: #6d7b96;
}

.om-status {
  display: inline-flex;
  padding: 7px 9px;
  border-radius: 9px;
  color: #0b3a86;
  background: #eaf2ff;
  font-size: 0.66rem;
  font-weight: 850;
  white-space: nowrap;
}

.om-status.status-success {
  color: #08794b;
  background: #e6f8f0;
}

.om-status.status-danger {
  color: #b33341;
  background: #fff0f2;
}

.om-status.status-warning {
  color: #9b6407;
  background: #fff5df;
}

.om-view {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #e3eaf6;
  border-radius: 10px;
  color: #0b5cff;
  background: #fff;
  font-weight: 780;
}

.om-pagination {
  min-height: 62px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #e3eaf6;
  background: #fbfdff;
}

.om-page-button {
  min-width: 38px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #e3eaf6;
  border-radius: 10px;
  color: #0b3a86;
  background: #fff;
  font-weight: 760;
}

.om-page-button.active {
  color: #fff;
  border-color: #0b5cff;
  background: #0b5cff;
}

.om-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.om-empty,
.om-loading {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #6d7b96;
  text-align: center;
}

.om-empty.compact {
  min-height: 90px;
}

.om-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(5, 19, 49, 0.42);
  backdrop-filter: blur(3px);
}

.om-drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  width: min(720px, 94vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  color: #10213f;
  background: #f7faff;
  box-shadow: -24px 0 70px rgba(5, 19, 49, 0.24);
}

.om-drawer-head {
  min-height: 88px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e3eaf6;
  background: #fff;
}

.om-drawer-head h2 {
  margin: 0;
  color: #061a44;
  letter-spacing: -0.035em;
}

.om-drawer-close {
  width: 42px;
  height: 42px;
  border: 1px solid #e3eaf6;
  border-radius: 13px;
  color: #0b3a86;
  background: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

.om-drawer-content {
  overflow-y: auto;
  padding: 20px;
}

.om-detail-hero {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #061a44, #0b5cff);
}

.om-detail-hero h3 {
  margin: 6px 0 4px;
  font-size: 1.45rem;
}

.om-detail-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.om-detail-hero > div:last-child {
  display: grid;
  gap: 4px;
  text-align: right;
  white-space: nowrap;
}

.om-detail-hero strong {
  font-size: 1.35rem;
}

.om-detail-hero small {
  color: rgba(255, 255, 255, 0.7);
}

.om-detail-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.om-detail-card {
  padding: 16px;
  border: 1px solid #e3eaf6;
  border-radius: 16px;
  background: #fff;
}

.om-detail-card.full {
  grid-column: 1 / -1;
}

.om-detail-card h4 {
  margin: 0 0 13px;
  color: #061a44;
  font-size: 0.88rem;
}

.om-detail-row {
  padding: 6px 0;
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  font-size: 0.74rem;
}

.om-detail-row span {
  color: #6d7b96;
}

.om-detail-row b {
  overflow-wrap: anywhere;
  text-align: right;
}

.om-timeline {
  display: grid;
}

.om-timeline-row {
  position: relative;
  padding: 0 0 18px 24px;
  display: grid;
  gap: 4px;
  border-left: 2px solid #dce7f7;
}

.om-timeline-row:last-child {
  padding-bottom: 0;
}

.om-timeline-row::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0b5cff;
  box-shadow: 0 0 0 4px #eaf2ff;
}

.om-timeline-row b {
  font-size: 0.76rem;
}

.om-timeline-row span,
.om-timeline-row small {
  color: #6d7b96;
  font-size: 0.68rem;
}

.om-item-list,
.om-attempt-list {
  display: grid;
  gap: 9px;
}

.om-item-row,
.om-attempt-row {
  padding: 12px;
  border-radius: 12px;
  background: #f6f9fe;
}

.om-item-row div,
.om-attempt-row div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.om-item-row small,
.om-attempt-row small {
  color: #6d7b96;
}

.om-snapshot {
  max-height: 260px;
  margin: 0;
  padding: 13px;
  overflow: auto;
  border-radius: 12px;
  color: #dce9ff;
  background: #071d49;
  font: 0.68rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 1320px) {
  .om-filter {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }

  .om-filter label:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .om-filter {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .om-filter label:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .om-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .om-tabs {
    width: 100%;
  }

  .om-tab {
    flex: 1;
  }

  .om-filter,
  .om-detail-grid {
    grid-template-columns: 1fr;
  }

  .om-filter label:first-child,
  .om-detail-card.full {
    grid-column: auto;
  }

  .om-filter-actions {
    width: 100%;
  }

  .om-filter-actions button {
    flex: 1;
  }

  .om-detail-hero {
    flex-direction: column;
  }

  .om-detail-hero > div:last-child {
    text-align: left;
  }
}
