﻿body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background-color: #ffffff;
    margin: 0;
/*    padding: 20px;*/
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.tbs-logo {
    width: auto !important;
    height: 55px !important;
/*    display: fles;*/
}

/*    .tbs-logo img {
        width: 250px !important;
        height: 60px !important;
    }*/

/* 상단 타이틀 */
.page-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
    position: relative;
}

    .page-title::after {
        content: '';
        display: block;
        width: 30px;
        height: 2px;
        background-color: #333;
        margin: 15px auto 0;
    }

/* 검색 영역 */
.search-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-label {
    font-weight: 600;
    font-size: 15px;
}

.search-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    min-width: 100px;
    color: #555;
}

#search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    width: 200px;
}

#btn-search {
    background-color: darkblue;
/*    background-color: #008a5a;*/
    color: #ffffff;
    border: none;
    padding: 9px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

    #btn-search:hover {
        background-color: #007049;
    }

/* 1. 테이블을 감싸는 영역에 높이와 스크롤 설정 추가 */
.table-wrapper {
    max-height: 400px; /* 원하는 목록창 높이로 조절하세요 */
    overflow-y: auto; /* 세로 스크롤바 자동 생성 */
    border-bottom: 1px solid #ddd;
}

/* 스크롤바 디자인 커스텀 (선택 사항 - 크롬, 엣지 등 Webkit 기반 브라우저용) */
.table-wrapper::-webkit-scrollbar {
    width: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* 테이블 영역 */
.list-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
    table-layout: fixed; /* 추가: 지정한 컬럼 너비를 엄격하게 고정 */
    border-bottom: 1px solid #eee;
    /*border-bottom: 2px solid #333;*/ /* 헤더의 굵은 선과 맞춤 */
}

    .list-table th, .list-table td {
        padding: 8px 10px;
        /*        padding: 15px 10px;*/
        font-size: 14px;
    }

    .list-table th {
        position: sticky; /* 스크롤 시 상단에 고정 */
        top: 0; /* 고정될 위치 (최상단) */
        z-index: 10; /* 스크롤되는 데이터보다 위쪽에 표시되도록 설정 */

        /* 아래는 기존에 있던 스타일 유지 */
        border-top: 2px solid #333;
        border-bottom: 1px solid #ddd;
        font-weight: bold;
        color: #333;
        background-color: #fafafa; /* 배경색이 있어야 스크롤 시 글자가 겹쳐 보이지 않음 */
        padding: 15px 10px;
    }

    .list-table td {
        border-bottom: 1px solid #eee;
        color: #555;
    }

    .list-table list-body tr {        
        cursor: pointer;
        transition: background-color 0.15s;
    }

        .list-table list-body tr:hover {
            background-color: #f4fbf8; /* 마우스 오버 시 연한 녹색 배경 */
        }

    .list-table tbody tr {
        height: 38px;
    }

#table-labs tr {
    background-color: #f4fbf8; /* 마우스 오버 시 연한 녹색 배경 */
    cursor: pointer;
}


#noDataRow {
    height: 38px;
}

/* 2. 데이터 없음 메시지 스타일 */
.no-data-message {
    text-align: center !important;
    padding: 40px 10px !important; /* 위아래 여백을 넉넉히 주어 중앙에 오도록 */
    color: #666;
    background-color: #fff;
    border-bottom: none !important; /* 마지막 행이므로 개별 밑줄 제거 */
}

.text-left {
    text-align: left !important;
}

.code-text {
    color: #666;
}





.labkind-in {
    overflow: hidden;
}

.labkind-btn {
    margin-top: 10px;
    width: calc(100% - 360px);
    float: left;
}

/*.labkind-btn a {
    margin-right: 5px;
    padding: 0 5px;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 0;
    font-weight: 500;
    color: #444;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    position: relative;
}*/

.labpart {
    margin-right: 5px;
    padding: 0 5px;
    font-size: 15px !important;
    line-height: 1;
    letter-spacing: 0;
    font-weight: 500;
    color: #444;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    position: relative;
    border: none;
}

/*.labkind-btn a:first-of-type {
    padding-left: 0;
}*/

.labkind-btn button:first-of-type {
    padding-left: 0;
}

/*.labkind-separator {
    position: absolute;
    top: 0;
}*/

/*.labkind-btn a:after {
    font-size: 13px;
    content: "|";
    color: #444;
    position: absolute;
    right: -5px;
    top: 0;
}*/

.labkind-btn button:after {
    font-size: 13px;
    content: "|";
    color: #444;
    position: absolute;
    right: -5px;
    top: 0;
}

.labkind-btn {
/*    margin-top: 15px;*/
}

/*.labkind-btn a.all {
    color: #006fc4;
}*/
.labkind-btn button.all {
    color: #006fc4;
}

/*.labkind-btn a:hover {
    color: #006fc4;
}*/

.labkind-btn button:hover {
    color: #006fc4;
}

.labsearch {
    height: 35px !important;
/*    background-color: yellow;*/
}

.input-group {   
    margin-top: 0.5rem;
    margin-left: 74px
/*    margin-left: 75px;*/
}

#search-btn {
    width: 33px;
    height: 35px;
    text-align: center;
    line-height: 33px;
    border: 1px solid #0370c5;
    background: #0370c5;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
}

.labsearch {    
    
}
.labsearch {
    vertical-align: central;
/*    display: inline-block;*/
}

.lablist {
/*    margin-top: 8px;*/
}

#labiteminfo-Container {
/*    margin-left: 30px;
    margin-right: 30px;*/
}

.labitem-tolist {
    text-align: center;
}

#table-labs tbody tr:hover {
    background-color: #f2f2f2;
}

/*.labsearch{
    display:flex;
    align-items:center;
    gap:20px;
    margin-bottom:10px;
}

/* 검사 파트 버튼 영역 */
/*.labkind-btn{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
}*/

/* 버튼 */
/*.labpart{
    padding:6px 14px;
    font-size:14px;
    border-radius:18px;
    background:#f5f5f5;
    border:1px solid #ddd;
    cursor:pointer;
    transition:all .2s;
}*/

/* hover */
/*.labpart:hover{
    background:#0d6efd;
    color:white;
}*/

/* 선택 상태 */
/*.labpart.active{
    background:#0d6efd;
    color:white;
}*/

/* 검색 영역 */
/*.input-search{
    margin-left:auto;
    width:300px;
}*/

/* input group */
/*.input-group{
    display:flex;
}*/

/* 검색 입력 */
/*#search-value{
    border-radius:20px 0 0 20px;
    border:1px solid #ddd;
    padding:6px 12px;
}*/

/* 검색 버튼 */
/*#search-btn{
    border:none;
    background:#0d6efd;
    padding:6px 14px;
    border-radius:0 20px 20px 0;
}

#search-btn img{
    width:16px;
    height:16px;
}*/*/