/* General Layout */

body{
	background-image: url('/application/themes/badgermetertool/images/white_wave_25.png');
	background-repeat: both;
}
.container {
	padding-top: 30px;
}
.tool-layout {
	width: 600px;
	height: 570px;
	background-image: url('/application/themes/badgermetertool/images/meter.png');
	background-repeat: no-repeat;
	position: relative;
	margin-bottom: 10px;
}
.tool-layout > * {
	position: absolute;
}
.button_area {
	text-align: center;
	padding: 10px 0 10px;
}
#left {
	padding: 0;
}
#right {
	padding-right: 0;
}
.popover{
    width: 500px;
}

/* Forms */
.panel-heading.trigger {
	cursor: pointer;
}

/* Wheels */
INPUT.wheel {
	background-color: #fff;
	color: #000;
	border: none;
	padding: 0;
	width: 21px;
	height: 49px;
	-webkit-border-radius: 1px;
	-moz-border-radius: 1px;
	border-radius: 1px;
	text-align: center;
	line-height: 32px;
	font-size: 32px;
	font-family: "Lucida Console", Monaco, monospace;
}
INPUT.wheel:active {
	background-color: #ff0;
}
INPUT.wheel.black {
	color: #fff;
	background-color: #000;
}
INPUT.wheel.red {
	color: #f00;
}
INPUT.wheel#wheel1 {
	top: 182px;
	left: 98px;
}
INPUT.wheel#wheel2 {
	top: 182px;
	left: 151px;
}
INPUT.wheel#wheel3 {
	top: 182px;
	left: 204px;
}
INPUT.wheel#wheel4 {
	top: 182px;
	left: 257px;
}
INPUT.wheel#wheel5 {
	top: 182px;
	left: 311px;
	width: 20px;
}
INPUT.wheel#wheel6 {
	top: 182px;
	left: 364px;
}
INPUT.wheel#wheel7 {
	top: 182px;
	left: 417px;
}
INPUT.wheel#wheel8 {
	top: 182px;
	left: 470px;
}

/* Tool Boxes */
INPUT.boxes {
	border: 0;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;
	width: 130px;
	padding: 0;
	color: #000;
	height: 28px;
	font-size: 16pt;
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
	font-family: "Lucida Console", Monaco, monospace;
}
INPUT.boxes, INPUT.boxes:focus {
	box-shadow: none;
	-webkit-box-shadow: none;
}
INPUT[readonly], INPUT[disabled] {
	background-color: #fff !important;
}
INPUT#tool-prefix {
	top: 260px;
	left: 88px;
	width: 82px;
}
INPUT#tool-type {
	top: 260px;
	left: 168px;
	width: 48px;
	border: 1px solid #007ac3;
}
INPUT#tool-size {
	top: 290px;
	left: 88px;
}
INPUT#tool-measure {
	top: 260px;
	left: 230px;
}
INPUT#tool-modeltext {
	top: 260px;
	left: 371px;
}
INPUT#tool-model {
	top: 290px;
	left: 371px;
}
INPUT#tool-zero {
	background-color: #000 !important;
	color: #fff;
	width: 25px;
	height: 49px;
	top: 184px;
	left: 504px;
	font-size: 28px;
	font-family: "Lucida Console", Monaco, monospace;
	font-weight: normal;
	line-height: 28px;
}
INPUT#tool-zero.double {
	width: 35px;
}
INPUT#tool-nom1 {
	font-size: 14px;
	font-weight: normal;
	top: 462px;
	left: 240px;
}
INPUT#tool-nom2 {
	font-size: 14px;
	font-weight: normal;
	top: 490px;
	left: 240px;
}
INPUT#tool-date {
	font-weight: normal;
	font-size: 15px;
	top: 407px;
	left: 115px;
}
INPUT#tool-half_tc {
	background-color:red;
	top: 435px;
	left: 368px;
	font-weight: normal;
	font-size: 12px;
	width: 50px;
	padding: 0;
	line-height: 12px
}
SPAN.decimal {
	position: absolute;
	font-size: 50px;
	line-height: 50px;
	top: 200px;
	display: none;
}
SPAN.decimal.decimal9 {
	display: block;
	left: 447px;
}
SPAN.decimal.decimal10 {
	display: block;
	left: 394px;
}
SPAN.decimal.decimal11 {
	display: block;
	left: 341px;
}
.color {
	position: absolute;
	top: 372px;
	left: 379px;
}

TABLE INPUT.form-control {
	padding: 2px;
	width: 85px;
	text-align: right;
	font-size: 11px;
}

TABLE TD, TABLE TH {
	border-top: 0 !important;
}
TABLE TH {
	text-align: center;
}
DIV#no_meters {
	padding: 8px 0;
	color: #c00;
}


/* ==========================
panels
=========================== */
.panel-default>.panel-heading{
 	background-color: #ccc;
 	border-color: #ddd;
}

.form-group{
	font-size: 12px;
	font-weight: normal;
}

/* ==========================
   MOBILE SCALING + CENTERING FIX
=========================== */

@media (max-width: 768px) {

	.container {
		padding-top: 10px;
	}

	.tool-layout {
		width: 600px;              /* original meter width */
		height: 570px;

		transform: scale(0.75);
		transform-origin: top center;

		/* TRUE CENTERING */
		position: relative;
		left: 50%;
		margin-left: -300px;      /* negative half-width of original element */

		margin-bottom: -80px;
	}

	#left, #right {
		padding: 0 5px;
	}

	.button_area {
		margin-top: -40px;
		padding-bottom: 15px;
	}

	.popover {
		width: 92% !important;
		max-width: 92%;
	}
}

/* EXTRA SMALL PHONES */
@media (max-width: 480px) {

	.tool-layout {
		transform: scale(0.68);
		position: relative;
		left: 50%;
		margin-left: -300px;
		margin-bottom: -110px;
	}

	.button_area {
		margin-top: -25px;
	}
}