@font-face {
    font-family: "S-Core Dream";
    src: url("./fonts/S-CoreDream-4Regular.woff2") format("woff2"),
         url("./fonts/S-CoreDream-4Regular.woff") format("woff"),
         url("./fonts/SCDream4.otf") format("opentype"),
         url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-4Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "S-Core Dream";
    src: url("./fonts/S-CoreDream-6Bold.woff2") format("woff2"),
         url("./fonts/S-CoreDream-6Bold.woff") format("woff"),
         url("./fonts/SCDream5.otf") format("opentype"),
         url("./fonts/SCDream4.otf") format("opentype"),
         url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-5Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "S-Core Dream";
    src: url("./fonts/S-CoreDream-6Bold.woff2") format("woff2"),
         url("./fonts/S-CoreDream-6Bold.woff") format("woff"),
         url("./fonts/SCDream6.otf") format("opentype"),
         url("./fonts/SCDream4.otf") format("opentype"),
         url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-6Bold.woff") format("woff");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "S-Core Dream";
    src: url("./fonts/S-CoreDream-6Bold.woff2") format("woff2"),
         url("./fonts/S-CoreDream-6Bold.woff") format("woff"),
         url("./fonts/SCDream6.otf") format("opentype"),
         url("./fonts/SCDream4.otf") format("opentype"),
         url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-6Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "S-Core Dream";
    src: url("./fonts/S-CoreDream-8Heavy.woff2") format("woff2"),
         url("./fonts/S-CoreDream-8Heavy.woff") format("woff"),
         url("./fonts/SCDream8.otf") format("opentype"),
         url("./fonts/SCDream4.otf") format("opentype"),
         url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-8Heavy.woff") format("woff");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "S-Core Dream";
    src: url("./fonts/S-CoreDream-8Heavy.woff2") format("woff2"),
         url("./fonts/S-CoreDream-8Heavy.woff") format("woff"),
         url("./fonts/SCDream8.otf") format("opentype"),
         url("./fonts/SCDream4.otf") format("opentype"),
         url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/S-CoreDream-8Heavy.woff") format("woff");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

.yyn-schedule-overlay {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .48);
    box-sizing: border-box;
}

.yyn-schedule-overlay.yyn-preview {
    position: static;
    min-height: 100vh;
    background: #eef2f7;
}

.yyn-schedule-overlay * {
    box-sizing: border-box;
}

.yyn-schedule-hd-pop,
.yyn-schedule-hd-pop * {
    box-sizing: border-box;
}

.yyn-schedule-hd-pop {
    max-width: calc(100vw - 40px);
    background: #fff;
    font-family: "S-Core Dream", "Malgun Gothic", Arial, sans-serif;
}

.yyn-schedule-mobile-pop,
.yyn-schedule-mobile-pop * {
    box-sizing: border-box;
}

.yyn-schedule-mobile-pop {
    display: block;
    position: relative;
    z-index: 9999;
    clear: both;
    width: 100%;
    max-width: none;
    margin: 0 0 10px;
    padding: 10px 0;
    background: #3c3c3c;
    font-family: "S-Core Dream", "Malgun Gothic", Arial, sans-serif;
    line-height: normal;
    text-align: left;
    overflow: hidden;
}

.yyn-schedule-mobile-inner {
    width: 92%;
    min-width: 300px;
    max-width: 920px;
    margin: 0 auto;
    padding: 0;
    background: #fff;
}

.yyn-schedule-mobile-body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.yyn-schedule-hd-pop *,
.yyn-schedule-mobile-pop *,
.yyn-schedule-modal * {
    font-family: "S-Core Dream", "Malgun Gothic", Arial, sans-serif !important;
    line-height: normal;
}

.yyn-schedule-hd-con {
    overflow: hidden;
}

.yyn-schedule-link {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
}

.yyn-schedule-link:hover,
.yyn-schedule-link:focus,
.yyn-schedule-link:active {
    color: inherit !important;
    text-decoration: none !important;
}

.yyn-schedule-hd-pop .hd_pops_footer,
.yyn-schedule-modal .hd_pops_footer {
    padding: 10px;
    background: #303231;
    color: #fff;
    text-align: left;
}

