/**
 * STDPAGEHEADER::CORE CSS FILES FOR ALL PROJECTS
 *
 * NOTICE:
 *    This file is COPYRIGHT by PROFESSIONAL EDUCATION SERVICES GROUP, LLC. All
 *    rights reserved. Contents of this file represent proprietary information and
 *    trade secrets. Only authorized individuals are permitted to view and/or modify
 *    the contents of this file.
 *
 * AUTHOR:
 *    David B. O'Donnell <dodonnell@pesgce.com>
 *
 * ADDITIONAL NOTICE:
 *    This file may include or reference certain third-party open source or licensed
 *    proprietary works, libraries, or source files, including but not limited to the
 *    following:
 *
 *    * FONT AWESOME (fontawesome.io)       * KALENDAE (github.com/ChiperSoft/Kalendae)
 *    * BOOTSTRAP (getbootstrap.com)        * MPDF (mpdf.github.io)
 *    * JQUERY (jquery.com)                 * PLUPLOAD (www.plupload.com)
 *    * JQUERYUI (jqueryui.com)             * NORMALIZR (necolas.github.io/normalize.css/)
 *    * TINYMCE (tinymce.com)               * ROME (bevacqua.github.io/rome/)
 *    * PHPDOCX (phpdocx.com)               * PHPEXCEL (github.com/PHPOffice/PHPExcel)
 *
 *    Not all included or referenced works are the latest versions available from the
 *    vendor.
 *
 */

/* main.css - top

	Created:  2011-07-25 - dbo
	Updated:  2012-10-29 - dbo - integrate HTML5 Boilerplate 4.01 changes; split much of this file into two new ones,
								  main.css and normalize.css
				 2012-12-31 - dbo - include Déjà Vu Condensed @font-face (generated by www.fontsquirrel.com) for users of
								  pre-Unicode Windows
				 2015-07-27 - DBO - disabling all MS filters in the hope that it will fix IE 11 once and for all
				 2016-03-02 - DBO - This CSS file replaces the old top.css and is optimized (I hope) for Bootstrap 4
				 2016-08-04 - DBO - Adding font stack in from alpha 3. Other changes in this version break other things. Sigh.
				 2016-09-28 - DBO - Adding font stack in from alpha 4.
				 2018-07-25 - DBO - Attempting to force some order into colors, names, and WCAG accessibility.
				 2019-07-25 - DBO - Checking out a nicer <kbd> definition from PHPStorm

   PURPOSE:
   Establish fundamental CSS design elements and structure for CMS

   FILE SEQUENCE: 1
*/

/* =============================================================================
   Local (my) styles and changes from here on in...
   ========================================================================== */

/*Enable border-box simplified sizing model*/

html {
	font-size: 1rem;
	-ms-overflow-style: scrollbar;
	-webkit-tap-highlight-color: transparent;
}

body {
	background-color:#fff;
}

button, input, optgroup, select, textarea {
	font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
}

[tabindex="-1"]:focus {
	outline:none !important;
}

* {
	-moz-box-sizing:border-box;
	box-sizing:border-box;
}

* {
	filter:none !important;
}

@font-face {
	font-family:'dejavu_sans_condensed';
	src:local('DejaVu Sans Condensed');
	src:url('/ui/fonts/dejavusanscondensed-webfont.eot');
	src:url('/ui/fonts/dejavusanscondensed-webfont.eot?#iefix') format('embedded-opentype'),
	url('/ui/fonts/dejavusanscondensed-webfont.woff') format('woff'),
	url('/ui/fonts/dejavusanscondensed-webfont.ttf') format('truetype');
	font-weight:normal;
	font-style:normal;
}

tr {
	height:2rem;
	-webkit-transition:all 0.2s ease-in-out;
	-moz-transition:all 0.2s ease-in-out;
	-o-transition:all 0.2s ease-in-out;
	transition:all 0.2s ease-in-out;
}

table {
	background-color:#fff;
}

table.shade_rows tr:hover {
	box-shadow:inset 0 0 0.4rem rgba(83, 117, 156, 0.6) !important;
}

td, th {
	vertical-align:middle;
	padding:0.25rem 0.35rem 0.25rem 0.35rem;
}

tr.table_footer td {
	padding:2px 0;
}

td.action_palette {
	padding:0 6px;
}

