:root {
    --main-color: rgb(40, 65, 101);
    --complement-color: rgb(215, 190, 154);
    --grey: rgb(100, 100, 100);
}

.widget-container {
    width: 100%;
    max-width: 1200px;
}

.copyright {
    font-size: 0.8rem;
}

/* Buttons */

.choose-system-container {
    position: relative;
    padding-bottom: 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}

@media screen and (max-width: 1070px) {
    .choose-system-container {
        justify-content: flex-start;
    }
}

.choose-system-container h4 {
    margin: 0;
    padding-bottom: 0.5em;
}

.choose-system-container .investing {
    border-radius: 8px;
    padding: 0.5em;
    width: 31%;
    min-width: 300px;
    margin-top: 0.5em;
}

.choose-system-container .investing:not(:last-child) {
    margin-right: 0.5em;
}

.choose-system-container .offensive {
    border: 1px solid var(--main-color);
}

.choose-system-container .balanced {
    border: 1px solid var(--complement-color);
}

.choose-system-container .defensive {
    border: 1px solid var(--grey);
}

.choose-system-container button {
    height: 25px;
    border-radius: 6px;
    background: white;
    font-weight: 600;
    font-family: sans-serif;
    padding: 0.2em 0.5em;
    margin-right: 0.3em;
    cursor: pointer;
}

.choose-system-container button.btn-climb-green {
    border: 2px solid var(--main-color);
    color: var(--main-color);
}

.choose-system-container button.btn-collect-yellow {
    border: 2px solid var(--complement-color);
    color: var(--complement-color);
}

.choose-system-container button.btn-resist-grey {
    border: 2px solid var(--grey);
    color: var(--grey);
}

.btn-climb-green-darker {
    background: var(--main-color) !important;
    color: white !important;
}

.btn-collect-yellow-darker {
    background: var(--complement-color) !important;
    color: white !important;
}

.btn-resist-grey-darker {
    background: var(--grey) !important;
    color: white !important;
}


/* Scroll problem */

*::-webkit-scrollbar {
    height: 4px !important;
  }
  
  *::-webkit-scrollbar-track {
    background: white !important;
  }
  
  *::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 6px;
    border: none !important;
  }



body {
    scrollbar-width: thin !important;
    scrollbar-color: var(--main-color) transparent !important;
}

html {
    font-family: 'Open Sans', sans-serif;
}

body {
    margin: 0 auto;
    padding: 2em;
}

/* Performance */

@media screen and (max-width: 600px) {
    .svg-container-ma h4{
        display: none;
    }
}

.table-container,
.table-container-overview-ma,
.svg-container {
    border-radius: 8px;
    border: 1px solid rgba(40, 65, 101, 0.3);
    width: 100%;
    box-sizing: border-box;
    padding: 1em;
}

.custom-select-year {
    position: absolute;
    right: 4%;
    top: 2%;
    color: var(--main-color);
}

.custom-select-year button {
    height: 26px;
    width: 46px;
    border-bottom-left-radius: 13px;
    border-bottom-right-radius: 13px;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
    font-size: 0.8rem;
    background: rgba(40, 65, 101, 0.2);
    border: none;
    transition: 0.3s;
    color: var(--main-color);
}

.custom-select-year button:hover {
    color: white;
    background: var(--main-color);
}

.darker {
    background: var(--main-color) !important;
    color: white !important;
}

.svg-container {
    width: 100%;
    max-width: 1200px;
    position: relative;
}

.svg-container svg {
    width: 100%;
    min-height: 400px;
}

.name-x-axis {
    position: absolute;
    left: calc(50% - 15px);
    bottom: 3%;
    color: var(--main-color);
    font-weight: 600;
}

.name-y-axis {
    position: absolute;
    top: calc(50% - 15px);
    color: var(--main-color);
    transform: rotate(-90deg);
    font-weight: 600;
}

.date-line-short,
.y-shortline {
    stroke: var(--main-color);
    stroke-width: 2;
}

