/* EVERYTHING BELOW IS NEEDED FOR MOBILE SITE */

@media only screen and (min-width: 600px) {
	/* hide toggle */
	.toggle {
		display: none;
		text-align: left;
	}
	.mobilemenu {
		display: none;
	}
}


/* Stack the layout on small devices/viewports. */

@media only screen and (max-width: 599px) {
	body {
		overflow-x: hidden;
	}
	.login {
		width: 90vw;
		margin: 5px;
	}
	.top-widget-bar-left-cell {
		vertical-align: top !important;
		max-width: 100vw;
	}
	#page-wrapper {
		display: grid;
		grid-template-areas: "logo" "content" "sidebar" "footer";
		grid-template-rows: 115px auto auto 70px;
		grid-template-columns: 1fr;
		width: 100vw;
		margin: 0;
		padding: 0;
		min-width: 0;
	}
	#logo img {
		max-width: calc(100vw - 50px);
	}
	
	#top-widget-bar,
	img {
		max-width: 100vw;
	}
	#top-widget-bar-container {
		grid-area: logo;
		width: auto;
	}
	.top-widget-bar-center-cell,
	.top-widget-bar-right-cell,
	#title,
	#site-navigator-container {
		display: none;
	}
	#logo-img {
		margin-left: 50px;
	}
	#sitelogo {
		max-width: 100vw;
	}
	#content-area-container {
		grid-area: content;
		width: 100vw !important;
		float: none;
		padding: 0;
	}
	#content-area {
		border-left: none;
		border-top: none;
		min-width: 0;
		padding-left: 0;
	}
	#content-area * {
		max-width: 100vw;
	}
	#left-widget-bar-container {
		float: none;
		width: 100%;
		padding: 0;
		background-image: none;
	}
	#other-links thead,
	#db-picker-table thead {
		width: auto;
		margin: 0 0 10px 0;
	}
	#other-links,
	#db-picker {
		margin: 10px 0 30px 0;
		padding: 2px 10px;
	}
	#other-links-ul,
	#db-picker-ul {
		width: 100%;
	}
	#db-picker-ul li span.selected-database,
	#other-links-ul li a,
	#other-links-ul a:visited,
	#other-links-ul a:active,
	#db-picker-ul li a,
	#db-picker-ul a:visited,
	#db-picker-ul a:active {
		font-size: 20px;
	}
	#left-content-wrapper {
		grid-area: sidebar;
		float: none;
		width: 100%;
		background: #efefef;
	}
	.index-button,
	#search-support {
		display: none !important;
	}
	div.advanced-search table,
	.search {
		width: 100% !important;
	}
	input#F-UNIQUE_ID.character-textentry {
		width: 90%;
	}
	#bottom-widget-bar-container {
		grid-area: footer;
		float: none;
	}
	#footer {
		max-width: 100vw;
	}
	#document-control-bar-top,
	#document-control-bar {
		width: 100%;
		height: auto;
	}
	.document-control-group {
		margin: 0 5%;
		width: 90%;
	}
	#content-wrapper {
		min-height: 0;
		min-width: 0;
		padding: 0;
		background: #fff;
		width: 100vw;
	}
	.toc {
		padding: 0 10px;
	}
	/* Nav Menu */
	.mobilemenu {
		display: block;
	}
	#mobilenav {
		list-style: none;
		margin: 0;
		padding: 2px;
	}
	#mobilenav li {
		list-style: none;
		margin: 0;
		padding: 0;
	}
	#other-links-ul li a,
	#mobilenav li a {
		color: #005DAB;
		font-weight: normal;
		display: block;
		margin: 10px 0;
		text-decoration: none !important;
		font-size: 20px;
	}
	.left-widget-bar table {
		width: 100%;
	}
	#left-content-wrapper {
		transition: transform .3s ease-in-out;
		top: 0;
		bottom: 0;
		min-height: 100vh;
		/* override Safari bug */
		position: fixed;
		/* or choose `absolute` depending on desired behavior*/
		width: 300px;
		left: -380px;
		background: #bdcde4;
		box-shadow: 5px 0 5px rgba(0, 0, 0, 0.5);
		z-index: 999;
		overflow: scroll;
		height: 100vh;
	}
	.left-header {
		font-size: 24px;
	}
	#other-links thead,
	#db-picker-table thead,
	#left-content-wrapper ul li,
	#sidebar ul li a {
		font-size: 20px;
	}
	#left-content-wrapper:target {
		transform: translateX(380px);
	}
	.close {
		text-align: right;
		display: block;
		text-decoration: none;
		font-size: 3em;
		position: relative;
	}
	.open {
		position: fixed;
		top: 0;
		left: 0;
		display: block;
		width: 40px;
		height: 40px;
		background: #fff;
		text-align: left;
		z-index: 999;
	}
	#wshic-container {
		width: auto;
	}
	#advancedsearch-link {}
	span.dynatree-node a {
		display: inline;
	}
	div.advanced-search {
		width: auto;
	}
	div.advanced-search table {
		width: 80%;
	}
	.search-form-fieldname {
		font-size: 10px;
		max-width: 170px;
		overflow: scroll;
	}
	.character-multiselection,
	.srch-sel,
	.text-input {
		width: 90%;
		font-size: 10px;
		padding: 4px;
	}
	#search-hints {}
	option.character-multiselection-option {
		font-size: 10px;
	}
	.results-col-1 {
		width: calc(10% - 7px) !important;
		;
	}
	.results-col-2 {
		width: calc(90% - 30px) !important;
		border-right: none;
		display: block !important;
	}
	.result,
	.results-container {
		background: none;
	}
	#page-navigation-bottom {
		width: 100% !important;
	}
	input#pageno_input,
	.results-col-3,
	.results-col-4,
	.results-col-5,
	.results-col-6,
	.results-col-7,
	.results-col-8,
	.results-col-9,
	.results-col-10,
	.results-col-11,
	.results-col-12,
	.results-col-13,
	.results-col-14,
	.results-col-15,
	.results-col-16,
	.results-col-17,
	.results-col-18,
	.results-col-19,
	.results-col-20 {
		display: none !important;
	}
	#document-fields-container {
		width: 92vw;
		top: 120px;
	}
	#document-control-bar {
		background: #fff;
	}
	li#page.document-control-group,
	li#doc.document-control-group {
		width: 100%;
	}
	#document-control-bar-top,
	#document-control-bar {
		width: 100%;
		height: auto;
	}
	.document-control-group {
		margin: 0 5%;
		width: 90%;
	}
	.results-group {
		background-color: transparent;
		box-shadow: none;
	}
	.document-page {
		width: 95vw;
		height: 100vh;
	}
	.toc a:link,
	.toc a:visited,
	.toc a:active {
		color: #333;
		font-weight: normal;
		font-size: 10pt !important;
		vertical-align: middle;
	}
	ul.fancytree-container {
		width: 90vw;
		overflow: scroll;
	}
	.hometable {
		width: 100%;
	}
	.homebox-top div,
	/* AFSCME */
	.homebox div {
		width: 100%;
		float: none;
	}
	.home-box {
		width: 100vw;
	}
	#database-table {
		width: 90vw;
	}
	.colRight>ul {
		margin-left: 0;
	}
}
