/* Bootstrap 5 compatibility rules for the pilot layout (BaseLayout5.jsp).
   Loaded last, so these rules win over bootstrap.min.css and the older project css.
   Goal: keep the Bootstrap 3 look (sizes, spacing, colours) while running on Bootstrap 5. */

/* ---- Base typography: Bootstrap 3 used 14px / 1.428, Bootstrap 5 uses 16px / 1.5 ---- */
html {
	font-size: 14px;
}
body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.428571429;
	color: #333333;
	background-color: #ffffff;
}
a {
	color: #337ab7;
	text-decoration: none;
}
a:hover,
a:focus {
	color: #23527c;
	text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
	font-family: inherit;
	font-weight: 500;
	line-height: 1.1;
}
h1 { font-size: 36px; margin-top: 20px; margin-bottom: 10px; }
h2 { font-size: 30px; margin-top: 20px; margin-bottom: 10px; }
h3 { font-size: 24px; margin-top: 20px; margin-bottom: 10px; }
h4 { font-size: 18px; margin-top: 10px; margin-bottom: 10px; }
h5 { font-size: 14px; margin-top: 10px; margin-bottom: 10px; }
h6 { font-size: 12px; margin-top: 10px; margin-bottom: 10px; }
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
	font-weight: 400;
	line-height: 1;
	color: #777777;
}
p {
	margin: 0 0 10px;
}
label {
	display: inline-block;
	max-width: 100%;
	margin-bottom: 5px;
	font-weight: 700;
}

/* ---- Forms: Bootstrap 3 controls were 34px high with 6px 12px padding ---- */
.form-control,
.form-select {
	height: 34px;
	padding: 6px 12px;
	font-size: 14px;
	line-height: 1.428571429;
	color: #555555;
	border: 1px solid #cccccc;
	border-radius: 4px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}
textarea.form-control {
	height: auto;
}
.form-control:focus,
.form-select:focus {
	border-color: #66afe9;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6);
}
.form-group {
	margin-bottom: 15px;
}
.help-block {
	display: block;
	margin-top: 5px;
	margin-bottom: 10px;
	color: #737373;
}
.has-error .form-control {
	border-color: #a94442;
}
.has-error .control-label,
.has-error .help-block {
	color: #a94442;
}

/* ---- Buttons: restore the Bootstrap 3 sizes and the old "default" button look ---- */
.btn {
	padding: 6px 12px;
	font-size: 14px;
	line-height: 1.428571429;
	border-radius: 4px;
}
.btn-sm {
	padding: 5px 10px;
	font-size: 12px;
	line-height: 1.5;
	border-radius: 3px;
}
.btn-lg {
	padding: 10px 16px;
	font-size: 18px;
	line-height: 1.3333333;
	border-radius: 6px;
}
.btn-default {
	color: #333333;
	background-color: #ffffff;
	border: 1px solid #cccccc;
}
.btn-default:hover,
.btn-default:focus {
	color: #333333;
	background-color: #e6e6e6;
	border-color: #adadad;
}
.btn-block {
	display: block;
	width: 100%;
}

/* ---- Tables: Bootstrap 3 cell padding was 8px (condensed 5px) ---- */
.table > :not(caption) > * > * {
	padding: 8px;
}
.table-sm > :not(caption) > * > * {
	padding: 5px;
}
.table > thead > tr > th {
	vertical-align: bottom;
}

/* ---- Pagination, alerts, labels used by DataTables and the screens ---- */
.alert {
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
}
.label {
	display: inline;
	padding: .2em .6em .3em;
	font-size: 75%;
	font-weight: 700;
	line-height: 1;
	color: #ffffff;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: .25em;
}

/* ---- Navbar: Bootstrap 3 height 50px, brand padding, theme colour ----
   The colour below (#e2850a) was measured from the old dashboard's menu bar. */
.cusNav {
	background-color: #e2850a;
	min-height: 50px;
	margin-bottom: 20px;
	border: 0;
	border-radius: 0;
	padding-top: 0;
	padding-bottom: 0;
}
.cusNav .navbar-brand {
	padding: 10px 15px;
	height: auto;
}
.cusNav .navbar-nav .nav-link,
.cusNavCom .navbar-nav .nav-link {
	color: #ffffff;
	padding: 15px;
	font-size: 14px;
}
.cusNav .navbar-nav .nav-link:hover,
.cusNav .navbar-nav .nav-link:focus,
.cusNav .navbar-nav .nav-link.show,
.cusNavCom .navbar-nav .nav-link:hover,
.cusNavCom .navbar-nav .nav-link:focus,
.cusNavCom .navbar-nav .nav-link.show {
	color: #ffffff;
	background-color: rgba(0, 0, 0, .12);
}
.cusNav .dropdown-menu {
	margin-top: 0;
	border-radius: 0 0 4px 4px;
	font-size: 14px;
	min-width: 160px;
}
.cusNav .dropdown-item {
	padding: 3px 20px;
	color: #333333;
}
.cusNav .dropdown-item:hover,
.cusNav .dropdown-item:focus {
	color: #262626;
	background-color: #f5f5f5;
}

