.thip-button {
    background-color: orange;       
    border: none;
    color: white;     

    text-align:center;
    text-decoration: none;
    display: inline-block;
    font-size: 11px;
    margin: 2px 4px;
    padding: 2px 4px;
    cursor: pointer;
}


/* --------------------------- */
/* สำหรับ ปุ่มในตาราง */
.btn-sm{        
    padding-top: 2px;
    padding-bottom: 0;
    padding-left: 5px;
    padding-right: 5px;
    margin-top: 3px;
    margin-left: 5px;
    margin-right: 5px;
    max-height: 26px;
    border-top-right-radius: 3px; border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px; border-top-left-radius: 3px;
}

/* --------------------------- */
/* สำหรับ dataTables.buttons.js */
.btn-success 
.btn-primary 
.btn-danger 
.btn-danger 
.btn-warning
.btn-info
.btn-light
.btn-dark
{
    margin-left: 2px;
    margin-right: 2px;
    margin-bottom: 5px;
}

    
div.row div>div {
    color: #888;
}

a{
    cursor: pointer;
}

table.dataTable thead .sorting:after,
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_desc_disabled:after,
table.dataTable thead .sorting_desc_disabled:before { bottom: .5em;}
/* --------------------------- */

/* --------- Popup Scroll Form ------------------ */
body {font-family: Arial, Helvetica, sans-serif;}
* {box-sizing: border-box;}

/* Button used to open the contact form - fixed at the bottom of the page */
.open-button {
    background-color: #555;
    color: white;
    padding: 20px 20px;
    border: none;
    cursor: pointer;
    opacity: 0.8;
    position: fixed;
    bottom: 23px;
    right: 28px;
    width: 200px;
}

/* The popup form - hidden by default */
.form-popup {
    display: none;
    background-color: rgba(0,0,0,.5);
    /*background-color: #fefefe;*/
    position: Fixed;
    width: 98%;
    height: 98%;
    top: 10px;
    bottom: 10px;
    right: 10px;
    left: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    border: 0px solid #f1f1f1;
    z-index: 9;

    overflow:scroll;
    overflow-x:hidden;
    overflow-y:auto;
}

.form-title {
    background-color: orange;
    color: #fff;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Add styles to the form container */
.form-container {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    border: 1px solid #888;
    
    overflow:scroll;
    overflow-x:hidden;
    overflow-y:auto;

    width: 95%;
    height: 90%;
    
    /* min-height:6600px;
    max-height:600px;   */

    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Full-width input fields */
.form-container input[type=text],
.form-container input[type=password] {
    width: 100%;
    padding: 1px;
    margin: 1px 0 2px 0;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    /* background: #f1f1f1; */
}

/* When the inputs get focus, do something */
.form-container input[type=text]:focus, 
.form-container input[type=password]:focus {
    /* background-color: #ddd; */
    outline: none;
}

/* Set a style for the submit/login button */
.form-container .btn {
    background-color: #4CAF50;
    color: white;
    padding: 16px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    margin-bottom:10px;
    opacity: 0.8;
}

/* Add a red background color to the cancel button */
.form-container .cancel {
    background-color: red;
}

/* Add some hover effects to buttons */
.form-container .btn:hover, .open-button:hover {
    opacity: 1;
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0} 
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

/* --------- /Popup Scroll Form ------------------ */

.hero-unit {
    padding: 10px;
    margin-bottom: 30px;
    background-color: #eeeeee;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
  }
  .hero-unit h1 {
    margin-bottom: 0;
    font-size: 10px;
    line-height: 1;
    color: inherit;
    letter-spacing: -1px;
  }
  .hero-unit p {
    font-size: 18px;
    font-weight: 200;
    line-height: 27px;
    color: inherit;
  }

  /*  Start Scroll Top */
  #scrollTopBtn {
    display: none;
    position: fixed;
    bottom: 10px;
    right: 30px;
    z-index: 99;
    font-size: 14px;
    border: none;
    outline: none;
    background-color: #99ff99;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
  }

  #scrollTopBtn:hover {
    background-color: #004d00;
  }
  /*  End Scroll Top */

