/* Global element styles */
html {
    height: 100%;
    font-family: "Microsoft JhengHei", "Noto Sans", "Noto Sans TC", sans-serif;
}

img {
    max-width: 100%;
    height: 100%;
}

code {
    font-size: 80%;
}

hr {
    color: #757575
}

/* Specific Width & Height*/
.w-100px {
    width: fit-content;
    min-width: 100px;
}


/* General page layout */
.custom-navbar {
    width: 100%;
    height: 60px;
    background-color: #fff;
    color: #353a40;
    border-bottom: 1px solid #edeff0;
}

.custom-content {
    padding-top: 60px;
    background-color: #fff;
}

/* Footer */
.footer {
    margin-top: 40px;
    width: 100%;
    height: 40px;
    line-height: 20px;
    font-size: small;
    text-align: center;
    background-color: transparent;
}

.footer-text {
    color: #ababab;
}

/* Loader for all pages */
.before-onload-loader {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: 50% 50% no-repeat rgb(249,249,249);
    color: #050505;
}

/* Modals */
.custom-modal-header {
    font-size: 16px;
}

/* Toast */
.toast-bg-primary {
    background-color: #0e9f6e;
}

.toast-bg-warning {
    background-color: #ff9100;
}

.toast-bg-error {
    background-color: #f53c3c;
}

/* List.js */
.sort {
    padding: 8px 30px;
    border: none;
    display: inline-block;
    color: black;
    background-color: transparent;
    text-decoration: none;
    height: 30px;
    font-size: 0.9em;
    font-weight: bold;
}

.sort:hover {
    text-decoration: none;
}

.sort:focus {
    outline: none;
}

.sort:after {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid transparent;
    content: "";
    position: relative;
    top: -10px;
    right: -5px;
}

.sort.desc:after {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #000;
    content: "";
    position: relative;
    top: 4px;
    right: -5px;
}

.sort.asc:after {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #000;
    content: "";
    position: relative;
    top: -4px;
    right: -5px;
}

/* Tab Button */
.btn-custom-tab {
    background-color: #ebebeb;
    color: #222222;
    font-weight: 600;
    padding-top: 8px;
    padding-bottom: 8px;
}

.btn-custom-tab:not(:disabled):not(.disabled).active,
.btn-custom-tab:not(:disabled):not(.disabled):active,
.btn-custom-tab:active {
    background-color: #ffffff;
    color: #000;
    font-weight: 600;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Communication channel icons */
.comm-channel-icon {
    font-size: 24px;
    padding: 0 5px;
}

.comm-channel-icon.comm-not-available {
    color: #e0e0e0
}