.date-line-long,
.y-longline {
    stroke: var(--grey);
    stroke-width: 0.4;
}

.path {
    stroke-width: 1;
    fill: transparent;
}

.pathP {
    stroke: var(--main-color);
}

.pathB {
    stroke: var(--complement-color);
}

.container-legends {
    position: absolute;
    top: 7%;
    left: 11%;
}

.container-legends > div {
    display: inline-block;
    margin-right: 1em;
}

.legend-system {
    font-size: 0.8rem;
}

.square-green,
.square-yellow,
.square-grey,
.square-orange,
.square-red,
.square-black {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 4px;
    border-radius: 3px;
}

.square-green {
    background: var(--main-color);
}

.square-yellow {
    background: var(--complement-color);
}

.square-grey {
    background: var(--grey);
}

.year-return,
.year-x-axis,
.date-text,
.quant-text {
    position: absolute;
    color: var(--main-color);
}

.tooltip-svg {
    position: absolute;
    display: none;
    padding: 0.4em;
    width: max-content;
    font-size: 0.7rem;
    border-radius: 4px;
    background: white;
    z-index: 100;
}

.tooltip-svg > div {
    display: table-row;
}

.tooltip-svg > div span {
    display: table-cell;
}

.tooltip-svg > div span:nth-child(2n) {
    font-weight: 600;
}

.tooltip-green {
    border: 1px solid var(--main-color);
    border-top: 3px solid var(--main-color);
}

.tooltip-yellow {
    border: 1px solid var(--complement-color);
    border-top: 3px solid var(--complement-color);
}

.rect-green {
    fill: var(--main-color);
}

.rect-yellow {
    fill: var(--complement-color);
}

.loader {
    display: none;
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    margin: auto;
    border: 6px solid #EAF0F6;
    border-radius: 50%;
    border-top: 6px solid var(--main-color);
    width: 40px;
    height: 40px;
    animation: spinner 1s linear infinite;
  }
  
  @keyframes spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  @media screen and (min-width: 1101px) {
    .date-text,
    .year-x-axis {
        font-size: 0.8rem;
    }

    .year-return {
        font-size: 0.9rem;
    }

    .name-x-axis,
    .name-y-axis {
        font-size: 0.9rem;
    }

    .quant-text {
        font-size: 0.9rem;
    }
    .custom-select-year span {
        font-size: 1rem;
    }
  }

  @media screen and (max-width: 1100px) {
    .key-indicator span:last-child {
        font-size: 1.1rem;
    }
    .key-indicator span:first-child {
        font-size: 0.9rem;
    }
    .date-text {
        font-size: 0.8rem;
    }
    .year-return,
    .year-x-axis {
        font-size: 0.8rem;
    }
    .name-x-axis,
    .name-y-axis {
        font-size: 0.8rem;
    }
    .quant-text {
        font-size: 0.8rem;
    }
    .custom-select-year span {
        font-size: 0.9rem;
    }

  }

  @media screen and (max-width: 900px) {
    .key-indicator span:last-child {
        font-size: 1rem;
    }
    .key-indicator span:first-child {
        font-size: 0.8rem;
    }
    .date-text,
    .year-x-axis {
        font-size: 0.7rem;
    }
    .name-x-axis,
    .name-y-axis {
        font-size: 0.7rem;
    }
    .quant-text {
        font-size: 0.7rem;
    }
    .custom-select-year button {
        height: 22px;
        width: 38px;
        border-bottom-left-radius: 11px;
        border-bottom-right-radius: 11px;
        border-top-left-radius: 11px;
        border-top-right-radius: 11px;
        font-size: 0.75rem;
    }
    .legend-system,
    .legend-benchmark {
         font-size: 0.8rem;
    }
    .custom-select-year span {
        font-size: 0.8rem;
    }
  }
  @media screen and (max-width: 730px) {
    
    .year-return,
    .year-x-axis {
        font-size: 0.7rem;
    }
  }

  @media screen and (max-width: 679px) {
      .key-indicators {
          display: none;
      }
      .quant-text {
        font-size: 0.6rem;
      }
      .date-text {
          font-size: 0.6rem;
      }
      .year-x-axis {
        font-size: 0.55rem;
    }
    .custom-select-year button {
        height: 20px;
        width: 38px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
        font-size: 0.7rem;
    }
    .legend-system,
    .legend-benchmark {
        font-size: 0.7rem;
    }
    .custom-select-year span {
        font-size: 0.7rem;
    }
}

