﻿body {   
    font-family: alwyn,Arial,Helvetica,sans-serif;
}

body.with-navigation {
    padding-bottom: 0.5rem;
    padding-top: 5rem;
}

body.without-navigation {
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}

.bg-table-header {
    background-color: #56BCD5; /* VSE Petrol */
}

/* \n durch Zeilenumbrueche ersetzen */
.with-linebreaks {
    white-space: pre-line;
}

.with-wordbreak {
    word-break: break-word !important;
}

/* Weisser Button (für bootstrap-select verwendet) */
.btn-ac-white {
    color: #495057 !important;
    background-color: #fff !important;
    border: 1px solid rgba(0,0,0,.15) !important;
}

/* Kampagnenbild */
.img-ac-campaign {
    width: 100%;
    min-width: 150px !important;
    max-width: 300px;
}
.img-ac-campaign-sm {
    width: 100%;
    min-width: 150px !important;
    max-width: 150px;
}

/* Automatischer Zeilenumbruch für Optionen in einem Bootstrap-Select */
.bootstrap-select .dropdown-item {
    white-space: normal;
    word-wrap: break-word;
}

.bootstrap-select .bs-select-all {
    background-color: #f4ffe9;
}

.bootstrap-select .bs-deselect-all {
    background-color: #ffe8e8;
}

.bootstrap-select .bs-actionsbox {
    margin-bottom: 0.5em;
}

/* Placeholder-Farbe bei den Floating Labels */
.form-floating > label {
    opacity: 0.65;
}

.form-label {
    font-weight: bold;
    margin-bottom: 5px;
}

/* Fonts */
@font-face {
    font-family: 'alwyn';
    src: url("../fonts/Alwyn Regular.ttf") format("truetype");
}

@font-face {
    font-family: 'alwyn';
    src: url("../fonts/Alwyn Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal
}

@font-face {
    font-family: 'alwyn';
    src: url("../fonts/Alwyn BoldOblique.ttf") format("truetype");
    font-weight: 700;
    font-style: italic
}

@font-face {
    font-family: 'alwyn';
    src: url("../fonts/Alwyn Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal
}

@font-face {
    font-family: 'alwyn';
    src: url("../fonts/Alwyn MediumOblique.ttf") format("truetype");
    font-weight: 500;
    font-style: italic
}

@font-face {
    font-family: 'alwyn';
    src: url("../fonts/Alwyn Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal
}

@font-face {
    font-family: 'alwyn';
    src: url("../fonts/Alwyn RegularOblique.ttf") format("truetype");
    font-weight: 400;
    font-style: italic
}

@font-face {
    font-family: 'alwyn';
    src: url("../fonts/Alwyn Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal
}

@font-face {
    font-family: 'alwyn';
    src: url("../fonts/Alwyn LightOblique.ttf") format("truetype");
    font-weight: 300;
    font-style: italic
}

@font-face {
    font-family: 'alwyn';
    src: url("../fonts/Alwyn Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal
}

@font-face {
    font-family: 'alwyn';
    src: url("../fonts/Alwyn ThinOblique.ttf") format("truetype");
    font-weight: 100;
    font-style: italic
}

/* Mobiscroll */

.md-switching-timeline-view-cont .mbsc-segmented {
    max-width: 350px;
    margin: 0 auto;
    padding: 1px;
}

.md-work-week-picker {
    flex: 1 0 auto;
}

.md-work-week-nav {
    width: 200px;
}

.mbsc-timeline-resource-col {
    --resource-col-width: 15em;
    width: var(--resource-col-width);
    max-width: var(--resource-col-width);
}

.mbsc-timeline-resource-title {
    display: grid;
    grid-template-columns: 9fr 1fr;
    grid-gap: 1em;
    height: 100%;
    align-items: center;
}

.mbsc-timeline-resource-title > div:first-child {
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    word-break: break-word;
}

/* Set max height for first timeline row */
.mbsc-timeline-resource:nth-child(2) {
    max-height: 64px;
}

.mbsc-timeline-row:nth-child(2) {
    max-height: 64px;
}

/* Fix timeline event color (disable transparency, set font color) */
.mbsc-ios.mbsc-schedule-event-background {
    opacity: 1;
}
.mbsc-ios.mbsc-schedule-event-title {
    color: inherit;
}

@supports (overflow:clip) {
    .md-switching-timeline-view-cont.mbsc-ltr .mbsc-schedule-event-inner {
        left: 205px;
    }

    .md-switching-timeline-view-cont.mbsc-rtl .mbsc-schedule-event-inner {
        right: 205px;
    }
}