﻿@startPx: 390px;
@startHeightPx: 140px;
@pxSteps: 30px;
@loop: 17;
//Create loop for responsive Table im monatsdienstplan
.responsiveTable (@index) when (@index >= 0) {
    @minWidth: @startPx + (@index * @pxSteps);
    @maxWidth: (@minWidth + (@pxSteps - 1));
    @heightMath: @startHeightPx + (@index * @pxSteps);

    @media (min-height: @minWidth) and (max-height: @maxWidth) {
        display: block;
        overflow-y: auto;
        height: @heightMath;
    }

    // next iteration
    .responsiveTable(@index - 1);
}

@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('../fonts/glyphicons-halflings-regular.eot');
    src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}

.profahrIcon {
    position: relative;
    top: 1px;
    display: inline-flex;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    gap: 0.1em;
    margin-right:0.1em;
}

.InfoIcon:before {
    content: "\e086" / "Information";
}
.eventTitle-Icon {
    margin-right: 25px;
}
#dutyNameModal > .eventTitle-Icon{
    display: none;
}

.k-toolbar{
    position: static;
}

.redForeground {
    color: red;
}

.noteText {
    color: black;
    padding: 10px;
    overflow: hidden;
    overflow-wrap: break-word;
    position: fixed;
    border-radius: 3px;
    right: 0;
    left:0;
    margin:auto auto;
    top: 135px;
    width: 600px;
    height: auto;
    border-style: none;
    border-width: 1px;
    border-color: black;
    background-color: #f5f5f5;  
    z-index: 1000;
    -webkit-box-shadow: 0px 8px 38px -14px;
    -moz-box-shadow: 0px 0px 38px -14px;
    box-shadow: 0px 1px 35px -14px;

    .noteTextTitle{      
        max-width:550px;
        float:left;
    }
    button{
        display:block;
        padding: 0 0 0 10px;
    }
}

.periodSlotLegend {
    position: relative;
    margin-right: 10px;
    /*margin-right: 15px;*/
    float: left;
    /*display: block;*/
    /*float: left;*/
    height: 20px !important;
    width: 20px !important;
    border-radius: 100px !important;
}

.k-event, .k-task-complete {
    border-color: rgba(167, 15, 15, 0);
    background: rgba(255, 255, 255, 0) 0 -257px none repeat-x;
    color: #000;
}

.monthDayEvent {
    /*position:relative;*/
    /*margin-top: 0px;*/
    font-size: 14px;
    /*height: 95px;*/
    /*background-color:green;*/
    /*margin-left: 10px;*/
    overflow: hidden;
    /*color:white;*/
}

.eventTitle, .modal-title {
    font-weight: bold;
    text-overflow: ellipsis;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eventDescription {
    text-overflow: ellipsis;
    overflow: hidden;
    max-height:80px;
}

.k-event {
    cursor: pointer;
    overflow: visible;
}

.k-scheduler-content {
    overflow-y: scroll;

    @media (max-height: 930px){
        display: block;
        overflow-y: auto;
        height: 100%;
    }

    .responsiveTable(@loop);
}

.eventbackground {
    height: 20px;
    opacity: 0.9;
    z-index: 0;
    margin-top: -19px;
    /*margin-bottom: 30px;*/
    width: 100%;
    word-wrap: break-word;

    @media (max-width: 850px) {
        margin-top: 0px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

.k-link.k-nav-day {
    /*position: relative;*/
    margin-top: 0px;
    display: block;
    z-index: 1 !important;
}

.k-scheduler-table th {
    text-align: center;
    font-weight: normal;
    background-color: rgb(77, 77, 77);
    color: white;
}


.legendblock {
    width: 20px;
    height: 20px;
    float: right;
}
/*.publicHolidayCircle {
        width: 15px;
        height: 15px;
        float: right;
        border-radius: 100px!important;
        margin-right: 5px;
        margin-top: 70px;
	}*/
.default {
    background-color: transparent;
    color: black;
}

@media only screen and (max-width:780px) {
    .k-webkit .k-scheduler-toolbar li.k-nav-current .k-sm-date-format,
    .k-ff .k-scheduler-toolbar li.k-nav-current .k-sm-date-format,
    .k-ie11 .k-scheduler-toolbar li.k-nav-current .k-sm-date-format {
        display: inline;
    }


    .noteText {
        color: black;
        padding: 2px 2px 2px 10px;
        overflow: hidden;
        overflow-wrap: break-word;
        position: relative;
        border-radius: 3px;
        right: auto;
        width: 100%;     
        top:0;
        z-index:0;
          min-height:50px;   
       background-color:white;

        .noteTextTitle{      
        max-width:320px;
        float:left;
    }
    }
}

@icon-size: 24px;
@badge-size: 14px;
@icon-color: #828282;
@icon-color-hover: darken(@icon-color, 30%);
@badge-bg: #e1b53b;
@text-color: white;
@tooltip-bg: #333;
@tooltip-text: white;

.ratio-link-icon {
    position: absolute;
    bottom: 1px;
    right: 6px;
    visibility: visible;
    width: @icon-size;
    height: @icon-size;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;

    .link-count {
        position: absolute;
        top: -6px;
        right: -6px;
        background: @badge-bg;
        color: @text-color;
        border-radius: 50%;
        font-size: 10px;
        width: @badge-size;
        height: @badge-size;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .line {
        fill: @icon-color;
        transition: fill 0.3s ease;
    }

    &:hover .line {
        fill: @icon-color-hover;
    }

    &:hover::after {
        content: "Ratio-Aufträge anzeigen";
        position: absolute;
        bottom: 110%;
        right: 0;
        background: @tooltip-bg;
        color: @tooltip-text;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 10px;
        white-space: nowrap;
        z-index: 20;
        opacity: 0.95;
    }
}
