/* main elements */

body,div,td {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #666;
}

body {
	/*background-color: #39667d;*/
	margin-top:10px;
	/*background-color: #c5d3d7;
	background-image:url(../images/background.png);
	background-position:center;
	background-repeat:repeat-X;
	text-align: center;*/
	background-color: #04202e;
}

#header {
	margin-bottom: 1em;
	background-image:url(../images/banner-graphic.png);
	background-position:left;
	background-repeat:no-repeat;
	width:1000px;
	height:55px;
}

#wrapper {
	width:1000px;
	min-width: 1000px;
	max-width: 1000px;
	margin-right: auto;
	margin-left: auto;
	padding-left: 20px;
	padding-right: 20px;
	
	padding-top:15px;
	padding-bottom:15px;
	border: 1px solid #BBBBBB;
	background-color: #efefef;

	/* fix max-width incompatibility in IE6 */
	width:expression(document.body.clientWidth > 800? "800px": "auto" );
	
	overflow:hidden;
	display:block;
	border-radius: 30px 0 30px 0;
}

/* header and footer elements */

#main {
	overflow:hidden;
	display:box;
	margin-top:36px;
	border-top:0px;
	
}

#menu {
	/*background: #c5d3d7;*/
	position:relative;
	float:left;  	
	left:0px;
	width:220px;
	margin-right:15px;
	
}

#menu ul{
	list-style: none;
	margin: 0;
	padding: 0;
}

#menu ul li{
	padding: 0px;
}


#menu a, #menu h2 {
	display: block;
	margin: 0;
	padding: 2px 6px;
	/*color:#FFFFFF;*/
}

#menu h2 {
	color: #39667d;
	/*background: #39667d;
	text-transform: uppercase;*/
	font-weight:bold;
	font-size: 12px;
	
}

#menu a {
	color: #39667d;
	background: #dedede;
	text-decoration: none;
	padding: 4px 22px;
	border-right: 1px solid #BBBBBB;
	border-bottom: 1px solid #BBBBBB;
	border-radius: 10px 0 10px 0;
}

#menu a:hover {
	/*color: #39667d;*/
	background: #dce7f5;
	background-image:url(../images/menu-arrow.png);
	background-position:left;
	background-repeat:no-repeat;
	/*margin-left: 2px;*/
}

#footer {
	background:#fff;
	border:none;
	border-top:1px solid #999999;
	margin-top:15px;
	padding:3px;
	padding-left:10px;
	
}

#footer .new {
	float:left;
}

#footer a:link {color: #39667d;}

.quicklinks {
	clear:both; 
	padding-bottom: 15px
}
.quicklinks span {
	float: right;
}

.dijitTitlePane {
	clear: both;
	margin-bottom: 15px;
	padding: 10px;
	border: 1px solid #BBBBBB;
	background: #FFFFFF;
	border-radius: 10px 0 10px 0;
}

.dijitTitlePane h2,
.dijitTitlePaneTitle {
	margin-top: 0;
	color: #39667d;
	font-size: 14px;
	font-weight: bold;
}

table.navigation {
	border: 0px;
}

label {
	width:140px;
	float:left;
	margin-left: 5px;
	margin-top: 0px;
}

input {
	height:20px;
}

input, textarea, select {
	border:1px solid #B3B3B3;
}

input.image {
	border: none;
	height: auto;
	vertical-align: middle;
}

submit {
	height:25px;
}

div {
	text-align: left;
	color: #39667d;	
}

div .box {
	display:block;
	margin-left:105px;
}

/* menu elements*/

a.menu, a.menu:link, a.menu:visited {display:block; width:150px; height:25px;} 
	
/* text styles */

h1,h2,h3 {
	font-family: Helvetica, sans-serif;
	color: #39667d;
}

h1 {
	font-size: 20px;
	line-height: 26px;
}

h2 {
	font-size: 18px;
	line-height: 20px;
}

h3 {
	font-size: 15px;
	line-height: 21px;
	color:#555;
}

h4 {
	font-size: 14px;
	line-height: 20px;
}

.errors {
	color: red;
	font-weight: bold;
	display: block;
	margin-left: 105px;
}

a {
	text-decoration: underline;
	font-size: 12px;
}

a img {
	border: 0 none;
	vertical-align: middle;
}

tr:nth-child(odd) {
	background-color: #FFFFFF;
}

tr:nth-child(even) {
	background-color: #EFEFEF;
}

a:link {
	color: #39667d;
}

a:hover {
	color: #456314;
}

a:active {
	color: #39667d;
}

a:visited {
	color: #39667d;
}

li {
	padding-top: 5px;
	text-align: left;
}

