.main-navbar {
  background-color: #343a40;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030; /* Higher than actionNavbar */
}

.main-navbar .navbar-brand {
  color: #fff;
  font-weight: bold;
}

.action-buttons {
  margin: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 40px); /* Match table container width */
  max-width: calc(100% - 40px);
}

.left-buttons, .right-buttons {
  display: flex;
  gap: 10px; /* Space between buttons */
}

.right-buttons {
  margin-left: auto;
}

#approve-button, #reject-button, #action-match-cheapest, #clear-button, #download-button{
  color: white;
  border: none;
  padding: 10px 20px;
  margin-right: 10px;
  cursor: pointer;
}

#download-button{
  margin-right: 0px;
}


#approve-button { background-color: green; }
#reject-button { background-color: red; }
#action-match-cheapest { background-color: blue;}
#clear-button { background-color: green; }
#download-button { background-color: orange; }

#approve-button:hover {
  background-color: darkblue;
}

#reject-button:hover {
  background-color: darkred;
}

.btn-custom {
  margin-left: 10px;
}

/* Table Container and Wrapper Styles */
.table-container {
  margin: 10px 20px 20px 20px;
  height: calc(100vh - 140px); /* Adjust based on your navbar and buttons height */
}

.table-wrapper {
  position: relative;
  max-height: 100%;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: white;
}

/* Header Styles */
thead {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: white;
}

thead th {
  background-color: white;
  border-bottom: 2px solid #dee2e6;
  box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
  padding: 12px 8px;
}

tbody {
  display: block;
  overflow-y: auto;
  height: calc(100vh - 190px); /* Adjust based on your needs */
}

thead tr, tbody tr {
  display: table;
  width: 100%;
  table-layout: fixed;
}

th.checkbox-header, td.checkbox-cell, td.lock-cell {
  width: 40px;
  text-align: center;
}

th.item-number, td.item-number {
  width: 80px;
}

th.vpn, td.vpn {
  width: 65px;
}

th.sku-name, td.sku-name {
  width: 150px;
}

th.our-price, td.our-price {
  width: 60px;
}

th.net-cost, td.net-cost {
  width: 60px;
}

th.cheapest-competitor-price, td.cheapest-competitor-price {
  width: 65px;
}

th.price-index---cheapest, td.price-index---cheapest {
  width: 65px;
}

th.cheapest-competitor, td.cheapest-competitor {
  width: 100px;
}

th.other-cheaper-competitor, td.other-cheaper-competitor {
  width: 120px;
}

th.status, td.status {
  width: 80px;
}

th.recommended-price, td.recommended-price {
  width: 100px;
}

th.match-cheapest, td.match-cheapest {
  width: 80px;
}

th.action, td.action {
  width: 80px;
}

td.action{
  text-align: center;
}

/* Cell Styles */
/* th, td {
  padding: 8px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
} */

/* Input field in recommended price column */
td.recommended-price input {
  width: 90%;
  padding: 4px;
}
/* Checkbox Alignment */


.status-approved {
  color: green;
  font-weight: bold;
}

.status-rejected {
  color: red;
  font-weight: bold;
}

.status-suggested {
  color: orange;
  font-weight: bold;
}

.status-active {
  color: blue;
  font-weight: bold;
}

/* Change the background color for 'Match Cheapest' button */
/* td.match-cheapest button {
  background-color: green;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

td.match-cheapest button:hover {
  background-color: darkgreen;
} */

.icon {
  display: inline-block;
  cursor: pointer;
  margin: 0 4px;
  transition: all 0.2s ease;
  font-size: 16px;
}

.icon.disabled {
  cursor: not-allowed;
  filter: grayscale(100%);
  opacity: 0.5;
  pointer-events: none;
}

.icon:not(.disabled):hover {
  transform: scale(1.1);
}

.check-icon .icon-content {
  color: #4CAF50;  /* Green color for check icon */
}

.cross-icon .icon-content {
  color: #F44336;  /* Red color for cross icon */
}

.icon.disabled .icon-content {
  color: #9E9E9E;  /* Grey color for disabled state */
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 35px; /* Increased from 30px to 35px */
  height: 17px;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-label {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 17px;
}

.toggle-label:before {
  position: absolute;
  content: "";
  height: 13px;
  width: 13px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.toggle-input:checked + .toggle-label {
  background-color: #33a11b;
}

.toggle-input:checked + .toggle-label:before {
  transform: translateX(18px);
}

.hidden {
    display: none;
}

.lock-icon {
  cursor: pointer;
  display: inline-block;
  text-align: center;
  width: 24px;
  height: 24px;
}

.lock-icon.locked {
  color: #888;
}

.icon.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

input:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

.lock-cell {
  text-align: center;
}

.locked-row {
  background-color: #f0f0f0 !important;
  opacity: 0.8;
}

.locked-row td {
  color: #666;
}

.locked-row .recommended-price input {
  background-color: #e9e9e9;
  border-color: #ccc;
}

/* Highlight the lock icon when locked for better visibility */
.lock-icon.locked .icon-content {
  /* color: #d43f3a; */
  font-weight: bold;
}

/* Lock icon styling */
.lock-icon {
  cursor: pointer;
  font-size: 12px;
  display: inline-block;
  width: 24px;
  height: 24px;
  text-align: center;
  transition: all 0.2s ease-in-out;
}

.lock-icon i {
  color: #555;
}

.locked-row {
  background-color: rgba(217, 83, 79, 0.05); /* Light red background for locked rows */
}