﻿/* Sidebar css */
.left-orders-layout-hidden {
    left: -260px;
}

.left-orders-layout-visible {
    left: 0;
}

.left-orders-layout-box {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 300px;
    height: auto;
    border-right: solid 1px lightgrey;
    z-index: 1;
    background-color: #fff;
}

.left-orders-content-hidden {
    margin-bottom: 10px;
    margin-top: 10px;
    display: none;
}

.left-orders-content-visible {
    margin-top: 10px;
    display: block;
}

.center-orders-visible-sidebar {
    left: 300px !important;
}

.formResultsPopupContainter {
    position: absolute;
    top: 110px;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: auto;
}

.formResultsPopupContent {
    overflow: auto;
}

    .formResultsPopupContent td {
        padding: 5px;
    }

.filterActiveBubble {
    position: absolute;
    top: 105px;
    right: 15px;
    height: 10px;
    width: 10px;
    background-color: green;
    border-radius: 50%;
}

/* To reset padding, so date and test name can be full width in popup*/
.resultsPopout .dx-popup-content {
    padding: 0 !important;
}

.resultsPopout .subTitle {
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    flex-wrap: wrap;
    padding: 5px 20px;
    background-color: #efefef;
    border-bottom: solid 1px #d7d7d7;
}

    .resultsPopout .subTitle .testTitle {
        flex: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .resultsPopout .subTitle .testDate {
        flex: 1;
        -ms-flex: 1;
        -webkit-flex: 1;
        text-align: right;
    }

/*
    For some reason max-width datalist being set form toolbar elements,
    but on resize, it gets rid of it, so removing it
*/
.resultsPopout .dx-toolbar-before .dx-item {
    max-width: none !important;
}

.review-results-popup .dx-popup-title.dx-toolbar .dx-toolbar-item {
    margin-right: 10px;
}

    .review-results-popup .dx-popup-title.dx-toolbar .dx-toolbar-item:last-child {
        padding-bottom: 4px;
        margin-right: 0;
    }

.review-results-popup h4 {
    background-color: rgba(41, 113, 197,0.3);
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 20px;
}

@media screen and (max-width: 599.99px) {
    .resultsPopout .subTitle {
        display: flex;
        display: -ms-flexbox;
        display: -webkit-flex;
        flex-direction: column;
        flex-wrap: wrap;
    }

        .resultsPopout .subTitle .testDate {
            text-align: left;
        }

    .formResultsPopupContainter {
        top: 130px;
    }

    .review-results-popup h4 {
        padding-left: 38px;
    }
}

.center-orders-layout-box {
    position: absolute !important;
    top: 0;
    left: 0px;
    right: 0;
    bottom: 0px;
    background: rgba(255,255,255, 0.9);
    overflow: auto;
    z-index: 0;
}

#filter-header {
    position: sticky;
}

#orders-filter-header {
    background-color: #efefef;
    /*border-bottom: solid 1px #d7d7d7;*/
    position: sticky;
    top: -10px;
    margin-top: 0px;
    width: 100%;
    transition: top 0.3s;
    height: 50px;
    z-index: 50;
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    /*justify-content: flex-end;*/
    align-items: center;
}

#patients-filter-header {
    background-color: #efefef;
    /*border-bottom: solid 1px #d7d7d7;*/
    position: sticky;
    top: -10px;
    margin-top: -10px;
    width: calc(100%);
    transition: top 0.3s;
    height: 45px;
    z-index: 50;
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    justify-content: center;
    align-items: center;
}

#close-patient-filter-button {
    margin-top: 10px;
    height: 100%;
    font-weight: bold !important;
    font-size: 14px;
    color: white;
    background-color: #2971c5;
    border: 2px solid #2971c5;
    width: 10%;
    text-align: center;
}

#patient-filter-button {
    margin-top: 5px;
    height: 100%;
    font-weight: bold !important;
    font-size: 14px;
    color: white;
    background-color: #2971c5;
    border: 2px solid #2971c5;
    width: 90%;
    text-align: left;
}

    #patient-filter-button .dx-button-content {
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis
    }

    #patient-filter-button .dx-button-text {
        max-width: 66vw;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis
    }

.orders-filter-button-group {
    margin-left: auto;
    margin-right: 10px;
}

#orders-filter-button {
}

#orders-cog-button {
}

#orders-filter-search {
    background-color: #fff !important;
    margin-left: 10px;
    width: 44vw;
}

#orders-grid {
    height: auto !important;
    position: relative;
}

.orders-grid-list {
    display: table;
    width: 100%;
}

.orders-grid-list-row {
    display: table-row;
    border-bottom: 4px solid #eee;
}

.left-detail-cell {
    display: table-cell;
    vertical-align: middle;
    padding-right: 30px !important;
    position: relative;
    box-sizing: border-box;
}

.left-detail-cell-extra {
    display: none;
}

.right-detail-cell {
    display: table-cell;
    vertical-align: middle;
    width: 100px;
    max-width: 300px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    word-break: break-all;
    text-overflow: ellipsis;
    padding: 0 20px;
    box-sizing: border-box;
}

@media (max-width: 450px) {
    .right-detail-cell {
        display: none;
    }

    .left-detail-cell-extra {
        display: initial;
    }
}

.patient-name-list-item {
    font-weight: 600;
}

.shaded-list-item {
    color: #969696;
}

.seen-box {
    font-size: 10px;
    font-weight: bold;
    display: inline-block;
    padding: 1px 2px;
    border-radius: 2px;
    border: solid 2px #57AD09;
    color: #57AD09;
}

.ellipsis-section {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 57px;
    text-align: center;
}

.patientOrderButton {
    z-index: 10;
    font-size: 10px;
    display: inline-block;
    text-align: center;
    padding: 3px;
    color: #5877c3;
    background-color: #efefef;
    border-radius: 2px;
    border: solid 2px #efefef;
}

.ellipsis-button {
    height: 35px;
    width: 35px;
    line-height: 35px;
    border-radius: 50%;
    background-color: #efefef;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    margin-top: 3px;
}

    .ellipsis-button:hover {
        opacity: 0.7;
    }

.service-request-list-item {
    margin-bottom: 3px;
}
