/*
 * Copyright (c) 2013 Tracelink ApS - www.tracelink.dk - info@tracelink.dk
 * --------------------------------------------------------------------------
 *
 * File-created: "2014-05-01 15:55:22 by cbn"
 * 
 */

/* ------------- */
/*   Colors      */
/* ------------- */

:root {
    --white:      #ffffff; /* (255, 255, 255) White */
    --gray-dark:  #9b9b98; /* Warm Gray 5 - dark */
    --gray:       #c6c6c4; /* Warm Gray 3 */
    --gray-light: #f4f3f1; /* Warm Gray 1 - light */
    --red:        #ff4460; /* (255, 68, 96)   Red */
	--red-alpha2: rgb(255, 218, 223);
    --yellow:     #ffd232; /* (255, 210, 50)  Yellow */
	--yellow-alpha2: rgb(255, 246, 214);
    --blue:       #233959; /* (35, 57, 89)    Blue - Pantone 295 */
	--blue-light-alpha2: rgb(219, 233, 243);
    --green:      #00d78c; /* (0, 215, 140)   Green - Pantone 3385 */
	--green-alpha2: rgb(204, 247, 232);
    --violet:     #5c4f9e;
    --orange:     #ff903e;
    --blue-light: #4990c4;
    --green-dark: #14a868;
    --blue-dark:  #35689b;
    --purple:     #993999;
    --brown:      #a28879;
    --brown-light:#cebda7;

    --sat: env(safe-area-inset-top);
    --sar: env(safe-area-inset-right);
    --sab: env(safe-area-inset-bottom);
    --sal: env(safe-area-inset-left);
    --satot: calc(env(--sat) + env(--sab));
    --default-top: 20px;

    --text-title: var(--blue);
    --text-title-weight: bold; 
    --text-value: var(--blue);
    --text-value-weight: normal;
}

/* ------------- */
/*   Global      */
/* ------------- */

* {
    -webkit-touch-callout: none;
    /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;
    /* prevent webkit from resizing text to fit */
    -webkit-tap-highlight-color: var(--white);
    /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

body {
    -webkit-touch-callout: none;
    /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;
    /* prevent webkit from resizing text to fit */
    -webkit-user-select: none;
    /* prevent copy paste, to allow, change 'none' to 'text' */
    font-family: MuseoSans;
    font-size: 108%;
    background-color: var(--gray-light);
    /* might give trouble with som android => not showing the icon's => moved to ios hence it works there */
    /* font-smoothing: antialiased; */
    /* text-rendering: optimizeLegibility;  */
    height: 100vh;
    width: 100vw;
}

a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

button, label.file-upload {
    padding: 10px 15px;
    border: 0;
    font-size: inherit;
    color: var(--blue);
    background: var(--gray);
    width: calc(100% - 20px);
    text-align: left;
    margin: 5px 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    border-radius: 6px;
}

label.file-upload {
    display: inline-block;
    width: calc(100% - 50px);
}

li > button, li > label.file-upload {
    /* button in a tabel on a edit page */
    width: 37%;
    margin-left: 60%;
    height: 80%;
    padding-top: 7px;
}

form .tab_content>button, form .tab_content>label {
    /* first element on page is a button */
    margin-top: 25px;
}

button:focus {
    background-color: var(--gray-dark);
}

button.blue {
    color: var(--white);
    background: var(--blue);
}

button.yellow {
    color: var(--blue);
    background: var(--yellow);
}

button.green, label.file-upload.green {
    color: var(--blue);
    background: var(--green);
}

button.red {
    color: var(--white);
    background: var(--red);
}

button.gray {
    color: var(--white);
    background: var(--gray-dark);
}

button.working {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.show-click {
    background: var(--gray);
    transition: background 0.3s ease-in-out;
}

/* ------------- */
/*   List's      */
/* ------------- */

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

ul {
    list-style-type: none;
    padding: 0px;
    margin: 24px 0;
    width: calc(100%);
    /* not working on Android - see ui-mobile.js for hack */
}

#xlist>ul, #sellist>ul {
    margin: 0;
}

#xlist .dblline {
    line-height: 0;
}

li {
    background-color: var(--white);
    border-color: var(--gray);
    border-style: solid;
    border-top-width: 1px;
    border-bottom-width: 0px;
    height: 44px;
    line-height: 44px;
}

li:first-child {
    border-top: 1px solid var(--gray);
}

li:last-child {
    border-bottom: 1px solid var(--gray);
}

li:first-child:last-child {}

li:not(:first-child):not(:last-child) {}

