﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: left;
}

html {
    font-size: 14px;
}

@media print {
    .not-printable, .not-printable {
        display: none !important;
    }

    body {
        font-size: 10pt;
        padding-top: 10px;
    }

    h1, .h1 {
        font-size: 30px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

.footer img.doh-logo {
    width: auto;
    height: auto;
    max-width: 255px;
}

.footer img.digital-dev-logo {
    width: auto;
    height: auto;
    max-width: 183px;
}
/* Accessibility
-------------------------------------------------- */
/* primary-btn-blue: #075692*/
/* nav-bar-teal: #005266*/

/*Primary Button - Darkened to provide more contrast*/
/*TODO revisit hover/focus etc. colours*/

.btn-primary {
    color: #ffffff;
    background-color: #075692;
    border-color: #075692;
}

    .btn-primary:focus,
    .btn-primary.focus {
        color: #ffffff;
        background-color: #064779;
        border-color: #043356;
    }

    .btn-primary:hover {
        color: #ffffff;
        background-color: #064779;
        border-color: #075896;
    }

    .btn-primary:active,
    .btn-primary.active,
    .open > .dropdown-toggle .btn-primary {
        color: #ffffff;
        background-color: #064779;
        border-color: #075896;
    }

        .btn-primary:active:hover,
        .btn-primary.active:hover,
        .open > .dropdown-toggle.btn-primary:hover,
        .btn-primary:active:focus,
        .btn-primary.active:focus,
        .open > .dropdown-toggle.btn-primary:focus,
        .btn-primary:active.focus,
        .btn-primary.active.focus,
        .open > .dropdown-toggle.btn-primary.focus {
            color: #ffffff;
            background-color: #06497d;
            border-color: #043356;
        }

    .btn-primary.disabled:hover,
    .btn-primary[disabled]:hover,
    fieldset[disabled] .btn-primary:hover,
    .btn-primary.disabled:focus,
    .btn-primary[disabled]:focus,
    fieldset[disabled] .btn-primary:focus,
    .btn-primary.disabled.focus,
    .btn-primary[disabled].focus,
    fieldset[disabled] .btn-primary.focus {
        background-color: #06497d;
        border-color: #043356;
    }

/*Success button darkened for accessibility*/
.btn-success {
    color: #ffffff;
    background-color: #308232;
    border-color: #308232;
}

    .btn-success:focus,
    .btn-success.focus {
        color: #ffffff;
        background-color: #225d23;
        border-color: #1c4c1d;
    }

    .btn-success:hover {
        color: #ffffff;
        background-color: #225d23;
        border-color: #2e7c2f;
    }

    .btn-success:active,
    .btn-success.active,
    .open > .dropdown-toggle.btn-success {
        color: #ffffff;
        background-color: #225d23;
        border-color: #2e7c2f;
    }

        .btn-success:active:hover,
        .btn-success.active:hover,
        .open > .dropdown-toggle.btn-success:hover,
        .btn-success:active:focus,
        .btn-success.active:focus,
        .open > .dropdown-toggle.btn-success:focus,
        .btn-success:active.focus,
        .btn-success.active.focus,
        .open > .dropdown-toggle.btn-success.focus {
            color: #ffffff;
            background-color: #225d23;
            border-color: #1c4c1d;
        }

    .btn-success.disabled:hover,
    .btn-success[disabled]:hover,
    fieldset[disabled] .btn-success:hover,
    .btn-success.disabled:focus,
    .btn-success[disabled]:focus,
    fieldset[disabled] .btn-success:focus,
    .btn-success.disabled.focus,
    .btn-success[disabled].focus,
    fieldset[disabled] .btn-success.focus {
        background-color: #308232;
        border-color: #308232;
    }

/*Footer Link needed to be darker for contrast. Harmonise other links to match*/
footer .btn-link {
    color: #0a4776;
}

.btn-link {
    color: #0a4776;
}

a {
    color: #0a4776;
}

.dropdown-toggle {
    color: white;
}

/*Navigation Bar White Text Dark Teal Background*/
/*TODO: Reverting to dark blue until branding Q's can be resolved.*/
/*.navbar-banner {
    background-color: #005266;
}*/
.navbar {
    background-color: #075692;
    padding-left: 6%;
}

.navbar-brand {
    color: white;
    width: 18em;
    margin-right: 0rem;
    padding-left: 0px;
    padding-right: 0px;
}

    .navbar-brand:hover,
    .navbar-brand:focus {
        color: white
    }

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    color: white;
}

.nav-item {
    color: white
}

/*Logout link on Banner*/
.navbar .btn-link {
    color: #ffffff;
    text-decoration: none;
}

    .navbar .btn-link:hover,
    .navbar .btn-link:focus {
        color: white;
        text-decoration: underline;
    }

    /*TODO: disabled colour might need adjusted - but I'd question why display a disabled link anyway*/
    .navbar .btn-link[disabled]:hover,
    fieldset[disabled] .navbar .btn-link:hover,
    .navbar .btn-link[disabled]:focus,
    fieldset[disabled] .navbar .btn-link:focus {
        color: #777777;
        text-decoration: none;
    }

/*Remove dots on menu items */
.navbar ul {
    list-style-type: none;
}

.glyphicon {
    color: white !important;
}

.panel-heading-accordion {
    background-color: #075692 !important;
    border-color: #075692 !important;
    padding: 10px !important;
    color: white;
}

.text-nav-link {
    color: black !important;
}

.chosen-container {
    font-size: 18px;
    width:100%;
}

.chosen-container-multi .chosen-choices {
    font-size: 18px;
    min-height: 45px;
    line-height: 1.5;
    background-image: none;
    font-family: inherit;
    max-width: 620px;
}

.chosen-container-multi .chosen-choices li.search-field input[type=text] {
    color: #222222;
    margin: 10px 5px;
    font-family: inherit;
}

.chosen-container-multi .chosen-choices li.search-choice {
    background-color: #ffffff;
    background-image: none;
    line-height: 14px;
}

.chosen-drop {
    max-width: 620px;
}

legend.control-label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 5px;
    border-bottom: none;
    font-weight: bold;
    font-size: inherit;
}


