/* 
    Created on : 23-Oct-2017, 23:23:15
    Author     : Damian Fairholme

Use . prefix to refer to the class
Use # prefix to refer to the id

Recommended: Use . and class references
*/

h1 {
    text-align: center;
    font-size: 24px;
    font-weight: 300;
    color: #2E2E2E;
    padding: 0;
    margin: 10px 0 0 0;

}

h1 p {
    font-size: 20px;
    margin: 0;
    color: #585858;
}


body {
    margin: 0 auto;
    padding: 0;
    font-family: sans-serif;
    height: 100%;
}


/* Displays a box around a form */
.box-wrapper {
    width: 400px;
    border: 1px solid lightgray;
    padding: 30px;
    /*margin: 20px;*/
    margin: 20px auto;
    text-align: left;
}

/* Displays left aligned text outside of a box form*/
.text-wrapper {
    width: 450px;
    margin: 0 auto;
    text-align: left;
    font-size: 14px;
}


.table-wrapper {
    width: 600px;
    border: 1px solid lightgray;
    padding: 40px;
    /*margin: 20px;*/
    margin: 20px auto;
    text-align: left;
}

td {
    width: 50px;
    text-align: center;
}


.sub-entry {
    width: 10em;
    float: left;
}

.button-align-right {
    position: absolute;
    top: 50%;
    right: 0px;
    z-index: 99;
    float: right;
    color: white;
    background-color: #099bdd;
    border: none;
    font-size: 30px;
    margin: 0px 0px;
    padding: 10px 15px;
}

/* Centre text on page */
.centre-text {
    text-align: center;
}

/* Layout for a grid form */
.form-grid {
    display: grid;
    grid-template-columns: 110px auto;
    gap: 20px;
}

/* Text value on a form that isn't editable' */
.form-text-value {
    color: blue;

}


/*Generic message style*/
.message {
    display: block;
    margin: 0 auto;
    width: 260px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 16px;
    color: darkgreen;
}


.error-message {
    display: block;
    margin: 0 auto;
    width: 350px;
    padding-bottom: 10px;
    font-size: 14px;
    color: red;
}


/*
***** Accordion style ******* 
*/

/* Style the accordion buttons that are used to open and close the accordion panel */
button.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
}

/*
Add a background color to the button if it is clicked (add the .active class with JS),
and when you move the mouse over it (hover)
*/
button.accordion.active, button.accordion:hover {
    background-color: #ddd;
}

button.accordion {
    background-color: #eee;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
}

button.accordion:after {
    content: '\002B';
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

button.accordion.active:after {
    content: "\2212";
}

/* Accordion panel. Note: hidden by default */
div.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}


/* 
   **** End of accordion style
*/


/*Sets the size of the menu and content */
.page-content {
    margin-left: 15%;
}

.styled-select {
    margin: 0 auto 20px;
    padding: 4px;
    width: 100px;
    height: 32px;
    border: none;
    background: #EDEFFF;
    /*border: 1px solid #AAA;*/
    font-weight: 400;
    font-size: 100%;
}

/* Sign in page styles */
.tb-login-padded {
    padding: 6px;
}

.tb-saml-login,
.tb-error-box {
    position: relative;
    top: 10%;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
}

.tb-login-title {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 20px;
}


/*sign up page style*/
.signup-box {
    box-sizing: border-box;
    margin: auto;
}

/*The style for standard input fields*/
input[type="tel"],
input[type="text"],
input[type="email"],
input[type="password"] {
    display: block;
    margin: 0 20px 20px auto;
    padding: 4px;
    width: 250px;
    height: 32px;
    border: none;
    border-bottom: 1px solid #AAA;
    font-weight: 400;
    font-size: 15px;
    transition: 0.2s ease;
}


/*The style for standard input fields when in focus*/
input[type="text"]:focus,
input[type="password"]:focus {
    border-bottom: 2px solid #16a085;
    color: #16a085;
    transition: 0.2s ease;
}

/*The style for standard buttons*/
input.button {
    display: block;
    margin: 0 auto;
    width: 120px;
    height: 25px;
    background: #4584EE;
    border: none;
    color: #FFF;
    font-weight: 100;
    text-transform: uppercase;
    transition: 0.1s ease;
    cursor: pointer;
    /*Rounded corners*/
    border-radius: 8px;
}

/*The style for submit buttons*/
input[type="submit"],
input[type="button"] {
    display: block;
    width: 120px;
    height: 25px;
    background: #4584EE;
    border: none;
    color: #FFF;
    font-weight: 100;
    text-transform: uppercase;
    transition: 0.1s ease;
    cursor: pointer;
    /*Rounded corners*/
    border-radius: 8px;
}

input[type="button"]:disabled {
    border: 1px solid #999999;
    background-color: #cccccc;
    color: #666666;
    pointer-events: none;
}

