.job-planning-welcome {
  padding: 20px;
}

.job-planning-welcome .umb-box:first-child {
  margin-bottom: 15px !important;
}

.welcome-container {
  display: flex;
  justify-content: center;
  padding: 0 40px;
}

.welcome-content {
  max-width: 600px;
  text-align: center;
}

.welcome-content h2 {
  font-size: 32px;
  font-weight: 600;
  color: #1D2180;
}

/* 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: #1D2180;
  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: #1D2180;
  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(180deg);
  }

  .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: #1D2180;
    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%;
}

/* Dashboard Tiles */
.dashboard-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.dashboard-tile {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.dashboard-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1D2180 0%, #0CDC2A 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.dashboard-tile:hover {
  border-color: #1D2180;
  box-shadow: 0 8px 24px rgba(43, 56, 233, 0.15);
}

.dashboard-tile:hover::before {
  transform: scaleX(1);
}

.tile-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #1D2180 0%, #0CDC2A 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
}

.tile-content {
  flex: 1;
}

.tile-content h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
}

.tile-content p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.tile-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #1D2180;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(43, 56, 233, 0.3);
}

.tile-add-btn:hover {
  background: #1e2bb8;
  box-shadow: 0 4px 8px rgba(43, 56, 233, 0.4);
  transform: translateY(-1px);
}

.tile-add-btn:active {
  transform: translateY(0);
}

.tile-add-btn i {
  font-size: 16px;
}

.tile-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #0CDC2A;
  color: #111827;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(132, 233, 43, 0.3);
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.tile-view-btn:hover {
  background: #6bc91f;
  box-shadow: 0 4px 8px rgba(132, 233, 43, 0.4);
  transform: translateY(-1px);
}

.tile-view-btn:active {
  transform: translateY(0);
}

.tile-view-btn i {
  font-size: 16px;
}

/* Content List View */
.content-list-view {
  margin-top: 20px;
}

.content-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.content-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.content-list-item:hover {
  background: #f9fafb;
  border-color: #1D2180;
  box-shadow: 0 2px 8px rgba(43, 56, 233, 0.1);
  transform: translateX(4px);
}

.list-item-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #1D2180 0%, #0CDC2A 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.list-item-content {
  flex: 1;
  min-width: 0;
}

.list-item-content h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.list-item-content p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.list-item-action {
  color: #9ca3af;
  font-size: 20px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.content-list-item:hover .list-item-action {
  color: #1D2180;
}

.no-items-message {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
  font-size: 16px;
}

.no-items-message p {
  margin: 0;
}

/* Override padding-bottom for dashboard boxes on mobile */
@media (max-width: 991px) {
  .job-planning-welcome .umb-box:last-child {
    padding-bottom: 20px !important;
  }

  .content-list-view .umb-box:last-child {
    padding-bottom: 20px !important;
  }
}

/* Override margin-bottom for content list boxes on desktop */
@media (min-width: 1200px) {
  .job-planning-welcome .umb-box {
    margin-bottom: 20px !important;
  }
}

/* Mobile adjustments for tiles */
@media (max-width: 768px) {
  .dashboard-tiles {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0;
  }

  .dashboard-tile {
    padding: 20px;
  }

  .tile-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .tile-content h3 {
    font-size: 18px;
  }

  .content-list-item {
    padding: 14px 16px;
  }

  .list-item-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Client Picker Dialog Styles */
.client-picker-dialog {
  min-width: 400px;
}

.client-picker-dialog h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.client-picker-dialog p {
  margin: 0 0 16px 0;
  color: #6b7280;
  font-size: 14px;
}

.client-picker-list {
  max-height: 400px;
  overflow-y: auto;
  margin: 16px 0;
}

.client-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 8px;
}

.client-picker-item:hover {
  background: #f9fafb;
  border-color: #1D2180;
  box-shadow: 0 2px 8px rgba(43, 56, 233, 0.1);
  transform: translateX(4px);
}

.client-picker-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1D2180 0%, #0CDC2A 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
}

.client-picker-content {
  flex: 1;
  min-width: 0;
}

.client-picker-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.client-picker-content span {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.client-picker-action {
  color: #9ca3af;
  font-size: 18px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.client-picker-item:hover .client-picker-action {
  color: #1D2180;
}

.no-clients-dialog {
  min-width: 300px;
}

.no-clients-dialog h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.no-clients-dialog p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}
