:root {
    --color-light-gray: #f7f7f7;
    --color-middle-gray: #d9d9d9;
    --color-thick-gray: #a6a6a6;
    --color-silver: #d9d9d9;
    --color-pale-blue: #eff7fe;
    --color-light-sky-blue: #ccecff;
    --color-sky-blue: #85c6f7;
    --color-cornflower-blue: #88adfe;
    --color-azure-blue: #317bff;
    --color-cobalt-blue: #0b4da2;
    --color-navy-blue: #002060;
    --color-light-coral: #e26262;
    --color-light-orange: #f8cbad;
    --color-note: #c31d1e;
}

body {
    background-color: #edeef3;
    font-family: 'Noto Sans KR', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: clamp(13px, 0.7vw, 16px);
}

@media screen and (max-width: 1024px) {
    body {
        min-width: 1920px;
    }

    .container {
        height: unset !important;
    }
}

h1 {
    margin: 10px 0 10px 0;
    color: var(--color-azure-blue);
    font-size: 1.5em;
    font-weight: bold;
}

h2 {
    color: var(--color-cobalt-blue);
    font-weight: bold;
    font-size: 1.12em;
    margin-bottom: 8px;
}

button:hover {
    cursor: pointer;
}

textarea{
    font-family: 'Noto Sans KR', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

.container {
    display: flex;
    height: 87vh;
    margin: 1.25em;
}

.content {
    background-color: white;
    width: 100%;
    border-radius: 20px;
    margin-left: 20px;
    padding: 1.85em;
    overflow-x: auto;
    position: relative;
}

::-webkit-scrollbar {
    height: 50px;
    width: 1.35em;
}

::-webkit-scrollbar-thumb {
    background-color: #d9d9d9;
    border: 6px solid transparent;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    background-clip: padding-box;
}

.blue {
    color: #0b4da2;
}

.red {
    color: #bb271a !important;
}

.light-gray {
    background-color: var(--color-light-gray) !important;
}

.middle-gray {
    background-color: var(--color-middle-gray) !important;
}

.silver {
    background-color: var(--color-silver) !important;
}

.thick-gray {
    background-color: var(--color-thick-gray) !important;
}

.pale-blue {
    background-color: var(--color-pale-blue) !important;
}

.light-sky-blue {
    background-color: var(--color-light-sky-blue) !important;
}

.sky-blue {
    background-color: var(--color-sky-blue) !important;
}

.cornflower-blue {
    background-color: var(--color-cornflower-blue) !important;
}

.azure-blue {
    background-color: var(--color-azure-blue) !important;
}

.cobalt-blue {
    background-color: var(--color-cobalt-blue) !important;
}

.navy-blue {
    background-color: var(--color-navy-blue) !important;
}

.light-coral {
    background-color: var(--color-light-coral) !important;
}
.bg-note {
    background-color: var(--color-note) !important;
}

.cl-note {
    color: var(--color-note) !important;
    font-weight: bold;
}

.ws-pl{
    white-space: pre-line;
}

.hide {
    display: none !important;
}

.blue-circle,
.red-circle {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #0b4da2;
    border-radius: 50%;
    margin-left: 10px;
}

.red-circle {
    background-color: #bb271a;
}

/* 디테일 페이지 버튼 스타일 */
.detail-btn,
.detail-btn-small {
    border-radius: 10px;
    text-align: center;
    border: 0px solid;
    color: white;
    font-size: 0.9em !important;
    font-weight: bold;
    background-color: var(--color-azure-blue);
    padding: 0.6em 0.8em;
}

/* ----- 테이블 css ----- */
table {
    font-size: 0.9em;
}

thead {
    position: sticky;
    top: 0;
}

.common-table,
.multibody-table {
    width: 100%;
    margin-top: 3.5vh;
    text-align: center;
}

.common-table tbody tr:nth-child(even) {
    background-color: #f7f7f7;
}

.multibody-table tbody:nth-child(even) {
    background-color: #f7f7f7;
}

.common-table .no-result,
.multibody-table .no-result {
    background-color: #f7f7f7;
    line-height: 40px;
}

.common-table thead,
.multibody-table thead {
    background-color: #317bff;
    color: white;
    border-bottom: 2px solid white;
}

.multibody-table thead tr {
    border-bottom: 2px solid white;
}

.common-table thead th,
.multibody-table thead th {
    border-left: 2px solid white;
    border-right: 2px solid white;
    font-weight: 600;
    vertical-align: middle;
    padding: 0.6em;
}

.common-table tbody tr {
    height: 4.5vh;
}

.multibody-table tbody tr {
    height: 3.5vh;
}

.common-table tbody tr:hover {
    cursor: pointer;
    background-color: var(--color-light-sky-blue);
    border-bottom: 2px solid white;
}

.multibody-table tbody:hover {
    cursor: pointer;
    background-color: var(--color-light-sky-blue);
}

.common-table tbody td,
.multibody-table tbody td {
    border-left: 2px solid white;
    border-right: 2px solid white;
    vertical-align: middle;
}

.multibody-table tbody td {
    border-bottom: 2px solid white;
}

.th-order:hover {
    cursor: pointer;
}

.th-order::after {
    font-family: 'Font Awesome 6 Free'; /* Font Awesome 폰트 패밀리 지정 */
    font-weight: 900; /* 필수, Font Awesome에서 사용되는 폰트 굵기 */
    content: '\f160';
    margin-left: 10px; /* 아이콘과 텍스트 사이의 여백 */
    vertical-align: baseline;
    color: white;
}

.th-order.asc::after {
    content: '\f161';
}

.order-select::after {
    color: cyan;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.underline {
    text-decoration: underline;
}

.loader-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    z-index: 99999;
}

.loader {
    width: 96px;
    height: 96px;
    border: 5px solid #fff;
    border-bottom-color: #0b4da2;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin: auto;
}

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

.popup-button-group {
    display: flex;
    margin-top: 40px;
    justify-content: center;
    gap: 3px;
}

.popup-button-group.single {
    margin-top: 20px;
}

.green-point-btn {
    padding: 8px;
    border: none;
    outline: none;
    color: #fff;
    opacity: 0.6;
    font-size: 13px;
    background-color: darkgreen;
    border-radius: 20px;
    width: 135px;
}

.red-point-btn {
    padding: 8px;
    border: none;
    outline: none;
    color: #fff;
    opacity: 0.6;
    font-size: 13px;
    background-color: darkred;
    border-radius: 20px;
    margin-left: 5px;
    width: 135px;
}

.blue-point-btn {
    padding: 8px;
    border: none;
    outline: none;
    color: #fff;
    opacity: 0.6;
    font-size: 13px;
    background-color: darkblue;
    border-radius: 20px;
    margin-left: 5px;
    width: 135px;
}

.green-point-btn:hover,
.red-point-btn:hove,
.blue-point-btn:hover {
    opacity: 1;
}

.flex-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
}

