body {
    box-sizing: border-box;
    font-family: Helvetica, Tahoma, Arial, Verdana, sans-serif;
    font-size:1.2em;
}

input[type=checkbox] {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    border: 1px solid lightgray;
    padding: 10px;
    background-color: white;
    width:4px;
    height:4px;
    /* Double-sized Checkboxes */
    -ms-transform: scale(1.3); /* IE */
    -moz-transform: scale(1.3); /* FF */
    -webkit-transform: scale(1.3); /* Safari and Chrome */
    -o-transform: scale(1.3); /* Opera */
    transform: scale(1.3);
}

input[type="checkbox"]:checked::before {
    content: "\10102"; /* Unicode character for a checkmark */
    font-size: 1.2em; /* Size of the checkmark */
    color: white; /* Color of the checkmark */
    position: absolute; /* Position the checkmark within the checkbox */
    top: 50%; /* Move the checkmark halfway down the checkbox */
    left: 50%; /* Move the checkmark halfway across the checkbox */
    transform: translate(-50%, -50%); /* Center the checkmark within the checkbox */
}

input[type=checkbox]:checked {
    -webkit-appearance: none;
    appearance: none;
    border-radius: 4px;
    border: 1px solid lightgray;
    background-color: lightgray;
}

#loadingdiv {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 1000;
}

.loader {
    position: relative;
    top: 50%;
    margin: auto;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid lightgreen;
    border-bottom: 16px solid green;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

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

body.has-js::before {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;

    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid blue;
    border-bottom: 16px solid blue;
    width: 120px;
    height: 120px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}
  
body.loaded::before {
    opacity: 0;
    width: 0;
    height: 0;
}

input[type=text] {
    width: 50%;
    text-align:center;
    color: lightgray;
    box-sizing: border-box;    
    border-width:thin;
    border-radius: 2px;
    margin: auto;
    transition: width 0.4s ease-in-out;
}

input[type=text]:focus {
    width: 90%;
    font-weight:normal;
    color: gray;
    background-color: white;
    border-width:thick;
}

/* Comments */
a:hover {
    text-decoration: none;
    font-weight:bold;
}


.clpdeactivated {
    background:lightgrey;
    color:white;
    border-color: lightgreen;
}

.clpactive{
    background:white;
    color: black;
    border-color: lightgreen;
}

.clpstayactive{
    background:lightblue;
    color: black;
    border-color: blue;
}

.clpoutdeactivated {
    background:lightgrey;
    color:white;
    border-color: #E75480;
}

.clpoutactive{
    background:lightpink;
    color: black;
    border-color: #E75480;
}

.div-table {
    display: table;
    table-layout:fixed;                        
  }
  .div-table-row {
    display: table-row;
    width: auto;
    clear: both;
  }
  .div-table-col {
    float: left; /* fix for  buggy browsers */
    /*display: table-column;*/         
    display: table-cell;
    width: 23%;         
    background-color: white;  
    font-size: 0.8em;
  }

.label{
    font-weight:normal;
    font-size: 0.7em;
    text-align: left;
    color:gray;
    vertical-align: baseline;
}

.value{
    font-size: 0.8em;
    text-align: left;
    color:black;
    vertical-align: baseline;
}

.trans{
    font-style: italic;
    display: None;
    color:darkslategray!important;
}

.grid2to4cln{
    grid-column-start:2;
    grid-column-end:5;
}

.invisible {
    background:white;
}

.maxwidth {
    width: 90%;
    margin:auto;
}

.subtitlewidth {
    width: 50%;
    flex-grow: 1;
}

.inline {
    display:inline-block;
}

.btn-nav{
    flex-shrink:0; 
    width: 20%;
}

.box-nav{
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    width: 90%;
    /*Sticky Background
    position: -webkit-sticky;
    position: sticky;
    top: 57px;
    background: white;*/
}

.boxbtn-pos, .boxbtn-clpoutdone, .boxbtn-ntrl, .boxbtn-wrn, .boxbtn-blue {
    box-sizing: border-box;
    margin:auto;
    text-align:center;
    align-items: center;
    border-radius: 15px;
    padding:15px;
    transition-duration: 0.4s;
    border-width: 0px;
}

#boxheader, #boxheadermenu, #boxnavday, #boxclp, #boxbtn-pos, #boxbtn-clpoutdone, #boxbtn-ntrl, #boxbtn-wrn, #boxbtn-blue, #boxclpinfo, #boxtskinfo, #boxwstclndr, #boxmenu {
    box-sizing: border-box;
    margin:auto;
    text-align:center;
    align-items: center;
}

