font-size: 12px;

input,textarea {
      border-style: solid solid solid solid;
      border-color: #eeeeee #aaaaaa #aaaaaa #eeeeee;
      border-width: 1px 1px 1px 1px;
      font-size: 10px;
}

textarea {
    overflow-y: scroll;
    /*-webkit-overflow-scrolling: touch;*/
    overflow-x: none;
}

/* 
the folowing makes *thin* scrollbars always visible on touch devices
*/
@media screen and (pointer:coarse) {
    ::-webkit-scrollbar {
	-webkit-appearance: none;
	width:5px;
    }
    ::-webkit-scrollbar-thumb {
	border-radius: 5px;
	background-color: rgba(128,128,128,.25);
    }
}

/* table grid style for data tables */
table.grid { border-width: thin thin thin thin;
         border-spacing: 0px;
	 border-style: solid solid solid solid;
	 border-collapse: collapse;
	 white-space: nowrap;
}
table.grid th {
    vertical-align: bottom;
    align: left;
    font-family: sans-serif;
    font-size: 11px;
    border-width: thin thin thick thin;
    border-style: solid solid double solid;
}
table.grid th * {
    font-size: 11px;
}
table.grid td { vertical-align: bottom;
      align: left;
      font-family: sans-serif;
      font-size: 12px;
      border-width: thin thin thin thin;
      border-style: dotted dotted dotted dotted;
      border-color: gray gray gray gray
}

table.grid th a {
    text-decoration: none;
    color: blue;
}
th a:hover { color: red; }

// form table
table.form {
    border-width: thin thin thin thin;
    border-spacing: 0px;
    border-style: none none none none;
    border-collapse: collapse;
}
table.form th,table.form th * {
    vertical-align: bottom;
    text-align: left;
    font-family: sans-serif;
    font-size: 9px;
    color: gray;
    border-style: none none none none;
    border-width: 0px 0px 0px 0px;

}
table.form td {
    vertical-align: top;
    /*text-align: left;*/
    font-family: sans-serif;
    font-size: 12px;
    border-style: none none none none;
    border-width: 0px 0px 0px 0px;
}

tag { font-family: monospace; text-decoration: none; color: blue}

form code {font-family: monospace; text-decoration: none; color: blue}

.ui-autocomplete-category {
    font-weight: bold;
    padding: .2em .4em;
    margin: .8em 0 .2em;
    line-height: 1.5;
}

/* tabs: tab styling */
.min-tabs {
    background: transparent;
    border: none;
}
.min-tabs .ui-widget-header {
    background: transparent;
    border: none;
    border-bottom: 1px solid #c0c0c0;
}
.min-tabs .ui-tabs-nav .ui-state-default {
    /*background: transparent;*/
    /*border: none;*/
}
.min-tabs .ui-tabs-nav .ui-state-active {
    /*image background*/
    /*background: transparent url(img/uiTabsArrow.png) no-repeat bottom center;*/
    background: white;

}
.min-tabs .ui-tabs-nav .ui-state-default a {
    color: black;
    font-weight: normal;
    background: #EEEEEE;
}
.min-tabs .ui-tabs-nav .ui-state-default a:hover {
    color: blue;
}
.min-tabs .ui-tabs-nav .ui-state-active a {
    font-weight: bold;
    background: transparent;
 
}
.min-tabs .ui-tabs-nav .ui-state-active a:hover {
    background: transparent;
    color: black;
}
/* tabs: to scroll on small screen */
.ui-tabs .ui-tabs-nav { width: 100% !important;  white-space: nowrap!important; overflow-x: auto!important; }
.ui-tabs .ui-tabs-nav li { float: none!important; display: inline-block!important;}
/* tabs: pane styling*/
div.pane {
    margin: 0px !important;
    padding: 3px !important;
    max-width: 800px;
    /*background-color: #facade ! important;*/
}