.container {
    width: 100%;
}

@media (min-width: 992px) {
    .container {
        width: 100%;
        max-width: 90%;
    }
}

@media (min-width: 768px) {
    .container {
        width: 100%;
        max-width: 90%;
    }

    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 100%;
        max-width: 90%;
    }
}

@media (min-width: 576px) {
    .container {
        width: 100%;
        max-width: 90%;
    }
}


.dataTables_length {
    margin-right: 25px;
}

.dataTables_wrapper .dataTables_paginate .ellipsis {
    color: #575757;
    border-color: #ddd;
    cursor: not-allowed;
    position: relative;
    float: left;
    padding: 9px 18px !important;
    line-height: 1.5;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-left: -1px;
}

.tbl-word-break {
    word-break: break-all;
}

table.dataTable td ul {
    padding-left: 0px !important;
}

table.dataTable thead th {
    padding-left: 10px !important;
}

#smdRecordsTable_wrapper .dataTables_paginate,
#auditLogReportTable_wrapper .dataTables_paginate,
#UserTable_wrapper .dataTables_paginate {
    margin: 8px 0 8px 0;
    border-radius: 0;
    display: inline-block;
}

#smdRecordsTable_wrapper .dataTables_paginate .paginate_button,
#auditLogReportTable_wrapper .dataTables_paginate .paginate_button,
#UserTable_wrapper .dataTables_paginate .paginate_button {
    position: relative;
    float: left;
    padding: 9px 18px;
    line-height: 1.5;
    text-decoration: none;
    color: #096cb8 !important;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-left: -1px;
}

#smdRecordsTable_wrapper .dataTables_paginate .paginate_button:hover,
#auditLogReportTable_wrapper .dataTables_paginate .paginate_button:hover,
#UserTable_wrapper .dataTables_paginate .paginate_button:hover {
    z-index: 2;
    color: #05416f !important;
    background: #e6e6e6 !important;
    border-color: #ddd;
}

#smdRecordsTable_wrapper .dataTables_paginate .paginate_button.current,
#auditLogReportTable_wrapper .dataTables_paginate .paginate_button.current,
#UserTable_wrapper .dataTables_paginate .paginate_button.current {
    z-index: 3;
    color: #FAFAFA !important;
    background: #075692 !important;
    border-color: #ddd;
    cursor: default;
}

#smdRecordsTable_wrapper .dataTables_paginate .paginate_button.disabled,
#auditLogReportTable_wrapper .dataTables_paginate .paginate_button.disabled,
#UserTable_wrapper .dataTables_paginate .paginate_button.disabled {
    color: #575757 !important;
    background-color: #fff !important;
    border-color: #ddd;
    cursor: not-allowed;
}

