@tailwind base;
@tailwind components;
@tailwind utilities;

/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
input:-internal-autofill-selected,  .mui--is-touched {
background-color:#fff !important;
}
:root {
  --white-color: #fff;
  --blue-color: #0a3044;
  --grey-color: #707070;
  --grey-color-light: #aaa;
}
body {
  background-color: #f5f5f5;/*#f0f7ff*/
  transition: all 0.5s ease;
}
body.dark {
  background-color: #333;
}
body.dark {
  --white-color: #333;
  --blue-color: #fff;
  --grey-color: #f2f2f2;
  --grey-color-light: #aaa;
}

/* navbar */
.navbar {
  /*position: fixed;*/
  top: 0;
  width: 100%;
  left: 0;
  background-color: var(--white-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0rem 2rem;
  /*padding: 15px 30px;*/
  z-index: 1000;
  box-shadow: 0 0 2px var(--grey-color-light);
}
.logo_item {
  display: flex;
  align-items: center;
  column-gap: 10px;
  font-size: 22px;
  font-weight: 500;
  color: var(--blue-color);
}
.navbar img {
  height: 4rem;
  /* width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 50%; */
}
.navbar_content {
  display: flex;
  align-items: center;
  column-gap: 25px;
}
.navbar_content i {
  cursor: pointer;
  font-size: 20px;
  color: var(--grey-color);
}

/* sidebar */
.sidebar {
  background-color: var(--white-color);
  width: 18rem;
  /*position: fixed;*/
  top: 0;
  left: 0;
  height: 100%;
  /*padding: 80px 20px;*/
  z-index: 100;
  overflow-y: scroll;
  box-shadow: 0 0 1px var(--grey-color-light);
  transition: all 0.5s ease;
}
.sidebar.close {
  /*padding: 5rem 0;*/
  width: 5rem;
}
.sidebar::-webkit-scrollbar {
  display: none;
}
.menu_content {
  position: relative;
  padding:1rem;
}
.menu_title {
  margin: 15px 0;
  padding: 0 20px;
  font-size: 18px;
}
.sidebar.close .menu_title {
  padding: 6px 30px;
}
.menu_title::before {
  color: var(--grey-color);
  white-space: nowrap;
}
.menu_dahsboard::before {
  content: "Dashboard";
}
.menu_editor::before {
  content: "Services";
}
.menu_setting::before {
  content: "Setting";
}

.sidebar.close .menu_title {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar.close .menu_title::before {
  content: "";
  position: absolute;
  height: 2px;
  width: 18px;
  border-radius: 12px;
  background: var(--grey-color-light);
}
.menu_items {
  padding: 0;
  list-style: none;
}
.navlink_icon {
  position: relative;
  font-size: 1.4rem;
  min-width: 3rem;
  line-height: 3rem;
  display: inline-block;
  text-align: center;
  border-radius: 6px;
}
/* .navlink_icon::before {
  content: "";
  position: absolute;
  height: 100%;
  width: calc(100% + 100px);
  left: -20px;
} */
.navlink_icon:hover {
  background: var(--blue-color);
}
.sidebar .nav_link {
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 8px;
  text-decoration: none;
  color: var(--grey-color);
  white-space: nowrap;
  /*padding:0.7rem;*/
 
}
.sidebar.close .navlink {
  display: none;
}
.sidebar.close  .menu_items {
  display: flex;
    flex-direction: column;
    align-items: center;
}
.nav_link {
 font-size: 0.9rem;
}

.nav_link:hover {
  color: var(--white-color);
  background: var(--blue-color);
}

.submenu_item {
  cursor: pointer;
}
.submenu {
  display: none;
}
.submenu_item .arrow-left {
  position: absolute;
  right: 10px;
  display: inline-block;
  margin-right: auto;
}
.sidebar.close .submenu {
  display: none;
}
.show_submenu ~ .submenu {
  display: block;
}
.show_submenu .arrow-left {
  transform: rotate(90deg);
}
.submenu .sublink {
  padding: 15px 15px 15px 52px;
}
.expand_sidebar{
  cursor: pointer;
}

.sidebar.hoverable .collapse_sidebar {
  display: none;
}
#sidebarOpen {
  display: none;
}

@media only screen and (max-width: 599px) {
  :root {
    font-size: 10px;
  }
}

@media only screen and (min-width: 600px) {
  :root {
    font-size: 12px;
  }
}

@media only screen and (min-width: 960px) {
  :root {
    font-size: 14px;
  }
}

@media only screen and (min-width: 1280px) {
  :root {
    font-size: 16px;
  }
}

@media screen and (max-width: 768px) {
  #sidebarOpen {
    font-size: 25px;
    /*display: block;*/
    margin-right: 10px;
    cursor: pointer;
    color: var(--grey-color);
  }
  .sidebar{
      position: absolute;
  }
  
  .sidebar.close {
          position: absolute;
    left: -100%;
  }
  .search_bar {
    display: none;
  }
  
  .nav_link{
  font-size:1.2rem;
  }

}

 .tooltiptext {
  visibility: hidden;
  background-color: #092f448c;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 0.3rem;
font-size: 0.7rem;
  /* Position the tooltip */
  position: fixed;
  z-index: 1;
  margin-left: 3.5rem;
  margin-bottom: 2rem;
}

