/* Google Fonts  */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@200;400&display=swap');

/* Globals  */

*{
    font-family: 'Noto Sans Thai', sans-serif;
    font-size: .950rem;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

/* Variables  */
:root{
    --sidebar-color: #FFF;
    --primary-color: #695CFE;
    --color_depa: #FFF200;
    --color_Dark1: #0C2F53;
    --color_Dark2: #01579b;
    --color_Dark3: #000;
    --color_Light0: #fff;
    --color_Light1: #dfdfdf;
    --color_Light2: #c4c4c4;
}
.logo-title{
    width: 50px !important;
    height: 75px !important;
}
.fa-arrow-size{
    font-size: 12px;
}
.fa-bank-size{
    font-size: 20px;
}

.namefund {
    font-size: 18px;
}

body{
    width: 100%;
    height: 100%;
}

/* =============== Sidebar =============== */
.sidebar{
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 268px;
    background-color: var(--color_Dark1);
    transition: all .5s ease;
    cursor:pointer;
}
.hr-titel{
  width: 70%;
  margin-left: auto;
  margin-right: auto;
  color: #FFF;
}
.sidebar.close{
    width: 78px;
}
.sidebar.close .logo-box img{
  padding-top: 5%;
  padding-left: 25%;
  height: 70px;
  width: 50px;
}

.sidebar header{
    position: relative;
}

/* --------- Logo ------------ */
.logo-box{
    height: 65px;
    width: 100%;
    display: flex;
    padding-left: 10%;
    padding-top: 5%;
    align-items: center;
    color: var(--color_Light0);
    transition: all .5s ease;
}

.profile{
  border-radius: 50%;
  width: 30px;
  height: 45px;
}
/* .logo-box:hover{
    color: var(--color_depa);
} */
.logo-box img{
    /* font-size: 30px; */
    /* height: 67px;
    width: 30px; */
    text-align: center;
    line-height: 60px;
    transition: all .5s ease;
}
.sidebar.close .logo-box i{
    transform: rotate(360deg);
}
.logo-name{
    font-size: 22px;
    font-weight: 600;
}
.title-deap{
    margin-right:950;
    font-size: 20px;
}

/* ---------- Sidebar List ---------- */
.sidebar-list{
  height: calc(100vh - var(--header-h));
  padding: 12px 0 24px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin-top: -15px;
}
.sidebar-list::-webkit-scrollbar{
    display: none;
}
.sidebar-list li{
    transition: all .5s ease;
}
.sidebar-list li:hover{
    background-color: var(--color_Dark2);
}

.sidebar-list li .title{
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .5s ease;
    cursor: pointer;
}
.active{
    background-color: var(--color_Dark2);
}
.active1{
 color: var(--color_depa);
 border-bottom: 2.5px solid  var(--color_depa);
 border-radius: 2px;
 transition: 0.5s ease;
}
.active-user{
    font-size: 16px;
    padding: 20px;
    text-transform: uppercase;
    border-top: 1px solid #dbdcd2;
    background-color: #01579b!important;
}
/* :hover{
    background: #01579b;
} */
.profile_admin{
  color: #fff200;
  border-bottom: 2.5px solid  var(--color_depa);
  border-radius: 2px;
  transition: 0.5s ease;
 }
.a-showfund{
  text-decoration: none;
  color: #000;
  font-size: 15px;
  font-weight: 600;
}
.active_showfund{
  /* color: #fff200; */
  border-bottom: 3.5px solid  var(--color_depa);
  border-radius: 3px;
  transition: 0.5s ease;
 }

.sidebar-list li.active .bxs-chevron-down{
    transition: all .5s ease;
    transform: rotate(180deg);
    
}
.sidebar-list li .title .link{
    display: flex;
    align-items: center;
}
.sidebar-list li .title i{
    height: 50px;
    min-width: 78px;
    text-align: center;
    line-height: 50px;
    color: var(--color_Light1);
    font-size: 20px;
}
.sidebar-list li .title .name{
    font-size: 18px;
    font-weight: 400;
    color: var(--color_Light1);
}

/* ---------------- Submenu ------------- */
.sidebar-list li .submenu{
    width: 0;
    height: 0;
    opacity: 0;
    transition: all .5s ease;
}
.sidebar-list li.dropdown.active .submenu{
    width: unset;
    height: unset;
    opacity: 1;
    display: grid;
    flex-direction:column;
    /* flex-direction: column; */
    padding: 6px 6px 14px 80px;
    background-color: var(--color_Dark2);  
}
.submenu .link{
    color: var(--color_Light2);
    font-size: 15px;
    padding: 5px 0;
    transition: all .5s ease;
    text-decoration: none;
}
.submenu .link:hover{
    color: #fff;
}
.submenu-title{
    display: none;
}


/* ---------------- Submenu Close ------------- */
.sidebar.close .logo-name,
.sidebar.close .title .name,
.sidebar.close .title .bxs-chevron-down
{
    display: none;
}

.sidebar.close .sidebar-list{
    overflow: visible;
}
.sidebar.close .sidebar-list li{
    position: relative;
}
.sidebar.close .sidebar-list li .submenu{
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 100%;
    top: -10px;
    margin-top: 0;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    height: max-content;
    width: max-content;
    opacity: 0;
    transition: all .5s ease;
    pointer-events: none;
}
.sidebar.close .sidebar-list li:hover .submenu{
    opacity: 1;
    top: 0;
    pointer-events: initial;
    background-color: var(--color_Dark2);
}
.sidebar.close .submenu-title{
    display: block;
    font-style: 18px;
    color: var(--color_Light1);
}

.topbar-divider {
    width: 0;
    border-right: 1px solid #ADB2B4;
    height: calc(4.375rem - 2rem);
    margin: auto -1rem;
  }

  
/* ------------ dropdown ------------ */
button{
    border: 0;
}
.dropdown-menu{
    position: absolute;
    transform: translate(-2px, 0px);
    width: 80%;
    background: #fff;
}
.select-btn{
    display: flex;
    width: auto;
    height: 36px;
    background: #FFF;
    padding: 16px;
    font-size: 10px;
    letter-spacing: 0;
    /* margin-right: 12px; */
    border-radius: 5px;
    align-items: center;
    cursor: pointer;
    justify-content: space-between;
}
.select-btn:hover{
    background: #CCCDCD;
}
.select-btn b{
    font-size: 16px;
}
.select-btn i{
    font-size: 25px;
    margin-right: 2px;
}
.dropdown-menu .option{
    text-decoration: none;
    font-weight: 600;
    color: #000;
    display: flex;
    height: 35px;
    cursor: pointer;
    padding: 0 16px;
    border: 0px solid #000000;
    border-radius: 8px;
    align-items: center;
    margin-top: 0px;
}
.dropdown-menu .option:hover{
    background: #E7E9EA ;
}
.dropdown-menu li{
    margin-top: 6px;
}
.option i{
    font-size: 16px;
    margin-right: 10px; 
}
.option .option-text{
    font-size: 18px;
    color: #333;
}
.navbar{
    height: 55px;
    position: fixed;
    background: #fff;
    width: 100%;
}
.ham-menu {
    display: inline-block;
    cursor: pointer;
  }
  
  .bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
  }
  
  /* Rotate first bar */
  .change .bar1 {
    transform: translate(0, 11px) rotate(-45deg);
  }
  
  /* Fade out the second bar */
  .change .bar2 {opacity: 0;}
  
  /* Rotate last bar */
  .change .bar3 {
    transform: translate(0, -11px) rotate(45deg);
  }

