/* Typeface: PublicSans;
   font-weight: bold; equivalent to 700
                SemiBold; equivalent to 600
*/

/* Font size
    1em (16px default)
    0.875em (14px)
    1.125em (18px)
    1.5em (24px)
    1.75em (28px)
    2.25em (36px)
    2.5em (40px)
    3.375em (54px) */

/* h1 default font size is 2.5em (40px)
   hr default margin top and bottom is 1rem (16px)
*/
body {
    /* Font face */
    font-family: 'Public Sans', "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#mainContent h2, #mainContent h3, #mainContent h4, #mainContent h5, #mainContent h6 {
    line-height: inherit;
}

/* Text color */
.accordion .group-desc-label, .accordion .group-date-label,
.accordion button::after {
    color: #495054;
}

#mainContent {
    line-height: inherit;
    /*background-color: #fcfcfc;*/
}

.background-block {
    background-color: rgb(230, 243, 243);
}

footer {
    position: relative;
    z-index: 1000;
}

.border-transparent {
    border: 1px solid transparent;
}
.border-dashed {
    border: 10px dashed #ebebeb;
}

.short-underline {
    color: #cdd3d6 !important;
    border-width: 2px;
    width: 30px;
    margin: 0.875rem 0px;
}

/* Top Nav */
.scrollspy-items {
    position: relative;
}
/* End top Nav */

/* Misc styling */
.bhi-icon {
    margin-bottom: 0;
}
.accordion .ap-block h3 { 
    margin-bottom: 0;
}
/*span.fak.fa-bucket-safe {
    font-size: 1.65rem;
}*/
span.fak.fa-hosp-ed-ambulance {
    font-size: 32px !important;
}
span.nodata-text {
    color: #999;  /* dark-grey-3 */
}
hr.iwc {
    border-color: #cdd3d6;
    margin-bottom: 10px;
}

.cardrow.row {
    margin-left: -30px;
    margin-right: -30px;    
}

.hero-image-div {
    margin-top: 50px;
}

.hero-image-div:before {
    content: "";
    position: absolute;
    display: block;
    background: #edeff0;
    z-index: -1;
    top: 0;
    height: 125%;
    width: 55%;
    left: 30%;
}

.hero-image {
    width: 100%;
    margin: auto;
}

.text-disabled {
    color: rgba(0,0,0,.3);
}
.bg-disabled {
    background-color: rgba(0,0,0,.3) !important;
}

.empty-message {
    font-size: 18px;
    margin-top: 15px;
}

/* margin between section */
/*.mt-section {
    margin-top: 90px;
}*/
.mb-section {
    margin-bottom: 90px;
}
.mt-sub-section {
    margin-top: 60px;
}

.accordion * {
    z-index: 0;
}

.frozen-pane {
    position: fixed;
    top: 0;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #edf1f1;
    z-index: 999999;
}

.overlay .searchBox {
    margin-top: 120px;
}

.searchBox .close-icon {
    font-size: 3em;
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
    display: none;
}

.searchBox-mb {
    margin-bottom: 575px;
}

#mainContent .heading-block h1.title {
    /* h1 default font size is 40px */
    color: rgb(52 96 102);
    font-weight: 700;
}

#mainContent .heading-block .alert {
    border-radius: 0;
}
/* End misc styling */

/* Search box dropdown menu for primary and comparison */
.searchBox .cmp-switch {
    margin-top: 20px;
}
.searchBox #cmpDiv {
    margin-top: 20px;
}
.searchBox .vs__dropdown-menu {
    color: #495054;
    margin-top: 1px;
    border-radius: 4px;
    border-top: 1px solid #ccc;
    z-index: 99999;
}
.searchBox .vs__dropdown-menu li {
    padding-left: 20px;
    padding-right: 20px;
}
.searchBox .vs__dropdown-option {
    padding: 10px 0;
    line-height: 24px;
}
.searchBox .vs__dropdown-option:first-child {
    color: #002664;
}
.searchBox #cmpDiv .vs__dropdown-option:nth-child(2) {
    color: #69418d;
}
.searchBox #cmpDiv .vs__dropdown-option:nth-child(3) {
    color: #785a19;
}
.searchBox .vs__dropdown-option:first-child,
.searchBox #cmpDiv .vs__dropdown-option:nth-child(2),
.searchBox #cmpDiv .vs__dropdown-option:nth-child(3) {
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebebeb;
}
.searchBox #cmpDiv .vs__dropdown-option:nth-child(4) {
    margin-top: 10px;
}
.searchBox #filterDiv .vs__dropdown-option.vs__dropdown-option--highlight {
    color: #fff;
    background-color: #346066;
}
.searchBox #cmpDiv .vs__dropdown-option.vs__dropdown-option--highlight {
    color: #fff;
    background-color: #db5511;
}

