
/* ====== 전체 화면 설정 ====== */
.main-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
}

.header {
    height: 6rem;
    background-color: #f3f4f6;
    color: white;
    padding: 1rem;
    text-align: center;
}
/*
.body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f8f9fa;
}


html, body {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: auto;
    background-color: #141B22;
}*/
.html-viewbox-wrapper {
    position:fixed;
    width:100vw;
    height:100vh;
    overflow:hidden;
}
.responsive-wrapper {
    width: 100%;
    height: 100%;
    /* transform-origin: top left; */
    /* position: absolute; */
    min-width: 0;
    min-height: 0;
    transform: none !important;
}
/* ====== 로그인 컨테이너 (전체 화면 적용) ====== */
.login-container {
    width: 100%;
    height: 92%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ====== 로그인 박스 (WPF 스타일 적용) ====== */
.login-box {
    width: 57rem;
    background-color: #28313A;
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-top: -rem;
}

/* ====== 타이틀 (WPF와 동일한 스타일) ====== */
.title {
    font-size: 7rem;
    color: #EAEBED;
    font-weight: bold;
    text-align: center;
}

/* ====== 입력 필드 그룹 ====== */
.input-group {
    display: flex;
    flex-direction: column;
    margin: 4rem 0;
    text-align: left;
}

    .input-group label {
        font-size: 1.5rem;
        color: #EAEBED;
        margin-bottom: 1rem;
    }

/* ====== 입력 필드 스타일 ====== */
.input-text {
    font-size: 1.8rem;
    padding: 1rem;
    width: 100%;
    background-color: #323E4A;
    border: none;
    color: #EAEBED;
    border-radius: .5rem;
}

.hidden {
    display: none;
}

/* ====== 로그인 버튼 ====== */
.login-button {
    width: 100%;
    padding: 1.5rem;
    background-color: #4C6FED;
    color: #EAEBED;
    font-size: 2rem;
    border: none;
    border-radius: .5rem;
    cursor: pointer;
    margin-top: 2rem;

}

    .login-button:hover {
        background-color: #505050;
    }

/* ====== 하단 로고 ====== */
.footer {
    position: absolute;
    bottom: 3rem; /* 하단과의 거리 조정 */
    right: 5rem; /* 우측과의 거리 조정 */
    text-align: right;
}

.logo-text {
    display: none;
    margin-left: 0.75rem; /* 12px */
    font-weight: 600;
    font-size: var(--font-size-lg);
    color: var(--text-color);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: lightyellow;
    padding: 1rem;
    border-top: .1rem solid #ccc;
    box-shadow: 0 -.1rem .2rem rgba(0, 0, 0, 0.2);
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* 버튼 스타일 */
.btn-secondary, .close-button, .save-button {
    background: #546474;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: .5rem;
    cursor: pointer;
}



/* 폴더 위치 라벨(타이틀 + 설명) */
.folder-location-label {
    margin-bottom: 1rem;
}

.folder-location-title {
    font-size: 1.8rem;
    color: white;
    vertical-align: middle;
}

.folder-location-desc {
    font-size: 1.4rem;
    color: lightgray;
    vertical-align: middle;
    margin-left: .5rem;
}

/* 폴더 선택 입력 및 버튼 그룹 */
/*.folder-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.setting-input-text {
    flex-grow: 1;
    padding: .8rem;
    border: .1rem solid #ccc;
    border-radius: .4rem;
}

.browse-button {
    padding: .8rem 1.2rem;
    background-color: #4C6FED;
    color: white;
    border: none;
    border-radius: .4rem;
    cursor: pointer;
}*/

/* 체크박스 그룹 (필요 시 추가 스타일 적용) */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.modal-content {
    background-color: #2C3E50; /* 원하는 색상으로 변경 */
    color: white; /* 텍스트 색상 */
}




/* 모달 배경 하얀색 설정 */
.custom-modal .modal-content {
    background-color: white; /* 모달 내부 배경 */
    border-radius: 1rem; /* 모서리 둥글게 */
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3); /* 그림자 효과 */
}

/* 헤더와 본문 경계선 제거 */
.custom-modal .modal-header {
    border-bottom: none;
    background-color: white;
}

/* 닫기 버튼 스타일 */
.custom-modal .close {
    background-color: white;
    border: none;
    outline: none;
    font-size: 2rem;
    color: black;
    cursor: pointer;
}

/* 배경 오버레이 */
.custom-modal {
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 검은색 배경 */
}

    /* 글자 검은색 */
    .custom-modal .version-info p {
        color: black;
    }


/* ====== 모달 전체 화면 설정 ====== */
#detail-modal {
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 검은색 배경 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* 모달 크기 및 위치 조정 */
    #detail-modal .modal-dialog {
        width: 90vw; /* 전체 화면의 80% */
        height: 90vh; /* 전체 화면의 80% */
        max-width: none;
        max-height: none;
        background-color: white;
        border-radius: 1rem;
        box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    #detail-modal .design-main {
        position: relative;
        width: 100vw;
        height: 100vh;
        border: .1rem solid #000000;
        box-sizing: border-box;
        overflow: hidden;
    }
    /* 모달 내부 컨텐츠 정렬 */
    /*#detail-modal .modal-content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        padding: rem;
    }*/
    #detail-modal .right-search-bar {
        position: absolute;
        width: 53.3rem;
        height: 3.5rem;
        top: .8rem;
        left: 143.6rem;
        background-color: #0c1f32;
    }
    /* 모달 헤더 스타일 */
    #detail-modal .top-fixed-group {
        position: absolute;
        width: 188.3rem;
        height: 8.6rem; /* 1080 기준 8vh ≈ 8.6rem */
        top: 0;
        left: 0;
        background-color: #0c1f32;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 2rem;
        box-sizing: border-box;
    }

        /* 닫기 버튼 스타일 */
        #detail-modal .top-fixed-group button {
            background: none;
            border: none;
            color: white;
            font-size: 2.4rem;
            cursor: pointer;
        }

    /* 컨텐츠 레이아웃 */
    /*#detail-modal .overlap {
        display: flex;
        height: calc(100% - 5rem);*/ /* 헤더 제외 */
    /*}*/
    #detail-modal .overlap,
    #detail-modal .overlap-group {
        position: absolute;
        width: 100%;
        height: 100%; /* 상단바 높이 제외 */
        top: 4.7rem;
        left: 0;
    }
    #detail-modal .overlap-group {
        display: flex;
       
    }
    #detail-modal .overlap-7 {
        position: absolute;
        width: 43.6rem;
        height: 47.4rem;
        top: 38vh;
        left: 78vw;
        background-color: #1e2d3c;
    }
    #detail-modal .frame-wrapper {
        height: 3.5rem;
        background-color: #f1f3f4;
        border-radius: 1.3rem;
    }
    #detail-modal .text-input {
        position: absolute;
        width: 129.3rem;
        height: 3.6rem;
        top: .8rem;
        left: 9.9rem;
        background-color: #0c1f32;
    }
    #detail-modal .frame {
        position: relative;
        width: 42.9rem;
        height: 1.7rem;
        top: .9rem;
        left: 2.1rem;
    }
    /*#detail-modal .main-background,
    #detail-modal .main-list-background,
    #detail-modal .main-list-background_2,
    #detail-modal .main-list-background_3 {
        flex: 1;*/ /* 4등분 */
        /*padding: 1rem;
        box-sizing: border-box;*/ /* ✅ padding이 width에 포함되도록 설정 */
    /*}

    #detail-modal .main-background {
        background-color: #0c1f32;
        border-right: .2rem solid #ffffff;*/ /* ✅ 모든 요소가 같은 border-right을 갖도록 설정 */
    /*}

    #detail-modal .main-list-background,
    #detail-modal .main-list-background_2 {
        background-color: #1e2d3c;
        border-right: .2rem solid #ffffff;*/ /* ✅ 마지막 요소를 제외한 모든 요소에 border-right 추가 */
    /*}

    #detail-modal .main-list-background_3 {
        background-color: #1e2d3c;
        border-right: none;*/ /* ✅ 마지막 요소에는 border-right 제거 */
    /*}*/
    /* 미리보기 영역 */
    #detail-modal .preview-image {
        width: 30%; /* 우측 30% */
        background-color: black;
        padding: 1rem;
    }

    /* 검색 바 섹션 */
    #detail-modal .search-bar-section {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background-color: #0c1f32;
        border-bottom: .2rem solid #546474;
        top: 4.3rem;
        width: 100%;
    }

    /* 검색 입력창 */
    #detail-modal .vector-wrapper {
        display: flex;
        align-items: center;
        background-color: #f1f3f4;
        border-radius: .8rem;
        padding: .5rem 1rem;
        width: 50%;
    }

    #detail-modal .search-input {
        flex: 1;
        border: none;
        background: transparent;
        padding: .5rem;
        font-size: 1.4rem;
    }
.detail-img_2 {
    position: relative;
    width: 1.6rem;
    height: 1.7rem;
    object-fit: cover;
}
    /* 폴더 이동 아이콘 */
    #detail-modal .folder-move-icon {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

        #detail-modal .folder-move-icon img {
            width: 2rem;
            height: 2rem;
            cursor: pointer;
        }

    /* 모달 푸터 */
    #detail-modal .modal-footer {
        padding: 1rem;
        display: flex;
        justify-content: flex-end;
        border-top: .2rem solid #546474;
        background-color: #2C3E50;
    }

.Detail-grid-container {
    
     /* 기본적으로 한 줄 */
     /* 요소 간격 제거 */
    height: 100%;
    /* overflow-y: auto; */
    display: flex;
}
    /* 세로선 추가 */
    .Detail-grid-container > div:not(:last-child) {
        border-right: .2rem solid #546474;
    }

.Detail-grid-item1, .Detail-grid-item2, .Detail-grid-item3, .Detail-grid-item4 {
   height: 100%;
   overflow-y: auto;
}
.Detail-grid-item1 {
    background-color: #0C1F32; /* 연한 주황 */
    width: 14%;
}
.Detail-grid-item1 span {font-size:1.4rem}
.Detail-grid-item2 {
    background-color: #171B21; /* 연한 파랑 */
     /* 8:2 비율로 분할 */
    width: 23%;
}
.Detail-grid-item2-top {
    background-color: #171B21; /* 상단 영역 */
}

.Detail-grid-item2-bottom {
    background-color: #171B21; /* 하단 영역 */
    border-top: .2rem solid #546474; /* 위쪽 테두리 추가 */
}
.Detail-grid-item3 {
    background-color: #171B21; /* 연한 초록 */
    width: 32%;
}

