/* 공통 레이아웃 */
@import '_layout.css';
/* 컬러 */
@import '_color.css';
/* 이미지 */
@import '_icon.css';
/* input */
@import '_input.css';
/* button */
@import '_button.css';
/* sidebar */
@import '_lnb.css';
/* modal */
@import '_modal.css';

/**********************************************/
/* Common - Scroll */
*::-webkit-scrollbar {
    width: 6px;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--field-inactive-border);
    border-radius: 10px;
}

/**********************************************/
/* Common - Header */
header {
    position: relative;
    z-index: 1000;
    height: 50px;
    background-color: var(--color-white);
    box-sizing: border-box;
}

header .header__gnb {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 50px;
    padding: 10px 16px;
    background-color: var(--color-black);
    box-sizing: border-box;
}

header .header__logo-box {
    display: none;
    align-items: center;
    gap: 7px;
}

header .header__logo-box .header__site-name {
    color: var(--surface-high-emphasis);
    font-family: 'RedHatDisplay', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 112%;
    letter-spacing: -0.12px;
    text-transform: lowercase;
    cursor: default;
}

header .header__pages {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 16px;
    background-color: var(--color-black);
}

header .header__title {
    overflow: hidden;
    display: none;
    flex: 1;
    padding: 0 20px;
    color: var(--surface-high-emphasis);
    font-size: 18px;
    font-weight: 600;
    line-height: 130%;
    letter-spacing: -0.144px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

header .header__control-box {
    display: none;
    align-items: center;
    gap: 10px;
    height: 100%;
}

header .header__back-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background-color: transparent;
    background-image: var(--header-back-btn);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
}

header .header__search-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background-color: transparent;
    background-image: var(--input-search-w);
    background-size: 18px;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
}

header .header__filter-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background-color: transparent;
    background-image: var(--filter-btn);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
}

header .header__menu-btn {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background-color: transparent;
    background-image: var(--header-menu-btn);
    background-size: 22px;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
}

/**********************************************/
/* Search */
.search {
    position: relative;
}

.search .search__label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transition: 1s linear;
}

.search .search__label .search__input {
    height: 44px;
    padding: 14px 40px 14px 14px;
    border: 1px solid var(--surface-high-emphasis);
    border-radius: 8px;
    background-color: var(--color-white);
    font-size: 14px;
    line-height: 130%;
    letter-spacing: -0.112px;
    transition: width 0.5s;
}

.search .search__label .search__delete-btn.on {
    display: block;
}

.search .search__label .search__delete-btn {
    display: none;
    position: absolute;
    content: '';
    top: calc(50% - 14px);
    right: 50px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background-color: transparent;
    background-image: var(--input-search-delete);
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.search .search__label .search__submit-btn {
    position: absolute;
    top: calc(50% - 13px);
    right: 12px;
    z-index: 102;
    width: 24px;
    height: 24px;
    border: 0;
    outline: 0;
    background-color: transparent;
    background-image: var(--input-search-d);
    background-repeat: no-repeat;
    background-position: center;
}

.search .search__result-msg {
    display: none;
}
.search .search__result-msg.on {
    display: inline-block;
    width: 100%;
    margin-bottom: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-50);
    color: var(--surface-high-emphasis);
    font-size: 14px;
    text-align: left;
    line-height: 130%;
    letter-spacing: -0.112px;
}


.search .search__panel-area.on {
    display: block;
}

.search .search__panel-area {
    display: none;
    position: absolute;
    top: 54px;
    right: 0;
    z-index: 20;
    width: 343px;
    max-height: 480px;
    padding: 20px;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 1px 1px 36px 0 rgba(0, 0, 0, 0.10);
    overflow: scroll;
}

.search .search__panel + .search__panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-50);
}

.search .search__panel-label {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    color: var(--surface-medium-emphasis);
    font-size: 12px;
    line-height: 130%;
    letter-spacing: -0.096px;
}

