.gantt-wrapper {
  display: flex;

  flex-direction: row;
  font-family: sans-serif;
  overflow-x: auto;
}

.y-axis {
  position: flex;
  min-width: 100px;
  background: #f3f4f6;
  border-right: 1px solid #d1d5db;
  z-index: 10;
}

.y-label-header {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 16px;
  font-weight: 500;
  background-color: #e5e7eb;
  z-index: 10;
}

.y-label {
  height: 40px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  font-weight: 500;
}

.gantt-content {
  flex-grow: 1;
  position: relative;
}

.gantt-row {
  position: relative;
  height: 46px;
  border-bottom: 1px solid #f3f4f6;
  padding-right: 80px;
  left: 40px;
}
.gantt-bar.layered-action {
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
}
.gantt-bar.layered-action:hover {
  opacity: 1;
  z-index: 100;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.gantt-bar.action-pickup.layered-action {
  z-index: 15;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.gantt-bar.action-delivery.layered-action {
  z-index: 12;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.gantt-bar.action-depot.layered-action,
.gantt-bar.action-idle.layered-action,
.gantt-bar.action-charge.layered-action {
  z-index: 8;
  opacity: 0.9;
  left: 40px;
}

.gantt-bar.action-depot.layered-action:hover,
.gantt-bar.action-idle.layered-action:hover,
.gantt-bar.action-charge.layered-action:hover {
  opacity: 0.9;
  left: 40px;
}
.connector-line {
  position: absolute;
  top: 20px;
  height: 2px;
  background-color: #000000;
  opacity: 0.4;
  z-index: 1;
}

.gantt-bar {
  position: absolute;
  top: 1px;
  height: 40px;
  color: white;
  font-size: 12px;
  border-radius: 4px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  opacity: 0.9;
  z-index: 5;
}

.action-depot {
  background-color: #6b7280;
}

.action-pickup {
  background-color: #248dea;
}

.action-delivery {
  background-color: #f5590b;
}

.action-charge {
  background-color: #10b981;
}

.action-idle {
  background-color: #d1d5db;
  color: #4b5563;
}

.day-label {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(4px);
  font-size: 10px;
  color: #6b7280;
  background: rgba(249, 250, 251, 0.7);
  width: 40px;
  height: 40px;
  top: 2px;

  left: -44px;
}

day-label.first-day,
.day-label.second-day {
  background: rgba(249, 250, 251, 0.9);
}

.day-label.second-day {
  background: rgba(249, 250, 251, 0.8);
}

.multi-day-container {
  position: relative;
  border-bottom: 1px dashed #e5e7eb;
}

.x-axis {
  display: flex;
  border-top: 1px solid #d1d5db;
  background: #fafafa;
  font-size: 12px;
  position: sticky;
  bottom: 0;
}

.x-cell {
  flex: 1;
  text-align: center;
  padding: 4px;
  border-right: 1px solid #e5e7eb;
  min-width: 50px;
}
.tooltip {
  position: fixed !important;
  background: white;
  border: 1px solid #d1d5db;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000 !important;
  display: none;
  max-width: 300px;
  max-height: 400px;
  font-size: 12px;
  pointer-events: auto;
  overflow-y: auto;
  overflow-x: hidden;
}

.tooltip.clickable-tooltip {
  max-width: 450px;
  max-height: 500px;
  border: 2px solid #929292;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  background: #fefefe;
}

.tooltip::-webkit-scrollbar {
  width: 6px;
}

.tooltip::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.tooltip::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.tooltip::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.tooltip button:hover {
  background-color: #ebf4ff;
}

.clickable-tooltip::before {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #929292;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 1;
}

.tooltip #expander-content {
  transition: max-height 0.3s ease-in-out;
}

.tooltip .space-y-2 > * + * {
  margin-top: 0.5rem;
}

.date-header {
  font-weight: 500;
  padding: 1px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  font-size: 10px;
  top: 0;
}
.gantt-bar.overnight-action {
  opacity: 0.9;
  position: relative;
}

.gantt-bar.overnight-action::before {
  content: "↓ From Previous Day";
  position: absolute;
  top: -14px;
  left: 0;
  font-size: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  padding: 1px 3px;
  border-radius: 2px;
  white-space: nowrap;
}
.gantt-bar:hover {
  opacity: 1;
  z-index: 50;
}
.gantt-bar[data-tooltip-id*="tooltip-group"] {
  z-index: 10;
}

.gantt-bar[data-tooltip-id*="tooltip-group"]:hover {
  z-index: 60;
}

.vehicle-row.hidden {
  display: none;
}

.vehicle-controls {
  margin-bottom: 16px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px;
  margin: 6px;
}
.vehicle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px;
  margin: 6px;
}

.checkbox-container input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}
.checkbox-container.hidden {
  display: none;
}
.vehicle-checkbox-label {
  cursor: pointer;
  user-select: none;
  font-size: 14px;
}

.vehicle-extra-row.hidden {
  display: none;
}
.hidden-count {
  color: #979797;
  font-size: 12px;
  margin-left: 12px;
}
.listborder {
  height: 40px;
  display: flex;
  align-items: center;
  padding-left: 6px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  font-weight: 500;
}
.absolute {
  position: absolute;
}
.vehicle-row.hidden {
  display: none;
}

.vehicle-controls {
  margin-bottom: 16px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px;
  margin: 6px;
}

.checkbox-container input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}
.checkbox-container.hidden {
  display: none;
}
.vehicle-checkbox {
  cursor: pointer;
  user-select: none;
  font-size: 14px;
}
.vehicle-label.hidden {
  display: none;
}
.vehicle-extra-row.hidden {
  display: none;
}
.hidden-count {
  color: #6b7280;
  font-size: 12px;
  margin-left: 12px;
}
.vehicle-date {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 25px;
  background: #73ad21;
  padding: 2px;
  z-index: 1;
}
.vertical-line {
  position: absolute;

  top: 0;
  width: 1px;
  height: 100%;
  background-color: #e5e7eb;
  z-index: 20;
}
