/**
 * paper-calendar.css — 刊期日历（DigitalPaper.IssueCalendar）
 * Pad / PC 共用 #digital-paper-cal-* DOM；渠道布局差异用 body 前缀区分。
 */

.digital-paper-cal-issue-nav-icon {
    width: 25px;
    height: 25px;
    display: block;
}

/* ----- Pad（原 padcalendar.css） ----- */
body.paper-layout-pad .evrday {
    box-sizing: content-box;
    font-size: 16px;
    width: 20px;
    line-height: 12px;
    float: left;
    padding: 15px 12px;
}

body.paper-layout-pad #digital-paper-cal-root {
    max-width: 320px;
    width: 100%;
    height: 100%;
    position: relative;
}

body.paper-layout-pad #digital-paper-cal-root .monthList {
    width: 100%;
    height: 50px;
    line-height: 50px;
    position: absolute;
    top: -100px;
    background-color: #f6f6f6;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 6px;
}

body.paper-layout-pad #digital-paper-cal-root .weekList {
    width: 100%;
    height: 50px;
    line-height: 50px;
    position: absolute;
    top: -50px;
    background-color: #f6f6f6;
}

body.paper-layout-pad #digital-paper-cal-day-grid {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    color: #7e7e7e;
}

body.paper-layout-pad #digital-paper-cal-root .button {
    font-size: 20px;
    margin: auto;
    float: left;
    color: #e11919;
}

body.paper-layout-pad #digital-paper-cal-root div {
    text-align: center;
    cursor: pointer;
}

body.paper-layout-pad #digital-paper-cal-root .weekList .evrday.one {
    cursor: default;
}

body.paper-layout-pad #digital-paper-cal-month-label {
    font-size: 20px;
    width: 45vw;
    line-height: 7vh;
    float: left;
}

body.paper-layout-pad .time_img {
    width: 12px;
}

body.paper-layout-pad .time_imgs {
    width: 18px;
}

/* ----- PC（原 pccalendar.css） ----- */
body.paper-layout-pc #digital-paper-cal-root {
    width: 100%;
    max-width: 400px;
    height: 100%;
    min-height: 280px;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: #fff;
}

body.paper-layout-pc #digital-paper-cal-root .monthList {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 44px;
    padding: 4px 6px;
    box-sizing: border-box;
    background-color: #f6f6f6;
}

body.paper-layout-pc #digital-paper-cal-root .monthList .button {
    flex: 0 1 17%;
    min-width: 0;
    height: 36px;
    line-height: 36px;
    float: none;
    color: #e11919;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
}

body.paper-layout-pc #digital-paper-cal-root .monthList .button:hover {
    background: rgba(225, 25, 25, 0.08);
}

body.paper-layout-pc #digital-paper-cal-month-label {
    flex: 1 1 28%;
    min-width: 0;
    height: 36px;
    line-height: 36px;
    float: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: default;
}

body.paper-layout-pc #digital-paper-cal-root .weekList {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: stretch;
    min-height: 40px;
    background-color: #f6f6f6;
    border-top: 1px solid #eee;
    box-sizing: border-box;
}

body.paper-layout-pc #digital-paper-cal-root .weekList .evrday.one {
    flex: 1 1 14.28%;
    min-width: 0;
    width: auto;
    height: auto;
    line-height: 1.2;
    float: none;
    padding: 10px 4px;
    font-size: 15px !important;
    font-weight: 500;
    text-align: center;
    cursor: default;
    color: #666;
    box-sizing: border-box;
}

body.paper-layout-pc #digital-paper-cal-day-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 8px 4px 12px;
    color: #7e7e7e;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.paper-layout-pc #digital-paper-cal-day-grid .evrday {
    flex: 0 0 calc(100% / 7);
    width: calc(100% / 7);
    max-width: calc(100% / 7);
    box-sizing: border-box;
    float: none;
    min-height: 44px;
    line-height: 44px;
    height: auto;
    padding: 4px 2px;
    font-size: 17px !important;
    text-align: center;
    cursor: pointer;
}