.yyn-schedule-hd-pop .hd_pops_footer button,
.yyn-schedule-modal .hd_pops_footer button {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.yyn-schedule-mobile-footer {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid #6f6f6f;
    background: #f5f5f5;
}

.yyn-schedule-mobile-footer button {
    display: block;
    flex: 1 1 auto;
    height: 42px;
    padding: 0 8px;
    border: 0;
    background: #f5f5f5;
    color: #000;
    font-size: 12px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
}

.yyn-schedule-mobile-footer button:last-child {
    flex: 0 0 16.66666667%;
    min-width: 56px;
    border-left: 1px solid #6f6f6f;
}

.yyn-schedule-scale {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.yyn-schedule-modal {
    position: relative;
    width: 800px;
    max-width: none;
    max-height: none;
    overflow: visible;
    background: #fff;
    color: #111827;
    font-family: "S-Core Dream", "Malgun Gothic", Arial, sans-serif;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .28);
    transform: scale(.625);
    transform-origin: 0 0;
}

.yyn-schedule-hd-pop .yyn-schedule-modal {
    width: 800px;
    max-width: none;
    max-height: none;
    overflow: visible;
    box-shadow: none;
}

.yyn-schedule-mobile-pop .yyn-schedule-modal {
    width: 920px;
    max-width: none;
    max-height: none;
    overflow: visible;
    box-shadow: none;
}

.yyn-schedule-board-wrap {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    font-family: "S-Core Dream", "Malgun Gothic", Arial, sans-serif !important;
    line-height: normal !important;
    text-align: left;
}

.yyn-schedule-board-wrap,
.yyn-schedule-board-wrap * {
    box-sizing: border-box !important;
}

.yyn-schedule-board-frame {
    width: 500px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
}

.yyn-schedule-board-wrap .yyn-schedule-scale {
    width: 500px;
    max-width: 100%;
    overflow: hidden;
}

.yyn-schedule-board-wrap .yyn-schedule-modal {
    width: 800px;
    max-width: none;
    max-height: none;
    margin: 0;
    overflow: visible;
    box-shadow: none;
    transform: none !important;
    zoom: .625;
}

.yyn-schedule-board-wrap .yyn-schedule-table {
    margin: 0 !important;
}

.yyn-schedule-topbar {
    height: 9px;
    background: #346da3;
}

.yyn-popup-actions {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px 12px 0;
    pointer-events: none;
}

.yyn-popup-actions button {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 4px;
    padding: 5px 9px;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    pointer-events: auto;
}

.yyn-schedule-head {
    padding: 65px 20px 26px;
    text-align: center;
}

.yyn-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.yyn-brand-logo {
    display: block;
    width: 60%;
    max-width: 400px;
    margin: 0 auto;
    height: auto;
}

.yyn-schedule-head h2 {
    margin: 18px 0 16px;
    color: #263f5b;
    font-size: 55px;
    line-height: 1.05;
    letter-spacing: 0;
    font-weight: 600;
}

.yyn-legend {
    display: flex;
    justify-content: center;
    gap: 56px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

.yyn-legend span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.yyn-doc {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: #111827;
}

.yyn-doc-j {
    background: #fff500;
}

.yyn-doc-h {
    background: #00aeef;
    color: #fff;
}

.yyn-top-notice {
    margin-top: 6px;
    padding: 15px 14px;
    background: #16aee0;
    color: #fff;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 500;
}

.yyn-basic-notice {
    padding: 13px 14px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #284c83;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 500;
}

.yyn-table-wrap {
    padding: 0 20px 26px;
}

.yyn-schedule-table {
    width: 100%;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: fixed !important;
    border: 2px solid #111827 !important;
    color: #111827;
    font-weight: 600;
}

.yyn-schedule-table th,
.yyn-schedule-table td {
    display: table-cell !important;
    float: none !important;
    position: static;
    border: 1px solid #d9dde4;
    padding: 0 !important;
    text-align: center;
    vertical-align: middle;
    background-clip: padding-box;
    line-height: 1 !important;
}

.yyn-schedule-table thead th {
    position: relative;
    height: 36px;
    border-color: #d9dde4;
    background: #263f5b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.yyn-schedule-table thead .yyn-day-seg {
    border-left-color: #111827 !important;
}

.yyn-schedule-table thead .yyn-day-seg-last {
    border-right-color: #111827 !important;
}

.yyn-schedule-table thead .yyn-day-seg + .yyn-day-seg::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 1px;
    bottom: 1px;
    width: 2px;
    background: #fff;
    pointer-events: none;
}

.yyn-schedule-table thead .yyn-day-seg-first::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 1px;
    bottom: 1px;
    width: 2px;
    background: #fff;
    pointer-events: none;
}