#boxheader, #boxheadermenu, #boxnavday, #boxclp, #boxbtn-pos, #boxbtn-clpoutdone, #boxbtn-ntrl, #boxbtn-wrn, #boxbtn-blue, #boxclpinfo, #boxwstclndr, #boxtskinfo, .imessage {
    border-radius: 15px;
    padding:15px;
}


#boxnavday, #boxbtn-pos, #boxbtn-clpoutdone, #boxbtn-ntrl, #boxbtn-wrn, #boxbtn-blue {
    transition-duration: 0.4s;
    border-width: 0px;
}

#boxheader, #boxheadermenu  {
    width: 90%;
    background:white;
    border-style:solid;
    border-width:2px;
    margin-top: 15px;
}

#boxheadermenu {
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding-bottom: 5px;
}

#boxnavday {
    cursor: pointer;    
    background:slategray;
    font-size:3.5em;
    color:white;
    width:100%;
}

#boxnavday:hover {
    background: black   
}

#boxclp{
    border-style:solid;
}

#boxwstclndr{
    border-style:solid;
    border-color: red;
    background:white;
    font-size:0.9em;
    border-width:thick
}

#boxtskinfo{
    border-style:solid;
    border-color: lightgrey; 
    background:white;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 30% 70%;
    align-items:center;
    padding-left: 7%;
    padding-right: 7%;
}

#btn_trans{
    display: none;
    text-align: right;
    cursor: pointer;
}

#boxclpinfo{
    border-style:solid;
    border-color: lightgrey; 
    background:white;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 30% 20% 23% 27%;
    align-items:center;
}

.boxbtn-pos{
    cursor: pointer;    
    background: lightgreen;
    font-weight: bold;
    font-size:1.5em;
    color: white;
}

.boxbtn-pos:hover {
    background: green;
}

.boxbtn-pos:active {
    background: green;
}

.boxbtn-pos-active {
    background: green;
}

.boxbtn-clpoutdone{
    cursor: pointer;    
    background: lightcoral;
    font-weight: bold;
    font-size:1.5em;
    color: white;
}

.boxbtn-clpoutdone:hover {
    background: coral;
}

.boxbtn-clpoutdone:active {
    background: coral;
}

.boxbtn-clpoutdone-active {
    background: coral;
}

.boxbtn-wrn{
    cursor: pointer;    
    background: orange;
    font-weight: bold;
    font-size:1.5em;
    color: white;
}

.boxbtn-wrn:hover {
    background: red;
}

.boxbtn-blue{
    cursor: pointer;    
    background: skyblue;
    font-weight: bold;
    font-size:1.5em;
    color: white;
}

.boxbtn-blue:hover {
    background: deepskyblue;
}

.boxbtn-ntrl{
    cursor: pointer;
    background: lightslategray;
    font-weight: bold;
    font-size:1.3em;
    color: white;
}

.boxbtn-ntrl:hover {
    background: darkslategray;
}

#boxbtn-pos{
    cursor: pointer;    
    background: lightgreen;
    font-weight: bold;
    font-size:1.5em;
    color: white;
}

#boxbtn-pos:hover {
    background: green;
}

#boxbtn-clpoutdone{
    cursor: pointer;    
    background: lightcoral;
    font-weight: bold;
    font-size:1.5em;
    color: white;
}

#boxbtn-clpoutdone:hover {
    background: coral;
}

#boxbtn-wrn{
    cursor: pointer;    
    background: orange;
    font-weight: bold;
    font-size:1.5em;
    color: white;
}

#boxbtn-wrn:hover {
    background: red;
}

#boxbtn-blue{
    cursor: pointer;    
    background: skyblue;
    font-weight: bold;
    font-size:1.5em;
    color: white;
}

#boxbtn-blue:hover {
    background: deepskyblue;
}

#boxbtn-ntrl{
    cursor: pointer;
    background: lightslategray;
    font-weight: bold;
    font-size:1.3em;
    color: white;
}

