body[data-sidebar-size=sm] .project-select-wrap {
    display: none;
}

.required-label::after {
    content: "*";
    position: relative;
    font-size: inherit;
    color: #F1416C;
    padding-left: 0.25rem;
    font-weight: bold;
}


.search-custom {
    float: none;
    height: 40px;
    max-width: 500px;
    width: 100%;
}

.search-custom .search-bar {
    border: 1px solid #e2e5e8;
    border-radius: .75rem 0 0 .75em;
}

.search-custom .search-select-wrap {
    max-width: 110px;
    min-width: 80px;
}

.search-custom .search-select-wrap::after {
    content: '';
    width: 1px;
    height: 16px;
    background: #e2e5e8;
    z-index: 4;
}

.search-custom .search-select {
    font-size: 13px;
}

.search-custom .search-btn {
    border-radius: 0 .75rem .75em 0;
    min-width: 42px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3b76e1;
}

.search-custom .gridjs-search-input {
    height: calc(2.5rem - 2px);
}

.period-search .search-btn {
    height: 100%;
    background-color: #3b76e1;
    width: 80px;
    height: 36px;
}

.subCardWrap {
    display: none;
}

.fixed-btn-box {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    gap: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixed-btn-box li {
    list-style: none;
}

.fixed-btn-box button {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* 페이징 커스텀 */
.gridjs-footer {
    padding: 12px 0 !important;
}

.gridjs-footer .gridjs-pagination .gridjs-pages button {
    margin: 0 1px 0 0;
}

.gridjs-footer .gridjs-pagination .gridjs-pages button:disabled, .gridjs-pagination .gridjs-pages button:hover:disabled, .gridjs-pagination .gridjs-pages button[disabled] {
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #e2e5e8;
}

.gridjs-footer .gridjs-pagination .gridjs-pages button:first-child:hover, .gridjs-pagination .gridjs-pages button:last-child:hover {
    background-color: #f5f6f8;
}

/* 유효성 검사 */
.was-validated .form-control:valid,
.was-validated .form-select:valid {
    border-color: #e2e5e8 !important;
    background-image: none !important;
}

.was-validated .form-control:valid.is-invalid {
    border-color: #f56e6e !important;
    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='%23f56e6e'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23f56e6e' stroke='none'/%3e%3c/svg%3e") !important;
}

.was-validated .form-control:valid:focus,
.was-validated .form-check-input:valid:focus {
    box-shadow: none !important;
}

.was-validated .form-select:valid:focus {
    -webkit-box-shadow: 0 0 0 .15rem rgba(59, 118, 225, .25);
    box-shadow: 0 0 0 .15rem rgba(59, 118, 225, .25);
}

.was-validated .form-check-input:valid {
    border: 1px solid #8495ab;
}

.was-validated .form-check-input:valid:focus {
    border-color: #cbced1;
}

.was-validated .form-check-input:valid ~ .form-check-label {
    color: inherit;
}

.was-validated .form-check-input:valid:checked {
    border-color: #3b76e1 !important;
    background-color: #3b76e1 !important;
}

/* 스위치 커스텀 */
.custom-switch + label .unused-text {
    display: none;
}

.custom-switch:not(:checked) + label .use-text {
    display: none;
}

.custom-switch:not(:checked) + label .unused-text {
    display: inline;
}

/* SweetAlert2 커스텀 */
.bs5-swal-popup {
    border-radius: 0.5rem !important;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

.bs5-swal-title {
    font-size: 1.25rem !important;
    color: #333 !important;
    padding: 0.8em 1em !important;
}

.bs5-swal-text {
    font-size: 1rem !important;;
    color: #666;
}

.swal2-icon {
    transform: scale(0.7) !important;
}

.swal2-confirm {
    font-size: 0.875rem;
    font-weight: 500;
}

.swal2-actions {
    margin: 1.25em 0 !important;
}

.swal2-cancel {
    font-size: 0.875rem;
    font-weight: 500;
}


.project-title {
    pointer-events: auto;
}

.project-title .flex {
    display: flex;
    justify-content: space-between;
    line-height: 26px;
}

.project-select-wrap {
    padding: 0 25px;
}


@media (max-width: 480px) {
    /* 480px 이하에서 회전 */
    .rotate-sm {
        transform: rotate(90deg);
    }
}

/* 이미지번역관리 이미지 */
.img-mng-table img.img-mng-size {
    width: 200px;
}

.ellipsis {
    white-space: nowrap; /* 줄 바꿈 없이 한 줄로 */
    overflow: hidden; /* 넘치는 부분 숨김 */
    text-overflow: ellipsis; /* 넘치는 부분 ... 처리 */
}

/*로딩바 */
.data_processing_page {
    text-align: center;
    position: fixed;
    width: 90vw;
    max-width: 340px;
    height: 100%;
    max-height: 230px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    z-index: 1000;
    box-shadow: #bbb 0 0 20px;
    display: none;
}

.data_processing_page h2 {
    font-size: 21px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.data_processing_page p {
    color: #727272;
    font-size: 13px;
}


/* Loading box */
.trans_loading_box {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20000;
    display: none;
    background-color: rgba(0, 0, 0, .6);
}

.trans_loading_box .wrapper {
    width: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.trans_loading_box .wrapper span {
    position: absolute;
    top: 75px;
    font-family: 'Lato';
    font-size: 20px;
    letter-spacing: 8px;
    color: #fff;
    left: 50%;
    transform: translateX(-48%);
}

.trans_loading_box .cube {
    -webkit-animation: loading_cube 2s infinite ease;
    animation: loading_cube 2s infinite ease;
    height: 40px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    width: 40px;
}

.trans_loading_box .cube div {
    background-color: rgba(255, 255, 255, 0.25);
    height: 100%;
    position: absolute;
    width: 100%;
    border: 2px solid white;
}

.trans_loading_box .cube div:nth-of-type(1) {
    -webkit-transform: translateZ(-20px) rotateY(180deg);
    transform: translateZ(-20px) rotateY(180deg);
}

.trans_loading_box .cube div:nth-of-type(2) {
    -webkit-transform: rotateY(-270deg) translateX(50%);
    transform: rotateY(-270deg) translateX(50%);
    -webkit-transform-origin: top right;
    transform-origin: top right;
}

.trans_loading_box .cube div:nth-of-type(3) {
    -webkit-transform: rotateY(270deg) translateX(-50%);
    transform: rotateY(270deg) translateX(-50%);
    -webkit-transform-origin: center left;
    transform-origin: center left;
}

.trans_loading_box .cube div:nth-of-type(4) {
    -webkit-transform: rotateX(90deg) translateY(-50%);
    transform: rotateX(90deg) translateY(-50%);
    -webkit-transform-origin: top center;
    transform-origin: top center;
}

.trans_loading_box .cube div:nth-of-type(5) {
    -webkit-transform: rotateX(-90deg) translateY(50%);
    transform: rotateX(-90deg) translateY(50%);
    -webkit-transform-origin: bottom center;
    transform-origin: bottom center;
}

.trans_loading_box .cube div:nth-of-type(6) {
    -webkit-transform: translateZ(20px);
    transform: translateZ(20px);
}

.trans_tooltip {
    position: absolute;
    background-color: black;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 12px;
    white-space: normal; /* ✅ 줄바꿈 허용 */
    word-break: break-word; /* ✅ 긴 단어도 자동 줄바꿈 */
    max-width: 300px; /* ✅ 툴팁 최대 너비 설정 */
    overflow-wrap: break-word;
    z-index: 1000;
}

@-webkit-keyframes loading_cube {
    0% {
        -webkit-transform: rotate(45deg) rotateX(-25deg) rotateY(25deg);
        transform: rotate(45deg) rotateX(-25deg) rotateY(25deg);
    }
    50% {
        -webkit-transform: rotate(45deg) rotateX(-385deg) rotateY(25deg);
        transform: rotate(45deg) rotateX(-385deg) rotateY(25deg);
    }
    100% {
        -webkit-transform: rotate(45deg) rotateX(-385deg) rotateY(385deg);
        transform: rotate(45deg) rotateX(-385deg) rotateY(385deg);
    }
}

@keyframes loading_cube {
    0% {
        -webkit-transform: rotate(45deg) rotateX(-25deg) rotateY(25deg);
        transform: rotate(45deg) rotateX(-25deg) rotateY(25deg);
    }
    50% {
        -webkit-transform: rotate(45deg) rotateX(-385deg) rotateY(25deg);
        transform: rotate(45deg) rotateX(-385deg) rotateY(25deg);
    }
    100% {
        -webkit-transform: rotate(45deg) rotateX(-385deg) rotateY(385deg);
        transform: rotate(45deg) rotateX(-385deg) rotateY(385deg);
    }
}


/* toast 툴바 커스텀 */
.toast-editor {
    width: 100%;
}

.toastui-editor-toolbar {
    height: 39px !important;
}

.toastui-editor-defaultUI-toolbar {
    height: 39px !important;
    padding: 0 5px !important;
}

.toastui-editor-toolbar-icons {
    background-size: 370px 116px !important;
}

.toastui-editor-defaultUI .ProseMirror {
    padding: 12px 16px !important;
}

.toastui-editor-defaultUI-toolbar button {
    width: 27px !important;
    height: 27px !important;
    margin: 6px 5px !important;
}

.toastui-editor-toolbar-divider {
    height: 14px !important;
    margin: 13px 12px !important;
}

.toastui-editor-toolbar-icons:not(:disabled).active {
    background-position-y: -17.6px !important;
}

.toastui-editor-toolbar-icons.bold {
    background-position-x: -17px !important;
}

.toastui-editor-toolbar-icons.italic {
    background-position-x: -38px !important;
}

.toastui-editor-toolbar-icons.strike {
    background-position-x: -59px !important;
}

.toastui-editor-toolbar-icons.hrline {
    background-position-x: -79px !important;
}

.toastui-editor-toolbar-icons.quote {
    background-position-x: -100px !important;
}

.toastui-editor-toolbar-icons.bullet-list {
    background-position-x: -121px !important;
}

.toastui-editor-toolbar-icons.ordered-list {
    background-position-x: -141px !important;
}

.toastui-editor-toolbar-icons.task-list {
    background-position-x: -162px !important;
}

.toastui-editor-toolbar-icons.indent {
    background-position-x: -182px !important;
}

.toastui-editor-toolbar-icons.outdent {
    background-position-x: -203px !important;
}

.toastui-editor-toolbar-icons.table {
    background-position-x: -224px !important;
}

.toastui-editor-toolbar-icons.image {
    background-position-x: -244px !important;
}

.toastui-editor-toolbar-icons.link {
    background-position-x: -264.3px !important;
}

.toastui-editor-toolbar-icons.code {
    background-position-x: -285.5px !important;
}

.toastui-editor-toolbar-icons.codeblock {
    background-position-x: -307.7px !important;
}

.toastui-editor-toolbar-icons.more {
    background-position-x: -326.2px !important;
}

.toastui-editor-defaultUI .toastui-editor-md-tab-container {
    height: 39px !important;
}

.toastui-editor-md-tab-container .tab-item {
    margin-top: 6px !important;
}


/* 번역 리스트 스타일 제거 */
#trans ul {
    padding-left: 0;
    list-style: none;
}

.CodeMirror {
    height: 650px !important;
    width: 100%;
    border: 1px solid #ccc;
}

.review-btn {
    display: inline-block;
    min-width: 72px;
    padding: 4px 8px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    background: transparent;
    border: 1px solid;
    border-radius: 4px;
    cursor: pointer;
}

.review-btn.need-review {
    color: #d93025;
    border-color: #d93025;
}

.review-btn.reviewed {
    color: #188038;
    border-color: #188038;
}

.review-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}