﻿:root {
    --text-color: #787878;
    --background-color: #00;
    --border-color: #c6c6c6;
    --hover-background-color: #f0f0f0;
    --hover-border-color: #8b8b8b;
    --active-text-color: #9b0c17;
    --active-background-color: #f0dbdc;
    --active-border-color: #c6c6c6;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

/* clears the 'X' from Internet Explorer */
input.hide-clear[type=search]::-ms-clear,
input.hide-clear[type=search]::-ms-reveal {
    display: none;
    width: 0;
    height: 0;
}


/*container {
    margin: 0px 0px;
    padding: 0;
    font-family: Arial, Helvetica Neue, Helvetica, sans-serif;
    font-size: 14px;
    position: fixed;
    top: 0px;
    left: 0px;
    bottom: 0px;
    right: 0px;
}*/

.container {
    display: flex; 
    position: relative;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

/*#legend {
    al
}*/

.maincontent {
    flex: 1;
    position: relative;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

.tabs {
    flex: .5;
    position: relative;
    top: 0px;
    bottom: 0px;
    left: 30px;
    right: 0px;
    margin-right: 30px;
    min-width: 350px;
}

#topbar {
    display: grid;
    grid-template-columns: auto auto;
    margin-bottom: 20px;
}

#topbar-left {
    justify-self: start;
}

#topbar-right {
    justify-self: end;
    display: grid;
    grid-template-columns: auto auto;
}

#openclose-button {
    margin-left: 30px;
    white-space: nowrap;
}

#tabs-topbar {
}

#tabbar {
    white-space: nowrap;
}

.BoldLabel {
    font-weight: bold;
}

/*#region Tab Lists */
.tab {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    direction: ltr;
    text-align: left;
}

/* Style the buttons inside the tab */
.custom-tab {
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    color: var(--text-color);
    border: 1px solid transparent;
    padding: 0.4em 0.65em;
    font-family: inherit;
    font-size: 1em;
    line-height: 1.5;
    border-radius: 0.25em;
    -webkit-appearance: none;
    appearance: none;
    outline: 0;
    border-radius: 0.25em;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
}

    .custom-tab:focus {
        outline: 0;
    }

#tabbar > .custom-tab:hover {
    z-index: 1;
}

/* Change background color of buttons on hover */
.custom-tab:hover {
    background-color: var(--hover-background-color);
}

/* Create an active/current tablink class */
.custom-tab:not(:disabled):active, .custom-tab:not(:disabled).active {
    color: var(--active-text-color);
    background-color: var(--active-background-color);
}

.custom-button {
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    color: var(--text-color);
    border: 1px solid transparent;
    padding: 0.4em 0.65em;
    font-family: inherit;
    font-size: 1em;
    line-height: 1.5;
    border-radius: 0.25em;
    -webkit-appearance: none;
    appearance: none;
    outline: 0;
    border-radius: 0.25em;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
}

.custom-button:hover {
    background-color: var(--hover-background-color);
}

/* Create an active/current tablink class */
.custom-button:active {
    color: var(--active-text-color);
    background-color: var(--active-background-color);
}

/* Style the buttons inside the tab */
.custom-imagebutton {
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    color: var(--text-color);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 1em;
    line-height: 1.5;
    border-radius: 0.25em;
    -webkit-appearance: none;
    appearance: none;
    outline: 0;
    border-radius: 0.25em;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
}

    .custom-imagebutton:focus {
        outline: 0;
    }

/* Change background color of buttons on hover */
    .custom-imagebutton:hover {
        background-color: var(--hover-background-color);
    }

/* Create an active/current tablink class */
    .custom-imagebutton:not(:disabled):active {
        color: var(--active-text-color);
        background-color: var(--active-background-color);
    }

#tabbar .pidue-button {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

#tabbar .missed-button {
    margin-left: -5px;
    margin-right: -5px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

#tabbar .openwork-button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0.25em;
    border-bottom-right-radius: 0.25em;
    margin-top: -1px;
}

