* {
    padding: 0;
    margin: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: lightgrey !important;
}

.container-img {
    width: 100%;
    margin: 0 auto;
    background-color: #FFF;
}

    .info-box {
        width: 100%;
        padding: 10px;
        text-align: center;
        background-color: #5a91bf;
        color: white;
        text-transform: capitalize;
        font-weight: 700;
        font-size: 2rem;
    }

    .info-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
    }

    .info-noscript {
        color: red;
        font-weight: bold;
        padding: 1.5rem;
    }

.radio-style {
    padding: 1rem 2rem;
    position: relative;
}

    .font-radio {
        font-size: 14px;
        word-break: break-all;
    }

.input-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    position: relative;
}


    .left-side {
        padding: 10px;
        background-color: #a5c3db;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows:repeat(2, auto);
        width: 100%;
        margin: 0 auto;
        position: relative;
    }

    .btn-pdf {
        padding: 3px 4px !important;
        width: 32px;
        height: 28.8px;
        font-size: 12px;
        text-align: center;
        cursor: pointer;
        position: absolute;
        top: 0%;
        right: 9px;
    }

        .btn-pdf > a {
            text-decoration: none;
            color: #fff;
            display: block;
        }

        .corner-btn {
            text-align: right;
            position: absolute;
            top:7%;
            right: 8px;
        }

            .corner-btn > button {
                padding: 3px 9px !important;
                font-size: 14px;
                width: 2rem;
                text-align: center;
            }

        .style-line {
            display: flex;
            flex-direction: row;
            margin:0 0 0 0.2rem;
            font-size: 12px;
        }

            .style-input {
                display: flex;
                flex-direction: column;
                margin-right: 0.2rem;
                width: 4.5rem;
            }

        .left-side > h2 {
            font-size: 20px;
            font-weight: 500;
        }

        .left-side > div:nth-child(2n) {
            margin-bottom: 0.5rem;
        }

        .form-input {
            width: 75%;
            border: 1px solid blanchedalmond;
            padding: 0 7px;
        }

        .btn-form {
            width: 100%;
        }

.table-style {
    overflow: hidden;
}

.chart-container {
    margin: 0 0 20px;
    border: 1px solid grey;
}

    #chart {
        cursor: pointer;
    }

.periods-style {
    display: flex;
    flex-direction: row;
}

.periods-style > input {
    border: 1px solid #000;
    outline: none;
    width: 5rem;
    padding: 0 7px;
}

.desktop-only {
    display: none;
}

.fs-responsive {
    font-size: 8px;
}

.table th, .table td {
    padding: 4px;
}

.container-message{
    border-radius: 10px;
    color: #FFF;
    padding: 1rem 10px;
    text-align: center;
    width: 56vw;
    position: absolute;
    top: 10%;
    right: 1%;
    position: fixed;
    font-size: 14px;
    cursor: pointer;
    z-index: 999;
    -webkit-animation: fadein 5s linear 2s normal forwards;
    display: grid;
    grid-template-columns: 8fr 1fr;
}

.close-message-btn {
    border: 1px solid #fff;
    border-radius: 50%;
    padding: 5px 10px;
}

.container-message > div:hover {
    transform: scale(1.2);
}

.toggle {
    float: left;
    cursor: pointer;
}

.toggle > img {
    width: 0.5rem;
    height: 0.5rem;
}

.container-footer {
    width: 100%;
    padding: 1.5rem;
    background-color: #5a91bf;
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

.container-footer a:link,
.container-footer a:visited,
.container-footer a:active,
.container-footer a:hover {
    color: white;
}

hr {
    margin-top: 0;
}

.btn-container {
    text-align: center;
    margin-bottom: 20px;
}

.table {
    margin-bottom: 20px;
}

.btn-fetch {
    background-image: url(../images/cloud-download.png);
    background-size: 1.5rem;
    background-repeat: no-repeat;
    background-position: center;
    height: 1.8rem;
    position: absolute;
    top: 109%;
}

.btn-add {
    background-image: url(../images/button_add.png);
    background-size: 1.2rem;
    background-repeat: no-repeat;
    background-position: center;
    height: 1.8rem;
}

.btn-remove {
    background-image: url(../images/remove.png);
    background-size: 1.2rem;
    background-repeat: no-repeat;
    background-position: center;
    height: 1.8rem;
}

@media screen and (min-width: 375px) {
    .fs-responsive {
        font-size: 13px;
    }

    .table th, .table td {
        padding: 7px;
    }
}

/* ----------- DESKTOP ---------  */
@media screen and (min-width: 768px) {

    .container-img {
        width: 90%;
        margin: 0 auto;
        background-color: #FFF;
    }

        .btn-pdf {
            padding: 7px 14px;
            font-size: 16px;
            width: 2.5rem;
            height: 2.5rem;
            top: 0%;
            right: 33px;
        }

        .left-side {
            margin: 0 1.5rem;
        }

            .corner-btn {
                top: 5%;
                right: 8px;
            }

            .corner-btn > button {
                padding: 7px 14px !important;
                font-size: 16px;
            }

            .style-line {
                display: flex;
                flex-direction: row;
                font-size: 15px;
                margin: 2px 0;
            }

            .style-form {
                display: flex;
                flex-direction: row;
                flex: 1;

            }
                .style-input {
                    margin-left: 1rem;
                    width: 6.5rem;
                }

                    .form-input {
                        display: block;
                        height: 1.8rem;
                        width: 6rem;
                    }


                    .btn-container {
                        text-align: center;
                    }

                        .btn-form {
                            width: 50%;
                        }

                        .font-radio {
                            font-size: 17px;
                        }

    .table-style {
        padding: 0 20px;
    }

    .desktop-only {
        display: table-cell;
    }


    .fs-responsive {
        font-size: 1rem;
    }

    .chart-container {
        margin: 0 1.5rem 20px;
        border: 1px solid grey;
    }

    .table th, .table td {
        padding: 0.75rem;
    }

    .container-message {
        padding: 1rem 10px;
        text-align: center;
        width: 30vw;
        position: fixed;
        top: 7%;
        right: 5%;
        font-size: 1rem;
    }


    .toggle > img {
        width: 1.5rem;
        height: 1.5rem;
    }


    .container-footer {
        margin: 0 auto;
    }


    .btn-fetch {
        width: 2.5rem !important;
        height: 2.5rem;
    }

    .btn-add {
        width: 2.5rem !important;
        height: 2.5rem;
        background-size: 1.5rem;
    }

    .btn-remove {
        width: 2.5rem !important;
        height: 2.5rem;
        background-size: 1.5rem;
    }
}

/* Background Message  */
.error {
    background-color: #ff4d4d;
    border: 1px solid #ff4d4d;
}
.error:hover {
    background-color: #ff3333;
    border: 1px solid #ff3333;
}

.warning {
    background-color: #ffc266;
    border: 1px solid #ffc266;
}
.warning:hover {
    background-color: #ffb84d;
    border: 1px solid #ffb84d;
}

.success {
    background-color:  #4bb543;
    border: 1px solid  #4bb543;
}
.success:hover {
    background-color:  #45a83e;
    border: 1px solid  #45a83e;
}

/* Using when input get api  */
.loader {
    border: 12px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 6rem;
    height: 6rem;
    animation: loading 2s linear infinite;
    z-index: 4;
    position: absolute;
    left: 40%;
    top: 20%;
}

.loading {
    opacity: 0.5;
}

/* Animation  */
@-webkit-keyframes fadein {
    from {
       opacity: 1;
    }
    to {
        opacity: 0.4;
    }
}

@-webkit-keyframes loading {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }