/* modal and header */
.invoiceDueDateGlyph {
    border-radius:0px;
}

#paymentTermDropdown {
    border: 1px solid #ccc;
    border-radius: 4px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.invoice-modal .modal-dialog {
    width: 350px;
}

.invoice-modal .modal-body .row:first-child {
    margin: -12px; 
    float:top;
}

.invoice-modal .modal-body .row:last-child {
    margin-top: 20px; 
    margin-left:0px;
}

.invoice-modal .modal-body .row:last-child .input-group-addon {
    width: 120px;
}

.invoice-modal #split-revenue {
    text-align: right;
}

#selection-bar {
    padding:8px 20px;
    width:100%;
    margin-bottom:0;
    z-index:1200;
    display: none;
}

#selection-bar.affix {
    position: fixed;
    top:0;
    width:100%;
}

.pro-rate-modal {
    z-index:1300;
}

#selection-bar label {
    padding-top: 7px;
}

#selection-bar span.button-group {
    float:right;
}

#invoice .row {
    margin: 10px;
}

#invoiceTitle {
    margin-top: 0;
}

#invoiceTitle .label {
    vertical-align:6px;
}

#invoice .row .control-label {
    text-align: right;
}

#clientName {
    margin-top: 0;
}

.select-table .table {
    margin-bottom:0px;
}

#payModal {
    z-index:1300;
}

#bottomButtonGroup {
    margin-top:5px;
    float:right;
    margin-right:40px;
    margin-bottom: 20px;
}

/* common panel classes */

.product-title {
    width:97%;
    padding-left:15px;
    display:inline-block;
}

.product-action {
    width: 3%;
    padding: 8px;
}

.summary-row {
    background-color:#F0F0F0;
}

/* other charges table */

#other-charges-panel {
    width: 98%;
    float:left;
    margin-left:10px;
}

#other-charges-panel .panel {
    width: 100%;
    float:left;
}
#other-charges-panel .panel-heading {
    padding:0;
}

#other-charges-panel .panel-title table {
    width: 100%;
}

#otherCharge_table .table {
    margin-bottom: 5px;
}

#otherCharge_table .other-desc{
    width: 60%;
}

#otherCharge_table .other-charge{
    width: 9%; 
    text-align: center;
}

#otherCharge_table .other-amount{
    width: 11%; 
    text-align: center; 
    vertical-align: middle;
}

#otherCharge_table .other-subtotal{
    width: 10%; 
    text-align:right; 
    vertical-align: middle;
}

#otherCharge_table .delete-charge{
    width: 3%; 
    vertical-align:middle;
}

#otherChargeSummary .delete-charge{
    width: 4%; 
    vertical-align:middle;
}

#otherChargeSummary .other-sumamry{
    width:86%;
    padding-left:15px;
}

#otherChargeSummary .other-summary-total{
    width:10%; 
    text-align:right;
}

#otherChargeSummary table {
    width:100%;
    height:40px;
}

/* product table */

.invoice-product-description {
    font-weight: bold;
    font-size:16px;
}

.product-flags {
    padding-top:5px;
    padding-left:10px;
}

.product .panel:last-child {
    float:right;
    background:#F0F0F0;
    min-width: 15%;
    padding:0 4%;
    text-align:right;
    margin-top:-4px;
    border-top:none;
}

.product .panel:last-child .min-div {
    margin-bottom: 8px;
}

.product .panel:last-child .min-div label {
    font-size:16px;
    display: inline-block;
    width:100px;
    text-align:right;
}

.product .product-minimum {
    text-align:right;
    background-color: #E0E0FF;
    width:100px;
    display: inline-block;
    margin-right:-13px;
    margin-left:13px;
}

.product .panel:last-child .total-div label:first-child {
    font-size:16px;
    width:100px;
    display: inline-block;
    text-align:right;
}

.product .product-total {
    font-size:16px;
    width:100px;
    display: inline-block;
    background-color:#F0F0F0;
}

.product .panel:first-child {
    width: 100%;
    float: left;
    overflow: visible;
}

.product .panel-heading {
    padding: 0;
}

.product .panel-heading table {
    width: 100%;
}

.product .csid {
    width: 4%;
    vertical-align:middle;
}

.product .territory {
    width: 5%; 
    text-align:center;
    vertical-align: middle;
}

.product .description {
    width: 32%;
    vertical-align: middle;
}

.product .description input {
    width: 100%;
}

.product .item-usage {
    width: 8%;
    vertical-align: middle;
}

.product .rev-rate {
    width: 9%;
    vertical-align: middle;
    text-align:left;
}

.product .item-quantity {
    width: 9%;
    vertical-align: middle;
}

.product .item-amount {
    width: 9%;
    vertical-align: middle;
}

.product .item-minimum {
    width: 9%; 
    text-align:center;
}

.product .item-subtotal {
    width: 10%; 
    text-align:right; 
    vertical-align: middle;
}

.product .item-checkbox {
    width:3%;
    vertical-align: middle;
}

.product .summary-table .summary {
    width:41%; 
    padding-left:15px;
}

.product .summary-table .hits {
    width:16%; 
    text-align:left;
}

.product .summary-table .hits-amount {
    width:8%; 
    text-align:right;
}

.product .summary-table .subtotal {
    width:19%;
    text-align:right;
}

.product .summary-table .subtotal .subtotal-label{
    font-size:16px; 
    display: inline-block; 
    width:100px;
    text-align:right;
}

.product .summary-table .subtotal .product-subtotal{
    font-size:16px; 
    width:100px; 
    display:inline-block; 
    background-color:#F0F0F0;
}

.product .summary-table .table{
    margin-bottom:0px;
}
 
/* total panel */

#total-panel {
    width: 98%;
    float:left;
    margin-left:10px;
}

#total-panel .panel {
    width: 100%;
    float:left;
}

#summarytable .table {
    margin-bottom:0;
    padding-bottom:0;
}

#summarytable .table tfoot {
    background-color:#337ab7;
    color:white;
}

#total-panel .invoice-type{
    width: 35%;
}

#total-panel .invoice-empty{
    width: 32%;
}

#total-panel .invoice-rate{
    width: 9%;
    text-align:center;
}

#total-panel .invoice-amount{
    width: 9%;
    vertical-align:middle; 
    text-align:right; 
    padding-right:18px;
}

#total-panel .invoice-minimum{
    width: 9%;
    text-align:center
}

#total-panel .invoice-subtotal{
    width: 17%; 
    vertical-align:middle; 
    text-align:right; 
    padding-right:20px
}

#subtotalRow {
    background-color:#d9edf7; 
    color:#31708f;
}

.pdf-button {
    display:inline-block;
}

#subtotalRow .invoice-subtotal{
    font-weight:bold;
}

#invTotalRow .invoice-total{
    text-align:right; 
    font-weight:bold;
}

#invTotalRow .invoice-total-cell{
    text-align:right; 
    padding-right:20px; 
    vertical-align:middle;
}

.remove-product, .other-charges-close {
    color: red;
    opacity: 0.4;
}

.newProductInvoiceBtn {
    float: right; 
    margin-right: 20px;
}

.remove-product:hover, .other-charges-close:hover{
    color: red;
    opacity: 0.8;
}

#deleteModal {
    z-index:1200;
}

#waitingModal {
    padding-top:15%;
    overflow-y:visible;
}

#waitingModal h3 {
    margin:0;
    text-align:center;
}

.accordion-button{
    float:left; 
    padding:8px;
}

.invoice_action, .pay {
    cursor:pointer;
}