.ReportHeader .report-datepicker {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.ReportHeader .daily-button {
    margin-left: -1px;
    margin-right: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.ReportHeader .tech-button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

#daily-image {
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

#tech-image {
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.ReportHeader .daily-button:active #daily-image {
    content: url("/Images/scheduler_red.svg");
}

.ReportHeader .tech-button:active #tech-image {
    content: url("/Images/tech_red.svg");
}

.custom-menu-event, .custom-menu-day {
    display: none;
    z-index: 1000;
    position: absolute;
    overflow: hidden;
    border: 1px solid #CCC;
    white-space: nowrap;
    font-family: sans-serif;
    background: #FFF;
    color: #333;
    border-radius: 5px;
    padding: 0;
}

/* Each of the items in the list */
.custom-menu-event li, .custom-menu-day li {
    padding: 8px 12px;
    cursor: pointer;
    list-style-type: none;
    transition: all .3s ease;
    user-select: none;
}

.custom-menu-event li:hover, .custom-menu-day li:hover {
    background-color: #DEF;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.spinner:before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -10px;
    margin-left: -10px;
    border-radius: 50%;
    border: 5px solid #ccc;
    border-top-color: #000;
    animation: spinner .6s linear infinite;
    z-index: 100;
}

.disabledbutton {
    pointer-events: none;
    opacity: 0.4;
}

.ReportHeader {
    justify-self: end;
    display: flex;
    justify-content: flex-end;
    padding-bottom: 1%;
}

.custom-combo {
    cursor: pointer;
    font-weight: 600;
    width: auto;
    color: var(--text-color);
    border: 1px solid transparent;
    padding: 0.4em 0.6em;
    font-family: inherit;
    font-size: 1em;
    line-height: 1.5;
    border-radius: 0.25em;
    -webkit-appearance: none;
    appearance: none;
    padding: 0.4em 0.65em;
    outline: 0;
    border-radius: 0.25em;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    background-image: linear-gradient(var(--border-color), var(--border-color)), linear-gradient(-135deg, transparent 46%, White 46%), linear-gradient(-225deg, transparent 46%, White 46%), linear-gradient(White 44%, var(--text-color) 44%);
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-size: 1px 100%, 20px 22px, 20px 22px, 20px 100%;
    background-position: right 20px center, right bottom, right bottom, right bottom;
}

    .custom-combo:hover {
        background-image: linear-gradient(var(--border-color), var(--border-color)), linear-gradient(-135deg, transparent 46%, var(--hover-background-color) 46%), linear-gradient(-225deg, transparent 46%, var(--hover-background-color) 46%), linear-gradient(var(--hover-background-color) 44%, var(--text-color) 44%);
    }

/*    .custom-combo:focus {
        background-image: linear-gradient(var(--border-color), var(--border-color)), linear-gradient(-135deg, transparent 46%, var(--active-background-color) 46%), linear-gradient(-225deg, transparent 46%, var(--active-background-color) 46%), linear-gradient(var(--active-background-color) 44%, var(--active-text-color) 44%);
    }*/

    .custom-combo option {
        font-family: inherit;
        font-size: 1em;
        font-weight: 600;
    }

    .custom-combo option:checked, custom-combo option:hover {
        box-shadow: 0 0 10px 100px var(--active-background-color) inset;
    }

    .custom-combo:focus > option:checked {
        background: var(--active-background-color) !important;
        color: var(--active-text-color);
    }

.custom-datepicker {
    font-weight: 600;
    width: 100px;
    text-align: center;
    color: var(--text-color);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 1em;
    line-height: 1.5;
    border-radius: 0.25em;
    -webkit-appearance: none;
    appearance: none;
    padding: 0.4em 0.65em;
    outline: 0;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
}

.custom-datepicker:hover {
    border: 1px solid var(--hover-border-color);
}

.imagebuttoncontainer {
    white-space: nowrap; /* This is required unless you put the helper span closely near the img */
    text-align: center;
}

