@import url("/_build/css/inter-8d4f4bfe3c26.css");

:root {
  --credit-page-bg: #f3f5f7;
  --credit-border: #e6ebf2;
  --credit-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  --credit-badge-gray-bg: #eff2f5;
  --credit-badge-gray-text: #17181d;
  --credit-badge-red-bg: #ffe9e5;
  --credit-badge-red-text: #ff4d3d;
  --credit-badge-green-bg: #cef5dc;
  --credit-badge-green-text: #0a9b5c;
}

* {
  box-sizing: border-box;
}

body.credit-page {
  background: var(--credit-page-bg);
}

.credit-dashboard-main {
  min-height: calc(100vh - 64px);
  padding: 32px 0 48px;
  background: var(--credit-page-bg);
}

.credit-dashboard {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 40px 44px;
  border: 1px solid var(--credit-border);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--credit-shadow);
}

.credit-filters {
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.credit-filter-field {
  flex: 0 1 220px;
}

.credit-dashboard__top {
  margin-bottom: 24px;
}

.credit-table-card {
  border: 1px solid var(--credit-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--credit-shadow);
  overflow: hidden;
}

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

.credit-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.credit-table thead th {
  padding: 16px 20px;
  border-bottom: 1px solid var(--credit-border);
  color: #647085;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.credit-table thead th.credit-table__center,
.credit-table tbody td.credit-table__center {
  text-align: center;
}

.credit-table tbody td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--credit-border);
  color: #425066;
  font-size: 14px;
  font-weight: 500;
  vertical-align: middle;
}

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

.credit-table__sortable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.credit-table__sortable svg,
.credit-download-btn__icon svg,
.credit-document-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.credit-brand-cell {
  font-weight: 500;
  color: #17181d;
}

.credit-po-cell {
  color: #425066;
}

.credit-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.credit-badge--purchased {
  background: var(--credit-badge-gray-bg);
  color: var(--credit-badge-gray-text);
}

.credit-badge--used {
  background: var(--credit-badge-red-bg);
  color: var(--credit-badge-red-text);
}

.credit-badge--remaining {
  background: var(--credit-badge-green-bg);
  color: var(--credit-badge-green-text);
}

.credit-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 16px;
  border: 1px solid rgba(23, 24, 29, 0.08);
  border-radius: 999px;
  background: #17181d;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.credit-download-btn:hover,
.credit-download-btn:focus-visible {
  background: #dcff58;
  color: #05070c;
  outline: none;
}

.credit-download-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.credit-document-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5d6b82;
}

.credit-document-btn:hover,
.credit-document-btn:focus-visible {
  background: #f5f7fa;
  color: #344054;
  outline: none;
}

.credit-empty-state {
  padding: 28px 20px;
  color: #647085;
  text-align: center;
}

.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;
}

@media (max-width: 1024px) {
  .credit-dashboard-main {
    padding: 24px 0 36px;
  }

  .credit-dashboard {
    width: min(920px, calc(100% - 32px));
    padding: 32px 28px 36px;
  }

  .credit-filter-field {
    flex: 1 1 180px;
  }
}

@media (max-width: 768px) {
  .credit-dashboard-main {
    padding: 16px 0 28px;
  }

  .credit-dashboard {
    width: calc(100% - 24px);
    padding: 24px 16px 28px;
    border-radius: 16px;
  }

  .credit-filters {
    justify-content: stretch;
    margin-bottom: 20px;
  }

  .credit-filter-field {
    flex: 1 1 100%;
  }

  .credit-table-card {
    border-radius: 12px;
  }

  .credit-table thead th,
  .credit-table tbody td {
    padding: 12px 14px;
  }
}