.Detail-grid-item4 {
    background-color: #171B21; /* 연한 분홍 */
    display: grid;
    grid-template-rows: 7fr 3fr; /* 8:2 비율로 분할 */
    flex: 1;
}
.Detail-grid-item4-bottom {
    background-color: #171B21; /* 하단 영역 */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-height:rem;
    position: relative;
}
/* Grid 스타일 */
.Detail-Grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #171B21;
    padding: 1rem;
    border-radius: 1rem;
    /* height: 100%; */
}
/* Grid 스타일 */
.Detail-Grid2 {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background-color: #171B21;
    padding: 1.4rem;
    border-radius: 1rem;
    /* padding-bottom: 0; */
}
/* 개별 행 (제목 포함) */
.Detail-Row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 제목 스타일 */
.Detail-Title {
    font-size: 1.8rem;
    color: white;
    font-weight: bold;
    margin-bottom: .5rem;
}

/* 컬럼 (세로 정렬) */
.Detail-Column {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Flexbox를 사용한 정렬 */
.Detail-Flex {
    display: flex;
    align-items: start;
    gap: 1rem;
}

/* 라벨 & 값 스타일 */
.Detail-Label {
    color: lightgray;
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 13rem;
}
.Detail-TagImage {
    width:5.4rem;
    height:3rem;
}
.Detail-Value {
    color: white;
    font-size: 1.5rem;
    word-break: break-all;
}
.Detail-Memo {
    background-color: transparent; /* 배경색 투명 */
    border: none; /* 테두리 없음 */
    outline: none; /* 포커스 시 기본 테두리 제거 */
    color: white; /* 글씨 색상 (필요하면 변경) */
    font-size: 1.6rem; /* 글씨 크기 */
    width: 100%; /* 전체 너비 */
    resize: none; /* 크기 조절 불가능하게 설정 */
    align-items: center; /* 세로 중앙 */
}

.spec-header-container {
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    gap: 2rem; /* 제목과 이미지 사이 간격 */
}

.spec-detail-title {
    color: white;
    font-size: 2.4rem;
    font-weight: bold;
    margin: 0;
}

.spec-status-icon {
    width: auto;
    height: 3rem;
    cursor: pointer;
    padding-top: .5rem;
}

.spec-chart-container {
    position: relative;
    justify-content: center; /* 가운데 정렬 */
    align-items: center; /* 수직 정렬 */
    flex-wrap: wrap; /* 화면 작아지면 자동 줄바꿈 */
    /* gap: 6rem; */ /* 차트 간 간격 */
    text-align: center;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
}

.spec-chart-container > img {
    padding-left: 0 !important;!i;!;!;
    margin-top: 5rem !important;!i;!;!;!;
    width: 12.5rem;
    height: 3rem;
    margin-left: 47%;
}

.spec-detail-title2 {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0;
    padding: .5rem;
}
.spec-detail-title3 {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: .5rem;
    padding: .5rem;
    align-self: flex-start;
}
.custom-chart-legend {
    position: absolute;
    bottom: 1rem;
    left: 0;
    right: 0;
    text-align: right;
}

.dx-legend-outside {display: flex;align-items: center;flex-direction: row-reverse !important;!i;!;!i;!;}
.dx-legend-outside > .dx-chart {
    align-self: auto !important;!i;!;
    width: 30rem;
    height: 16rem;
}
.dx-legend {
    font-size: 1.2rem !important; /* 범례 텍스트 크기 축소 */
    padding: .4rem .6rem; /* 내부 여백 최소화 */
}

.dx-legend-item {
    margin-bottom: .2rem !important; /* 범례 항목 간격 줄이기 */
}
/*.dx-chart-legend {
    max-height: 5rem !important;*/ /* 범례 높이 제한 */
    /*overflow: hidden !important;*/ /* 초과 내용 숨김 */
    /*display: flex !important;
    align-items: center !important;*/ /* 범례 항목 정렬 */
/*}*/

.dx-legend-horizontal {
    flex-wrap: wrap !important; /* 줄 바꿈 허용 (너무 길어질 경우) */
    justify-content: center !important; /* 중앙 정렬 */
}







.spec-chart-item {
    position: relative; /* 차트와 범례를 겹치기 위해 부모 컨테이너를 relative로 설정 */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 37rem;
    height: auto;
    margin-bottom: 8rem; /* 차트 아래쪽 간격 추가 */
    /* margin-left: 1.2rem; */ /* 차트 아래쪽 간격 추가 */
    margin: 0 auto;
}
.spec-chart-item ~ .spec-chart-item {
    margin-top: 3rem;
}
.dx-chart-legend {
    background: transparent; /* 반투명 배경 */
    color: white !important; /* 글씨 색상 변경 */
    padding: 0;
    border-radius: .5rem;
    z-index: 10; /* 차트 위에 오도록 설정 */
    max-width: 34rem; /* 범례의 최대 너비 제한 */
    overflow: hidden;
}
.dx-right {
    /*max-height: 5rem !important;*/ /* 범례 오른쪽 정렬 시 높이 제한 */
}
.dx-chart-legend-items {
    min-width: 7rem !important; /* 기존 10rem에서 확장 */
    max-width: 25rem !important; /* 기존 12rem에서 확장 */
    margin: .4rem .8rem !important; /* 항목 간 간격 유지 */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/*.dx-chart-legend-item {
    display: flex !important;
    align-items: center !important;*/ /* 아이콘과 텍스트 정렬 */
    /*margin: .2rem .6rem !important;*/ /* 아이템 간격 조정 */
    /*min-width: 10rem !important;*/ /* 범례 아이템 최소 너비 지정 */
    /*max-width: 12rem !important;*/ /* 범례 아이템 최대 너비 제한 */
/*}*/

.dx-chart-legend-icon {
    width: 1.2rem !important; /* 아이콘 크기 줄이기 */
    height: .3rem !important;
    margin-right: .4rem !important; /* 아이콘과 텍스트 간격 조정 */
}

.dx-chart-legend-text {
    font-size: .9rem !important; /* 범례 텍스트 크기 조정 */
}


.third-metabolite-container {
    background-color: #171B21;
    color: white;
    font-family: sans-serif;
    padding: 1.3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.third-header-section .third-title {
    font-size: 2.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.third-header-section {
    margin-bottom: .5rem; /* 기존 값이 크다면 줄이기 */
}

.third-filter-section {
    margin-bottom: .5rem; /* 필요하면 조정 */
}

.third-filter-section {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.third-filter-label {
    font-size: 1.1rem;
    margin-right: 1rem;
}

.third-rounded-combobox {
    border-radius: .5rem;
    padding: .5rem;
    font-size: 1.4rem;
    background-color: #2c3137;
    color: white;
    border: none;
}

.third-datagrid-section {
    flex-grow: 1;
    overflow-y: auto; /* 스크롤 처리 */
    max-height: 60rem; /* 필요에 따라 높이 조절 */
}


.third-custom-datagrid {
    width: 100%;
    border-collapse: collapse;
}

    /* 테이블 헤더 */
    .third-custom-datagrid th {
        padding: .6rem;
        text-align: center;
        font-size: 1.2rem;
        height: 4rem; /* 헤더 높이 설정 */
        /* width: 80%; */
    }

    /* 테이블 셀 */
    .third-custom-datagrid td {
        padding: .4rem;
        text-align: center;
        font-size: 1.4rem;
        height: 5rem; /* 행 높이 줄이기 */
        vertical-align: middle;
    }
    /* 테이블 셀 */
    .third-custom-datagrid tr {
        padding: .6rem;
        text-align: center;
        font-size: 1.4rem;
        height: 5rem; /* 행 높이 줄이기 */
        vertical-align: middle;
    }

    .third-table-cell {
  vertical-align: middle;
  text-align: center;
}

.third-linear-gauge {
  position: relative;
  width: 28rem !important;!i;!;
  height: 6rem !important;!i;!;
  color: white;
  margin-top: -3.2rem;
}

.third-gauge-bar {
  position: absolute;
  left: 3rem !important;!i;!;
  top: 4rem !important;!i;!;
  width: 22rem !important;!i;!;
  height: 1.4rem !important;!i;!;
}

.third-range1 {
  position: absolute;
  left: 0;
  width: 20%;
  height: 100%;
  background-color: #05F900;
}

.third-range2 {
  position: absolute;
  left: 20%;
  width: 30%;
  height: 100%;
  background-color: #E87400;
}

.third-range3 {
  position: absolute;
  left: 50%;
  width: 50%;
  height: 100%;
  background-color: #C00000;
}

.third-exclamation-mark {
    position: absolute;
    vertical-align: middle;
    text-align: center;
    left: 0;
    top: 0;
    font-size: 1.8rem;
    margin-top: 3.9rem;
}
.third-gauge-value-label {
    position: absolute;
    bottom: .5rem;
    right: .5rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 4rem;
}
.third-triangle-marker {
    position: absolute;
    left: 3rem;
    top: 3rem;
    width: 0;
    height: 0;
    border-left: .6rem solid transparent;
    border-right: .6rem solid transparent;
    border-top: 1rem solid #3EA3F5; /* 삼각형 색상 */
    transform: translateX(8.8rem); /* 현재 값에 맞춰 조정 */
}
.third-gauge-scale-labels {
    position: absolute;
    left: 3rem;
    top: 6rem;
    width: 22.6rem;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
}
.third-one {
    vertical-align: middle;
    text-align: center;
}

/* 테이블 행 높이 조정 */
.third-custom-datagrid tbody tr {
    height: 5rem; /* 기존보다 낮게 설정 */
}




    .export-section .btn-send {
        position: absolute;
        width: 18.5rem;
        height: 3.9rem;
        top: 2.1rem;
        left: 32.5rem;
        background-color: #2e5478;
        border-radius: .5rem;
    }

    .export-section .send-ohters-frame {
        display: flex;
        width: 12.6rem;
        align-items: flex-start;
        gap: .7rem;
        position: relative;
        top: .9rem;
        left: 3.2rem;
    }

    .export-section .img {
        position: relative;
        width: 2rem;
        height: 2rem;
    }

    .export-section .text-wrapper {
        position: relative;
        width: fit-content;
        margin-top: -1.0rem;
        margin-right: -6.3.2rem;
        font-family: "Noto Sans-Bold", Helvetica;
        font-weight: 700;
        color: #ffffff;
        font-size: 1.4rem;
        letter-spacing: -0.7rem;
        line-height: normal;
    }

    .export-section .btn-download {
        position: absolute;
        width: 18.5rem;
        height: 3.9rem;
        top: 2.1rem;
        left: 11.7rem;
        background-color: #1d695b;
        border-radius: .5rem;
    }

    .export-section .btn-download-frame {
        display: flex;
        width: 13.8rem;
        align-items: flex-start;
        gap: .7rem;
        position: relative;
        top: .9rem;
        left: 2.2rem;
    }

    .export-section .downlaod-icon-frame {
        position: relative;
        width: 21.7.2rem;
        height: 2rem;
    }

    .export-section .div {
        position: relative;
        width: fit-content;
        margin-top: -1.0rem;
        margin-right: -0.0.4rem;
        font-family: "Noto Sans-Bold", Helvetica;
        font-weight: 700;
        color: #ffffff;
        font-size: 1.4rem;
        letter-spacing: -0.7rem;
        line-height: normal;
    }



.Thrid-download-button {
    position: absolute;
    width: 100%;
    height: 5.4rem;
    top: 0;
    left: 0;
    border-top-width: .1rem;
    border-top-style: solid;
    border-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.4rem;
}

.Thrid-generate-button {
    width: 13.2rem;
    height: 3.2rem;
}

.Thrid-overlap-group-5 {
    position: relative;
    width: 13rem;
    height: 3.2rem;
    background-color: #636363;
    border-radius: .5rem;
}

.Thrid-mdi-file-send {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    top: .8rem;
    left: 1.4rem;
}

.Thrid-text-wrapper-52 {
    position: absolute;
    height: 1.4rem;
    top: .8rem;
    left: 3.3rem;
    font-family: "Noto Sans", Helvetica;
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0;
    line-height: normal;
}

.Thrid-download-button-2 {
    width: 13.2rem;
    height: 3.2rem;
}

.Thrid-overlap-8 {
    position: relative;
    width: 13rem;
    height: 3.2rem;
    background-color: #1d695b;
    border-radius: .5rem;
}

.Thrid-download-icon {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    top: .8rem;
    left: 1.2rem;
}

.Thrid-text-wrapper-53 {
    position: absolute;
    height: 1.4rem;
    top: .8rem;
    left: 3.2rem;
    font-family: "Noto Sans", Helvetica;
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
    letter-spacing: 0;
    line-height: normal;
}


.report-preview {
    width: 85.6rem;
    height: 147rem;
}

    .report-preview .overlap {
        position: relative;
        width: 86.2rem;
        height: 187.5rem;
        left: -.3rem;
        background-color: #ffffff;
        border-radius: 1.5rem;
        border: .3rem solid;
        border-color: #546474;
    }

    .report-preview .overlap-group {
        position: absolute;
        width: 85.9rem;
        height: 4.3rem;
        top: -.2rem;
        left: -.2rem;
        background-color: #546474;
        border-radius: 1.5rem 1.5rem rem rem;
    }

    .report-preview .text-wrapper {
        position: absolute;
        width: 19.9rem;
        height: 2.3rem;
        top: 1rem;
        left: 1.3rem;
        font-family: "Roboto", Helvetica;
        font-weight: 700;
        color: #ffffff;
        font-size: 2rem;
        letter-spacing: 0;
        line-height: normal;
    }

    .report-preview .fluent-cancel {
        position: absolute;
        width: 1.5rem;
        height: 1.5rem;
        top: 1.5rem;
        left: 82.1rem;
    }

    .report-preview .analysis-report {
        position: absolute;
        width: 18.7rem;
        height: 2.5rem;
        top: 8rem;
        left: 3.6rem;
    }

    .report-preview .div {
        position: absolute;
        width: 100%;
        height: 5.3rem;
        top: 43rem;
        left: 3.9rem;
    }

    .report-preview .group {
        position: absolute;
        width: 100%;
        height: 13.3rem;
        top: 0;
        left: 0;
        padding-right: 9rem;
    }

    .report-preview .patient-ID {
        width: 2.4rem;
        top: 3.4rem;
        left: 0;
        position: absolute;
        height: 1.2rem;
    }

    .report-preview .memo {
        position: absolute;
        width: 4.5rem;
        height: 1.2rem;
        top: .4rem;
        left: .1rem;
    }

    .report-preview .voxel-location-list {
        position: absolute;
        width: 11.3rem;
        height: 1.8rem;
        top: 3rem;
        left: 3.2rem;
    }

    .report-preview .overlap-group-2 {
        position: relative;
        width: 11.1rem;
        height: 1.8rem;
        background-color: #546574;
        border-radius: .5rem;
    }

    .report-preview .text-wrapper-2 {
        position: absolute;
        height: 1.4rem;
        top: .2rem;
        left: .7rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #ffffff;
        font-size: 1rem;
        text-align: center;
        letter-spacing: -0.5rem;
        line-height: normal;
    }

    .report-preview .vector {
        position: absolute;
        width: .9rem;
        height: .8rem;
        top: .5rem;
        left: 9.7rem;
    }

    .report-preview .metlit-logo {
        position: absolute;
        width: 18.9rem;
        height: 5.4rem;
        top: 7.6rem;
        left: 61.2rem;
        object-fit: cover;
    }

    .report-preview .rectangle-wrapper {
        position: absolute;
        width: 2rem;
        height: 164.1rem;
        top: 4.2rem;
        left: 83.9rem;
        background-color: #d9d9d9;
        border-radius: rem rem 1.5rem rem;
    }

    .report-preview .rectangle {
        position: relative;
        width: 1.3rem;
        height: 58rem;
        top: 1.4rem;
        left: .4rem;
        background-color: #546574;
        border-radius: .4rem;
    }

    .report-preview .metabolite-table {
        position: absolute;
        width: 78.3rem;
        height: 36.8rem;
        top: 57.2rem;
        left: 3.2rem;
    }

    .report-preview .overlap-2 {
        position: absolute;
        width: 78.1rem;
        height: 34.3rem;
        top: 2.5rem;
        left: 0;
        background-color: #d9d9d9;
    }

    .report-preview .table-header {
        position: absolute;
        width: 36.7rem;
        height: 2.8rem;
        top: .5rem;
        left: 1.2rem;
    }

    .report-preview .overlap-group-3 {
        position: relative;
        width: 36.1rem;
        height: 2.8rem;
        background-image: url(./img/rectangle-311.svg);
        background-size: 100% 100%;
    }

    .report-preview .text-wrapper-3 {
        position: absolute;
        top: .7rem;
        left: 2.4rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #ffffff;
        font-size: 1rem;
        letter-spacing: -0.5rem;
        line-height: normal;
    }

    .report-preview .precision {
        position: absolute;
        top: 0;
        left: 22.7rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #ffffff;
        font-size: 1rem;
        text-align: center;
        letter-spacing: -0.5rem;
        line-height: normal;
    }

    .report-preview .normalized-value {
        position: absolute;
        top: 0;
        left: 9.9rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #ffffff;
        font-size: 1rem;
        text-align: center;
        letter-spacing: -0.5rem;
        line-height: normal;
    }

    .report-preview .group-2 {
        position: absolute;
        width: 73.8rem;
        height: 2.7rem;
        top: 4.1rem;
        left: 3.6rem;
    }

    .report-preview .tnaa-tcr {
        position: absolute;
        width: 5rem;
        height: .9rem;
        top: .9rem;
        left: 0;
    }

    .report-preview .element {
        position: absolute;
        width: 2.1rem;
        height: .9rem;
        top: .9rem;
        left: 9rem;
    }

    .report-preview .precision-blocks {
        position: absolute;
        width: 17.1rem;
        height: 2.6rem;
        top: 0;
        left: 16.8rem;
    }

    .report-preview .text-wrapper-4 {
        position: absolute;
        width: .8rem;
        height: 1.6rem;
        top: .5rem;
        left: 15.6rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #040404;
        font-size: 1.2rem;
        text-align: center;
        letter-spacing: 0;
        line-height: normal;
    }

    .report-preview .GSH-tcr {
        position: absolute;
        width: 4.3rem;
        height: .9rem;
        top: .9rem;
        left: 39.3rem;
    }

    .report-preview .img {
        position: absolute;
        width: 2.1rem;
        height: .9rem;
        top: .9rem;
        left: 48.4rem;
    }

    .report-preview .precision-blocks-2 {
        height: 2.6rem;
        top: .1rem;
        left: 55.5rem;
        position: absolute;
        width: 17.1rem;
    }

    .report-preview .text-wrapper-5 {
        width: .8rem;
        top: .4rem;
        left: 54.6rem;
        position: absolute;
        height: 1.6rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #040404;
        font-size: 1.2rem;
        text-align: center;
        letter-spacing: 0;
        line-height: normal;
    }

    .report-preview .group-3 {
        position: absolute;
        width: 73.8rem;
        height: 2.7rem;
        top: 8.5rem;
        left: 3.6rem;
    }

    .report-preview .tcho-tcr {
        position: absolute;
        width: 4.7rem;
        height: .9rem;
        top: .9rem;
        left: 0;
    }

    .report-preview .element-2 {
        position: absolute;
        width: 2rem;
        height: .9rem;
        top: .9rem;
        left: 9rem;
    }

    .report-preview .lac-tcr {
        position: absolute;
        width: 3.9rem;
        height: .9rem;
        top: .9rem;
        left: 39.4rem;
    }

    .report-preview .text-wrapper-6 {
        top: .4rem;
        left: 54rem;
        position: absolute;
        height: 1.6rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #040404;
        font-size: 1.2rem;
        text-align: center;
        letter-spacing: 0;
        line-height: normal;
    }

    .report-preview .group-4 {
        position: absolute;
        width: 73.8rem;
        height: 2.7rem;
        top: 12.9rem;
        left: 3.6rem;
    }

    .report-preview .mi-tcr {
        position: absolute;
        width: 3.6rem;
        height: .9rem;
        top: .9rem;
        left: .1rem;
    }

    .report-preview .NAA-tcho {
        position: absolute;
        width: 5.4rem;
        height: .9rem;
        top: .9rem;
        left: 39.4rem;
    }

    .report-preview .precision-blocks-3 {
        height: 2.7rem;
        top: 0;
        left: 55.5rem;
        position: absolute;
        width: 17.1rem;
    }

    .report-preview .group-5 {
        position: absolute;
        width: 73.8rem;
        height: 2.7rem;
        top: 17.3rem;
        left: 3.6rem;
    }

    .report-preview .img-2 {
        position: absolute;
        width: 3.9rem;
        height: .9rem;
        top: .9rem;
        left: .1rem;
    }

    .report-preview .NAA-mi {
        position: absolute;
        width: 4.3rem;
        height: .9rem;
        top: .9rem;
        left: 39.4rem;
    }

    .report-preview .group-6 {
        position: absolute;
        width: 73.8rem;
        height: 2.7rem;
        top: 21.6rem;
        left: 3.6rem;
    }

    .report-preview .text-wrapper-7 {
        top: .5rem;
        left: 15rem;
        position: absolute;
        height: 1.6rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #040404;
        font-size: 1.2rem;
        text-align: center;
        letter-spacing: 0;
        line-height: normal;
    }

    .report-preview .glu-mi {
        position: absolute;
        width: 3.8rem;
        height: .9rem;
        top: .9rem;
        left: 39.3rem;
    }

    .report-preview .group-7 {
        position: absolute;
        width: 73.8rem;
        height: 2.7rem;
        top: 26rem;
        left: 3.6rem;
    }

    .report-preview .GABA-tcr {
        position: absolute;
        width: 5.1rem;
        height: .9rem;
        top: .9rem;
        left: .1rem;
    }

    .report-preview .glu-gln {
        position: absolute;
        width: 4rem;
        height: .9rem;
        top: .9rem;
        left: 39.3rem;
    }

    .report-preview .element-3 {
        position: absolute;
        width: 2.2rem;
        height: .9rem;
        top: .9rem;
        left: 48.4rem;
    }

    .report-preview .group-8 {
        position: absolute;
        width: 34rem;
        height: 2.6rem;
        top: 30.4rem;
        left: 42.8rem;
    }

    .report-preview .glu-GABA {
        position: absolute;
        width: 5.4rem;
        height: .9rem;
        top: .8rem;
        left: .1rem;
    }

    .report-preview .element-4 {
        position: absolute;
        width: 2.1rem;
        height: .9rem;
        top: .8rem;
        left: 9.2rem;
    }

    .report-preview .precision-blocks-4 {
        height: 2.6rem;
        top: 0;
        left: 16.3rem;
        position: absolute;
        width: 17.1rem;
    }

    .report-preview .text-wrapper-8 {
        top: .3rem;
        left: 14.8rem;
        position: absolute;
        height: 1.6rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #040404;
        font-size: 1.2rem;
        text-align: center;
        letter-spacing: 0;
        line-height: normal;
    }

    .report-preview .overlap-wrapper {
        position: absolute;
        width: 36.7rem;
        height: 2.8rem;
        top: .5rem;
        left: 40.7rem;
    }

    .report-preview .overlap-3 {
        position: relative;
        width: 36.1rem;
        height: 2.8rem;
        background-image: url(./img/rectangle-311-1.svg);
        background-size: 100% 100%;
    }

    .report-preview .text-wrapper-9 {
        position: absolute;
        top: .7rem;
        left: 1.6rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #ffffff;
        font-size: 1rem;
        letter-spacing: -0.5rem;
        line-height: normal;
    }

    .report-preview .precision-2 {
        position: absolute;
        top: 0;
        left: 21.4rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #ffffff;
        font-size: 1rem;
        text-align: center;
        letter-spacing: -0.5rem;
        line-height: normal;
    }

    .report-preview .normalized-value-2 {
        position: absolute;
        top: 0;
        left: 9.7rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #ffffff;
        font-size: 1rem;
        text-align: center;
        letter-spacing: -0.5rem;
        line-height: normal;
    }

    .report-preview .metabolite {
        position: absolute;
        width: 16.9rem;
        height: 1.2rem;
        top: .3rem;
        left: .5rem;
    }

    .report-preview .overlap-group-wrapper {
        position: absolute;
        width: 11.3rem;
        height: 1.8rem;
        top: .2rem;
        left: 19.9rem;
    }

    .report-preview .text-wrapper-10 {
        position: absolute;
        height: 1.4rem;
        top: .2rem;
        left: .6rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #ffffff;
        font-size: 1rem;
        text-align: center;
        letter-spacing: -0.5rem;
        line-height: normal;
    }

    .report-preview .file-info {
        position: absolute;
        width: 25.9rem;
        height: 23.6rem;
        top: 17rem;
        left: 55.6rem;
    }

    .report-preview .overlap-4 {
        position: relative;
        width: 25.7rem;
        height: 23.6rem;
        background-color: #d9d9d9;
    }

    .report-preview .frame {
        display: flex;
        flex-direction: column;
        width: 23rem;
        height: 9.9rem;
        align-items: flex-start;
        gap: .8rem;
        position: absolute;
        top: 4.9rem;
        left: 1.5rem;
    }
    .report-preview .group-9-1 {
        position: relative;
        width: 32.8rem;
        height: 1.5rem;
    }
    .report-preview .foramt2 {
        position: absolute;
        height: 1.5rem;
        top: 0;
        left: 6.4rem;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }
    .report-preview .group-9 {
        position: relative;
        width: 12.8rem;
        height: 1.5rem;
    }

    .report-preview .text-wrapper-11 {
        position: absolute;
        height: 1.5rem;
        top: 0;
        left: 0;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }

    .report-preview .foramt {
        position: absolute;
        height: 1.5rem;
        top: 0;
        left: 3.8rem;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }

    .report-preview .group-10 {
        position: relative;
        width: 8.6rem;
        height: 1.5rem;
    }

    .report-preview .size {
        position: absolute;
        height: 1.5rem;
        top: 0;
        left: 3.5rem;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }

    .report-preview .group-11 {
        position: relative;
        width: 23.4rem;
        height: 4.5rem;
        margin-right: -4.0rem;
    }

    .report-preview .location {
        position: absolute;
        width: calc(100% - 7rem); /* 동적으로 너비 설정 (6.2rem 여백 제외) */
        height: auto; /* 높이를 자동으로 조정 */
        top: 0;
        left: 6.2rem;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        word-wrap: break-word; /* 긴 단어 줄바꿈 */
        overflow-wrap: break-word; /* 브라우저 호환성 추가 */
        white-space: normal; /* 줄바꿈 활성화 */
    }

    .report-preview .group-12 {
        position: relative;
        width: 23.4rem;
        height: 3rem;
        margin-bottom: -30.0rem;
        margin-right: -4.0rem;
        top: 2.5rem;
    }

    .report-preview .date {
        position: absolute;
        width: 13.9rem;
        height: 3rem;
        top: 0;
        left: 9.1rem;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
    }

    .report-preview .recent {
        position: absolute;
        width: 11.6rem;
        height: 1.2rem;
        top: 2rem;
        left: 1.6rem;
    }

    .report-preview .scan-info {
        position: absolute;
        width: 25.9rem;
        height: 23.6rem;
        top: 17rem;
        left: 29.4rem;
    }

    .report-preview .group-13 {
        position: absolute;
        width: 18.2rem;
        height: 1.5rem;
        top: 14.1rem;
        left: 1.6rem;
    }

    .report-preview .MR-device-name {
        left: 12.8rem;
        position: absolute;
        height: 1.5rem;
        top: 0;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }

    .report-preview .group-14 {
        position: absolute;
        width: 19.1rem;
        height: 1.5rem;
        top: 21rem;
        left: 1.6rem;
    }

    .report-preview .MR-device-name-2 {
        left: 13.4rem;
        position: absolute;
        height: 1.5rem;
        top: 0;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }

    .report-preview .group-15 {
        position: absolute;
        width: 14.2rem;
        height: 1.5rem;
        top: 18.7rem;
        left: 1.6rem;
    }

    .report-preview .scan-date-numeric {
        left: 10.1rem;
        position: absolute;
        height: 1.5rem;
        top: 0;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }

    .report-preview .group-16 {
        position: absolute;
        width: 13.9rem;
        height: 1.5rem;
        top: 16.4rem;
        left: 1.6rem;
    }
.dxc-series .dxc-markers circle {
    r: 3 !important; /* 마커 반지름 줄이기 */
    stroke-width: 1 !important;
}
    .report-preview .vector-size-numeric {
        left: 10.5rem;
        position: absolute;
        height: 1.5rem;
        top: 0;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }

    .report-preview .group-17 {
        position: absolute;
        width: 18rem;
        height: 1.5rem;
        top: 4.9rem;
        left: 1.6rem;
    }

    .report-preview .scan-date-numeric-2 {
        left: 7.1rem;
        position: absolute;
        height: 1.5rem;
        top: 0;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }

    .report-preview .group-18 {
        position: absolute;
        width: 17.5rem;
        height: 1.5rem;
        top: 7.2rem;
        left: 1.6rem;
    }

    .report-preview .MR-device-name-3 {
        left: 7.3rem;
        position: absolute;
        height: 1.5rem;
        top: 0;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }

    .report-preview .group-19 {
        position: absolute;
        width: 11.4rem;
        height: 1.5rem;
        top: 9.5rem;
        left: 1.6rem;
    }

    .report-preview .vector-size-numeric-2 {
        position: absolute;
        height: 1.5rem;
        top: 0;
        left: 6.9rem;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }

    .report-preview .group-20 {
        position: absolute;
        width: 11rem;
        height: 1.5rem;
        top: 11.8rem;
        left: 1.6rem;
    }

    .report-preview .scan-date-numeric-3 {
        left: 7.6rem;
        position: absolute;
        height: 1.5rem;
        top: 0;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }

    .report-preview .scan-parameter {
        position: absolute;
        width: 12.6rem;
        height: 1.2rem;
        top: 2.1rem;
        left: 1.7rem;
    }

    .report-preview .patient-info {
        position: absolute;
        width: 25.9rem;
        height: 23.6rem;
        top: 17rem;
        left: 3.2rem;
    }

    .report-preview .group-21 {
        position: absolute;
        width: 13.5rem;
        height: 1.5rem;
        top: 4.9rem;
        left: 1.3rem;
    }

    .report-preview .UID-numeric {
        position: absolute;
        height: 1.5rem;
        top: 0;
        left: 6.8rem;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }

    .report-preview .group-22 {
        position: absolute;
        width: 5.2rem;
        height: 1.5rem;
        top: 7.2rem;
        left: 1.3rem;
    }

    .report-preview .age-numeric {
        position: absolute;
        height: 1.5rem;
        top: 0;
        left: 3.3rem;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }

    .report-preview .group-23 {
        position: absolute;
        width: 4.7rem;
        height: 1.5rem;
        top: 9.5rem;
        left: 1.3rem;
    }

    .report-preview .text-wrapper-12 {
        position: absolute;
        height: 1.5rem;
        top: 0;
        left: 3.1rem;
        font-family: "Roboto", Helvetica;
        font-weight: 400;
        color: #040404;
        font-size: 1.3rem;
        letter-spacing: 0.2.5rem;
        line-height: normal;
        white-space: nowrap;
    }

    .report-preview .patient-information {
        width: 14.2rem;
        top: 2.1rem;
        left: 1.4rem;
        position: absolute;
        height: 1.2rem;
    }

    .report-preview .spectrum-view {
        position: absolute;
        width: 78.3rem;
        height: 54.2rem;
        top: 50rem;
        left: 3.2rem;
    }

    .report-preview .overlap-5 {
        position: absolute;
        width: 78.1rem;
        height: 25.6rem;
        top: 6.2rem;
        left: 0;
        background-color: #d9d9d9;
    }

    .report-preview .pre-processed-in {
        position: absolute;
        width: 34.9rem;
        height: 24rem;
        top: .4rem;
        left: 2rem;
    }

    .report-preview .text-wrapper-13 {
        position: absolute;
        top: 0;
        left: .2rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #040404;
        font-size: 1.4rem;
        letter-spacing: -0.7rem;
        line-height: normal;
    }

    .report-preview .preprocessed-wrapper {
        position: absolute;
        width: 34.7rem;
        height: 21.7rem;
        top: 2.3rem;
        left: 0;
        background-image: url(./img/rectangle-376-1.png);
        background-size: 100% 100%;
    }

    .report-preview .preprocessed {
        position: absolute;
        width: 26.7rem;
        height: 17.6rem;
        top: 2.3rem;
        left: 4rem;
    }

    .report-preview .individual-spectrum {
        position: absolute;
        width: 34.9rem;
        height: 24rem;
        top: .4rem;
        left: 40.5rem;
    }

    .report-preview .overlap-6 {
        position: absolute;
        width: 34.7rem;
        height: 21.7rem;
        top: 2.3rem;
        left: 0;
        background-color: #ffffff;
        border: .1rem solid;
        border-color: #000000;
    }

    .report-preview .individual-spectrums {
        position: absolute;
        width: 25rem;
        height: 13.3rem;
        top: 2.4rem;
        left: 4.8rem;
    }

    .report-preview .x-axis-chart {
        position: absolute;
        width: 28.5rem;
        height: 3.2rem;
        top: 16.5rem;
        left: 3.9rem;
    }

    .report-preview .overlap-group-4 {
        position: absolute;
        width: 25rem;
        height: .7rem;
        top: 0;
        left: .8rem;
    }

    .report-preview .vector-2 {
        width: 25rem;
        height: .1rem;
        left: 0;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-3 {
        width: .1rem;
        height: .7rem;
        left: .1rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-4 {
        width: .1rem;
        height: .4rem;
        left: .8rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-5 {
        width: .1rem;
        height: .4rem;
        left: 1.4rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-6 {
        width: .1rem;
        height: .4rem;
        left: 2.2rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-7 {
        width: .1rem;
        height: .4rem;
        left: 2.9rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-8 {
        width: .1rem;
        height: .4rem;
        left: 3.6rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-9 {
        width: .1rem;
        height: .4rem;
        left: 4.3rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-10 {
        width: .1rem;
        height: .4rem;
        left: 5rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-11 {
        width: .1rem;
        height: .4rem;
        left: 5.7rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-12 {
        width: .1rem;
        height: .4rem;
        left: 6.4rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-13 {
        width: .1rem;
        height: .7rem;
        left: 7.2rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-14 {
        width: .1rem;
        height: .4rem;
        left: 7.9rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-15 {
        width: .1rem;
        height: .4rem;
        left: 8.6rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-16 {
        width: .1rem;
        height: .4rem;
        left: 9.3rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-17 {
        width: .1rem;
        height: .4rem;
        left: 10rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-18 {
        width: .1rem;
        height: .4rem;
        left: 10.7rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-19 {
        width: .1rem;
        height: .4rem;
        left: 11.4rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-20 {
        width: .1rem;
        height: .4rem;
        left: 12.2rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-21 {
        width: .1rem;
        height: .4rem;
        left: 12.9rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-22 {
        width: .1rem;
        height: .4rem;
        left: 13.6rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-23 {
        width: .1rem;
        height: .7rem;
        left: 14.3rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-24 {
        width: .1rem;
        height: .4rem;
        left: 15rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-25 {
        width: .1rem;
        height: .4rem;
        left: 15.7rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-26 {
        width: .1rem;
        height: .4rem;
        left: 16.4rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-27 {
        width: .1rem;
        height: .4rem;
        left: 17.2rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-28 {
        width: .1rem;
        height: .4rem;
        left: 17.9rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-29 {
        width: .1rem;
        height: .4rem;
        left: 18.6rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-30 {
        width: .1rem;
        height: .4rem;
        left: 19.2rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-31 {
        width: .1rem;
        height: .4rem;
        left: 19.9rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-32 {
        width: .1rem;
        height: .4rem;
        left: 20.6rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-33 {
        width: .1rem;
        height: .7rem;
        left: 21.4rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-34 {
        width: .1rem;
        height: .4rem;
        left: 22.1rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-35 {
        width: .1rem;
        height: .4rem;
        left: 22.8rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-36 {
        width: .1rem;
        height: .4rem;
        left: 23.5rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-37 {
        width: .1rem;
        height: .4rem;
        left: 24.2rem;
        position: absolute;
        top: 0;
    }

    .report-preview .vector-38 {
        width: .1rem;
        height: .4rem;
        left: 24.9rem;
        position: absolute;
        top: 0;
    }

    .report-preview .element-5 {
        position: absolute;
        width: 1.2rem;
        height: .6rem;
        top: 1rem;
        left: 0;
    }

    .report-preview .element-6 {
        position: absolute;
        width: 1.2rem;
        height: .6rem;
        top: 1rem;
        left: 7.1rem;
    }

    .report-preview .element-7 {
        position: absolute;
        width: 1.2rem;
        height: .6rem;
        top: 1rem;
        left: 14.2rem;
    }

    .report-preview .element-8 {
        position: absolute;
        width: 1.2rem;
        height: .6rem;
        top: 1rem;
        left: 21.3rem;
    }

    .report-preview .element-9 {
        position: absolute;
        width: 1.2rem;
        height: .6rem;
        top: 1rem;
        left: 24.8rem;
    }

    .report-preview .element-10 {
        position: absolute;
        width: 1.2rem;
        height: .6rem;
        top: 1rem;
        left: 17.7rem;
    }

    .report-preview .element-11 {
        position: absolute;
        width: 1.1rem;
        height: .6rem;
        top: 1rem;
        left: 10.6rem;
    }

    .report-preview .element-12 {
        position: absolute;
        width: 1.2rem;
        height: .6rem;
        top: 1rem;
        left: 3.6rem;
    }

    .report-preview .PPM {
        position: absolute;
        width: 2.3rem;
        height: .8rem;
        top: 2.1rem;
        left: 11.6rem;
    }

    .report-preview .spectrum-view-2 {
        position: absolute;
        width: 11.1rem;
        height: 1.5rem;
        top: .3rem;
        left: .5rem;
    }

    .report-preview .overlap-7 {
        position: absolute;
        width: 78.1rem;
        height: 25.6rem;
        top: 28.6rem;
        left: 0;
        background-color: #d9d9d9;
    }

    .report-preview .overlap-8 {
        position: absolute;
        width: 25rem;
        height: 13.3rem;
        top: 2.5rem;
        left: 4.8rem;
    }

    .report-preview .individual-spectrums-2 {
        position: absolute;
        width: 25rem;
        height: 13.3rem;
        top: 0;
        left: .1rem;
    }

    .report-preview .individual-spectrums-3 {
        position: absolute;
        width: 25rem;
        height: 13.3rem;
        top: 0;
        left: 0;
    }

    .report-preview .btn-upload {
        all: unset;
        box-sizing: border-box;
        position: absolute;
        width: 12.2rem;
        height: 3rem;
        top: 162.6rem;
        left: 54.4rem;
    }

    .report-preview .div-wrapper {
        position: relative;
        width: 12rem;
        height: 3rem;
        background-color: #546574;
        border-radius: .5rem;
    }

    .report-preview .text-wrapper-14 {
        position: absolute;
        height: 1.9rem;
        top: .6rem;
        left: 2.9rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #ffffff;
        font-size: 1.4rem;
        text-align: center;
        letter-spacing: 0.1rem;
        line-height: normal;
    }

    .report-preview .button {
        all: unset;
        box-sizing: border-box;
        position: absolute;
        width: 12.2rem;
        height: 3rem;
        top: 162.6rem;
        left: 68.3rem;
    }

    .report-preview .overlap-9 {
        position: relative;
        width: 12rem;
        height: 3rem;
        background-color: #2e5478;
        border-radius: .5rem;
    }

    .report-preview .text-wrapper-15 {
        position: absolute;
        height: 1.9rem;
        top: .6rem;
        left: 3.7rem;
        font-family: "Noto Sans", Helvetica;
        font-weight: 700;
        color: #ffffff;
        font-size: 1.4rem;
        text-align: center;
        letter-spacing: 0.1rem;
        line-height: normal;
    }

    .report-preview .comments-section {
        position: absolute;
        width: 76.6rem;
        height: 15.4rem;
        top: 145.1rem;
        left: 3.6rem;
    }

    .report-preview .comments {
        position: absolute;
        width: 8.3rem;
        height: 1.2rem;
        top: .3rem;
        left: .1rem;
    }

    .report-preview .rectangle-2 {
        position: absolute;
        width: 75.6rem;
        height: 12.6rem;
        top: 2.8rem;
        left: .8rem;
        background-color: #e3e3e3;
        border-radius: .5rem;
    }
.graph-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2열로 균등 분할 */
    gap: 1rem; /* 요소 사이 간격 */
}

.graph-box {
    width: calc(50% - 1rem); /* 2개씩 배치되도록 설정 */
    min-width: 30rem; /* 최소 너비 */
    aspect-ratio: 16/9; /* 그래프의 가로세로 비율 유지 */
    background-color: #f0f0f0; /* 임시 배경 */
    display: flex;
    align-items: center;
    justify-content: center;
    border: .1rem solid #ccc;
}

.metabolite-table {
    width: 100%;
    margin-top: 1rem;
}

.dx-chart.h-100.w-100.dx-visibility-change-handler {
   /* height: 94% !important;*/
}


.E-graph-box {
    width: calc(50% - 1rem); /* 2개씩 배치되도록 설정 */
    min-width: 30rem; /* 최소 너비 */
    aspect-ratio: 16/9; /* 그래프의 가로세로 비율 유지 */
    background-color: white; /* 임시 배경 */
    display: flex;
    align-items: center;
    justify-content: center;
    border: .1rem solid #ccc;
}

    .E-graph-box .dxc-arg-elements text {
        fill: black !important;
    }

.spectrum-export-btn {
    background-color: #A7C7A3; /* 연두색 (Light Green) */
    color: #2C2F33; /* 어두운 텍스트 색상 */
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    padding: 1.5rem 2rem;
    border: none;
    border-radius: .8rem;
    cursor: pointer;
    width: 12rem; /* 버튼 크기 조절 */
    height: 8rem;
    box-shadow: .2rem .2rem .5rem rgba(0, 0, 0, 0.2); /* 살짝 그림자 추가 */
}

    .spectrum-export-btn:hover {
        background-color: #98B993; /* 마우스 올릴 때 조금 어두운 색 */
    }


.wide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2개 컬럼으로 설정 */
    grid-template-rows: auto auto; /* 첫 번째 행은 전체 너비, 두 번째 행은 좌/우 나눔 */
    gap: .1rem; /* 간격 설정 */
    background-color: white;
    color: white;
    padding: rem;
    border-radius: .5rem;
    text-align: center;
    margin-top: 2rem;
    max-width: 100%; /* 최대 너비를 부모 요소에 맞춤 */
    overflow-x: hidden; /* 넘치는 부분 숨김 */
    overflow-y: hidden; /* 넘치는 부분 숨김 */
    box-sizing: border-box; /* 패딩 포함한 크기 계산 */
    width: 600rem;
    max-height: 200rem;
}
.E-label {
    font-size: 2.3rem;
    margin-right: 1rem;
    color:black;
}

.full-width {
    grid-column: span 2; /* 두 개의 컬럼을 합쳐서 전체 너비 차지 */
    background-color: white;
    padding: rem;
    border-radius: .5rem;
}

.left-column, .right-column {
    background-color: #2C3E50;
    padding: 1.5rem;
    border-radius: .5rem;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 63rem
}
.left-column {
    height: 63rem
}
.E-detail-title2 {
    color: black;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
    margin-bottom: 1rem;
}



.E-third-gauge-scale-labels {
    position: absolute;
    left: 3rem;
    top: 6rem;
    width: 11.6rem;
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
}



.E-third-gauge-bar {
    position: absolute;
    left: 3rem;
    top: 4rem;
    width: 11rem;
    height: 1.4rem;
}



.E-third-custom-datagrid {
    width: 100%;
    border-collapse: collapse;
}

    /* 테이블 헤더 */
    .E-third-custom-datagrid th {
        padding: .8rem;
        text-align: center;
        font-size: 1.4rem;
        height: 4rem; /* 헤더 높이 설정 */
    }

    /* 테이블 셀 */
    .E-third-custom-datagrid tr {
        padding: .6rem;
        text-align: center;
        font-size: 1.4rem;
        height: 5rem; /* 행 높이 줄이기 */
        vertical-align: middle;
    }

.E-third-table-cell {
    vertical-align: middle;
    text-align: center;
}

/* 테이블 셀 */
.E-third-custom-datagrid td {
    padding: .6rem;
    text-align: center;
    font-size: 1.4rem;
    height: 5rem; /* 행 높이 줄이기 */
    vertical-align: middle;
    max-width:12.5rem;
}

.E-third-datagrid-section {
    flex-grow: 1;
    overflow-y: hidden; /* 스크롤 처리 */
    overflow-x: hidden; /* 스크롤 처리 */
    max-height: 60.3rem; /* 필요에 따라 높이 조절 */
    margin-bottom: rem;
}

.E-comments-section {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 이미지가 왼쪽에 위치하도록 정렬 */
    gap: 1.5rem; /* 이미지와 입력창 사이의 간격 */
    padding: 1rem;
    width: 100%;
    background-color: #f8f9fa;
    border-radius: .5rem;
}

.E-comments {
    width: 5rem; /* 아이콘 크기 조정 */
    height: auto;
}

.E-rectangle-2 {
    flex: 1; /* 남은 공간을 차지하여 자동으로 크기 조정 */
    background-color: white;
    border-radius: .5rem;
    border: .1rem solid #ccc;
    padding: 1rem;
}

.E-comment-input {
    width: 100%;
    height: 6rem;
    border: none;
    outline: none;
    resize: none;
    font-size: 1.6rem;
}

.E-button-container {
    display: flex;
    justify-content: flex-end; /* 버튼을 우측 정렬 */
    gap: 1rem;
    margin-top: 1rem;
}

.E-btn-upload {
    background-color: #546574; /* Confirm 버튼 색상 */
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: .5rem;
    cursor: pointer;
    font-size: 1.6rem;
}

.E-button {
    background-color: #2E5478; /* Cancel 버튼 색상 */
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: .5rem;
    cursor: pointer;
    font-size: 1.6rem;
}

.E-comments-label {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
}

.Eoverlap-9 {
    position: relative;
    width: 12rem;
    height: 3rem;
    background-color: transparent;
    border-radius: .5rem;
}




.profile-Modal-modal {
    position: fixed;
    top: 10rem;
    left: 93rem;
    transform: translateX(-50%);
    z-index: 1050;
    width: 100%;
    height: auto;
    overflow: auto;
}

/* 모달 다이얼로그 */
/*.profile-Modal-dialog {
    width: 100%;
    max-width: 120rem;
    margin: auto;
    max-height: 88rem;*/ /* 다이얼로그창 높이 고정 */
/*}*/

/* 모달 컨텐츠 */
/*.profile-Modal-content {
    background-color: #2C3E50;
    color: white;
    padding: rem;
    border-radius: 1rem;
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.5);
}*/

.profile-Modal-dialog {
    width: 100%;
    max-width: 120rem;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #546474;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

/* 배경색 맞추기 */
.profile-Modal-content {
    background-color: #2c3e50;
    color: white;
    padding: rem;
    border-radius: 1rem;
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.5);
}
/* 모달 헤더 */
/*.profile-Modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: .1rem solid #444;
    padding: 1rem;
}*/
/* 프로필 모달 헤더 스타일 */
.profile-Modal-header {
    background-color: #3a3d40;
    color: white;
    padding: 15px 6px;
    display: flex;
    height: 40px;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.profile-Modal-title {
    font-size: 18px;
    font-weight: bold;
}

.profile-Modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}
/*.profile-Modal-title {
    font-size: 2rem;
    color: white;
    margin: 0;
}

.profile-Modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}*/

/* 모달 본문 */
.profile-Modal-body {
    padding: rem 0;
}

.profile-Modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2열로 구성 */
    gap: 2rem; /* 열 및 행 간격을 2rem로 지정 */
    padding: 2rem;
}

/* 개별 입력 항목 스타일 */
.profile-Modal-item {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    height: 67.8rem; /* 원하는 고정 높이값으로 변경 가능 */
}

.profile-Modal-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.6rem;
    border: .1rem solid #ccc;
    border-radius: .5rem;
}

/* Personal Info 제목 */
.personal-info-title {
    font-size: 2.1rem;
    font-weight: bold;
    color: white;
    margin: 1rem 0 1.7rem 1rem;
}

/* 이름 그리드: First/Last name 영역 */
.name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 6.6rem;
}

/* 이름 컨테이너 (여백 조절) */
.name-container {
    margin: 0 1.5rem;
}

/* 이름 레이블 */
.name-label {
    font-size: 1.8rem;
    color: white;
}

/* 이름 입력 컨테이너 (너비 216..8rem 고정) */
.name-input-container {
    margin: .5rem 1.5rem 0 0rem;
   /* width: 216..8rem;*/
    border: .1rem solid #ccc;
    border-radius: 1rem;
    background-color: white;
    text-align: left;
    height: 3rem;
}

/* Role, Institution, Address 레이블 */
.full-input-label {
    font-size: 1.8rem;
    color: white;
    margin: .9rem 0 0 1rem;
}

/* Role, Institution, Address 입력 컨테이너 (너비 52.2rem 고정) */
.full-input-container {
    margin: .5rem 1.5rem 0 1.5rem;
    width: 50.1rem;
    border: .1rem solid #ccc;
    border-radius: 1rem;
    background-color: white;
    text-align: left;
    height: 3rem;
    z-index: 100;
}

/* 공통 텍스트 입력 스타일 */
.proFill_text-input {
    border: none;
    font-size: 1.5rem;
    margin: .7rem;
    width: calc(100% - 2rem);
    height: 1.5rem;
}
    .proFill_text-input:focus {
        outline: none;
        box-shadow: none;
    }




/* Role, Institution, Address 레이블 */
.SEQ-full-input-label {
    font-size: 1.8rem;
    color: white;
    margin: rem 0 0 1rem;
}
.profile-Modal-modal:focus,
.profile-Modal-dialog:focus,
.profile-Modal-content:focus {
    outline: none;
}

/* Personal Info 제목 */
.Profill-info-title {
    font-size: 1.3rem;
    color: white;
    margin: .4rem 0 1.6rem .1rem;
}

/* ================= Contact Us Section ================= */
#contacts-section {
  background: #ffffff;
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* 페이지 컨테이너 */
#contacts-section .contact-page {
  max-width: 1200px;
  padding: 20px;
  margin: 0 auto;
  display: block;
}

/* 헤더 */
#contacts-section .contact-header {
  margin-bottom: 20px;
  text-align: left;
}
#contacts-section .contact-header h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: #343a40;
}
#contacts-section .contact-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

/* 2열 레이아웃 */
#contacts-section .contact-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 30px;
}

/* 폼 영역 */
#contacts-section .contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
#contacts-section .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
#contacts-section .form-group {
  display: flex;
  flex-direction: column;
}
#contacts-section .form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 6px;
}
#contacts-section .form-group input,
#contacts-section .form-group textarea {
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  color: #111827;
  background: #f8f9fa;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
#contacts-section .form-group input:focus,
#contacts-section .form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,.1);
  background: #ffffff;
}
#contacts-section .form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* 제출 버튼 */
#contacts-section .submit-btn {
  align-self: flex-end;
  background: #007bff;
  color: #fff;
  border: 0;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
#contacts-section .submit-btn:hover:not(:disabled) {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 123, 255, 0.25);
}
#contacts-section .submit-btn:active {
  transform: translateY(0);
  box-shadow: none;
}
#contacts-section .submit-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}

/* 회사 정보 영역 */
#contacts-section .company-info-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 로고/바 장식 */
#contacts-section .logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e9ecef;
}
#contacts-section .green-bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
}
#contacts-section .green-bar {
  width: 16px;
  height: 35px;
  border-radius: 4px;
  background: linear-gradient(135deg, #4ECDC4 0%, #44B8A3 100%);
  box-shadow: 0 2px 4px rgba(78, 205, 196, 0.3);
}
#contacts-section .green-bar:first-child {
  height: 23px;
  background: linear-gradient(135deg, #7ED9D1 0%, #6BC5B8 100%);
}
#contacts-section .metlit-logo img {
  max-width: 120px;
  height: auto;
  display: block;
}

/* 연락처 카드 */
#contacts-section .company-contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
}
#contacts-section .contact-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
#contacts-section .info-icon {
  color: #6c757d;
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
}
#contacts-section .info-text {
  font-size: 14px;
  color: #495057;
}
#contacts-section .info-text strong {
  color: #343a40;
  font-weight: 700;
}
#contacts-section .info-text a {
  color: #007bff;
  text-decoration: none;
}
#contacts-section .info-text a:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* 지도 */
#contacts-section .contact-map-section { }
#contacts-section .map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* 성공 메시지 */
#contacts-section .success-message {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 15px;
  border-radius: 6px;
  margin-top: 20px;
}
#contacts-section .success-icon {
  font-size: 24px;
  color: #28a745;
}
#contacts-section .success-content h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 600;
}
#contacts-section .success-content p {
  margin: 0;
  font-size: 14px;
}

/* 반응형 */
@media (max-width: 968px) {
  #contacts-section .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  #contacts-section .form-row {
    grid-template-columns: 1fr;
  }
  #contacts-section .submit-btn {
    align-self: stretch;
  }
}

/* ================= Result Section (4-Column Layout) ================= */
#result-section {
  display: none;
  background: #f8f9fa;
  position: relative;
  width: 100%;
  height: 100vh;
  grid-column: 1 / -1;
}

#result-section.active {
  display: block !important;
}

/* Result container + header */
#result-section .result-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

#result-section .result-global-header {
  padding: 14px 19px 10px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#result-section .result-global-header h1 {
  font-size: 26px;
  font-weight: 600;
  margin: 0;
}

#result-section .result-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
}

#result-section .result-close-btn:hover {
  background: #e5e7eb;
}

/* 4-column grid */
#result-section .result-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.6fr 1.7fr;
  gap: 0;
  flex: 1;
  min-height: 0;
  height: calc(100vh - 60px);
}

/* 1) Sidebar */
#result-section .result-sidebar {
  background: #fff;
  border-right: 1px solid #e5e7eb;
  padding: 19px 13px;
  overflow-y: auto;
}

#result-section .result-sidebar h3 {
  font-size: 9px;
  font-weight: 600;
  color: #9ca3af;
  margin: 6px 0 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

#result-section .result-folder-item,
#result-section .result-folder-subitem {
  display: flex;
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

#result-section .result-folder-item {
  padding: 5px 6px;
  margin-bottom: 2px;
  font-size: 10px;
  cursor: pointer;
  user-select: none;
}

#result-section .result-folder-item:hover {
  background: #f9fafb;
}

#result-section .result-folder-item.active {
  background: rgba(59, 130, 246, 0.1);
}

#result-section .result-folder-item.expanded {
  font-weight: 600;
}

#result-section .result-folder-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 14px;
}

