html,body {height:100%;margin:0px;padding:0px;color:#333333;}

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:15px}
label, .control-label {font-size:13px}
p.fieldnote {font-size:11px}
a {color:#3333ff}

/* override form-control */
.form-control, select.form-control:not([size]):not([multiple]) {
/* 	padding: 3px 5px;  */
	padding: 2px 3px; 
	height: auto ;
}

/* /* 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 */
.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;}

/* padding */
.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;}
.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;}
.white {color:#fff;}
.gray {color:#636363;}
.navy {color:#3366cc;}
.black {color:#000;}
.size8 {font-size:8px;}
.size10 {font-size:10px;}
.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;}
.size22 {font-size:22px;line-height:1.5;}
.size24 {font-size:24px;line-height:1.5;}
.size26 {font-size:26px;line-height:1.5;}
.size28 {font-size:28px;line-height:1.5;}
.size30 {font-size:30px;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}
.show {display:block}
.fullwidth {width:100%}
.maxwidth1k {max-width:1000px}
.maxwidth13 {max-width:1300px}
.up {color:#3f9066; font-weight:bold;}
.down {color:#9d3831; font-weight:bold;}
.inline{display: inline;}

.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 */
.borderbot {border-bottom:1px solid #dadada;}
.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;}
.clear {clear:both}

/* box and border */
.box {border:1px solid #e8eeff; background:#f6ffff;}
.boxgray {border:1px solid #ccc}
.columnbox {break-inside: avoid;padding-top:10px}

/* 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}

/* tooltip */
.tooltip-navy + .tooltip > .tooltip-inner {background-color: #335d8e;}
.tooltip-navy + .tooltip > .tooltip-arrow {border-bottom-color: #335d8e;border-top-color: #335d8e;}

/* 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:hover > ul.dropdown-menu {display: block;}
.dropdown-submenu>.dropdown-menu {top:0;left:100%;margin-top:-6px;}

/* 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;}

/* 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);}

/* 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}

/* 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}
}
