

/*** Fahrtwunsch hinzufügen ***/


#Fahrtwunsch_hinzufügen-Formular > h1 {
    margin-bottom: 1em;
}

#Kunde_hinzufügen,
#Fahrtwunsch_hinzufügen {
    margin: 1em;
}

.Hinzufügen-Formular > label,
.Hinzufügen-Formular > .label {
    overflow-x: auto;
    overflow-y: hidden;
    display: block;
}

.Hinzufügen-Formular > h1 {
    margin-bottom: 0.25em;
}


input {
    border-color: var(--separator-center-color);
    border-style: solid;
    border-width: 2px;
    padding: 8px;
    border-radius: 5px;
}

auto-complete-input,
input[type="search"] {
    width: calc(100% - 2px);
    display: inline-block;
    overflow: hidden;
    /* padding-right: 5em; */

    /* border:1px lime solid; */
}

input:focus {
    background-color: rgba(255, 165, 0, 0.2)
}

input:invalid {
    border-color: red;
    background-color: rgba(255, 0, 0, 0.1)
}

.error-message {
    color: red;
    float: right;
}

.warning-message {
    color: darkorange;
    float: right;
}

.input-button-group {
    user-select: none;
    position: relative;
    float: right;
    top: -36px;
    right: 0px;
    height: 36px;

}

.error-indicator,
.activity-indicator,
.toggle-autocomplete-popup {
    transform-origin: center;
    text-align: center;
}

.toggle-autocomplete-popup {
    margin-top: 0px;
    padding-top: 6px;
    width: 30px;
    height: 32px;
    color: white;
    background-color: var(--separator-center-color);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    display: inline-block;
}

.toggle-autocomplete-popup > .◀ {
    transition: transform 0.2s;
    display: inline-block;
}

.toggle-autocomplete-popup.open > .◀ {
    transform: rotate(-90deg);
    transform-origin: center;
}

.activity-indicator,
.error-indicator {
    display: none;
    position: relative;
    right: 5px;

}

.error-indicator {
    top: 6px;
    background-image: url("icons/error.svg");
    background-size: contain;
    width: 20px;
    height: 20px;
}


.activity-indicator > div {
    animation: rotate 1s infinite linear;
    position: relative;
    top: 6px;
    width: 20px;
    height: 20px;
    display: inline-block;
    background-image: url("icons/update.svg");
    background-size: contain;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.autocomplete-popup {
    display: none;
    counter-reset: row;
    width: calc(100% - 2px);
    min-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    top: -2em;
    position: relative;
}

.autocomplete-popup.open {
    display: block;
}

.no-results {
    font-style: italic;
    margin-left: 1em;
    display: inline-block;
}

.previous-query {
    font-style: normal;
    font-size: 130%;
}

address.selected {
    background-color: var(--header-background-color);
}

address {
    font-style: normal;
    display: table-row;
    width: 100%;
    white-space: nowrap;
}

address::before {
    width: 1em;
    content: "";
    display: inline-block;
}

address:not(.force-filled-row-width)::after {
    width: 1em;
    content: "";
    display: inline-block;
}


address > * {
    display: table-cell;
    padding-left: 1em;
    white-space: pre;

}

.num {
    counter-increment: row;
    content: counter(row)".";
    display: inline-block;
    text-align: center;

    border-radius: 100px;
    height: 20px;
    width: 20px;
    border: 1px black solid;
    box-sizing: border-box;
    padding-left: 0px;


    border-top-left-radius: 50%;
    border-top-right-radius: 50% 100%;
    border-bottom-left-radius: 100% 50%;
    border-bottom-right-radius: 0%;
    transform: rotate(45deg);

    color: black;
}

img.icon,
.icon > img {
    width: 25px;
    height: 25px;
    vertical-align: middle;
}

.start .num,
.start > .marker-shape,
.icon-start-address > .marker-shape {
    background-color: rgba(0, 255, 0, 0.75);
}

.destination .num,
.destination > .marker-shape,
.icon-destination-address > .marker-shape {
    background-color: rgba(255, 0, 0, 0.75);
    color: white;
}


.num > div {
    transform: rotate(-45deg);
    margin-top: 0px;
    margin-left: 0px;
    font-weight: bold;
}

.city {
    padding-left: 0.5em;
}


address.highlight {
    background-color: Highlight;
    color: HighlightText;
    border-left: 10px solid Highlight;
}

.label > * {
    width: calc((100% - 2 * (2em + 20px)) / 3 + 3px);
    display: inline-block;
}


.label > *:nth-child(2) {
    margin: 0em 2em;
}

input[type=number] {
    text-align: right;
}

input[type=date],
input[type=time] {
    text-align: center;
}

.Datum_Zeit > label > input,
#Beförderungsdaten > label > input {
    width: 100%;
}

