html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, 
address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var,
b, u, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, 
tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, 
output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: top;
    cursor: default;
    font-family: 'Sarabun', sans-serif !important;
}
html {
    width: 100%;
    min-width: 480px;
    height: 100%;
    max-height: 10000px;
}
body { 
    direction: ltr;
    margin:0;
    padding:0;
    min-width: 480px;
    width: 100%;
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
}
#container{
    min-width: 480px;
    width: 90%;
    min-height: 400px;
    margin: 20px auto;
    background-color: #fff;
}
.view{
    box-sizing: border-box;
    width: 90%;
    min-width: 450px;
    max-width: 1200px;
    padding: 20px;
    margin: 10px auto;
}
.form{
    box-sizing: border-box;
    width: 80%;
    min-width: 480px;
    max-width: 800px;
    padding: 20px;
    margin: 10px auto;
}
.form.small{
    max-width: 600px !important;
}
.form_elment{
    display: inline-block;
    box-sizing: border-box;
    padding: 5px 10px;
}
.form_elment.half .button{
    position: relative;
    top: 15px;
}
.form .form_elment a{
    cursor: pointer;
    text-decoration: none;
}
.form .form_elment h2{
    width: 100%;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
}
@media screen and (max-width: 750px){
    .form_elment.half{
        width: 100%;
    }
}
@media screen and (min-width: 751px){
    .form_elment.half{
        width: 49.5%;
    }
}
.form_elment.full{
    width: 100%;
}
/*------------- input -------------*/
input[type="text"], input[type="search"], input[type="email"], input[type="date"], input[type="tiem"], 
input[type="password"], input[type="number"], input[type="tel"], input[type="url"], textarea, select{
    display: inline-block;
    box-sizing: border-box;
    width: auto;
    height: 35px;
    padding: 0 5px;
    margin: 5px 0;
    font-size: 14px;
    line-height: 25px;
    border: solid 1px #ccc;
    border-radius: 2px;
    -webkit-transition: box-shadow 0.3s, border 0.3s;
    -moz-transition: box-shadow 0.3s, border 0.3s;
    -o-transition: box-shadow 0.3s, border 0.3s;
    -ms-transition: box-shadow 0.3s, border 0.3s;
    transition: box-shadow 0.3s, border 0.3s;
}
input[type="text"]:active, input[type="search"]:active, input[type="email"]:active, 
input[type="date"]:active, input[type="tiem"]:active, input[type="password"]:active, 
input[type="number"]:active, input[type="tel"]:active, input[type="url"]:active, 
textarea:active, select:active{
    /*box-shadow: 1px 1px 3px rgba(51,51,51,0.5);*/
}
input[type="text"].small_font, input[type="search"].small_font, input[type="email"].small_font, 
input[type="date"].small_font, input[type="tiem"].small_font, input[type="password"].small_font, 
input[type="number"].small_font, input[type="tel"].small_font, input[type="url"].small_font, 
textarea.small_font, select.small_font{
    font-size: 14px !important;
}
input[type="text"].normal_font, input[type="search"].normal_font, input[type="email"].normal_font, 
input[type="date"].normal_font, input[type="tiem"].normal_font, input[type="password"].normal_font, 
input[type="number"].normal_font, input[type="tel"].normal_font, input[type="url"].normal_font, 
textarea.normal_font, select.normal_font{
    font-size: 16px !important;
}
input[type="text"].big_font, input[type="search"].big_font, input[type="email"].big_font, 
input[type="date"].big_font, input[type="tiem"].big_font, input[type="password"].big_font, 
input[type="number"].big_font, input[type="tel"].big_font, input[type="url"].big_font, 
textarea.big_font, select.big_font{
    font-size: 18px !important;
}
input[type="checkbox"] {
    display: none;
}
input[type="checkbox"] + label {
    position: relative;
    display: inline-block;
    width: 16px !important;
    height: 16px !important;
    padding: 8px;
    margin-top: 10px;
    border: solid 1px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
}
input[type="checkbox"] + label:active, input[type="checkbox"]:checked + label:active {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1);
}
input[type="checkbox"]:checked + label:after {
    position: absolute;
    content: '\2714';
    font-size: 13px;
    top: -1px;
    right: 3px;
}
input[type="checkbox"].false:checked + label:after {
    position: absolute;
    content: '\2716';
    font-size: 18px;
    top: -1px;
    right: 3px;
}
input[type="checkbox"]:checked:disabled + label:after{
    position: absolute;
    content: '\2714';
}
input[type="radio"] {
    display: none;
}
input[type="radio"] + label {
    display: inline-block;
    position: relative;
    -webkit-appearance: none;
    width: 16px !important;
    height: 16px !important;
    padding: 8px;
    margin-top: 10px;
    margin-left: 3px;
    border: solid 1px;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05);
}
input[type="radio"] + label:active, input[type="radio"]:checked + label:active {
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px 1px 3px rgba(0,0,0,0.1);
}
input[type="radio"]:checked + label:after {
    position: absolute;
    content: ' ';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    right: 3px;
    top: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), inset 0px -15px 10px -12px rgba(0,0,0,0.05), inset 15px 10px -12px rgba(255,255,255,0.1), inset 0px 0px 10px rgba(0,0,0,0.1);
}
input[type="radio"]:checked:disabled + label:after{
    position: absolute;
    content: ' ';
}
input[type="checkbox"] + label + label, input[type="radio"] + label + label{
    text-align: left !important;
    margin-right: 5px !important;
    font-weight: bold;
}
input[type="text"].auto, input[type="search"].auto, input[type="email"].auto, input[type="date"].auto, 
input[type="tiem"].auto, input[type="password"].auto, input[type="number"].auto, input[type="tel"].auto, 
input[type="url"].auto{
    width: 100% !important;
}
input[type="text"].small, input[type="search"].small, input[type="email"].small, input[type="date"].small, 
input[type="tiem"].small, input[type="password"].small, input[type="number"].small, input[type="tel"].small, 
input[type="url"].small{
    width: 200px !important;
}
input[type="text"].medium, input[type="search"].medium, input[type="email"].medium, input[type="date"].medium, 
input[type="tiem"].medium, input[type="password"].medium, input[type="number"].medium, input[type="tel"].medium, 
input[type="url"].medium{
    width: 350px !important;
}
input[type="text"].large, input[type="search"].large, input[type="email"].large, input[type="date"].large, 
input[type="tiem"].large, input[type="password"].large, input[type="number"].large, input[type="tel"].large, 
input[type="url"].large{
    width: 565px !important;
}
input[type="text"].very_large, input[type="search"].very_large, input[type="email"].very_large, 
input[type="date"].very_large, input[type="tiem"].very_large, input[type="password"].very_large, 
input[type="number"].very_large, input[type="tel"].very_large, input[type="url"].very_large{
    width: 865px !important;
}
input[type="file"]{
    margin-top: 5px;
}
select{
    box-sizing: border-box;
    width: auto;
    height: 34px;
    margin-left: -2px;
    padding: 0 3px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: 100% / 9% no-repeat #fff;
    background-image: url(../../img/dropDownBox.png) !important;
}
select.auto{
    width: 100% !important;
}
select.small{
    width: 210px !important;
}
select.medium{
    width: 360px !important;
}
select.large{
    width: 575px !important;
}
select.very_large{
    width: 875px !important;
    background: 0 / 3% no-repeat #fff;
}
textarea{
    resize: none;
    width: 350px;
    height: 100px;
}
textarea.small{
    width: 200px !important;
    height: 50px !important;
}
textarea.medium{
    width: 350px !important;
    height: 100px !important;
}
textarea.large{
    width: 565px !important;
    height: 150px !important;
}
textarea.very_large{
    width: 865px !important;
    height: 200px !important;
}
textarea.auto{
    width: 100% !important;
}
.wrongInput{
    border: solid 1px #c33 !important;
    color: #c33;
    box-shadow: 2px 2px 3px rgba(204, 51, 51, 0.5);
}
.goodInput{
    border: solid 1px #060 !important;
    color: #060;
}
label{
    display: inline-block;
    box-sizing: border-box;
    width: auto;
    padding: 0 5px 0 0;
    margin: 5px 0;
    text-align: left;
    color: #333;
    overflow: auto;
}
label::first-letter{
    text-transform: uppercase;
}
label.inline{
    display: inline !important;
}
label.small_font{
    font-size: 14px;
    line-height: 22px;
}
label.normal_font::first-letter{
    font-size: 16px;
}
label.big_font{
    font-size: 20px;
    line-height: 26px;
}
label.big_font::first-letter{
    font-size: 22px;
}
label.small{
    width: 150px !important;
}
label.medium{
    width: 200px !important;
}
label.large{
    width: 300px !important;
}
label.very_large{
    width: 500px !important;
}
label.half{
    width: 50%;
}
label.full{
    width: 100%;
}
label.required::after{
    content: " *";
    color: #c33;
}
/*------------- button --------------*/
.button{
    display: block;
    box-sizing: border-box;
    min-width: 100px;
    min-height: 40px;
    padding: 0 12px;
    margin: 20px auto;
    text-decoration: none;
    background-color: #47007f !important;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 40px;
    border: 1px solid transparent;
    text-align: center;
    justify-content: center;
    transition: all .3s ease;
    cursor: pointer;
}
.button:hover{
    background-color: #400072 !important;
}
.button:disabled:hover{
    background-color: #47007f !important;
}
.button.small{
    width: 100px !important;
}
.button.medium{
    width: 150px !important;
}
.button.large{
    width: 200px !important;
}
.button.very_large{
    width: 300px !important;
    height: 46px !important;
}
.button.small_font{
    font-size: 14px;
}
.button.normal_font{
    font-size: 16px;
}
.button.big_font{
    font-size: 20px;
}
.button > i{
    position: relative;
    top: 4px;
    font-size: 20px;
    line-height: 25px;
    cursor: pointer;
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
.button:disabled > i, .button:disabled:hover > i{
    text-shadow: none;
    cursor: default;
}
/*------------- table --------------*/
.table{
    margin: 0 auto;
    border-spacing: 1px;
    position: relative;
    border: solid 2px;
    border-color: #2b84a8;
}
.table thead{
    display: table-header-group;
    text-transform: uppercase;
    color: #fff;
    background-color: #38005c;
    background-image: -webkit-linear-gradient(top , #8520f7, #4e0a9c, #38005c);
    background-image: -moz-linear-gradient(top , #8520f7, #4e0a9c, #38005c);
    background-image: -ms-linear-gradient(top , #8520f7, #38005c);
    background-image: -o-linear-gradient(top , #8520f7, #38005c);
    background-image: linear-gradient(top , #8520f7, #38005c);
    text-shadow: 1px 1px 0px rgba(255,255,255,0.4), -1px -1px 0px rgba(0,0,0,0.6);
}
.table thead tr{
    display: block;
    position: relative;
    font-size: 20px;
    font-weight: bold;
    line-height: 36px;
    height: 40px;
}
.table thead tr td{
    box-sizing: border-box;
    padding: 0 5px;
    vertical-align: middle;
    text-align: center;
    color: #fff;
}
.table tbody{
    display: block;
    overflow: auto;
    width: 100%
}
.table tbody tr{
    height: 38px;
}
.table tbody tr.head td{
    box-sizing: border-box;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background-color: #38005c;
    background-image: -webkit-linear-gradient(top , #8520f7, #4e0a9c, #38005c);
    background-image: -moz-linear-gradient(top , #8520f7, #4e0a9c, #38005c);
    background-image: -ms-linear-gradient(top , #8520f7, #38005c);
    background-image: -o-linear-gradient(top , #8520f7, #38005c);
    background-image: linear-gradient(top , #8520f7, #38005c);
    text-shadow: 1px 1px 0px rgba(255,255,255,0.4), -1px -1px 0px rgba(0,0,0,0.6);
    color: #fff;
}
.table tbody tr:hover{
    background-color: #8520f7 !important;
    color: #fff !important;
}
.table tbody tr td{
    box-sizing: border-box;
    font-size: 18px;
    line-height: 30px;
    font-weight: normal;
    padding: 2px 8px;
    color: #147ba5;
}
.table tbody tr:nth-child(2n + 1){
    background-color: #38005c;
}
.table tbody tr:nth-child(2n + 1) td{
    color: #fff;
}
.table tbody tr td a{
    text-decoration: none;
    cursor: pointer;
    color: #147ba5;
}
.table tbody tr:nth-child(2n + 1) td a{
    text-decoration: none;
    cursor: pointer;
    color: #fff;
}.table tbody tr td a:hover, .table tbody tr:nth-child(2n + 1) td a:hover{
    color: #147ba5;
}
.table tbody i.fa{
    display: inline-block;
    cursor: pointer;
    width: 32px;
    height: 32px;
    margin-top: 5px;
    font-size: 24px;
    transition: all 0.2s ease;
}
.table tbody tr:nth-child(2n + 1) td i.fa{
    color: #fff;
}
.table tbody i.fa:hover{
    color: #2b84a8 !important;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
}
.table tbody i.fa-trash{
    color: #e00 !important;
}
.table tbody tr:hover td, .table tbody tr:hover td a, .table tbody tr:hover td i.fa{
    background-color: #8520f7 !important;
    color: #fff !important;
}
.table tbody tr.wrong td{
    background-color: #4b3b3b;
    color: #fff;
}
.table .operation{
    text-align: center;
}
.table .operation i{
    margin: 0 10px;
    cursor: pointer;
}
.table .hide{
    display: none;
}