.wf-order-page {
  color: var(--text);
  padding: 0 0 24px;
}
.wf-back {
  border: 0;
  background: none;
  color: var(--brand);
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.wf-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin: 18px 0 12px;
}
.wf-order-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.wf-order-title h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
}
.wf-order-header p {
  margin: 8px 0 0;
  color: #6f697b;
  font-size: 12px;
}
.wf-status {
  padding: 5px 12px;
  border-radius: 6px;
  background: #fcf2db;
  color: #8c6919;
  font-size: 12px;
}
.wf-cancelled {
  background: #fbe9e7;
  color: #a7352b;
}
.wf-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.wf-header-actions button {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 12px;
}
#wfPreview {
  color: #8c6919;
  border-color: #c5a453;
  background: #fffbef;
}
.wf-context {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: #77717f;
  font-size: 11px;
}
.wf-context label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wf-context select {
  max-width: 240px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px;
  background: white;
  color: var(--text);
  font: inherit;
}
.wf-action-note {
  color: #a7352b;
  font-size: 12px;
  text-align: right;
  margin: 4px 0 14px;
}
.wf-stepper {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow-x: auto;
}
.wf-stepper ol {
  display: grid;
  grid-template-columns: repeat(9, minmax(100px, 1fr));
  min-width: 900px;
  list-style: none;
  padding: 19px 14px;
  margin: 0;
}
.wf-stepper li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  position: relative;
  font-size: 11px;
  color: #817b88;
  text-align: center;
}
.wf-stepper li:not(:last-child)::after {
  content: "";
  height: 1px;
  background: #e1dce9;
  position: absolute;
  top: 12px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
}
.wf-step-dot {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #c8c2d0;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  z-index: 1;
}
.wf-stepper .current {
  color: var(--text);
  font-weight: 600;
}
.wf-stepper .current .wf-step-dot,
.wf-stepper .done .wf-step-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.wf-stepper .done::after {
  background: #b9aedc;
}
.wf-reference-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  margin: 0 0 15px;
  overflow: hidden;
}
.wf-reference-card h3 {
  margin: 0;
  padding: 18px 20px;
  font-size: 15px;
}
.wf-reference-card h3 small {
  float: right;
  font-size: 11px;
  color: #88818f;
  font-weight: 400;
}
.wf-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 28px;
  margin: 0;
  padding: 0 20px 22px;
}
.wf-info-grid dt {
  color: #807988;
  font-size: 11px;
  margin-bottom: 5px;
}
.wf-info-grid dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.wf-items {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 12px;
}
.wf-items th {
  background: #faf9fc;
  color: #7a7384;
  font-weight: 400;
}
.wf-items td,
.wf-items th {
  padding: 13px 18px;
  text-align: left;
  border-top: 1px solid #eeeaf3;
}
.wf-items td:first-child {
  color: var(--brand);
}
.wf-items .wf-number {
  text-align: right;
  white-space: nowrap;
}
.wf-totals {
  background: #faf9fd;
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid #eeeaf3;
  display: grid;
  gap: 7px;
}
.wf-totals > div {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-size: 12px;
}
.wf-totals dd {
  min-width: 105px;
  margin: 0;
  text-align: right;
}
.wf-totals > div:last-child {
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
}
.wf-documents {
  border-top: 1px solid #eeeaf3;
  padding: 20px;
  font-size: 12px;
  color: #797381;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.wf-documents span {
  background: #f7f5fb;
  padding: 7px 12px;
  border-radius: 5px;
  color: var(--brand);
}
.wf-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
}
.wf-dialog::backdrop {
  background: #201a3866;
}
.wf-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.wf-dialog-header h3 {
  font-size: 16px;
  margin: 0;
}
.wf-dialog-header button {
  background: none;
  border: 0;
  font-size: 26px;
  cursor: pointer;
  color: #777;
}
.wf-dialog-body {
  padding: 18px;
}
.wf-dialog .domain-card {
  margin-bottom: 0;
  border: 0;
  padding: 0;
}
.wf-dialog fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
}
.wf-error {
  color: #a7352b;
}
.wf-order-page button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#workflowPermissions {
  margin-top: 20px;
}
#workflowPermissions label {
  overflow-wrap: anywhere;
}
@media (max-width: 860px) {
  .wf-order-header {
    flex-direction: column;
    gap: 14px;
  }
  .wf-header-actions {
    justify-content: flex-start;
  }
  .wf-context {
    justify-content: flex-start;
  }
  .wf-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .wf-info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .wf-order-title h2 {
    font-size: 20px;
  }
  .wf-context {
    display: grid;
  }
  .wf-context label {
    flex-wrap: wrap;
  }
  .wf-context select {
    width: 100%;
    max-width: 100%;
  }
  .wf-header-actions {
    width: 100%;
  }
  .wf-header-actions button {
    flex: 1 1 auto;
  }
  .wf-dialog-body {
    padding: 14px;
  }
}

.order-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  padding: 8px 2px;
}

.order-detail-item {
  flex: 1 1 calc(25% - 40px);
  min-width: 190px;
}

.order-detail-item small {
  display: block;
  margin-bottom: 7px;
  color: #81798e;
}

.order-detail-item strong {
  display: block;
  color: #201a2b;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.order-items-table {
  min-width: 860px;
  border: 1px solid #e5e1ec;
  border-radius: 12px;
  overflow: hidden;
}

.order-items-table thead th {
  padding-top: 13px;
  padding-bottom: 13px;
  background: #f5f2fa;
  color: #51485f;
}

.order-items-table tbody td {
  padding-top: 15px;
  padding-bottom: 15px;
  vertical-align: middle;
}

.order-items-table .product-cell {
  min-width: 300px;
}

.order-items-table .product-cell img {
  width: 66px;
  height: 66px;
}

.order-items-table .number-cell {
  text-align: right;
  white-space: nowrap;
}

.order-total-wrap {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
}

.order-total-box {
  width: min(100%, 390px);
  border: 1px solid #e5e1ec;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.order-total-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 16px;
  color: #625b70;
}

.order-total-row strong {
  color: #211a2c;
}

.order-total-row.grand-total {
  padding-top: 14px;
  padding-bottom: 14px;
  border-top: 1px solid #ddd6e8;
  background: #f7f4fc;
  color: var(--brand);
  font-size: 17px;
  font-weight: 700;
}

.order-payment-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: #f8f6fc;
}

.order-payment-note small {
  display: block;
  color: #81798e;
  margin-bottom: 3px;
}
