/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : Nov 28, 2024, 9:21:06 AM
    Author     : phanl
*/
/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : Sep 6, 2024, 2:13:35 AM
    Author     : huyphan
*/
@import url("https://fonts.googleapis.com/css2?family=Playpen+Sans&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300&display=swap");
:root,
[data-bs-theme=light] {
    --tef-switch-bg:#f1812e;
}
[data-bs-theme=dark] {
  color-scheme: dark;
  --tef-switch-bg: #f1812e;
}
.form-control:focus {
    box-shadow: none;
}
.form-select:focus{
    box-shadow: none;
}
.form-label{
    font-weight: 500;
}
body {
  font-family: "Roboto", sans-serif;
  font-size: 0.875rem;
  opacity: 1;
  overflow: auto;
  margin: 0;
  background-color: var(--bs-body-bg);
  font-weight: 400;
}
.wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}
#sidebar {
  box-sizing: border-box;
  position: fixed;
  height: 100vh !important;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 11;
  width: 260px;
  overflow: hidden;
  background: var(--bs-tertiary-bg);
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / 42%), 0 4px 25px 0 rgb(0 0 0 / 12%), 0 8px 10px -5px rgb(0 0 0 / 20%);
  transition: 0.5s;
  text-wrap : nowrap;
}
#sidebar.close {
  width: 60px;
}
#sidebar.close .sidebar-header .logo_name,
#sidebar.close ul li a span,
#sidebar.close ul li .dropdown-menu-btn span,
#sidebar.close ul li .dropdown-menu-btn i:last-child{
  display: none;
}
#sidebar.close .sidebar-header .logo_square{
    display: block;
}
#sidebar.close{
  transition: 0.5s;
}
.sidebar-wrap {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  background-color: var(--bs-tertiary-bg);
  border-bottom: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  display: flex;
  flex-direction: row;
  height: 3rem;
}
.sidebar-header .logo_square {
  height: 3rem;
  width: 60px;
  object-fit: contain;
  display: none;
  padding: 0.85em;
}
.sidebar-header .logo_name {
  height: 3rem;
  object-fit: contain;
  display: block;
  padding: 0.85em;
}
.sidebar-content {
  overflow: auto;
}
.sidebar-content::-webkit-scrollbar {
  width: 5px;
  border-radius: 10px;
  background-color: #eee;
  display: none;
}
.sidebar-content::-webkit-scrollbar-thumbs {
  width: 5px;
  border-radius: 10px;
  background-color: #333;
  display: none;
}
.sidebar-content:hover::-webkit-scrollbar {
  display: block;
}
.sidebar-content::-webkit-scrollbar-thumbs {
  display: block;
}
#sidebar ul{
  padding: 0px 0;
  list-style: none;
}
#sidebar a, #sidebar .dropdown-menu-btn {
    text-decoration: none;
    color: var(--bs-sidebar-color);
    display: flex;
    align-items: center;
    gap: 1em;
    height: 2rem;
    padding: 0 0.85em 0 0.85em;
}
#sidebar.close a, #sidebar.close .dropdown-menu-btn {
    width: 60px;
    justify-content: center;
    justify-items: center;
    padding: 0;
}
.dropdown-menu-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    padding: 0;
    margin: 0;
}
#sidebar i {
    flex-shrink: 0;
}
#sidebar a span, #sidebar .dropdown-menu-btn span {
    flex-grow: 1;
    padding: 0;
    margin: 0;
}
#sidebar a:hover, #sidebar .dropdown-menu-btn:hover {
    background-color: var(--bs-secondary-bg);
}
#sidebar .active {
    background-color: var(--bs-secondary-bg);
}
#sidebar .sub-menu {
    display: grid;
    grid-template-rows: 0fr;
    transition: 300ms ease-in-out;
    > div{
        overflow: hidden;
    }
}
#sidebar .sub-menu.show {
    grid-template-rows: 1fr;
}
#sidebar .dropdown-menu-btn i {
    transition: 200ms ease;
}
#sidebar .rotate i:last-child {
    rotate : 90deg;
}
#sidebar .sub-menu a {
    padding-left: 2em;
}