#result-section .result-folder-icon.small {
  width: 12px;
  height: 12px;
  font-size: 12px;
}

#result-section .result-folder-subitems {
  margin-left: 22px;
  padding-left: 8px;
  border-left: 1px solid #e2e8f0;
}

#result-section .result-folder-subitem {
  padding: 4px 8px;
  margin-bottom: 1px;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}

#result-section .result-folder-subitem:hover {
  background: #f3f4f6;
}

/* 2) Main info cards */
#result-section .result-main {
  background: #fff;
  padding: 32px 16px;
  overflow-y: auto;
  border-right: 1px solid #e5e7eb;
}

#result-section .result-info-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#result-section .file-info-card,
#result-section .patient-info-card,
#result-section .scan-info-card,
#result-section .memo-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

#result-section .file-info-card h3,
#result-section .patient-info-card h3,
#result-section .scan-info-card h3,
#result-section .memo-card h3 {
  font-size: 14px;
  margin: 0 0 8px;
  color: #111827;
  font-weight: 600;
}

#result-section .info-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
}

#result-section .info-label {
  color: #6b7280;
}

#result-section .info-value {
  color: #374151;
  font-weight: 600;
}

/* 3) Spectrum column */
#result-section .spectrum-column {
  background: #fff;
  border-right: 1px solid #dee2e6;
  padding: 15px;
  overflow-y: auto;
}

