.busy-indicator {
    display: inline-block;
}

    .busy-indicator.busy::after {
        content: " ";
        display: inline-block;
        width: 40px;
        height: 40px;
        margin: 1px;
        border-radius: 50%;
        border: 5px solid;
        border-color: #555 transparent #555 transparent;
        animation: busy-indicator 1.2s linear infinite;
    }

@keyframes busy-indicator {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.busy-indicator.succeeded::after {
    content: "S";
    font-size: 30px;
    font-family: MinutesFont;
    color: #081;
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 1px;
    border: 0;
    opacity: 1;
    animation: busy-indicator-fade 3s forwards;
}

.busy-indicator.failed::after {
    content: "I";
    font-size: 30px;
    font-family: MinutesFont;
    color: #810;
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 1px;
    border: 0;
    opacity: 1;
    animation: busy-indicator-fade 3s forwards;
}

@keyframes busy-indicator-fade {
    0% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}


.checkbox {
}

    .checkbox input:focus {
        border: solid black;
        border-width: 0 0 1px 0;
    }

    .checkbox span {
        vertical-align: middle;
    }

    .checkbox input {
        vertical-align: middle;
    }

html, body, div, table, header, footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
    outline: none;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', sans-serif;
    font-size: 15px;
    color: black;
    line-height: 1.4;
}

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button {
    padding: 6px 20px;
    background: none;
    border: 1px solid gray;
}

    button.default {
        border-color: #CC3399;
    }

    button:hover {
        background-color: #F0F0F0;
    }

    button:focus {
        outline: 1px solid #CC3399;
    }

    button:active {
        background-color: #DDD;
    }

    button:disabled {
        color: gray;
        background: none;
        border: 1px solid lightgray;
    }

.container {
    width: 100%;
    margin: 0 auto;
}

.flex-v {
    display: flex;
    flex-direction: column;
}

.flex-h {
    display: flex;
}

.content-center {
    align-items: center;
}

.flex-item {
    flex: 1;
}

.full-height {
    height: 100%;
}

@font-face {
    font-family: "MinutesFont";
    src: url(/Images/MinutesFont.otf) format('opentype');
}

.mf {
    display: inline-block;
    font: normal normal normal 14px/1 MinutesFont;
    font-size: inherit;
    line-height: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

    .mf.mf-connected:before {
        content: "v"
    }

#content-container {
    height: 100%;
}

#popup-container {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type='number'] {
    -moz-appearance: textfield;
}


.create-record {
}

    .create-record .text-input:first-child {
        display: inline-block;
        margin: 0 20px 0 0;
    }

        .create-record .text-input:first-child input {
            width: 75px;
        }

    .create-record .checkbox {
        display: block;
    }

    .create-record .default {
        margin: 20px 20px 20px 0;
        vertical-align:top;
    }
    .create-record .busy-indicator {
        margin: 12px;
    }

    .create-record .feedback {
        color: red;
    }

.border-icon-button {
    border: 1px solid #bbb;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 6px;
}

@media (pointer:coarse) {
    .border-icon-button {
        width: 44px;
        height: 44px;
    }
}


.date-input {
    height: 60px;
}

    .date-input input {
        width: 100%;
        padding: 6px 6px;
        border: 0;
        background-color:white;
    }

    .date-input.invalid input {
        color: #800;
    }

    .date-input input:disabled {
        color: gray;
        border-color: lightgray;
        background-color: transparent;
    }

    .date-input span {
        color: red;
    }


.form-input {
    position: relative;
    padding: 12px 0;
}

    .form-input label {
        position: absolute;
        color: gray;
        font-style: italic;
        left: 6px;
        top: 18px;
        pointer-events: none;
        transition: all 0.15s;
    }

        .form-input label.subsided {
            left: 0;
            top: 0;
            font-size: 9pt;
            transition: all 0.15s;
            color: lightgray;
        }

    .form-input .focus-indicator {
        position: absolute;
        bottom: 12px;
        width: 100%;
        border: solid gray;
        border-width: 0 0 1px 0;
    }

    .form-input .input:focus + .focus-indicator {
        border-color: #CC3399;
        border-width: 0 0 2px 0;
    }


.login {
    display: block;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 30px 0;
}

    .login .logo {
        width: 100%;
        height: 40vw;
        max-height: 150px;
        background-image: url(/Images/Product650.png);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .login form {
        display: block;
        max-width: 350px;
        width: 100%;
        margin: 0 auto;
        padding: 20px;
    }

        .login form button {
            display: block;
            margin: 20px auto;
        }

    .login .error {
        color: #b00;
    }




.main-header {
    padding: 6px 10px;
}

    .main-header h1 {
        margin: 0;
        padding: 0;
        font-weight: 300;
        font-size: 28px;
    }

    .main-header div:last-child {
        text-align: right;
    }

        .main-header div:last-child span:first-child {
            font-size: 18px;
        }

        .main-header div:last-child span:last-child {
            font-size: 12px;
            color: gray;
        }


.main-content {
    padding: 20px;
    overflow: auto;
}

.main-footer {
    background-color: #CC3399;
    font-size: 11px;
    color: white;
}

    .main-footer > div:first-child {
        white-space: nowrap;
        overflow: hidden;
    }

        .main-footer > div:first-child > span {
            padding: 6px 10px;
            display: inline-block;
        }

            .main-footer > div:first-child > span:not(:last-child) {
                border: solid lightgray;
                border-width: 0 1px 0 0;
            }

    .main-footer > div:last-child {
        background-color: #AA1E6E;
        padding: 6px 10px;
    }

        .main-footer > div:last-child .mf {
            margin: -5px 4px -6px 0;
            font-size: 16px;
        }



.tab-control-header {
    overflow: hidden;
    white-space: nowrap;
}

.tab-item-header {
    padding: 4px 12px;
    border: solid transparent;
    border-width: 0 0 4px 0;
    color: gray;
    height: 100%;
}
    .tab-item-header *{
        position:relative;
    }
    .tab-item-header:hover {
        color: #CC3399;
        background-color: transparent;
    }

    .tab-item-header.selected {
        color: #CC3399;
        border-color: #CC3399;
        transition: all linear 0.2s;
    }

.tab-item-header span {
    font-size: 22px;
    line-height:22px;
}

.text-area {
    min-height: 62px;
}


    .text-area .input {
        width: 100%;
        padding: 6px 6px;
        border: 0;
        min-height: 33px;
    }

    .text-area span {
        color: red;
    }


.text-input input {
    width: 100%;
    padding: 6px 6px;
    border: 0;
}

.text-input.invalid input {
    color: #800;
}

.text-input input:disabled {
    color: gray;
    border-color: lightgray;
    background-color: transparent;
}

.text-input .autocomplete-container {
    position: absolute;
    padding: 4px 0;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    z-index: 99;
    top: 100%;
    margin-top: -10px;
    left: 0;
    right: 0;
    background-color: white;
}

    .text-input .autocomplete-container > div {
        padding: 4px 6px;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .text-input .autocomplete-container > div:hover {
            background-color: whitesmoke;
        }

        .text-input .autocomplete-container > div.selected {
            /*when navigating through the items using the arrow keys:*/
            background-color: DodgerBlue !important;
            color: #ffffff;
        }