/* @import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.6/dist/web/variable/pretendardvariable-dynamic-subset.css"); */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-gov.min.css");

/* https://www.pantone.com/articles/color-palettes/joel-maisel-color-palette */
/* var 정의 */
:root {
    --side-menu-width: 0px;
    --toolbar-height : 50px;
    --margin-5 : 5px;
    --margin-10 : 10px;
    --margin-20 : 20px;
    --margin-30 : 30px;
    --margin-40 : 40px;
    --margin-50 : 50px;
    --margin-60 : 60px;
    --margin-70 : 70px;
    --margin-80 : 80px;
    --margin-90 : 90px;
    --margin-100 : 100px;
    --primary-color: #2A2B2D;
    --secondary-color: #282D3C;
    --warning-color: #6C2831;
    --success-color: #00637C;
    --info-color: #3A5589;
    --danger-color: #6C2831;
    --verify-color: #D6C69A;
}


html, body {
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

html, body, div, p, table, tr, td, th, input, select, button, textarea, ul, li, span, canvas {
    font-family: 'Pretendard GOV', sans-serif;
}

.header {
    /* 세로 가운데 정렬 */
    display: flex;
    align-items: center;
    /* justify-content: center; */

    height: 30px;
    padding-left:15px;
    padding-top:10px;
    padding-bottom:10px;

}

.buttons {
    height: 30px;
    padding-left:15px;
}

.container {
    width: calc(100% - 0px);
    height: calc(100% - 50px);
    padding: 0;
    /* margin-top:10px; */
    /* margin: 10px; */
    border: 1px solid #ccc;
    

}

.spreadsheets {
    width: 100%;
    height: 100%;
}

.description_container {
    width: 100%;
    height: 120px;

}

.description {
    width: 100%;
    height: 100%;
    padding: 10px;
    margin: 0;
    overflow: hidden;
    font-size: 14px;
}

#ss {
    font-family: 'Pretendard Variable', sans-serif !important;
}

button {
    font-family: 'Pretendard Variable', sans-serif !important;
    font-size: 15px;
    border: 0px;
    border-radius: 5px;
    background-color: #000;
    color: #fff;
    /* padding: 10px; */
    height: 30px;
    padding-left:15px;
    padding-right:15px;
}


.save_right {
    /* 오른쪽 상단 끝에 고정 */
    position: absolute;
    right: 10px;
    top: 10px;
    
}

ul {
    margin-left: 0px;
    padding-left: 20px;
}

li {
    margin-bottom: 5px;
    margin-left: 0px;
}
:root {
    --side-menu-width: 0px;
    --toolbar-height : 50px;
}
.toolbar {
    width: 100%;
    height: var(--toolbar-height);
    /* background-color: #ffffff; */
    /* 가로로 inline으로 표시 */
    display: flex;
    /* margin-top : 10px;
    margin-left : 10px; */
    
}
div.toolbar-item {
    height: var(--toolbar-height);
    padding-top : 10px;
    padding-left : 5px;
    padding-bottom : 10px;
}


#sheet-name {
    width: 300px;
    height: 30px;
    border-radius: 5px;
    padding-left: 10px;
}

.loading {
    /* 배경 흐리게 */
    background-color: rgba(0, 0, 0, 0.5);
    /* 화면 전체를 덮는다 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;        
    z-index: 9999;
    /* blur 처리 */
    backdrop-filter: blur(5px);
}
.loading-text {
    /* 가운데 정렬 */
    position: absolute;
    top: 50%;
    left: 50%;
    /* 텍스트 정렬 */
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;

}



.mr-5 {
    margin-right : var(--margin-5);
}
.mr-10 {
    margin-right : var(--margin-10);
}
.mr-20 {
    margin-right : var(--margin-20);
}
.mr-30 {
    margin-right : var(--margin-30);
}
.mr-40 {
    margin-right : var(--margin-40);
}
.mr-50 {
    margin-right : var(--margin-50);
}
.mr-60 {
    margin-right : var(--margin-60);
}
.mr-70 {
    margin-right : var(--margin-70);
}
.mr-80 {
    margin-right : var(--margin-80);
}
.mr-90 {
    margin-right : var(--margin-90);
}
.mr-100 {
    margin-right : var(--margin-100);
}
.ml-5 {
    margin-left: var(--margin-5);
}
.ml-10 {
    margin-left: var(--margin-10);
}
.ml-20 {
    margin-left: var(--margin-20);
}
.ml-30 {
    margin-left: var(--margin-30);
}
.ml-40 {
    margin-left: var(--margin-40);
}
.ml-50 {
    margin-left: var(--margin-50);
}
.ml-60 {
    margin-left: var(--margin-60);
}
.ml-70 {
    margin-left: var(--margin-70);
}
.ml-80 {
    margin-left: var(--margin-80);
}
.ml-90 {
    margin-left: var(--margin-90);
}
.ml-100 {
    margin-left: var(--margin-100);
}