/** for the login page, lifted from http://codepen.io/colorlib/pen/rxddKy **/
#loginbox {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  max-width: 360px;
  margin: 0 auto 100px;
  padding: 45px;
  text-align: center;
}
.userpassword {
  outline: 0;
  background: #f2f2f2;
  width: 100%;
  border: 0;
  margin: 0 0 15px;
  padding: 15px;
  box-sizing: border-box;
  font-size: 14px;
}
#loginbox button {
  text-transform: uppercase;
  outline: 0;
  background: #4CAF50;
  width: 100%;
  border: 0;
  padding: 15px;
  color: #FFFFFF;
  font-size: 14px;
  -webkit-transition: all 0.3 ease;
  transition: all 0.3 ease;
  cursor: pointer;
}
#loginbox h2 {
    color:#DC143C;
    text-align: center;
}
#loginbox button:hover,.form button:active,.form button:focus {
    background: #43A047;
}
.clientstyle {
    margin-top: 15px;
    text-align: left;
    font-size: 14px;
}

#overlay {
    background: black;
    position:fixed;
    width:100%;
    height:100%;
    top:0;
    left:0;
    opacity:.9;
}

.tooltip {
    border-radius: 10px;
    padding: 5px;
    background: black;
    color: black;
    font-size: .7em;
    background: #f3961c;
    background: gray;
/*    opacity: .8;*/
    border-radius: 5px;
    top: -30px;
    white-space: nowrap;
}
.tooltip::after {
    content: "";
    position: absolute;
    left: 65%;
    bottom: -9px;
    width: 0;
    border-width: 9px 9px 0;
    border-style: solid;
    border-color: gray transparent;
}

/* rack visualization */
/* individual rack u label */
div.rackulabels {
    padding-top: 1px;    
    display: inline-block;
    float: left;
}
/* individual rack u label */
div.ulabel {
    display: inline-block;
    background-color: lightgray;
    font-weight: bold;
    width: 2em;
    height: 1.3em;
    padding: 0;
    margin: 0;
    overflow: hidden;
    box-shadow: 0px 0px 0px 1px gray; inset;
    float: left;
    clear: left;
    text-align: right;
}
/* scrollable div for rack contents */
div.rackscroller {
    overflow-x: scroll;
    width:20em;
    padding: 0;
    margin: 0;
    border: 0;
}
/* rack contents (contains div.u) */
div.rackcontents {
    background-color: black;
    width: 200em;
    padding-top: 1px;
    border: 0;
    margin: 0;
    

}
/* u contents (contains dif.machine) */
div.u {
    position: relative;
    background-color: #303030;
    padding: 0;
    margin: 0;
    height: 1.3em;
    /* //  border: .1em black;*/
    /* //  border-style: solid none;*/
    box-shadow: 0px 0px 0px 1px black; inset;
    //overflow: hidden;
//    overflow: hidden;
}
/* one div.machine for each machine */
div.machine {
    /* //box-shadow: 0px 0px 0px 1px gray; inset;*/
    border-radius: 12px;
    display: inline-block;
    padding: 0;
    padding-left: 2px;
    margin: 0;
    overflow: hidden;
    width: 8em;
    white-space: nowrap;
    /* //background-color: #80F080;*/
    color: white;
    margin-left: .4em;
    height: 1.3em;
    float: left;
    opacity: 0.6;
    box-sizing: border-box;
    
}
div.machine table {
    width: 100%; height: 100%;
    border-collapse: collapse;
}
div.machine table tr,div.machine table tr td {
    text-align: center;
    vertical-align: middle;
}
div.machine table tr td a {
    text-decoration: none;
    font-weight: bold;
    color: black;
}
/* end of rack visualization */

