body {
    background-color: #001f3f;
    font-family: Arial,sans-serif;
    margin: 0px;
    border: 0px;
}

header {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;   
    color: white;
    text-align: center;
    vertical-align: middle;
    font-size: 20px;
    line-height: 50px;
    overflow: hidden;
}

.noPointerEvents {
    pointer-events: none;
}

#projects {
    width: 100%;
}

#projects div.wrapper {
    width: 50vw;
    height: 50vw;
    max-width: 200px;
    max-height: 200px;
    float: left;
    position: relative;
}

#projects button.project {
    width: 130px;
    height: 130px;
    text-align: center;
    font-size: 20px;
    overflow: hidden;
    font-family: Calibri,Arial,sans-serif;
    color: white;
    border-radius: 50px;
    border-style: hidden;
    border-color: #004d99;
    border-width: 10px;
    background-color: #004d99;
    margin: auto;
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; bottom: 0; right: 0;
}

#projects button.selected {
    border-color: #7FDBFF;
    border-style: solid;
}

#projects button.project:hover {
    width: 120px;
    height: 120px;
    font-size: 17px;
    border-radius: 45px;
}

#projects button.project:active {
    width: 100px;
    height: 100px;
    font-size: 15px;
    border-radius: 40px;
}

main {
    margin-top: 70px;
    width: 100%;
    color:#AAAAAA;
}

#login {
    text-align: center;
    color:#AAAAAA;
}

#salariesTable {
    padding-bottom: 30px;
    border-collapse: collapse; 
    color: #ddd;
}

#salariesTable >tbody >tr >td  {
    padding: 10px 20px;
}

#salariesTable >thead >tr >th {
    padding: 5px 20px;
}

nav#navBar {
    width: 100%;
    background-color: #005299;
    height: 20px;
    font-size: 15px;
    line-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    direction: rtl;
}

nav#navBar a:link {
    color: white;
    text-decoration: underline;
}
nav#navBar a:visited {
    color: white;
    text-decoration: none;
}
nav#navBar a:hover {
    color: white;
    text-decoration: none;
}
nav#navBar a:active {
    color: white;
    text-decoration: none;
}

nav#menu {
    width: 100%;
    margin: 0;
    padding: 0;
}

nav#menu .menuItem {
    background-color: #0074D9;
    width: 100%;
    height: 50px;
    float: left;
}

nav#menu .menuItem:hover {
    background-color: #005299;
}

nav#menu a:link {
    color: white;
    text-decoration: none;
}
nav#menu a:visited {
    color: white;
    text-decoration: none;
}
nav#menu a:hover {
    color: white;
    text-decoration: none;
}
nav#menu a:active {
    color: white;
    text-decoration: none;
}

nav#menu #menuProfileBar {
    font-size: 12px;
    float: left;
}



header .menuButtonContainer {
    background-color: #0074D9;
    width: 100%;
    height: 50px;
    overflow: hidden;
}

.menuButtonContainer div {
    width: 50px;
    height: 50px;
    vertical-align: middle;
    position: relative;
    cursor: pointer;
}

.menuButtonContainer img {
    margin: auto;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    width: 50px;
    height: 50px;
}

.menuButtonContainer img:hover {
    width: 46px;
    height: 46px;
}

.menuButtonContainer img:active {
    width: 40px;
    height: 40px;
}

#places {
    width: 100%;
}
#places .placesItem {
    width: 50vw;
    max-width: 200px;
    height: 50vw;
    max-height: 200px;
    float: left;
    position: relative;
    background-color: #001f3f;
}

#places .placesItem {
    border-style: hidden;
    border: none;
    cursor: pointer;
    padding: 0px;
}

#places .placesItem span {
    position: absolute;
    bottom: 0;
    width: 100%;
    left: 0;
    color: white;
    background-color: #3399ff;
    font-size: 15px;
    opacity: 0.85;
}

#places .placesItem img {
    max-height: 50vw;
    max-width: 50vw;
    
}

#places .placesItem:hover img{
    max-width: 45vw;
    max-height: 45vw;
}

#places .placesItem:active img{
    max-width: 40vw;
    max-height: 40vw;
}

@media (min-width: 400px) {
    #places .placesItem img {
        max-height: 200px;
        max-width: 200px; 
    }
    #places .placesItem:hover img{
        max-height: 180px;
        max-width: 180px;
    }
    #places .placesItem:active img{
        max-height: 160px;
        max-width: 160px;
    }
}

#places .showAll {
   width: 100%;
   height: 50px;
}

#placeDetail {
    width: 100%;
}

#placeDetail table {
    border-collapse: collapse;
}

#placeDetail table th, #placeDetail table td {
    padding: 5px 10px;
    border: 1px solid #e6e6e6;
}

