/********** Dashboard CSS **********/
:root {
  --primary: #009cff;
  --light: #f3f6f9;
  --dark: #191c24;
  --blue: #132651;
  --purple: #534dbb;
  --regular-grey: #c1c1c1;
  --black: #000;
  --icon-grey: #94a3b8;
  --text-grey: #727272;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  margin-top: 0;
  margin-bottom: 0 !important;
  font-weight: 700;
  line-height: 1.2;
  color: #191c24;
}

body,
p,
table,
tr,
td,
th {
  font-family: "Open Sans", sans-serif;
  color: var(--black) !important;
}
.back-to-top {
  position: fixed;
  display: none;
  right: 45px;
  bottom: 45px;
  z-index: 99;
}
.bg-blue {
  background: var(--blue) !important;
}

/* 
.circle-content {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;  
    height: 50px; 
    padding: 0;   
    border-radius: 50%;
    text-align: center;
    font-size: 1.2em; 

} */

/*** Spinner ***/
#spinner {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
  z-index: 99999;
}
#spinner.show {
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
  visibility: visible;
  opacity: 1;
}
.form-control.is-invalid {

  border-color: #dc3545;

}

.invalid-feedback {

  display: block;

  color: #dc3545;

}

/* ===== MIGHT NOT BE NEEDED =====  */

/*** Button ***/
.btn {
  transition: 0.5s;
}
.btn.btn-primary {
  color: #ffffff;
}
.btn-square {
  width: 38px;
  height: 38px;
}
.btn-sm-square {
  width: 32px;
  height: 32px;
}
.btn-lg-square {
  width: 48px;
  height: 48px;
}

/* ===== MIGHT NOT BE NEEDED =====  */

/*** =========== LAYOUT FOR ALL PAGES =========== ***/

/* NAVBAR ALL SIZE */

.fa-bars {
  font-size: 20px;
  color: #000;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  height: 100vh;
  overflow-y: auto;
  background: var(--light);
  transition: 0.0s;
  z-index: 999;
}
.content {
  margin-left: 320px;
  min-height: 100vh;
  background: #f1f4f9;
  transition: 0.0s;
}

/* ============= UPLOAD BUTTONS ============= */

.upload-btn-wrapper input[type="file"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer; /* You can add the cursor property directly here */
}
.upload-btn-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.upload-btn-wrapper:hover {
  cursor: pointer;
}

/*** ============== SIDE BAR & Navbar ============== ***/

.sidebar .navbar .navbar-nav .nav-link {
  padding: 14px 30px 14px 50px;
  color: var(--light);
  font-weight: 200;
  font-size: 16px;
  outline: none;
  display: flex;
  align-items: center;
}
.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
  color: var(--light);
  background: #1a3164;
  border-color: var(--light);
}
.sidebar .navbar .navbar-nav .nav-link i {
  font-size: 34px;
}
.sidebar .navbar .dropdown-toggle::after {
  position: absolute;
  top: 15px;
  right: 15px;
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  transition: 0.5s;
  transform: rotate(-90deg);
}
.p-urls * {
  color: var(--purple);
}
#submit-btn {
  background-color: var(--purple);
  border-color: var(--purple);
  font-size: 16px;
  font-weight: 100 !important;
  min-width: 200px !important;
  height: 50px;
}

.sidebar .navbar .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-0deg);
}
.sidebar .navbar .dropdown-item {
  padding-left: 25px;
}
.content .navbar .navbar-nav .nav-link {
  color: var(--dark);
  outline: none;
}

/* SIDE BAR DROP DOWN */

#bg-dropdown,
.sidebar .navbar .navbar-nav .show {
  background: #1a3164;
}
#bg-dropdown > a {
  padding: 6px 80px 6px 80px !important;
  font-size: 12px;
}
#bg-dropdown > a:hover {
  background: #132651;
}

/* ======== TOP NAVBAR ======== */

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
  color: var(--primary);
}

#user-av:after {
  display: none;
}

/* PROFILE CIRCLE */

#user-av {
  background: var(--regular-grey);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  text-align: center;
  font-size: 1.2em;
}
.content .navbar .dropdown-toggle::after {
  margin-left: 6px;
  vertical-align: middle;
  border: none;
  content: "\f107";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  transition: 0.5s;
}
.content .navbar .dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-180deg);
}

/* ================= TOP PROFILE CIRCLE NAV ============== */

