#saleshistory-table {
    width: 100%;
}
#saleshistory-table th {
    font-weight: bold;
    padding: 5px;
}

#saleshistory-table td,#saleshistory-table th {
    text-align: left;
    vertical-align: middle;
}

#saleshistory-table thead tr,
#sales-detail-items-table thead tr {
    border-bottom: 1px solid #004488;
}

#saleshistory-table thead tr.last {
    height: 10px;
}

#saleshistory-table tbody tr:hover a {
    text-decoration: underline;
}

#saleshistory-table td {
    height: 29px;
    padding: 0 5px;
}

.producthistory-index-index #saleshistory-table td {
    height: 42px;
}

.producthistory-index-index #saleshistory-table th {
    padding-right: 17px;
}

.producthistory-index-index #saleshistory-table th:nth-child(1),
.producthistory-index-index #saleshistory-table th:nth-child(2) {
    padding-right: 0px;
}

#saleshistory-table .odd {
    background-color: #F2F5F9;
}

#saleshistory-table tr.hidden,
#saleshistory-table tr.hidden td {
    display: none;
}

#saleshistory-table tr td > span {
    cursor: pointer;
}

#sales-detail-items-table {
    width: 100%;
}
#sales-detail-items-table th {
    font-weight: bold;
    padding: 5px;
}

#sales-detail-items-table td,#sales-detail-items-table th {
    text-align: left;
    vertical-align: top;
}

#sales-detail-items-table tbody tr:hover a {
    text-decoration: underline;
}

#sales-detail-items-table td {
    height: 29px;
    padding: 9px 5px;
}

#sales-detail-items-table tfoot td {
    padding: 0 5px;
    vertical-align: middle;
}


#sales-detail-items-table .odd {
    background-color: #F2F5F9;
}

#sales-detail-items-table .action-row td {
    padding-top: 0;
    font-size: 0.8em
}

#saleshistory-table tr.salerow {
    border-top: 2px solid #fff;
}

#saleshistory-table tr.salerow:first-child {
    border-top: 2px solid #004488;
}

#saleshistory-table tr.detailcontainer {
    border: 1px solid #004488;
    background-color: #fff !important;
}

#saleshistory-table tr.detailcontainer td > div {
    margin: 10px;
    text-align: left;
}

#saleshistory-table .statecell {
    vertical-align: top;
    padding: 0px;
}

#saleshistory-table .statecell span {
    padding: 7px 25px 7px 7px;
    display: block;
    border-left: 2px solid #fff;
    height: 34px;
}

#saleshistory-table .statecell:last-child span {
    padding-right: 0px;
}

#saleshistory-table .statecell.statedone,
#saleshistory-table .statecell.stateactive {
    font-weight: bold;
}
#saleshistory-table .statecell.stateactive span {
    background-color: rgba(0,68,138,0.2);
}

#saleshistory-table .statecell.statedone span {
    background-color: #004488;
    color: #fff;
}

#saleshistory-table .statecell.statedone span a {
    font-weight: normal !important;
    color: #fff;
}

.sales-details-container h2 {
   margin-bottom: 5px;
}

.sales-details-container .col2-set {
    margin-bottom: 20px;
}

.sales-details-container .page-title a {
    margin-left: 10px;
}

td.no-bg {
    background-color: #fff !important;
}

.saleshistory-container .control-holder {
    font-weight: normal;
    float: right;
    padding: 4px 3px 0px;
}

.saleshistory-container .control-holder a.selectBox {
    height: 24px;
}

.saleshistory-index-view .messages,
.invoicehistory-index-view .messages,
.creditmemohistory-index-view .messages,
.saleshistory-index-view .messages,
.invoicehistory-index-view .messages,
.creditmemohistory-index-view .messages {
    display: none;
}

.history-pdf {
    position: absolute;
    bottom: 0px;
    right: 0px;
}

.sales-details-container .col2-set {
    position: relative;
}

#ordered-products-search {
    padding: 6px;
    border-color: #004488;
    width: 307px;
}
