/* Custom min height for the ag grids */
.ag-center-cols-clipper {
  min-height: 42px !important;
}

#button-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.button {
  border: none;
}

.button.hide {
  display: none !important;
}

.button.show {
  display: inline-block !important;
  margin-left: 10px;
  margin-bottom: 16px;
}

.form-label {
  margin: 0;
}

.button.primary {
  background-color: var(--bs-primary);
}
.button.primary:hover {
  background-color: #54609d;
}

.button.danger {
  background-color: var(--bs-danger);
}
.button.danger:hover {
  background-color: #ac2835;
}

.button.success {
  background-color: var(--bs-success);
}
.button.success:hover {
  background-color: #18764a;
}

/* Container for each label and input pair */
.input-container {
  margin-bottom: 20px; /* Space between each input container */
}

/* Input box styling */
input[type="text"],
input[type="number"],
.supernova input[type="text"],
.dcc-input {
  padding: 0px 10px;
  border-radius: 5px;
  border-color: #d3d3d3;
  width: 100%;
}

.sku-confirm-btn {
  line-height: 100%; /* Change height of the button while maintaining centered text */
  margin-top: 5px;
}

.support-btn {
  background-color: gray;
  border-radius: 5px;
  border-color: #3f3f3f;
}

.support-btn:hover {
  background-color: #6a6a6a;
}

.popover {
  max-width: 500px;
}

.edited-cell {
  background-color: #add8e6;
}

.future-sale {
  background-color: #b1e6ad;
  color: #153cfc !important;
}

/* Current week data type indicators */
.current-week-actual {
  background-color: #f2fc15 !important;
  color: #153cfc !important;
}

.current-week-forecast {
  background-color: #f2fc15 !important;
  color: #fc1526 !important;
}

/* Modern hover effect for KPI cards */
.hover-lift {
  transition: transform 0.25s ease-out, box-shadow 0.3s ease-out !important;
}

.hover-lift:hover .kpi-card {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2),
    0 2px 30px rgba(120, 160, 255, 0.15) !important;
}

.hover-lift:active .kpi-card {
  transform: translateY(-0.5px) !important;
  transition: transform 0.1s ease-out !important;
}

/* Loading message for sku mgmt offcanvas */
.loading-message {
  font-size: 1.1rem;
  font-weight: 500;
  animation: pulse 1.5s infinite;
}

/* Pulse animation for loading message */
@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* Disappear animation for items loaded message */
.items-loaded {
  font-size: 1.1rem;
  font-weight: 500;
  animation: disappear 2.5s;
  animation-fill-mode: forwards;
}

