/* Portfolio report modal and its error recovery. */
.excel-powerbi{display:inline-flex;align-items:center;gap:8px;background:#203a2f;color:#fff;padding:10px 13px;font-size:12px;font-weight:600}
.excel-powerbi:hover{background:#355343}
.model-report-viewer {
  width: min(96vw, 1360px);
  height: min(92dvh, calc(min(96vw, 1360px) * 9 / 16 + 48px));
  max-width: none;
  max-height: none;
  overflow: hidden;
  margin: auto;
  padding: 0;
  border: 1px solid #9eb3a7;
  border-radius: 18px;
  background: #17293c;
  color: #1c3026;
  box-shadow: 0 16px 72px #0b1d1980;
  -webkit-user-select: none;
  user-select: none;
}
.model-report-viewer[open] { display: flex; flex-direction: column; }
.model-report-viewer::backdrop { background: #0c1d18bd; }
html.model-report-open { overflow: hidden; }
.model-report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 12px;
  padding: 5px 10px 5px 15px;
  background: #eff5ea;
  flex: none;
}
.model-report-heading h2 {
  margin: 0;
  font: 600 14px/1.4 var(--sans);
}
.model-report-heading button, [data-modal-filters] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #1e3829;
  font: 600 12px/1 var(--sans);
  white-space: nowrap;
}
.model-report-heading button:hover, [data-modal-filters]:hover, [data-modal-filters][aria-pressed=true] {
  border-color: #b9cdbc;
  background: #e0ecdf;
}
/* Keep the slotted Filters control within the native footer link row. */
[data-modal-filters] {
  box-sizing: border-box;
  min-height: 17px;
  height: 17px;
  padding-block: 0;
}
[data-modal-filters]:disabled { opacity: .5; }
.model-report-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  isolation: isolate;
}
.model-report-viewport powerbi-shell {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  --pbi-radius: 0px;
}
.model-report-viewport iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.model-report-feedback[hidden] { display: none; }
.model-report-feedback {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-content: center;
  padding: 24px;
  text-align: center;
  background: #edf4e9;
}
.model-report-feedback p { margin: 0 0 16px; font: 600 14px/1.5 var(--sans); }
.model-report-recovery { display: flex; align-items: center; justify-content: center; gap: 8px; }
.model-report-recovery :is(button,a) {
  padding: 8px 12px;
  border: 1px solid #7c9a86;
  border-radius: 5px;
  background: #f8fbf7;
  color: #223f31;
  font: 600 12px var(--sans);
  text-decoration: none;
}
.model-report-recovery :is(button,a):hover { background: #daeadc; }
@media (max-width: 680px) {
  .model-report-viewer {
    width: calc(100vw - 16px);
    height: 92dvh;
    border-radius: 13px;
  }
  .model-report-heading { padding: 4px 6px 4px 10px; }
  .model-report-heading h2 { font-size: 13px; }
  .model-report-heading button { min-height: 36px; }
  [data-modal-filters] { padding-inline: 6px; }
  .model-report-filter-label { display: none; }
}
@media (max-width: 370px) {
  .model-report-heading button { width: 36px; }
  .model-report-close-label { display: none; }
}
