.gantt-chart {
  width: 100%;
  height: 400px;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  background: #fff;
}

.gantt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* จัดให้ Calendar อยู่ซ้าย, ปุ่มอยู่ขวา */
  margin-bottom: 16px;
}

.machine-label {
  width: 150px;
  text-align: center;
  font-weight: bold;
  background: #ffffff;
  line-height: 60px;
  border-bottom: 1px solid #ffffff;
}

.time-scale {
  display: flex;
  flex: 1;
}

.time-cell {
  width: calc(100% / 10);
  text-align: center;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
  line-height: 40px;
  font-weight: bold;
}

.rows {
  flex: 1;
  overflow-y: auto;
}

.row {
  display: flex;
  min-height: 60px;
  border-bottom: 1px solid #ddd;
}

.row-timeline {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.vertical-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #ddd;
}

.order {
  position: absolute;
  top: 10px;
  height: 40px;
  color: #fff;
  border-radius: 20px;
  user-select: none;
  display: flex;
  align-items: center;
  z-index: 1;
  transition: left 0.1s ease, width 0.1s ease;
}

.order-content {
  flex: 1;
  text-align: center;
  line-height: 40px;
  cursor: grab;
  padding: 0 10px;
}
.gantt-buttons {
  display: flex;
  align-items: center;
  gap: 20px; /* ปรับตามต้องการ */
}
.MakequeueBtn {
  background-color: #333647;
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.SettingBtn {
  background-color: #333647;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.SettingBtn v-icon {
  font-size: 24px;
  color: white;
}

.gantt-title {
  text-align: left; 
  font-size: 30px;
  font-weight: bold;
  margin: 10px 0 10px 30px; 
  color: #000000;
}


.resize-handle {
  width: 5px;
  height: 100%;
  cursor: ew-resize;
  position: absolute;
}

.resize-handle.left {
  left: 0;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.resize-handle.right {
  right: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.order.faded {
  opacity: 0.3;
}

.drag-ghost {
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.pagination {
  display: flex;
  gap: 10px;
}

.pagination-right {
  margin-left: auto;
  /* ดันไปขวาสุด */
}


.page-btn {
  background: #ffffff;
  border: 1px solid #ffffff;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 14px;
  position: relative;
}

.fade-enter-active,
.fade-leave-active {
  transition: all 0.4s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
  transform: scale(0.8);
}

.page-btn.active {
  background: #007bff;
  border-radius: 6px;
  color: #ffffff;
}

.page-btn.add-page {
  font-weight: bold;
  background: #ffffff;
}

/* สไตล์สำหรับปุ่ม Delete ที่แสดงเมื่อคลิกขวา */
.delete-btn {
  margin-left: 5px;
  background-color: red;
  color: #fff;
  border: none;
  padding: 2px 5px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
}

/* สไตล์สำหรับ Order Dialog */
.order-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.order-dialog {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
}

.dialog-buttons button {
  margin: 5px;
}

.add-page-btn {
  background-color: #2B2E3F !important;
  /* สีปุ่ม */
  color: white !important;
  /* สีไอคอน */
  border-radius: 50%;
  /* ทำให้เป็นวงกลม */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
}

.add-page-btn:hover {
  background-color: #7e9cd3 !important;
  /* สีเข้มขึ้นเมื่อ hover */
}

.add-page:disabled {
  background-color: #ccc !important;
  /* เปลี่ยนสีเป็นสีจาง */
  cursor: not-allowed;
}