.reseller-program-panel {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  background: #f5f7fc;
}

.reseller-program-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid #ded8ff;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(135deg, #43279b, #7353da);
  color: #fff;
  box-shadow: 0 16px 34px rgba(69, 43, 151, 0.18);
}

.reseller-program-hero .eyebrow,
.reseller-program-hero h2,
.reseller-program-hero p {
  margin: 0;
  color: inherit;
}

.reseller-program-hero .eyebrow {
  opacity: 0.76;
}

.reseller-program-hero h2 {
  margin-top: 0.18rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.reseller-program-hero p {
  max-width: 48rem;
  margin-top: 0.4rem;
  opacity: 0.86;
}

.reseller-program-hero .secondary-btn {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.reseller-program-message {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid #bde6cc;
  border-radius: 12px;
  background: #effbf3;
  color: #146b38;
}

.reseller-program-message.is-error {
  border-color: #f1c6c2;
  background: #fff3f2;
  color: #a43830;
}

.reseller-program-message span {
  flex: 1;
}

.reseller-program-message button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.reseller-admin-nav {
  display: flex;
  gap: 0.45rem;
  padding: 0.45rem;
  border: 1px solid #dfe4f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(38, 50, 92, 0.05);
  overflow-x: auto;
}

.reseller-admin-nav button {
  display: inline-flex;
  min-height: 2.65rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5f6881;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.reseller-admin-nav button:hover {
  background: #f3f1ff;
  color: #5636bb;
}

.reseller-admin-nav button.is-active {
  background: linear-gradient(135deg, #5836bd, #7655dd);
  color: #fff;
  box-shadow: 0 7px 16px rgba(89, 57, 189, 0.22);
}

.reseller-admin-page {
  display: grid;
  gap: 1rem;
}

.reseller-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.reseller-summary-grid article {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 5.4rem;
  padding: 1rem;
  border: 1px solid #e0e5f1;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 9px 24px rgba(38, 50, 92, 0.06);
}

.reseller-summary-grid article > span {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 12px;
  background: #eeeaff;
  color: #6545c6;
  font-size: 1.15rem;
}

.reseller-summary-grid article > span.tone-green {
  background: #e6f8ed;
  color: #17864a;
}

.reseller-summary-grid article > span.tone-blue {
  background: #e8f2ff;
  color: #2d6eb8;
}

.reseller-summary-grid article div {
  display: grid;
  gap: 0.14rem;
}

.reseller-summary-grid strong {
  color: #252e48;
  font-size: 1.18rem;
}

.reseller-summary-grid small {
  color: #68718b;
}

.reseller-admin-section,
.reseller-purchase-card,
.reseller-history-grid > .table-card {
  padding: 1.15rem;
}

.reseller-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reseller-section-heading .eyebrow,
.reseller-section-heading h3,
.reseller-section-heading p {
  margin: 0;
}

.reseller-section-heading h3 {
  margin-top: 0.15rem;
  color: #252e48;
}

.reseller-section-heading p {
  margin-top: 0.25rem;
  color: #68718b;
}

.reseller-admin-page-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.reseller-admin-page-links button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 6rem;
  padding: 0.95rem;
  border: 1px solid #e1e5ef;
  border-radius: 14px;
  background: #fbfcff;
  color: #252e48;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.reseller-admin-page-links button:hover {
  border-color: #bbb0f0;
  background: #f7f5ff;
  transform: translateY(-1px);
}

.reseller-admin-page-links button > span {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 11px;
  background: #eeeaff;
  color: #6545c6;
  font-size: 1.05rem;
}

.reseller-admin-page-links button > div {
  display: grid;
  gap: 0.2rem;
}

.reseller-admin-page-links button small {
  color: #6f7891;
  line-height: 1.4;
}

.reseller-admin-page-links button > i {
  color: #8a7dd0;
}

.reseller-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.reseller-price-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #e0e4ef;
  border-radius: 14px;
  background: #fbfcff;
}

.reseller-price-card header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.reseller-price-card header > span {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #eeeaff;
  color: #6545c6;
}

.reseller-price-card header div,
.reseller-account-table td:first-child,
.reseller-history-grid td:first-child {
  display: grid;
  gap: 0.16rem;
}

.reseller-price-card header small,
.reseller-account-table td small,
.reseller-history-grid td small {
  color: #707890;
}

.reseller-price-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.reseller-price-fields label {
  display: grid;
  gap: 0.35rem;
  color: #626b84;
  font-size: 0.78rem;
  font-weight: 700;
}

.reseller-demo-setting-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reseller-demo-setting-fields select {
  width: 100%;
}

.reseller-demo-audit-heading {
  margin-top: 1.5rem;
}

.reseller-adjustment-controls {
  display: grid;
  grid-template-columns: 5rem 7rem minmax(10rem, 1fr) auto;
  gap: 0.45rem;
  min-width: 29rem;
}

.reseller-account-table td {
  vertical-align: middle;
}

.reseller-view-ledger-btn {
  display: inline-flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0 0.72rem;
  border: 1px solid #d8d1f5;
  border-radius: 9px;
  background: #f8f6ff;
  color: #5b3fc2;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.reseller-view-ledger-btn:disabled {
  border-color: #e8eaf0;
  background: #f7f8fa;
  color: #adb3bf;
  cursor: not-allowed;
}

.reseller-wallet-filter-bar {
  display: grid;
  grid-template-columns: minmax(12rem, 1.1fr) minmax(10rem, 0.9fr) minmax(9rem, 0.75fr) minmax(15rem, 1.25fr) auto;
  align-items: end;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  padding: 0.85rem;
  border: 1px solid #e0e4ef;
  border-radius: 13px;
  background: #f8f9fd;
}

.reseller-wallet-filter-bar label {
  display: grid;
  gap: 0.32rem;
  color: #626b84;
  font-size: 0.75rem;
  font-weight: 750;
}

.reseller-wallet-filter-bar select,
.reseller-wallet-filter-bar input {
  width: 100%;
  min-height: 2.55rem;
}

.reseller-wallet-filter-actions {
  display: flex;
  gap: 0.45rem;
}

.reseller-wallet-filter-actions button {
  min-height: 2.55rem;
  white-space: nowrap;
}

.reseller-wallet-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.reseller-wallet-summary-grid article {
  display: grid;
  gap: 0.28rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #e0e5f1;
  border-radius: 12px;
  background: #fff;
}

.reseller-wallet-summary-grid small {
  color: #6c758d;
  font-weight: 650;
}

.reseller-wallet-summary-grid strong {
  color: #27314a;
  font-size: 1.05rem;
}

.reseller-wallet-summary-grid article.is-credit {
  border-color: #ccebd8;
  background: #f5fcf7;
}

.reseller-wallet-summary-grid article.is-credit strong,
.reseller-wallet-amount.is-credit {
  color: #16834a;
}

.reseller-wallet-summary-grid article.is-debit {
  border-color: #f0d5d2;
  background: #fff8f7;
}

.reseller-wallet-summary-grid article.is-debit strong,
.reseller-wallet-amount.is-debit {
  color: #c13f36;
}

.reseller-wallet-summary-grid article.is-balance {
  border-color: #d9d0f5;
  background: #f8f6ff;
}

.reseller-wallet-log-table td {
  vertical-align: middle;
}

.reseller-wallet-log-table th:first-child,
.reseller-wallet-log-table td:first-child {
  min-width: 8.5rem;
  white-space: nowrap;
}

.reseller-wallet-log-table td:nth-child(2),
.reseller-wallet-log-table td:nth-child(3) {
  min-width: 12rem;
}

.reseller-wallet-log-table td:nth-child(2),
.reseller-wallet-log-table td:nth-child(3) {
  display: table-cell;
}

.reseller-wallet-log-table td:nth-child(2) strong,
.reseller-wallet-log-table td:nth-child(2) small,
.reseller-wallet-log-table td:nth-child(3) strong,
.reseller-wallet-log-table td:nth-child(3) small {
  display: block;
}

.reseller-wallet-log-table td small {
  margin-top: 0.2rem;
  color: #747d93;
}

.reseller-wallet-type {
  display: inline-flex;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: #f0edff;
  color: #5b42b4;
  font-size: 0.7rem;
  font-weight: 750;
  white-space: nowrap;
}

.reseller-wallet-loading {
  display: flex;
  min-height: 12rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #626b84;
}

.reseller-wallet-loading i {
  animation: reseller-wallet-spin 900ms linear infinite;
}

@keyframes reseller-wallet-spin {
  to {
    transform: rotate(360deg);
  }
}

.reseller-wallet-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.85rem;
  color: #68718b;
  font-size: 0.8rem;
}

.reseller-wallet-pagination > div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.reseller-wallet-pagination button {
  min-height: 2.35rem;
}

.reseller-wallet-pagination button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.reseller-order-status {
  display: inline-flex;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  background: #fff0d8;
  color: #94610d;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: capitalize;
}

.reseller-order-status.status-activated {
  background: #e4f7eb;
  color: #187646;
}

.reseller-order-status.status-cancelled {
  background: #fce8e7;
  color: #a23b35;
}

.reseller-balance-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.35rem;
  border: 1px solid #cfe8db;
  border-radius: 18px;
  background: linear-gradient(135deg, #edf9f2, #f8fffb);
}

.reseller-balance-hero div {
  display: grid;
  gap: 0.18rem;
}

.reseller-balance-hero small,
.reseller-balance-hero span {
  color: #527061;
}

.reseller-balance-hero strong {
  color: #176c42;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}

.reseller-balance-hero > i {
  color: #3b9c6d;
  font-size: 3.3rem;
}

.reseller-purchase-form {
  grid-template-columns: minmax(12rem, 2fr) repeat(3, minmax(7rem, 1fr));
}

.reseller-purchase-form label > small {
  color: #7c8498;
  font-weight: 600;
}

.reseller-purchase-form input[readonly] {
  border-color: #dfe3ec;
  background: #f1f3f7;
  color: #596176;
  cursor: not-allowed;
}

.reseller-purchase-total {
  display: grid;
  align-content: center;
  gap: 0.25rem;
  min-height: 4.25rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid #d9d2f3;
  border-radius: 10px;
  background: #f7f4ff;
}

.reseller-purchase-total span {
  color: #6e6684;
  font-size: 0.72rem;
  font-weight: 700;
}

.reseller-purchase-total strong {
  color: #5439a6;
  font-size: 1.05rem;
}

.reseller-history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1rem;
}

.reseller-ledger-amount {
  font-weight: 800;
}

.reseller-ledger-amount.is-credit {
  color: #17864a;
}

.reseller-ledger-amount.is-debit {
  color: #b4483d;
}

/* Premium reseller-facing SaaS dashboard */
.reseller-program-panel.reseller-saas-mode {
  gap: 24px;
  padding: 32px;
  background:
    radial-gradient(circle at 92% -5%, rgba(108, 92, 231, 0.08), transparent 28%),
    #f7f8fc;
  color: #1e293b;
}

.reseller-saas-mode *,
.reseller-saas-mode *::before,
.reseller-saas-mode *::after {
  box-sizing: border-box;
}

.reseller-saas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.reseller-saas-header > div {
  display: grid;
  gap: 5px;
}

.reseller-saas-header span {
  color: #6c5ce7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reseller-saas-header h2 {
  margin: 0;
  color: #1e293b;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.reseller-saas-header p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
}

.reseller-saas-page-nav {
  display: flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid #e6e8f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(36, 44, 84, 0.045);
  overflow-x: auto;
}

.reseller-saas-page-nav button {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.reseller-saas-page-nav button:hover {
  background: #f5f3ff;
  color: #5a49db;
}

.reseller-saas-page-nav button.is-active {
  background: linear-gradient(135deg, #6c5ce7, #5846da);
  color: #fff;
  box-shadow: 0 7px 16px rgba(93, 75, 218, 0.22);
}

.reseller-saas-page {
  display: grid;
  gap: 24px;
}

.reseller-saas-refresh-btn,
.reseller-saas-primary-btn,
.reseller-saas-secondary-btn {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  border-radius: 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.reseller-saas-refresh-btn {
  min-width: 116px;
  padding: 0 18px;
  border: 1px solid #ddd8ff;
  background: #fff;
  color: #5a49db;
  box-shadow: 0 6px 18px rgba(43, 37, 98, 0.05);
}

.reseller-saas-refresh-btn:hover,
.reseller-saas-secondary-btn:hover:not(:disabled) {
  border-color: #b9adff;
  background: #faf9ff;
  transform: translateY(-1px);
}

.reseller-saas-refresh-btn i {
  transition: transform 250ms ease;
}

.reseller-saas-refresh-btn:hover i {
  transform: rotate(45deg);
}

.reseller-saas-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #eceef5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(36, 44, 84, 0.055);
}

.reseller-saas-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.reseller-saas-stat {
  display: flex;
  min-width: 0;
  min-height: 126px;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid #eceef5;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(36, 44, 84, 0.05);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.reseller-saas-stat:hover {
  border-color: #ded9ff;
  box-shadow: 0 14px 30px rgba(55, 48, 117, 0.09);
  transform: translateY(-4px) scale(1.01);
}

.reseller-saas-stat-icon,
.reseller-saas-heading-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #6c5ce7;
}

.reseller-saas-stat-icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(108, 92, 231, 0.12);
  border-radius: 16px;
  background: linear-gradient(145deg, #f6f3ff, #eeeaff);
  font-size: 25px;
}

.reseller-saas-stat-icon.tone-blue {
  border-color: rgba(59, 130, 246, 0.13);
  background: linear-gradient(145deg, #eff7ff, #e5f0ff);
  color: #2563eb;
}

.reseller-saas-stat-icon.tone-green {
  border-color: rgba(34, 197, 94, 0.13);
  background: linear-gradient(145deg, #effcf4, #e4f8ec);
  color: #159447;
}

.reseller-saas-stat-icon.tone-orange {
  border-color: rgba(245, 158, 11, 0.14);
  background: linear-gradient(145deg, #fff9ec, #fff2dc);
  color: #e97d07;
}

.reseller-saas-stat > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.reseller-saas-stat small {
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reseller-saas-stat strong {
  overflow: hidden;
  color: #1e293b;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reseller-saas-stat em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.reseller-saas-stat em.tone-violet { color: #6c5ce7; }
.reseller-saas-stat em.tone-green { color: #159447; }
.reseller-saas-stat em.tone-orange { color: #e97d07; }

.reseller-saas-page-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reseller-saas-page-links button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 18px;
  border: 1px solid #e7e8f1;
  border-radius: 15px;
  background: #fbfcff;
  color: #26334a;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.reseller-saas-page-links button:hover {
  border-color: #c8c0f8;
  background: #f8f6ff;
  transform: translateY(-1px);
}

.reseller-saas-page-links button > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: #eeeaff;
  color: #6545c6;
  font-size: 19px;
}

.reseller-saas-page-links button > div {
  display: grid;
  gap: 4px;
}

.reseller-saas-page-links button strong {
  font-size: 15px;
}

.reseller-saas-page-links button small {
  color: #718096;
  line-height: 1.4;
}

.reseller-saas-page-links button > i {
  color: #8b7ee0;
}

.reseller-saas-primary-grid,
.reseller-saas-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.reseller-saas-card-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.reseller-saas-heading-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, #f5f2ff, #ece7ff);
  font-size: 18px;
}

.reseller-saas-card-heading > div {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.reseller-saas-card-heading h3 {
  margin: 0;
  color: #1e293b;
  font-family: Manrope, Inter, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.reseller-saas-card-heading p {
  margin: 0;
  color: #7a869a;
  font-size: 12px;
}

.reseller-saas-purchase-fields {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 0.75fr) minmax(140px, 0.6fr);
  gap: 16px;
}

.reseller-saas-purchase-fields label {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.reseller-saas-purchase-fields label > span {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.reseller-saas-control,
.reseller-saas-quantity {
  display: flex;
  min-width: 0;
  height: 50px;
  align-items: center;
  gap: 9px;
  border: 1px solid #e4e7f0;
  border-radius: 14px;
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.reseller-saas-control {
  padding: 0 13px;
}

.reseller-saas-control:focus-within,
.reseller-saas-quantity:focus-within {
  border-color: #a99cf5;
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
}

.reseller-saas-control > i {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #f3f0ff;
  color: #6c5ce7;
}

.reseller-saas-control select,
.reseller-saas-control input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1e293b;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.reseller-saas-control em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.reseller-saas-control.is-readonly {
  background: #fafbfe;
}

.reseller-saas-control input[readonly] {
  cursor: default;
}

.reseller-saas-control.is-readonly input[type="number"] {
  width: 5ch;
  min-width: 5ch;
  flex: 1 1 5ch;
  appearance: textfield;
  -moz-appearance: textfield;
}

.reseller-saas-control.is-readonly input[type="number"]::-webkit-inner-spin-button,
.reseller-saas-control.is-readonly input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.reseller-saas-control.is-readonly em {
  flex: 0 0 auto;
}

.reseller-saas-quantity {
  justify-content: space-between;
  padding: 5px;
}

.reseller-saas-quantity button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #f2f4f8;
  color: #334155;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.reseller-saas-quantity button:hover {
  background: #ede9ff;
  color: #5a49db;
  transform: scale(1.04);
}

.reseller-saas-quantity input {
  width: 50px;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1e293b;
  font: inherit;
  font-weight: 800;
  text-align: center;
  -moz-appearance: textfield;
}

.reseller-saas-quantity input::-webkit-inner-spin-button,
.reseller-saas-quantity input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.reseller-saas-credit-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #ded8ff;
  border-radius: 16px;
  background: linear-gradient(120deg, #faf9ff, #f7f5ff);
}

.reseller-saas-credit-summary > div {
  display: grid;
  gap: 1px;
}

.reseller-saas-credit-summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 650;
}

.reseller-saas-credit-summary strong {
  color: #5a49db;
  font-family: Manrope, Inter, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.reseller-saas-primary-btn {
  min-width: 250px;
  padding: 0 22px;
  border: 1px solid #6c5ce7;
  background: linear-gradient(135deg, #7667ed, #634fdf);
  color: #fff;
  box-shadow: 0 8px 18px rgba(108, 92, 231, 0.22);
}

.reseller-saas-primary-btn:hover {
  border-color: #5a49db;
  background: linear-gradient(135deg, #6857e5, #5946d3);
  box-shadow: 0 11px 24px rgba(90, 73, 219, 0.28);
  transform: translateY(-1px);
}

.reseller-saas-primary-btn:active,
.reseller-saas-secondary-btn:active,
.reseller-saas-refresh-btn:active {
  transform: translateY(1px) scale(0.99);
}

.reseller-saas-primary-btn:disabled,
.reseller-saas-secondary-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.reseller-saas-info,
.reseller-saas-delivery-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 15px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.reseller-saas-info i,
.reseller-saas-delivery-note i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: #6c5ce7;
}

.reseller-saas-demo-card {
  overflow: hidden;
}

.reseller-saas-demo-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.reseller-saas-demo-toolbar label {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.reseller-saas-demo-toolbar label > span {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.reseller-saas-demo-generated {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 16px;
  border: 1px dashed #a99cf5;
  border-radius: 15px;
  background: linear-gradient(120deg, #faf9ff, #f6f4ff);
}

.reseller-saas-demo-generated > div:first-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.reseller-saas-demo-generated span {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.reseller-saas-demo-generated code {
  overflow-wrap: anywhere;
  color: #5a49db;
  font-family: "Space Grotesk", ui-monospace, monospace;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.reseller-saas-demo-generated small {
  color: #7a869a;
  font-size: 11px;
}

.reseller-saas-demo-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.reseller-saas-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  margin-top: 20px;
}

.reseller-saas-demo-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #eceef5;
  border-radius: 14px;
}

.reseller-saas-demo-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
}

.reseller-saas-demo-panel-heading h4 {
  margin: 0;
  color: #26334a;
  font-size: 13px;
}

.reseller-saas-demo-panel-heading span {
  color: #7a869a;
  font-size: 11px;
  font-weight: 700;
}

.reseller-saas-demo-panel .reseller-saas-table {
  min-width: 590px;
}

.reseller-saas-demo-panel:last-child .reseller-saas-table {
  min-width: 520px;
}

.reseller-saas-icon-btn {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #ddd8ff;
  border-radius: 8px;
  background: #fff;
  color: #6c5ce7;
  cursor: pointer;
}

.reseller-saas-icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.reseller-confirmation-overlay {
  position: fixed;
  z-index: 5000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(5px);
}

.reseller-confirmation-dialog {
  position: relative;
  display: grid;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  gap: 18px;
  padding: 28px;
  overflow-y: auto;
  border: 1px solid #e7e3ff;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(23, 28, 56, 0.28);
  animation: resellerConfirmationIn 180ms ease both;
}

@keyframes resellerConfirmationIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.reseller-confirmation-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #f4f5f8;
  color: #64748b;
  cursor: pointer;
}

.reseller-confirmation-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #f3f0ff, #e9e4ff);
  color: #6553df;
  font-size: 23px;
}

.reseller-confirmation-icon.is-cancel {
  border: 1px solid #fed7d7;
  background: #fff4f4;
  color: #d64545;
}

.reseller-confirmation-heading {
  display: grid;
  gap: 5px;
}

.reseller-confirmation-heading p {
  margin: 0;
  color: #6c5ce7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reseller-confirmation-heading h3 {
  margin: 0;
  color: #1e293b;
  font-family: Manrope, Inter, sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.reseller-confirmation-heading > span {
  color: #68758b;
  font-size: 13px;
  line-height: 1.5;
}

.reseller-confirmation-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid #e9ebf3;
  border-radius: 16px;
  background: #fafbfe;
}

.reseller-confirmation-details > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 11px;
  background: #fff;
}

.reseller-confirmation-details > div.is-wide {
  grid-column: 1 / -1;
}

.reseller-confirmation-details span {
  color: #7a869a;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.reseller-confirmation-details strong {
  color: #2b3850;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.reseller-confirmation-details .is-total strong {
  color: #d05f25;
}

.reseller-confirmation-details .is-remaining strong,
.reseller-confirmation-details .is-refund strong {
  color: #13824a;
}

.reseller-confirmation-details .is-insufficient strong {
  color: #cf3f3f;
}

.reseller-confirmation-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 11px 12px;
  border-radius: 11px;
  background: #f7f5ff;
  color: #625886;
  font-size: 12px;
  line-height: 1.45;
}

.reseller-confirmation-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
}

.reseller-confirmation-actions button {
  min-width: 0;
}

.reseller-saas-primary-btn.is-danger {
  border-color: #d94b4b;
  background: linear-gradient(135deg, #e55c5c, #ce3f3f);
  box-shadow: 0 8px 18px rgba(206, 63, 63, 0.2);
}

.reseller-saas-primary-btn.is-danger:hover {
  border-color: #c43636;
  background: linear-gradient(135deg, #d84c4c, #bf3434);
}

.reseller-saas-generated-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.reseller-saas-success {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid #bce9cb;
  border-radius: 13px;
  background: linear-gradient(120deg, #ecfbf2, #f6fdf9);
  color: #168645;
  font-size: 13px;
  font-weight: 700;
  animation: resellerSuccessFade 360ms ease both;
}

@keyframes resellerSuccessFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.reseller-saas-awaiting {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 112px;
  padding: 18px;
  border: 1px dashed #dcd8f6;
  border-radius: 14px;
  background: #fbfaff;
  color: #6c5ce7;
}

.reseller-saas-awaiting > i {
  font-size: 24px;
}

.reseller-saas-awaiting div {
  display: grid;
  gap: 2px;
}

.reseller-saas-awaiting strong {
  color: #334155;
  font-size: 14px;
}

.reseller-saas-awaiting span {
  color: #7a869a;
  font-size: 12px;
}

.reseller-saas-key-box,
.reseller-saas-key-placeholder {
  display: grid;
  min-height: 76px;
  place-items: center;
  margin: 14px 0;
  padding: 16px;
  border: 1px dashed #9e8ff3;
  border-radius: 14px;
  background: linear-gradient(120deg, #fbfaff, #f5f2ff);
  color: #5a49db;
  font-family: "Space Grotesk", ui-monospace, monospace;
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 750;
  letter-spacing: 0.06em;
  line-height: 1.7;
  text-align: center;
  white-space: pre-wrap;
  word-break: break-all;
}

.reseller-saas-key-placeholder {
  border-color: #e0def0;
  color: #a8afbf;
}

.reseller-saas-key-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.reseller-saas-secondary-btn {
  padding: 0 16px;
  border: 1px solid #bcb1ff;
  background: #fff;
  color: #5a49db;
}

.reseller-saas-delivery-note {
  margin-top: auto;
  padding-top: 15px;
}

.reseller-saas-count {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #f3f1ff;
  color: #6c5ce7;
  font-size: 11px;
  font-weight: 800;
}

.reseller-saas-data-card {
  padding: 18px 0 0;
  overflow: hidden;
}

.reseller-saas-data-card > .reseller-saas-card-heading {
  padding: 0 18px;
}

.reseller-saas-history-toolbar {
  display: grid;
  grid-template-columns: minmax(10rem, 0.65fr) minmax(16rem, 1.5fr) auto;
  align-items: end;
  gap: 12px;
  margin: 0 18px 14px;
  padding: 14px;
  border: 1px solid #e8e9f1;
  border-radius: 14px;
  background: #f8f9fc;
}

.reseller-saas-history-toolbar.is-wallet {
  grid-template-columns: minmax(10rem, 0.8fr) minmax(10rem, 0.8fr) minmax(16rem, 1.4fr) auto;
}

.reseller-saas-history-toolbar label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.reseller-saas-history-toolbar select,
.reseller-saas-history-toolbar input {
  width: 100%;
  min-height: 44px;
}

.reseller-saas-history-toolbar > div {
  display: flex;
  gap: 8px;
}

.reseller-saas-history-toolbar button {
  min-height: 44px;
}

.reseller-saas-history-summary {
  display: flex;
  gap: 10px;
  margin: 0 18px 14px;
  flex-wrap: wrap;
}

.reseller-saas-history-summary span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff4df;
  color: #a66308;
  font-size: 11px;
  font-weight: 700;
}

.reseller-saas-history-summary span.is-activated {
  background: #eaf8ef;
  color: #168049;
}

.reseller-saas-history-summary span.is-cancelled {
  background: #f1f3f6;
  color: #687386;
}

.reseller-saas-history-loading {
  display: flex;
  min-height: 240px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #718096;
  font-size: 13px;
}

.reseller-saas-history-loading i {
  animation: reseller-saas-history-spin 900ms linear infinite;
}

@keyframes reseller-saas-history-spin {
  to {
    transform: rotate(360deg);
  }
}

.reseller-saas-wallet-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 18px 14px;
}

.reseller-saas-wallet-summary article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #e8e9f1;
  border-radius: 13px;
  background: #fbfcff;
}

.reseller-saas-wallet-summary small {
  color: #718096;
  font-size: 11px;
  font-weight: 700;
}

.reseller-saas-wallet-summary strong {
  color: #26334a;
  font-size: 17px;
}

.reseller-saas-wallet-summary article.is-credit {
  border-color: #ccebd8;
  background: #f5fcf7;
}

.reseller-saas-wallet-summary article.is-credit strong {
  color: #16834a;
}

.reseller-saas-wallet-summary article.is-debit {
  border-color: #f0d5d2;
  background: #fff8f7;
}

.reseller-saas-wallet-summary article.is-debit strong {
  color: #c13f36;
}

.reseller-saas-table-wrap {
  overflow-x: auto;
}

.reseller-saas-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
}

.reseller-saas-table th {
  padding: 11px 12px;
  border-top: 1px solid #f0f1f6;
  border-bottom: 1px solid #e8ebf2;
  background: #f8f9fc;
  color: #788397;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.reseller-saas-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #eef0f5;
  color: #475569;
  font-size: 12px;
  vertical-align: middle;
}

.reseller-saas-table tbody tr {
  transition: background 160ms ease;
}

.reseller-saas-table tbody tr:hover {
  background: #faf9ff;
}

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

.reseller-saas-table td strong {
  color: #26334a;
  font-weight: 750;
}

.reseller-saas-table code {
  color: #3c4860;
  font-family: "Space Grotesk", ui-monospace, monospace;
  font-size: 11px;
  white-space: nowrap;
}

.reseller-saas-wallet-table th:first-child,
.reseller-saas-wallet-table td:first-child {
  min-width: 138px;
  white-space: nowrap;
}

.reseller-saas-wallet-table td:nth-child(2) {
  min-width: 250px;
}

.reseller-saas-wallet-table td:nth-child(2) strong,
.reseller-saas-wallet-table td:nth-child(2) small {
  display: block;
}

.reseller-saas-wallet-table td:nth-child(2) small {
  margin-top: 4px;
  color: #7b8497;
}

.reseller-saas-history-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px 18px;
  border-top: 1px solid #eef0f5;
  color: #718096;
  font-size: 12px;
}

.reseller-saas-history-pagination > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.reseller-saas-history-pagination button {
  min-height: 40px;
  padding: 0 12px;
}

.reseller-saas-history-pagination button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.reseller-saas-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  background: #fff2dd;
  color: #c86a05;
  font-size: 10px;
  font-weight: 800;
}

.reseller-saas-status.status-activated {
  background: #e8f8ee;
  color: #158245;
}

.reseller-saas-status.status-cancelled {
  background: #f1f3f6;
  color: #6b7280;
}

.reseller-saas-status.status-active {
  background: #e8f8ee;
  color: #158245;
}

.reseller-saas-status.status-revoked {
  background: #f1f3f6;
  color: #6b7280;
}

.reseller-saas-cancel-order-btn {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid #f0b6b6;
  border-radius: 9px;
  background: #fff;
  color: #c94343;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.reseller-saas-cancel-order-btn:hover {
  border-color: #e58989;
  background: #fff2f2;
  color: #b83232;
  transform: translateY(-1px);
}

.reseller-saas-no-action {
  color: #b2bac7;
  font-weight: 700;
}

.reseller-saas-ledger {
  display: grid;
}

.reseller-saas-ledger-item {
  display: grid;
  grid-template-columns: 34px minmax(150px, 1fr) auto auto minmax(116px, auto);
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border-top: 1px solid #eef0f5;
  transition: background 160ms ease;
}

.reseller-saas-ledger-item:hover {
  background: #fafbfe;
}

.reseller-saas-ledger-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: #fff0ee;
  color: #ef4444;
}

.reseller-saas-ledger-icon.is-credit {
  background: #eaf8ef;
  color: #159447;
}

.reseller-saas-ledger-description {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.reseller-saas-ledger-description strong {
  overflow: hidden;
  color: #26334a;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reseller-saas-ledger-description small {
  overflow: hidden;
  color: #8b95a7;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reseller-saas-type-badge {
  padding: 5px 8px;
  border-radius: 7px;
  background: #f0edff;
  color: #6653d5;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.reseller-saas-ledger-amount {
  color: #ef4444;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.reseller-saas-ledger-amount.is-credit {
  color: #159447;
}

.reseller-saas-ledger-item time {
  color: #64748b;
  font-size: 10px;
  line-height: 1.35;
  text-align: right;
}

.reseller-saas-empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: #94a3b8;
  text-align: center;
}

.reseller-saas-empty i {
  color: #a99cf5;
  font-size: 26px;
}

.reseller-saas-empty p {
  margin: 0;
  font-size: 13px;
}

.reseller-saas-empty.is-compact {
  min-height: 96px;
}

.reseller-saas-mode .reseller-program-message {
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(36, 44, 84, 0.04);
}

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

.module-license-authorised-partners {
  display: grid;
  gap: 0.75rem;
  margin: 0.9rem 0;
}

.reseller-customer-heading {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem;
  border-radius: 13px;
  background: #f0edff;
}

.reseller-customer-heading > span {
  color: #6848c7;
  font-size: 1.25rem;
}

.reseller-customer-heading div {
  display: grid;
  gap: 0.14rem;
}

.reseller-customer-heading small {
  color: #6a6680;
}

.reseller-customer-partner-list {
  display: grid;
  gap: 0.7rem;
}

.reseller-customer-partner-card {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid #ddd9ef;
  border-radius: 14px;
  background: #fff;
}

.reseller-customer-partner-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.reseller-partner-avatar {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 11px;
  background: #eeeaff;
  color: #6848c7;
}

.reseller-customer-partner-title div {
  display: grid;
  flex: 1;
  gap: 0.12rem;
}

.reseller-customer-partner-title em {
  padding: 0.24rem 0.52rem;
  border-radius: 999px;
  background: #e4f7eb;
  color: #187646;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.reseller-customer-partner-title em.is-unavailable {
  background: #fff0df;
  color: #a35b0b;
}

.reseller-customer-modules,
.reseller-customer-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.reseller-customer-modules span {
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: #f2f4f9;
  color: #525d78;
  font-size: 0.72rem;
  font-weight: 700;
}

.reseller-customer-contact-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.62rem;
  border: 1px solid #d8dcec;
  border-radius: 9px;
  color: #4d3a9e;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
}

.reseller-customer-partner-card p {
  margin: 0;
  color: #667087;
  font-size: 0.82rem;
}

.user-access-directory-table.has-license-source table {
  min-width: 1280px;
}

.user-access-directory-table.has-license-source .user-access-col-user { width: 21%; }
.user-access-directory-table.has-license-source .user-access-col-id { width: 8%; }
.user-access-directory-table.has-license-source .user-access-col-role { width: 9%; }
.user-access-directory-table.has-license-source .user-access-col-status { width: 9%; }
.user-access-directory-table.has-license-source .user-access-col-plan { width: 25%; }
.user-access-directory-table.has-license-source .user-access-col-license-source { width: 15%; }
.user-access-directory-table.has-license-source .user-access-col-login { width: 7%; }
.user-access-directory-table.has-license-source .user-access-col-actions { width: 6%; }

.user-access-directory-table.has-license-source td:nth-child(6) {
  white-space: normal;
}

.user-access-directory-table.has-license-source td:nth-child(7) {
  white-space: nowrap;
}

.user-license-source {
  display: grid;
  gap: 0.22rem;
  min-width: 0;
}

.user-license-source strong {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #34415e;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.user-license-source strong i {
  flex: 0 0 auto;
  color: #7a879f;
}

.user-license-source small {
  color: #74819a;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.user-license-source.is-reseller strong,
.user-license-source.is-multiple strong {
  color: #6646b8;
}

.user-license-source.is-reseller strong i,
.user-license-source.is-multiple strong i {
  color: #805ad5;
}

.user-license-source.is-direct strong {
  color: #267257;
}

.user-license-source.is-direct strong i {
  color: #2f9c75;
}

.user-license-source.is-mixed strong,
.user-license-source.is-mixed strong i {
  color: #b66a13;
}

.user-license-attribution {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding: 0.48rem 0.58rem;
  border: 1px solid #ded6f4;
  border-radius: 8px;
  color: #5f4b91;
  background: #f8f5ff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.user-license-attribution i {
  flex: 0 0 auto;
  margin-top: 0.08rem;
}

@media (max-width: 1150px) {
  .reseller-saas-primary-grid,
  .reseller-saas-bottom-grid,
  .reseller-saas-demo-grid {
    grid-template-columns: 1fr;
  }

  .reseller-saas-history-toolbar,
  .reseller-saas-history-toolbar.is-wallet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .reseller-saas-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .reseller-admin-page-links,
  .reseller-wallet-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reseller-wallet-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reseller-wallet-filter-actions {
    justify-content: flex-end;
  }

  .reseller-history-grid {
    grid-template-columns: 1fr;
  }

  .reseller-program-panel.reseller-saas-mode {
    padding: 24px;
  }

  .reseller-saas-purchase-fields {
    grid-template-columns: minmax(0, 2fr) minmax(150px, 0.75fr) minmax(140px, 0.6fr);
  }
}

@media (max-width: 720px) {
  .reseller-program-panel {
    padding: 0.7rem;
  }

  .reseller-program-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .reseller-admin-nav {
    margin-inline: -0.15rem;
  }

  .reseller-admin-page-links,
  .reseller-wallet-filter-bar,
  .reseller-wallet-summary-grid {
    grid-template-columns: 1fr;
  }

  .reseller-wallet-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reseller-wallet-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .reseller-wallet-pagination > div {
    justify-content: space-between;
  }

  .reseller-price-fields,
  .reseller-demo-setting-fields,
  .reseller-purchase-form {
    grid-template-columns: 1fr;
  }

  .reseller-adjustment-controls {
    grid-template-columns: 1fr;
    min-width: 16rem;
  }

  .reseller-customer-partner-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .reseller-program-panel.reseller-saas-mode {
    gap: 18px;
    padding: 18px 14px;
  }

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

  .reseller-saas-header h2 {
    font-size: 28px;
  }

  .reseller-saas-page-nav {
    margin-inline: -2px;
  }

  .reseller-saas-refresh-btn {
    width: 100%;
  }

  .reseller-saas-page-links,
  .reseller-saas-history-toolbar,
  .reseller-saas-history-toolbar.is-wallet,
  .reseller-saas-wallet-summary {
    grid-template-columns: 1fr;
  }

  .reseller-saas-history-toolbar > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reseller-saas-history-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .reseller-saas-history-pagination > div {
    justify-content: space-between;
  }

  .reseller-saas-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reseller-saas-stat {
    min-height: 104px;
    padding: 16px;
  }

  .reseller-saas-purchase-fields {
    grid-template-columns: 1fr;
  }

  .reseller-saas-credit-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .reseller-saas-primary-btn {
    width: 100%;
    min-width: 0;
  }

  .reseller-saas-key-actions {
    grid-template-columns: 1fr;
  }

  .reseller-saas-demo-toolbar {
    grid-template-columns: 1fr;
  }

  .reseller-saas-demo-generated {
    align-items: stretch;
    flex-direction: column;
  }

  .reseller-saas-demo-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .reseller-confirmation-overlay {
    align-items: end;
    padding: 12px;
  }

  .reseller-confirmation-dialog {
    max-height: calc(100vh - 24px);
    gap: 15px;
    padding: 22px 18px 18px;
    border-radius: 20px;
  }

  .reseller-confirmation-details,
  .reseller-confirmation-actions {
    grid-template-columns: 1fr;
  }

  .reseller-confirmation-details > div.is-wide {
    grid-column: auto;
  }

  .reseller-saas-ledger-item {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .reseller-saas-type-badge {
    display: none;
  }

  .reseller-saas-ledger-amount {
    grid-column: 2;
  }

  .reseller-saas-ledger-item time {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}