#top-user-nav .dropdown-menu {
  font-size: 13px;
  line-height: 16px;
}
#top-user-nav .dropdown-menu i {
  font-size: 24px;
  min-width: 26px;
  color: var(--icon-grey);
}
#top-user-nav .dropdown-item:hover {
  background: transparent;
}
#user-dp {
  background: var(--regular-grey);
}
#top-user-nav a:hover,
#top-user-nav a:focus {
  color: #000 !important;
}
#cm-dropdown {
  min-width: 270px;
  font-family: "Montserrat", sans-serif;
}
.box-wrap {
  font-size: 14px;
  min-height: 490px !important;
  height: 100%;
  overflow: auto;
}
.box-wrap span {
  font-size: 17px;
}
#product-windows {
  min-height: 240px;
}
#page-description-2 a,
#p-des {
  font-size: 12px;
  color: #676666;
}
.table-cm {
  min-height: 200px;
}

/* =============== PRODUCT PAGE ============== */

.product-items {
  min-height: 19rem;
  margin-bottom: 2rem;
}

#product-cart {
  position: absolute;
  bottom: 15px;
}

/* =============== ADD PRODUCT PAGE ============== */

/* =============== ADD Category DD Menu ============== */

#add-category-btn .accordion-header {
  border: 1px solid #dedede;
  background-color: #fff;
  padding: 5px 10px 5px 20px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 280px;
  overflow: hidden;
  border-radius: 4px;
}
.accordion-header_product {
  width: 280px !important;
}
#add-category-btn .accordion-header .icon {
  font-size: 12px;
  color: #aeacac;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  transition: transform 0.3s;
}
#add-category-btn .accordion-content.active {
  display: block;
  max-height: 1500px;
  position: absolute;
  z-index: 9;
  padding: 5px 0px;
}

#add-category-btn .accordion-content {
  display: none;
  width: 280px;
  font-size: 16px;
  background-color: #fff;
}
#add-category-btn .accordion-content .option {
  height: 40px;
  width: 100%;
  transition: 0.1s;
  display: flex;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
}
#add-category-btn .accordion-content {
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
}
#add-category-btn .input-with-button {
  position: relative;
  width: 100%;
  padding-left: 0px;
  border: 2px solid #dedede;
  height: 40px;
  align-items: center;
  display: none;
  overflow: hidden;
  justify-content: space-evenly;
}

#add-category-btn #button {
  border: none;
  outline: 0;
  color: #fff;
  background-color: var(--purple);
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: start;
  font-weight: 600;
  font-size: 14px;
  padding-left: 20px;
}
#add-category-btn .input-with-button input {
  height: 100%;
  border: none;
  border-bottom: none;
  outline: 0;
  width: 100%;
  padding: 8px 20px;
  font-size: 14px;
  font-style: italic;
}
#add-category-btn .input-with-button button {
  height: 100%;
  border: none;
  background-color: #fff;
  color: #8882ed;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  padding: 0px;
}
#add-category-btn .accordion-content .option:hover {
  background: var(--light);
}

#add-category-btn #submit-btn {
  margin-bottom: 5rem;
}

/* ================ Product Window ================ */

#product-window .product-window-container {
  max-width: 1100px;
}

#product-window .product-window-title-container .item-cell {
  color: var(--text-grey);
}

#product-window .item-heading,
#product-window .item-cell {
  display: flex;
  align-items: center;
}

#product-window .product-window-container .product-body {
  min-height: 340px;
}

.item-cell .input-qyt {
  max-width: 50px;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
}

/* ================ Calendar Window ================ */
/* styles.css */

.event-day {
  cursor: pointer; 
}

.cal-events-name{
  background: #4f46e5;
  color: #fff !important;
  margin: 2px;
  border-radius: 5px;
  padding: 2px;
  text-align: left;
}


.highlight-today{
  border-radius: 100%;
  background-color: #4f46e5 !important;
  color: #fff;
  padding: 5px 9px;
}

.cal-space{
  padding: 0px !important;
}

.event-count {
  font-size: 12px; /* Font size for event count */
  color: white;
  display: block; /* Display as block element */
}

.fc .fc-button-primary:hover {
  background-color: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: var(--fc-button-text-color);
}

.fc .fc-button-primary {
  background-color: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: var(--fc-button-text-color);
}