ul li {
	margin:0 0 0.25em 0;
	padding:0;
}
/* table elements */

table {
	background: #EEEEEE;
	margin: 2px 0 0 0;
	border: 1px solid #BBBBBB;
	border-collapse: collapse;
	width: 100%;	
}

table table {
	margin: -5px 0;
	border: 0px solid #e0e7d3;
	width: 100%;
}

table td,table th {
	padding: 2px;
	border: 1px solid #CCCCCC;
}

table td form {
	text-align:center;
	vertical-align: middle;
	margin: 0px;	
}

table th {
	font-size: 0.9em;
	text-align: left;
	font-weight: bold;
	color: #FFF;
	background: #999;
}

table thead {
	font-weight: bold;
	font-style: italic;
	background-color: #BBBBBB;
}

table a:link {color: #303030;}

.utilbox {width: 18px;}

caption {
	caption-side: top;
	width: auto;
	text-align: left;
	font-size: 12px;
	color: #848f73;
	padding-bottom: 4px;	
}

fieldset {
	background: #e0e7d3;
	padding: 8px;
	padding-bottom: 22px;
	border: none;
	width: 560px;
}

fieldset label {
	width: 70px;
	float: left;
	margin-top: 1.7em;
	margin-left: 20px;
}

fieldset textfield {
	margin: 3px;
	height: 20px;
	background: #e0e7d3;
}

fieldset textarea {
	margin: 3px;
	height: 165px;
	background: #e0e7d3;
}

fieldset input {
	margin: 3px;
	height: 20px;
	background: #e0e7d3;
}

fieldset table {
	width: 100%;
}

fieldset th {
	padding-left: 25px;
}

.table-buttons {
	background-color:#fff;
	border:none;
}

.table-buttons td {
	border:none;
}

.submit input {
	border: 1px solid #BBBBBB;
	color:#777777;
	padding:2px 7px;
	font-size:11px;
	text-transform:uppercase;
	font-weight:bold;
	height:24px;
}

.updated {
	background:#ecf1e5;
	font-size:11px;
	margin-left:2px;
	border:4px solid #ecf1e5;
}

.updated td {
	padding:2px 8px;
	font-size:11px;
	color:#888888;
}

.dijitArrowButton {
	height: 20px;
}

.dijitTextArea{
	min-height:5.5em !important;
	max-height:22em !important;
	overflow-y: auto !important;
	max-width: 175px;
}

.RichTextEditable{
	min-height:18em !important;
	max-height:18em !important;
}

.flag {
	height: 11px;
	width: 16px;
}
/* modern read-only detail pages */
.detail-page {
	background: #f7fafc;
	border: 1px solid #d7e1e7;
	border-radius: 14px 0 14px 0;
	padding: 0;
	overflow: hidden;
}

.detail-header {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: flex-start;
	padding: 18px 20px;
	background: linear-gradient(135deg, #ffffff 0%, #e8f1f6 100%);
	border-bottom: 1px solid #d7e1e7;
}

.detail-eyebrow {
	margin: 0 0 4px 0;
	color: #78909c;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.detail-title {
	margin: 0;
	font-size: 22px;
	line-height: 26px;
	color: #234d63;
}

.detail-subtitle {
	margin: 6px 0 0 0;
	color: #607d8b;
}

.detail-actions {
	text-align: right;
	white-space: nowrap;
}

.detail-action,
.detail-action:link,
.detail-action:visited,
.detail-actions button {
	display: inline-block;
	border: 1px solid #b8c7d0;
	border-radius: 12px 0 12px 0;
	background: #ffffff;
	color: #39667d;
	padding: 6px 10px;
	margin: 0 0 5px 4px;
	font-size: 12px;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	height: auto;
}

.detail-action.primary,
.detail-action.primary:link,
.detail-action.primary:visited {
	background: #39667d;
	border-color: #39667d;
	color: #ffffff;
}

.detail-actions button.danger {
	background: #fff5f5;
	border-color: #d7a7a7;
	color: #9b2c2c;
}

.detail-body {
	padding: 18px 20px 20px 20px;
}

.detail-summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 16px;
}

.detail-card {
	background: #ffffff;
	border: 1px solid #dde8ee;
	border-radius: 12px 0 12px 0;
	padding: 14px;
	box-shadow: 0 1px 2px rgba(4, 32, 46, .06);
}

.detail-card h3 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: #39667d;
}

.detail-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
}

.detail-field {
	border-top: 1px solid #eef3f6;
	padding-top: 8px;
}

.detail-label {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 3px 0;
	color: #78909c;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
}

