/**
 * Azorus overrides for AUI css.
 */

:root {
    --az-aui-pageHeader-bgColor: var(--az-color-ice-20);

    --az-aui-content-pane-headerColor: var(--az-color-ice-35);

    /* Content section: backdrop behind panes */
    --az-aui-content-pane-backdropColor: var(--az-color-grey-80);
}
 
body {
    background-color: #ffffff !important;
}

.ui-dialog a:link,
.ui-dialog a:visited, 
.ui-dialog a:active {
    color: #005074;
    text-decoration: none;
}

.ui-dialog a:hover {
    color: #ed4a2d;
    text-decoration: none;
}

/* Buttons in dialogs must have white text as they have AzOrange background */
.ui-dialog a.ui-button:hover {
    color: #ffffff;
}

#page {
    min-width: 1050px;

    /* Required for 'sticky' footer to work, particularly in Safari */
    min-height: 100%;
    height: auto;
}

#header .aui-header {
    background: #202633;
    border-bottom: 1px solid #ed4a2d;
}

/* Add some visual flavour to the top-level menu and top-level icons when hovering */
.aui-header .aui-header-primary li a:hover {
    color: #333333;
    transition: color 0.75s ease;
}
.aui-header .aui-header-secondary li a:hover {
    color: #333333;
    transition: color 0.75s ease;
}

/* When not in header, swap opacity */
.az-icon.--azIcon-reverseColor {
    --fa-primary-opacity: 0.4;
    --fa-secondary-opacity: 1.0;
}

form.aui-button,
form.aui .button,
.aui-button,
.aui-button:visited,
a.aui-button {
    align-items: center;
    background-color: #fdfdfd;
    display: inline-flex;
    height: 2rem;
    padding: 0.25rem 0.5rem;
}

.aui-button-subtle.aui-button:focus, .aui-button-subtle.aui-button:hover, .aui-button:focus, .aui-button:hover {
    background-color: #f3f3f3;
}

.aui-button[disabled=disabled] {
    opacity: 0.7;
}

/* Give aui button icons (except primary) some transparency */
.aui-button:not(.aui-button-primary) .az-icon {
    opacity: 0.75;
}

.aui-button .aui-button-container {
    align-items: center;
    display: inline-flex;
    height: 100%;
}

.aui-button .az-icon {
    display: inline-block;
}

/* When we have an icon followed immediately by text, put a gap between */
.aui-button .az-icon + .aui-button-text {
    margin-left: 0.375rem;
}

.aui-button .aui-button-text {
    display: inline-block;
    font-size: 1rem;
    line-height: 1rem;
}

.aui-button .aui-button-text {
}

.aui-button .az-help-question {
    font-size: 1rem;
}

.aui-button.aui-button-primary .az-help-question {
    color: #ffffff;
}

.aui-button.aui-button-primary {
    font-weight: 400;
}

.aui-button, .aui-button:visited, a.aui-button {
    font-weight: 300;
}

.aui-buttons .fa-plus-circle, .aui-button .fa-plus-circle {
    --fa-primary-color: #ffffff;
    --fa-secondary-color: #009cc0;
    --fa-secondary-opacity: 1.0;
}

.aui-buttons .aui-button ~ .aui-button {
    padding-left: 0.5rem;
}

.aui-buttons .aui-button:first-child {
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.aui-buttons .aui-button:last-child {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.ui-widget button.aui-button {
    font-size: 1rem;
    line-height: 1rem;
}

.az-collapsible .az-collapsible-heading .az-collapsible-indicators {
    display: inline-block;
    text-align: center;
    width: 1.25rem;
}

.aui-tabs {
    font-size: inherit;
}

.aui-page-header {
    background-color: var(--az-aui-pageHeader-bgColor);
    color: #ffffff;
}

.aui-page-header .page-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 400;
}

#content > .aui-page-header {
    padding: 0.75rem 1rem;
}

.aui-page-header-actions .aui-button {
    border-color: var(--az-aui-pageHeader-bgColor);
}

.aui-page-header .aui-page-header-actions .aui-button:hover {
    border-color: var(--az-aui-pageHeader-bgColor);
    background-color: #e0e0e0;
}

.aui-page-header-inner {
    align-items: center;
    display: flex;
}

.aui-page-header-inner .aui-page-header-main {
    flex-grow: 1;
}

.aui-page-header .aui-nav-breadcrumbs {
    color: #ffffff;
    font-weight: 400; /* links */
}

.aui-nav-breadcrumbs > li {
    padding: 0 0.375rem 0 0;
}

.aui-nav-breadcrumbs > li + li::before {
    content: "\f054";
    font-family: "Font Awesome 7 Pro";
    font-size: 0.6875rem;
    padding-right: 0.375rem;
}

