@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');
:root {
    --font-default: 'Inter', 'Sarabun', sans-serif;
}
* {
    margin: 0;
    padding: 0;
}
html {
    height: 100%;
}
body {
    font-family: var(--font-default);
    height: 100%;
}
body.submitting {
    pointer-events: none;
    opacity: 0.5;
}
img {
    max-width: 100%;
}
.main-header {
    background-color: #f0f0f0;
    padding: 16px 0;
    box-sizing: border-box;
    height: 50px;
}
.main-header ul {
    list-style: none;
    padding-left: 0;
    margin: 0 -8px;
}
.main-header ul li {
    display: inline-block;
}
.main-header ul li a {
    color: #606060;
    text-decoration: none;
    padding: 0 8px;
}
.main-header ul li a:hover {
    color: #303030;
}
.main-header ul li a.active {
    color: #000000;
    font-weight: 700;
}
.btn.main-mobile-btn {
    position: fixed;
    top: 8px;
    right: 8px;
    display: none;
}
.main-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 100;
    background-color: #795548;   
    box-sizing: border-box;
}
.main-sidebar-body {
    position: relative;
    height: 100%;
}
.main-sidebar ul {
    list-style: none;
    padding: 16px 0;
    max-height: calc(100% - 45px);
    overflow-y: auto;
    box-sizing: border-box;
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
}
.main-sidebar ul::-webkit-scrollbar { 
    display: none;  /* Safari and Chrome */
}
.main-sidebar ul li {
    display: block;
}
.main-sidebar ul li a {
    display: block;
    padding: 12px 16px;
    color: #efe6e3;
    text-decoration: none;
    box-sizing: border-box;
}
.main-sidebar ul li a:hover {
    color: #efe6e3;
    background-color: rgba(255, 255, 255, 0.05);
}
.main-sidebar ul li a.active {
    color: #f9f5f3;
    background-color: rgba(0, 0, 0, 0.5);
    font-weight: 700;
}
.main-sidebar ul li a > img {
    vertical-align: middle;
    margin-right: 12px;
    filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(4deg) brightness(29%) contrast(119%);
}
.main-sidebar ul li a:hover > img {
    filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(4deg) brightness(29%) contrast(119%);
}
.main-sidebar ul li a.active > img {
    filter: invert(100%);
}
.main-sidebar ul li a > span {
    vertical-align: middle;
    display: inline-block;
}
.main-sidebar ul li hr.theme-a {
    border-color: #5a3830;
}
.main-sidebar div[data-type="copyright"] {
    position: absolute;
    bottom: 0;
    font-size: 0.8rem;
    color: #af877a;
    padding: 12px 16px;
}
.main-body {
    margin-left: 200px;
    /* min-height: calc(100% - 50px - 50px); */
}
.main-footer {
    color: #808080;
    background-color: #f0f0f0;
    padding: 16px 0;
    box-sizing: border-box;
    height: 50px;
}
.main-footer ul {
    list-style: none;
    padding-left: 0;
    margin: 0 -8px;
}
.main-footer ul li {
    display: inline-block;
}
.main-footer ul li a {
    color: #606060;
    text-decoration: none;
    padding: 0 8px;
}
.main-footer ul li a:hover {
    color: #303030;
}
.main-footer ul li a.active {
    color: #000000;
    font-weight: 700;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}
