body .grid1 {
    padding: 0;
    margin: 0;
    border-spacing: 0;
    /*border-collapse: collapse; Evgeny: commented this out because it 
        removed the right border in table>thead>th in FF */
}

    body .grid1 tbody th {
        font-weight: 700;
    }

    body .grid1 thead th {
        font-size: 12px;
        color: #fff;
        font-weight: bold;
        background: var(--header-bg-color);
        padding: 5px 5px;
        border-spacing: 0;
        border-right: solid 1px #65A0B0;
        text-align: center;
        vertical-align: middle;
    }

        body .grid1 thead th:last-child {
            border-right: 0;
        }

        body .grid1 thead th > a:before, body .grid1 thead th > a:after {
            color: #efefef;
            font-weight: normal !important;
        }

        body .grid1 thead th > input[type=checkbox] {
            top: 1px;
        }

        body .grid1 thead th > a {
            color: #efefef;
            font-size: 100%;
        }

        body .grid1 thead th:first-child {
            border-bottom-left-radius: 2px;
            border-top-left-radius: 2px;
        }

        body .grid1 thead th:last-child {
            border-bottom-right-radius: 2px;
            border-top-right-radius: 2px;
        }

    body .grid1 thead {
        /*border-bottom: solid 1px white;*/
    }

    body .grid1 tbody th {
        font-weight: normal;
        text-align: left;
    }

    body .grid1 tr.category td, body .grid1 tr.category th {
        background: #eee;
    }

    body .grid1 tr[data-who="me"] td, body .grid1 tr[data-who="me"] th {
        background-color: #F6B900;
    }

    body .grid1 tbody tr.subheading td h4 {
        font-weight: bold;
        font-size: 100%;
        padding: 8px 0 5px 0;
        margin: 0;
    }

    body .grid1 tbody tr.subheading td .none {
        margin-bottom: 4px;
        color: #bbb;
    }

    body .grid1 tr.category th, body .grid1 tr[data-who="me"] th {
        font-weight: bold;
    }

        body .grid1 tr.category th.odd {
        }

    body .grid1 tr.sub1 th {
        padding-left: 20px !important;
    }

    body .grid1 tr.sub2 th {
        padding-left: 30px !important;
    }

    body .grid1 tr td, #mainContent .grid1 tr td, #mainContent .grid1 tbody th {
        padding: 5px 10px 3px 10px;
        border-bottom: solid 1px #d5d5d5;
    }

    body .grid1 tr:last-child td, #mainContent .grid1 tr:last-child td {
        border-bottom: none;
    }

    body .grid1.with-checkboxes tr:not(.subheading) td,
    #mainContent .grid1.with-checkboxes tr:not(.subheading) td {
        padding: 5px 10px;
        vertical-align: middle;
        background-color: #FFFFC7;
        font-weight: normal;
    }

    body .grid1 tr.extended td, #mainContent .grid1 tr.extended td {
        border-bottom: none;
    }

    body .grid1 tr.extension td, #mainContent .grid1 tr.extension td {
        border-color: #555;
        border-bottom-width: 2px;
    }

    body .grid1 td.notes, #mainContent .grid1 td.notes {
    }

.grid1 a[class^="icon-"]:before, .grid1 span[class^="icon-"]:before {
    margin-right: 1px;
}

.grid1 tr.wait td, .grid1 tr th.wait, .grid1 tr td.wait {
    height: 15px;
    background-image: url(/images/wait.gif);
    background-repeat: no-repeat;
    background-position: 2px 50%;
}

.grid1btns .delete-order {
    zoom: 85%;
}

.grid1tools {
    font-size: 13px;
    margin: .3em 0;
}

.grid1 tr td .grid1tools {
    margin: 0;
}

#mainContent .grid1 td .grid1tools .note {
    font-size: 11px;
    font-weight: normal;
    display: block;
    white-space: normal;
    text-align: left;
    line-height: 120%;
}

.grid1btns {
    float: left;
    position: relative;
}

.grid1 td .grid1btns {
    float: none;
    top: 0;
}



.grid1 .status.compact .grid1tools {
    display: inline-block;
}

.grid1filters {
    float: right;
    position: relative;
}

body .grid1tools input.default, body .grid1tools button.default {
    font-size: 100%;
}

body .grid1tools input.unlikely, body .grid1tools button.unlikely {
    font-size: 90%;
}

body .grid1tools a.unlikely {
    font-size: 90%;
}

#mainContent .grid1 .status.captured {
    background: #eee;
    color: black;
    border-bottom: solid 1px #ddd;
}

.status.voided, .status.voided, .status.force_voided, .status.fraud, .status.refused, .status.error {
    background: red;
    color: white;
}

.grid1 .ckb {
    width: 10px;
}

.grid1-empty-text, .empty-text, .empty-note {
    padding: 5px 10px;
    color: #bbb;
}

.grid1 .sort-order-num {
    max-width: 50px;
    text-align: center;
}

.grid1 th.num, .grid1 td.num, .grid1 td.date {
    text-align: right;
}

.mobile-grid1filters div {
    display: inline-block;
    vertical-align: top;
}

body .grid1btns {
}

    body .grid1btns a, body .grid1btns button {
        vertical-align: middle;
        margin-right: 2px;
        white-space: nowrap;
    }

        body .grid1btns a:last-child, body .grid1btns button:last-child {
            margin-right: 0;
        }

body .grid1 h2.table-section-title {
    margin: 5px 0;
    font-size: 15px;
    line-height: initial;
}

.grid1.compact .extended {
    display: none;
}

.grid1.compact .status-text {
    font-weight: bold;
    display: block;
    text-align: center;
}

.grid1.compact td.status{
    display: table-cell;
    text-align: center;
}

.grid1 tr td.warning,
#mainContent .grid1 tr td.warning {
    color: inherit;
    background: yellow;
}


.grid1 .franchisee-br{
    display: none;
}

#mainContent .in-place-editable {
    border-collapse: collapse;
}

    #mainContent .in-place-editable tr:last-child td {
        border: solid 1px #d5d5d5;
    }

#mainContent .in-place-editable.grid1 td {
    border: solid 1px #d5d5d5;
}

    #mainContent .in-place-editable td.read-only {
        background-color: #f5f5f58f;
    }