* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cal Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #2c3e50;
    line-height: 1.6;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.project-config {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.config-row {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 200px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Cal Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.date-picker-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: 'Cal Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    cursor: pointer;
    color: #2c3e50;
    font-weight: 500;
}

.date-picker-input:hover {
    border-color: #0d6efd;
}

.date-picker-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
}

.date-picker-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.date-picker-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.date-picker-input::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
}

.date-picker-input::-webkit-datetime-edit-text {
    padding: 0 4px;
}

.date-picker-input::-webkit-datetime-edit-month-field,
.date-picker-input::-webkit-datetime-edit-day-field,
.date-picker-input::-webkit-datetime-edit-year-field {
    padding: 2px;
}

.date-picker-input:invalid {
    border-color: #dee2e6;
}

.btn-primary {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-icon {
    background: #007bff;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-icon:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-icon-secondary {
    background: #28a745;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-icon-secondary:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-1px);
}

.btn-icon-secondary:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.table-section {
    margin-bottom: 30px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.table-header h2 {
    color: #2c3e50;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 10px;
}

#handsontable-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: white;
}

.chart-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e9ecef;
}

.chart-section h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 600;
}

#chart-container {
    position: relative;
    height: 400px;
    background: white;
    border-radius: 8px;
    padding: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .config-row {
        flex-direction: column;
    }
    
    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .table-actions {
        justify-content: stretch;
    }
    
    .btn-secondary {
        flex: 1;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}

/* Handsontable custom styling */
.handsontable {
    font-size: 0.95rem;
}

.handsontable .htCore tbody tr td {
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 8px;
}

.handsontable .htCore thead tr th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    border-right: 1px solid #e9ecef;
    border-bottom: 2px solid #dee2e6;
    padding: 10px 8px;
}

.handsontable .readonly-column {
    background-color: #f8f9fa !important;
}

.handsontable .htCore tbody tr:hover td.readonly-column {
    background-color: #e9ecef !important;
}

.handsontable .htCore tbody tr:hover td {
    background-color: #f8f9fa;
}

.handsontable td.htInvalid {
    background-color: #fff3cd !important;
}

.nivel-cell {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #6c757d;
    font-size: 0.85rem;
}

.filter-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header h2 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #495057;
    font-size: 0.9rem;
}

.filter-item input {
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-item input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.filter-results {
    text-align: center;
    padding: 12px;
    background: white;
    border-radius: 6px;
    font-weight: 500;
    color: #495057;
}

.column-visibility {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.column-visibility-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.column-visibility-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.btn-icon-small {
    background: #dc3545;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon-small:hover {
    background: #c82333;
}

.column-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.column-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.column-checkbox-item label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #495057;
    user-select: none;
}

.semaforo-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
}

.semaforo-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.summary-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
}

.summary-section h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.summary-card-wide {
    grid-column: span 2;
}

.summary-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .summary-card-wide {
        grid-column: span 1;
    }
    
    .summary-value {
        font-size: 1.2rem;
    }
}

.stages-summary-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.stages-summary-section h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.stages-summary-section .section-header h2 {
    margin-bottom: 0;
}

#stages-table-container {
    border-radius: 8px;
    overflow-x: auto;
    background: white;
}

.stages-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stages-table thead {
    background: #2c3e50;
    color: white;
}

.stages-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stages-table th:last-child {
    border-right: none;
}

.stages-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.stages-table tbody tr:hover {
    background-color: #f8f9fa;
}

.stages-table tbody tr:last-child {
    border-bottom: none;
}

.stages-table td {
    padding: 12px;
    font-size: 0.95rem;
}

.stages-table .stage-name {
    font-weight: 600;
    color: #2c3e50;
}

.stages-table .center-cell {
    text-align: center;
    font-weight: 500;
}

.stages-table .percent-high {
    background-color: #d4edda;
    color: #155724;
}

.stages-table .percent-medium {
    background-color: #fff3cd;
    color: #856404;
}

.stages-table .percent-low {
    background-color: #f8d7da;
    color: #721c24;
}

.stages-table .deviation-positive {
    background-color: #d4edda;
    color: #155724;
    font-weight: 600;
}

.stages-table .deviation-negative {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: 600;
}

.stages-table .deviation-neutral {
    background-color: #d1ecf1;
    color: #0c5460;
    font-weight: 600;
}

.gantt-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.gantt-section h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.gantt-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.gantt-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #495057;
    user-select: none;
    cursor: pointer;
}

.gantt-controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#gantt-container {
    background: white;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    border: 1px solid #dee2e6;
    position: relative;
}

