@font-face {
    font-family: 'Apple SD Gothic Neo';
    font-weight: 100;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Thin.woff2') format('woff2'),
    url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Thin.ttf') format('truetype');
}
@font-face {
    font-family: 'Apple SD Gothic Neo';
    font-weight: 200;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-ExtraLight.woff2') format('woff2'),
    url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-ExtraLight.ttf') format('truetype');
}
@font-face {
    font-family: 'Apple SD Gothic Neo';
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Light.woff2') format('woff2'),
    url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Light.ttf') format('truetype');
}
@font-face {
    font-family: 'Apple SD Gothic Neo';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Regular.woff2') format('woff2'),
    url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Apple SD Gothic Neo';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Medium.woff2') format('woff2'),
    url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Medium.ttf') format('truetype');
}
@font-face {
    font-family: 'Apple SD Gothic Neo';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-SemiBold.woff2') format('woff2'),
    url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-SemiBold.ttf') format('truetype');
}
@font-face {
    font-family: 'Apple SD Gothic Neo';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Bold.woff2') format('woff2'),
    url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'Apple SD Gothic Neo';
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-ExtraBold.woff2') format('woff2'),
    url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-ExtraBold.ttf') format('truetype');
}
@font-face {
    font-family: 'Apple SD Gothic Neo';
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    src: url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Black.woff2') format('woff2'),
    url('https://cdn.jsdelivr.net/gh/fonts-archive/AppleSDGothicNeo/AppleSDGothicNeo-Black.ttf') format('truetype');
}

@font-face {
    font-family: 'Pretendard-ExtraLight';
    src: url('https://fastly.jsdelivr.net/gh/Project-Noonnu/noonfonts_2107@1.1/Pretendard-ExtraLight.woff') format('woff');
    font-weight: 100;
    font-style: normal;
}

body {
    font-family: 'Pretendard Variable', 'Pretendard', 'Apple SD Gothic Neo', Roboto, 'Roboto', sans-serif;
    white-space: nowrap;
    margin: 0;
}

#base_nav {
    position: fixed;
    width: 100%;
    z-index: 999;
}

#nav_sub {
    position: relative;
    max-height: 0;
    overflow-y: hidden;
    transition: all 0.2s;
    opacity: 0.9;
    border-bottom: 1px solid #576500;
    background-color: white;
}

.nav_sub_div {
    display: flex;
    padding-top: 80px;
    padding-left: 50px;
    padding-bottom: 30px;
    gap: 2rem;
    min-height: 400px;
}

ul {
    list-style: none;
    padding: 0;
}

.nav_sub_div_sub_title {
    background: #e1d6c3;
    padding: 5px 5px 5px 10px;
    font-size: 1.5em;
    text-align: center;
    min-width: 200px;
}

#main {
    padding-top: 70px;
}

/* new */

#content_load {
    padding: 20px 10px 10px;
}
#modal_loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
}
#modal_loading > #spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.my-indicator{
    display:none;
}
.htmx-request .my-indicator{
    display:inline;
}
.htmx-request.my-indicator{
    display:inline;
}
.sub_title {
    border-left: 5px solid black;
    font-weight: bold;
    height: 36px;
    display: flex;
    align-items: center;
    padding-left: 10px;
}
.li_title {
    margin-top: 20px;
    border-left: 5px solid slategray;
    display: flex;
    align-items: center;
    padding-left: 10px;
}
.search_box {
    border-radius: 10px;
    margin: 12px auto auto;
    padding-bottom: 8px;
}
.content_li {
    /*border-radius: 10px;*/
    /*border: 2px solid ghostwhite;*/
    /*padding: 5px;*/
    /*margin-top: 6px;*/
    /*overflow-x: hidden;*/
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: 0;
}
.scroll_div {
    position: fixed; /* 화면 전체 기준 */
    top: 247px; /* 예: 헤더 높이만큼 떨어뜨리기 */
    left: 250px;
    right: 10px;
    bottom: 10px;
    overflow-y: auto; /* 내부 스크롤 */

    border: 1px solid #eeeeee;

    overscroll-behavior: contain;   /* ← 또는 none */
}

