/* ============================================
   RecurPost Reports — Clean Design
   Only custom styles that Bootstrap doesn't cover
   ============================================ */

/* --- CSS Variables --- */
.rp-reports .reports-ctn {
  --rpt-bg: #F4F6FA;
  --rpt-border: #E8ECF1;
  --rpt-accent: #4F6EF7;
  --rpt-accent-light: #EEF1FE;
  --rpt-up: #10B981;
  --rpt-up-bg: #ECFDF5;
  --rpt-down: #EF4444;
  --rpt-down-bg: #FEF2F2;
  --rpt-zero: #9CA3AF;
  --rpt-zero-bg: #F3F4F6;
  --rpt-star: #F59E0B;
}

/* --- Page Background --- */
.rp-reports .reports-ctn {
  background: var(--rpt-bg) !important;
}

.rp-reports .reports-ctn > .d-flex.hw-100.overflow-y {
  padding: 28px 32px !important;
  gap: 0;
}

/* --- Profile Avatar --- */
.rpt-profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--rpt-border);
}


/* --- Chart containers — prevent flex overflow --- */
.rp-reports .card {
  min-width: 0;
}

.rp-reports .card-body {
  min-width: 0;
}

/* --- Chart Wrapper --- */
.rpt-chart {
  width: 100%;
  height: 320px;
  margin-bottom: 4px;
  overflow: hidden;
}

/* Heatmap charts need extra height for 7-row grid + visualMap legend */
.rpt-chart-heatmap {
  height: 400px;
}

/* Tall chart for 14-row horizontal bars (account performance) */
.rpt-chart-lg {
  height: 440px;
}

/* Fixed-height scrollable table body for account performance table */
.rpt-table-scroll {
  max-height: 480px;
  overflow-y: auto;
}

#accountTable th:first-child,
#accountTable td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  min-width: 200px;
}

#accountTable thead th:first-child {
  background: var(--rpt-bg);
  z-index: 3;
}

.rpt-account-link {
  font-size: 12px;
  color: #0d6efd;
  text-decoration: none;
}

.rpt-account-link:hover {
  text-decoration: underline;
}

/* Chart.js canvas wrapper — position:relative required for responsive width */
.rpt-chart-wrap {
  position: relative;
  width: 100%;
  height: 380px;
}

.rpt-chart-wrap canvas {
  width: 100% !important;
}

/* --- Table Overrides --- */
.rpt-table thead th {
  background: var(--rpt-bg);
  color: #6B7280;
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 16px;
  white-space: nowrap;
}
.rpt-table-scroll .rpt-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.rpt-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  overflow: hidden;
}

.rpt-table tbody tr.row-bold td {
  font-weight: 600;
}

.rpt-table .rpt-change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}

.rpt-table .rpt-change.up { color: var(--rpt-up); background: var(--rpt-up-bg); }
.rpt-table .rpt-change.down { color: var(--rpt-down); background: var(--rpt-down-bg); }
.rpt-table .rpt-change.zero { color: var(--rpt-zero); background: var(--rpt-zero-bg); }