#boxbtn-ntrl:hover {
    background: darkslategray;
}

#boxfooter {
    font-size: 0.6em;
    background-color:white;
    color: lightslategray;
    padding: 15px;
    border-top: 1px solid black;
}

#boxfooter a{
    color: grey;
}

#boxfooter a:hover{
    color: darkslategray;
    font-weight:bold;
}

#boxmenu, #boxmenuitem {
    color: white;
    background-color: black;
}

#boxmenu {
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: 6px;
    display: flex;
    justify-content: center;
}

#boxmenuitem:hover {
    font-weight: bold;
    color:black;
    background-color:lightgray;
    border-radius: 5px;
}

#boxmenuitem {
    font-size: 0.8em;
    padding: 2px;
}

#inputbookingsearch{
    padding: 15px;
    font-size: 1.5em;
    background-color: white;
    background-image: url('search_icon.png');
    background-position: 10px 10px; 
    background-repeat: no-repeat;
}

#tmshtovwimgdel{
    height:20px; 
    width:20px;
    cursor: pointer;
}

#tmshtovwimgdel:hover{
    content: url('delneg_icon.png'); 
}

h2, p  {
    padding:5px;
}

#box1 p, #box2 p {
    white-space:pre;
    font-size:smaller;
}

#spacer {
    padding: 3px;
}

/*chat staff */

.imessage {
    margin: 0 auto 1rem;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    margin: 0 auto 1rem;
    padding-left: 1.5rem;
    padding-top: 1rem;
    padding-right: 1.5rem;
    padding-bottom: 0rem;
  }
  
  .imessage p {
    margin: 0rem;    
    border-radius: 1.2rem;
    line-height: 1.25;
    max-width: 75%;
    padding: 0.5rem .875rem;
    position: relative;
    word-wrap: break-word;
  }
  
  .imessage p::before,
  .imessage p::after {
    bottom: -0.1rem;
    content: "";
    height: 1rem;
    position: absolute;
  }
  
  p.from-me {
    align-self: flex-end;
    align-items:right;
    background-color: green;
    color: #fff; 
    border-bottom-right-radius: 0.1rem;
  }
  /*
  p.from-me::before {
    /*border-bottom-left-radius: 0.8rem 0.7rem;
    border-right: 1rem solid green;
    right: -0.35rem;
    transform: translate(0, -0.1rem);
  }
  
  p.from-me::after {
    background-color: #fff;
    border-bottom-left-radius: 0.5rem;
    right: -40px;
    transform:translate(-30px, -2px);
    width: 10px;
    border-bottom-right-radius: 0.1rem
  }
  */

  p[class^="from-"] {
    margin: 0 rem;
    width: fit-content;
  }
  
  p.from-me ~ p.from-me {
    margin: 0.25rem 0 0;
  }
  
  p.from-me ~ p.from-me:not(:last-child) {
    margin: 0.25rem 0 0;
  }
  
  p.from-me ~ p.from-me:last-child {
    margin-bottom: 0.5rem;
  }
  
  p.from-them {
    /*align-items: flex-start;*/
    align-items: left;
    background-color: lightgray;
    color: #000;
    border-bottom-left-radius: 0.1rem;
  }
  
  p.from-them {
    color: slategray;
    font-size: 1.0em;
  }

  p.from-me {
    color: white;
    font-size: 1.0em;
  }

#msginfo-them {
    font-size: 0.7em;
    color: slategray;
    text-align: left;
    margin-top: 3px;
}

#msginfo-me {
    font-size: 0.7em;
    color: slategray;
    text-align: right;
    margin-top: 3px;
}

/*
  p.from-them:before {
    border-bottom-right-radius: 0.8rem 0.7rem;
    border-left: 1rem solid lightgray;
    left: -0.35rem;
    transform: translate(0, -0.1rem);
    border-bottom-left-radius:0.1rem;
  }
  
  p.from-them::after {
    /*background-color: #fff;
    border-bottom-right-radius: 0.5rem;
    left: 20px;
    transform: translate(-30px, -2px);
    width: 10px;
    border-bottom-left-radius:0.1rem;
  }*/
  
  p[class^="from-"].emoji {
    background: none;
    font-size: 2.5rem;
  }
  
  p[class^="from-"].emoji::before {
    content: none;
  }
  
  .no-tail::before {
    display: none;
  }
  
  .margin-b_none {
    margin-bottom: 0 !important;
  }
  
  .margin-b_one {
    margin-bottom: 1rem !important;
  }
  
  .margin-t_one {
    margin-top: 1rem !important;
  }

