:root {
  --primary: 25, 91, 255;
  --color: 44, 62, 80;
  --screenWidth: calc(100vw);
  --textColor : #475569;
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100vh;
  /* background: #f4f7f8; */
  background: #fff;
  /* height: calc(var(--vh, 1vh) * 100); */
  overflow-y: auto;
  overflow-x: hidden;
  color: rgb(var(--color));
  width: 100%;
  margin: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}

* {
  list-style: none;
  outline: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.container {
  width: 100%;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.header {
  width: var(--screenWidth);
  position: fixed;
  top: 0px;
  left: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.z-1000 {
  z-index: 1000;
}

.header-background,
.header-bg-content {
  width: var(--screenWidth);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-size: cover;
}

.header-background {
  padding: 25px 20px;
  height: 125px;
  background: url("https://img.freepik.com/free-vector/store-buildings-shopping-area-with-parking-scene-illustration_107791-4003.jpg?w=1380")
    center;
}

.header-bg-content {
  padding: 20px 20px;
  background: url("../../assets/images/bg-header.jpg") center;
}

.header-background::before,
.header-bg-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
  border-radius: inherit;
}

.header-background .header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}

.header-bg-content .header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-content i {
  font-size: 1.5rem;
  color: white;
}

.profile-pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid white;
  margin-right: 10px;
}

.greeting-text,
.header-text {
  color: white;
  text-shadow: 1px 1px 4px #000000;
}

.greeting-text h4,
.greeting-text p {
  margin: 0;
}

.search {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 10px 15px;
  margin-top: 10px;
  width: calc(100% - 40px);
}

.search i {
  font-size: 1.5rem;
  color: #888;
  margin-right: 10px;
}

.search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  width: 100%;
}

.content {
  /* padding-top: 100px; */
  /* width: 100%; */
  width: var(--screenWidth);
  position: relative;
  top: -35px;
}

.content-body {
  border-radius: 20px 20px 0 0;
  background-color: #fff;
}

.menu, .pointer {
    cursor: pointer;
}

.menus,
.others,
.sales {
  width: var(--screenWidth);
  padding: 20px 30px;
}

.menus h3,
.others h3,
.sales h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.menu-row,
.sales-row {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 20px;
}

.menu,
.sale,
.other {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  padding: 10px;
  margin-right: 10px;
  transition: transform 0.2s;
}

.other {
  margin-bottom: 20px;
  background-image: url('../../assets/images/bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: #fff;
  align-items: flex-start;
}

.menu:hover,
.sale:hover,
.other:hover {
  transform: scale(1.05);
}

.menu img,
.sale img,
.other img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-bottom: 10px;
}

.other img {
  border-radius: 50%;
}

.menu p,
.sale p,
.other p {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--textColor);
}

.other p {
  color: #fff;
}

.discount {
  font-size: 1.2rem;
  color: rgb(232, 76, 79);
  font-weight: bold;
}

.bottom-navbar {
  position: fixed;
  z-index: 1002;
  bottom: 0px;
  left: 0px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  /* width: 100%; */
  width: var(--screenWidth);
  height: 70px;
  background: #fff;
  border-radius: 15px 15px 0px 0px;
  padding: 10px 0px;
  box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
}

.bottom-navbar button {
  color: var(--textColor);
  width: 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0px;
  background: transparent;
  border-radius: 20px;
  transition: all 0.25s ease;
}

.bottom-navbar button:active:not(.float) {
  transform: scale(1.1);
}

.bottom-navbar button.float {
  margin-top: -50px;
  background: rgb(232, 76, 79);
  color: #fff;
  border-radius: 25px;
  height: 60px;
  box-shadow: 0px 10px 20px 0px rgba(232, 76, 79, 0.4);
}

.bottom-navbar button.active {
  color: rgb(232, 76, 79);
}

.bottom-navbar button i {
  font-size: 1.5rem;
  pointer-events: none;
  margin-bottom: 5px;
}

.bottom-navbar button h1 {
  font-size: 0.8rem;
  pointer-events: none;
}

.con-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0px;
  left: 0px;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.effect {
  background: rgba(232, 76, 79, 0.15);
  width: 70px;
  height: 50px;
  position: absolute;
  border-radius: 10px;
}

/* Custom DataTable styling */
#datatable-controls-top {
  background-color: #ebebeb;
  padding: 10px;
  border-radius: 5px;
}

.marleft-5 {
  margin-left: -10px !important;
}

.dt-buttons {
  padding-top: 1px !important;
}

.dt-button-collection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  grid-auto-flow: column;
  grid-template-rows: repeat(5, auto);
  gap: 5px;
  width: 500px !important;
}

.dt-button-collection .dt-button {
  padding: 5px;
  opacity: 1 !important;
  background-color: #fff !important;
  border: 1px solid #ccc !important;
  color: rgb(51 65 85) !important;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  font-weight: bold !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  background-image: none !important;
}