.circle-green {
    fill: var(--main-color);
    opacity: 0;
}

.circle-green:hover {
    opacity: 1;
}

.circle-yellow {
    fill: var(--complement-color);
    opacity: 0;
}

.circle-yellow:hover {
    opacity: 1;
}

.circle-grey {
    fill: var(--grey);
    opacity: 0;
}

.circle-grey:hover {
    opacity: 1;
}

.last-data-circle {
    opacity: 1 !important;
}

span.quant-text {
    display: inline-block;
    width: 2em;
    text-align: right;
}

/* Overview table */

.zoho-table-overview td,
.zoho-table-overview th {
    line-height: 1.1rem;
    font-size: 0.8rem;
    border: 2px solid white !important;
    text-transform: uppercase
}

.table-container-overview-ma {
    width: 100%;
    max-width: 1200px;
    overflow-x: auto;
    border-radius: 8px;
    box-sizing: border-box;
    padding: 1em;
    background: white;
}

.table-container-overview-ma .zoho-table-overview tr:nth-child(4) td,
.table-container-overview-ma .zoho-table-overview tr:nth-child(5) td {
    background: rgba(215, 190, 154, 0.08)!important;
}

.table-container-overview-ma .zoho-table-overview tr:nth-child(4) td:first-child,
.table-container-overview-ma .zoho-table-overview tr:nth-child(5) td:first-child {
    background: var(--complement-color) !important;
}

.table-container-overview-ma .zoho-table-overview tr:nth-child(6) td,
.table-container-overview-ma .zoho-table-overview tr:nth-child(7) td {
    background: rgba(100, 100, 100, 0.08) !important;
}

.table-container-overview-ma .zoho-table-overview tr:nth-child(6) td:first-child,
.table-container-overview-ma .zoho-table-overview tr:nth-child(7) td:first-child {
    background: var(--grey)!important;
}

.zoho-table-overview {
    width: 100%;
    border-collapse: collapse;
}

.zoho-table-overview th,
.zoho-table-overview td {
    transition: 0.2s;
}

.zoho-table-overview td:first-child {
    color: white;
    font-weight: 600;
}

.table-container-overview-ma .zoho-table-overview tr td:not(:first-child) {
    background:rgba(40, 65, 101, 0.1);
}

.table-container-overview-ma .zoho-table-overview tr td:first-child {
    background: var(--main-color);
    white-space: nowrap;
}

.zoho-table-overview tr:first-child th:first-child {
    background:white;
    color: var(--main-color);
}

.zoho-table-overview th {
    padding: 0em 1em;
    height: 28px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    background: var(--main-color);
    text-align: center;
    white-space: nowrap;
}

.zoho-table-overview td {
    height: 28px;
    padding: 0em 1em;
    text-align: center;
}

.positive-ytd {
    color: var(--main-color);
}

.negative-ytd {
    color: var(--grey);
}

.table-container-overview-ma .zoho-table-overview tr > td:not(:first-child):hover {
    font-weight: bold;
    font-size: 0.9rem;
} 

.mouseover {
    background: rgba(40, 65, 101, 0.5) !important;
}

/* Key performance indicators */

.key-indicators {
    display: flex;
    justify-content: space-between;
    padding: 1em 1.2em;
    margin-bottom: 2em;
    border-radius: 8px;
    background: var(--complement-color);
}

.key-indicator span:last-child {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--grey);
}

.key-indicators-mobile {
    display: table;
    border-collapse: collapse;
    margin: 2em 0;
}