/* Open the top-level menus on hover for desktop widths, as the old header behaved. */
@media (min-width: 992px) {
	.cusNav .navbar-nav .dropdown:hover > .dropdown-menu,
  .cusNavCom .navbar-nav .dropdown:hover > .dropdown-menu {
		display: block;
	}
}

/* ---- Multi-level menu (custom "dropdown-submenu" used in the Transaction menu) ---- */
.dropdown-submenu {
	position: relative;
}
.dropdown-submenu > .dropdown-menu {
	top: 0;
	left: 100%;
	margin-top: -1px;
	display: none;
}
.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu:focus-within > .dropdown-menu {
	display: block;
}
.dropdown-submenu > a.dropdown-toggle::after {
	float: right;
	margin-top: .45em;
	border-top: .3em solid transparent;
	border-bottom: .3em solid transparent;
	border-left: .3em solid;
	border-right: 0;
}

/* ---- Page header block used on every screen ("entry-header" / "entry-title") ---- */
.entry-title small {
	font-size: 65%;
	font-weight: 400;
}

/* ---- DataTables 1.13 with Bootstrap 5 ---- */
div.dataTables_wrapper div.dataTables_length select {
	width: auto;
	display: inline-block;
}
div.dataTables_wrapper div.dataTables_filter input {
	width: auto;
	display: inline-block;
	margin-left: .5em;
}
table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td {
	padding: 8px 18px 8px 8px;
}

/* ---- Third-party widgets written for Bootstrap 3 (datepicker 1.3, chosen, select2) ---- */
.datepicker.dropdown-menu {
	padding: 4px;
}
.chosen-container {
	font-size: 14px;
}
.select2-container .select2-selection--single {
	height: 34px;
}
/* ---- Dashboard heading band: extra space above, below and inside ---- */
.entry-header {
	padding: 12px 15px;
	margin-top: 0;
	margin-bottom: 14px;
}
.entry-title {
	margin: 0;
	padding: 4px 0;
	line-height: 1.4;
}

/* ---- Glyphicons mapped to Font Awesome 4.7 ---- */
.glyphicon { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; position: relative; top: 1px; }
.glyphicon-edit:before { content: "\f044"; }
.glyphicon-pencil:before { content: "\f040"; }
.glyphicon-trash:before { content: "\f1f8"; }
.glyphicon-remove:before, .glyphicon-remove-sign:before, .glyphicon-remove-circle:before { content: "\f057"; }
.glyphicon-ok:before { content: "\f00c"; }
.glyphicon-ok-sign:before, .glyphicon-ok-circle:before { content: "\f058"; }
.glyphicon-search:before { content: "\f002"; }
.glyphicon-plus:before { content: "\f067"; }
.glyphicon-plus-sign:before { content: "\f055"; }
.glyphicon-minus:before { content: "\f068"; }
.glyphicon-minus-sign:before { content: "\f056"; }
.glyphicon-eye-open:before { content: "\f06e"; }
.glyphicon-refresh:before { content: "\f021"; }
.glyphicon-repeat:before { content: "\f01e"; }
.glyphicon-download:before, .glyphicon-download-alt:before { content: "\f019"; }
.glyphicon-upload:before { content: "\f093"; }
.glyphicon-print:before { content: "\f02f"; }
.glyphicon-file:before { content: "\f15b"; }
.glyphicon-floppy-disk:before, .glyphicon-floppy-saved:before, .glyphicon-save:before { content: "\f0c7"; }
.glyphicon-calendar:before { content: "\f073"; }
.glyphicon-time:before { content: "\f017"; }
.glyphicon-exclamation-sign:before { content: "\f06a"; }
.glyphicon-info-sign:before { content: "\f05a"; }
.glyphicon-question-sign:before { content: "\f059"; }
.glyphicon-warning-sign:before { content: "\f071"; }
.glyphicon-user:before { content: "\f007"; }
.glyphicon-lock:before { content: "\f023"; }
.glyphicon-list:before { content: "\f03a"; }
.glyphicon-th-list:before { content: "\f00b"; }
.glyphicon-chevron-left:before { content: "\f053"; }
.glyphicon-chevron-right:before { content: "\f054"; }
.glyphicon-chevron-up:before { content: "\f077"; }
.glyphicon-chevron-down:before { content: "\f078"; }
.glyphicon-arrow-left:before { content: "\f060"; }
.glyphicon-arrow-right:before { content: "\f061"; }
.glyphicon-home:before { content: "\f015"; }
.glyphicon-envelope:before { content: "\f0e0"; }
.glyphicon-cog:before { content: "\f013"; }
.glyphicon-link:before { content: "\f0c1"; }
.glyphicon-paperclip:before { content: "\f0c6"; }
.glyphicon-folder-open:before { content: "\f07c"; }
.glyphicon-export:before, .glyphicon-new-window:before { content: "\f08e"; }
.glyphicon-send:before { content: "\f1d8"; }
.glyphicon-zoom-in:before { content: "\f00e"; }
.glyphicon-filter:before { content: "\f0b0"; }
.glyphicon-asterisk:before { content: "\f069"; }
.glyphicon-star:before { content: "\f005"; }
.glyphicon-off:before { content: "\f011"; }
.glyphicon-log-out:before { content: "\f08b"; }
.glyphicon-log-in:before { content: "\f090"; }

