/* 출석 게시판 1020px 레이아웃. */
#pb-attendance-board {
    width: 100%;
    max-width: 1020px;
    margin: -30px auto 60px;
    padding: 0;
    color: #222;
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic", sans-serif;
    box-sizing: border-box
}

#pb-attendance-board * {
    box-sizing: border-box
}

#pb-attendance-board a {
    text-decoration: none
}

.pb-attendance-title {
    margin: 0 0 28px;
    color: #8a8f96;
    font-size: 15px;
    font-weight: 700
}

.pb-attendance-layout {
    display: grid;
    grid-template-columns: 492px minmax(0, 1fr);
    gap: 40px;
    align-items: start
}

.pb-attendance-calendar-column {
    position: relative;
    width: 100%
}

.pb-attendance-calendar {
    position: relative;
    width: 100%;
    background: #fff;
    z-index: 30
}

.pb-attendance-calendar.is-fixed {
    position: fixed;
    margin: 0;
    z-index: 90
}

.pb-attendance-calendar-head {
    position: relative;
    z-index: 30;
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    align-items: center;
    height: 40px
}

.pb-attendance-calendar-head strong {
    text-align: center;
    font-size: 20px;
    font-weight: 700
}

.pb-attendance-calendar-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 31px;
    border: 1px solid #dfe2e6;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 13px
}

.pb-attendance-calendar-head a:last-child {
    justify-self: end
}

.pb-attendance-weekdays,
.pb-attendance-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr)
}

.pb-attendance-weekdays span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    border-top: 1px solid #e5e7ea;
    border-left: 1px solid #e5e7ea;
    background: #fafafa;
    font-size: 13px;
    font-weight: 700
}

.pb-attendance-weekdays span:last-child {
    border-right: 1px solid #e5e7ea
}

.pb-attendance-days {
    border-bottom: 1px solid #e5e7ea
}

.pb-attendance-days>span {
    position: relative;
    display: block;
    height: 91px;
    padding: 10px;
    border-top: 1px solid #e5e7ea;
    border-left: 1px solid #e5e7ea;
    background: #fff
}

.pb-attendance-days>span:nth-child(7n) {
    border-right: 1px solid #e5e7ea
}

.pb-attendance-days>span.is-empty {
    background: #fff
}

.pb-attendance-days>span.is-today {
    outline: 1px solid #222;
    outline-offset: -1px;
    background: #f2f5f8
}

.pb-attendance-days>span.is-selected:not(.is-today) {
    background: #fafbfd
}

.pb-attendance-days b {
    font-size: 13px;
    font-weight: 400
}

.pb-attendance-stamp {
    position: absolute;
    left: 50%;
    top: 55%;
    display: block;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px
}

.pb-attendance-stamp em {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(150, 156, 163, .55);
    border-radius: 50%;
    background: rgba(255, 255, 255, .72);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7);
    color: rgba(130, 136, 143, .75);
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
    transform: rotate(-14deg);
    transition: all .15s ease
}

.pb-attendance-stamp em::before {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px dashed rgba(150, 156, 163, .35);
    border-radius: 50%
}

.pb-attendance-days>span.is-checked .pb-attendance-stamp em {
    border-color: rgba(214, 54, 54, .82);
    background: rgba(255, 246, 246, .95);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85), 0 2px 8px rgba(214, 54, 54, .12);
    color: rgba(204, 34, 34, .88);
    text-shadow: 0 0 1px rgba(204, 34, 34, .12)
}

.pb-attendance-days>span.is-checked .pb-attendance-stamp em::before {
    border-color: rgba(214, 54, 54, .38)
}

.pb-attendance-stamp:hover em {
    transform: rotate(-14deg) scale(1.04)
}

.pb-attendance-stamp:hover em {
    opacity: .72
}

.pb-attendance-bonus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px
}

.pb-attendance-bonus div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 52px;
    border: 1px solid #e3e5e8;
    border-radius: 10px;
    background: #fff
}

.pb-attendance-bonus span,
.pb-attendance-bonus strong {
    font-size: 13px
}

