/* animation for loader*/
.loader{
    margin: 0.75em;
    border: 0.5em solid #f3f3f3; /* Light grey */
    border-top: 0.5em solid #8B0000; /* Blue */
    border-radius: 50%;
    width: 1em;
    height: 1em;
    float: left;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    border:1px solid #ddd;
    color:#FF0000;
    background-color: #F0D0D0
}

.loading{
    white-space: nowrap;
    margin-top: 1em;
}

.recordsTable {
    font-family:"Trebuchet MS", Arial, Helvetica, sans-serif;
    border-collapse:collapse;
    width:100%;
}

.recordsTable > thead th {
    font-weight:700;
    background-color:#8B0000;
    color:#FFF;
    text-shadow:1px 1px #5c1106;
}

.recordsTable tbody tr {
    background-color:#FFF;
}

.recordsTable tbody tr.childTable.expanded {
    background-color:#666;
    border-left:5px #8B0000 solid;
    display:table-row;
}

.recordsTable tbody td {
    border:1px solid #ddd;
    color:#333;
    padding:3px;
}

.recordsTable tbody td.loading {
    border:1px solid #ddd;
    color:#fff;
}

.recordsTable tbody td.error {
    border:1px solid #ddd;
    color:#FF0000;
    background-color: #F0D0D0
}

.recordsTable tbody td.number {
    text-align:right;
}

.recordsTable tbody tr.expandable:hover {
    background-color:#F7F5F3;
}

.recordsTable tbody tr.expandable.expanded {
    background-color:#2a3133;
    border-left:5px #8A0A0A solid;
}

.recordsTable tbody tr.expandable.expanded td {
    color:#FFF;
}

.recordsTable tbody td.itemsCase {
    border-bottom:1px solid #000;
    background-color:#8A0A0A;
    margin:0;
    padding:0;
}

.recordsTable tbody table.itemTable {
    width:100%;
    border-collapse:collapse;
}

.recordsTable tbody table.itemTable thead th {
    background-color:#999;
    color:#FFF;
    padding:3px;
}

.recordsTable tbody table.itemTable tbody tr:nth-child(even) {
    background-color:#f2f2f2;
}

.recordsTable tbody table.itemTable tbody td {
    padding:3px;
}

.noResultsCell {
    text-align:center;
    font-style:italic;
}

.recordsTable tbody table.itemTable tbody tr.printRow > td {
    background-color:#999;
    padding:0;
}

.recordsTable tbody table.itemTable tbody tr.printRow > td > form > input {
    width:auto;
    height:100%;
    float:right;
    margin:0;
}

.recordsTable tbody table.itemTable tr.containerRow {
    font-size:0.9em;
}

.recordsTable tbody table.itemTable td.containerItemText {
    font-style:italic;
}

.recordsTable tbody table.itemTable td.containerFirstColumn::before { /* add the new bullet point */
    display: inline-block;
    content: '';
    -webkit-border-radius: 0.45em;
    border-radius: 0.45em;
    height: 0.45em;
    width: 0.45em;
    margin-right: 0.5em;
    background-color: black;
}

#advancedSearchInvoices.collapsed {
    padding-top:0;
    padding-bottom:0;
}

#advancedSearchInvoices.collapsed:hover {
    background:#F7F5F3;
}

#advancedSearchInvoices span {
    text-align:right;
    float:right;
    color:#999;
    font-style:italic;
    margin:0;
    padding:0 10px 0 0;
}

#advancedSearchInvoices.expanded {
    padding-bottom:0;
}

#filterInvoices p {
    margin:0;
    padding:0;
    color: #8A0A0A;
    font-weight:bold;
    font-family: arial, helvetica, sans-serif;
}

#invoicesResultDisplay{
    float:left;
}

#filterInvoiceSearch {
    font-size: 16px;
    padding: 5px 10px 5px;
    border: 1px solid #ddd;

    width:40%;
    float:left;
}

.orderReportButton {
    float: right !important;
    margin: 0 1.5em 0 0;
    padding: 0 0 0 1em;
}

@media screen and (max-width: 979px) {
    .orderReportButton {
        display:block !important;
        /*float: left !important;*/
        width: 100% !important;
        margin: 0;
    }
}

#filterButton {
    float:left;
}

#clearButton {
    float:left;
}

#filterNotes {
    text-align: right;
    float: right;
    color: #999;
    font-style: italic;
    font-weight:normal;
    margin: -1.5em 0 0;
    padding: 0 10px 0 0;
}

#filterOrderNote {
    /*to line up titles on the left*/
    /*margin: 0.3em 0;*/
    /*padding: 15px 0 5px 0 !important;*/

    float: left;
    font-weight: bold;
    margin-bottom: -30px;
}

@media screen and (max-width: 979px) {
    #filterOrderNote {
        float:none;
        width: 100% !important;
        margin-bottom: 0;
        /*width: 50%; /*!* The width is 50%, when the viewport is 800px or smaller *!*/
    }
}

.recordsTable tbody tr.childTable,#advancedSearchInvoices.collapsed > div,#advancedSearchInvoices.expanded > span,#advancedSearchInvoices #dateRangeBox.collapsed > fieldset,#advancedSearchInvoices #dateRangeBox.expanded > span {
    display:none;
}