td.content_td {
	padding:6px;
}

html, body {
	min-width:900px;
}

/* FLEXBOX for footer floating to bottom of page when content < viewport height */
body {
	display:flex;
	min-height:100vh;
	flex-direction:column;
}

#main_area, #main-area {
	display:flex;
	flex-direction:column;
	flex:1 0 auto;
}

#footer {
/*	align-self:flex-end;
	width:100%;*/
	flex-shrink:0;
	display:flex;
	justify-content:space-between;
}

body, p, li, a, input[type=text], input[type=password], input[type=email], input[type=submit], label, select, textarea {
	text-rendering:optimizeLegibility;
	hyphens:auto;
	-webkit-hyphens:auto;
	-ms-hyphens:auto;
}

.form-inline label {
	justify-content:flex-end;
}

button + button {
	margin-left:2rem;
}

.no-follow {
	margin-left:0 !important;
}

.small-left-margin {
	margin-left:0.5em;
}

tt, .tt, .sm-tt, .lg-tt, .tt-sm, .tt-lg {
	font:0.9em Hack, Menlo, Consolas, Courier, monospace !important;
	text-rendering:optimizeSpeed;
}

.sm-tt, .tt-sm {
	font-size:0.75em !important;
}

.lg-tt, .tt-lg {
	font-size:1.15em !important;
}

p {
	margin-bottom:1em;
	margin-top:0;
}

h1 {
	font-size:150%;
	line-height:110%;
	margin:0 0 0.5rem 0;
	padding:0;
}

h2 {
	font-size:125%;
	margin:0 0 0.2rem 0;
	padding:0;
}

h3 {
	font-size:110%;
	margin:0;
	padding:0;
}

ul, ol {
	margin:0 0 0.4rem 0;
}

a.image, a.image:hover, a.image img {
	border:0;
	margin:inherit;
	padding:inherit;
	text-decoration:none;
	background-color:transparent;
}

/* Moved a.none to core_ui so it takes precedence over site.css */

a.normaltext {
	color:#222 !important;
}

a.white, a:hover.white, a:visited.white,
a.td_white, a:hover.td_white, a:visited.td_white {
	text-decoration:none;
	color:#fff;
	background-color:transparent;
	border:0;
	margin:0;
	padding:0;
}

th a:visited, a.td_white, a:hover.td_white, a:visited.td_white {
	color:inherit;
}

#head-content {
	max-width:960px;
	margin:0 auto;
}

#navbar, #adminbar, #bottombar, #footNote, #previewbar, #auxbar {
	padding:0.125rem 0.875rem;
	min-height:2.5rem;
	max-width:100%;
	display:flex;
	align-items:center;
}

#navbar p, #adminbar form, #adminbar p, #bottombar p, #footNote p, #previewbar p, #auxbar p {
	/*line-height:30px;*/
	max-width:960px;
	width:960px;
	margin:0 auto;
	justify-content:flex-start;
}

#navbar p .text {
	color:#fff;
	mix-blend-mode:luminosity;
	filter:invert(100%) !important;
}

#auxbar {
	background-color:antiquewhite;
	padding:0.2rem 0;
}

#footNote p {
	line-height:1rem;
}

#bottombar {
	height:2.5rem !important;
}

#content {
	min-height:400px;
	padding:0.8rem 0;
	max-width:960px;
	margin:0 auto;
	flex:1 0 auto;
}

/* Audit-bar is used for a small informational section to display activity or session audit fields */
.audit-bar {
	padding:0.3rem 0.25rem 0.3rem 0.5rem;
	background-color:#ebebeb;
	color:#595959;
	border-radius:0.4rem;
}

.copyblock {
	text-align:right;
	padding:0 0.75rem;
	font-size:90%;
	line-height:1.1rem !important;
	flex-wrap:wrap;
	flex-direction:column;
	justify-content:center;
}

table.mceLayout {
	margin-bottom:1ex !important;
}

table.mceLayout tr {
	height:auto;
}

/*a, .fake_a, .fake-a {
	-webkit-transition:all 0.15s ease-in-out;
	-moz-transition:all 0.15s ease-in-out;
	-o-transition:all 0.15s ease-in-out;
	transition:all 0.15s ease-in-out;
	cursor:pointer;
}*/

