

body {
    color: #566787;
    background: #f5f5f5;
    font-family: 'Kanit', sans-serif;
    font-size: 15px;
}

#preload
{
    background: rgba( 255, 255, 255, 0.8 );
    display: none;
    height: 100%;
    position: fixed;
    width: 100%;
    z-index: 9999;
}

#preload img
{
    left: 50%;
    margin-left: -32px;
    margin-top: -32px;
    position: absolute;
    top: 50%;
}

.char-limit {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    -webkit-box-orient: vertical;
}

/* top page **/
.back-to-top {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 50px;
    margin-bottom: 80px;
    margin-right: 10px;
}


/* switch slider.round */
.switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 50px;
}

.switch input {
    display:none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 400ms;
}

.slider::before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 16px;
    left: 4px;
    position: absolute;
    transition: 400ms;
    width: 16px;
}

input:checked + .slider {
    background-color: #66bb6a;
}

input:checked + .slider::before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round::before {
    border-radius: 50%;
}

/*---./ slider.round -----*/


/*-- popover --*/
.popover {
    font-size: 12px;
}
/*-- ./popover --*/


/*---- card horizontal-scrollable ----*/
.card-body-horizontal {
    min-height: 150px;
    min-width: 150px;
    margin-right: 5px;
}
/*---- ./ card horizontal-scrollable ----*/



/*-------  alert custom -------*/
.alert-success-custom {
    background-color: #dff0d8;
    /*border-color: #d6e9c6;*/
    color: #3c763d;
}

.alert-info-custom {
    background-color: #d9edf7;
    /*border-color: #bce8f1;*/
    color: #31708f;
}

.alert-warning-custom {
    background-color: #fcf8e3;
    /*border-color: #faebcc;*/
    color: #8a6d3b;
}

.alert-danger-custom {
    background-color: #f2dede;
    /*border-color: #ebccd1;*/
    color: #a94442;
}
/*------- ./alert custom -------*/


/*----- marquee ----*/

.marquee {
    overflow: hidden;
    /*width: 99%;*/
    /*border: 1px solid #ccc;*/
    /*background: #ccc;*/
}



/*
.img-resize {
  display: block;
  width: 200px;
  height: 200px;
}*/

/*--------tooltip copy clipboard-------------*/
/*.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -75px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}*/
/*-------./fab button-------------*/