/* NECSU Changes */

.nhsuk-font {
    font-family: Frutiger W01,Arial,Sans-serif !important;
}

html, body {
  font-family: Frutiger W01,Arial,Sans-serif !important;
  font-size: 16px;
}

a {
    font-family: Frutiger W01,Arial,Sans-serif !important;
    font-weight: bold !important;
}

h2 a {
    line-height: 2.2rem !important;
}

@media (min-width: 992px) {
    .nhsuk-width-container {
        width: 970px !important;
        max-width: 970px !important;
    }
    .nhsuk-header__navigation {
        width: 970px !important;
        max-width: 970px !important;
    }
}

@media (min-width: 1200px) {
    .nhsuk-width-container {
        width: 1170px !important;
        max-width: 1170px !important;
    }
    .nhsuk-header__navigation {
        width: 1170px !important;
        max-width: 1170px !important;
    }
}


.nhsuk-header {
    position: relative !important;
    overflow: visible !important;
}

.nhsuk-header__navigation {
    position: relative !important;
    overflow: visible !important;
}

.nhsuk-width-container {
    position: relative !important;
    overflow: visible !important;
}

.nhsuk-header__navigation-list {
    position: relative !important;
    overflow: visible !important;
    justify-content: normal !important;
}

.nav-align-right {
    margin-left: auto !important;
}

.crmEntityFormView .cell {
    padding: 10px 0 0 0;
}

@media (max-width: 767px) {
    .crmEntityFormView .cell {
        padding: 0;
    }
    .section-title {
        margin-bottom: 0 !important;
    }
}

fieldset {
    margin-bottom: 0 !important;
}

.crmEntityFormView fieldset {
    padding-bottom: 0;
}
.section-title {
    font-weight: normal !important;
}
.page_section p {
    border-top: none;
}
h4 a {
    margin-left: 0;
}
.crmEntityFormView .actions {
    margin: 0;
}
.crmEntityFormView .tab {
    margin-bottom: 0;
}

div.info label {
    font-weight: normal;
}

.boolean-radio {
    display: block;
    padding: 10px 0 0 20px;
}

details {
    margin-bottom: 0;
}

.nhsuk-expander .nhsuk-details__summary {
    .padding-bottom: 0 !important;
}

.nhsuk-details__summary-text {
    margin-bottom: 10px;
}

.page-heading {
    padding-bottom: 24px;
}

h2.tab-title {
    display: none;
}

hr {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.nhsuk-hint {
    margin-bottom: 0px !important;
}

/*
.container {
    padding: 0;
}
*/

.input-group-addon {
    padding: 6px 20px !important;
}

input[type="file"] {
    padding-bottom: 20px !important;
}

.nhsuk-button {
    margin-right: 20px;
}

.boolean-radio input[type='radio'] {
    height: 32px !important;
    width: 32px !important;
}

td.boolean-radio-cell {
    border-bottom: none !important;
}

.boolean-radio label {
    top: 5px;
    padding-left: 5px;
    margin-right: 5px;
    position: relative;
}

.radio-label {
    font-size: 19px;
    position: relative;
    top: -10px !important;
    font-weight: normal;
    margin-right: 10px !important;
}

/* Login */
#local-login-heading {
    display: none;
}

td, th {
    font-size: 16px !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    padding-bottom: 8px !important;
    padding-right: 16px !important;
    padding-top: 8px !important;
    border-bottom: 1px solid #d8dde0 !important;
    text-align: left !important;
    vertical-align: top !important;
}

.page-copy {
    margin-bottom: 10px !important;
}

.list-group {
    margin-bottom: 24px !important;
}

.list-group-item-text p {
    margin-bottom: 0 !important;
}

.launchentitylookup, .clearlookupfield {
  border: 2px solid #4c6272 !important;
  border-radius: 0 !important;
}

#odsSearch {
    padding: 3px 12px !important;
}

tr.nhsuk-form-group--error td {
    padding-left: 20px !important;
}

.nhsuk-footer__list {
    width: 100% !important;
}

.tooltip {
    font-family: Frutiger W01,Arial,Sans-serif !important;
    font-size: 16px !important;
    max-width: 200px !important;
}

.tooltip-inner {
    max-width: 350px;
    width: 350px; 
}

.nhsuk-error-summary__title {
    font-family: Frutiger W01,Arial,Sans-serif !important;
}

