/*
 * ts_calendar.css
 *
 *
 *  @author      Thaler Software GmbH
 *  @copyright   Thaler Software GmbH
 *  @link        https://www.thaler-software.eu
 *
 */


/***************************** Event Styles in Calender *****************************/
.col-border-right {
    border-right: 2px solid #ddd;
}

.shift-bg-warning {
    background-color: rgb(255, 255, 0, 0.25);
}

button.btn.btn-success.btn-xs {
    padding-top: 7px;
    padding-bottom: 7px;
    /*font-size: 8px;
    border-radius: 2px; /* Optional, für kleinere Ecken */
}

.clickable-row {
    cursor: pointer;
    transition: background-color 0.2s;
}

.clickable-row.hover-red:hover {
    background-color: rgba(255, 0, 0, 0.1); /* Transparentes Rot */
}

/* Leichtes Grün beim Hover */
.clickable-row.hover-green:hover {
    background-color: rgba(0, 255, 0, 0.1); /* Transparentes Grün */
}


/***************************** Filter-Button in Calender *****************************/
button.fc-filterButton-button {
    font-size: 1.5em !important;
    border: none !important;
    color: #2C3E50 !important;
    margin-right: 10px;
    background: none !important;
}

.fc-filterButton-button:active {
    color: #333 !important; /* Text/Icon-Farbe dunkler machen */
}

.fc-filterButton-button:focus {
    outline: none !important; /* Entfernt die standardmäßige Outline */
    box-shadow: none !important; /* Entfernt Schatten (z. B. von Bootstrap) */
    border-color: inherit !important; /* Entfernt visuelle Hervorhebungen der Border */
}

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


/* CSS Für die Kalender Events, also z.B. das die Icons und Text gleich ausgerichtet sind  */
.duty-list-entry div.duties {
    display: inline-flex;
}

.duties {
    display: flex;
    flex-direction: column;
}

.duty {
    display: flex;
    align-items: center;
}

.duty i {
    width: 20px; /* Einheitliche Breite für die Icons */
    margin-right: 10px; /* Abstand zwischen Icon und Text */
    text-align: center; /* Icon zentrieren */
    color: #333; /* Icon-Farbe */
}

.duty span {
    display: inline-block;
    min-width: 30px; /* Stellt sicher, dass der Text gleichmäßig ausgerichtet ist */
}

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


.fc-event-main {
    cursor: pointer;
    padding: 5px;
}

#wr_calendar table.fc-scrollgrid {
    height: 1100px;
}

/* Change the padding for the event entries in the calender*/
.fc-daygrid-day.fc-day, .fc-timegrid-col.fc-day {
    padding: 5px;
}

/* makes the break after the time in a event element*/
.fc-event-main-frame {
    flex-direction: column;
}

/* set the cursor for the entries to pointer */
.fc-list-event.fc-event, .fc-event-main-frame {
    cursor: pointer;
}

/*
On small screens only the listMonth View should be displayed, calendar and week doesn't really make sense because fullcalendar is not really responsive
*/
@media (max-width: 576px) {
    .fc-header-toolbar.fc-toolbar {
        flex-direction: column;
    }

    button.fc-dayGridMonth-button, button.fc-timeGridWeek-button, button.fc-listMonth-button {
        display: none !important;
    }

    div.fc-view-harness {
        height: 400px !important;
    }
}

.fc-event-main {
    white-space: nowrap; /* Verhindert Zeilenumbrüche */
    overflow: hidden; /* Versteckt den Text, der über den Rand hinausgeht */
    text-overflow: ellipsis; /* Fügt "..." am Ende an, wenn der Text abgeschnitten wird */
    max-width: 100%; /* Stellt sicher, dass der Inhalt die Breite des Containers nicht überschreitet */
    box-sizing: border-box; /* Bezieht Padding und Border in die Breite mit ein */
    /* Oder mit Zeilenumbrüche? */
    /* white-space: normal;  Erlaubt Zeilenumbrüche */
    /* word-wrap: break-word;Bricht lange Wörter */
}

.not-bookable {
    background-color: transparent; /* Basis-Hintergrund entfernen */
    background-image: repeating-linear-gradient(
            45deg,
            #ffffff, /* Farbe des Hintergrunds */ #ffffff 2px,
            transparent 2px, /* Übergang von Linie zu transparent */ transparent 4px /* Abstand bis zur nächsten Linie */
    );
    border: 1px dashed #adabab; /* Optional: gestrichelter Rahmen hinzufügen */
    color: #adabab; /* Optional: Textfarbe */
}

button.btn.kidsline-offer-button {
    margin-right: auto;
}
#kidsline-unsubscribe-adviser-modal-for-adviser_modal_footer {
    justify-content: normal;
}


.fc-event-container {
    position: relative;
    padding: 10px;
    background: #a4f7a4; /* Hintergrundfarbe des Events */
    border-radius: 5px;
}

.fc-corner-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 25px;
    height: 25px;
    overflow: hidden;
}

.fc-corner-svg {
    width: 100%;
    height: 100%;
    fill: black; /* Farbe des Dreiecks */
}

.fc-event-icon {
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 10px;
    color: white; /* Farbe des Icons */
}


/**************************************************************************************/
/*********************************   Legende CSS  *************************************/
/**************************************************************************************/
.legende-wrapper {
    display: flex;
    /* justify-content: center;  Zentriert die Legende */
}

.legend {
    display: flex;
    gap: 20px; /* Abstand zwischen den Einträgen */
}

.legend-element {
    display: flex;
    align-items: center;
    gap: 8px; /* Abstand zwischen Box und Text */
}

.legend-box {
    width: 20px;
    height: 20px;
    border: 1px solid black;

    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

