/*
*	CSS file for Smoke Detectors plugin
*/

/*
*	Dashboard
*/

.sdi-dashboard-control-wrapper {
	margin-right: 1.5em; 
	padding: 10px 12px 0px; 
	border: 1px solid #dddddd;
	border-radius: 7px; 
	background-color: #fdfffa;
}

.sdi-dashboard-control-wrapper.last {
	margin-right: 0px;
}

.sdi-dashboard-control-wrapper input {
	height: 2em;
	font-size: 1.1em;
	width: 13em;
	padding: 3px 5px;
	border: 1px solid #aaaaaa;
	border-radius: 7px;
}

/*
*	For the CSV upload page
*/

.csv_form_wrapper {
	margin: 20px 20px 20px 0px;	
}

.csv_form_wrapper .header,
.csv_form_wrapper .row {
	display: flex;
}

.csv_form_wrapper .cell {
	width: 12.5em;
	overflow: hidden;
	flex-basis: 14em;
	flex-shrink: 0;
	padding: 6px 8px;
}

.csv_form_wrapper .header .cell {
	text-align: center;
	background-color: #01953A;
	color: white;
}

.csv_form_wrapper .row .cell {
	border-bottom: 1px solid #d6d6d6;
}

/*
*	Other stuff
*/

.sdi-wrapper {
	width: 100%;
}

.sdi-menu-row {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	border-bottom: 1px solid #aaa;
	margin-bottom: 35px;
}

.sdi-menu-row .cell {
	font-size: 1.15em;
	min-width: 20%;
	font-weight: 600;
	color: black;
	padding: 7px 0px;
}

.sdi-menu-row .cell a,
.sdi-menu-row .cell .nav-page,
.sdi-icon {
	color: #205020;
}

.sdi-menu-row .cell a:hover,
.sdi-menu-row .cell .nav-page:hover,
.sdi-icon:hover {
	color: #777;
	cursor: pointer;
/*	border-bottom: 1px solid #777; */
}

.sdi-menu-row .cell .current {
	color: rgb(239, 168, 27);
/*	border-bottom: 3px solid rgb(239, 168, 27); */
}

.sdi-detector-wrap {
	font-size: 1.1em;
	border: 1px solid rgba( 239, 168, 27, 1 );
	background-color: rgba(255, 240, 210, 1);
	padding: 5px 10px;
	border-radius: 5px; 
	margin-bottom: 15px;
}

.sdi-detector-wrap .header {
	display: flex;
	cursor: pointer;
}

.sdi-detector-wrap .location {
	flex-grow: 1;
	font-weight: 600;
}

.sdi-detector-wrap .icon .warn,
.warn {
	color: rgb(239, 168, 27);
}

.sdi-detector-wrap .icon .good,
.good {
	color: #01953A;
}

.sdi-detector-wrap .icon .maybe,
.maybe {
	color: rgb( 0, 168, 240);
}

.sdi-myinspectprops .sdi-table-row:has( div.bad ) {
	border: 2px solid rgb(239, 62, 0);
}

.sdi-myinspectprops .sdi-table-row:has( div.warn ) {
	border: 2px solid rgb(239, 168, 27);
}

.sdi-status {
	color: #777777;
	border: 1.5px solid #777777;
	border-radius: 6px;
	padding: 2px 0.5em;
	text-align: center;
	font-size: 0.95em;
	line-height: 1.1em;
}

.sdi-status.warn {
	color: rgb(239, 168, 27);
	border: 1.5px solid rgb(239, 168, 27);
	background-color: rgba(239, 168, 27, 0.15);
	font-weight: 600;
}

.sdi-status.error,
.sdi-status.bad {
	color: rgb(239, 62, 0);
	border: 1.5px solid rgb(239, 62, 0);
	background-color: rgba( 239, 62, 0, 0.15 );
	font-weight: 600;
}

.sdi-status.success {
	color: rgb(0, 190, 30);
	border: 1.5px solid rgb( 0, 190, 30 );
	font-weight: 600;
}

.sdi-status.info {
	color: rgb( 0, 87, 190);
	border: 1.5px solid rgb( 0, 87, 190);
}

.sdi-status.info.important {
	font-weight: 600;
}

.detector-detail-wrapper {
	display: none;	
}

