@charset "utf-8";

/* div{border:1px solid #07b301;}
ul{border:1px solid #ffa600}
li{border:1px solid #ff0000} */

a {
    cursor: pointer;
}

.rec {
    background: #ECECEC;
}

.input_bg_w:read-only {
    background: #ffffff;
}


/* row
----------------------------------------------------------------- */
.col_1_10 {
    width: 100%;
    position: relative;
    float: left;
    height: auto;
    padding: 3px;
    overflow: auto;
    box-sizing: border-box;
}

.col_2_10 {
    width: 50%;
    position: relative;
    float: left;
    height: auto;
    padding: 3px;
    overflow: auto;
    box-sizing: border-box;
}

.col_3_10 {
    width: 33.333333%;
    position: relative;
    float: left;
    height: auto;
    padding: 3px;
    overflow: auto;
    box-sizing: border-box;
}

.col_4_10 {
    width: 25%;
    position: relative;
    float: left;
    height: auto;
    padding: 3px;
    overflow: auto;
    box-sizing: border-box;
}

.col_5_10 {
    width: 20%;
    position: relative;
    float: left;
    height: auto;
    padding: 3px;
    overflow: auto;
    box-sizing: border-box;
}

.col_6_10 {
    width: 16.666666%;
    position: relative;
    float: left;
    height: auto;
    padding: 3px;
    overflow: auto;
    box-sizing: border-box;
}

.col_7_10 {
    width: 14.285714%;
    position: relative;
    float: left;
    height: auto;
    padding: 3px;
    overflow: auto;
    box-sizing: border-box;
}

.col_8_10 {
    width: 12.5%;
    position: relative;
    float: left;
    height: auto;
    padding: 3px;
    overflow: auto;
    box-sizing: border-box;
}

.col_9_10 {
    width: 11.111111%;
    position: relative;
    float: left;
    height: auto;
    padding: 3px;
    overflow: auto;
    box-sizing: border-box;
}

.col_10_10 {
    width: 10%;
    position: relative;
    float: left;
    height: auto;
    padding: 3px;
    overflow: auto;
    box-sizing: border-box;
}



/* Button
----------------------------------------------------------------- */

.btn,
a.btn {
    font-size: 1em !important;
}

.btn2,
a.btn2 {
    width: auto;
    height: auto;
    /* height: 32px; */
    padding: 5px 15px 5px 15px;
    background: #F1F1F1;
    border-radius: 4px;
    cursor: pointer;
    margin: 1px;
    box-shadow: 0px 1px 1px #88888850;
    border: 1px solid #bbb;
    font-size: 15px;
    text-decoration: none;
    display: inline-block;
    color: #202020;
    text-align: center;
}

.btn2:hover,
a.btn2:hover {
    background-color: #ececec;
    color: #202020;
}

.btn2:disabled,
a.btn2:disabled {
    background-color: #F1F1F1;
    opacity: 0.4;
    cursor: not-allowed;
}

.btn_small {
    width: auto;
    height: 35px;
    padding: 1px 8px 1px 8px;
    background: #F1F1F1;
    border: 0px;
    border-radius: 5px;
    cursor: pointer;
    margin: 1px;
    box-shadow: 0px 1px 0px #5c5a5a88;
    border: 1px solid #bbb;
    font-size: 13px;
}

.btn_small:hover {
    background-color: #ececec;
}

.btn_small:disabled {
    background-color: #f1f1f1;
    opacity: 0.4;
    cursor: not-allowed;
}

.btn_sm,
a.btn_sm {
    width: 32px;
    height: 32px;
    background: #F1F1F1;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0px 1px 1px #88888850;
    border: 1px solid #bbb;
    line-height: 35px;
    text-decoration: none;
    display: inline-block;
    margin: 1px;
}

.btn_sm:hover,
a.btn_sm:hover {
    background-color: #ececec;
}

.btn_sm:disabled a.btn_sm:disabled {
    background-color: #F1F1F1;
    opacity: 0.4;
    cursor: not-allowed;
}

.btn_fm,
a.btn_fm {
    width: auto;
    /* height: 20px; */
    background: #F1F1F1;
    cursor: pointer;
    box-shadow: 0px 1px 0px #5c5a5a62;
    border: 1px solid #bbb;
    font-size: 13px;
    line-height: 16px;
    text-decoration: none;
    display: inline-block;
    padding-left: 5px;
    padding-right: 5px;
}

.btn_fm:hover,
a.btn_fm:hover {
    background-color: #ececec;
}

