:root {
  color-scheme: light;
  --navy-950: #071a31;
  --navy-900: #0b2442;
  --navy-800: #12365f;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --slate-950: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --green-700: #15803d;
  --green-100: #dcfce7;
  --amber-700: #b45309;
  --amber-100: #fef3c7;
  --red-700: #b91c1c;
  --red-100: #fee2e2;
  --white: #fff;
  --shadow: 0 12px 32px rgb(15 23 42 / 7%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--slate-950);
  background: var(--slate-50);
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid rgb(37 99 235 / 25%);
  outline-offset: 2px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 8px 20px rgb(37 99 235 / 30%);
  font-weight: 800;
}

.login-page {
  min-height: 100vh;
  background: var(--slate-50);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(320px, 44%) minmax(420px, 56%);
}

.login-brand {
  display: flex;
  min-height: 100%;
  padding: clamp(48px, 8vw, 112px);
  color: rgb(255 255 255 / 82%);
  background: var(--navy-950);
  flex-direction: column;
  justify-content: center;
}

.login-brand .brand-mark {
  margin-bottom: 52px;
}

.login-brand .eyebrow {
  color: #7db2ff;
}

.login-brand h1 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(36px, 4vw, 58px);
  letter-spacing: -.04em;
}

.login-brand > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.8;
}

.login-brand ul {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.login-brand li::before {
  margin-right: 10px;
  color: #60a5fa;
  content: "✓";
}

.login-card {
  width: min(440px, calc(100% - 48px));
  margin: auto;
  padding: 42px;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mobile-brand {
  display: none;
}

.login-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -.03em;
}

.login-card-head > p:last-child,
.login-foot {
  color: var(--slate-500);
  line-height: 1.7;
}

.login-form,
.grant-form {
  display: grid;
  gap: 10px;
}

.login-form {
  margin-top: 32px;
}

.login-form label,
.grant-form > label,
.generated-result > label,
.grant-form legend {
  color: var(--slate-700);
  font-size: 14px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--slate-300);
  border-radius: 9px;
  color: var(--slate-950);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}

input:focus,
select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 10%);
}

input[readonly] {
  color: var(--slate-500);
  background: var(--slate-50);
}

.primary-button {
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 9px;
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 8px 18px rgb(37 99 235 / 20%);
  font-weight: 750;
  transition: background .15s, transform .15s;
}

.primary-button:hover {
  background: var(--blue-700);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: .56;
}

.form-error {
  min-height: 20px;
  margin: 2px 0;
  color: var(--red-700);
  font-size: 13px;
}

.login-foot {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--slate-200);
  font-size: 12px;
}

.admin-page {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 240px;
  padding: 24px 14px;
  color: rgb(255 255 255 / 72%);
  background: var(--navy-950);
  flex-direction: column;
}