.dt-button-collection .dt-button:hover {
  background-color: rgba(216, 23, 24, 0.2) !important;
  border: 1px solid rgba(216, 23, 24, 0.4) !important;
}

.dt-button.buttons-columnVisibility.active {
  background-color: rgba(216, 23, 24, 0.2) !important;
}

.paginate_input {
  width: 3rem !important;
  text-align: center;
}

.dataTables_paginate {
  display: flex;
  align-items: center;
}

.dataTables_paginate span {
  display: inline;
  padding: 0em 0.25em;
  font-size: 1rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: rgba(216, 23, 24, 0.07) !important;
  padding: 0px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled) {
  background: rgba(216, 23, 24, 0.2) !important;
  border: 1px solid rgba(216, 23, 24, 0.4) !important;
}

.search-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.search-icon,
.refresh-icon,
.filter-icon {
  cursor: pointer !important;
  transition: transform 0.3s ease-in-out !important;
  margin-top: 5px !important;
}

.search-icon:hover,
.refresh-icon:hover,
.filter-icon:hover {
  transform: scale(1.1) !important;
}

.search-form {
  display: flex !important;
  align-items: center !important;
  margin-right: 10px !important;
  transition: max-width 0.3s ease-in-out !important;
  max-width: 0;
  overflow: hidden;
}

.search-form.active {
  max-width: 200px !important;
}

.search-input {
  width: 100%;
  padding: 8px !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  transition: width 0.3s ease-in-out;
  background-color: #fff !important;
}

.dtfc-fixed-left {
  box-shadow: 3px 0px 0px 0px rgba(0, 0, 0, 0.1)
}

.dtfc-fixed-right {
  box-shadow: -3px 0px 0px 0px rgba(0, 0, 0, 0.1)
}

.cards tbody {
  margin-left: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  width: 90%;
  column-gap: 6rem;
  align-items: center;
}

.cards tbody tr {
  display: flex;
  /* Use flexbox for potential responsiveness */
  flex-direction: column;
  flex-wrap: wrap;
  /* Stack content vertically */
  width: 22rem;
  margin: 0.5rem;
  border: 0.0625rem solid rgba(0, 0, 0, .125);
  border-radius: .25rem;
  /* box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25); */
  box-shadow: 0 0.25rem 1.125rem rgba(75, 70, 92, 0.1);
  overflow: hidden;
  padding: 1rem;
  /* Clip excess content if needed */
  /* Add custom styles for padding, background, etc. */
}

@media (max-width: 768px) {
  .cards tbody tr {
    flex-direction: column;
    width: auto;
  }

  .cards tbody {
    margin-left: 0;
    gap: 0;
    width: 100%;
  }
  
  .home-menu {
      display: grid;
      grid-template-columns: repeat(2, 1fr); /* 1 row, 2 columns */
      gap: 10px;
  }
}

.cards tbody td {
  display: block;
  /* Display each cell as a block for styling */
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #ddd;
  /* Adjust padding as needed */
}

.cards thead {
  display: none;
}

.cards td:before {
  content: attr(data-label);
  position: relative;
  float: left;
  /* Might not be needed with flexbox */
  color: #808080;
  min-width: 4rem;
  margin-left: 0;
  margin-right: 1rem;
  text-align: left;
  font-weight: bold;
  /* Optional: emphasize label text */
}

/* .cards tbody tr td:first-child {
  display: none;
} */

/* Slide Up Style */
.slide-up-container {
  position: fixed;
  top: calc(var(--vh, 1vh) * 100);
  width: 100%;
  height: calc(var(--vh, 1vh) * 50);
  background: #fff;
  border-radius: 30px 30px 0px 0px;
  /* padding-top: 40px; */
  padding: 0px 20px;
  box-sizing: border-box;/*box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, .05);*/
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  /* justify-content: center; */
  flex-direction: column;
}

.slide-up-container::after {
  content: '';
  left: 50%;
  top: -14px;
  width: 45px;
  height: 4px;
  background: rgba(0, 0, 0, .2);
  position: absolute;
  transform: translate(-50%);
  border-radius: 20px;
}

.slide-up-container p {
  width: 70%;
  padding-top: 20px;
  font-size: .8rem;
  text-align: center;
  font-weight: 500;
  opacity: .7;
}

.slide-up-container img {
  width: 75%;
}

.slide-up-container button {
  padding: 12px 30px;
  background: rgb(232, 76, 79);
  color: #fff;
  border: 0px;
  margin-top: 20px;
  border-radius: 17px;
}

.slide-up-container::before {
  content: '';
  left: 0px;
  bottom: -150px;
  width: 100%;
  height: 150px;
  background: #fff;
  position: absolute;
}