﻿* {
    font-family: 'Noto Serif Lao', serif;
}

.page-body {
}

.page-header {
    color: blue;
}
#Select_Container_Truck td {
    padding: 8px !important;
}

#Tariff_Summary td input {
    border: none;
    line-height: 0;
}

.f-c-white {
    color: #fff;
}
#Tariff_Summary table th, #Select_Container_Truck table th, #ModalPreAlert table th {
    color: #fff;
    border-style: unset;
    border-width: unset;
    /*border-radius:10px;*/
    font-size: 12px;
}
table#tbInvoice tbody td,
table#tbTaxInvoice tbody td,
table#tbContainer_Truck tbody td,
table#TaxCharge_Summary tbody td,
table#tbTariff_Summary tbody td {
    padding: 4px 10px !important;
}

table#tbTariff_Summary input, 
table#TaxCharge_Summary input, 
table#tbContainer_Truck input {
    height: 28px;
}
.dataTables_wrapper button {
    padding: 0.175rem 0.75rem;
}
table {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

table td {
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    border-left: 1px solid #eee;
}
.table-striped > tbody > tr:nth-of-type(odd) {
    --bs-table-accent-bg: #fff;
}
#USD1 table td, #USD2 table td, #LAK1 table td, #LAK2 table td {
    padding:16px;
}
#USD1 th:nth-child(1), #USD2 th:nth-child(1), #LAK1 th:nth-child(1), #LAK2 th:nth-child(1) {
    border-radius: 10px 10px 0 0 !important;
}
table th {
    padding: 10px;
}
#PrintTaxInvoiceTable td {
    padding: 0.1rem 1rem !important;
}


#Tariff_Summary th:nth-child(1), #Select_Container_Truck th:nth-child(1), #ModalPreAlert th:nth-child(1), #ModalTariff th:nth-child(1), #TaxInvoice th:nth-child(1) {
    border-radius: 10px 0 0 0;
}

#Tariff_Summary th:last-child, #Select_Container_Truck th:last-child, #ModalPreAlert th:last-child, #ModalTariff th:last-child, #TaxInvoice th:last-child {
    border-radius: 0 10px 0 0;
}

.btn-search {
    position: absolute;
    background-color: transparent;
    margin-right: 10px;
}

button.btn-search:focus {
    outline: none;
}

.addcharge {
    border-radius: 15px;
}
.border-bg-blue {
    border: 1px solid #7EBFF6;
}

.btn-custom {
    position: absolute;
    border: none;
    background-color: #fff;
    bottom: 2px;
    border-radius: 5px;
    transition: 0.5s;
}

.btn-custom:hover {
    background-color: aquamarine;
    border-radius: 5px;
}

#tbTariff_Summary td:nth-child(2) input {
    width: 180px;
} 

#tbTariff_Summary td:nth-child(3) input {
    width: 350px !important;
/*    font-size: 12px !important;*/
    text-align:start!important;
} 
#TaxCharge_Summary td:nth-child(4) input {
    width: 330px !important;
/*    font-size:12px;*/
} 


/*.dataTables_length, .dataTables_filter {
    display:none;
}*/

.sticky2 {
    font-size: 14px;
    position: fixed;
    background-color: #e5e7e9 !important;
    z-index: 10;
    width: 86%;
    top: 82px;
    padding: 25px 0;
}

/*--------------------------------------------------------------------------------------*/
@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1440px;
    }
/*    #AddChargeCSS {
        height: 570px !important;
    }*/
}
.button1 {
    background-color: transparent;
    border: none;
    box-shadow: none;
    font-size: 16px;
    cursor: pointer;
    position: absolute;
    top: 27px;
    right:25px;
}

    .button1:focus {
        outline: none;
    }

.rotate {
    transition: transform 0.3s ease;
}

.rotate-up {
    transform: rotate(0deg);
}

.rotate-down {
    transform: rotate(180deg);
}