/* Compound fields for BS4 */
.left-field {
	border-top-right-radius:0;
	border-top-left-radius:0.25rem !important;
	border-bottom-right-radius:0;
	border-bottom-left-radius:0.25rem !important;
}

.right-field {
	border-top-left-radius:0;
	border-top-right-radius:0.25rem !important;
	border-bottom-left-radius:0;
	border-bottom-right-radius:0.25rem !important;
	border-left:none;
}

.input-group .middle-field, .no-radii {
	border-radius:0 !important;
}

.middle-field {
	border-top-right-radius:0;
	border-bottom-right-radius:0;
	border-top-left-radius:0;
	border-bottom-left-radius:0;
	border-left:none;
}

.no-left-radii {
	border-top-left-radius:0 !important;
	border-bottom-left-radius:0 !important;
}

.no-right-radii {
	border-top-right-radius:0 !important;
	border-bottom-right-radius:0 !important;
}

/* Setting buttons emulate radio groups to toggle settings */
.setting-container, .characteristic-container, .option-container, .setting-container-inline {
	padding:0.5rem 0 0.5rem 0;
	margin:0;
	min-height:3rem;
	width:99%;
	break-inside:avoid;
}

.setting-container button:hover span {
	color:#000 !important;
}

.setting-container-inline {
	width:auto;
	min-height:1rem;
	display:inline-block;
}

.option-container {
	border-width:3px;
	border-style:solid;
	border-radius:0.4rem;
	background-color:transparent;
	text-align:left;
	padding:0.4rem;
	margin-bottom:1rem;
	page-break-inside:avoid;
	break-inside:avoid;
	-webkit-column-break-inside:avoid;
	-moz-column-break-inside:avoid;
}

.option-container-button {
	border:none !important;
	background-color:transparent !important;
	display:flex;
	align-items:center;
	justify-content:flex-start;
	align-content:flex-start;
	text-align:left;
	cursor:pointer !important;
	width:100%;
	padding:0 !important;
}

.setting-button, .characteristic-button, .inline-setting-button {
	width:100%;
	border-width:0.125rem;
	border-style:solid;
	border-radius:0.375rem;
	background-color:transparent;
	text-align:left;
	padding:0.3rem 0.5rem;
	cursor:pointer !important;
}

.inline-setting-button {
	border-width:0;
	width:auto;
}

.characteristic-button {
	border-width:1px;
}

.setting-set, .characteristic-set {
	border-color:#07a60c;
}

.characteristic-set:hover {
	background-color:rgba(135, 200, 134, 0.425);
}

.setting-unset, .characteristic-unset {
	border-color:#efefef;
}

.characteristic-unset:hover {
	background-color:rgba(0, 0, 0, 0.05);
}

.setting-checkbox {
	width:1.5rem;
}

.setting-container p.setting-text {
	margin-left:2rem;
}

/* Supplemental form fields */
.form-label, .span-label {
	width:11rem;
	text-align:right !important;
	margin-right:0.5rem;
	hyphens:none;
	-webkit-hyphens:none;
}

.span-label {
	display:inline-block;
	padding-top:0;
	vertical-align:baseline;
}

.label-offset {
	margin-left:11.5rem;
}

.label-offset-sm {
	margin-left:6rem;
}

/* "Inline" button style for inline buttons (no border, transparent BG, no hover font effect) */
.btn-inline {
	background-color:transparent;
}

.btn-inline:hover {
	color:inherit;
}

/* Based on CE Depot System hub.php selector-button */
.btn-unadorned, .btn-unadorned-inline {
	border:none;
	background-color:transparent;
	text-align:left;
	padding:0.5rem;
	margin:0;
	width:100%;
	cursor:pointer;
}

.setting-button .btn-unadorned {
	display:flex;
}

.btn-unadorned-inline {
	width:auto;
}

/* inline action buttons */
td.action-buttons {
	height:100%;
	min-height:100%;
	padding:0 !important;
	vertical-align:top;
	border-left:1px solid rgba(0, 0, 0, 0.1);
	border-collapse:collapse;
}

.action-container {
	top:0;
	bottom:0;
	height:100%;
	display:flex;
	flex-flow:column nowrap;
	justify-content:space-around;
	align-items:stretch;
	align-content:stretch;
}

.action-container-across {
	flex-flow:row wrap;
}

