﻿body {
    background-color: #eee;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

.xtextarea {
	min-height: 30px;
	max-height: 400px;
}

.xborder-bottom {
	border-bottom: dotted 1px black;
}
.xborder-top {
	border-top: dotted 1px black;
}
.xtbborder-left {
    border-left: dotted 2px #ccc;
    margin-left: 4px;
    padding-left: 4px;
}
.xtbborder-right {
    border-right: dotted 2px #ccc;
    margin-right: 0px;
    padding-right: 8px;
}

.xinput-group-fa {
    padding-top: 10px !important;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }
}

.cursor-pointer {
	cursor: pointer !important;
}
.cursor-default {
    cursor: default !important;
}
.cursor-move {
    cursor: move !important;
}
.cursor-help {
    cursor: help !important;
}

/* --------------------------------------------------------------------
    bootstrap override
-------------------------------------------------------------------- */
.card {
    margin-bottom: 15px;
}
.xbg-popmenu {
	background-color: #ddd;
}
/* https://github.com/twbs/bootstrap/issues/23308 */
.dropdown-menu-right {
	right: 0;
	left: auto;
	top: auto;
}
.xform-item {
	padding: 0.3rem 0.3rem;
	margin-bottom: 5px;
/*	width: 100% !important; */
	max-width: 100% !important;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 0.25rem;
}
.xform-border {
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 0.25rem;
}
/*	input.xform-item {
		width: auto !important;
	} */
.xform-item-w50 {
	width: 49% !important;
}
.xform-item-right {
	float: right;
}
.xbox-shadow {
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.fa-fw2 {
	width:3em !important;
}

/* --------------------------------------------------------------------
    platform banner
-------------------------------------------------------------------- */

.platform-banner {
    margin:20px;
}
.platform-banner td:first-child {
    width: 50px;
    padding-right:10px;
}
.platform-banner span {
    line-height:1;
}
.platform-banner span:first-child {
    color: darkblue;
    font-size: 2em;
}
.platform-social {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
}
.platform-social a {
    padding-left: 10px;
    padding-right: 10px;
}
.card-item {
    width: 180px;
    margin-right: 15px;
}
.page-title {
    padding: 10px;
    background-color: lightgoldenrodyellow;
    border-bottom: solid 1px #ccc;
}
#tabbar a {
    color: black;
}
#tabbar .badge {
    margin-left: 10px;
}
.qr-item {
    padding-top: 10px;
}

/* --------------------------------------------------------------------
    platform login
-------------------------------------------------------------------- */
.platform-login .forget,
.platform-login .signup {
    display: none;
}
.platform-login input {
    width: 100%;
    max-width: 100%;
    padding: 5px;
    display: block;
    margin-bottom: 5px;
}
.platform-login a {
    display: inline-block;
}

/* --------------------------------------------------------------------
    navbar
-------------------------------------------------------------------- */

.navbar-user-bg {
    background-color: darkgreen !important;
    border-color: darkgreen !important;
}
.platform-user-color {
    color: darkgreen !important;
}
.navbar-management-bg {
    background-color: darkslategray !important;
    border-color: darkslategray !important;
}
.platform-management-color {
    color: darkslategray !important;
}
.navbar-security-bg {
    background-color: maroon !important;
    border-color: maroon !important;
}
.platform-security-color {
    color: maroon !important;
}

#modalbg {
    background: rgba(0,0,0,0.5);
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    display: none;
}
.right-panel {
    padding: 10px;
    position: fixed;
    background-color: white;
    top: 100px;
    right: 0;
    width: 300px;
    height: auto;
    border: solid 1px black;
    display: none;
    z-index: 2010;
}
.right-panel select, .right-panel input {
    width: 100%;
    padding: 5px;
    margin-bottom: 5px;
}
.right-panel a {
    width: auto !important;
    vertical-align: middle;
    cursor: pointer;
}
.topic-list, .topic-detail {
    padding-top: 10px;
}
.topic-list div {
    padding: 10px;
    background-color: white;
    margin-bottom: 5px;
    border: solid 1px #ccc;
}
.topichdr {
    cursor: pointer;
}
.topic-detail div {
    padding: 10px;
    background-color: white;
    border: solid 1px #ccc;
}
.topic-detail .navbar {
    padding: 0;
    margin-bottom: 5px;
}
.topic-detail textarea {
    padding: 5px;
    width: 100%;
    max-width: 100%;
    border: solid 1px transparent;
}
.nav a {
    cursor: pointer;
}
hr {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}
.booking-detail {
    padding: 10px;
    margin-bottom: 5px;
}
.booking-detail select,
.booking-detail input {
    width: 100%;
    max-width: 100%;
    margin-bottom: 5px;
    padding: 5px;
}
.booking-detail .navbar {
    border: none;
    margin-bottom: 0;
    margin-left: -10px;
}
.topic-mce .mce-tinymce {
    width: 100% !important;
}

