﻿html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#wrapper {
    width: inherit;
    height: inherit;
    margin: 0;
    padding: 0;
}


@font-face {
    font-family: 'Trirong';
    src: url('../font/Trirong-Medium.ttf') format('truetype');
    /*font-weight: bold;
    font-style: normal;*/
}
@font-face {
    font-family: 'Pridi';
    src: url('../font/Pridi-Light.ttf') format('truetype');
    /*font-weight: bold;
    font-style: normal;*/
}
@font-face {
    font-family: 'Krub';
    src: url('../font/Krub-Light.ttf') format('truetype');
}

@font-face {
    font-family: 'Kittithada-meduim';
    src: url(../font/Kittithada_ttf/PSL244pro.ttf) format('truetype');
}

@font-face {
    font-family: 'Kittithada-bold';
    src: url(../font/Kittithada_ttf/PSL245pro.ttf) format('truetype');
    font-size: larger;
}

@font-face {
    font-family: 'Kittithada-light';
    src: url(../font/Kittithada_ttf/PSL240pro.ttf) format('truetype');
}


* {
    font-family: Kittithada-meduim, sans-serif;
    font-size: 25px;
    font-weight: lighter !important;
}

.font-Kittithada-light {
    font-family: 'Kittithada-light' !important;
}

.btn {
    font-size: 22px !important;
}

.btn-dark-fix {
    border-radius: 25px;
    background-color: #000000;
    width: 80%;
    height: 45px;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
}

    .btn-dark-fix:hover, .btn-dark-fix:focus, .btn-dark-fix:active, .btn-dark-fix.active, .open > .dropdown-toggle.btn-dark-fix {
        background-color: #939393;
        color: white;
        border-color: #285e8e;
    }


/*html, body, p, span, label, input[type="text"] {
    font-family: SamsungSharpSans-Medium, 'Kittithada-meduim', sans-serif;*/
/*font-family: SamsungSharpSans-Medium, 'Kittithada-meduim', sans-serif;*/
/*font-size: 22px;
    font-weight: lighter !important;
}*/

h1, h1 span, h1 strong, h2, h2 span, h2 strong, h3, h3 span, h3 strong {
    font-family: Kittithada-bold !important;
    font-size: 30px;
}


.div-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.set-div-end {
    display: flex;
    align-items: flex-end;
    min-height: 100%;
}



a,
a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #0E0D13;
    color: #B3B6B7;
    transition: all 0.3s;
}

    #sidebar.active {
        margin-left: -250px;
    }

    #sidebar .sidebar-header {
        padding: 20px;
        background: #0E0D13;
    }

    #sidebar ul.components {
        /*padding: 20px 0;*/
        /*border-bottom: 1px solid #47748b;*/
    }

    #sidebar ul p {
        color: #B3B6B7;
        padding: 10px;
    }

    #sidebar ul li a {
        padding: 10px 30px;
        font-size: 1em;
        display: block;
        text-decoration: none;
        color: #B3B6B7;
    }

        #sidebar ul li a:hover {
            color: #2E86C1; /* น้ำเงิน */
            background: #1D1B27; /* ดำ */
        }

    #sidebar ul li.active > a,
    a[aria-expanded="true"] {
        color: #2E86C1 !important;
        background: #1D1B27;
    }

    #sidebar ul li.active a {
        /*color: #fff;
        background: #000;*/
        color: #2E86C1;
        background: #1D1B27;
    }

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a { /* tag a sub menu*/
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #0E0D13;
}

ul.CTAs {
    padding: 20px;
}

    ul.CTAs a {
        text-align: center;
        font-size: 0.9em !important;
        display: block;
        border-radius: 5px;
        margin-bottom: 5px;
    }

a.download {
    background: #fff;
    color: #7386D5;
}

a.article,
a.article:hover {
    /*background: #6d7fcc !important;*/
    background: #4d4d4d !important;
    color: #fff !important;
}


.font-size-sub-menu {
    font-size: 0.85em !important;
}


