@font-face {
    font-family: KhOSML;
    src: url(../font/KhmerOSmuollight.ttf);
}

@font-face {
    font-family: KhOSsys;
    src: url(../font/KhmerOSsys.ttf);
}

@font-face {
    font-family: iCielMedium;
    src: url(../font/iCielMedium.ttf);
}

@font-face {
    font-family: KhOSBTB;
    src: url(../font/KhmerOS_battambang.ttf);
}

*{
    padding: 0px;
    margin: 0px;
    /* box-sizing: border-box;
    font-family: KhOSBTB; */
}


body{
    color: black;
}
.main{
    color: black;
    width: 100%;
    position: relative;
    height: 100%;
}

.header{
    width: 100%;
}
.logo{
    width: 95%;
    margin: auto;
    display: flex;
}
.logo img{
    width: 7%;
    height: 100%;
}

.title_logo {
    margin-top: 15px;
    margin-left: 2%;
}
.title_logo h2{
    font-family: KhOSML;
    color: #007cc6;
    font-size: 20px;
}

.title_logo h3{
    font-family: iCielMedium;
    color: #007cc6;
    font-size: 22px;
    font-weight: bold;
}

#title_wrap{
    width: 100%;
    background: #007cc6;
    padding: 10px 0 0 0;
    color: #FFFFFF;
    font-family: iCielMedium;
}

.title{
    width: 100%;
    text-align: center;
    background: #007cc6;
    color: #FFFFFF;
    padding: 10px 0 0 0;
}

.title h3{
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    font-family: KhOSML;
}
/* #title_wrap #menu{
    width: 95%;
    margin: auto;
}

#title_wrap #menu ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: KhOSML;

}

#title_wrap #menu li{
    float: left;
}
#title_wrap #menu li a{
    display: block;
    color: #CCC;
    text-align: center;
    padding: 2px 20px;
    text-decoration: none;
}

#title_wrap #menu li a:hover{
    color: #FFFFFF;
}
#title_wrap #menu li a.active {
    color: #ffffff;
    text-decoration: underline;
} */

#nav_wrapper {
    width: 95%;
    background: #007BC6; 
    margin: 0 auto;
    position: relative;
    font-family: KhOSML;
    /* overflow: auto;  */
}
#nav_wrapper a{
    font-size: 16px;
}
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

body #nav_wrapper ul.sf-menu li:hover > ul {
    display: block !important;
}

body #nav_wrapper ul.sf-menu ul li:hover > ul {
    display: block !important;
}

/* #nav_wrapper a {
    background-color: #007cc6;
} */

#container{
    width: 95%;
    margin: 0 auto;
    margin-bottom: 10px;
    margin-top: 10px;
    clear: both;

}


#container p.title{
    font-family: KhOSML;
    font-size: 20px;
    color: #007cc6;
    text-decoration: underline;
    margin: 5px 0;
    text-align: center;
}
.boxContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Use a consistent gap value for calculations */
    justify-content: flex-start;
    margin: 20px 0;
    font-family: KhOSBTB !important;
}

.boxItem {
    /* DEFAULT (Large Desktops/Widescreen): Target 6 items per row */
    /* Calculation: (100% / 6) - gap_space */
    width: calc(14.4% - 13px);
    
    /* flex-grow: 1; Allows items to fill remaining space evenly */
    
    background-color: #007BC6;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-shrink: 0;
    text-align: center;
    border: 1px solid #FFB500;
    margin: 0 auto;
    /* width: 12%; */
}


/* .boxContainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin: 20px 0 20px 0;
    font-family: KhOSBTB !important;
}

.boxItem {
    width: fit-content;
    background-color: #007cc6;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-grow: 0; 
    flex-shrink: 0;
    text-align: center;
}
.boxItem:nth-child(even) {
    background-color: #FFB500;
} */
.boxTitle {
    font-size: 14px;
    margin-top: 10px;
    font-weight: bold;
}
.boxTitle a:hover{
    text-decoration: none;
    color: #ffffff;
}
.boxTitle a{
    color: #FFB500;
    text-decoration: none;
}


.boxBody {
    font-size: 32px;
    font-weight: bold;
    color: #FFF;
}

.footer{
    width: 100%;
    background: #FFF;
    border-top: 1px solid #007cc6;
    color: #007cc6;
    position: fixed;
    bottom: 0;
}

#norecord{
    text-align: center;
    padding: 10px;
    color: #ee0101;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #007BC6;
}

.footer p{
    text-align: right;
    font-size: 14px;
    margin-bottom: 0px;
    padding: 5px 30px 5px 0;
    font-family: iCielMedium;
}

.font_KhMoul{
    font-family: KhOSML;
}

.comResult,.disResult,#comResultA,#comResultB,#comResultC,#disResultA,#disResultB,#disResultC,.resultText{
    font-weight: bold;
    color: #007cc6;
    text-decoration: underline;
}

