
:root {
    /* Colors */
    --basic-gray-5: #fafbfc;
    --basic-white: #ffffff;
    --basic-gray-10: #f5f5f5;
    --basic-gray-20: #e4e4e4;
    --basic-gray-30: #d7d7d7;
    --basic-gray-50: #929292;
    --basic-gray-60: #6b6b6b;
    --basic-gray-70: #515151;
    --basic-gray-80: #363636;
    --basic-gray-90: #2c2c2c;
    --basic-black: #000000;
    --main-red: #ca003d;
    --main-red-20: #ffeded;
    --sub-gray: #54565a;
    --sub-mint-10: #edfbff;
    --sub-mint: #00bec8;
    --sub-blue-10: #edf5ff;
    --sub-blue-200: #0037a6;
    --sub-green-10: #e6f5e5;
    --sub-green-80: #1fa835;
    --negative-red: #e32626;
    --disabled-gray-40: #acacac;
    --link-blue-80: #0052f9;
    --bg-list-gray: #d4dbe3;
    --active-blue-20: #DFF4FF;
    --sub-green-200: #366469;
    --sub-yellow-10: #FFFFD2;
    --sub-yellow-30: #FFEB3B;

    /* Fonts */
    --sm-11-regular: 400 11px "Pretendard", sans-serif;
    --sm-12-regular: 400 12px "Pretendard", sans-serif;
    --sm-12-medium: 500 12px "Pretendard", sans-serif;
    --sm-12-bold: 700 12px "Pretendard", sans-serif;
    --sm-13-regular: 400 13px "Pretendard", sans-serif;
    --sm-13-medium: 500 13px "Pretendard", sans-serif;
    --sm-13-bold: 700 13px "Pretendard", sans-serif;
    --sm-14-regular-16-px: 400 14px/16px "Pretendard", sans-serif;
    --sm-14-medium-16-px: 500 14px/16px "Pretendard", sans-serif;
    --sm-14-bold-16-px: 700 14px/16px "Pretendard", sans-serif;
    --md-15-regular: 400 15px "Pretendard", sans-serif;
    --md-15-medium: 500 15px "Pretendard", sans-serif;
    --md-16-bold-20-px: 700 16px/20px "Pretendard", sans-serif;
    --md-18-regular: 400 18px "Pretendard", sans-serif;
    --md-18-bold: 700 18px "Pretendard", sans-serif;
    --md-15-bold-16-px: 700 15px/16px "Pretendard", sans-serif;
    --lg-26-regular: 400 26px "Pretendard", sans-serif;
    --lg-26-medium: 500 26px "Pretendard", sans-serif;

    /* Effects */
}

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, button, input, select, textarea {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    font-family: Pretendard;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
}
[type="checkbox"]{
    -webkit-appearance: checkbox;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

button, input, select{
    cursor: pointer;
}

/*============================================================*/
.d_none{
    display: none !important;
}
.d_block{
    display: block !important;
}
.d_flex{
    display: flex !important;
    align-content: center !important;
}
.div_header {
    padding: 0px 16px;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
    background-color: #6c6c6c;
    height: 40px;
    display: flex;
    align-items: center;
}

.div_set {
    padding: 7px 5px;
    display: flex;
    border: solid 1px #c3c3c3;
    background-color: #e9ebec;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 400;
}

.div_calendar {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
}
.input_date_picker{
    width: 100px;
    height: 32px;
    padding: 8px;
    font: var(--sm-14-regular-16-px);
    text-align: center;
    box-sizing: border-box;
    box-shadow: -1px -1px 0 0 #d1d1d1, inset -1px -1px 0 0 #d1d1d1;
}
.div_calendar_icon{
    width: 32px;
    height: 32px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -1px -1px 0 0 #d1d1d1, inset -1px -1px 0 0 #d1d1d1;
}

.btn_grid {
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    padding: 2px 5px !important;
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 400;
    text-align: center !important;
    white-space: nowrap;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 3px;
}

.btn {
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 12px !important;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.42857143 !important;
    text-align: center !important;
    white-space: nowrap;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}
.btn:disabled{
    opacity: 0.5;
    cursor: no-drop;
}
.btn_red {
    color: #fff !important;
    background-color: #dd514c !important;
}
.btn_orange {
    color: #fff !important;
    background-color: #e57b2f !important;
}
.btn_yellow {
    color: #fff !important;
    background-color: #f0ad4e !important;
}
.btn_green {
    color: #fff !important;
    background-color: #5eb95e !important;
}
.btn_blue {
    color: #fff !important;
    background-color: #1f8dd6 !important;
}
.btn_purple {
    color: #fff !important;
    background-color: #8058a5 !important;
}
.btn_gray {
    color: #fff !important;
    background-color: #939393 !important;
}
.btn_red_reverse {
    color: #dd514c !important;
    background-color: #fff !important;
    border-color: #b3423e !important;
}
.btn_orange_reverse {
    color: #f37b1d !important;
    background-color: #fff !important;
    border-color: #cb6719 !important;
}
.btn_yellow_reverse {
    color: #eea236 !important;
    background-color: #fff !important;
    border-color: #eea236 !important;
}
.btn_green_reverse {
    color: #5eb95e !important;
    background-color: #fff !important;
    border-color: #448944 !important;
}
.btn_blue_reverse {
    color: #1f8dd6 !important;
    background-color: #fff !important;
    border-color: #1b6a9f !important;
}
.btn_purple_reverse {
    color: #8058a5 !important;
    background-color: #fff !important;
    border-color: #61467a !important;
}
.btn_gray_reverse {
    color: #000000 !important;
    background-color: #fff !important;
    border-color: #b1b1b1 !important
}
.input_file {
    padding: 4px;
    min-width: 164px;
    width: 51%;
    display: inline-block;
    margin-right: 4px;
}
.input_style{
    height: 32px;
    width: 100%;
    padding: 8px;
    font-size: 14px;
    color: #000000;
    border: 1px solid var(--disabled-gray-40, #ACACAC);
    background: var(--basic-white, #FFF);
    box-sizing: border-box;
}
.input_style::placeholder{
    color: #d1d1d1;
}
.input_style:disabled{
    background: #ffffff;
    opacity: 0.5;
}
.input_style[type=file]{
    padding: 3.3px 8px;
}
.textarea_style{
    height: auto;
    width: 100%;
    padding: 8px;
    font-size: 14px;
    color: #000000;
    border: 1px solid var(--disabled-gray-40, #ACACAC);
    background: var(--basic-white, #FFF);
    box-sizing: border-box;
    resize: none;
}
.textarea_style::placeholder{
    color: #d1d1d1;
}
.textarea_style:disabled{
    background: #ffffff;
    opacity: 0.5;
}
.div_input_box_row{
    display: flex;
    border: 1px solid rgb(209, 209, 209);
    border-radius: 4px;
    background: rgb(255, 255, 255);
    height: 30px;
    align-items: center;
    margin: 0 4px;
}
.div_input_title_row{
    border: 1px solid #d1d1d1;
    border-width: 0 1px 0 0;
    height: 30px;
    padding: 8px;
    background: #e3e3e3;
    border-radius: 3px 0 0 3px;
    text-align: center;
    box-sizing: border-box;
}
.div_input_title_row_reverse{
    border: 1px solid #d1d1d1;
    border-width: 0 0 0 1px;
    border-radius: 0 3px 3px 0;
    height: 30px;
    padding: 8px;
    background: #e3e3e3;
    min-width: 42px;
    text-align: center;
    box-sizing: border-box;
}
.div_input_box_col{
    display: flex;
    flex-direction: column;
    border: 1px solid rgb(209, 209, 209);
    border-radius: 4px;
    background: #ffffff;
    min-width: 100px;
    margin: 0 4px;
}
.div_input_title_col{
    border: 1px solid #d1d1d1;
    border-width: 0 0 1px 0;
    height: 14px;
    padding: 8px;
    background: #e3e3e3;
    border-radius: 3px 3px 0 0;
    min-width: 74px;
    text-align: center;
}
.label_radio_box{
    margin: 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.div_input_box_col>.label_radio_box{
    margin: 8px 4px;
    cursor: pointer;
}
.label_radio_box>input[type=radio]{
    margin: 0 4px;
    width: 16px;
    height: 16px;
}
.label_radio_box>input[type=radio]:checked{
    appearance: none;
    -webkit-appearance: none;
    border: 0.2rem solid #fff;
    background-color: #1f8dd6;
    box-shadow: 0 0 0 1px #1f8dd6;
    border-radius: 50%;
}
.label_radio_box>input[type=checkbox]{
    margin: 0 4px;
    width: 16px;
    content: url("/assets/icons/icon_check_deactive.svg");
}
.label_radio_box>input[type=checkbox]:checked{
    border-radius: 0%;
    content: url("/assets/icons/icon_check_active.svg");
}
.label_radio_box>input[type=checkbox]:disabled{
    border-radius: 0%;
    content: url("/assets/icons/icon_check_disabled.svg");
}
.h_modal{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    align-items: baseline;
    justify-content: center;
    z-index: 100;
}
.h_modal_container{
    width: 300px;
    height: auto;
    min-height: auto;
    max-height: calc(100vh - 112px);
    position: relative;
    margin: 1.75em;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}
.h_modal_close{
    position: absolute;
    right: 0px;
    margin-right: 24px;
    background: url("/assets/icons/img_x.svg") center center / 1em no-repeat transparent;
    width: 14px;
    height: 14px;
    border: none;
}
.h_modal_title{
    display:flex;
    align-items:center;
    position: relative;
    font-weight: bold;
    background-color: #f4f7ff;
    height: auto;
    padding: 16px;
    justify-content: space-between;
    font: var(--md-16-bold-20-px);
    border-bottom: 1px solid var(--basic-black, #000);
    background: var(--basic-white, #FFF);
    box-sizing: border-box;
}
.fade_out{
    animation: fade_out 0.3s;
}
.fade_in{
    animation: fade_in 0.3s;
}
.h_modal_content{
    border: 1px solid #d1d1d1;
    border-width: 1px 0;
    min-height: 58px;
    overflow-y: auto;
}
.h_modal_footer{
    height: auto;
    display: flex;
    padding: 12px 0px;
    justify-content: center;
    align-items: center;
    gap: 16px;
    align-self: stretch;
}
.h_modal_footer .btn_modal{
    height: 42px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-radius: 4px;
    border: 1px solid var(--basic-gray-50, #929292);
    background: var(--basic-white, #FFF);
}
.h_tooltip{
    cursor: pointer;
}
.h_tooltip_wrapper{
    position: relative;
}
.h_tooltip_wrapper>.h_tooltip_text{
    display: none;
}
.h_tooltip:hover + .h_tooltip_wrapper>.h_tooltip_text{
    display: inline-block !important;
    position: absolute;
    top: -48px;
    left: -19px;
    width: max-content;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #c5c5c5;
}
.h_popover{
    cursor: pointer;
}
.h_popover_wrapper{
    position: relative;
}
.h_popover_wrapper>.h_popover_text{
    position: absolute;
    top: -48px;
    left: -19px;
    width: max-content;
    background: #fff;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #c5c5c5;
}
.h_tab{
    display: flex;
    margin-bottom: 16px;
    position: relative;
}
.h_tab::before{
    content: "";
    position: absolute;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
    top: 40px;
}
.h_tab div{
    padding: 12px 16px;
    text-decoration: none;
    color: #1a1a1a;
    cursor: pointer;
}
.h_tab div.disabled{
    color: #D1D1D1;
    cursor: no-drop;
}
.h_tab div.active{
    border-bottom: 3px solid #1f8dd6;
    font-weight: bold;
}
.select_style{
    height: 32px;
    width: 100%;
    padding: 6px 12px;
    font-size: 13px;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-sizing: border-box;
    appearance: none;
    background-image: url("/assets/icons/icon_select_down.svg");
    background-repeat: no-repeat;
    background-position: calc(100% - 8px) center;
    background-size: 13px;
    outline: none;
}
.select_style:hover {
    border-color: #888;
}
.select_style:focus {
    border-color: #888;
}
.select_style:disabled {
    opacity: 0.5;
    background: #ffffff;
}
.select_component_div_style {
    width: 100%;
    height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:center;
    position: relative;
}
.select_component_input_style {
    height: 100%;
    width: 100%;
    padding: 6px 12px;
    font-size: 13px;
    color: #555;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
    box-sizing: border-box;
    appearance: none;
    background-image: url("/assets/icons/icon_select_down.svg");
    background-repeat: no-repeat;
    background-position: calc(100% - 8px) center;
    background-size: 13px;
    outline: none;
    cursor: pointer;
}
.select_component_input_style:hover {
    border-color: #888;
}
.select_component_input_style:disabled {
    opacity: 0.5;
    background: #ffffff;
}
.select_component_div_style > div {
    width: 100%;
    display: none;
    position: absolute;
    top:32px;
    background-color: #fff;
    border: 1px solid #888;
    z-index: 1000;
    box-shadow: 0 2px 2px 2px rgb(0 0 0 / 8%);
}
.select_component_div_style > div > div {
    margin: 8px;
}
.select_component_div_style > div > div > input {
    border: 1px solid #2c89f5;
}
.select_component_div_style > div > div > input:focus {
    outline: 3px solid #d9ebff;
}
.select_component_div_style > div > datalist {
    display: block;
    text-align: left;
    max-height: 10rem;
    overflow-y: scroll;
    color: #555;
}
.select_component_div_style > div > datalist > option {
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0px 8px;
}
.select_component_div_style > div > datalist > option:hover {
    background-color: #d9d9d9;
}
.select_component_click_style {
    background-color: #2c89f5;
    color: white;
}
.table {
    width: 100%;
}
.table_bordered {
    border: 1px solid #ddd;
}
.table_bordered tbody>tr>th{
    background: #F1F1F1;
}
.table_bordered tbody>tr>th, .table_bordered tbody>tr>td{
    border: 1px solid #ddd;
}
.table tbody>tr>th, .table tbody>tr>td{
    padding: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #474747;
    vertical-align: middle;
}
.table tbody>tr>th{
    font-weight: bold;
}
.grid_loading:after, .grid_loading:before{
    content: "";
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 100%;
    border: 16px solid transparent;
    border-top-color: #3498db;
}
.grid_loading:before {
    z-index: 100;
    animation: spin 1s infinite;
}

.grid_loading:after {
    border: 16px solid #ccc;
}


@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes fade_out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
@keyframes fade_in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


/* 글씨 색상 */
.ag_green_cls  { color: green !important; }
.ag_red_cls    { color: red !important; }
.ag_blue_cls   { color: #3434f5 !important }
.ag_puple_cls  { color: #ff808c !important; }
.ag_yellow_cls { color: #e5a310 !important; }
.ag_orange_cls { color: #b97f13 !important; }
.ag_gray_cls   { color: #B6B6B6 !important; } /* 상태가 비활성 (STATUS = 0 ) */

/* 백그라운드 색상 */
.ag_bg_gray_cls   { background-color: #e8e8e8 !important; }
.ag_bg_pink_cls   { background-color: #ffbebe !important; }
.ag_bg_orange_cls { background-color: #ffdc99 !important; }
.ag_bg_yellow_cls { background-color: #FEF5D4 !important; } /* edit 가능한 색상 */
.ag_bg_blue_cls   { background-color: #9acfea !important; }
.ag_bg_white_cls  { background-color: #ffffff !important; }
.ag_bg_green_cls  { background-color: #def7de !important; }
.ag_bg_trans_cls  { background-color: #EEEEEE !important; } /* (ag_trans_cls) 퍼니뷰-글라스타 유통사 연결된 상품일때 */


.grid_default_cell_style{
    border-right: 1px solid #d9dcde !important;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.grid_excel{
    padding: 0 4px !important;
    text-align: center;
}

/* ag-grid header 옵션 버튼 */
.ag-header-icon{
    display: none !important;
}
.string_type{
    user-select: text !important;
}

.ag_radio_blue_cls {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    border: 1px solid #ACACAC;
    border-radius: 50%;
}

.ag_radio_blue_cls:checked{
    appearance: none;
    -webkit-appearance: none;
    border: 4px solid #0052F9;
    background-color: #FFFFFF;
    border-radius: 50%;
}


.tinymce-wrapper{
    height: 100%;
}

.tox-tinymce{
    border: 1px solid #d1d1d1;
    border-radius: 0px;
    min-height: 100%;
}

.tox:not(.tox-tinymce-inline) .tox-editor-header{
    border-bottom: 1px solid #d1d1d1;
    box-shadow: none;
}

.tox .tox-statusbar{
    display: none;
}
