th, td { text-align: left; }
td { border: 1px solid #eee; }


form textarea {
    width: 100%;
    height: 100px;
}


.survey-questions td:first-child { width: 400px; }
.survey-questions td:nth-child(2) { width: 200px; }
.survey-questions td:nth-child(3) { width: 70px; }
.survey-questions td:nth-child(4) { width: 70px; }

.survey-questions td input {
    width: 100%;
}

.survey-page .survey-questions td:first-child { width: 30px; }
.survey-page .survey-questions td:nth-child(2) { width: 50px; }
.survey-page .survey-questions td:nth-child(3) { width: 60px; }
.survey-page .survey-questions td:nth-child(4) { width: 250px; }
.survey-page .survey-questions td:nth-child(5) { width: 200px; }
.survey-page .survey-questions td:nth-child(6) { width: 100px; }
.survey-page .survey-questions td:nth-child(7) { width: 80px; }


input[name="answers"] {
    width: 450px;
}

.logs td img {
    max-width: 75px;
}

.survey-answers {
    position: relative;
}

.survey-answers div {
    display: none;
    position: absolute;
    left: -280px;
    top: -50px;
    width: 500px;
    padding: 15px;
    background: #fff;
    border: 1px solid #111;
    box-sizing: border-box;
    z-index: 5000;
}

.survey-answers:hover div {
    display: block;
}

.survey-answers b {
    font-weight: 700;
}

.entries td.avatar img {
    width: 100px;
}


.entries td.label {
    text-align: right;
    font-weight: 700;
    width: 140px;
}

.entries td.label + td {
    width: 150px;
}

.entries .start td {
    border-top: 2px solid #333;
}

.entries .high-temp td.avatar {
    background: #f00;
}

.entries .high-temp td.temp {
    font-weight: 900;
    color: #f00;
}

.deletes section {
	display: inline-block;
	vertical-align: top;
	text-align: center;
	width: 70px;
	padding: 10px;
	box-sizing: border-box;
	margin: 5px 10px 5px 0;
	background: #eee;
	border-radius: 4px;
	border: 1px solid #aaa;
}

.deletes section p {
	margin: 0;
	padding: 0;
}

.deletes section img {
	display: block;
	width: 40px;
	margin: 0 auto;
}

.device-setting td:first-child {
    width: 300px;
}

.device-setting td:nth-child(2) {
    width: 300px;
}

.device-setting td:last-child {
    width: 150px;
}


.device-setting td:nth-child(2) input {
    width: 100%;
}

.device-setting b {
    font-weight: 700;
    color: #00b407;
}

.survey-page {
    padding: 15px;
    background: #efefef;
    margin-bottom: 25px;
}

.print-layouts {
    padding-bottom: 25px;
}

.layouts-options {
    padding: 0 0 10px 0;
    font-weight: bold;
}

.layouts-options label {
    display: inline-block;
    vertical-align: middle;
    line-height: 25px;
    height: 25px;
    margin-right: 25px;
}

.print-layouts .layout-a, .print-layouts .layout-b {
    display: none;
    width: 600px;
    margin: 0;
    padding: 0;
    border: 1px solid #000;
    font-size: 0;
}

.print-layouts .layout-a.show, .print-layouts .layout-b.show {
    display: block;
}

.print-layouts .col {
    display: inline-block;
    padding-top: 15px;
}

.print-layouts .col:first-child {
    width: 35%;
    margin-right: 18px;
}

.print-layouts .col:nth-child(2) {
    width: 60%;
}

.print-layouts .layout-a .col:nth-child(3), .print-layouts .layout-b .col:nth-child(4) {
    width: 65%;
    margin-right: 5%;
}

.print-layouts .layout-a .col:nth-child(4), .print-layouts .layout-b .col:nth-child(5) {
    width: 25%;
}


.print-layouts .col div, .print-layouts .wide {
    margin: 0;
    padding: 5px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    border: 1px solid #000;
    box-sizing: border-box;
}

.print-layouts .col:nth-child(2) div, .print-layouts .layout-b .spot-c, .print-layouts .layout-b .spot-e, .print-layouts .layout-b .spot-f {
    border-bottom: 0;
}

.print-layouts .layout-b .spot-f {
    border-bottom: 0 !important;
}

.print-layouts .layout-b .col:nth-child(2) div:first-child {
    border-bottom: 1px solid #000;
}

.print-layouts .col:nth-child(2) div:last-child {
    border-bottom: 1px solid #000;
}


.print-layouts .layout-a .spot-a {
    height: 180px;
    border-left: 0;
}

.print-layouts .layout-b .col:first-child div {
    border-left: 0;
}

.print-layouts .layout-b .spot-g.wide {
    margin-bottom: 15px;
    width: 98%;
    border-left: 0;
}

.print-layouts .layout-a .spot-b {
    margin-top: 20px;
    height: 40px;
}

.print-layouts .layout-a .spot-h {
    height: 60px;
    line-height: 60px;
}

.print-layouts .layout-b .spot-a, .print-layouts .layout-b .spot-b {
    margin-bottom: 15px;
}

.print-layouts .layout-b .spot-i, .print-layouts .layout-b .spot-h {
    height: 40px;
}

.print-layouts .layout-a .spot-b, .print-layouts .layout-a .spot-h, .print-layouts .layout-b .spot-i, .print-layouts .layout-b .spot-h {
    border-bottom: 0;
}

.print-layouts .layout-a .spot-b, .print-layouts .layout-b .spot-i {
    border-left: 0;
}

.print-layouts .spot-g {
    width: 100%;
}

.print-image img {
    max-width: 50px;
    max-height: 50px;
}

.preview-image {
	width: 100px;
	height: 100px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center center;
	border: 1px solid #ccc;
	margin: 0 auto 15px auto;
}

.header-form .calendar-pop {
    width: 80px;
}

.header-form .clear-cal {
    font-size: 9px;
    color: #aaa;
}

.group-buttons a:link, .group-buttons a:visited {
    display: block;
    margin: 0 auto 25px auto;
    text-align: center;
    width: 300px;
    box-sizing: border-box;
    background: #002f9a;
    color: #fff;
    font-weight: 700;
    padding: 12px;
    text-decoration: none;
    border-radius: 7px;
}

table.pages td img { max-width: 100%; }

table.pages td.btn-text { width: 80px; }
table.pages td.page-text { width: 200px; }

.choose-sites a:link, .choose-sites a:visited {
    display: inline-block;
    margin: 0 15px 15px 0;
    padding: 15px;
    border: 1px solid #aaa;
    background: #eee;
    border-radius: 8px;
    text-align: center;
    line-height: 20px;
    font-size: 16px;
    box-sizing: border-box;
}

.signin-search {
    display: none;
}

.signin-search input {
    font-size: 28px;
    line-height: 32px;
}

.header-form input[type="submit"] {
    font-size: 18px;
    padding: 5px;
}

.header-form input[type="submit"] + a:link, .header-form input[type="submit"] + a:visited {
    color: #aaa;
    padding-left: 10px;
}

.header-form input[type="submit"] + a:hover {
    color: #0073c3;
}

.checkboxes input {
    display: none;
}

.checkboxes span {
    display: inline-block;
    background: #efefef;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 4px;
    margin: 5px 5px 0 0;
    cursor: pointer;
}

.checkboxes input:checked + span {
    background: #5bcfff;
}

.contentForm .checkboxes {
    display: inline-block;
}

.contentForm .checkboxes label {
    width: auto;
    float: none;
    width: 20px;
    margin: 0;
    padding: 0 10px 0 0;
    position: relative;
    top: -2px;
}

.page-nav {
    display: block;
    padding: 0 0 10px 0;
}

.page-nav a:link, .page-nav a:visited {
    display: inline-block;
    height: 30px;
    line-height: 30px;
    margin: 0 10px 0 0;
    padding: 0 15px;
    border: 1px solid #ddd;
    background: #fff;
    color: #111;
    border-radius: 4px;
    box-sizing: border-box;
    text-transform: uppercase;
}

.page-nav a.active:link, .page-nav a.active:visited, .page-nav a:hover {
    background: #ddd;
}

.sim-alert {
    font-size: 0;
}

.sim-alert span, .sim-alert input, .contentForm .sim-alert input + span, .sim-alert b {
    display: inline-block;
    vertical-align: middle;
    height: 20px;
    line-height: 20px;
    font-size: 14px;
    margin: 0 0 10px 0;
    padding: 0;
    box-sizing: border-box;
}

.contentForm .sim-alert input + span.sim-alert-btn {
    background: #ccc;
    border: 1px solid #333;
    padding: 0 15px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
}

.sim-alert b {
    padding-left: 10px;
}

.sim-alert b.spinner {
    width: 50px;
    background: url('/img/loader.gif') no-repeat center center;
    background-size: contain;
}

tbody tr.denied:nth-child(even) td {
    background-color: #f9e5e5;
}

tr.denied td b {
    color: #f00;
}

@media only screen and (min-device-width: 768px) and (max-width: 1024px) {
    
    .signin-search {
        display: block;
        padding: 30px;
    }
    
    .desktop {
        display: none;
    }
    
}

@media only screen and (max-width: 1024px) {
    header {
        display: none;
    }

    .wrap {
        width: 100%;
        padding: 25px;
        box-sizing: border-box;
    }
    
    body {
        font-size: 18px;
    }
    
    footer {
        display: none;
    }
    
    .group-buttons a:link, .group-buttons a:visited {
        width: 90%;
        font-size: 18px;
    }
    
    .contentForm label, .contentForm input[type="text"], .contentForm select {
        font-size: 20px;
        width: 100%;
    }
    
    .contentForm input[type="submit"] {
        font-size: 28px;
        padding: 15px;
    }

    .pop-cal [data-dir="prev"], .pop-cal [data-dir="next"] {
        font-size: 24px;
    }

}