/* Disappear animation for items loaded message */
@keyframes disappear {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* Offcanvas animation for smooth entry */
.offcanvas {
  transition: transform 0.4s ease-in-out !important; /* slower, smoother */
}

/* Offcanvas backdrop smooth transition */
.offcanvas-backdrop {
  transition: opacity 0.6s ease-in-out !important;
}

/* Inventory Page Button Styling */
.inventory-button {
  color: #333 !important;
  border-color: rgba(100, 100, 100, 0.3) !important;
  transition: all 0.3s ease !important;
  background-color: rgba(220, 225, 230, 0.3) !important;
  height: 40px !important;
  margin: 0 5px !important;
}

.inventory-button:hover {
  background-color: rgba(160, 165, 170, 0.9) !important;
  border-color: rgba(95, 96, 97, 0.3) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* For outline buttons that need a silver/gray background */
.inventory-button-outline {
  color: #444 !important;
  border-color: rgba(100, 100, 100, 0.5) !important;
  transition: all 0.3s ease !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  margin: 0 5px !important;
}

.inventory-button-outline:hover {
  color: #333 !important;
  background-color: rgba(180, 185, 190, 0.8) !important;
  border-color: rgba(100, 100, 100, 0.7) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Warning outline button */
.inventory-button-outline-warning {
  color: #444 !important;
  border-color: rgba(100, 100, 100, 0.5) !important;
  transition: all 0.3s ease !important;
  background-color: rgba(255, 246, 124, 0.514) !important;
  margin: 0 5px !important;
}

.inventory-button-outline-warning:hover {
  color: #333 !important;
  background-color: rgba(192, 194, 60, 0.8) !important;
  border-color: rgba(100, 100, 100, 0.7) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Danger outline button */
.inventory-button-outline-danger {
  color: #444 !important;
  border-color: rgba(
    220,
    53,
    69,
    0.5
  ) !important; /* Bootstrap danger color with opacity */
  transition: all 0.3s ease !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  margin: 0 5px !important;
}

.inventory-button-outline-danger:hover {
  color: #333 !important;
  background-color: rgba(
    220,
    53,
    70,
    0.548
  ) !important; /* Lighter danger background on hover */
  border-color: rgba(220, 53, 69, 0.253) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Success outline button */
.inventory-button-outline-success {
  color: #444 !important;
  border-color: rgba(
    25,
    135,
    84,
    0.5
  ) !important; /* Bootstrap success color with opacity */
  transition: all 0.3s ease !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  margin: 0 5px !important;
}

.inventory-button-outline-success:hover {
  color: #333 !important;
  background-color: rgba(
    25,
    135,
    84,
    0.479
  ) !important; /* Lighter success background on hover */
  border-color: rgba(25, 135, 84, 0.253) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Blue outline button */
.inventory-button-outline-blue {
  color: #444 !important;
  border-color: rgba(
    13,
    110,
    253,
    0.5
  ) !important; /* Bootstrap primary blue color with opacity */
  transition: all 0.3s ease !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  margin: 0 5px !important;
}

.inventory-button-outline-blue:hover {
  color: #333 !important;
  background-color: rgba(
    13,
    109,
    253,
    0.253
  ) !important; /* Lighter blue background on hover */
  border-color: rgba(13, 110, 253, 0.7) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* Inventory Page Button Styling */
.inventory-button-prominent {
  color: #ffffff !important;
  border-color: rgba(100, 100, 100, 0.3) !important;
  transition: all 0.3s ease !important;
  background-color: rgba(0, 54, 107, 0.8) !important;
  height: 40px !important;
  margin: 0 5px !important;
}

.inventory-button-prominent:hover {
  background-color: rgba(0, 32, 65, 0.8) !important;
  border-color: #333 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* For outline buttons that need a silver/gray background */
.inventory-button-prominent-outline {
  color: #444 !important;
  border-color: rgba(100, 100, 100, 0.5) !important;
  transition: all 0.3s ease !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  margin: 0 5px !important;
}

.inventory-button-prominent-outline:hover {
  color: #333 !important;
  background-color: rgba(180, 185, 190, 0.8) !important;
  border-color: rgba(100, 100, 100, 0.7) !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.inventory-button-danger {
  color: #ffffff !important;
  border-color: rgb(181, 181, 181) !important;
  transition: all 0.3s ease !important;
  background-color: #af0000 !important;
  height: 40px !important;
  margin: 0 5px !important;
}

.inventory-button-success {
  color: #ffffff !important;
  border-color: rgb(198, 198, 198) !important;
  transition: all 0.3s ease !important;
  background-color: #178c33 !important;
  height: 40px !important;
  margin: 0 5px !important;
}

.inventory-button-success:hover {
  color: #ffffff !important;
  border-color: rgb(198, 198, 198) !important;
  transition: all 0.3s ease !important;
  background-color: #095b1c !important;
  height: 40px !important;
  margin: 0 5px !important;
}

.revert-changes-button {
  color: #ffffff !important;
  border-color: rgb(181, 181, 181) !important;
  transition: all 0.3s ease !important;
  background-color: #8a0000 !important;
  height: 40px !important;
  margin: 0 5px !important;
  opacity: 0.8 !important;
}

.revert-changes-button:hover {
  color: #ffffff !important;
  border-color: rgb(181, 181, 181) !important;
  transition: all 0.3s ease !important;
  background-color: #ac0000 !important;
  height: 40px !important;
  margin: 0 5px !important;
  opacity: 0.8 !important;
}

/* Show/hide button classes with the new styling */
.button.hide {
  display: none !important;
}

.button.show.primary {
  display: inline-block !important;
  margin-left: 10px;
  margin-bottom: 16px;
  color: #333 !important;
  border-color: rgba(100, 100, 100, 0.3) !important;
  background-color: rgba(180, 185, 190, 0.8) !important;
  transition: all 0.3s ease !important;
}

.button.show.primary:hover {
  background-color: rgba(160, 165, 170, 0.9) !important;
  border-color: #444 !important;
}

.button.show.success {
  display: inline-block !important;
  margin-left: 10px;
  margin-bottom: 16px;
  color: #333 !important;
  border-color: rgba(100, 100, 100, 0.3) !important;
  background-color: rgba(160, 190, 170, 0.8) !important;
  transition: all 0.3s ease !important;
}

.button.show.success:hover {
  background-color: rgba(140, 170, 150, 0.9) !important;
  border-color: #444 !important;
}

.button.show.danger {
  display: inline-block !important;
  margin-left: 10px;
  margin-bottom: 16px;
  color: #333 !important;
  border-color: rgba(100, 100, 100, 0.3) !important;
  background-color: rgba(190, 150, 150, 0.8) !important;
  transition: all 0.3s ease !important;
}

.button.show.danger:hover {
  background-color: rgba(180, 140, 140, 0.9) !important;
  border-color: #444 !important;
}

/* Main card styling */
.shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Card header styling */
.card-header .nav-item button {
  color: #333;
  border-color: rgba(100, 100, 100, 0.3);
  transition: all 0.3s ease;
  margin: 0 3px;
}

.card-header .nav-item button:hover {
  background-color: rgba(120, 120, 120, 0.15);
  border-color: #333;
}

.card-header .support-btn {
  color: #333;
  border-color: rgba(100, 100, 100, 0.3);
  transition: all 0.3s ease;
}

.card-header .support-btn:hover {
  background-color: rgba(120, 120, 120, 0.15);
  border-color: #333;
}

/* Background colors */
body {
  background-color: #f0f2f5;
}

/* Card body content */
.card-body .container-fluid {
  padding-left: 5px;
  padding-right: 5px;
  max-width: 100%;
  overflow-x: hidden;
}

/* Remove horizontal scrollbar */
.card-body {
  overflow-x: hidden;
}

/* Make sure the dashboard content stays within bounds */
#page-content {
  overflow-x: hidden;
  width: 100%;
}

/* Ensure page container respects width constraints */
.dbc-ag-grid {
  overflow-x: hidden;
  max-width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-header h4 {
    font-size: 1.2rem;
  }

  /* Ensure no horizontal scrolling on mobile */
  body,
  html {
    overflow-x: hidden;
    width: 100%;
  }
}