/* .con-t{

} */
.btn-025{
    background:  #5568fb;
}
.btn-025:hover{
    background:  #5568fb;
}
/* .dropdown-showfund{

} */
.dropdown-showfund li:hover{
   background: #dfe2e5;
}
.dropdown-showfund i{
    margin-right: 10px; 
}
.shadowshare{
  box-shadow: 3px 3px 8px 4px rgba(250, 249, 249, 0.28);
}
.invest_box{
    /* background: linear-gradient(to right,rgb(232, 228, 244),rgb(229, 223, 248)); */
    box-shadow: 1px -1px 9px 4px rgba(0, 0, 0, 0.1);
}

.h-title{
    font-size: 16px;
    font-weight: 600;
}
.font-title-2{
    font-size: 16px;
}
.header-tt{
  box-shadow: 1px 1px 6px 2px rgba(0, 0, 0, 0.55);
  /* background-image: url("../images/"); */
}

.show-share{
    position: relative;
    background-image: radial-gradient(circle at 25% 56%, rgba(0,0,0, 0.13) 0%, rgba(0,0,0, 0.13) 2%,transparent 2%, transparent 100%),radial-gradient(circle at 82% 13%, rgba(0,0,0, 0.13) 0%, rgba(0,0,0, 0.13) 2%,transparent 2%, transparent 100%),radial-gradient(circle at 83% 72%, rgba(14,14,14, 0.11) 0%, rgba(14,14,14, 0.11) 8%,transparent 8%, transparent 100%),radial-gradient(circle at 2% 3%, rgba(14,14,14, 0.11) 0%, rgba(14,14,14, 0.11) 8%,transparent 8%, transparent 100%),radial-gradient(circle at 40% 42%, rgba(0,0,0, 0.13) 0%, rgba(0,0,0, 0.13) 8%,transparent 8%, transparent 100%),radial-gradient(circle at 65% 1%, rgba(0,0,0, 0.13) 0%, rgba(0,0,0, 0.13) 8%,transparent 8%, transparent 100%),radial-gradient(circle at 14% 41%, rgba(14,14,14, 0.11) 0%, rgba(14,14,14, 0.11) 5%,transparent 5%, transparent 100%),radial-gradient(circle at 67% 71%, rgba(0,0,0, 0.13) 0%, rgba(0,0,0, 0.13) 5%,transparent 5%, transparent 100%),radial-gradient(circle at 11% 31%, rgba(14,14,14, 0.11) 0%, rgba(14,14,14, 0.11) 5%,transparent 5%, transparent 100%),linear-gradient(360deg, rgb(12,47,83),rgb(12,47,83));
    /* background-image: url("../images/bg-share.png"); */
}
.fund-h{
    position: relative;
    background-image: radial-gradient(circle at 25% 56%, rgba(0,0,0, 0.03) 0%, rgba(0,0,0, 0.03) 2%,transparent 2%, transparent 100%),radial-gradient(circle at 82% 13%, rgba(0,0,0, 0.03) 0%, rgba(0,0,0, 0.03) 2%,transparent 2%, transparent 100%),radial-gradient(circle at 83% 72%, rgba(0,0,0, 0.03) 0%, rgba(0,0,0, 0.03) 8%,transparent 8%, transparent 100%),radial-gradient(circle at 2% 3%, rgba(0,0,0, 0.03) 0%, rgba(0,0,0, 0.03) 8%,transparent 8%, transparent 100%),radial-gradient(circle at 40% 42%, rgba(0,0,0, 0.03) 0%, rgba(0,0,0, 0.03) 8%,transparent 8%, transparent 100%),radial-gradient(circle at 65% 1%, rgba(0,0,0, 0.03) 0%, rgba(0,0,0, 0.03) 8%,transparent 8%, transparent 100%),radial-gradient(circle at 14% 41%, rgba(0,0,0, 0.03) 0%, rgba(0,0,0, 0.03) 5%,transparent 5%, transparent 100%),radial-gradient(circle at 67% 71%, rgba(0,0,0, 0.03) 0%, rgba(0,0,0, 0.03) 5%,transparent 5%, transparent 100%),radial-gradient(circle at 11% 31%, rgba(0,0,0, 0.03) 0%, rgba(0,0,0, 0.03) 5%,transparent 5%, transparent 100%),linear-gradient(45deg, rgb(255,242,0),rgb(255,242,0));
}
.bottom-fund{
    z-index: 10;
}
svg{
    z-index: 5;
    position: absolute;
}

