.asr-payable-supplier-dashboard {
  margin: 0 0 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 12px;
  box-shadow: 0 2px 9px rgba(15, 23, 42, .04);
}

.asr-payable-supplier-header,
.asr-payable-supplier-heading,
.asr-payable-supplier-heading > span:nth-child(2),
.asr-payable-supplier-overview,
.asr-payable-supplier-actions,
.asr-payable-supplier-row,
.asr-payable-supplier-empty {
  display: flex;
  align-items: center;
}

.asr-payable-supplier-header {
  justify-content: space-between;
  min-height: 56px;
  padding: 9px 14px;
  border-bottom: 1px solid #edf1f7;
}

.asr-payable-supplier-heading {
  min-width: 0;
  gap: 9px;
}

.asr-payable-supplier-heading > span:nth-child(2) {
  align-items: flex-start;
  flex-direction: column;
  min-width: 0;
}

.asr-payable-supplier-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #4f46e5;
  font-size: 16px;
  background: #eef2ff;
  border-radius: 8px;
}

.asr-payable-supplier-heading strong {
  color: #263449;
  font-size: 14px;
  line-height: 19px;
}

.asr-payable-supplier-heading small {
  color: #8a97a8;
  font-size: 11px;
  line-height: 16px;
}

.asr-payable-supplier-heading > em {
  margin-left: 4px;
  color: #9aa6b6;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.asr-payable-supplier-dashboard.is-stale .asr-payable-supplier-heading > em {
  color: #dc2626;
}

.asr-payable-supplier-overview {
  flex: 0 0 auto;
  gap: 16px;
  margin-left: auto;
  padding: 0 16px;
  color: #758399;
  font-size: 11px;
}

.asr-payable-supplier-overview b {
  margin-left: 3px;
  color: #4f46e5;
  font-size: 15px;
}

.asr-payable-supplier-actions {
  flex: 0 0 auto;
  gap: 7px;
}

.asr-payable-supplier-actions button {
  height: 28px;
  padding: 0 10px;
  color: #526176;
  background: #fff;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  cursor: pointer;
}

.asr-payable-supplier-actions button:hover {
  color: #4f46e5;
  border-color: #a5b4fc;
  background: #f8f8ff;
}

.asr-payable-supplier-actions button:disabled {
  cursor: wait;
  opacity: .65;
}

.asr-payable-supplier-list {
  padding: 6px 14px 10px;
}

.asr-payable-supplier-row {
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  padding: 5px 9px;
  color: inherit;
  text-align: left;
  background: #fff;
  border: 1px solid #edf1f6;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.asr-payable-supplier-row:hover {
  background: #f8f8ff;
  border-color: #a5b4fc;
}

.asr-payable-supplier-row.is-selected {
  background: #eef2ff;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, .1);
}

.asr-payable-supplier-row.is-disabled,
.asr-payable-supplier-row.is-disabled:hover {
  cursor: default;
  background: #fafbfc;
  border-color: #edf1f6;
  box-shadow: none;
}

.asr-payable-supplier-rank {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 9px;
  color: #66758a;
  font-size: 11px;
  font-weight: 700;
  background: #eef2f7;
  border-radius: 6px;
}

.asr-payable-supplier-row:nth-child(1) .asr-payable-supplier-rank { color: #fff; background: #ef4444; }
.asr-payable-supplier-row:nth-child(2) .asr-payable-supplier-rank { color: #fff; background: #f59e0b; }
.asr-payable-supplier-row:nth-child(3) .asr-payable-supplier-rank { color: #fff; background: #64748b; }

.asr-payable-supplier-name {
  flex: 0 0 210px;
  overflow: hidden;
  color: #344256;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asr-payable-supplier-bar {
  flex: 1 1 auto;
  height: 7px;
  margin: 0 15px;
  overflow: hidden;
  background: #f1f3f6;
  border-radius: 99px;
}

.asr-payable-supplier-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a5b4fc, #4f46e5);
  border-radius: inherit;
}

.asr-payable-supplier-orders {
  flex: 0 0 116px;
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
}

.asr-payable-supplier-orders b {
  color: #4f46e5;
  font-size: 17px;
}

.asr-payable-supplier-money {
  display: inline-flex;
  flex: 0 0 128px;
  align-items: flex-end;
  flex-direction: column;
  padding-right: 16px;
  white-space: nowrap;
}

.asr-payable-supplier-money small,
.asr-payable-supplier-rate small {
  color: #97a2b1;
  font-size: 10px;
  line-height: 14px;
}

.asr-payable-supplier-money b {
  color: #536176;
  font-size: 12px;
  line-height: 17px;
}

.asr-payable-supplier-money.is-paid b { color: #16a36a; }
.asr-payable-supplier-money.is-unpaid b { color: #dc2626; font-size: 14px; }

.asr-payable-supplier-rate {
  display: inline-flex;
  flex: 0 0 62px;
  align-items: flex-end;
  flex-direction: column;
  padding-right: 12px;
  white-space: nowrap;
}

.asr-payable-supplier-rate b {
  color: #2563eb;
  font-size: 12px;
  line-height: 17px;
}

.asr-payable-supplier-link {
  flex: 0 0 102px;
  color: #4f46e5;
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.asr-payable-supplier-row.is-disabled .asr-payable-supplier-link { color: #a7b0bd; }

.asr-payable-supplier-loading,
.asr-payable-supplier-error,
.asr-payable-supplier-empty {
  justify-content: center;
  min-height: 72px;
  color: #7f8b9c;
  font-size: 12px;
}

.asr-payable-supplier-loading i,
.asr-payable-supplier-error i,
.asr-payable-supplier-empty > i {
  margin-right: 7px;
  font-size: 17px;
}

.asr-payable-supplier-error { color: #dc2626; }
.asr-payable-supplier-empty > i { color: #22c55e; font-size: 21px; }
.asr-payable-supplier-empty > span { display: flex; flex-direction: column; }
.asr-payable-supplier-empty strong { color: #475569; }
.asr-payable-supplier-empty small { margin-top: 2px; color: #94a3b8; }

@media (max-width: 1250px) {
  .asr-payable-supplier-heading > em { display: none; }
  .asr-payable-supplier-name { flex-basis: 175px; }
  .asr-payable-supplier-bar { display: none; }
  .asr-payable-supplier-money { flex-basis: 112px; padding-right: 9px; }
}

@media (max-width: 980px) {
  .asr-payable-supplier-heading small,
  .asr-payable-supplier-rate { display: none; }
  .asr-payable-supplier-overview { gap: 10px; padding: 0 10px; }
  .asr-payable-supplier-name { flex: 1 1 170px; }
}

@media (max-width: 760px) {
  .asr-payable-supplier-header { align-items: flex-start; flex-wrap: wrap; }
  .asr-payable-supplier-heading { flex: 1 1 auto; }
  .asr-payable-supplier-overview {
    order: 3;
    width: 100%;
    margin-top: 8px;
    padding: 7px 0 0;
    border-top: 1px solid #f1f3f6;
  }
  .asr-payable-supplier-row { flex-wrap: wrap; }
  .asr-payable-supplier-name { flex: 1 1 calc(100% - 42px); }
  .asr-payable-supplier-orders { margin-left: 33px; }
  .asr-payable-supplier-money { flex: 1 1 115px; }
  .asr-payable-supplier-rate { display: inline-flex; flex: 1 1 70px; }
  .asr-payable-supplier-link { display: none; }
}