.sidebar.close .item:hover .tooltiptext {
  visibility: visible;
}
.main{
    height:calc(100% - 4rem);
}
.main_content{
padding: 1rem 3rem;
overflow-y:auto;
width: calc(100% - 18rem);
}
.content_title{
font-size: 2rem;
    color: #707070;
}
.dx-datagrid-header-panel, .dx-pager{
    background-color: #f5f5f5;
}
.dx-toolbar{
    background-color:transparent !important;
}
.dx-datagrid{
    height:auto !important;
}

.regular-text{

    color:#333;
}

.userIcon{
        font-size: 1.5rem;
    padding: 0.3rem 0.5rem;
    border-radius: 54%;
    border: 1px solid #707070;
}
.mui-textfield > label{
    overflow:hidden;
}

.error-message{
        font-size: 0.8rem;
        color:red;
}

.dx-datagrid .dx-row > td {
    padding:1rem !important;
}

.dx-datagrid .dx-row-lines > td, .dx-datagrid-headers .dx-datagrid-table .dx-row > td{
    border-bottom:1px solid #f4f4f4 !important;
    border-right: 1px solid #f4f4f4 !important;
}
.dx-datagrid .dx-column-lines > td{
    border-left:1px solid #f4f4f4 !important;
    border-right: 1px solid #f4f4f4 !important;
}

.dx-datagrid-headers{
    border-bottom:none !important;
}
.dx-datagrid-borders .dx-datagrid-rowsview, .dx-datagrid-headers + .dx-datagrid-rowsview, .dx-datagrid-rowsview.dx-datagrid-after-headers{
     border-top:1px solid #f4f4f4 !important;
}

.home-content{
    color:#707070;
}
.home-content .overview-boxes{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 1rem;
  margin-bottom: 2rem;
  row-gap: 1rem;
  color:#707070;
}
.overview-boxes .box{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% / 3 - 1rem);
  background: #fff;
  padding:  2rem 3rem;
  border-radius: 0.75rem;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  min-height:11rem;
}

.overview-boxes .box-topic{
  font-size: 1.5rem;
  font-weight: 400;
}
.home-content .box .number{
  display: inline-block;
  font-size: 2rem;
  margin-top: -0.4rem;
  font-weight: 400;
}


.home-content .box .cart{
  display: inline-block;
  font-size: 4rem;
  height: 5rem;
  width: 5rem;
  background: #cce5ff;
  line-height: 5rem;
  text-align: center;
  color: #66b0ff;
  border-radius: 0.75rem;
  margin: -1rem 0 0 0.4rem;
}
.home-content .box .cart.two{
   color: #2BD47D;
   background: #C0F2D8;
 }
.home-content .box .cart.three{
   color: #ffc233;
   background: #ffe8b3;
 }
.home-content .box .cart.four{
   color: #e05260;
   background: #f7d4d7;
 }
 .home-content .box .cart.five{
   color: #6d3ee3;
   background: #ae8efd;
 }
 .home-content .box .cart.six{
   color: #d456cb;
   background: #f9a8f4;
 }
.home-content .total-order{
  font-size: 1.4rem;
  font-weight: 400;
}
.home-content .sales-boxes{
  display: flex;
  justify-content: space-between;
  /* padding: 0 20px; */
}

/* left box */
.home-content .sales-boxes .recent-sales{
  width: 100%;
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.home-content .sales-boxes .sales-details{
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sales-boxes .box .title{
  font-size: 24px;
  font-weight: 500;
  /* margin-bottom: 10px; */
}
.sales-boxes .sales-details li.topic{
  font-size: 20px;
  font-weight: 500;
}
.sales-boxes .sales-details li{
  list-style: none;
  margin: 8px 0;
}
.sales-boxes .sales-details li a{
  font-size: 18px;
  color: #333;
  font-size: 400;
  text-decoration: none;
}
.sales-boxes .box .button{
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.sales-boxes .box .button a{
  color: #fff;
  background: #0A2558;
  padding: 4px 12px;
  font-size: 15px;
  font-weight: 400;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.sales-boxes .box .button a:hover{
  background:  #0d3073;
}

/* Right box */
.home-content .sales-boxes .top-sales{
  width: 35%;
  background: #fff;
  padding: 20px 30px;
  margin: 0 20px 0 0;
  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.sales-boxes .top-sales li{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}
.sales-boxes .top-sales li a img{
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: 10px;
  background: #333;
}
.sales-boxes .top-sales li a{
  display: flex;
  align-items: center;
  text-decoration: none;
}
.sales-boxes .top-sales li .product,
.price{
  font-size: 17px;
  font-weight: 400;
  color: #333;
}