﻿@font-face {
    font-family: Prompt;
    src: url("Prompt-Regular.ttf");
}

@font-face {
    font-family: Prompt-thin;
    src: url("Prompt-Thin.ttf");
}

@font-face {
    font-family: Prompt-light;
    src: url("Prompt-Light.ttf");
}

:root {
    --light-green-bg: #b6e6a5;
    --alert-bg: #ffd3d3;
    --alert-color: #000000;
    --button_bg_info: #08751e;
    --button_color_info: yellow;
    --btn_ok_bg: #4c2375;
    --btn_cancel_bg: #666666;
    --dropdown-menu-bg: var(--second_theme);
    --dropdown-border: var(--second_theme);
    --dropdown-box-shadow: #333333;
    --dropdown-item-hover-bg: gray;
    --dropdown-divider: white;
    --dropdown-header: white;
    --fontbody-dark: #444444;
    --fonthighlight-color: #280190;
    --link_color: #766d6d;
    --linkhovercolor: #32b8ec;
    --link_navigator: #088BBC;
    --list_detail_bg: white;
    --main_theme: #370e61;
    --second_theme: #dbdbf0;
    --third_theme: #9c9cd3;
    --nav_link_hover: white;
    --nav_link_bg_hover: orange;
    --titlecolor: #c84040;
    --header_bg_color: var(--main_theme);
    --header_color: white;
    --input-bg: #dbdbf0;
    --input-border: #c9bfe4;
    --shadow-color: #444444;
    --border-color: coral;
    --toast-bg: rgba(173, 200, 231, 0.95);
    --toast-warn-bg: rgba(228, 206, 167, 0.95);
    --toast-danger-bg: rgba(240, 173, 173, 0.95);
    --toast-color: #153b66;
    --btn-disabled-bg: gray;
    --button_bg_remove: #ff0000;
    --table-header-bg: var(--second_theme);
    --table_header: #ffffff;
}

body {
    font-family: Prompt;
    color: var(--main_theme);
    font-size: 1em;
    background-color: var(--second_theme);
    /*font-size: calc(0.1rem + 1.0vw);*/
}

a:link,
a:hover,
a:visited {
    text-decoration: none;
    text-shadow: none;
    color: var(--link_color);
}

a:hover {
    color: var(--linkhovercolor);
}

a.nav-link:hover {
    text-decoration: none;
    text-shadow: none;
    color: var(--nav_link_hover);
    background-color: var(--nav_link_bg_hover);
}

.nav-link:focus {
    color: white;
}

a.nav-link {
    text-decoration: none;
    text-shadow: none;
    color: white;
}

button {
    position: relative;
    padding-left: 30px;
}

button img {
    height: 25px;
    width: auto;
    padding-right: 5px;
}

em {
    font-weight: bold;
    font-size:larger;
}
i {
    font-size : 0.9em;
}
i span {
    margin-right:5px;
    margin-top:5px;
    padding-top : 5px;
}
input,
select {
    padding: 3px 10px 3px 10px;
    border-top-right-radius: 0.3em;
    border-bottom-right-radius: 0.3em;
    border: 1px solid var(--input-border);
    font-size: 1em;
    color: var(--main_theme);
}

input:focus-visible,
select:focus-visible {
    background-color: var(--input-bg);
    border-color: var(--second_theme);
    outline: none;

}

input::placeholder {
    font-style: italic;
    font-size: 0.8em;
    font-weight: lighter;
    color: var(--third_theme);
}

input[type=submit]:disabled {
    background-color: white!important;
    color: gray!important;
    border : 1px solid darkgray;
}

label {
    font-weight: lighter;
    font-size: 0.8em;
    color: var(--main_theme);
}

header {
    background-color: var(--header_bg_color);
    color: var(--header_color);
}

section {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

section#welcome {
    min-height : 50vh;
    width:50%;
    margin-left:auto;
    margin-right:auto;
    background-image : url("../images/pr_thaiairways.png");
    background-repeat: no-repeat;
    background-position: top right;
    background-size:contain;
}
section#welcome div {
    width:70%;
    height:100%;
    margin-left:auto;
    margin-right:auto;
}
select {
    font-size: 0.85em;
}

strong {
    color: var(--fonthighlight-color);
}

thead {
    background-color: var(--table-header-bg);
    color: var(--table_header);
    font-family: Prompt-thin;
}

