@font-face {
	font-family: 'Bradley Hand ITC';
	src: url('../data/fnt/bradhitc-webfont.eot');
	src: local('bradhitc-webfont'), url('../data/fnt/bradhitc-webfont.woff') format('woff'), url('../data/fnt/bradhitc-webfont.ttf') format('truetype');
}
@font-face {
	font-family: 'Comic Sans MS';
	src: url('../data/fnt/ComicSansMS.eot');
	src: local('ComicSansMS'), url('../data/fnt/ComicSansMS.woff') format('woff'), url('../data/fnt/ComicSansMS.ttf') format('truetype');
}
@font-face {
	font-family: 'Comic Zine';
	src: url('../data/fnt/COMIZ.eot');
	src: local('COMIZ'), url('../data/fnt/COMIZ.woff') format('woff'), url('../data/fnt/COMIZ.ttf') format('truetype');
}
@font-face {
	font-family: 'Lucida Calligraphy';
	src: url('../data/fnt/LCALLIG.eot');
	src: local('LCALLIG'), url('../data/fnt/LCALLIG.woff') format('woff'), url('../data/fnt/LCALLIG.ttf') format('truetype');
}
@font-face {
 font-family: "Thirsty Rough Reg Two";
 src: url('../data/fnt/ThirstyRoughRegularTwo.otf') format("opentype");
}
@font-face {
    font-family: "Tangerine";
    src: url('../data/fnt/Tangerine_Bold.ttf') format("truetype");
}
@font-face {
    font-family: "Tangerine";
    src: url('../data/fnt/Tangerine_Regular.ttf') format("truetype");
}
:root {
    --viewport-scale: 0.6;
    --sat: 0px;
    --sat: constant(safe-area-inset-top);
    --sat: env(safe-area-inset-top);
    --sab: 0px;
    --sab: constant(safe-area-inset-bottom);
    --sab: env(safe-area-inset-bottom);
    --sal: 0px;
    --sal: constant(safe-area-inset-left);
    --sal: env(safe-area-inset-left);
    --sar: 0px;
    --sar: constant(safe-area-inset-right);
    --sar: env(safe-area-inset-right);
    /* --sat-scale: calc(var(--sat) / var(--viewport-scale));
    --sab-scale: calc(var(--sab) / var(--viewport-scale));
    --sal-scale: calc(var(--sal) / var(--viewport-scale));
    --sar-scale: calc(var(--sar) / var(--viewport-scale)); */
    --sat-scale: 0px;
    --sat-scale: calc(constant(safe-area-inset-top) / var(--viewport-scale));
    --sat-scale: calc(env(safe-area-inset-top) / var(--viewport-scale));
    --sab-scale: 0px;
    --sab-scale: calc(constant(safe-area-inset-bottom) / var(--viewport-scale));
    --sab-scale: calc(env(safe-area-inset-bottom) / var(--viewport-scale));
    --sal-scale: 0px;
    --sal-scale: calc(constant(safe-area-inset-left) / var(--viewport-scale));
    --sal-scale: calc(env(safe-area-inset-left) / var(--viewport-scale));
    --sar-scale: 0px;
    --sar-scale: calc(constant(safe-area-inset-right) / var(--viewport-scale));
    --sar-scale: calc(env(safe-area-inset-right) / var(--viewport-scale));
    /* --sab-scale: 100px; */
    --labelWidth: 50px;
}
html, body {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
          -webkit-touch-callout: none; /* Safari */
            -webkit-user-select: none; /* Chrome */     
               -moz-user-select: -moz-none; /* Firefox */
                -ms-user-select: none; /* Internet Explorer/Edge */
                    user-select: none;
    -webkit-text-size-adjust: 100%;
       -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
            text-size-adjust: 100%;
}
html{
    background-color: black;
    width:100%;
    height: 100%;
}
body{
    position: absolute;
    top: 0px;
    top: var(--sat-scale);
    bottom: 0px;
    bottom: var(--sab-scale);
    left: 0px;
    left: var(--sal-scale);
    right: 0px;
    right:  var(--sar-scale);
    width: 100%;
    width:calc(100% - var(--sal-scale) - var(--sar-scale));
    height: 100%;
    height:calc(100% - var(--sat-scale)- var(--sab-scale));
    overflow: hidden;
    padding: 0px;
    margin: 0px;
    background-color: white;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}