/* Used for the 'export to csv' button */
input[type="button"]:enabled {
    background: #4584EE;
    color: white;
}

input[type="submit"]:hover,
input[type="button"]:hover {
    opacity: 0.8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transition: 0.1s ease;
}

input[type="submit"]:active,
input[type="button"]:active {
    opacity: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: 0.1s ease;
}

/* Popup box styling */
input.popupInputStyle {
    margin: 10px 20px 20px 20px;
    width: 400px;
}

/* tracker -  devices*/
.trackerGroupsDropDown {
    margin-left: 10px;
}

.deviceCheckbox {
    padding-left: 10px;
    padding-bottom: 10px;
}

.deviceCheckboxEditIcon {
    padding-right: 10px;
    height: 20px;
    padding-top: 10px;
}


/* tracker -  list sections*/
.listStyle {
    list-style-type: none;
    margin: 0;
    height: 100%;
    padding-left: 10px;

}

.listStyle li {
    display: flex;
    color: #000;
    text-decoration: none;
}

.listStyle li a.active {
    background-color: lightblue;
    color: white;
}

.listStyle li a:hover:not(.active) {
    background-color: #f1f1f1;
}


.listIconStyle {
    width: 25px;
    height: 25px;
    padding: 10px;
}


.listTextStyle {
    text-decoration: none;
    padding: 10px;
}

/* tracker - Visit item layout  for the 'visits for a place' popup */
.visitPlaceName {
    display: block;
    font-weight: bold;
    margin: 20px;
}

.visitGrid {
    display: grid;
    grid-template-columns: 120px 1fr;
    row-gap: 0.5em;
}

.visitGridTitle {
    grid-column-start: 1;
    grid-column-end: 3;
}

/** Google map - Dashboard */
.googleMap {
    position: absolute;
    top: 120px;
    left: 15%;
    right: 0;
    bottom: 0;
}

/* Google map - Timeline Tracker page */
.googleMapTracker {
    position: absolute;
    bottom: 0;
    left: 180px;
    margin-left: auto;
    right: 0;
    top: 320px;
}

/* password link format*/
.password_link {
    text-decoration: none;
    color: blue;
    /*Centre in block*/
    display: block;
    margin: 0 auto;
    padding: 4px;
    width: 180px;
}


/* Standard link style*/

.link {
    color: #000;
    text-decoration: none;
}

.link a.active {
    background-color: lightblue;
    color: white;
}

.link a:hover:not(.active) {
    background-color: #f1f1f1;
}


/* Centred link and button format*/
.centred {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/*Loader image */
.loader {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 80px;
    height: 80px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

/* loader image code for Safari */
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/*Loader image end */


/* Reporting : iFrame full height in body
for report results.  Uses id (#) for reference */
#reportResultsIFrame {
    /*display: flex;*/
    /*flex-direction: column;*/
    position: absolute;
    /*right: 0;*/
    /*background-color: #f1f1f1;*/
    /*position: fixed;*/
    /*top:10%;*/
    /*height: 80%;*/
    /*overflow: auto;*/
    top: 120px;
    /* the left + width must equal 100% to fit the page width. */
    left: 30%;
    width: 70%;
    /* border:solid 1px;
      This margin moves the content below the header to allow the account circle to work
     top: 120px;*/

    /*padding-top:0px;*/

    /*height:70%;*/
    /*    box-sizing: border-box;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;*/
}


/* Reporting : Report side by side box format */
.reportFiltersBox {
    /*float:left;*/
    width: 200px;

}

/* Reporting : Filter controls.  Using id (#) to override 'input' defaults */
#filterControl {
    display: inline;
    margin: 5px 0px 10px 0px;
    padding: 0px;
    height: 32px;
    border-width: 1px;

    color: black;
}

.exportToCSV {
    margin-top: 10px;
}

/* standard date control, used for reporting */
input[type="date"] {
    display: block;
    font-family: helvetica;
    height: 32px;
    border: none;
    border-bottom: 1px solid #AAA;
    transition: 0.2s ease;
}


/*
*******************
Toggle switch
********************
 */
.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 15px;
    width: 15px;
    left: 1px;
    bottom: 1px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 8px;
}

.slider.round:before {
    border-radius: 50%;
}

/*
*******************
End Toggle switch
********************
 */

/*Map Key on Tracker page*/
#map-key {
    position: fixed;
    top: 90px;
    right: 50px;
    width: 200px;
    height: 200px;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 2px 2px 5px #ccc;
}

#map-key h2 {
    margin-top: 0;
}

#map-key ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#map-key li {
    margin-bottom: 10px;
}

#map-key img {
    display: inline-block;
    height: 20px;
    margin-right: 5px;
}