html, body {
    font-family: Pretendard, sans-serif, Arial;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.container-fluid {
    padding: 0;
    height: 100%;
    width: 100%;
    margin: 0;

}

* {
    margin: 0;
    padding: 0;
}

.wrap {
    width: 1280%;
    margin: 0 auto;
    position: relative;
    /*padding-bottom: 15px;*/
    box-sizing: border-box;
    min-height: 100%;
}

/* header */
.header {
    width: 100%;
    height: 60px;
    border-bottom: 1px solid rgba(59, 67, 74, 0.3);
}
.mg-hd{
    margin-top: 60px;
    margin-right: 10px;
}
.header > nav {
    width: 80%;
    height: 100%;
    margin: auto;
    padding: 0;
}

.header > nav > .container-fluid {
    padding: 0;
}

.home {
    color: #5098de;
    font-size: 35px;
    font-weight: 700;
}

.navbar-nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.mg-rt-25 {
    margin-right: 25px;
}

.mg-lf-at {
    margin-left: auto;
}

.pd-0 {
    padding: 0;
}
.mg-tp{
    margin-top:60px;
}
.mg-rt{
    margin-right: 10px;
}
.head-btn {
    width: 80px;
    height: 35px;
    border-radius: 5px;
    border: 1px solid #939BAB;
    display: flex;
    padding: 4px 5px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background-color: #fff;
    font-size: 12px;
}

.head-btn:active {
    background-color: lightsteelblue;
}

.head-btn:hover {
    background-color: lightsteelblue;
}

.download-img {
    width: 15px;
    height: 15px;
    opacity: 0.3;
}

.main_content {
    width: 100%;
    box-sizing: border-box;
    padding: 0 10%;
    display: flex;
    flex-direction: row;
}

.mg-bt-5 {
    margin-bottom: 5%;
}

.bg-black {
    background-color: #000;
    padding: 0;
}

.image-center {
    margin: 0 auto;
    width: 150px;
    height: 150px;
}

.sidebar {
    width: 15%;
    height: 40%;
    margin-top: 50px;
    padding-right: 2%;

}

.calc-height {
    height: calc(100% - 180px);
}

.menu {
    width: 95%;
    height: 100%;
    border: 1px solid navy;
    border-radius: 0.5rem;
    text-align: center;
}

.menu > li {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid lightgray;
}

.menu > li:first-of-type {
    border-bottom: 1px solid black;
    height: 15%;
    font-size: x-large;
    background-color: #bbccee;
    color: navy;
}


#before-deid {
    width: 85%;
}

.upload-pdf-bg {
    width: 100%;
    height: 300px;
    flex-shrink: 0;
    border-radius: 5px;
    border: 2px dashed #5eaaeb;
    background: rgba(198, 223, 247, 0.3);
    margin-top: 15px;
    vertical-align: middle;
    color: cornflowerblue;
    text-align: center;
    font-size: 15px;
    padding-top: 20px;
}

.upload-pdf-bg:hover {
    cursor: pointer;
}

.buttonDiv {
    display: flex;
    justify-content: space-between;
}

.card-body {
    padding: 2% 3%;
}

.reset {
    width: 50px;
    height: 50px;
    float: left;
    border-radius: 0.5rem;
    background-color: white;
    border: 1px solid darkblue;
    margin: 15px 0;
}

.reset:active {
    background-color: #bbccee;
}

.reset > img {
    width: 30px;
    height: 30px;
}

#deid {
    width: 30%;
    height: 50px;
    float: right;
    border-radius: 0.5rem;
    background-color: #bbccee;
    color: navy;
    border: 1px solid darkblue;
    font-size: large;
    margin: 15px 0;
}

.nav-link {
    font-size: larger;
    color: black;
}

.askDiv {
    width: 70%;
    height: 85%;
    margin: 50px auto;
    border: 1px solid navy;
}

.card-header {
    background-color: #bfd1ec;
    color: navy;
    font-size: larger;
    height: 7%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid navy;
}

.select {
    display: flex;

    height: 10%;
}

#mailAddr, #askCategory {
    height: 30px;
    width: 400px;
    border-radius: 5px;
    border: 1px solid navy;
    padding-left: 5px;
}

.message {
    height: 78%
}