.aui-page-header .aui-page-header-main a {
    font-weight: normal;
    text-decoration: none;
    color: #cce2ff;
}

.aui-page-header-image {
    align-items: center;
    background-color: white;
    border-radius: 50%;
    border: none;
    color: #1e3050;
    display: inline-flex;
    flex-shrink: 0;
    height: 5rem;
    justify-content: center;
    overflow: hidden;
    width: 5rem;
}

.aui-page-header-image .az-page-header-icon {
    font-size: 3rem;
}

/* Override aui padding-left: 10px */
.aui-page-header-image + .aui-page-header-main {
    padding-left: 1rem;
}

.aui-label.az-label {
    font-size: 1em;
    margin-right: 0;
    padding: 0.2em 0.3em;
}

.aui-label.az-label .az-icon {
    font-size: 1em;
    margin-right: 0.2em;
    margin-left: 0.2em;
}

a.aui-label.az-label:hover {
    color: #ed4a2d;
    text-decoration: none;
    border-color: #ed4a2d;
}

a.aui-label.az-label.az-label-disabled {
    color: #888888;
    cursor: not-allowed;
    border-color: #bbbbbb;
}

.aui-label.aui-label-closable .aui-icon.aui-icon-close {
    zoom: 0.8;
    -moz-transform: scale(0.8);
}

.aui-label {
    font-weight: 300;
}

.aui-header .aui-dropdown2-trigger.active,
.aui-header a:focus,
.aui-header a:hover,
.aui-header a:active {
    background-color: #ed4a2d;
}

.aui-dropdown2-in-header {
    z-index: 100;
}

#header .aui-header .aui-nav a {
    line-height: 1.2;
}

#header .aui-header .aui-nav span.az-icon {
    font-size: 1.4em;
    margin-right: 2px;
}

#header .aui-header a {
    padding: 13px 6px;
}

#header .aui-header .aui-header-logo a {
    padding: 0 15px;
}

.aui-dropdown2.aui-style-default .active {
    background-color: #ed4a2d;
}

.aui-dropdown2 .shortcut {
    opacity: 0.7;
    position: absolute;
    right: 0.75em;
    font-style: italic;
    padding-left: 0.5em;
}

.aui-dropdown2 .aui-list-truncate li a {
    padding-right: 4em;
}

.aui-dropdown2-section .aui-icon-container .az-icon {
    position: absolute;
    left: 8px;
    top: 3px;
    font-size: 1.5em;
}

.aui-page-panel {
    border: none;
}

.aui-navgroup-horizontal {
    border-top: none;
    background-color: #ffffff;
}

.aui-navgroup-horizontal .aui-nav > .aui-nav-selected a {
    font-weight: 400;
}

.aui-navgroup-horizontal .aui-nav>.aui-nav-selected a:after {
    border-bottom-color: #f9f9f9;
}

/** Do not allow wrapping of vertical nav headings */
.aui-navgroup-vertical .aui-nav-heading {
    white-space: nowrap;
}

.aui-navgroup.aui-navgroup-vertical .aui-badge {
    float: right;
}

.aui-page-panel-nav {
    min-width: 240px;
}

.aui-page-panel-nav .aui-navgroup-vertical .aui-nav-selected {
    background-color: #fbdbd5;
    border-left: 0.25rem #ed4a2d solid;
}

.aui-nav-vertical .aui-nav .aui-nav-selected>a, .aui-navgroup-vertical .aui-nav .aui-nav-selected>a {
    font-weight: normal;
    color: #000000;
}

/* Triangle that cuts in from below on horizontal nav items */
.aui-navgroup-horizontal .aui-nav > .aui-nav-selected a::after {
    border-bottom-color: var(--az-aui-content-pane-backdropColor);
}

.aui-nav-heading {
    font-size: 1.125em;
    text-transform: none;
}

/* When there are panes, we use a darker BG on the main panel */
section#content.az-admin-panes {
    background: var(--az-aui-content-pane-backdropColor);
}

section#content.az-admin-panes .aui-page-panel {
    background: transparent;
    height: auto;
}

section#content.az-admin-panes .aui-page-panel .aui-page-panel-content {
    padding: 0 0 24px 0;
}

.az-datatable thead th .az-icon.az-help {
    color: white;
    margin: 0 0.25em;
    font-size: 1.1em;
}

/**************************/
/* Pane                   */

.aui-page-panel .az-pane {

    display: inline-table;
    vertical-align: top;

    overflow: clip;
    background: #ffffff;
    box-shadow: 6px 6px 12px 0 rgba(0, 0, 0, 0.15);
    border-radius: 10px;

    box-sizing: border-box;

    margin-top: 24px;
    margin-left: 24px;
}