body.splash{
    background-color: transparent;
    background-image: url(../img/logo.png);
    background-size: auto;
    background-position: center;    
}
header{
    display: block;
    padding-top:0px;
    font-size: 30px;
    font-weight: bold;
	position: absolute;
	left:0px;
	top:0px;
	right:0px;
	height:70px;
    line-height: 70px;
    background-color: #07f;
    background-image: url(../img/logo.png);
    background-size: 50px;
    background-position-x: 8px;
    background-position-y:  center;
    background-repeat: no-repeat;
    color: #eee;
    overflow: hidden;
    white-space: nowrap;
    z-index: 100;
}
header.subpage{
    background-position-x: calc(8px + 22px);
}
body.splash header{
    display: none;
}
header > span{
	display: inline-block;
    box-sizing: border-box;
    width: calc(100% - 55px);
	padding-left: 70px;
    background-image: none;
	background-size: 30px;
    background-position-x: 0px;
    background-position-y: center;
    background-repeat: no-repeat;
    text-decoration:none;
    cursor: auto;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.offline header > span::before{
    content: "";
    position: absolute;
    display: block;
    width: 20px;
    height: 20px;
    background-image: url(../img/offline.png);
    background-size: 100%;
    background-position-x: 0px;
    background-position-y: center;
    background-repeat: no-repeat;
    filter: invert(0.8);
    margin-left: -23px;
    margin-top: 5px;
}

header.subpage > span{
    padding-left: 90px;
    cursor: pointer;
}
header.subpage > span:after{
	content: "";
    position: absolute;
    width: 30px;
    height: 70px;
    background-color: transparent;
    background-image: url(../img/arrow-left.png);
    background-position: center;
    background-repeat: no-repeat;
    -webkit-filter: invert(100%);
    filter: invert(100%);
    left: 0px;
    background-size: 30px;
}
[page*="heft"] header{
    line-height: 40px;
    background-size: 30px;
    background-position-y: 5px;
    overflow: visible;
}
[page*="heft"] header > span{
	padding-left: 70px;
    height: 40px;
}
[page*="heft"] header.subpage > span:after{
    height: 40px;
}

[page="home"] header > span{
    background-image: none;
	display: inline-block;
	padding-left: 70px;
    cursor: auto;
}

header>update{
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 12px;
    padding: 4px;
    position: absolute;
    z-index: 500;
    right: 70px;
    top: 10px;
    height: 40px;
    line-height: 40px;
    cursor: pointer;
}
header>update.show{
    visibility: visible;
}
header>div{
    position: absolute;
    top: 0px;
    right: 0px;
    padding: 10px;
    height: 50px;
    z-index: 100;
}
header>div>span{
    width: 50px;
    height: 50px;
    margin-left: 5px;
    display: inline-block;
    text-decoration:none;
    border-radius: 12px;
}
header>div>span::before{
	content: "";
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background-image: none;
    background-size: 100%;
    background-position-x: 0px;
    background-position-y: center;
    background-repeat: no-repeat;
    border-radius: inherit;
}
header>div>span:hover{
    box-shadow: 0 0 10px #00f !important;
}
[page*="heft"] header>div{
	height: 30px;
	padding: 5px 10px;
}
[page*="heft"] header>div>span{
	width: 30px;
	height: 30px;
	border-radius: 6px;
}

.offline header>div>span{
	pointer-events: none;
}

header>div>span.user::before{
    background-image: url(../img/user.png);
}
header>div>span.user.auth::before{
    filter: brightness(10);
}
header>div>span.edit::before{
    background-image: url(../img/editBig.png);
}
.edit>header>div>span.edit::before{
    box-shadow: 0 0 10px #00f inset;
}
header>div>span.add::before{
    background-image: url(../img/addBig.png);
}
:not(.edit)>header>div>span.add{
	display: none;
}
header>div>span.ical::before{
    background-image: url(../img/ical.png);
}
header>div>span.save::before{
    background-image: url(../img/save.png);
}
header>div>span.cloud::before{
    background-image: url(../img/cloud.png);
    opacity: 60%;
}
header>div>span.lokal::before{
    background-image: url(../img/lokal.png);
    opacity: 60%;
}
.safari header>div>audio{
    position: absolute;
    height: 50px;
    width: 70px;
    top: -18px;
    right: 0px;
}
.safariAlt header>div>audio{
    position: absolute;
    height: 70px;
    width: 70px;
    right: 0px;
    top: -13px;
}

header > tools{
    display: none;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 40px;
    padding-left: 2px;
    height: 30px;
    line-height: 25px;
    background: #eee;
    padding: 1px 4px;
    font-size: 22px;
    color: #888;
}
[page*="heft"] header > tools{
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select:none;
    user-select: none;
}
header > tools tool {
    width: 20px;
    height: 20px;
    padding: 2px 2px 2px 2px;
    margin: 2px 2px 2px 2px;
    font-size: inherit;
    font-weight: bold;
    line-height: 20px;
    vertical-align: top;
    border: 1px solid transparent;
    display: none;
    pointer-events: all;
}
header > tools tool:first-child {
    margin-left: 2px;
}
header > tools tool.selected{
    background-color: #eef;
    border-radius: 2px;
    border: 1px solid #bbf;
}
header > tools tool:hover{
    background-color: #ccf;
    border-radius: 2px;
}
header > tools tool.img {
	background-size: 20px;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    text-decoration:none;
    cursor: pointer;
}
.edit header > tools tool.img {
    display: inline-block;
}
header > tools b{
    font-size: 30px;
    vertical-align: top;
    display: none;
}
.edit header > tools b{
    display: inline-block;
}
header > tools span{
    font-weight: normal;
    line-height: 18px;
    display: none;
}
.edit header > tools span{
    display: inline-block;
}

header > tools select{
    font-size: 14px;
    height: 20px;
    display: none;
}
.edit header > tools select{
    display: inline-block;
}
header > tools input {
    font-size: 14px;
    height: 14px;
    display: none;
}
.edit header > tools input {
    display: inline-block;
}

header > tools tool#heftPrint {
    background-image: url(../img/print.png);
    display: inline-block;
}
header > tools tool#heftSave {
    background-image: url(../img/save.png);
}
header > tools tool#pageAdd {
    background-image: url(../img/pageAdd.png);
}
header > tools tool#pageDel {
    background-image: url(../img/pageDel.png);
}
header > tools tool#objectNewTxt {
    background-image: url(../img/objectNewTxt.png);
}
header > tools tool#objectNewRtf {
    background-image: url(../img/objectNewRtf.png);
}
header > tools tool#objectNewImg {
    background-image: url(../img/objectNewImg.png);
}
header > tools tool#objectNewLied {
    background-image: url(../img/objectNewLied.png);
}
header > tools tool#objectDel {
    background-image: url(../img/objectDel.png);
}
header > tools tool#filterInvert {
    background-image: url(../img/filterInvert.png);
}
header > tools tool#filterInvert select#filterInvertValue {
    display: none;
    margin-top: 25px;
    margin-left: -5px;
}
header > tools tool#filterInvert #filterInvertValue.on {
    display: initial;
}
header > tools tool#backgroundColor {
    background-image: url(../img/bgColor.png);
}
header > tools tool#foreColor {
    background-image: url(../img/font.png);
}
header > tools tool#foreColor>div,
header > tools tool#backgroundColor>div{
	display: none;
	background-image: url(../img/transparency.png);
	background-size: 13px;
	margin-top: 25px;
	margin-left: -5px;
	width: fit-content;
}
header > tools tool#foreColor>div.on,
header > tools tool#backgroundColor>div.on{
	display: inline-block;
}
header > tools tool#foreColor>div>div,
header > tools tool#backgroundColor>div>div{
	border: 1px solid #888;
	display: inline-block;
	padding: 5px;
}
header > tools tool#foreColor input#foreColorRGB,
header > tools tool#backgroundColor input#backgroundColorRGB {
    block-size: 27px;
}
header > tools tool#foreColor input#foreColorAlpha,
header > tools tool#backgroundColor input#backgroundColorAlpha {
    width: 100px;
}