/* 아이콘 hover로 설명 보이기 */
.info-show-icon {
    position: relative;
    margin-left: 6px;
    color: var(--color-navy-blue);
}

.info-show-icon .info-hidden-text {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 15px;
    width: max-content;
    text-align: left;
    line-height: 1rem;
    padding: 20px;
    color: var(--color-navy-blue);
    background-color: white;
    border: 1px solid var(--color-silver);
    border-radius: 10px;
    white-space: pre-line;
}

.info-show-icon:hover .info-hidden-text {
    visibility: visible;
}

/* input type number 스피너 제거 */
input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

input.number-spinner::-webkit-inner-spin-button,
input.number-spinner::-webkit-outer-spin-button {
    -webkit-appearance: auto;
    -moz-appearance: auto;
    appearance: auto;
    margin: 0;
}

/* ----- Search area style */
.search-area {
    display: flex;
    justify-content: flex-end;
    gap: 3px;
    margin-bottom: 5px;
    font-size: 0.9em;
    vertical-align: middle;
    align-items: center;
}

.search-area.small {
    width: 40.3vw;
    margin-top: 50px;
}

.search-area select {
    width: 150px;
    height: 27px;
    border-radius: 10px;
    border: 1px solid gray;
    padding: 5px;
}

.search-area input {
    width: 144px;
    height: 1.3vh;
    border-radius: 10px;
    border: 1px solid gray;
    padding: 5px;
}

.search-area .radio-area {
    margin-right: auto;
}

.search-area .radio-area input {
    width: 13px;
    height: 13px;
}

.search-btn,
.register-btn,
.edit-btn {
    text-align: right;
    margin-bottom: 15px;
}

.search-btn button,
.register-btn button,
.edit-btn button {
    border-radius: 20px;
    border: 1px solid transparent;
    background-color: var(--color-azure-blue);
    color: white;
    font-weight: bold;
    font-size: 1em;
    width: 7.1vw;
    padding: 0.7em;
}

.search-btn #excelDownload {
    background-color: var(--color-sky-blue);
    display: none;
}

.search-btn button:hover,
.register-btn button:hover,
.edit-btn button:hover {
    background-color: white !important;
    color: var(--color-azure-blue);
    border: 1px solid var(--color-azure-blue);
}

.search-btn #excelDownload:hover {
    background-color: white;
    color: var(--color-sky-blue);
    border: 1px solid var(--color-sky-blue);
}

.btn-area {
    display: flex;
    gap: 7px;
    margin-bottom: 0.3em;
}

.table.btn-area {
    justify-content: center;
    margin: 0;
}

.info-box {
    font-size: 0.9em;
    padding-top: 0.5em;
}

.info-box p {
    margin-bottom: 8px;
    color: grey;
}

.info-box strong {
    font-weight: bold;
}

.not-allowed {
    cursor: not-allowed !important;
}

.btn-container {
    margin: 3.2vh 0;
}

.btn-container .detail-btn {
    padding: 0.7em 1.5em !important;
}

label {
    vertical-align: text-top;
}

input[type='radio'] {
    width: 17px;
    height: 17px;
}

.note-tag {
    font-size: 0.84em;
    font-weight: bold;
    color: var(--color-note);
    margin-top: 12px;
}

.border-tl{
    border-top: 1px solid #d9d9d9;
    border-left: 1px solid #d9d9d9;
}

.name-icon{
    width: 1.9em;
    aspect-ratio: 2788 / 1637;
    margin-right: 4px;
}

.req-star {
    color: var(--color-note);
}

/* 버튼 속 아이콘 */
i {
    position: relative;
    font-size: 0.9em;
}

/* PAGINATION CSS */
.paginationjs .paginationjs-pages li.active > a {
    background: #ffffff !important;
    color: #ff0000 !important;
}

.paginationjs .paginationjs-pages li {
    border: 0px !important;
    margin: 0 4px 0 4px;
}

.paginationjs .paginationjs-pages li:last-child {
    border-right: 0px !important;
}
