@import url(./_reset.css);
@import url(./swal.css);

:root {
    --brandColor1: #e30036; 
    --brandColor2: #d2002a;
    --brandColor3: #030263;
    --headerColor: #e30036;
    --tableColor: #ffefef;;
    --navColor: #faf3f3;
    --borderColor: #d4cece;
    --textColor: #333333;
    --titleText: #040464;
    --white: #ffffff;
    --red: #db2410;
    --btnPadding: 8px 20px;
}
/* :root {
    --brandColor1: #b85a5a;
    --brandColor2: #993d3d;
    --brandColor3: #543333;
    --headerColor: #eed8d8;
    --tableColor: #f3d9d9;
    --navColor: #faf3f3;
    --borderColor: #d4cece;
    --textColor: #38453f;
    --black: #333333;
    --white: #ffffff;
    --red: #db2410;
    --btnPadding: 8px 20px;
} */

* { color: var(--textColor); box-sizing: border-box; } 

/* 스크롤바 커스텀 */
::-webkit-scrollbar { width: 5px; height: 5px; } 
::-webkit-scrollbar-track { background: 0; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #c5c5c5; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #c5c5c5; } 


/* 헤더 */
header { background-color: var(--headerColor); height: 80px; padding: 0 20px; border-bottom: 1px solid var(--borderColor); } 
header .header_wrap { display: flex; justify-content: space-between; align-items: center; } 
header .header_wrap.moblie_nav { display: none; } 
header .logo_wrap { display: flex; justify-content: flex-start; align-items: center; gap: 50px; height: 80px; } 
header a h1 { font-size: 26px; font-weight: 700; text-align: center; color: #fff; } 
header nav { width: 420px; } 
header nav .menu_wrap { display: flex; justify-content: space-between; align-items: center; } 
header nav .menu_wrap .menu_item a { display: block; width: 200px; font-size: 18px; font-weight: 500; padding: 10px 15px; text-align: center; border-radius: 10px; color: #fff; } 
header nav .menu_wrap .menu_item a:hover { font-weight: 800; } 
header nav .menu_wrap .menu_item a.active { font-weight: 600; color: var(--brandColor2); background-color: #ffffff; } 
/* 서브메뉴 스타일 */
/* header nav .menu_wrap .menu_item .menu_title { font-size: 18px; font-weight: 600; padding: 10px 35px 10px 10px; background: url(../img/arrow_down.svg) no-repeat 95%/9px; } 
header nav .menu_wrap .menu_item .menu_title.open { background: url(../img/arrow_up.svg) no-repeat 95%/9px; } 
header nav .menu_wrap .menu_item { position: relative; width: calc(100%/3); height: 80px; display: flex; justify-content: center; align-items: center; cursor:pointer } 
header nav .sub_menu_wrap { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--navColor); padding: 15px 8px; border-radius: 0 0 5px 5px; border-top: 2px solid var(--brandColor2); z-index: 100; box-sizing: border-box; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); } 
header nav .sub_menu_wrap .sub_menu_item a { display: block; font-size: 15px; font-weight: 400; padding: 10px 15px; text-align: center; border-radius: 10px; } 
header nav .sub_menu_wrap .sub_menu_item a:hover { font-weight: 600; background-color: #ffffff; } 
header nav .sub_menu_wrap .sub_menu_item a.active { font-weight: 600; color: var(--brandColor2); } */
header .quick_menu { display: flex; justify-content: space-between; align-items: center; gap: 25px; height: 80px; } 
header .quick_menu .quick_item { height: 46px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 10px; cursor: pointer; } 
header .quick_menu .quick_item i { font-size: 20px; color: #fff; } 
header .quick_menu .quick_item span { display: inline-block; font-size: 14px; font-weight: 500; color: #fff; } 


.container { flex: 1; overflow: hidden; min-height: 500px; } 
.inner { width: calc(100% - 40px); max-width: 1850px; margin: 0 auto; min-height: 500px; } 
.contents_inner { overflow-x: auto; padding: 20px 0; } 
.contents_inner .section { width: 100%; min-width: 1850px; } 
.notscroll { overflow: hidden; } 
.nodata { padding: 100px 0; text-align: center; font-size: 30px; font-weight: 700; }
.link_text { color: #0044cc !important; text-decoration: underline; cursor: pointer; }


/* 버튼 */
.btn { position: relative; padding: 9px 20px; box-sizing: border-box; border-radius: 5px; border: 1px solid var(--brandColor1); font-size: 15px; font-weight: 500; color: var(--brandColor1); } 
.btn:hover { background-color: #e30036; color: #fff; } 
table .btn { padding: 6px 15px; font-size: 14px; } 
.btn.gray { background-color: #E9E9E9; } 
.btn.gray:hover { background-color: #cccccc; } 
.btn.blue { background-color: #C8D6EE; color: #445A82; } 
.btn.blue:hover { background-color: #b9c5db; } 
.btn.red { background-color: #940000; } 
.btn.red:hover { background-color: #bb6b6b; } 


/* 타이틀 */
.section_title { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; margin-bottom: 10px; } 
.section_title h2 { font-size: 28px; font-weight: 700; color: var(--textColor); position: relative; padding-left: 15px; } 
.section_title h2::before { content: ''; display: inline-block; position: absolute; left: 0; width: 5px; height: 100%; background-color: #631515; } 
.sub_title { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; } 
.sub_title h3 { font-size: 20px; font-weight: 700; color: var(--textColor); position: relative; padding-left: 15px; } 
.sub_title h3::before { content: ''; display: inline-block; position: absolute; left: 0; width: 5px; height: 100%; background-color: #631515; } 
.section_title .filter_area { width: fit-content; margin-bottom: 0; } 
.sub_title .filter_area { width: fit-content; margin-bottom: 0; } 


/* 검색 */
.filter_area { width: 100%; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } 
.filter_area .search_wrap { display: flex; justify-content: flex-start; align-items: center; gap: 10px; } 
.section .filter_area:nth-last-of-type(2) { margin-bottom: 20px; } 
/* .filter_area .search_box { display: flex; align-items: center; font-size: 14px; gap: 10px; padding: 0 10px; background: #fff; border: 1px solid #ccc; border-radius: 5px; } */
.filter_area .search_box { display: flex; align-items: center; font-size: 14px; gap: 10px; background: #fff; border: 1px solid #ccc; border-radius: 5px; } 
.filter_area .search_box select { padding: 10px 15px; padding-right: 30px; background: url(../img/arrow_down.svg) no-repeat 90% 50%/9px; text-align: center; } 
.filter_area .search_box select option { text-align: center; } 

.filter_area .search_box input { padding: 10px; font-size: 14px; } 
.filter_area .search_box input[type="file"] { padding: 5px 10px; }
.filter_area .search_box .title { padding: 0 10px; border-right: 1px solid #ccc; color: #444; font-size: 14px; font-weight: 500; color: var(--brandColor3); } 
.filter_area #btnSearch { width: 100px; padding: 10px 0; box-sizing: border-box; border-radius: 5px; background-color: var(--brandColor1); font-size: 15px; font-weight: 600; } 
.filter_area #btnSearch:hover { background-color: #c7d7e9; } 

.filter_area .search_box.check_wrap { padding-right: 15px; }
.filter_area .search_box.check_wrap .check_item { display: flex; align-items: center; gap: 5px; padding: 10px 5px; }
.filter_area .search_box.check_wrap input[type="checkbox"] { width: 15px; height: 15px; }
.filter_area .search_box.select_wrap, .filter_area .search_box.calender_wrap { padding: 0; gap: 0; } 
.filter_area .calender_wrap input { width: 130px; padding-right: 30px; padding-left: 15px; background: url(../img/calender.svg) no-repeat right 8px top 50%/15px 15px; box-sizing: border-box; cursor: pointer; } 
select:has(option[value=""]:checked), select:has(option[value="전체"]:checked) { color: gray; } 
select option { color: #000; } 

.filter_area .sub_title { padding: 0; margin-right: 15px; }

.content_area { width: 100%; } 

/* 테이블 */
.table_wrap { width: 100%; border: 1px solid var(--borderColor); overflow-y: auto; border-radius: 10px; } 
.table_wrap table { width: 100%; border-collapse: collapse; margin-bottom: 0; } 
.table_wrap table thead th { font-weight: 600; background-color: var(--tableColor); position: sticky; top: 0; z-index: 1; } 
.table_wrap table tfoot td { font-weight: 600; background-color: var(--tableColor); position: sticky; bottom: 0; z-index: 1; } 
.table_wrap table thead th, .table_wrap table tbody td, .table_wrap table tfoot td { padding: 10px 0; font-size: 15px; color: var(--textColor); text-align: center; border-bottom: 1px solid var(--borderColor); vertical-align: middle; height: 34px; line-height: 1.5; } 
.table_wrap table tfoot tr { border-top: 1px solid var(--borderColor); } 
.table_wrap table tbody tr:last-child td, .table_wrap table tfoot td { border-bottom: none; } 
/* .table_wrap table thead tr:last-child th, .table_wrap table tbody tr:last-child td, .table_wrap table tfoot td { border-bottom: none; }  */

/* 테이블 테두리 */
.table_wrap table .add_border { border-right: 1px solid var(--borderColor); }

/* 테이블 스크롤바 */
.table_wrap::-webkit-scrollbar { width: 12px; } 
.table_wrap::-webkit-scrollbar-thumb { background-color: #999; border-radius: 8px; } 
.table_wrap::-webkit-scrollbar-track { background-color: #f1f1f1; border-radius: 0 9px 9px 0; } 

/* 스크롤 테이블 */
.table_scroll { max-width: 1850px; overflow-x: auto; } 
.table_scroll .table_wrap { width: 100%; min-width: 100%; } 
.table_scroll .table_wrap table { min-width: 100%; width: 100%; border-collapse: collapse; table-layout: fixed; } 


/* 페이지네이션 */
.pagination { margin-top: 15px; display: flex; justify-content: center; align-items: center; gap: 10px; } 
.pagination button { width: 22px; height: 22px; border-radius: 10px; display: flex; justify-content: center; align-items: center ;}
.pagination .number { padding: 0 6px; } 
.pagination .active { font-size: 18px; font-weight: 500; border-radius: 10px; background-color: var(--brandColor1); color: var(--white); } 
.pagination button:not(.number) { background-color: #fdd0db; }

.pagination .page { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0 10px; } 
/* .pagination .page input { width: 30px; text-align: center; font-size: 18px; font-weight: 700; } */

/* 중복 선택 필터 */
.except_box { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14px; background: url(../img/arrow_down.svg) no-repeat 94% 50% / 10px; border: 1px solid #ccc; border-radius: 5px; } 
.except_box span { padding-left: 10px; color: var(--brandColor3); font-size: 14px; } 
.except_box .select_box { padding: 10px 15px; padding-right: 35px; cursor: pointer; } 
.select_box:hover { border-color: #007bff; } 
.selected-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } 
.selected-items span { background: #007bff; color: white; padding: 5px 12px; border-radius: 15px; font-size: 14px; } 
.options_list { position: absolute; top: calc(100% + 1px); left: 0; border: 1px solid #ccc; position: absolute; background: white; width: 100%; z-index: 1000; border-radius: 6px; box-shadow: 0px 4px 10px rgba(0,0,0,0.08); overflow: hidden; } 
.options_list .checkAll, .options_list .content_list { display: flex; align-items: flex-start; font-size: 14px; line-height: 14px; } 
.options_list .checkAll { gap: 10px; padding: 7px 10px; border-bottom: 1px solid #ddd; background: #f8f9fa; color: #444; } 
.options_list .content_list { flex-direction: column; padding: 5px 0; max-height: 400px; overflow-y: auto; } 
.options_actions button { background: #fff; border: none; color: #222; border: 1px solid #666; padding: 4px 10px; border-radius: 20px; cursor: pointer; font-size: 13px; } 
.options_actions button:hover { background: var(--brandColor3); } 
.options_list .custom_checkbox { display: flex; align-items: center; gap: 10px; padding-left: 10px; font-size: 14px; width: 100%; height: auto; cursor: pointer; box-sizing: border-box; transition: background 0.2s; } 
.options_list .custom_checkbox:hover { background: #f1f1f1; } 
.options_list .custom_checkbox .name { flex: 1; padding: 4px 0; text-align-last: left; } 

/* 체크박스 숨기기 */
.options_list input[type="checkbox"] { display: none; } 
/* 커스터마이즈된 체크박스 스타일 */
.options_list .checkbox { width: 16px; height: 16px; padding: 0; border: 1px solid #aaa; border-radius: 4px; display: inline-block; position: relative; } 
/* 체크된 상태 */
.options_list input[type="checkbox"]:checked + .checkbox { background: var(--brandColor3); border: 1px solid var(--brandColor3); } 
/* 체크박스 안의 체크 표시 */
.options_list input[type="checkbox"]:checked + .checkbox::after { content: ''; position: absolute; top: 1px; left: 4px; width: 4px; height: 7px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); } 


/* datepicker 달력 */
.datepicker table tr td span { height: 45px; line-height: 45px; } 
.datepicker table tr td span.focused { background: 0; } 
.datepicker table tr td span:hover { background: #eee; } 
.datepicker table tr td span.active,
.datepicker table tr td span.active:hover,
.datepicker table tr td span.active:active,
.datepicker table tr td span.active[disabled],
.datepicker table tr td span.active:hover:active,
.datepicker table tr td span.active:hover[disabled],
.datepicker table tr td span.active.disabled,
.datepicker table tr td span.active.disabled:hover { background-image: linear-gradient(to bottom, #e30036, #e30036); color: #fff; } 

.datepicker table tr td { border-bottom: 1px solid #eee; border-top: 1px solid #eee; } 
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active:active,
.datepicker table tr td.active[disabled],
.datepicker table tr td.active:hover:active,
.datepicker table tr td.active:hover[disabled],
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover { background-image: linear-gradient(to bottom, #e30036, #e30036); color: #fff; border-bottom: none; } 
.datepicker table tr td.today { border: 0; background: #fcccd3 !important; } 

.datepicker.dropdown-menu { padding: 10px 10px 48px; } 
.datepicker.dropdown-menu td { font-size: 14px; padding: 5px; border-radius: 0; } 

.datepicker table tr th { font-size: 15px; } 
.datepicker table tr .datepicker-switch { font-size: 16px; padding: 10px; } 
.datepicker table tr th.dow { padding: 6px 10px; } 

.datepicker table tr .clear { position: absolute; margin-left: 10px; margin-top: 8px; padding: 2px 2px; font-size: 13px; width: 35px; height: auto; text-align: center; color: #444; background: #fff; border: 1px solid #ccc; border-radius: 20px; cursor: pointer; } 
.datepicker table tr .clear:hover { color: #000; background: #fff; border: 1px solid #666; } 

.limit_select_box { display: flex; align-items: center; } 
.limit_select_box p { margin-left: 5px; font-size: 14px; color: #666; } 

.sunday,
.holiday { background: #ffcccc !important; color: #d10000 !important; } 
.saturday { background: #cce5ff !important; color: #0044cc !important; } 


/* modal */
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); justify-content: center; align-items: center; z-index: 1000; } 
.modal_area { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 500px; width: 90%; background-color: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15); } 
.modal_area .modal_header { display: flex; justify-content: space-between; align-items: center; background-color: var(--headerColor); padding: 20px 15px; } 
.modal_area .modal_title { font-size: 20px; font-weight: 700; } 
.modal_area button.close { font-size: 30px; font-weight: 200; cursor: pointer; } 
.modal_area .modal_body { background: #fff; padding: 20px 15px; } 

.modal_area .input_wrap { flex: 1; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; } 
.modal_area .input_wrap label { width: 120px; text-align: center; font-size: 16px; font-weight: 600; } 
.modal_area .input_wrap input, .modal_area .input_wrap select, .modal_area .input_wrap textarea { flex: 1; padding: 10px 15px; font-size: 16px; font-weight: 300; border: 1px solid var(--borderColor); border-radius: 5px; } 
.modal_area .input_wrap select { background: url(../img/arrow_down.svg) no-repeat 95% 50%/9px; } 
.modal_area .input_wrap select option { text-align: center; } 

.modal_area .modal_body.select_wrap, .modal_area .modal_body .calender_wrap { padding: 0; gap: 0; } 
.modal_area .calender_wrap input { width: 130px; padding-right: 30px; padding-left: 15px; background: url(../img/calender.svg) no-repeat 90% 50%/15px 15px; box-sizing: border-box; cursor: pointer; } 
select:has(option[value=""]:checked), select:has(option[value="전체"]:checked) { color: gray; } 
select option { color: #000; } 

.modal_area .modal_btn_wrap { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 30px; } 
.modal_area .modal_btn_wrap button { width: 150px; padding: 10px 25px; } 


/* 탭 메뉴 */
/* .category_tab { background-color: #fff; margin-bottom: 15px; border-bottom: 1px solid var(--borderColor); } 
.category_tab ul { display: flex; justify-content: flex-start; align-items: center; gap: 8px; } 
.category_tab ul li { width: calc(100% / 3 - 8px); font-size: 18px; font-weight: 700; text-align: center; padding: 15px 25px; box-sizing: border-box; border-left: 1px solid var(--borderColor); border-right: 1px solid var(--borderColor); border-top: 1px solid var(--borderColor); border-radius: 5px 5px 0 0; } 
.category_tab ul li a { font-size: 18px; font-weight: 600; } 
.category_tab ul li.active { margin-bottom: -1px; background-color: #fff; position: relative; z-index: 1; } 
.category_tab ul li.active a { font-weight: 700; color: var(--brandColor3); } */
.category_tab { background-color: #fff; padding-bottom: 10px; margin-bottom: 15px; border-bottom: 1px solid var(--borderColor); } 
.category_tab ul { display: flex; justify-content: flex-start; align-items: center; gap: 8px; } 
.category_tab ul li a { font-size: 16px; font-weight: 600; text-align: center; padding: 8px 20px; box-sizing: border-box; border-radius: 5px; z-index: 1; } 
.category_tab ul li.active a { background-color: var(--brandColor2); font-weight: 400; color: var(--white); } 

/* 정렬 */
th.default, th.asc, th.desc {
    cursor: pointer;
}
th.default::after {
    content: url(../img/sort_icon.png);
    display: inline-block;
    height: 18px;
    margin-left: 6px;
    vertical-align: -2px;
}
th.asc::after {
    content: '▲';
    margin-left: 4px;
}
th.desc::after {
    content: '▼';
    margin-left: 4px;
}

/* 알림 */
.alert.alert-success, .alert.alert-danger { font-size: 20px; font-weight: 700; } 
.alert.alert-danger { color: #b30e0e; } 

input[type="checkbox"] { cursor: pointer; } 


#loadingSpinner { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 9999; justify-content: center; align-items: center; } 

.spinner { border: 5px solid #f3f3f3; border-top: 5px solid #34db9b; border-radius: 50%; width: 50px; height: 50px; animation: spin 2s linear infinite; } 

@keyframes spin { 
 0% { transform: rotate(0deg); } 

 100% { transform: rotate(360deg); } 
 }


/* 필드 sort */
.sort { cursor: pointer; &.sort-asc::after { content: '▲'; margin-left: 4px; } 

 &.sort-desc::after { content: '▼'; margin-left: 4px; } 
 }


@media (max-width: 1000px) { header a h1 { font-size: 25px; } 
 header nav .menu_wrap .menu_item .menu_title { font-size: 15px; } 
 header .quick_menu { gap: 15px; } 
 header .quick_menu .quick_item span { font-size: 13px; } 
 .section_title h2 { font-size: 25px; } 
 .sub_title h3 { font-size: 18; } 
 }
@media (max-width: 800px) { header { height: 125px; } 
 header .pc_nav { display: none; } 
 header .header_wrap.moblie_nav { display: flex; justify-content: center; align-items: center; } 
 header nav .menu_wrap .menu_item a { width: 180px; height: 40px; border-radius: 5px; } 
 }
@media (max-width: 450px) { header a h1 { font-size: 20px; } 
 header .quick_menu .quick_item:first-child i { font-size: 15px; } 
 header .quick_menu .quick_item i { font-size: 18px; } 
 header .quick_menu { gap: 10px; } 
 header nav { width: auto; } 
 header .header_wrap.moblie_nav { width: 100%; } 
 header nav .menu_wrap { width: 100%; } 
 header nav .menu_wrap .menu_item a { width: auto; } 
 header nav .menu_wrap .menu_item .menu_title { font-size: 13px; padding-right: 20px; } 
 header nav .menu_wrap .menu_item a { position: static; } 
 header nav .menu_wrap.open { position: relative; } 
 }