#placeDetail #photo{
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 30vh;
    cursor: pointer;
}

#placeDetail #photo:hover{
    height: auto;
    /*line-height: auto;*/
}

#placeDetail #photo:hover img {
    /*position: static;*/
    margin: 0;
}

#placeDetail #photo img{
    position: relative;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

#placeDetail a:link {
    color: white;
    text-decoration: none;
}
#placeDetail a:visited {
    color: white;
    text-decoration: none;
}
#placeDetail a:hover {
    color: white;
    text-decoration: none;
}
#placeDetail a:active {
    color: white;
    text-decoration: none;
}

#placeDetail .mainButton {
    line-height: 50px;
    background-color: #0074D9;
    color: white;
    width: 100%;
    height: 50px;
    text-align: center;
    /*font-family: Calibri,Arial,sans-serif;*/
    font-size: 20px;
    float: left;
    cursor: pointer;
}

#placeDetail .mainButton{ 
    width: calc(100% - 16px);
    margin: 4px 5px 0px 5px;    
    border: 3px solid #33a0ff;
} 

#placeDetail .mainButton img {
    max-width: 50px;
    max-height: 50px;
}

#placeDetail .mainButton:hover {
    background-color: #005299;
}

#placeDetail #info {
    color:  #e6e6e6;
    background-color:   #003366;
    width: 100%;
    padding: 0 10px;
}

#placeDetail #info h3{
    margin: 0;
}

#placeDetail #info2 {
    color:  #e6e6e6;
    background-color:   #003366;
    font-weight: bold;
    width: 100%;
    font-size: 20px;
    text-align: center;
    padding-top: 15px;
}

#placeDetail #tasks .taskItem {
    color: #e6e6e6;
    background-color: #003366;
    font-size: 25px;
    float: left;
    width: 100%;
    height: auto;
    position: relative;
    padding-top: 12px;
    padding-bottom: 12px;
    cursor: pointer;
}

#placeDetail #tasks .taskItem:hover {
    background-color: #001a33;
}

#placeDetail #tasks .taskItem.done .text {
    text-decoration: line-through;
}

#placeDetail #tasks .taskItem .text {
    float: right;
    width: calc(100% - 50px);
}

#placeDetail #tasks .taskItem input {
    position: absolute;
    top: 0; bottom: 0; left: 15px;
    margin: auto;
}

.formInput {
    width: 100%;
    background-color: #003366;
    padding-top: 10px;
    padding-bottom: 10px;
}

.formInput label {
    width: 100%;
    font-size: 20px;
    color: white;
    text-align: center;
}

.formInput input {
    width: 100%;
    font-size: 15px;
}

.formInput select {
    width: 100%;
    font-size: 15px;
}

#report_submit {
    margin-top: 10px;
    width: 100%;
    height: 50px;
}

#entryExit {
    background-color: #003366;
}

#eans .item {
    padding: 10px 20px;
    box-sizing: border-box;
    line-height: 40px;
    font-size: 22px;
}

#eans .item .rem {
    background-image: url(../imgs/back.png);
    background-size: cover;
    width: 40px;
    height: 40px;
    float: right;
}

#eans .item .add {
    background-image: url(../imgs/addFull.png);
    background-size: cover;
    width: 40px;
    height: 40px;
    float: right;
}

#eans .itemAdd {
    padding-top: 13px;
}

#eans .itemAdd input{
    width: calc(100% - 60px);
    height: 40px;
    font-size: 30px;
    box-sizing: border-box;
}

#reportHistory .item,#visits .item,#comments .item,#eans .item {
    width: 100%;
    color: #e6e6e6;
    background-color: #003366;
    border-top-style: solid;
    border-top-width: 1px;
    border-top-color: white;
    float: left;
    position: relative;
    
}

#reportHistory .mainButton.next {
    float: right;
    width: 50%;
    position: relative;
}
#reportHistory .mainButton.prev {
    float: left;
    width: 50%;
    position: relative;
}
#reportHistory .mainButton.reportsPageButton {
    float: left;
    width: calc(16.6666666% - 16px);
    font-size: 16px;
    overflow: hidden;
}
#reportHistory .mainButton.reportsPageButton img {
    float: left;
}
#reportHistory .mainButton.reportsPageButton.selected {
    width: calc(50% - 16px);
}
#reportHistory .mainButton.prev img,#reportHistory .mainButton.next img {
    position: absolute;
    left: 0;right: 0;
    margin-left: auto;
    margin-right: auto;
}

#reportHistory .item:hover,#visits .item:hover,#comments .item:hover {
    background-color: #001a33;
}

