:root {
    font-size: 16px;

    --loading-text: rgba(0, 0, 0, 0.85);
    --loading-bg: hsl(0, 0%, 100%);
    --loader-line: hsla(210, 61%, 47%, 0.25);
    --font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;

    /* --brand: hsl(210, 61%, 47%); /* hsl(210, 61%, 48%) / rgb(48, 122, 197) */
    --brand: hsl(210, 61%, 47%); /* hsl(210, 61%, 47%) / rgb(47, 120, 193) / ORG HEX #307AC4 */
    --on-brand: #fff;

    --lumo-primary-color: var(--brand, hsl(210, 61%, 47%)); /* hsl(210, 61%, 48%) */
    --lumo-primary-color-50pct: hsla(210, 61%, 47%, 0.5);
    --lumo-primary-color-10pct: hsla(210, 61%, 47%, 0.1);
    --lumo-primary-contrast-color: var(--on-brand);
    --lumo-primary-text-color: var(--brand, hsl(210, 61%, 47%));

    /* navbar */
    --app-navbar-height: 72px;
    /* --app-navbar-bg: #fff; */
    /* --app-navbar-bg: #003F7D; */
    --app-navbar-bg-image: linear-gradient(90deg, hsl(210, 61%, 45%) 0%, hsl(204, 70%, 55%) 75%);
    --app-navbar-text: var(--lumo-primary-text-color);
    /* --app-navbar-text: #fff; */
    --app-navbar-shadow: 0 -5px 15px rgba(0, 0, 0, 0.85);

    --app-logo-space: 0;

    /* navbar login */
    --login-txt: var(--app-navbar-text);
    --login-button-txt: var(--app-navbar-text);
    --login-button-bg: transparent;

    /* sidebar */
    --app-sidebar-bg: var(--brand);
    --app-sidebar-color: var(--on-brand);
    --app-sidebar-w-min: 48px;
    --app-sidebar-w-exp: 200px;
    --menu-tabs-item-txt: var(--app-sidebar-color);
    --menu-tabs-item-selected-bg: #1a608a;
    --menu-tabs-item-selected-txt: #fff;

    /* layout */
    --drawer-padding: var(--lumo-space-xs, 0.25rem);
    --drawer-width-open: 400px;
    /* --drawer-shadow-left: 0; */
    /* --drawer-shadow-right: 0; */
    --widget-header-radius: 0.25rem;
    --widget-header-margin: 0.25rem 0 0 0;
    --widget-header-bg: var(--brand);
    --widget-header-color: var(--on-brand);
    --widget-header-bg-image: linear-gradient(90deg, hsl(210, 61%, 45%) 0%, hsl(204, 70%, 55%) 75%);
    /*--map-background: var(--lumo-contrast-5pct, #fff);*/

    /* app modules */
    --gp-modules-with-details-select-container-bg-color: var(--lumo-base-color);
    --gp-modules-with-details-select-container-text-color: var(--lumo-body-text-color);
    --gp-modules-with-details-select-icon-color: var(--lumo-primary-color);

    --gp-modules-with-details-select-container-hover-bg-color: var(--lumo-primary-color);
    --gp-modules-with-details-select-container-hover-text-color: var(--lumo-primary-contrast-color);
    --gp-modules-with-details-select-hover-icon-color: var(--lumo-primary-contrast-color);

    --gp-modules-item-bg-color: var(--lumo-base-color);
    --gp-modules-item-text-color: var(--lumo-body-text-color);
    --gp-modules-item-text-container-display: flex;
    --gp-modules-item-text-container-align-items: center;
    --gp-modules-item-gp-icon-color: var(--lumo-primary-color);

    --gp-modules-item-selected-bg-color: var(--lumo-primary-color);
    --gp-modules-item-selected-text-color: var(--lumo-primary-contrast-color);
    --gp-modules-item-selected-gp-icon-color: var(--lumo-primary-contrast-color);

    --gp-modules-with-details-img-height: 32px;
    --gp-modules-with-details-img-width: 32px;
    --gp-modules-item-gp-img-height: 48px;
    --gp-modules-item-gp-img-padding: 13px;    

    --menu-bar-horizontal-spacing: 2px;
    --menu-bar-focus-color: #000;

    /* toolbars */
    --toolbar-padding: var(--lumo-space-s) var(--lumo-space-s) calc(var(--lumo-space-s) + 2px) var(--lumo-space-s);
    /*--toolbar-padding: 3px 3px 10px 3px;*/
    /*--toolbar-border-radius: calc(var(--toolbar-button-radius) + var(--toolbar-padding));*/
    --gp-toolbar-custom-bg: transparent;
    --toolbar-button-box-shadow: var(--lumo-box-shadow-s);
    --map-widget-spacing: 0px;
    --widget-margin: 2px;


    --toolbar-button-h: 40px;
    --toolbar-button-w: 40px;
    --toolbar-button-small-w: 32px;
    --toolbar-button-small-h: 32px;
    /*--toolbar-button-radius: calc(0.15 * var(--toolbar-button-h));*/
    
    --gp-fts-search-width: 378px;
    

    --toolbar-button-gradient-bg: linear-gradient(90deg, hsl(204, 70%, 99%) 0%, hsl(210, 61%, 95%) 100%);
    --toolbar-button-gradient-txt: var(--lumo-primary-text-color);

    --toolbar-button-gradient-active-bg: linear-gradient(90deg, hsl(204, 70%, 55%) 0%, hsl(210, 61%, 48%) 100%);
    --toolbar-button-gradient-active-txt: rgba(255, 255, 255, 1);
}