header > tools select#objectNewImgList {
    width: 120px;
    margin: 0px 4px 0px 2px;
}
header > tools select#objectNewLiedList {
    width: 120px;
    margin: 0px 4px 0px 2px;
}
header > tools select#fontFamily {
    width: 120px;
    margin: 0px 4px 0px 2px;
}
header > tools input#fontSize {
    width: 45px;
    margin: 0px 4px 0px 2px;
}
header > tools tool#fontWeight {
    background-image: url(../img/fontWeightBold.png);
}
header > tools tool#fontStyle {
    background-image: url(../img/fontStyleItalic.png);
}
header > tools tool#textDecorationLine {
    background-image: url(../img/textUnderline.png);
}
header > tools tool#textAlignLeft {
    background-image: url(../img/textAlignLeft.png);
}
header > tools tool#textAlignCenter {
    background-image: url(../img/textAlignCenter.png);
}
header > tools tool#textAlignRight {
    background-image: url(../img/textAlignRight.png);
}
header > tools tool#rotateRight {
    background-image: url(../img/rotateRight.png);
}
header > tools tool#rotateLeft {
    background-image: url(../img/rotateLeft.png);
}
header > tools tool#transformScaleX {
    background-image: url(../img/transformScaleX.png);
}
header > tools tool#transformScaleX select#transformScaleXValue {
    display: none;
    margin-top: 25px;
    margin-left: -5px;
}
header > tools tool#transformScaleX #transformScaleXValue.on {
    display: initial;
}
header > tools tool#transformScaleY {
    background-image: url(../img/transformScaleY.png);
}
header > tools tool#transformScaleY select#transformScaleYValue {
    display: none;
    margin-top: 25px;
    margin-left: -5px;
}
header > tools tool#transformScaleY #transformScaleYValue.on {
    display: initial;
}

main{
    position: absolute;
    margin: 0px;
    top:70px;
    left:0px;
    bottom: 0px;
    right:0px;
    -webkit-overflow-scrolling: touch;
}
body.splash main{
    display: none;
}
main > div:first-child{
    position: absolute;
    margin: 0px;
    top:0px;
    left:0px;
    bottom:0px;
    right:0px;
    padding-bottom: 0px;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) / var(--viewport-scale));
    overflow:auto;
    -webkit-overflow-scrolling: touch;
}
main.mappe > div:first-child,
main.lieder > div:first-child{
    right: 30px;
}
[page*="heft"] main{
    position: absolute;
    margin: 0px;
    top:70px;
    left:0px;
    bottom: 20px;
    bottom: calc((env(safe-area-inset-bottom, 0px) / var(--viewport-scale)) + 20px);
    right:0px;
    overflow:auto;
    -webkit-overflow-scrolling: touch;
}
[page*="heft"] main > div:first-child::after{
    padding-bottom: 0px;
}
footer{
    display: none;
    position: absolute;
    left: 0px;
    right: 0px;
    bottom:0px;
    bottom: calc(env(safe-area-inset-bottom, 0px) / var(--viewport-scale));
    height: 20px;
    line-height: 20px;
    background: #eee;
    padding: 1px 8px;
    font-size: 16px;
}