#result-section .spectrum-section h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
}

#result-section .spectrum-chart {
  position: relative;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
  min-height: 200px;
}

#result-section .spectrum-chart h4 {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 12px;
  color: #495057;
  margin: 0;
}

#result-section .spectrum-svg {
  width: 100%;
  height: 160px;
}

#result-section .plotly-chart {
  width: 100%;
  height: 180px;
  min-height: 180px;
  margin-top: 20px;
}

/* Spectrum Chart with Legend (3번째 차트용) */
#result-section .spectrum-chart-with-legend {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

#result-section .spectrum-chart-with-legend .spectrum-chart {
  flex: 1;
  margin-bottom: 0;
}

/* Legend Styles */
#result-section .spectrum-legend {
  flex: 0 0 100px; /* reduce width */
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 8px; /* slightly tighter padding */
  display: flex;
  flex-direction: column;
  gap: 0px; /* use gap for spacing */
}

#result-section .legend-title {
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#result-section .legend-item {
  display: flex;
  align-items: center;
  gap: 6px; /* rely on gap instead of margins */
  font-size: 10px; /* slightly smaller to fit reduced width */
  color: #495057;
}

#result-section .legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

#result-section .legend-label {
  font-size: 8px;
  line-height: 1.2;
}

#result-section .spectrum-btn {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

