/* Arabic script appears smaller at equal font-size due to character complexity */
html[lang="ar"] {
    font-size: 110%;
}

/* Mirror directional arrow/chevron icons in RTL */
html[dir="rtl"] .bi-arrow-left::before { content: "\f138"; } /* arrow-right */
html[dir="rtl"] .bi-arrow-right::before { content: "\f12f"; } /* arrow-left */
html[dir="rtl"] .bi-arrow-left-circle::before { content: "\f134"; } /* arrow-right-circle */
html[dir="rtl"] .bi-arrow-right-circle::before { content: "\f12a"; } /* arrow-left-circle */
html[dir="rtl"] .bi-arrow-left-circle-fill::before { content: "\f133"; } /* arrow-right-circle-fill */
html[dir="rtl"] .bi-arrow-right-circle-fill::before { content: "\f129"; } /* arrow-left-circle-fill */
html[dir="rtl"] .bi-chevron-left::before { content: "\f285"; } /* chevron-right */
html[dir="rtl"] .bi-chevron-right::before { content: "\f284"; } /* chevron-left */
html[dir="rtl"] .fa-arrow-left::before { content: "\f061"; } /* arrow-right */
html[dir="rtl"] .fa-arrow-right::before { content: "\f060"; } /* arrow-left */

.brand-color {
    color: #9fc721;
}

.places-rows .drag-handle {
    text-align: center;
    cursor: grab;
    border: solid 1px #ced4da;
    border-radius: 0.375rem;
    background-color: white;
    line-height: 2.3em;
}

.travel-time-column {
    text-align: center;
}

.places-sortable {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.action-buttons {
    text-align: end;
}

.empty-list-container {
    text-align: center;
}

.empty-list-container img {
    margin-bottom: 26px;
    margin-top: 100px;
}

.row.row-no-padding > * {
    padding-inline: 0;
}

.mobile-table-header {
    display: none;
}

.places-rows .loop-counter {
    display: none;
}

/* Phone */
@media only screen and (max-width: 760px) {
    .desktop-table-header,
    .places-rows .drag-handle {
        display: none;
    }

    .mobile-table-header,
    .places-rows .loop-counter {
        display: block;
    }

    .action-buttons,
    .main-form .btn {
        /*TODO: don't apply to templates from GAEB report*/
        /*margin-top: 5px;*/
    }
    .places-rows {
        margin-top: 20px;
    }

    .travel-time-column {
        text-align: start;
    }
}

.flash {
    -moz-animation: flash 1s ease-out;
    -moz-animation-iteration-count: 3;

    -webkit-animation: flash 1s ease-out;
    -webkit-animation-iteration-count: 3;

    -ms-animation: flash 1s ease-out;
    -ms-animation-iteration-count: 3;
}

@keyframes flash {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: red;
    }
    100% {
        background-color: transparent;
    }
}

@-webkit-keyframes flash {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: red;
    }
    100% {
        background-color: transparent;
    }
}

@-moz-keyframes flash {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: red;
    }
    100% {
        background-color: transparent;
    }
}

@-ms-keyframes flash {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: red;
    }
    100% {
        background-color: transparent;
    }
}

 .service-selection .categories {
     font-weight: bold;
     margin: 0;
     padding-top: 10px;
 }
.service-selection .areas {
    padding-top: 5px;
    font-weight: bold;
    margin: 0;
    margin-inline-start: 10px;
}
.service-selection .services {
    margin: 0;
    margin-inline-start: 20px;
}

.admin-icon {
    text-shadow: 0 0 8px #ffd700, 0 0 16px #ffd700, 0 0 24px #ffd700;
}

/* Zeile als Trefferfläche für Bootstraps .stretched-link. Ohne die Transformation macht WebKit aus
   dem <tr> keinen umschließenden Block, und die letzte Zeile schluckt jeden Klick der ganzen Karte. */
.stretched-link-row {
    position: relative;
    transform: translate(0);
}
