/* font setting - Pretendard */
@font-face {
    font-family: 'SCDream';
    src: url('/assets/fonts/SCDream1.otf') format('opentype');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'SCDream';
    src: url('/assets/fonts/SCDream2.otf') format('opentype');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'SCDream';
    src: url('/assets/fonts/SCDream3.otf') format('opentype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'SCDream';
    src: url('/assets/fonts/SCDream4.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'SCDream';
    src: url('/assets/fonts/SCDream5.otf') format('opentype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'SCDream';
    src: url('/assets/fonts/SCDream6.otf') format('opentype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'SCDream';
    src: url('/assets/fonts/SCDream7.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'SCDream';
    src: url('/assets/fonts/SCDream8.otf') format('opentype');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'SCDream';
    src: url('/assets/fonts/SCDream9.otf') format('opentype');
    font-weight: 900;
    font-display: swap;
}


/* Common
---------------------------------------- */
::-webkit-scrollbar {
    width: 8px; /* 스크롤바의 너비 */
    height: 8px;
}

::-webkit-scrollbar-thumb {
    height: 30%; /* 스크롤바의 길이 */
    background: #aaa; /* 스크롤바의 색상 */

    border-radius: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(33, 33, 33, .1); /*스크롤바 뒷 배경 색상*/
}

body {
    margin: 0;
    padding: 0;
    /* font-size: 14px; */
    font-family: var(--font-family), sans-serif;
    position: relative;
    height: 100vh;
	min-width:320px;
}

* {
    box-sizing: border-box;
}

div {
    user-select: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
    word-break: keep-all;
    user-select: none;
}

/* h1 {
    font-weight: normal;
    margin: 0;
} */

h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}
h1 {
    font-size: 28px;
}
h2 {
    font-size: 24px;
}
h3 {
    font-size: 20px;
}
h4 {
    font-size: 16px;
}
h5 {
    font-size: 14px;
}
h6 {
    font-size: 12px;
}

ul {
    margin: 0;
    padding: 0 0 0 1rem;
}

button {
    border: none;
    outline: none;
    padding: 0 16px;
    min-height: 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 16px;

    background-color: var(--btn-default-color);
    color: var(--btn-text-color);
    border-radius: 0.5rem;

    flex-shrink: 0;
}

button.small {
    height: 1.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}
button.disabled, button:disabled {
    background-color: #eee;
    color: #aaa;
    cursor: default;
}

input {
    accent-color: var(--btn-default-color);
}
input::placeholder {
    color: #AAAAAA;
}
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox  */
input[type='number'] {
  -moz-appearance: textfield;
}

input + button {
    height: 40px;
    /* padding: 0; */
}

input:not([type="checkbox"], [type="radio"], [type="file"]), select, textarea {
    font-family: var(--font-family);
    padding: 16px 10px;
    /* font-size: 1rem; */
    outline: 1px solid var(--input-border-color);
    border: none;
    border-radius: 5px;
}
input:not([type="checkbox"], [type="radio"]), select {
    height: 40px;
}
input:not([type="checkbox"], [type="radio"]):focus {
    outline-color: var(--btn-default-color);
}
input[type="checkbox"] {
    width: 14px;
    height: 14px;
    outline: none;
    border: 1px solid var(--input-border-color);
    border-radius: 4px;
}
input[type="radio"] {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin: 5px;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0.25rem 1.75rem 0.25rem 0.5rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /%3E%3C/svg%3E") no-repeat right 0.25rem center;
}
select::-ms-expand {
    display: none;
}

.selectbox-radio {
    position: relative;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
}
.selectbox-radio .select-toggle {
    width: 100%;
    /* height: 36px; */
    height: 40px;
    padding: 12px 34px 12px 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /%3E%3C/svg%3E") no-repeat right 0.25rem center;
    background-color: transparent;
    border: none;
    color: #000;
    font-size: 14px;
}
.selectbox-radio .select-toggle.show {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z' /%3E%3C/svg%3E") no-repeat right 0.25rem center;
}
.selectbox-radio .selectbox-radio-option {
    display: none;
    padding: 0;
    list-style: none;
    z-index: 100;
    transition: 0.2s;
}
.selectbox-radio-option.row {
    position: relative;
    width: 100%;
    /* display: flex;
    justify-content: space-between; */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    grid-column-gap: 5px;

    padding: 5px;
    list-style: none;

    border-radius: 5px;
    outline: 1px solid #F2F2F2;
    background-color: #F2F2F2;

}
.selectbox-radio-option.row.reverse {
    outline: 1px solid #fff;
    background-color: #fff;

}
.selectbox-radio .selectbox-radio-option.show {
    display: block;
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid var(--input-border-color);
    z-index: 100;

    max-height: 200px;
    overflow: auto;
}
.selectbox-radio .selectbox-radio-option li {
    margin: 4px;
}
.selectbox-radio .selectbox-radio-option li input[type=radio],
.selectbox-radio-option.row li input[type=radio] {
    display: none;
}
.selectbox-radio .selectbox-radio-option li input[type=radio]+label {
    display: block;
    margin: 0;
    padding: 10px 34px 10px 10px;
    width: 100%;
    background-color: transparent;
    color: #000;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}
.selectbox-radio .selectbox-radio-option li input[type=radio]+label:hover {
    background-color: var(--select-hover-color);
}
.selectbox-radio .selectbox-radio-option li input[type=radio]:checked+label {
    background: var(--select-selected-color) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Cpath d='M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z' /%3E%3C/svg%3E") no-repeat right 5px center;
}
.selectbox-radio-option.row li input[type=radio]+label {
    margin: 0;
    padding: 10px;
    width: 100%;
    height: 100%;
    background-color: transparent;
    font-size: 16px;
    border-radius: 8px;
    color: #666666;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.selectbox-radio-option.row.reverse li input[type=radio]+label {
    background-color: #fff;
    color: #111;
    cursor: pointer;
    font-weight: bold;
    border: 1px solid #f2f2f2;
}
.selectbox-radio-option.row li input[type=radio]:checked+label {
    /* background: #fff;
    color: #000;
    font-weight: bold; */
    font-weight: bold;
    color: var(--btn-default-color);
    background: #fff;
    outline: 2px solid var(--btn-default-color);
}
.selectbox-radio-option.row.reverse li input[type=radio]:checked+label {
    background: #f2f2f2;
    color: #111;
}
.selectbox .selectbox-option li .select-option.selected:hover,
.selectbox-radio .selectbox-radio-option li input[type=radio]:checked+label:hover {
    outline: 1px solid var(--primary-color);
}
.input-div .selectbox-radio + input.customable {
    margin-left: 4px;
}

.d-none {
    display: none;
}

.d-flex {
    display: flex;
}
.d-flex-column {
    display: flex;
    flex-direction: column;
}
.d-grid {
    display: grid;
}

.gap-10 {
    gap: 10px;
}

.justify-between {
    justify-content: space-between;
}
.justify-center {
    justify-content: center;
}
.justify-end {
    justify-content: end;
}

.align-center {
    align-items: center;
}
.align-start {
    align-items: start;
}


.p-absolute {
    position: absolute;
}
.p-relative {
    position: relative;
}
.p-sticky {
    position: -webkit-sticky;
    position: sticky;
}

.overflow-hidden {
    overflow: hidden;
}

.w-20 {
    width: 20%;
}

.w-25 {
    width: 25%;
}

.w-40 {
    width: 40%;
}

.w-50 {
    width: 50%;
}
.w-60 {
    width: 60%;
}

.w-75 {
    width: 75%;
}

.w-80 {
    width: 80%;
}

.w-100 {
    width: 100%;
}

.mb-0 {
    margin-bottom: 0;
}

/* Style
---------------------------------------- */
.bg-red {
    background-color: red;
}

.bg-blue {
    background-color: blue;
}

.bg-white {
    background: #fff;
}

.text-primary {
    color: var(--primary-color);
}
.text-center {
    text-align: center;
}
.text-end {
    text-align: end;
}
.text-white {
    color: #fff;
}
.fs-small {
    font-size: 0.8rem;
}
.fw-bold {
    font-weight: bold;
}
.underline {
    text-decoration: underline;
}

.divider {
    display: block;
    margin: 20px 0;
    border-top: 1px solid var(--border-color);
}
.divider.subtle {
    border-top: 1px solid var(--border-subtle-color);
}


/* buttons
-------------------------------------- */
.btn-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 0.5rem;
}

.btn-wrapper.mt-0 {
    margin-top: 0;
}

.btn-wrapper button + button {
    margin-left: 0.5rem;
}

button > svg {
    margin-right: 0.25rem;
}

button.accordion {
    justify-content: space-between;
}

.accordion::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z' /%3E%3C/svg%3E");
    float: right;
    margin-left: 5px;
}

.accordion.active::after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z' /%3E%3C/svg%3E");
}

.panel {
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.panel li button {
    padding-left: 1.5rem;
}

button.icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

button.icon.gray {
    background-color: var(--main-bg-color);
}
button.icon.gray > svg {
    margin: 0;
    fill: var(--btn-default-color);
}
button.icon.white { 
    background: transparent;
}
button.icon.white > svg {
    margin: 0;
    fill: #fff;
}

.btn-white {
    background-color: #fff;
    color: #000;
    outline: 1px solid #aaa;
}

button.center {
    justify-content: center;
}

button.btn-close {
    border: none;
    outline: none;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    background: url('../assets/icons/close.svg') center/cover no-repeat;
}

.btn-radio {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-family);
    border-radius: 0.5rem;
    background-color: #fff;
    color: #aaa;
    justify-content: center;
    border: 1px solid #aaa;
}

.btn-radio.active {
    font-weight: bold;
    color: var(--btn-default-color);
    background-color: var(--btn-subtle-color);
    border: 2px solid var(--btn-default-color);
}

button.btn-prev {
    border: 1px solid #aaa;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Cpath d='M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z' /%3E%3C/svg%3E") center no-repeat;
}

button.btn-next {
    border: 1px solid #aaa;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Cpath d='M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z' /%3E%3C/svg%3E") center no-repeat;
}


/* Table
--------------------------------------- */
.table-wrapper {
    overflow: auto;
    padding-bottom: 0.5rem;
}

table,
th,
td {
    border-collapse: collapse;
    /* border: 1px solid #000; */
}

table {
    width: 100%;
    table-layout: fixed;
    /* border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa; */
}

th {
    background-color: var(--table-th-color);
    border-bottom: 1px solid #ddd;
    padding: 0.5rem;
    user-select: none;
}

td {
    border-bottom: 1px solid #ddd;
    padding: 0.5rem;
    text-align: center;
    user-select: none;
}

table tr:hover td {
    background-color: var(--table-hover-color);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination ul {
    display: flex;
    list-style: none;
    padding-inline-start: 0;
    margin-block: 0;

    margin-top: 1rem;

    /* border: 1px solid #aaa; */
    border-radius: 0.5rem;
}

.pagination ul li {
    width: 2rem;
    height: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.pagination ul li:hover {
    background-color: var(--lnb-hover-color);
}

.pagination ul li:first-of-type,
.pagination ul li:last-of-type {
    width: 3.5rem;
    border-radius: 0.5rem;
}

.pagination ul li.item:hover,
.pagination ul li.item.active {
    border-radius: 50%;
}

/* Inputs
--------------------------------------- */
.input-wrapper {
    position: relative;
    /* width: 100%; */
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.input-wrapper.end {
    justify-content: flex-end;
}
.input-wrapper.block {
    display: block;
}

.input-wrapper .input-div {
    padding: 0.25rem;
    margin-bottom: 0.5rem;
}

.input-wrapper .input-div.mb-0 {
    margin-bottom: 0;
}

label {
    display: display;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    user-select: none;
}
.input-div label {
    display: flex;
    flex-shrink: 0;
    user-select: none;

    font-size: 12px;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 0;
    /*width: 80px;*/
}
.column .input-div label {
    display: flex;
    flex-shrink: 0;
    user-select: none;

    font-size: 12px;
    margin-left: 0px;
    margin-bottom: 10px;
    width: 100%;
}

.input-div .input-radio label {
    color: #000;
    font-size: 16px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    /* width: 80px; */
}

.input-div input:not([type="checkbox"], [type="radio"]),
.input-div select,
.input-div .selectbox {
    width: 100%;
}

.input-fromto {
    display: flex;
    width: 100%;
    align-items: center;
}

.input-fromto > input:not[type="hidden"] {
    width: calc(50% - 1rem);
}

.input-fromto > span {
    width: 2rem;
    text-align: center;
}

.input-check {
    display: flex;
    align-items: center;
}

/* .input-check > input[type="checkbox"] {
    width: 0.9rem;
    height: 0.9rem;
    border: 1px solid #aaa;
    border-radius: 0.3rem;
} */

.input-radio {
    display: flex;
    align-items: center;
}


.input-search {
    display: flex;
    width: 100%;
    align-items: center;
    border: 1px solid var(--input-border-color);
    border-radius: 0.5rem;
}

.input-search > input {
    border: none;
}

.input-search > button {
    border: none;
    width: 2rem;
    height: 2rem;
    background: url('../assets/icons/magnify-gray.svg') center no-repeat;
}

.input-file {
    display: none;
}

.input-file-thumbnail {
    width: 10rem;
    height: 10rem;
    border: 1px solid #aaa;
    border-radius: 0.5rem;
}


/* Modal
--------------------------------------- */
.modal-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 101;

    display: none;
}

.modal-back.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-container {
    display: none;
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

.modal-container.active {
    display: block;
    border-radius: 1rem;
    background-color: #fff;
    z-index: 102;
}

.modal-container .modal-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-container .modal-content {
    padding: 0 1rem 1rem 1rem;
    overflow: hidden;
}

.modal-content .table-wrapper {
    padding-bottom: 0;
}

.modal-container .modal-footer {
    padding: 0 1rem 1rem 1rem;
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
}

/* Card Component
------------------------------------------------- */
.card-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    margin: 1rem 0;
}

.card {
    background-color: #fff;
    position: relative;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.card-wrapper .card {
    margin: 0 0.5rem;
}

.card-wrapper .card:first-of-type {
    margin: 0 0.5rem 0 0;
}

.card-wrapper .card:last-of-type {
    margin: 0 0 0 0.5rem;
}

/* Calendar
--------------------------------------------------- */
.calendar-header {
    position: relative;
    height: 2.5rem;
    margin-bottom: 0.5rem;
}

.cal-month {
    margin-bottom: 0;
}

.calendar-header .btn-wrapper {
    position: absolute;
    top: 0;
    right: 0;
}

.cal-days,
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    box-sizing: border-box;
    grid-gap: 1px;
}

.cal-days {
    grid-auto-rows: minmax(100px, auto);
    grid-row-gap: 1px;
}

.cal-weekday {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
    padding: 0.25rem 0;
    background-color: #fff;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 0 0 1px var(--border-subtle-color);
}

.cal-weekdays .cal-weekday {
    text-align: center;
    padding: 0.25rem;
}

.cal-weekday.disabled {
    cursor: not-allowed;
}

.cal-btn {
    border-color: transparent;
    border-radius: 50%;
    font-size: 0.75rem;
    width: 2rem;
    height: 2rem;
    padding: 0;
    justify-content: center;
    color: #000;
    background-color: #fff;
}

.cal-btn:not([disabled]) {
    font-weight: 500;
    color: var(--bs-emphasis-color);
}

.cal-btn:hover {
    background-color: var(--btn-subtle-color);
}

.cal-btn:focus, .cal-btn.today {
    background-color: var(--btn-default-color);
    color: #fff;
}

.cal-btn[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

.cal-schedule {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    margin: 0.25rem 0;
    min-width: 0;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    min-height: 1.25rem;
    text-overflow: ellipsis;
}

.cal-schedule .cal-schedule-item {
    display: flex;
    align-items: center;
    padding: 0.2rem 0.25rem;
    color: #000;
    background-color: var(--gnb-sub-hover);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    min-width: 0;
    width: 100%;
    /* cursor: pointer; */
}
.cal-schedule-item p {
    margin-bottom: 0;
}

.profile-div {
    display: flex;
    align-items: center;
}
.profile-div .profile-img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 0.5rem;

    background-color: green;
}
.profile-div p {
    margin-bottom: 0;
}
