/*
 * Shared data presentation
 * Tables, responsive reward cards, invitation history, lists, and pagination.
 */
.table-responsive { margin-bottom: 24px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.table { width: 100%; margin-bottom: 0; background: #fff; }
.panel > .table:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.table > thead > tr > th,
.table > tbody > tr > th {
  padding: 14px 16px;
  color: var(--muted);
  background: #f7f5f4;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.table > tbody > tr > td {
  padding: 15px 16px;
  vertical-align: middle;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.table-striped > tbody > tr:nth-of-type(odd) { background: #fcfbfa; }
.table-hover > tbody > tr:hover { background: var(--pink-soft); }
.responsive-table-panel { overflow: visible; }
.responsive-table-panel > .panel-heading { border-radius: var(--radius) var(--radius) 0 0; }
.responsive-table-panel > .panel-footer { border-radius: 0 0 var(--radius) var(--radius); }
.reward_table .dropdown { position: relative; max-width: 100%; }
.reward_table .dropdown.open { z-index: 10; }
.reward_table .dropdown-toggle {
  max-width: 100%;
  flex-wrap: nowrap;
}
.reward_table .table-cell-wrap {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reward_table .dropdown-menu {
  right: 0;
  left: auto;
  min-width: min(280px, calc(100vw - 32px));
  white-space: normal;
}
.reward_table .dropdown-menu > li > a {
  white-space: normal;
  overflow-wrap: anywhere;
}
.rewards-card { overflow: visible; }
.rewards-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid var(--line);
}
.rewards-head .panel-title { margin: 0 0 6px; font: 700 2.1rem/1.15 "Manrope", sans-serif; }
.rewards-head p { margin: 0; color: var(--muted); font-size: 1.28rem; }
.rewards-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.rewards-tab { min-height: 36px; padding: 0 14px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 700; }
.rewards-tab.active { color: #fff; background: var(--pink); box-shadow: 0 6px 14px rgba(209, 0, 99, .18); }
.rewards-tab-panel { display: none; padding: 0 26px 24px; }
.rewards-tab-panel.active { display: block; }
.rewards-table-wrap { margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; }
.rewards-table-wrap .table { table-layout: auto; }
.rewards-table-wrap th:nth-child(1),
.rewards-table-wrap td:nth-child(1) { width: 13%; }
.rewards-table-wrap th:nth-child(2),
.rewards-table-wrap td:nth-child(2) { width: 22%; }
.rewards-table-wrap th:nth-child(3),
.rewards-table-wrap td:nth-child(3) { width: 15%; }
.rewards-table-wrap th:nth-child(4),
.rewards-table-wrap td:nth-child(4) { width: 21%; }
.rewards-table-wrap th:nth-child(5),
.rewards-table-wrap td:nth-child(5) { width: 22%; }
.rewards-table-wrap th:nth-child(6),
.rewards-table-wrap td:nth-child(6) { width: 7%; }
.rewards-table-wrap th,
.rewards-table-wrap td { overflow-wrap: anywhere; }
.reward-amount { color: var(--pink); }
.rewards-empty { margin-top: 20px; padding: 28px; border: 1px dashed #d8d5da; border-radius: 16px; color: var(--muted); text-align: center; }
.invite-info-card,
.invite-form-card,
.invite-history-card {
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.invite-info-card {
  padding: 24px 26px;
  border-color: #ebd7e0;
  background: linear-gradient(180deg, #fff 0%, #fcf7f9 100%);
}
.invite-info-card h2 { margin: 0 0 6px; font-size: 1.85rem; line-height: 1.2; }
.invite-info-card p { margin: 0; color: #4f5563; font-size: 1.58rem; }
.invite-form-card { padding: 26px; background: #fff; }
.invite-form-head { margin-bottom: 20px; }
.invite-form-head h2,
.invite-history-head h2 { margin: 0; font-size: 1.75rem; line-height: 1.15; }
.invite-form-head p,
.invite-history-head p { margin: 6px 0 0; color: var(--muted); font-size: 1.08rem; }
.invite-form-card .multiple-input-list { width: 100%; table-layout: fixed; }
.invite-form-card .multiple-input-list td { padding-top: 5px; padding-bottom: 5px; }
.invite-form-card .multiple-input-list .form-control { height: 48px; border-radius: 14px; box-shadow: none; }
.invite-form-card .multiple-input-list__btn { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; display: grid; place-items: center; }
.invite-form-card .invite-add-button { color: var(--pink); background: var(--pink-soft); }
.invite-form-card .invite-remove-button { color: #777d88; background: transparent; }
.invite-form-card .invite-remove-button:hover { color: var(--pink); background: #f5f2f4; }
.invite-form-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.invite-form-actions .btn { min-height: 48px; border-radius: 14px; }
.invite-form-note { display: inline-flex; align-items: flex-start; gap: 9px; flex: 1; margin: 12px 18px 0 0; color: var(--muted); font-size: 1.3rem; }
.invite-form-note .fa { margin-top: 3px; }
.invite-limit-note,
.invite-empty { color: var(--warning); }
.invite-history-card { overflow: hidden; background: #fff; }
.invite-history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.invite-history-count { color: var(--muted); font-size: .95rem; text-align: right; }
.invite-history-count > strong { color: var(--pink); font-size: 1.3rem; }
.invite-history-count span { display: block; margin-top: 4px; }
.invite-history-count span strong { color: var(--ink); }
.invite-history-table { margin: 0; }
.invite-history-table th { text-transform: none; letter-spacing: 0; }
.invite-status { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.invite-status-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .72; }
.invite-status-waiting { color: #9a6705; background: #fff2d8; }
.invite-status-active { color: #2a6f4a; background: #e8f5ec; }
.invite-empty { padding: 12px 0; }
.dl-horizontal dt { color: var(--muted); font-size: 1.2rem; font-weight: 600; }
.dl-horizontal dd { margin-bottom: 10px; }
.list-group { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.list-group-item { padding: 15px 18px; border-color: var(--line); }
.media { padding: 17px 0; border-bottom: 1px solid var(--line); }
.media:last-child { border-bottom: 0; }
.media-heading { color: var(--ink); font-weight: 700; }
.underlined { color: var(--pink); text-decoration: underline; text-decoration-color: rgba(209, 0, 99, .3); text-underline-offset: 3px; }
.progress { height: 10px; overflow: hidden; background: #eeecef; border-radius: 999px; box-shadow: none; }
.progress-bar { background: var(--pink); box-shadow: none; }
.pagination > li > a, .pagination > li > span {
  margin: 0 3px;
  color: var(--ink);
  border-color: var(--line);
  border-radius: 9px !important;
}
.pagination > .active > a, .pagination > .active > span {
  color: #fff;
  background: var(--pink);
  border-color: var(--pink);
}

/* Rounded corners for tables inside rounded wrappers (wrappers can't clip: dropdowns must overflow). */
@media (min-width: 768px) {
  body .home-rewards-table,
  body .home-simple-table,
  body .profile-rewards-table,
  body .rewards-table-wrap > .table,
  body .research-table-wrap > .table {
    border-collapse: separate;
    border-spacing: 0;
    --tbl-r: 17px;
    border-radius: var(--tbl-r);
  }
  body .profile-rewards-table,
  body .rewards-table-wrap > .table { --tbl-r: 15px; border-radius: var(--tbl-r); }
  body :is(.home-rewards-table, .home-simple-table, .profile-rewards-table, .rewards-table-wrap > .table, .research-table-wrap > .table) > thead > tr:first-child > :first-child { border-top-left-radius: var(--tbl-r); }
  body :is(.home-rewards-table, .home-simple-table, .profile-rewards-table, .rewards-table-wrap > .table, .research-table-wrap > .table) > thead > tr:first-child > :last-child { border-top-right-radius: var(--tbl-r); }
  body :is(.home-rewards-table, .home-simple-table, .profile-rewards-table, .rewards-table-wrap > .table, .research-table-wrap > .table) > tbody > tr:last-child > td { background: inherit; }
  body :is(.home-rewards-table, .home-simple-table, .profile-rewards-table, .rewards-table-wrap > .table, .research-table-wrap > .table) > tbody > tr:last-child > :first-child { border-bottom-left-radius: var(--tbl-r); }
  body :is(.home-rewards-table, .home-simple-table, .profile-rewards-table, .rewards-table-wrap > .table, .research-table-wrap > .table) > tbody > tr:last-child > :last-child { border-bottom-right-radius: var(--tbl-r); }
}

.full-researches .badge{
  gap: 5px;
}