#result-section .spectrum-btn:hover {
  background: #0056b3;
}

/* 4) Metabolite column */
#result-section .metabolite-column {
  background: #fff;
  padding: 15px 20px 15px 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#result-section .metabolite-section h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
}

#result-section .metabolite-button-container {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-top: 1px solid #e5e7eb;
}

#result-section .metabolite-button-container .download-btn {
  background: rgb(0, 123, 255);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

#result-section .metabolite-button-container .download-btn:hover {
  background: rgb(0, 86, 179);
}

#result-section .metabolite-button-container .report-btn {
  background: white;
  color: rgb(73, 80, 87);
  border: 1px solid rgb(206, 212, 218);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

#result-section .metabolite-button-container .report-btn:hover {
  background: #f8f9fa;
}

#result-section .metabolite-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

#result-section .display-mode {
  font-size: 12px;
  color: #6b7280;
}

#result-section .mode-btn {
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

#result-section .mode-btn:hover {
  background: #1e40af;
}

#result-section .metabolite-section {
  display: grid;
  grid-template-rows: 9fr 1fr;
  height: 100%;
  overflow: hidden;
}

#result-section .metabolite-section > div:first-child {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#result-section .metabolite-section > div:first-child > h2 {
  margin: 0 0 12px;
  flex-shrink: 0;
}

