/* เปลี่ยน Font หน้าเว็บใหม่ */

@import url('https://fonts.googleapis.com/css?family=Kanit:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i');
html,
body {
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
    width: 100%;
    height: 100%;
    padding-top: 28px;
}

body.backend {
    background-color: #eeeeee;
}

body:before {
    display: block;
    content: '';
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background-color: white;
}

.button .btn {
    min-width: 150px;
}

.btn {
    font-weight: 300;
}

.form-control,
.form-control option {
    font-weight: 300;
}

.table th {
    font-weight: 400;
    border-top: none;
}

.badge {
    font-weight: 300;
}

.form-check-input {
    margin-top: 7px;
}

.next-padd {
    padding-left: 20px;
}

small.error {
    display: block;
    color: #f27474;
}

.input-group-addon {
    font-weight: 300;
}

.card-default {
    min-height: 400px;
}

.title-margin {
    margin-bottom: 20px;
}

.table-responsive th {
    white-space: nowrap;
}
.td-button {
    min-width: 100px;
}

/* สำหรับ Loading */

.site-loading {
    display: none;
    background-color:white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2017;
    opacity: .8;
    text-align: center;
}

.site-loading img {
    position: relative;
    top: 50%;
    height: 280px;
    margin-top: -140px;
}


/*สำหรับ Sidebar*/

.wrapper .sidebar {
    position: fixed;
    height: 100%;
    box-shadow: 2px 0 10px rgba(0, 0, 0, .2);
    z-index: 1040;
    left: 0;
    top: 0;
    background-color: #4c4c4c;
    border-bottom: solid 5px dodgerblue;
}

.sidebar,
.sidebar .scrollbar {
    width: 280px;
}

.sb-toggle {
    position: fixed;
    left: 0;
    top: 60px;
    height: 50px;
    line-height: 50px;
    z-index: 1000;
    color: #fdeafff6;
    padding: 0 5px;
    border-radius: 0 7px 7px 0;
    font-size: 14px;
    background-color: dodgerblue;
    box-shadow: 2px 0 10px rgba(0, 0, 0, .2);
}

.sb-toggle .fa-chevron-right {
    transition: all .7s;
}

.sb-toggle.open .fa-chevron-right {
    transform: rotate(900deg);
}

.sb-head {
    background-color: #fcdcfff6;
    padding: 15px 0;
}

.sb-img-logo {
    width: 220px;
    display: block;
    margin: 25px auto;
}

.sb-header {
    border-bottom: double 3px dodgerblue;
    padding-bottom: 15px;
}

.sb-header-title {
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    padding: 0 5px;
    color: dodgerblue;
}

.sb-navmenu {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.sb-navmenu>li a {
    padding: 10px 0;
    display: block;
    color: rgba(0, 0, 0, .7);
    text-align: center;
    text-decoration: none;
}

.sb-navmenu>li:last-child a {
    border: none;
}

.sb-navmenu>li a:hover {
    background-color: rgba(0, 0, 0, .04);
}

.sb-form {
    background-color: dodgerblue;
    padding: 30px;
    min-height: 220px;
}

.sb-form a.link {
    color: #fdeafff6;
    text-decoration: underline; 
    display: block;
    margin-top: 10px;
}

.sb-form .text-detail {
    color: #fdeafff6;
}

.sb-form h3 {
    color: rgba(255, 255, 255, 1);
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 400;
}

.sb-form .form-control {
    background: none;
    border: solid 1px #fdeafff6;
    font-weight: 200;
    color: #fdeafff6;
}

.sb-form .form-control::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: #fdeafff6;
}

.sb-form .form-control::-moz-placeholder {
    /* Firefox 19+ */
    color: #fdeafff6;
}

.sb-form .form-control:-ms-input-placeholder {
    /* IE 10+ */
    color: #fdeafff6;
}

.sb-form .form-control:-moz-placeholder {
    /* Firefox 18- */
    color: #fdeafff6;
}

.sb-form .btn.btn-light {
    color: dodgerblue;
    background-color: #fdeafff6;
    font-weight: 300;
}

.sb-form-link {
    margin-top: 10px;
    text-align: center;
}

.sb-form-link,
.sb-form-link a {
    font-weight: 200;
    text-decoration: none;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
}

.sb-form-link a:hover {
    color: #fdeafff6;
}

.sb-footer {
    color: #fdeafff6;
    font-weight: 300;
    padding: 30px;
}

.sb-address {
    font-size: 14px;
}

.sb-address:after {
    content: '';
    display: block;
    clear: left;
}

.sb-address dt {
    font-weight: 300;
    float: left;
    width: 20px;
    margin-top: 3px;
}

.sb-address dd {
    font-weight: 200;
    width: 100%;
    padding-left: 25px;
    margin-bottom: 10px;
}

