@charset "UTF-8";

/*!
 * Bootstrap  v5.2.1 (https://getbootstrap.com/)
 * Copyright 2011-2022 The Bootstrap Authors
 * Copyright 2011-2022 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
 */

:root {
    --bs-primary: #53A2A7;
    --bs-primary-second: #56abb1;
    --bs-secondary: #A8C8B0;
    --bs-secondary-second: #b1d3ba;
    --bs-success: #408878;
    --bs-success-second: #459281;
    --bs-info: #53A2A7;
    --bs-info-second: #53a2a7;
    --bs-warning: #F0C070;
    --bs-warning-second: #fccb77;
    --bs-danger: #984840;
    --bs-danger-second: #a54d45;
    --bs-light: #E8E8E8;
    --bs-dark: #484840;
}

body {
    font-family: "Sarabun", sans-serif;
    font-size: 14px;
    background-image: url(../images/bg-edit.jpg);
}

.form-select {
    font-size: 14px;
}

.btn {
    font-size: 14px;
    padding: 4px 4px;
}

.card-body {
    padding: 5px;
}

.Sarabun-font {
    font-family: "Sarabun", sans-serif;
}

main>.container-fluid {
    padding: 10px 12px 10px;
}

main>.container-fluid.padding-main {
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer>.container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

a {
    text-decoration: none;
    color: #D88C41;
}

a:hover {
    color: #F0C070;
}


/* add sorting icons to gridview sort links */

a.asc:after,
a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}


/* align the logout "link" (button in form) of the navbar */

.nav li>form>button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li>form>button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav>li>form>button.logout:focus,
.nav>li>form>button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav>li>form>button.logout:focus {
    outline: none;
}


/* style breadcrumb widget as in previous bootstrap versions */

.breadcrumb {
    border-radius: .25rem;
    margin: 0;
    font-size: 14px;
}

.breadcrumb-item>a {
    text-decoration: none;
    color: #D88C41;
}

.breadcrumb-item>a:hover {
    color: #F0C070;
}

.breadcrumb-item {
    color: #F0C070;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #F0C070;
    content: var(--bs-breadcrumb-divider, ">")/* rtl: var(--bs-breadcrumb-divider, "/") */
    ;
}

.breadcrumb-item.active {
    color: #F0C070;
}


/* ADD NEW */

.navbar-dark {
    background-color: #408878;
}


/* Add a black background color to the top navigation */

.topnav {
    background-color: #408878;
    overflow: hidden;
    z-index: 999;
    max-height: 56px;
}


/* Style the links inside the navigation bar */

.topnav a {
    float: left;
    display: block;
    color: #E8E8E8;
    text-align: center;
    padding: 14px;
    text-decoration: none;
    font-size: 15px;
}


/* Change the color of links on hover */

.topnav a:hover {
    background-color: #F0C070;
    color: #484840;
}


/* Add an active class to highlight the current page */

.topnav a.active {
    background-color: #D88C41;
    color: white;
}

.topnav a.user {
    background-color: #F0C070;
    color: #408878;
}

.topnav a.br {
    border-right: 1px solid #53A2A7;
}

.topnav a.user.br {
    border-right: 1px solid #408878;
}


/* Hide the link that should open and close the topnav on small screens */

.topnav .icon {
    display: none;
}


/* Create a right-aligned (split) link inside the navigation bar */

.topnav a.split {
    float: right;
}

.topnav .user-text {
    float: right;
    display: block;
    color: #E8E8E8;
    text-align: center;
    padding: 14px;
    text-decoration: none;
    font-size: 15px;
}


/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */

@media screen and (max-width: 1000px) {
    .topnav a:not(:first-child) {
        display: none;
    }
    .topnav a.icon {
        float: right;
        display: block;
        font-size: 114%;
        margin-right: 200px;
        background: none;
    }
    .topnav a.icon:hover {
        color: #F0C070;
    }
    .topnav {
        max-height: initial;
    }
}


/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */

@media screen and (max-width: 1000px) {
    .topnav.responsive {
        position: relative;
    }
    .topnav.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}


/* The sticky class is added to the navbar with JS when it reaches its scroll position */

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}


/* Add some top padding to the page content to prevent sudden quick movement (as the navigation bar gets a new position at the top of the page (position:fixed and top:0) */