.react-calendar__tile--active {
  background: linear-gradient(to bottom, #ff0066 65%, #ff99cc 100%) !important;
  color: white;
}

table.table.table-border tr td {
  width: 100px;
  height: 100px;
  border: 1px solid#ccc;
  cursor: pointer;
  position: relative;
}

.box-cell-grid {
  width: 116px;
  display: grid;
  border: 1px solid#ccc;
  padding: 8px 8px;
  background: #fff;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 3px auto;
  text-align: start;
  height: 93px;
  h5 {
    font-size: 12px !important;
  }
}

p.event--text {
  font-size: 12px;
  background: #4f46e5;
  color: #fff;
  border-radius: 5px;
  padding: 3px 5px;
  margin-bottom: 0px;
  white-space: nowrap;
}

.btn-primary {
  background-color: #4f46e5 !important;
}
.box-cell-grid a {
  color: #000;
  padding: 2px 4px;
  border-radius: 3px;
  margin-top: 4px;
  font-size: 12px !important;
}
.box-cell-grid a:hover {
  color: #fff;
  background-color: #4f46e5;
}

table.table.table-border.mt-3 th {
  border-style: none;
}
.react-calendar {
  background: unset !important;
}

.react-calendar__tile--now {
  background: unset !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
  background-color: #fff !important;
}
.react-calendar {
  width: 350px;
  max-width: 100%;
  margin: auto;
  background: white !important;
  border: 1px solid #a0a096;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.125em;
}

/* remove month-availability  */
button.react-calendar__navigation__arrow.react-calendar__navigation__prev2-button {
  display: none !important;
}
button.react-calendar__navigation__arrow.react-calendar__navigation__prev-button {
  display: none !important;
}
button.react-calendar__navigation__arrow.react-calendar__navigation__next-button {
  display: none !important;
}
button.react-calendar__navigation__arrow.react-calendar__navigation__next2-button {
  display: none !important;
}

.react-calendar__tile:enabled:hover {
  background: linear-gradient(to bottom, #ff0066 65%, #ff99cc 100%) !important;
  color: white;
}
/* ================ Calendar Window ================ */

/* =============== Category dropdown =============== */

.accordion-header {
  border: 1px solid #dedede;
  background-color: #fff;
  padding: 5px 10px 5px 20px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* width: 280px; */
  /* width: 150px; */
  overflow: hidden;
  border-radius: 4px;
}
.accordion-header .icon {
  font-size: 12px;
  color: #aeacac;
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  transition: transform 0.3s;
}
.accordion-content.active {
  display: block;
  max-height: 1500px;
  position: absolute;
  z-index: 9;
  padding: 5px 0px;
}
.accordion-content {
  display: none;
  /* width: 280px; */
  width: 210px;
  font-size: 16px;
  background-color: #fff;
}
.accordion-content .option {
  height: 40px;
  width: 100%;
  transition: 0.1s;
  display: flex;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
}
.accordion-content {
  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
}
#add-category-btn .input-with-button {
  position: relative;
  width: 100%;
  padding-left: 0px;
  border: 2px solid #dedede;
  height: 40px;
  align-items: center;
  display: none;
  overflow: hidden;
  justify-content: space-evenly;
}

#button {
  border: none;
  outline: 0;
  color: #fff;
  background-color: var(--purple);
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: start;
  font-weight: 600;
  font-size: 14px;
  padding-left: 20px;
}
.addBtnEvent {
  display: flex;
  justify-content: end;
  margin-top: 5px;
}
.addBtnEvent button {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 1px solid #4f46e5;
  border-radius: 50px;
}
.addBtnEvent button i {
  font-size: 14px;
  margin: 0px !important;
  color: #4f46e5 !important;
}

.reminder_field .form-check-input:checked {
  background-color: #ffffff !important;
  border-color: #c1c1c1 !important;
}

.reminder_field .form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  vertical-align: top;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid rgba(0, 0, 0, 0.25);
  appearance: none;
  color-adjust: exact;
}
.reminder_field .form-check-input:checked[type="checkbox"] {
  background-image: url("../img/check.svg");
}
.input-with-button input {
  height: 100%;
  border: none;
  border-bottom: none;
  outline: 0;
  width: 100%;
  padding: 8px 20px;
  font-size: 14px;
  font-style: italic;
}
.input-with-button button {
  border: none;
  background-color: #fff;
  color: #8882ed;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  padding: 0px 20px !important;
  margin-top: 10px;
}
.add_item_btn {
  top: 9px !important;
}
.add_item_btn_overview {
  top: 4px !important;
}
.accordion-content-company .accordion-content.active {
  width: 163px !important;
  border-radius: 5px;
}
.accordion-content .option:hover {
  background: var(--light);
}

#createButton {
  padding: 6px 12px;
  border-radius: 4px;
}

/* =============== Category dropdown close =============== */

@media (min-width: 992px) {
  .sidebar {
    margin-left: 0;
  }
  .sidebar.open {
    margin-left: -320px;
  }
  .content {
    width: calc(100% - 145px);
  }
  .content.open {
    width: 100%;
    margin-left: 0;
  }
  #top-user-nav .dropdown-menu {
    display: none;
  }
  #top-user-nav:hover .dropdown-menu {
    display: block;
    right: 0 /* rtl:ignore;; */;
    left: auto /* rtl:ignore;; */;
  }
}

/* ===== IPAD 1024 ===== */

@media (max-width: 1025px) {
  /* NAVBAR */

  .money-container span {
    display: none !important;
  }

  /* money bag */
  .fa-solid {
    font-size: 25px;
  }
}

/* ===== SIDE BAR CODE FOR SMALLER SCREENS ===== */

