/*
Theme Name: Policies, Regulations & Rules
Theme URI: https://policies.ncsu.edu
Description: Child theme for display of PRR custom post types
Author: OIT Design
Author URI: https://design.oit.ncsu.edu/
Template: hillsborough
Version: 0.1

GitHub Enterprise: https://github.ncsu.edu
GitHub Theme URI: https://github.ncsu.edu/oitdesign/prr-child-theme/
*/

main.page footer {
	background: #f2f2f2;
	padding: 1em;
}

main.page footer p {
	margin: 0;
}

/* Repealed Message Alert Styling */

.alert {
	padding: 0 !important;
	border-radius: 0 !important;
	border: solid 0.15em !important;
	background-color: #fff !important;
	color: #000 !important;
	display: flex;
	flex-direction: row;
	margin: 1em 0;
}

button.close {
	align-self: flex-end;
	margin: 0 0 auto auto;
	padding: 0.6em;
}

.alert-body {
	margin: auto 0 !important;
	padding: 1em !important;
	font-family: 'UniversRoman', arial, sans-serif;
}

.alert-icon {
	margin: 0;
	padding: 0.25em 0.4em 0.25em 0.25em;
	text-align: center;
	height: auto;
	float: left;
	display: flex;
}

.alert-icon .glyphicon {
	margin: auto;
	font-size: 2em;
}

.danger-icon:before {
	content: "!";
	font-family: "UniversRoman", arial, sans-serif;
	font-weight: bold;
	font-size: 4rem;
	color: #fff;
	background-color: #990000;
	border: solid 4px #fff;
	border-radius: 50%;
	-moz-border-radius: 50%;
	-wekkit-border-radius: 50%;
	width: 4.5rem;
	height: 4.5rem;
	display:block;
	padding-top: 0.25rem;
}

.alert-danger {
	color: #000;
	background-color: #fff;
	border-color: #990000 !important;
}

.alert-danger .alert-icon {
	color: #fff;
	background-color: #990000;
}

@media screen and (max-width: 768px) {
	.alert {
		display: flex;
		flex-direction: column;
	}
	
	.alert-icon {
		width: auto;
	}
	
	.alert-icon .glyphicon {
		font-size: 3em;
	}
}

iframe.archive {
	width: 100%; 
	height: 800px; 
}

/* Archive Sortable Tables */

span.th-body {
	cursor: pointer;
	display: block;
	width: 100%;
}

#e-date {
	min-width: 115px;
}

#e-type {
	min-width: 95px;
}

#e-summary {
	width: 50%;
}

table.sortable {
	border: none;
	margin-top: -0.45rem;
}

table.sortable > thead > tr > th {
	font-family: 'UniversRoman', arial, sans-serif;
	font-weight: bold;
	font-size: 0.9em;
}

table.sortable > thead > tr > th, 
table.sortable > tbody > tr > th, 
table.sortable > tfoot > tr > th, 
table.sortable > thead > tr > td, 
table.sortable > tbody > tr > td, 
table.sortable > tfoot > tr > td {
	border: none;
}

/* PRR Categories Widget */

.widget-area .prr_category_menu .widget_nav_menu ul li.current-cat > a, .widget-area .prr_category_menu .widget_nav_menu ul li.current-cat-ancestor > a {
	color: #fff;
	background-color: #cc0000;
}

.prr_category_menu .children {
	display: none;
}

.widget-area .prr_category_menu .widget_nav_menu ul li .children {
	margin: 0.75rem 0 2rem 2rem;
}

.widget-area .prr_category_menu .widget_nav_menu ul li .children li:before {
	padding-right: .3em;
	margin-left: -1.3em;
	font-family: 'ncsu-icons';
	font-size: 1.25rem;
	color: #666;
	content: "i";
	speak: none;
}

.widget-area .prr_category_menu .widget_nav_menu > ul > li > .children > li:before {
	color: #c00;
}

.widget-area .prr_category_menu .widget_nav_menu ul li .children li a {
	display: inline;
	background: none;
	padding: 0;
	margin: 0;
	font-family: 'UniversLight', arial, sans-serif;
	color: #cc0000;
	text-decoration: underline !important;
}

.widget-area .prr_category_menu .widget_nav_menu ul li .children li a:hover, .widget-area .prr_category_menu .widget_nav_menu ul li .children li a:active, .widget-area .prr_category_menu .widget_nav_menu ul li .children li a:focus {
	color: #990000;
	text-decoration: none !important;
}

.prr_category_menu .current-cat .children, .prr_category_menu .current-cat-ancestor .children {
	display: block;
}