/*Upload File */
.upload__box {
    padding: 0px;
    display: inline;
    align-items: center;
}

.upload__inputfile {
    width: .1px;
    height: .1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}
    
.upload__btn {
    color: #fff;
    text-align: center;
    padding: 1px;
    transition: all .3s ease;
    cursor: pointer;
    border-color: lightgray;
    border-radius: 15px;
}

.upload__btn:hover {
    background-color: unset;
    color: green;
    transition: all .3s ease;
}
      
.upload__btn-box {
    margin-bottom: 10px;
    display: flex;
    width: 90%;
    margin: auto;
}
    
.upload__img-wrap {
    display: flex;
    flex-wrap: wrap;
    /*margin: 0 -10px;*/
    margin: auto;
    align-items: center;
    text-align: center;
    width:90%
}
      
.upload__img-box {
    width: 90px;
    padding: 0 10px;
    margin-bottom: 12px;
}
      
.upload__img-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    /*background-color: rgba(0, 0, 0, 0.5);*/
    color:black;
    opacity: 100%;
    background-color: white;
    border: 1px solid black;
    position: absolute;
    top: 2px;
    right: 2px;
    text-align: center;
    /*line-height: 24px;*/
    line-height: 18px;
    z-index: 1;
    cursor: pointer;
}

.upload__img-close::before {
    content: '\2716';
    font-size: 14px;
    /*color: white;*/
}
    
.img-bg {
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    padding-bottom: 100%;
  }

/*popup image*/
#reloadbtn {
    /*display: inline;*/
    height:70px;
    cursor: pointer;
    padding:5px;
    border-style:solid;
    border-width:2px;
    border-color:white;
    border-radius:10px;
    margin-top: 5px;
}

.small-image {
    /*position: initial;*/
    height:70px;
    cursor: pointer;
    padding:5px;
    border-style:solid;
    border-width:2px;
    border-color:white;
    border-radius:10px;
    margin-top: 5px;
}

#show_image_popup{
    /*position: absolute; /*  so that not take place   
    top: 50%;
    left: 50%;
    z-index: 1000; /*  adobe all elements   
    transform: translate(-50%, -50%); /*  make center   
    display: none; /*  to hide first time   */
    position: fixed;   
    top: 100px;
    left: 0;
    z-index: 999;      
    display: none; 
    text-align: center;
    height: 100vh; 
    width:  100vw;
    background: rgba(0, 0, 0, 0.8);
}

#show_image_popup img{
    max-width: 95%;
    height: auto;
    margin: auto;
}

#show_image_btn-close {
    z-index: 1;   
    position: absolute;
    right: 2%;
    top: 2%;
    color: white;
    background-color: black;
    border: solid 1px white;
    padding: 0px;
    text-decoration: none;
}

#show_image_btn-close:hover {
    background-color: #740404;
}

.textarea {
  border: 2px solid lightgreen;
  font-family: inherit;
  font-size: inherit;
  padding: 15px;
  text-align: left;
  overflow: hidden;
  resize: both;
  min-height: 40px;
  line-height: 30px;
  border-radius:15px;
}

.textarea[contenteditable]:empty::before {
  content: "";
  color: gray;
}

.disable-hover:hover {
    cursor: auto !important;
    background-color: inherit !important;
    color: inherit !important;
  }

.rating {
    direction: rtl;
    unicode-bidi: bidi-override;
    display: inline-flex;
}
.rating > label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
}
.rating > input {
    display: none;
}
.rating > input:checked ~ label,
.rating > label:hover,
.rating > label:hover ~ label {
    color: gold;
}

.img-thumbnail {
    max-width: 80px;
    max-height: 80px;
    margin: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
    object-fit: contain;
}

.img-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.img-popup {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.img-popup img {
    max-width: 100%;
    max-height: 100%;
    border: 3px solid white;
    border-radius: 6px;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff;
    color: #000;
    border: 1px solid #999;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}