:host {

    --oma-vihrea: rgb(29,202,122); /* #1dca7a */
    --oma-vihrea-acc: rgb(15,133,84); /* #0f8554 */
    --oma-valkoinen: rgb(255,255,255);
    --oma-musta: rgb(0,0,0);  /* #000000  */
    --oma-vaaleanvihrea: rgb(210,235,220); /* #d2ebdc */
    --oma-kulta: rgb(215,195,130); /* #d7c382 */

    --oma-vihrea2: rgb(180,220,190); /* #b4dcbe */
    --oma-vihrea3: rgb(130,200,155); /* #82c89b */
    --oma-mustau: rgb(0,0,9); /* #000009 */
    --oma-harmaa10: rgb(130,130,130); /* #828282 */
    --oma-harmaa7: rgb(170,170,170); /* #aaaaaa */
    --oma-harmaa1: rgb(245,245,245); /* #f5f5f5 */

    --oma-punainen: #A43000;

    --oma-musta-teksti: #191919;
    --oma-musta-valiotsikko: #191919;

    --oma--fds-color-primary-500: #006600;



    --fds-color-perf-negative-c: var( --oma-punainen );
    --fds-color-negative-c: var( --oma-punainen );

    --fds-color-perf-positive-c: var( --oma-vihrea);
    --fds-color-positive-c: var( --oma-vihrea);

    --fds-color-chart-11: var( --oma-vaaleanvihrea) !important ;    
    --fds-color-chart-1: var( --oma-vihrea) !important ;    
    --fds-color-chart-2: var( --oma-musta) !important ;
    --fds-color-chart-3: var( --oma-kulta) !important; 
    --fds-color-chart-4: var( --oma-vaaleanvihrea) !important;
    --fds-color-chart-5: var( --oma-harmaa10) !important;
    
    
    
    --fds-color-chart-11-b: var( --oma-vaaleanvihrea) !important ;    
    --fds-color-chart-1-b: var( --oma-vihrea) !important ;    
    --fds-color-chart-2-b: var( --oma-musta) !important ;
    --fds-color-chart-3-b: var( --oma-kulta) !important; 
    --fds-color-chart-4-b: var( --oma-vaaleanvihrea) !important;
    --fds-color-chart-5-b: var( --oma-harmaa10) !important;


    --fds-color-base-700: var( --oma-musta ) !important;
    --fds-font-family: "AvenirPro55Roman","Helvetica","Arial",sans-serif !important;

}

.fds-table__body tr:nth-child(n):hover
 {
    background-color: var( --oma-vaaleanvihrea) !important;
}

.fds-table__header tr > th {
    border-bottom: 2px solid var(--oma-vaaleanvihrea) !important;
}
.fds-table__body tr > th, td {
    border-bottom: 1px solid var(--oma-vaaleanvihrea) !important;     
}
.fds-table__col-item--secondary {
    color: var(--oma-musta) !important;
}
.fds-table__body, tr, th, th:first-child {
    color: var(--oma-musta-teksti) !important;
    ;
}


/* chart button group*/
.fds-ui-button-group {
    border-color: var(--oma-vihrea) !important;
}

.fds-ui-button-group__item {
    color: var(--oma-musta) !important;
    border: 2px solid #fff !important;
}

.fds-ui-button-group__item--active {  
    color: var(--oma-musta) !important;
    background-color: var(--oma-valkoinen) !important;
    border-color: var(--oma-vihrea) !important;
    border: solid 2px var(--oma-vihrea) !important;
    border-radius: 15px; 
}

.fds-ui-button-group__item:not(.fds-ui-button-group__item--active):not(.fds-ui-button-group__item[disabled]):hover {
    background-color: var(--oma-vihrea) !important;
    border: solid 2px var(--oma-vihrea) !important;
    border-radius: 15px; 
}
.fds-ui-button-group__item:not(.fds-ui-button-group__item--active):not(.fds-ui-button-group__item[disabled]):focus {
    background-color:var(--oma-vihrea) !important;
}


/* header */
.fds-factsheet-header .fds-performance-list .fds-ui-value {
  margin-left: 30px;
}
.fds-ui-asset-class-badge--fund {
  background: var(--oma-vihrea) !important;
}


