@import url('../fonts/sarabun.css');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sarabun', sans-serif;
    font-size: 14px;
}

@keyframes spin
{
   from
   {
      transform: rotate(0deg);
   }
   to
   {
      transform: rotate(360deg);
   }
}

/*input:hover,select:hover,img:hover,p:hover,label:hover, button:hover {
      animation: spin 0.2s linear infinite;
    }*/
    
html, body { 
   scroll-behavior: smooth
}

:root{
    /* ===== Colors ===== */
    --primary-color: #0E4BF1;
    --panel-color: #FFF;
    --text-color: #000;
    --black-light-color: #707070;
    --border-color: #ccc;
    --toggle-color: #DDD;
    --box1-color: #4DA3FF;
    --box2-color: #FFE6AC;
    --box3-color: #E7D1FC;
    --title-icon-color: #fff;
    --sidebar-width: 280px;
    
    /* ====== Transition ====== */
    --tran-05: all 0.5s ease;
    --tran-03: all 0.3s ease;
    --tran-03: all 0.2s ease;
}
/* disalbed root bootstrap. */
ul{
   padding: 0 !important; 
   margin: 0 !important;
}

.btn{
   border: 1px solid var(--border-color) !important;
}

.btn:focus-visible{
   border-color: #d0d0d0 !important;
   -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #62c8dd  !important;
   box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #62c8dd  !important;
}

.btn-danger {
  /*background-color: #ff4c51 !important;f4615f*/
  background-color: #de2939 !important;
  border-color: #ff4c51 !important;
}
.btn-danger:hover {
  color: #fff !important;
  background-color: #e24348 !important;
  border-color: #e24348 !important;
}
input[readonly] {
   border: 1px solid #ccc;
   background: #efefef;
   color: #646464;
   cursor: not-allowed;
}

textarea[readonly] {
   border: 1px solid #ccc;
   background: #efefef;
   color: #646464;
   cursor: not-allowed;
}

body{
    min-height: 100vh;
    background-color: transparent;
}
body.dark{
    --primary-color: #3A3B3C;
    --panel-color: #242526;
    --text-color: #CCC;
    --black-light-color: #CCC;
    --border-color: #4D4C4C;
    --toggle-color: #FFF;
    --box1-color: #3A3B3C;
    --box2-color: #3A3B3C;
    --box3-color: #3A3B3C;
    --title-icon-color: #CCC;
}
/* === Custom Scroll Bar CSS === */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: lightgrey;
    border-radius: 12px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: grey;
}

body.dark::-webkit-scrollbar-thumb:hover,
body.dark .activity-data::-webkit-scrollbar-thumb:hover{
    background: #3A3B3C;
}

.sidebar-menu{
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--sidebar-width);
    padding: 8px;
    /*padding: 10px 14px;*/
    /*background-color: #6fb39d;*/
    background-color: #dcffec;
    background-image: linear-gradient(0, #dcffec 0%, #ffffff 100%);
    border-right: 1px solid var(--border-color);
    transition: var(--tran-05);
    overflow-y: auto;
}
.sidebar-menu.close{
    width: 73px;
}

.sidebar-menu.close > div.menu-items > ul > li.menu-item > a > div{
    display: none;
}

.input-group-addon.btn{
   background-color: lightgrey !important;
   border: solid #c2c2c2 1px;
}
.sidebar-menu .logo-name{
    display: flex;
    align-items: center;
    /*margin-top:30px;*/
    margin-top:10px;
}
.sidebar-menu .logo-image{
    display: flex;
    justify-content: center;
    min-width: 45px;
}
.sidebar-menu .logo-image img{
    width: 230px;
    object-fit: cover;
    /*border-radius: 50%;*/
}

#img-logo-sidebar {
   width: 100%;
}