/* Set form-control border to match NHS styling */
.form-control {
    border: 2px solid #4c6272 !important;
}

h1, h2, h3, h4, h5 {
    font-family: Frutiger W01,Arial,Sans-serif !important;
}

h3 {
    font-size: 24px !important;
}

/* Toggle panel */

.open-sidebar {
    position: fixed;
    top: 216px;
    right: 0;
    width: 100px;
    height: 75px;
    background-color: #007f3b;
    border: 2px solid transparent;
    border-radius: 4px 0 0 4px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    margin-top: 0;
    padding: 8px 8px;
    text-align: left;
    vertical-align: middle;
    transition: right 0.3s;
    z-index: 100000;
}

.open-sidebar:focus {
    background: #ffeb3b;
    color: #212b32;
    outline: 4px solid transparent;
}

.highlight {
    background: #ffeb3b;
    color: #212b32;
    outline: 4px solid transparent;
}

.open-sidebar.is-visible {
    right: 430px;
    background: #ffeb3b;
    color: #212b32;
    outline: 4px solid transparent;
}

.off-sidebar {
    background: rgba(46, 52, 81, 0.3);
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    visibility: hidden;
    z-index: 99999;
    transition: visibility 0s 0.3s;
}

    .off-sidebar::after {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        cursor: pointer;
        transition: background 0.3s 0.3s;
    }

    .off-sidebar.is-visible {
        visibility: visible;
        transition: visibility 0s 0s;
    }

        .off-sidebar.is-visible::after {
            background: rgba(0, 0, 0, 0.6);
            transition: background 0.3s 0s;
        }

.off-sidebar-header {
    background: #fff;
    width: 100%;
    height: 60px;
    z-index: 2;
}

    .off-sidebar-header h2 {
        font-family: "Montserrat", sans-serif;
        color: #5d5386;
        padding: 25px 0 0 15px;
        font-size: 1.2rem;
        font-weight: 500;
        margin-bottom: 0;
    }

.off-sidebar-close:before {
    color: #aea9c3;
    content: "\f00d";
    font-family: 'Font Awesome 5 Pro';
    position: absolute;
    top: 15px;
    right: 15px;
    height: 35px;
    width: 35px;
    line-height: 30px;
    display: inline-block;
    border: 2px solid #aea9c3;
    border-radius: 50%;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.4;
}

.off-sidebar-container {
    background: #fff;
    position: fixed;
    width: 430px;
    height: 100%;
    top: 0;
    z-index: 100001;
    transition-property: transform;
    transition-duration: 0.3s;
    transition-delay: 0.3s;
    overflow-y: scroll;
    padding: 15px;
}

    .off-sidebar-container.mini {
        width: 150px;
    }

.from-right .off-sidebar-container {
    right: 0;
    -webkit-transform: translate3d(100%, 0, 0);
    -ms-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
}

.from-left .off-sidebar-container {
    left: 0;
    -webkit-transform: translate3d(-100%, 0, 0);
    -ms-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
}

.is-visible .off-sidebar-container {
    -webkit-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
}

.off-sidebar-content {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    padding: 0 1.07rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.off-sidebar-content .list-group-item {
    border: 0 none;
}

.off-sidebar-container {
    transition-property: transform;
    transition-duration: 0.3s !important;
    transition-delay: 0s !important;
    transition-timing-function: ease-in-out !important;
}

/* Shake Effect */
.shaker {
    animation: shake 0.5s;
    animation-iteration-count: 1;
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

/* DataTables Sort Header */
th.sorting {
    border-bottom: 5px solid transparent !important;
    transition: border 0.3s;
    cursor: pointer;
}
th.sorting_asc {
    border-bottom: 5px solid #005eb8 !important;
    transition: border 0.3s;
    background-color: #d8dde0 !important;
    cursor: pointer;
}
th.sorting_desc {
    border-bottom: 5px solid rgba(0, 94, 184, 0.5) !important;
    transition: border 0.3s;
    background-color: #d8dde0 !important;
    cursor: pointer;
}

/* select.disabled styling */
select.disabled {
    background-color: transparent !important;
}

/* Power Virtual Agent styles */
.pva-floating-style {
  position: fixed;
  bottom: 0px;
  right: 0px;
  margin-right: 16px;
  margin-bottom: 18px;
  z-index: 9999;
}
/* Power Virtual Agent styles ends */