.sb-created {
    font-weight: 200;
}

.sb-active {
    background-color: #f0f0f0;
    color: dodgerblue !important;
}

.inner-wrapper,
.header-navbar .navbar {
    margin-left: 280px;
}


/*สำหรับ Scrollbar*/

.scrollbar {
    height: 100%;
    width: 100%;
    overflow: scroll;
    display: none;
}

.scrollbar>.scrollbar {
    display: block;
}

.scrollbar-macosx>.scroll-element .scroll-bar {
    background-color: rgba(0, 0, 0, .25);
}

.scrollbar-macosx>.scroll-element.scroll-y .scroll-bar {
    left: -6px;
    width: 6px;
}


/*ภาพ Slide*/

.slide-image img {
    height: 540px;
}

.slide-image .carousel-item {
    border-bottom: solid 5px dodgerblue;
}

.slide-image .carousel-item:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}


/* welcome */

.welcome-box {
    margin-top: 15px;
}

.welcome-news .card {
    border-radius: 0;
}

.welcome-table td {
    font-size: .85rem;
    border: none;
}

.welcome-table .tb-row td {
    border-bottom: dashed 1px dodgerblue;
}

.wl-ac-card {
    transition: all 0.4s;
    margin-bottom: 20px;
}

.wl-ac-card .card-img-top {
    height: 130px;
    opacity: .9;
    transition: all 0.4s;
}

.wl-ac-card:hover {
    transform: scale(1.1);
}

.wl-ac-card:hover .card-img-top {
    opacity: 1;
}

.card-no-radius {
    border-radius: 0;
}

[data-fromNow] {
    display: none;
}


/*ส่วนของ Navbar*/

.navbar-brand strong {
    font-weight: bolder;
    letter-spacing: 5px;
    color: dodgerblue;
}

.navbar-brand img {
    height: 28px;   
}

.header-navbar .navbar {
    border-bottom: solid 1px #d0d0d0;
    background-color: #fcdcfff6;
    border-radius: 0;
}

.header-navbar .navbar .navbar-nav li a {
    padding-left: 25px;
    padding-right: 25px;
    display: block;
    font-weight: 300;
    color: rgba(0, 0, 0, .7);
}

.header-navbar .navbar .navbar-nav li:first-child a {
    padding-left: 0;
}

.header-navbar li a .icon,
.header-navbar .navbar .navbar-nav li a:hover, 
.header-navbar .navbar .navbar-nav li a.active {
    color: dodgerblue;
}

.header-navbar li .dropdown-menu a.active .icon,
.header-navbar .navbar .navbar-nav li .dropdown-menu a.active {
    color: #fcdcfff6;
}

.hd-search {
    color: rgba(0, 0, 0, .4);
    cursor: pointer;
}


/* ส่วนของ Webboard */

.webboard,
.header {
    margin-top: 20px;
}

.webboard .wb-title,
.header .title {
    color: dodgerblue;
    font-weight: 400;
    font-size: 24px;
}

.wb-btn-add {
    min-width: 200px;
}

.wb-blockquote {
    font-size: 16px;
}

.wb-cart-text {
    font-size: 14px;
}

.wb-table {
    width: 100%;
    margin-top: 20px;
}

.wb-table td {
    padding: 5px 15px;
    border-bottom: solid 5px #fdeafff6;
}

td.wb-col-shot {
    width: 100px;
    text-align: center;
    padding: 0;
}

td.wb-img {
    background-color: #f0f0f0;
}

.wb-img span {
    font-size: 26px;
    display: block;
    font-weight: 500;
    color: lightcoral;
}

.wb-img div {
    font-size: 14px;
    color: gray;
}

.wb-title-topic {
    font-size: 18px;
    font-weight: 400;
}

.wb-detail {
    margin-top: 10px;
    color: gray;
    font-size: 14px;
}


/* ส่วนของ Custom Text editor */

.fr-box.fr-basic.fr-top .fr-wrapper,
.fr-toolbar.fr-top {
    box-shadow: none;
    border: 1px solid #ced4da;
}

.fr-toolbar.fr-top {
    border-bottom: none;
}


/* สำหรับ Backend */

.be-welcome .card {
    min-height: 250px;
    margin-bottom: 30px;
}

.be-welcome .card .btn-primary {
    min-width: 220px;
    margin-top: 10px;
}


/* สำหรับ Activity */

.act-images-container {
    list-style: none;
    padding: 0;
}

.act-images-container:after {
    content: '';
    display: block;
    clear: both;
}

