/* Administrator Payments & Plans. All selectors belong to the ab-* surface. */
.ab-root {
  --ab-navy: #081a43;
  --ab-navy-2: #102a61;
  --ab-gold: #f3bb51;
  --ab-gold-soft: #fff4dc;
  --ab-ink: #142044;
  --ab-muted: #77819a;
  --ab-line: #e7eaf1;
  --ab-surface: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  color: var(--ab-ink);
}

.ab-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.ab-heading-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  color: #131e54;
  background: linear-gradient(145deg, #ffc762, #f3ad43);
  border-radius: 10px;
  box-shadow: 0 5px 13px rgba(242, 178, 67, .23);
}
.ab-heading-icon .icon { width: 25px; height: 25px; stroke-width: 1.8; }
.ab-heading-copy { min-width: 0; }
.ab-heading-copy h1 {
  margin: 0;
  color: var(--ab-navy);
  font-size: clamp(23px, 2.25vw, 29px);
  line-height: 1.1;
  letter-spacing: -.8px;
}
.ab-heading-copy p {
  margin: 4px 0 0;
  color: var(--ab-muted);
  font-size: 11px;
  line-height: 1.45;
}
.ab-heading-actions { margin-left: auto; flex: 0 0 auto; }

.ab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 35px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ab-ink);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.ab-button .icon { width: 15px; height: 15px; stroke-width: 1.9; }
.ab-button:hover { box-shadow: 0 3px 10px rgba(25, 42, 83, .09); }
.ab-button:focus, .ab-tab:focus, .ab-page-button:focus,
.ab-search input:focus, .ab-filter select:focus {
  outline: 3px solid rgba(243, 187, 81, .37);
  outline-offset: 1px;
}
.ab-button:disabled, .ab-page-button:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }
.ab-button-navy { background: var(--ab-navy); color: #fff; }
.ab-button-navy:hover { background: var(--ab-navy-2); }
.ab-button-gold { min-height: 37px; background: var(--ab-gold); color: #1b2850; }
.ab-button-gold:hover { background: #f8c96d; }
.ab-button-outline { border-color: var(--ab-line); background: #fff; color: var(--ab-navy); }
.ab-button-outline:hover { border-color: #cdd5e4; background: #f7f9fc; }
.ab-button-view { min-height: 33px; border-color: var(--ab-line); background: #fff; white-space: nowrap; }
.ab-button-view .icon { color: #edae2f; }
.ab-button-icon { width: 33px; min-height: 33px; padding: 7px; border-color: var(--ab-line); background: #fff; }
.ab-button-icon .icon { width: 16px; height: 16px; }
.ab-button-danger { min-height: 31px; padding: 7px 10px; border-color: #f3d5d8; background: #fff8f8; color: #ad3e4c; }
.ab-button-danger:hover { background: #fff0f1; }

.ab-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 41px;
  overflow: hidden;
  border: 1px solid var(--ab-line);
  border-radius: 10px;
  background: #f8f9fb;
}
.ab-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 8px;
  border: 0;
  border-right: 1px solid var(--ab-line);
  background: transparent;
  color: var(--ab-navy);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.ab-tab:last-child { border-right: 0; }
.ab-tab .icon { width: 17px; height: 17px; color: #111a58; }
.ab-tab.active { background: var(--ab-gold-soft); color: #172349; box-shadow: inset 0 -2px 0 #f3bd51; }
.ab-tab.active .icon { color: #e19a1e; }
.ab-tab:hover:not(.active) { background: #f1f4f9; }

.ab-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ab-line);
  border-radius: 11px;
  background: var(--ab-surface);
  box-shadow: 0 3px 15px rgba(31, 51, 92, .035);
}
.ab-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 16px 12px;
}
.ab-panel-heading h2 {
  margin: 0;
  color: var(--ab-navy);
  font-size: 16px;
  letter-spacing: -.35px;
}
.ab-panel-heading p {
  margin: 4px 0 0;
  color: var(--ab-muted);
  font-size: 10px;
}
.ab-plan-actions { display: flex; align-items: center; gap: 8px; }
.ab-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 180px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--ab-line);
  border-radius: 8px;
  background: #fff;
  color: #7f8aa3;
}
.ab-search .icon { width: 15px; height: 15px; flex: 0 0 15px; }
.ab-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ab-ink);
  background: transparent;
  font: inherit;
  font-size: 10px;
}
.ab-search input::placeholder { color: #9aa3b5; }
.ab-filter {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--ab-line);
  border-radius: 8px;
  color: #6e7a95;
  background: #fff;
}
.ab-filter .icon { width: 14px; height: 14px; }
.ab-filter select {
  max-width: 100px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--ab-navy);
  background: transparent;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.ab-table-scroll { width: 100%; overflow-x: auto; }
.ab-table {
  width: 100%;
  min-width: 930px;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 10px;
}
.ab-table th {
  padding: 9px 9px;
  border-top: 1px solid #f0f2f6;
  border-bottom: 1px solid var(--ab-line);
  color: #7b849a;
  background: #fcfcfd;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .45px;
  text-align: left;
  white-space: nowrap;
}
.ab-table td {
  padding: 9px;
  border-bottom: 1px solid #f0f2f6;
  color: #273456;
  vertical-align: middle;
}
.ab-table tbody tr:last-child td { border-bottom: 0; }
.ab-table tbody tr:hover { background: #fdfcf8; }
.ab-row-number {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: var(--ab-gold-soft);
  color: #bd831e;
  font-size: 10px;
  font-weight: 800;
}
.ab-course-cell { display: flex; align-items: center; gap: 9px; min-width: 215px; max-width: 290px; }
.ab-course-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 39px;
  flex: 0 0 58px;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(135deg, #e8edf8, #c7d0e7);
  color: #52618a;
}
.ab-course-thumb-image { background-size: cover; background-position: center; }
.ab-course-thumb .icon { width: 19px; height: 19px; }
.ab-course-copy { min-width: 0; }
.ab-course-copy strong, .ab-owner {
  display: block;
  overflow: hidden;
  color: var(--ab-navy);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ab-course-copy span {
  display: block;
  overflow: hidden;
  margin-top: 3px;
  color: var(--ab-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ab-subline {
  display: block;
  margin-top: 3px;
  color: #8a94a8;
  font-size: 9px;
}
.ab-row-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ab-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}
.ab-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ab-status.green { color: #21874c; background: #e4f5e9; }
.ab-status.gold { color: #a66c0b; background: #fff1d5; }
.ab-status.blue { color: #225db7; background: #e9f0ff; }
.ab-status.red { color: #b6414d; background: #fbeaec; }
.ab-status.muted { color: #70798d; background: #eef0f4; }
.ab-count {
  padding: 6px 9px;
  border-radius: 999px;
  color: #a56f14;
  background: var(--ab-gold-soft);
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}
.ab-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: var(--ab-muted);
  font-size: 10px;
}
.ab-page-buttons { display: flex; align-items: center; gap: 4px; }
.ab-page-button {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid var(--ab-line);
  border-radius: 6px;
  background: #fff;
  color: #70809e;
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.ab-page-button .icon { width: 13px; height: 13px; transform: rotate(180deg); }
.ab-page-button.ab-page-next .icon { transform: none; }
.ab-page-button.active { border-color: #dce6f8; background: #edf3ff; color: #254e9c; font-weight: 800; }
.ab-empty, .ab-state {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 48px 20px;
  color: var(--ab-muted);
  text-align: center;
}
.ab-empty .icon, .ab-state > .icon { width: 25px; height: 25px; color: #d7a63d; }
.ab-empty h3, .ab-state h3 { margin: 0; color: var(--ab-navy); font-size: 14px; }
.ab-empty p, .ab-state p { max-width: 480px; margin: 0; font-size: 10px; line-height: 1.6; }
.ab-state-error { color: #ad4350; }
.ab-state-error h3 { color: #ad4350; }
.ab-state-error .ab-button { margin-top: 3px; }
.ab-loading-panel { min-height: 190px; }
.ab-loader {
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid #e7ebf2;
  border-top-color: var(--ab-gold);
  border-radius: 50%;
  animation: ab-spin .8s linear infinite;
}
@keyframes ab-spin { to { transform: rotate(360deg); } }
.ab-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 14px 16px 16px;
  padding: 10px 11px;
  border: 1px solid #dfe8fb;
  border-radius: 8px;
  color: #47628e;
  background: #f4f7fe;
}
.ab-note .icon { width: 16px; height: 16px; flex: 0 0 16px; color: #456bb2; }
.ab-note p { margin: 0; font-size: 10px; line-height: 1.55; }
.ab-note-warning { margin: 0; border-color: #f2dfb9; color: #86601e; background: #fffaf0; }
.ab-note-warning .icon { color: #be861d; }
.ab-reason { min-width: 180px; max-width: 260px; line-height: 1.5; }
.ab-connect-slot:empty { display: none; }
.ab-connect-slot-hidden { display: none; }
.ab-connect-slot > #adminConnectPanel { margin: 0; border: 0; border-top: 1px solid var(--ab-line); border-radius: 0; box-shadow: none; }
.ab-dispute-table { min-width: 1450px; }
.ab-dispute-table td { vertical-align: top; }
.ab-dispute-table th:nth-child(n+6), .ab-dispute-table td:nth-child(n+6) { white-space: nowrap; }
.ab-unknown { color: #9b5360; font-weight: 700; }
.ab-dispute-detail { overflow: hidden; }
.ab-detail-heading { align-items: flex-start; }
.ab-dispute-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 0 16px 16px;
}
.ab-dispute-value {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
  padding: 11px;
  border: 1px solid #edf0f5;
  border-radius: 9px;
  background: #fcfcfd;
}
.ab-dispute-value > span:first-child {
  color: #7b849a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: uppercase;
}
.ab-dispute-value strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ab-navy);
  font-size: 11px;
}
.ab-dispute-value small {
  color: var(--ab-muted);
  font-size: 9px;
  line-height: 1.4;
}
.ab-dispute-subsection {
  padding: 0 16px 16px;
}
.ab-dispute-subsection + .ab-dispute-subsection { padding-top: 2px; }
.ab-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0 9px;
  border-top: 1px solid var(--ab-line);
}
.ab-section-heading h3 {
  margin: 0;
  color: var(--ab-navy);
  font-size: 13px;
}
.ab-section-heading p {
  margin: 4px 0 0;
  color: var(--ab-muted);
  font-size: 10px;
  line-height: 1.5;
}
.ab-transaction-table, .ab-recovery-table { min-width: 900px; }
.ab-empty-compact { padding: 27px 16px; }
.ab-recovery-launch, .ab-recovery-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  padding: 13px;
  border: 1px solid #dfe8fb;
  border-radius: 9px;
  background: #f7f9fe;
}
.ab-recovery-launch > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}
.ab-recovery-launch strong, .ab-recovery-confirm > strong { color: var(--ab-navy); font-size: 11px; }
.ab-recovery-launch small { color: var(--ab-muted); font-size: 9px; line-height: 1.45; }
.ab-recovery-url { overflow-wrap: anywhere; color: #315a9f; font-size: 9px; line-height: 1.45; }
.ab-recovery-confirm {
  align-items: flex-start;
  flex-direction: column;
  border-color: #f2dfb9;
  background: #fffaf0;
}
.ab-recovery-confirm p { max-width: 760px; margin: 0; color: #715c31; font-size: 10px; line-height: 1.6; }
.ab-recovery-confirm label { display: flex; align-items: flex-start; gap: 7px; color: #5e4a25; font-size: 10px; line-height: 1.5; }
.ab-recovery-confirm input { margin-top: 1px; accent-color: var(--ab-gold); }
.ab-recovery-confirm .ab-row-actions { align-self: stretch; justify-content: flex-end; }
.ab-recovery-attribution { display: grid; gap: 12px; }
.ab-attribution-intro { margin: 0; color: #5e4a25; font-size: 10px; line-height: 1.6; }
.ab-attribution-form {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(240px, 1.5fr) minmax(190px, 1fr) auto;
  align-items: end;
  gap: 9px;
  padding: 13px;
  border: 1px solid #f2dfb9;
  border-radius: 9px;
  background: #fffaf0;
}
.ab-attribution-form label { display: grid; gap: 5px; min-width: 0; color: #715c31; font-size: 9px; font-weight: 700; }
.ab-attribution-form input, .ab-attribution-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dfd4bb;
  border-radius: 6px;
  background: #fff;
  color: var(--ab-navy);
  font: inherit;
  font-size: 10px;
  font-weight: 400;
  outline: 0;
  padding: 8px;
}
.ab-attribution-form textarea { min-height: 55px; resize: vertical; }
.ab-attribution-form input:focus, .ab-attribution-form textarea:focus { border-color: var(--ab-gold); box-shadow: 0 0 0 2px #f8eacb; }
.ab-attribution-form input::placeholder { color: #a6a09a; }
.ab-attribution-form .ab-button { white-space: nowrap; }
.ab-attribution-warning { grid-column: 1 / -1; color: #715c31; font-size: 9px; line-height: 1.45; }
.ab-attribution-table { min-width: 620px; }
.ab-disputes-panel .ab-panel-heading { align-items: flex-start; }
.ab-disputes-panel .ab-plan-actions { flex-wrap: wrap; justify-content: flex-end; }
.ab-disputes-panel .ab-filter select { max-width: 125px; }

@media (max-width: 1000px) {
  .ab-panel-heading { align-items: flex-start; flex-direction: column; }
  .ab-plan-actions { width: 100%; flex-wrap: wrap; }
  .ab-plan-actions .ab-search { flex: 1 1 180px; }
  .ab-panel-heading > .ab-search { width: min(100%, 280px); }
  .ab-dispute-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ab-heading { align-items: flex-start; flex-wrap: wrap; }
  .ab-heading-actions { width: 100%; min-width: 0; margin-left: 0; }
  .ab-heading-actions .ab-button { width: 100%; min-width: 0; }
  .ab-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-tab:nth-child(2n) { border-right: 0; }
  .ab-tab { border-bottom: 1px solid var(--ab-line); }
  .ab-tab:last-child { border-bottom: 0; }
  .ab-pagination { align-items: flex-start; flex-direction: column; }
  .ab-page-buttons { align-self: flex-end; }
  .ab-dispute-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-left: 10px; padding-right: 10px; }
  .ab-dispute-subsection { padding-left: 10px; padding-right: 10px; }
  .ab-recovery-launch { align-items: flex-start; flex-direction: column; }
  .ab-recovery-launch .ab-button { width: 100%; }
  .ab-detail-heading .ab-row-actions { width: 100%; flex-wrap: wrap; }
  .ab-attribution-form { grid-template-columns: 1fr; }
  .ab-attribution-warning { grid-column: auto; }
  .ab-attribution-form .ab-button { width: 100%; }
}