/*
 * Override Core styling
 */

.wrap h1 img,
.wrap h1 a {
	vertical-align: middle;
}

.wrap h1 img {
	margin-left: 1.5em;
}

#post-body.columns-2 #postbox-container-1 .hndle {
	cursor: inherit;
}

.itsec-module-settings-container ul {
	list-style: outside;
	padding-right: 1em;
}

.itsec-error-code {
	color: #AAA;
	display: none;
}
.itsec-show-error-codes .itsec-error-code {
	display: inline;
}

.itsec-write-files-enabled .itsec-write-files-enabled,
.itsec-write-files-disabled .itsec-write-files-disabled {
	display: block;
}
.itsec-write-files-disabled .itsec-write-files-enabled,
.itsec-write-files-enabled .itsec-write-files-disabled {
	display: none;
}

/* Grid Styling */

.itsec-modal-background {
	display: none;
}

.grid .itsec-module-settings-container {
	position: fixed;
	top: 52px;
	left: 20px;
	bottom: 20px;
	right: 20px;
	margin-right: 160px;
	background: #fff;
	box-shadow: 0 0 20px rgba(0,0,0,0.2);
	z-index: 510;
}
.grid .itsec-modal-navigation {
	display: block;
}
.grid .itsec-list-content-footer,
.grid #itsec-save {
	display: none;
}
.grid .itsec-module-settings-content-container {
	position: absolute;
	top: 40px;
	left: 0;
	bottom: 60px;
	right: 0;
	overflow: auto;
	padding: 25px 50px;
}
.grid .itsec-module-settings-content {
	width: 100%;
	max-width: 700px;
	margin: 0 auto;
}
.grid .itsec-module-settings-content .itsec-module-description p {
	font-size: 16px;
}
.grid .itsec-modal-header {
	display: block;
	font-size: 20px;
}
.grid textarea {
	width: 100%;
	min-height: 14em;
}

@media ( max-width: 960px ) {
	.grid .itsec-module-settings-container {
		margin-right: 36px;
	}
}
@media ( max-width: 782px ) {
	.grid .itsec-module-settings-container {
		margin-right: 0px;
		top: 0px;
		right: 0;
		left: 0;
		bottom: 0;
		z-index: 100000; /* to get above wp admin bar */
	}
	.grid .itsec-module-settings-content-container {
		padding: 15px 30px;
	}
}

/*
 * Grid Settings Modal
 */
body.itsec-modal-open {
	/* This is set to keep the body from scrolling when modal is open */
	overflow: hidden;
}
.itsec-modal-background {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: rgba(0,0,0,0.2);
	z-index: 500;
	cursor: pointer;
}
.itsec-modal-navigation {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 40px;
	border-bottom: 1px solid #ddd;
}
.itsec-modal-navigation button {
	width: 40px;
	height: 39px;
	float: left;
	background: #fff;
	border: none;
	outline: none;
	border-right: 1px solid #ddd;
	font-family: dashicons;
	font-size: 20px;
}
.itsec-modal-navigation button:hover,
.itsec-modal-navigation button:focus {
	background: #efefef;
	cursor: pointer;
}
.itsec-modal-navigation button.itsec-left::before {
	content: '\f341';
}
.itsec-modal-navigation button.itsec-right::before {
	content: '\f345';
}
.itsec-modal-navigation button.itsec-close-modal::before {
	content: '\f335';
}
.grid .itsec-modal-content-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: absolute;
	bottom: 0;
	right: 0;
	left: 0;
	border-top: 1px solid #ddd;
	padding: 15px;
	background: #efefef;
	box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}
.itsec-modal-content-footer .align-left{
	float: right;
}
.itsec-modal-content-footer .align-right{
	float: left;
}


/*
 * Modal Settings
 */
.itsec-settings-section {
	border-top: 1px solid #ddd;
	margin-top: 20px;
	padding-top: 20px;
}
.itsec-settings-section label {
	font-weight: bold;
}
.itsec-settings-section .itsec-setting-field {
	margin-bottom: 1.5em;
}
.itsec-settings-module-settings .form-table th {
	padding-right: 15px;
}
.itsec-settings-module-settings .itsec-highlighted-setting {
	background: #e5f5fa;
}
.itsec-settings-module-settings .form-table td select {
	margin: 1em 0;
}

/*
 * Main content area and module cards
 */