.list-header {
    background-color: var(--gray-light);
    padding: 0px 15px;
    text-transform: uppercase;
    border-top: 0 !important;
    height: 44px;
    color: var(--blue);
    font-weight: bold;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.list-divider {
	border-bottom: 1px solid var(--blue);
}

.list-divider.sub {
	border-bottom: 1px solid var(--gray-dark);
	line-height: 60px;
	margin: 0px 10px 10px 10px;
	padding: 0;
}

.list-content-header {
    background: transparent;
    height: 18px;
    line-height: 18px;
    font-size: 70%;
    padding: 0 15px;
    border: 0 !important;
}

.group.list-header {
    margin-top: 20px;
}

.group.list-header.hide {
    border-bottom: 1px solid var(--gray) !important;
}

li a, li>p {
    padding: 0px 15px;
    /* display: flex; */
    display: block;
    color: inherit;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* line-height: 44px; */
    /* height: 44px;		/\* 44px minus 2x10px padding *\/ */
    height: 100%;
}

li span>span.right {
    float: right;
    padding: 2px 10px 0 0;
    margin: 6px 2px 0 0 !important;
}

li a:active, li a.selected {
    /* background-color: var(--gray-light); */
    color: inherit;
}

.rarr:after, .list-menu a:after {
    font-family: fontello;
    float: right;
    margin-right: -5px;
    margin-left: 5px;
    content: '\e766';
    color: var(--gray-dark);
}

li a.menu_indent {
    padding-left: 32px !important;
}

li a.menu_2xindent {
    padding-left: 64px !important;
}

.list-header span {
    float: right;
}

li>a>span.right {
    /* right: 30px; */
    /* position: absolute; */
    float: right;
    text-align: right;
    max-width: 40%;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 5px;
}

li>a>span.right.red {
    color: var(--red);
}

li>a span.badge {
	line-height: 25px !important;
	margin-left: 4px !important;
}

li>a>span.right.green {
    color: var(--green);
}

li>a>span.right.blue {
    color: #177efb;
}

li>a>span.right.gray {
    color: #aaa;
}

li>a>span.right.yellow {
    color: var(--yellow);
}

li>a>span.right>[class^="icon-"]::before, li>a>.right>[class*=" icon-"]::before {
    margin-left: 5px;
    margin-right: 0px;
}

li>a span.two-badge-right {
    line-height: 20px !important;
    margin-top: 6px;
}

#sellist li a:after {
    content: '';
}

/* dblline */

li.dblline {
    height: 60px;
    line-height: 60px;
}

li.dblline.multiline {
    height: 100%;
}

li.dblline .list-label {
    margin-top: 4px;
    line-height: 30px;
    min-height: 56px;
}

li.dblline span.rarr:after, li.dblline span.right {
    line-height: 60px;
    margin-bottom: -6px;
}

li.dblline span.right.text {
    line-height: 36px;
    font-size: 80%
}

li.dblline span.list-label>p {
    line-height: 15px;
    color: var(--gray-dark);
    font-size: 80%;
}

li.dblline span.list-label>p.multiline {
    white-space: break-spaces;
    margin-bottom: 5px;
    line-height: 17px;
}

li.dblline span.right-option {
    padding-top: 13px;
    padding-bottom: 13px;
}

li.dblline span.left-img {
    width: 50px;
    height: 50px;
    margin: 5px 8px 0 -10px;
    float: left;
    background-size: 50px 50px !important;
    background-repeat: no-repeat;
    background: url('https://tracelink.dk/admin/imgs/no-profile-neg.png');
    border-radius: 50%;
}

li.dblline .list-label>p>img {
    margin-right: 4px;
    height: 20px;
    margin-bottom: 4px;
    border-radius: 50%;
}

li.p-multi {
    padding-left: 15px;
}

/* swipe right options */

.right-select {
    float: right;
    position: absolute;
    right: 0px;
    z-index: 900;
    background: var(--white);
    height: 44px;
}

.right-option {
    display: none;
    width: 0px;
    text-align: center;
    line-height: 15px;
    padding: 5px 0px;
    overflow: hidden;
    z-index: 900;
}

.right-option:before {
    margin-right: 0;
}

.right-option-text {
    font-size: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 1px;
}

/* ------------- */
/*   Menus       */
/* ------------- */

#menulist span.right>span {
    /* for time reg */
    max-width: calc(100% - 190px);
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    font-style: italic;
}

#menulist span.right {
    min-width: 100%;
    min-height: 44px;
    right: 30px;
    position: absolute;
}

#menulist span.badge {
    display: none;
}

#menulist .list-header {
    border-bottom: 1px solid var(--gray) !important;
}

#menulist .list-header-no-line {
    border-bottom: 0px !important;
}

#menulist .menu-sub {
    padding-left: 15px;
}

#menulist li[class^="icon-"]:before, #menulist li.list-menu span[class^="icon-"]:before {
    width: 1.2em;
}

#menulist li[class^="icon-"]:before {
    color: var(--gray-dark);
    font-weight: normal;
}

/* ------------- */
/*   Badges      */
/* ------------- */

span.badge {
    font-style: normal !important;
    padding: 2px 8px 0 !important;
    border-radius: 14px;
    font-size: 85%;
    font-weight: bold;
    margin-left: 5px;
    line-height: 22px;
    display: inline-block;
    margin-top: 10px;
}

span.badge span[class^="icon-"]:before {
    width: 1em;
    margin-right: 0px;
}

span.badge.gray {
    background: var(--gray);
    color: var(--white) !important;
}

span.badge.red {
    background: var(--red);
    color: var(--white) !important;
}

span.badge.blue {
    background: var(--blue);
    color: var(--white) !important;
}

span.badge.yellow {
    background: var(--yellow);
    color: var(--blue) !important;
}

span.badge.green {
    background: var(--green);
    color: var(--white) !important;
}

/* ------------- */
/*   Pages       */
/* ------------- */

/* all pages default to hide */

.page {
    display: none;
    position: absolute;
    height: 100vh;
    width: 100vw;
    background: var(--gray-light);
    opacity: 1;
    filter: brightness(1);
    z-index: 100;
    overflow: hidden;
    transition: filter 0.3s ease-out, transform 0.3s ease-out, width 1s ease-out; 
}

#page-welcome {
    z-index: 25;
}
  
#page-option {
}
  
#page-main {
    z-index: 100;
    /* display: block !important; */
}
    
#page-xlist  {
    z-index: 200;
    transform: translate3d(100%, 0, 0);
    width: 90vw;
}

#page-edit, #page-chat {
    z-index: 300;
    transform: translate3d(100%, 0, 0);    
}