/* property tiles */
a.proptiles {
    display: inline-block;
    position: relative;
    padding: 0px;
    margin-bottom: 8px;
    width: 150px;
    height: 192px;
    margin-right: 4px;
    text-align: center;
    vertical-align: top;
    justify-content: space-around;
    border: 1px;
    border-style: solid;
    border-color: #bebebe;
}
a.proptiles:hover {
    border-color: lightblue;
}
a.proptiles img {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -62.7%);
    max-width: 125px;
    max-height: 125px;
}
a.proptiles span {
    color: gray;
    position: absolute;
    display: block;
    margin-top: 150px;
    margin-left: 0px;
    width: 148px;
    height: 4em;
    text-decoration: none;
    font-family: sans-serif;
    font-size: 10px;
    line-height: 1em;
    overflow: hidden;
}
a.proptiles span p {
    margin: 0;
    padding: 0;
    margin-top: 2px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
a.proptiles span p.label {
    color: blue;
    font-size: 12px;
    font-weight: bold
}
a.proptiles span p.rtag {
    font-color: gray;
    transform: translate
}
a.proptiles span.price {
    display: block;
    position: absolute;
    left: 0;
    top: 0;

    max-width: 125px;
    max-height: 125px;
    color: green;
    font-size: 16px;
    font-weight: bold;
#    text-shadow: 0px 0px 1px white;
    margin-top: 6px;
    margin-left: 6px;
    padding-top: 14px;
    padding-left: 14px;

    text-shadow: 
    -1px -1px 15px rgba(255,255,255,0.7),
     1px -1px 15px rgba(255,255,255,0.7),
    -1px  1px 15px rgba(255,255,255,0.7),
     1px  1px 15px rgba(255,255,255,0.7);
    
    z-index: 100;
    text-align: left;
}
a.proptiles span.mapto {
    display: block;
    position: absolute;
    left: 0;
    top: 0;

    max-width: 125px;
    max-height: 125px;
    color: green;
    font-size: 16px;
    font-weight: bold;
#    text-shadow: 0px 0px 1px white;
    margin-top: 6px;
    margin-left: 6px;
    padding-top: 14px;
    padding-left: 14px;

    text-shadow: 
    -1px -1px 15px rgba(255,255,255,0.7),
     1px -1px 15px rgba(255,255,255,0.7),
    -1px  1px 15px rgba(255,255,255,0.7),
     1px  1px 15px rgba(255,255,255,0.7);
    
    z-index: 100;
    text-align: left;
}

/* /proptiles */

/* schools */
ul.schools {
    display: inline;
    margin: 0;
    padding: 0;
}
ul.schools li {
    display: inline;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}
ul.schools li:before { content: "  >";}
ul.schools li:first-child:before {
    list-style: none;
    content: none;
}

/* existing_note and existing_note_print e.g. props page */
pre.existing_note_print {
    display: none;
}

/* customizations for screen size */
@media screen and (pointer:coarse) {
    input,textarea {
	font-size: 16pt ! important;
    }
}    
@media screen and (max-width: 640px) {
    table.form {
	width: 100%;
    }
}
@media screen and (min-width: 641px) {
    table.form {
	width: 610px;
    }
}

/* adjust jquery ui tabs for small screen */
@media screen and (max-width: 400px) {
    .ui-tabs .ui-tabs-nav li a {
	max-height: 1.5em;
	padding-left: 4px !important;
	padding-right: 4px !important;
	padding-top: 2px !important;
	padding-bot: -3px !important;
	margin: 0px !important;
	margin-bot: -3px !important;

    }
}

#printheader {
    display: inline-block;
    position: absolute;
    font-size: 18px !important;
    width: 100%;
    text-align: center;
    padding-top: 0em;
    padding-bottom: 1.25em;
    border-style: none;
    border-color: black;
    border-width: 4px;
}

@media screen {
    .print {
	display: none !important;
    }
}

@page {
    /*margin-top: 100mm;*/
/*    margin-top: -8mm;*/
}
@media print {
    header {
	display: none;
	margin-top: -8mm;
    }
}
#printheader {
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
    background-color: white;
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: black;
    margin-top: -42px;
    padding: 0.2em;
}
    