.helper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.imagebutton {
    vertical-align: middle;
    max-height: 24px;
    max-width: 24px;
}

.dropdown-button {
    cursor: pointer;
    text-align: left;
    width: 100%;
    display: block;
    font-family: inherit;
    font-size: 1em;
    outline: 0;
    font-weight: 600;
    color: var(--text-color);
    background-color: transparent;
    border-color: transparent;
}

.dropdown-content .dropdown-button:hover {
    background-color: var(--hover-background-color);
}

.dropdown-content .dropdown-button:active {
    background-color: var(--active-background-color);
    color: var(--active-text-color);
}

.dropdown-content .dropdown-button:active {
    outline: 0;
}

#new-dropdown {
    position: relative;
}

#new-button {
   /* float: right;*/
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.dropdown-content {
    display: none;
    right: 0;
    position: absolute;
    background-color: white;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border: solid 1px var(--border-color);
    z-index: 1;
    margin-top: -1px;
    min-width: 100px;
    border-bottom-left-radius: 0.25em;
    border-bottom-right-radius: 0.25em;
}

/*.show {
    display: block;
}*/

.fc-event {
    font-family: inherit;
    font-size: 1em;
    font-weight: 500;
    background-color: transparent;
    border-color: transparent;
}

.fc-event-title {
    color: var(--btek-primarytext-color);
}

.dark-mode .fc-event-title {
    color: var(--btek-primarytext-color-dark);
}

.contract-style {
    background-color: #f4b19b;
    border: solid 1px #ee8866;
    cursor: grabbing;
    height: 23px !important;
    border-radius: 0.25em;
    padding: 0 -0.3em;
    width: auto !important;
    max-width: 500px;
    overflow: hidden;
}

    .contract-style > td {
        padding: 0 0.4em;
    }

.call-style {
    background-color: #7ed0b8;
    border: solid 1px #44bb99;
    cursor: grabbing;
    height: 23px !important;
    border-radius: 0.25em;
    padding: 0 -0.3em;
    width: auto !important;
    max-width: 500px;
    overflow: hidden;
}

    .call-style > td {
        padding: 0 0.4em;
    }

.job-style {
    background-color: #f0d5de;
    border: solid 1px #e1aabb;
    cursor: grabbing;
    height: 23px !important;
    border-radius: 0.25em;
    padding: 0 -0.3em;
    width: auto !important;
    max-width: 500px;
    overflow: hidden;
}

    .job-style > td {
        padding: 0 0.4em;
    }

.delivery-style {
    background-color: #a6c7e9;
    border: solid 1px #77aadd;
    cursor: grabbing;
    height: 23px !important;
    border-radius: 0.25em;
    padding: 0 -0.3em;
    width: auto !important;
    max-width: 500px;
    overflow: hidden;
}

    .delivery-style > td {
        padding: 0 0.4em;
    }

.rental-style {
    background-color: #e0a1ab;
    border: solid 1px #ffffff;
    cursor: grabbing;
    height: 23px !important;
    border-radius: 0.25em;
    padding: 0 -0.3em;
    width: auto !important;
    max-width: 500px;
    overflow: hidden;
}

    .rental-style > td {
        padding: 0 0.4em;
    }

.repair-style {
    background-color: #f5ecbb;
    border: solid 1px #e9d366;
    cursor: grabbing;
    height: 23px !important;
    border-radius: 0.25em;
    padding: 0 -0.3em;
    width: auto !important;
    max-width: 500px;
    overflow: hidden;
}

    .repair-style > td {
        padding: 0 0.4em;
    }

.part-style {
    background-color: #e0e7a1;
    border: solid 1px #bbcc33;
    cursor: grabbing;
    height: 23px !important;
    border-radius: 0.25em;
    padding: 0 -0.3em;
    width: auto !important;
    max-width: 500px;
    overflow: hidden;
}

    .part-style > td {
        padding: 0 0.4em;
    }