#reportHistory .item .status,#visits .item .status,#comments .item .status {
    width: 20px;
    height: 20px;
    border-radius: 20px;
    position: absolute;
    top: 0; bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
    margin-left: 10px;
}

#comments .item .status {
    background-size: cover;
}

#comments .item .status.in {
    background-image: url(../imgs/incoming-message.png);
}

#comments .item .status.out {
    background-image: url(../imgs/outcoming-message.png);
}

#reportHistory .item .names,#visits .item .names,#comments .item .name {
    width: 40%;
    float: left;
    margin-left: 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: left;
}

#reportHistory .item .date,#visits .item .date,#comments .item .date {
    position: absolute;
    top: 0; right: 0;
    margin-right: 30px;
    margin-top: 10px;
    text-align: right;
    font-size: 12px;
}

#reportHistory .item .type,#visits .item .type,#comments .item .type {
    position: absolute;
    bottom: 0; right: 0;
    margin-right: 30px;
    margin-bottom: 10px;
    text-align: right;
}

#messageBox {
    position: fixed;
    border-style: dashed;
    border-width: 2px;
    border-color: white;
    z-index: 100;
    top: 0;
    width: 100%;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
    background-color: #FF851B; /* Red - #FF4136 , Orange - #FF851B */
    font-size: 18px;
    color: white;
    height: 54px;
    line-height: 50px;
    text-align: center;
    float: left;
}

#messageBox span {
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

#messageBox span a:link {
    color: white;
    text-decoration: underline;
}
#messageBox span a:visited {
    color: white;
    text-decoration: none;
}
#messageBox span a:hover {
    color: white;
    text-decoration: none;
}
#messageBox span a:active {
    color: white;
    text-decoration: none;
}

#reportInfo {
    color: white;
}

#photoUpload .uploadPreview .previewDiv {
    width: 33vw;
    max-width: 200px;
    height: 33vw;
    max-height: 200px;
    position: relative;
    float: left;
}

#photoUpload .uploadPreview .previewDiv img {
    max-width: 33vw;
    max-height: 33vw;   
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    margin: auto;
    z-index: 1;
}
#photoUpload .uploadPreview .previewDiv input {  
    position: absolute;
    bottom: 0; left: 0; right: 0;
    margin: auto;
    font-size: 18px;
    z-index: 2;
    width: 30vw;
    max-width: 180px;
}

#photoUpload #submitUploadLabel
{
    margin-top: 25px;
}

#photoUpload .cptrBtn {
    float: left; 
    width: 50px; 
    height: 50px;
    margin: 0 10px;
}

#photoUpload #photoCapture {
    float: right;
    background-size: cover;
    background-image: url(../imgs/camera.png);
}

@media (min-width: 600px) {
    #photoUpload .uploadPreview .previewDiv img {
        max-width: 200px;
        max-height: 200px;
    }
}

#photoUpload .uploadPreview .previewDiv .status,#placePhotoUpload .uploadPreview #filePreview .status {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    margin: auto;
    z-index: 2;
    width: 40px;
    height: 40px;
    background-size: contain;
    color: black;
    text-align: center;
    line-height: 50px;
    font-size: 13px;
    cursor: pointer;
}

#photoUpload .uploadPreview .previewDiv .status.del, #placePhotoUpload .uploadPreview #filePreview .status.del  {
    background-image: url(../imgs/del.png);
}
#photoUpload .uploadPreview .previewDiv .status.success, #placePhotoUpload .uploadPreview #filePreview .status.success {
    background-image: url(../imgs/upload-success.png);
}
#photoUpload .uploadPreview .previewDiv .status.error, #placePhotoUpload .uploadPreview #filePreview .status.error {
    background-image: url(../imgs/upload-error.png);
}

#photoUpload .uploadPreview .previewDiv .status.uploading,#placePhotoUpload .uploadPreview #filePreview .status.uploading {
    background-image: url(../imgs/loading.gif),url(../imgs/loading-background.png);
}

#placePhotoUpload .uploadPreview #filePreview {
    width: 100vw;
    height: 33vh;
    float:left;
    position: relative;
}
#placePhotoUpload .uploadPreview #filePreview img {
    max-width: 100%;
    max-height: 100%;   
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    margin: auto;
    z-index: 1;
}

#photosPreview .previewDiv{
    width: 33vw;
    max-width: 200px;
    height: 33vw;
    max-height: 200px;
    position: relative;
    float: left;
}

#photosPreview .previewDiv.add {
    cursor: pointer;
}

#photosPreview .previewDiv img {
    max-width: 33vw;
    max-height: 33vw;   
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    margin: auto;
    z-index: 1;
    cursor: pointer;
}

@media (min-width: 600px) {
    #photosPreview .previewDiv img {
        max-width: 200px;
        max-height: 200px;
    }
}

