/* 
Base styles for our challenge. 
We may amend them during our challenge! 
*/

/* CSS Vars used */
:root {
  --theme-sidebar-width: 200px;
  --theme-sidebar-closed-width: 60px;
  --theme-sidebar-transition: all ease-in 0.1s;
  --theme-sidebar-padding-x: 1.5rem;
  --theme-sidebar-padding-y: 1.5rem;
  --theme-navbar-height: 60px;
  --theme-page-content-padding-x: 1.5rem;
  /* --color-header: rgba(163, 211, 255); */
  /* Colours */
  --color-body: rgba(255, 255, 255, 0.75);
  --color-primary: #ff5a5a;
  --color-white: #fff;
}
* {
  font-size: 13px;
}
/* Styling applied our main element */
.note-red {
  color: red;
}

.note-green {
  color: green;
}
#main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: calc(var(--theme-navbar-height) + 10px);
  padding-bottom: 10px;
  overflow-x: hidden;
  background-color: #eee;
}

#main > .container-fluid {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-self: stretch;
}

/* Styling applied to our aside */
.aside {
  width: var(--theme-sidebar-width);
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 2000;
  left: 0;
  height: 100%;
  padding: 0 0 var(--theme-sidebar-padding-y) 0;
  transform: translateX(-100%);
  /* background-color: rgb(190, 194, 199); */
  background-color: white;
}
.img-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.aside-header {
  height: 61px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  outline: none;
  padding: 5px 0;
}
#nav-item-quantri {
  padding: 8px;
}
.item-active {
  background-color: #ff5a5a;
  border-radius: 8px;
}
.item-active > a > span {
  color: white;
}
.nav-item,
.sub-item {
  /* padding: 8px; */
  cursor: pointer;
}
.nav-item > a,
.sub-item > a {
  padding: 8px;
  /* cursor: pointer; */
}
/* .title-nav-item {
  padding: 8px;
} */
.nav-sub-item:hover > div:has(.title-nav-item) {
  background-color: blue;
}
.nav-item > a > span {
  font-size: 14px;
}

.sub-nav-item {
  margin-top: 10px;
  margin-left: 10px;
  /* display: none; */
}

.nav-item:hover,
.sub-item:hover {
  background-color: #ff5a5a;
  border-radius: 8px;
}
.navbar-action {
  padding-right: 1.5rem;
}

.sub-item:hover > a > span {
  color: white;
  cursor: pointer;
}
.nav-item:hover > a > span {
  color: white;
}
.nav-item:hover > div {
  color: white;
}
/* .nav-item:hover > .title-nav-item > .title-name-nav-item {
  color: white;
}  */
.aside-menu {
  padding: 10px 10px;
}
.aside-menu a {
  text-decoration: none;
  font-size: 18px;
}
.on-off-sidebar {
  cursor: pointer;
}
.on-off-sidebar:hover {
  color: var(--color-primary);
}
.nav-menu {
  list-style: none;
  padding: 0;
}
.nav-menu > li {
  margin-bottom: 8px;
}
.nav-menu > li:last-child {
  margin-bottom: 0px;
}
.nav-menu .menu-section {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.025rem;
  margin-bottom: 0.5rem;
  height: 1rem;
}
.has-transition .aside {
  transition: transform ease-in 0.2s;
}
.fixed-top {
  position: fixed;
  right: 0;
  left: 0;
  z-index: 1030;
}
/* Write any additional CSS here */

.navbar {
  margin-left: 0;
  background-color: white;
  height: 60px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}
.btn-logout {
  width: 42px;
  height: 42px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
}
.img-logout {
  border-radius: 50%;
  width: 42px;
  height: 42px;
}
.menu-overlay-bg {
  background: rgba(0, 0, 0, 0.7);
  /* background: red; */
  position: fixed;
  inset: 0;
  z-index: 1999;
  visibility: hidden;
  opacity: 0;
}

.has-transition .menu-overlay-bg {
  transition: opacity ease-in 0.2s, visibility linear 0.1s 0.2s;
}

/* add styles for active sidebar */
.toggle-sidebar .menu-overlay-bg {
  visibility: visible;
  opacity: 1;
}

.has-transition.toggle-sidebar .menu-overlay-bg {
  transition: opacity ease-in 0.2s 0.1s, visibility linear 0.1s;
}

.toggle-sidebar .aside {
  transform: translateX(0);
}

.toggle-sidebar .fold {
  display: none;
}

.toggle-sidebar .unfold {
  display: block;
}

.main-content {
  background-color: white;
  /* outline: 1px solid gray; */
  padding: 10px 10px;
  box-shadow: 0 0.15rem 1.75rem 0 rgb(58 59 69 / 15%);
  flex-grow: 1;
  /* height: ; */
}
/* .dataTable {
  width: 100% !important;
} */
.dataTables_scrollHeadInner,
.dataTable {
  width: 100% !important;
}

table.dataTable thead > tr > th.sorting_asc:before {
  content: "" !important;
}
table.dataTable thead > tr > th.sorting_asc:after {
  content: "" !important;
}
#table-main {
  height: 100%;
  overflow-y: scroll;
}

.hr-div {
  border-bottom: 1px solid #eee;
  margin: 3px 0;
}

.modalchangePass {
  top: 8rem !important;
}
.iconChangePass {
  position: absolute;
  top: 5px;
  right: 8px;
  cursor: pointer;
}
@media (min-width: 1200px) {
  #main {
    width: calc(100% - var(--theme-sidebar-width));
    margin-left: var(--theme-sidebar-width);
  }
  .aside-header {
    border-bottom: 1px solid #eee;
  }
  .has-transition #main {
    transition: width ease-in 0.2s, margin ease-in 0.2s;
  }

  .menu-overlay-bg {
    display: none;
  }

  .navbar {
    margin-left: var(--theme-sidebar-width);
  }

  .has-transition .navbar {
    transition: margin ease-in 0.2s;
  }

  .aside {
    transform: translateX(0);
  }

  .toggle-sidebar .aside {
    transform: translateX(-100%);
  }
  .toggle-sidebar #main {
    width: 100%;
    margin-left: 0;
  }
  .toggle-sidebar .navbar {
    margin-left: 0;
  }
}