.fabutton {
	background: none;
	padding: 0px;
	border: none;
	cursor: pointer;
	font-size: 1.2em;
	padding: 0px 1em;
}

.sdi-icon {
	font-size: 1.2em;
	padding: 0px 1em;
}

.sdi-table-row {
	display: flex;	
	flex-wrap: wrap;
	padding: 8px;
	border-radius: 5px; 
	border: 1px solid rgba( 239, 168, 27, 0.5 );
//	background-color: rgba( 0, 149, 58, 0.05 );
	background-color: rgba( 239, 168, 27, 0.1 );
	margin: 5px 0px;
	font-weight: 500;
}

.sdi-table-cell.head {
	background-color: #306040;
	color: #e0efe0;
}

.sdi-table-cell.half {
	width: 50%;
	max-width: 50%;
	overflow: hidden;
	padding-right: 1.5em;
}

.sdi-table-cell.third {
	width: 33%;
	max-width: 33%;
	overflow: hidden;
	padding-right: 1.5em;
}

.sdi-table-cell.quarter {
	width: 25%;
	max-width: 25%;
	overflow: hidden;
	padding-right: 1em;
}

.sdi-table-cell.fifth {
	width: 20%;
	max-width: 20%;
	overflow: hidden;
	padding-right: 1em;
}

.sdi-table-cell.sixth {
	width: 16%;
	max-width: 16%;
	overflow: hidden;
	padding-right: 1em;
}

.sdi-table-cell.med {
	width: 20%;
	max-width: 20%;
	overflow: hidden;
}

.sdi-photo-button {
	padding: 7px 15px;
	background-color: #f8f8f8;
	border: 1px solid #909090;
	border-radius: 8px;
	min-width: 250px;
	text-align: center;
	cursor: pointer;
}
.sdi-break {
  flex-basis: 100%;
  height: 0;
}

.sdi-accordian {
	transition: all 1.2s ease;
	max-height: 0px;
	overflow: hidden;	
	flex-wrap: wrap;
}

.sdi-history {
	padding-top: 10px;
	overflow-y: auto;
	width: 100%;
	min-height: 80px;
}

.sdi-flex {
	display: flex;
}

.sdi-wrap {
	flex-wrap: wrap;
}

.sdi-column {
	flex-direction: column;
}

.sdi-flexend {
	justify-content: flex-end;
}

.sdi-flex .half {
	width: 50%;	
}

.sdi-flex .third {
	width: 33%;	
}

.sdi-flex .quarter {
	width: 25%;	
}

.sdi-flex .half input,
.sdi-flex .third input,
.sdi-flex .quarter input {
	max-width: 98%;
}

.sdi-grow {
	flex-grow: 1;
}

.sdi-grow2 {
	flex-grow: 2;
}

.sdi-hidden {
	display: none;
}

.sdi-center {
	text-align: center;
}

.sdi-right {
	text-align: right;
}

.sdi-padvert {
	padding-top: 8px;
	padding-bottom: 8px;
}

button.sdi {
	font-size: 1.15em;
	font-weight: 600;
	padding: 8px 16px 9px;
	border-radius: 50px;
	opacity: 0.85;
	border: none;
	background-color: #bbb;
	color: #333;
}

button.sdi.padtop {
	margin-top: 6px;
}

button.sdi:hover {
	opacity: 1;
	cursor: pointer;
}

button.sdi:disabled,
button.sdi[disabled] {
	opacity: 0.35;
	cursor: default;
}

button.sdi.small {
	font-size: 1.05em;
	padding: 6px 14px 7px;
}

button.sdi.green {
	background-color: #01953A;
	color: white;
}

form.sdi,
.sdi-darkwrapper {
	margin: 15px 0px;
	padding: 15px;
	border: 1px solid #aaa;
	border-radius: 8px;
	background-color: #eeeeee;	
}

form.sdi input,
form.sdi select,
form select.sdi,
form.sdi textarea,
select.sdi {
/*	margin: 10px 0px;*/
	font-size: 1.1em;
	padding: 5px 10px 7px;
	border: 1px solid #aaa;
	border-radius: 6px;
	margin-top: 2px;
	margin-bottom: 15px;
}

form.sdi input[type=checkbox] {
	font-size: 1.5em;
	transform: scale( 2 );	
}