#page-edit-popup {
    z-index: 400;
}

#page-sketch {
    z-index: 500;
}

.selectpage {
    z-index: 1000;
    opacity: 0.3;
    transition: all .3s ease-out;
    /* transform: translate3d(0, 100%, 0), scale(0.93); */
    transform: scale(0.1);
    border: 1px solid var(--gray);
    box-shadow: 0 0 35px var(--gray-dark);
    border-radius: 15px;
}

.selectpage input.search, .selectpage input.select_search_db, .selectpage input.select_search {
    width: 91%;
}

.selectpage .header {
    padding-top: 0;
}

.selectpage .page-content {
    top: 45px;
    overflow-y: scroll;
    overflow-x: hidden;
}

.selectpage-show {
    opacity: 1;
    /* transform: translate3d(0, 0, 0);     */
    transform: scale(0.9);
}

.page-right {
    display: block;
    transform: translate3d(-100%, 0, 0);
}

.page-left {
    display: block !important;
}

.page-left-slide {
    transform: translate3d(0, 0, 0) !important;
}

.page-left-slide-cover {
    filter: brightness(0.7) !important;
    transform: translate3d(-30%, 0, 0) !important;
}

.page-up {
    display: block !important;
    border-radius: 15px 15px 0 0;
    transform: translate3d(0, 110%, 0);
    height: calc(100vh - 55px);
}

.page-up-slide {
    opacity: 1;
    transform: translate3d(0, 55px, 0);
}

.page-up-slide-cover {
    transform: scale(0.93, 0.95) translate3d(0, 25px, 0) !important;
    /* top: -16px; */
    border-radius: 12px 12px 0 0;
    filter: brightness(0.7) !important;
    /* height: calc(100vh - 55px) !important; */
}

.page-down-slide {
    opacity: 1;
    transform: translate3d(0, 0, 0) !important;
}

.page-hide {
    visibility: hidden !important;
}


/* header */

.header {
    padding-top: 0px;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-dark);
    position: relative;
    height: 45px;
    margin-top: 0;
    font-weight: 600;
    z-index: 900;
}

.header h1 {
    padding: 11px 5px;
    text-align: center;
    display: inline;
    position: absolute;
    right: 25%;
    left: 25%;
    width: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--blue);
    font-size: 110%;
}

.header-action {
    position: absolute;
    max-width: 22%;
    padding: 12px 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header { 
    padding-top: env(safe-area-inset-top, var(--default-top));
}

.page-up .header {
    padding-top: 0;
}

.header-right {
    right: 10px;
}

.header-left {
    left: 10px;
}

.header a, .header a:visited {
    color: var(--blue-light);
}

.header.red {
    background: var(--red-alpha2);
}

#logo-wrapper img {
    max-width: 150px;
    max-height: 35px;
    margin-top: -5px;
}

#beacon-icon {
    color: var(--gray);
}

.beacon-inside {
    color: var(--blue) !important;
}

/* tabs */

#edit-tabs {
    overflow-x: scroll;
    overflow-y: hidden;
    z-index: 9000;
    background: var(--gray);
    -webkit-transform: translate3d(0, 0, 0);
}

#edit-tabs::-webkit-scrollbar {
    display: none;
}

#edit-tabs>ul {
    margin: 4px 0 -4px 0;
}

#edit-tabs>ul>li {
    display: inline;
    padding: 10px 8px;
    color: var(--blue);
    white-space: nowrap !important;
    background: transparent;
}

#edit-tabs li:last-child {
    padding-right: 13px;
    border-bottom: 0;
}

#edit-tabs li:first-child {}

#edit-tabs li.active {
    color: var(--blue);
    font-weight: bold;
    background: var(--gray-light);
}

#edit-tabs::-webkit-scrollbar {
    display: none;
}

#edit-tabs>div {
    position: relative;
    clear: both;
    margin: 4px 0 -4px 0;
    width: 100%;
    white-space: nowrap;
    overflow-x: scroll;
    overflow-y: hidden;
    z-index: 9001;
    -webkit-overflow-scrolling: touch;
}

#edit-tabs>div>div {
    display: inline-block;
    vertical-align: middle;
    padding: 10px 8px;
    width: fit-content;
    color: var(--blue);
    white-space: nowrap !important;
    background: transparent;
}

#edit-tabs div:last-child {
    padding-right: 13px;
    border-bottom: 0;
}

#edit-tabs div:first-child {}

#edit-tabs div.active {
    color: var(--blue);
    font-weight: bold;
    background: var(--gray-light);
}

/* page content */

.page-content {
    background: #f3f2f1;
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    z-index: 100;
    overflow: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    top: calc(45px + env(safe-area-inset-top, var(--default-top)));
    height: calc(100vh - calc(45px + env(safe-area-inset-top, var(--default-top))));
}

.page-up .page-content { 
    top: 45px;
    height: calc(100vh - calc(89px + env(safe-area-inset-top, var(--default-top))));
}

.page-content.using-tabs { 
    top: calc(89px + env(safe-area-inset-top, var(--default-top)));
    height: calc(100vh - calc(89px + env(safe-area-inset-top, var(--default-top))));
}

.page-up .page-content.using-tabs { 
    top: 89px;
    height: calc(100vh - calc(120px + env(safe-area-inset-top, var(--default-top))));
}

h5 {
    text-align: center;
    font-size: 80%;
    font-weight: normal;
}

#dialog {
    width: 90%;
    z-index: 9999;
    left: 50%;
    top: 70px;
    transform: translate(-50%, 0px);
}

