﻿

body > .page-content {
    padding: 8px;
}
table.header-fixed thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}
input[type=checkbox].x2 {
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
}
input[type=checkbox].x1 {
    width: 1rem;
    height: 1rem;
}
input[type=checkbox].x1_5 {
    width: 1.5rem;
    height: 1.5rem;
    margin-right:0.5rem;
}
input[type=checkbox].x1_5+label {
    margin-left: 0.5rem;
}
input.required,
select.required{
    border: 1px solid red;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.6);
    outline: none; /* prevents double highlight */
}
.d-flex.flex-row > * {
    margin-right: 12px;
}

    .d-flex.flex-row > *:last-child {
        margin-right: 0px;
    }

.d-flex.flex-row.stretch-items > * {
    flex-grow: 1;
}
.row.margin>*{
    margin-bottom:1rem;
}
.flex-colunm.margin, .flex-column.flex-margin{
    margin-bottom:1rem;
}
.flex-row.margin>*,.flex-row.flex-margin>*{
    margin-right:1rem;
}
input.number,
select.number {
    max-width: 150px;
    width: 120px;
    text-align: right;
}

.grow-1 {
    flex-grow: 1 !important;
}

.grow-2 {
    flex-grow: 2 !important;
}

.grow-3 {
    flex-grow: 3 !important;
}

.grow-4 {
    flex-grow: 4 !important;
}

.grow-5 {
    flex-grow: 5 !important;
}

.tab-control {
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .tab-control > .tabbar {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }

        .tab-control > .tabbar > .tab {
            padding: 0.5rem;
            border: solid 1px #7FD0FB;
            border-radius: 0.5rem;
            margin-right: 1px;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            border-bottom: none;
        }

        .tab-control > .tabbar > .tab:hover {
            background-color: #7FD0FB;
            transition: background-color 0.2s;
        }

        .tab-control > .tabbar > .tab.active {
            background-color: #7FD0FB;
            -webkit-box-shadow: 2px 1px 5px 0px rgba(50, 50, 50, 0.75);
            -moz-box-shadow: 2px 1px 5px 0px rgba(50, 50, 50, 0.75);
            box-shadow: 2px 1px 5px 0px rgba(50, 50, 50, 0.75);
        }

    .tab-control > .tab-content {
        border: solid 2px #7FD0FB;
        padding: 1rem;
        width: 100%;
    }

        .tab-control > .tab-content > .tab {
        }

.section-title {
    padding: 0.5rem;
    /*font-size: 1rem;*/
    font-weight: bold;
    border-bottom: solid 2px #007BFF;
    color: #007BFF;
    margin-bottom: 0.5rem;
}

    .section-title a {
        font-weight: normal;
    }

.appbar {
    padding: 1rem;
    background-color: #007BFF;
    color: white;
    display: flex;
    flex-direction: row;
}

    .appbar > * {
        margin-bottom: 0px;
        margin-top: 0px;
    }

    .appbar a, .appbar a:visited {
        color: white;
    }
/*#region Modal*/
/* The Modal (background) */

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 10000;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: #000000;
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

    .modal.open {
        display: block;
    }

.busy.hidden, .busy-inline.hidden, .loading.hidden, .loading-inline.hidden {
    display: none;
}

.busy, .busy-inline, .loading, .loading-inline {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    display: block;
}
    /* CSS LOADER ANIMATION */
    .busy .image_back, .busy-inline .image_back, .loading .image_back, .loading-inline .image_back {
        background: url(/img/loader1408519743.png) no-repeat center;
        border-radius: 80px;
        width: 100px;
    }

    .busy .first_circle, .busy-inline .first_circle, .loading .first_circle, .loading-inline .first_circle {
        border-top: 10px solid #dcdcdc;
        border-right: 10px solid #dcdcdc;
        border-bottom: 10px solid #dcdcdc;
        border-left: 10px solid #cb2025;
        -webkit-animation: anim_wifeo 1.4s infinite linear;
        -moz-animation: anim_wifeo 1.4s infinite linear;
        -ms-animation: anim_wifeo 1.4s infinite linear;
        -o-animation: anim_wifeo 1.4s infinite linear;
        animation: anim_wifeo 1.4s infinite linear;
    }

    .busy .second_circle, .busy-inline .second_circle, .loading .second_circle, .loading-inline .second_circle {
        border-radius: 100px;
        width: 100px;
        height: 100px;
        border-top: 5px solid #dcdcdc;
        border-right: 5px solid #dcdcdc;
        border-bottom: 5px solid #dcdcdc;
        border-left: 5px solid #00506b;
        -webkit-animation: anim 1.4s infinite linear;
        -moz-animation: anim 1.4s infinite linear;
        -ms-animation: anim 1.4s infinite linear;
        -o-animation: anim 1.4s infinite linear;
        animation: anim 1.4s infinite linear;
    }

    .busy .first_circle, .busy-inline .first_circle, .loading .first_circle, .loading-inline .first_circle,
    .busy .first_circle:after, .busy-inline .first_circle:after, .loading .first_circle:after, .loading-inline .first_circle:after {
        border-radius: 80px;
        width: 80px;
        height: 80px;
    }
/*#region Autocomplete Input*/
.typeahead,
.autocomplete {
    position: relative;
    min-width: 250px;
}

    .typeahead .autocomplete-container,
    .autocomplete .autocomplete-container {
        display: none;
        background-color: white;
        flex-direction: column;
        z-index: 100;
        position: absolute;
        left: 0px;
        right: 0px;
        top: 2em;
        width: fit-content;
        font-family: Arial, sans-serif;
        max-height: 20em;
        overflow-y: auto;
        border-radius: 3px;
        box-shadow: 2px 2px 3px 1px #b4b4b4;
    }

        .typeahead .autocomplete-container.open,
        .autocomplete .autocomplete-container.open {
            display: flex;
        }

        .typeahead .autocomplete-container:nth-child(3),
        .autocomplete .autocomplete-container:nth-child(3) {
            margin-top: 2em;
        }

.autocomplete-container .autocomplete-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #3a87f3;
    padding: 12px;
    cursor: default;
}

    .autocomplete-container .autocomplete-item:hover {
        background-color: #71acff;
    }