.act-images-container li {
    height: 100px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.act-images-container .fa {
    cursor: pointer;
}

.act-images-container a {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: 100%;
    height: 100%;
    display: block;
    border: solid 1px #d0d0d0;
}

.activity-img-gallery .images {
    margin-bottom: 15px;
    width: 100%;
    height: 100%;
}

.activity-img-gallery .images img {
    max-width: 100%;
    max-height: 100%;
}

.activity-img-gallery .images:hover img {
    transform: scale(1.03);
}

.carbonads {
    background-color: #f0f0ff;
    padding: 15px;
}

.carbonads .text-title {
    font-weight: 400;
}

/* Footer */

.footer {
    background-color: #4c4c4c;
    border-bottom: solid 5px dodgerblue;
    padding: 30px 0 15px 0;
    color: gray;
}

.footer h5 {
    font-weight: 400;
    font-size: 1.05rem;
    color: #fdeafff6;
    display: none;
}

.footer a {
    font-weight: 200;
    font-size: 1rem;
    display: inline-block;
    color: lightgray;
    padding: 7px 15px;
}

.footer a:hover {
    color: #fdeafff6;
}

.footer-list {
    border-top: solid 1px #e4e4e4;
    background-color: #f4f4f4;
    padding-top: 30px;
    padding-bottom: 30px;
    text-align: center;
}

.footer-list h5 {
    color: dodgerblue;
}

.footer-list .boxs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-list .boxs li {
    display: table; 
    font-size: .9rem;
    width: 100%;
    border-bottom: dashed 1px rgba(0,0,0,.2);
    padding-top: 3px;
}

.footer-list .boxs li:last-child {
    border: none;
}

.footer-list .boxs li span {
    display: table-cell;
    padding: 5px 2px;
    color: #686868;
}

.footer-list .boxs li span small {
    display: block;
    color: lightcoral;
    font-size: .75rem;
    font-weight: 300;
    font-style: italic;
}

.footer-list .boxs li span:first-child {
    text-align: left;
    font-weight: 300;
}

.footer-list .boxs li span:last-child {
    text-align: right;
    font-weight: 400;
    color: #4c4c4c;
}

/* Import CSV */
.text-row-sm td {
    font-size: 0.8em;
}

/* Page */
.padding-top-0 td,
.padding-top-0 th {
    padding-top: 0;
}
.table.table-noborder th,
.table.table-noborder td {
    border: none;
    vertical-align: middle;
}
.bordered-line:first-child td {
    border-top: none !important;
}
.bordered-line td {
    border-top: dashed 1px darkgray !important;
}
.button-circle {
    border-radius: 20px;
    min-width: 120px;
}
.max-width-calculate {
    max-width: 400px;
}

/* Config */
.cursor-block {
    cursor: no-drop;
}
.cursor-pointer {
    cursor: pointer;
}

/* Search box */
.navbar-search-close {
    position: absolute;
    left: 290px;
    top: 10px;
}
.navbar-search {
    /* display: none; */
    position: fixed;
    overflow: auto;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .8);
    z-index: 1040;
}
.navbar-search-input {
    position: absolute;
    top: 10px;
    right: 3px;
}
.navbar-search-input .input-group {
    box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
}
.navbar-search-input .input-group .btn {
    border-radius: 0 .25rem .25rem 0;
}
.navbar-search-content {
    margin-left: 280px;
    margin-top: 70px;
}
.navbar-search-content h5 {
    font-weight: 300;
    margin-bottom: 15px;
    font-size: 16px;
    color: rgba(255, 255, 255, .75);
}
.navbar-search-content .card {
    background: none;
    border-color: rgba(255, 255, 255, .45);
    color: rgba(255, 255, 255, .45);
}
.navbar-search-content .card:hover {
    background-color: rgba(255, 255, 255, .2);
}
.navbar-search-content .card p {
    color: rgba(255, 255, 255, .6);
}
.navbar-search-content .card p,
.navbar-search-content .card footer {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
}

/* History */
.history-page img {
    margin-left: 15px;
}
.history-page .text-indent {
    text-indent: 30px;
}
.history-page ol {
    padding: 0;
    margin: 0;
    width: 280px;
    display: inline-block;
    text-align: left;
}
.history-page li {
    list-style-position: inside;
}
.margin-top {
    margin-top: 15px;
}
.history-page .card {
    max-width: 1200px;
}
.header-template:before {
    content: '';
    display: block;
    background: linear-gradient(dodgerblue, #fdeafff6 32%);
    position: fixed;
    z-index: -10;
    top: 50px;
    left: 0;
    width: 100%;
    height: 400px;
}
.header-template .title,
.header-template .color {
    color: #fdeafff6;
}

/* Personal */
.personal-profile {
    width: 200px;
    text-align: center;
    margin: auto;
    margin-bottom: 15px;
}
.personal-profile img {
    width: 150px;
}
.max-container {
    max-width: 1440px;
}

/* Contact */
.contact-table {
    width: 100%;
}
.contact-table td {
    vertical-align: top;
}
.contact-table td .fa {
    font-size: 20px;
    width: 40px;
    color: dodgerblue;
}