#dialog-error-text {
    text-align: center;
    margin: 20px auto 30px;
}

#splash-logo {
    margin: 30px auto;
    width: 220px;
}

#splash-logo img {
    max-width: 220px;
}

#login-main-button {
    /* margin: 2px auto;
    width: 100%; */
    text-align: center;
}

h4 {
    padding: 10px 15px;
}

.note {
    display: none;
    float: right;
    position: absolute;
    right: 50px;
    padding-bottom: -2px;
    font-size: 11pt;
    font-weight: normal;
}

.note img {
    max-width: 10px;
}

.note_alert {
    color: var(--red);
}

.note_ok {
    color: var(--green);
}

#page-content img {
    max-width: 99%;
    border: 1px solid var(--gray-dark);
}

img.img_multi_preview {
    height: 120px !important;
    margin: 5px;
}

p.img_multi_title {
    font-size: 80%;
    text-align: center;
    margin-bottom: 5px;
}

.sketch_preview {
    max-height: 120px !important;
    margin: 5px;
}

pre {
    font-family: "courier new", courier, monospace;
}

#page-content pre {
    padding: 15px 0;
    background: var(--white);
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    overflow-x: scroll;
    font-size: 85%;
}

/* MODAL */

.modal {
    min-height: 50px;
    position: absolute;
    z-index: 910;
    line-height: 140%;
    background: var(--white);
    box-shadow: 0 0 35px var(--gray-dark);
    opacity: 1;
    border: 0;
    border-radius: 0px;
}

.modal h2 {
    background: var(--blue);
    color: var(--white);
    padding: 2px 8px;
}

.modal input[type=submit], input[type=button] {
    width: 80px;
}

.modal input[type=submit] {
    float: right;
}

.modal_frame {
    padding: 5px 8px;
}

.modal_content {
    margin-bottom: 15px;
    overflow-y: auto;
    padding: 10px 0px;
}

.modal_content input[type=text], .modal_content input[type=radio], .modal_content select {
    margin-bottom: 3px;
}

.modal_content input[type=radio] {
    border-style: solid;
    border-width: 1px;
}

.modal {
}

.modal h2 {
    background: var(--blue);
    color: var(--white);
    font-size: 90%;
}

.modal_content h4 {
    border-bottom: 1px solid var(--gray-dark);
    width: 100%;
    margin: 10px 0;
}

.modal_content h5 {
    margin-bottom: 8px;
    width: 80%;
}

.modal_content input[type=checkbox] {
    width: 20px;
}

.modal_content th {
    padding: 6px;
}

.modal_content_indent {
    padding-left: 5px;
    width: calc(50% - 5px);     /* 50% minus the padding */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#modal_scrim {
    background-color: var(--gray-dark);
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100vh;
    height: 100vh;
    cursor: pointer;
    z-index: 999;
}

#container span.badge.overlay-counter {
    position: fixed;
top: 1.5vw;
left: 1.5vw;
z-index: 999;
border: 0.6vw solid;
font-size: 4vw;
line-height: 5vw;
margin-top: 0;
}

/* ------------------ */
/*   INLINE BUTTON    */
/* ------------------ */
.tl-inline-button {
    display: inline-block;
    background-color: var(--gray-dark);
    color: var(--white);
    padding: 5px 6px 4px 4px;
    border-radius: 4px;
    margin: 5px;
    float: initial !important;
    white-space: nowrap;
}

.tl-inline-button [class*="icon-"] {
    color: var(--white) !important;
    margin: 0 2px;
}

/* ------------------ */
/*      INPUT         */
/* ------------------ */