.sot {
    overflow: auto;
    box-sizing: border-box;
    border: 1px solid #eeeeee;

    position: fixed; /* 화면 전체 기준 */
    top: 247px; /* 예: 헤더 높이만큼 떨어뜨리기 */
    left: 250px;
    right: 10px;
    bottom: 10px;
}

.sot > table {
    table-layout: fixed;
    position: relative;
    border-collapse: separate !important;
    border-spacing: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    border-width: 0;
    overflow: visible;
    background-color: #fff;
}

.sot-table-width-auto > table {
    width: auto !important;
}

.sot-table-width-100px > table {
    width: 100px !important;
}

.sot td, .sot th {
    border: 1px solid #ccc;
}

.sot-top {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: #fff;
}

.sot-left {
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: #fff;
}

.sot-bottom {
    position: sticky;
    bottom: 0;
    z-index: 3;
    background-color: #fff;
}

.sot-right {
    position: sticky;
    right: 0;
    z-index: 2;
    background-color: #fff;
}


.sot-top.sot-left,
.sot-bottom.sot-left,
.sot-top.sot-right,
.sot-bottom.sot-right {
    z-index: 3;
}

.my_table_data {
    font-size: 13px;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
    /*margin-top: 1rem;*/
    vertical-align: middle;
    border-spacing: 0;
    border-collapse: separate;
    border: 1px solid #e1e8f0;
    border-radius: 6px;
    /*overflow: hidden;*/
    user-select: text;
}

.my_table_data th,
.my_table_data td {
    border-bottom: 1px solid #e8edf5;
    border-right: 1px solid #e8edf5;
    height: 35px;
    padding: 0 15px;
    text-overflow: ellipsis;
    max-width: 160px;
    overflow: hidden;
}

.my_table_data th:last-child,
.my_table_data td:last-child {
    border-right: none;
}

.my_table_data tr:last-child td {
    border-bottom: none;
}

.my_table_data tbody {
    vertical-align: inherit;
}