form.sdi select,
form select.sdi {
	font-size: 0.95em;
	min-width: 50%;
	-moz-appearance: none; 
	-webkit-appearance: none; 
	appearance: none;
	padding-right: 40px;
	background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23909090%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat, repeat;
    background-position: right .7em top 50%, 0 0;
    background-size: .8em auto, 100%;
}


form.sdi textarea {
	width: 100%;
}

form.sdi label {
	font-weight: 600;
	display: block;
}

.divider {
	margin: 15px 30px 25px;
	border-bottom: 1px solid #c0d0c0;
}

strong {
	font-size: 1.15em;
	font-weight: 600;
	color: black;
}


/*
 *	Overlay and popup stuff taken straight from vdoc
 */
 
	#octo_popup_overlay {
		background-color: #333; 
		opacity: 0.7; 
		position: fixed; 
		top: 0; 
		right: 0; 
		bottom: 0; 
		left: 0; 
		z-index: 99990;
		display: none;
	}
	.octo-popup {
		z-index: 99995;
		width: 85%;
		height: 700px;
		max-height: 85%;
		position: absolute; 
		top: 0; 
		border-radius: 12px;
		background-color: rgba( 0,0,0, 0.8 );
		background-image: url( 'https://october.com.au/soft/spinners/DoubleRing-75px.svg' );
		background-repeat: no-repeat;
		background-position: center center;
		color: white;
		font-size: 1.5em;
		text-align: center;
		display: flex;
		flex-direction: column;
		justify-content: space-around;
	}
	
	.octo-popup .text {
		margin: auto;	
	}
	
	.octo-popup .image {
		background-repeat: no-repeat;
		background-position: center center;
		background-size: contain;
		width: 100%;
		height: 100%;
	}

	.octo-popup iframe {
		width: 100%;
		height: 100%;
	}
	
	.octo-popup-closer {
		position: absolute;
		width: 40px;
		height: 40px;
		padding: 11px 0px;
		background-color: rgba( 240, 240, 240, 0.95 );
		border-radius: 99px;
		left: -25px;
		top: -25px;
		font-size: 25px;
		font-weight: 600;
		line-height: 17px;
		text-align: center;
		z-index: 99999;
		color: black; 
	}

	.octo-popup-closer:hover {
		background-color: rgba( 255, 255, 255, 1 );
		cursor: pointer;
	}
	
    .popup-form {
	/*	max-width: 450px; */
	/*	background-color: white; */
		max-width: 100%;
		color: black; 
		font-size: 0.9em !important; 
	/*	padding: 12px 5px; */
		margin: 0px !important;
		min-width: 320px; 
		height: 100%; 
	}
 
 
 
 
 
 
/*
 *	Media query for tablets in any orientation
 */
 
@media only screen and (min-width: 768px) and (max-width: 1024px) {
	.sdi-flex .third.tablet-large,
	.sdi-table-cell.third.tablet-large {
		width: 50%;
		max-width: 50%;	
	}
	.sdi-flex .quarter.tablet-large,
	.sdi-table-cell.quart.tablet-large {
		width: 30%;
		max-width: 30%;
		flex-basis: 30%;
		flex-shrink: 0;	
	}	
}


/*
 *	Media query for mobile phones in any orientation
 */
 
@media only screen and (min-width: 414px) and (max-width: 736px) ,
	only screen and (min-width: 375px) and (max-width: 667px) ,
	only screen and (min-width: 360px) and (max-width: 640px) ,
	only screen and (min-width: 320px) and (max-width: 568px) {

	#main-content .container {
		width: 94%;	
	}
	
	input {
		max-width: 100%;
	}

	.sdi-flex .half,
	.sdi-flex .third,
	.sdi-flex .med,
	.sdi-table-cell.half,
	.sdi-table-cell.third,
	.sdi-table-cell.med {
		width: 100%;
		max-width: 100%;	
	}
	
	.sdi-flex .quarter,
	.sdi-table-cell.quarter {
		width: 50%;
		max-width: 50%;	
		flex-shrink: 0;	
	}
	
	.sdi-menu-row .cell {
		min-width: 220px;
	}
	
	.sdi-icon {
		font-size: 1.8em;
	}

	.mobile-noflex {
		display: block;
	}
	
	a[href^="tel:"] {
		border: 1px solid #666;
		border-radius: 10px;
		padding: 5px 12px;
		line-height: 2.7em;
		background-color: white;
	}
} 