.key-indicators-mobile > div {
    display: table-row;
    width: 100%;
    line-height: 2;
}

.key-indicators-mobile > div:not(:last-child) {
    border-bottom: 1px solid grey;
}

.key-indicator-mobile div:first-child,
.key-indicator-mobile div:last-child {
    display: table-cell;
    width: 50vw;
    color: var(--grey);
}

.key-indicator-mobile div:last-child {
    text-align: right;
}

@media screen and (max-width: 1100px) {
    .key-indicator span:last-child {
        font-size: 1.1rem;
    }
    .key-indicator span:first-child {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 900px) {
    .key-indicator span:last-child {
        font-size: 1rem;
    }
    .key-indicator span:first-child {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 730px) {
    .key-indicator span:last-child {
        font-size: 0.9rem;
    }
    .key-indicator span:first-child {
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 679px) {
    .key-indicators {
        display: none;
    }
}

@media screen and (min-width: 680px) {
    .key-indicators-mobile {
        display: none;
    }
}

/* Monthly return */

.monthly-return {
    overflow: auto;
}

.table-container h4 {
    padding: 0;
    margin: 0;
}

.zoho-table {
    width: 100%;
    text-align: center;
}

.svg-container {
    width: 100%;
    position: relative;
    margin-top: 2em;
}

.svg-container svg {
    width: 100%;
    min-height: 400px;
}

.zoho-table th {
    font-weight: bold;
    font-size: 1rem;
    height: 28px;
    background: var(--main-color);
    color: white;
    padding: 0 0.6em;
}

.zoho-table th:first-child {
    background: white;
}

.zoho-table td {
    height: 28px;
    font-size: 0.9rem;
    padding: 0 0.6em;
}

.zoho-table td:first-child {
    background: var(--main-color);
    font-size: 1rem;
    font-weight: bold;
    color: white;
}

.monthly-positive {
    font-weight: bold;
    color: var(--main-color);
}

.monthly-negative {
    color: var(--grey);
}

/* Signal table */

.table-container-signal {
    overflow-y: auto;
}

.zoho-table-signal {
    line-height: 1.7em;
    text-align: center;
    white-space: nowrap;
    width: 100%;
}

.zoho-table-signal th {
    padding: 0.1em 0.6em;
    background: var(--main-color);
    color: white;
}

.zoho-table-signal td {
    padding: 0.1em 0.6em;
    font-size: 0.9rem;
}

.copy-clipboard {
    display: inline-block;
    position: relative;
    background-blend-mode: overlay;
    background-size: 15px 15px;
    height: 15px;
    width: 15px;
    margin-left: 4px;
    cursor: pointer;
}

.buy-row .copy-clipboard {
    background: url('/copy-solid.svg') rgba(40, 65, 101, 0.03);
}

.sell-row .copy-clipboard {
    background: url('/copy-solid.svg') rgba(215, 190, 154, 0.03);
}

.copy-notification {
    position: absolute;
    width: 80px;
    background: var(--main-color);
    color: white;
    border-radius: 6px;
    transition: 0.3s;
    z-index: 100;
}

.buy-row {
    background: rgba(40, 65, 101, 0.1);
}

.sell-row {
    background: rgba(215, 190, 154, 0.1);
}

.container-signals-mobile {
    padding: 0.5em;
    border-radius: 12px;
    margin-bottom: 1em;
    background: rgba(40, 65, 101, 0.05);
}

.signal-price {
    display: inline-block;
    padding-left: 3em;
    color: var(--grey);
    font-weight: 700;
}

.signal-stock {
    font-weight: 600;
}

.signal-order {
    display: inline-block;
    font-weight: 700;
    padding-bottom: 0.5em;
}

.signal-order-buy {
    color: var(--main-color);   
}

.signal-order-sell {
    color: var(--complement-color);
}

@media screen and (max-width: 747px) {
    .zoho-table-signal {
        display: none;
    }
}

@media screen and (min-width: 748px) {
    .container-signals-mobile {
        display: none;
    }
}













