/* Portfolio Exposures - component styling shipped in the AEM clientlib so it is
   live independently of the frontend (vite) build. Keep in sync with
   ui.frontend/components/portfolio-exposures/src/App.css */

.portfolio-exposures-section,
.portfolio-exposure-tab,
.portfolio-exposure-tab .ix-breakdown-table {
    background-color: #f7f7f7;
    border-top: 0;
    border-bottom: 0;
}

.portfolio-exposure-tabs {
    border-top: 0;
    width: 100%;
    margin: 0;
    padding: 24px 0 16px;
}

.portfolio-exposure-tabs ix-component-heading,
.portfolio-exposure-tabs .ix-component-heading {
    font-family: 'Avenir Next LT Com', 'AvenirNextLTCom-Demi', Arial, sans-serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 36px;
    color: #000;
}

.portfolio-exposure-tab__caption {
  text-align: right;
  font-size: 0.85rem;
  color: #555;
  margin: 0 0 0.5rem;
}

.portfolio-exposure-tab__footer {
  font-size: 0.75rem;
  color: #555;
  margin: 0.75rem 0 0;
}

.portfolio-exposures-section .ix-breakdown-table-th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}

/* The measure label spanning PORTFOLIO/INDEX reads as a group, not as a column. */
.portfolio-exposures-section .ix-breakdown-table-th[scope='colgroup'] {
    text-transform: none;
    text-align: center;
    font-weight: 400;
    letter-spacing: 0;
    background: #f2f2f2;
}

/* Tab labels: match the target design (large, bold) rather than the small @ix default */
.portfolio-exposures-section [role="tab"] {
  font-size: 1.5rem;
  font-weight: 700;
}

.portfolio-exposure-tabs > div {
    border-top: 0;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.portfolio-exposures-section .ix-breakdown-table thead,
.portfolio-exposures-section .ix-breakdown-table tbody,
.portfolio-exposures-section .ix-breakdown-table tr,
.portfolio-exposures-section .ix-breakdown-table th,
.portfolio-exposures-section .ix-breakdown-table td {
    background: #f7f7f7;
}

.portfolio-exposures-section {
    position: relative;
    background-color: transparent;
}

.portfolio-exposures-section::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    background-color: #f7f7f7;
    z-index: -1;
}
