@import url('https://fonts.googleapis.com/css2?family=Genos&family=Noto+Serif&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato&display=swap');


body {

    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    height: 100vh;
}

#filter-by-budget-symbol:hover + .filter-by-budget {

    display: block;

}

#myInput {
    position:absolute;
    bottom:5px;
    right:0;
    width:150px;
}

.sub-header {
    position:sticky;
    top:70px;
    z-index:2;
}

.offerta-fatturata {

    color: green !important;

    font-weight: 600;

}

.grid-table {

    display: grid;
    grid-template-columns: 0.3fr 8fr 0.3fr;
    grid-template-rows: 70px 70px 12fr 40px;
    grid-gap: 0em;
    row-gap: 0em;

}

.grid-table > * {

    background-color: white;
    color: black;

}

.grid-login {

    display: grid;
    height: 100%;
    grid-template-columns: 1fr 0.8fr 1fr;
    grid-template-rows: 0.5fr 0.6fr 0.5fr;

}

.login-top-margin, .login-bottom-margin {

    grid-column: 1/4;
    position: relative;
    margin:auto;
    font-size:25px;

}

.input-appears {
    display:inline-block;
    padding-left:25px;
    padding-right:25px;
}
 
 .login-container {
    background-color: rgba(12, 132, 201, 0.7);
    color:white;
    box-shadow: 0px 3px 6px #919090;
    font-family: 'Lato', sans-serif;
    font-size: calc(8px + 0.8vw);
 }

 #login-form {

    position: absolute;
    margin:0;
    top:50%;
    left:50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
 }


 #user-info {

    font-size: calc(9px + 0.7vw);

 }

 #title {

    font-size: calc(12px + 1vw);

 }

 .short-logout-symbol {

    display: none;

 }

 .logo-small {

    line-height: 1px;
    vertical-align:bottom;
    font-size:16px;

 }

 .logo-big {

    line-height: 25px;
    vertical-align:bottom;
    font-size:35px;

 }

.header {

    font-family: 'Genos', sans-serif;
    grid-template-columns: 3fr 7fr 3fr;
    display: grid;
    grid-column: 1 / 4;
    background-color: white;
    position: sticky;
    top:0;
    box-shadow: 0px 2px 6px #919090;
    z-index: 3;

}

.header div {

    text-align:center;
    height: 70px;
    line-height: 70px;
    font-size: 20px;

}

.header div a {

    text-decoration: none;

}

.lateral-left {

    grid-column: 1 / 2;

}
.lateral-right {

    grid-column: 3 / 4;

}

.table {

    font-size: 12px;
    grid-template-columns: 1fr;
    grid-column: 2/3;
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 0em;
    box-shadow: 3px 3px 5px #919090, -0.5px -0.5px 5px #919090;
    z-index: 1;

}

.table-title {
    position:relative;
    margin:auto;
}

.table > * {

    background-color: white;
    border-radius: 0.1em;
    color:black;

}
.footer {

    grid-column: 1/ 4 ;
    background-color: white;

}

.table-row {

    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr 0.7fr 0.7fr 0.8fr 0.7fr 0.6fr 0.8fr 0.8fr 1fr 1fr 0.5fr 0.5fr;
    grid-template-rows: auto;  

}

.table-row .table-data .cell-text-short {
    display: none;
}

.table-row:hover {

    font-weight: 600;

}

.table-header-row {

    background-color:#0c84c9!important;
    width:100%;
    position:sticky;
    top: 140px;
    z-index:1;
    box-shadow: 0px 1px 6px #919090;
    color: white;
    font-weight: 800;
    text-shadow: 2px 2px 5px #000000;
    padding-top:5px;
    padding-bottom:5px;

}

.table-footer-row {

    height: 40px;
    line-height: 40px;
    background-color: white!important;
    /*grid-template-columns: 1.5fr 3fr 1fr 0.7fr 0.7fr 0.7fr 0.7fr 1fr 1fr 1fr 1fr;*/
    text-align: center;
    border-top: 1px solid black;
    font-weight:800;


}

#partial-footer {
    border-bottom: 0;
    height: 25px;
    line-height: 30px;
}

#of-which-footer {
    border-top: 0;
    height: 25px;
    line-height: 30px;
    font-weight: normal;
}

.table-row:nth-child(even) {

    background-color:rgba(237, 230, 228, 0.7);

}

.table-row:nth-child(even):hover {

    background-color:rgba(237, 230, 228, 1);

}

.table-row-colored:nth-child(even) {

    background-color:#bfd685;

}

.table-row-colored:nth-child(even):hover {

    background-color:#e6ffa6;

}

.table-data {

    grid-column: span 1;
    text-align:center;
    line-height:30px;
    position:relative;
    margin:auto;
    width: 100%;
    height: 100%;

}

.advertiser-data {
    text-align:left;
    margin-left:1rem;
}

.table-input, .tooltip-input {

    display:none;
    width:60px;
    font-size:16px;
    box-sizing:border-box;
    margin:0;
    padding:0;
}

.data-filter {
    position:absolute;
    display:inline-block;
    width:50px;
}

.input[type=textarea] {
    width:200px;
}

@media screen and (max-width:1500px) {

    .table {

        font-size: calc(4px + 0.5vw);
        
    }

    .table-row .table-data .cell-text-short {
        display: block;
    }

    .table-row .table-data .cell-text-long {
        display: none;
    }

}

@media screen and (max-width:1000px) {

    .grid-login {

        grid-template-columns: 1fr 1.5fr 1fr;

    }

    .long-logout-symbol {
        display: none;
    }

    .short-logout-symbol {
        display: inline;
    }
}

@media screen and (max-width:650px) {
    .grid-login {

        grid-template-columns: 1fr 2fr 1fr;

    }
}

@media screen and (max-width: 800px) {

    .grid {

        grid-template-columns: 1fr 10fr 1fr;

    }

    .table {

        height: 550px;
        overflow:auto;
        font-size:12px;

    }

    .table-row {

        grid-template-columns: 150px 300px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px;

    }

    .table-header-row {

        background-color:red;
        top: 0;
        z-index:1;
        grid-template-columns: 150px 300px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px 100px;
        /*grid-template-columns: 150px 300px 100px 100px 100px 100px 100px 100px 100px 100px 100px;*/

    }

    .header {

        position: static;

    }

    .table-row .table-data .cell-text-short {
        display: none;
    }

    .table-row .table-data .cell-text-long {
        display: block;
    }

}