.sidebar-menu .logo-name .logo_name{
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 14px;
    transition: var(--tran-05);
}
.sidebar-menu.close .logo_name{
    opacity: 0;
    pointer-events: none;
}
.sidebar-menu .menu-items{
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /*background-color: white;*/
    background-color: #6fb39d;
    border-radius: 7px;
}
.sidebar-menu-links{
}
.menu-items li{
    list-style: none;
    padding: 4px;
    margin: 4px;
    /*background-color: #aad5c9;*/
    background-color: #fff;
    border-radius: 5px;
}
.menu-items li a{
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}
/*.sidebar-menu-links li a:hover:before{
    content: "";
    position: absolute;
    left: -7px;
    height: 5px;
    width: 5px;
    border-radius: 50%;
    background-color: var(--primary-color);
}*/
body.dark li a:hover:before{
    background-color: var(--text-color);
}
.menu-items li a i{
    font-size: 24px;
    min-width: 35px;
    /*height: 100%;*/
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black-light-color);
}
.menu-items li a .link-name{
    font-size: 18px;
    font-weight: 400;
    color: var(--black-light-color);    
    transition: var(--tran-05);
}
.sidebar-menu.close li a .link-name{
    opacity: 0;
    pointer-events: none;
}
.sidebar-menu-links li a:hover i,
.sidebar-menu-links li a.active i,
.sidebar-menu-links li a:hover .link-name{
    color: #44b38f;
}
body.dark .sidebar-menu-links li a:hover i,
body.dark .sidebar-menu-links li a:hover .link-name{
    color: var(--text-color);
}
.menu-items .logout-mode{
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.menu-items .mode{
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.menu-items .mode-toggle{
    position: absolute;
    right: 14px;
    height: 50px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.mode-toggle .switch{
    position: relative;
    display: inline-block;
    height: 22px;
    width: 40px;
    border-radius: 25px;
    background-color: var(--toggle-color);
}

body.dark .switch:before{
    left: 20px;
}

.main-content{
    position: relative;
    left: var(--sidebar-width);
    background-color: var(--panel-color);
    min-height: 54rem;
    width: calc(100% - var(--sidebar-width));
    padding: 10px 14px;
    transition: var(--tran-05);
}
.sidebar-menu.close ~ .main-content{
    left: 73px;
    width: calc(100% - 73px);
}

.menu-link {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.popup-message {
    display: none;
    position: absolute;
    background-color: #333;
    color: white;
    padding: 5px;
    border-radius: 3px;
    z-index: 1;
    max-width: 350px;
    word-wrap: break-word;
    white-space: normal;
}

.main-content .top{
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    display: flex;
    width: calc(100% - var(--sidebar-width));
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background-color: #fff;
    transition: var(--tran-05);
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
    min-height: 75px;
}
.sidebar-menu.close ~ .main-content .top{
    left: 73px;
    width: calc(100% - 73px);
}
.main-content .top .sidebar-toggle{
    font-size: 26px;
    color: var(--text-color);
    cursor: pointer;
    align-content: center;
}
.main-content .top .field-box{
    position: relative;
    height: 45px;
    max-width: 600px;
    width: 100%;
    margin: 0 30px;
}
.top .field-box input{
    position: absolute;
    border: 1px solid var(--border-color);
    background-color: var(--panel-color);
    padding: 0 25px 0 50px;
    border-radius: 5px;
    height: 100%;
    width: 100%;
    color: var(--text-color);
    font-size: 15px;
    font-weight: 400;
    outline: none;
}
.top .field-box i{
    position: absolute;
    left: 15px;
    font-size: 22px;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    color: var(--black-light-color);
}
.top img{
    width: 150px;
    margin-left: 15px;
}
.main-content .content{
    margin-top: 80px;
}
.content .title{
    display: flex;
    align-items: center;
    margin: 60px 0 30px 0;
}
.content .title i{
    position: relative;
    height: 35px;
    width: 35px;
    background-color: var(--primary-color);
    border-radius: 6px;
    color: var(--title-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.content .title .text{
    font-size: 24px;
    font-weight: 500;
    color: var(--text-color);
    margin-left: 10px;
}
.content .boxes{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.content .boxes .box{
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    width: calc(100% / 3 - 15px);
    padding: 15px 20px;
    background-color: var(--box1-color);
    transition: var(--tran-05);
}
.boxes .box i{
    font-size: 35px;
    color: var(--text-color);
}
.boxes .box .text{
    white-space: nowrap;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-color);
}
.boxes .box .number{
    font-size: 40px;
    font-weight: 500;
    color: var(--text-color);
}
.boxes .box.box2{
    background-color: var(--box2-color);
}
.boxes .box.box3{
    background-color: var(--box3-color);
}
.content .activity .activity-data{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.activity .activity-data{
    display: flex;
}
.activity-data .data{
    display: flex;
    flex-direction: column;
    margin: 0 15px;
}
.activity-data .data-title{
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
}
.activity-data .data .data-list{
    font-size: 18px;
    font-weight: 400;
    margin-top: 20px;
    white-space: nowrap;
    color: var(--text-color);
}

/*@media (max-width: 1000px) {
    .sidebar-menu{
        width: 73px;
    }
    .sidebar-menu.close{
        width: var(--sidebar-width);
    }
    .sidebar-menu .logo_name{
        opacity: 0;
        pointer-events: none;
    }
    .sidebar-menu.close .logo_name{
        opacity: 1;
        pointer-events: auto;
    }
    .sidebar-menu li a .link-name{
        opacity: 0;
        pointer-events: none;
    }
    .sidebar-menu.close li a .link-name{
        opacity: 1;
        pointer-events: auto;
    }
    .sidebar-menu ~ .main-content{
        left: 73px;
        width: calc(100% - 73px);
    }
    .sidebar-menu.close ~ .main-content{
        left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }
    .sidebar-menu ~ .main-content .top{
        left: 73px;
        width: calc(100% - 73px);
    }
    .sidebar-menu.close ~ .main-content .top{
        left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }
    .activity .activity-data{
        overflow-X: scroll;
    }
    .field-box-animate.active{
        height: 750px !important;
    }
    .sidebar-menu.close > div.menu-items > ul > li.menu-item > a > div, .external{
      display: block;
   }
}*/

@media (max-width: 1200px) {
   .form-group [class*='col-'] {
       flex: 0 0 100%;
       max-width: 100%;
       justify-content: start;
   }
   .form-group [class*='col-'] label {
       justify-content: start;
   }
   .form-group [class*='col-'] input {
       width: 100%;
   }
   .footer-area{
      padding-left: 20px !important;
   }
   
    .sidebar-menu .logo-name{
       width: 18rem !important;
    }
    
    .sidebar-menu.close .logo-name{
       width: 56px !important;
    }
    
    .sidebar-menu.close .menu-items{
       width: 50px;
    }
    .sidebar-menu.close > div.menu-items > ul > li.menu-item > a > div{
       display: none;
    }
    
    .sidebar-menu > div.menu-items > ul > li.menu-item > a > div{
       display: block;
    }
    
    .sidebar-menu.close{
        width: var(--sidebar-width);
    }
}

@media (max-width: 560px) {
    .content .boxes .box{
        width: 100% ;
    }

}
/*@media (max-width: 400px) {
    .sidebar-menu {
        width: 0;
        z-index: 0;
    }
    .sidebar-menu.close{
        width: 300px;
        z-index: 9;
    }
    .sidebar-menu .logo_name{
        opacity: 0;
        pointer-events: none;
    }
    .sidebar-menu.close .logo_name{
        opacity: 0;
        pointer-events: none;
    }
    .sidebar-menu li a .link-name{
        opacity: 0;
        pointer-events: none;
    }
    .sidebar-menu.close li a .link-name{
        opacity: 0;
        pointer-events: none;
    }
    .sidebar-menu ~ .main-content{
        left: 0;
        width: 100%;
    }
    .sidebar-menu.close ~ .main-content{
        left: 73px;
        width: calc(100% - 73px);
    }
    .sidebar-menu ~ .main-content .top{
        left: 0;
        width: 100%;
    }
    .sidebar-menu.close ~ .main-content .top{
        left: 0;
        width: 100%;
    }
    
    .control-label{
       width:100%;
    }
}*/

.field-box{
   border: 1px solid var(--border-color);
   padding: 15px 20px;
   border-radius: 5px;
}

.display-page{
   border: 1px solid var(--border-color);
   min-height: 82vh;
   border-radius: 0px 0px 5px 5px;
   background-color: #f1f1f1;
}

.header-title{
   border: 1px solid var(--border-color);
   padding: 15px 0 0 20px;
   border-radius: 5px 5px 0px 0px;
   background-color: #aad5c9;
}
.display-content{
   padding: 10px;
}
.search-panel{
   height: 100%;
}
.search-panel > div {
   margin-bottom: 10px;
   background-color: white;
}

.action-panel > div {
   background-color: white;
}

.action-panel > div.row {
   background-color: transparent;
}

.form-group{
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.form-group > div{
   margin: 3px;
   padding: 3px;
}

.control-label {
    display: flex;
    justify-content: end;
    padding-right: 10px;
    align-items: center;
    height: 100%;
}
.control-input{
    /*padding: 5px;
    border-radius: 8px;
    border: 2px solid var(--border-color);*/
    padding: 2px 2px 2px 15px;
    /* padding: 2px 8px 2px 11px; */
    border: 1px solid var(--border-color);
    background-color: var(--panel-color);
    border-radius: 5px;
    width: 100%;
    color: #212529;
    /*font-size: 15px;
    font-weight: 400;*/
    outline: none;
    line-height: 2;
}

.control-input.text-center {
   padding: 2px 2px 2px 2px;
}

.control-input.text-right {
   padding: 2px 8px 2px 2px;
}

.control-input.text-end {
   padding: 2px 8px 2px 2px;
}

.result-search{
   min-height: 60vh;
   height: 100%;
   border: 1px solid var(--border-color);
   border-radius: 5px;
}

/* action box. */
.action-box{
   min-height: 70vh;
   border: 1px solid var(--border-color);
   height:100%;
   padding: 25px 15px;
}

.FieldDisabled{
   border: 1px solid #ccc;
   background: #efefef;
   cursor: not-allowed;
}

.headTable{
  /*background-color:#8DDDFF !important;*/
  height:35px !important;
}

th{
  /*height:35px;*/
  /*background: rgb(85,205,167);
  background: linear-gradient(180deg, rgba(85,205,167,1) 20%, rgba(49,141,132,1) 80%);*/
  background: #6fb39d;
  text-align: center;
  vertical-align: middle;
  
}

table.dataTable thead tr th:not(:last-child) {
   border-right: solid #FFF 2px;
}

th:first-child {
  border-radius: 5px 0 0 0;
}
th:last-child {
  border-radius: 0 5px 0 0;
}

tr.dtrg-group.dtrg-start.dtrg-level-0 > th {
    border-radius: 0;
    /*background: linear-gradient(to right, #000 60%, #000 100%);*/
    text-align: start;
    padding-left: 1rem;
    color: white;
    font-weight: normal;
}

td{
  vertical-align: top;
}
.formatTable tr:nth-child(even)
{
   background-color: #cfefe6;
   /*cursor:pointer !important;*/
}
.formatTable tr:nth-child(odd)
{
   background-color: #F5FDFF;
   /*cursor:pointer !important;*/
}

.formatTable tr:hover 
{
   background-color: #aad5c9;
   cursor:pointer !important;
}

table.dataTable tbody td {
  vertical-align: middle;
}

table.dataTable tbody tr td:not(:last-child) {
   border-right: solid #d5d5d5 2px;
}

 .form-group [class*='col'] > *:focus , .form-group [class*='col'] .input-group:not(.has-error) > *:focus {
   border-color: #d0d0d0 !important;
   -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #62c8dd  !important;
   box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #62c8dd  !important;
 }

 .form-group .has-error > * {
   border-color: #ff2200 !important;
   -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075) !important;
   box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075) !important;
 }
 .form-group .has-error > *:focus {
   border-color: #ff2200 !important;
   -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #dd4a48 !important;
   box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #dd4a48 !important;
 }
 
 .input-group .has-error > * {
   border-color: #ff2200 !important;
   -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #dd4a48 !important;
   box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #dd4a48 !important;
 }
 .input-group .has-error > *:focus {
   border-color: #ff2200 !important;
   -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #dd4a48 !important;
   box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #dd4a48 !important;
 }
.form-control[readonly]:focus {
   background-color: #efefef;
}
 
/* Modal and Close Button. */
.close-button {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: .5;
}

.close-button:hover {
  color: #000;
  text-decoration: none;
}

.close-button:not(:disabled):not(.disabled):hover, .close-button:not(:disabled):not(.disabled):focus {
  opacity: .75;
}

button.close-button {
  padding: 0;
  background-color: transparent;
  border: 0;
}

.modal-open {
   overflow: hidden;
 }
 
 .modal-open .modal {
   overflow-x: hidden;
   overflow-y: auto;
 }
 
 .modal {
   position: fixed;
   top: 0;
   left: 0;
   z-index: 1050;
   display: none;
   width: 100%;
   height: 100%;
   overflow: hidden;
   outline: 0;
 }
 
 .modal-dialog {
   position: relative;
   width: auto;
   margin: 0.5rem;
   pointer-events: none;
 }
 
 .modal.fade .modal-dialog {
   transition: -webkit-transform 0.3s ease-out;
   transition: transform 0.3s ease-out;
   transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
   -webkit-transform: translate(0, -50px);
   transform: translate(0, -50px);
 }
 
 @media (prefers-reduced-motion: reduce) {
   .modal.fade .modal-dialog {
     transition: none;
   }
 }
 
 .modal.show .modal-dialog {
   -webkit-transform: none;
   transform: none;
 }
 
 .modal.modal-static .modal-dialog {
   -webkit-transform: scale(1.02);
   transform: scale(1.02);
 }
 
 .modal-dialog-scrollable {
   display: -ms-flexbox;
   display: flex;
   max-height: calc(100% - 1rem);
 }
 
 .modal-dialog-scrollable .modal-content {
   max-height: calc(100vh - 1rem);
   overflow: hidden;
 }
 
 .modal-dialog-scrollable .modal-header,
 .modal-dialog-scrollable .modal-footer {
   -ms-flex-negative: 0;
   flex-shrink: 0;
 }
 
 .modal-dialog-scrollable .modal-body {
   overflow-y: auto;
 }
 
 .modal-dialog-centered {
   display: -ms-flexbox;
   display: flex;
   -ms-flex-align: center;
   align-items: center;
   min-height: calc(100% - 1rem);
 }
 
 .modal-dialog-centered::before {
   display: block;
   height: calc(100vh - 1rem);
   height: -webkit-min-content;
   height: -moz-min-content;
   height: min-content;
   content: "";
 }
 
 .modal-dialog-centered.modal-dialog-scrollable {
   -ms-flex-direction: column;
   flex-direction: column;
   -ms-flex-pack: center;
   justify-content: center;
   height: 100%;
 }
 
 .modal-dialog-centered.modal-dialog-scrollable .modal-content {
   max-height: none;
 }
 
 .modal-dialog-centered.modal-dialog-scrollable::before {
   content: none;
 }
 
 .modal-content {
   position: relative;
   display: -ms-flexbox;
   display: flex;
   -ms-flex-direction: column;
   flex-direction: column;
   width: 100%;
   pointer-events: auto;
   background-color: #fff;
   background-clip: padding-box;
   border: 1px solid rgba(0, 0, 0, 0.2);
   border-radius: 0.3rem;
   outline: 0;
 }
 
 .modal-backdrop {
   position: fixed;
   top: 0;
   left: 0;
   z-index: 1040;
   width: 100vw;
   height: 100vh;
   background-color: #000;
 }
 
 .modal-backdrop.fade {
   opacity: 0;
 }
 
 .modal-backdrop.show {
   opacity: 0.5;
 }
 
 .modal-header {
   display: -ms-flexbox;
   display: flex;
   -ms-flex-align: start;
   align-items: flex-start;
   -ms-flex-pack: justify;
   justify-content: space-between;
   padding: 1rem 1rem;
   border-bottom: 1px solid #dee2e6;
   border-top-left-radius: calc(0.3rem - 1px);
   border-top-right-radius: calc(0.3rem - 1px);
 }
 
 .modal-header .close-button {
   padding: 1rem 1rem;
   margin: -1rem -1rem -1rem auto;
 }
 
 .modal-title {
   margin-bottom: 0;
   line-height: 1.5;
 }
 
 .modal-body {
   position: relative;
   -ms-flex: 1 1 auto;
   flex: 1 1 auto;
   padding: 1rem;
 }
 
 .modal-footer {
   display: -ms-flexbox;
   display: flex;
   -ms-flex-wrap: wrap;
   flex-wrap: wrap;
   -ms-flex-align: center;
   align-items: center;
   -ms-flex-pack: end;
   justify-content: flex-end;
   padding: 0.75rem;
   border-top: 1px solid #dee2e6;
   border-bottom-right-radius: calc(0.3rem - 1px);
   border-bottom-left-radius: calc(0.3rem - 1px);
 }
 
 .modal-footer > * {
   margin: 0.25rem;
 }
 
 .modal-scrollbar-measure {
   position: absolute;
   top: -9999px;
   width: 50px;
   height: 50px;
   overflow: scroll;
 }
 
 @media (min-width: 576px) {
   .modal-dialog {
     max-width: 500px;
     margin: 1.75rem auto;
   }
   .modal-dialog-scrollable {
     max-height: calc(100% - 3.5rem);
   }
   .modal-dialog-scrollable .modal-content {
     max-height: calc(100vh - 3.5rem);
   }
   .modal-dialog-centered {
     min-height: calc(100% - 3.5rem);
   }
   .modal-dialog-centered::before {
     height: calc(100vh - 3.5rem);
     height: -webkit-min-content;
     height: -moz-min-content;
     height: min-content;
   }
   .modal-sm {
     max-width: 300px;
   }
 }
 
 @media (min-width: 992px) {
   .modal-lg,
   .modal-xl {
     max-width: 800px;
   }
 }
 
 @media (min-width: 1200px) {
   .modal-xl {
     max-width: 1140px;
   }
 }
 
.del-rec{
   text-align: center;
   background-color: transparent !important;
   min-height: 50px;
   display: flex;
   align-items: center;
   font-weight: bold;
}

.required::after {
    content: " *";
    color: red;
    font-size: 1.2em;
    margin-left: 5px;
}

.logo-header{
   cursor: pointer;
}
.card-tabs {
   margin-bottom: 20px;
}

hr{
   margin: 0.5rem 0;
}
.tab-header {
   background-color: transparent;
   padding: 0 15px 0 15px;
   border-radius: 5px;
}
.tab-header .header-main {
   margin: 0;
   font-weight: 600;
   font-size: 1.3rem;
}
.tab-header .header-sub {
   margin: 0;
   font-weight: 200;
   font-size: 1.2rem;
}

.tab-detail {
   /*background: #338E86;*/
   background: #E7FAF3;
   border: 1px solid #dee2e6;
   border-radius: 20px;
   padding: 20px 30px;
   margin: 5px 0;
}

.tab-detail.product{
   background: #338E86;
   color: white;
}

.group-row.department {
    border: 1px solid #31AAA3;
    display: flex;
    justify-content: center;
    background: #fff;
}

.department {
    border: 1px solid #31AAA3;
    border-radius: 20px;
    padding: 10px 20px;
    margin: 15px 0 !important;
}

.department .department-header{
   /*border: 1px solid #31AAA3;*/
   border-radius: 20px;
   display: flex;
   background: transparent;
   justify-content: center;
   max-width: 65%;
}

.department .department-title {
    font-size: 20px;
    color: #3DA998;
    font-weight: 600;
    height: 100%;
    align-content: center;
}

.department-detail{
   padding: 10px 10px 10px 45px;
}

.tab-detail p {
   font-size: 14px;
}

.tab-detail a:hover, a:hover{
   color: #1979e3 !important
}

.tab-detail .product-header {
   font-weight: 500;
   color: #fff;
   padding: 15px 0;
   margin: 2px 0;
   /*background: rgba(72, 141, 156, 0.9);*/
   border-radius: 20px;
}

.tab-detail .topic-header{
   font-weight: 500;
   color: #3DA998;
   padding: 0;
   margin: 2px 0;
   /*background: rgba(72, 141, 156, 0.9);*/
   border-radius: 20px;
}

.tab-detail .product-topic, .tab-detail .department-topic {
   font-size: 1.2rem;
   font-weight: 400;
   padding: 10px;
}

.tab-detail .product-detail, .tab-detail .department-doc-detail {
   font-weight: 200;
   letter-spacing: 0.45px;
   font-size: 16px;
   /*padding: 4px;*/
}

.header-title > p {
  font-weight: 500;
  font-size: 1.2em;
}

.search-bar-wrapper {
  position: sticky;
  top: 20px;
  z-index: 9;
  transition: all 0.3s;
}

.search-bar-wrapper.scroll{
   top: 75px;
}

.search-bar-element {
   place-content: center;
   height: 43px;
   background: #D6FAED;
   padding: 5px;
   display: flex;
   align-items: center;
   gap: 5px;
   /*box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;*/
}

.search-bar-element input{
   line-height: 2;
   padding: .225rem .885rem;
}

.row.search-bar-bg {
   padding: 3px;
   background: #D6FAED;
   margin: 0px;
   justify-content: center;
}

.back-to-top {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background-color: #2e888c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.8s, visibility 0.8s, opacity 0.8s;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-20px);
  transition: transform 0.8s, visibility 0.8s, opacity 0.8s;
}

.back-to-top:hover {
  background-color: #279F8C;
  box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.7)
}

/* Footer area*/
.footer-area{
   padding: 40px 0 20px 0;
}

.footer-area .bi{
   margin-right: 10px;
   color: #6fdfb7;
}
.logo-footer{
   padding-top: 20px;
   display: flex;
   justify-content: center;
}

.logo-footer img{
   max-width: 100%;
   height: auto;
}

.footer-title{
   color: #2e888c;
   margin: 8px;
}

a{
   color: #000 !important;
   text-decoration: none !important;
}

.bg-doa {
    opacity: 0.2;
    position: absolute;
    width: 170px;
    left: 84%;
}

.card-image-department {
    display: flex;
    justify-content: center;
    min-height: 200px;
}

.card-image-department  img {
    max-height: 180px;
    max-width: 180px;
}

 .swiper-container {
   width: 100%;
   padding-top: 20px;
   padding-bottom: 20px;
   overflow: hidden;
   position: relative;
 }
 
.icon-inline{
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: -0.125em;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 5px;
  font-size: 20px;
  vertical-align: middle;
}

.icon-announce1 {
    background-image: url("../../Images/icons-announce-1.png");
}

.icon-announce2 {
    background-image: url("../../Images/icons-announce-2.png");
}

.icon-cer1 {
    background-image: url("../../Images/icons-cer-1.png");
}

.icon-cer2 {
    background-image: url("../../Images/icons-cer-2.png");
}

.icon-guide1 {
    background-image: url("../../Images/icons-guide-1.png");
}

.icon-guide2 {
    background-image: url("../../Images/icons-guide-2.png");
}

.icon-law1 {
    background-image: url("../../Images/icons-law-1.png");
}

.icon-law2 {
    background-image: url("../../Images/icons-law-2.png");
}

.icon-rule1 {
    background-image: url("../../Images/icons-rule-1.png");
}

.icon-rule2 {
    background-image: url("../../Images/icons-rule-2.png");
}

.icon-green-checkmark {
    background-image: url("../../Images/green_checkmark.png");
}

.icon-no-checkmark{
    background-image: url("../../Images/no_checkmark.png");
}

.icon-menu-master{
    background-image: url("../../Images/menu-master.png");
}

.icon-menu-export{
    background-image: url("../../Images/menu-export.png");
}

.icon-menu-import{
    background-image: url("../../Images/menu-import.png");
}

.icon-menu-transit{
    background-image: url("../../Images/menu-transit.png");
}

.icon-menu-report{
    background-image: url("../../Images/menu-report.png");
}

.trim100char {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 4.5em; /* Adjust based on line height */
    line-height: 1.5em; /* Adjust based on your font size */
}


.swiper-button-prev, .swiper-button-next, .swiper-pagination{
   color: #6fdfb7 !important;
   z-index: 1 !important;
   opacity: 1;
}

/* modified swiper icons */
.swiper-button-prev:after, .swiper-button-next:after{
   font-size: 22px !important;
}

.swiper-pagination-bullet-active{
   background: #6fdfb7 !important;
}

.bg-footer-section{
   opacity: 1;
   background: url("../../Images/Rectangle_130.png") ;
   background-size: cover;
   overflow-x: hidden
}

.card-dpt-detail, .card-dpt-detail p{
   margin: 0.5rem 0 0.5rem 0;
   color: #fff;
}

@media (max-width:991px){

 /* Image */
 .it-be-like-map .pin-control img{
  display:inline-block;
  transform:translatex(-40px) translatey(0px);
 }
 .it-be-like-map .pin-control.pinstep-2{
    z-index: 2;
 }
 .it-be-like-map .pin-control.pinstep-4 {
    transform:translatex(-60px) translatey(-10px);
 }
 
  .it-be-like-map .pin-control.pinstep-5 {
    transform: translatex(-40px) translatey(52px);
 }
 
}