#askMessage {
    width: 100%;
    height: 350px;
    resize: none;
    border-radius: 5px;
    padding-left: 5px;
}

#askTitle {
    width: 465px;
    height: 30px;
    padding-left: 5px;
    border-radius: 5px;
    border: 1px solid navy;
}

.send {
    height: 10%;
    flex-direction: row-reverse;
    padding-right: 1%;

}

.send > button {
    background-color: #9ed4ff;
    width: 25%;
    border-radius: 0.5rem;
}

.send > button:active {
    background-color: #2276f5;
}


.description {
    display: flex;
    flex-direction: column;

}

.description > span {
    /*margin: 10px 0;*/
    font-size: 15px;
    border: 1px solid black;
    padding: 30px 0 30px 15px;
    border-radius: 0.5rem;
}

/*
.modal-body {
    background-color: aliceblue;
    padding-top: 0;

}*/


.origin-sm-img {
    width: 85px;
    height: 100%;
    border: 1px solid white;
    margin: 0 10px;
    display: flex;
    cursor: pointer;
}

.count-div {
    display: flex;
    flex-direction: row;
    padding: 5px 0 0 10px;
    justify-content: space-evenly;
}

.count-span-div {
    width: 40%;
    height: 50px;
    display: flex;
    flex-direction: column;
    color: #fff;
}

#countDetail {
    padding-left: 10px;
}

.canvas-control {
    background-color: darkgray;
    height: 40px;
    padding-top: 5px;
    margin-bottom: 15px;
    border-radius: 0 0 10px 10px;
}

.canvas-control > button {
    width: 30px;
    height: 30px;
    border-radius: 1rem;
}

.modal-canvas {
    padding: 15px;
}

#prev {
    margin-left: 10px;
}

#prev:before {
    content: "\276E";
}

#next {
    margin-right: 25px;
}

#next:before {
    content: "\276F";
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading {
    opacity: 1;
    pointer-events: auto;
}

#canvas_origin {
    border: 1px solid black;
    display: flex;
    padding: 0;
}

.focus-img {
    border: 2px solid black;
}
.canvasContainer {
    position: relative;

    height: 100%;
}

/* footer */
.control-div {
    width: 65%;
    display: flex;
    align-items: center;
    font-size: revert;
    padding: 5px 0 5px 10%;
}

.img-compare {
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
    min-width: 50%;
    width: 100%;
}

.comparable {
    width: 380px;
    margin: 5px;
    height: 98%;

}
.showStat{
    background-color: cornflowerblue;
    width: 15px;
    margin: auto 0;
    height: 15%;
    border-radius: 10px 0 0 10px;
    color: white;
}

#currentPage {
    text-align: right;
}

.footer {
    width: 100%;
    height: 120px;
    margin: auto;
    text-align: center;
    padding: 10px 0;
    background-color: rgba(198, 223, 247, 0.5);
    position: relative;
    bottom: 0;
}

.img-sm-control {
    background-color: darkgray;
    height: 50px;
    margin: 0 auto;
    width: 80%;
    border-radius: 0 0 10px 10px;
}

.img-inline {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    justify-content: center;
    padding-bottom:5%;
}

.thumbnail {
    width: 70%;
    height: 100%;
}

.page-span {
    color: white;
    margin: auto 1%;
}

.thumbnail-div {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 0;
    margin-top: 10%;
    justify-content: center;
}

.selected-thumbnail {
    border: 5px solid cornflowerblue;
}

.img-control {
    background-color: darkgray;
    height: 50px;
    border-radius: 0 0 10px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 4%;
    justify-content: center;
}

.img-control-reverse {
    background-color: darkgray;
    height: 50px;
    border-radius: 10px 10px 0 0;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.img-control-reverse > button {
    height: 30px;
    margin: 0 auto;
}


.img-control button {
    width: 30px;
    height: 30px;
    border-radius: 1rem;
    /* margin: 0 auto;*/
}

#zoom-div {
    margin-right: 0%;
    width: 15%;
}

#zoomin {
    margin-right: 5%;

    display: inline-block;
}

#zoomout {
    margin-left: 0;
    display: inline-block;
}

.img-control button img {
    width: 20px;
    height: 20px;
}

#btn-div {
    margin-left: 15%;
    margin-right: 3%;
}

.page-info {
    width: 20%;
    flex-direction: row;
    text-align:center;
}

