@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Sarabun";
  --color-hover: rgba(32, 59, 232);
  --transition: all 0.2s ease;
}

html, body{
  font-family: "Poppins", "Sarabun";
}

:root {
  --color-white: #fff;
  --color-black: #000;
  --color-bg: #ededed;
  --color-bgcard:#fff;
  --color-sidebar:#012383;
  --color-menu:#fff;
  --color-boxinv:#000;
  --color-submenu:#ffe9a9;
}

.dark-mode {
  --color-white: #000;
  --color-black: #fff;
  --color-bg: #0a0b0e;
  --color-bgcard:#171b25;
  --color-sidebar:#0f1118;
  --color-menu:#0a0b0e;
  --color-boxinv:#000;
  --color-submenu:#0a0b0e;
}

.btn{
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.boxinv div{
  color: var(--color-boxinv) !important;
}

.colorrec1{
  color: #ffb541;
}
.colorrec2{
  color: #bcd292;
}
.colorrec3{
  color: #0b8320;
}
.colorrec4{
  color: #41c0f3;
}
.colorrec5{
  color: #4e4e4e;
}
.colorrec6{
  color: #e7e7e7;
}

.colorinv1{
  color: #ffffcc;
}
.colorinv2{
  color: #e7e7e7;
}

.bgread{
  background: #F6EFE5 !important;
}

.is-invalid .select2-container--default .select2-selection--single {
    border-color: #dc3545;
}

.repeater-item { border: 1px solid #dee2e6; padding: 15px; border-radius: 10px; background: #f8f9fa; margin-bottom: 15px; }
img.preview { height: 80px; margin: 5px; border-radius: 6px; object-fit:cover; }
.preview-container { display:flex; flex-wrap: wrap; }
.position-relative { position: relative; }
.remove-img { cursor:pointer; }

.hidden-important {
        display: none !important;
    }

.thumbnail150 {
    width: 150px;
    height: 150px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.thumbnailw100 {
    width: 150px;
    height: 150px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
    
.minh100{
    min-height: 100%;
}

.minh100vh{
    min-height: 100vh;
}

.submenu {
    display: none;
    list-style-type: none;
    padding: 0;
    margin-left: 10px;
}

/* Style submenu items */
.submenu li a {
    display: block;
    padding: 0;
    text-decoration: none;
    color: #333;
}



.submenu li a:hover {
    background-color: #f4f4f4;
}

/* Show submenu when parent is active */
.menu-item.active .submenu {
    display: block;
}


.fullpage-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
}

#tbinvoices_processing div{
  display: none !important;
}

.thumbnail{
  width: 100px;
  height: 100px;
  aspect-ratio: 1 / 1; 
  object-fit: cover;
}

.thumbnail-sm{
  width: 80px;
  height: 80px;
  aspect-ratio: 1 / 1; 
  object-fit: cover;
}

.boxcreatedate{
  background: #cce6ff;
    display: table;
    border-radius: 10px;
    padding: 0 10px;
    color: #2258bd !important;
    margin-top: 5px;
}

.delete-image{
      position: absolute;
    top: -10px;
    right: -2px;
    color: #ff0303;
    background: #ffffff;
    border-radius: 50px;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 24px;
}


span.error{
  color: red;
  font-size: 12px;
}

.stat {
    align-items: center;
    background: #d3e2f7;
    border-radius: 50%;
    color: #3b7ddd;
    display: flex;
    height: 40px;
    justify-content: center;
    width: 40px;
    font-size: 1.5rem;
}

.main{
      min-height: 100vh;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.content{
    direction: ltr;
    flex: 1;
    max-width: 100vw;
}

.boxright{
  width: 400px;
}


.fs12{
  font-size: 12px;
}

.fs14{
  font-size: 14px;
}

.fs16{
  font-size: 16px;
}

.fs18{
  font-size: 18px;
}

.fs20{
  font-size: 20px;
}

.select2-container .select2-selection--single {
  height: calc(2.43rem) !important;
  padding: .25rem 2.55rem .3rem .3rem !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
}

.select2-container .select2-selection--single .select2-selection__arrow {
  height: calc(2.25rem + 2px) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
      color: #000 !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #d1d3e2 !important;
}

.select2-results__option[aria-selected] {
    font-weight: 400 !important;
}

.datepicker {
    padding: .375rem .75rem !important;
}

.sidebar {
  width: 250px;
  transform: translateX(0); /* Initially, it's not translated */
  min-height: 100vh;
  background: var(--color-sidebar);
  transition: var(--transition);
  z-index: 0;
}

.sidebar.expand {
  width: 250px;
  padding: 8px 16px;
  transition: var(--transition);
}

.sidebar:not(.expand) {
  width: 0;
  padding: 0;
  overflow: hidden;
  transform: translateX(-100%);
}



.boxnav{
      overflow-y: auto;
    max-height: 85vh;
    padding: 0 10px;
}

.scrollbar
{
  overflow-y: auto;
  max-height: 90vh;
 padding: 0 10px;
}

.force-overflow
{
  min-height: 450px;
}

#style-1::-webkit-scrollbar-track
{
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  border-radius: 10px;
  background-color: #021d69;
}

#style-1::-webkit-scrollbar
{
  width: 12px;
  background-color: #021d69;

}

#style-1::-webkit-scrollbar-thumb
{
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
  background-color: #203be8;
}


.nav-header {
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-header .logo {
  color: var(--color-black);
  font-size: 23px;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
}

.sidebar.expand .nav-header .logo {
  opacity: 1;
  transition: var(--transition);
}

.box-logo .logo {
  color: #fff;
  font-size: 0;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
}

.sidebar.expand .box-logo .logo {
  opacity: 1;
  font-size: 23px;
  transition: var(--transition);
}

.nav-header .btn-menu {
  position: absolute;
  color: #fff;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 23px;
  cursor: pointer;
  margin-right: 14px;
}

.sidebar.expand .nav-header .btn-menu {
  margin-right: 0;
}

.nav-links {
  margin-top: 20px;
  height: 100%;
  padding: 0;
}

.nav-links li {
  position: relative;
  margin: 8px 0;
  list-style: none;
}

.nav-links i {
  color: var(--color-black);
  height: 50px;
  min-width: 40px;
  font-size: 23px;
  text-align: center;
  line-height: 50px;
}

.nav-links input {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-black);
  outline: none;
  height: 40px;
  width: 50%;
  border: none;
  border-radius: 12px;
  background: var(--color-bg);
  padding: 0;
}

.sidebar.expand .nav-links input {
  width: 100%;
  padding: 0 20px 0 40px;
}

.nav-links li a {
  display: flex;
  height: 100%;
  width: 100%;
  font-size: 15px;
  border-radius: 12px;
  align-items: center;
  text-decoration: none;
  background: var(--color-menu);
  color: var(--color-black);
}

.nav-links li a:hover {
  color: #fff;
  background: var(--color-hover);
}

.nav-links li a:hover i {
  color: #fff
}

.nav-links li a.title {
  color: var(--color-black);
  font-size: 15px;
  font-weight: 400;
  white-space: nowrap;
  display: none;
  transition: var(--transition);
}

.nav-links li:hover a.title {
  color: #fff;
}

.nav-links li .submenu li a {
  background: var(--color-submenu);
  color: var(--color-black);
}

.nav-links li .submenu li a:hover {
  color: #fff;
  background: var(--color-hover);
}

.sidebar.expand .nav-links li a.title {
  display: block;
  transition: var(--transition);
}

.nav-links li:hover a.title {
  color: #fff;
}

.nav-links li .tooltip {
  position: absolute;
  top: -20px;
  left: calc(100% + 15px);
  z-index: 3;
  background: var(--color-menu);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  padding: 6px 14px;
  color: var(--color-black);
  font-size: 15px;
  white-space: nowrap;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: 0s;
}

.sidebar li:hover .tooltip {
  opacity: 1;
  pointer-events: auto;
  transition: var(--transition);
  top: 50%;
  transform: translateY(-50%);
}

.sidebar.expand .tooltip {
  display: none;
}

.nav-links .search-btn {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-25px);
  font-size: 23px;
  color: var(--color-black);
  border-radius: 12px;
  background: var(--color-white);
  transition: var(--transition);
}

.sidebar.expand .nav-links .search-btn {
  background: transparent;
  transition: var(--transition);
}

.sidebar.expand .nav-links li:hover .search-btn {
  color: var(--color-black);
}

.nav-links .search-btn:hover {
  background: var(--color-hover);
}

.theme-wrapper {
/*  position: fixed;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  height: 60px;
  width: 250px;
  left: 0;*/
  padding: 8px 0;
  flex-direction: column;
}

.theme-wrapper .theme-icon {
  font-size: 20px;
  color: #fff;
  transition: var(--transition);
}
.sidebar.expand .theme-wrapper .theme-icon {
  display: block;
}

.theme-wrapper p {
  font-size: 16px;
  color: #fff;
  font-weight: 400;
  display: none;
  transition: var(--transition);
}

.sidebar.expand .theme-wrapper{
  flex-direction: row;
}

.sidebar.expand .theme-wrapper p {
  display: block;
}

.theme-wrapper .theme-btn {
  width: 40px;
  height: 20px;
  background: var(--color-bg);
  border-radius: 30px;
  position: relative;
  cursor: pointer;
}

.theme-wrapper .theme-btn .theme-ball {
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--color-black);
  border-radius: 50%;
  top: 2px;
  left: 3px;
  transition: var(--transition);
}

.theme-wrapper .theme-btn .theme-ball.dark {
  left: 20px;
}

.home {
  width: calc(100%);
  min-height: 100vh;
  background: var(--color-bg);
/*  z-index: 0;*/
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.sidebar.expand ~ .home {
  left: 250px;
  width: calc(100% - 250px);
  transition: var(--transition);
}

.home p {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-black);
  display: inline-block;
  margin: 20px;
  white-space: nowrap;
}

.home div {
  color: var(--color-black);
}

.tbroomlist div{
  color: #000;
}

.bggray{
  background: #f0f1f2 !important;
}

.card{
  border:none !important;
  background: var(--color-bgcard) !important;
  transition: var(--transition);
}

.bartop{
  background: var(--color-bgcard) !important;
  transition: var(--transition);
}

.txthi{
  color: var(--color-black);
}

.nav-link{
  color: var(--color-black) !important;
}

@media screen and (max-width: 992px) {
.flexcolumn{
  flex-direction: column;
}
  .boxright{
  width: 100%;
}

.boxleft{
  width: 100%;
}
}

@media screen and (max-width: 768px) {
.sidebar {
    width: 250px;
    transform: translateX(0);
    min-height: 100vh;
    background: var(--color-sidebar);
    transition: var(--transition);
    z-index: 1;
    position: fixed;
}
.home {
    width: calc(100%) !important;
    min-height: 100vh;
    background: var(--color-bg);
/*    z-index: 1;*/
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
}