.analysiscontrol{
    width: 100%;
    margin: 20px auto;
}
.analysiscontrol dt{
    float: left;
    width: 45%;
    padding-top: 14px;
    padding-left: 20px;
    font-size: 15px;
    color: #007cc6;
    font-weight: bold;

}
.analysiscontrol dd{
    margin-left: 45%;
    padding-right: 20px;
}

.analysiscontrol dd select{
    width: 100%;
    padding: 15px 5px;
    font-size: 15px;
}
.error{
    border: 2px solid #d12f19;
}
.red{
    color: red !important;
}

.flag-button {
    cursor: pointer;
    border: none;
    background: none;
}
.flag-button img {
    width: 30px;
    height: 20px;
}
/*----------------gird----------------*/

.wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

}

.box{

    margin: 0px 10px
}
.box99{
    grid-column: 1 / span 2;
}
.box100.box101{
    grid-row: 1;
}

.box label span{
    color: #007cc6;
    font-weight: bold;
    margin-right: 5px;
}
.box5{
    grid-column: 1 / span 2;
    text-align: center;
}

.box label{
    font-family: KhOSML;
    font-size: 14px;
}

.box select{
    font-size: 14px;
}

.accordion h3{
    font-family: KhOSML;
}
#procurement_wrapper{
padding: 10px 0;
}
#procurement_wrapper #header{
text-align: center;
}
#procurement_wrapper #header h3{
    font-family: KhOSML;
    font-size: 20px;
}
#procurement_wrapper #header h1{
    font-size: 18px;
    font-family: KhOSML;
    color: #007BC6;
}

#procurement_wrapper .tableReport th{
    font-family: KhOSML;
    padding: 10px;
    background-color: #bcbcbd;
}
#procurement_wrapper .tableReport td{
    padding: 5px 10px;
    vertical-align: top;
}
.tblProcurement th, .tblProcurement td{
    padding: 10px !important;
}
#procurement_wrapper .tableReport td ol{
    margin-left: 15px;
}
/*----------------gird-end----------------*/




/*----------------for Dsitrict----------------*/

.custom_select select{
    width: 100%;
    margin: 0px 0px 5px;
    padding: 5px 0px;
}

.input_text{
    display: flex;
}

.input_text span{
    padding: 20px 10px;
    color: #007cc6;
}
.input_text input{
    width: 100%;
    min-width: 20%;
    font-size: 15px;
    margin: 10px 0px;
    padding: 5px;
}

.custom_select input[type=button]{
    padding: 2px 20px 3px 40px;
    margin-top: 30px;
    font-size: 16px;
    color: #007cc6;
    font-weight: bold;
    background: url(../img/search.png) #C2D9F3 no-repeat;
    cursor:pointer;
    background-position: 5% 50%;
    background-size: 30px;
}
.custom_select input[type=button]:hover{
    background: url(../img/search.png) #ffffff no-repeat;
    cursor:pointer;
    background-position: 5% 50%;
    background-size: 32px;
}


/* ----------------for-button--------------- */
.box99{
    margin: 0 auto;
    width: 40%;
    margin-bottom: 10px;
    background: #cccccc;
}

.box99 button{
    width: 100%;
    height: 100%;
    padding: 5px;
    font-size: 20px;
    margin: 0 auto;
}

/* ----------------end-button--------------- */



/* ----------------for report---------------- */

.budget_report{
    /*background-color: #cccccc;*/
    width: auto;
    height: auto;
    margin: 20px auto;
    padding: 10px 0px;
    position: relative;
}
.budget_report ul{
    width: 50%;
}
.budget_report #chartContainer{
    left: 50%;
    width: 50%;
}
.budget_report ul li{
    list-style-type: none;
    margin: 10px 20px;
    font-size: 14px; 

}

/* ----------------end report---------------- */

/*------------------logo_list------------------ */

.donorList{
    width: 100%;
    background: #007cc6;
    color: #FFFFFF;
    padding: 10px;
    text-align: center;
}
.donorList h1{
    font-family: KhOSML;
    font-size: 20px;
}
.donorList ul{
    margin-top: 20px;
    /* margin-bottom : 10px; */
}
.donorList ul li{
    display: inline;

}

.donorList img{
    max-width: 75px;
    box-shadow: 0 1px 10px 0 rgba(248, 249, 250, 0.2), 0 2px 20px 0 rgba(248, 249, 250, 0.19)

}

/*Compare Poppup*/

#compare_wrap{
    width: 100%;
    margin: 20px auto;

}
#compare_left{
    width: 50%;
    border: 1px solid #007cc6;
    height: 300px;
    float: left;
    text-align: center;
}

#compare_right{
    width: 49%;
    border: 1px solid #007cc6;
    height: 300px;
    float: right;
    text-align: center;
}

.pie_chart{
    margin-right: 5px;
}

.pie_chart:hover, .icon_compare:hover{
    cursor: pointer;
}
/*End Compare poppup*/

.ui-widget-header{
    background: #007cc6 !important;
    color: #FFFFFF !important;
    font-family: KhOSML;
}

