﻿.prd6-root {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px 12px 20px;
    box-sizing: border-box;
}

.prd6-shell {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 190px);
    border-radius: 28px;
    padding: 18px 18px 20px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 14px 38px rgba(15,23,42,.08);
    overflow: hidden;
    box-sizing: border-box;
}

.prd6-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.prd6-title-group {
    display: flex;
    align-items: baseline;
    gap: 18px;
}

.prd6-month {
    font-weight: 800 !important;
    text-transform: lowercase;
    margin: 0;
}

.prd6-year {
    font-weight: 700 !important;
    opacity: .9;
    margin: 0;
}

.prd6-header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.prd6-summary {
    margin-bottom: 14px;
}

.prd6-caption {
    opacity: .7;
    font-weight: 600;
}

.prd6-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.prd6-weekday {
    font-size: .9rem;
    font-weight: 700;
    color: rgba(15,23,42,.62);
    padding: 0 6px;
    text-align: left;
}

.prd6-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(120px, 1fr));
    gap: 8px;
    min-height: calc(100vh - 360px);
}

.prd6-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border-radius: 22px;
    border: 1px solid rgba(15,23,42,.12);
    background: rgba(255,255,255,.98);
    padding: 10px 8px 8px;
    text-align: left;
    transition: transform .08s ease, box-shadow .12s ease, background-color .12s ease;
    min-height: 120px;
    overflow: hidden;
    box-sizing: border-box;
}

    .prd6-cell:hover {
        background: rgba(15,23,42,.03);
        box-shadow: 0 6px 18px rgba(15,23,42,.08);
    }

    .prd6-cell:active {
        transform: scale(.985);
    }

.prd6-cell--muted {
    opacity: .35;
}

.prd6-cell--today {
    box-shadow: inset 0 0 0 1px rgba(63,83,126,.30);
}

.prd6-cell__top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}

.prd6-add-button {
    position: absolute;
    top: 0;
    right: 0;
    flex: 0 0 auto;
}

.prd6-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #2f3742;
    position: relative;
    z-index: 2;
}

.prd6-cell--selected .prd6-day-number {
    background: #3f537e;
    color: #fff;
}

/*.prd6-cell--published .prd6-day-number {
    background: rgba(34,197,94,.14);
}

.prd6-cell--draft .prd6-day-number {
    background: rgba(59,130,246,.14);
}

.prd6-cell--selected.prd6-cell--published .prd6-day-number,
.prd6-cell--selected.prd6-cell--draft .prd6-day-number {
    background: #3f537e;
    color: #fff;
}*/

.prd6-add-button {
    flex: 0 0 auto;
}

.prd6-cell__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 10px;
    padding-left: 2px;
}

.prd6-menu-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
}

.prd6-menu-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.05);
    cursor: pointer;
    transition: transform .06s ease, box-shadow .12s ease, background-color .12s ease;
}

    .prd6-menu-icon:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(15,23,42,.10);
    }

.prd6-menu-icon--published {
    background: rgba(34,197,94,.14);
    border-color: rgba(34,197,94,.24);
    color: rgb(21, 128, 61);
}

.prd6-menu-icon--draft {
    background: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.22);
    color: rgb(185, 28, 28);
}


.prd6-tooltip__content {
    min-width: 220px;
    max-width: 320px;
}

.prd6-tooltip__title {
    font-weight: 700 !important;
    margin-bottom: 2px;
}

.prd6-tooltip__status {
    opacity: .75;
    display: inline-block;
    margin-bottom: 6px;
}

.prd6-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-top: 16px;
    font-size: .9rem;
    color: rgba(15,23,42,.72);
    font-weight: 600;
}

.prd6-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 6px;
}

.prd6-legend-dot--published {
    background: rgba(34,197,94,.9);
}

.prd6-legend-dot--draft {
    background: rgba(59,130,246,.9);
}

.prd6-legend-dot--today {
    background: #3f537e;
}

.prd6-empty-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1;
    color: rgba(15,23,42,.50);
    background: rgba(15,23,42,.05);
    border: 1px solid rgba(15,23,42,.06);
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .prd6-grid {
        grid-template-rows: repeat(6, minmax(100px, 1fr));
        min-height: auto;
        gap: 6px;
    }

    .prd6-cell {
        min-height: 100px;
        border-radius: 18px;
        padding: 8px 6px;
    }

    .prd6-day-number {
        min-width: 34px;
        height: 34px;
        font-size: 1.1rem;
    }

    .prd6-menu-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 768px) {
    .prd6-root {
        padding: 6px 8px 16px;
    }

    .prd6-shell {
        padding: 14px 12px 14px;
        border-radius: 22px;
    }

    .prd6-title-group {
        gap: 10px;
    }

    .prd6-month {
        font-size: 1.8rem !important;
    }

    .prd6-year {
        font-size: 1.2rem !important;
    }

    .prd6-weekday {
        font-size: .8rem;
        padding: 0 4px;
    }

    .prd6-grid {
        grid-template-rows: repeat(6, minmax(88px, 1fr));
        gap: 5px;
    }

    .prd6-cell {
        min-height: 88px;
        border-radius: 16px;
        padding: 7px 5px;
    }

    .prd6-day-number {
        min-width: 30px;
        height: 30px;
        font-size: 1rem;
        padding: 0 10px;
    }

    .prd6-cell__body {
        padding-top: 8px;
        gap: 5px;
    }

    .prd6-menu-icons {
        gap: 4px;
    }

    .prd6-menu-icon {
        width: 26px;
        height: 26px;
    }

    .prd6-legend {
        gap: 12px;
        font-size: .82rem;
    }
}

.prd6-menu-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.prd6-menu-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.prd6-menu-text {
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.prd6-menu-text--published {
    color: rgb(21, 128, 61);
}

.prd6-menu-text--draft {
    color: rgb(185, 28, 28);
}