.container.container-1000 {
    max-width: 1000px;
}
.container.container-1280 {
    max-width: 1280px;
}
.container.container-1600 {
    max-width: 1600px;
}
.container.container-fluid {
    max-width: none;
}
.table-wrapper {
    overflow-x: auto;
}
.btn {
    font-family: var(--font-default);
    font-size: 1.0rem;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    color: #404040;
    background-color: #f0f0f0;
    padding: 0 12px;
    height: 40px;
    line-height: 38px;
    cursor: pointer;
    vertical-align: middle;
    box-sizing: border-box;
    outline: none;
}
.btn:hover {
    background-color: #e0e0e0;
}
.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
    user-select: none;
}
.btn:disabled > img {
    opacity: 0.5;
}
.btn > img {
    vertical-align: middle;
}
.btn > span {
    vertical-align: middle;
}
.btn > span:nth-child(2) {
    margin-left: 4px;
}
.btn > img:nth-child(2) {
    margin-left: 4px;
}
.btn.btn-theme {
    background-color: rgb(230 200 156);
    color: rgb(54 35 10);
}
.btn.btn-theme > img {
    filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(271deg) brightness(29%) contrast(119%);
}
.btn.btn-primary {
    background-color: rgb(55 94 219);
    color: rgb(245 248 255);
}
.btn.btn-primary > img {
    filter: invert(82%) sepia(93%) saturate(1352%) hue-rotate(174deg) brightness(229%) contrast(119%);
}
.btn.btn-success {
    background-color: rgb(156 230 205);
    color: rgb(10 54 39);
}
.btn.btn-success > img {
    filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(174deg) brightness(29%) contrast(119%);
}
.btn.btn-warning {
    background-color: rgb(230 200 156);
    color: rgb(54 35 10);
}
.btn.btn-warning > img {
    filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(271deg) brightness(29%) contrast(119%);
}
.btn.btn-danger {
    background-color: rgb(230 156 156);
    color: rgb(54 10 10);
}
.btn.btn-danger > img {
    filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(307deg) brightness(29%) contrast(119%);
}
.combobox {
    font-family: var(--font-default);
    font-size: 1.0rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #404040;
    background-color: #ffffff;
    padding: 0 8px;
    height: 40px;
    line-height: 40px;
    cursor: pointer;
    vertical-align: middle;
    box-sizing: border-box;
    outline: none;
}
.textbox {
    font-family: var(--font-default);
    font-size: 1.0rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #404040;
    background-color: #ffffff;
    padding: 0 8px;
    height: 40px;
    line-height: 40px;
    vertical-align: middle;
    box-sizing: border-box;
    outline: none;
}
.textbox::placeholder {
    color: #d0d0d0;
}
table.theme-a {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
table.theme-a th {
    padding: 4px 8px;
    background-color: #efe6e3;
    border: 1px solid #795548;
}
table.theme-a td {
    padding: 4px 8px;
    border-bottom: 1px solid #e0e0e0;
}
hr.theme-a {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 16px 0;
}
.form-group label {
    font-weight: 700;
    margin-bottom: 4px;
    display: block;
}
.form-group.form-group-inline {
    display: inline-block;
    vertical-align: top;
}
.form-group div[data-type="desc"] {
    color: #808080;
    margin-top: 4px;
    display: block;
    font-size: 0.9rem;
}
pre {
    color: #42251b;
    background-color: #efe6e3;
    border-radius: 8px;
    padding: 16px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 101;
}
.modal.modal-active {
    display: block;
}
.modal-body {
    width: 640px;
    max-width: calc(100% - 64px);
    max-height: calc(100% - 128px);
    margin: 0 auto;
    margin-top: 64px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    box-sizing: border-box;
}
.modal.modal-1200 .modal-body {
    width: 1200px;
}
.modal-body > button[data-type="modal-close"] {
    float: right;
    font-family: var(--font-default);
    font-size: 1.0rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    color: #404040;
    background-color: transparent;
    padding: 0 12px;
    height: 40px;
    line-height: 40px;
    cursor: pointer;
    vertical-align: middle;
    box-sizing: border-box;
    outline: none;
    margin-top: -10px;
    margin-right: -10px;
}
.modal-body > button[data-type="modal-close"] > img {
    margin-top: 8px;
}

.w-50 { width: 50%; }
.w-100 { width: 100%; }
img.img-rounded { border-radius: 12px; }
.h1-kick { height: 3.0rem; }
.h2-kick { height: 2.0rem; }
.h3-kick { height: 1.5rem; }
.h4-kick { height: 1.0rem; }
.h5-kick { height: 0.75rem; }
.h6-kick { height: 0.5rem; }
.h7-kick { height: 0.25rem; }
.footer-kick { height: 4.0rem; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-bold { font-weight: 700; }
.text-italic { font-style: italic; }
.text-gray { color: #808080; }
.va-middle { vertical-align: middle; }
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }

.row {
    margin: 0 -8px;
    font-size: 0;
}
.row.flex {
    display: flex;
    flex-direction: row;
}
.col {
    padding: 0 8px;
    vertical-align: top;
    font-size: 1.0rem;
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
}

/* Desktop only */
@media only screen and (min-width: 1024px) {
    .hidden-d { display: none !important; }
    .row.flex-d {
        display: flex;
        flex-direction: row;
    }
    .col.col-d-1 { width: calc(100% * (1/12)); }
    .col.col-d-2 { width: calc(100% * (2/12)); }
    .col.col-d-3 { width: calc(100% * (3/12)); }
    .col.col-d-4 { width: calc(100% * (4/12)); }
    .col.col-d-5 { width: calc(100% * (5/12)); }
    .col.col-d-6 { width: calc(100% * (6/12)); }
    .col.col-d-7 { width: calc(100% * (7/12)); }
    .col.col-d-8 { width: calc(100% * (8/12)); }
    .col.col-d-9 { width: calc(100% * (9/12)); }
    .col.col-d-10 { width: calc(100% * (10/12)); }
    .col.col-d-11 { width: calc(100% * (11/12)); }
    .col.col-d-12 { width: calc(100% * (12/12)); }
    .col.col-d-320 { width: 320px; }
}
/* Tablet only */
@media only screen and (min-width: 601px) and (max-width: 1023px) {
    .hidden-t { display: none !important; }
    .row.flex-t {
        display: flex;
        flex-direction: row;
    }
    .col.col-t-1 { width: calc(100% * (1/12)); }
    .col.col-t-2 { width: calc(100% * (2/12)); }
    .col.col-t-3 { width: calc(100% * (3/12)); }
    .col.col-t-4 { width: calc(100% * (4/12)); }
    .col.col-t-5 { width: calc(100% * (5/12)); }
    .col.col-t-6 { width: calc(100% * (6/12)); }
    .col.col-t-7 { width: calc(100% * (7/12)); }
    .col.col-t-8 { width: calc(100% * (8/12)); }
    .col.col-t-9 { width: calc(100% * (9/12)); }
    .col.col-t-10 { width: calc(100% * (10/12)); }
    .col.col-t-11 { width: calc(100% * (11/12)); }
    .col.col-t-12 { width: calc(100% * (12/12)); }
    .col.col-t-320 { width: 320px; }
}
/* Mobile only */
@media only screen and (max-width: 600px) {
    .hidden-m { display: none !important; }
    .row.flex-m {
        display: flex;
        flex-direction: row;
    }
    .col.col-m-1 { width: calc(100% * (1/12)); }
    .col.col-m-2 { width: calc(100% * (2/12)); }
    .col.col-m-3 { width: calc(100% * (3/12)); }
    .col.col-m-4 { width: calc(100% * (4/12)); }
    .col.col-m-5 { width: calc(100% * (5/12)); }
    .col.col-m-6 { width: calc(100% * (6/12)); }
    .col.col-m-7 { width: calc(100% * (7/12)); }
    .col.col-m-8 { width: calc(100% * (8/12)); }
    .col.col-m-9 { width: calc(100% * (9/12)); }
    .col.col-m-10 { width: calc(100% * (10/12)); }
    .col.col-m-11 { width: calc(100% * (11/12)); }
    .col.col-m-12 { width: calc(100% * (12/12)); }
    .col.col-m-320 { width: 320px; }
}

.alertp {
    display: none;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 32px;
    min-height: 20px;
    color: #404040;
    background-color: #f8f8f8;
}
.alertp.alertp-active {
    animation-name: alertp-open;
    animation-duration: 0.5s;
    display: block;
}
@keyframes alertp-open {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
.alertp.alertp-primary {
    color: #233dc9;
    background-color: #f3f2ff;
}
.alertp.alertp-info {
    color: #2b82b8;
    background-color: #e8f4fb;
}
.alertp.alertp-success {
    color: #4caf50;
    background-color: #eef7eb;
}
.alertp.alertp-warning {
    color: #fb7045;
    background-color: #fbf1e9;
}
.alertp.alertp-danger {
    color: #f44336;
    background-color: #fff2f2;
}
.alertp > button {
    float: right;
    font-family: var(--font-default);
    font-size: 1.0rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    color: #404040;
    background-color: transparent;
    padding: 0 12px;
    height: 40px;
    line-height: 40px;
    cursor: pointer;
    vertical-align: middle;
    box-sizing: border-box;
    outline: none;
    margin-top: -10px;
    margin-right: -10px;
}
.alertp > button > img {
    margin-top: 8px;
}
.alertp.alertp-primary > button > img { filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(220deg) brightness(79%) contrast(114%); }
.alertp.alertp-info > button > img { filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(182deg) brightness(79%) contrast(114%); }
.alertp.alertp-success > button > img { filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(139deg) brightness(89%) contrast(114%); }
.alertp.alertp-warning > button > img { filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(9deg) brightness(89%) contrast(119%); }
.alertp.alertp-danger > button > img { filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(334deg) brightness(79%) contrast(114%); }

/* Mobile & Tablet */
@media only screen and (max-width: 1023px) {
    .btn.main-mobile-btn {
        display: inline-block; 
    }
    .main-sidebar {
        display: none; 
    }
    .main-sidebar.active {
        display: block;
    }
    .main-body {
        margin-left: 0;
    }
    .main-sidebar ul li div[data-type="copyright"] {
        position: static;
        padding-bottom: 24px;
    }
}