@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "Sarabun";
  --color-hover: #297c27;
  --transition: all 0.2s ease;
}

:root {
  --color-white: #fff;
  --color-black: #000;
  --color-bg: #ededed;
  --color-bgcard:#fff;
  --color-sidebar:#60b55e;
  --color-menu:#fff;
}

.dark-mode {
  --color-white: #000;
  --color-black: #fff;
  --color-bg: #0a0b0e;
  --color-bgcard:#171b25;
  --color-sidebar:#0f1118;
  --color-menu:#0a0b0e;
}

.btn{
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.bgread{
  background: #dddddd !important;
}

.labeltopic{
  background: #3c4abb;
}

.dotted-border {
        border-bottom: 2px dotted #000; /* Dotted line */
        padding-top: 10px ;
    }


.minh100{
    min-height: 100%;
}

.minh100vh{
    min-height: 100vh;
}

#tbproduct.dataTable>tbody>tr.selected>* {
    box-shadow: inset 0 0 0 9999px rgb(13, 110, 253);
    box-shadow: inset 0 0 0 9999px #a0cfb9;
    color: rgb(255, 255, 255);
    color: #000 !important;
}

.underline-dotted {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px; /* Adjust thickness as needed */
}

.ictb{
width: 28px !important;
    height: 28px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ccc;
    border-radius: 50px;
    flex: 0 0 28px;
}

.pointer{
  cursor: pointer;
}

.w50px{
  width: 50px;
}

.btntab a{
  background: #fff !important;
  color: #212529 !important;
}

.btntab a:hover{
  background: #212529 !important;
  color: #fff !important;
}

.btntab a.actived{
  background: #212529 !important;
  color: #fff !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;
}

.delete-image{
      position: absolute;
    top: -10px;
    right: -2px;
    color: #ff0303;
    background: #ffffff;
    border-radius: 50px;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.deletefile{
    position: absolute;
    top: -8px;
    right: -2px;
    color: #fff;
    background: #ff0303;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0px 5px;
    font-size: 14px;
}

.deletefile:hover{
  background: #000;
  color: #fff;
}

.deleteic{
      position: absolute;
    top: -10px;
    right: -2px;
    color: #ff0303;
    background: #ffffff;
    border-radius: 50px;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
}

.boxloader{
    position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -25px;
  margin-left: -25px;
      display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;

}

.loading-text {
  margin-top: 10px;
  font-size: 16px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.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;
}


.bxdark .select2-container--default .select2-selection--single{
  border: 1px solid #000 !important;
}

.sidebar {
  width: 82px;
  min-height: 100vh;
  background: var(--color-sidebar);
  padding: 8px 16px;
  transition: var(--transition);
  z-index: 9;
}

.sidebar.expand {
  width: 250px;
  transition: var(--transition);
}

.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: 50px;
  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%;
  border-radius: 12px;
  align-items: center;
  text-decoration: none;
  background: var(--color-menu);
}

.nav-links li:hover a {
  color: #fff;
  background: var(--color-hover);
}

.nav-links li:hover i {
  color: #fff;
}

.nav-links li a.active {
    color: #fff !important;
    background: var(--color-hover);
}

.nav-links li a.active .title {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  display: none;
  transition: var(--transition);
}

.nav-links li a.active i {
    color: var(--color-white);
    height: 50px;
    min-width: 50px;
    font-size: 23px;
    text-align: center;
    line-height: 50px;
}

.nav-links li a .title {
  color: var(--color-black);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  display: none;
  transition: var(--transition);
}

.nav-links li:hover a .title {
  color: #fff;
}

.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;
}

.select2-container{
  display: block !important;
}

.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% - 82px);
  min-height: 100vh;
  background: var(--color-bg);
  z-index: 6;
  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) {
  .boxright{
    width: 100%;
  }
}