:root {
    --og-red: var(--a-palette-danger);
    --og-green: var(--a-palette-success);
    --og-blue: var(--ut-focus-outline-color,-webkit-focus-ring-color);
    --og-orange: var(--a-palette-warning);
    --og-purple: var(--u-color-12);
}

body.forced-scrollbar {
    overflow-y: scroll !important;
}

.t-Header-controls {
    display: flex;
    align-items: center;
}

.t-Header-controls > button{
    max-height: 32px;
}

#header-logo {
	content: var(--header-logo-normal);
	max-width: unset
}

#login-logo {
    content: var(--login-logo);
    width: 260px;
    max-width: 260px;
}

.red {
    color:var(--a-palette-danger);
    font-weight: bold;
}

.green {
    color:var(--a-palette-success);
    font-weight: bold;
}

.blue {
    color:var(--ut-focus-outline-color,-webkit-focus-ring-color);
}

.orange {
    color:var(--a-palette-warning);
}

span.support-hotline {
    font-size: 1.3em;
    margin-left: 16px;
    flex-grow: 1;
}

footer::before {
    content: " ";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--border-thickness-theme);
    background: var(--border-color-theme);
    z-index: -1;
}

.og-seal {
    margin: 0 32px;
}

ul.og-social-media {
    margin: 0;
    padding: 4px 0 0 0;
    list-style-type: none;
    display: flex;
}

ul.og-social-media li {
    margin: 0 16px;
}

ul.og-social-media a {
    display: inline-block;
    height: 38px;
}

ul.og-social-media img {
    height: 38px
}

h2#dashboard_heading {
    max-width: fit-content;
}

.t-Region-headerItems.t-Region-headerItems--buttons button {
    margin-left: 4px;
}

body.t-PageBody.js-rightCollapsed .t-Body-actions {
    width:0px;
}

body.t-PageBody.js-rightExpanded .t-Body-actions {
    width:500px;
}

.t-TreeNav .a-TreeView-node {
    position: relative;
}

.t-TreeNav .a-TreeView-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* ------ */

button#toggle-footer {
    position:absolute;
    right: 8px;
    top: -18px;
    opacity: 1;
}

footer#t_Footer {
  height: 81px;
  transition: height ease-in-out 500ms;
}

.t-Footer-body {
  height: 81px;
  overflow: hidden;
  transition: height ease-in-out 500ms;
}

footer#t_Footer.collapsed {
    height: 28px;
}

footer#t_Footer.collapsed
.t-Footer-body {
    height: 0px;
}

#toggle-footer {
    transition: ease-in-out 500ms;
    transform: rotate(180deg);  
}

footer#t_Footer.collapsed
#toggle-footer {
  transform: rotate(0deg);
}

div#MANDANT_SELECTOR {
    z-index: 9;
    display: flex;
    flex-direction: row;
    align-items: center;
    grid-area: search;
    height: 100%;
    /* margin-right: 20px; */
    /* margin-top: -8px; */
}

div#MANDANT_SELECTOR::before {
    content: "";
    display: block;
    flex-grow: 1;
    height: auto;
    width: auto;
}

div#MANDANT_SELECTOR .container {
    max-width: 420px;
    height: 100%;
    background-color: var(--ut-header-background-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    /* border-bottom: var(--border-thickness-theme) solid var(--border-color-theme); */
}

div#MANDANT_SELECTOR .container > .row {
    flex-grow: 1;
    flex-direction: row-reverse;
}

.t-Header-branding {
    padding-bottom: 0;
    border-bottom: var(--border-thickness-theme) solid var(--border-color-theme);
    grid-template-areas: "controls logo search navbar" !important;
}

li.t-NavigationBar-item.a-pwaInstall {
    margin-right: 36px;
}

.hidden_pass {
    position: absolute;
    overflow: hidden;
    max-width: 0px;
    max-height: 0px;
    opacity: 0;
    margin: 0px;
    padding: 0px;
    height: 0px;
    width: 0px;
}

/* -- Global Page Search -- */

.ui-dialog.no-frame .ui-dialog-titlebar {
    display: none;
}

#t_TreeNav_0 > * {
    background-color: transparent !important;
    box-shadow: none !important;    
}

a[href="/#app-search"] {
    line-height: 32px;
    height: 32px;
    background: var(--a-field-input-state-background-color,var(--a-field-input-background-color));
    border: 1px solid #c2c2c2;
    border-radius: 2px;
    margin-left: -24px;
    position: relative;
    cursor: text;
    display: flex;
    align-items: center;
    padding: 0 0 0 32px;
}

a[href="/#app-search"]:hover {
    background: var(--a-field-input-hover-background-color);
}


a[href="/#app-search"]::before {
    content: "\e022";
    font-family: var(--a-icon-font-family,"apex-5-icon-font");
    display: block;
    font-size: 16px;
    line-height: 16px;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translate(0%, -50%);
}

#global-app-search-dialog .search-wrapper {
    position: relative;
}

#global-app-search-dialog  .menu-search-results {
    margin: 0 0 0 8px;
    padding: 0px 8px 0 0;
    max-height: 256px;
    overflow-y: auto;
}

ul.menu-search-results li a {
    display: flex;
    margin: 0 0 8px 0;
    line-height: 24px;
    height: 32px;
    border: 1px solid #dfdfdf;
    align-content: center;
    align-items: center;
    color: #525252;

    border-radius: 2px;
}

ul.menu-search-results li a:hover,
ul.menu-search-results li a:focus {
    background: var(--ut-link-text-color);
    color: white;
    border: 1px solid var(--ut-link-text-color);    
}

ul.menu-search-results li a i {
    font-size: 16px;
    line-height: 24px;
    height: 32px;
    width: 32px;
    padding: 4px 0 0 8px
}

#global-app-search-dialog .search-wrapper > .a-Icon {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translate(8px, -50%);
    z-index: 20;
}

input#global-app-search-dialog-input {
    display: block;
    border: 1px solid #dfdfdf;
    background: var(--a-field-input-state-background-color,var(--a-field-input-background-color));
    width: calc(100% - 16px);
    height: 32px;
    margin: 8px;
    padding: 0 8px 0 32px;
    position: relative;
    border-radius: 2px;
}

input#global-app-search-dialog-input:active,
input#global-app-search-dialog-input:focus {
    outline: none
}

.og-Region-helptext > .t-Region-header {
    background: transparent;
    border: none;
}

.og-Region-helptext > .t-Region-bodyWrap > .t-Region-body {
    padding-top: 0;
}

/** High Availability **/

.header-items {
    display: flex;
    flex-direction: row;
    align-items: center;
}

#octo_ha_status {
    margin: 0;
}

#octo_ha_status-content > h2.ha-error {
    color: whitesmoke;    
    background: var(--og-red);
}

#octo_ha_status-content > h2.ha-warning {
    color: var(--ut-region-text-color);    
    background: var(--og-orange);
}

#octo_ha_status-content > h2.ha-good {
    color: whitesmoke;
    background: var(--og-green);
}

#octo_ha_status-content > h2.ha-mismatch {
    color: whitesmoke;
    background: var(--og-purple);
}

#octo_ha_status-content > h2 {
    box-sizing: content-box;
    margin: 2px 8px 8px 8px;
    height: 36px;
    line-height: 36px;
    padding: 0 8px;
    color: whitesmoke;
    background: var(--og-green);
    border-radius: 2px;
    box-shadow: var(--ut-alert-type-box-shadow, var(--ut-alert-box-shadow, none));
    border:  1px solid var(--ut-alert-type-border-color,var(--ut-alert-border-color,var(--ut-component-border-color)));
}