.btn_fm:disabled a.btn_fm:disabled {
    background-color: #F1F1F1;
    opacity: 0.4;
    cursor: not-allowed;
}

.btn_xs, a.btn_xs {
    width: 100%;
    height: 25px;
    background: #F1F1F1;
    border: 0px;
    border-radius: 3px;
    cursor: pointer;
    box-shadow: 0px 1px 0px #5c5a5a;
    border: 1px solid #bbb;
    font-size: 13px;
    line-height: 22px;
    text-align: center;
    margin: 1px;
    display: inline-block;
    text-decoration: none;
}

.btn_xs:hover, a.btn_xs:hover {
    background-color: #ececec;
}

.btn_xs:disabled, a.btn_xs:disabled  {
    background-color: #F1F1F1;
    opacity: 0.4;
    cursor: not-allowed;
}

.btn_link {
    width: 20px;
    height: 20px;
    background: #F1F1F1;
    border: 0px;
    border-radius: 4px;
    cursor: pointer;
    margin: 1px;
    box-shadow: 0px 1px 0px #5c5a5a;
    border: 1px solid #bbb;
    font-size: 15px;
    line-height: 35px;
    padding-left: 3px;
    padding-right: 3px;
}

.btn_link:hover {
    background-color: #ececec;
}

/* ปุ่มวงกลม */
.btn_icon, a.btn_icon {
    width: 30px;
    height: 30px; 
    padding-top: 5px;
    background: #d8d8d8;
    -moz-border-radius: 15px; 
    -webkit-border-radius: 15px; 
    border-radius: 15px;
    font-size: 20px;
    color: #202020;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    margin: 1px;
}
.btn_icon:hover, a.btn_icon:hover {
    background-color: #ececec;
    color: #202020;
}
.btn_icon:disabled, a.btn_icon:disabled {
    background-color: #F1F1F1;
    opacity: 0.4;
    cursor: not-allowed;
}

/* Button color
----------------------------------------------------------------- */

.btn_indigo,
a.btn_indigo {
    background-color: #4E6B9E;
    border-color: #4E6B9E;
    color: #fff;
    line-height: 20px;
}

.btn_indigo:hover {
    background-color: #819ac5;
    border-color: #819ac5;
    color: #fff;
}

.btn_indigo:disabled {
    background: #b1bac9;
    border-color: #b1bac9;
    box-shadow: none;
}

.btn_indigo:focus {
    background: #819ac5;
    color: #fff;
}

.btn_red,
a.btn_red {
    background-color: #DC3545;
    border-color: #DC3545;
    color: #fff;
    line-height: 20px;
}

.btn_red:hover,
a.btn_red:hover {
    background-color: #ee5f5b;
    border-color: #ee5f5b;
    color: #fff;
}

.btn_red:disabled,
a.btn_red:disabled {
    background: #dddddd;
    border-color: #dddddd;
    box-shadow: none;
}

.btn_red:focus,
a.btn_red:focus {
    background: #ee5f5b;
    color: #fff;
}

.btn_green,
a.btn_green {
    background-color: #28A745;
    border-color: #28A745;
    color: #fff;
}

.btn_green:hover,
a.btn_green:hover {
    background-color: #39c459;
    border-color: #39c459;
    color: #fff;
}

.btn_green:focus,
a.btn_green:focus {
    background: #39c459;
    color: #fff;
}

.btn_green:disabled,
a.btn_green:disabled {
    background: #dddddd;
    border-color: #dddddd;
    box-shadow: none;
}

.btn_purple,
a.btn_purple {
    background-color: #804E9A;
    border-color: #6d3e86;
    color: #fff;
}

.btn_purple:hover,
a.btn_purple:hover {
    background-color: #6b3886;
    border-color: #62357a;
    color: #fff;
}

.btn_purple:focus,
a.btn_purple:focus {
    background-color: #6b3886;
    color: #fff;
}

.btn_purple:disabled,
a.btn_purple:disabled {
    background: #dddddd;
    border-color: #dddddd;
    box-shadow: none;
}

.btn_yellow,
a.btn_yellow {
    background-color: #FFC107;
    border-color: #FFC107;
    color: #3d3d3d;
}

.btn_yellow:hover,
a.btn_yellow:hover {
    background-color: #ffd558;
    border-color: #ffd558;
}

.btn_yellow:disabled,
a.btn_yellow:disabled {
    background: #dddddd;
    border-color: #dddddd;
    color: #ffffff;
    box-shadow: none;
}