th {
    text-align: start;
    padding: 10px 10px;
}

td {
    padding: 5px 10px;
}

tbody tr:nth-child(even) {
    background-color: var(--third_theme);
}

/*======== Customize Stylesheet ========*/
/*=== Button ===*/
.bg-green {
    background-color: var(--light-green-bg);
}

.border-style1 {
    border: none;
    /*1px solid #CCCCCC;*/
    border-radius: 0.5rem;
    padding: 10px 15px;
}

.btn {
    border: none;
}

.btn-info {
    background-color: var(--button_bg_info) !important;
    color: white !important;
}

.btn-ok {
    background-color: var(--btn_ok_bg) !important;
    color: white !important;
}

.btn-cancel {
    background-color: var(--btn_cancel_bg) !important;
    color: white !important;
}

.btn-remove {
    background-color: var(--button_bg_remove) !important;
    color: white !important;
}


.btn-ok:link,
.btn-cancel:link,
.btn-info:link,
.btn-info:visited,
.btn-primary:link,
.btn-primary:visited,
.btn-secondary:link,
.btn-secondary:visited,
.btn-close:link,
.btn-close:visited {
    color: white;
    outline: none;
}

.btn-ok:hover,
.btn-cancel:hover,
.btn-info:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-close {
    color: var(--button_color_info) !important;
    /*        filter: brightness(120%);*/
}

.btn-ok:active:focus,
.btn-cancel:active:focus,
.btn-info:active:focus,
.btn-primary:active:focus,
.btn-secondary:active:focus,
.btn-close:active:focus {
    box-shadow: none;
    outline: none;
}

.btn-disabled {
    opacity: 0.5;
    background-color: var(--btn-disabled-bg);
}

.color-red {
    color: red !important;
}

.color-firebrick {
    color: firebrick !important;
}

.color-green {
    color: #0e560d;
}

.container {
    max-width: 95%;
}

.dropdown-header,
.dropdown-header:hover {
    font-size: 1.1em;
    font-style: italic;
    color: var(--dropdown-header);
    text-decoration: none;
}

.dropdown-menu {
    background-color: var(--dropdown-menu-bg);
    border-color: var(--dropdown-border);
    box-shadow: 0px 0px 5px var(--dropdown-box-shadow);
    min-width: 20rem;
}

.dropdown-divider {
    border-top-color: var(--dropdown-divider);
}

.dropdown-menu[data-bs-popper] {
    left: auto;
}

.fadeway {
    opacity: 0.5;
}

.font-bold {
    font-weight: bold;
}

.font-italic {
    font-style: italic;
}

.functionButton {
    padding-bottom: 1em;
    border-bottom: 1px solid lightgrey;
}

.functionButton img {
    height: 30px;
    width: auto;
    margin-left: 5px;
    margin-right: 5px;
}

.highlight-red,
.highlight-green,
.highlight-gray {
    background-color: red !important;
    color: white !important;
}

.highlight-green {
    background-color: green !important;
}

.highlight-light-green {
    background-color: lightgreen !important;
}

.highlight-gray {
    background-color: dimgrey !important;
}

.icon-close,
.icon-approve,
.icon-report,
.icon-update,
.icon-po-doc {
    position: relative;
    padding-left: 30px;
}

.icon-close::before {
    background-image: url(../images/icon_close_window.png);
}

.icon-approve::before {
    background-image: url(../images/icon_approve.png);
}

.icon-po-doc::before {
    background-image: url(../images/icon_po_doc.png);
}

.icon-report::before {
    background-image: url(../images/icon_report.png);
}

.icon-update::before {
    background-image: url(../images/icon_update.png);
}

.icon-close::before,
.icon-approve::before,
.icon-report::before,
.icon-update::before,
.icon-po-doc::before {
    position: absolute;
    width: 100%;
    content: "";
    left: 8px;
    top: 8px;
    bottom: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: center;
    z-index: 1;
}

.list-data:last-child {
    border-bottom: 1px solid var(--border-color);
}

.list-report {
    font-size: small;
}

.main-theme-color {
    color: var(--main_theme);
}

.navbar-brand {
    color: white;
}

.navbar-brand:link,
.navbar-brand:hover,
.navbar-brand:visited,
.navbar-brand:focus {
    color: white !important;
}