@media (max-width: 991.98px) {
  .navbar {
    padding: 0 2rem !important;
  }

  #user-av {
    font-size: 16px;
  }
  #cm-dropdown {
    right: 0;
    left: unset !important;
    margin: 0;
  }
  .sidebar {
    margin-left: -320px;
    top: 55px;
  }
  .sidebar.open {
    margin-left: 0;
  }
  .content {
    width: 100%;
    margin-left: 0;
  }
}

/* ===== MOBILE ===== */

@media (max-width: 550px) {
  /* ======= UTILITIES ====== */

  h5 {
    font-size: 18px;
  }

  /* NAVBAR */

  .navbar {
    padding: 10px 1.2rem !important;
  }

  .navbar-brand {
    padding-top: 2rem !important;
  }

  /* Untitled Navbar */

  #untitled-navbar {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
  }

  /* HAMBURGER ICON */
  .fa-bars {
    font-size: 25px;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  #top-user-nav {
    margin-left: 1rem;
  }
  /* =============== PRODUCTS =============== */

  /* =============== ADD PAGE =============== */

  /* =============== PRODUCT WINDOW =============== */

  #product-window .product-window-container {
    padding-top: 20px !important;
  }

  #product-window .product-window-container .item-cell-container {
    padding-right: 12px;
  }
  #product-window .product-window-heading {
    padding-left: 8px;
  }

  #product-window .item-cell-container .item-cell {
    font-size: 14px !important;
  }

  #product-window .product-body {
    padding: 1rem 0.5rem 1rem 1rem !important;
  }

  #product-window .product-body .item-cell {
    margin: 0 10px;
  }
}

.month_calender .custom_popup {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100vw;
  height: 100vh;
  background-color: rgb(0 0 0 / 0.6);
  backdrop-filter: blur(1px);
  transition: all 0.5s ease-in;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 500ms;
}

.fc .fc-timegrid-axis-cushion {
  flex-shrink: 0;
  font-size: 16px;
}
.fc.fc-media-screen.fc-direction-ltr.fc-theme-standard {
  height: 100vh;
}

.month_calender .custom_popup_body {
  display: grid;
  place-items: center;
  width: 60%;
  padding: 20px;
  border-radius: 5px;
}
.month_calender .custom_popup_body a {
  color: #2f2f2f;
  margin: 8px 0px;
  font-size: 15px;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (max-width: 800px) {
  .box-cell-grid {
    /* display: none; */
    z-index: 9999;
  }
}

@media (max-width: 390px) {
  #product-window .product-body .item-cell {
    margin: 0 8px;
  }
}
@media (max-width: 426px) {
  .item-cell-container-mobile {
    width: 100% !important;
  }
  .fc .fc-toolbar-title {
    font-size: 22px;
    margin: 0px;
  }
  .calender_header h2 {
    font-size: 22px;
  }
  .month_calender.table.table-border tr td {
    padding: 4px 0px;
    width: 99px;
    height: 0;
    border: 1px solid#ccc;
    cursor: pointer;
    position: relative;
  }

  .box-wrap {
    width: 90%;
    margin: auto;
    min-height: 450px !important;
    overflow: auto;
  }
  .box-wrap span {
    font-size: 14px;
  }
  .box-wrap .table > :not(caption) > * > * {
    padding: 10px 5px;
    background-color: var(--bs-table-bg);
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
  }
}

@media (max-width: 768px) {
  .box-wrap-main {
    margin-top: 40px;
  }
  .product-window-title-container {
    display: none !important;
  }
  .product-window-container hr {
    display: none !important;
  }
}

@media (max-width: 375px) {
  #product-window .product-body .item-cell {
    margin: 0 7px;
  }
}

.product-items2 {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-items2:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.swal2-success-line-tip, .swal2-success-line-long {
  font-size: 16px !important;
}

.swal2-x-mark-line-right, .swal2-x-mark-line-left {
  font-size: 16px !important;
}

/* custom modal */

.but-primary{
  cursor: pointer;
}

/* modal css *//* CSS for modal */

.custom-modal {
  display: none; 
  position: fixed;
  z-index: 99999; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  overflow: auto;
}



.custom-modal.active {
  display: block; 
}



.custom-modal .cu-modal {
  margin: 5% auto; 
  padding: 20px;
  position: relative;
}



.custom-modal .cu-modal-content {
  text-align: center;
  overflow: auto;
}



.custom-modal .cu-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.cu-custom-modal .cu-close:hover,
.cu-close:focus {
  color: black;
  text-decoration: none;
}
.custom-modal .cu-modal img {
  height: auto;
  display: block;
  margin: 0 auto; 
  max-height: 80vh; 

}
#p-dot{
  color: #000000 !important;
}

.edit-btn i.fa-file-signature {
  color: #000 !important;
}