.Datum_Zeit > label > .warning-message,
.Datum_Zeit > label > .error-message {
    margin-right: -20px;
}

/* #Beförderungsdaten {
    margin-top: 2em;
} */

.Abfahrt_Ankunft {
    padding: 0px;
    margin: 0px;
    border: none;
    width: calc((100% - 2 * (2em + 20px)) / 3 + 24px);
}

.Abfahrt_Ankunft > label {
    display: inline-block;
    text-align: center;
    border-radius: 5px;
    padding: 3px;
    background-color: lightgrey;
    border: 2px var(--separator-center-color) solid;
    width: calc(50% - 10px);
}

.Abfahrt_Ankunft > label > div {
    color: grey;
    text-decoration: none;
    /* font-size: 20px; */
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 5px;
    padding-top: 3px;
    padding-bottom: 0px;
}



.Abfahrt_Ankunft > :checked + label {
    background-image: var(--sidebar-background-gradient);
    background-color: grey;
    white-space: nowrap;
    border-style: outset;
}



.Abfahrt_Ankunft > * + label > div::before {
    display: none;
}

.Abfahrt_Ankunft > :checked + label > div::before {
    content: "⦿";
    position: relative;
    margin-top: -2px;
    color: black;
    margin-left: -1em;
}

.Abfahrt_Ankunft > :not(:checked) + label > div::before {
    content: "○";
    position: relative;
    color: grey;
    margin-left: -1em;
}

.Abfahrt_Ankunft > :checked + label > div {
    color: white;
    background-color: grey;
    text-decoration: underline;
}




[for="Ankunft"],
[for="Rückfahrt-Ankunft"] {
    float: right;
}

.cancel_button,
.submit_button {
    display: block;
    text-align: center;
    border: 1px var(--sidebar-background-color) solid;
    border-radius: 5px;
    /* width: 4%; */
    padding: 5px 1.75em;
    background-image: var(--sidebar-background-gradient);
    background-color: darkgray;
    margin-top: 3em;
    float: right;
}

.cancel_button > div,
.submit_button > div {
    color: white !important;
    text-decoration: none;
    font-size: 20px;
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 5px;
}

.cancel_button:hover > div,
.submit_button:hover > div {
    background-image: var(--sidebar-background-gradient);
}


.submit_button {
    margin-right: 2px;
}

.cancel_button {
    float: left;
    background-color: lightgrey;
}

.cancel_button > div {
    color: gray;
}


.hinzufügen-li {
    list-style: none;
    text-align: center;

    border: 1px darkblue solid;
    border-radius: 15px;

    /* height: 11.45vh; */
    height: 11.29vh;

    padding: 5px;
    margin: 5px;

    background-image: var(--sidebar-background-gradient);
}

.hinzufügen-a:hover {
    opacity: 0.625;
    background: none;
}

.hinzufügen-a {
    color: white;
    opacity: 0.25;
    text-decoration: none;
    font-size: 20px;
    display: inline-block;
    height: 100%;
    width: 100%;
    border-radius: 15px;
    opacity: 1;
}

