﻿body {
    padding-top: 50px;
    padding-bottom: 20px;
}


/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* 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;
}

.spacer-x2 {
    margin-top: 60px;
}
.spacer {
    margin-top: 30px;
}

/* Spinner from https://codepen.io/Mestika/pen/XmvVmx */
.spinner {
    display: inline-block;
    opacity: 0;
    max-width: 0;
    -webkit-transition: opacity 0.25s, max-width 0.45s;
    -moz-transition: opacity 0.25s, max-width 0.45s;
    -o-transition: opacity 0.25s, max-width 0.45s;
    transition: opacity 0.25s, max-width 0.45s;
    /* Duration fixed since we animate additional hidden width */
}

.has-spinner.active {
    cursor: progress;
}

    .has-spinner.active .spinner {
        opacity: 1;
        max-width: 50px;
        /* More than it will ever come, notice that this affects on animation duration */
    }

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

.month-datepicker {
    width: 110px !important;
}

.popover-detail, .popover-detail-large {
    cursor: pointer;
    border-bottom: 1px dashed #adadad;
    text-decoration: none;
}
    .popover-detail:hover, .popover-detail-large:hover {
        cursor: pointer;
        text-decoration: none;
    }

.popover-lg {
    max-width: 100% !important;
    width: 400px;
}
.popover table {
    border-collapse: collapse !important;
    font-size: 0.9em !important;
    width: 100%;
}

.popover table .text-muted {
    color: #777 !important;
}

.popover table > thead > tr > th,
.popover table > tbody > tr > th,
.popover table > tfoot > tr > th,
.popover table > thead > tr > td,
.popover table > tbody > tr > td,
.popover table > tfoot > tr > td {
    padding: 4px;
    line-height: 0.9em;
    vertical-align: top;
}
.popover table > thead > tr > th {
    vertical-align: bottom;
}

.filter-bar {
    background: #efefef;
    padding: 10px 10px 10px 10px;
    border-bottom: 1px solid #bbb;
    border-top: 1px solid #bbb;
    margin-bottom: 10px;
}

    .filter-bar label {
        font-weight: normal;
    }

    .filter-bar .form-group {
        margin-left: 10px;
    }

        .filter-bar .form-group:first-child {
            margin-left: 0;
        }

.table-bordered > thead > tr > th, .table-bordered > thead > tr > td {
    border-bottom-width: 1px;
}

.table-report {
    font-size: 12px;
}

    .table-report .table-report-summary {
        font-weight: bold;
    }

    .table-report .table-report-totals {
        font-weight: bold;
    }

        .table-report .table-report-totals tr {
            border-top: 1px solid #333;
        }

tbody > tr.table-report-totals > td {
    background-color: #f5f5f5;
}

table.allocation-row {
    margin-bottom: 0;
}

    table.allocation-row tr td {
        vertical-align: middle;
    }
    table.allocation-row tr td.row-action {
        padding: 4px;
    }
    table.allocation-row tr:first-child td {
        border-top: none;
        padding-top: 0px;
    }
.action-search-popup {
    cursor: pointer;
}

.userModal span.readonly {
    display: inline-block;
    margin-top: 7px;
}

.dialog-lg .modal-dialog {
    width: 700px;
}

/****** VALIDATION HELPERS*****/
.field-validation-error {
    color: #ff0000;
}

.field-validation-valid {
    display: none;
}

.input-validation-error {
    border: 1px solid #ff0000 !important;
}

.validation-summary-errors {
    font-weight: bold;
    color: #ff0000;
}

.validation-summary-valid {
    display: none;
}

.field-validation-error {
    color: #e74c3c;
}

.input-validation-error:focus {
    border: 1px solid #e74c3c !important;
}
/****** VALIDATION HELPERS END*****/


/******* ORDER LISTING VIEW ******/
/* NB these are copied in OpenOrdersPdf.cshtml */
.bg-purple {
    background-color: #d2bef0;
    background-color: rgba(210, 190, 240, 1);
}

.bg-purple-translucent {
    background-color: rgba(210, 190, 240, 0.5);
}

.bg-pink {
    background-color: #f0c8c8;
    background-color: rgba(240, 200, 200, 1);
}

.bg-pink-translucent {
    background-color: rgba(240, 200, 200, 0.5);
}

.bg-blue {
    background-color: #337ab7;
    background-color: rgba(51, 122, 183, 1);
}

.bg-blue-translucent {
    background-color: rgba(51, 122, 183, 0.2);
}

.bg-cyan {
    background-color: #32beb4;
    background-color: rgba(50, 190, 180, 1);
}

.bg-cyan-translucent {
    background-color: rgba(50, 190, 180, 0.2);
}

.bg-yellow {
    background-color: #e6f08c;
    background-color: rgba(230, 240, 140, 1);
}

.bg-yellow-translucent {
    background-color: rgba(230, 240, 140, 0.5);
}

.bg-green {
    background-color: #aaf08c;
    background-color: rgba(170, 240, 140, 1);
}

.bg-green-translucent {
    background-color: rgba(170, 240, 140, 0.5);
}

.bg-default {
    background-color: #f5f5f5;
}

.bg-red {
    background-color: #ff4444;
    background-color: rgba(255, 68, 68, 1);
}

.bg-red-translucent {
    background-color: rgba(255, 68, 68, 0.4);
}

.bg-grey {
    background-color: #A2A2A2;
    background-color: rgba(85, 85, 85, 1);
}

.bg-grey-translucent {
    background-color: rgba(85, 85, 85, 0.2);
}

/********/

.email td {
    width: 140px;
    padding: 3px;
}

    .email td.long {
        width: 70%;
    }

    .email td.align-right {
        text-align: right
    }

.small-input {
    width: 50px;
}
.medium-input {
    width: 80px;
}
.small-idropdown {
    width: 100px;
}

.align-top {
    vertical-align: top !important;
}

.quote-table {
    font-size: smaller;
}

.push {
    margin-top: 20px;
}

.push-x2 {
    margin-top: 40px;
}

.fa-spin-custom, .glyphicon-spin {
    -webkit-animation: spin 1000ms infinite linear;
    animation: spin 1000ms infinite linear;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

.grey {
    color: lightslategray;
}


.table-greyHeader > thead > tr {
    background-color: #f2f2f2;
}

.table-bordered-thick {
    border: 2px solid #ddd;
}

/* extra-wide layout for wide grids/pages */
@media (min-width: 1500px) {
    .container {
        width: 1460px;
    }
}

@media (min-width: 1800px) {
    .container {
        width: 1740px;
    }
}