﻿body {
    padding-top: 70px;
    padding-bottom: 20px;
}

/* Set width on the form input elements since they're 100% wide by default */
/*
input,
select,
textarea {
    max-width: 280px;
}
*/

input.input-fixed {
    width: 300px;
}

div.tab-content {
    padding-top: 20px;
}

.italic {
    font-style: italic;
}

.not-allowed {
    cursor: not-allowed;
}

.no-value-placeholder {
    font-style: italic;
    color: gray;
}

.font-100 {
    font-size: 100% !important;
}

.pointer {
    cursor: pointer;
}

a[disabled] {
    pointer-events: none;
    color: gray;
}

a.hover-link {
    color: black;
}

    a.hover-link:hover {
        color: #007bff;
    }

a:not([href]).force-link {
    color: #007bff;
}

/* nav elements */
a:not([href], .disabled).nav-link {
    color: #007bff;
}

a.external-indicator[target="_blank"]:after {
    content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
    margin: 0 3px 0 5px;
}

/* header bar elements */
.header-bar {
    background-color: #343a40;
    margin-bottom: 1em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
}

    .header-bar h2, .header-bar h3 {
        color: rgba(255,255,255,.5);
        font-size: 15px;
    }

/* Environment indicators */
.env-DEV .header-bar {
    background-color: #4169E1;
}

.env-TEST .header-bar {
    background-color: #FFA500;
}

    .env-DEV .header-bar h2, .env-DEV .header-bar h3, .env-TEST .header-bar h2, .env-TEST .header-bar h3 {
        color: white;
    }

.env-indicator {
    height: 5px;
}

.env-DEV .env-indicator {
    background-color: #4169E1;
}

.env-TEST .env-indicator {
    background-color: #FFA500;
}

.env-PROD .env-indicator {
    display: none;
}

.env-name {
    padding-right: 1em;
}

.env-PROD .env-name {
    display: none;
}

/* PLACEHOLDERS */
::-webkit-input-placeholder {
    font-style: italic;
}

::-moz-placeholder {
    font-style: italic;
}
/* firefox 19+ */
:-ms-input-placeholder {
    font-style: italic;
}
/* ie */
input:-moz-placeholder {
    font-style: italic;
}

/* VALIDATION */
/*.ng-pristine { border:1px solid Gold; }*/
/*.ng-dirty.ng-valid { border:1px solid Green; }*/
/*.ng-dirty.ng-valid ~ span.ok { color:green; display:inline; }*/

.ng-dirty.ng-invalid {
    border: 1px solid Red;
}

    .ng-dirty.ng-invalid ~ span.ok {
        color: red;
        display: inline;
    }

form.ng-dirty.ng-invalid {
    border: none;
}

div.ng-dirty.ng-invalid {
    border: none;
}

.ng-touched.ng-invalid {
    border: 1px solid Red;
}

    .ng-touched.ng-invalid ~ span.ok {
        color: red;
        display: inline;
    }

form.ng-touched.ng-invalid {
    border: none;
}

div.ng-touched.ng-invalid {
    border: none;
}

div.error {
    color: red;
    font-style: italic;
}

form.ch-submitted .ng-invalid, div.ch-submitted .ng-invalid {
    border: 1px solid Red;
}

/*form.ch-submitted.ng-invalid .panel-body, div.ch-submitted.ng-invalid .panel-body {
    border: 1px solid Red;
}*/

/*.ng-submitted .ng-invalid {
    border: 1px solid Red;
}*/

/*div.ng-submitted.ng-invalid {
    border: none !important;
}*/

.ch-touched.ng-invalid {
    border: 1px solid Red;
}

    .ch-touched.ng-invalid ~ span.ok {
        color: red;
        display: inline;
    }