.admin-brand {
  display: flex;
  padding: 0 10px 30px;
  color: var(--white);
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.admin-brand strong {
  font-size: 18px;
}

.sidebar nav a {
  display: flex;
  min-height: 44px;
  padding: 13px 15px;
  border-radius: 9px;
  color: rgb(255 255 255 / 70%);
  align-items: center;
  gap: 11px;
  font-weight: 650;
  text-decoration: none;
}

.sidebar nav svg,
.sidebar-toggle svg,
.service-toolbar svg,
.service-drawer svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sidebar nav a.active {
  color: var(--white);
  background: rgb(37 99 235 / 34%);
}

.system-state {
  display: grid;
  margin-top: auto;
  padding: 20px 10px 0;
  border-top: 1px solid rgb(255 255 255 / 14%);
  gap: 8px;
  font-size: 12px;
}

.system-state i {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.system-state small {
  color: rgb(255 255 255 / 42%);
}

.admin-main {
  min-height: 100vh;
  margin-left: 240px;
}

.topbar {
  display: flex;
  height: 68px;
  padding: 0 32px;
  border-bottom: 1px solid var(--slate-200);
  background: rgb(255 255 255 / 94%);
  align-items: center;
  justify-content: flex-end;
}

.sidebar-toggle {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.services-content {
  width: min(1380px, calc(100% - 48px));
}

.service-summary {
  display: grid;
  margin-bottom: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-summary article {
  display: flex;
  min-height: 112px;
  padding: 22px;
  border: 1px solid var(--slate-200);
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow);
  align-items: center;
  gap: 15px;
}

.summary-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-weight: 850;
}

.summary-icon.healthy {
  color: var(--green-700);
  background: var(--green-100);
}

.summary-icon.attention {
  color: var(--amber-700);
  background: var(--amber-100);
}

.summary-icon.stopped {
  color: var(--red-700);
  background: var(--red-100);
}

.service-summary small {
  display: block;
  margin-bottom: 6px;
  color: var(--slate-500);
  font-size: 13px;
}

.service-summary strong {
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.service-panel {
  padding: 24px;
}

.service-toolbar {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.service-toolbar h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.service-toolbar p {
  margin: 0;
  color: var(--slate-500);
  font-size: 13px;
}

.service-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-search {
  position: relative;
  min-width: 240px;
}

.service-search svg {
  position: absolute;
  top: 13px;
  left: 13px;
  width: 18px;
  height: 18px;
  color: var(--slate-500);
  pointer-events: none;
}

.service-search input {
  padding-left: 40px;
}

.service-status-filter {
  min-width: 140px;
}

.service-refresh {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 7px;
}

.service-refresh:disabled {
  cursor: wait;
  opacity: .6;
}

.service-list {
  display: grid;
  gap: 9px;
}

.service-loading,
.service-empty {
  min-height: 180px;
  color: var(--slate-500);
  place-content: center;
  text-align: center;
}

.service-loading {
  display: grid;
}

.service-empty {
  gap: 6px;
}

.service-empty:not([hidden]) {
  display: grid;
}

.service-row {
  display: grid;
  width: 100%;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid var(--slate-200);
  border-radius: 11px;
  color: var(--slate-950);
  background: var(--white);
  grid-template-columns: minmax(220px, 1.4fr) minmax(120px, .7fr) minmax(140px, .8fr) minmax(170px, 1fr) 24px;
  align-items: center;
  gap: 16px;
  text-align: left;
  transition: border-color .16s, box-shadow .16s, background .16s;
}

.service-row:hover {
  border-color: #93c5fd;
  background: #fbfdff;
  box-shadow: 0 8px 20px rgb(15 23 42 / 6%);
}

.service-row:focus-visible {
  border-color: var(--blue-600);
}

.service-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.service-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 14px;
  font-weight: 850;
}

.service-name strong,
.service-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-name strong {
  margin-bottom: 5px;
  font-size: 15px;
}

.service-name small,
.service-metric small {
  color: var(--slate-500);
  font-size: 12px;
}

.service-metric strong {
  display: block;
  margin-top: 5px;
  color: var(--slate-700);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.service-chevron {
  color: var(--slate-500);
  font-size: 24px;
}

.service-drawer-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  background: rgb(15 23 42 / 42%);
}

.service-drawer {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  display: grid;
  width: min(500px, 100%);
  height: 100dvh;
  border-left: 1px solid var(--slate-200);
  background: var(--white);
  box-shadow: -20px 0 50px rgb(15 23 42 / 14%);
  grid-template-rows: auto 1fr auto;
  transform: translateX(102%);
  transition: transform .2s ease-out, visibility 0s linear .2s;
  visibility: hidden;
  pointer-events: none;
}

.service-drawer.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.service-drawer > header,
.service-drawer > footer {
  display: flex;
  padding: 22px 24px;
  border-bottom: 1px solid var(--slate-200);
  align-items: center;
  justify-content: space-between;
}

.service-drawer > footer {
  border-top: 1px solid var(--slate-200);
  border-bottom: 0;
}

.service-drawer h2 {
  margin: 0;
  font-size: 24px;
}

.service-drawer-close {
  display: grid;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9px;
  color: var(--slate-700);
  background: var(--slate-100);
  place-items: center;
}

.service-detail-body {
  padding: 24px;
  overflow-y: auto;
}

.service-detail-status {
  display: flex;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: 11px;
  align-items: center;
  justify-content: space-between;
}

.service-detail-status strong {
  font-size: 16px;
}

.service-instance-card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: 11px;
}

.service-instance-card h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.service-detail-grid {
  display: grid;
  margin: 0;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-detail-grid div {
  min-width: 0;
  padding: 12px;
  border-radius: 9px;
  background: var(--slate-50);
}

.service-detail-grid dt {
  margin-bottom: 5px;
  color: var(--slate-500);
  font-size: 11px;
}

.service-detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 650;
}

.service-checks {
  display: grid;
  margin-top: 14px;
  gap: 8px;
}

.service-check {
  display: flex;
  padding: 11px 12px;
  border: 1px solid var(--slate-200);
  border-radius: 9px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.service-recovery {
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 9px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 13px;
  line-height: 1.65;
}

.service-detail-updated {
  color: var(--slate-500);
  font-size: 12px;
}

@media (max-width: 1080px) {
  .service-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-toolbar { align-items: stretch; flex-direction: column; }
  .service-filters { flex-wrap: wrap; }
  .service-search { flex: 1 1 260px; }
  .service-row { grid-template-columns: minmax(220px, 1.4fr) minmax(110px, .8fr) minmax(140px, 1fr) 24px; }
  .service-row .service-address { display: none; }
}

@media (max-width: 720px) {
  .services-content { width: min(100% - 28px, 1380px); }
  .services-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .service-summary { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service-summary article { min-height: 94px; padding: 16px; }
  .service-panel { padding: 16px; }
  .service-filters { display: grid; grid-template-columns: 1fr auto; }
  .service-search { min-width: 0; grid-column: 1 / -1; }
  .service-row { min-height: 104px; grid-template-columns: 1fr auto; gap: 10px; }
  .service-row .service-metric { display: none; }
  .service-detail-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .service-drawer,
  .service-row { transition: none; }
}

.account {
  display: flex;
  color: var(--slate-700);
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-600);
  font-weight: 800;
  text-transform: uppercase;
}

.logout-button,
.refresh-button,
.copy-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  color: var(--slate-700);
  background: var(--white);
  font-weight: 650;
}

.logout-button {
  margin-left: 10px;
}

.content {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 64px;
}

.page-heading {
  display: flex;
  margin-bottom: 24px;
  align-items: flex-end;
  justify-content: space-between;
}

.page-heading h1 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -.035em;
}

.page-heading > div > p:last-child {
  margin: 0;
  color: var(--slate-500);
}

.secure-note {
  padding: 8px 12px;
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  color: var(--blue-700);
  background: #eff6ff;
  font-size: 12px;
  font-weight: 700;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(440px, 1.08fr);
  gap: 18px;
}

.panel {
  border: 1px solid var(--slate-200);
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.grant-panel,
.result-panel {
  min-height: 430px;
  padding: 24px;
}

.panel-title {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  justify-content: space-between;
}

.panel-title > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title h2 {
  margin: 0;
  font-size: 18px;
}

.panel-title p {
  margin: 0;
  color: var(--slate-500);
  font-size: 12px;
}

.step-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  color: var(--blue-700);
  background: var(--blue-100);
  font-size: 11px;
  font-weight: 850;
}

.grant-form {
  gap: 12px;
}

.grant-form fieldset {
  min-width: 0;
  margin: 4px 0;
  padding: 0;
  border: 0;
}

.grant-form legend {
  margin-bottom: 10px;
}

.result-panel {
  display: grid;
}

.empty-result {
  display: grid;
  max-width: 320px;
  margin: auto;
  color: var(--slate-500);
  place-items: center;
  text-align: center;
}

.empty-result h2 {
  margin: 16px 0 6px;
  color: var(--slate-700);
  font-size: 19px;
}

.empty-result p {
  margin: 0;
  line-height: 1.65;
}

.empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 14px;
  color: var(--blue-600);
  background: var(--blue-100);
  font-size: 28px;
}

