﻿@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
@import url("/css/bootstrap-icons.css");
*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
    --main-color: #c43c00; /* #5c1b02; #3d5af1;*/
    --main-color-dark: #c73a06; /*#702205;  #3651d4*/
    --main-color-light: #fbbca5; /*#5872f5;*/
    --text-color: #fff; /* #cfcde7;*/
    --height-item: 32px;
    --height-item2: 23px;
}

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  background-color: #f8f4f2/*#e4e2f5*/;
  min-height: 100vh;
  display: flex;
  position: relative;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}
.navi0 {
    position: sticky;
    top: 0;
    left: 0;
    height: auto; /*100vh*/
    background-color: var(--main-color);
    width: 12.5rem;
    /*min-width: 12.5rem;*/
    padding: 1.55rem 0.15rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: width 0.5s ease-in-out;
    scrollbar-width: none !important;
}
.navi {
    /*position: sticky;*/
    top: 0;
    left: 0;
    height: auto; /*100vh*/
    background-color: var(--main-color);
    width: 10.5rem;
    /*min-width: 12.5rem;*/
    /*padding: 1.55rem 0.15rem;*/
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: width 0.5s ease-in-out;
    scrollbar-width: none !important;
}

.navi::before {
  content: "";
  position: absolute;
  width: 2rem;
  height: 100%;
  top: 0;
  left: 100%;
}

main {
  flex: 1;
  padding: 2rem;
  padding-top: 0.2rem;
  color: #1f2027;
  display: flex;
  flex-direction: column;
}

main h1 {
  margin-bottom: 1rem;
}

main .copyright {
  margin-top: auto;
  font-size: 0.9rem;
}

main .copyright span {
  color: var(--main-color);
  font-weight: 500;
  cursor: pointer;
}

.sidebar-top {
  position: relative;
  display: flex;
  align-items: center;
}

.sidebar-top .logo {
  width: 2.1rem;
  margin: 0 0.8rem;
}

.sidebar-top h3 {
  padding-left: 0.5rem;
  font-weight: 600;
  font-size: 1.15rem;
}
/*
.shrink-btn {
  position: absolute;
  top: 50%;
  height: var(--height-item2);
  padding: 0 0.1rem;
  background-color: var(--main-color);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 3px 10px -3px rgba(70, 46, 118, 0.3);
  right: -2.0rem;
  transform: translateY(-50%) translateX(-8px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
*/
.shrink-btn {
    position: absolute;
    top: -10px;
    height: 25px;
    padding: 0 0.1rem;
    background-color: var(--main-color);
    border-radius: 6px;
    cursor: pointer;
    width: auto;
    box-shadow: 0 3px 10px -3px rgb(70 46 118 / 30%);
    right: 0px;
    transform: translateY(-50%) translateX(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
}

.shrink-btn i {
  line-height: var(--height-item2);
  transition: 0.3s;
}

.shrink-btn:hover {
  background-color: var(--main-color-dark);
}

nav:hover .shrink-btn,
.shrink-btn.hovered {
  transform: translateY(-50%) translateX(0px);
  opacity: 1;
  pointer-events: all;
}

.search {
  min-height: 2.7rem;
  background-color: var(--main-color-light);
  margin: 2rem 0.5rem 1.7rem;
  display: grid;
  grid-template-columns: 2.7rem 1fr;
  align-items: center;
  text-align: center;
  border-radius: 50px;
  cursor: pointer;
}

.search input {
  height: 100%;
  border: none;
  background: none;
  outline: none;
  color: #fff;
  caret-color: #fff;
  font-family: inherit;
}

.search input::placeholder {
  color: var(--text-color);
}

.sidebar-links ul {
  position: relative;
}

.sidebar-links li {
  position: relative;
  padding: 0px; /*2.5px 0*/;
  padding-left: 0px;
}

.sidebar-links a {
  color: var(--text-color);
  font-weight: 400;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  height: 28px; /*var(--height-item);*/
}

.icon {
  font-size: 1rem;
  text-align: center;
  min-width: 2.2rem;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.icon i {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  transition: 0.3s;
}

.icon i:last-child {
  opacity: 0;
  color: #fff;
}

.sidebar-links a.active,
.sidebar-links a:hover {
  color: #fff;
  text-decoration: none;
}
.sidebar-links a:hover {
    color: #ffc404;
    text-decoration: none;
}
.sidebar-links a .link {
    transition: opacity 0.3s 0.2s, color 0.3s;
    text-decoration: none;
}

.sidebar-links a.active i:first-child {
    opacity: 0;
    text-decoration: none;
}

.sidebar-links a.active i:last-child {
    opacity: 1;
    text-decoration: none;
}

.active-tab {
  width: 100%;
  height: var(--height-item);
  /*background-color: var(--main-color-dark);*/
  border-radius: 10px;
  position: absolute;
  top: 2.5px;
  left: 0;
  transition: top 0.3s;
}

.sidebar-links h4 {
  position: relative;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0 0.4rem;
  color: var(--text-color);
  letter-spacing: 0.5px;
  height: var(--height-item);
  line-height: var(--height-item);
  transition: opacity 0.3s 0.2s, height 0.5s 0s;
}

.sidebar-footer {
  position: relative;
  margin-top: auto;
}

.account {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--text-color);
  height: var(--height-item);
  width: 3.7rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s 0s, color 0.3s 0s;
}

.account:hover {
    color: #fff;
    text-decoration: none;
}

.admin-user {
  display: flex;
  align-items: center;
}

.admin-profile {
  white-space: nowrap;
  max-width: 100%;
  transition: opacity 0.3s 0.2s, max-width 0.7s 0s ease-in-out;
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
}

.admin-user img {
  width: 2.9rem;
  border-radius: 50%;
  margin: 0 0.4rem;
}

.admin-info {
  padding-left: 0.3rem;
}

.admin-info h3 {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
}

.admin-info h5 {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-color);
  margin-top: 0.3rem;
  line-height: 1;
}