.yyn-day-seg {
    border-left: 2px solid #111827 !important;
}

.yyn-day-seg-last {
    border-right: 2px solid #111827 !important;
}

.yyn-grid-week {
    width: 76px;
}

.yyn-grid-part {
    width: 44px;
}

.yyn-grid-time {
    width: 96px;
}

.yyn-date-row td {
    height: 36px;
    border-top: 2px solid #111827;
    border-bottom: 1px solid #d9dde4;
    background: #fff;
    font-size: 20px;
    line-height: 1;
    font-weight: 600;
}

.yyn-date-row td:first-child {
    background: #fff;
}

.yyn-week-name {
    border-right: 1px solid #d9dde4;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.yyn-part,
.yyn-time {
    height: 23px;
    font-size: 13px;
    font-weight: 600;
}

.yyn-time {
    font-size: 12px;
    font-weight: 600;
}

.yyn-shift-cell,
.yyn-lunch-cell {
    height: 23px;
    background-color: #fff;
}

.yyn-schedule-block-top {
    border-top: 2px solid #111827 !important;
}

.yyn-schedule-block-bottom {
    border-bottom: 2px solid #111827 !important;
}

.yyn-lunch-row .yyn-part,
.yyn-lunch-row .yyn-time {
    background: #f3f4f6;
}

.yyn-lunch-cell {
    background-color: #f3f4f6;
}

.yyn-shift-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    height: 23px;
    align-items: stretch;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 1 !important;
}

.yyn-lunch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    height: 23px;
    align-items: stretch;
    margin: 0;
    padding: 0;
    overflow: hidden;
    line-height: 1 !important;
}

.yyn-shift-slot {
    display: flex;
    min-width: 0;
    height: 23px;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #d9dde4;
    font-size: 13px;
    font-weight: 600;
    line-height: 23px !important;
}

.yyn-lunch-grid span {
    display: block;
    min-width: 0;
    height: 23px;
    border-right: 1px solid #d9dde4;
    line-height: 23px !important;
}

.yyn-shift-slot:last-child {
    border-right: 0;
}

.yyn-lunch-grid span:last-child {
    border-right: 0;
}

.yyn-shift-slot-j {
    background: #fff500;
    color: #111827;
}

.yyn-shift-slot-h {
    background: #00aeef;
    color: #fff;
}

.yyn-shift-badges .yyn-doc {
    height: 23px;
    font-size: 13px;
}

.yyn-sunday,
.yyn-other-month.yyn-sunday {
    background-color: #f3f4f6;
}

.yyn-sunday-text,
.yyn-date-cell.yyn-sunday,
.yyn-date-cell.yyn-closed {
    color: #ff0000 !important;
}

.yyn-schedule-table thead .yyn-sunday-text {
    color: #fff !important;
}

.yyn-other-month {
    color: #111827;
}

.yyn-shift-cell.yyn-closed,
.yyn-shift-cell.yyn-empty-shift,
.yyn-lunch-cell.yyn-closed,
.yyn-date-cell.yyn-empty-day,
.yyn-lunch-cell.yyn-empty-day {
    background-color: #f3f4f6;
}

.yyn-date-cell.yyn-closed {
    background-color: #fff;
}

.yyn-lunch-text {
    display: flex;
    width: 100%;
    height: 23px;
    padding: 0 2px;
    align-items: center;
    justify-content: center;
    color: #ff0000;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .yyn-schedule-overlay {
        padding: 10px;
        align-items: flex-start;
    }

    .yyn-schedule-head {
        padding: 26px 12px 18px;
    }

    .yyn-brand {
        width: 100%;
    }

    .yyn-brand-logo {
        width: 76%;
        max-width: 320px;
    }

    .yyn-schedule-head h2 {
        font-size: 36px;
        margin: 12px 0;
    }

    .yyn-legend {
        gap: 18px;
        font-size: 13px;
    }

    .yyn-top-notice {
        font-size: 17px;
    }

    .yyn-basic-notice {
        font-size: 14px;
    }

    .yyn-table-wrap {
        padding: 0 8px 16px;
        overflow-x: auto;
    }

    .yyn-schedule-table {
        min-width: 0;
    }
}