.detail-value {
	display: block;
	color: #234d63;
	font-size: 13px;
	line-height: 18px;
	word-break: break-word;
}

.detail-value.muted {
	color: #90a4ae;
	font-style: italic;
}

.detail-value.prewrap {
	white-space: pre-wrap;
}

.badge {
	display: inline-block;
	border-radius: 999px;
	padding: 4px 9px;
	font-size: 11px;
	font-weight: bold;
	line-height: 14px;
	background: #edf2f7;
	color: #4a5568;
	text-transform: uppercase;
}

.badge-success { background: #e6f4ea; color: #276749; }
.badge-warning { background: #fff8e1; color: #8a5a00; }
.badge-danger { background: #fde8e8; color: #9b2c2c; }
.badge-info { background: #e6f0f5; color: #2f5f76; }

@media (max-width: 700px) {
	.detail-header { display: block; }
	.detail-actions { margin-top: 12px; text-align: left; white-space: normal; }
	.detail-summary { grid-template-columns: 1fr; }
	.detail-grid { grid-template-columns: 1fr; }
}

/* modern application shell and CRUD pages */
* {
	box-sizing: border-box;
}

html {
	background: #04202e;
}

body {
	margin: 0;
	padding: 18px;
	background: radial-gradient(circle at top left, #17475c 0%, #04202e 42%, #031722 100%);
	color: #234d63;
}

body, div, td, input, textarea, select, button {
	font-size: 13px;
}

#wrapper {
	width: min(1180px, calc(100vw - 28px));
	min-width: 0;
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, .18);
	background: #eef4f7;
	border-radius: 28px 0 28px 0;
	box-shadow: 0 22px 60px rgba(0, 0, 0, .35);
	overflow: hidden;
}

#header.app-header {
	width: 100%;
	height: auto;
	min-height: 78px;
	margin: 0 0 16px 0;
	padding: 16px 18px;
	background: linear-gradient(135deg, #ffffff 0%, #dfeef4 100%);
	border: 1px solid #d7e1e7;
	border-radius: 18px 0 18px 0;
}

.app-brand,
.app-brand:link,
.app-brand:visited,
.auth-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #234d63;
	text-decoration: none;
}

.app-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 14px 0 14px 0;
	background: #39667d;
	color: #ffffff;
	font-size: 22px;
	font-weight: bold;
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .16);
}

.app-brand strong,
.auth-brand strong {
	display: block;
	font-size: 20px;
	line-height: 22px;
	color: #234d63;
}

.app-brand small,
.auth-brand small {
	display: block;
	margin-top: 3px;
	color: #607d8b;
}

#main {
	margin-top: 0;
	overflow: visible;
}

#menu {
	width: 238px;
	margin-right: 18px;
	padding: 12px;
	background: #ffffff;
	border: 1px solid #d7e1e7;
	border-radius: 18px 0 18px 0;
	box-shadow: 0 1px 2px rgba(4, 32, 46, .06);
}

#menu h2 {
	margin: 12px 0 6px 0;
	padding: 0 2px;
	color: #78909c;
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

#menu > ul > li:first-child h2 {
	margin-top: 0;
}

#menu a,
#menu a:link,
#menu a:visited {
	margin: 4px 0;
	padding: 8px 10px;
	border: 1px solid #e2ebf0;
	border-radius: 12px 0 12px 0;
	background: #f7fafc;
	color: #39667d;
	font-weight: bold;
	text-decoration: none;
}

#menu a:hover,
#menu a:focus {
	background: #e6f0f5;
	border-color: #b8c7d0;
	color: #234d63;
	background-image: none;
}

.dijitTitlePane {
	padding: 18px 20px;
	border: 1px solid #d7e1e7;
	background: #ffffff;
	border-radius: 18px 0 18px 0;
	box-shadow: 0 1px 2px rgba(4, 32, 46, .06);
}

.dijitTitlePane h2,
.dijitTitlePaneTitle {
	margin-bottom: 14px;
	font-size: 22px;
	line-height: 26px;
	color: #234d63;
}

.dijitTitlePane h3 {
	color: #607d8b;
	font-weight: normal;
}

form div,
.form-row {
	margin-bottom: 12px;
}

label,
fieldset label {
	display: block;
	float: none;
	width: auto;
	margin: 0 0 5px 0;
	color: #607d8b;
	font-size: 12px;
	font-weight: bold;
}

input,
textarea,
select,
fieldset input,
fieldset textarea {
	width: min(100%, 360px);
	height: auto;
	min-height: 34px;
	margin: 0;
	padding: 7px 9px;
	border: 1px solid #b8c7d0;
	border-radius: 10px 0 10px 0;
	background: #ffffff;
	color: #234d63;
}