.az-pane-header,
.az-pane-footer {
    display: table-row;
    height: max-content;
}

.az-pane-content {
    width: calc(100% - 48px);
    height: 100%;
    padding: 24px;
    overflow: clip;
}

.az-pane-header-content {
    background-color: var(--az-aui-content-pane-headerColor);
    color: white;
    display: table;
    font-size: 1.25rem;
    font-weight: 400;
    padding: 6px 12px;
    width: calc(100% - 24px);
}

.az-pane-header az-icon,
.az-pane-header .az-icon {
    display: table-cell;
    height: 100%;
    vertical-align: middle;
    padding-right: 6px;
    padding-top: 1px;
    width: 1em;
}

.az-pane-header .az-pane-header-text {
    display: table-cell;
    height: 100%;
    vertical-align: middle;
}

.az-pane-divider {
    height: 1px;
    width: 100%;
    background-color: lightgray;
}

.az-pane-footer-content {
    padding: 12px;
}

/**************************/
/* Pane dimensions        */

.az-pane-full {
    width: calc(100% - 48px);
    min-width: 960px;
}

.az-pane-25 {
    width: calc((100% - 120px) / 4);
    min-width: 240px;
}

.az-pane-50 {
    width: calc((100% - 72px) / 2);
    min-width: 480px;
}

.az-pane-66 {
    /* Match width of 2x 33% panes, with 24px padding */
    width: calc((((100% - 96px) / 3) * 2) + 24px);
    min-width: 720px;
}

.az-pane-33 {
    width: calc((100% - 96px) / 3);
    min-width: 320px;
}


/* Ensure loading div is on top of inputs */
.az-loading {
    z-index: 1;
}

/*******************************************/
/* split a div into 50/50 w/ a divider
 */

.az-split {
    display: block;
    overflow: hidden;
}

.az-split-left {
    padding-right: 24px;
    border-right: 1px solid lightgray;
}

.az-split-right {
    padding-left: 24px;
}

.az-split-left, .az-split-right {

    vertical-align: top;
    display: inline-block;

    /* 50% - ( 24px padding + 1px border ) */
    width: calc(50% - 25px);
    height: 100%;
}

/* Make aui labels within a message a reasonable size. */
.aui-message {
    padding-top:    0.5rem;
    padding-bottom: 0.5rem;
}

/* aui-message: Override all px dimensions to be font-size-relative */
.aui-message:before {
    width: 2.5rem;
}

.aui-message::after {
    font-size: 1rem;
    left: 0.75rem;
    margin-top: -0.5rem;
}

.aui-message.aui-message-inline {
    display: inline-block;
}

.aui-message p.title {
    font-size: 1.1em;
    font-weight: 400;
}

/* Fontawesome overrides for aui-message custom font */
.aui-message.error:after {
    font-family: "Font Awesome 7 Pro";
    content: "\f06a";
    font-weight: 900;
}

.aui-message.success:after {
    font-family: "Font Awesome 7 Pro";
    content: "\f00c";
    font-weight: 900;
}

.aui-message.warning:after {
    font-family: "Font Awesome 7 Pro";
    content: "\f071";
    font-weight: 900;
}

.aui-message.hint:after,
.aui-message.generic:after {
    font-family: "Font Awesome 7 Pro";
    content: "\f05a";
    font-weight: 900;
}


/******************************************************/
/* Overrides to remove avatar border and box-shadow. */

.aui-avatar-project:before {
    border: none;
}

.aui-avatar-project {
    box-shadow: none;
}
/******************************************************/

/**************************************************************/
/* AUI Forms (including fixes for our non-standard font size) */

/* Forms are non-structural elements, and should not have any margin */
form.aui {
    margin-top: 0;
}

form.aui label, form.aui legend {
    color: #000000;
}

form.aui .text, form.aui .password, form.aui .select {
    height: 2rem;
}

form.aui div.checkbox, form.aui div.radio {
    padding: 0 0 0 28px;
}

form.aui .checkbox > label, form.aui .radio > label {
    line-height: 1.6;
}

form.aui .field-group > .value {
    padding-top: 5px;
}

form.aui .field-group .az-help {
    margin-left: 0.25em;
}

section#content {
    border-bottom: 1px solid #d0d6d9;
}

#footer {
    border-top: 1px solid #ed4a2d;
    background-color: #ffffff;
}

#footer a:link,
#footer a:visited,
#footer a:active,
#footer .footer-body {
    color: #333333;
    text-decoration: none;
}
#footer a:hover {
    color: #ed4a2d;
    text-decoration: none;
}

