/**** styles per la pagina html ****/

html {
  background-color: transparent;
}

.finanza_container {
    padding: 0;
    margin:  auto;
    background-color: transparent !important;
    overflow: hidden;
    max-height: 860px;
    min-height: 860px;
    height: 860px;
    width: 100%;
    max-width: none;
}

.topBar {
    display: flex;
    justify-content: center;
    align-items: center;
}

.centerContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
}


p, li {
    color: DarkSlateGrey;
}


.finanza_form {
    margin: 0;
}

#finance_plot {
    margin: auto;
    overflow: hidden;
    padding: 0;
    border: 0;
    max-height: 440px;
    *min-height: 440px;
    min-width: 1200px;
    width: 100%;
    max-width: none;
    /*max-width: 1200px;*/
}


#finanza_table {
    display: inline-flex;
    flex-direction: column-reverse;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    border: 0;
    overflow: auto;
    max-height: 200px;
    min-height: 200px;
    /*min-width: 1200px;*/
    /*max-width: none;*/
    width:100%;
    margin: 5px;
    font-size:x-small;
}


#finanza_footer {
    text-align: center;
    font-style: italic;
    font-size: 12px;
    color: DarkSlateGrey;
    margin: auto;
}


/**** styles per la select ****/
.select-box {
    cursor: pointer;
    position : relative;
    max-width: 25em;
    margin: auto;
    width: 100%;
}

.select,
.label {
    color: DarkSlateGrey;
    display: block;
    text-align: center;
}

.select {
    width: 100%;
    position: absolute;
    top: 0;
    padding: 5px 0;
    opacity: 0;
    background: none transparent;
    border: none;
}

.label {
    display: inline-block;
    padding: 5px 10px;
    cursor: pointer;
    text-align: center;
}

.open .label::after {
    content: "▲";
    font-size: 14px;
}
.label::after {
    content: "▼";
    font-size: 14px;
    position: absolute;
    right: 0;
    top: 0;
    padding: 5px 15px;
    border-left: 5px solid #fff;
}

/**** styles per il plot ****/
svg {
    border: none;
    margin: auto;
    /*width: 80%;*/
    height: fit-content;
}

.rect {
    fill: rgba(0,0,0,0);
    stroke-width: 0;
    opacity: 0;
}

.grid line {
    stroke: LightGrey;
    stroke-width: 0.3;
}

.axis line {
    stroke: LightGrey;
    stroke-width: 0.3;
}

.axis path {
    stroke: rgba(0,0,0,0);
}

.grid path {
    stroke: rgba(0,0,0,0);
}

.axis text{
    fill: DarkSlateGrey;
}

.axis-label {
    font-size: 0.8em;
    text-anchor: middle;
    fill: DarkSlateGrey;
}

.mytitle {
    text-anchor: middle;
    font-size: 18px;
    font-style: normal;
    fill: DarkSlateGrey;
}

.DOT {
    opacity: 0.7;
}

.LBL {
    font-size: 0.6em;
}

.AVG, .AVGLabel {
    fill: DarkRed;
}

/*.CPF, .CPFLabel {*/
/*  fill: #4d0099;*/
/*}*/

.ETF, .ETFLabel, .Azioni, .AzioniLabel, .BTP, .BTPLabel {
    fill: DarkSlateGrey;
}

.AzioniPeso, .AzioniPesoLabel , .ETFPeso, .ETFPesoLabel, .BTPPeso, .BTPPesoLabel {
    fill: Navy;
}

.MARKET, .MARKETLabel {
    fill: Red;
}

.EF_higher {
    fill: none;
    stroke: Navy;
    opacity: 0.7;
    stroke-width: 1.5;
}

.EF_lower {
    fill: none;
    stroke: Grey;
    opacity: 0.7;
    stroke-width: 1;
}

.YC {
    fill: none;
    stroke: Red;
    opacity: 0.7;
    stroke-width: 1;
}
/**** styles per il tooltip ****/

#tooltip_text {
    font-size: 10px;
    font-weight: 300;
    text-anchor: start;
    fill: DarkSlateGrey;
}


.tooltip_background {
    fill: LightGrey;
    rx: 6px;
    ry: 6px;
    opacity: 0.75;

    /*heigth: 4em;*/
}

#tooltip_title {
    font-weight: 600;
}

#tooltip_l1, #tooltip_l2, #tooltip_l3, #tooltip_l4 {
    font-weight: 300;
}

.tooltip {
    opacity: 1; !important
}

/*** Styles for table  **/

#my_table thead td { position: sticky; top: 0; z-index: 1; }


table {
    /*table-layout: fixed;*/
    width: 100%;
    border-collapse: collapse;
    border: none;
    word-break: normal;
    font-size: 11px;
    margin: auto;
    /*background: transparent;*/
}

tbody {
    height: 180px;
   /* overflow: scroll;
    display: block; */
}

thead th {
    position: sticky;
    overflow: auto;
    top: 0;
    z-index: 1;
    border: 1px solid LightGrey;
    height: 30px;
    font-weight: 600;
    color: DarkSlateGrey;
    padding: 5px;
    background-color: LightGrey;
}

tbody td {
    border: 1px solid LightGrey;
    height: 25px;
    font-weight: 300;
    color: DarkSlateGrey;
    padding: 5px;
}

.tdn_ETFP , .tdn_AzioniP, .tdn_BTPP {
    color: Navy
}
