body{
    overflow-x: hidden;
}

*{
    box-sizing: border-box;
}

.container{
margin: 50px;
}

:root {

    --FW-NORMAL: 400;
    --FW-BOLD: bold;
    --HEADER-DROPDOWN-BGCOLOR: #71CDDA;
    --HEADER-DROPDOW-BGCOLOR-HOVER: #439AA5;
    --COLOR-WHITE: #FFF;
}

.header{
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.main-content{
    display: grid;
    grid-template-columns: 1.6fr 2.5fr 5fr;
    margin-top: 30px;
    
}

.flex{
    display: flex;
}

.general-overview{
    color: #1E3D7B;
    font-weight: var(--FW-BOLD);
    font-size: 34px;
}

.dropdown-wrapper-YearMonth{ 
    position: relative;
    width: 200px;
    font-size: 18px;
    font-weight: var(--FW-BOLD);
    background-color:var(--HEADER-DROPDOWN-BGCOLOR);
    color:var(--COLOR-WHITE);
    z-index: 100;
}

.dropdown-wrapper-YearMonth::after {
    display: block;
    content: '';
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-weight: var(--FW-NORMAL);
    border: 5px solid var(--COLOR-WHITE);
    width: 10px;
    height: 10px;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
    pointer-events: none;
}

.dropdown-wrapper-YearMonth .dropdown-btn:hover {
    background-color: var(--HEADER-DROPDOW-BGCOLOR-HOVER);
}

.dropdown-wrapper-YearMonth .dropdown-menu .item:hover {
    background-color: var(--HEADER-DROPDOW-BGCOLOR-HOVER);
}

.dropdown-wrapper-Agent {
    position: relative;
    width: 483px;
    font-size: 16px;
    font-weight: var(--FW-BOLD);
    background-color: var(--HEADER-DROPDOWN-BGCOLOR);
    color: var(--COLOR-WHITE);
    z-index: 100;
}

.dropdown-wrapper-Agent::after {
    display: block;
    content: '';
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-weight: var(--FW-NORMAL);
    border: 5px solid var(--COLOR-WHITE);
    width: 10px;
    height: 10px;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
    pointer-events: none;
}

.dropdown-wrapper-Agent .dropdown-btn:hover {
    background-color: var(--HEADER-DROPDOW-BGCOLOR-HOVER);
}

.dropdown-wrapper-Agent .dropdown-menu .item:hover {
    background-color: var(--HEADER-DROPDOW-BGCOLOR-HOVER);
}

.dropdown-wrapper-Currency{ 
    position: relative;
    /* width: 100%; */
    /* height: 100%; */
    font-size: 20px;
    font-weight: var(--FW-BOLD);
    background-color: #e3797d;
    color: var(--COLOR-WHITE);
    z-index: 100;
    margin-bottom: 10px !important;
}

.dropdown-wrapper-Currency::after {
    display: block;
    content: '';
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-weight: 400;
    border: 5px solid var(--COLOR-WHITE);
    width: 10px;
    height: 10px;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
    pointer-events: none;
}

.dropdown-wrapper-Currency .dropdown-btn:hover {
    background-color: #9e5d60;
}

.dropdown-wrapper-Currency .dropdown-menu .item:hover {
    background-color: #9e5d60;
}

.dropdown-btn {
    padding: 8px 10px;
    border-radius: 5px;
    display: flex;
    background-color: inherit;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dropdown-menu{
    position: absolute;
    right: 0;
    width: 100%;
    margin-top: 3px;
    padding: 0;
    border-radius: 0;
    font-weight: 400;
    background-color: inherit;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0.2;
    transform: scale(0);
    transform-origin: top right;
    transition: transform 0.2s cubic-bezier(0.075, 0.82, 0.165, 1),opacity 0.2s ease;
}

.dropdown-menu.open{
    opacity: 1;
    transform: scale(1);
}

.dropdown-menu .item {
    padding: 8px 16px;
    cursor: pointer;
}

.client-listing{
    color: var(--COLOR-WHITE);
    background-color: var(--HEADER-DROPDOWN-BGCOLOR);
    border: none;
    width: 150px;
    height: 40px;
    font-size: 15px;
    font-weight: var(--FW-BOLD);
    border-radius: 50px;

}

.client-listing:hover {
    background-color: var(--HEADER-DROPDOW-BGCOLOR-HOVER);
}


.section-1 {
    /* min-width: 100px; */
    /* justify-content: end; */
    flex-direction: column;
    position: relative;
}

.section-1 :last-child{
    margin-bottom: 0px;
}


.product-box{
    flex-direction: column;
    height: 90px;
    padding: 10px;
    margin-bottom: 5px;
    font-weight: var(--FW-BOLD);
    color: var(--COLOR-WHITE);
    z-index: 1;
    position: relative;
}

.product-box::after {
    display: block;
    content: '';
    position: absolute;
    right: 15px;
    bottom: 15px;
    font-weight: 400;
    border: 5px solid var(--COLOR-WHITE);
    width: 10px;
    height: 10px;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
    pointer-events: none;
}

.product-box:hover::after {
        border-color: inherit;
}

    /* to remove the pseudo code after in the excluded and the client-no porduct*/
.product-box:not(.renew, .commission,.excluded)::after {
    display: none;
}

.product-box .action{
    font-size: 18px;
    padding-bottom: 5px;
}
.product-box .amount{
    font-size: 26px;
    text-align: center;
    text-wrap: nowrap;
    white-space: nowrap; 
}

.renew {
    background: #5f9dd4;
    border-color: #406f97;
    cursor: pointer;
   
}

.renew:hover {
    border-color: #2f6492;
}

.excluded {
    background-color: #8fdcf8;
    border-color: #519db9;
    cursor: pointer;
}

.excluded:hover {
    border-color: #336a7e;
}

.clients-no {
    background: #b3deca;
    border-color: #86b19d;
 
}

/* .clients-no:hover {
        border-color: #497c65;
}*/

.commission {
    background: #fabb82;
    border-color: #bd8656;
    cursor: pointer;
}

.commission:hover {
    border-color: #9e622d;
}

.arrow{
font-weight: 400;
border:5px solid var(--COLOR-WHITE);
width: 10px;
height: 10px;
border-left:0 ;
border-top:0;
transform: rotate(45deg);
position: absolute;
right: 15px;
bottom: 15px;
z-index: 1
}

.arrow:hover {
    border-color: inherit;
}
/******************section 2*****************/

.section-2{
    justify-content: center;
}

.progress-component {
    font-size: 20px;
    position: relative;
    max-height: 500px;
}

.progress-component::before {
    content: attr(data-content);
    display: flex;
    flex-direction: column-reverse;
    position: absolute;
    color: #677CA5;
    font-weight: var(--FW-BOLD);
    font-size: 22px;
    bottom: -25px;
    left: 15px;
    width: 97%;
    text-align: center;
 }

.progress-desc {
    color: #677CA5;
    flex-direction: column-reverse;
    width: 30px;
    justify-content: center;

}

.progress-desc > div {
    justify-content: center;
    align-items: center;
    transform: rotate(270deg);
    color: #677ca5;
    font-weight: var(--FW-BOLD);
    font-size: 13px;
    text-wrap: nowrap;
    white-space: nowrap; 
    margin: 12px;
}

.progress {
    width: 100px;
    height: 480px;
    flex-direction: column-reverse;
    color: var(--COLOR-WHITE);
    font-weight: var(--FW-BOLD);
    font-size: 20px;
    margin: 5px   /*to add some space*/
}

.progress > div {
    justify-content: center;
    align-items: center;
}

.level-number {
    font-size: 20px;
    font-weight: var(--FW-BOLD);
}

.ProgressParag {
    color: #677CA5;
    font-weight: var(--FW-BOLD);
    font-size: 24px;
    margin: 0;
    text-align: center;
}

/***************end section 2****************/

.product-details-panel{
    position: relative;
    padding: 10px;
    min-width: 100%
    

}

.policies-action{
    color: var(--COLOR-WHITE);
    font-size: 20px;
}

.money-value{
    color: var(--COLOR-WHITE);
    font-size: 30px;
    font-weight: var(--FW-BOLD);
}

.policies-details{
    align-items: center;
    margin-left: 20px;
    /* margin-right: 10%; */
    /* margin-top: 50px; */
    align-items: stretch;
}

.policies-details > div {
    margin: 10px;
}

.view-all{
    background-color: #1E3D7B;
    color: var(--COLOR-WHITE);
    width: 40%;
    align-items: center;
    justify-content: center;
    font-weight: var(--FW-BOLD);
    font-size: 24px;
    text-align: center;
    display: grid;
    cursor: pointer;
    min-height: 95px;
}

.view-all:hover {
    background-color: #27488a;
}

.fix-position {
    position: inherit;
    bottom: 15px;
}

.products{
     /*border: 2px dashed black;*/ 
    width: 100%;
    flex-wrap: wrap;
}

.products>div{
    margin: 10px;
}

.product{
    /* height: 50px;
    background-color: lightgreen;
    flex:1; */
    position: relative;
    color: #5F9EDC;
    background-color: var(--COLOR-WHITE);
    font-size: 16px;
    font-weight: var(--FW-BOLD);
    text-align: center;
    width: 200px;
    height: 75px;
    cursor: pointer;
}

.product:hover {
    background-color: #ebedf0;
}

.product::before {
    display: flex;
    justify-content: center;
    align-items: center;
    content: attr(data-content); /* read dynamicaly the Product_Nbr form the server*/
    background-color: #1E3D7B;
    color: var(--COLOR-WHITE);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 16px;
    position: relative;
    top: -10px;
    left: -10px;
}

.product-amount {
    color: #1E3D7B;
    font-size: 18px;
    font-weight: var(--FW-BOLD);
    /* text-wrap: nowrap; */
}

.product-detail-arrow{
    position: absolute;
    font-weight: var(--FW-BOLD);
    border: 5px solid var(--COLOR-WHITE);
    border-right: 0 ;
    border-bottom: 0;
    transform: rotate(45deg);
    width: 15px;
    height: 15px;
    bottom: 15px;
    right: 10px;
    cursor: pointer
}

.product-detail-arrow:hover {
    border-color: #1E3D7B;
}

.product-not-clickable, .product-not-clickable:hover {
    background: #C2C3C6; /**C2C3C6  #b6b5b5*/
    cursor: context-menu;
}
 


/* **** Small size Screens **** */

@media  only screen and (max-width: 767px) {
    
    .container{
        margin: 0;
    }

    .main-content{
        grid-template-columns: 1fr;
    }

    .header{
        display: flex;
        align-items: start;
    }

    .select-container:nth-of-type(2) {
        align-self: end;
        margin-top: 55px;
    }

    .flex{
        display: flex;
    }

    .general-overview{
        font-size: 18px;
        margin-bottom: 5px;
    }


    .client-listing{
        width: 100px;
        height: 20px;
        font-size: 10px;
    }

    .section-1{
        margin-bottom: 25px;
    }

    .section-2{
        justify-content: left;
        margin-bottom: 40px;
    }

    

    .dropdown-wrapper-YearMonth{
        font-size: 10px;
        width: 120px;
        z-index: 1000;
        position: relative;
        
       
       
    }

    .dropdown-wrapper-YearMonth::after {
        display: block;
        position: absolute;
        right: 6px;
        bottom: 8px;
        border-left: 0;
        border-top: 0;
        border-width: 3px;
    }

    .dropdown-wrapper-YearMonth .dropdown-btn:hover {
        background-color: var(--HEADER-DROPDOW-BGCOLOR-HOVER);
    }

    .amount {
        text-wrap: wrap;
        white-space: nowrap;
    }

    .dropdown-btn {
        padding: 8px 10px;
        border-radius: 5px;
        display: flex;
        background-color: inherit;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        
    }

    .progress-component::before{
        display: flex;
        position: absolute;
        bottom: -24px;
    }

    .policies-details{
        display: flex;
        flex-wrap: wrap;
        margin-top: 20px;
        padding: 0;
        
    }

    .view-all{
        flex: 1;
    }

    .products{
        justify-content: center;
    }
}

/* *** End Small size Screens *** */


/* *** large tablet and laptops *** */ 
@media only screen and (min-width:768px) and (max-width:1024px)
{
    .main-content{
        grid-template-columns: 1fr 1fr;
    }

    .header {
        display: flex;
        align-items: center;
        
    }
    .select-container:nth-of-type(2) {
        align-self: end;
        margin-top: 55px;
    }


    .dropdown-wrapper-YearMonth{
        z-index: 1000;

    }

    .dropdown-wrapper-Agent {
        z-index: 1000;
        width: 150px;
    }

    .product-box .action{
        font-size: 18px;
    }
    .product-box .amount{
        font-size: 20px;
    }
    .section-2{
        margin-bottom: 25px;
    }
    .section-3{
        margin-top: 10px;
        grid-area: 2/1/auto/span 2;
    }

    .policies-details{
        display: flex;
        flex-wrap: wrap;
        margin-top: 20px;
        padding: 0;
        
    }
    .view-all{
        flex: 1;
    }
    .products{
        justify-content: center;
    }

    .product-amount{
        font-size: 20px;
    }



}


/* *** end large tablet and laptops *** */ 