:root {
    --accordian-header-background-default: #f8f9fa;
    --accordian-header-background: var(--accordian-header-background-default);

    --accordian-border-foreground-default: #989898;
    --accordian-border-foreground: var(--accordian-border-foreground-default);
}

body {
    font-family: 'Public Sans', Arial, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1em;
    color: #000000;
    background-color: #ffffff;
}

select {
    font-size: inherit;
}

h1 {
    font-family: 'Public Sans', Arial, sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 1.75em;
    color: #002664;
    margin: 0px;
}

.nsw-h2, h2 {
    font-family: 'Public Sans', Arial, sans-serif;
    font-style: normal;
    color: #002664;
}

*+.nsw-h2, *+h2 {
    margin-top: 1.25rem;
    margin-bottom: 1rem;
}

.nsw-h3, h3 {
    font-family: 'Public Sans', Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 1.3em;
    color: #002664;
    margin-top: 0px;
    margin-bottom: 10px;
}

a {
    color: #002664;
}

a:link {
    text-decoration: underline;
}

a:visited {
    text-decoration: underline;
}

a:hover:not(.disabled) {
    text-decoration: underline;
}

a:hover[data-lightbox] {
    background-color: transparent;
    outline: 0 none;
    text-decoration: none;
}

ul, ol {
    margin-top: 16px;
    margin-bottom: 16px;
}

li {
    padding-top: 5px;
    padding-bottom: 5px;
}

table:not(.ninja) {
    border: 1px solid #dde5ed;
    margin-bottom: 10px;
    border-collapse: collapse;
}

td, th {
    padding: 5px;
}

th, table:not(.ninja) tr:first-child td {
    background-color: #eef2f6;
    border: 1px solid #dde5ed;
}

div.item-content table:not(.ninja) tr:first-child td {
    background-color: inherit;
}

table:not(.ninja) td {
    text-align: left;
    vertical-align: top;
    border: 1px solid #dde5ed;
}

table.invisible {
    border: none;
}
table.invisible th, table.invisible tr:first-child td, table.invisible td {
    background-color: transparent;
    border: none;
}