/* --- Paid Ads — Status Badge --- */
.rpt-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.rpt-status-badge .rpt-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rpt-status-badge.active    { background: #D1FAE5; color: #065F46; }
.rpt-status-badge.active    .rpt-status-dot { background: #10B981; }
.rpt-status-badge.paused    { background: #FEF3C7; color: #92400E; }
.rpt-status-badge.paused    .rpt-status-dot { background: #F59E0B; }
.rpt-status-badge.completed { background: #F1F5F9; color: #64748B; }
.rpt-status-badge.completed .rpt-status-dot { background: #94A3B8; }
.rpt-status-badge.deleted   { background: #FEE2E2; color: #991B1B; }
.rpt-status-badge.deleted   .rpt-status-dot { background: #EF4444; }
.rpt-status-badge.lead-new  { background: #DBEAFE; color: #1E40AF; }
.rpt-status-badge.lead-new  .rpt-status-dot { background: #3B82F6; }

/* --- Map legend dot --- */
.rpt-map-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.rpt-map-dot.blue    { background: #1877F2; }
.rpt-map-dot.violet  { background: #8B5CF6; }
.rpt-map-dot.amber   { background: #F59E0B; }
.rpt-map-dot.emerald { background: #10B981; }
.rpt-map-dot.rose    { background: #F43F5E; }

/* --- Location table sub-label --- */
.rpt-location-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  padding: 10px 16px 6px;
  margin: 0;
}
.rpt-location-label span {
  font-weight: 400;
  color: #9CA3AF;
  font-size: 11px;
}

/* --- Location bar table --- */
.rpt-location-table td { vertical-align: middle; }
.rpt-loc-name { white-space: nowrap; max-width: 300px;}
.rpt-loc-val  { white-space: nowrap; text-align: right; font-weight: 600; font-size: 13px; color: #0F172A; padding-left: 8px !important; }
.rpt-loc-bar  { width: 100%; padding: 0 10px !important; }
.rpt-bar-track { height: 5px; background: #E2E8F0; border-radius: 3px; overflow: hidden; }
.rpt-bar-fill  { height: 5px; background: #1877F2; border-radius: 3px; }
/* Bar widths — normalized to max value within each table */
.rpt-bar-100 { width: 100%; }
.rpt-bar-75  { width: 75%; }
.rpt-bar-63  { width: 63%; }
.rpt-bar-57  { width: 57%; }
.rpt-bar-50  { width: 50%; }
.rpt-bar-43  { width: 43%; }
.rpt-bar-38  { width: 38%; }
.rpt-bar-32  { width: 32%; }
.rpt-bar-25  { width: 25%; }
.rpt-bar-21  { width: 21%; }
.rpt-bar-18  { width: 18%; }
.rpt-bar-14  { width: 14%; }
.rpt-bar-11  { width: 11%; }
.rpt-bar-7   { width: 7%; }

/* --- Show more / Show less table button --- */
.rpt-show-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding:15px;
  border: none;
  background: none;
  color: #64748B;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-radius: 0 0 8px 8px;
}
.rpt-show-more-btn:hover {
  color: #101010;
}
.rpt-show-more-btn i {
  font-size: 15px;
  transition: transform 0.2s;
}
.rpt-show-more-btn.expanded i {
  transform: rotate(180deg);
}

/* --- Paid Ads — Objective Chip --- */
.rpt-objective-chip {
  display: inline-block;
  padding: 2px 7px;
  background: #F1F5F9;
  color: #475569;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

/* --- Paid Ads Table — Sticky First Column --- */
/* --- Ad Account Dropdown Trigger --- */
.rpt-adaccount-trigger { max-width: 240px; gap: 8px; cursor: pointer; position: relative; }
.rpt-adaccount-trigger .ri-list-view,
.rpt-adaccount-trigger .ri-arrow-down-s-line { font-size: 13px; flex-shrink: 0; }
.rpt-adaccount-trigger::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.rpt-adaccount-trigger:hover::after { opacity: 1; }
.rpt-adaccount-label {
  font-size: 12px; font-weight: 500; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 150px; color: #374151;
}
.ads-account-dropdown .dropdown-menu { min-width: 260px; }

.rpt-paid-table { position: relative; }
.rpt-paid-table .rpt-table thead th:first-child,
.rpt-paid-table .rpt-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
}
.rpt-paid-table .rpt-table thead th:first-child {
  background: var(--rpt-bg);
  z-index: 3;
}
.rpt-paid-table .rpt-table tbody td:first-child {
  background: #fff;
}

/* --- Keyword Table --- */
.rpt-keyword-rank {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--rpt-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: #6B7280;
}

.rpt-keyword-rank.top-3 {
  background: var(--rpt-accent-light);
  color: var(--rpt-accent);
}

.rpt-keyword-bar {
  height: 6px;
  background: #F3F4F6;
  border-radius: 3px;
  overflow: hidden;
  flex: 1;
}

.rpt-keyword-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--rpt-accent), #818CF8);
  transition: width 0.6s ease;
}

/* --- Reviews Hero --- */
.rpt-review-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #FEFCE8 0%, #FFF7ED 50%, #FFF1F2 100%);
  border-radius: 10px;
  margin-bottom: 20px;
}

.rpt-review-score {
  text-align: center;
  min-width: 120px;
}

.rpt-review-score .score-value {
  font-size: 48px;
  font-weight: 800;
  color: #1A1D26;
  line-height: 1;
  letter-spacing: -0.03em;
}

.rpt-review-score .score-stars {
  color: var(--rpt-star);
  font-size: 18px;
  margin: 6px 0 4px;
  letter-spacing: 2px;
}

.rpt-review-score .score-total {
  font-size: 13px;
  color: #6B7280;
}

.rpt-review-distribution {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpt-dist-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rpt-dist-row .dist-label {
  font-size: 13px;
  color: #6B7280;
  width: 14px;
  text-align: center;
  font-weight: 600;
  flex-shrink: 0;
}

.rpt-dist-row .dist-star {
  color: var(--rpt-star);
  font-size: 12px;
  flex-shrink: 0;
}

.rpt-dist-row .dist-bar {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  overflow: hidden;
}

.rpt-dist-row .dist-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.rpt-dist-row .dist-bar-fill.bar-5 { background: #22C55E; }
.rpt-dist-row .dist-bar-fill.bar-4 { background: #84CC16; }
.rpt-dist-row .dist-bar-fill.bar-3 { background: #F59E0B; }
.rpt-dist-row .dist-bar-fill.bar-2 { background: #F97316; }
.rpt-dist-row .dist-bar-fill.bar-1 { background: #EF4444; }

.rpt-dist-row .dist-count {
  font-size: 13px;
  color: #6B7280;
  width: 32px;
  text-align: right;
  font-weight: 500;
  flex-shrink: 0;
}

.rpt-review-new {
  text-align: center;
  min-width: 120px;
  padding-left: 32px;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.rpt-review-new .new-count {
  font-size: 36px;
  font-weight: 800;
  color: #1A1D26;
  line-height: 1;
}

.rpt-review-new .new-label {
  font-size: 12px;
  color: #6B7280;
  margin-top: 6px;
}

.rpt-review-new .rpt-stat-change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 4px;
}
.rpt-review-new .rpt-stat-change.up   { color: var(--rpt-up);   background: var(--rpt-up-bg); }
.rpt-review-new .rpt-stat-change.down { color: var(--rpt-down); background: var(--rpt-down-bg); }
.rpt-review-new .rpt-stat-change.zero { color: var(--rpt-zero); background: var(--rpt-zero-bg); }

/* Color dot for table legend rows */
.rpt-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-right: 6px;
}

/* Review cards */
.rpt-review-card {
  transition: box-shadow 0.2s ease;
  min-height: 125px;
}

.rpt-review-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.rpt-review-card .review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.rpt-review-card .review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.rpt-review-card .review-author {
  font-size: 14px;
  font-weight: 600;
  color: #1A1D26;
  margin: 0;
}

.rpt-review-card .review-date {
  font-size: 12px;
  color: #9CA3AF;
  margin: 0;
}

.rpt-review-card .review-stars {
  margin-left: auto;
  color: var(--rpt-star);
  font-size: 13px;
  letter-spacing: 1px;
}

.rpt-review-card .review-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #6B7280;
    margin: 0;
    height: 60px;
    overflow-y: auto;
}

/* --- Post Cards --- */
.rpt-post-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.rpt-post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.rpt-post-card .post-card-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--rpt-border);
}

.rpt-post-card .post-card-avatar {
  position: relative;
  flex-shrink: 0;
}

.rpt-post-card .post-card-avatar img.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.rpt-post-card .post-card-avatar img.social-badge {
  position: absolute;
  bottom: -2px;
  right: -4px;
  width: 16px;
  height: 16px;
}

.rpt-post-card .post-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #1A1D26;
  margin: 0;
}

.rpt-post-card .post-card-date {
  font-size: 11.5px;
  color: #9CA3AF;
  margin: 0;
}

.rpt-post-card .post-card-link {
  margin-left: auto;
  color: #9CA3AF;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

.rpt-post-card .post-card-link:hover {
  color: var(--rpt-accent);
}

.rpt-post-card .post-card-body {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.55;
    color: #6B7280;
    flex: 1;
    max-height: 76px;
    overflow-y: auto;
}

.rpt-post-card .post-card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.rpt-video-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.rpt-post-card .post-card-metrics {
  display: flex;
  border-top: 1px solid var(--rpt-border);
}

.rpt-post-card .post-card-metric {
  flex: 1;
  padding: 12px;
  text-align: center;
  border-right: 1px solid var(--rpt-border);
}

.rpt-post-card .post-card-metric:last-child {
  border-right: none;
}

.rpt-post-card .post-card-metric .metric-value {
  font-size: 18px;
  font-weight: 700;
  color: #1A1D26;
  line-height: 1;
}

.rpt-post-card .post-card-metric .metric-label {
  font-size: 11px;
  color: #9CA3AF;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* --- Post Stats List (YouTube video metrics) --- */
.rpt-post-stats {
  padding: 8px 16px;
  border-top: 1px solid var(--rpt-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rpt-post-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #1A1D26;
}

/* --- Empty / Not-connected State --- */

/* API Limitation State Card */
.rpt-api-state-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--rpt-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.rpt-api-state-header {
  background: #F8FAFC;
  border-bottom: 1px solid var(--rpt-border);
  padding: 28px 28px 24px;
  text-align: center;
}

.rpt-api-state-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--rpt-border);
  border-radius: 100px;
  padding: 5px 14px 5px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.rpt-api-state-platform-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #101010;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rpt-api-state-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.rpt-api-state-subtitle {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 0;
  line-height: 1.5;
}

.rpt-api-state-body {
  padding: 24px 28px;
}

.rpt-api-state-notice {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.rpt-api-state-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rpt-api-state-features li {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #374151;
}

.rpt-api-feature-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #059669;
  font-size: 10px;
}

.rpt-api-state-generate-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #101010;
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  margin-bottom: 12px;
}

.rpt-api-state-generate-btn:hover {
  background: #222;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
}

.rpt-api-state-btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rpt-api-state-btn-icon img {
  width: 12px;
  height: 12px;
  filter: invert(1);
}

.rpt-api-state-hint {
  font-size: 12px;
  color: #9CA3AF;
  text-align: center;
  margin: 0;
}

.rpt-api-notice-title {
  font-size: 13px;
}

.rpt-api-notice-body {
  font-size: 13px;
  color: #4B5563;
}

/* --- Popover tooltip --- */
.rpt-tooltip {
  cursor: help;
  border-bottom: 1px dashed #9CA3AF;
  text-decoration: none;
  color: inherit;
}

/* --- Mini Bar (inline progress in tables) --- */
.rpt-mini-track {
  height: 6px;
  background: #E2E8F0;
  border-radius: 3px;
  overflow: hidden;
  min-width: 60px;
  flex: 1;
}
.rpt-mini-bar {
  height: 100%;
  background: #3B82F6;
  border-radius: 3px;
}

/* --- Branding Panel --- */
.rpt-branding-panel.offcanvas {
  width: 420px !important;
  border: none;
}

.rpt-branding-section {
  padding: 24px;
}

.rpt-branding-hint {
  font-size: 12.5px;
  color: #9CA3AF;
  margin: 0;
  line-height: 1.5;
}

.rpt-upload-zone {
  border: 2px dashed var(--rpt-border);
  border-radius: 14px;
  padding: 36px 24px;
  background: #FAFBFD;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.rpt-upload-zone:hover {
  border-color: var(--rpt-accent);
  background: var(--rpt-accent-light);
}

.rpt-upload-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rpt-accent-light);
  color: var(--rpt-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}

.rpt-upload-zone:hover .rpt-upload-icon-wrap {
  background: var(--rpt-accent);
  color: #ffffff;
}

/* --- Boards Carousel (Pinterest) --- */
.board-list.owl-carousel .owl-nav {
  display: none;
}
.board-list-wrap {
  overflow: hidden;
}

/* --- Load More (Pinterest pins) --- */
.rpt-load-more-bar {
  width: 160px;
  height: 4px;
  background: #e9ecef;
  border-radius: 99px;
  overflow: hidden;
}
.rpt-load-more-bar-fill {
  height: 100%;
  background: #0d6efd;
  border-radius: 99px;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
  .rp-reports .reports-ctn > .d-flex.hw-100.overflow-y {
    padding: 20px !important;
  }

  .rpt-review-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    text-align: center;
  }

  .rpt-review-new {
    border-left: none;
    padding-left: 0;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
}

@media (max-width: 767.98px) {
  .rpt-chart {
    height: 260px;
  }

  .rpt-review-hero {
    padding: 18px;
    gap: 16px;
  }

  .rpt-review-score .score-value {
    font-size: 36px;
  }
}

@media (max-width: 575.98px) {
  .rp-reports .reports-ctn > .d-flex.hw-100.overflow-y {
    padding: 16px !important;
  }
}

/* --- Not Connected State --- */
.rpt-not-connected-wrap {
  max-width: 480px;
}

.rpt-platform-icon {
  width: 68px;
  height: 68px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.rpt-platform-icon img {
  width: 38px;
  height: 38px;
}

.rpt-platform-icon.disconnected {
  opacity: 0.5;
}

.rpt-connect-divider {
  width: 36px;
}

.btn-facebook {
  background-color: #1877F2;
  border-color: #1877F2;
  color: #fff;
}

.btn-facebook:hover,
.btn-facebook:focus {
  background-color: #1464d3;
  border-color: #1464d3;
  color: #fff;
}

.rpt-section-label {
  letter-spacing: 0.05em;
}

/* Reconnection State */
.rpt-api-state-platform-icon.facebook {
  background: transparent;
}

.rpt-api-state-platform-icon.facebook img {
  width: 24px;
  height: 24px;
  filter: none;
}

.rpt-reconnect-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
}

.rpt-reconnect-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--rpt-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rpt-reconnect-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e81313;
  font-size: 21px;
}

.rpt-reconnect-warning {
    font-size: 12px;
    color: #EF4444;
    text-align: center;
    margin: 0;
}

.rpt-loc-name img {
    width: 30px;
    margin-right: 5px;
}

/* Native platform icon - SVG has its own background, skip filter */
.rpt-api-state-platform-icon.native {
  background: transparent;
}
.rpt-api-state-platform-icon.native img {
  width: 24px;
  height: 24px;
  filter: none;
}

/* Per-platform reconnect button colors */
.rpt-reconnect-btn.instagram { background: #E1306C; }
.rpt-reconnect-btn.instagram:hover { background: #c11d57; box-shadow: 0 4px 16px rgba(225,48,108,0.4); }
.rpt-reconnect-btn.linkedin { background: #0A66C2; }
.rpt-reconnect-btn.linkedin:hover { background: #0850a0; box-shadow: 0 4px 16px rgba(10,102,194,0.4); }
.rpt-reconnect-btn.tiktok { background: #000000; }
.rpt-reconnect-btn.tiktok:hover { background: #222; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.rpt-reconnect-btn.youtube { background: #FF0000; }
.rpt-reconnect-btn.youtube:hover { background: #cc0000; box-shadow: 0 4px 16px rgba(255,0,0,0.4); }
.rpt-reconnect-btn.gbp { background: #4285F4; }
.rpt-reconnect-btn.gbp:hover { background: #2d74e0; box-shadow: 0 4px 16px rgba(66,133,244,0.4); }
.rpt-reconnect-btn.bluesky { background: #0085FF; }
.rpt-reconnect-btn.bluesky:hover { background: #006dcc; box-shadow: 0 4px 16px rgba(0,133,255,0.4); }
.rpt-reconnect-btn.threads { background: #000000; }
.rpt-reconnect-btn.threads:hover { background: #222; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.rpt-reconnect-btn.pinterest { background: #E60023; }
.rpt-reconnect-btn.pinterest:hover { background: #b5001c; box-shadow: 0 4px 16px rgba(230,0,35,0.4); }
.rpt-reconnect-btn.reddit { background: #FF4500; }
.rpt-reconnect-btn.reddit:hover { background: #e03d00; box-shadow: 0 4px 16px rgba(255,69,0,0.4); }
.rpt-reconnect-btn.twitter { background: #000000; }
.rpt-reconnect-btn.twitter:hover { background: #222; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }

/* Icon inside Bootstrap btn reconnect buttons */
 
.btn .rpt-reconnect-btn-icon img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* Chart metric switcher tabs — underline style (same as main page tabs) */
.rpt-chart-tabs-wrap {
  border-bottom: 1px solid #E2E8F0;
}
.rpt-chart-tabs {
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: none;
}
.rpt-chart-tabs .nav-link {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #64748B;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  text-align: center;
  margin-bottom: -1px;
}
.rpt-chart-tabs .nav-link:hover { color: #0F172A; background: transparent; }
.rpt-chart-tabs .nav-link.active {
  color: #1877F2;
  border-bottom-color: #1877F2;
  font-weight: 600;
}

.rpt-date-vs {
  font-size: 10px;
  color: var(--bs-secondary);
  line-height: 1.2;
}


/* Avatar variants for the By Label entry. Two sizes: sidebar (36px circle) and header (44px rounded square, matches .rpt-profile-avatar). */
.rpt-by-label-avatar {
  background: #eef5ff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}
.rpt-by-label-avatar .icon-label { font-size: 16px; }

.rpt-by-label-avatar-lg {
  background: #ffffff;
  border: 2px solid var(--rpt-border, #e5e9ee);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}
.rpt-by-label-avatar-lg .icon-label { font-size: 20px; }


/* ============ Reports — label filter ============ */

/* Pill row that shows below the header when one or more labels are active */
 
.rpt-label-filter-bar .rpt-label-filter-label {
  font-weight: 600;
}
.rpt-label-filter-bar .rpt-label-filter-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.rpt-label-filter-bar .rpt-label-filter-clear {
  font-size: 12.5px;
  color: #5f6b7a;
  font-weight: 500;
  text-decoration: none;
}
.rpt-label-filter-bar .rpt-label-filter-clear:hover { color: #f43f5e; }

.rpt-label-empty-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 500;
}

/* Mixed-state: best-post placeholder card for labels with zero posts */
.rpt-post-card-empty {
  background: #fafbfc;
  border-style: dashed !important;
  border-color: #cbd5e1 !important;
}

/* Link-tracking-off unlock card: bold lock badge */
.lt-lock {
  width: 56px;
  height: 56px;
  font-size: 28px;
}