.inp {
    padding: 0px 0px 0px 15px;
    display: block;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inp>P {
    overflow: hidden;
    text-overflow: ellipsis;
    /* white-space: normal; */
    white-space: nowrap;
    position: absolute;
    padding: 2px 0 0;
}

.inline-inp {
    float: initial !important;
    width: 100%;
}

.text-normal {
    padding: 10px 15px;
    font-size: 85%;
}

.loading-css {
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    border: 2px solid var(--gray-dark-alpha2);
    border-top-color: var(--gray-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: loading-spin 1s linear infinite;
}

.text-warning {
    padding: 5px;
    margin: 15px 0;
    display: block;
    color: var(--blue);
    margin-left: 10px;
    margin-right: 10px;
    font-size: 95%;
}

.text-warning span {
    float: left;
}

.text-warning.red {
    background: var(--red-alpha2);
    border-left: 3px solid var(--red);
}

.text-warning.yellow {
    background: var(--yellow-alpha2);
    border-left: 3px solid var(--yellow);
}

.text-warning.blue {	    /* blue is information */
    /* background: rgba(73, 144, 196, 0.2); */
    /* border-left: 3px solid var(--blue); */
}

.text-warning.gray {
    background: var(--gray-light);
    border-left: 3px solid var(--gray);
}

.text-warning.green {
    background: var(--green-alpha2);
    border-left: 3px solid var(--green);
}

.text-info {
    padding: 10px 15px;
    font-size: 85%;
    font-weight: bold;
}

.text-note {
    padding: 10px 15px;
    font-size: 85%;
    font-style: italic;
}

.list-label {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: calc(100% - 50px);
    /* not supported by Android - see hack in ui-mobile.js */
}

.list-label-long {
    overflow-x: scroll;
    text-overflow: unset;
    white-space: pre;
}

.list-label-long::-webkit-scrollbar {
    display: none;
}

.list-label-long {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.list-label-short {
    max-width: 60%;
    /* we need to make room for right label */
}

.list-table {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

canvas {
    margin: 10px;
    border: 1px solid var(--gray);
    background-color: var(--white);
}

/* new select */

.selectlist-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    right: 2000px;
    padding: 0;
    position: absolute;
    width: 1px;
}

.selectlist-holder {
    background-color: transparent;
    color: var(--gray-dark);
    font-size: inherit;
    float: right;
    text-align: right;
    position: relative;
    padding: 2px 0px 0;
    margin-right: 15px;
    height: 44px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selectlist-img-badge {
    height: 36px;
    margin-right: 8px;
    margin-top: 0px;
    border-radius: 50%;
}

#page-content .selectlist-img-badge {
    border: 0;
    margin-top: -3px;
    height: 80%;
    border-radius: 50%;
}

#sellist .list-label {
    margin-left: 22px;
    max-width: 85%;
}

#sellist .selected>span.selected {
    position: absolute;
    color: var(--green);
}

#form a.a-tag-as-button {
    display: block;
    padding: 15px;
    border: 0;
    font-size: inherit;
    color: var(--white);
    background: var(--blue-light);
    width: 100%;
    text-align: left;
    margin: 10px 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* ------------------ */
/*   Input text box   */
/* ------------------ */

input[type=text], input[type=time], input[type=date], input[type=datetime], input[type=datetime-local], input[type=number], input[type=tel], input[type=email], input[type=password], select {
    font-family: MuseoSans;
    font-size: 108%;
    background-color: transparent;
    border: 0px solid;
    color: var(--gray-dark);
    font-size: inherit;
    float: right;
    text-align: right;
    position: relative;
    padding: 2px 15px 0 0;
    margin: 0 0 -2px 0;
    height: 44px;
    display: block;
    line-height: 44px;
    border-radius: 0;
}

input:disabled {
    color: var(--red);
    opacity: 0.6;
}

button:disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

input:focus {
    outline: none;		/* avoid the blue border */
}

.input-error {
    border-top: solid 1px var(--red) !important;
    background: var(--red-alpha2) !important;
    border-bottom: solid 1px var(--red) !important;
}

select {
    background-size: contain;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    width: 60%;
    top: 0px;
    direction: rtl;
}

.text-label, .select-label {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    max-width: 60%;
}

.inp > select {
    width: 40%;
}

option {
    direction: ltr;
}

/* ------------------ */
/*   Input search     */
/* ------------------ */

input.search, input.search_db, input.select_search_db {
    width: calc(100% - 40px);
    height: 27px;
    margin: 8px;
    background: var(--white);
    font-size: 80%;
    padding: 0 10px;
    text-align: center;
    border: 1px solid var(--gray);
    border-radius: 6px 6px;
    box-shadow: none;
    -webkit-appearance: none
}

input.search_db, input.select_search_db {
   /*  width: calc(100% - 79px); */
   flex: 1;
}

.search>span.icon-cancel {
    /* the "empty input" */
    font-size: 120%;
    color: var(--white);
    position: absolute;
    top: 5px;
    right: 14px;
}

li.search {
    display: flex;
    flex-direction: row;
}

li.search, li.search_db, li.select_search_db {
    background-color: var(--gray-light);
}

input.search.placeholder, input.search_db.placeholder, input.select_search_db.placeholder {
    text-align: center;
}

/* ------------------ */
/*   Input textarea   */
/* ------------------ */

textarea {
    border: 0;
    width: calc(100% - 5px);
    display: block;
    padding: 5px 5px 5px 0;
    font-size: inherit;
    color: var(--gray-dark);
    height: 80px;
    min-height: 80px;
    overflow-y: scroll;
    font-family: inherit;
}

li.textarea {
    height: 100%;
}

/* ---------- */
/*   Meter    */
/* ---------- */

.meter {
    background-color: var(--white);
    position: relative;
    height: 30px;
    margin: 10px 15px;
    border-radius: 0px;
    border: 1px solid var(--gray-dark);
    width: calc(100% - 32px);
}

.meter>span, .meter>div {
    padding: 4px;
    position: absolute;
    display: inline-block;
}

.meter>div {
    background-color: var(--green);
    border-radius: 0px 0 0 0px;
    color: var(--white);
    max-width: calc(100% - 8px);
    white-space: nowrap;
    overflow: hidden;
}

.meter_red {
    background-color: var(--red) !important;
}

.list-label span.meter {
    width: 30px;
    display: inline-block;
    height: 7px;
    margin: 0 3px 0 0;
}

.list-label span.meter>span {
    height: 100%;
    padding: 0;
    background: var(--green-dark);
}

/* ------------ */
/*    Footer    */
/* ------------ */

#footer {
    position: absolute;
    width: 86%;
    margin-left: 7%;
    bottom: 40px;
    display: none;
    z-index: 700;
    text-align: center;
}

#footer>div {
    background: var(--gray-dark);
    padding: 10px;
    color: var(--white);
    border-radius: 4px;
}

.footer-red {
    background: var(--red) !important;
}

/* -------------------- */
/*    History/Sorting   */
/* -------------------- */

#sorting, #history, #sketch-tools {
    position: absolute;
    top: 46px;
    transition-duration: 0.3s;
    transform: translate3d(0, 0, 0);
    display: block;
    width: 280px;
    z-index: 500;
    background: var(--gray-light);
    border-right: 1px solid var(--gray-dark);
    box-shadow: 1px 0px 8px var(--gray-dark);
    font-size: 85%;
    bottom: 0;
    overflow: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

#sortandfilter {
    margin: 0px 0px 0 12px;
    color: var(--blue);
}