a.button {
    font-size: 1.13em;
    color: #ffffff;
    font-family: 'Public Sans Medium', Arial, sans-serif;
    font-weight: 500;
    font-style: normal;
    border: 0px;
    padding: 7px 15px 7px 15px;
    background: #002664;
    margin-top: 10px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

button:not(.ninja):not(.nsw-button):not(.webix_icon_button) i:not(.left-side) {
    padding-left: 10px;
}

button:not(.ninja):not(.nsw-button):not(.webix_icon_button) i.left-side {
    padding-right: 10px;
}

a.button {
    text-decoration: none !important;
}

button:not(.ninja):not(.nsw-button):not(.webix_icon_button):disabled {
    background: #9b9b9b;
}

.webix_view.webix_control .webix_disabled_box .webix_button {
    color: rgb(212, 215, 218) !important;
}

button.nsw-button--small {
    padding: 0.1rem 0.25rem;
    margin-top: 0.3em;
    margin-right: 0.5em;
    font-size: 0.875em;
    line-height: 1.35em;
}

.margin-wrapper {
    height: 100%;
    margin: 0 25px;
    padding: 5px 0;
}

header {
    background-color: #002664;
    color: #ffffff;
    margin: 0px;
    width: 100%;
}

header > * {
    margin: auto 25px;
}

.banner {
    width: 100%;
    height: 50px;
    background-color: #eef2f6;
}

.banner img {
    width: 100%;
    height: 50px;
}

footer {
    color: #ffffff;
    background-color: #22272B;
    margin: 10px 0px 0px 0px;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 16px 0px;
    text-align: center;
    height: auto;
}

footer img {
    height: 50px;
}

.footer-main {
    padding-bottom: 8px;
}

.footer-secondary {
    font-weight: normal;
    font-size: 0.7em;
}

.test-footer {
    position: fixed;
    height: 10px;
    bottom: 0px;
    padding: 0px;
}

footer > * {
    margin: auto 25px;
}

footer a:link {
    color: #ffffff;
    text-decoration: underline;
}

footer a:visited {
    color: #ffffff;
    text-decoration: underline;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

img {
    border: 0px;
}

label {
    margin-bottom: 0px;
}

.feature {
    color: #000000;
    background-color: #f2f2f2;
    padding: 20px 20px 20px 20px;
}

.feature.aqua {
    background-color: #d0eeee;
    color: black;
}

.feature.aqua h1, .feature.aqua h2, .feature.aqua h3 {
    color: black;
}

.feature.callout {
    text-align:center;
    line-height:1.5;
    margin-top:1rem;
}

.test-container {
    min-height: 100%;
    width: 100%;
    position: absolute;
}

.content {
    margin: 25px 25px 100px 25px;
}

.test-content {
    position: fixed;
    top: 40px;
    bottom: 10px;
    left: 0;
    right: 0;
    margin-bottom: 10px;
}

.content img {
    max-width: 100%;
}
.content a img {
    display: block;
}

.accessibility-options {
    position: absolute;
    right: 0;
    bottom: 0;
    text-align: right;
}

.nav-toolbar .accessibility-options {
    position: relative;
}

.content:not(.test-content) .accessibility-options {
    right: 25px;
    bottom: 100px;
}

.accessibility-options a:link {
    color: #002664;
    text-decoration: underline;
}

.accessibility-options a:hover {
    font-weight: bold;
}

.nav-toolbar {
    height: 100%;
    vertical-align: middle;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-toolbar-table {
    display: table;
    margin-left: auto;
    padding: 10px 0;
}

.nav-toolbar-cell {
    display: table-cell;
    border-left: solid 1px grey;
    text-align: right;
}

.nav-toolbar-cell i {
}

.nav-toolbar-cell:first-of-type {
    border-left: none;
}

.edit-icons-container {
    display: table-cell;
    border-left: solid 1px grey;
}

.clickable {
    cursor: pointer;
}

/*input {
    font-size: inherit;
}*/

/*textarea {
    font-size: inherit;
}*/

.modal-container {
    background-color: rgba(0, 0, 0, 0.7) !important;
}

.modal {
    width: 50% !important;
}

.modal-large {
    width: 90% !important;
}

.nav-bar {
    width: 100%;
    z-index: 2;
    background-color: #f2f2f2;
}

.nav-bar-inner {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
}

.nav-bar .fa-info-circle {
    font-size: 1.5em;
    color: #002664;
    display: table-cell;
    vertical-align: middle;
    text-align: right;
}

.nav-wrapper {
    text-align: left;
    vertical-align: middle;
    padding-right: 20px;
    user-select: none;
    flex-grow: 1;
}

nav {
    border-spacing: 8px;
    margin-left: -8px;
}

.nav-elem {
    background-color: #ffffff;
    border: 1px solid #002664;
    text-align: center;
    color: #002664;
    width: 2em;
    min-width: 2em;
    height: 2em;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    margin-left: 5px;
    padding-top: 0.25em;
    display: inline-block;
}

.nav-elem:focus {
    box-shadow: 0px 0px 3px #002664;
}

.nav-elem-answered {
    position: absolute;
    top: -0.5em;
    right: -0.5em;
    color: #2ecc71;
}

.nav-elem-flagged {
    position: absolute;
    top: -1.1em;
    font-size: 0.7em;
}
.nav-elem-flagged, .fa-flag {
    color: #146cfd;
}

.nav-elem-current {
    background-color: #002664;
    color: #ffffff;
}

.nav-elem-current-underline {
    position: absolute;
    bottom: -6px;
    left: -1px;
    height: 1px;
    width: calc(2em + 2px);
    background-color: #002664;
}

.left-stripe {
    border-left: solid 8px #002664;
}

.instructions {
    margin-top: 0px;
}

.instructions:empty {
    display: none;
}

.item-title {
    margin-bottom: 20px;
}

.item-title:empty {
    display: none;
}

.stimulus {
    margin-bottom: 20px;
}

.stimulus:empty {
    display: none;
}

.item-header {
    display: table;
    width: 100%;
}

.item-question {
    width: 100%;
    vertical-align: top;
}

.item-question-minimised .item-control {
    display: none;
}

.item-buttons {
    float: right;
    padding-left: 16px;
    position: relative;
    z-index: 1;
}

.item-buttons button.nsw-button {
    min-width: 6rem;
    margin-left: .5rem;
    margin-bottom: .5rem;
    padding: 0.1rem;
}

.item-visibility-button {
    float: right;
    width: 100px;
    font-size: 1em !important;
    background-color: #ffffff !important;
    color: #002664 !important;
    border: 1px solid #002664 !important;
}

.item-supplementary-button {
    float: right;
    width: 100px;
    font-size: 1em !important;
    padding-left: 16px;
}

.header-container {
    display: table;
    height: 100%;
    width: 100%;
    padding: 10px 0;
}

.header-logo-container {
    display: table-cell;
    padding: 8px 0px;
}

.header-titles-container {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
}

.header-test {
}

.header-test-title {
    font-size: 1em;
    font-weight: bold;
    display: table-cell;
    vertical-align: middle;
}

.header-test-break {
    font-size: 1em;
    display: table-cell;
    vertical-align: middle;
}

.header-test-subtitle {
    text-align: right;
    font-size: 1em;
    display: table-cell;
    vertical-align: middle;
}

.action-bar {
    display: table;
    width: 100%;
}

.action-bar a:not(.disabled) {
    cursor: pointer;
}

.action-bar-elem {
    display: table-cell;
    width: 25%;
}

.action-bar-elem-left {
    text-align: left;
}

.action-bar-elem-center {
    text-align: center;
}

.action-bar-elem-right {
    text-align: right;
}

a.disabled {
    color: #9b9b9b;
    cursor: auto;
}

.item-group-wrapper {
    height: 100%;
}

.item-group-one-col {
    overflow-y: auto;
    margin-left: -30px;
    padding-left: 30px;
}

.item-group-table {
    width: 100%;
    height: 100%;
}

.item-group-column {
    width: 50%;
    position: absolute;
    height: 100%;
}

.item-group-column-inner {
    height: 100%;
    overflow-y: auto;
    overflow-x: auto;
}

.item-group-column-bigger-left {
    width: 66% !important;
    right: 34% !important;
}

.item-group-column-bigger-right {
    width: 66% !important;
    left: 34% !important;
}

.item-group-column-smaller-left {
    width: 34% !important;
    right: 66% !important;
}

.item-group-column-smaller-right {
    width: 34% !important;
    left: 66% !important;
}

.item-group-column-left {
    left: 0%;
    right: 50%;
}

.item-group-column-left-margin {
    margin-right: 12px;
    padding-right: 10px;
    margin-left: -30px;
    padding-left: 30px;
    overflow-x: auto;
}

.item-group-column-right {
    left: 50%;
    right: 0%;
}

.item-group-column-right-margin {
    margin-left: 12px;
}

.item-group-table + * {
    clear: both;
}

.item {
    padding: 12px;
}

.item:first-of-type {
    margin-top: 0px;
}

a.finish-link {
    color: #002664;
    cursor: pointer;
}

a.dismiss-link {
    color: #ffffff;
    cursor: pointer;
}

.header-timer {
    font-weight: bold;
    display: table-cell;
    vertical-align: middle;
}

.header-link {
    display: table-cell;
    text-align: right;
    vertical-align: middle;
}

.modal-button-container {
    display: table;
    width: 100%;
    margin-top: 1em;
}

.modal-button-container-left {
    display: table-cell;
    vertical-align: middle;
    text-align: left;
}

.modal-button-container-right {
    display: table-cell;
    vertical-align: middle;
    text-align: right;
}

.cke_dialog_contents_body {
    height: auto !important;
}

.cke_focus .cke_top {
    position: sticky !important;
    top: 0;
}

.cke_toolgroup {
    transform-origin: left;
}

.popeye-modal-container {
    z-index: 10 !important;
}

::-webkit-scrollbar {
    width: 16px;
    background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    background-color: #b7b7b7;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #F5F5F5;
}

/* x-spreadsheet library overrides */
.x-spreadsheet-toolbar, .x-spreadsheet-bottombar {
    padding: 0px !important;
}
.x-spreadsheet-toolbar .x-spreadsheet-toolbar-btns {
    margin-left: 30px;
    margin-right: 30px;
}

.item-control {
    margin-top: 0;
}

.item-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 10000;
}

.item-fullscreen .item-header {
    padding: 0.5rem;
    clear: both;
}

.cke_wysiwyg_div {
    padding: 8px !important;
}

/* nsw-design overrides */
table td, table th {
    border-bottom: 0;
}

.action-bar-wrapper {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.item table {
    width: auto;
}
.item table caption, .item table td, .item table th {
    padding: 0.2em 0.6em 0.2em 0.3em;
}

.nsw-button {
    font-size: 1em;
}

.nsw-button:not(.nsw-button--flex) {
    min-width: 8rem;
}

a.nsw-button {
    text-decoration: none;
}

.nsw-masthead-covid {
    background-color: #f9be00;
    color: #fff;
    padding-top: 1em;
    padding-bottom: 1em;
    font-weight: bold;
    text-align: center;
}

.nsw-header__container, .nsw-container  {
    max-width: 100%;
    padding-left: 30px;
    padding-right: 30px;
}

/* classes for use in question html */
.hsc-tooltip {
    display: inline-block;
    position: relative;
}

.hsc-tooltip .hsc-tooltiptext {
    visibility: hidden;
    width: 22rem;
    background-color: #CDD3D6;
    color: #000;
    font-weight: 300;
    font-size: 1rem;
    text-align: left;
    padding: 1rem;
    border-radius: 6px;
    position: absolute;
    left: -12.8rem;
    margin: 0;
    top: 2.5rem;
    z-index: 1000;
}

.hsc-tooltip:hover .hsc-tooltiptext {
        visibility: visible;
}

.no-font-size {
    font-size: 14px !important;
}

.alignmid { 
	vertical-align:middle !important
}

.hoa-blank-cell {
    border: none !important;
    background-color:transparent !important;
}

.hoa-blue-th {
    background-color: rgba(95, 204, 245, 0.3) !important;
   font-weight:bold !important;
}

.hoa-code {
    font-family: monospace, 'Courier New', arial !important;
}

.hoa-input {
    border: 2px solid #146CFD;
    border-radius: 3px;
    padding: 5px 3px;
}

.hoa-midcentre {
    text-align:center !important;
    vertical-align:middle !important;
}

.hoa-q {
    font-weight: bold;
    margin-top: 0em;
    margin-bottom: 0.5em;
}

.hoa-q-1em {
    font-weight: bold;
    margin-top: 0em;
    margin-bottom: 1em;
}

.hoa-q-0em {
    font-weight: bold;
    margin-top: 0em;
    margin-bottom: 0em;
}

.hoa-p-1em {
    margin-top: 0em;
    margin-bottom: 1em;
}

.hoa-p-0em {
    margin-top: 0em;
    margin-bottom: 0em;
}

.hoa-p-025em {
    margin-top: 0.25em;
}

.hoa-p-05em {
    margin-top: 0em;
    margin-bottom: 0.5em;
}

.hoa-select {
    border: 2px solid #146CFD;
    border-radius: 3px;
    padding: 3px;
}

.hoa-select-tight {
    border: 2px solid #146CFD;
    border-radius:0px;
    padding: 0px;
}

ul.hoa-ul {
    display: block;
    margin-block-start: 0em;
    margin-block-end: 0em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 0.8em;
}

ul.hoa-ul li {
    display: list-item;
    margin-top: 0px !important;
    font-weight: bold;
}

ul.hoa-ul li.tight {
    display: list-item;
	padding-top:0.3em;
    padding-bottom:0em;
    margin-top: 0px !important;
    font-weight: bold;
}

span.hoa-li-span {
    position: relative;
    left: 1em;
}

ul.hoa-ul-2 {
    margin-top:0em;
    margin-left:0em;
}

ul.hoa-ul-2 li {
    display: list-item;
    padding-top:0.3em;
    padding-bottom:0em;
    margin-top: 0px !important;
}

li.hoa-li-tight {
    display: list-item;
    margin-top: 0px !important;
    font-weight: bold;
    padding-top:0px;

}

.zoom-window-border {
    background-image: url(zoom-icon.svg);
    cursor: url('zoom-cursor.png'), zoom-in;
    background-size: 32px;
    background-position: right top;
    background-repeat: no-repeat;
    border: 3px solid #8ce0ff;
    border-radius: 5px;
    padding: 5px;
}

/* webix overrides */
.webix_el_label.webix_disabled_view,
.webix_view.webix_control .webix_disabled_box .webix_input_icon,
.webix_view.webix_control .webix_disabled_box .webix_slider_title,
.webix_view.webix_control .webix_disabled_box button,
.webix_view.webix_control .webix_disabled_box label,
.webix_disabled_view.webix_control .webix_icon,
.webix_disabled_view.webix_control .webix_icon_btn,
.webix_toolbar .webix_disabled_view.webix_control .webix_disabled_box .webix_img_btn_text,
.webix_toolbar .webix_disabled_view.webix_control .webix_icon,
.webix_toolbar .webix_disabled_view.webix_control .webix_icon_btn {
    color: lightgrey
}

.form-canvas {
	background-image: url(data:image/svg+xml;UTF8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3Cpattern%20id%3D%22webixDiagramPattern%22%20%20width%3D%2210%22%20height%3D%2210%22%20patternUnits%3D%22userSpaceOnUse%22%3E%3Ccircle%20cx%3D%220%22%20cy%3D%220%22%20r%3D%220.5%22%20fill%3D%22%23c4c4c4%22%20%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%220%22%20r%3D%220.5%22%20fill%3D%22%23c4c4c4%22%20%2F%3E%3Ccircle%20cx%3D%220%22%20cy%3D%2210%22%20r%3D%220.5%22%20fill%3D%22%23c4c4c4%22%20%2F%3E%3Ccircle%20cx%3D%2210%22%20cy%3D%2210%22%20r%3D%220.5%22%20fill%3D%22%23c4c4c4%22%20%2F%3E%3C%2Fpattern%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22url(%23webixDiagramPattern)%22%20%2F%3E%3C%2Fsvg%3E);
    background-position: 2px 2px;
}

.ng-scope .webix_view {
    font-size: 16px;
    font-family: "Public Sans", Arial, sans-serif;
}

/* ACCORDIAN */
.accordian .accordian-header {
    background-color: var(--accordian-header-background);
    cursor: pointer;
    padding: 0.2rem;
    border: 1px solid var(--accordian-border-foreground);
    text-align: left;
    font-size: 1em;
    font-weight: bold;
    line-height: 1.8em;
}

.accordian .accordian-title {
    margin-top:0em;
    font-size:1.1em;
    color: #002664;
}

.accordian .accordian-header button {
    float: right;
    margin-top: 2px;
    margin-right: 2px;
}

.cursor-yellow .accordian .accordian-header,
.cursor-blue  .accordian .accordian-header,
.cursor-red .accordian .accordian-header,
.cursor-none .accordian .accordian-header {
    cursor: unset;
}

.accordian .accordian-item:has(.accordian-content:empty) .accordian-header > div::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    display: inline-block;
    visibility: hidden;
    transition: rotate 0.5s ease-out;
}
.accordian .accordian-item:not(:has(.accordian-content:empty)) .accordian-header > div::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    display: inline-block;
    transition: rotate 0.5s ease-out;
}

.accordian .accordian-item.active .accordian-header > div::before {
    rotate: 90deg;
}

.accordian .accordian-content {
    max-height: 0;
    opacity: 0;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow: hidden;
    border : 1px solid var(--accordian-border-foreground);
    transition: 0.5s ease-out;
}

.accordian .accordian-item.active .accordian-content {
    opacity: 1;
	max-height: none;
	height: auto;
    overflow: visible;
}