﻿/* Receipt Discount Summary */
table#tblDiscountSummary td {
    text-align: left !important;
}

table#tblDiscountSummary th {
    text-align: right !important;
}
/*******************/
body {
}

#invoice, #pnlreceipt  {
    padding: 5px;
    background: #fff;
    font-family:inherit;
}

.invoice {
    position: relative;
    /*background-color: #FFF;*/
    min-height:480px;
    padding: 5px;
    font-size: 15px;
}

    .invoice .flex-container, .invtoolbar .flex-container {
        /* We first create a flex layout context */
        display: flex;
        /* Then we define the flow direction 
                and if we allow the items to wrap 
            * Remember this is the same as:
            * flex-direction: row;
            * flex-wrap: wrap;
            */
        flex-flow: row wrap;
        /* Then we define how is distributed the remaining space */
        justify-content: space-between;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .invoice .flex-item , .invtoolbar .flex-item  {
        padding: 15px;
        margin-top: 10px;
        line-height: 30px;
        font-weight: bold;
        text-align: center;
    }


    .invoice .flex-item-left {
        line-height: 30px;
        font-weight: bold;
        text-align: left;
    }



#invoice, #pnlreceipt {
    padding: 15px;
    background: #fff;
    width: 1000px;
    font-family: inherit;
    background-image: url(/image/paper.jpg);
    box-shadow: 1px 1px 10px #aaa;
    margin-left: auto;
    margin-right: auto;
}

    .invoice header {
        padding: 10px 15px;
        margin-bottom: 20px;
        border-bottom: 1px solid #3989c6
    }

    .invoice header img {
        /*padding: 10px 15px;*/
        margin :0 auto;
    }

    .invoice .company-details {
        text-align: right
    }

        .invoice .company-details .name {
            margin-top: 0;
            margin-bottom: 0
        }

    .invoice .contacts {
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
    }

    .invoice .invoice-to {
        text-align: left
    }

        .invoice .invoice-to .to {
            margin-top: 0 !important;
            margin-bottom: 0
        }

    .invoice .invoice-details {
        text-align: right;
        display: flex;
        flex-direction: column;
    }

        .invoice .invoice-details .invoice-id {
            margin-top: 0;
            color: #3989c6
        }

    .invoice main {
        padding-bottom: 50px
    }

        .invoice main .thanks {
            margin-top: -100px;
            font-size: 2em;
            margin-bottom: 50px
        }

        .invoice main .notices {
            padding-left: 6px;
            border-left: 6px solid #3989c6;
            margin: 20px;
        }

            .invoice main .notices .notice {
                font-size: 1.2em
            }

    .invoice table {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        margin-bottom: 20px
    }

        .invoice table td, .invoice table th {
            padding: 8px;
        
            border-bottom: 1px solid #fff
        }

        .invoice table th {
            white-space: nowrap;
            font-weight: 400;
        }

        .invoice table td h3 {
            margin: 0;
            font-weight: 400;
            color: #3989c6;
            font-size: 0.80em
        }

        .invoice table .qty, .invoice table .total, .invoice table .unit  {
            text-align: right;
        }

        .invoice table .no {
            color: #fff;
            font-size: 1em;
            background-color:darkgrey;
        }

        .invoice table .unit {
            background: #ddd
        }

        .invoice table .total {
            background-color:darkgray;
            color: #fff
        }

        /*.invoice table tbody tr:last-child td {
            border: none
        }*/

        .invoice table tfoot td {
            background: 0 0;
            border-bottom: none;
            white-space: nowrap;
            text-align: right;
            padding: 10px 20px;
            font-size: 1em;
            border-top: 1px solid #aaa
        }

        .invoice table tfoot tr:first-child td {
            border-top: none
        }

        .invoice table tfoot tr:last-child td {
            color: #3989c6;
            font-size: 1.2em;
            border-top: 1px solid #3989c6
        }

        .invoice table tfoot tr td:first-child {
            border: none
        }

    .invoice footer {
        width: 100%;
        text-align: center;
        color: #777;
        border-top: 1px solid #aaa;
        padding: 8px 0
    }

    .invoice .tfooter, .invoice .tfooter td {
        text-align: right;
    }
    
@media print {
    .invoice {
        font-size: 11px !important;
        /*overflow: hidden !important*/
    }

        .invoice footer {
            position: absolute;
            bottom: 10px;
            page-break-after: always
        }

        .invoice > div:last-child {
            page-break-before: always
        }
}

.invoice table .no {
  width: 0%;
}
.text-bold.bg-white{
	background:transparent
}

div#pnlreceipt {
    width: unset;
}