.sticky+.content {
    padding-top: 60px;
}

.card-header {
    padding: 20px 20px 10px 20px;
    border: 0;
    background: none;
    display: flex;
    align-items: center;
}

.card-options {
    color: #9aa0ac;
    margin-left: auto;
    display: flex;
    order: 100;
    align-self: center;
}

footer {
    background-color: #444444;
    color: #fff;
    text-align: center;
    font-size: 14px;
}

.title-header {
    background-color: #408878;
    color: #fff;
}


/* The message box is shown when the user clicks on the password field */

#message {
    display: none;
    background: #f1f1f1;
    color: #000;
    position: relative;
    padding: 10px;
}

#message p {
    padding: 0px 35px;
    font-size: 14px;
    margin: 0;
}


/* Add a green text color and a checkmark when the requirements are right */

.valid {
    color: green;
}

.valid:before {
    position: relative;
    left: -35px;
    content: "✔";
}


/* Add a red text color and an "x" icon when the requirements are wrong */

.invalid {
    color: red;
}

.invalid:before {
    position: relative;
    left: -35px;
    content: "✖";
}


/* DASHBOARD */

.dashboard-menu-border {
    background: linear-gradient(to bottom, #fafafa 20%, #ffffff 80%);
    border-collapse: collapse;
    border-bottom: 5px solid #D88C41;
}

.dropdown {
    width: fit-content;
    display: inline-block;
}

.dashboard-menu-title {
    color: #aaa;
    font-family: KwamSook, Athiti;
    font-size: 0.7rem;
    text-align: center;
}

.btn.dropdown-toggle {
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: -3px;
    margin-bottom: -3px;
}

.dropdown-menu {
    margin-top: -3px;
    max-height: 500px;
    overflow: auto;
}

.dropdown-sep {
    height: 30px;
    display: inline-block;
    padding-top: 5px;
    vertical-align: baseline;
    padding-left: 15px;
    padding-right: 15px;
}


/* Style the links inside the sidenav */

#mySidenav {
    position: fixed;
    z-index: 999;
    right: 0;
}

#mySidenav a {
    position: absolute;
    text-align: right;
    right: -130px;
    transition: 0.3s;
    display: block;
    padding: 15px;
    width: 150px;
    text-decoration: none;
    color: white;
    border-radius: 5px 0 0 5px;
}

#mySidenav a:hover {
    right: 0;
    /* On mouse-over, make the elements appear as they should */
}


/* The about link: 20px from the top with a green background */

#about {
    top: 20px;
    background-color: #04AA6D;
}

#blog {
    top: 80px;
    background-color: #2196F3;
    /* Blue */
}

#projects {
    top: 140px;
    background-color: #f44336;
    /* Red */
}

#contact {
    top: 200px;
    background-color: #484840
    /* Light Black */
}

.yp-accessibility {
    position: fixed;
    right: 0;
    top: 40%;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    background: #D88C41;
    color: #FFF;
    font-size: 16px;
}

