/***************************** global styles *****************************/

:root {
    --header-height: 5vh;
    /* --separator-size: 10px; */

    --sidebar-background-color: silver !important;
    --separator-center-color: lightgrey;
    --separator-outer-color:
        /*#eee*/
        lime;
    --header-background-color: #aaa;

    --separator-size: 3px;

    --default-marker-background-color: rgba(192, 192, 192, 0.75);
    /* --font-family: "Josefin Sans Light", "Hind", Sans; */
    /* --font-family: "Bellota Text"; */
    --font-family: "Noto Sans Light", Arial, Sans;

    --sidebar-background-gradient: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.15));

    --POI-border-color: white;
    --STOP-border-color: #f0c900;
    --STREET-border-color: #2020C8;

    --tour-background-color: black;
    --tour-text-color: white;
}



.hidden {
    display: none;
}

.hiddenByVisibility {
    visibility: hidden;
}

.hiddenByOpacity {
    opacity: 0;
    position: absolute;
}

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

.float-left {
    float: left;
}

.float-right {
    float: right;
}

.center,
.center-text,
.text-align-center {
    text-align: center;
}

.number,
.numeric,
.right-text,
.text-align-right {
    text-align: right;
}

.kursiv {
    font-style: italic;
}

.no-border {
    border: none;
    margin-left: 4px;
}

.nowrap,
.no-wrap {
    white-space: nowrap;
}

.nix {
    text-align: center;
    font-style: italic;
}

.fuchsia-background {
    background-color: fuchsia !important;
}





/***************************** Structure *****************************/

html,
body,
input,
.ℳ-column-settings-button,
button,
select,
option {
    font-family: var(--font-family);
    color: black;    
}

html,
header {
    /* --shade-of-grey: 238; */
    --shade-of-grey: 255;
    background-color: rgb(var(--shade-of-grey), var(--shade-of-grey), var(--shade-of-grey));
    color: black;
    font-size:14px;
}

header {
    height: var(--header-height);
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: hidden;
}

h1 {
    margin: 0px;
    position: relative;
    padding-left: 5px;
}

header > h1 {
    margin-left: 10px;
    /* margin-top: 10px; */
    z-index: 9876543210;
}

#contents > * {
    float: left;
    height: 100%;
    overflow-y: auto;
}




main#content {
    width: 50%;
}

#map_section {
    width: 25%;
    overflow-y: auto;
}



#contents {
    overflow-y: hidden;
}


#content {
    overflow-y: auto;
}

/* hide them per default to make them visible via switchMainContent */
#content > div {
    display: none;
}




/***************************** separator *****************************/

hr {
    margin: 0;
    padding: 0;
    border: 0;
    position: relative;
}

hr.separator {
    background-image: none !important;
    background-color: var(--separator-center-color);

    touch-action: none;
}

hr.separator.horizontal {
    height: var(--separator-size) !important;
    width:100%;
    cursor: ns-resize;
    background-image: linear-gradient(to top, var(--sidebar-background-color) 0%, var(--separator-center-color) 50%, var(--sidebar-background-color) 100%);
}

hr.separator.vertical {
    width: var(--separator-size);
    cursor: ew-resize;
    background-image: linear-gradient(to left, var(--sidebar-background-color) 0%, var(--separator-center-color) 50%, var(--sidebar-background-color) 100%);
}

hr.separator:hover {
    --separator-center-color: rgb(177, 177, 179);
}

hr.separator:active {
    --separator-center-color: rgb(150, 150, 154);
}


/***************************** Activity Indicators *****************************/
/*
/* see also #login-activity-indicator under Login Page */

#activity-indicator {
    float: right;
    /* margin-top:10px; */
    margin-left: 20px;
    margin-right: 10px;
}

#activity-indicator-label {
    color: Gray;
}

#activity-indicator > * {
    width: 30px;
    height: 30px;
    text-align: center;
    vertical-align: middle;
    display: table-cell;
}

#activity-indicator > img {
    top: -31px;
    position: relative;
    display: none;
}

#activity-indicator.active > .active {
    animation: rotate 2s infinite linear;
    display: table-cell;
}

#activity-indicator:not(.active) > .inactive {
    display: table-cell;
}