.font_inv{
    font-size: 16.5px;
}
.title-nameF{
    margin-left: 30px;
}
.bank_p:hover{
    transform: scale(1.05);
}

/* --- icon --- */
.fa-hand-holding-dollar{
    font-size: 18px;
}
.bx-user-plus{
    font-size: 18px;
}

.bx-message-square-add{
    font-size: 20px;
    color: rgba(9, 193, 74, 0.951);
}
.bx-message-square-edit{
    font-size: 20px;
    color: rgba(0,0,0);
}
.content{
    min-height:calc(100vh - 110px);
  }

  /* --------- slider ------------- */
.swiper{ /*ปรับภาพ*/
    width: 100%;  
    height: fit-content;
    overflow: hidden;
    text-align: center;
}
.swiper-slide img{
    width: 100%;
    max-height: 400px;
}
.swiper .swiper-button-prev,.swiper .swiper-button-next{
    color: #000; /*ปรับสีปุ่มswiper*/  
}
.swiper .swiper-button-next:hover{
    color: #fff200; 
}
.swiper .swiper-button-prev:hover{
    color: #fff200;
}
.swiper .swiper-pagination-bullet-active{
    background-color: rgb(23, 20, 20);
}
.card_dbfund_user{
    background-color: #fff3cd;
}
.card_dbshare_user{
    background-color: #d1e7dd;
}
blockquote {
    padding: .5rem 1rem;
    font-size: 1.25rem;
    border-left: .25rem solid #eceeef;
}
blockquote {
    margin: 0 0 1rem;
}