/*@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1440px;
    }
}

@media (max-width: 1440px ) {
    .sticky2 {
        z-index: 1;
        width: 80%;
    }
}

@media (max-width: 1024px) {
    .sticky2 {
        z-index: 1;
        width: 75%;
    }
}

@media (max-width: 768px) and (max-width: 974px) {
    .sticky2 {
        z-index: 1;
        width: 98%;
    }
}

@media (max-width: 974px) {
    .sticky2 {
        width: 100%;
    }

    .showMeun {
        display: inline-block !important;
        margin-right: 30px !important;
    }

    .btnGroup {
        display: none;
    }
    .col-md-2{
        width:100%
    }
}

@media (max-width: 425px) {
    .sticky2 {
        z-index: 1;
        width: 100%;
    }

    .btnsutatus {
        margin-top: 10px;
    }

    .Cancel, .Save {
        margin-top: 5px
    }

    .btnGroup {
        text-align: center !important;
    }
}
*/

.bookmark {
    border-radius: 5px;
    background-color: #e5e7e9 !important;
    position: fixed;
    top: 90px;
    z-index: 10;
    right: 20px;
    padding: 0 15px 10px 15px;
    box-shadow: none; 
    transition: 0.3s ease;
}

    .bookmark.scrolled {
        border: 1px solid #e5e7e9 !important;
        box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
        background-color: #e5e7e9 !important;
        padding: 5px 25px 15px 25px;
        margin-top: 5px;
        transition: 0.3s ease;
    }
       

/*.page-header .sticky {
    position: sticky;
    top: 0;
    background-color: green;
    border: 2px solid #4CAF50;
}*/

.btn-wrapper {
    display: inline-block;
/*    margin-right: 10px;*/
}
.btn-hover {
    margin-top:10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.5s ease-in-out;
    overflow: hidden;
}

    .btn-hover:hover {
        filter: brightness(0.8);
        transform: scale(1.05);
    }

label {
    margin-bottom: 6px !important;
}

.bookmark .display-bookmark {
    display: none;
}
/*.btn-icon {
    color: #117a65;
}

.btn-hover:hover .btn-icon {
    color: #fff;
}

.btn-hover:hover {
    background-color: #117a65;
    color: #fff;
}


@media (max-width: 1000px) {
    .btn-hover:hover .btn-text {
        opacity: 1;
        max-width: 200px;
        font-size: 10px;
    }
}*/

@media (max-width: 1200px) {
    i{
        margin:0px !important;
    }

    .btn-text {
        margin-left: 10px;
        opacity: 0;
        white-space: nowrap;
        max-width: 0;
        overflow: hidden;
        transition: all 0.5s ease-in-out;
        font-size: 10px;
    }

    .btn-hover:hover .btn-text {
        opacity: 1;
        max-width: 200px;
    }
    
  
}

.input_box {
    height: 24px;
}

.hide-copy{
    display:none !important;
}