[data-notify="container"] {
    box-shadow: 0 0 20px #999;
    /*box-shadow: 0px 0px 50px rgba(51, 51, 51, 0.3);*/
}
[data-notify="container"] [data-notify="icon"] {
    height: auto;
    margin-right: 12px;
    float: left;
}
[data-notify="container"] [data-notify="title"] {
    display: block;
    font-weight: bold;
    font-size: larger;
    margin-bottom: 5px;
}
[data-notify="container"] [data-notify="message"] {
    font-size: 90%;
}

/* --------------------- */
/* regulatory update CSS */
.filecolor-doc {
    color: #295598;
}

.filecolor-pdf {
    color: #ff2116;
}

.filecolor-ppt {
    color: #d04626;
}

.filecolor-xls {
    color: #1f7246;
}

.bgimg-src {
    max-width: 178px;
    max-height: 178px;
}

.bgimg-del {
    position: absolute;
    right: 3px;
    top: 5px;
    cursor: pointer;
}

.bgimg-carousel {
    max-height: 400px;
}

.bgimg-carousel-sm {
    height: 150px;
    width: 100%;
}

.bgimg-hdr {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background-color: rgba(0,0,0,0.4);
    color: white;
    padding: 1rem;
    z-index: 1000;
}

.box {
    display: flex;
    align-items: stretch;
    padding: 0;
}

.box-inner:hover {
    box-shadow: 0 0 20px #bbb;
}

.box-inner {
    width: 100%;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: start;
    margin: 5px;
    background-color: white;
}

.carousel-inner {
    height:100%;
}
.carousel-item {
    height:100%;
    overflow:hidden;
}
/* regulatory update CSS */
/* --------------------- */

/*
.modal-header {
    background-color:#428bca;
    color:white;
}
.modal-header .close {
    color:white;
}
.modal-header button.close:hover {
    color: white;
}
.modal-header .close span:hover {
    color: white;
}
*/

/* search UI CSS */

.ui-datepicker { z-index: 1100 !important; }
@media all and (min-width:768px) {
    .search {
        position:fixed;
        left:0;
        bottom:0;
        width:300px;
        top:60px;
        z-index:100;
    }
    .result {
        position:fixed;
        left:300px;
        bottom:0;
        right:0;
        top:60px;
    }
    .result-detail {
        position:fixed;
        width:768px;
        bottom:0;
        right:0;
        top:60px;
        z-index:120;
        background-color:#eee;
    }
}
@media all and (max-width:768px) {
    .search {
        display:none;
        position:fixed;
        left:0;
        bottom:0;
        width:300px;
        top:60px;
    }
    .result {
        position:fixed;
        left:0;
        bottom:0;
        right:0;
        top:60px;
    }
    .result-detail {
        position: fixed;
        left: 0;
        bottom: 0;
        right: 0;
        top: 60px;
        z-index: 120;
        background-color: #eee;
    }
}
.show-important {
    display: block !important;
    z-index:120;
}
#search-backdrop {
    display:none;
    position:fixed;
    top:60px;
    left:0;
    right:0;
    bottom:0;
    z-index:110;
    background-color:#000;
    opacity:0.5;
}

.small-important {
    font-size: 80% !important;
    font-weight: 400 !important;
}

@media all and (min-width:576px) {
    .item-count { width:100px; }
}
.item-chart { height: 300px; }
.item-chart div { display:inline-block; }
.nonActive { color: red; }