/* -------------- Backgrounds bg-warning --------------*/
.bg-warning *,
.bg-warning .batch-icon {
    color: #131212;
    cursor: pointer;
}
.bg-warning.bg-gradient {
    background: #FC9131;
    background: -webkit-linear-gradient(-45deg, #FC9131 0%, #FCCF31 100%);
    background: linear-gradient(135deg, #FC9131 0%, #FCCF31 100%)
}
.bg-warning:hover{
    transform: scale(1.03);
}

/* img in card bg-warning */
.title-img img{
    align-items: center;
    width: 50%;
}

.title-post{
    font-size: 16px;
}
.l-bg-blue-dark {
    background-color: #dfdfdf;
}
.content-news-custom{
    z-index: 100;
    background: #ffff;
    border-radius: 10px;
}
/* ---------- scrollbar ---------- */
.scrollbar{
    /* height: 300px; */
    overflow: hidden;
    overflow-y: scroll;
}
/* ---------- STYLE scrollbar news post ---------- */
.scrollbar-post{
  min-height: fit-content;
  max-height: 1500px;
  overflow: hidden;
  overflow-y: scroll;
}
.scrollbar-post::-webkit-scrollbar{
  width: 0.5rem;
  height: 0.5rem;
}
.scrollbar-post::-webkit-scrollbar-thumb{
  border-radius: .5rem;
  background-color: #0004;
  visibility: hidden;
}
.scrollbar-post:hover::-webkit-scrollbar-thumb{ 
  visibility: visible;
}
.scrollbar-db::-webkit-scrollbar{
    width: 0.5rem;
    height: 0.5rem;
  }
  .scrollbar-db::-webkit-scrollbar-thumb{
    border-radius: .5rem;
    background-color: #0004;
    visibility: hidden;
  }
  .scrollbar-db:hover::-webkit-scrollbar-thumb{ 
    visibility: visible;
  }
  

/* ---------- scrollbar news ---------- */
.scrollbar-new{
    height:  300px;
    overflow: hidden;
    overflow-y: scroll;
}
/* ---------- scrollbar โพสต์ที่ปักหมุด ---------- */
.scrollbar-new1{
  height: 500px;
  overflow: hidden;
  overflow-y: scroll;
}
/* ---------- scrollbar showfund ---------- */
.scrollbar-showfund1{
    height: 100%;
    max-height: 30vh;
    overflow: hidden;
    overflow-y: scroll;
  }
.scrollbar-showfund{
  height: 30vh;
  max-height: 30vh;;
  overflow: hidden;
  overflow-y: scroll;
}
/* ---------- scrollbar showfund ---------- */
.scrollbar-DB_users{
  max-height: 580px;;
  overflow: hidden;
  overflow-y: scroll;
}

/* ---------- STYLE scrollbar จัดการรูปภาพใน Slide Show ---------- */
.scrollbar-Slide{
  min-height: fit-content;
  max-height: 700px;
  overflow: hidden;
  overflow-y: scroll;
}
.scrollbar-Slide::-webkit-scrollbar{
  width: 0.5rem;
  height: 0.5rem;
}
.scrollbar-Slide::-webkit-scrollbar-thumb{
  border-radius: .5rem;
  background-color: #0004;
  visibility: hidden;
}

.scrollbar-Slide:hover::-webkit-scrollbar-thumb{ 
  visibility: visible;
}


/* ---------- กรอบcard animation ---------- */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  @keyframes rotate {
    100% {
      transform: rotate(0.8turn);
    }
  }
  
  .rainbow {
    position: relative;
    z-index: 0;
    /* width: 400px;
    height: 300px; */
    border-radius: 10px;
    overflow: hidden;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
    font-weight: bold;
    
    &::before {
      content: '';
      position: absolute;
      z-index: -2;
      left: -50%;
      top: -50%;
      width: 200%;
      height: 200%;
      background-color: #399953;
      background-repeat: no-repeat;
      background-size: 50% 50%, 50% 50%;
      background-position: 0 0, 100% 0, 100% 100%, 0 100%;
      background-image: linear-gradient(#399953, #399953), linear-gradient(#fbb300, #fbb300), linear-gradient(#d53e33, #d53e33), linear-gradient(#377af5, #377af5);
      animation: rotate 4s linear infinite;
    }
    
    &::after {
      content: '';
      position: absolute;
      z-index: -1;
      left: 6px;
      top: 6px;
      width: calc(100% - 12px);
      height: calc(100% - 12px);
      background: white;
      border-radius: 5px;
    }
  }


/* ----------------- แบคกราวด์ ฟองสบู่ -------------------- */

/* .area{
    background: rgb(197, 222, 251);  
    background: -webkit-linear-gradient(to left, #8f94fb, #4e54c8);  
    width: 100%;
} */
.circles{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.circles li{
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(251, 226, 36, 0.2);
    animation: animate 50s linear infinite;
    bottom: -150px;
    
}
.circles li:nth-child(1){
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}
.circles li:nth-child(2){
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}
.circles li:nth-child(3){
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}
.circles li:nth-child(4){
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5){
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}
.circles li:nth-child(6){
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}
.circles li:nth-child(7){
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}
.circles li:nth-child(8){
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}
.circles li:nth-child(9){
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}
.circles li:nth-child(10){
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}
@keyframes animate {

    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }

}


/* -------------- menu Responsive -------------- */
* {
    background: 0;
    margin: 0;
    padding: 0;
    }
#menu-wrapper {
    overflow: hidden;
    max-width: 100%;
    cursor: pointer;
}
#menu-wrapper #hamburger-menu {
    position: relative;
    width: 25px;
    height: 20px;
    margin: 15px;
}
#menu-wrapper #hamburger-menu span {
    opacity: 1;
    left: 0;
    display: block;
    width: 100%;
    height: 1px;
    border-radius: 10px;
    color: black;
    background-color: #000;
    position: absolute;
    transform: rotate(0deg);
    transition: .4s ease-in-out;
}

