/* Gantt Chart Styles */

.gantt-container {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

/* Toolbar */
.gantt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.gantt-zoom-group {
  display: flex;
  gap: 2px;
  background: #e2e8f0;
  border-radius: 6px;
  padding: 2px;
}

.gantt-zoom-btn {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: #64748b;
  transition: all 0.15s;
}

.gantt-zoom-btn:hover {
  color: #334155;
}

.gantt-zoom-btn--active {
  background: white;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Scroll container */
.gantt-scroll {
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
}

/* Header */
.gantt-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  min-height: 32px;
}

.gantt-header-spacer {
  position: sticky;
  left: 0;
  z-index: 5;
  min-width: 240px;
  max-width: 240px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
}

.gantt-col-header {
  flex-shrink: 0;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #64748b;
  padding: 6px 0;
  border-right: 1px solid #f1f5f9;
  box-sizing: border-box;
}

.gantt-col-header--weekend {
  background: #f8fafc;
  color: #94a3b8;
}

/* Body */
.gantt-body {
  position: relative;
}

/* Rows */
.gantt-row {
  height: 36px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
}

.gantt-row:hover {
  background: #fafbfc;
}

/* Sticky label */
.gantt-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: white;
  min-width: 240px;
  max-width: 240px;
  padding: 0 12px;
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #334155;
  border-right: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  align-items: center;
}

.gantt-row:hover .gantt-label {
  background: #fafbfc;
}

/* Bar area (relative container for bars + weekend bands) */
.gantt-bar-area {
  position: relative;
  flex: 1;
  height: 100%;
}

/* Weekend bands */
.gantt-weekend {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #f8fafc;
  pointer-events: none;
}

/* Grid lines */
.gantt-grid-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #f1f5f9;
  pointer-events: none;
}