.my_table_data th {
    background: linear-gradient(to bottom, #f7f9fc 0%, #f1f1f6 100%);
    color: #2d3435;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.my_table_data tbody tr {
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.my_table_data tbody tr:nth-child(even) {
    background-color: #fafbfd;
}

.my_table_data.tr_hover tbody tr:hover {
    background-color: #f0f4f9;
    cursor: pointer;
}

.my_table_data td {
    color: #374151;
}

.my_table_data_no_child {
    font-size: 13px;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
    margin-top: 1rem;
    vertical-align: middle;
    border-spacing: 0;
    border-collapse: separate;
    border: 1px solid #e1e8f0;
    border-radius: 6px;
    /*overflow: hidden;*/
    user-select: text;
}

.my_table_data_no_child th,
.my_table_data_no_child td {
    border-bottom: 1px solid #e8edf5;
    border-right: 1px solid #e8edf5;
    height: 35px;
    padding: 0 15px;
    text-overflow: ellipsis;
    max-width: 160px;
    overflow: hidden;
}

.my_table_data_no_child th:last-child,
.my_table_data_no_child td:last-child {
    border-right: none;
}

.my_table_data_no_child tr:last-child td {
    border-bottom: none;
}

.my_table_data_no_child tbody {
    vertical-align: inherit;
}

.my_table_data_no_child th {
    background: linear-gradient(to bottom, #f7f9fc 0%, #f1f1f6 100%);
    color: #2d3435;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.my_table_data_no_child tbody tr {
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.my_table_data_no_child tbody tr:nth-child(even) {
    background-color: #fafbfd;
}

.my_table_data_no_child.tr_hover tbody tr:hover {
    background-color: #f0f4f9;
    cursor: pointer;
}

.my_table_data_no_child td {
    color: #374151;
}

.my_table_input {
    font-size: 13px;
    box-sizing: border-box;
    width: 100%;
    margin-top: 1rem;
    vertical-align: middle;
    border-spacing: 0;
    border-collapse: separate;
    border: 1px solid #e1e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.my_table_input th,
.my_table_input td {
    border-bottom: 1px solid #e8edf5;
    border-right: 1px solid #e8edf5;
    height: 35px;
    padding: 0 3px;
}

.my_table_input th:last-child,
.my_table_input td:last-child {
    border-right: none;
}

.my_table_input tr:last-child td {
    border-bottom: none;
}

.my_table_input th {
    background: linear-gradient(to bottom, #f7f9fc 0%, #f1f1f6 100%);
    color: #2d3435;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.my_table_input tbody tr {
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.my_table_input tbody tr:nth-child(even) {
    background-color: #fafbfd;
}

.my_table_input tbody tr:hover {
    background-color: #f0f4f9;
}

.my_table_input td {
    color: #374151;
}

/* table_main 스타일을 마지막에 배치하여 우선순위 확보 */
.my_table_data th.table_main {
    text-align: start;
    background: linear-gradient(170deg, #1a1c1c 0%, #3e4134 100%);
    color: #FFFFFF;
    padding-left: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.my_table_data_no_child th.table_main {
    text-align: start;
    background: linear-gradient(170deg, #1a1c1c 0%, #3e4134 100%);
    color: #FFFFFF;
    padding-left: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.my_table_input th.table_main {
    text-align: start;
    background: linear-gradient(170deg, #1a1c1c 0%, #3e4134 100%);
    color: #FFFFFF;
    padding-left: 10px;
    font-size: 14px;
    box-sizing: border-box;
    height: 31px;
    min-height: 31px;
}

.col_min {
    min-width: 130px !important;
}
.cell_hover {
    cursor: pointer;
}
.cell_hover:hover {
    background-color: #f9f9f9;
}
.cell_hover_none {
    cursor: default !important;
}
.page_active {
    color: #6c757d;
    background-color: #eeeeee;
}

.col_min_hundred {
    min-width: 100px !important;
}

#tab_load {
    margin-top: 12px;
}

.readonly_text {
    border: 1px solid gainsboro !important;
    height: 30px !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 0.375rem !important;
    font-weight: 400 !important;
    background-color: #f2f4f7;
}

.select2-selection--single {
    height: 100% !important;
    border: 1px solid #ced4da !important;
}

.select2-selection__arrow {
    display: none !important;
}

.data_active {
    background-color: darkgray;
}


body {
    white-space: nowrap;
    user-select:none;
    margin: 0;
    background-color: #F9F9F9;
    color: #2d3435;
}

/* 부트스트랩 plain .btn (variant 없는 버튼) fallback — 흰 배경에서 보이도록 */
button.btn:not([class*="btn-"]):not([class*="btn_"]):not(.kj-icon-btn):not(.kj-action-btn) {
    background-color: #f2f4f7;
    color: #2d3435;
    border: 1px solid rgba(45,52,53,0.12);
}
button.btn:not([class*="btn-"]):not([class*="btn_"]):not(.kj-icon-btn):not(.kj-action-btn):hover {
    background-color: #e4e9ea;
    color: #1a1c1c;
}

/* ============================================================
   기능별 버튼 색상 통일 — 솔리드 배경, 보더 없음, 모든 페이지 동일
   조회 / 저장 / 삭제 / 인쇄 / 엑셀 등 기능마다 색상 명확히 구분
   ============================================================ */

/* 조회 (get_btn = btn-outline-primary) — 라이트 올리브 */
.btn.btn-outline-primary {
    --bs-btn-color: #3a4400;
    --bs-btn-bg: #eef3c4;
    --bs-btn-border-color: #eef3c4;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #576500;
    --bs-btn-hover-border-color: #576500;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #3e4134;
    --bs-btn-active-border-color: #3e4134;
    --bs-btn-disabled-color: #3a4400;
    --bs-btn-disabled-bg: #eef3c4;
    --bs-btn-disabled-border-color: #eef3c4;
    font-weight: 600;
}

/* 저장 / 등록 / 수정 / 업로드 (post_btn = btn-primary) — 솔리드 올리브 */
.btn.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #576500;
    --bs-btn-border-color: #576500;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #3e4134;
    --bs-btn-hover-border-color: #3e4134;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #3e4134;
    --bs-btn-active-border-color: #3e4134;
    font-weight: 600;
}

/* 다크 액션 (dark_btn = btn-outline-dark) — 라이트 그레이 + 진한 텍스트 */
.btn.btn-outline-dark {
    --bs-btn-color: #1a1c1c;
    --bs-btn-bg: #dde4e5;
    --bs-btn-border-color: #dde4e5;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #2d3435;
    --bs-btn-hover-border-color: #2d3435;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #1a1c1c;
    --bs-btn-active-border-color: #1a1c1c;
    font-weight: 600;
}

/* 다크 솔리드 (btn-dark) — 솔리드 다크그레이 */
.btn.btn-dark {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #1a1c1c;
    --bs-btn-border-color: #1a1c1c;
    --bs-btn-hover-bg: #3e4134;
    --bs-btn-hover-border-color: #3e4134;
    font-weight: 600;
}

/* 엑셀 조회 (xlsx_get_btn = btn-outline-success) — 라이트 그린 */
.btn.btn-outline-success {
    --bs-btn-color: #1f5236;
    --bs-btn-bg: #d8ead9;
    --bs-btn-border-color: #d8ead9;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #2d6a4f;
    --bs-btn-hover-border-color: #2d6a4f;
    font-weight: 600;
}

/* 엑셀 저장 / 다운로드 (xlsx_btn = btn-success) — 솔리드 그린 */
.btn.btn-success {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #2d6a4f;
    --bs-btn-border-color: #2d6a4f;
    --bs-btn-hover-bg: #1f5236;
    --bs-btn-hover-border-color: #1f5236;
    font-weight: 600;
}

/* 탭 / 보조 (tab_btn = btn-outline-secondary) — 그레이 */
.btn.btn-outline-secondary {
    --bs-btn-color: #2d3435;
    --bs-btn-bg: #ebeeef;
    --bs-btn-border-color: #ebeeef;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #5e6053;
    --bs-btn-hover-border-color: #5e6053;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #3e4134;
    --bs-btn-active-border-color: #3e4134;
    font-weight: 600;
}

/* 보조 솔리드 (btn-secondary) — 솔리드 세이지 */
.btn.btn-secondary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #5e6053;
    --bs-btn-border-color: #5e6053;
    --bs-btn-hover-bg: #3e4134;
    --bs-btn-hover-border-color: #3e4134;
    font-weight: 600;
}

/* 삭제 outline (get_delete_btn = btn-outline-danger) — 라이트 레드 */
.btn.btn-outline-danger {
    --bs-btn-color: #8a0000;
    --bs-btn-bg: #fbdcdc;
    --bs-btn-border-color: #fbdcdc;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #b90000;
    --bs-btn-hover-border-color: #b90000;
    font-weight: 600;
}

/* 삭제 솔리드 (delete_btn = btn-danger) — 솔리드 레드 */
.btn.btn-danger {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #b90000;
    --bs-btn-border-color: #b90000;
    --bs-btn-hover-bg: #800000;
    --bs-btn-hover-border-color: #800000;
    font-weight: 600;
}

/* 인쇄 outline (get_print_btn = btn-outline-warning) — 라이트 앰버 */
.btn.btn-outline-warning {
    --bs-btn-color: #8a4d00;
    --bs-btn-bg: #fce8c4;
    --bs-btn-border-color: #fce8c4;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #b76900;
    --bs-btn-hover-border-color: #b76900;
    font-weight: 600;
}

/* 인쇄 솔리드 (print_btn = btn-warning) — 솔리드 앰버 */
.btn.btn-warning {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #d97706;
    --bs-btn-border-color: #d97706;
    --bs-btn-hover-bg: #b76900;
    --bs-btn-hover-border-color: #b76900;
    font-weight: 600;
}

/* 정보 (btn-outline-info) — 라이트 블루 */
.btn.btn-outline-info {
    --bs-btn-color: #00558f;
    --bs-btn-bg: #d6e9f7;
    --bs-btn-border-color: #d6e9f7;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #0078D4;
    --bs-btn-hover-border-color: #0078D4;
    font-weight: 600;
}
.btn.btn-info {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #0078D4;
    --bs-btn-border-color: #0078D4;
    --bs-btn-hover-bg: #00558f;
    --bs-btn-hover-border-color: #00558f;
    font-weight: 600;
}

/* light 변형 — 라이트 그레이 */
.btn.btn-light,
.btn.btn-outline-light {
    --bs-btn-color: #2d3435;
    --bs-btn-bg: #f2f4f7;
    --bs-btn-border-color: #f2f4f7;
    --bs-btn-hover-color: #1a1c1c;
    --bs-btn-hover-bg: #e4e9ea;
    --bs-btn-hover-border-color: #e4e9ea;
    font-weight: 600;
}

/* ============================================================
   기능별(텍스트별) 버튼 색상 — JS로 버튼 텍스트를 읽어 data-fn 속성을
   자동 부여, 같은 클래스라도 기능이 다르면 다른 색상이 적용되도록 함
   (data-fn 룰이 위 부트스트랩 오버라이드보다 뒤에 있어 우선순위가 높음)
   ============================================================ */
.btn[data-fn="query"] {
    --bs-btn-color: #3a4400; --bs-btn-bg: #eef3c4; --bs-btn-border-color: #eef3c4;
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #576500; --bs-btn-hover-border-color: #576500;
}
.btn[data-fn="save"] {
    --bs-btn-color: #ffffff; --bs-btn-bg: #576500; --bs-btn-border-color: #576500;
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #3e4134; --bs-btn-hover-border-color: #3e4134;
}
.btn[data-fn="edit"] {
    --bs-btn-color: #ffffff; --bs-btn-bg: #ca8a04; --bs-btn-border-color: #ca8a04;
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #a16207; --bs-btn-hover-border-color: #a16207;
}
.btn[data-fn="upload"] {
    --bs-btn-color: #ffffff; --bs-btn-bg: #db2777; --bs-btn-border-color: #db2777;
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #be185d; --bs-btn-hover-border-color: #be185d;
}
.btn[data-fn="apply"] {
    --bs-btn-color: #ffffff; --bs-btn-bg: #7c3aed; --bs-btn-border-color: #7c3aed;
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #6d28d9; --bs-btn-hover-border-color: #6d28d9;
}
.btn[data-fn="add"] {
    --bs-btn-color: #ffffff; --bs-btn-bg: #1e6091; --bs-btn-border-color: #1e6091;
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #14476b; --bs-btn-hover-border-color: #14476b;
}
.btn[data-fn="delete"] {
    --bs-btn-color: #ffffff; --bs-btn-bg: #b90000; --bs-btn-border-color: #b90000;
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #800000; --bs-btn-hover-border-color: #800000;
}
.btn[data-fn="download"] {
    --bs-btn-color: #ffffff; --bs-btn-bg: #0e7490; --bs-btn-border-color: #0e7490;
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #0a566c; --bs-btn-hover-border-color: #0a566c;
}
.btn[data-fn="fetch"] {
    --bs-btn-color: #ffffff; --bs-btn-bg: #6d28d9; --bs-btn-border-color: #6d28d9;
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #5b21b6; --bs-btn-hover-border-color: #5b21b6;
}
.btn[data-fn="print"] {
    --bs-btn-color: #ffffff; --bs-btn-bg: #d97706; --bs-btn-border-color: #d97706;
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #b76900; --bs-btn-hover-border-color: #b76900;
}
.btn[data-fn="excel"] {
    --bs-btn-color: #ffffff; --bs-btn-bg: #2d6a4f; --bs-btn-border-color: #2d6a4f;
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #1f5236; --bs-btn-hover-border-color: #1f5236;
}
.btn[data-fn="close"] {
    --bs-btn-color: #ffffff; --bs-btn-bg: #5e6053; --bs-btn-border-color: #5e6053;
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #3e4134; --bs-btn-hover-border-color: #3e4134;
}
.btn[data-fn="reset"] {
    --bs-btn-color: #2d3435; --bs-btn-bg: #ebeeef; --bs-btn-border-color: #ebeeef;
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #5e6053; --bs-btn-hover-border-color: #5e6053;
}
.btn[data-fn="confirm"] {
    --bs-btn-color: #ffffff; --bs-btn-bg: #4b5700; --bs-btn-border-color: #4b5700;
    --bs-btn-hover-color: #ffffff; --bs-btn-hover-bg: #3a4400; --bs-btn-hover-border-color: #3a4400;
}
#aside::-webkit-scrollbar {display: none;}
#aside {
    width: 240px;
    height: 100%;
    position: fixed;
    padding: 80px 10px 10px 10px;
    top: 0;
    left: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    z-index: 4;
    background-color: #F2F4F4;
    box-sizing: border-box;
    border-right: 1px solid #ebeeef;
}
.aside_btn {
    border: 0;
    background: none;
    width: 100%;
    text-align: left;
    padding-top: 13px;
    padding-bottom: 13px;
    color: gray;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 20px;
}
.aside_btn:hover {
    color: black;
    font-weight: bold;
}
.custom_arrow {
    transition: all 0.2s;
    font-size: 18px;
}
.aside_collapse {
    overflow: hidden;
    max-height: 0;
    transition: all 0.2s;
}

.aside_submenu_collapse {
    overflow: hidden;
    max-height: 0;
    transition: all 0.2s;
}
.aside_div {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 5px;
    max-height: fit-content;
    display: flex;
    flex-flow: column;
    box-shadow: 0px 4px 12px rgba(45,52,53,0.06);
}
.aside_a {
    font-size: 14px;
    text-decoration: none;
    padding: 9px 9px 9px 30px;
    box-sizing: border-box;
    margin: 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #2d3435;
}
.aside_a.color_white { color: #2d3435; }
.aside_a:hover {
    border-radius: 8px;
    background-color: rgba(211, 240, 43, 0.18);
    font-weight: bold;
    color: #4b5700;
}

.aside_b {
    font-size: 14px;
    text-decoration: none;
    padding: 9px 20px 9px 50px;
    box-sizing: border-box;
    margin: 2px;
    color: #2d3435;
}
.aside_b.color_white { color: #2d3435; }
.aside_b:hover {
    border-radius: 8px;
    background-color: rgba(211, 240, 43, 0.18);
    font-weight: bold;
    color: #4b5700;
}

.aside_submenu_btn {
    border: 0;
    background: none;
    width: 100%;
    text-align: left;
    padding-top: 13px;
    padding-bottom: 13px;
    color: #5a6061;
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 30px;
}
.aside_submenu_btn:hover {
    color: #2d3435;
    font-weight: bold;
}
/* 사이드바 컨텍스트 내 흰색 텍스트 오버라이드 (배경이 밝아져서 보이도록) */
#aside .nav_title,
#aside .nav_middle_title { color: #2d3435; }
#aside .color_white,
.aside_div .color_white { color: #5a6061; }
#base_logo_div {
    height: inherit;
}
#logo_img {
    height: inherit;
    cursor: pointer;
    object-fit: cover;
}
#nav {
    position: fixed;
    top: 0;
    height: 70px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    box-shadow: 0 -5px 10px 0;
    z-index: 30;
}
#nav_right {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin-right: 20px;
}
.nav_title {
    color: white;
    margin-left: 10px;
    font-size: 18px;
}
.nav_middle_title {
    color: white;
    margin-left: 10px;
    font-size: 16px;
}
#logout_btn {
    width: 70px;
    height: inherit;
    display: flex;
    color: gray;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
#logout_btn:hover {
    color: white;
    background-color: black;
}
#main {
    padding-left: 240px;
    padding-top: 70px;
}
#content_div {
    position: relative;
}

#popup_load {
    max-width: 1000px;
    max-height: 600px;
}

.custom_icon {
    font-size: 14px;
}
.color_black {
    color: black;
}
.color_white {
    color: white;
}
.color_gray {
    color: lightgray;
}
.cursor_pointer {
    cursor: pointer;
}
.active_false_bg {
    background-color: #f8d7da !important;
}
.min_width_fit {
    min-width: fit-content;
}
.cell_hover:hover {
    background-color: #e5e5e5;
    cursor: pointer;
}
.col_min {
    min-width: 130px;
}

.sub_title {
    border-left: 5px solid black;
    font-weight: bold;
    height: 40px;
    display: flex;
    align-items: center;
    padding-left: 10px;
}
.date_border {
    border: 1px solid #767676;
}

.nav-tabs .nav-link {
    background-color: #E9ECEF;
    color: #808080;
}

.nav-tabs .nav-link.active {
    background-color: #1a1c1c;
    color: white;
}

.btn_print {
    background-color: #0078D4;
    color: white;
    min-width: 130px;
    border: 0;
    border-radius: 5px;
    padding: 7px;
    font-size: 13px;
}
.btn_print:hover {
    background-color: #004f8c;
}

.btn_post {
    background-color: #00B050;
    color: white;
    min-width: 130px;
    border: 0;
    border-radius: 5px;
    padding: 7px;
    font-size: 13px;
}
.btn_post:hover {
    background-color: #006d33;
}

.add_settings_btn {
    background-color: #F2F4F7;
    border: 0;
    border-radius: 5px;
}

.add_settings_btn:hover {
    background-color: grey;
}

.btn_black {
    background-color: #000000;
    color: white;
    min-width: 130px;
    border: 0;
    border-radius: 5px;
    padding: 7px;
    font-size: 13px;
}
.btn_black:hover {
    background-color: #2f2f2f;
}

.btn_get{
    background-color: darkgray;
    color: white;
    min-width: 130px;
    border: 0;
    border-radius: 5px;
    padding: 7px;
    font-size: 13px;
}
.btn_get:hover {
    background-color: grey;
}

.btn_blue{
    background-color: #576500;
    color: white;
    min-width: 130px;
    border: 0;
    border-radius: 5px;
    padding: 7px;
    font-size: 13px;
}
.btn_blue:hover {
    background-color: #3e4134;
}

.btn_red{
    background-color: #b90000;
    color: white;
    min-width: 130px;
    border: 0;
    border-radius: 5px;
    padding: 7px;
    font-size: 13px;
}
.btn_red:hover {
    background-color: #800000;
}

.table_fixed {
    table-layout: fixed;
}

.no_change_value {
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
}

.form-control {
    appearance: auto;
}

.my_table_data th.table_main {
    text-align: start;
    background-color: #1a1c1c;
    color: #FFFFFF;
    padding-left: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.my_table_data_no_child th.table_main {
    text-align: start;
    background-color: #1a1c1c;
    color: #FFFFFF;
    padding-left: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.my_table_input th.table_main {
    text-align: start;
    background-color: #1a1c1c;
    color: #FFFFFF;
    padding-left: 10px;
    font-size: 14px;
    box-sizing: border-box;
    height: 31px;
    min-height: 31px;
}

.bg-am {
    background-color: #fff3cc;
}

.bg-pm {
    background-color: #ffdac4;
}

.bg-rest {
    background-color: #ffd6f1;
}

.bg-annual {
    background-color: #C6EFCE;
}

.bg-early {
    background-color: #a5ffb6;
}

.accident_input {
    height: 15px;
    font-size: 13px;
}
.th_sum {
    color: black;
    background-color: white;
    text-align: right;
    padding-right: 10px;

    font-weight: bold;
}

/* car_evaluation_detail */
.detail_icon {
    color: #3b82f6;
    font-size: 24px;
    margin-bottom: 8px;
}

.eval_detail_info_section {
    background: #EFF6FF;
    border-radius: 12px;
    padding: 15px;
}

.eval_detail_info_section2 {
    background: #ECFDF5;
    border-radius: 12px;
    padding: 15px;
}

.eval_detail_info_section_sub {
    background: #F1F5F9;
    border-radius: 7px;
    padding: 15px;
    font-size: 13px;
    font-weight: bold;
}
.eval_detail_info-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}
.main-number_detail {
    font-size: 1.7rem;
    font-weight: 700;
    margin: 0 3px;
    line-height: 1;
}
.sub_unit_detail {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    margin: 0 0 1px 3px !important;
}

.detail_half_title {
    font-size: 1.0rem;
    font-weight: 500;
    margin: 0 3px;
    line-height: 1;
}

.detail_half_content {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 3px;
    line-height: 1;
}

.detail_half_content2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 3px;
    line-height: 1;
    color: #059669;
}
/* Tabulator 전용 css 수정해야함 (th 2개일 때 겹침) */
.tabulator {
    font-size: 13px;
    box-sizing: border-box;
    width: 100%;
    margin-top: 1rem;
    vertical-align: middle;
    border-spacing: 0;
    border-collapse: separate;
    border: 1px solid #e1e8f0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #ffffff;
}

/* 헤더 영역 */
.tabulator .tabulator-header {
    background: linear-gradient(to bottom, #f7f9fc 0%, #f1f1f6 100%);
    border-bottom: 1px solid #e8edf5;
}

/* 헤더 셀 */
.tabulator .tabulator-header .tabulator-col {
    background: linear-gradient(to bottom, #f7f9fc 0%, #f1f1f6 100%);
    border-right: 1px solid #e8edf5;
    height: 100%;
    padding: 5px 2px;
}

.tabulator .tabulator-header .tabulator-col:last-child {
    border-right: none;
}

/* 헤더 타이틀 */
.tabulator .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title {
    color: #2d3435;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 그룹 헤더 내부의 하위 컬럼들도 동일한 높이 강제 */
.tabulator .tabulator-header .tabulator-col-group .tabulator-col-group-cols {
    min-height: 35px !important;
}

.tabulator .tabulator-header .tabulator-col-group .tabulator-col-group-cols .tabulator-col {
    height: 35px !important;
}

/* resize handle도 높이 맞춤 */
.tabulator .tabulator-header .tabulator-col-resize-handle {
    height: 35px !important;
}

/* 데이터 행 */
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row {
    transition: all 0.2s ease;
    background-color: #ffffff;
    border-bottom: 1px solid #e8edf5;
}

/* 짝수 행 */
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:nth-child(even) {
    background-color: #fafbfd;
}

/* 행 호버 */
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:hover {
    background-color: #f0f4f9;
}

/* 마지막 행 */
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row:last-child {
    border-bottom: none;
}

/* 데이터 셀 */
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row .tabulator-cell {
    border-right: 1px solid #e8edf5;
    height: 35px;
    padding: 10px 3px;
    color: #374151;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row .tabulator-cell:last-child {
    border-right: none;
}

/* table_main 스타일 (메인 헤더) */
.tabulator .tabulator-header.table_main,
.tabulator.table_main .tabulator-header {
    background: #1a1c1c;
}

.tabulator.table_main .tabulator-header .tabulator-col {
    background: #1a1c1c;
}

.tabulator.table_main .tabulator-header .tabulator-col .tabulator-col-content .tabulator-col-title {
    text-align: start;
    color: #FFFFFF;
    padding-left: 10px;
    font-size: 14px;
    text-transform: none;
}

/* 선택된 행 */
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row.tabulator-selected {
    background-color: #e3f2fd;
}

/* 편집 모드 셀 */
.tabulator .tabulator-tableholder .tabulator-table .tabulator-row .tabulator-cell.tabulator-editing {
    border: 1px solid #1a1c1c;
    padding: 0;
}

.tabulator .tabulator-tableholder .tabulator-table .tabulator-row .tabulator-cell.tabulator-editing input {
    border: none;
    height: 100%;
    padding: 0 3px;
    font-size: 13px;
}

/* label_form 스타일 251224 예비 */
/*.input-group:has(.label-form-style) {*/
/*    border-radius: 6px;*/
/*    overflow: hidden;*/
/*    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);*/
/*}*/

/*.label-form-style {*/
/*    background: #f5f5f7;*/
/*    color: #1d1d1f !important;*/
/*    font-weight: 500;*/
/*    border: none !important;*/
/*    padding: 0.25rem 0.65rem;*/
/*}*/

/*.label-form-style + .form-control,*/
/*.label-form-style + .form-select,*/
/*.label-form-style + select,*/
/*.label-form-style + input {*/
/*    border: 1px solid #e1e8f0 !important;*/
/*    border-left: none !important;*/
/*}*/

input[type="checkbox"] {
    cursor: pointer;
}
