/* Add here all your CSS customizations */
.switch {
  position: relative;
  display: inline-block;
  width: 61px;
  height: 26px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ca2222;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 30px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 0px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2ab934;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(35px);
}

/*------ ADDED CSS ---------*/
.slider:after {
  content: "";
  color: white;
  display: block;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 30%;
  font-size: 10px;
  font-family: Verdana, sans-serif;
}

input:checked + .slider:after {
  content: "";
}

/* expandable table rows */
tr.hide-table-padding td {
  padding: 0;
}

.expand-button {
  position: relative;
}

.accordion-toggle .expand-button:after {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translate(0, -50%);
  content: "-";
}

.accordion-toggle.collapsed .expand-button:after {
  content: "+";
}

.switch-warehouse {
  margin-left: 150px;
  width: 250px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .switch-warehouse {
    margin-left: 50px;
  }
}

/* Offcanvas-style sidebar */
.offcanvas {
  position: fixed;
  top: 0;
  right: -500px; /* Initially hidden */
  width: 500px;
  height: 100vh;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  z-index: 1050;
  padding: 15px;
}

.offcanvas.show {
  right: 0; /* Slide in */
}

/* Overlay effect */
.offcanvas-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1040;
}

.offcanvas-backdrop.show {
  display: block;
}

/* Close button */
.close {
  font-size: 1.5rem;
  border: none;
  background: none;
  position: absolute;
  top: 10px;
  left: 15px;
  color: #000;
}

/* Responsive styles */
@media (max-width: 768px) {
  .offcanvas {
    right: -600px;
    width: 80%;
  }
}

@media (max-width: 480px) {
  .offcanvas {
    width: 100%;
  }
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-text {
  height: 16px;
  width: 100%;
}

.skeleton-title {
  height: 24px;
  width: 60%;
}

.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/*--------- END --------*/

/* MAIN DROPDOWN */
.pac-container {
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
  border: none !important;
  padding: 6px 0 !important;
  font-family: "Inter", "Segoe UI", sans-serif !important;
  z-index: 999999 !important;
  background: #ffffff !important;
}

/* EACH ITEM */
.pac-item {
  color: #333 !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: none !important;
  gap: 10px !important;
}

/* REMOVE DEFAULT ICON */
.pac-icon {
  display: none !important;
}

/* ADD CUSTOM LEFT ICON (A modern location pin) */
.pac-item::before {
  content: "📍";
  font-size: 16px;
  opacity: 0.75;
}

/* ITEM HOVER */
.pac-item:hover {
  background-color: #f8f9fa !important;
  cursor: pointer;
}

/* MATCHED (bold highlighted part) */
.pac-item .pac-matched {
  font-weight: 600 !important;
  color: #000 !important;
}

/* SUBTEXT (address details) */
.pac-item .pac-item-query {
  color: #666 !important;
}

.pac-logo:after {
  display: none !important;
}
