﻿.container-main {
    display: flex;
    gap: 12px;
}
/*.labreceipt-wrap {
    width: 35%;
}

.labresult-wrap {
    width: 65%;
}*/

.container-main {
    /*display: flex;
    flex-direction: row;*/
}

.container-option {
    
}

/* 이 페이지에서만 _Layout의 헤더 숨김 강제 적용 */
#header, #footer {
    display: none !important;
}

/* 이 페이지에서만 메인 상단 여백 제거 */
main {
    padding-top: 0 !important;
}

.tbs-logo {
    width: auto !important;
    height: 55px !important;
}

.searchbar {
    position: fixed;
    top: 65px;
    left: 0px;
    right: 0;
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    background-clip: border-box;
    z-index: 10;
}

@media(max-width:1200px) {
    .container-main {
        display: flex;
        flex-direction: column;
        gap: 5px;
        /*grid-template-columns: 1fr;
        height: auto;*/
    }

    .labreceipt-wrap {
/*        margin-top: 40px;*/
/*        margin-left: -180px;*/
    }

    .labreceipt-area {    
        width: 280%;
/*        width: 1100px;*/
    }
    .labresult-area {
        /*        margin-left: 5px;*/
        width: 150.7%;
/*        width: 1100px;*/
    }

    .labresult-wrap {
        /*        display: inline;*/
    }
    /*.labreceipt-wrap,
    .labresult-wrap {
        width: 100%;
    }*/

    .search-action {
/*        display: inline-block;*/
    /*.btn-search {*/
/*        margin-top: 28px;*/
/*        margin-bottom: 3px;*/
/*        margin-left: px;*/
/*        background-color: lightskyblue;*/
/*        display: inline-block;*/
    }

    .btn-search {
/*        margin-top: -10px;*/
    }

    #labresult-lists {
/*        background-color: yellow;*/
        height: 250px;
    }

    #labresult-list {
        /*        background-color: greenyellow;*/
        /*        height: 200px;*/
        /*display: flex;
        overflow-x: hidden;
        box-sizing: border-box;
        table-layout: fixed;
        width: 100%;*/
    }

    /*#labresult-list .row {
        margin-left: 0;
        margin-right: 0;
    }*/

    #labresult-info {
/*        height: 75px;*/
    }

    #labresult-items {
        /*        background-color: yellow;*/
        height: 50vh;
/*        height: 400px;*/
    }



    .labresult-area, table {
/*        height: 500px;*/
    }

    .labreceipt-area {
/*        margin-top: 50px;*/
    }

    .labreceipt-area, .labresult-area {
/*        height: 500px;*/
/*        width: 250%;*/
    }
    .scroll-container, .detail {
        height: 300px;
    }
}

th {
    cursor: pointer;
    user-select: none;
}

/* 헤더 클릭 정렬 */
th.sorted {
    background-color: #e3f2fd;
    color: #0d47a1;
}

th.sorted.asc {
    color: dodgerblue; /*#2ecc71;*/ /* 오름차순 */
}

th.sorted.desc {
    color: indianred; /*#e74c3c;*/ /* 내림차순 */
}

/*.sort-icon {*/
    /*margin-left: 4px;
    font-size: 11px;*/
/*}

.sortable-table th {
    position: relative;*/ /* ⭐ 필수 */
    /*cursor: pointer;
}

.sortable-table th::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 6px;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 9999;
}

.sortable-table th:hover::after {
    opacity: 1;
}*/
/**/

/* 결과조회 헤더 바*/
.navbar-labresult {
    background-color: white !important;
}

#labresult-top-logo:hover {
    cursor: pointer;
}

/* 일자종류 선택 */
.search-dateterm .d-flex {
    flex-wrap: nowrap;
}

.date-type {
    display: flex;
    align-items: center;
    white-space: nowrap;
    font-size: 14px;
    width: 180px !important;
}

    .date-type input {
        margin-right: 4px;
    }

    .date-type label {
        display: flex;
        align-items: center;
        white-space: nowrap;
        gap: 4px;
        margin-right: 10px;
        cursor: pointer;
    }

/**/
.search-labkind {
    flex-direction: column;
    align-content: flex-start !important;
    flex-wrap: wrap;
    justify-content: center;

    margin-top: -12px;
    margin-left: 10px;
}

/* 로딩 메세지 */
/*#labresult-item .loading-row td {*/
.loading-row td {
    text-align: center;
/*    height: 50px !important;*/
    color: midnightblue; /*#888;*/
    padding: 20px;
/*    font-style: italic;*/
}