#currentPage {
    width: 40px;
    height: 30px;

}


.currentPage {
    width: 45%;
    height: 70%;
    text-align: right;
    color: black;
}

#deidList {
    border-radius: 5px;
    height: 30px;

}

#addMasking {
    border-radius: 5px;
    height: 30px;
    width: 100px;
}

.cursor {
    cursor: crosshair;

}

.cr-prev {
    padding: 20px;
    justify-content: flex-start;
    width: 5%;
}

.cr-next {
    padding: 20px;
    justify-content: flex-end;
    width: 5%;
}

#img-carousel {
    margin: 0 30px;
    height: 90%;
    padding: 1% 5%;
    display: flex;
    justify-content: center;
    overflow-y: auto;
}

.cr-inner {
    height: 100%;
    text-align: center;
    overflow-y: auto;
    width: 90%;
}

.img-sm-list {
    height: 100%;
    width: 11%;
    background-color: rgba(0, 0, 0, 0.6);
    max-height: 1000px;
    overflow: auto;
   /* display: flex;*/
    flex-direction: column;
    min-width: 11%;
    max-width: 40%;

}


#resultDiv {
    height: 100%;
    display: flex;
    flex-direction: row;
    width: 100%;
}

#prevPage, #nextPage {
    width: 30px;
    border-radius: 1rem;
}

#deidList, #savePDF {
    padding: 0 3%;
}

.img-control-reverse > button:active {
    background-color: darkgray;
}

.detail-table {
    text-align: center;
}

.detail-info {
    /*
    padding: 2% 5%;
    */

}

.detail-view {
    margin-left: 2%;
    margin-bottom: 2%;
    height: 30px;
    width: 100px;
    border: 1px solid black;
    border-radius: 5px;
    background-color: lightskyblue;
}

[id$=idx] {
    font-size: inherit;
}

#detected-div {
    text-align: left;
    background: #dfe9f2 5%;
    margin: 0 auto 3% auto;
    padding: 3%;
    display: flex;
    width: 95%;
    border-radius: 5px;
}

.view-btn {
    display: flex;
    justify-content: flex-end;
    padding-right: 7%;
    align-items: flex-end;
}

#pdfCanvas {
    /* width:50%;*/
}


.detail-info {
    /*max-height: 300px; /* 원하는 높이로 설정 */
    overflow-y: auto;
}

.detail-table {
    width: 100%; /* 부모 요소에 꽉 차게 설정 */
}

.detail-table tbody {

    max-height: calc(100% - 40px); /* tbody의 최대 높이 설정 */
    overflow-y: auto; /* 수직 스크롤 활성화 */
}
.table thead tr th:first-of-type {
    max-width: 40%;
    width: 40%; /* 이 줄은 테이블 레이아웃이 작동하도록 보장 */
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
    overflow: hidden; /* 텍스트 오버플로우 처리 */
    text-overflow: ellipsis; /* 텍스트가 넘칠 경우 말줄임 표시(...) */
    text-align:left;
}

/* tbody의 첫 번째 td의 max-width 설정 */
.table tbody tr td:first-of-type {
    max-width: 40%;
    width: 40%; /* 이 줄은 테이블 레이아웃이 작동하도록 보장 */
    white-space: normal; /* 텍스트 줄바꿈 방지 */
    overflow: auto; /* 텍스트 오버플로우 처리 */
    text-overflow: ellipsis; /* 텍스트가 넘칠 경우 말줄임 표시(...) */
    text-align:left;
}



.va-md{
    vertical-align:middle;
}
.remove-btn{
    border: 1px solid black;
    background-color: white;
    width: 40px;
    height: 25px;
    border-radius: 5px;
}
.remove-btn:active{
    background-color:cornflowerblue;
}


::-webkit-scrollbar {
    width: 10px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2); /* 스크롤바의 색상 */
    border-radius: 4px; /* 스크롤바의 모서리 반경 */
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4); /* 스크롤바의 호버 상태 색상 */
}

::-webkit-scrollbar-track {
    background-color: transparent; /* 스크롤바 트랙의 배경색 */
}

::-webkit-scrollbar-track:hover {
    background-color: rgba(0, 0, 0, 0.1); /* 스크롤바 트랙의 호버 상태 배경색 */
}