.pb-attendance-form-box {
    min-height: 164px;
    padding: 20px;
    border-radius: 12px;
    background: #f7f7f7
}

.pb-attendance-form-box form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px
}

.pb-attendance-form-box textarea,
.pb-attendance-message {
    display: block;
    width: 100%;
    height: 80px;
    margin: 0;
    padding: 16px;
    border: 0;
    border-radius: 10px;
    background: #fff;
    color: #333;
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    outline: 0
}

.pb-attendance-message {
    height: 80px
}

.pb-attendance-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 30px;
    padding: 0 13px;
    border: 0;
    border-radius: 7px;
    background: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer
}

/* 출석하기 버튼 글자 크기. */
.pb-attendance-form-box button.pb-attendance-submit {
    font-size: 13px;
    font-weight: 700
}

.pb-attendance-submit.is-complete {
    background: #9da5af;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: default
}

.pb-attendance-guide {
    margin: 10px 0 24px;
    color: #a17f72;
    font-size: 13px;
    line-height: 1.55
}

.pb-attendance-guide p {
    margin: 0
}

.pb-attendance-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    border-bottom: 1px solid #e5e7ea
}

.pb-attendance-list-head strong {
    font-size: 17px;
    font-weight: 700
}

.pb-attendance-list-head span {
    font-size: 13px
}

/* 회원아이콘과 출석내용을 위쪽에 맞춤. */
.pb-attendance-list article {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 34px;
    align-items: start;
    column-gap: 6px;
    min-height: 66px;
    padding: 14px 0;
    border-bottom: 1px solid #e5e7ea
}

/* 회원아이콘 모서리를 둥글게 표시. */
.pb-attendance-member-icon,
.pb-attendance-member-icon img {
    display: block;
    width: 22px;
    height: 22px;
    overflow: hidden;
    border-radius: 4px
}

/* 순위 아이콘만 출석자 행 가운데에 배치. */
.pb-attendance-rank {
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: flex-end;
    width: 34px;
    min-width: 34px;
    white-space: nowrap
}

.pb-attendance-rank img {
    display: block;
    width: auto;
    max-width: 34px;
    height: auto;
    max-height: 34px
}

.pb-attendance-list article p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    line-height: 22px
}

.pb-attendance-list article strong {
    font-size: 13px
}

.pb-attendance-list article time {
    color: #777;
    font-size: 12px
}

.pb-attendance-list article div>span {
    display: block;
    margin-top: 4px;
    font-size: 13px
}

.pb-attendance-empty {
    margin: 0;
    padding: 34px 0;
    text-align: center;
    color: #999;
    font-size: 13px
}

@media(max-width:1080px) {
    #pb-attendance-board {
        padding: 24px 20px 0
    }

    .pb-attendance-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 28px
    }

    .pb-attendance-days>span {
        height: auto;
        aspect-ratio: 1/1.3
    }
}

@media(max-width:760px) {
    #pb-attendance-board {
        padding: 18px 14px 0;
        margin-bottom: 40px
    }

    .pb-attendance-title {
        margin-bottom: 18px
    }

    .pb-attendance-layout {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .pb-attendance-calendar-column {
        min-height: 0
    }

    .pb-attendance-calendar,
    .pb-attendance-calendar.is-fixed {
        position: relative;
        left: auto !important;
        top: auto !important;
        width: 100% !important
    }

    .pb-attendance-calendar-head {
        grid-template-columns: 70px 1fr 70px
    }

    .pb-attendance-days>span {
        height: auto;
        min-height: 62px;
        aspect-ratio: auto;
        padding: 6px
    }

    .pb-attendance-stamp,
    .pb-attendance-stamp em {
        width: 38px;
        height: 38px
    }

    .pb-attendance-stamp {
        margin: -19px 0 0 -19px
    }

    .pb-attendance-stamp em {
        font-size: 7px
    }

    .pb-attendance-bonus {
        gap: 8px
    }

    .pb-attendance-guide {
        font-size: 12px
    }
}