.loading-text {
    font-weight: 500;
}

.loading-text .dot {
    opacity: 0;
    animation: blink 1.4s infinite;
}

.loading-text .dot:nth-child(1) {
    animation-delay: 0s;
}

.loading-text .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-text .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}
/*.loading-text::after {
    content: '';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0% {
        content: '';
    }

    33% {
        content: '.';
    }

    66% {
        content: '..';
    }

    100% {
        content: '...';
    }
}*/
/**/

/* 오버레이 방식 */
.loading-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	z-index: 10;
}

.loading-overlay.hidden {
	display: none;
}
/**/

/* 다운로드 */
#download-help {
    font-size: 12px;
}

/*#labresult-excel {
    background-color: lawngreen !important;
    color: white;
}*/

/*#labresult-jpg {
    background-color: midnightblue;
    color: white;
}*/

/*#labresult-pdf {
    background-color: orangered;
    color: white;
}*/

#labresult-excel {
    height: 22px;
    width: 30px !important;
    color: white;
    background-color: mediumseagreen !important;
    border-radius: 5px 0 0 5px; /* 상우하좌 순서로 적용 */
    border: none;
    border-width: thin;
}

#labresult-jpg {
    height: 22px;
    width: 30px !important;
    color: white;
    background-color: cornflowerblue !important;
    border-radius: 0 0 0 0; /* 상우하좌 순서로 적용 */
    border: none;
    border-width: thin;
}

#labresult-pdf {
    height: 22px;
    width: 30px !important;
    color: white;
    background-color: palevioletred !important;
    border-radius: 0 5px 5px 0; /* 상우하좌 순서로 적용 */
    border: none;
    border-width: thin;
}

#labresult-excel, #labresult-jpg, #labresult-pdf {
    /*    margin-top: 2px;
    padding-left: 0px;
    padding-right: 0px;*/
}

#labresult-excel:hover, #labresult-jpg:hover, #labresult-pdf:hover {
    background-color: dimgray !important; /* 호버 시 배경색 */
    color: white;
}

/*input[name="labresult-labkind"] {
    color: red !important;
    
}*/

.labresult-labkind {
    border: none;
    background-color: dodgerblue;
}

.form-check-input {
/*    height: 20px;*/
}

.switcher-btn {
    height: 170px;
    width: 40px;
    background-color: dodgerblue;
}

.switcher-btn-label {
    font-size: 17px !important;
}

.switcher-title-prior-lab {
    font-size: 1.2em;
}

/*.btnSearch {
    border: none;
    background-color: dodgerblue;
}*/
.form-check-input {
    width: 10px;
    height: 10px;
}

/* 접수 목록 */
.labresult-lab-status {
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    width: 70px;
    height: 20px;
    font-size: 12px;
    border-radius: 4px;
}

.labresult-lab-inspect {
    background-color: deepskyblue !important;
    color: white;
}

.labresult-lab-partial {
    background-color: lightskyblue !important;
    color: white;
}

.labresult-lab-finished {
    background-color: palevioletred !important;
    color: white;
}

.labresult-lab-middle {
    background-color: lightpink !important;
    color: white;
}

/* 검사 결과 */

.kcl-logo-icon {
/*    display: block;*/
    max-width: none;
    width: 20px;
    height: 20px;
    /*    object-fit: cover;*/
    margin-top: 7px;
}

.download-icon {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    width: 24px;
/*    height: 24px;*/
/*    display: block;*/
}

.download-jpg {
    width: 24px !important;
}

.download-pdf {
    width: 24px !important;
}

#labresult-check-labconfirm {
    position: absolute;
    opacity: 0;
}

/* 라디오 모양 */
#labresult-list-confirm .circle {
    width: 14px;
    height: 14px;
    border: 1px solid #666;
    border-radius: 50%;
    margin-top: 2px;
    display: inline-block;
    position: relative;
    cursor: pointer;
/*    pointer-events: none;*/
}

/* 체크 시 내부 점 */
#labresult-list-confirm input:checked + .circle::after {
    content: "";
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#labresult-list tbody tr:hover td {
    background-color: beige; /*#f5f7fa;*/
}

#labresult-items tbody tr:hover td {
    background-color: beige; /*#f5f7fa;*/
}