.gantt-chart {
    min-width: 100%;
    position: relative;
}

.gantt-header {
    display: flex;
    border-bottom: 2px solid #2c3e50;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.gantt-tasks-header {
    min-width: 300px;
    background: #2c3e50;
    color: white;
    padding: 12px;
    font-weight: 600;
    border-right: 2px solid #2c3e50;
    flex-shrink: 0;
}

.gantt-timeline-header {
    flex: 1;
    display: flex;
    background: #2c3e50;
}

.gantt-month {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    padding: 12px 0;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.gantt-days {
    display: flex;
    background: #495057;
    border-bottom: 1px solid #2c3e50;
}

.gantt-day {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 8px 4px;
    color: white;
    font-size: 0.75rem;
    min-width: 30px;
}

.gantt-day.weekend {
    background: rgba(0, 0, 0, 0.1);
}

.gantt-body {
    display: flex;
}

.gantt-tasks-column {
    min-width: 300px;
    background: white;
    border-right: 2px solid #dee2e6;
    flex-shrink: 0;
}

.gantt-task-row {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
}

.gantt-task-row:hover {
    background: #f8f9fa;
}

.gantt-task-toggle {
    cursor: pointer;
    user-select: none;
    font-size: 10px;
    width: 16px;
    text-align: center;
}

.gantt-task-name {
    flex: 1;
    font-size: 0.9rem;
}

.gantt-timeline-column {
    flex: 1;
    position: relative;
}

.gantt-timeline-row {
    border-bottom: 1px solid #e9ecef;
    position: relative;
    min-height: 40px;
}

.gantt-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
}

.gantt-grid-cell {
    border-right: 1px solid #e9ecef;
    flex: 1;
}

.gantt-grid-cell.weekend {
    background: #f8f9fa;
}

.gantt-bar-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 0;
}

.gantt-bar {
    position: absolute;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: opacity 0.2s;
}

.gantt-bar:hover {
    opacity: 0.8;
}

.gantt-bar.not-started {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border: 2px solid #495057;
}

.gantt-bar.in-progress {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: 2px solid #084298;
}

.gantt-bar.completed {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    border: 2px solid #1e7e34;
}

.gantt-bar.critical-path {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.4);
    border: 2px solid #dc3545;
}

.gantt-bar-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px 0 0 2px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
}

.gantt-today-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dc3545;
    z-index: 5;
    pointer-events: none;
}

.gantt-today-marker {
    position: absolute;
    top: -8px;
    left: -6px;
    width: 14px;
    height: 14px;
    background: #dc3545;
    border-radius: 50%;
    border: 2px solid white;
}

.gantt-dependency {
    position: absolute;
    pointer-events: none;
    z-index: 3;
}

.gantt-dependency-line {
    stroke: #6c757d;
    stroke-width: 2;
    fill: none;
}

.gantt-dependency-line.critical {
    stroke: #dc3545;
    stroke-width: 3;
}

.gantt-dependency-arrow {
    fill: #6c757d;
}

.gantt-dependency-arrow.critical {
    fill: #dc3545;
}

.gantt-legend {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    flex-wrap: wrap;
}

.gantt-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #495057;
}

.gantt-legend-color {
    width: 24px;
    height: 16px;
    border-radius: 3px;
}

.gantt-minimap {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 12px;
    position: relative;
    height: 80px;
    overflow: hidden;
}

.gantt-minimap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.gantt-minimap-viewport {
    position: absolute;
    top: 8px;
    height: calc(100% - 16px);
    border: 2px solid #007bff;
    background: rgba(0, 123, 255, 0.1);
    pointer-events: none;
    border-radius: 4px;
}

.gantt-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.gantt-fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #dee2e6;
}

.gantt-fullscreen-header h2 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.gantt-fullscreen-close {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.gantt-fullscreen-close:hover {
    background: #c82333;
}

.gantt-fullscreen .gantt-chart {
    flex: 1;
    overflow: auto;
}

.analytics-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.analytics-section h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 24px;
    font-size: 1.3rem;
}

.chart-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-card h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.chart-card canvas {
    max-height: 400px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-header h3 {
    margin: 0;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.charts-grid canvas {
    max-height: 350px;
}

.chart-card canvas {
    min-height: 400px;
}

.date-picker {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
}

.btn-secondary-small {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary-small:hover {
    background: #5a6268;
}

.risk-matrix {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 1;
    position: relative;
    border: 2px solid #2c3e50;
    background: linear-gradient(to top right, #d4edda 0%, #fff3cd 50%, #f8d7da 100%);
}

.risk-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.7);
    border: 2px solid #2c3e50;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.risk-bubble:hover {
    transform: scale(1.1);
}

.risk-matrix-labels {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: 1fr 40px;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto 20px;
}

.risk-matrix-y-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #495057;
}

.risk-matrix-x-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #495057;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: 150px repeat(auto-fit, minmax(60px, 1fr));
    gap: 2px;
    background: #dee2e6;
    padding: 2px;
    border-radius: 8px;
    overflow-x: auto;
}