.btn_yellow:focus,
a.btn_yellow:focus {
    background-color: #FFC107;
    color: #3d3d3d;
}

.btn_blue,
a.btn_blue {
    background-color: #00AAD4;
    border-color: #00AAD4;
    color: #fff;
}

.btn_blue:focus,
a.btn_blue:focus {
    background-color: #00AAD4;
    color: #fff;
}

.btn_blue:hover,
a.btn_blue:hover {
    background-color: #80cee2;
    border-color: #80cee2;
    color: #fff;
}

.btn_blue:disabled,
a.btn_blue:disabled {
    background: #dddddd;
    border-color: #dddddd;
    box-shadow: none;
}

.btn_deepblue,
a.btn_deepblue {
    background-color: #1765D1;
    border-color: #1765D1;
    color: #fff;
    line-height: 20px;
}

.btn_deepblue:focus,
a.btn_deepblue:focus {
    background-color: #1765D1;
    color: #fff;
}

.btn_deepblue:hover,
a.btn_deepblue:hover {
    background-color: #3986f1;
    border-color: #3986f1;
    color: #fff;
}

.btn_deepblue:disabled,
a.btn_deepblue:disabled {
    background: #dddddd;
    border-color: #dddddd;
    box-shadow: none;
}

.btn_draft,
a.btn_draft {
    background-color: #bfe2eb;
    border-color: #bfe2eb;
    line-height: 20px;
}

.btn_draft:focus,
a.btn_draft:focus {
    background-color: #bfe2eb;
}

.btn_draft:hover,
a.btn_draft:hover {
    background-color: #cce6ec;
    border-color: #cce6ec;
}

.btn_draft:disabled,
a.btn_draft:disabled {
    background: #dddddd;
    border-color: #dddddd;
    box-shadow: none;
}


/* table
----------------------------------------------------------------- */

.tb_list {
    border: 0;
    border-collapse: collapse;
}

.tb_list tr {
    width: 100%;
    height: auto;
}

.tb_list th {
    height: 30px;
    line-height: 30px;
    padding: 2px 4px;
    text-align: center;
    box-sizing: border-box;
    background-color: #f7f7f7;
    border-top: 2px solid #bdbdbd;
    border-bottom: 1px solid #bdbdbd;
    /* border-right: 1px solid #bdbdbd00;
    border-left: 1px solid #bdbdbd00; */
    border-right: 1px solid #bdbdbd;
    border-left: 1px solid #bdbdbd;
}

.tb_list td {
    height: 25px;
    /* line-height: 25px; */
    padding: 2px 4px;
    box-sizing: border-box;
    background: #ffffff;
    border-top: 1px solid #bdbdbd;
    border-bottom: 1px solid #bdbdbd;
    border-right: 1px solid #bdbdbd;
    border-left: 1px solid #bdbdbd;
}

.tb_list td.sum {
    border-top: 3px solid #666;
}

.tb_list td.sum_under {
    border-top: 3px solid #666;
    border-bottom: 7px double #666;
}

.tb_list tr:hover td {
    background: #f2f5ff;
}

.tb_list_sm {
    border: 0;
    border-collapse: collapse;
}

.tb_list_sm tr {
    width: 100%;
    height: auto;
}

.tb_list_sm td {
    height: 25px;
    padding: 1px;
    font-size: 0.68em !important;
    box-sizing: border-box;
    background: #ffffff;
    border-top: 1px solid transparent;
    border-bottom: 1px solid #bdbdbd;
    border-right: 1px solid #bdbdbd;
    border-left: 1px solid #bdbdbd;
}

.tb_list_sm th {
    height: 30px;
    padding: 1px;
    font-size: 0.7em !important;
    box-sizing: border-box;
    background-color: #dfdfdf;
    border-top: 2px solid #bdbdbd;
    border-bottom: 5px solid #bdbdbd;
    border-right: 1px solid #bdbdbd;
    border-left: 1px solid #bdbdbd;
}

.tb_list_sm td.sum {
    border-top: 3px solid #666;
}

.tb_list_sm td.sum_under {
    border-top: 3px solid #666;
    border-bottom: 7px double #666;
}

.tb_list_sm tr:hover td {
    background: #f2f5ff;
}


.tb_light {
    border: 0;
    border-collapse: collapse;
}

.tb_light tr {
    width: 100%;
    height: auto;
}

.tb_light th {
    box-sizing: border-box;
    background: #ffffff;
    border: 0px solid transparent;
    border-bottom: 2px solid #bdbdbd;
}