#sorting.hide {
    transform: translate3d(-310%, 0, 0);
}

#sorting button {
    width: 42%;
    text-align: center;
    margin-top: 30px;
}

#history, #sketch-tools {
    top: -390px;
    left: 0px;
    height: 370px;
    width: 90%;
    border: 1px solid var(--gray-dark);
    margin: 0 5%;
}

#history-handle {
    display: none;
}

#history-handle>span, #sketch-tools-handle>span {
    max-width: 50px;
    background-color: var(--gray);
    height: 6px;
    border-radius: 0 0 10px 10px;
    display: block;
    margin: auto;
    padding-top: 3px;
    top: 46px;
    position: relative;
}

#history-handle>span>p, #sketch-tools-handle>span>p {
    background-color: var(--white);
    width: 70%;
    height: 2px;
    margin: auto;
}

#sorting ul, #history ul {
    margin: 12px 0;
}

#sorting li, #history li {
    height: 38px;
    line-height: 38px;
}

#sorting .list-header, #history .list-header {
    height: 20px;
    line-height: 20px;
    padding-left: 8px;
}

#sorting .inp {
    padding: 0px 10px;
}

#sorting select {
    padding-right: 0;
    padding-top: 0;
}

#sorting input[type=radio] {
    float: right;
    padding: 10px;
    margin-top: 8px;
    -webkit-appearance: none;
    border-color: var(--gray-dark);
}

#sorting input[type=radio]:checked {
    background: var(--green);
}

.sort-info {
    color: var(--gray-dark);
    font-size: 80%;
    padding: 20px 15px;
    display: block;
}

.sort-info.icon-info {
    color: var(--gray-light);
}

/* ---------------- */
/*    Checkboxes    */
/* ---------------- */

.check-label {
    max-width: calc(100% - 88px); /* give it max width */
}

input[type=checkbox] {
    visibility: hidden;
}

/* ---------------- */
/*    Page slide    */
/* ---------------- */

.page-trans {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    display: block;
}

.page-trans.left {
    -webkit-transform: translate3d(-100%, 0, 0);
    transform: translate3d(-100%, 0, 0);
}

.page-trans.center {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.page-trans.right {
    -webkit-transform: translate3d(100%, 0, 0);
    transform: translate3d(100%, 0, 0);
}

.page-trans.top {
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(-100%, 0, 0);
}

.page-trans.bottom {
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(-100%, 0, 0);
}

.page-trans.transition {
    -webkit-transition-duration: .25s;
    transition-duration: .25s;
}
    

/* -------------------------- */
/*    Pull down to refresh    */
/* -------------------------- */

.scroll_refresh {
    position: fixed;
    text-align: center;
    top: 80px;
    left: 0;
    right: 0;
    z-index: -100;
}

.scroll_refresh>span {
    display: none;
}

.touch_scroll {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    bottom: -1px;
}

/* -------------------------- */
/*    Docs - show pure html   */
/* -------------------------- */

#html-text {
    padding: 5px;
}

#html-text img {
    border: none;
}

/* -------------------------- */
/*    Chats                   */
/* -------------------------- */

.chat-box-wrapper, .chat-content {
    /* width: 99%; */
    overflow-x: hidden;
}

.chat-content>div {
    display: inline-block;
    width: 99%;
}

.chat-date {
    width: 100%;
    margin: 10px;
    font-size: 70%;
    text-align: center;
}

.chat-text {
    border: 1px solid var(--gray);
    border-radius: 8px;
    max-width: 75%;
    padding: 3px 6px;
    margin: 2px 6px;
}

.chat-content .chat-icon {
    font-size: 170%;
    color: var(--blue-light);
    padding: 0 0 0 10px;
}

.chat-content textarea {
    padding-left: 5px;
}

.chat-text-left {
    background-color: var(--white);
}

.chat-left {
    float: left;
}

.chat-text-right {
    background-color: var(--blue-light-alpha2);
}

.chat-right {
    float: right;
}

.chat-left .chat-link {
    background-color: rgba(150, 150, 150, 0.1);
}

.chat-link {
    border: 1px solid var(--gray);
    padding: 2px 1px 0;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.chat-img>img {
    border: 1px solid var(--gray);
    border-radius: 8px;
    max-width: 75%;
    margin: 2px 6px;
}

.chat-right>img {
    float: right;
}

.chat-send textarea {
    padding-left: 5px
}

.chat-tools {
    padding: 5px 10px;
    color: var(--blue);
    padding: 0 8px 5px 8px;
}

.chat-tools .icon-thumbs-up {
    color: var(--blue-light);
    margin-left: 8px;
}
    
.chat-send {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--white);
}

.chat-send-btn {
    float: right;
    background: var(--green);
    padding: 5px 7px;
    border-radius: 5px;
}


#page-chat .page-content {
    bottom: 122px;
    height: initial;
}

.chat-blink-new-msg {
    animation: chat-new-msg-bg 0.4s cubic-bezier(.5, 0, 1, 1) 6 alternate;
}

.chat-sender-header {
    padding: 0px 0px 0px 8px;
    max-width: 100px;
}

@keyframes chat-new-msg-bg {
    to {
        background-color: var(--gray);
    }
}

.chat-blink-new-thumbs-up-icon {
    animation: chat-new-msg-rotate 0.4s cubic-bezier(.5, 0, 1, 1) 6 alternate;
}

@keyframes chat-new-msg-rotate {
    to {
	transform: rotate(-20deg);
    }
}

/* -------------------------- */
/*    Tiles                   */
/* -------------------------- */

