/* Isolated mobile layout for analyst dashboard — does not override user theme colors */
.analyst-dashboard-mobile .dashboard-report-wrap {
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
}

.analyst-dashboard .dashboard-report-slot .begin-report-area,
.analyst-dashboard .dashboard-report-slot > table {
  max-width: 100%;
}

/* Hide leaked page chrome in inline drill embeds */
.analyst-dashboard .dashboard-report-slot .leftPanel,
.analyst-dashboard .dashboard-report-slot td.leftPanel,
.analyst-dashboard .dashboard-report-slot table[cellpadding="5"] a.linkclass,
.analyst-dashboard .dashboard-report-slot table[cellpadding="5"] a.linkClass,
.analyst-dashboard .dashboard-report-slot table[cellpadding="5"] a.linkBack {
  display: none !important;
}

.analyst-dashboard-mobile .dashboard-report-slot,
.analyst-dashboard .dashboard-report-slot {
  width: 100%;
  max-width: 100%;
  min-height: 120px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.analyst-dashboard-mobile .dashboard-report-slot.responseFusionchart:not(.report-slot--loading):not(.responseFusionchart--loading),
.analyst-dashboard .dashboard-report-slot.responseFusionchart:not(.report-slot--loading):not(.responseFusionchart--loading) {
  height: auto;
}

.analyst-dashboard-mobile .dashboard-report-backbar {
  margin-bottom: 6px;
}

.analyst-dashboard-mobile .dashboard-report-backbar__btn {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}

.analyst-dashboard-mobile .mobile_categories_list {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0);
}

.analyst-dashboard-mobile .reports_categories a,
.analyst-dashboard-mobile .reports_categories li {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.analyst-dashboard-mobile .filter_upper select,
.analyst-dashboard-mobile .filter_upper input,
.analyst-dashboard-mobile .filter_upper button {
  min-height: 44px;
}

.analyst-dashboard-mobile .grid_reports_table {
  display: block;
  width: 100%;
}

.analyst-dashboard-mobile .grid_reports_table tr,
.analyst-dashboard-mobile .grid_reports_table td {
  display: block;
  width: 100% !important;
}

.analyst-dashboard-mobile .dashboard-report-slot table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

.analyst-dashboard-mobile .dashboard-report-slot table th:first-child,
.analyst-dashboard-mobile .dashboard-report-slot table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}

@media only screen and (max-width: 768px) {
  .analyst-dashboard-mobile .top_tabs_row {
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }

  .analyst-dashboard-mobile [id^="rpdid"],
  .analyst-dashboard-mobile [id^="rep"] {
    max-width: 100%;
  }
}

@media only screen and (max-width: 480px) {
  .analyst-dashboard-mobile .dashboard-report-slot {
    min-height: 100px;
  }

  .analyst-dashboard-mobile [style*="height: 700px"] {
    height: 420px !important;
    max-height: 70vh !important;
  }
}