#menu-wrapper #hamburger-menu span:nth-child(1) {
    top: 0;
}
#menu-wrapper #hamburger-menu span:nth-child(2) {
    top: 9px;
}
#menu-wrapper #hamburger-menu span:nth-child(3) {
    top: 18px;
}
#menu-wrapper #hamburger-menu.open span:nth-child(1) {
    transform: translateY(9px) rotate(135deg);
}
#menu-wrapper #hamburger-menu.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-60px);
}
#menu-wrapper #hamburger-menu.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-135deg);
}

#menu-container .menu-list .menu-submenu {
    padding-top: 8px;
    padding-bottom: 10px;
}
#menu-container .menu-list {
    padding-left: 0;
    display: block;
    width: 100%;
    max-width: 250px;
    background: white;
    box-shadow: rgba(100,100,100,0.2) 6px 2px 10px;
    z-index: 999;
    overflow-x: hidden;
    position: fixed;
  top: var(--header-h);
  bottom: 0;
  left: -100%;
  width: 260px;
  max-width: 80vw;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
/* .menu-1{
    height: 50%;
    font-size: 16px;
    padding: 20px;
    text-transform: uppercase;
    border-top: 1px solid #dbdcd2;
} */
.menu-submenu{
    background: #01579b;
}
.menu-submenu li a:hover{
    background: #01579b;
    color: #fff200;
}
.menu-submenu li{
    padding: 7px 0;
}
.menu-submenu li a{
    color: #fff;
    text-decoration: none; 
}
#menu-container .menu-list li.accordion-toggle, #menu-container .menu-list .menu-login {
    font-size: 16px;
    padding: 20px;
    text-transform: uppercase;
    border-top: 1px solid #dbdcd2;
    /* background: #0C2F53; */
    background-color: #0C2F53;
}
/* #menu-container .menu-list li.accordion-toggle, #menu-container .menu-list .menu-login:hover{
    font-size: 16px;
    padding: 20px;
    text-transform: uppercase;
    border-top: 1px solid #dbdcd2;
    background: #62a3e3;
} */
#menu-container .menu-list li.accordion-toggle:hover{
    background: #01579b;
}
#menu-container .menu-list li:first-of-type {
    border-top: 0;
}
.accordion-toggle, .accordion-content {
    cursor: pointer;
    font-size: 16px;
    position: relative;
    letter-spacing: 1px;
}
  .accordion-content {
    display: none;
}
.menu-list:hover{
  background: #faf9e3;
}
/* + + + +  */
.accordion-toggle a:before, .accordion-toggle a:after {  
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  right: 30px;
  width: 8px;
  height: 2px;
  margin-top: -1px;
  /* background-color: #fff; */
  transform-origin: 50% 50%;
  transition: all 0.3s ease-out;
}
.menu-link{
    color: #fff; 
    text-decoration: none; 
    font-weight: 600;
}
.accordion-toggle a:before {
  transform: rotate(-90deg);
  opacity: 1;
  z-index: 2;
}
.menu-link1{
  color: #fff;
  text-decoration: none;
}
.accordion-toggle i{
    color: #fff;
}
.accordion-toggle.active-tab {
background: #fff;
transition: all 0.3s ease;
}
.accordion-toggle a.active:before {
  transform: rotate(0deg);
  background: #fff !important;
}