.generated-result {
  align-self: start;
}

.success-title {
  display: flex;
  margin-bottom: 28px;
  align-items: center;
  gap: 12px;
}

.success-title > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: #16a34a;
  font-weight: 900;
}

.success-title .eyebrow {
  margin-bottom: 2px;
  color: var(--green-700);
}

.success-title h2 {
  margin: 0;
  color: var(--green-700);
  font-size: 22px;
}

.copy-row {
  display: grid;
  margin-top: 8px;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.copy-button {
  min-height: 46px;
  color: var(--blue-700);
  border-color: var(--blue-600);
}

.result-details {
  margin: 24px 0 0;
}

.result-details div {
  display: grid;
  padding: 13px 0;
  border-top: 1px solid var(--slate-200);
  grid-template-columns: 92px 1fr;
}

.result-details dt {
  color: var(--slate-500);
}

.result-details dd {
  margin: 0;
  font-weight: 600;
  word-break: break-all;
}

.copy-feedback {
  margin: 12px 0 0;
  color: var(--slate-500);
  font-size: 12px;
}

.records-panel {
  margin-top: 18px;
  padding: 22px 24px 18px;
}

.records-heading {
  margin-bottom: 18px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}

th {
  padding: 12px 14px;
  color: var(--slate-500);
  background: var(--slate-50);
  font-size: 12px;
  text-align: left;
}

th:first-child {
  border-radius: 8px 0 0 8px;
}

th:last-child {
  border-radius: 0 8px 8px 0;
}

td {
  padding: 14px;
  border-bottom: 1px solid var(--slate-200);
  color: var(--slate-700);
}

.loading-cell {
  height: 90px;
  color: var(--slate-500);
  text-align: center;
}

.status-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
}

