html,body {height:100%;margin:0px;padding:0px;color:#000;font-family: "Manrope"}

/*
h1 {font-size: 180%; }
h2 {font-size: 160%; }
h3 {font-size: 150%; }
h4 {font-size: 140%; }
h5 {font-size: 130%; }
h6 {font-size: 120%; }
*/

p, div {font-size:13px; }
p, span {font-family: "Manrope";}
label, .control-label {font-size:13px; }
p.fieldnote {font-size:11px}
a {color:#0d6efd; text-decoration: none !important;}

/* override form-control */
.form-control, select.form-control:not([size]):not([multiple]) {
/* 	padding: 3px 5px;  */
	padding: 2px 3px; 
	height: auto ;
	border: 1px solid #767d85;
}

/* /* tabs */ */
.nav-tabs>li>a {border:1px solid #bbb}
.nav-tabs>li.active>a, .nav-tabs>li.active>a:hover, .nav-tabs>li.active>a:focus {background-color:#335d8e;color:#fff}
.nav-tabs {border-bottom: 6px solid #335d8e;}

/* margins */
.mar0 {margin:0;}
.mtop5 {margin-top:5px;}
.mtop10 {margin-top:10px;}
.mtop20 {margin-top:20px;}
.mtop30 {margin-top:30px;}
.mtop50 {margin-top:50px;}
.mbot5 {margin-bottom:5px;}
.mbot0 {margin-bottom:0px;}
.mbot10 {margin-bottom:10px;}
.mbot20 {margin-bottom:20px;}
.mbot30 {margin-bottom:30px;}
.mbot50 {margin-bottom:50px;}
.mleft5 {margin-left:5px;}
.mleft10 {margin-left:10px;}
.mright5 {margin-right:5px;}
.mright10 {margin-right:10px;}
.mright20 {margin-right:20px;}
.mright30 {margin-right:30px;}

/* padding */
.pad0 {padding:0;}
.pad5 {padding:5px;}
.pad10 {padding:10px;}
.pad20 {padding:20px;}
.padv5 {padding:5px 0;}
.padv10 {padding:10px 0;}
.padh5 {padding:0 5px;}
.padh10 {padding:0 10px;}
.padleft5 {padding-left:5px;}
.padleft10 {padding-left:10px;}
.padleft20 {padding-left:20px;}
.padleft30 {padding-left:30px;}
.padright5 {padding-right:5px;}
.padright10 {padding-right:10px;}
.padright15 {padding-right:15px;}
.padright20 {padding-right:20px;}
.padright30 {padding-right:30px;}
.padtop10 {padding-top:10px;}
.padtop20 {padding-top:20px;}
.padbot10 {padding-bottom:10px;}
.padbot20 {padding-bottom:20px;}

/* rounding */
.rounded10 {border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;-khtml-border-radius:10px;}
.rounded5, div#submenutext a {border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;-khtml-border-radius:5px;}

.bordergray {border:1px solid #dadada}
.bordergray3 {border:3px solid #dadada}
.borderorange {border:1px solid #ffbd00}

/* general layout and color */
.center {text-align:center;}
.left {text-align:left;}
.right {text-align:right;}
.v-mid {vertical-align: middle !important;}
.white {color:#fff;}
.light-gray {color:#AAAAAA;}
.gray {color:#636363;}
.navy {color:#3366cc;}
.black {color:#000;}
.subtitle {color: #797979;}
.size8 {font-size:8px;}
.size10 {font-size:10px;}
.size11 {font-size:11px;}
.size12 {font-size:12px;}
.size14 {font-size:14px;line-height:1.5;}
.size16 {font-size:16px;line-height:1.5;}
.size18 {font-size:18px;line-height:1.5;}
.size20 {font-size:20px;line-height:1.5;}
.size32 {font-size:32px;line-height:1.5;}
.w100 {width:100px}
.w160 {width:160px}
.w180 {width:180px}
.w200 {width:200px}
.w220 {width:220px}
.w250 {width:250px}
.w270 {width:270px}
.bold {font-weight:bold}
.plain {font-weight:normal}
.italic {font-style:italic}
.hide {display:none}
.fullwidth {width:100%}
.maxwidth1k {max-width:1000px}
.maxwidth13 {max-width:1300px}
.up {color:#3f9066; font-weight:bold;}
.down {color:#9d3831; font-weight:bold;}
.up-color{color:green;}
.down-color{color:red;}
.nochange-color{color:black;}
.inline{display: inline;}
.nowrap{white-space: nowrap;}
.float-end {float: right!important;}
 
.animate {-webkit-transition:height 0.2s;-moz-transition:height 0.2s;transition:height 0.2s;}
.fieldnote {color:#8a8a8a;}
.ferrmsg:not(:empty) {color:#ff3333;padding-left:10px;font-size:12px}

/* flex */
.flexfs {display:flex; justify-content:flex-start; flex-wrap:wrap}
.flexsb {display:flex; justify-content:space-between; flex-wrap:wrap}

/* background colors */
.bgblue {background-color:#ebf2f9}
.bggray {background-color:#f2f2f2}
.bgnavy {background-color:#3366cc;}
.bgred {background-color:#dc3912;}
.bgyellow {background:#ffffdd;}
.bg-wrapper-box-light{background-color: #f7f7f7;}
.clear {clear:both}

/* box and border */
.box {border:1px solid #e8eeff; background:#f6ffff;}
.boxgray {border:1px solid #ddd}
.columnbox {break-inside: avoid;padding-top:10px}
.bordertop {border-top:1px solid #ddd;}
.borderbot {border-bottom:1px solid #ddd;}
.border-bottom-gray {border-bottom:solid 1px #c0c0c0};
 
/* side bar */
.sidebar-left {width:200px;padding:8px 2px;vertical-align:top;background-color:#f5f5f5;border-right:1px solid #ddd;}
.body-container {padding:8px 6px 8px 12px}
.body-container-center50 {padding:8px 6px 8px 12px;width:50%; margin:0 auto}
.center50 {width:50%; margin:0 auto}
.center100 {margin:0 auto}

/* tooltip */
.tooltip-navy + .tooltip > .tooltip-inner {background-color: #335d8e;}
.tooltip-navy + .tooltip > .tooltip-arrow {border-bottom-color: #335d8e;border-top-color: #335d8e;}
.tool-tip {
	position: relative;
}
.tool-tip .tooltip-text {
	visibility: hidden;
	background-color: #555;
	color: #fff;
	font-size: 12px;
	text-align: center;
	padding: 5px;
	border-radius: 6px;
	position: absolute;
	z-index: 1;
	bottom: 125%;
	left: 50%;
	opacity: 0;
	transition: opacity 0.3s;
}
.tool-tip .tooltip-text::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: #555 transparent transparent transparent;
}
.tool-tip:hover .tooltip-text {
	visibility: visible;
	opacity: 1;
}
/* table */
.table-borderless tbody tr td,
.table-borderless tbody tr th,
.table-borderless thead tr th,
.table-borderless thead tr td,
.table-borderless tfoot tr th,
.table-borderless tfoot tr td {border: none;}

/* data tables */
.dataTables_wrapper .dataTables_filter input {padding:2px;font-size:16px;width:300px;font-weight:normal}
.dataTables_wrapper .dataTables_filter {float:left;text-align:left;}
.dataTables_wrapper .dataTables_length {float:right;}
.dataTables_wrapper .dataTables_length label {font-size:16px;font-weight:normal}

table.compact tbody td, table.compact tbody td, table.dataTable tbody th, table.dataTable tbody td {padding: 3px 3px}

/* override navbar color*/
.navbar-dark .navbar-nav .nav-link:focus, .navbar-dark .navbar-nav .nav-link:hover{color: rgba(255, 255, 255, 1);}

/* override datatable margin*/
.dataTables_wrapper {margin-top: 1rem !important;}

/* Override Full Calendar */
a.fc-event, a.fc-event-dot{background-color: #d4ebff;}

/* override card (panel) */
.card-header {padding: .5rem 1rem;}
.card-body {padding: 1rem;}

/* override table */
.table td, .table th {padding: .25rem;}

/* td nowrap */
.td-nowrap{white-space: nowrap;}

/* Child detail */
.child-action-edit {display:none;}

/* START -- drop down sub menu action*/
.dropdown-submenu {position:relative;}
.dropdown-submenu>.dropdown-menu {top:0!important;left:100%;margin-top:-1px;}

/* rotate caret on hover */
.dropdown-menu > li > a:hover:after {text-decoration: underline;transform: rotate(-90deg);} 
/* END -- drop down sub menu action*/

/* START - file upload button css */
.btn-file {position: relative;overflow: hidden;}
.btn-file input[type=file] {
	position: absolute;
	top: 0;
	right: 0;
	min-width: 100%;
	min-height: 100%;
	font-size: 100px;
	text-align: right;
	filter: alpha(opacity=0);
	opacity: 0;
	outline: none;
	background: white;
	cursor: inherit;
	display: block;
}
/* END - file upload button css */

/* override bootstrap button size */
/*.btn {padding: .175rem .55rem;}*/

/* override bootstrap dropdown caret */
.dropdown-toggle::after {
    display: none;
}

/* START - slider */
.switch {position: relative;display: inline-block;width: 40px;height: 20px;}

.switch input {opacity: 0;width: 0;height: 0;}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {background-color: #2196F3;}
input:focus + .slider {box-shadow: 0 0 1px #2196F3;}
input:checked + .slider:before {-webkit-transform: translateX(17px);-ms-transform: translateX(17px);transform: translateX(17px);}

/* Override focus style */
input:focus,
textarea:focus,
select:focus,
button:focus,
.btn.focus,
.btn:focus {
	outline: 0;
	box-shadow:none!important;
}

/* Rounded sliders */
.slider.round {border-radius: 34px;}
.slider.round:before {border-radius: 50%;}
/* END - slider */

/* Activity Log Detail */
.table>thead:first-child>tr:first-child>th {border-bottom: black 1px solid}
.diff {background-color: #E9FFA8}
.old-diff {background-color: #FFEFCA}
tr.diff-row td {background-color: #E9FFA8}
tr.old-diff-row td {background-color: #FFEFCA}

/* Master list */
table.dataTable tbody tr {background-color: transparent;}

/* Job list */
.subjob {color: green; font-style: italic}

/* container */
.container {margin-left:auto;width:100%}
.container table>tbody>tr>td .btn-primary {margin-left:20px}
.container .table tbody>tr>th {width:20%;}
.container .table tbody>tr>td>input {width:75%}
.container .table tbody>tr>td>select {width:75%}
.container .card .card-body table>tbody>tr>td {width:130px}
.container .card .card-body table>tbody>tr>td>button {margin-left:-65px}

/* breadcrumb */
.breadcrumb-div {
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 15px;
}
.breadcrumb_ {
	margin: 0 0 5px 0;
	padding: 0;
	font-family: "Manrope";
}
.breadcrumb_item {
	display: inline-block;
}
.breadcrumb_item:not(:last-of-type)::after {
	content: '>';
	margin: 0 5px;
}
.breadcrumb_item:last-of-type::before {
	content: '';
}
.breadcrumb_link {
	text-decoration: none;
	color: #999999;
}

/* currency-flag*/
.currency-flag.currency-flag-cny, .currency-flag.currency-flag-sgd{
  background-position: 0%;
}
#gray-div-web {
	position:fixed;
  	top:0;
  	bottom:0;
  	left:0;
  	right:0;
  	margin: auto;
  	background-color:#808080;
  	display:none;
  	z-index: 1002;
	opacity: 0.8;
}
#gray-div-web.show {
  	display:block;
}
#scroll-top-btn {
	display: none; /* Hidden by default */
	position: fixed; /* Fixed/sticky position */
	bottom: 20px; /* Place the button at the bottom of the page */
	right: 30px; /* Place the button 30px from the right */
	z-index: 99; /* Make sure it does not overlap */
	border: none; /* Remove borders */
	outline: none; /* Remove outline */
	background-color: #000; /* Set a background color */
	color: white; /* Text color */
	cursor: pointer; /* Add a mouse pointer on hover */
	padding: 10px 20px; /* Some padding */
	border-radius: 15px; /* Rounded corners */
	font-size: 18px; /* Increase font size */
}
#scroll-top-btn:hover {
	background-color: #555; /* Add a dark-grey background on hover */
}
/* Autocomplete */
.autocomplete-suggestions { border: 1px solid #999; background: #FFF; overflow: auto; }
.autocomplete-suggestion { padding: 2px 5px; white-space: nowrap; overflow: hidden; }
.autocomplete-selected { background: #F0F0F0; }
	
.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* number of lines to show */
}

/* Scrollbar */
/* Works on Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #AAAAAA white;
}

/* Works on Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}

*::-webkit-scrollbar-track {
  background: white;
}

*::-webkit-scrollbar-thumb {
  background-color: #AAAAAA;
  border-radius: 20px;
  border: 3px solid #AAAAAA;
}

/* Mobile Version */
@media (min-width: 481px) and (max-width: 767px) { 
	.container .mesgtable {width:100%}
	nav>div .navbar-form button {width:100%;margin-top:5px}
	nav>div>ul {margin-left:auto;}
	.container table>tbody>tr>td .btn-primary {margin-left:0px;}
	.container .table tbody>tr>th {width:30%}
	.container .card .card-body table>tbody>tr>td {width:75%}
	.container .card .card-body table>tbody>tr>td>button {margin-left:-40px}
	body #dttable_wrapper #dttable_filter input {width:70%}
	body #dttable_wrapper #dttable_length {margin-top:10px}
}

@media screen and (max-width: 575px) {
	p, div {font-size:14px; }
}