.heatmap-cell {
    padding: 12px 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heatmap-header {
    background: #2c3e50;
    color: white;
    font-weight: 600;
}

.heatmap-row-header {
    background: #495057;
    color: white;
    font-weight: 600;
    text-align: left;
    padding-left: 12px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    line-height: 1;
}

.modal-close:hover {
    color: #2c3e50;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

.date-filter-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.date-filter-section h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.date-filter-controls {
    display: flex;
    gap: 20px;
    align-items: end;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filtered-tasks-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.filtered-tasks-table thead {
    background: #2c3e50;
    color: white;
}

.filtered-tasks-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.filtered-tasks-table th:last-child {
    border-right: none;
}

.filtered-tasks-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.filtered-tasks-table tbody tr:hover {
    background-color: #f8f9fa;
}

.filtered-tasks-table tbody tr:last-child {
    border-bottom: none;
}

.filtered-tasks-table td {
    padding: 12px;
    font-size: 0.95rem;
}

.filtered-tasks-table .center-cell {
    text-align: center;
    font-weight: 500;
}

.filtered-tasks-table .progress-cell {
    background-color: #d4edda;
    color: #155724;
    font-weight: 600;
}

.filtered-tasks-table .status-completado {
    background-color: #d4edda;
    color: #155724;
    font-weight: 600;
}

.filtered-tasks-table .status-en-proceso {
    background-color: #cfe2ff;
    color: #084298;
    font-weight: 600;
}

.filtered-tasks-table .status-pendiente {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 600;
}

.responsables-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.responsables-section h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.responsables-controls {
    display: flex;
    gap: 20px;
    align-items: end;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.responsables-analysis-header {
    background: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.responsables-analysis-header strong {
    color: #0d6efd;
}

.responsables-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.responsables-table thead {
    background: #2c3e50;
    color: white;
}

.responsables-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.responsables-table th:last-child {
    border-right: none;
}

.responsables-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.responsables-table tbody tr:hover {
    background-color: #f8f9fa;
}

.responsables-table tbody tr:last-child {
    border-bottom: none;
}

.responsables-table td {
    padding: 12px;
    font-size: 0.95rem;
}

.responsables-table .responsable-name {
    font-weight: 600;
    color: #2c3e50;
}

.responsables-table .center-cell {
    text-align: center;
    font-weight: 500;
}

.responsables-table .ocupacion-cell {
    text-align: center;
    font-weight: 700;
    font-size: 1.05rem;
}

.responsables-table .ocupacion-alta {
    background-color: #f8d7da;
    color: #721c24;
}

.responsables-table .ocupacion-media {
    background-color: #fff3cd;
    color: #856404;
}

.responsables-table .ocupacion-baja {
    background-color: #d4edda;
    color: #155724;
}

.responsables-table .estado-sobrecargado {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: 700;
    text-align: center;
}

.responsables-table .estado-normal {
    background-color: #d4edda;
    color: #155724;
    font-weight: 600;
    text-align: center;
}

.responsables-table .btn-ver-tareas {
    background: #0d6efd;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.responsables-table .btn-ver-tareas:hover {
    background: #0a58ca;
}

.responsable-tasks-detail .avance-completado {
    background-color: #d4edda;
    color: #155724;
    font-weight: 600;
}

.responsable-tasks-detail .avance-medio {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 600;
}

.responsable-tasks-detail .avance-bajo {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: 600;
}

.responsable-tasks-detail .dias-completado {
    background-color: #d4edda;
    color: #155724;
}

.responsable-tasks-detail .dias-normal {
    color: #0c5460;
}

.responsable-tasks-detail .dias-proximo {
    background-color: #fff3cd;
    color: #856404;
}

.responsable-tasks-detail .dias-urgente {
    background-color: #f8d7da;
    color: #721c24;
}

.responsable-tasks-detail .dias-vencido {
    background-color: #f5c6cb;
    color: #721c24;
    font-weight: 700;
}

.graph-tab-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.graph-tab-section h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.graph-tab-controls {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #dee2e6;
}

.graph-tab-row {
    display: flex;
    gap: 20px;
    align-items: end;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.graph-tab-row:last-child {
    margin-bottom: 0;
}

.select-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.graph-tab-result {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #dee2e6;
    min-height: 400px;
}

.graph-tab-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.graph-tab-table thead {
    background: #2c3e50;
    color: white;
}

.graph-tab-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.graph-tab-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.graph-tab-table tbody tr:hover {
    background-color: #f8f9fa;
}

.graph-tab-table tbody tr:last-child {
    border-bottom: none;
}

.graph-tab-table td {
    padding: 12px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .graph-tab-row {
        flex-direction: column;
    }

    .input-group {
        width: 100%;
    }
}

.dependency-map-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.dependency-map-section h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.dependency-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 12px;
    background: white;
    border-radius: 6px;
}

.dependency-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #495057;
    user-select: none;
    cursor: pointer;
}

.dependency-controls input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

#dependency-map-container {
    background: white;
    border-radius: 8px;
    min-height: 600px;
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.dependency-node {
    position: absolute;
    padding: 8px 12px;
    background: white;
    border: 2px solid #0d6efd;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: move;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dependency-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.dependency-node.critical-path {
    border-color: #dc3545;
    background: #fff5f5;
}

.dependency-node.completed {
    border-color: #28a745;
    background: #f0f9f4;
}

.dependency-node.in-progress {
    border-color: #ffc107;
    background: #fffbf0;
}

.dependency-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.dependency-line {
    stroke: #6c757d;
    stroke-width: 2;
    fill: none;
    marker-end: url(#arrowhead);
}

.dependency-line.critical {
    stroke: #dc3545;
    stroke-width: 3;
    marker-end: url(#arrowhead-critical);
}

.gantt-dependency-arrow {
    fill: #6c757d;
}

.gantt-dependency-arrow.critical {
    fill: #dc3545;
}

.efficiency-analysis-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.efficiency-analysis-section h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.efficiency-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.efficiency-metric-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.efficiency-metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.efficiency-metric-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.efficiency-metric-card.critical {
    border-left: 4px solid #dc3545;
}

.efficiency-metric-card.warning {
    border-left: 4px solid #ffc107;
}

.efficiency-metric-card.success {
    border-left: 4px solid #28a745;
}

.efficiency-issues-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #dee2e6;
}

.efficiency-issue-category {
    margin-bottom: 24px;
}

.efficiency-issue-category h3 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.efficiency-issue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.efficiency-issue-item {
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.efficiency-issue-item.critical {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
}

.efficiency-issue-item.warning {
    background: #fffbf0;
    border-left: 4px solid #ffc107;
}

.efficiency-issue-item.info {
    background: #e7f3ff;
    border-left: 4px solid #0d6efd;
}

.efficiency-issue-icon {
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

.efficiency-issue-content {
    flex: 1;
}

.efficiency-issue-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #2c3e50;
}

.efficiency-issue-description {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 4px;
}

.efficiency-issue-tasks {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

.efficiency-issue-category.collapsible .efficiency-issue-content {
    display: none;
    padding-top: 12px;
}

.efficiency-issue-category.collapsible.expanded .efficiency-issue-content {
    display: block;
}

.efficiency-issue-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 12px;
    background: white;
    border-radius: 6px;
    transition: background 0.2s;
}

.efficiency-issue-header:hover {
    background: #f8f9fa;
}

.efficiency-issue-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.issue-count {
    background: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.critical-badge {
    background: #f8d7da;
    color: #721c24;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.toggle-icon {
    font-size: 0.8rem;
    color: #6c757d;
    transition: transform 0.2s;
}

.efficiency-issue-category.collapsible.expanded .toggle-icon {
    transform: rotate(180deg);
}

.efficiency-issue-item.compact {
    padding: 8px 12px;
    margin-bottom: 4px;
}

.efficiency-issue-item.compact .efficiency-issue-content {
    font-size: 0.9rem;
}

.issue-summary {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 8px;
}

.level-analysis-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.level-analysis-section h3 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.level-analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.level-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border: 2px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

.level-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.level-card.critical {
    border-left: 4px solid #dc3545;
}

.level-card.warning {
    border-left: 4px solid #ffc107;
}

.level-card.success {
    border-left: 4px solid #28a745;
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.level-number {
    font-weight: 700;
    font-size: 1rem;
    color: #2c3e50;
}

.level-completion {
    font-weight: 700;
    font-size: 1.3rem;
    color: #0d6efd;
}

.level-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.level-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.stat-label {
    color: #6c757d;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
}

.level-progress-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.level-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%);
    transition: width 0.3s ease;
}

.efficiency-recommendations {
    background: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 16px;
    border-radius: 6px;
    margin-top: 20px;
}

.efficiency-recommendations h3 {
    color: #0d6efd;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.efficiency-recommendations ul {
    margin: 0;
    padding-left: 24px;
}

.efficiency-recommendations li {
    margin-bottom: 8px;
    color: #495057;
    line-height: 1.6;
}

.semaforo-proyecto-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.semaforo-proyecto-section h2 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3rem;
}

.semaforo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.semaforo-light {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.semaforo-light.green {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.4);
}

.semaforo-light.yellow {
    background: linear-gradient(135deg, #ffc107 0%, #ffeb3b 100%);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.4);
}

.semaforo-light.red {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.4);
}

.semaforo-icon {
    font-size: 5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.semaforo-status {
    text-align: center;
}

.semaforo-status-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
}

.semaforo-status-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 24px;
    max-width: 600px;
}

.semaforo-legend {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    width: 100%;
    max-width: 800px;
}

.semaforo-legend h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.semaforo-legend-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.semaforo-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.semaforo-legend-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.semaforo-legend-color.green {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.semaforo-legend-color.yellow {
    background: linear-gradient(135deg, #ffc107 0%, #ffeb3b 100%);
}

.semaforo-legend-color.red {
    background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
}

.semaforo-legend-text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

.semaforo-legend-text strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .semaforo-legend {
        padding: 16px;
    }
    
    .semaforo-legend-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

.semaforo-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin-top: 30px;
}

.semaforo-metric-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #e9ecef;
}

.semaforo-metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.semaforo-metric-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.report-generator-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.report-generator-section h2 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3rem;
}

.report-config-panel {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #dee2e6;
}

.report-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.report-section-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.report-section-checkbox:hover {
    background: #e9ecef;
    border-color: #0d6efd;
}

.report-section-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.report-section-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #0d6efd;
}

.report-section-checkbox span {
    flex: 1;
    font-size: 0.95rem;
    color: #495057;
}

.instructions-section {
    background: #e7f3ff;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 30px;
    border: 2px solid #0d6efd;
    overflow: hidden;
}

.instructions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    background: #0d6efd;
    color: white;
    transition: background 0.2s;
}

.instructions-header:hover {
    background: #0a58ca;
}

.instructions-header h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.instructions-header .toggle-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.instructions-section.expanded .toggle-icon {
    transform: rotate(180deg);
}

.instructions-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.level-filter-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.level-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.level-filter-header h2 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
}