.main-topbar{
    height: 3rem;
    padding: 0;
    background-color: var(--bs-body-bg);
}
.main-topbar-right {
  display: flex;
  flex-direction: row;
  height: 3rem;
}
.main-topbar-right>.dropdown>ul.dropdown-menu {
  padding: 0;
}
.main-topbar-right>.dropdown>.dropdown-menu>li.user-footer {
  border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  background-color: var(--bs-tertiary-bg);
  padding: 10px;
}
.main-topbar-right>.dropdown>.dropdown-menu>li.user-header {
  min-height: 175px;
  background-color: var(--bs-tertiary-bg);
  padding: 10px;
}
.main-topbar-right>.dropdown>.dropdown-menu>li.user-header>p {
  margin-top: 10px;
  font-size: 17px;
  word-wrap: break-word;
}
.dropdown-menu-lg {
  min-width: 280px;
  max-width: 300px;
}
.top_bar_button {
  background-color: var(--bs-navbar-bg);
  color: var(--bs-navbar-color);
  border: none;
  width: 2rem;
  height: 3rem;
}
.top_bar_button:hover{
  color: var(--bs-body-color);
}
.rounded-circle {
  border-radius: 50%;
}
.main-topbar-right>.dropdown>a {
  height: 100%;
  text-decoration: none;
  color: var(--bs-navbar-color);

}
.main-topbar-right>.dropdown>a:hover{
  color: var(--bs-body-color);
}
.main-topbar-right>.dropdown>a::after {
  content: none;
}
.main-topbar-right>.dropdown>a>img {
  padding: 0.5rem;
  height: 100%;
}
.main-topbar-right>.dropdown>a>span {
  height: 100%;
}
.main-topbar-toolbar{
    display: flex;
    flex-direction: row;
    gap: 1rem;
}
.header_profile_picture_out {
  cursor: pointer;
  width: 90px;
  height: 90px;
  position: relative;
  margin: auto;
}
.header_profile_picture_out>img {
  z-index: 5;
  width: 90px;
  height: 90px;
  position: absolute;
  top: 0;
  left: 0;
}
.header_profile_picture_out>div {
  width: 90px;
  height: 45px;
  z-index: 6;
  background-color: #00000033;
  text-align: center;
  position: absolute;
  left: 0;
  bottom: 0;
  border-bottom-left-radius: 45px;
  border-bottom-right-radius: 45px;
  line-height: 45px;
  visibility: hidden;
}
.header_profile_picture_out:hover>div {
  visibility: visible;
}
#content-wrapper {
  width: calc(100% - 260px);
  position: relative;
  float: right;
  background-color: var(--bs-body-bg);
  height: 100vh;
  overflow: hidden;
  transition: 0.5s;
}
#content-wrapper.active {
  width: calc(100% - 60px);
}
#main-content {
  overflow: auto;
  width: 100%;
  position: absolute;
  top: 3rem;
  left: 0;
  right: 0;
  height: calc(100vh - 6rem);
  background-color: var(--bs-secondary-bg);
}
#content-header {
  height: 2.5rem;
  background-color: var(--bs-tertiary-bg);
}
.toolbar-wrap {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 2.5rem;
    align-items: center;
}
#content-body {
  height: calc(100vh - 6rem - 5rem);
  overflow: auto;
}
#content-footer {
  height: 2.5rem;
  background-color: var(--bs-tertiary-bg);
}
.pagination-wrap {
    display: flex;
    flex-direction: row;
    height: 2.5rem;
    justify-content: space-between;
    align-items: center;
}
#main-footer {
  border-top: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
  background-color: var(--bs-body-bg);
  display: flex;
  flex-direction: row;
  height: 3rem;
  width: 100%;
  z-index: 1000;
  justify-content: space-between;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  line-height: 3rem;
}
.btn-no-bg {
  background: none;
  border: none;
  box-shadow: none;
}
.input-error{
    border-color: var(--bs-form-invalid-border-color);
}
/*TEF swich*/
.tef_switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}
.tef_switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.tef_switch_slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bs-body-bg);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 12px;
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color);
}
.tef_switch_slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 1px;
    background-color: var(--bs-body-color);
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .tef_switch_slider {
    background-color: var(--tef-switch-bg);
}
input:focus + .tef_switch_slider {
    box-shadow: 0 0 0px var(--tef-switch-bg);
}
input:checked + .tef_switch_slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}
.dropdown-menu-xl {
  min-width: 360px;
  max-width: 420px;
  padding: 0;
}
.tef-tbl-nonwrap>tbody>tr>td {
    text-wrap: nowrap;
}
.tef-tbl-nonwrap>thead>tr>th {
    text-wrap: nowrap;
}
.tef-tbl-nonwrap>tfoot>tr>td {
    text-wrap: nowrap;
}
.overlay-wrapper{
    position: relative;
}
.overlay-wrapper .overlay{
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.7);
}
.tef_overlay {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    -ms-flex-align: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    pointer-events: all;
    z-index: 10;
}
.tef_overlay .text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 5rem;
    color: #FF0000;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}