#result-section .metabolite-section > div:first-child > .metabolite-controls {
  flex-shrink: 0;
}

#result-section .metabolite-table {
  display: flex;
  flex-direction: column;
  min-width: 300px;
  flex: 1;
  overflow-y: auto;
}

#result-section .metabolite-row {
  display: grid;
  grid-template-columns: 130px 141px 50px 200px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #dee2e6;
}

#result-section .metabolite-row.header {
  font-weight: 600;
  border-bottom: 2px solid #495057;
  border-radius: 8px 8px 0 0;
  background: #f8f9fa;
}

#result-section .metabolite-name,
#result-section .metabolite-value,
#result-section .metabolite-precision-value,
#result-section .metabolite-precision {
  text-align: center;
  font-size: 14px;
  color: #495057;
}

#result-section .metabolite-name {
  text-align: left;
}

#result-section .metabolite-precision-value {
  flex: 0 0 50px;
  text-align: center;
}

#result-section .metabolite-precision {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#result-section .metabolite-color {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

#result-section .precision-scale {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  align-items: center;
  width: 100%;
}

    #result-section .precision-bar {
        height: 16px;
        border-radius: 8px;
        background: linear-gradient(90deg, #22c55e 0%, #eab308 50%, #ef4444 100%);
        position: relative;
        margin-bottom: 8px;
        margin-top: 20px;
        width: 186px;
    }

