/* Zorg dat de hoofdcontainer altijd netjes gecentreerd blijft */
.container {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Optiebalk boven de enkele maandkalender */
.month-options-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.9rem;
    padding: 0.55rem 0.85rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.month-opt-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, border-color 0.15s;
}

.month-opt-chip:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.month-opt-chip input {
    accent-color: var(--primary);
    cursor: pointer;
}

/* Maandkop met mini-kalenders links & rechts */
.single-month-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 -1.5rem 1.25rem -1.5rem;
    padding: 0.65rem 1.25rem;
    background-color: var(--month-header-bg, #eff6ff);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 11px 11px 0 0;
}

.single-month-top-bar .single-month-header-nav {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.mini-month-box {
    display: block;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    color: #1e293b;
    transition: transform 0.12s, background 0.15s;
}

.mini-month-box:hover {
    background: #ffffff;
    transform: translateY(-1px);
}

.mini-month-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-align: center;
    color: var(--month-header-color, var(--primary));
    margin-bottom: 0.2rem;
}

.mini-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 14px);
    gap: 1px;
    text-align: center;
    font-size: 0.58rem;
    line-height: 1.25;
}

.mini-wd {
    font-weight: 700;
    color: #64748b;
}

.mini-hol {
    background: var(--holiday-bg, #fee2e2);
    color: var(--holiday-text, #b91c1c);
    font-weight: 700;
    border-radius: 2px;
}

/* Extra details binnen de dagvakjes van de maandkalender */
.single-month-card .day {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    justify-content: space-between;
}

.day-top-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    position: relative;
}

.day-year-num {
    font-size: 0.66rem;
    color: #94a3b8;
    font-weight: 500;
}

.day-countdown-pill {
    font-size: 0.64rem;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
}

.day-season-badge {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #15803d;
    margin-top: 0.15rem;
}

/* Sterrenbeeld-pill: iets groter, duidelijker en met symbool + naam */
.day-zodiac-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    max-width: 100%;
    padding: 0.14rem 0.45rem;
    margin-top: 0.2rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
}

.day-zodiac-badge .zodiac-symbol {
    font-size: 0.92rem;
    line-height: 1;
}

.day-zodiac-badge .zodiac-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.day-zodiac-badge.zodiac-start {
    background: #eef2ff;
    border-color: #818cf8;
    color: #3730a3;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(67, 56, 202, 0.12);
}

.day-sun-times {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.25rem;
    font-size: 0.66rem;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

/* Maandsamenvatting & Notitieblok onderaan de maandkaart */
.single-month-footer-extras {
    margin-top: 1.1rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Verberg de gehele container (inclusief bovenlijn) zodra zowel Voettekst als Notitieblok uitstaan */
.single-month-footer-extras:not(:has(> :not(.hidden))) {
    display: none !important;
}

.month-summary-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    color: #334155;
}

.month-notes-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    text-align: left;
}

.month-notes-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.45rem;
}

.month-notes-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #fcd34d;
    border-radius: 7px;
    padding: 0.5rem 0.65rem;
    font-family: inherit;
    font-size: 0.86rem;
    line-height: 1.5;
    background: #ffffff;
    color: #1e293b;
    resize: vertical;
}

.month-notes-print-lines {
    display: none;
}

.month-ext-sun.hidden,
.month-ext-doy.hidden,
.month-ext-zodiac.hidden,
.month-ext-season.hidden,
.month-ext-footer.hidden,
.month-ext-notes.hidden {
    display: none !important;
}

@media (max-width: 760px) {
    .mini-month-side {
        display: none;
    }
}