/*#endregion*/
footer {
    padding: 1rem;
}
/* CSS LOADER ANIMATION */
@-webkit-keyframes anim_wifeo {
    0% {
        -webkit-transform: rotate(0deg) scale(0.8);
    }

    50% {
        -webkit-transform: rotate(360deg) scale(1);
    }

    100% {
        -webkit-transform: rotate(720deg) scale(0.8);
    }
}

@-webkit-keyframes anim {
    0% {
        -webkit-transform: rotate(0deg) scale(0.8);
    }

    50% {
        -webkit-transform: rotate(180deg) scale(1);
    }

    100% {
        -webkit-transform: rotate(360deg) scale(0.8);
    }
}

@-moz-keyframes anim_wifeo {
    0% {
        -moz-transform: rotate(0deg) scale(0.8);
    }

    50% {
        -moz-transform: rotate(360deg) scale(1);
    }

    100% {
        -moz-transform: rotate(720deg) scale(0.8);
    }
}

@-moz-keyframes anim {
    0% {
        -moz-transform: rotate(0deg) scale(0.8);
    }

    50% {
        -moz-transform: rotate(180deg) scale(1);
    }

    100% {
        -moz-transform: rotate(360deg) scale(0.8);
    }
}

@-ms-keyframes anim_wifeo {
    0% {
        -ms-transform: rotate(0deg) scale(0.8);
    }

    50% {
        -ms-transform: rotate(360deg) scale(1);
    }

    100% {
        -ms-transform: rotate(720deg) scale(0.8);
    }
}

@-ms-keyframes anim {
    0% {
        -ms-transform: rotate(0deg) scale(0.8);
    }

    50% {
        -ms-transform: rotate(180deg) scale(1);
    }

    100% {
        -ms-transform: rotate(360deg) scale(0.8);
    }
}

@keyframes anim_wifeo {
    0% {
        transform: rotate(0deg) scale(0.8);
    }

    50% {
        transform: rotate(360deg) scale(1);
    }

    100% {
        transform: rotate(720deg) scale(0.8);
    }
}

@keyframes anim {
    0% {
        transform: rotate(0deg) scale(0.8);
    }

    50% {
        transform: rotate(180deg) scale(1);
    }

    100% {
        transform: rotate(360deg) scale(0.8);
    }
}
/* END OF CSS LOADER ANIMATION */
