﻿/* --- Calendar Heatmap (layout por bloques) --- */
.chm {
    width: 100%;
}

.chm-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0 8px 0;
}

.chm-title {
    font-size: 28px;
    color: #5f6368;
    line-height: 1;
}

.chm-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

    .chm-legend .bar {
        height: 8px;
        background: linear-gradient(90deg,#eef3ff,#2466ff);
        border-radius: 2px;
    }

    .chm-legend .min, .chm-legend .max {
        font-size: 11px;
        color: #5f6368;
    }

.year-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 34px 0;
}

.year-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 600;
    color: #9e9e9e;
    line-height: 1;
    text-align: right;
    /* height y font-size se seteán desde JS según cellSize */
}

.day-axis {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: #616161;
}

    .day-axis div {
        font-size: 11px;
        height: 1em;
    }

.year-canvas {
    overflow: visible;
    flex: 1 1 auto;
}

    .year-canvas svg {
        display: block;
        overflow: visible;
    }

.calendar-tooltip {
    position: fixed;
    pointer-events: none;
    padding: 8px 12px;
    font-size: 14px;
    background: white;
    color: #333;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 120ms ease;
    z-index: 9999;
}