.searchBox .vs__dropdown-toggle {
    max-width: 100%;
    height: 50px;
    border: none;
    border-radius: 0;
    padding: 0;
}
.searchBox .vs__search {
    color: #666;
}
.searchBox .vs__search:focus {
    font-size: 1.5em;
}
.searchBox .v-select, .searchBox .vs__search {
    cursor: pointer;
}
.searchBox .vs__search, .searchBox .vs__selected {
    font-size: 1.125em;
    font-weight: 700;
}

.searchBox #filterDiv .vs--open .vs__dropdown-toggle,
.searchBox #filterDiv .v-select[title='Select hospital...'] .vs__dropdown-toggle {
    border: 3px solid #346066;
}
.searchBox #filterDiv :not(.v-select[title='Select hospital...']) .vs__dropdown-toggle {
    background-color: #edf1f1;
}
.searchBox #filterDiv .vs__search::placeholder,
.searchBox #filterDiv .vs__selected {
    color: #346066;
}

.searchBox #cmpDiv .vs--open .vs__dropdown-toggle,
.searchBox #cmpDiv .v-select[title='Select comparator...'] .vs__dropdown-toggle {
    border: 3px solid #f3631b;  /*bhi-orange*/
}
.searchBox #cmpDiv :not(.v-select[title='Select comparator...']) .vs__dropdown-toggle {
    background-color: #fcf4f0;
}
.searchBox #cmpDiv .vs__search::placeholder,
.searchBox #cmpDiv .vs__selected {
    color: #c84f11;  /*bhi-orange-dark*/
}

.searchBox .text-cmp {
    font-size: 1.125em;
    font-weight: 700;
    margin-left: 5px;
    height: 36px;
    display: flex;
    align-items: center;
}
.searchBox .vs__actions {
    width: 40px;
}
.searchBox .vs__clear {
    display: none;
}
.searchBox .vs__selected {
    margin-left: 0;
    border: none;
    background: none;
}
.searchBox .vs__search,
.searchBox .vs--open .vs__search,
.searchBox .vs__selected {
    padding: 0 1.25rem;
}

.searchBox .vs__search,
.searchBox .vs__search:focus,
.searchBox .vs__selected {
    margin: auto;
}

.searchBox .vs__search {
    padding-right: 0;
}

.searchBox ul#vs1__listbox, .searchBox ul#vs2__listbox {
    margin-top: 1px;
    padding-top: 0;
    padding-bottom: 0;
    border-radius: 0;
    max-height: 500px;
}

/*.cmp-input-bg-color {
    background-color: yellow; 
}*/
.vs__open-indicator { 
    display: none;
}
.vs__actions::after {
    content: "\f107";
    font: var(--fa-font-regular);
    width: 21px;
    height: 25px;
    font-size: 28px;
    color: #666;
}
.vs--open .vs__actions::after {
    content: "\f106";
}

/* Search box dropdown label style */
.searchBox .primary-hospital-label-active {
    color: #339999;
    border-bottom: 2px solid #339999;
}
.searchBox .primary-hospital-label-inactive {
    color: #999;
    border-bottom: 2px solid #999;
}

.searchBox .cmp-hospital-label-inactive {
    color: #999;
    border-bottom: 2px solid #999;
}
.searchBox .cmp-hospital-label-active
{
    color: #cc3300;
    border-bottom: 2px solid #cc3300;
}
/* End search box dropdown menu for primary and comparison */

/* The switch - the box around the slider */
.switch {
    position: relative;
    width: 72px;
    height: 100%;
    margin: auto;
}

/* Hide default HTML checkbox */
.switch input {
    display: none;
}

/* The slider for toggle button */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c8c8c8;
}

.slider:before {
    position: absolute;
    content: "";
    height: 30px;
    width: 30px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

/* Rounded sliders */
.slider.round {
    border-radius: 50px;
    font-size: 0.675em;
}

.slider-disabled {
    background-color: #c8c8c8c0;
}

input + .slider {
    color: #fff;
    padding-top: 8px;
    padding-left: 38px;
}
input:checked + .slider {
    padding-left: 13px;
}

input.success:checked + .slider {
    background-color: #f3631b;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(35px);
    -ms-transform: translateX(35px);
    transform: translateX(36px);
}
/* End the slider for toggle button */

/* Accordion for each measure */
.accordion .header {
    border-top: 4px solid;
    padding-top: 20px;
}

.accordion .header i.fak {
    font-size: 3.125em;
    margin-right: 15px;
}
.accordion .header:not(:first-child) {
    margin-top: 120px;
}
/* Description text of each measure in accordion */
.accordion .group-desc-label {
    font-size: 1.5em;
    line-height: 1.25;
    margin-bottom: 15px;
}
.accordion .group-date-label span {
    vertical-align: top;
}
.accordion .bhi-icon {
    /* make icon and calendar display inline */
    display: inline-block;
}
/* End accordion for each measure */

#wrapper {
    padding-left: 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}
  
