.compras-tracker-widget {
  color: #172033;
}

.tracker-shell {
  background: #f7f9fc;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  padding: 18px;
}

.tracker-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tracker-header h2 {
  color: #101828;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px;
}

.tracker-header p {
  color: #667085;
  font-size: 13px;
  margin: 0;
}

.tracker-search,
.tracker-card,
.tracker-table-wrap {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .05);
}

.tracker-search {
  margin-bottom: 14px;
  padding: 16px;
}

.tracker-search label {
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.tracker-search-actions .btn {
  margin-top: 0;
}

.tracker-refresh {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.tracker-message:empty {
  display: none;
}

.tracker-results {
  margin-bottom: 14px;
}

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

.tracker-table {
  margin: 0;
}

.tracker-table > thead > tr > th {
  background: #f8fafc;
  border-bottom: 1px solid #d9e2ec;
  color: #344054;
  font-size: 12px;
  white-space: nowrap;
}

.tracker-table > tbody > tr > td {
  color: #344054;
  font-size: 13px;
  vertical-align: middle;
}

.tracker-detail {
  margin-top: 14px;
}

.tracker-card {
  margin-bottom: 14px;
  padding: 16px;
}

.tracker-card-main {
  padding: 18px;
}

.tracker-title-row,
.tracker-section-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.tracker-title-row {
  margin-bottom: 16px;
}

.tracker-title-row h3 {
  color: #101828;
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 3px;
}

.tracker-title-row span {
  color: #667085;
  font-size: 12px;
}

.tracker-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tracker-info {
  background: #fbfcfe;
  border: 1px solid #e6edf5;
  border-radius: 6px;
  min-height: 68px;
  padding: 10px 12px;
}

.tracker-info span {
  color: #667085;
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.tracker-info strong {
  color: #172033;
  display: block;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tracker-steps {
  align-items: flex-start;
  display: grid;
  grid-template-columns: repeat(5, minmax(96px, 1fr));
  position: relative;
}

.tracker-steps:before {
  background: #cfd8e3;
  content: "";
  height: 2px;
  left: 10%;
  position: absolute;
  right: 10%;
  top: 22px;
}

.tracker-step {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  position: relative;
  text-align: center;
  z-index: 1;
}

.tracker-step-icon {
  align-items: center;
  background: #d0d5dd;
  border-radius: 999px;
  color: #475467;
  display: flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 4px;
  width: 44px;
}

.tracker-step.is-done .tracker-step-icon {
  background: #2563eb;
  color: #fff;
}

.tracker-step strong {
  color: #172033;
  font-size: 12px;
  line-height: 1.2;
}

.tracker-step span {
  color: #667085;
  font-size: 11px;
  line-height: 1.2;
  max-width: 120px;
  overflow-wrap: anywhere;
}

.tracker-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
}

.tracker-section-head {
  border-bottom: 1px solid #e6edf5;
  margin: -2px -16px 12px;
  padding: 0 16px 12px;
}

.tracker-section-head h4 {
  color: #172033;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.tracker-section-head > span {
  align-items: center;
  background: #eef2f7;
  border-radius: 999px;
  color: #344054;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  min-width: 24px;
  padding: 0 8px;
}

.tracker-mini-table {
  overflow-x: auto;
}

.tracker-mini-table .table {
  margin: 0;
}

.tracker-mini-table th {
  color: #344054;
  font-size: 12px;
  white-space: nowrap;
}

.tracker-mini-table td {
  color: #344054;
  font-size: 12px;
  vertical-align: middle;
}

.tracker-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
  white-space: nowrap;
}

.tracker-badge.is-success {
  background: #dcfce7;
  color: #15803d;
}

.tracker-badge.is-warning {
  background: #fef3c7;
  color: #b45309;
}

.tracker-badge.is-danger {
  background: #fee2e2;
  color: #b42318;
}

.tracker-badge.is-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.tracker-order-line {
  align-items: center;
  border: 1px solid #e6edf5;
  border-radius: 6px;
  display: grid;
  gap: 10px;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  padding: 10px 12px;
}

.tracker-order-line span {
  color: #344054;
  overflow-wrap: anywhere;
}

.tracker-order-line em {
  color: #172033;
  font-style: normal;
  font-weight: 700;
}

.tracker-muted,
.tracker-updated {
  color: #667085;
  font-size: 12px;
  margin-top: 10px;
}

.tracker-approval-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tracker-approval-list li {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  padding: 9px 0;
}

.tracker-approval-list li + li {
  border-top: 1px solid #eef2f7;
}

.tracker-approval-dot {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 24px;
  font-size: 12px;
  font-weight: 700;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.tracker-approval-list .is-approved .tracker-approval-dot {
  background: #16a34a;
  color: #fff;
}

.tracker-approval-list .is-waiting .tracker-approval-dot {
  background: #fef3c7;
  color: #b45309;
}

.tracker-approval-list strong {
  color: #172033;
  display: block;
  font-size: 13px;
}

.tracker-approval-list small {
  color: #667085;
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.tracker-resume {
  display: grid;
  gap: 10px 16px;
  grid-template-columns: 150px minmax(0, 1fr);
  margin: 0;
}

.tracker-resume dt {
  color: #667085;
  font-weight: 600;
}

.tracker-resume dd {
  color: #172033;
  font-weight: 600;
  margin: 0;
  overflow-wrap: anywhere;
}

.tracker-state,
.tracker-empty-inline {
  align-items: center;
  background: #fff;
  border: 1px dashed #cfd8e3;
  border-radius: 8px;
  color: #667085;
  display: flex;
  gap: 8px;
  justify-content: center;
  min-height: 80px;
  padding: 16px;
  text-align: center;
}

.tracker-empty-inline {
  background: #fbfcfe;
  min-height: 74px;
}

@media (max-width: 992px) {
  .tracker-summary-grid,
  .tracker-grid {
    grid-template-columns: 1fr;
  }

  .tracker-steps {
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tracker-steps:before {
    display: none;
  }
}

@media (max-width: 640px) {
  .tracker-shell {
    padding: 12px;
  }

  .tracker-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .tracker-refresh {
    width: 100%;
  }

  .tracker-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tracker-order-line,
  .tracker-resume {
    grid-template-columns: 1fr;
  }
}