.status-badge.success {
  color: var(--green-700);
  background: var(--green-100);
}

.status-badge.warning {
  color: var(--amber-700);
  background: var(--amber-100);
}

.status-badge.danger {
  color: var(--red-700);
  background: var(--red-100);
}

.status-badge.info {
  color: var(--blue-700);
  background: var(--blue-100);
}

.status-badge.neutral {
  color: var(--slate-700);
  background: var(--slate-100);
}

.records-empty {
  margin: 34px 0;
  color: var(--slate-500);
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  padding: 12px 16px;
  border-radius: 9px;
  color: var(--white);
  background: var(--slate-950);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: var(--red-700);
}

@media (max-width: 1000px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .result-panel {
    min-height: 330px;
  }
}

@media (max-width: 760px) {
  .login-shell {
    display: block;
    padding: 32px 0;
  }

  .login-brand {
    display: none;
  }

  .mobile-brand {
    display: block;
    margin-bottom: 28px;
    color: var(--navy-900);
    font-size: 17px;
    font-weight: 800;
  }

  .login-card {
    padding: 30px 24px;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s ease;
  }

  .sidebar-open .sidebar {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0;
  }

  .topbar {
    padding: 0 18px;
    justify-content: space-between;
  }

  .sidebar-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    font-size: 22px;
    place-items: center;
  }

  .content {
    width: min(100% - 28px, 1280px);
    padding-top: 26px;
  }

  .page-heading {
    align-items: flex-start;
    gap: 18px;
    flex-direction: column;
  }

  .grant-panel,
  .result-panel,
  .records-panel {
    padding: 18px;
  }

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

  .account > span:not(.avatar) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.summary-icon.order-pending {
  color: #0e7490;
  background: #cffafe;
}

.order-filter-panel,
.order-list-panel {
  padding: 22px 24px;
}

.order-list-panel {
  margin-top: 18px;
}

.order-filter-heading,
.order-list-heading {
  margin-bottom: 18px;
}

.order-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) repeat(2, minmax(140px, .8fr)) repeat(2, minmax(145px, .82fr)) auto;
  align-items: end;
  gap: 12px;
}