#result-section .precision-arrow {
  position: absolute;
  top: 12px; /* 게이지 바 아래에 위치 */
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #3b82f6; /* 아래를 향하는 화살표 */
  transform: translateX(-50%);
  z-index: 10;
}

#result-section .precision-value {
  position: absolute;
  top: 43px; /* 화살표 높이(8px) + 화살표 top(16px) = 24px */
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  z-index: 11;
}

#result-section .precision-scale-numbers {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #6b7280;
  margin-top: 10px; /* 화살표와 수치 공간 확보 */
  width: 180px;
}

/* 반응형 */
@media (max-width: 1200px) {
  #result-section .result-content {
    grid-template-columns: 1fr;
  }
  
  #result-section .result-sidebar,
  #result-section .result-main,
  #result-section .spectrum-column,
  #result-section .metabolite-column {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
}

/* Metabolite 콤보박스 스타일 (WPF와 동일) */
.metabolite-combobox {
  margin-top: 10px;
}

.metabolite-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 32px;
}

.metabolite-select:hover {
  border-color: #9ca3af;
}

.metabolite-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.metabolite-select option {
  padding: 8px;
  background: white;
  color: #374151;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .metabolite-select {
    padding: 6px 10px;
    font-size: 13px;
    padding-right: 28px;
  }
}