.tb_light td {
    box-sizing: border-box;
    background: #ffffff;
    border: 0px solid transparent;
    border-bottom: 1px solid #bdbdbd;
}

td.td_r_none {
    border-right: 1px solid rgba(255, 255, 255, 0) !important;
}

td.td_t_none {
    border-top: 1px solid rgba(255, 255, 255, 0) !important;
}

td.td_b_none {
    border-bottom: 1px solid rgba(255, 255, 255, 0) !important;
}

tr.tr_active td {
    background: #ffd0d0;
}


/* status
----------------------------------------------------------------- */

.status_yl {
    width: 100%;
    height: 37px;
    line-height: 37px;
    text-align: center;
    background: #ffe600;
    border-radius: 4px;
    color: #000000;
    box-sizing: border-box;
    padding-left: 2px;
    padding-right: 2px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.status_gr {
    width: 100%;
    height: 37px;
    line-height: 37px;
    text-align: center;
    background: #28A745;
    border-radius: 4px;
    color: #fff;
    box-sizing: border-box;
    padding-left: 2px;
    padding-right: 2px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.status_bl {
    width: 100%;
    height: 37px;
    line-height: 37px;
    text-align: center;
    background: #00AAD4;
    color: #fff;
    border-radius: 4px;
    box-sizing: border-box;
    padding-left: 2px;
    padding-right: 2px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.status_rd {
    width: 100%;
    height: 37px;
    line-height: 37px;
    text-align: center;
    background: #DC3545;
    border-radius: 4px;
    color: #fff;
    box-sizing: border-box;
    padding-left: 2px;
    padding-right: 2px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.status_gr_detail {
    width: 100%;
    height: auto;
    background: #cfffda;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}

.status_rd_detail {
    width: 100%;
    height: auto;
    background: #ffe1e4;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}

.status_bl_detail {
    width: 100%;
    height: auto;
    background: #d7f2ff;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}

.status_yl_detail {
    width: 100%;
    height: auto;
    background: #fff7ad;
    border-radius: 4px;
    box-sizing: border-box;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}


/* width
----------------------------------------------------------------- */

.w_100p {
    width: 100% !important;
}


/* Button size
----------------------------------------------------------------- */

.btn_w100 {
    width: 98% !important;
    margin-left: auto;
    margin-right: auto;
}


/* Text
----------------------------------------------------------------- */

.tx_center {
    text-align: center !important;
}

.tx_right {
    text-align: right !important;
}

.tx_left {
    text-align: left !important;
}

.tx_unline {
    padding-left: 5px;
    padding-right: 5px;
    margin-left: 1px;
    margin-right: 3px;
    color: #0f13df;
    border-bottom: 1px solid #c7c7c7;
    /* border-bottom: 1px solid #0066ff; */
}

.tx_p1 {
    text-indent: 50px;
}

.tx_p2 {
    text-indent: 50px;
}


/* Text color
----------------------------------------------------------------- */

.tx_error {
    color: red !important;
    font-style: italic;
}

.tx_black {
    color: #202020 !important;
}

.tx_blue {
    color: rgb(16, 86, 207) !important;
}

.tx_red {
    color: red !important;
}

.tx_green {
    color: #07b301 !important;
}

.tx_yellow {
    color: #ffc400 !important;
}

.tx_gray {
    color: #e2e2e2 !important;
}

.tx_white {
    color: #ffffff !important;
}
.tx_purple {
    color: #6d3e86 !important;
}

.tx_cancel td {
    text-decoration: line-through !important;
    text-decoration-color: red !important;
    color: red !important;
}


/* backgroud color
----------------------------------------------------------------- */

.bg_white {
    background: #FFFFFF !important;
}

.bg_right {
    background: rgb(112, 112, 112) !important;
}

.bg_red {
    background: #ffeded;
}

.bg_blue {
    background: #1765D1;
}

.bg_deepblue {
    background-color: #1765D1;
}
.bg_error{
    border: 1px solid #CC3333;
}
.bg_purple{
    background-color: #804E9A;
}
.bg_purple_light{
    background-color: #b193c2;
}

.bg_pink{
    background-color: #ee8fde;
}

/* images
----------------------------------------------------------------- */

.img_full img {
    width: 100%;
}





/* Validation
---------------------------------------------------------*/
/* form.required {} */
.error {
    background: #ffb5b5;
    outline: #fc3b3b auto 5px;
}

label.error {
    color: red;
    font-size: 14px;
    font-style: italic;
}

input[type="text"].error {
    background: #ffb5b5;
    outline: #fc3b3b auto 5px;
}

input[type="text"]:read-only.error {
    background: #ffb5b5 !important;
    outline: #fc3b3b auto 5px;
}

input[type="checkbox"].error {
    outline: #fc3b3b auto 5px;
    background-color: #ff0000 !important;
}

input[type="radio"].error {
    background: #ffb5b5;
    outline: #fc3b3b auto 5px;
}

input[type="password"].error {
    background: #ffb5b5;
    outline: #fc3b3b auto 5px;
}

input[type="time"].error {
    background: #ffb5b5;
    outline: #fc3b3b auto 5px;
}

input[type="file"].error {
    background: #ffb5b5;
    outline: #fc3b3b auto 5px;
}

textarea.error {
    background: #ffb5b5;
    outline: #fc3b3b auto 5px;
}

select.error {
    background: #ffb5b5;
    outline: #fc3b3b auto 5px;
}

select:disabled.error {
    background: #ffb5b5;
    outline: #fc3b3b auto 5px;
}

input[readonly] {
    background-color: #F7F7F7;
}

textarea[readonly] {
    background-color: #F7F7F7;
}


/*error*/

.alert_success {
    width: 100%;
    height: auto;
    line-height: 30px;
    border-top: 1px solid #66CC33;
    border-bottom: 1px solid #66CC33;
    background-color: #E8FFD9;
    padding-left: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
    color: #66CC33;
}

.alert_error {
    width: 100%;
    height: auto;
    line-height: 30px;
    border-top: 1px solid #CC3333;
    border-bottom: 1px solid #CC3333;
    background-color: #ffdcdc;
    padding-left: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    color: #CC3333;
}

.alert_table {
    width: 100%;
    height: 30px;
    line-height: 30px;
    padding-left: 20px;
    background-color: #FCFFE6;
    color: darkgoldenrod;
    box-sizing: border-box;
    /* border: 1px solid darkgoldenrod; */
}

/*page---------------------*/

html:-moz-full-screen {
    background: red;
}

html:-webkit-full-screen {
    background: red;
}

html:-ms-fullscreen {
    background: red;
    width: 100%;
    /* needed to center contents in IE */
}

html:fullscreen {
    background: red;
}


/* Loading
----------------------------------------- */

#loader {
    top: 0;
    z-index: 1000;
    position: fixed;
    width: 100vw;
    height: 100vh;
    /* background: rgba(0, 0, 0, 0.40); */
    text-align: center;
    padding-top: 48vh;
    box-sizing: border-box;
    color: #FFFFFF;
}

/* footer
----------------------------------------- */
.f_paging {
    width: 100%;
    line-height: 25px;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    /* font-weight: bold; */
    overflow: hidden;
}
.f_paging .f_left {
    position: relative;
    float: left;
    width: 50%;
    height: auto;
}
.f_paging .f_right {
    position: relative;
    float: right;
    width:50%;
    height: auto;
}
.f_paging .nav_txt {
    position: relative;
    float: right;
    width: auto;
    height: 26px;
    line-height: 26px;
    text-align: center;
    background-color: #c5c5c5;
    border: 1px solid #7c7c7c;
    margin-top: 3px;
    margin-left: 3px;
    border-radius: 2px;
    padding-left: 8px;
    padding-right: 8px;
}
.f_paging .nav_btn {
    position: relative;
    float: right;
    width: auto;
    height: 28px;
    text-align: center;
    background-color: #c5c5c5;
    border: 1px solid #7c7c7c;
    margin-top: 3px;
    margin-left: 3px;
    border-radius: 2px;
    cursor: pointer;
    padding-left: 8px;
    padding-right: 8px;
}
.f_paging .nav_btn:hover {
    background-color: #dddddd;
}

/* pagination
------------------------------------ */
@media (max-width: 575.98px){
    .pagination {
        width: max-content;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .paging_left{
        text-align: center;
    }
}
.pagination {
    width: max-content;
    list-style-type: none;
    padding: 0px;
    margin-left: auto;
    margin-right: 0;
}

.pagination li {
    float:left;
}
.pagination li a {
    padding:3px 8px;
    background-color:#ffffff;
    border:1px solid #7E8788;
    margin: 0;
    margin-right:2px;
    color:#000000;
    text-decoration: none;
}
.pagination li a:hover{
	text-decoration:none;
	background-color:#7E8788;
	color:#fff;
}
.pagination li a.current_page{
	background-color:#7E8788;
	color:#fff;
}