.accordion-toggle a.active:after {
  transform: rotate(180deg);
  background: #fff !important;
  opacity: 0;
}
.t-share{
    font-size: 16px;
}
/* ---------------- END -----------------   */
.menu__link {
    color: #e51c23;
    line-height: 2;
    position: relative;
  }
  
  .menu__link::before {
    content: '';
    width: 0;
    height: 2px;
    border-radius: 2px;
    background-color: #e51c23;
    position: absolute;
    bottom: -.25rem;
    left: 0;
    transition: width .4s;
  }
  
  .menu__link:hover::before {
    width: 100%;
  }
/* ---------------------- END --------------------- */

.box-content-Pie{
    transform: translate(-90px, 0px) !important;
}
.box-Chart-Pie{
    transform: translate(80px, 0px) !important;
}

/* -------------- start menu Responsive -------------- */
 @media only screen and (max-width: 1200px) {
    .menu{
        display: none;
    }
    .hamburger-menu{
    display: none;
    }
  }
 /* ซ่อนเมนู hamburger เฉพาะตอนจอใหญ่ที่ sidebar กลับมาแล้ว */
  @media only screen and (min-width: 1200px) {
    #menu-container .menu-list{
      display: none !important;
    }
  }

/* -------------- Responsive Dashbord -------------- */
  @media only screen and (max-width: 1290px) {

    .box-content-Pie{
        transform: translate(0px, 0px) !important;
    }
    .box-Chart-Pie{
        transform: translate(0px, 0px) !important;
    }
    .img-user-1{
        margin-left: -50px;
    }
    .con-dash-user{
        transform: translate(0px, 20px);
    }
  }

  @media only screen and (max-width: 1200px) {
    .box-content-Pie{
        transform: translate(0px, 0px) !important;
    }
    .box-Chart-Pie{
        transform: translate(0px, 0px) !important;
    }
    .dash-user{
        min-width: 50%;
    }
  }

  @media only screen and (max-width: 900px) {
    .model-beneficia{
        max-width: 70% !important;
    }
    .model-edit-beneficia{
        max-width: 70% !important;
    }
    .box-content-Pie{
        transform: translate(0px, 0px) !important;
    }
    .box-Chart-Pie{
        transform: translate(0px, 0px) !important;
    }
    .t-share{
        font-size: 14px;
    }
    .widgets-icons-6{
        width: 20px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #ededed;
        font-size: 16px;
        border-radius: 10px;
    }
    .fa-chart-column{
        font-size: 16px;
    }
  }
  /* -------------- Responsive Profile user -------------- */
  @media only screen and (max-width: 500px){
    .modal-reset-password{
        max-width: 80% !important;
        left: 35px;
    }
    .model-beneficia{
        max-width: 80% !important;
        left: 35px;
    }
    .model-edit-beneficia{
        max-width: 80% !important;
        left: 35px;
    }
    .form-tel{
        margin-top: 60px;
        /* background: #000; */
    }
    .card-profile{
       justify-content: center;
    }
  }
  @media only screen and (max-width: 600px){
    .modal-reset-password{
        max-width: 80% !important;
        left: 45px;
    }
    .model-beneficia{
        max-width: 100% !important;
        left: -0px;
        /* padding: 0 2rem; */
    }
    .model-edit-beneficia{
        max-width: 80% !important;
        left: 45px;
    }
    .btn-user{
        margin-left: 30px !important;
    }
  }

  @media only screen and (max-width: 770px){
    .btn-user{
        margin-left: 25px !important;
    }
    .form-tel{
        margin-top: 22px;
    }
    .card-profile{
       justify-content: center;
    }
  }
  @media only screen and (max-width: 900px){
    .form-tel{
        margin-top: 1px;
    }
    .card-profile{
       justify-content: center;
    }
  }
  /* -------------- Responsive News user -------------- */
  @media only screen and (max-width: 390px){
    .text-post{
        display: none;
    }
  }
  @media only screen and (max-width: 500px){
    .text-post{
        display: none;
    }
  }
  @media only screen and (max-width: 770px){
    .text-post{
        display: none;
    }
  }
  @media only screen and (max-width: 900px){
    .text-post{
        display: none;
    }
    .petition-history{
        margin-left: 2px !important;
        padding: 0 1rem;
    }
    .table-petition
    {
        margin-left: -0px !important;
    }
    .card-report{
        left: 33px !important;
    }
  }
  @media only screen and (max-width: 800px){
    .text-post{
        display: none;
    }
    .petition-history{
        min-width: 100% !important;
        /* right: -40px; */
        padding: 0 1rem;
    }
  }


  /* ------------------ RESPONSIVE MOBILE ----------------- */
  @media only screen and (max-height: 900px) {
    /* .menu-list{
        display: none !important;
    } */
    .BTN-year{
        max-width: 180px !important;
    }
  }
  @media only screen and (min-height: 1200px) {
    .name-post{
        margin-left: 20px;
    }
    .text-name-post{
        margin-left: 10px;
    }
    .card-Pie-Chart{
        margin-top: 0px !important;
        max-width: 900px !important;
    }
    .form-pro-user{
        width: 100% !important;
    }
    .card-profile{
        width: 100% !important;
    }
    .card-post-pin{
        margin-top: 0px;
    }
    .table-petition{
        max-width: 100% !important;
    }
  }