/**/
.custom-checkbox {
    cursor: pointer;
    user-select: none;
    margin-top: 3px; /* 위쪽 여백 */
}

    /* 실제 checkbox 숨기기 */
    .custom-checkbox input {
        position: absolute;
        opacity: 0;
    }

    /* 체크박스 */
    .custom-checkbox .checkmark {
        width: 14px; /* 크기 약간 확대 */
        height: 14px;
        border: 2px solid #bbb; /* 연한 테두리 */
        border-radius: 0;
        display: inline-block;
        position: relative;
    }

    /* 체크되었을 때 */
    .custom-checkbox input:checked + .checkmark {
        background-color: #0d6efd;
        border-color: #0d6efd;
    }

    /* 체크 표시 */
    .custom-checkbox .checkmark::after {
        content: "";
        position: absolute;
        display: none;
    }

    /* 체크 아이콘 */
    .custom-checkbox input:checked + .checkmark::after {
        display: block;
        left: 4px;
        top: 1px;
        width: 4px;
        height: 7px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }
/*#labresult-report-popup {
    width: 14px !important;
    height: 14px !important;
    margin-right: 6px;
    margin-top: 2px;
    border-radius: 0 !important;*/ /* 완전 정사각형 */
/*}*/

/**/
.labkind-btn {
    border: 1px solid #d0d0d0;
    background: #f8f9fa;
    color: #333;
    padding: 3px 10px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: all .15s ease;
}

    .labkind-btn.active {
        border: 1px solid #d0d0d0;
        background: #f8f9fa;
        color: #333;
        padding: 3px 10px;
        font-size: 13px;
        border-radius: 4px;
        cursor: pointer;
        transition: all .15s ease;
    }

    /* hover */
    .labkind-btn:hover {
        background: #e9ecef;
    }

    /* 선택 상태 */
    .labkind-btn.active {
        background: #0d6efd;
        border-color: #0d6efd;
        color: #fff;
    }

/**/
#labresult-text {
    display: none;
/*    position: fixed;*/
/*    top: 0;*/
/*    left: 0;*/
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

#labresult-text-popup {
/*    position: fixed;*/
/*    top: 50%;*/
/*    left: 50%;*/
/*    transform: translate(-50%, -50%);*/
    background: white;
    padding: 20px;
    border-radius: 10px;
}

#labresult-text-lead {
    width: 65px;
}

#labresult-text-close {
    margin-top: 30px;
}

#labresult-text-contents {
    font-family: monospace !important;
    white-space: pre !important;
}

.fixed-text {
    font-family: monospace !important;
    white-space: pre !important;
    /*    width: 150px;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;*/
}

/*.fixed-cell {
    border: 1px solid #ccc;
    padding: 4px 8px;
    white-space: pre;
}*/

/*.row {
    display: flex;
}

.cell {
    display: inline-block;*/ /* 또는 display: table-cell */
    /*width: 150px;
    border: 1px solid #333;
    padding: 5px;
    user-select: text;*/ /* 셀 내부 텍스트만 선택 가능 */
/*}*/

/*.labresult-text-container {
    display: flex;*/ /* 가로로 열 배치 */
/*}*/

#resultTable-container {
    display: none;
}

.labresult-text-container {
    /*display: flex;*/ /* 가로로 열 배치 */
}

.row {
    display: flex;
}

    .column {
    display: flex;
    flex-direction: row; /* 세로로 데이터 쌓기 */
    margin-right: 20px;
    border: 1px solid #333;
    padding: 5px;
}

.cell {
    padding: 4px;
    border-bottom: 1px solid #ccc;
}

    .cell:last-child {
        border-bottom: none;
    }
/*.labresult-text-container {
    display: table;
    border-collapse: collapse;
}

.row {
    display: table-row;
}

.cell {
    display: table-cell;
    border: 1px solid #333;
    padding: 5px;
    user-select: text;*/ /* 셀 내부만 선택 가능 */
/*}*/
/*.row {
    display: flex;*/ /* 가로로 셀 배치 */
    /*margin-bottom: 4px;*/ /* 행 간격 */
/*}

.cell {
    width: 120px;*/ /* 셀 너비 */
    /*border: 1px solid #333;
    padding: 5px;
}*/
/*.column {
    display: flex;
    flex-direction: column;*/ /* 세로로 데이터 쌓기 */
    /*margin-right: 20px;
    border: 1px solid #333;
    padding: 5px;
}

.cell {
    padding: 4px;
    border-bottom: 1px solid #ccc;
}

    .cell:last-child {
        border-bottom: none;
    }*/


.cell {
    border: 1px solid #ccc;
    padding: 5px;
    user-select: none;
    /*    user-select: none;*/
    cursor: pointer;
}

    .cell.selected {
        background-color: #99ccff;
    }

/*#emr-excel-upload {
    display: flex;
    align-items: center;
}*/