/* styles for validation helpers */
.field-validation-error {
    color: #b94a48;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}

/*// from https://bootsnipp.com/snippets/X09Rp
:required  {
    background: url(https://cdn0.iconfinder.com/data/icons/fugue/icon/asterisk-small.png) no-repeat;
    background-position:right top;
}*/

/* MISC HELPERS */
.bold {
    font-weight: bold !important;
}

.capitalize {
    text-transform: capitalize;
}

.center {
    text-align: center !important;
}

.top-left {
    position: absolute;
    top: 0;
    left: 0;
}

.top-right {
    position: absolute;
    top: 0;
    right: 0;
}

.dim {
    color: #909090;
}

.dirty-results {
    opacity: 0.5;
}

.full-width {
    /*display: block;*/
    width: 100% !important;
}

.fw-normal {
    font-weight: normal;
}

.highlight--danger {
    background-color: red !important;
}

.highlight--new {
    background-color: yellow !important;
}

.highlight--success {
    background-color: #198754 !important;
}

.inline {
    display: inline;
}

.no-margin {
    margin: 0 !important;
}

.no-top-margin {
    margin-top: 0 !important;
}

.margin-bottom {
    margin-bottom: 10px;
}

.margin-top-double {
    margin-top: 20px;
}

.margin-left {
    margin-left: 10px;
}

.margin-right {
    margin-right: 10px;
}

.margin-right-min {
    margin-right: 2px;
}

.max-h-400 {
    max-height: 400px;
}

.min-h-200 {
    min-height: 200px;
}

.nowrap {
    white-space: nowrap;
}

.overflow-y {
    overflow-y: auto;
}

.pad-left {
    padding-left: 10px;
}

.pad-left-min {
    padding-left: 2px !important;
}

.pad-right {
    padding-right: 10px;
}

.pad-right-min {
    padding-right: 2px !important;
}

.pad-top-none {
    padding-top: 0px !important;
}

.pointer {
    cursor: pointer;
}

.strike {
    text-decoration: line-through;
}

.text-100 {
    font-size: 100%;
}

.text-large, large, .large {
    font-size: 120%;
}

.upper {
    text-transform: uppercase;
}

ul.no-indent {
    padding-left: 1.2em;
    margin-left: 0;
}

/* TABLES */

tr.subtotal > td {
    font-weight: bold;
    text-align: right;
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

tfoot > tr.total > td {
    font-weight: bold;
    text-align: right;
}

    tfoot > tr.total > td > div.input-group {
        float: right;
    }

tr.no-border > td {
    border: none !important;
}

tr.force-odd {
    background-color: #f9f9f9 !important;
}

tr.force-even {
    background-color: #ffffff !important;
}

tr.highlight td {
    background-color: #FFFFBB;
}

tr.strikethru td:not(.no-strikethru) {
    text-decoration: line-through;
}

/*.no-strikethru {
    text-decoration: none !important;
}*/

tr.v-middle td {
    vertical-align: middle !important;
}

.w-px-75 {
    width: 75px;
    max-width: 75px;
    min-width: 75px;
}

.w-px-100 {
    width: 100px;
    max-width: 100px;
    min-width: 100px;
}

/* EJ OVERRIDES (SYNCFUSION) */

/* adjust input controls to make the font match */
.e-input {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #555555;
}

.e-input, .e-in-wrap {
    /* border-radius: 0 !important; */
    font-size: 12px;
}

    .e-input.ng-touched.ng-invalid {
        border: 1px solid Red;
    }

.control > .e-widget {
    width: 100% !important;
}

div.e-popup, div.e-calendar {
    font-size: 12px !important;
}

.e-upload-box.e-drag-wrapper .e-drag-container {
    padding-bottom: 20px;
}

.e-drag-hover {
    border: dashed 3px #d9edf7 !important;
}

.form-inline .e-datewidget {
    display: inline-block;
    position: relative;
    /*top:10px;*/
}

.e-atc-popup {
    box-shadow: 4px 3px 8px 1px #969696;
    -webkit-box-shadow: 4px 3px 8px 1px #969696;
}

.e-sm .e-input {
    font-size: 11px;
}

/* ANGULARJS */
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak {
    display: none !important;
}

/* ANGULAR-BUSY */
.cg-busy-custom-sign {
    display: inline-block;
    position: relative;
    z-index: 1002;
    /*padding-bottom: 6px;*/
    color: #333333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    background-color: #e9eeee;
    border: 1px solid #dddddd;
    /*border-top-width:0;*/
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    /*border-top-left-radius:0;*/
    /*border-top-right-radius:0;*/
    -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
    -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
    /* custom rules */
    margin-top: 10px;
    height: 50px;
    width: 55px;
}

/* NG ENHANCEMENTS */

a[ng-click] {
    cursor: pointer;
}

/* XEDITABLE OVERRIDES */
.editable-wrap {
    width: 100%;
}

    .editable-wrap .editable-controls {
        width: 100%;
    }

    .editable-wrap .editable-full-width {
        width: 100%;
    }

/* ANGULAR-TAGGER OVERRIDES */

.angular-tagger {
    width: 100%;
    max-width: none;
    padding: 3px;
}

.angular-tagger__tag {
    background-color: #5bc0de;
}

.angular-tagger-tag__delete {
    padding-left: 5px;
}

/* THUMBNAILS (no longer in bootstrap) */
.thumbnails::after {
    clear: both;
}

.thumbnails::before, .thumbnails::after {
    display: table;
    content: "";
}

.thumbnails {
    margin-left: -20px;
    list-style: none;
}

/* SPINKIT OVERRIDES */

.sk-spinner-wave {
    width: 50px;
    height: 60px;
}

    .sk-spinner-wave .sk-rect {
        background-color: #FFF;
        width: 6px;
        margin: 0 1px;
    }

.pg-loading-screen .pg-loading-html p {
    color: #FFF;
    font-weight: 300;
}

    .pg-loading-screen .pg-loading-html p.loading-message {
        font-size: 20px;
        margin-bottom: 100px;
    }

/* FONTAWESOME ENHANCEMENTS */
.fa-danger {
    color: #d9534f;
}

.fa-success {
    color: #5cb85c;
}

/* email signatures */
.email-signature {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif, Segoe UI;
}

    .email-signature p {
        margin: 0px;
    }

/* Remove when upgraded to Bootstrap 4.x */
.text-muted {
    color: #6c757d !important;
}