@media print {
    * {
        font-family: 'Phetsarath2020',Phetsarath2020;
    }

    /*body {
        -webkit-print-color-adjust: exact;
        background-image: url('../img/Watermark.jpg');
        width: 10% !important;
        height: 10% !important;
        opacity: 0.8 !important;
    }*/

    .no-print {
        display: none;
    }

    .paper {
        width: 275mm;
        min-height: 297mm;
        /*page-break-after: always;*/
        
    }

       /* .paper:last-child {
            page-break-after: auto;
        }
*/
    .original {
        min-height: 297mm;
        display: flex;
    }
    .hide-copy {
        display: flex !important;
        min-height: 297mm;
    }

    .page {
        /*page-break-after: always;*/
        position: relative;
    }

    table {
        font-size: 13px;
        table-layout: fixed;
        border-collapse: collapse;
        width: 100% !important;
        box-shadow: none !important;
    }

    .p-box-print {
        border: 1px solid #305496;
        border-bottom: none;
        margin-bottom: 0;
        padding: 0;
        overflow: hidden;
        height: 80%;
    }

    .bg-tax {
        opacity: 0.8 !important;
        z-index: -1;
        position: absolute;
        /*width: 100%;*/
        height: 297mm;
        opacity: 0.8;
        top: 0;
        left: 0;
        page-break-after: always;
    }

    .page-break {
        page-break-after: always;
    }

    #PrintTaxInvoiceTable thead tr {
        background-color: transparent !important;
    }

    #PrintTaxInvoiceTable thead th {
        color: black !important;
        border-top: 1px solid #305496 !important;
        border-bottom: 1px solid #305496 !important;
        border-color: #305496 !important;
        background-color: transparent !important;
       /* -webkit-print-color-adjust: exact;
        print-color-adjust: exact;*/
    }

    #PrintTaxInvoiceTable,
    #PrintTaxInvoiceTable th,
    #PrintTaxInvoiceTable td,
    #PrintTaxInvoiceTable tr {
        background-color: transparent !important;
        margin-top: 640px;
    }

    #PrintTaxInvoiceTable {
        border-collapse: collapse;
        width: 100%;
    }

    #PrintTaxInvoiceTable.table-bordered td {
        border-top: none !important;
        border-bottom: none !important;
    }

    #PrintTaxInvoiceTable td {
        border-left: 1px solid #305496;
        border-right: 1px solid #305496;
    }

    .tablehead-background {
        background-color: transparent !important;
    }

    #PrintTaxInvoiceTable tbody tr td {
        border-top: none !important;
        border-bottom: none !important;
    }

    #PrintTaxInvoiceTable tr:first-child th {
        border-top: 1px solid #305496;
    }

    #PrintTaxInvoiceTable tr:last-child td {
        border-bottom: 1px solid #305496;
    }

    #PrintTaxInvoiceTable td:first-child,
    #PrintTaxInvoiceTable th:first-child {
        border-left: 1px solid #305496;
    }

    #PrintTaxInvoiceTable td:last-child,
    #PrintTaxInvoiceTable th:last-child {
        border-right: 1px solid #305496;
    }

    #PrintTaxInvoiceTable tbody:last-of-type td {
        border: 1px solid #305496 !important;
    }

    #PrintTaxInvoiceTable tbody {
        page-break-inside: avoid;
    }

        #PrintTaxInvoiceTable tbody.page:last-child {
            page-break-after: auto; 
        }

    #PrintTaxInvoiceTable tfoot:last-of-type td {
        border-bottom: 1px solid #305496 !important;
    }

    .table-responsive {
        overflow: visible !important;
    }

    #PrintTaxInvoiceTable .table-bordered td {
        border-color: #305496 !important;
    }


    /*/*#TaxInvoiceTempNewReportTB table-sm {
        background-color: white !important;
        font-size: 30px !important;
    }
    /*.content {
        position: relative;
        z-index: 1;
    }*/
    .table-sm th,
    .table-sm td {
        padding: 3px !important;
    }

    label {
        font-size: 12.9px !important;
    }

    label.title-tax {
        font-size: 22px !important;
    }

    p.form-label {
        font-size: 12.9px !important;
        min-height: 13%;
        margin-bottom: 0;
    }

    label.input_box{
        font-size:14px !important;
    }

    p .input_box {
        font-size: 50px !important;
    }
    .header-logo {
        width: 30%; /*
        margin-left: 180px;*/
        display: block !important;
    }
    .footer-print {
        position: fixed;
        bottom: 0 !important;
        flex-direction: column;
        align-items: center;
    }

    .footer-print-total {
        line-height:1.2;
        position:relative; 
        top:-16mm;
    }

    .header-print {
        position: fixed;
        top: 0 !important;
        flex-direction: column;
        align-items: center;
    }

    .body-print {
        /*position: fixed;*/
        top: 0px !important;
        flex-direction: column;
        align-items: center;
    }
    #PrintTaxInvoiceTable tbody.page-break {
        
        margin-top: 10px; /* ปรับให้เท่ากับความสูง header-print */
    }
}