.level-filter-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.level-checkboxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.level-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.level-checkbox-item:hover {
    background: #e9ecef;
    border-color: #0d6efd;
}

.level-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.level-checkbox-item label {
    cursor: pointer;
    font-size: 0.95rem;
    color: #495057;
    font-weight: 500;
    flex: 1;
}

.level-checkbox-item input[type="checkbox"]:checked + label {
    color: #0d6efd;
    font-weight: 600;
}

.instructions-section.expanded .instructions-content {
    max-height: 1000px;
    padding: 24px;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.instruction-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #0d6efd;
}

.instruction-card h3 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.instruction-card ul {
    margin: 0;
    padding-left: 20px;
}

.instruction-card li {
    margin-bottom: 8px;
    color: #495057;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .instructions-grid {
        grid-template-columns: 1fr;
    }
}

.task-status-tables-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.task-status-tables-section h2 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.task-status-table-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}

.task-status-table-section h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1.1rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.task-status-table-section.completed h3 {
    border-bottom-color: #28a745;
    color: #28a745;
}

.task-status-table-section.ahead h3 {
    border-bottom-color: #0d6efd;
    color: #0d6efd;
}

.task-status-table-section.delayed h3 {
    border-bottom-color: #dc3545;
    color: #dc3545;
}

.task-status-table-section.not-started h3 {
    border-bottom-color: #6c757d;
    color: #6c757d;
}

.task-status-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.task-status-table thead {
    background: #2c3e50;
    color: white;
}

.task-status-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.task-status-table th:last-child {
    border-right: none;
}

.task-status-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s;
}

.task-status-table tbody tr:hover {
    background-color: #f8f9fa;
}

.task-status-table tbody tr:last-child {
    border-bottom: none;
}

.task-status-table td {
    padding: 10px;
    font-size: 0.9rem;
}

.task-status-table .center-cell {
    text-align: center;
    font-weight: 500;
}

.task-status-table .deviation-positive {
    background-color: #d4edda;
    color: #155724;
    font-weight: 600;
}

.task-status-table .deviation-negative {
    background-color: #f8d7da;
    color: #721c24;
    font-weight: 600;
}