body { font-family: Arial, sans-serif; margin: 20px; }
table { border-collapse: collapse; margin: 20px 0; }
th, td { border: 1px solid #ddd; padding: 8px; text-align: center; }
th { background-color: #f2f2f2; font-weight: bold; }
.filled { background-color: #d4edda; color: #155724; font-weight: bold; }
.empty { background-color: #f8f9fa; }
.discipline-header { background-color: #e9ecef; writing-mode: vertical-rl; text-orientation: mixed; }
.stats { background-color: #d1e7dd; padding: 15px; margin: 20px 0; border-radius: 5px; }
.metadata { background-color: #e7f3ff; padding: 15px; margin: 20px 0; border-radius: 5px; border-left: 4px solid #0066cc; }
.unfilled { color: #721c24; background-color: #f8d7da; padding: 10px; margin: 10px 0; }

/* Стилі для підказок */
.tooltip-trigger {
    position: relative;
    cursor: help;
    color: #0066cc;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.tooltip-trigger:hover {
    color: #004499;
}

.tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: normal;
    max-width: 300px;
    word-wrap: break-word;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    pointer-events: none;
    white-space: normal;
    line-height: 1.3;
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}