#tiles {
    margin: 3px;
}

#tiles ul {
    margin: 10px 0;
}

#tiles li {
    border: 0px solid var(--blue);
    border-radius: 18px;
    filter: grayscale(20%);
}

#tiles li div {
    margin: 5px;
    font-size: 4.2vw;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-overflow: ellipsis;
    overflow: hidden;
    /* white-space: nowrap; */
    height: calc(100% - 10px);
    /* 2 x margin less */
    text-align: center;
    line-height: 110%;
}

#tiles li:hover {
    cursor: pointer;
}

#tiles li span.icon {
    position: absolute;
    font-size: 13vw;
    width: 100%;
    /* right: -20px; */
    opacity: 0.5;
    top: 7%;
    /* text-align: center; */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

#tiles [class*=" icon-"]:before {
    margin-right: 0;
}

#tiles li span.badge {
    position: absolute;
    top: 1.5vw;
    right: 1.5vw;
    border: 0.6vw solid;
    font-size: 4vw;
    line-height: 5vw;
    margin-top: 0;
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-0.5deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(0.5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

.wiggle {
    display: inline-block;
    animation: wiggle .2s infinite;
}

/* -------------------------- */
/*    Journal                 */
/* -------------------------- */

.journal-wrapper {
    margin: 0 10px;
}

.journal-item-spacer {
    width: 12px;
    height: 20px;
    margin: 2px 2px 5px 2px;
    border-right: 1.5px solid var(--gray);
}

.journal-item-spacer-start {
    margin-left: 8px;
    height: 10px;
    width: 10px;
    border-radius: 100px;
    border: 2px solid var(--gray);
    margin-top: 10px;
}

.journal-item-user-icon {
    width: 28px;
    height: 28px;
    float: left;
    padding: 0;
    border: 0 !important;
    background-size: 28px 28px !important;
    background-repeat: no-repeat;
    background: url('https://tracelink.dk/admin/imgs/no-profile-neg.png');
    border-radius: 50%;
    margin: -2px 0 3px 0;
}

.journal-action {
    margin: 0 1px;
    float: right;
}

.journal-action-user-img {
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 50%;
    margin-top: -1px;
}

.journal-action-user-initials {
    /* border: 1px solid var(--gray-dark); */
    border-radius: 50%;
    background: var(--gray);
    color: var(--white);
    width: 22px;
    height: 22px;
    display: inline-block;
    text-align: center;
    font-size: 70%;
    font-weight: bold;
}
 
.journal-item-header, .journal-item-body {
    background: var(--gray-light);
    line-height: 27px;
}

.journal-item-header-name {
    display: inline-block;
    margin-left: 5px;
    font-size: 90%;
    width: calc(100% - 290px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.journal-item-header-date {
    float: right;
    margin-right: 0px;
    font-size: 70%;
    opacity: 0.5;
    line-height: 20px;
}

.journal-item-body {
    border: 1px solid var(--gray);
    background: var(--white);
    line-height: 130%;
    margin-top: 0px;
    padding: 7px;
    font-size: 90%;
}

.journal-item-body textarea {
    border: 0;
    padding: 5px;
}

.journal-item-event {
    margin-left: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.journal-item-event-icon {
    display: inline-block;
    border-radius: 20px;
    height: 20px;
    width: 20px;
    line-height: 2;
    text-align: center;
    font-size: 70%;
    font-weight: normal;
}

.journal-item-event-icon[class*=" icon-"]:before {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.journal-item-event-text {
    margin-left: 8px;
    font-size: 75%;
}

.journal-tools-button {
    float: right;
    font-size: 70%;
    margin-right: 3px;
    margin-left: 8px;
    opacity: 0.7;
    line-height: 30px;
}

/* -------------------------- */
/*    Mark Down               */
/* -------------------------- */

.journal-item-body hr {
    display: block;
    border-bottom: 1px solid var(--gray);
    margin: 7px 0 11px 0;
}

.md-yellow {
    padding: 2px 3px;
    background: var(--yellow);
}

.md-center {
    text-align: center;
    display: block;
}

.md-code {
    display: inline-block;
    font-family: monospace;
    font-size: 110%;
    padding: 5px 3px;
    background: var(--gray-light);
    margin: 10px;
    white-space: pre;
    line-height: 80%;
}

.md-link {
    border-bottom: 1px solid var(--blue-light);
    color: inherit;
}

/* -------------------------- */
/*    PIN board               */
/* -------------------------- */

.num-pad {
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--blue);
    margin: 10px;
    font-size: 50px;
    line-height: 85px;
    color: var(--white);
    /* //color: var(--green); */
    border: 0px solid var(--blue);
}

.num-ctrl {
    background: var(--gray);
    border: 0px solid var(--gray);
}

span.num-ctrl::before {
    margin-right: 0;
    font-size: 100%;
}

.num-input {
    display: inline-block;
    width: 20px;
    height: 19px;
    border-radius: 50%;
    border: 1px solid var(--gray);
    margin: 10px;
}

.num-input-fill {
    background: var(--gray);
}


/* -------------------------- */
/*    MOSAIC                  */
/* -------------------------- */

.mosaic-wrapper {
    min-height: 100vh;
	margin-top: 20px;
}

.mosaic-img img {
    min-width: 99%;
    margin: 0 0.25%;
}

.mosaic-img div {
    width: 99%;
    margin: 0 0.5%;
    background: var(--gray-dark);
    text-align: center;
    padding: 150px 0;
    font-size: xx-large;
    position: relative;
    color: var(--white);
}

.mosaic-name {
    text-align: center;
    padding: 10px 5px 15px;
}

span.mosaic, span.simpleview {
    display: block;
    height: 30px;
    font-size: xx-large;
    margin: 1%;
    text-align: center;
    float: right;
    color: var(--gray);
}

span.mosaic > span, span.simpleview > span { /* move closer to the list */
    top: 20px;
    position: relative;
}

span.folder-name {
	top: 30px;
	position: relative;
	margin-left: 15px;
	color: var(--gray-dark);
}

img.lazy {
    background: url(https://tracelink.dk/admin/imgs/loading.gif) no-repeat center;
    margin: 0px auto;
}

.lazy {
    display: none;
}

.lazyLoading {
    display: block;
    border: 4px solid var(--gray-dark);
    border-top-color: var(--gray-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: loading-spin 1s linear infinite;
    margin: auto;
    background-image: none !important;
}

@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.mosaic-img div a {
    color: var(--white);
}

/* Slider */

.slider-container {
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	height: 260px;
	width: fit-content;
    }
    
    .slider {
	min-width: max-content;
	width: 100%;
    }
    
    .slider-container .docdownload {
	float: left;
	display: inline-block;
	margin-right: 7px;
    }
    .slider-container .docdownload img{
	max-height: 230px;
	width: auto;
    }

/* -------------------------- */
/*    Simple view               */
/* -------------------------- */

.list-table.simple-wrap {
    display: inline-flex;
    white-space: break-spaces;
    overflow-x: revert;
    line-height: initial;
}

.list-table.simple-hide {
    display: none;
    width: 0;
}

.simple-li {
    height: auto;
}

.list-table.simple-wrap-last {
    display: contents;
}

/* ------------------------------ */
/*  QC form order                 */
/* ------------------------------ */

ul.qcform li, ul.econ_collector li /*, ul.table-header li */ {
    height: fit-content;
}

/* .tab_content li { */
/*     height: fit-content; */
/* } */

/* .inp p { */
/*     white-space: normal; */
/*     position: relative; */
/*     display: inline-flex; */
/*     padding: 3.5px 0 0; */
/* } */

/* ul li {
    height: 100%;
} */

/* .inp .mobileCheckbox { */
/*     top: -3.5px; */
/* } */

#sellist li a, #sellist li p {
    display: flex;
}

/* ------------------------------ */
/*  mobilecalendar jQuery plugin  */
/* ------------------------------ */

.cal-header {
    width: 100%;
    border-bottom: 1px solid var(--gray);
    position: absolute;
    height: 90px;
}

.cal-prev-week {
    width: 6%;
    font-size: 120%;
    padding: 33px 0 20px 2%;
    display: inline-block;
    font-family: fontello;
    float: left;
    color: var(--gray-dark);
}

.cal-prev-week:after {
    content: '\e765';    
}
.cal-next-week {
    width: 6%;
    font-size: 120%;
    padding: 33px 2% 20px 0;
    display: inline-block;
    font-family: fontello;
    text-align: right;
    color: var(--gray-dark);
    float: right;
}

.cal-next-week:after {
    content: '\e766';
}

.cal-header-footer {
    text-align: center;
    color:  var(--gray-dark);
    font-size: 85%;
    margin-bottom: 3px
}

.cal-day-schedule {
    height: 100%;
    background: var(--white)fff;
    position: absolute;
    width:  100%;
    top: 91px;
    overflow: auto;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.cal-schedule-hour {
    color:  var(--gray-dark);
    font-size: 75%;
    height: 50px;
    padding-left: 9px;
}

.cal-schedule-line {
    display: inline-block;
    width: calc(100% - 41px);
    float:  right;
    left:  50px;
    right: 5px;
    margin-top: 7px;
    padding: 0;
    border-bottom: 1px solid var(--gray-light);
}

.cal-day {
    display:  inline-block;
    width: 12%;
    text-align: center;
    color: var(--gray-dark);
    font-size: 90%;
    padding: 10px 0 0px;
}

.cal-day-date {
    display: block;
    color:  initial;
    font-size: initial;
    margin: 8px 0px;
    line-height: 22px;
    font-size: 115%;
}

.cal-day-date-text {
    border-radius: 50%;
    width: 29px;
    height: 24px;
    display: inline-block;
    padding-top: 6px;
    margin-top: -6px;
}
.cal-date-active {
    color: var(--gray-light);
    background: var(--blue);
}

.cal-date-today-sel {
    background: var(--green);
}

.cal-date-today {
        color: var(--green);
        background: inherit;
}

.cal-schedule-event {
    position: inherit;
    left: 50px;
    right: 0px;
    background: var(--green-alpha2);
    border-left: 3px solid var(--green);
    padding: 5px;
    font-size: 90%;
    overflow: scroll;
    min-height: 15px;
}

.cal-schedule-event-time {
    font-size: 85%;
    display: inherit;
    color: var(--gray-dark);
    padding-bottom: 2px;
}

.cal-schedule-now {
    border: 0.5px solid var(--red-alpha2);
    position: inherit;
    right: 0px;
    left: 0px;
    /* width:  50px; */
}

/* ------------------------------ */
/*  Formating (TinyMCE)           */
/* ------------------------------ */

.formating ul, .journal-item-body ul {
    list-style-type: initial;
    margin: 0 0 0 20px;
}

.formating ol, .journal-item-body ol {
    list-style-type: decimal;
    margin: 0 0 0 20px;
}

.formating li, .journal-item-body li {
    border: none;
    line-height: initial;
    height: initial;
    white-space: break-spaces;
    margin: 3px 12px;
}