/* Estilo do Widget MyTCalendarGrid - Visão Mensal com Navegação e Visão Anual (4x3) */

.calendar-grid-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin: 0 auto 16px auto;
    max-width: 1000px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cal-header {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
}

.cal-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.cal-nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
}

.cal-nav-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cal-nav-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-day-header {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cal-day {
    height: 56px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.cal-day.cal-empty {
    opacity: 0.15;
    border: none;
    background: transparent;
    cursor: default;
}

.cal-day:not(.cal-empty):hover {
    background: #eff6ff;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.cal-day.cal-today {
    border: 2px solid #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}

.cal-day-number {
    font-size: 12px;
    font-weight: 600;
}

.cal-dots {
    display: flex;
    gap: 3px;
    margin-top: 3px;
}

.cal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.cal-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
}

.cal-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* =========================================================================
   VISÃO PANORÂMICA DO ANO TODO (GRADE 4x3 DE 12 MESES NO DESKTOP)
   ========================================================================= */

.cal-year-grid-4x3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colunas por 3 linhas de meses no desktop */
    gap: 12px;
    margin-top: 14px;
}

@media (max-width: 1200px) {
    .cal-year-grid-4x3 {
        grid-template-columns: repeat(3, 1fr); /* 3 colunas em notebooks */
    }
}

@media (max-width: 768px) {
    .cal-year-grid-4x3 {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
    }
}

@media (max-width: 480px) {
    .cal-year-grid-4x3 {
        grid-template-columns: repeat(1, 1fr); /* 1 coluna em celulares */
    }
}

.cal-month-card-mini {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    transition: transform 0.15s, border-color 0.15s;
}

.cal-month-card-mini:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.cal-mini-title {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 4px;
    padding-bottom: 3px;
    border-bottom: 1px solid #f1f5f9;
}

.cal-grid-mini {
    gap: 2px;
}

.cal-day-mini {
    height: 26px;
    border-radius: 3px;
    font-size: 9px;
}

.cal-day-mini .cal-day-number {
    font-size: 9px;
}

.cal-day-mini .cal-dot {
    width: 4px;
    height: 4px;
    margin-top: 1px;
}