.hinzufügen-a:hover {
    opacity: 1;
}



.hinzufügen-li,
#Fahrtwunsch-hinzufügen-Label {
    width: unset;
    float: right;
    margin-top: -8px;

    background-color: var(--sidebar-background-color);
    background-image: var(--sidebar-background-gradient);
}

#Fahrtwunsch-hinzufügen-Label {
    background-color: darkgray;
}

#Fahrtwunsch-hinzufügen-Label:hover {
    background-color: gray;
}

.hinzufügen-li:active,
.hinzufügen-li:active > a,
.hinzufügen-li:active > a > div {
    background-image: var(--sidebar-background-gradient);
    opacity: 1;
}

.hinzufügen-li {
    height: auto;
    border: 3px var(--sidebar-background-color) solid;
}




.autocomplete-popup:focus {
    border-top: 5px solid var(--header-background-color);
    border-bottom: 5px solid var(--header-background-color);
}

address:focus,
address:focus > span {
    background-color: rgba(255, 165, 0, 0.2);
}


.Abfahrt_Ankunft:focus-within {
    box-shadow: 0px 0px 0px 5px SelectedItem;
    border-radius: 5px;
    border-right: 5px SelectedItem solid;
    box-sizing: border-box;
    background-color: rgba(255, 165, 0, 0.2);
}

#Datum_Zeit,
#Beförderungsdaten {
    padding-bottom: 2em;
    overflow: hidden !important;
}

#Rückfahrt-Box:not(.no-border) {
    margin-bottom: 2em;
}

.toggleableBox {
    padding-top: 1em;
}

#Dauerauftrag-Wochentag {
    white-space: nowrap;
}

.has-sub-input {
    white-space: nowrap;
}

.straßen-icon {
    vertical-align: -6px;
}

#Kundennumer-Label {
    width: calc((100% - 2 * (2em + 20px)) / 3 + 4px);
    overflow: visible;
    /* margin-bottom: 3em; */
    display: none;
}


#Kunden-Adresse-Container {
    margin-bottom: 0em !important;
}

#Kunden-Adresse-Container > label {
    width: 100%;
}


#Kunden-Adresse-Block > div.label:nth-of-type(2) {
    /* margin-top: 2.5em; */
}


#Hausnummer-Label {
    /* margin-left: 0px !important; */
    margin-right: 0px !important;
    padding-left: 0px !important;

    width: calc((100% - 2 * (2em + 20px)) / 3 + 4px);
}

#Hausnummer-Label > input {
    /* padding-left: 0px !important; */
    /* padding-right: 0px !important; */

}

label.doppelte-Breite:last-child {
    margin-right: 0px !important;
    padding-right: 0px !important;
}


label.doppelte-Breite:first-of-type {
    width: calc((100% - 4em) * 2 / 3 + 16px);

}

label.doppelte-Breite:last-of-type {
    width: calc((100% - 4em) * 2 / 3 + 17px);
}

#Kunde_hinzufügen-Nachname {
    width: calc((100% - 4em) * 2 / 3 + 15px);
}




#Kunde_hinzufügen-Formular input,
#Kunde_hinzufügen-Formular address-auto-complete-input {
    width: 100%;
}


#Kunde_hinzufügen-Formular .label {
    margin-bottom: 2em;
}

#Kunde_hinzufügen-Formular > .label:first-of-type {
    margin-top: 3em;
}

input:disabled {
    cursor: not-allowed;
}


.customer-popup {
    display: table;
}

.customer-popup > div {
    display: table-row;
}

.customer-popup > div > span {
    display: table-cell;
    padding-left: 1em;
}

.customer-popup > div > span:first-child,
.customer-popup > div > span:nth-child(3),
.customer-popup > div > span:nth-child(4) {
    padding-right: 2em;
}

.customer-popup > div:hover {
    background-color: Highlight;
    color: HighlightText;
}