/* Hospital menu */
/*.topnavbar-wrapper {
    z-index: 1000;
}*/
/*.topnavbar-wrapper.sticky-top {
    top: -10px;
}*/
.topnavbar-wrapper .navbar {
    overflow-x: auto;
  /*  background-color: #fff; deleted */
}
.topnavbar-wrapper .nav-pills {
    display: inline-flex;
    flex-wrap: nowrap;
}
.topnavbar-wrapper .nav .nav-link {
    color: #333;
    font-weight: 600;
    padding: .125rem .75rem;
    text-decoration: none;
    border-radius: 0;
    border-bottom: 4px solid #dcdcdc;
    background-color: #fcfcfc;
}

.topnavbar-wrapper .nav .nav-link span {
    font-size: 1rem;
}
.topnavbar-wrapper .nav .nav-link.disabled span {
    color: #cbcbcb;
}

.topnavbar-wrapper .nav .nav-link.text-emergency-department:hover,
.topnavbar-wrapper .nav .nav-link.text-emergency-department.active {
    color: #C31922;
    border-color: #C31922;
}
.topnavbar-wrapper .nav .nav-link.text-elective-surgery:hover,
.topnavbar-wrapper .nav .nav-link.text-elective-surgery.active {
    color: #00919c;
    border-color: #00919c;
}
.topnavbar-wrapper .nav .nav-link.text-admitted-patients:hover,
.topnavbar-wrapper .nav .nav-link.text-admitted-patients.active {
    color: #003976;
    border-color: #003976;
}
.topnavbar-wrapper .nav .nav-link.text-mental-health:hover,
.topnavbar-wrapper .nav .nav-link.text-mental-health.active {
    color: #0b3f47;
    border-color: #0b3f47;
}
.topnavbar-wrapper .nav .nav-link.text-cancer:hover,
.topnavbar-wrapper .nav .nav-link.text-cancer.active {
    color: #9a5aa4;
    border-color: #9a5aa4;
}
.topnavbar-wrapper .nav .nav-link.text-maternity-care:hover,
.topnavbar-wrapper .nav .nav-link.text-maternity-care.active {
    color: #e47725;
    border-color: #e47725;
}
/* -----------added by FA ---------*/
.topnavbar-wrapper .nav .nav-link.text-readmission:hover,
.topnavbar-wrapper .nav .nav-link.text-readmission.active {
    color: #c61f48;
    border-color: #c61f48;
}

.topnavbar-wrapper .nav .nav-link.text-mortality:hover,
.topnavbar-wrapper .nav .nav-link.text-mortality.active {
    color: #86084a;
    border-color: #86084a;
}

#readmission, #mortality{
        .green, .red, .grey, .text-dark-grey-3 {
            font-size: 1.37em !important;
            font-weight: 600;
            line-height: 1.14;
        }
        .green{
            color: #2C9000;
        }
        .red{
            color: #BF1706;
        }
        .bhi-c-card-title { 
            font-size: 18px !important;
            font-weight: 300;
        }
        .grey{
            color: #666666;
        }
        .card-diff{
                .green, .red, .grey{
                    font-size: 1.07em !important;
                    font-weight: 600;
                    line-height: 1.5;

                }
                .green{
                     color: #2C9000;
                }
                .red{
                    color: #BF1706;
                }
                .grey{
                    color: #666666;
                }
        
        }
            
    }

/* -----------End by FA ---------*/


@media screen and (max-width: 1199.98px) {
    .topnavbar-wrapper .nav-pills .nav-link {
        width: max-content;
    }
    .searchBox {
        margin-top: 25px;
    }
}

