.pdf-manager-frontend {
    font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;
    color: #222;
    box-sizing: border-box;
}

.pdf-manager-frontend .pm-title {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    margin: 48px 0 30px;
    color: #1f2937;
}

.pdf-manager-frontend .pm-years-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 34px;
}

.pdf-manager-frontend .pm-years {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.pdf-manager-frontend .pm-year-label {
    display: inline-block;
    padding: 18px 28px;     
    background: #fbf6ee;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
    font-size: 18px;       
    color: #222;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) inset;
}


.pdf-manager-frontend .pm-year.active .pm-year-label {
    background: #f7d308;
    color: #111;
}

.pdf-manager-frontend .pm-months-wrap {
    max-width: 1300px;
    margin: 24px auto 80px;
    padding: 0 16px;
}

.pdf-manager-frontend .pm-months {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    column-gap: 56px;
    row-gap: 56px;
    align-items: start;
    justify-items: center;
}

/* Month tile */
.pdf-manager-frontend .pm-month {
    width: 260px;
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: default;
    font-size: 22px;
    font-weight: 800;
}


/* Folder icon (IMG based) */
.pdf-manager-frontend .pm-folder-icon {
    width: 180px;   
    height: 135px;
    object-fit: contain;

    filter: sepia(0.4) saturate(1.45) hue-rotate(-10deg) brightness(0.95);
    opacity: 0.95;
}


.pdf-manager-frontend .pm-month span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;

    font-size: 22px;
    font-weight: 800;
    color: #111827;
    pointer-events: none;
}

/* Clickable state */
.pdf-manager-frontend .pm-month.has-file {
    cursor: pointer;
}

.pdf-manager-frontend .pm-month.has-file span {
    color: #111;
}

.pdf-manager-frontend .pm-month.has-file .pm-folder-icon {
    opacity: 1;
    filter: sepia(0.32) saturate(1.35) hue-rotate(-10deg);
}

/* Muted (no file) */
.pdf-manager-frontend .pm-month:not(.has-file) .pm-folder-icon {
    opacity: 0.55;
    filter: grayscale(0.4);
}

.pdf-manager-frontend .pm-month:not(.has-file) span {
    color: #9a9a9a;
}

/* Visibility control */
.pdf-manager-frontend .pm-months {
    display: none;
}

.pdf-manager-frontend .pm-months.pm-months-visible {
    display: grid;
}

/* Responsive */
@media (max-width: 1000px) {
    .pdf-manager-frontend .pm-month {
        width: 220px;
        height: 180px;
    }

    .pdf-manager-frontend .pm-folder-icon {
        width: 150px;
        height: 110px;
    }

    .pdf-manager-frontend .pm-title {
        font-size: 28px;
    }
}

@media (max-width: 700px) {
    .pdf-manager-frontend .pm-folder-icon {
        width: 150px;
        height: 115px;
    }

    .pdf-manager-frontend .pm-month span {
        font-size: 18px;
    }
}


@media (max-width: 420px) {
    .pdf-manager-frontend .pm-years {
        gap: 8px;
    }

    .pdf-manager-frontend .pm-year-label {
        padding: 10px 12px;
        font-size: 14px;
    }

    .pdf-manager-frontend .pm-months {
        gap: 18px;
    }
}
