/*========== GOOGLE FONTS ==========*/
/* @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap"); */
/* @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;900&family=Sarabun:wght@300;400&display=swap"); */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");
/*========== VARIABLES CSS ==========*/
:root {
  --header-height: 4.4rem;
  --nav-width: 230px;

  /*========== Colors ==========*/
  --first-color: #f36303;
  --first-color-light: #f4f0fa;
  --title-color: #19181b;
  --text-color: #58555e;
  --text-color-light: #a5a1aa;
  --body-color: #cfced16e;
  --container-color: #ffffff;

  /*========== Font and typography ==========*/
  --body-font: "Nunito", sans-serif;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.75rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-fixed: 100;
}

@media screen and (min-width: 1024px) {
  :root {
    --normal-font-size: 1.075rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*========== BASE ==========*/
/* *, ::before, ::after {
  box-sizing: border-box;
} */

section {
  border-radius: 0px;
}
.card-body__custom {
  border-radius: 0px;
}

.body__custom {
  margin: var(--header-height) 0 0 0;
  padding: 1rem 1rem 0;
  font-size: var(--normal-font-size);
  /* background-color: var(--body-color); */
  color: var(--text-color);
  font-family: var(--body-font);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--title-color);
}

.logo__nav {
  max-width: 150px;
  max-height: 150px;
  padding-left: 15px;
}

/*========== HEADER ==========*/
.header__custom {
  width: 100%;
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  padding: 0 1rem;
  background-color: #424242;
}

.header__container {
  display: flex;
  align-items: center;
  height: 3rem;

  justify-content: space-between;
}
.text_name span {
  text-decoration: none;
  color: white;
}

.header__icon,
.header__toggle {
  font-size: 1.2rem;
}

.header__toggle {
  /* color: var(--title-color); */
  cursor: pointer;
}

/*========== NAV ==========*/
.nav__custom {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  padding: 1rem 1rem 0;
  background-color: #eb930f;
  box-shadow: 1px 0 0 rgba(22, 8, 43, 0.1);
  z-index: var(--z-fixed);
  transition: 0.4s;
}

.nav__container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 3rem;
  overflow: auto;
  scrollbar-width: none; /* For mozilla */
}
.nav__custom a {
  text-decoration: none;
}

/* For Google Chrome and others */
.nav__container::-webkit-scrollbar {
  display: none;
}

.nav__logo {
  font-weight: bold;
  margin-bottom: 2.5rem;
}

.nav__list,
.nav__items {
  display: grid;
}

.nav__list {
  row-gap: 2.5rem;
}

.nav__items {
  row-gap: 1.5rem;
}

.nav__subtitle {
  font-size: var(--normal-font-size);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: #ffffff;
}

.nav__link {
  display: flex;
  align-items: center;
  color: #ffffff;
}

.nav__link:hover {
  color: #424242;
}

.nav__icon {
  font-size: 1.4rem;
  margin-right: 0.5rem;
}

.nav__name {
  font-size: var(--normal-font-size);
  /* font-weight: bold; */
  white-space: nowrap;
}

.nav__logout {
  margin-top: 5rem;
}

/* Dropdown */
.nav__dropdown {
  overflow: hidden;
  max-height: 21px;
  transition: 0.9s ease-in-out;
}

.nav__dropdown-collapse {
  background-color: var(--first-color-light);
  border-radius: 0.25rem;
  margin-top: 1rem;
}

.nav__dropdown-content {
  display: grid;
  row-gap: 0.5rem;
  padding: 0.75rem 2.5rem 0.75rem 1.8rem;
}

.nav__dropdown-item {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
}

.nav__dropdown-item:hover {
  color: var(--first-color);
}

.nav__dropdown-icon {
  margin-left: auto;
  transition: 3.4s;
}

/* Show dropdown collapse */
.nav__dropdown:hover {
  max-height: 100rem;
}

/* Rotate icon arrow */
.nav__dropdown:hover .nav__dropdown-icon {
  transform: rotate(180deg);
}

/*===== Show menu =====*/
.show-menu {
  left: 0;
}

/*===== Active link =====*/
.active {
  color: var(--first-color);
}

/* ========== MEDIA QUERIES ==========*/

@media screen and (min-width: 768px) {
  .body__custom {
    padding: 1rem 3rem 0 6rem;
  }
  .header__custom {
    padding: 0rem 3rem 0 6rem;
  }
  .header__container {
    height: calc(var(--header-height) + 0.5rem);
  }

  .header__toggle {
    display: none;
    float: right;
  }
  .header__logo {
    display: block;
  }
  .header__img {
    width: 40px;
    height: 40px;
    order: 1;
  }
  .nav__custom {
    left: 0;
    padding: 1.2rem 1.5rem 0;
    width: 68px; /* Reduced navbar */
  }
  .nav__items {
    row-gap: 1.7rem;
  }
  .nav__icon {
    font-size: 1.3rem;
  }

  /* Element opacity */
  .nav__logo-name,
  .nav__name,
  .nav__subtitle,
  .nav__dropdown-icon {
    opacity: 0;
    transition: 0.3s;
  }

  /* Navbar expanded */
  .nav__custom:hover {
    width: var(--nav-width);
  }

  /* Visible elements */
  .nav__custom:hover .nav__logo-name {
    opacity: 1;
  }
  .nav__custom:hover .nav__subtitle {
    opacity: 1;
  }
  .nav__custom:hover .nav__name {
    opacity: 1;
  }
  .nav__custom:hover .nav__dropdown-icon {
    opacity: 1;
  }
}

.dataTables_filter {
  text-align: end;
}
.dataTables_paginate {
  float: right;
}
.height-85 {
  height: 70vh;
}
.copyright a {
  color: #424242;
  text-decoration: none;
}
.text__button{
    font-size: .875rem;
    width: min(120px);
    margin-top: 3px;
}