@media print {
    body {
	margin-top: 16mm;
    }
    header {
	margin-top: 13mm;
	width: 100% !important;
    }
    .print {
	display: inline-block !important;
    }
    body,header,footer {
	background-color:white ! important;
	opacity:1.0;
    }
    .ui-tabs-nav {display: none;}
    .ui-tabs .ui-tabs-hide {display: block !important;}
    .ui-tabs-panel {
	visibility: visible;
	display: block !important;
    }
    input.globalsearch {
	visibility: hidden;
    }
    table.form {
	width: 100%;
    }
    pre.existing_note_print {
	display: inline;
    }	
    .noprint {
	display: none !important;
    }

    .proptiles,.swipetile {
	page-break-inside: avoid;
	background-color: inherit !important;
    }
}

#debug {
    font-size: 9px;
    width: 100%;
    height: 480px!important;
    overflow: scroll;
    margin-bottom: 30px;
    
}

/* file upload */
div.fileuploadbut {
    position: relative;
    display: inline-block;
}
div.fileuploadbut input[type="file"],
div.fileuploadbut label {
    display: none;
    position: absolute;
    font-size: 36pt ! important;
    opacity: 1;
    cursor: pointer;
}
div.fileuploadbut label {
    display: inline-block;
    font-weight: bold;
    color: lightblue;
    padding-left: 0.24em;
    padding-top: 0.34em;
    opacity: 100;
    min-width: 1.07em;
    min-height: 1.0em;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
}
div.fileuploadbut label:hover {
    color: blue;
}

div.fileuploadtile {
    display: inline-block;
    position: relative;
    padding: 0px;
    margin-bottom: 8px;
    min-width: 125px;
    width: 100%;
    max-width: 400px;
    padding-bottom: 0.25em;
    margin-right: 4px;
    text-align: center;
    vertical-align: top;
    justify-content: center;
    border: 1px;
    border-style: solid;
    border-color: #bebebe;
    opacity: .7;
}
div.fileuploadtile:hover {
    border-color: blue;
    background-color: #eeeefe;
    opacity: 1;
}
div.fileuploadtile img {
    display: inline-block;
    max-width: calc(100% - 10px);
    max-height: calc(100% - 10px);
    margin-top: 0.25em;
}
div.fileuploadtile span {
    display: inline-block;
    text-align: left;
    color: gray;
    width: calc(100% - 10px);
    margin-top: 0.25em;
    text-decoration: none;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 13px;
    line-height: 1em;
    overflow: hidden;
}
div.fileuploadtile input {
    width: calc(100% - 10px);
}
div.fileuploadtile textarea {
    background-color: inherit ! important;
    width: calc(100% - 10px);
    height: 7em;
}

    
/* image gallery (photoswipe) */
.caption {
    white-space: pre-line;
}


/* things for note */
textarea.note {
    padding: 7px;
    width: 100% !important;
    font-family: monospace !important;
}
pre.note {
    /* estimation of 80 characters wide */
    font-size: 12pt;
    line-height: 100%;
    min-width: 45em;
    max-width: 45em;
    white-space: pre-wrap;
    overflow: hidden;
/*    white-space: pre-wrap;*/
/*    word-wrap: break-word;*/
/*    overflow-wrap: normal;*/
/*    page-break-inside: avoid;*/
}
.note section {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.0em;
    border-style: solid;
    border-width: 0 0 1px 0;
    border-color: gray;
}
.note pre {
    overflow: hidden;
    white-space: pre-wrap;
/*    word-wrap: break-word;*/
/*    overflow-wrap: normal;*/
    page-break-inside: avoid;

}
@media screen and (max-width: 800px) {
    pre.note {
	font-size: 10pt;
    }
}