.alert {
    border: 2px solid transparent;
}

.alert-success {
    color: #000000 !important;
    background-color: #ffffff;
    border-color: #225d23 !important;
}

.alert-danger {
    color: #000000 !important;
    background-color: #ffffff;
    border-color: #e72027 !important;
}

.alert-dismissible .close {
    top: -26px;
    right: -40px;
}

.dataTables_filter input {
    background-image: url('/images/magnifyicon_21.png');
    background-repeat: no-repeat;
    background-color: #fff;
    background-position: 200px 13px !important;
    border: 1px solid #000000;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 0 !important;
}

input[type="search"]::-webkit-input-placeholder {
    color: black;
}

.form-control {
    height: 48px;
    padding: 9px 18px;
}

.dl-horizontal.left-align dt {
    white-space: nowrap;
    width: auto;
    margin-right: 8px;
    text-align: left;
}

.dl-horizontal.left-align dd {
    margin-left: 0;
}

.modal-footer {
    justify-content: initial;
}
.modal-title {
    font-size: 23px;
}
@media (min-width: 630px) {
    #cancelModal > div.modal-dialog {
        max-width: 600px;
        margin: 5px;
    }
}

@media (max-width: 400px) {
    .modal-content {
        min-width: 100% !important;
        overflow-y: auto;
    }
    .modal-footer .btn {
        white-space: normal;
        word-wrap: break-word;
    }
}

@media (max-height: 320px) {
    .modal-content {
        min-height: 100% !important;
    }
}

@media (max-width: 820px) and (min-width: 400px) {
    #cancelModal > div > .modal-footer {
        width: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

        #cancelModal > div > .modal-footer > .btn {
            margin: 5px;
        }

    .modal-content {
        height: 35%;
        min-width: 400px !important;
    }
}

@media (max-width: 1166px) {
    #cancelModal > div > .modal-footer {
        width: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    #cancelModal > div > .modal-footer .btn + .btn {
        margin-left: 0px;
        margin-bottom: 0;
        margin-top: 0px;
    }

    #cancelModal > div > .modal-footer .btn {
        margin-bottom: 10px;
    }
}


@media (min-width: 1166px) {
    .modal-content {
        width: 561px !important;
        min-height: 250px !important;
    }
}

/*Modal dialog centred with rest of screen greyed out*/
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 99; /* Sit on top */
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(110,110,110); /* Fallback color */
    background-color: rgba(90,90,90,0.7); /* Grey w/ opacity */
}

.modal-content {
    background-color: #fefefe;
    position: fixed;
    top: 38%;
    bottom: 38%;
    left: 0;
    right: 0;
    margin: auto;
    padding: 10px;
    border: 1px solid #888;
    width: 48%; /* Could be more or less, depending on screen size */
    display: none;
    box-sizing: border-box;
    z-index: 100;
    overflow: auto;
    min-height: 300px;
    min-width: 400px;
}


.modal-header .close {
    padding: 0rem 0rem;
    margin: -1rem -1rem -1rem auto;
    font-size: 32px;
    margin-top: -20px;
}

.modal-footer {
    padding: 10px;
}

.modal-body {
    padding: 10px;
}

.pseudolink {
    color: #0a4776;
    cursor: pointer;
}

    .pseudolink:hover {
        text-decoration: underline;
    }

.disableAccordionPanel {
    pointer-events: none;
}

.enableAccordionPanel {
    pointer-events: all;
}

.hidePlusSign {
    display: none;
}

/*highlight radio button label on focus - may not be supported in ie*/
/*consistent highlight on focus*/
.focused, :focus, button:focus, .form-control:focus, [tabindex="-1"]:focus, a:not([href]):not([tabindex]):focus{
    /*Thicker blue line plus shadow*/
    outline: 2px solid rgb(0,170,229) !important;
    -webkit-box-shadow: 0 0 8px 4px rgba(0,170,229,0.8);
    box-shadow: 0 0 8px 4px rgba(0, 170, 229, 0.8);
}
.btn:focus {
    /*white outline plus blue shadow*/
    outline: 2px solid rgb(255,255,255) !important;
    -webkit-box-shadow: 0px 0px 8px 4px rgba(0, 170, 229,1);
    -moz-box-shadow: 0px 0px 8px 4px rgba(0, 170, 229,1);
    box-shadow: 0px 0px 8px 4px rgba(0, 170, 229,1);
}