/* ---- Bootstrap 3 helper classes readded that Bootstrap 5 removed ---- */
.pull-right { float: right !important; }
.pull-left { float: left !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.hidden { display: none !important; }
.center-block { display: block; margin-left: auto; margin-right: auto; }
.img-responsive { display: block; max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.btn-xs { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; }
.table-condensed > :not(caption) > * > * { padding: 5px; }
.label-default { background-color: #777777; }
.label-primary { background-color: #337ab7; }
.label-success { background-color: #5cb85c; }
.label-info { background-color: #5bc0de; }
.label-warning { background-color: #f0ad4e; }
.label-danger { background-color: #d9534f; }
.well { min-height: 20px; padding: 19px; margin-bottom: 20px; background-color: #f5f5f5; border: 1px solid #e3e3e3; border-radius: 4px; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05); }
.input-group-addon { display: flex; align-items: center; padding: 6px 12px; font-size: 14px; color: #555555; text-align: center; background-color: #eeeeee; border: 1px solid #cccccc; border-radius: 4px; }

/* ---- Bootstrap 3 pager (Previous / Next) ---- */
.pager { padding-left: 0; margin: 20px 0; text-align: center; list-style: none; }
.pager li { display: inline; }
.pager li > a, .pager li > span { display: inline-block; padding: 5px 14px; background-color: #ffffff; border: 1px solid #dddddd; border-radius: 15px; text-decoration: none; }
.pager li > a:hover, .pager li > a:focus { text-decoration: none; background-color: #eeeeee; }
.pager .next > a, .pager .next > span { float: right; }
.pager .previous > a, .pager .previous > span { float: left; }
.pager .disabled > a, .pager .disabled > a:hover, .pager .disabled > a:focus, .pager .disabled > span { color: #777777; cursor: not-allowed; background-color: #ffffff; }

/* ---- Bootstrap 3 numbered pagination (list markup without page-link) ---- */
.pagination > li > a:not(.page-link), .pagination > li > span:not(.page-link) { position: relative; float: left; padding: 6px 12px; margin-left: -1px; line-height: 1.428571429; color: #337ab7; text-decoration: none; background-color: #ffffff; border: 1px solid #dddddd; }
.pagination > .active > a:not(.page-link), .pagination > .active > span:not(.page-link) { z-index: 2; color: #ffffff; cursor: default; background-color: #337ab7; border-color: #337ab7; }
.pagination > .disabled > a:not(.page-link), .pagination > .disabled > span:not(.page-link) { color: #777777; cursor: not-allowed; background-color: #ffffff; border-color: #dddddd; }

/* keeping all steps on one line */ 
.statusbar .row { display: flex; flex-wrap: nowrap; }


/* Unified header background color across all site headers */
nav.navbar {
  background-color: #146487 !important;
  border-color: #146487 !important;
}

/* Direct fix: give every top-level nav link proper spacing, regardless of whether it has .nav-link */
.cusNav .navbar-nav > li > a,
.cusNavCom .navbar-nav > li > a {
  display: inline-block;
  padding: 15px;
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
}
.cusNav .navbar-nav > li > a:hover,
.cusNav .navbar-nav > li > a:focus,
.cusNavCom .navbar-nav > li > a:hover,
.cusNavCom .navbar-nav > li > a:focus {
  color: #ffffff;
  background-color: rgba(0, 0, 0, .12);
}