.search .search__panel .search__penal-history {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.search .search__panel .search__history-item {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.search .search__panel .search__history-text {
    overflow: hidden;
    display: inline-block;
    width: calc(100% - 34px);
    height: 100%;
    padding: 13px 0;
    color: var(--surface-high-emphasis);
    font-size: 14px;
    line-height: 130%;
    letter-spacing: -0.112px;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search .search__panel .search__history-delete {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    outline: 0;
    background-color: transparent;
    background-image: var(--input-search-history-delete);
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    text-indent: -9999px;
    cursor: pointer;
}

.search .search__panel .search__suggest {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
}

.search .search__panel .search__suggest-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 8px 14px;
    border-radius: 9999px;
    background-color: var(--gray-50);
    color: var(--surface-high-emphasis);
    font-size: 14px;
    line-height: 130%;
    letter-spacing: -0.112px;
    cursor: pointer;
}

/* Search AutoComplete */
.search .ui-autocomplete {
    position: relative;
}

.search .ui-widget.ui-widget-content {
    top: initial !important;
    left: initial !important;
    width: 100% !important;
    padding-bottom: 20px;
    border: 0;
    border-bottom: 1px solid var(--gray-50);
}

.search .ui-menu .ui-menu-item-wrapper {
    min-height: 44px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    color: var(--surface-high-emphasis);
    padding: 8px 0;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 140%;
    letter-spacing: -0.112px;
    /*white-space: nowrap;*/
}

.search .ui-widget-content .ui-state-active {
    width: 100%;
    margin: 0;
    border: 0;
    background-color: transparent;
}

.search .ui-value-emphasize {
    height: 100%;
    background-color: var(--yellow-200);
}

/**********************************************/
/* Tab List Swiper */
.tab-list {
    display: none;
}

.tab-list.on {
    display: block;
    width: 100%;
}

.tab-list__container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 44px;
    padding: 0;
    background: #fff;
}

.tab-list__wrap {
    display: flex;
    width: 100%;
    box-sizing: inherit;
}

.tab-list__item {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: auto !important;
    border-bottom: 1px solid var(--gray-50);
    font-size: 14px;
    line-height: 130%;
    letter-spacing: -0.112px;
    /*overflow: hidden;*/
    cursor: pointer;
}

.tab-list__item::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 100%;
    height: 1px;
    /*background-color: var(--gray-50);*/
    transform: translateX(-50%);
    transition: .25s;
    z-index: 99999;
}

.tab-list__item a {
    width: 100%;
    display: block;
}

.tab-list__item .tab-list__text {
    position: relative;
    display: inline-block;
    padding: 11px 16px;
    color: var(--surface-disabled);
    font-size: 14px;
    line-height: 130%;
    letter-spacing: -0.112px;
    white-space: nowrap;
    transition: .25s;
}

.tab-list__item--active .tab-list__text {
    color: var(--surface-high-emphasis);
    font-weight: 600;
}

.tab-list__item.on .text::after {
    width: 100%;
}

.tab-list__item--active::before {
    background-color: var(--surface-high-emphasis);
}

/* Tab List Swiper Button */
.tab-list .swiper-button-next.swiper-button-disabled,
.tab-list .swiper-button-prev.swiper-button-disabled {
    display: none;
}

.tab-list .swiper-button-next.hide,
.tab-list .swiper-button-prev.hide {
    display: none;
}

.tab-list .swiper-button-next:after,
.tab-list .swiper-button-prev:after {
    content: '';
    z-index: 1;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

.tab-list .swiper-button-prev:after {
    background-image: var(--tab-left-arrow);
}

.tab-list .swiper-button-next:after {
    background-image: var(--tab-right-arrow);
}

.tab-list .swiper-button-next::before {
    content: '';
    position: absolute;
    top: 0;
    right: -16px;
    z-index: -1;
    width: 60px;
    height: calc(100% - 1px);
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 70%);
}

.tab-list .swiper-button-prev::before {
    content: '';
    position: absolute;
    top: 0;
    left: -16px;
    width: 70px;
    height: calc(100% - 1px);
    background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 40%);
}

/**********************************************/
/* Datepicker */
.qs-datepicker-container {
    border: 1px solid var(--gray-200);
    box-shadow: none;
}