/* up to medium screen (md) mobile in landscrape view */
@media screen and (max-width: 991.98px) {
    .heading-block {
        margin-top: 110px;
    }
    .heading-underline {
        width: 95px;
        margin: 28px 0 18px 0;
    }
    .hero-image-div:before {
        top: 0;
        height: 115%;
        width: 70%;
        left: 15%;
    }    
    .topnavbar-wrapper {
        margin-top: 40px;
        margin-bottom: 60px;
    }
    .accordion .ap-block {
	    margin-top: 5px;
    }
    .accordion .ap-block h3 { 
        margin-bottom: 15px;
    }
    .accordion .header i.fak {
        font-size: 2.5em;
    }
    .accordion .group-desc-label {
        font-size: 1.125em;
        line-height: 26px;
    }
    .accordion .group-date-label {
        font-size: 1rem;
        line-height: 22px;
    }
    
    .searchBox .vs__selected-options {
        min-width: 0;
        margin: auto;
        flex-wrap: nowrap;
    }

    .searchBox .vs__dropdown-menu .vs__dropdown-option,
    .searchBox .vs__selected-options span.vs__selected {
        word-break: break-all;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .searchBox .vs__selected-options span.vs__selected {
        display: block;
    }
    
    .searchBox ul#vs1__listbox, .searchBox ul#vs2__listbox  {
        max-height: calc(100vh - 250px);
    }

    #mainContent .heading-block h1.title {
        font-size: 2.25em;
    }
    #mainContent .heading-block p {
        font-size: 0.875em;
    }
    
    hr.iwc {
        margin-top: 40px;
    }
}

/* up to small screen (sm) mobile in landscrape view */
@media screen and (max-width: 767.98px) {
    .container {
        padding: 0 15px;
    }
    .topnavbar-wrapper {
        margin-bottom: 45px;
    }
}

/* mobile phone screen (xs) */
/* @media screen and (max-width: 575.98px) {
    .card-hospital-label, .card-cmp-hospital-label {
        font-size: 1em;
    }
} */

@media (min-width: 576px) and (max-width: 1199.98px) {
    .searchBox {
        margin-top: 20%;
    }
}

/* Medium screen only / tablet (md)  */
@media screen and (min-width: 768px) and (max-width: 991.98px) {
    #mainContent .heading-block h1.title {
        font-size: 1.75em;
    }
    #mainContent .heading-block p {
        font-size: 0.875em;
    }
}

/* From large screen and up / desktop (lg+) */
@media screen and (min-width: 992px) {
    .heading-block {
        max-width: 1170px;
        margin-top: 120px;
        padding-right: 50px;
    }

    #mainContent .heading-block h1.title {
        margin-bottom: 1.875rem;
    }
    #mainContent .heading-block p {
        padding-right: 1.25em;
    }

    .topnavbar-wrapper {
        margin-top: 90px; /* if you want to be precise, when toggle is on */
        margin-bottom: 100px;
        /*justify-content: space-evenly;*/
        /*display: none;*/
    }
    .topnavbar-wrapper .navbar {
        display: inline-flex;
        align-content: center;
        width: 100%;
        padding: 0;
    }
    
    .accordion .header {
        margin-bottom: 40px;
    }
    
    .accordion .ap-block {
        margin-bottom: 10px;
    }

    .accordion .group-desc-label {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    .accordion .group-date-label {
        font-size: 1.125em;
    }
    
    .heading-underline {
        margin: 60px 0 18px 0;
    }

    /*.mt-section {
        margin-top: 180px;
    }*/
    .mb-section {
        margin-bottom: 180px;
    }
    .mt-sub-section {
        margin-top: 100px;
    }
    
    hr.iwc {
        margin-top: 60px;
    }
    /* put the following to _card.scss */
    .bhi-c-card-body.borderleft {
        padding: 0 0 0.3125rem 1.25rem;
    }
}


/* Extra large screen / wide desktop (xl) */
@media screen and (min-width: 1200px) {
    .searchBox {
        margin-top: 290px;
        margin-bottom: 76px;
    }
    .searchBox .text-cmp {
        font-size: 1.25em;
    }
    .searchBox .vs__search,
    .searchBox .vs__selected {
        font-size: 1.5em;
    }
    .searchBox .vs__dropdown-toggle {
        height: 60px;
    }
    .searchBox-mb {
        margin-bottom: 250px;
    }
    
    .topnavbar-wrapper .nav-pills {
        width: 100%;
    }

    .topnavbar-wrapper .nav-pills .nav-link {
        
        /*padding: 0 1.125em;*/
        padding: 0 .625em;
    }

    .topnavbar-wrapper .nav-pills .nav-link span {
        font-size: 1.25em;
        font-weight: 700;
    }
    /*.siteFooter {
        margin-top: 470px;
    }*/
    
    /*.topnavbar-wrapper .navbar {
        padding: 0;
    }*/
}

@media screen and (min-width: 992px) and (max-width: 1199.98px) {
    .topnavbar-wrapper .nav-pills {
        width: 100%;
    }
    .topnavbar-wrapper .nav-pills .nav-link {
        /*padding: .125em 1.25em;*/
        padding: 0 1.175em;
    }
}

@media screen and (min-width: 576px) and (max-width: 767.98px) {
    .container, .container-sm {
        max-width: 95% !important;
    }
    .heading-block {
        margin-top: 20px;
    }
}