input[type="checkbox"],
input[type="radio"],
input[type="hidden"] {
	width: auto;
	min-height: 0;
}

textarea {
	min-height: 100px;
}

select {
	max-width: 100%;
}

fieldset {
	width: auto;
	max-width: 820px;
	padding: 14px;
	background: #f7fafc;
	border: 1px solid #d7e1e7;
	border-radius: 14px 0 14px 0;
}

.submit,
.form-actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 14px;
}

.submit input,
.form-actions input,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
	width: auto;
	min-height: 34px;
	border: 1px solid #b8c7d0;
	border-radius: 12px 0 12px 0;
	background: #ffffff;
	color: #39667d;
	padding: 7px 12px;
	font-size: 12px;
	font-weight: bold;
	text-transform: none;
	cursor: pointer;
}

.submit input[type="submit"],
.button-primary,
input[type="submit"] {
	background: #39667d;
	border-color: #39667d;
	color: #ffffff;
}

.button-secondary,
input[type="reset"] {
	background: #ffffff;
	color: #39667d;
}

.errors {
	margin: 0 0 14px 0;
	padding: 10px 12px;
	border: 1px solid #d7a7a7;
	border-radius: 12px 0 12px 0;
	background: #fff5f5;
	color: #9b2c2c;
}

.quicklinks {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	clear: both;
	padding-bottom: 12px;
}

.quicklinks span {
	float: none;
}

table {
	border: 1px solid #d7e1e7;
	background: #ffffff;
	border-radius: 14px 0 14px 0;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

table td,
table th {
	padding: 8px 10px;
	border: none;
	border-bottom: 1px solid #e7eff3;
	vertical-align: top;
}

table th {
	background: #39667d;
	color: #ffffff;
	font-style: normal;
}

table thead {
	background: #39667d;
}

tr:nth-child(odd),
tr:nth-child(even) {
	background-color: #ffffff;
}

tbody tr:nth-child(even) {
	background-color: #f7fafc;
}

tbody tr:hover {
	background-color: #eaf3f7;
}

.table-buttons,
.table-buttons td {
	background: transparent;
	border: none;
}

#footer.app-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 18px;
	padding: 12px 14px;
	border: 1px solid #d7e1e7;
	border-radius: 14px 0 14px 0;
	background: #ffffff;
	color: #607d8b;
}

#footer a,
#footer a:link,
#footer a:visited,
.logout-form button {
	color: #39667d;
	font-weight: bold;
	text-decoration: none;
}

.logout-form {
	display: inline;
	margin: 0;
}

.logout-form button {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
}

.home-hero {
	margin-bottom: 16px;
	padding: 22px 24px;
	border: 1px solid #d7e1e7;
	border-radius: 18px 0 18px 0;
	background: linear-gradient(135deg, #ffffff 0%, #e8f1f6 100%);
}

.home-hero h1 {
	margin: 0;
	font-size: 28px;
	line-height: 34px;
	color: #234d63;
}

.home-hero p:last-child {
	max-width: 680px;
	margin-bottom: 0;
	color: #607d8b;
}

.home-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.home-card p {
	min-height: 38px;
	color: #607d8b;
}

.auth-page {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 24px;
}

.auth-shell {
	width: min(430px, 100%);
}

.auth-card {
	padding: 26px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 24px 0 24px 0;
	background: #ffffff;
	box-shadow: 0 22px 60px rgba(0, 0, 0, .35);
}

.auth-brand {
	margin-bottom: 22px;
}

.auth-card h1 {
	margin: 0 0 8px 0;
	font-size: 28px;
	line-height: 34px;
	color: #234d63;
}

.auth-card p {
	color: #607d8b;
}

.auth-form input[type="text"],
.auth-form input[type="password"] {
	width: 100%;
}

@media (max-width: 820px) {
	body {
		padding: 10px;
	}

	#wrapper {
		width: 100%;
		padding: 12px;
		border-radius: 20px 0 20px 0;
	}

	#header.app-header {
		min-height: 0;
	}

	#menu {
		float: none;
		width: 100%;
		margin: 0 0 14px 0;
	}

	#menu > ul {
		display: grid;
		grid-template-columns: 1fr;
		gap: 8px;
	}

	#main {
		width: 100%;
	}

	.home-grid {
		grid-template-columns: 1fr;
	}

	table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	#footer.app-footer {
		align-items: flex-start;
		flex-direction: column;
	}
}

#main {
	display: block;
}

/* keep content panels beside the left menu on desktop */
.dijitTitlePane {
	clear: none;
}

@media (min-width: 821px) {
	#main {
		overflow: hidden;
	}
}