/* ===== Layout: Sidebar & Content (fix จอใหญ่/ย้ายหน้าต่างแล้วหาย) ===== */
:root{
  --sidebar-open: 260px;  /* ปรับให้ตรงกับความกว้าง sidebar ตอนเปิด */
  --sidebar-close: 83px;  /* ของเดิมคุณใช้ 83px */
  --header-h: 60px;       /* สูงของ top bar โดยประมาณ */
}

/* content พื้นฐาน */
.conten-app{
  max-width: 94%;
  padding: 0 1rem;
  transition: margin-left .25s ease;
  margin-left: var(--sidebar-close);
}

/* ถ้า sidebar ไม่ได้ close = เปิดเต็ม -> content ขยับตาม */
.sidebar:not(.close) ~ .conten-app{
  margin-left: var(--sidebar-open);
}

/* ถ้า close -> content ใช้ระยะ close */
.sidebar.close ~ .conten-app{
  margin-left: var(--sidebar-close);
}

/* ===== Responsive by WIDTH (ไม่ใช้ min-height) ===== */
@media (max-width: 1199.98px){
  .sidebar{ display:none !important; }
  .conten-app{
    margin-left: 0 !important;
    max-width: 100% !important;
    padding: 0 .75rem;
    position: relative;   /* กันของเดิมที่เคย set absolute */
    right: auto;
  }
  #menu-container{ display:block; }
}

