@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Kanit', sans-serif;
}
:root {
  --blue: #1d3237;
  --white: #fff;
  --grey: #f5f5f5;
  --black1: #222;
  --black2: #999;
}
body {
  min-height:100vh;
  overflow-x: hidden;
  font-size: 14px;
}
.containers {
  position: relative;
  width: 100%;
}
.navigations {
  position: fixed;
  width: 300px;
  height: 100%;
  background: #1d3237;
  transition: 0.5s;
  overflow: hidden;
}
.navigations.active {
  width: 80px;
}
.navigations ul {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.navigations ul li.brand {
  padding-left:10px;
  position: relative;
  width: 100%;
  list-style: none;
  background: #1d3237;
}
.navigations ul li.menu {
  padding-left:10px;
  position: relative;
  width: 100%;
  list-style: none;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}
.navigations ul li.menu:hover {
  background: var(--white);
  box-shadow: 5px 10px 15px rgb(0 0 0 / 0.2), 5px -8px 15px rgb(0 0 0 / 0.2);
}
.navigations ul li.menu.active {
  background: var(--white);
}
.navigations ul li:nth-child(1) {
  margin-bottom: 40px;
  pointer-events: none;
}
.navigations ul li a {
  position: relative;
  display: block;
  width: 100%;
  display: flex;
  text-decoration: none;
  color: var(--white);
}
.navigations ul li:hover a .title,
.navigations ul li:hover a .icon,
.navigations ul li.active a .title,
.navigations ul li.active a .icon {
  color: var(--black1) !important;
}
.navigations ul li:hover a,
.navigations ul li.active a,
.navigations ul li.hovered a {
  color: var(--black1);
}
.navigations ul li a .icon {
  position: relative;
  display: block;
  min-width: 60px;
  height: 60px;
  line-height: 75px;
  text-align: center;
}

.navigations ul li a .icon ion-icon {
  font-size: 1.75em;
}
.navigations ul li a .title {
  position: relative;
  display: block;
  padding: 0 10px;
  height: 60px;
  color: #000;
  line-height: 60px;
  text-align: start;
  white-space: nowrap;
}

/* curve outside */

.navigations ul li.active a::before,
.navigations ul li:hover a::before,
.navigations ul li.hovered a::before {
  content: '';
  position: absolute;
  top: -50px;
  right: 0;
  width: 50px;
  height: 50px;
  background: transparent;
  border-radius: 50%;
  box-shadow: 35px 35px 0 10px var(--white);
  pointer-events: none;
}
.navigations ul li.active a::after,
.navigations ul li:hover a::after,
.navigations ul li.hovered a::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: 0;
  width: 50px;
  height: 50px;
  background: transparent;
  border-radius: 50%;
  box-shadow: 35px -35px 0 10px var(--white);
  pointer-events: none;
}

/* main */

.main {
  position: absolute;
  width: calc(100% - 300px);
  left: 300px;
  min-height: 100vh;
  background: var(--white);
  transition: 0.5s;
}
.main.active {
  width: calc(100% - 80px);
  left: 80px;
}
.topbar  {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}
.toggle {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5em;
  cursor: pointer;
}
.search {
  position: relative;
  width: 400px;
  margin: 0 10px;
}
.search label {
  position: relative;
  width: 100%;
}
.search label input {
  width: 100%;
  height: 40px;
  border-radius: 40px;
  padding: 5px 20px;
  padding-left: 35px;
  font-size: 16px;
  outline: none;
  border: 1px solid var(--black2);
}
.search label ion-icon {
  position: absolute;
  top: 0;
  left: 10px;
  font-size: 1.2em;
}
.user {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
}
.user img {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.my-custom-scrollbar {
  position: relative;
  max-height: 70vh;
  overflow: auto;
  width: 100%;
}
.table-scroll {
  display: block;
  width: 100%;
}
table.dataTable thead .sorting:after,
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc_disabled:after,
table.dataTable thead .sorting_desc_disabled:before {
bottom: .5em;
}
@media(max-width: 991px) {
  .navigations {
    left: -300px;
  }
  .navigations.active{
    width: 300px;
    left: 0;
  }
  .main {
    width: 100%;
    left: 0;
  }
  .main.active {
    left: 300px;
  }
}