.smsError{
    color: #ee0101;
    padding-left: 30px;
}
/*------------------end logo_list------------------ *//* for ipad screen */
@media only screen and (max-width: 768px){
    .wrapper {
        display: grid;
        grid-template-columns: repeat(1, 1fr);

    }
    .box1, .box2, .box3, .box4, .box5, .box6, .box7, .box8, .box9, .box10,.box11, .box12,.box13, .box14,.box15, .box16,.box17, .box18,.box19, .box20,.box21, .box22,.box23, .box24, .box25, .box26, .box99 {
        grid-column: 1;
    }
    /* --for Commune-- */

    /* for both button */
    .box21 button, .box9 button{
        width: 100%;
        height: 100%;
        padding: 5px;
        font-size: 20px;
    }
    /* end both button */

    /* for logo */

    .logo{
        width: 80%;
    }
    .logo img{
        width: 20%;
        height: 100%;
    }

    .title_logo h2{
        font-size: 20px;
    }

    .title_logo h3{
        font-size: 24px;
    }
}
/* end for ipad screen */
/* for phone screen */

@media only screen and (max-width: 375px){

    .wrapper {
        display: grid;
        grid-template-columns: repeat(1, 1fr);

    }
    .box1, .box2, .box3, .box4, .box5, .box6, .box7, .box8, .box9, .box10,.box11, .box12,.box13, .box14,.box15, .box16,.box17, .box18,.box19, .box20,.box21, .box22,.box23,  .box24, .box25, .box26, .box99 {
        grid-column: 1;
    }

    /* for both button */
    .box21 button, .box9 button{
        width: 100%;
        height: 100%;
        padding: 5px;
        font-size: 20px;
    }
    /* end both button */


    /* for logo */

    .logo{
        width: 90%;
    }
    .logo img{
        width: 30%;
        height: 100%;
    }

    .title_logo h2{
        font-size: 11px;
    }

    .title_logo h3{
        font-size: 13px;
    }
}

#frmDialog div{
    border-bottom: 1px dashed #C2D9F3;
    padding: 10px;
    font-family: KhOSsys;
}

#frmDialog div label{
    width: 100px;
    display: inline-block;
}
#frmDialog div input{
    padding: 10px;
    min-width: 250px;
}
#frmDialog div select{
    height: 40px;
    width: 250px;
}

#chartContainer{
    font-family: KhOSBTB !important;
    font-size: 14px !important;
}

#chartContainer #totalChart{
    min-width: 70%;
}

#chartContainer #devChart{
    min-width: 70%;
}

.tableReport{
    font-size:  14px;
    border-collapse:  collapse;
    margin-top: 20px;
    font-family: KhOSBTB !important;
}

.tableReport th{
    overflow: auto;
    padding: 5px;
    font-size: 14px;
}
.tableReport th span{
    color: #007cc6;
}
.tableReport td, .tableReport th{
    border: 1px solid #007cc6;
}

.tableReport .number{
    text-align: right;
    padding: 10px 2px;
}

.tableReport .percentage{
    text-align: center;
    width: 40px;
    padding: 10px 2px;
}

.center{
    text-align: center;
}
#result{
    /*border: 1px solid #007cc6;*/
    margin-top: 10px;
    padding: 10px 0px;
    display: none;
    font-size: 24px;
}

#sampleTable{
    /*border: 1px solid #007cc6;*/
    margin-top: 10px;
    padding: 10px 0px;
    font-size: 24px;
}

#result h4,#sampleTable h4{
    text-decoration: underline;
    text-align: center;
    color: #007cc6;
}

#searchResult{
    margin-top: 10px;
}
#searchResult h4{
    text-decoration: underline;
    text-align: center;
    color: #007cc6;
    font-family: KhOSML;
    margin-bottom: 10px;
}

.info_title{
    font-size: 24px;
    font-family: KhOSML;
    text-align: center;
    color: #007cc6;
    text-decoration: underline;
    margin-bottom: 10px;
}

.compare legend{
    margin: 0 auto;
    color: #007cc6;
    font-family: KhOSML;
}
.compare{
    padding: 10px 20px;
}

.compare_text{
    width: 100%;
    padding: 5px;
}

#compare_result{
    display: none;
}

.norecord{
    color: red;
    font-size: 14px;
    text-align: center;
    padding: 5px;
}
.no-print{
    cursor: pointer;
}
.ui-accordion .ui-accordion-content{
    padding: 10px !important;
}

@media print
{    
    .no-print
    {
        display: none !important;
    }
     body{
       font-size:14px !important;
     }
     
     .tableReport, .tableReport th{
           font-size:  16px;
     }
     .info_title{
         font-size: 24px;
     }
     .highcharts-text-outline{
         font-size: 14px !important;
     }
     .highcharts-label text{
         font-size: 16px !important;
     }
     .tableReport td, .tableReport th{
        border: 1px solid #000000;
        padding: 5px !important;

    }
    .tableReport td{
        font-size: 12px;
    }
}