@media (max-width: 1500px) {
    :root {
        --app-logo-title-display: none;
    }
}

@media (max-width: 1440px) {
    :root {
        --app-logo-width: 72px;
        --app-logo-height: 48px;
        --app-header--wg-modules: 240px;
        --gp-modules-with-details-min-w: auto;
        --context-menu-item--lumo-size-m: var(--lumo-size-s);
        --context-menu-item--padding-inline: calc(var(--lumo-size-s) / 4 + var(--lumo-border-radius) / 4);
        --menu-bar-button--padding-inline: calc(var(--lumo-size-s) / 4 + var(--lumo-border-radius) / 4);
    }
}

/* windows full hd 150% scaled */
@media (max-width: 1280px) {
    :root {
        --app-header--wg-search: 320px;
        --app-header--wg-modules: 200px;
    }
}

@media (max-width: 1279px) {
    :root {
        --app-header--wg-search: 300px;
        --context-menu-item--gp-icon-display: none;
    }
}

/* windows full hd 125% scaled */
@media (max-height: 660px) {
    :root {
        --app-navbar-height: 56px;
    }
}

html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html * {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: var(--font-family, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif);
    line-height: 1.5;
}

#preloader,
#preloader > * {
    display: none;
}

#main[unresolved] #preloader,
#main[unresolved] #preloader h1,
#main[unresolved] #preloader .logo,
#main[unresolved] #preloader .preloader-dots {
    display: block;
}

#main[unresolved] #preloader {
    text-align: center;
}

#main[unresolved] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    height: 100vh;
    line-height: 68px;
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    color: var(--loading-text);
    background-color: var(--loading-bg);
    overflow: hidden;
}

#main[unresolved] h1 {
    margin: 0 0 1em 0;
    font-weight: 300;
    font-size: 1.25em;
    /* line-height: 3; */
}

#main[unresolved] h1 span {
    display: inline-block;
    font-weight: normal;
}

#main[unresolved] .logo {
    width: auto;
    height: 320px;
    margin: 0 auto;
    fill: var(--logo, rgba(0, 0, 0, 0.75));
}

#main[unresolved] .preloader-dots {
    font-size: 0.75em;
}

@media (orientation: landscape) {
    #main[unresolved] h1 span {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
        border-left: 1px solid var(--loader-line, #fff);
    }
}

@media (orientation: portrait) {
    #main[unresolved] h1 span {
        display: block;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--loader-line, #fff);
    }
}

@media (max-height: 768px) {
    #main[unresolved] {
        font-size: 2rem;
    }

    #main[unresolved] h1 {
        font-size: 2rem;
    }

    #main[unresolved] .logo {
        height: 260px;
    }
}

@media (max-width: 768px) {
    :root{
        --gp-modules-with-details-img-height: 32px;
        --gp-modules-with-details-img-width: 32px;
        --gp-modules-item-gp-img-height: 43px;
        --gp-modules-item-gp-img-padding: 8px;
        }
    #main[unresolved] {
        font-size: 2rem;
    }

    #main[unresolved] h1 {
        font-size: 2rem;
    }

    #main[unresolved] .logo {
        height: 260px;
    }
}

vaadin-dialog-overlay,
vaadin-combo-box-overlay,
vaadin-context-menu-overlay {
    z-index: 10000;
}