.btn-action {
	margin:0 !important;
	background-color:transparent;
	flex:1 1 auto;
	font-size:85%;
	text-transform:uppercase;
	letter-spacing:0.025em; /* Butterick */
	border-left:1px solid rgba(0, 0, 0, 0.1);
	border-right:none;
	border-bottom:1px solid rgba(0, 0, 0, 0.1);
	border-top:none;
	min-height:2.5625rem;
}

.btn-action:hover {
	cursor:pointer;
	color:#fff;
	font-weight:bolder;
	background-color:rgba(0, 0, 0, 0.4);
}

.btn-action:disabled, .btn-action:disabled:hover {
	cursor:not-allowed !important;
	background-color:rgba(0, 0, 0, 0.1) !important;
	color:rgba(0, 0, 0, 0.3) !important;
}

/* draw_button_array() styles */
.button-array-container {
	display:flex;
	flex-flow:row wrap;
	align-items:stretch;
	justify-content:flex-start;
	width:100%;
	margin:auto;
	border:1px solid #ccc;
	border-left:none;
	border-bottom:none;
	box-shadow:0 0 0.375rem rgba(0, 0, 0, 0.06);
	list-style:none;
	padding:0;
}

.button-array-container:hover {
	box-shadow:0 0 0.375rem rgba(0, 0, 0, 0.2);
}

.button-array-break-2 {
	flex:1 1 50%;
}

.button-array-break-3 {
	flex:1 1 33.33%;
}

.button-array-break-4 {
	flex:1 1 25%;
}

.button-array-break-5 {
	flex:1 1 20%;
}

.button-array-break-6 {
	flex:1 1 16.66%;
}

.button-array-break-8 {
	flex:1 1 12.5%;
}

.button-array-break-10 {
	flex:1 1 10%;
}

.button-array-element {
	border:1px solid #ccc;
	border-top:none;
	border-right:none;
	display:flex;
	hyphens:none;
	-ms-hyphens:none;
	-webkit-hyphens:none;
}

.button-array-button:hover {
	background-color:#287abd;
	color:#fff;
}

.button-array-button {
	text-transform:uppercase;
	letter-spacing:0.025em; /* Butterick */
	font-size:90%;
	background-color:white;
	padding:0.75rem 1.5rem;
	border:none;
	cursor:pointer;
	width:100%;
	height:100%;
	display:flex;
	align-items:center;
	justify-content:center;
	hyphens:none;
}

.button-array-button-no-padding {
	padding:0 !important;
}

.button-array-button-inactive, .button-array-button:disabled {
	color:#666;
	background-color:#eee;
}

.button-array-button:disabled {
	cursor:not-allowed !important;
	color:#dadada;
}

/* Button array colors are in alerts.css */

/* 2019-07-25 DBO This definition is shamelessly stolen from PHPStorm */
kbd {
	font-family:Menlo, Monaco, Consolas, Courier New, monospace;
	line-height:inherit;
	position:relative;
	-webkit-box-sizing:border-box;
	box-sizing:border-box;
	margin:0;
	padding:0.125rem 0.375rem 0.125rem;
	white-space:nowrap;
	border-radius:0.1875rem;
	border:0.0625rem solid #cccbcb;
	color:#161616;
	background-color:#fff;
	-webkit-box-shadow:0 0.125rem 0 -0.0625rem #fff, 0 0.125rem 0 #cccbcb;
	box-shadow:0 0.125rem 0 -0.0625rem #fff, 0 0.125rem 0 #cccbcb
}

/* 2019-11-07 DBO Trying to make IDs look a little more obvious without being overly-obvious */
.id-pill {
	display:inline-flex;
	align-items:center;
	border:1px solid rgba(0, 0, 0, 0.3);
	color:#6c757d !important;
	background-color:#fff;
	border-radius:0.3em;
	font-size:80%;
	padding-right:0.3em;
	height:1.4em;
	overflow-y:hidden;
}

.id-pill::before {
	align-self:center;
	content:"ID";
	background-color:rgba(0, 0, 0, 0.3);
	color:#fff;
	padding:0.2rem 0.2rem;
	margin-right:0.3em;
}

.id-pill:hover {
	border:1px solid transparent;
	background-color:transparent !important;
	color:#000 !important;
}

.id-pill:hover::before {
	background-color:transparent !important;
	color:#000 !important;
}