@media (min-width: 1200px){
  #menu-container{ display:none; }
}
/* ทำให้ header จัด layout แบบ flex แน่นอน */
header.navbar,
.navbar{
  display: flex;
  align-items: center;
  flex-wrap: nowrap; /* กันชื่อหล่น/ย้ายตำแหน่งแปลกๆ */
}

/* ดันโซนชื่อผู้ใช้ไปขวาสุดเสมอ */
header.navbar > ul.nav{
  margin-left: auto;
}

/* กัน hamburger/menu-container กินความกว้างจนดันชื่อเพี้ยน */
#menu-container{
  flex: 0 0 auto;
}
/* =========================
   Responsive Sidebar NEW
   Mobile = hamburger
   iPad (mini/pro) = sidebar icon-only (NO hamburger)
   Desktop = normal sidebar
========================= */

/* 1) MOBILE: ใช้ hamburger, ซ่อน sidebar */
@media (max-width: 767.98px){
  .sidebar{ display:none !important; }
  .conten-app{
    margin-left: 0 !important;
    max-width: 100% !important;
    padding: 0 .75rem;
    position: relative !important;
    right: auto !important;
  }
  #menu-container{ display:block !important; }
}

/* 2) iPad mini / iPad Pro: โชว์ Sidebar แบบ "ไอคอนล้วน" และทำให้เล็กลง */
@media (min-width: 768px) and (max-width: 1199.98px){

  /* ปิด hamburger ไม่เอา 3 ขีด */
  #menu-container{ display:none !important; }
  #menu-container .menu-list{ display:none !important; }

  /* Sidebar ต้องโชว์ */
  .sidebar{ display:block !important; }

  /* ทำให้ sidebar แคบลงกว่าเดิม (เดิม close = 78px) :contentReference[oaicite:2]{index=2} */
  :root{ --sidebar-close: 64px; }

  /* บังคับให้หน้าตาเหมือน "โหมด close" โดยไม่ต้องพึ่ง class */
  .sidebar,
  .sidebar.close{
    width: var(--sidebar-close) !important;
  }

  /* ซ่อนข้อความ เหลือไอคอน */
  .sidebar .logo-name,
  .sidebar .title .name,
  .sidebar .title .bxs-chevron-down{
    display:none !important;
  }

  /* จัดโลโก้ให้อยู่กลาง + เล็กลงพอดีกับ sidebar แคบ */
  .sidebar .logo-box{
    justify-content:center !important;
    padding-left:0 !important;
  }
  .sidebar .logo-box img{
    width: 38px !important;
    height: 56px !important;
  }

  /* ปรับขนาดไอคอนให้พอดี ไม่ “ขยับ/กระชาก” */
  .sidebar-list li .title i{
    min-width: var(--sidebar-close) !important;
    height: 48px !important;
    line-height: 48px !important;
    font-size: 18px !important;
  }

  /* content ขยับตาม sidebar แคบ */
  .conten-app{
    margin-left: var(--sidebar-close) !important;
    max-width: calc(100% - var(--sidebar-close)) !important;
  }
}

/* 3) DESKTOP: โชว์ sidebar ปกติ + ซ่อน hamburger */
@media (min-width: 1200px){
  #menu-container{ display:none !important; }
  #menu-container .menu-list{ display:none !important; }
}

  