.fds-table__col-item--secondary {
    margin-left: 40px;
}

.fds-ui-name a {
    margin-left: 20px;
}

.fds-table__header-item--primary,
.fds-table__header-item--secondary {
    margin-left: 40px;
}


.fds-ui-link.fds-value {
    text-decoration: none !important;
    cursor: default !important; 
}

.fds-ui-link.fds-unit,
.fds-ui-link.fds-value {
    text-decoration: none !important;
    cursor: default !important; 
}


.fds-morningstar-fund-sustainability-rating__table  tbody tr:nth-child(3) {
    display: none;    
}

.fds-ui-value-bar--positive {
    background: var(--oma-vihrea) !important;
}

.fds-ui-value .fds-value {
    color: var(--oma-musta-teksti) !important;    
}
.fds-value-zero--negative {
    color: var(--oma-punainen) !important;
}
.afds-value-zero--positive {
    color: var(--oma-vihrea) !important;
}
    

.fds-widget {    
    font-family: "AvenirPro55Roman","Helvetica","Arial",sans-serif !important;
}

.fds-badge-quality-RLT {    
    display: none !important;
}

.fds-ui-footnotes {
        color: var(--oma-musta-teksti) !important;
}


.highcharts-crosshair-thin {    
    stroke: var(--oma-musta-teksti) !important;
}


.fds-factsheet-header__subheader-list div:not(:first-child) {
    display: none !important;
}

.fds-factsheet-header__subheader-list-item:not(:last-child)::after {
    border-right: none !important;
}

.fds-ui-copy-to-clipboard {
    display: none !important;
}

.fds-factsheet-header__footer li:nth-child(1),
.fds-factsheet-header__footer li:nth-child(2) {
    display: none !important;
    
}

.fds-table__header-item--primary {
    font-size: 14px !important;
}



.fds-morningstar-fund-base-data__table  tbody tr:nth-child(9),
.fds-morningstar-fund-base-data__table  tbody tr:nth-child(10),
.fds-morningstar-fund-base-data__table  tbody tr:nth-child(11),
.fds-morningstar-fund-base-data__table  tbody tr:nth-child(12),
.fds-morningstar-fund-base-data__table  tbody tr:nth-child(13) {
    display: none !important;
}


.fds-morningstar-fund-fees-and-expenses__table  tbody tr:nth-child(6),
.fds-morningstar-fund-fees-and-expenses__table  tbody tr:nth-child(7),
.fds-morningstar-fund-fees-and-expenses__table tbody tr:nth-child(n+10) {
    display: none !important;
}

.fds-morningstar-fund-category__table  tbody tr:nth-child(1),
.fds-morningstar-fund-category__table  tbody tr:nth-child(2),
.fds-morningstar-fund-category__table  tbody tr:nth-child(4),
.fds-morningstar-fund-category__table  tbody tr:nth-child(5),
.fds-morningstar-fund-category__table  tbody tr:nth-child(6),
.fds-morningstar-fund-category__table  tbody tr:nth-child(7),
.fds-morningstar-fund-category__table  tbody tr:nth-child(10),
.fds-morningstar-fund-category__table  tbody tr:nth-child(11){
    display: none !important;
}

.fds-morningstar-fund-performance-key-figures .fds-morningstar-fund-performance-key-figures__label > sup {
    display: none !important;
}

.fds-morningstar-fund-performance-key-figures .fds-ui-footnotes li:nth-child(3)  {
    display: none !important;
}


.mi-fund-class-list-header {
    margin-top: 3rem;
}


.fundlist-type-select-button.active {
    box-shadow: inset 0 0 0 .15rem #1dca7a,.5rem .5rem 1.5rem rgba(83,128,105,.1);    
    background-color: #1dca7a !important;
}

.fund-compare-button,
.fundlist-type-select-button {        
    box-sizing: border-box;
    border: .125rem solid #1dca7a !important;
    background-color: #fff;
    box-shadow: inset 0 0 0 0rem #1dca7a,.5rem .5rem 1.5rem rgba(83,128,105,.1);
    border-radius: 0.5rem;        
    cursor: pointer;    
    padding: .325rem 1rem;
    margin-bottom: 10px;
}


.fund-compare-button[disabled] {
    border: .125rem solid #828282 !important;
    color: #000;
    cursor: default;
}