/* ========== Notes 메뉴 비활성화 스타일 ========== */
.nav-item[data-section="notes-section"] {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(100%) !important;
  user-select: none !important;
}

.nav-item[data-section="notes-section"]:hover {
  background-color: transparent !important;
  transform: none !important;
}

.nav-item[data-section="notes-section"] .nav-item-text {
  color: #9ca3af !important;
}

.nav-item[data-section="notes-section"] img {
  opacity: 0.3 !important;
  filter: grayscale(100%) !important;
}

/* === Fix column misalignment between header and body === */
#result-section .metabolite-row,
#result-section .metabolite-row.header {
 grid-template-columns: 130px 141px 50px 200px !important;
 column-gap: 0 !important;
}

#result-section .metabolite-row > *,
#result-section .metabolite-row.header > * {
 margin: 0 !important;
 padding: 0 6px !important;
 box-sizing: border-box !important;
 text-align: center;
}

#result-section .metabolite-name { text-align: left !important; }
#result-section .metabolite-value { width: 141px; justify-self: center; }
#result-section .metabolite-precision-value { width: 50px; justify-self: center; }
#result-section .metabolite-precision { display: flex; justify-content: center; align-items: center; }
#result-section .metabolite-row.header .metabolite-value { white-space: nowrap; }

/* ================= Generate Report Section ================= */
#generate-report-section {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #f8f9fa !important;
  z-index: 999999 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

#generate-report-section.active {
  display: block !important;
}

#generate-report-section.active ~ .app-container .sidebar,
body:has(#generate-report-section.active) .sidebar {
  display: none !important;
  visibility: hidden !important;
}

#generate-report-section .report-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin: 0 !important;
  width: 100% !important;
  background: white;
  border-bottom: 1px solid #dee2e6;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#generate-report-section .report-container {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 8px 8px 0 0;
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 20px !important;
  min-height: calc(100vh - 80px) !important;
}

#generate-report-section .report-header h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #495057;
}

#generate-report-section .report-header button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  color: #6c757d;
}

#generate-report-section .report-header button:hover {
  background: #f1f5f9;
}

#generate-report-section .report-container h2 {
  font-size: 24px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 30px;
}

#generate-report-section .info-sections {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

#generate-report-section .info-section {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#generate-report-section .info-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 15px;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 8px;
}

#generate-report-section .info-item {
  margin-bottom: 8px;
}

#generate-report-section .info-item span:first-child {
  font-size: 12px;
  color: #6c757d;
}

#generate-report-section .info-item span:last-child {
  font-size: 12px;
  color: #495057;
  margin-left: 10px;
}

#generate-report-section .spectrum-graphs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

#generate-report-section .graph-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
}

/* 숨겨진 그래프는 Grid에서 완전히 제거되어 공간을 차지하지 않음 */
#generate-report-section .spectrum-graphs .graph-container.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
  min-height: 0 !important;
  min-width: 0 !important;
}

/* 각 그래프 ID별로도 정의 */
#generate-report-section #report-raw-spectrum-chart.hidden,
#generate-report-section #report-preprocessed-spectrum-chart.hidden,
#generate-report-section #report-ai-spectrum-chart.hidden,
#generate-report-section #report-individual-spectrum-chart.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

/* 체크박스 색상 커스터마이징 */
#generate-report-section #raw-spectrum {
  accent-color: #ef4444 !important;
  margin-right: 8px !important;
}

#generate-report-section #pre-processed {
  accent-color: #10b981 !important;
  margin-right: 8px !important;
}

#generate-report-section #ai-predicted {
  accent-color: #3b82f6 !important;
  margin-right: 8px !important;
}

#generate-report-section #individual {
  accent-color: #8b5cf6 !important;
  margin-right: 8px !important;
}

#generate-report-section #all-sum,
#generate-report-section #individuals,
#generate-report-section #ala,
#generate-report-section #arg,
#generate-report-section #cr {
  accent-color: #6c757d !important;
  margin-right: 6px !important;
}

#generate-report-section .graph-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Comments textarea 스타일 */
#generate-report-section .comments-section textarea {
  min-height: 80px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #dee2e6;
  width: 100%;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease;
}

#generate-report-section .comments-section textarea:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#generate-report-section .comments-section textarea::placeholder {
  color: #9ca3af;
}

#generate-report-section .graph-container h4 {
  margin: 0 0 1.5rem 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #495057 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
  text-align: left !important;
  width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
  line-height: 1.4 !important;
}

/* Add spacing after h4 titles in report preview */
#generate-report-section h4 + * {
  margin-top: 0.5rem !important;
}

#generate-report-section .graph-container .plotly-chart {
  min-height: 200px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* 📥 Export 모달 스타일 */
.export-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.export-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

.export-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 580px;
  padding: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: modalFadeIn 0.2s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.export-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid #e5e7eb;
}

.export-modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.export-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: color 0.2s;
}

.export-close-btn:hover {
  color: #1f2937;
}

.export-section {
  padding: 24px 30px;
  border-bottom: 1px solid #f3f4f6;
}

.export-section:last-of-type {
  border-bottom: none;
}

.export-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
}

.export-description {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.export-label {
  font-weight: 600;
  color: #374151;
}

.export-path-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.export-browse-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.export-browse-btn:hover {
  background: #2563eb;
}

.export-path-input {
  flex: 1;
  padding: 8px 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #374151;
  font-family: 'Courier New', monospace;
}

.export-filename-input {
  width: 100%;
  padding: 8px 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 14px;
  color: #1f2937;
  transition: border-color 0.2s;
}

.export-filename-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
}

.export-format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.export-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.export-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3b82f6;
}

.export-format-text {
  font-size: 14px;
  color: #374151;
}

.export-modal-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px 30px;
  border-top: 1px solid #f3f4f6;
}

.export-submit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e5e7eb;
  color: #6b7280;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.export-submit-btn:hover {
  background: #d1d5db;
}

.export-submit-btn svg {
  color: #84cc16;
}

.export-cancel-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.export-cancel-btn:hover {
  background: #2563eb;
}

#generate-report-section .spectrum-graphs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

/* ===== Dashboard width overrides ===== */
.app-container {
  max-width: none !important;
  width: 100vw !important;
}

.main-content,
.dashboard-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.left-content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.right-sidebar {
  flex: 0 0 320px !important; /* adjust as needed */
}

#generate-report-section .spectrum-graphs .graph-container {
  overflow: hidden;
}

#generate-report-section .spectrum-graphs .graph-container h4,
#generate-report-section .spectrum-graphs h4,
#generate-report-section #report-raw-spectrum-chart h4,
#generate-report-section #report-preprocessed-spectrum-chart h4,
#generate-report-section #report-ai-spectrum-chart h4,
#generate-report-section #report-individual-spectrum-chart h4 {
  text-align: left !important;
}

#generate-report-section .spectrum-graphs .plotly-chart {
  overflow-x: hidden;
}

/* Prevent Plotly SVG container from clipping overflowed elements */
#generate-report-section .js-plotly-plot .svg-container {
  overflow: visible !important;
}

/* General fix for all Plotly charts */
.js-plotly-plot .svg-container {
  overflow: visible !important;
}

#generate-report-section .metabolite-information {
  margin-bottom: 40px;
}

#generate-report-section .metabolite-information h3 {
  font-size: 18px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 20px;
}

/* Generate Report 페이지의 metabolite-row 스타일 (Result 페이지와 동일) */
#generate-report-section .metabolite-row {
  display: grid !important;
  grid-template-columns: 120px 100px 50px 1fr !important;
  gap: 5px !important;
  padding: 6px 8px !important;
  border-bottom: 1px solid #dee2e6 !important;
  align-items: center !important;
  font-size: 12px !important;
  min-width: 0 !important;
}

#generate-report-section .metabolite-row.header {
  border-bottom: 2px solid #495057 !important;
  font-weight: 600 !important;
  color: #495057 !important;
  background: #f8f9fa !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
}

#generate-report-section .metabolite-row .metabolite-name {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px !important;
  justify-self: start !important;
  min-width: 0 !important;
}

#generate-report-section .metabolite-color {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
}

#generate-report-section .metabolite-row .metabolite-value {
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  justify-self: center !important;
}

#generate-report-section .metabolite-row .metabolite-precision-value {
  text-align: center !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  justify-self: center !important;
  min-width: 40px !important;
}

#generate-report-section .metabolite-row .metabolite-precision {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#generate-report-section .precision-scale {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  position: relative !important;
  align-items: center !important;
  width: 186px !important;
  overflow: visible !important;
}

#generate-report-section .precision-bar {
  height: 16px !important;
  border-radius: 8px !important;
  background: linear-gradient(90deg, #22c55e 0%, #eab308 50%, #ef4444 100%) !important;
  position: relative !important;
  margin-bottom: 8px !important;
  margin-top: 20px !important;
  width: 186px !important;
}

#generate-report-section .precision-arrow {
  position: absolute !important;
  top: 12px !important; /* 게이지 바 아래에 위치 */
  width: 0 !important;
  height: 0 !important;
  border-left: 6px solid transparent !important;
  border-right: 6px solid transparent !important;
  border-top: 8px solid #3b82f6 !important; /* 아래를 향하는 화살표 */
  transform: translateX(-50%) !important;
  z-index: 10 !important;
}

#generate-report-section .precision-fill {
  display: none !important;
}

#generate-report-section .precision-scale-numbers {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 10px !important;
  color: #6b7280 !important;
  margin-top: 10px !important; /* 화살표와 수치 공간 확보 */
  width: 186px !important;
}

#generate-report-section .comments-section {
  margin-bottom: 40px;
}

#generate-report-section .comments-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 20px;
}

#generate-report-section .comments-section > div {
  min-height: 80px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #dee2e6;
}

#generate-report-section .report-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 30px 0;
}

#generate-report-section .report-actions button {
  transition: all 0.2s ease;
}

#generate-report-section .report-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

#generate-report-section .report-actions button:active {
  transform: translateY(0);
}

#generate-report-section .report-actions button:first-child {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#generate-report-section .report-actions button:first-child:hover {
  background: #0056b3;
}

#generate-report-section .report-actions button:last-child {
  background: white;
  color: #6c757d;
  border: 1px solid #ced4da;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#generate-report-section .report-actions button:last-child:hover {
  background: #f8f9fa;
}

/* [MRS moved] Canonical layout lives in dashboard.css */
/* #mrs-data-section .dashboard-content {...} */
/* body.mrs-data-active #mrs-data-section .dashboard-content {...} */