.itsec-module-cards-container {
	clear: both;
	box-sizing: border-box;
}
.itsec-module-cards {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.itsec-module-cards:after {
	content: '';
	width: 100%;
}

.itsec-module-settings-content pre {
	background: #f1f1f1;
	overflow:scroll;
	padding: 1em;
}

/*
 * Success Error Messages
 */
#itsec-settings-messages-container {
	position: fixed;
	padding: 2em;
	top: -100px;
	right: 0;
	left: 0;
	max-width: 300px;
	width: 100%;
	margin: auto;
	z-index: 500;
	-webkit-transition: all .3s ease-in-out;
	transition: all .3s ease-in-out;
	opacity: 0;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0px 0px 25px rgba( 0,0,0,0.4 );
}

#itsec-settings-messages-container.visible:not(.no-module) {
	top: 52px;
	opacity: 1;
}

#itsec-settings-messages-container.no-module {
	position: relative;
	padding: 0;
	top: inherit;
	left: inherit;
	opacity: 1;
	background: none;
	border-radius: 0;
	box-shadow:none;
	-webkit-transition: none;
	transition: none;
	margin: 1em 0;
	max-width: 100%;
}

#itsec-settings-messages-container.no-module div {
	background: #fff;
}

#itsec-settings-messages-container div:first-child {
	margin-top: 0;
}
#itsec-settings-messages-container div:last-child {
	margin-bottom: 0;
}

/**
 * Styling for the logs page
 */
.itsec-log-entries .dashicons {
	color: #555;
	font-size: 16px;
	padding: 2px 2px 0 0;
	visibility: hidden;
}
.itsec-log-entries td:hover .dashicons {
	visibility: visible;
}
#itsec-log-details-container {
	display: none;
}
#itsec-log-details-container.grid .itsec-module-settings-content {
	max-width: none;
}
#itsec-log-details-container.grid .itsec-module-settings-content pre {
	overflow: auto;
}
.itsec-log-entries .hidden {
	display: none !important;
}
.itsec-logs-color > tbody > .itsec-log-type-critical-issue td,
.itsec-logs-color > tbody > .itsec-log-type-critical-issue th,
.itsec-logs-color > tbody > .itsec-log-type-fatal td,
.itsec-logs-color > tbody > .itsec-log-type-fatal th {
	color: #000;
}
.itsec-logs-color > tbody > .itsec-log-type-critical-issue a,
.itsec-logs-color > tbody > .itsec-log-type-fatal a {
	color: #124B66;
}
.itsec-logs-color > tbody > .itsec-log-type-critical-issue,
.itsec-logs-color > tbody > .itsec-log-type-fatal {
	background-color: #FF7575;
}
.itsec-logs-color > tbody > :nth-child(2n+1).itsec-log-type-critical-issue,
.itsec-logs-color > tbody > :nth-child(2n+1).itsec-log-type-fatal {
	background-color: #FF4848;
}
.itsec-logs-color > tbody > .itsec-log-type-error {
	background-color: #FFDFDF;
}
.itsec-logs-color > tbody > :nth-child(2n+1).itsec-log-type-error {
	background-color: #FFCECE;
}
.itsec-logs-color > tbody > .itsec-log-type-warning {
	background-color: #FFFBDF;
}
.itsec-logs-color > tbody > :nth-child(2n+1).itsec-log-type-warning {
	background-color: #FFF9CE;
}
.itsec-log-entries .column-description {
	max-width: 30%;
	word-break: break-all;
}
.tablenav .actions {
	overflow: visible;
}
body.security_page_itsec-logs .itsec-module-settings-content-main .form-table td pre {
	margin: 0;
}
body.security_page_itsec-logs .itsec-module-settings-content-main .form-table th {
	padding: 10px 0 10px 10px;
	width: 150px;
}
body.security_page_itsec-logs .itsec-module-settings-content-main .form-table td {
	padding: 5px 10px;
}
body.security_page_itsec-logs .itsec-module-settings-content-main .form-table td .itsec-log-raw-details {
	display: none;
	margin-top: 1em;
}
body.security_page_itsec-logs #old-logs-migration-status img {
	vertical-align: middle;
}
body.security_page_itsec-logs #old-logs-migration-status p {
	line-height: 1.4em;
}
#itsec-system-info, #itsec-settings-editor {
	font-family: monospace;
	width: 100%;
	margin: 0;
	height: 300px;
	padding: 20px;
	border-radius: 0;
	resize: none;
	font-size: 12px;
	line-height: 20px;
	outline: 0;
}

#itsec-settings-editor:empty {
	display: none;
}

body.security_page_itsec-logs .itsec-module-settings-content-main .form-table .widefat th {
	padding: 8px 10px;
}

body.security_page_itsec-logs .itsec-module-settings-content-main .form-table .widefat td {
	padding: 15px 10px;
}

.itsec-settings-module-settings .form-table td {
	position: relative;
}
