
/* ================= TABLE SCROLL ================= */

.table-responsive,
.lab-overview-scroll,
.breed-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* ================= COMMON TABLE ================= */

.table,
.table-mark{
    border: 1px solid #2125298a;
}



.table th,
.table td,
.table-mark th,
.table-mark td,
.lab-overview-table th,
.lab-overview-table td,
.breed-table th,
.breed-table td {
    border: 1px solid #2125298a !important;
    padding: 8px;
    white-space: nowrap;
}

/* ================= TABLE HEADER ================= */

.table thead th {
    position: sticky;
    top: 0;
    background: #e9ecef !important;
    z-index: 5;
}

/* ================= TABLE BODY ================= */

.table tbody th,
.table tbody td,
.table-mark tbody th,
.table-mark tbody td {
    background-color: #fff !important;
}

/* ================= LAB OVERVIEW ================= */

/* for border */
/* table bg-white text-dark table-bordered border-black border-1 align-top breed-table table-mark" */
/* .table,
.table-mark,
.breed-table {
    border: 1px solid #2125298a !important;
} */




.lab-overview-table {
    width: max-content;
    min-width: 100%;
    margin-bottom: 0;
    border-collapse: separate !important;
    border-spacing: 0;
}

/* First column - Lab Name */
.lab-overview-table th:first-child,
.lab-overview-table td:first-child {
    min-width: 320px;
    width: 320px;
    position: sticky;
    left: 0;
    z-index: 4;
    background: #fff;
}

/* Second column - Total */
.lab-overview-table th:nth-child(2),
.lab-overview-table td:nth-child(2) {
    min-width: 95px;
    width: 95px;
    position: sticky;
    left: 320px;
    z-index: 3;
    background: #fff;
    /* box-shadow: 1px 0 0 #212529; */
}

/* Sticky header columns */
.lab-overview-table thead th {
    position: sticky;
    top: 0;
    background: #e9ecef !important;
    z-index: 5;
}

.lab-overview-table thead th:first-child {
    z-index: 8;
}

.lab-overview-table thead th:nth-child(2) {
    z-index: 7;
}

/* Column width */
.w-25 {
    min-width: 79px !important;
    max-width: 80px !important;
    /* width: 140px !important; */
}

/* Failed values */
.lab-overview-table .report-danger {
    color: red;
}

/* ================= BREED REPORT ================= */

.breed-report-pane {
    display: none;
}

.breed-report-pane.is-active {
    display: block;
}

.breed-table {
    width: max-content;
    min-width: 100%;
    margin-bottom: 0;
}

.breed-table th:first-child,
.breed-table td:first-child {
    min-width: 320px;
    position: sticky;
    left: 0;
    z-index: 4;
    background: #fff;
}

.breed-table th:nth-child(2),
.breed-table td:nth-child(2) {
    min-width: 95px;
    width: 95px;
    position: sticky;
    left: 320px;
    z-index: 3;
    background: #fff;
    /*box-shadow: 1px 0 0 #212529;*/
}

/* Breed table header */
.breed-table thead th:first-child {
    z-index: 7;
}

.breed-table thead th:nth-child(2) {
    z-index: 6;
}

/* ================= TABLE MARK ================= */

.table-mark {
    width: 100%;
    border-collapse: collapse;
}

.table-mark .selected {
    background: #f8f8df !important;
}

/* Selected row */
.lab-overview-table tbody tr.selected th,
.lab-overview-table tbody tr.selected td {
    background: #f8f8df !important;
}

/* ================= MOBILE ================= */

@media (max-width: 767px) {

    .lab-overview-table th:first-child,
    .lab-overview-table td:first-child,
    .breed-table th:first-child,
    .breed-table td:first-child {
        min-width: 240px;
        width: 240px;
    }

    .lab-overview-table th:nth-child(2),
    .lab-overview-table td:nth-child(2),
    .breed-table th:nth-child(2),
    .breed-table td:nth-child(2) {
        left: 240px;
    }
}
.custom-fail-tooltip {
  --bs-tooltip-bg: var(--bd-violet-bg);
  --bs-tooltip-color: var(--bs-white);
}
