/* ========== Gantt chart wrapper ========== */

.gantt-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    min-height: 200px;
    width: 100%;
}

/* ========== Frappe Gantt light theme overrides ========== */

.gantt .grid-background {
    fill: #fafbfb;
}

.gantt .grid-header {
    fill: #f1f5f9;
    stroke: #e2e8f0;
    stroke-width: 1;
}

.gantt .grid-row {
    fill: transparent;
}

.gantt .grid-row:nth-child(even) {
    fill: #f8fafa;
}

.gantt .row-line {
    stroke: #e2e8f0;
}

.gantt .tick {
    stroke: #e2e8f0;
    stroke-width: 1;
}

.gantt .tick.thick {
    stroke: #cbd5e1;
    stroke-width: 2;
}

.gantt .today-highlight {
    fill: rgba(249, 172, 0, 0.08);
}

.gantt .lower-text,
.gantt .upper-text {
    fill: #64748b;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
}

.gantt .bar-label {
    fill: #07342f;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 500;
}

.gantt .bar-wrapper {
    cursor: default;
}

.gantt .bar {
    fill: #dfedee;
    stroke: #c4dfe0;
    stroke-width: 1;
    rx: 4;
    ry: 4;
}

.gantt .bar-progress {
    fill: #07342f;
    rx: 4;
    ry: 4;
}

/* ========== Disable drag handles ========== */

.gantt .handle-group {
    display: none;
}

/* ========== Validation status styles ========== */

/* Conflict: red progress bar */
.gantt-conflict .bar-progress {
    fill: #ef4444 !important;
}

.gantt-conflict .bar {
    stroke: #fca5a5 !important;
}

/* Warning: amber background tint */
.gantt-warning .bar-wrapper .bar {
    fill: #fef9ec;
}

.gantt-warning .bar-progress {
    fill: #f59e0b !important;
}

/* Derived/inferred dates: dashed stroke, reduced opacity */
.gantt-derived .bar-wrapper {
    opacity: 0.6;
}

.gantt-derived .bar {
    stroke-dasharray: 4 3;
}

/* ========== Milestone bars (thin 1-day spans) ========== */

.gantt-milestone .bar {
    fill: rgba(59, 130, 246, 0.15);
    stroke: #3b82f6;
    stroke-width: 1.5;
}

.gantt-milestone .bar-progress {
    fill: #3b82f6;
}

/* ========== Category color overrides ========== */
/* Applied via JS _applyGanttColors() for full SVG compatibility */

/* ========== Badge helpers (used in projects list) ========== */

.badge-green {
    background: var(--color-status-green-light, #d1fae5);
    color: var(--color-status-green-dark, #065f46);
}

.badge-blue {
    background: var(--color-status-blue-light, #dbeafe);
    color: var(--color-status-blue-dark, #1e40af);
}

.badge-gray {
    background: var(--color-status-gray-light, #f3f4f6);
    color: var(--color-status-gray, #6b7280);
}