.log-out {
  display: flex;
  height: 30px;
  min-width: 2.4rem;
  background-color: var(--main-color-dark);
  color: var(--text-color);
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border-radius: 10px;
  margin: 0 0.65rem;
  transition: color 0.3s;
}

.log-out:hover {
    color: #fff;
    text-decoration: none;
}

.tooltip {
  background-color: var(--main-color);
  position: absolute;
  right: -1.2rem;
  top: 0;
  transform: translateX(100%) translateY(-50%);
  padding: 0 0.8rem;
  font-size: 0.85rem;
  display: none;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  height: var(--height-item2);
  align-items: center;
  border-radius: 7px;
  box-shadow: 0 3px 10px -3px rgba(70, 46, 118, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  text-align: center;
  white-space: nowrap;
}

.tooltip span {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  opacity: 0;
  transition: 0.3s;
}

.tooltip span.show {
  opacity: 1;
}

.tooltip-element:hover ~ .tooltip {
  opacity: 1;
  pointer-events: all;
}

/* When the menu shrinks */

.hide {
  transition: opacity 0.3s 0.2s;
}

body.shrink nav {
  width: 3.4rem;
}

body.shrink .hide {
  opacity: 0;
  pointer-events: none;
  transition-delay: 0s;
}

body.shrink .shrink-btn i {
  transform: rotate(-180deg);
}

body.shrink .sidebar-links h4 {
  height: 10px;
}

body.shrink .account {
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.3s 0.3s, color 0.3s 0s;
}

body.shrink .admin-profile {
  max-width: 0;
  transition: opacity 0.3s 0s, max-width 0.7s 0s ease-in-out;
}

body.shrink .tooltip {
  display: grid;
}
.naviHr {
    width: 90%;
    margin: auto;
    border: inset 1px #f7c89a;
}
@media screen and (max-width: 991px) {
    .navi{
        display: none !important;
    }
    #topBtn, #homeBtn, #botBtn {
        right: 5px !important;
        bottom: 40px;
    }
    #topBtn{
        bottom: 80px;
    }
    #homeBtn {
        display: block !important;
        bottom: 120px !important;
    }
}
@media screen and (max-width: 620px) {
    .navi{
        display: none !important;
    }    
    h4{
        font-size: 15px !important;
    }
    select{
        margin-bottom: 3px;
        width: 95% !important;
    }
    .btn{
        margin-top: 6px;
    }
}
/*@media screen and (min-width:1300px) {*/
    #topBtn, #homeBtn,  #botBtn {
        display: none;
        position: fixed;
        bottom: 40px !important;
        right: 30px;
        z-index: 99;
        border: none;
        outline: none;
        background-color: #bb4e00ee;
        color: white;
        cursor: pointer;
        padding: 5px 10px 5px 10px;
        border-radius: 50%;
        font-size: 18px;
    }
    #topBtn:hover, #homeBtn:hover,  #botBtn:hover {
        color: #fff;
        font-weight: 500;
        background: #e8ff546b;
        background-image: linear-gradient(122deg, #ff9c00eb, #fe2506eb);
        -webkit-transition: all 0.3s ease 0s;
        transition: all 0.3s ease 0s;
        -o-transition: all 0.3s ease 0s;
    }
    #topBtn {
        display: none;
        bottom: 80px !important;
        color: #f8f9fa !important;
    }
    #homeBtn {
        display: none;
        bottom: 120px !important;
        color: #f8f9fa !important;
    }
    .mobileMenu {
        height: 100%;
        width: 100% !important;
        position: fixed;
        display: none;
        top: 0;
        left: 0;
        z-index: 9999999999;
        background-color: whitesmoke;
        transition: 0.5s;
    }
    .mobileMenu-content {
        position: relative;
        top: 0;
        width: 100%;
        text-align: left;
        margin-top: 0px;
        overflow-y: auto;
    }
    .mobileMenu .closebtn {
        width: 30px !important;
        height: 30px;
        z-index: 1;
        position: sticky;
        top: 3px;
        margin-right: 6px;
        float: right;
        cursor: pointer;
        overflow: hidden;
        font-size: 18px !important;
        font-weight: 500;
        text-align: center;
        color: #ffb987 !important;
        padding-top: 0px !important;
        padding-bottom: 5px !important;
        border: 1px solid #ffb987;
        border-radius: 6px;
    }
    .mbContainerMenu {
        margin-top: 30px;
        display: flex;
        flex-direction: column;
    }
    .mbGroupMenu {
        width: 500px;
        max-width: 85%;
        margin: auto;
    }
    .mbGroupMenuTitle{
        width: 100%;
        max-width: 100%;
        padding: 6px;
        font-size: 14px;
        border: 0;
        color: #cd2f00;
        margin: 6px;
        font-weight: 500;
    }
    .mbGroupMenuTitle a {
        color: #cd2f00 !important;
        padding: 6px !important;
    }
    .mbGroupMenuTitle{
        font-size: 16px;
        border: 1px solid rgb(51 51 50 / 0.30);
    }
    #mobileNav a {
        width: auto;
        padding: 6px;
        text-decoration: none;
        font-size: 14px;
        color: #0d0d0d;
        display: block;
        transition: 0.3s;
    }
    .mbMenuItem:not(:last-child) {
        max-width: 100%;
        margin-left: 3px;
        padding: 5px !important;
        color: #0d0d0d;
        border-bottom: #ebe9e7 1px inset;
    }
    .mbSubListItem {
        margin-left: 12px;
        display: none;
        background-color: transparent;
        color: black;
        border: 1px solid navajowhite;
        padding-right: 3px;
    }
    .mbSubListItem > a {
        padding: 6px;
        text-decoration: none;
        font-size: 14px;
        color: #0d0d0d;
        display: block;
        transition: 0.3s;
    }
    /*ĐỔI THÔNG TIN*/
    .tdNull {
        vertical-align: top;
        width: 15%;
    }
    .tdCenter {
        vertical-align: top;
        width: 70%;
    }
@media screen and (max-width: 991px) {
   .tdNull{
       display: none !important;
   }
   .tdCenter{
       width: 99% !important;
   }
}