.swal-button {
    padding: 7px 19px;
    border-radius: 2px;
    background-color: #4962B3;
    font-size: 12px;
    border: 1px solid #3e549a;
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.3);
}

.btn {
    box-shadow: 1px 1px 6px 2px rgb(0 0 0 / 20%);
}


/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

.datepicker,
.table-condensed {
    width: 400px;
    height: 400px;
}


div.set-content-center {
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
}
.set-content-center p {
    margin: 0;
    padding: 0;
}


div.set-content-start {
    display: flex;
    justify-content: start;
    align-items: center;
}
.set-content-start label {
    padding-left: 20px;
}

div.set-content-end {
    display: flex;
    justify-content: end;
    align-items: center;
}




.btn-report-size {
    /*width: 100px;*/
    margin-left: 5px;
    margin-right: 5px;
    box-shadow: 1px 1px #888888;
}



.flatpickr-current-month {
    font-size: 100% !important;
}

.flatpickr-time input.flatpickr-hour {
    font-size: 1rem;
}

.flatpickr-time input.flatpickr-minute, .flatpickr-time input.flatpickr-second {
    font-size: 1rem;
}



/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }

        #sidebar.active {
            margin-left: 0;
        }

    #sidebarCollapse span {
        display: none;
    }
}

@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }

        #sidebar.active {
            margin-left: 0;
        }

    #sidebarCollapse span {
        display: none;
    }
}

@media (max-width: 1024px) {

    #sidebarCollapse span {
        display: none;
    }
}




/* ---------------------------------------------------
    dataTables Bootstrap
----------------------------------------------------- */

.dataTables_wrapper .myfilter .dataTables_filter {
    float: left;
    margin-bottom: 20px;
}

.dataTables_wrapper .mylength .dataTables_length {
    float: right;
    margin-bottom: 20px;
}


table.table-bordered.dataTable th {
/*    background-color: #5ac2ff;
    font-size: 1.5rem !important;
    color: white;
    border: 1px solid #d0d7de;*/
    /*border-top-left-radius: 6px;
    border-top-right-radius: 6px;*/
    border-radius: 6px 6px 6px 6px;
}

table.table-bordered.dataTable td {
/*    background-color: #ffed8a;
    box-shadow: none;
    margin-top: -1px;
    border: 1px solid #d0d7de;
    border-top-color: #d0d7de;
    border-top-style: solid;
    border-top-width: 1px;*/
    border-radius: 6px 6px 6px 6px;
}

/*table.dataTable tr.dtrg-group td {
    background-color: #ffe037;
}*/

.swal-wide {
    width: 550px !important;
}

.box-header {
    padding: 16px;
    margin: -1px -1px 0;
    background-color: #f6f8fa;
    border-color: #d0d7de;
    border-style: solid;
    border-width: 1px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.h-header {
    display: table-cell;
    vertical-align: middle;
}

    .h-header h1, h2, h3 {
        margin: 0 !important;
    }

.box-footer {
    padding: 16px;
    margin-top: -1px;
    border: 1px solid #d0d7de;
    border-top-color: #d0d7de;
    border-top-style: solid;
    border-top-width: 1px;
    border-radius: 0 0 6px 6px;
}



/* ---------------------------------------------------
    content
----------------------------------------------------- */

@media only screen and (max-width: 768px) {
    .set-w-size-datetime {
        width: 100%;
    }
}

@media only screen and (min-width: 768px) {
    .set-w-size-datetime {
        width: 80%;
    }
}

@media only screen and (min-width: 1024px) {
    .set-w-size-datetime {
        width: 50%;
    }
}





.swal2-title {
    padding: 0em 0em 0;
}


.swal2-styled {
    padding: .425em .625em !important;
}

    .swal2-styled.swal2-confirm {
        font-size: 0.75em !important;
        box-shadow: 1px 1px 6px 2px rgb(0 0 0 / 20%) !important;
    }

    .swal2-styled.swal2-cancel {
        font-size: 0.75em !important;
        box-shadow: 1px 1px 6px 2px rgb(0 0 0 / 20%) !important;
    }