#photosPreview .previewDiv input {  
    position: absolute;
    bottom: 0; left: 0; right: 0;
    margin: auto;
    z-index: 2;
    width: 30vw;
    max-width: 180px;
}

#photoDetail img{
    width: 100%;
    height: auto;
    border: 0;
    margin: 0;
    padding: 0;
}

#photoDetail input {
    width: 100%;
    font-size: 20px;
}
#photoDetail .mainBtn.delete {
    background-color: #B22222;
}
#photoDetail .mainBtn.delete:hover {
    background-color: #811818;
}

#communication {
    position: fixed;
    bottom: 0; right: 0; left: 0;
    z-index: 9;
}

#communication #communicationButton {
    width: 80px;
    height: 80px;
    float: right;
    position: relative;
    background-color: #005299/*#0074D9*/;
    border-top-left-radius: 20px;
    cursor: pointer;
    pointer-events: auto;
}

#communication #communicationContent {
    background-color: #005299;
    width: 100vw;
    height: 50vh;
    float: left;
    pointer-events: auto;
}

#communicationMessages {
    overflow: scroll;
    width: 100%;
    height: calc(100vh - 106px);
    margin-top: 15px;
    margin-bottom: 36px;
}

#communicationNewMessage {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    width: 100%;
}

 #communicationNewMessage textarea{
    width: 80%;
    resize: none;
    height: 36px;
    font-size: 15px;
    display: block;
    float: left;
    border: 0;
    margin: 0;
    padding: 0;
}
 #communicationNewMessage button{
    width: 20%;
    height: 36px;
    display: block;
    float: left;
}

 .communicationMessageWrapper {
    width: 100%;
    float: left;
}

 .communicationMessage {
    border-radius: 20px;
    border-width: 10px;
    border-style: solid;
    margin-bottom: 10px;
    max-width: calc(100% - 70px);
    min-width: 100px;
    overflow-wrap: break-word;
    position: relative;
}

 .communicationMessage .info {
    font-size: 10px;
    font-weight: bold;
}
 .communicationMessage .message {
    font-size: 15px;
}

 .communicationMessage.left {
    float: left;
    background-color: white;
    border-color: white;
    color: #404040;
    margin-left: 10px;
}

 .communicationMessage.right {
    float: right;
    background-color: #00B863;
    border-color: #00B863;
    color: #e6e6e6;
    margin-right: 10px;
}

 #communicationButtonIcon {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    margin: auto;
}

#communication #communicationButton #communicationButtonIcon #communicationButtonIconEnvelope {
    width: 100%;
    height: 100%;
}

#communicationButtonIconNew {
    width: 25px;
    height: 25px;
    position: absolute;
    bottom: 0; left: -5px;
    border-radius: 20px;
    background-color: #C43636;
    text-align: center;
    color: white;
    font-weight: bold;
    line-height: 25px;
    z-index: 11;
    /*background-size: contain;
    background-image: url(../imgs/newMessages.png);*/
}

.usersInputDiv {
    z-index: 5;
}

#legend .legendItem {
    width: 50%;
    background-color:  #003366;
    float: left;
    font-weight: bold;
}

#legend .legendItem .legendStatus{
    width: 20px;
    height: 20px;
    border-radius: 20px;
    margin: 10px;
    float: left;
}

#legend .legendItem .legendText {
    float: left;
    line-height: 40px;
    color: #e6e6e6;
}

.usersInputDiv {
    width: 100%;
    
}

.usersInputDiv .usersInputItem {
    width: 100%;
    height: 25px;
    background-color: white;
    color: black;
    text-align: center;
    line-height: 25px;
    border: 0.5px black solid;
    
}

.usersInputDiv .usersInputItem:hover {
    background-color: #3399FF;
}

.mainBtn {
    background-color: #0074D9;
    width: 100%;
    height: 50px;
    cursor: pointer;
    text-align: center;
    line-height: 50px;
    color: white;
    float: left;
    font-size: 20px;
}

.mainBtn{ 
    width: calc(100% - 16px);
    margin: 4px 5px 0px 5px; 
    border: 3px solid #33a0ff;
} 

.mainBtn:hover {
    background-color: #005299;
}



#visits #visitsTable .item {
    width: 250px;
    float: left;
} 

#visits #visitsTable .item .type {
    position: relative;
    margin-top: 20px;
} 
#visits #visitsTable .item .date {
    position: relative;
    margin-bottom: 20px;
} 

#visits #visitsTable table {
    color: white;
    
}

#visits #visitsTable table tr td,#visits #visitsTable table thead tr th {
    min-width: 250px;
    text-align: center;
}


#visits #visitsTable {
    overflow: scroll;
    float: left;
    width: 100vw;
    height: 100%;
}