[page*="heft"] footer{
    display: initial;
}
body.splash footer{
    display: none;
}
footer > div{
    display: none;
}
.edit footer > div{
    display: block;
}
footer > div span{
    display: inline-block;
    width: auto;
    margin: 0px 2px 0px 0px;
    font-size: 12px;
}
footer span#heftZoomTxt{
    width: 32px;
    text-align: right;
}
footer input[type="range"]{
    vertical-align: top;
}
busy{
    display: none;
    position: absolute;
    margin: 0px;
    top:0px;
    left:0px;
    bottom:0px;
    right:0px;
    background-color: #fff;
    z-index: 2000;
    background-image: url(../img/busy.gif);
    background-repeat: no-repeat;
    background-position: 50%;
    opacity: 0.9;
}
.notch  {
    position: absolute;
    pointer-events: all;
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: 0px;
    height: calc(env(safe-area-inset-bottom, 0px) / var(--viewport-scale));
    background-image: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
    z-index: 10000;
}
register{
    display: none;
    position: absolute;
    margin: 0px;
    top:0px;
    bottom:0px;
    right:0px;
    background-color: #eee;
    overflow-x:visible;
    overflow-y:scroll;
    -webkit-overflow-scrolling: touch;
}
main.mappe register,
main.lieder register{
    display: block;
}
overlay{
    display: none;
    position: absolute;
    margin: 0px;
    top:0px;
    left:0px;
    bottom:0px;
    right:0px;
    background-color: #000;
    opacity: 0.7;
    z-index: 1000;
}
red {
    color: red;
}