em {
    background-color: yellow !important;
    font-style: normal;
    font-weight: bold;
}
@media print, screen {
    em {background-color: yellow !important;
}

/* lists */
fieldset.proplists {
    margin: 0;
    padding: 0;
    padding-bottom: 3px;
    border-left: 0px;
    border-right: 0px;
}
fieldset.proplists * {
    margin-left: 0px;
    padding: 2px;
    margin-bottom: 2px;
}
fieldset.proplists input {
    display: none;
}

/* lists filter */
label.tristate {
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: transparent;
    border-radius: 5px;
    border: 0;
    height: 3em;
    box-shadow: inset 0 0 0 1px rgba(128, 128, 255, 0.3);
    cursor: pointer;
    padding: 0.5em;
    text-decoration: none;
    white-space: nowrap;
    margin: 3px;
    user-select: none;          /* modern/future */   
    -webkit-user-select: none;  /* Chrome 49+ */
    -moz-user-select: none;     /* Firefox 43+ */
    -ms-user-select: none;      /* No support yet */
    display: inline-block;
}
input.tristate {
    font-size: 8pt;
    padding: 0;
    width: 1.2em;
    height: 1.5em;
    margin: 0;
    padding: 0;
    cursor: pointer;
    user-select: none;          /* modern/future */   
    -webkit-user-select: none;  /* Chrome 49+ */
    -moz-user-select: none;     /* Firefox 43+ */
    -ms-user-select: none;      /* No support yet */
    display: inline-block;
}


/*
  checkbox to display preview div
  e.g. in default.tpl
  <input class=preview type=checkbox><div class=preview><img src="$base/attachments/property/$$d{propID}//google/streetlink"></div>
 */

div.preview {max-height: 0; overflow: hidden}
input.preview { display: inline; text-decoration: underline; cursor: pointer; }
input.preview + div.preview { max-height: 0; overflow: hidden; transition: max-height 0.2s, overflow 0s; }
input.preview:checked + div.preview { max-height: 320px; overflow: auto; transition: max-height 0.2s, overflow 0.2s, 0.2s; }

/* show more (+main.js) */
.more {
    text-overflow: ellipsis;    
    max-height: 200px;
    overflow: hidden;
    transition: 0.3s;
    user-select: none;
}
.more * {
    user-select: auto;
}
.more::before {
    user-select: none;
    content: attr(data-more);
    display: inline-block;
    width: 1em;

}

/* cost sheet */
div#costsheet {
    max-width: 500px;
}
form.costsheet {
    border-color: black;
    text-align: right;
}
form.costsheet label {
    float: right;
    clear: right;
}
@media screen and (max-width: 500px) {
    form.costsheet {
	text-align: left;
    }
    form.costsheet label {
	float: left;
	font-size: 8px;
	display: block;
	font-family: sans-serif;
	font-size: 9px;
	color: gray;
	font-weight: bold;
    }
    form.costsheet input {
	display: block;
	clear: right;
    }
}
form.costsheet input:not([type]) {
    width: 8em;
    text-align: right;
}
form.costsheet fieldset {
    text-align: left;
}

/* form/field tiles */

div.formtile {
    display: inline-block;
    position: relative;
    padding: 4px;
    margin-bottom: 8px;
    margin-right: 4px;
    text-align: left;
    vertical-align: top;
    justify-content: space-around;
    border: 1px;
    border-style: solid;
    border-color: #bebebe;

}
div.formtile b:after {
    content: "\a";
    white-space: pre;
}
div.formtile span {
      border-style: solid solid solid solid;
      border: 1px;
      display: inline-block;
}
div.formtile label {
    display: inline;
    vertical-align: bottom;
    text-align: left;
    font-family: sans-serif;
    font-size: 9px;
    font-weight: bold;
    color: gray;
    border-style: none none none none;
    border-width: 0px 0px 0px 0px;
}
div.formtile label:after {
    content: "\a";
    white-space: pre;
}
div.formtile input {
    vertical-align: top;
    text-align: left;
    background-color: transparent;
    border-style: solid;
    border-left: none;
    border-right: none;
    border-top: none;
    border-width: 1px;
    border-color: pink;
    margin-top: 0px;
    padding-top: 0px;
    margin-bottom: 5px;
    
}
@media screen and (pointer:coarse) {
    div.formtile {
	width: 100%;
    }
    div.formtile span,div.formtile span input {
	width: 100%;
    }
}

/* end of formtiles */
