pre {
    white-space: pre-wrap;
    text-align: justify;
}

.tim-row {
    margin-bottom: 20px;
    padding-top: 60px;
}

.tim-row h3 {
    margin-top: 0;
}

.tim-white-buttons {
    background-color: #777777;
}

.typography-line {
    padding-left: 25%;
    margin-bottom: 35px;
    position: relative;
    display: block;
    width: 100%;
}

.typography-line span {
    bottom: 10px;
    color: #c0c1c2;
    display: block;
    font-weight: 400;
    font-size: 13px;
    line-height: 13px;
    left: 0;
    position: absolute;
    width: 260px;
    text-transform: none;
}

.offline-doc .page-header {
    display: flex;
    align-items: center;
}

.offline-doc .footer {
    position: absolute;
    width: 100%;
    background: transparent;
    bottom: 0;
    color: #fff;
    z-index: 1;
}

@media all and (min-width: 992px) {
    .sidebar .nav>li.active-pro {
        position: absolute;
        width: 100%;
        bottom: 10px;
    }
}

.card.card-upgrade .card-category {
    max-width: 530px;
    margin: 0 auto;
}

/* Nucleo Style & Demo Icons */
.demo-iconshtml { font-size: 62.5%; }
.demo-icons body { font-size: 1.6rem; font-family: sans-serif; color: #333333; background: white; }
.demo-icons a { color: #608CEE; text-decoration: none; }
.demo-icons header { text-align: center; padding: 100px 0 0; }
.demo-icons header h1 { font-size: 2.8rem; }
.demo-icons header p { font-size: 1.4rem; margin-top: 1em; }
.demo-icons header a:hover { text-decoration: underline; }
.demo-icons .nc-icon { font-size: 34px; }
.demo-icons section h2 { border-bottom: 1px solid #e2e2e2; padding: 0 0 1em .2em; margin-bottom: 1em; }
.demo-icons ul { padding-left: 0; }
.demo-icons ul::after { clear: both; content: ""; display: table; }
.demo-icons ul li { width: 20%; float: left; padding: 16px 0; text-align: center; border-radius: .25em; transition: background 0.2s; overflow: hidden; }
.demo-icons ul li:hover { background: #f4f4f4; }
.demo-icons ul p, .demo-icons ul em, .demo-icons ul input { display: inline-block; font-size: 1rem; color: #999999; white-space: nowrap; width: 100%; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.demo-icons ul p { padding: 20px 0 0; font-size: 12px; margin: 0; }
.demo-icons ul p::selection, .demo-icons ul em::selection { background: #608CEE; color: #efefef; }
.demo-icons ul em { font-size: 12px; }
.demo-icons ul em::before { content: '['; }
.demo-icons ul em::after { content: ']'; }
.demo-icons ul input { text-align: center; background: transparent; border: none; box-shadow: none; outline: none; display: none; }

/* Pagination & Utilities */
.pagination { font-size: 13px; }
.page-link { padding: 0.3rem 0.5rem !important; }
.top-ul { list-style-type: none; position: relative; top:10px; }
.top-ul > li { display: inline-block; }
body { background-color: #f4f3ef; }

.col-xs-6 { width: 50% !important; padding-left: 15px; padding-right: 15px; }
.input-mg { margin-left: 15px; margin-right: 15px; width: 40% !important; }
.mgl-15 { margin-left: 15px; }
.mgr-15 { margin-right: 15px; }
dl, ol, ul { margin-bottom: 0 !important; }

@media screen and (max-width:960px){
    .multi-input-first { margin-right : 10px; }
    .multi-input-last { margin-left : 10px; }
    .multi-input-center { margin-left : 10px; margin-right : 10px; }
    .justify-content-end { position: absolute; right: 10px; top: -1px; }
}

@media screen and (max-width:320px){
    .navbar-brand { display: none; }
    .nav-link { padding: .5rem .3rem !important; }
}

/* Custom Table Styles */
.table-responsive .table.custom-table td,
.table-responsive .table.custom-table th {
    height: 28px !important;
    padding: 0 10px !important;
    font-weight: normal;
    vertical-align: middle !important;
    border: 1px solid #dee2e6 !important;
}

.table-responsive .table.custom-table td.input-text,
.table-responsive .table.custom-table th.input-text { padding: 0 !important; }

.custom-table td.input-text input, .custom-table td.input-text select {
    display: block !important;
    width: 100% !important;
    height: 28px !important;
    border: none !important;
    outline: none !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
    background-color: transparent;
    font-size: 14px !important;
}

.custom-table td.input-text input:focus,
.custom-table td.input-text .input-group input:focus,
.custom-table td.input-text .input-group textarea:focus {
    background-color: #fffde7 !important;
    box-shadow: inset 0 0 0 1px #007bff !important;
}

.custom-table + nav .pagination li.active .page-link {
    background-color: #706e6e !important;
    border-color: #5c5b5b !important;
    color: #dff0d8 !important;
}
.custom-table + nav .pagination .page-item .page-link { color: #595a59 !important; }

.custom-table td.input-text {
    padding: 0 !important;
    vertical-align: middle !important;
    height: 1px;
}

.custom-table td.input-text .input-group {
    width: 100% !important;
    height: 100% !important;
    flex-wrap: nowrap !important;
    display: flex !important;
    align-items: stretch !important;
    margin: 0 !important;
}

.custom-table td.input-text .input-group .form-control {
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent;
    font-size: 14px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    flex: 1 1 auto;
    position: relative;
    z-index: 2;
}

.custom-table td.input-text .input-group .input-group-append,
.custom-table td.input-text .input-group .input-group-btn {
    height: 100% !important;
    margin: 0 !important;
    display: flex;
}

.custom-table td.input-text .input-group .btn {
    height: 100% !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    border-left: 1px solid #dee2e6 !important;
    padding: 0 10px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-table td.input-text select::-ms-expand{ display: none; }
.no-radius { border-radius: 0 !important; }

/* Toggle Icons & Forms */
.collapse-icon {
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}
.btn-toggle[aria-expanded="true"] .collapse-icon { transform: rotate(180deg); }

.form-control-sm {
    height: calc(1.5em + 0.5rem + 2px) !important;
    padding: 0.25rem 0.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

.form-control.is-invalid {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5zM6 8.2a.3.3 0 00-.3-.3.3.3 0 00-.3.3.3.3 0 00.6 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* ==========================================================================
   SIDEBAR STYLES (SB Admin Pro Theme Fixed)
   ========================================================================== */
/* ==========================================================================
   SIDEBAR COMPACT STYLES (SB Admin Pro Style)
   ========================================================================== */

/* 1. 사이드바 배경 */
.sidebar {
    background-color: #212529 !important;
}

/* 2. [간격 수정] 섹션 헤더 (Core, Custom 등) 간격 축소 */
.sidebar .nav-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1rem 0.25rem !important; /* 위아래 패딩을 줄임 (기존 1.75rem -> 1rem) */
}

/* 3. [간격 수정] 상위 메뉴 링크 높이 축소 */
.sidebar .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.5rem 1rem !important; /* 메뉴 두께를 얇게 (기존 0.75rem -> 0.5rem) */
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
}

/* 4. 아이콘과 텍스트 스타일 */
.nav-link-content {
    display: flex;
    align-items: center;
}
.nav-link-content i {
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
}
.nav-link-content span {
    font-size: 0.95rem;
    font-weight: 600;
}

/* 5. 화살표 아이콘 */
.sidenav-collapse-arrow {
    font-size: 0.8rem !important;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.25);
    transition: transform 0.25s ease;
}
.nav-link[aria-expanded="true"] .sidenav-collapse-arrow {
    transform: rotate(90deg);
    color: rgba(255, 255, 255, 0.8);
}

/* 6. [Active] 활성화 시 우측 삼각형 제거 */
.sidebar .nav li.active > a:after,
.sidebar .nav li.active > a:before {
    display: none !important;
    border: none !important;
}

/* ==========================================================================
   [신규] 하위 메뉴 (보고서 등) 전용 스타일 - 인라인 스타일 제거됨
   ========================================================================== */

/* 하위 메뉴를 감싸는 내부 래퍼 (패딩 제거용) */
.sidebar .collapse-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

/* 하위 메뉴 컨테이너 (세로선 및 위치 잡기) */
.sidebar .sidenav-menu-nested {
    display: block !important;
    margin-left: 28px !important;  /* 선 위치 */
    border-left: 1px solid rgba(255, 255, 255, 0.5) !important; /* 선 색상 */
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

/* 하위 메뉴 아이템 (링크) */
.sidebar .nav-link-child {
    display: block !important;
    width: 100%;
    text-align: left;

    /* [간격 수정] 하위 메뉴 높이도 살짝 줄임 */
    padding: 8px 0 8px 24px !important; /* padding-left: 24px 반영됨 */

    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    white-space: nowrap;
    transition: none !important;
    background-color: transparent;
    cursor: pointer;
}

.sidebar .nav-link-child:hover,
.sidebar .nav-link-child.active {
    color: #fff;
    font-weight: bold;
}
.sidebar .nav-link-child span {
    display: inline-block;
    font-size: 0.95rem;
}

.nav-item .sub-div {
    margin-left: 1.5rem !important;
}

.custom-btn {
    padding: 0.1rem 0.2rem !important;
}

.select-td {cursor: pointer;}

.bg-my1 { background-color: #fbf7ee !important; }
.bg-my2 { background-color: #f3f5eb !important; }

/* 1. Clear(x) 버튼 기본 스타일 */
.select2-container .select2-selection__clear {
    background-color: #c8c8c8; /* 배경색: 회색 */
    color: #fff;               /* 글자색: 흰색 */

    width: 18px;               /* 너비 */
    height: 18px;              /* 높이 */
    border-radius: 50%;        /* 원형 만들기 */

    /* 2. X 문자 정가운데 정렬 (Flexbox) */
    display: inline-flex;
    justify-content: center;
    align-items: center;

    font-size: 12px;           /* X 크기 */
    font-weight: bold;
    line-height: 1;            /* 줄간격 초기화 */

    /* 3. 위치 미세 조정 (필요시 수정) */
    margin-right: 5px;
    margin-top: 4px;           /* 수직 위치 미세조정 */

    /* 기존 Select2의 텍스트 꾸밈 제거 */
    text-decoration: none;
}

/* 4. 마우스 올렸을 때 (Hover) 효과 */
.select2-container .select2-selection__clear:hover {
    background-color: #dc3545; /* 빨간색 (Bootstrap danger 색상) */
    color: #fff;
}

/* (참고) Select2 Single 높이 이슈 대응 시 위치가 틀어지면 아래 속성 추가 */
.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 18px;
    line-height: 18px;
}

.modal-body .select2-container .select2-selection__clear, .card-body .select2-container .select2-selection__clear {
    margin-top: 6px !important;
    margin-left: 6px !important;
}

.text-ellipsis {
    max-width: 200px; /* 원하는 최대 너비 설정 (필수) */
    white-space: nowrap; /* 줄바꿈 방지 */
    overflow: hidden;    /* 넘치는 텍스트 숨김 */
    text-overflow: ellipsis; /* 말줄임표(...) 처리 */
}