/*Don't want bootstrap validation highlight*/
.validation-highlight {
    border-left: none;
}

/*Accordian validation message above continue button*/
.scroll-up {
    margin-bottom: 18px;
}

.scroll-up-validation::before {
    content: "Validation failed for this section. Please scroll up to see the details.";
}

h1, .h1, h2, .h2, h3, .h3 {
    margin-top: 8px;
    margin-bottom: 8px;
}

.mb-3, .my-3 {
    margin-bottom: 5px !important;
}

/*@media (max-width: 1044px) {
    .footer {
        min-height: 142px;
        height: 0
    }
}

@media (max-width: 675px) {
    .footer {
        min-height: 205px;
        height: 0
    }
}*/

.divTable {
    display: table;
    width: 100%;
    background-color: #fff;
    border: 0;
    border-spacing: 10px;
}

.divRow {
    display: table-row;
    width: 100%;
}

.divCell {
    float: left;
    display: table-column;
    width: 50%;
    background-color: #fff;
}

@media (min-width: 576px) {
    .flex-sm-row-reverse {
        flex-direction: unset !important;
        /* flex-direction: row-reverse !important; */
    }

    .navbar-expand-sm .navbar-collapse {
        flex-basis: 100% !important;

    }
}

.chosen-container .chosen-drop {
    border-bottom: 0;
    border-top: 1px solid #aaa;
    top: auto;
    bottom: 46px;
}

caption {
    caption-side: top;
    color:black;
}

.chosen-container-multi .chosen-drop .result-selected {
    color: #ffffff;
    background-color: #075692
}

.dropdown-menu > li > a {
    text-decoration: none;
    color: #0a4776;
    background-color: #ffffff;
}


.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    text-decoration: none;
    color: #ffffff;
    background-color: #075692;
}

a.text-dark:hover, a.text-dark:focus {
    color: #ffffff !important;
}

a.skip-main {
    color: #fff;
    background-color: #075692;
    left: -999px;
    position: absolute;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}

    a.skip-main:focus, a.skip-main:active {
        color: #fff;
        background-color: #075692;
        left: 30%;
        top: auto;
        width: 20%;
        height: auto;
        overflow: auto;
        margin: 10px 35%;
        padding: 5px;
        border-radius: 15px;
        border: 4px solid #075692;
        text-align: center;
        font-size: 1.2em;
        z-index: 999;
    }

/* Accordion Heading Buttons styles start */
.panel-heading-accordion button {
    /*! display: inline-block; */
    border: none;
    margin: 2px;
    padding-bottom: 0.25em;
    padding-top: 0.25em;
    text-decoration: none;
    background: #075692;
    color: #ffffff;
    line-height: 1;
    cursor: pointer;
    text-align: left;
    transition: background 250ms ease-in-out, transform 150ms ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
}

    .panel-heading-accordion button:hover,
    .panel-heading-accordion button:focus {
        background: #075692;
    }

    .panel-heading-accordion button:focus {
        outline: 1px solid #fff;
        outline-offset: -4px;
    }

    .panel-heading-accordion button:active {
        transform: scale(0.99);
    }
/* Accordion Button styles end */

/*accordion open all button*/
.open-all-btn {
    float: right;
}
/*open all button end*/

#AgeIndex:focus
{
    border-color: #66afe9;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

/*Style that allows content that is visually hidden but still read out by screen readers*/
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}

#pageErrorSummary {
    border-bottom-color: #c71c22;
    border-left-color: #c71c22;
    border-right-color: #c71c22;
    border-top-color: #c71c22;
    background-color: #fff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-image-outset: 0 0 0 0;
    border-image-repeat: stretch stretch;
    border-image-slice: 100% 100% 100% 100%;
    border-image-source: none;
    border-image-width: 1 1 1 1;
    border-left-style: solid;
    border-left-width: 1px;
    border-right-style: solid;
    border-right-width: 1px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top-style: solid;
    border-top-width: 1px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    margin-bottom: 27px;
}

body {
    position: relative;
}

@media (max-height: 680px) {
    .noscript {
        height: 500px; /* will cover the text of the page*/
    }
}

.noscript {
    width: 100%;
    /*height: 500px;*//* will cover the text of the page*/
    z-index: 100000; /* higher than other z-index */
    position: absolute;
    top: 100px;
    bottom: 100px;
}

        .noscript #noscript-error-div {
            display: block;
            height: 100%;
            background-color: white;
        }
