/* Extend Class */
@import url('https://fonts.googleapis.com/css2?family=Kanit&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sarabun&display=swap');

.bg-tns{
    background-color: #00cdc9;
}
.bg-tns-cl-wl{
    background-color: #00cdc9;
    color: #fff;
}
.btn-tns{
    color: #fff;
    background-color: #01b9b5;
    border-color: #01b9b5;
}
.btn-tns:hover,.btn-tns:not(:disabled):not(.disabled):active{
    color: #fff;
    background-color: #009e9b;
    border-color: #009e9b;
}
.btn-tns.focus, .btn-tns:focus{
    color: #fff;
    background-color: #009e9b;
    border-color: #009e9b;
    box-shadow: 0 0 0 0 rgba(0, 158, 155, 0.603);
}
.text-white{
    color: #fff;
}
.card-tns.card-outline{
    border-top: 3px solid #00b9b6;
}
.card-header{
    border-bottom: none;
}
.back_btn{
    vertical-align: middle;
    font-size: 2rem;
    margin-right: 0.5rem;
    color: #343a40;
}
.back_btn:hover{
    color: #00bfbf;
}
.content-before{
    background-image: -webkit-gradient(linear,left top,right top,from(#9f78ff),to(#32cafe));
    background-image: -webkit-linear-gradient(left,#9f78ff,#32cafe);
    background-image: -moz-linear-gradient(left,#9f78ff,#32cafe);
    background-image: -o-linear-gradient(left,#9f78ff,#32cafe);
    background-image: linear-gradient(to right,#9f78ff,#32cafe);
    background-repeat: repeat-x;

    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 120px;
    -webkit-transition: .3s ease all;
    -moz-transition: .3s ease all;
    -o-transition: .3s ease all;
    transition: .3s ease all;
}
.content-header{
    margin-top: 5px;
}
.content-header h1{
    display: inline-block;
    background: #00d5d5;
    padding: 10px 30px;
    box-shadow: 2px 2px #e3e3e3;
    font-weight: 600;
    color: #ffffff;
    font-size: 1.5rem;
    border-radius: 3.25rem;
}
.mr-tb-auto{
    margin-top: auto;
    margin-bottom: auto;
}
.spc_card_title{
    font-weight: 500;
    font-size: 0.98rem;
}
.page-icon-left{
    font-size: 9rem;
    color: #009d9a;
}
.page-link{
    color: #009d9a;
}
.page-item.active .page-link{
    background-color: #00cdc9;
    border-color: #00cdc9;
}
.alert_p{
    margin: 0;
    /* padding-left: 35px; */
    padding-left: 30px;
}
.td-w-3{
    width: 3%;
}
.td-w-7{
    width: 7%;
}
.td-w-15{
    width: 15%;
}

/* Select 2
.was-validated .custom-select:invalid + .select2 .select2-selection{
    border-color: #dc3545!important;
}
.was-validated .custom-select:valid + .select2 .select2-selection{
    border-color: #28a745!important;
}
*:focus{
  outline:0px;
}
.is-invalid + .select2-container--bootstrap4 .select2-selection--single {     
    border: 2px solid #dc3545; 
}
.is-invalid + .select2-container--default .select2-selection--single {
    border: 2px solid #dc3545; 
} */
.is-invalid .select2-selection,
.needs-validation ~ span > .select2-dropdown{
  border-color:red !important;
}

/* DataTable */
.dataTables_wrapper{
    margin-top: 15px;
}

.dataTables_length{
    padding-left: 20px;
}

div.dt-buttons{
    margin-left: 20px;
}

div.dataTables_wrapper div.dataTables_filter{
    margin-right: 20px;
}

div.dataTables_wrapper div.dataTables_info{
    padding-left: 20px;
}

div.dataTables_wrapper div.dataTables_paginate{
    padding-right: 20px;
    margin-bottom: 15px;
    margin-top: 10px;
}

.dataTable tbody td:last-child{
    text-align: center;
}
.dataTable#user_table tbody td:last-child{
    width: 15% ;
}

/* SideBar */
.aside_user_icon i{
    font-size: 1.6rem;
    color: white;
    vertical-align: -webkit-baseline-middle;
    padding-left: 5px;
}
.brand-tns{
    max-height: 70px;
}
.sidebar-collapse .brand-tns{
    max-height: 30px;
}
.sidebar-mini.sidebar-collapse .main-sidebar:not(.sidebar-no-expand):hover .brand-tns{
    max-height: 70px;
}

/* Data Table */
.table .tb_count{
    width: 40px;
}


/* Nav Bar */
.navbar-white{
    box-shadow: 0px 1px #d9d9d9;
}

/* Login Page */
.login-page{
    background-color: #01b9b5;
}
.login-brand{
    box-shadow: 0px 5px 11px 1px rgba(0,0,0,0.31);
    -webkit-box-shadow: 0px 5px 11px 1px rgba(0,0,0,0.31);
    -moz-box-shadow: 0px 5px 11px 1px rgba(0,0,0,0.31);
}
.login-box .card{
    border-radius: 10px;
    box-shadow: 0px 5px 11px 1px rgba(0,0,0,0.31);
    -webkit-box-shadow: 0px 5px 11px 1px rgba(0,0,0,0.31);
    -moz-box-shadow: 0px 5px 11px 1px rgba(0,0,0,0.31);
}
.login-card-body{
    padding: 40px 20px;
    border-radius: 10px;
}

/* index user */
.ex_tpye_user h3{
    font-size: 1rem;
    padding: 20px;
}

.card-title{
    font-weight: 600;
}

/* index quotation */
.quo_stat > span{
    font-size: 0.9rem;
    padding: 7px;
}

/* add edit quotation */
.item-disp-head{
    padding-top: 1.5rem;
}
.item-disp-head h4{
    font-weight: bold;
}
.card-title-desc{
    float: left;
    line-height: 1.2;
    margin-left: 6px;
}
#overlay-spin{	
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    height:100%;
    display: none;
    background: rgba(0,0,0,0.6);
}
.cv-spinner {
    margin-left: -250px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;  
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #2e93e6 solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}
.sidebar-collapse .cv-spinner{
    margin-left: -73.5px;
}
@keyframes sp-anime {
    100% { 
      transform: rotate(360deg); 
    }
}
.no_quo_item:before {
    content:"ooo";  
}

/* Invoice Preview */
.invoice{
    padding: 2rem 2.5rem !important;
    height: 297mm;
    width: 210mm;
    margin: 0 auto;
    position: relative;
    font-family: 'Sarabun', sans-serif;
}
.invoice .head_logo{
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
}
.invoice .head_details{
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.3rem;
    display: inline-block;
    vertical-align: top;
    margin-left: 5px;
}
.invoice-quo{
    background-color: #00cdc9;
    color: #fff;
    font-size: 1.3rem;
    padding: 0.4rem 0.2rem;
}
.invoice-info {
    font-size: 0.8rem;
}
.invoice-info .cus-name{
    font-size: 0.85rem;
}
.invoice-info address{
    margin-bottom: 0;
}
.invoice-cus{
    min-height: 75px;
    border: 1px solid #00cdc9;
    border-radius: 5px;
    border-left: 5px solid #00cdc9;
    padding: 7px 10px 7px 10px;
    /* margin-right: 18px; */
}
.invoice .invoice_id{
    font-size: 0.85rem;
}
.invoice .invoice_pjname h3{ /* <!-- ED Boom --> */
    /* background-color: #00cdc9; <!-- ED */
    /* margin-right: 18px; */
    padding: 8px 5px;
    color: #000;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1;
    border: 1px solid #00cdc9;
    border-radius: 5px;
}
.invoice .table_row{
    /* height: 17.5cm; */
    font-size: 0.8rem;
}
.invoice-table td{
    line-height: 0.8rem;
}
.pdf-brand{
    width: 140px;
}
.pdf_spc_mr{
    margin-right: 2px;
}
.table_row th{
    text-align: center;
}
.table_row tbody tr{
    text-align: center;
}
.invoice-table.table_row tbody tr{
    text-align: center;
    height: 37.8px;
}
.table_row tbody tr td:nth-child(2){
    text-align: left;
}
.table_row tbody tr td:nth-child(4),.table_row tbody tr td:nth-child(5){
    text-align: right;
}
.table_n_border {
    border: 1px solid black;
}
.table_row .tr-result td{
    line-height: 1rem;
}
.invoice .table-striped tbody tr:nth-of-type(odd){
    background-color: rgba(0,0,0,.02);
}
.invoice-ex-detail {
    display: flex;
    justify-content: center;
    align-items: self-end;
    height: 62px;
    line-height: 1.4rem;
}
.sign-text{
    font-size: 0.8rem;
}
.text-nowp{
    white-space: nowrap;
}

/* media index page */
.card-body-media{
    padding: 4rem 1.25rem;
}
  
/* .table_n_border thead th {
    border-top: 1px solid #000!important;
    border-bottom: 1px solid #000!important;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
}
  
.table_n_border td {
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    border-top: none!important;
} */
.sign_row{
    position: absolute;
    bottom: 25px;
    left: 0;
}
.sign_img{
    height: 40px;
}
.sign_img img{
    max-height: 50px;
}

.testbg{
    background-color: #cefffd !important;
}

/* Chart Page */
.wrap-chart{
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgb(0 0 0 / 35%);
}
.wrap-chart h3{
    position: absolute;
    top: 40%;
    /* transform: translateY(-50%); */
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background-color: #8b8b8bbf;
    padding: 5px 20px;
}
.top10{
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px 10px;
    background: #007bff;
    color: #fff;
}
#media_table_length , #media_table_sale_length , #media_table_cust_length{
    display: inline-block;
}
.big-icon{
    font-size: 2.8rem;
}
#rep_am_quo_mth{
    font-size: 2.05rem;
}
.btn-sh-only{
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-app-spc{
    margin: 0;
}

/* Responsive Zone */
@media (min-width: 1200px){
    .col-lg-3 .small-box h3, .col-md-3 .small-box h3, .col-xl-3 .small-box h3{
        font-size: 2rem;
    }
}
@media screen and (max-width: 767px){
    #media_table_length, #media_table_sale_length, #media_table_cust_length{
        display: block;
    }
    div.dt-buttons{
        margin-left: 0;
        display: block;
    }
    .dt-buttons > button{
        width: 100px;
    }
}
@media screen and (max-width: 991.98px){
    .sidebar-mini.sidebar-collapse .cv-spinner {
        margin-left: 0;
    }
    .sidebar-mini.sidebar-open .cv-spinner{
        margin-left: 0;
    }
}
@media (min-width: 1200px) and (max-width: 1450px){
    .col-graph-pie.col-xl-8{
        flex: 0 0 100%;
        max-width: 100%;
    }
    .col-graph-pie.col-xl-4{
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Print PDF Zone */
@media print {
    /* Fix BG COLOR Not Show Because BT4 Override */
    .table td, .table th { 
        background-color: transparent  !important; 
    } 
    
    body {
        min-width: 0px !important;
    }

    body * {
        visibility: hidden;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
  
    .d_print_none{
        display: none !important;
    }

    #div_print_area, #div_col_print_area{
        padding: 0 !important;
    }

    .print_area{
        margin-bottom: 0 !important;
    }
  
    .print_area, .print_area * {
        visibility: visible;
    }

    html, body {
        width: 210mm;
        height: 297mm;        
    }
    @page {
        size: A4;
        margin: 0;
    }
    .page {
        margin: 0;
        border: initial;
        border-radius: initial;
        width: initial;
        min-height: initial;
        box-shadow: initial;
        background: initial;
        page-break-after: always;
    }

    .testbg{
        background-color: #cefffd !important;
    }

    /* html, body {
        width: 210mm;
        height: 297mm;        
    }
    body * {
      visibility: hidden;
    }

    .d_print_none, .{
        display: none !important;
    }

    #print_area, #print_area * {
      visibility: visible;
    }

    @page {
        size: A4;
        margin: 0;
    } */

    /* #print_area {

        margin: 0;
        border: initial;
        border-radius: initial;
        width: initial;
        height: initial;
        box-shadow: initial;
        background: initial;
        page-break-after: always;

        border: 0;
        margin: 0;
        padding: 0;
        width: 100%;
    } */
}