#activity-list {
    display: none;
    position: absolute;
    top: 36px;
    right: 16px;
    z-index: 10000;
    height: auto;
    text-align: left;
    width: auto;
    background-color: var(--sidebar-background-color);
    box-shadow: 0px 0px 5px 0px black;
    border-radius: 8px;
    border: 5px solid var(--sidebar-background-color);
}

#activity-list > tr > td:first-child {
    text-align: right;
}

#activity-list > tr > td:nth-child(3) {
    font-family: Aegean;
    text-align: right;
}


#central-activity-indicator {

    display: none;

    height: 100px;
    width: 100px;

    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    margin-left: -62.5px;
    margin-top: -100px;

    animation: rotate 2.5s infinite linear;

    z-index: 0123456789;
}


#username-box {
    position: absolute;
    left: 1em;
    top: 3em;
    text-decoration: none;
}



/***************************** Menu Popup *****************************/

.menu-button-for-popup {
    cursor: pointer;
    user-select: none;
}

.menu-popup {
    display: none;
    position: absolute;
    top: 5px;
    left: 0px;
    z-index: 10000;
    height: auto;
    text-align: left;
    width: auto;
    background-color: var(--sidebar-background-color);
    box-shadow: 0px 0px 5px 0px black;
    border-radius: 8px;

    list-style-type: none;
    white-space: nowrap;

    padding: 5px 0px;
    user-select: none;
}


#logout-menu > li {
    padding: 0px 5px;
    cursor: pointer;
}

#logout-menu > li:hover {
    background-color: rgba(255, 255, 255, 0.50);
}

/******* context menu ****/

.context-menu{
    position: fixed;
    display: none;
    width: 140px;
    box-shadow: 2px 2px 9px #aaa;
    overflow: hidden;
    border:solid 1px #aaa;
    background: white;
}

.context-menu > button{
    width: 100%;
    }


    .context-menu.show{
        display:block;
    }


/***************************** TourHst, Buchungen *****************************/

#TourHst,
#Buchungen {
    overflow-y: hidden;
}

#TourHst > #Tour,
#Buchungen > #Kunden {
    max-height: calc(100% - 4em);
}

#Tour-Hst-Separator,
#Kunde-Fw-Separator {
    /* height: 5px; */
    height: var(--separator-size);
}

#Tour-Hst-Separator:not(:active):not(:hover),
#Kunde-Fw-Separator:not(:active):not(:hover) {
    --separator-center-color: #bbb;
}


#TourHst > #Hst > .ℳ-outer > .ℳ-inner, 
#Buchungen > #Buchungen-eines-Kunden > .ℳ-outer > .ℳ-inner{
    height: calc(100% - 3em);
}

#Hst, 
#Buchungen-eines-Kunden {
    min-height:100px;
}



/***************************** Toast Notification *****************************/


#toast {
    display: none;
    position: absolute;
    z-index: 123456789;

    bottom: 10%;
    left: 50%;
    margin-left: -10%;

    border-radius: 100px;
    font-weight: bold;

    background-color: rgba(220, 50, 50, 0.75);
    color: white;
}

#toast-message {
    vertical-align: middle;
    display: table-cell;
    text-align: center;
}

#toast,
#toast-message {
    height: 50px;
    width: 30%;
    max-width: 100%;
    min-width: 300px;
}

#toast.fade-out {
    transition-property: opacity;
    transition-duration: var(--fade-out-duration);
    opacity: 0;
}

#toast:hover {
    opacity: 1;
    background-color: rgba(220, 50, 50, 1);
}



/*****************************************************************************/

.einsteiger {
    color: green;
}

.aussteiger {
    color: red;
}




/***************************** helpers  *****************************/

.error-message {
    margin-right: -20px;
}


#messlinie {
    height: 10000px;
    position: fixed;
    width: 1px;
    background: lime;
    left: 1025px;
    top: 0px;
    border: none;

    /* display: none; */
}


.colorPreview {
    border-radius: 100%;
    width: 1em;
    height: 1em;
    display: inline-block;
}





/* Hst braucht keine Pagination

   TODO: besser in JS verschieben und erst gar nicht generieren
*/
#TourHst > #Hst > .ℳ-outer > .ℳ-pagination,
#Buchungen > #Buchungen-eines-Kunden > .ℳ-outer > .ℳ-pagination {
    display: none;
}


/* 
:active {
    border:2px lime solid !important;
}

:focus {
    border:5px fuchsia solid !important;
    background-color: fuchsia !important;
} */