/* Activity bars */
.gantt-bar {
  height: 24px;
  border-radius: 4px;
  background: var(--bar-color, #3b82f6);
  cursor: grab;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: box-shadow 0.15s;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 0.6875rem;
  color: white;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  user-select: none;
  z-index: 1;
}

.gantt-bar:hover {
  background: var(--bar-hover, #2563eb);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.gantt-bar--dragging {
  cursor: grabbing;
  opacity: 0.85;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: none;
}

.gantt-bar--ghost {
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  transition: none;
}

.gantt-bar--loading {
  animation: gantt-pulse 1s ease-in-out infinite;
}

@keyframes gantt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* State colors */
.gantt-bar--option  { --bar-color: #94a3b8; --bar-hover: #64748b; }
.gantt-bar--review  { --bar-color: #f59e0b; --bar-hover: #d97706; }
.gantt-bar--active  { --bar-color: #3b82f6; --bar-hover: #2563eb; }
.gantt-bar--done    { --bar-color: #10b981; --bar-hover: #059669; }

/* Resize handle */
.gantt-resize-handle {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 20px;
  cursor: ew-resize;
  z-index: 5;
  border-radius: 2px;
}

.gantt-resize-handle:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Today line */
.gantt-today-line {
  position: absolute;
  top: 0;
  width: 2px;
  background: #ef4444;
  z-index: 3;
  pointer-events: none;
}

.gantt-today-label {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  font-size: 0.625rem;
  color: #ef4444;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  z-index: 3;
}

/* Bar enrichment badges (GANTT-14, GANTT-15) */
.gantt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 2px;
}
.gantt-badge--ratio {
  font-size: 0.5625rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  padding: 0 3px;
  height: 16px;
  color: white;
  font-weight: 600;
}
.gantt-badge--initials {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  font-size: 0.5rem;
  color: white;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Read-only bars (global Gantt) */
.gantt-bar--readonly {
  cursor: pointer;
  pointer-events: auto;
}

/* ============================================
   Global Gantt (gg-) styles
   ============================================ */

/* Header row */
.gg-header {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 4;
}
.gg-header-label {
  position: sticky;
  left: 0;
  z-index: 5;
  min-width: 280px;
  max-width: 280px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
}
.gg-header-cells {
  display: flex;
  flex: 1;
}
.gg-header-stack {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.gg-header-months,
.gg-header-days,
.gg-header-subcells {
  display: flex;
}
.gg-header-months {
  border-bottom: 1px solid #e2e8f0;
}
.gg-header-month-cell {
  box-sizing: border-box;
  padding: 4px 8px;
  border-right: 1px solid #e2e8f0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
}
.gg-header-cell {
  text-align: center;
  padding: 8px 0;
  border-right: 1px solid #f1f5f9;
  box-sizing: border-box;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #64748b;
}
.gg-header-cell--weekend {
  background: #f1f5f9;
  color: #94a3b8;
}

/* Program group header */
.gg-program {
  display: flex;
  align-items: center;
  background: #e0e7ff;
  border-bottom: 1px solid #c7d2fe;
  border-top: 1px solid #c7d2fe;
  cursor: pointer;
}
.gg-program-label {
  position: sticky;
  left: 0;
  z-index: 3;
  width: var(--gg-viewport-width, 100%);
  box-sizing: border-box;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.875rem;
  background: #e0e7ff;
  border-left: 3px solid #6366f1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
}
.gg-program:hover .gg-program-label {
  background: #c7d2fe;
}
.gg-program-name {
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gg-program-meta {
  color: #6366f1;
  font-weight: 400;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.gg-chevron {
  transition: transform 0.15s;
  flex-shrink: 0;
  transform: rotate(90deg);
}
.gg-program--collapsed .gg-chevron {
  transform: rotate(0deg);
}

/* Project sub-header row */
.gg-project {
  display: flex;
  align-items: center;
  height: 36px;
  background: #fafbfc;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
}
.gg-project:hover {
  background: #f1f5f9;
}
.gg-project-label {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 280px;
  max-width: 280px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: inherit;
  border-right: 1px solid #e2e8f0;
  height: 100%;
}
.gg-project-link {
  color: #1e293b;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gg-project-link:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* State dot */
.gg-state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gg-state-dot--option  { background: #94a3b8; }
.gg-state-dot--review  { background: #f59e0b; }
.gg-state-dot--active  { background: #3b82f6; }
.gg-state-dot--done    { background: #10b981; }

/* Project span bar (aggregate bar behind activities) */
.gg-project-bar-area {
  position: relative;
  flex: 1;
  height: 100%;
}
.gg-project-span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  border-radius: 3px;
  opacity: 0.2;
}
.gg-project-span--option  { background: #94a3b8; }
.gg-project-span--review  { background: #f59e0b; }
.gg-project-span--active  { background: #3b82f6; }
.gg-project-span--done    { background: #10b981; }
.gg-project-progress {
  height: 100%;
  border-radius: 3px;
  background: inherit;
  opacity: 3;
}

/* Activity rows */
.gg-activity-row {
  display: flex;
  align-items: center;
  height: 40px;
  border-bottom: 1px solid #f1f5f9;
}
.gg-activity-row:hover {
  background: #fafbfc;
}
.gg-activity-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: white;
  min-width: 280px;
  max-width: 280px;
  padding: 0 16px 0 32px;
  font-size: 0.8125rem;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  align-items: center;
}
.gg-activity-row:hover .gg-activity-label {
  background: #fafbfc;
}
.gg-no-activities {
  color: #94a3b8;
  font-size: 0.75rem;
  font-style: italic;
}

/* Bar area */
.gg-bar-area {
  position: relative;
  flex: 1;
  height: 100%;
}

/* Bar text and badges */
.gg-bar-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gg-bar-progress {
  flex-shrink: 0;
  margin-left: 6px;
  font-size: 0.625rem;
  opacity: 0.8;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
  padding: 1px 4px;
}
.gg-bar-users {
  display: flex;
  gap: 2px;
  margin-left: 4px;
  flex-shrink: 0;
}
.gg-user-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  font-size: 0.5625rem;
  font-weight: 600;
  color: white;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Empty state */
.gantt-empty {
  padding: 48px 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Ghost bars for cross-project visibility (GANTT-10, GANTT-11) */
.gantt-ghost-section {
  position: relative;
  border-top: 1px dashed #e2e8f0;
}
.gantt-ghost-row {
  height: 28px;
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 1px solid #f8fafc;
}
.gantt-ghost-bar {
  height: 20px;
  border-radius: 3px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  font-size: 0.625rem;
  color: white;
  padding: 0 6px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px dashed rgba(0, 0, 0, 0.15);
}
.gantt-ghost-bar--option  { background: #94a3b8; }
.gantt-ghost-bar--review  { background: #f59e0b; }
.gantt-ghost-bar--active  { background: #3b82f6; }
.gantt-ghost-bar--done    { background: #10b981; }
.gantt-ghost-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fefefe;
  min-width: 240px;
  max-width: 240px;
  padding: 0 12px;
  font-size: 0.75rem;
  font-style: italic;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid #e2e8f0;
}
.gantt-ghost-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  background: white;
  color: #64748b;
  transition: all 0.15s;
}
.gantt-ghost-toggle:hover { color: #334155; border-color: #cbd5e1; }
.gantt-ghost-toggle--active {
  background: #eff6ff;
  color: #3b82f6;
  border-color: #93c5fd;
}

/* ============================================
   Project-level global gantt flavor (gg-project-view)
   Scoped overrides for project activities panel
   ============================================ */

.gg-project-view .gantt-label {
  min-width: 280px;
  max-width: 280px;
}

.gg-project-view .gantt-header-spacer {
  min-width: 280px;
  max-width: 280px;
}

.gg-project-view .gantt-row {
  height: 40px;
}

.gg-project-view .gantt-bar {
  height: 28px;
}

.gg-project-view .gantt-ghost-label {
  min-width: 280px;
  max-width: 280px;
}

/* ============================================
   Global Gantt interactive styles
   ============================================ */

.gantt-add-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
}

.gantt-project-select {
  font-size: 0.8125rem;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  color: #334155;
  max-width: 200px;
}

.gantt-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.gantt-add-btn:hover {
  background: #e0e7ff;
}

.gg-activity-label[data-activity-id] {
  cursor: default;
}

.gg-activity-label .gantt-label-edit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.gg-activity-label .gantt-label-input {
  flex: 1;
  font-size: 0.8125rem;
  border: 1px solid #93c5fd;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  outline: none;
  min-width: 0;
}

.gg-activity-label .gantt-label-remove {
  color: #dc2626;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 0.15rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.gg-activity-label .gantt-label-remove:hover {
  background: #fecaca;
}

.gg-bar-area .gantt-bar {
  cursor: grab;
  pointer-events: auto;
}
.gg-bar-area .gantt-bar.gantt-bar--dragging {
  cursor: grabbing;
}

.gg-bar-area .gantt-resize-handle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 20px;
  cursor: ew-resize;
  z-index: 5;
  border-radius: 2px;
  right: auto;
}
.gg-bar-area .gantt-resize-handle:hover {
  background: rgba(0, 0, 0, 0.15);
}

/* Task modal styles for global gantt */
.gg-task-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.15s;
}
.gg-task-modal.gantt-modal-open {
  opacity: 1;
  pointer-events: auto;
}
.gg-task-modal .gantt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.gg-task-modal .gantt-task-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 0.75rem;
  width: min(560px, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
  padding: 1.25rem;
  z-index: 1;
}
.gg-task-modal .gantt-task-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.gg-task-modal .gantt-task-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}
.gg-task-modal .gantt-task-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
}
.gg-task-modal .gantt-task-close:hover { color: #0f172a; }
.gg-task-modal .gantt-task-list-wrapper {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.65rem;
  margin-bottom: 0.75rem;
  background: #f8fafc;
}
.gg-task-modal .gantt-task-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.gg-task-modal .gantt-task-list-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
}
.gg-task-modal .gantt-task-add-btn {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 0.375rem;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  cursor: pointer;
}
.gg-task-modal .gantt-task-add-btn:hover { background: #e0e7ff; }
.gg-task-modal .gantt-task-list { display: grid; gap: 0.5rem; }
.gg-task-modal .gantt-task-empty { font-size: 0.75rem; color: #94a3b8; }
.gg-task-modal .gantt-task-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  padding: 0.6rem;
}
.gg-task-modal .gantt-task-item-view {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.gg-task-modal .gantt-task-summary-title { font-size: 0.85rem; font-weight: 600; color: #0f172a; }
.gg-task-modal .gantt-task-summary-desc { font-size: 0.78rem; color: #64748b; margin-top: 0.15rem; }
.gg-task-modal .gantt-task-summary-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.72rem; color: #64748b; margin-top: 0.2rem;
}
.gg-task-modal .gantt-task-user {
  font-weight: 600; color: #0f172a; background: #e0e7ff; border-radius: 999px; padding: 0.1rem 0.45rem;
}
.gg-task-modal .gantt-task-item-actions { display: flex; gap: 0.5rem; }
.gg-task-modal .gantt-task-link {
  background: transparent; border: none; color: #2563eb; font-size: 0.75rem; cursor: pointer; padding: 0;
}
.gg-task-modal .gantt-task-link:hover { color: #1d4ed8; }
.gg-task-modal .gantt-task-danger { color: #dc2626; }
.gg-task-modal .gantt-task-danger:hover { color: #b91c1c; }
.gg-task-modal .gantt-task-primary { color: #0f172a; font-weight: 600; }
.gg-task-modal .gantt-task-form { display: grid; gap: 0.5rem; }
.gg-task-modal .gantt-task-field label {
  display: block; font-size: 0.72rem; font-weight: 600; color: #475569; margin-bottom: 0.2rem;
}
.gg-task-modal .gantt-task-input,
.gg-task-modal .gantt-task-select,
.gg-task-modal .gantt-task-textarea {
  width: 100%; font-size: 0.82rem; border: 1px solid #cbd5e1; border-radius: 0.5rem; padding: 0.4rem 0.55rem;
}
.gg-task-modal .gantt-task-input,
.gg-task-modal .gantt-task-select { height: 32px; }
.gg-task-modal .gantt-task-textarea { min-height: 64px; resize: vertical; }
.gg-task-modal .gantt-task-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.5rem;
}
.gg-task-modal .gantt-task-actions {
  display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.35rem;
}
.gg-task-modal .gantt-task-submit {
  background: #2563eb; color: #fff; border: none; border-radius: 0.5rem; padding: 0.5rem 0.9rem; font-size: 0.85rem; cursor: pointer;
}
.gg-task-modal .gantt-task-submit:hover { background: #1d4ed8; }
.gg-task-modal .gantt-task-cancel {
  background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; border-radius: 0.5rem; padding: 0.5rem 0.9rem; font-size: 0.85rem; cursor: pointer;
}
.gg-task-modal .gantt-task-errors { list-style: disc; padding-left: 1.25rem; font-size: 0.75rem; color: #dc2626; }
.gg-task-modal .gantt-task-status { font-size: 0.75rem; color: #059669; }
.gg-task-modal .hidden { display: none !important; }
.gg-task-modal .gantt-task-item-edit { display: grid; gap: 0.5rem; }

/* Weekend bands in global gantt bar areas */
.gg-weekend-band {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #f1f5f9;
  pointer-events: none;
  z-index: 0;
}

/* Improved + Add activity button */
.gg-add-activity-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.375rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.gg-add-activity-btn:hover {
  background: #dbeafe;
}
.gg-add-activity-btn svg {
  width: 14px;
  height: 14px;
}

/* Duration adjustment toast */
.gantt-toast {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #fbbf24;
  color: #78350f;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 50;
  pointer-events: none;
  white-space: nowrap;
}
.gantt-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Under-capacity warning during resize */
.gantt-bar--under-capacity {
  border: 2px dashed #ef4444 !important;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(239, 68, 68, 0.08) 4px,
    rgba(239, 68, 68, 0.08) 8px
  ) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}