.order-filter-form label {
  display: grid;
  min-width: 0;
  color: var(--slate-700);
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.order-filter-form input,
.order-filter-form select,
.order-filter-actions button,
.order-list-heading button,
.order-pagination button,
.order-drawer footer button {
  min-height: 44px;
}

.order-filter-actions {
  display: grid;
  grid-template-columns: 72px 72px;
  gap: 8px;
}

.order-search-button {
  min-width: 72px;
  margin: 0;
}

.order-filter-error {
  grid-column: 1 / -1;
  min-height: 0;
  margin: 0;
}

.order-table-scroll {
  min-height: 150px;
}

.order-table {
  min-width: 980px;
}

.order-row {
  cursor: pointer;
  transition: background .16s, box-shadow .16s;
}

.order-row:hover,
.order-row.selected {
  background: #f8fbff;
  box-shadow: inset 3px 0 0 var(--blue-600);
}

.order-row:focus-visible {
  outline: 3px solid rgb(37 99 235 / 25%);
  outline-offset: -3px;
}

.order-number-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--blue-700);
  background: transparent;
  font-weight: 750;
  text-align: left;
}

.order-tool-cell strong,
.order-tool-cell small,
.order-task-cell strong,
.order-task-cell small {
  display: block;
}

.order-tool-cell small,
.order-task-cell small {
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 11px;
}

.order-number,
.order-amount,
.order-progress-value {
  font-variant-numeric: tabular-nums;
}

.order-progress-track {
  width: 112px;
  height: 4px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--slate-200);
}

.order-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue-600);
}

.order-empty {
  min-height: 180px;
  color: var(--slate-500);
  place-content: center;
  gap: 6px;
  text-align: center;
}

.order-empty:not([hidden]) {
  display: grid;
}

.order-pagination {
  display: flex;
  min-height: 64px;
  padding-top: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.order-pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-pagination-info,
.order-page-current {
  color: var(--slate-500);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.order-detail-loading {
  display: grid;
  min-height: 240px;
  color: var(--slate-500);
  place-items: center;
}

.order-detail-section {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--slate-200);
  border-radius: 11px;
}

.order-detail-section h3 {
  margin: 0 0 14px;
  font-size: 15px;
}

.order-detail-summary {
  display: flex;
  margin-bottom: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-detail-summary strong {
  overflow-wrap: anywhere;
  font-size: 15px;
}

.order-detail-grid {
  display: grid;
  margin: 0;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-detail-grid div {
  min-width: 0;
}

.order-detail-grid dt {
  margin-bottom: 4px;
  color: var(--slate-500);
  font-size: 11px;
}

.order-detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--slate-700);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.order-task-progress {
  margin: 4px 0 16px;
}

.order-task-progress header {
  display: flex;
  margin-bottom: 8px;
  color: var(--slate-700);
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}

.order-task-progress .order-progress-track {
  width: 100%;
  height: 6px;
  margin: 0;
}

.order-timeline {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0;
}

.order-timeline li {
  position: relative;
  min-height: 58px;
  padding: 0 0 16px 26px;
}

.order-timeline li::before {
  position: absolute;
  top: 4px;
  left: 3px;
  width: 9px;
  height: 9px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--blue-600);
  box-shadow: 0 0 0 1px #93c5fd;
  content: "";
}

.order-timeline li:not(:last-child)::after {
  position: absolute;
  top: 18px;
  bottom: -3px;
  left: 9px;
  width: 1px;
  background: var(--slate-200);
  content: "";
}

.order-timeline strong,
.order-timeline span {
  display: block;
}

.order-timeline strong {
  color: var(--slate-700);
  font-size: 13px;
}

.order-timeline span {
  margin-top: 4px;
  color: var(--slate-500);
  font-size: 11px;
  line-height: 1.5;
}

.order-action-empty {
  margin: 0;
  color: var(--slate-500);
  font-size: 13px;
}

@media (max-width: 1240px) {
  .order-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .order-filter-actions {
    align-self: end;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .orders-content {
    width: min(100% - 28px, 1380px);
  }

  .orders-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .order-filter-panel,
  .order-list-panel {
    padding: 16px;
  }

  .order-filter-heading,
  .order-list-heading,
  .order-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-filter-form {
    grid-template-columns: 1fr;
  }

  .order-keyword-field,
  .order-filter-error {
    grid-column: 1;
  }

  .order-filter-actions {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .order-pagination > div,
  .order-pagination button {
    width: 100%;
  }

  .order-page-current {
    min-width: 88px;
    text-align: center;
  }

  .order-detail-grid {
    grid-template-columns: 1fr;
  }
}