.tef-modal-overlay{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FF0000;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1000;
}
.rotating-icon {
    animation: tef-transform-icon 5s infinite linear;
    display: inline-block;
}
@keyframes tef-transform-icon {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}
#main-error-content {
  overflow: none;
  width: 100%;
  position: absolute;
  top: 3rem;
  left: 0;
  right: 0;
  height: calc(100vh - 6rem);
  background-color: var(--bs-secondary-bg);
  display: flex;
  flex-direction: row;
}
#main-error-content>h1{
    color: #FF0000;
    width: 100%;
    text-align: center;
    align-self: center;
}
/*=============== small-screen overlay sidebar design media queries ==============*/
@media only screen and (max-width: 768px) {
  #sidebar {
    transform: translatex(-100%);
    box-shadow: none;
  }

  #sidebar.close {
    width: 260px;
    transform: translatex(0);
    box-shadow: 0 10px 30px -12px rgb(0 0 0 / 42%),0 4px 25px 0 rgb(0 0 0 / 12%), 0 8px 10px -5px rgb(0 0 0 / 20%);
    transition: 0.5s;
    z-index: 16;
  }

  #sidebar.close .sidebar-header .logo_name,
  #sidebar.close ul li a p,
  #sidebar.close .menu_title .title {
    display: block;
  }

  #content-wrapper {
    width: 100%;
    position: relative;
    float: right;
    background-color: var(--bs-body-bg);
    height: 100vh;
    overflow: hidden;
    transition: 0.5s;
  }
  .body-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    visibility: hidden;
    opacity: 0;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.5);
  }
  .body-overlay.active {
    display: block;
    visibility: visible;
    opacity: 1;
  }
}
/*CARD*/
.card-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.card-header > .card-title{
    padding: 0;
    margin: 0;
}
.card-header > div.card-tools{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.5rem;
}
/*Button*/
.btn-xs{
    padding: .125rem .25rem;
    font-size: .75rem;
    line-height: 1.5;
    border-radius: .15rem;
}
/*Table*/
td.fix-content{
    width: 1px;
    white-space: nowrap;
}
th.fix-content{
    width: 1px;
    white-space: nowrap;
}
#tbl-data>thead>tr>th{
    white-space: nowrap;
}
/*ovelay*/
.tef_overlay {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    -ms-flex-align: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.5);
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    pointer-events: all;
    z-index: 10;
}
.tef_overlay .text {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 1.5rem;
    color: #FF0000;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
}