.a{
    cursor: pointer;
}
ul{
    list-style:none;
    list-style-type:none;
    margin:0;
    padding:0;
}
ul li{
    display:block;
    margin:0;
    padding:0;
}
ul.tab{
    background-color:#eee;
    /*margin-top:70px;*/
}
ul.tab li{
    font-size:25px;
    padding:8px 10px;
    font-weight: normal;
    border-bottom: 1px solid #888;
}
ul.tab li:last-child{
    border-bottom: none;
}
ul.tab li:hover{
	background-image: radial-gradient(#c0c0fb 0%, #eee 90%);
}
ul.tab li.a>span{
	background-image: url(../img/arrow-right.png);
	background-size: 20px;
    background-position-x: 100%;
    background-position-y: center;
    background-repeat: no-repeat;
    text-decoration:none;
}
ul.tab li.mappe.a,
ul.tab li.termin.a{
	cursor: auto;
}
ul.tab li.arrowDown{
    background-image: url(../img/arrow-down.png);
    font-weight: bold;
}
ul.tab li.lied{
    padding:0px 10px;
}
ul.tab li>span{
    color:#395963;
    line-height:50px;
    text-decoration:none;
    white-space: nowrap;
	display: block;
    width: 100%;
}
ul.tab li.lied>span{
	line-height:50px;
}
ul.tab li>span>span{
	display: inline-block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select:none;
    user-select: none;
}
ul.tab li>span>span:not(.a){
    cursor: default;
}
ul.tab li.lied>span>span.titel{
	width: calc(100% - 65px);
    padding:0px 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}
.mappe ul.tab li.lied>span>span.titel{
    width: calc(100% - 35px);
}
ul.tab li.mappe>span>span.titel,
ul.tab li.termin>span>span.titel{
    width: calc(100% - 20px);
}
.termin ul.tab li.lied>span>span.titel{
    width: calc(100% - 65px);
}
.edit ul.tab li.lied>span>span.titel{
	width: calc(100% - 160px);
}
.edit .mappe ul.tab li.lied>span>span.titel{
    width: calc(100% - 95px);
}
.edit ul.tab li.mappe>span>span.titel,
.edit ul.tab li.termin>span>span.titel{
    width: calc(100% - 90px);
}
.edit .termin ul.tab li.lied>span>span.titel{
    width: calc(100% - 125px);
}
ul.tab li.mappe>span>span.img,
ul.tab li.termin>span>span.img,
ul.tab li.lied>span>span.img,
.info span.img{
	width: 30px;
	height: 35px;
    margin-top: -5px;
    vertical-align: middle;
    border-radius: 8px;
	background-size: 25px;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    text-decoration:none;
}
.info span.img{
    height: 20px;
    background-size: 20px;
}

ul.tab li.mappe>span>span.img.a:hover,
ul.tab li.termin>span>span.img.a:hover,
ul.tab li.lied>span>span.img.a:hover,
.info span.img:hover{
    box-shadow: 0 0 10px #00f;
}
.offline ul.tab li.mappe>span>span.a,
.offline ul.tab li.termin>span>span.a,
.offline ul.tab li.lied>span>span.a{
    pointer-events: none;
}

ul.tab li.termin>span>span.img.pdf,
ul.tab li.lied>span>span.img.pdf{
    background-image: url(../img/pdf.png);
}
ul.tab li.termin>span>span.img.txt,
ul.tab li.lied>span>span.img.txt{
    background-image: url(../img/txt.png);
}
ul.tab li.termin>span>span.img.cloud,
ul.tab li.lied>span>span.img.cloud{
    background-image: url(../img/cloud.png);
    opacity: 60%;
}
ul.tab li.termin>span>span.img.lokal,
ul.tab li.lied>span>span.img.lokal{
    background-image: url(../img/lokal.png);
    opacity: 60%;
}
ul.tab li.mappe>span>span.img.edit,
ul.tab li.termin>span>span.img.edit,
ul.tab li.lied>span>span.img.edit{
    background-image: url(../img/edit.png);
    display: none;
}
.edit ul.tab li.mappe>span>span.img.edit,
.edit ul.tab li.termin>span>span.img.edit,
.edit ul.tab li.lied>span>span.img.edit{
    display: inline-block;
}
ul.tab li.lied>span>span.img.cap{
    display: none;
}
ul.tab li.lied>span>span.img.cap{
    background-image: url(../img/cap.png);
}
.edit ul.tab li.lied>span>span.img.cap{
    display: inline-block;
}
ul.tab li.mappe>span>span.img.trash,
ul.tab li.termin>span>span.img.trash,
ul.tab li.lied>span>span.img.trash,
.info span.trash{
    background-image: url(../img/trash.png);
    display: none;
}
.edit ul.tab li.mappe>span>span.img.trash,
.edit ul.tab li.termin>span>span.img.trash,
.edit ul.tab li.lied>span>span.img.trash,
.info span.trash{
    display: inline-block;
}
ul.tab li.mappe>span>span.img.questionmark,
ul.tab li.termin>span>span.img.questionmark,
ul.tab li.lied>span>span.img.questionmark,
.info span.questionmark{
    background-image: url(../img/questionmark.png);
    display: none;
}
.edit ul.tab li.mappe>span>span.img.questionmark,
.edit ul.tab li.termin>span>span.img.questionmark,
.edit ul.tab li.lied>span>span.img.questionmark,
.info span.questionmark{
    display: inline-block;
}
img.svg {
    width: 100%;
}

/* Register */
ul.reg{
    background-image: linear-gradient(to right, #eee 0%, #bbb 100%);
    width: 30px;
}
ul.reg li{
    font-size:20px;
    padding:1px;
    font-weight: normal;
    text-align: center;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-image: linear-gradient(to top, #eee 0%, #bbb 120%);
}
ul.reg li:hover{
	background-image: linear-gradient(to top, #eee 0%, #c0c0fb 120%);
}

ul.reg li:first-child{
    border-top-left-radius: 0px;
}
ul.reg:after{
	content: "";
	display: inline-block;
	right: 0px;
    width: 30px;
    height: 20px;
	position: absolute;
    border-top-left-radius: 10px;
    background-image: linear-gradient(to top, #eee 0%, #bbb 120%);
    
}

/* Message */
msg{
    display: block;
    position: absolute;
    right: 0px;
    bottom: 0px;
    z-index: 600;
}
msg.confirm:before{
	content: "";
    display: block;
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    background-color: black;
    opacity: 0.6;
    margin-top: -100vh;
    margin-left: -100vw;
}
msg>div{
    position: relative;
    right: 0px;
    display: block;
    width: calc(100% - 6px);
    min-height: 50px;
    background-color: #ddd;
    border-radius: 12px;
    margin: 3px;
    box-sizing: border-box;
    padding: 10px;
    font-size: 25px;
    line-height: 25px;
}
msg>div.green{
	background-color: lightgreen;
}
msg>div.red{
	background-color: lightcoral;
}
msg>div.yellow{
	background-color: lightgoldenrodyellow;
}
msg>div.blue{
	background-color: lightskyblue;
}

msg>div>icon{
	display: inline-block;
	height: 1em;
	width: 1em;
    vertical-align: top;
	margin: 0px 3px;
	background-image: none;
	background-size: 1em;
	background-position: 0px 0px;
}
msg>div>icon.save{
	background-image: url(../img/save.png);
}
msg>div>icon.trash{
	background-image: url(../img/trash.png);
}
msg>div>icon.copy{
	background-image: url(../img/copy.png);
}
msg>div>icon.add{
	background-image: url(../img/add.png);
}
msg>div>icon.changed{
	background-image: url(../img/edit.png);
}
msg>div>icon.pdf{
	background-image: url(../img/pdf.png);
}
msg>div>div.button{
    text-align: right;
    margin-top: 8px;
}
msg>div>div.button>span.a{
display:inline-block;
	margin: 3px;
	border-radius: 5px;
	height: 1em;
	width: 1em;
	padding: 3px;
	vertical-align: middle;
	background-image: none;
	background-size: 1em;
	background-position: 3px 3px;
	background-repeat: no-repeat;
}
msg>div>div.button>span.a:hover{
	box-shadow: 0 0 10px #00f;
}
msg>div>div.button>span.a.yes{
	background-image: url(../img/ok.png);
}
msg>div>div.button>span.a.no{
	background-image: url(../img/cancel.png);
}
/* Dialog */
dlg{
    display: none;
    position: absolute;
    left: 25px;
    top: 25px;
    border-radius: 12px;
    background-color: #ddd;
    z-index: 600;
    max-width: calc(100vw - 30px);
}
dlg.on{
    display: block;
}
dlg.on::before{
	content: "";
	display: block;
	position: absolute;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
	background-color: black;
	opacity: 0.6;
	margin-top: -50vh;
	margin-bottom: -50vh;
	margin-left: -50vw;
	margin-right: -50vw;
}
dlg>div{
    position: relative;
    display: block;
    background-color: #eee;
    border-radius: 10px;
    margin: 3px;
    box-sizing: border-box;
    padding: 10px;
    font-size: 20px;
    padding-top: 0px;
}
dlg>div>span.icon{
	display: inline-block;
	position: absolute;
	left: 5px;
	top: 5px;
	height: 25px;
	width: 25px;
	vertical-align: middle;
	background-image: none;
	background-size: 25px;
    background-repeat: no-repeat;
    background-position: center;
	margin: 2px;
}
dlg>div>span.icon.user{
	background-image: url(../img/user.png);
}
dlg>div>span.icon.add{
	background-image: url(../img/add.png);
}
dlg>div>span.icon.edit{
	background-image: url(../img/edit.png);
}
dlg>div>span.icon.show{
	background-image: url(../img/show.png);
}
dlg>div>span.icon.upload{
	background-image: url(../img/upload.png);
}
dlg>div>span.title{
	display: inline-block;
	position: relative;
	height: 25px;
	max-width: calc(100vw - 50px - 28px);
	margin-top: 7px;
    margin-right: 28px;
	vertical-align: middle;
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
dlg>div>span.title.withIcon{
	margin-left: 28px;
	max-width: calc(100vw - 50px - 28px - 28px);
}
dlg.changed>div>span.title{
	margin-right: 56px;
	max-width: calc(100vw - 50px - 28px - 28px);
}
dlg.changed>div>span.title.withIcon{
	max-width: calc(100vw - 50px - 28px - 28px - 28px);
}
dlg span.button{
    display: inline-block;
    position: absolute;
    width: 25px;
    height: 25px;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    line-height: 26px;
    cursor: pointer;
    vertical-align: text-top;
    border-radius: 5px;
    background-color: transparent;
}
dlg span.button.close{
	top: 5px;
    right: 5px;
}
dlg span.button.ok{
	top: 5px;
    right: 35px;
}
dlg span.button.off{
	display: none;
}
dlg span.button.ok.changed{
	display: none;
}
dlg.changed span.button.ok.changed{
	display: initial;
}
dlg span.button::before{
    content: "";
    position: absolute;
    display: inline-block;
    width: inherit;
    height: inherit;
    text-align:center;
    outline: 1px solid #888;
    outline-offset: -1px;
    border-radius: inherit;
    font-weight: bold;
    font-size: inherit;
    vertical-align: middle;
}
dlg span.button:hover{
    background-color: #bbb;
}
dlg span.button.before{
	margin-right: 5px;
}
dlg span.button.after{
	margin-left: 5px;
}

dlg span.button.close:before{
    content: "✖";
    color: red;
}
dlg span.button.add:before{
    content: "+";
    color: green;
}
dlg span.button.edit:before{
    content: "🖉";
    color: #ee9900;
}
dlg span.button.delete:before{
    content: "🗑";
    color: darkred;
}
dlg span.button.ok:before{
    content: "🗸";
    color: green;
}
dlg span.button.cancel:before{
    content: "🗴";
    color: red;
}
dlg select{
	font-size: 20px;
    height: 23px;
    max-width: calc(100vw - 130px);
    padding: 0px;
}
dlg input[type=file]{
    font-size: inherit;
    width: 400px;
    margin: 20px;
}
dlg>div>div.body {
    position: relative;
    min-height: 50px;
    min-width: 300px;
    max-height: calc(100vh - 105px);
    max-width: calc(100vw - 50px);
    margin-top: 5px;
    overflow-x: auto;
    font-size: 15px;
}
dlg>div>div.body>label{
	display: inline-block;
	width: var(--labelWidth);
	text-align: right;
	vertical-align: top;
	line-height: 20px;
	padding: 0px 2px 2px;
}
dlg>div>div.body>div>textarea,
dlg>div>div.body>div>select,
dlg>div>div.body input{
	display: inline-block;
	font-size: inherit;
	font-family: inherit;
}
dlg>div>div.body>div>textarea{
	min-width: calc(300px - 80px);
    min-height:50px;
	padding: 0px 3px 2px;
}
dlg>div>div.body>div>select{
	min-width: calc(300px - 80px);
}
dlg>div>div.body>input[type=button]{
	width: 100%;
}
dlg>div>div.body>div{
    display: inline-block;
	width: 100%;
    margin-bottom: 5px;
}
dlg>div>div.body>div.center{
	text-align: center;
}
dlg>div>div.body>div#msg{
	font-size: 12px;
	font-weight: bold;
}
dlg>div>div.body>div.withLabel{
    width: calc(100% - var(--labelWidth) - 4px);
}
dlg>div>div.body>div>input[type=text]{
	min-width: calc(300px - 80px);
}
dlg>div>div.body>div>input[type=password]{
	min-width: calc(300px - 80px);
}
dlg>div>div.body>div>input[type=file]{
	min-width: calc(300px - 80px);
	margin: 0px;
}
dlg>div>div.body>div>input[type=checkbox]{
    vertical-align: middle;
}
dlg>div>div.body>div>span{
	display: inline-block;
	min-width: calc(300px - 80px);
}


dlg>div>div.body>table{
    border-spacing: 0px 2px;
    width: 100%;
}
dlg>div>div.body>table>caption.key,
dlg>div>div.body>div.key {
    font-weight: bold;
    margin-top: 7px;
    background-color:#ccc;
	padding: 5px 5px 2px 5px;
	border-radius: 8px;
    text-align: left;
    white-space: nowrap;
}
dlg>div>div.body>table>caption.key span.button,
dlg>div>div.body>div.key span.button {
	position: relative;
	right: unset;
	top: unset;
	font-size: 20px;
	width: 20px;
	height: 20px;
	line-height: 21px;
}
dlg>div>div.body>table>tr.value {
    font-size: 18px;
    max-height: 300px;
    overflow-x: auto;
}
dlg>div>div.body>table>tr.value span.button {
	position: relative;
	right: unset;
	top: unset;
	font-size: 18px;
	width: 19px;
	height: 19px;
	line-height: 21px;
}
dlg>div>div.body>table>tr.value select{
    font-size: 16px;
    height: 19px;
    vertical-align: text-top;
}
dlg>div>div.body> table>tr>td{
	padding: 2px 0px 0px;
}
dlg>div>div.body> table>tr>td:first-child{
	min-width: 60px;
	vertical-align: top;
    padding: 2px 5px 0px;
}
dlg>div>div.body> table[value="timesheet"]>tr>td:first-child{
    width: 60px;
}
dlg>div>div.body> table>tr:nth-child(odd)>td{
	background-color: #ddd;
}


/* Dialog */
ul.dialog{
    font-size: 20px;
}
ul.dialog>li {
    padding: 10px;
}
ul.dialog>li>label{
    display:inline-block;
    width: 60px;
    text-align:right;
    vertical-align: top;
    padding-right: 5px;
    line-height: 20px;
    margin-top: 13px;
}
ul.dialog>li>div{
    display:inline-block;
    width: calc(100% - 65px);
    margin-top: 10px;
}
ul.dialog>li>div>input:not([type="checkbox"]),
ul.dialog>li>div>textarea,
ul.dialog>li>div>select{
    box-sizing: border-box;
    width: 100%;
    border: 1px solid #aaa;
    border-radius: 5px;
    font-family: arial;
    font-size: 20px;
}
ul.dialog>li>div>input[type="checkbox"]{
    height: 20px;
    width: 20px;
}
ul.dialog>li>div>input:not([type="checkbox"]),
ul.dialog>li>div>select{
    height: 27px;
    vertical-align: top;
}
ul.dialog>li>div>span{
    font-size: 18px;
}
/* Dialog LiedEdit */
ul.dialog>li>div>input#liedTitel,
ul.dialog>li>div>input#liedAnmerkung{
    width: 49%;
}
ul.dialog>li>div>input#liedTitel{
    margin-right: 2%;
}
/* DialogTerminEdit */
ul.dialog>li>div>input#terminTag,
ul.dialog>li>div>input#terminGt,
ul.dialog>li>div>input#terminVon,
ul.dialog>li>div>input#terminBis{
    width: unset;
}
/* Dialog MappeEdit */
.mappeEdit ul.dialog>li>label{
    width: 135px;
}
.mappeEdit ul.dialog>li>div{
    width: calc(100% - 140px);
}
ul.dialog>li>div>input#mappeLiedNr{
    width: 50px;
}
ul.dialog>li>div>select#mappeLiedTitel{
    width: calc(100% - 50px);
}
/* Dialog Login */
.login ul.dialog>li>label{
    width: 90px;
}
.login ul.dialog>li>div{
    width: calc(100% - 95px);
}
.loginInitial ul.dialog>li>label{
    width: 160px;
}
.loginInitial ul.dialog>li>div{
    width: calc(100% - 165px);
}
.pwChange ul.dialog>li>label{
    width: 160px;
}
.pwChange ul.dialog>li>div{
    width: calc(100% - 165px);
}
ul.dialog>li>div.loginMessage,
.login ul.dialog>li>div.login,
.loginInitial ul.dialog>li>div.login,
.pwChange ul.dialog>li>div.login{
    width: 100%;
}
.login ul.dialog>li>div.login input,
.loginInitial ul.dialog>li>div.login input,
.pwChange ul.dialog>li>div.login input{
    width: 100%;
    height: 30px;
    border-radius: 5px;
    background-color: #5f5;
    color: #000;
    font-weight: bold;
    font-size: inherit;
}
.pwChange ul.dialog>li>label[for="usr"],
.pwChange ul.dialog>li>div[for="usr"],
.login ul.dialog>li>label[for="npwd"],
.login ul.dialog>li>div[for="npwd"],
.login ul.dialog>li>label[for="npwd2"],
.login ul.dialog>li>div[for="npwd2"],
.login ul.dialog>li>div input#loginInitial,
.login ul.dialog>li>div input#pwChange,
.loginInitial ul.dialog>li>div input#login,
.loginInitial ul.dialog>li>div input#pwChange,
.pwChange ul.dialog>li>div input#loginInitial,
.pwChange ul.dialog>li>div input#login{
    display: none;
}
/* Dialog Info */
.info ul.dialog>li>label{
    width: 160px;
}
.info ul.dialog>li>div{
    width: calc(100% - 165px);
}
.info ul.dialog>li>div[for="log"]{
    font-size: 15px;
    line-break: anywhere;
    word-break: break-all;
}
/* Heft */
ul.pages {
    position: absolute;
    width: 220mm;
}
/* Heft-Seiten */
ul.pages li.page {
    --move-width: 8px;
    --move-height: 8px;
    --move-margin: -5px;
    --move-center: calc(50% - 5px);
    --move-radius: 4px;
    --move-div-margin: 5px;
}
ul.pages li.page {
    position: relative;
    overflow: hidden;
    margin: 5mm auto;
    width: 210mm;
    height: 297mm;
    background: white;
    box-shadow: 0 0 0.5cm #888;
}
ul.pages li.page.a {
    cursor: initial;
}
ul.pages li.page.a::before {
    content: "";
    position: absolute;
    left: 15mm;
    top: 10mm;
    width: 180mm;
    height: 277mm;
    outline: 1px solid #ddd;
    display: block;
    background: transparent;
    pointer-events: none;
}
.edit ul.pages li.page.a {
    cursor: pointer;
}
.edit ul.pages li.page.selected {
    box-shadow: 0 0 0.5cm #bbf;
}
ul.pages li.page div.pageNo {
    bottom: 4mm;
    right: 10mm;
    position: absolute;
    display: none;
    z-index: 1;
}
ul.pages li.page.a div.pageNo {
    display: initial;
}
/* Heft-Objekte */
div.oO {
    position: absolute;
    margin: 0px;
}
div.oO[angle="90"] {
    transform-origin: left bottom;
}
div.oO[angle="180"] {
    transform-origin: right bottom;
}
div.oO[angle="270"] {
    transform-origin: right top;
}
div.oO.a {
    cursor: initial;
    outline: initial;
}
.edit div.oO.a {
    cursor: pointer;
    outline: 1px dashed #bbb;
}
div.oH {
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
div.oI {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    pointer-events: none;
}
div.o, 
embed.o {
    width: 100%;
    height: 100%;
    line-height: 125%;
    cursor: auto;
}
textarea.o {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    padding: 0px;
    overflow: hidden;
    background: transparent;
    resize: none;
    line-height: 125%;
}
div.oMT,
div.oMR,
div.oMB,
div.oML{
    position: absolute;
    display: none;
}
div.oTL, 
div.oT, 
div.oTR, 
div.oR, 
div.oBR, 
div.oB, 
div.oBL, 
div.oL {
    width: 8px;
    width: var(--move-width);
    height: 8px;
    height: var(--move-height);
    background-color: #ddd;
    position: absolute;
    display: none;
    border: 1px solid #000;
}
div.oTL {
    top: -5px;
    top: var(--move-margin);
    left: -5px;
    left: var(--move-margin);
    border-radius: 4px;
    border-radius: var(--move-radius);
    cursor: nw-resize;
}
div.oT {
    top: -5px;
    top: var(--move-margin);
    left: calc(50% - 5px);
    left: var(--move-center);
    cursor: n-resize;
}
div.oTR {
    top: -5px;
    top: var(--move-margin);
    right: -5px;
    right: var(--move-margin);
    border-radius: 4px;
    border-radius: var(--move-radius);
    cursor: ne-resize;
}
div.oR {
    top: calc(50% - 5px);
    top: var(--move-center);
    right: -5px;
    right: var(--move-margin);
    cursor: e-resize;
}
div.oBR {
    bottom: -5px;
    bottom: var(--move-margin);
    right: -5px;
    right: var(--move-margin);
    border-radius: 4px;
    border-radius: var(--move-radius);
    cursor: se-resize;
}
div.oB {
    bottom: -5px;
    bottom: var(--move-margin);
    left: calc(50% - 5px);
    left: var(--move-center);
    cursor: s-resize;
}
div.oBL {
    bottom: -5px;
    bottom: var(--move-margin);
    left: -5px;
    left: var(--move-margin);
    border-radius: 4px;
    border-radius: var(--move-radius);
    cursor: sw-resize;
}
[angle="0"] div.oTL,
[angle="90"] div.oBL,
[angle="180"] div.oBR,
[angle="270"] div.oTR {
    cursor: nw-resize;
}
[angle="0"] div.oT,
[angle="90"] div.oL,
[angle="180"] div.oB,
[angle="270"] div.oR {
    cursor: n-resize;
}
[angle="0"] div.oTR,
[angle="90"] div.oTL,
[angle="180"] div.oBL,
[angle="270"] div.oBR {
    cursor: ne-resize;
}
[angle="0"] div.oR,
[angle="90"] div.oT,
[angle="180"] div.oL,
[angle="270"] div.oB {
    cursor: e-resize;
}
[angle="0"] div.oBR,
[angle="90"] div.oTR,
[angle="180"] div.oTL,
[angle="270"] div.oBL {
    cursor: se-resize;
}
[angle="0"] div.oB,
[angle="90"] div.oR,
[angle="180"] div.oT,
[angle="270"] div.oL {
    cursor: s-resize;
}
[angle="0"] div.oBL,
[angle="90"] div.oBR,
[angle="180"] div.oTR,
[angle="270"] div.oTL {
    cursor: sw-resize;
}
[angle="0"] div.oL,
[angle="90"] div.oB,
[angle="180"] div.oR,
[angle="270"] div.oT {
    cursor: w-resize;
}
div.oL {
    top: calc(50% - 5px);
    top: var(--move-center);
    left: -5px;
    left: var(--move-margin);
    cursor: w-resize;
}
div.oO.selected{
    cursor: move;
    outline: 1px solid #bbf;
    z-index: 10;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select:none;
    user-select: none;
}
.ff div.oO.selected{
    outline-offset: -5px;
}
div.oO.selected div.oI:first-child{
    outline: 1px solid #eee;
}
div.oO.edit{
    cursor: text;
    outline: 1px solid #bbb;
}
div.oO.edit div.oI,
div.oO.edit div.oH{
    pointer-events: all;
}
div.oO.edit div.oI textarea{
    resize: vertical;
}
div.oO.selected div.oMT,
div.oO.selected div.oMR,
div.oO.selected div.oMB,
div.oO.selected div.oML{
    display: block;
}
div.oO.selected div.oTL,
div.oO.selected div.oT,
div.oO.selected div.oTR,
div.oO.selected div.oR,
div.oO.selected div.oBR,
div.oO.selected div.oB,
div.oO.selected div.oBL,
div.oO.selected div.oL{
    display: block;
}