.qs-controls {
    height: 34px;
    background-color: var(--gray-50);
}

.qs-month-year {
    font-size: 14px;
}

.qs-square {
    height: 34px;
    font-size: 14px;
}

.qs-square:not(.qs-empty):not(.qs-disabled):not(.qs-day):not(.qs-active):hover {
    background-color: var(--blue-200);
    color: var(--blue-600);
}

.qs-active, .qs-range-end, .qs-range-start {
    background-color: var(--blue-200);
}

.qs-current {
    text-decoration: none;
}

/**********************************************/
/* Ag Grid */
.ag-grid-content {
    height: calc(100% - 54px - 45px);
    padding-top: 20px;
}

.ag-header {
    border-bottom: 0;
    background-color: var(--field-disabled-bg);
}

.ag-row {
    border-bottom: 0;
}

.ag-cell-focus:not(.ag-cell-range-selected):focus-within, .ag-cell-range-single-cell, .ag-cell-range-single-cell.ag-cell-range-handle, .ag-context-menu-open .ag-cell-focus:not(.ag-cell-range-selected), .ag-context-menu-open .ag-full-width-row.ag-row-focus .ag-cell-wrapper.ag-row-group, .ag-full-width-row.ag-row-focus:focus .ag-cell-wrapper.ag-row-group {
    border: 1px solid transparent;
}

.ag-row-odd {
    background-color: var(--field-disabled-bg);
}

.ag-header-cell-text,
.ag-cell {
    font-family: 'Pretendard', sans-serif;
    color: var(--surface-high-emphasis);
}

.ag-header-cell-text {
    font-weight: 600;
}

.ag-row-hover {
    background-color: var(--blue-200);
}

/* utils */
.justify-between {
    justify-content: space-between;
}

/***************** Responsive *****************/
/* Tablet */
@media screen and (max-width: 1280px) {
}

@media screen and (max-width: 1024px) {
}

/* Mobile */
@media screen and (max-width: 640px) {
    /* Header */
    header {
        height: 48px;
    }

    header .header__gnb {
        width: 100%;
        height: 48px;
        padding: 10px 0;
        background-color: var(--color-white);
        justify-content: space-between;
    }

    header .header__logo-box {
        display: flex;
    }

    header .header__pages {
        display: flex;
        background-color: transparent;
    }

    header .header__title {
        display: block;
    }

    header .header__control-box {
        display: flex;
    }

    header .header__search-btn {
        background-image: var(--input-search-d);
    }

    /* Ag Grid */
    .ag-grid-content {
        display: none;
    }

    .search .search__result-msg.on {
        padding-top: 10px;
    }

    /* Markup List */
    .markup-list__area {
        display: block;
    }

    .markup__wrap {
        height: initial;
        padding: 0;
    }

    .markup__header {
        position: sticky;
        top: 20px;
        width: 100%;
        padding: 0 16px;
        z-index: 300;
    }

    .markup__header .markup__customer,
    .markup__header .markup__control {
        display: none;
    }

    .markup__header .markup__searchbar,
    .markup__header .markup__searchbar .search,
    .markup__header .markup__searchbar .search__input {
        z-index: 102;
        width: 100%;
    }

    .markup__header.fold::before {
        content: '';
        position: absolute;
        top: -20px;
        left: 0;
        z-index: -1;
        width: 100%;
        height: 64px;
        backdrop-filter: blur(2px); /* 배경 블러 효과 */
        -webkit-backdrop-filter: blur(2px); /* 사파리 호환 */
    }

    .markup__header.fold .search__label {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        transition: width 0.2s;
    }

    .markup__header.fold .search__label .search__input {
        background-color: var(--surface-high-emphasis);
        color: var(--surface-high-emphasis);
        width: 48px;
        padding: 0;
    }

    .markup__header.fold .search__label .search__input::placeholder {
        color: transparent;
    }

    .markup__header.fold .search__label .search__submit-btn {
        background-image: var(--input-search-w);
    }

    .markup-list__link-btn {
        position: absolute;
        top: 0;
        right: 0;
    }

    .top-btn {
        display: block;
    }
}