.yp-accessibility .item {
    min-height: 50px;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -o-transition: all .2s;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.yp-accessibility .item.eyes {
    background: #408878;
}

.yp-accessibility .icon-toggle {
    display: inline-flex;
}

.yp-accessibility .icon-toggle svg {
    stroke-width: 0.15em;
}

.btn-orange {
    background-color: #408878;
    border-color: #408878;
    color: white;
}

.btn-orange.active {
    background-color: #D88C41;
    border-color: #D88C41;
    color: white;
}

.btn-orange:hover {
    background-color: #F0C070 !important;
    border-color: #F0C070 !important;
}

.button {
    border-radius: 4px;
    background-color: #408878;
    border: none;
    color: #FFFFFF;
    text-align: center;
    font-size: 20px;
    padding: 20px;
    transition: all 0.5s;
    cursor: pointer;
    margin: 5px;
}

.button:hover {
    background-color: #D88C41;
}

.button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.button span:after {
    content: '\00bb';
    position: absolute;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.button:hover span {
    padding-right: 25px;
}

.button:hover span:after {
    opacity: 1;
    right: 0;
}


/* Dropdown Button */

.dropbtn_user {
    background-color: #F0C070;
    color: #408878 !important;
    padding: 7px;
    font-size: 15px;
    border: none;
    min-width: 200px;
    border-left: 1px solid #00ad93;
}


/* The container <div> - needed to position the dropdown content */

.dropdown_user {
    display: inline-block;
    position: absolute;
    right: 0;
    float: right;
}


/* Dropdown Content (Hidden by Default) */

.dropdown_user .dropdown-content {
    display: none;
    position: relative;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    right: 0;
}


/* Links inside the dropdown */

.dropdown_user .dropdown-content a {
    background-color: #F0C070;
    color: #408878;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    float: inherit;
    text-align: left;
}


/* Change color of dropdown links on hover */

.dropdown_user .dropdown-content a:hover {
    background-color: #F0C070;
    color: white;
}


/* Show the dropdown menu on hover */

.dropdown:hover .dropdown-content {
    display: block;
}


/* Change the background color of the dropdown button when the dropdown content is shown */

.dropdown:hover .dropbtn {
    background-color: #D88C41;
    color: white;
}

.menu_user {
    display: none;
}

@media (min-width: 768px) {
    .menu_user {
        display: block;
    }
}


/* BOOTSTRAP5 color */

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary-second);
    --bs-btn-hover-border-color: var(--bs-primary-second);
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
}

.btn-outline-success {
    --bs-btn-color: var(--bs-success);
    --bs-btn-border-color: var(--bs-success);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-success);
    --bs-btn-hover-border-color: var(--bs-success);
}

.btn-outline-info {
    --bs-btn-color: var(--bs-info);
    --bs-btn-border-color: var(--bs-info);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-info);
    --bs-btn-hover-border-color: var(--bs-info);
}

.btn-outline-danger {
    --bs-btn-color: var(--bs-danger);
    --bs-btn-border-color: var(--bs-danger);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-danger);
    --bs-btn-hover-border-color: var(--bs-danger);
}

.text-success {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-success), var(--bs-text-opacity)) !important;
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}


/* BOOTSTRAP5 color */

.responsive-card-table {
    border-collapse: collapse;
}

.responsive-card-table.unstriped tbody {
    background-color: transparent;
}

.responsive-card-table th,
.responsive-card-table td.header {
    background-color: #e6e6e6;
    vertical-align: middle;
    font-weight: bold;
}

.responsive-card-table tr,
.responsive-card-table th,
.responsive-card-table td {
    border: 1px solid var(--bs-black);
}

@media screen and (max-width: 640px) {
    .responsive-card-table {}
    .responsive-card-table thead tr {
        position: absolute;
        top: -9999em;
        left: -9999em;
    }
    .responsive-card-table tr {
        border: 1px solid var(--bs-black);
        display: block;
    }
    .responsive-card-table tr+tr {
        margin-top: 1.5rem;
    }
    .responsive-card-table td {
        border: none;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-justify-content: flex-start;
        -ms-flex-pack: start;
        justify-content: flex-start;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
        border-bottom: 1px solid var(--bs-black);
        padding-left: 47%;
        position: relative;
    }
    .responsive-card-table td:before {
        content: attr(data-label);
        display: inline-block;
        font-weight: bold;
        line-height: 1.5;
        margin-left: -45%;
        width: 45%;
        position: absolute;
        z-index: 1;
        padding-right: 4%;
    }
    .responsive-card-table td:after {
        content: '';
        position: absolute;
        background: #e6e6e6;
        width: 45%;
        height: 100%;
        left: 1px;
        z-index: 0;
    }
    .responsive-card-table td.user:before {
        font-weight: normal;
    }
    .responsive-card-table td.user:after {
        background: #e6dbb9;
    }
}

.nav-tabs {
    border-bottom: var(--bs-nav-tabs-border-width) solid var(--bs-success);
}

.nav-fill>.nav-link,
.nav-fill .nav-item {
    margin: 0 2px;
}

.nav-tabs .nav-link {
    font-weight: bold;
    border-color: var(--bs-success);
    color: var(--bs-success);
}

.nav-tabs .nav-link.active {
    background: var(--bs-success);
    color: var(--bs-light);
    border-color: var(--bs-success);
}

.nav-tabs .nav-link.disable {
    color: beige;
}