#footer .footer-body {
    background: none;
    padding-bottom: 0 !important;
}

.az-product-logo {
    display: inline-block;
    background-image: url("/AzAdmin/img/admin-login-logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    width: 200px;
    height: 25px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1rem;
}

/*
 * Lozenge updates
 */

.aui-lozenge {
    align-items: center;
    border-radius: 0.25em;
    display: inline-flex;
    font-size: 1.0em;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0.25em 0.25em;
    text-decoration: none;
    text-transform: none;
    background: #555555;
    border: 1px solid #555555;
    color: #ffffff;
}

.aui-lozenge.aui-lozenge-subtle {
    background-color: #ffffff;
    border-color: #999999;
    color: #333333;
    font-weight: 400;
}

.aui-lozenge-success {
    background-color: #1bd476;
    border-color: #1bd476;
    color: #ffffff;
}

.aui-lozenge-success.aui-lozenge-subtle {
    background-color: #E8FCF2;
    border-color: #17b564;
    color: #17b564;
}

.aui-lozenge-error {
    background-color: #ED3760;
    border-color: #ED3760;
    color: #ffffff;
}

.aui-lozenge-error.aui-lozenge-subtle {
    background-color: #FEEFF2;
    border-color: #ED3760;
    color: #ED3760;
}

.aui-lozenge-current {
    background-color: #8476FF;
    border-color: #8476FF;
    color: #ffffff;
}

.aui-lozenge-current.aui-lozenge-subtle {
    background-color: #f0ebff;
    border-color: #8476FF;
    color: #8476FF;
}

.aui-lozenge-complete {
    background-color: #0065ff;
    border-color: #0065ff;
    color: #ffffff;
}

.aui-lozenge-complete.aui-lozenge-subtle {
    background-color: #d9e8ff;
    border-color: #0065ff;
    color: #0065ff;
}

.aui-lozenge-moved {
    background-color: #328baf;
    border-color: #328baf;
    color: #ffffff;
}

.aui-lozenge-moved.aui-lozenge-subtle {
    background-color: #e2f2f1;
    border-color: #328baf;
    color: #328baf;
}


/** AUI Lozenges - when in header (on dark blue background) */

.aui-page-header .aui-lozenge {
    color: #ffffff;
    font-weight: bold;
    background-color: #555555;
    border-color: #555555;
}

.aui-page-header .aui-lozenge-success,
.aui-page-header .aui-lozenge-success.aui-lozenge-subtle {
    background-color: #23BF53;
    border-color: #23BF53;
}

.aui-page-header .aui-lozenge-error,
.aui-page-header .aui-lozenge-error.aui-lozenge-subtle {
    background-color: #7C3C56;
    border-color: #7C3C56;
}

.aui-page-header .aui-lozenge-current,
.aui-page-header .aui-lozenge-current.aui-lozenge-subtle {
    background-color: #5852aa;
    border-color: #5852aa;
}

.aui-page-header .aui-lozenge-complete,
.aui-page-header .aui-lozenge-complete.aui-lozenge-subtle {
    background-color: #283b53;
    border-color: #283b53;
}

.aui-page-header .aui-lozenge-moved,
.aui-page-header .aui-lozenge-moved.aui-lozenge-subtle {
    background-color: #328baf;
    border-color: #328baf;
}

/** AUI Progress Tracker */

.aui-progress-tracker-step > a::before, .aui-progress-tracker-step > span::before {
    background: #3ee690;
    box-shadow: 0 0 0 3px #e9e9e9;
}

.aui-progress-tracker-step + .aui-progress-tracker-step > a::after,
.aui-progress-tracker-step + .aui-progress-tracker-step > span::after {
    background: #3ee690;
    border: solid #e9e9e9;
    border-width: 2px 0;
    box-shadow: -5px 0 0 -2px #3ee690, 5px 0 0 -2px #3ee690;
}

.aui-progress-tracker-step-current ~ .aui-progress-tracker-step > a::after,
.aui-progress-tracker-step-current ~ .aui-progress-tracker-step > span::after {
    background-color: #e9e9e9;
    box-shadow: none;
}

/** AUI Table */

table.aui > caption {
    color: #ffffff;
    background-color: var(--az-aui-content-pane-headerColor);
    border-bottom: none;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    font-size: 1.0rem;
    font-weight: bold;
}

table.aui > caption .aui-lozenge {
    font-size: 0.75rem;
    font-weight: bold;
}

table.aui > tbody > tr:first-child > td,
table.aui > tbody > tr:first-child > th,
table.aui > tfoot > tr:first-child > td {
    border-top: none;
}
