/* ===== СТИЛИ ТАБЛИЦ И ФИЛЬТРОВ ===== */

/* Дополнительные стили для heatmap (дополняющие dashboard.css) */
.heatmap {
    border-collapse: collapse;
    width: 100%;
    min-width: 1200px; /* Увеличим минимальную ширину для размещения всех филиалов */
}

.heatmap th,
.heatmap td {
    padding: 8px;
    text-align: center;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
}

.heatmap th {
    background: #f9fafb;
    font-weight: 600;
    position: sticky;
    top: 0;
}

.heatmap td {
    cursor: pointer;
    transition: all 0.2s ease;
}

.heatmap td:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Цветовые схемы для оценок */
.score-1 { background-color: #fecaca; }
.score-2 { background-color: #fed7aa; }
.score-3 { background-color: #fde68a; }
.score-4 { background-color: #bbf7d0; }
.score-5 { background-color: #86efac; }

/* Элементы управления фильтрами */
.filter-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-button {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-button:hover {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.filter-button.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.filter-label {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Списки деталей */
.details-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.details-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.details-item:last-child {
    border-bottom: none;
}

.details-item:hover {
    background: #f9fafb;
}

/* Таблица задач */
.tasks-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.tasks-table th {
    background: #f8fafc;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tasks-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
    line-height: 1.4;
}

.tasks-table tr:hover {
    background: #f9fafb;
}

/* Специфичные стили для ячеек таблицы */
.task-text {
    max-width: 350px;
    word-wrap: break-word;
}

.task-responsible {
    min-width: 150px;
    font-weight: 500;
}

.task-deadline {
    min-width: 100px;
    text-align: center;
}

.task-comment {
    max-width: 300px;
    word-wrap: break-word;
    font-style: italic;
    color: #6b7280;
}