.right-flat {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.left-flat {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.chart-info {
    width: 100px;
}
.chart-info:hover {
    box-shadow: 0 0 20px #bbb;
    /*background-color: InfoBackground;*/
}

@media screen and (min-width: 1400px) {
    .d-xxl-inline-block {
        display: inline-block !important;
    }
    .d-xxl-inline {
        display: inline !important;
    }
    .d-xxl-none {
        display: none !important;
    }

    .col-xxl-1 {
        flex: 0 0 8.333333% !important;
        max-width: 8.333333% !important;
    }
    .col-xxl-2 {
        flex: 0 0 16.666667% !important;
        max-width: 16.666667% !important;
    }
    .col-xxl-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
    .col-xxl-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
    .col-xxl-5 {
        flex: 0 0 41.666667% !important;
        max-width: 41.666667% !important;
    }
    .col-xxl-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .col-xxl-7 {
        flex: 0 0 58.333333% !important;
        max-width: 58.333333% !important;
    }
    .col-xxl-8 {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
    }
    .col-xxl-9 {
        flex: 0 0 75% !important;
        max-width: 75% !important;
    }
    .col-xxl-10 {
        flex: 0 0 83.333333% !important;
        max-width: 83.333333% !important;
    }
    .col-xxl-11 {
        flex: 0 0 91.666667% !important;
        max-width: 91.666667% !important;
    }
    .col-xxl-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media screen and (min-width: 992px) {
    .pane-left { width: 420px; }
}
@media screen and (max-width: 992px) {
    .pane-left { width: 280px; }
}

/* Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) {
    .w-sm-100 { width: 100% !important; }
    .w-sm-75 { width: 75% !important; }
    .w-sm-50 { width: 50% !important; }
    .w-sm-25 { width: 25% !important; }
    .h-sm-100 { height: 100% !important; }
    .h-sm-75 { height: 75% !important; }
    .h-sm-50 { height: 50% !important; }
    .h-sm-25 { height: 25% !important; }
}

/* Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) {
    .w-md-100 { width: 100% !important; }
    .w-md-75 { width: 75% !important; }
    .w-md-50 { width: 50% !important; }
    .w-md-25 { width: 25% !important; }
    .h-md-100 { height: 100% !important; }
    .h-md-75 { height: 75% !important; }
    .h-md-50 { height: 50% !important; }
    .h-md-25 { height: 25% !important; }
}

/* Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {
    .w-lg-100 { width: 100% !important; }
    .w-lg-75 { width: 75% !important; }
    .w-lg-50 { width: 50% !important; }
    .w-lg-25 { width: 25% !important; }
    .h-lg-100 { height: 100% !important; }
    .h-lg-75 { height: 75% !important; }
    .h-lg-50 { height: 50% !important; }
    .h-lg-25 { height: 25% !important; }
}

/* Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {
    .w-xl-100 { width: 100% !important; }
    .w-xl-75 { width: 75% !important; }
    .w-xl-50 { width: 50% !important; }
    .w-xl-25 { width: 25% !important; }
    .h-xl-100 { height: 100% !important; }
    .h-xl-75 { height: 75% !important; }
    .h-xl-50 { height: 50% !important; }
    .h-xl-25 { height: 25% !important; }
}

/* #region form */
.form-control-required {
    border-color: #dc3545 !important;
}

    .form-control-required:focus {
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }
/* #endregion */

/* #region table frozen - begin */
.table-frozen thead {
    position: -webkit-sticky;
    position: sticky;
    top: -1px;
    z-index: 3;
    background: #ddd;
}

.table-frozen thead tr.colspan th:not(:first-child) {
    background: #eee;
}
    .table-frozen thead tr.colspan th:not(:first-child) {
        background: #eee;
        text-align: center;
        border-right-color: #ccc;
    }

    .table-frozen thead th:first-child {
        left: -1px;
        z-index: 4;
    }

/*.table-frozen :not(thead) tr > :first-child {*/
.table-frozen tr > :first-child {
    position: -webkit-sticky;
    position: sticky;
    background: #ddd;
    border-right: 1px solid #ccc;
    left: -1px;
    z-index: 2;
}

.table-frozen tbody {
    overflow: scroll;
    z-index: 1;
}

.table-frozen .disabled {
    background-color: #eee;
}

.table-compact td {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
/* #endregion */

.no-select {
    user-select: none;
}
.focus-outline-0:focus {
    outline: none;
}
.lh-compact {
    line-height: 1.2;
}

.img-avatar-sm {
    width: 25px;
    height: 25px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid #ccc !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    object-fit: cover;
    object-position: top;
}
.img-avatar {
    width: 50px;
    height: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid #ccc !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}
.img-avatar-lg {
    width: 75px;
    height: 75px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid #ccc !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    object-fit: contain;
}

.nav-link {
    display: block;
    padding: 0.25rem 0.75rem;
}
.nav-link-hover {
    margin-bottom: 2px;
}
.nav-link-hover:hover {
    background-color: lightgray;
}

.slow-spin {
    -webkit-animation: fa-spin 6s infinite linear;
    animation: fa-spin 6s infinite linear;
}

.file-caption-name {
    max-width: 100%;
}