.color-primary {
    background-color: var(--primary-color) !important;
    color: #fff !important;
}
.color-secondary {
    background-color: var(--secondary-color);
    color: #fff !important;
}
.color-warning {
    background-color: var(--warning-color);
    color: #fff !important;
}
.color-success {
    background-color: var(--success-color);
    color: #fff !important;
}
.color-info {
    background-color: var(--info-color);
    color: #fff !important;
}
.color-danger {
    background-color: var(--danger-color);
    color: #fff !important;
}
.color-verify {
    background-color: var(--verify-color);
    color: #000 !important;
}

select#sheet-name {
    font-family: 'Pretendard Variable', sans-serif !important;
    font-size: 15px;
    border-radius: 5px;
    /* 테두리 */
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000;
    /* padding: 10px; */
    height: 30px;
    padding-left:15px;
    padding-right:15px;
}

button:hover {
    cursor: pointer;
}

/* 시트 목록 스타일 */
#sheet_names_side {
    font-size: 14px;
    padding: 0;
    height: 100%;
    overflow-y: auto; /* 스크롤 가능하도록 설정 */
    overflow-x: hidden; /* 가로 스크롤 방지 */
    scrollbar-width: thin; /* Firefox에서 스크롤바 얇게 */
    scrollbar-color: #bbb #f5f5f5; /* Firefox에서 스크롤바 색상 */
}

/* Chrome, Safari, Edge에서 스크롤바 스타일링 */
#sheet_names_side::-webkit-scrollbar {
    width: 6px;
}

#sheet_names_side::-webkit-scrollbar-track {
    background: #f5f5f5;
}

#sheet_names_side::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 3px;
}

#sheet_names_side::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

#sheet_names_side ul {
    padding: 0;
    margin: 0;
}

#sheet_names_side li {
    list-style: none;
    margin: 0;
    padding: 0;
}

#sheet_names_side a {
    display: block;
    padding: 8px 15px;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid #eaeaea;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: calc(100% - 30px); /* 패딩값 고려해 너비 조정 */
}

/* 호버 효과를 위한 가상 요소 생성 */
#sheet_names_side a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: #232B99;
    transform: translateX(-3px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.2s ease;
    z-index: 2;
}

/* 배경 효과를 위한 가상 요소 */
#sheet_names_side a:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: #f5f5f5;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

#sheet_names_side a:hover {
    color: #232B99;
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

#sheet_names_side a:hover:before {
    transform: translateX(0);
    opacity: 1;
}

#sheet_names_side a:hover:after {
    transform: translateX(0);
}

#sheet_names_side a.active {
    background-color: #f0f0f0;
    color: #232B99;
    font-weight: 600;
    transform: translateX(5px);
}

#sheet_names_side a.active:before {
    transform: translateX(0);
    opacity: 1;
}

.sheet-title {
    padding: 10px 15px;
    background-color: #f0f0f0;
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    white-space: nowrap;
    overflow: hidden;
}

/* Validation Error Modal Styles */
.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    border: 1px solid #888;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 90%;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
    text-decoration: none;
}

.modal-body {
    padding: 20px;
}

.modal-body p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

.validation-error-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    table-layout: fixed;
}

.validation-error-table th,
.validation-error-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    word-break: keep-all;
}

.validation-error-table th:nth-child(1),
.validation-error-table td:nth-child(1) {
    width: 25%;
}

.validation-error-table th:nth-child(2),
.validation-error-table td:nth-child(2) {
    width: 15%;
}

.validation-error-table th:nth-child(3),
.validation-error-table td:nth-child(3),
.validation-error-table th:nth-child(4),
.validation-error-table td:nth-child(4),
.validation-error-table th:nth-child(5),
.validation-error-table td:nth-child(5) {
    width: 20%;
}

.validation-error-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.validation-error-table td {
    color: #666;
}

.validation-error-table .text-right {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.modal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.modal-btn-primary {
    background-color: #2A2B2D;
    color: white;
}

.modal-btn-primary:hover {
    background-color: #1a1b1d;
}