.job-planning-welcome {
  padding: 20px;
}

.job-planning-welcome .umb-box:first-child {
  margin-bottom: 15px !important;
}

.welcome-container {
  display: flex;
  padding: 0 40px;
}

.welcome-content {
  max-width: 600px;
  text-align: center;
}

.welcome-content h2 {
  font-size: 32px;
  font-weight: 600;
  color: #2b38e9;
}

/* Mobile-specific welcome styling */
@media (max-width: 991px) {
  .welcome-content h2 {
    font-size: 24px;
  }

  .arrow-left {
    display: none !important;
  }

  .desktop-text {
    display: none;
  }

  .mobile-text {
    display: inline;
  }
}

/* Desktop-specific welcome styling */
@media (min-width: 992px) {
  .desktop-text {
    display: inline;
  }

  .mobile-text {
    display: none;
  }
}

.welcome-message {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.arrow-left {
  font-size: 48px;
  font-weight: bold;
  color: #2b38e9;
  animation: bounce-left 2s infinite;
  display: inline-block;
}

@keyframes bounce-left {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10px);
  }
}

/* Loading and empty states */
.loading-message,
.no-jobs-message {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-size: 16px;
}

/* Flexbox table styles */
.flex-table-container {
  margin-top: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.flex-table-header {
  display: flex;
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  font-size: 14px;
  border-bottom: 2px solid #e0e0e0;
}

.flex-table-body {
  background-color: #fff;
}

.flex-table-row {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s ease;
}

.flex-table-row:hover {
  background-color: #f8f9fa;
}

.flex-table-row:last-child {
  border-bottom: none;
}

.flex-col {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  min-height: 48px;
  box-sizing: border-box;
}

.flex-col strong {
  color: #2b38e9;
  font-weight: 600;
}

/* Hide accordion on desktop by default */
.mobile-accordion {
  display: none;
}

/* Mobile adjustments */
@media (max-width: 991px) {
  .job-planning-welcome {
    padding: 0;
  }

  /* Hide desktop table on mobile */
  .flex-table-container {
    display: none;
  }

  /* Show accordion on mobile */
  .mobile-accordion {
    display: block;
  }

  .acc-item {
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
  }

  .acc-header {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border: 0;
    cursor: pointer;
  }

  .acc-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
  }

  .acc-customer {
    font-size: 12px;
    color: #6b7280;
  }

  .acc-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
  }

  .acc-caret {
    transition: transform 0.2s ease;
  }

  .acc-open {
    transform: rotate(90deg);
  }

  .acc-body {
    padding: 0 16px 14px 16px;
    display: grid;
    gap: 10px;
    background: #fff;
  }

  .acc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
  }

  .acc-row span:first-child {
    color: #6b7280;
  }

  .acc-actions {
    margin-top: 4px;
    display: flex;
    justify-content: flex-end;
  }

  /* Mobile tree toggle button */
  .mobile-tree-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px auto 0 auto;
    padding: 12px 20px;
    background: #2b38e9;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .mobile-tree-toggle:hover {
    background: #1e2bb8;
  }

  .mobile-tree-toggle i {
    font-size: 16px;
  }

  /* Mobile nav copy button positioning */
  .mobile-nav-copy {
    position: absolute !important;
    z-index: 1000 !important;
  }
}

/* Hide tree toggle on desktop */
@media (min-width: 992px) {
  .mobile-tree-toggle {
    display: none;
  }
}

/* Status pills */
.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-quotation {
  background-color: #fef3c7;
  color: #92400e;
}

.status-approved {
  background-color: #fed7aa;
  color: #ea580c;
}

.status-scheduled {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-completed {
  background-color: #e9d5ff;
  color: #7c3aed;
}

.status-paid {
  background-color: #d1fae5;
  color: #065f46;
}

.status-tobe-scheduled {
  background-color: #fee2e2;
  color: #dc2626;
}

/* Text alignment classes */
.text-left {
  justify-content: flex-start !important;
}

.text-center {
  justify-content: center !important;
}

.text-right {
  justify-content: flex-end !important;
}

/* Column widths using flexbox */
.customer-col {
  flex: 0 0 12%;
}

.jobname-col {
  flex: 0 0 16%;
}

.status-col {
  flex: 0 0 13%;
}

.tasks-col {
  flex: 0 0 6%;
}

.revenue-col {
  flex: 0 0 8%;
}

.start-col {
  flex: 0 0 13%;
}

.finish-col {
  flex: 0 0 13%;
}

.created-col {
  flex: 0 0 9%;
}

.actions-col {
  flex: 0 0 10%;
}