.fund-compare-button:not(.fund-compare-button[disabled]):hover,
.fundlist-type-select-button:focus {
    color: #000;
    background-color: #fff;
    box-shadow: inset 0 0 0 .15rem #1dca7a,.5rem .5rem 1.5rem rgba(83,128,105,.1);
    text-decoration: underline;    
    text-decoration-thickness: auto;
    text-decoration-thickness: .0938rem;
    text-underline-offset: .15rem;
}

.fundlist-type-select-button:hover {
    color: #000 !important;
    background-color: #fff !important;
    box-shadow: inset 0 0 0 .15rem #1dca7a,.5rem .5rem 1.5rem rgba(83,128,105,.1);
    text-decoration: underline;
    text-decoration-thickness: auto;
    text-decoration-thickness: .0938rem;
    text-underline-offset: .15rem;
}

.fds-table__header--sortable:hover .fds-table__sort-icon::before,
.fds-table__header--sortable:focus .fds-table__sort-icon::before,
.fds-table__sort-icon--asc::before,
.fds-table__sort-icon--desc::before {
    background-color: var(--oma-vihrea) !important;
}

.fds-table__header--sortable:hover .fds-table__header-item--primary,
.fds-table__header--sortable:focus .fds-table__header-item--primary {
  color: var(--oma-vihrea) !important;
}

.fds-ui-link:hover, .fds-ui-link:active {
    color: var(--oma-vihrea) !important;
}


.fds-morningstar-fund-screener-results .fds-table__header tr > :nth-child(5) {
    width: 3rem !important;
}

.fds-morningstar-fund-screener-results .fds-table__header tr > :nth-child(6) {
    width: 2rem !important;
}

.fds-morningstar-fund-screener-results .fds-table__header tr > :nth-child(7) {
    width: 1rem !important;
}


.fds-morningstar-fund-screener-results .fds-table__header tr > :nth-child(1) {
    width: 10rem !important;
}

.fds-morningstar-fund-screener-results .fds-table__header tr > :nth-child(2),
.fds-morningstar-fund-screener-results .fds-table__header tr > :nth-child(3){
    width: 1.5rem !important;
}

.fds-morningstar-fund-screener-results .fds-table__header tr > :nth-child(4){
    width: 1rem !important;
}


.fds-ui-rating-stars { 
  _justify-content: flex-end;
  padding-left: 80px !important;
}


.mi-screen-reader-only {
	border: 0;
	clip: rect(-1px -1px -1px -1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
	word-wrap: normal;
}


/*
.fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(2),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(2),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(2){
    display:table-cell !important;
}
*/

/*
.fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(2),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(2),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(2){
    display:none !important;
}
@container (inline-size >= 1024px){
    .fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(2),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(2),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(2){
        display:table-cell !important;
    }
}
.fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(4),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(4),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(4){
    display:none;
}
@container (inline-size >= 576px){
    .fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(4),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(4),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(4){
        display:table-cell
    }
}
.fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(5),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(5),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(5){
    display:none
}
@container (inline-size >= 768px){
    .fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(5),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(5),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(5){
        display:table-cell
    }
}
.fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(6),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(6),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(6){
    display:none
}
@container (inline-size >= 992px){
    .fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(6),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(6),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(6){
        display:table-cell
    }
}
.fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(7),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(7),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(7){
    display:none
}
@container (inline-size >= 464px){
    .fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(7),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(7),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(7){
        display:table-cell
    }
}

*/



.fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(2),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(2),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(2){
    display:none !important;
}
@container (inline-size >= 1124px){
    .fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(2),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(2),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(2){
        display:table-cell !important;
    }
}


.fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(7),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(7),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(7){
    display:none !important;
}
@container (inline-size >= 576px){
    .fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(7),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(7),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(7){
        display:table-cell !important;
    }
}



.fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(3),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(3),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(3){
    display:none !important;
}
@container (inline-size >= 464px){
    .fds-morningstar-fund-screener-results .fds-table__header tr>*:nth-child(3),.fds-morningstar-fund-screener-results .fds-table__body tr>*:nth-child(3),.fds-morningstar-fund-screener-results .fds-table__footer tr>*:nth-child(3){
        display:table-cell !important;
    }
}