.nav-link,
.nav-link:visited,
.nav-link:hover,
.nav-link:link {
    font-size: 0.9em;
    color: white !important;
}

.nav-link img {
    height: 30px;
}

.outstand-blue {
    color: darkblue;
    font-weight: bold;
}

.outstand-green {
    color: darkgreen;
    font-weight: bold;
}

.outstand-red {
    color: red;
    font-weight: bold;
}

.outstand-gray {
    color: darkgray;
    font-weight: bold;
}

.showinfo {
    display: block;
    width: 100%;
    height: 300px;
    position: relative;
    font-style: italic;
    font-weight: bold;
    font-size: 1.5em;
}

.showinfo>div {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    text-align: center;
    z-index: 100;
    height: auto;
    content: " "
}

.small-font {
    font-size: 0.8em;
}

.smaller-font {
    font-size: 0.75em;
}

.shadow-sm {
    box-shadow: 0 .13rem .5rem rgba(0, 0, 0, .175) !important
}

.title-header {
    font-style: italic;
    font-weight: bold;
    margin-bottom: 1em;
    margin-top: 1em;
    color: var(--titlecolor);
}

.topic-header {
    font-style: italic;
    font-weight: bold;
    margin-bottom: 1em;
    margin-top: 1em;
}

.top-background {
    background-image: url("../images/bg1.png");
    background-repeat: repeat;
    background-size: 120%;
}

.text-request {
    font-size: 1.8em;
    color: coral;
}

.text-footer {
    font-size: 0.9em;
}

.text-alert {
    color: red;
    font-weight: bold;
}

#spinner {
    z-index: 1000;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 5rem;
    height: 5rem;
    display: none;
    transform: translateX(-50%, -50%);
    -webkit-transform: translateX(-50%, -50%);
    -moz-transform: translateX(-50%, -50%);
    -ms-transform: translateX(-50%, -50%);
    -o-transform: translateX(-50%, -50%);
}

#navigator {
    color: var(--link_navigator);
    font-size: smaller;
    margin-top: 0.5em;
    margin-bottom: 1em;
}

#navigator a:link,
#navigator a:visited {
    color: #766d6d;
}

#navigator a:hover {
    font-weight: bold;
}

#showConfirm,
#showAlert {
    z-index: 500;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #00000060;
    display: none;
}

#showConfirm>div,
#showAlert>div {
    padding: 5px 20px;
    background-color: var(--alert-bg);
    color: var(--alert-color);
    box-shadow: 1px 1px 5px var(--shadow-color);
    border: 1px solid var(--alert-bg);
    border-radius: 0.2rem;
    min-width: 400px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    -webkit-border-radius: 0.2rem;
    -moz-border-radius: 0.2rem;
    -ms-border-radius: 0.2rem;
    -o-border-radius: 0.2rem;
}

#showConfirm>div div:first-child,
#showAlert>div div:first-child {
    text-align: center;
    display: block;
}

#showConfirm>div div:nth-child(2),
#showAlert>div div:nth-child(2) {
    text-align: center;
    display: block;
    padding: 1.5em 10px;
}

#showConfirm>div div:last-child,
#showAlert>div div:last-child {
    text-align: center;
    display: block;
}

#showConfirm button,
#showAlert button {
    padding-left: 20px;
    padding-right: 20px;
}

#showConfirm img,
#showAlert img {
    width: 80px;
    height: 80px;
    margin-top: -30px;
}



#username,
#password {
    position: relative;
    z-index: 0;

}

#username::before {
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    content: "xx";
    display: block;
    border: 1px solid red;
    background-color: #08751e;
    z-index: 100;
}

.input-container {
    display: flex;
    width: 100%;
    margin-bottom: 15px;
    justify-content: center;
}

/* Style the form icons */
.icon {
    /* padding: 10px; */
    background-color: var(--input-border);
    color: white;
    min-width: 50px;
    text-align: center;
    vertical-align: middle;
}

/* Style the input fields */
.input-field {
    width: 100%;
    /* padding: 10px; */
    outline: none;
}

.input-field:focus {
    border: 1px solid dodgerblue;
}

#footer {
    background-color: #9c9cd3;
    padding-top: 10px;
    padding-bottom: 30px;
    margin-bottom:0;
}


@media (max-width:1000px) {
    section#welcome {
        width : 80%;
        min-height : 40vh;
    }
}