﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

.width100percent {
    width: 100%;
}

.loading {
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    position: fixed;
    overflow: hidden;
    background-color: rgba(255,255,255,0.5);
    z-index: 9999;
}

.btnloading {
    background-image: url("/images/loading.gif");
    background-size:50px;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -500px;
    font-size: 0;
}

.loadingText {
    top: 200px;
    width: 300px;
    height: auto;
    margin: 0 auto;
    padding: 10px;
    position: relative;
    background-color: white;
    text-align: center;
    border: 3px solid black;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 5px 10px #888888;
}

    .loadingText img {
        margin-bottom: 20px;
        clear: both;
    }

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
form input,
form select,
form textarea {
    max-width: 280px;
}

tr.selected {
    background-color: lightgrey;
}

.fullWidth {
    width: 100%;
}

.dateWidth {
    width: 80%;
    max-width: 139px;
    margin-right: 2px;
}

.smallDateWidth {
    width: 100px;
}

label.placeholder {
    color: grey;
}

.controlwidth6 {
    width: 50%;
}

.oldestValidationLink {
    display: block;
}

tr.invalid td.invalid {
    color: red;
}

    tr.invalid td.invalid input {
        color: red;
    }

    tr.invalid td.invalid .bootstrap-select > .btn {
        border: 1px solid red;
    }

        tr.invalid td.invalid .bootstrap-select input {
            color: black;
        }

a.inactive {
    color: darkgrey;
}

a.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

.gridlabel {
    height: 20px;
    width: 96%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

@keyframes flickerAnimation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-o-keyframes flickerAnimation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-moz-keyframes flickerAnimation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes flickerAnimation {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.animate-flicker {
    -webkit-animation: flickerAnimation 2s infinite;
    -moz-animation: flickerAnimation 2s infinite;
    -o-animation: flickerAnimation 2s infinite;
    animation: flickerAnimation 2s infinite;
}

div.nopadding td {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

div.nopadding label {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.align-right {
    text-align: right;
    padding-right: 8px;
}

    .align-right input {
        text-align: right;
    }

.align-right-table {
    margin-right: 7px;
}

.align-center {
    text-align: center;
}

.form-group-xs {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.bigdrop {
    width: 600px !important;
}

.fontsize-20 {
    font-size: 20px;
}

.fontsize-25 {
    font-size: 25px;
}

.bottom-buffer {
    margin-bottom: 20px;
}

.row.top-buffer {
    margin-top: 20px;
}

.row.top-buffer-xl {
    margin-top: 60px;
}

.glyphicon {
    cursor: pointer;
}

    .glyphicon.glyphicon-move {
        cursor: move;
    }

    .glyphicon.glyphicon-minus {
        cursor: not-allowed;
    }

.warningModal {
    display: none;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    position: fixed;
    overflow: hidden;
    background-color: rgba(255,255,255,0.5);
    z-index: 9999;
}

.warningText {
    top: 200px;
    width: 300px;
    height: auto;
    margin: 0 auto;
    padding: 10px;
    position: relative;
    background-color: white;
    text-align: center;
    border: 3px solid black;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 5px 10px #888888;
}

    .warningText img {
        margin-bottom: 20px;
        clear: both;
    }

div:has(> input.warn-empty) { /* styles to apply to the li tag */
    border: 1px solid #FFCCCC;
}

.pwfield {
    -webkit-text-security: disc;
}

.basic-border-bottom {
    padding-bottom: 12px;
    border-bottom: 1px solid black;
}

.basic-border-top {
    padding-top: 12px;
    border-top: 1px solid black;
}

.column-header {
    font-weight: 900;
    font-size: 15px;
}

.current-row {
    background-color: lightskyblue;
}

.future-row {
    background-color: lightgrey;
}

.transition-all {
    -webkit-transition: all 0.25s ease;
    -moz-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

/* Bootstrap select */
.dropdown.bootstrap-select input[type=search] {
    font-size: 14px;
}
.dropdown.bootstrap-select .filter-option-inner-inner {
    font-size: 14px;
}

.dropdown.bootstrap-select a[role=option] {
    font-size: 14px;
}

.ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* Default margin styling */
.margin-top-25 {
    margin-top: 25px !important;
}
.margin-right-25 {
    margin-right: 25px !important;
}
.margin-bottom-25 {
    margin-bottom: 25px !important;
}
.margin-left-25 {
    margin-left: 25px !important;
}

.margin-top-50 {
    margin-top: 50px !important;
}
.margin-right-50 {
    margin-right: 50px !important;
}
.margin-bottom-50 {
    margin-bottom: 50px !important;
}
.margin-left-50 {
    margin-left: 50px !important;
}

/* Default padding styling */
.padding-bottom-50 {
    padding-bottom: 50px !important;
}
.padding-right-50 {
    padding-right: 50px !important;
}
.padding-bottom-50 {
    padding-bottom: 50px !important;
}
.padding-left-50 {
    padding-left: 50px !important;
}
.padding-bottom-25 {
    padding-bottom: 25px !important;
}
.padding-right-25 {
    padding-right: 25px !important;
}
.padding-bottom-25 {
    padding-bottom: 25px !important;
}
.padding-left-25 {
    padding-left: 25px !important;
}

/* Nav tabs */

ul.nav-tabs {
    margin-top: 25px;
    border: none;
}

    ul.nav-tabs li {
        margin-right: 5px;
        width: 130px;
        z-index: 1;
    }

        ul.nav-tabs li:first-child {
            margin-left: 30px;
        }

        ul.nav-tabs li a {
            background-color: white;
            text-align: center;
            border: none !important;
        }

            ul.nav-tabs li a:not(.active) {
                background-color: #7A8BB2;
                box-shadow: inset 0 -4px 4px #5f6c8a;
                color: white;
            }

.tab-content {
    border: none;
}

    .tab-content .content-panel {
        margin-top: 0;
    }

        .tab-content .content-panel .btn-group.bootstrap-select {
            margin-top: 10px;
        }

    .tab-content .tab-pane .buttons .bootstrap-select {
        width: 47% !important;
    }


.invoice-email-modal-body {
    padding: 50px;
}

/* Dirty forms */
.dirty input.dirty, .dirty textarea.dirty, .dirty select.dirty + button {
    font-style: italic;
    background-color: darkorange;
}
input[type=checkbox].dirty + .toggle-group .btn {
    background-color: darkorange !important;
}