/*@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,700;1,400;1,700&display=swap');*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*html {box-sizing:border-box; scroll-behavior: smooth;}*/
html {box-sizing:border-box;}

*,*:before,*:after{box-sizing:inherit}

body {background-color: #f3f3f3; color: black; font-size: 10.5pt; font-family: Arial, sans-serif; overflow-y: scroll;
} 

/* Extract from normalize.css by Nicolas Gallagher and Jonathan Neal git.io/normalize */
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}
article,aside,details,figcaption,figure,footer,header,main,menu,nav,section,summary{display:block}
a{background-color:transparent;-webkit-text-decoration-skip:objects}
a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}
dfn{font-style:italic}mark{background:#ff0;color:#000}
small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}
sub{bottom:-0.25em}sup{top:-0.5em}figure{margin:1em 40px}img{border-style:none}svg:not(:root){overflow:hidden}
code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}hr{box-sizing:content-box;height:0;overflow:visible}
button,input,select,textarea{font:inherit;margin:0}optgroup{font-weight:bold}
button,input{overflow:visible}button,select{text-transform:none}
button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}
button::-moz-focus-inner, [type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner{border-style:none;padding:0}
button:-moz-focusring, [type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring{outline:1px dotted ButtonText}
fieldset{border:1px solid #ddd; margin:0 2px; padding:1em 1em 1em}
legend{font-weight: 700; font-size: 0.95em; color:#777; display:table;max-width:100%;padding:0;white-space:normal}textarea{overflow:auto}
[type=checkbox],[type=radio]{padding:0}
[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}
[type=search]{-webkit-appearance:none;outline-offset:-2px}
[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance: searchfield-cancel-button}
::-webkit-input-placeholder{color:inherit;opacity:0.54}
::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}
/* End extract */


input[type=checkbox] {
    -webkit-appearance: none;
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-color: white;
    border-radius: 5px;
    border: 1px solid lightgray;
    margin-right: 0px;
    margin-top: -4px;
    margin-bottom: -4px;
}
input[type=checkbox]:checked {
    background-color: #007eac;
    border: 5px solid #b7ffa9;
}

/*
::-webkit-scrollbar {
  width: 0px;
}

scrollbar {-moz-appearance: none !important;display: none !important;}
*/


::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #ddd;
}
::-webkit-scrollbar-thumb:hover {
  background: #888;
}

:root {
    /* COLORS */
    --dark-grey: #454545; --middle-grey: #999; --light-grey: #f1f1f1;
    --base-blue: #3ba7cf;
    --dark-blue: #008dc1;
    --thin-blue: #cbf1ff;
    --green: green; --clear-green: #4caf50; --pale-green: #b7ffa9;
    --dark-red: #cb0000; --red: #e30000; --pale-red: #ff7171; --thin-red: #ffd0aa;

    
    --main-header-shadow-color: rgba(0, 0, 0, 0.9);

    /* MAIN HEADER */
    --main-header-menu-width: 500px;
    --main-header-menu-button-height: 40px;
    --main-header-menu-button-width: 80px;
    
    --main-page-body-width: 900px;

    /* TRASITION */
    --main-header-transition: all 0.35s ease;
}

/*h1{font-size:36px} h2{font-size:30px} h3{font-size:24px} h4{font-size:20px} h5{font-size:18px} h6{font-size:16px}*/
h1{font-size:30px} h2{font-size:24px} h3{font-size:20px} h4{font-size:18px} h5{font-size:16px} h6{font-size:14px}
h1, h2, h3, h4, h5, h6 {color: #333; font-weight:700; margin:10px 0}

hr {border:0; border-top: 1px solid #eee; margin:10px 0;}

a:link, a:active, a:visited {color: inherit; text-decoration: none;}
a:hover {color: val(--base-blue);}

p {line-height: 1.4em;}

input[type="text"], input[type="file"], input[type="date"], input[type="datetime"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="time"], input[type="url"], textarea, select {
	-webkit-transition: all 0.10s ease-in-out;
	-moz-transition: all 0.10s ease-in-out;
	-ms-transition: all 0.10s ease-in-out;
	-o-transition: all 0.10s ease-in-out;
	outline: none;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	/*width: 100%;*/
	background: #f0f0f0;
	/*margin-bottom: 4%;*/
	border: 1px solid #f0f0f0;
	padding: 6px 10px 6px 10px;
    border-radius: 5px;
    line-height: 1em;
}

select {padding: 5px 10px 5px 5px;}

input[type="text"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="search"]:focus, input[type="time"]:focus, input[type="tel"]:focus, input[type="password"]:focus, input[type="url"]:focus, /*textarea:focus,*/ select:focus {
	box-shadow: 0 0 5px var(--base-blue);
	border: 1px solid var(--base-blue);
}

select option {
    background: #fff;
    color: #000;
}

input[type="submit"], input[type="button"], button, .button {
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	/*width: 100%;*/
	padding: 5px 12px 5px 12px;
	background: var(--base-blue);
	border-style: none;
	color: white;
/*    text-shadow: 1px 0px #333;*/
    font-weight: 700;
    font-size: 0.9em;
    border-radius: 5px;
    margin: 0px 5px 0px 0px;
    transition: var(--main-header-transition);
/*    line-height: 2em;*/
}

input[type="submit"], input[type="button"], button, .button li{
}

input[type="submit"] {
	background: var(--clear-green);
}

input[type="file"] {
	background: #f1f1f1;
    width: 100%;
}

input[type="submit"]:hover, input[type="button"]:hover, button:hover, .button:hover {
    background: #ddd; 
    color: black;
/*    text-shadow: 1px 1px transparent;*/
}

.button-stripped {
	background: transparent;
	border-style: none;
	color: black;
    transition: var(--main-header-transition);
}

.button-stripped:hover {
    background: #f1f1f1;
}

.button-back {
    cursor: pointer;
    position: fixed;
    display: block;
    top: 80px;
    z-index: 12;
    color: var(--base-blue);
    margin-left: -25px;
    background: #fff;
    border-radius: 5px;
    line-height: 30px;
    padding-right: 10px;
    border: solid 1px #ccc;
    transition: var(--main-header-transition);
    
/*
    cursor: pointer;
    position: fixed;
    display: block;
    top: 93px;
    z-index: 12;
    padding: 15px 15px 15px 0px;
    color: var(--base-blue);
    border-radius: 40px;
    margin-left: -5px;
    line-height: 40px;
    background: white;
*/
    
    
}    

.button-back-modal {
    cursor: pointer;
    position: fixed;
    display: block;
    top: -10px;
    z-index: 12;
    padding: 15px 15px 15px 0px;
    color: var(--dark-blue);
    border-radius: 40px;
    margin-left: -25px;
    line-height: 40px;
    background: white;
    transition: var(--main-header-transition);
}    


.button-back-modal:hover {
    color: #000;
}

.button-back:hover {
    color: #000;
}

.button-back-icon {
    display: inline-block;
    font-size: 16px;
    line-height: inherit;
    padding-left: 4px;
}    

.button-back-label {
    display: inline-block;
/*    line-height: inherit;*/
    margin-top: -6px;
    font-weight: bold;
    font-size: 0.95em;
/*    padding-top: 1px;
    padding-bottom: 6px;*/
}    


.button-slide-back {
    cursor: pointer;
    position: fixed;
    display: block;
    top: 15px;
    font-size: 1.5em;
	background: white;
    z-index: 12;
    padding: 15px 15px 15px 10px;
    color: var(--base-blue);
    border-radius: 30px;
    margin-left: -15px;
}    

.button-thin {
    vertical-align: top;
    border-radius: 5px;
    color: white;
    cursor: pointer;
	padding: 2px 4px 2px 4px;
    font-size: 0.9em;
}

.button-thin:hover {background: #ddd; color: black;}

.field-label-extra-option {float: right; margin-top: 0px; padding: 0 15px; color: green; cursor: pointer; transition: all 0.35s ease;}
.field-label-extra-option:hover {color: black; }


/*SPINNER*/
#spinner {
position: fixed;
top: 0; left: 0;
width: 100vw; height: 100vh;
z-index: 9999;
opacity: 0;
}

#spinner img {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%);
}

#spinner {
visibility: hidden;
opacity: 0;
}

#spinner.show {
visibility: visible;
opacity: 1;
animation-name: frame-fade-in-move;
animation-duration: 2.5s;
animation-timing-function: ease-in-out;    
}



/* MAIN HEADER */
.main-header {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: center;
    background: #aaa;
/*    opacity: 0.4;*/
    height: 70px;
    box-shadow: 0 0 5px #55aaff;
    transition: var(--main-header-transition);
    z-index: 200;
}
    .main-header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: var(--main-page-body-width);
        background: #005f82;
    }
        .main-header-logo {
            margin: 20px;
            min-width: 120px;
        }
        .main-header-menu {
            display: none;
            font-weight: 700;
            width: var(--main-header-menu-width);
            margin: 20px 10px 20px 20px;
            text-align: right;
        }
            .main-header-menu ul {
                display: flex;
                justify-content: flex-end;
                height: 100%;
                width: 100%;    
                list-style-type: none;
                /*background: #fff;*/
            }
                .main-header-menu a {
                    display: flex;
                    align-items: center;
                    justify-content: right;
                    /*background: var(--dark-grey);*/
                    color: white;
                    border: 0px solid #ccc;
                    /*width: var(--main-header-menu-button-width);*/
                    height: var(--main-header-menu-button-height);
                    border-radius: 5px;
                    margin: 4px;
                    padding-left: 10px;
                    padding-right: 10px;
                    transition: var(--main-header-transition);
                    text-decoration: none;
                    white-space: nowrap; 

                }
                    .main-header-menu a:hover {
                        background: var(--base-blue);
                        /*box-shadow: 0px 4px 10px var(--main-header-shadow-color);*/
                    }

                    .main-header-menu a:hover i {
                        color:#ffffff;
                        --fa-secondary-opacity: 1.0;
                        --fa-primary-color: rgb(255, 255, 255);
                        --fa-secondary-color: rgb(255, 255, 255);
                    }


/* SIDE MENU */

@keyframes frame-side-menu {
    from {
        left: -280px;
        opacity: 0;
    }
    to {
        left: 0px;
        opacity: 1;
    }
}



.side-menu {
    
    animation-name: frame-side-menu;
    animation-duration: 0.4s;
    animation-timing-function: ease-in-out;    
    
    display: none;
    width: 280px;
    /*position: absolute;*/
    position: fixed;
    top: 0px;
    /*left: -1000px;*/
    z-index: 300;
    height: calc(100vh - 0px - 40px);
    transition: var(--main-header-transition);
}
    .side-menu-content {
        height: 100%;
        width: 240px;
        /*padding-top: 12px;*/
        
    }
        .side-menu-close {
            text-align: right;
            background: #e1e1e1;
            opacity: 1;
            height: 70px;
            line-height: 70px;
            padding-top: 0px;
            color: white;
            
        }
    
        .icon-side-menu-close {display:inline-block; padding: 0px 15px 0px 5px; font-size: 1.4em; cursor: pointer;}
        .icon-side-menu-close:hover {font-weight: bold;}
        
        
        .side-menu ul {
            display: flex;
            flex-direction: column;
            height: auto;
            top: 50px;
            overflow: hidden;
            transition: var(--main-header-transition);
            background: #eeeeee;
            opacity: 0.97;
        }
            .side-menu a {
                    display: flex;
                    align-items: center;
                    justify-content: left;
                    padding-left: 20px;
                    color: #000000;
                    border-bottom: 0px solid var(--font-grey);
                    width: 100%;
                    /*height: calc(var(--main-header-menu-button-height)*1);*/
                    height: 50px;
                    transition: var(--main-header-transition);
                    text-decoration: none;
                    white-space: nowrap; 
                    background: #f1f1f1;
                    font-size: 0.9em;
                    font-weight: bold;
                }
                    .side-menu a:hover {
                        background: #3ba7cf;
                        color: #ffffff;
                    }

                    .side-menu a:hover i {
                        color:#ffffff;
                        --fa-secondary-opacity: 1.0;
                        --fa-primary-color: rgb(255, 255, 255);
                        --fa-secondary-color: rgb(255, 255, 255);
                    }   


    .side-menu-close-div {height: 100%; width: 300px; background: rgba(0, 0, 0, 0); transition: var(--main-header-transition);}

/* SIDE BUTTON */
.main-header-side-menu-button {display: flex; flex-direction: column; justify-content: center; align-items: center; height: var(--main-header-menu-button-height); min-width: var(--main-header-menu-button-height); margin: 20px; background: #005f82; border: 0px solid var(--middle-grey);  border-radius: 5px; cursor: pointer; transition: var(--main-header-transition);}

.main-header-side-menu-button:hover {background: var(--base-blue);}
.main-header-side-menu-button .stripes {background: #fff; height: 2px; min-width: 25px; margin: 2px 0;}



/*DROPDOWN*/

.dropdown-container {
    position: relative; 
    display: inline-block;
}

.dropdown-button {
    
}

.dropdown-container:hover .dropdown-content {display: block;}

.dropdown-content {
    position: absolute; 
    display: none; 
    border: 1px solid #ddd; 
    padding: 4px 4px; 
    text-align: left; 
    background-color: #fff; 
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    border-radius: 5px;
    animation-name: frame-fade-in-steady;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;    
}

.dropdown-row {
    display: table; 
    margin-bottom: 0px; 
    padding: 8px 8px 8px 8px; 
    transition: var(--main-header-transition);
    border-radius: 3px;
}

.dropdown-row:hover {background: #eee}



.page-body {
    padding: 105px 35px 50px 35px;
    display: block; 
    width: 100%; 
    min-height: 100vh; 
    height: auto; 
    max-width: var(--main-page-body-width); 
    background-color: #fcfcfc;
/*    background: rgba(255, 255, 255, 0.9);*/
    margin-left: auto ; 
    margin-right: auto; 
    color: black;

/*    animation-name: frame-fade-in-steady;
    animation-duration: 0.3s;*/
}    
    
.color-green {color: var(--green);}
.color-clear-green {color: var(--clear-green);}
.color-pale-green {color: var(--pale-green);}
.color-blue {color: var(--base-blue);}
.color-dark-blue {color: var(--dark-blue);}
.color-red {color: var(--red);}
.color-pale-red {color: var(--pale-red);}
.color-grey {color: #666;}
.color-light-grey {color: #aaa;}
.color-orange {color: orange;}
.color-darkorange {color: darkorange;}
.color-white {color: white;}
.color-black {color: black;}
.color-purple {color: #aa55ff;}





.border-blue {border-color: var(--base-blue) !important;}

.padding-auto {padding-top: auto; padding-bottom: auto;}

.background-green {background: var(--green);}
.background-clear-green {background: var(--clear-green);}
.background-pale-green {background: var(--pale-green);}
.background-red {background: var(--red);}
.background-pale-red {background: var(--pale-red);}
.background-blue {background: var(--base-blue);}
.background-dark-blue {background: var(--dark-blue);}
.background-grey {background: #999;}
.background-light-grey {background: #f0f0f0;}
.background-navy {background: navy;}
.background-orange {background: darkorange;}
.background-pale-orange {background: #ffe0a3;}

.background-white {background: white;}

.div-mobile-only {display: none;}
.div-desktop-only {display: none;}


.field-mandatory {background: #d7f4ff !important;}
.field-alert {background: #ffd0aa !important; }

.width-5-pc   {width:  5%;}
.width-10-pc  {width: 10%;}
.width-15-pc  {width: 15%;}
.width-20-pc  {width: 20%;}
.width-25-pc  {width: 25%;}
.width-30-pc  {width: 30%;}
.width-35-pc  {width: 35%;}
.width-40-pc  {width: 40%;}
.width-45-pc  {width: 45%;}
.width-50-pc  {width: 50%;}
.width-60-pc  {width: 60%;}
.width-70-pc  {width: 70%;}
.width-80-pc  {width: 80%;}
.width-85-pc  {width: 85%;}
.width-90-pc  {width: 90%;}
.width-100-pc {width:100%;}

.width-50-px  {width:  50px;}
.width-75-px  {width:  75px;}
.width-80-px  {width:  80px;}
.width-100-px {width: 100px;}
.width-110-px {width: 110px;}
.width-110-px {width: 110px;}
.width-115-px {width: 115px;}
.width-120-px {width: 120px;}
.width-130-px {width: 130px;}
.width-150-px {width: 150px;}
.width-220-px {width: 220px;}
.width-300-px {width: 300px;}


.text-align-left   {text-align: left;}
.text-align-center {text-align: center;}
.text-align-right  {text-align: right;}
.large {font-size: 1.4em}
.small {font-size: 0.8em}
.bold {font-weight: 700} 
.pointer {cursor: pointer;}
.no-wrap {white-space: nowrap;}
.wordwrap {word-wrap: break-word; overflow-wrap: break-word; word-break: break-all;}
.ptext {line-height: 1.4em; font-size: 1em; color: #444}

.vertical-align-top {vertical-align: top !important;}
.vertical-align-middle {vertical-align: middle !important;}
.vertical-align-bottom {vertical-align: bottom !important;}

.margin-top {margin-top: 6px !important;}
.margin-right {margin-right: 6px !important;}
.margin-bottom {margin-bottom: 6px !important;}
.margin-left {margin-left: 6px !important;}

.add-margin-top {margin-top: 20px !important;}
.add-margin-right {margin-right: 20px !important;}
.add-margin-bottom {margin-bottom: 20px !important;}
.add-margin-left  {margin-left: 20px !important;}

.padding-top {padding-top: 6px !important;}
.padding-right {padding-right: 6px !important;}
.padding-bottom {padding-bottom: 6px !important;}
.padding-left {padding-left: 6px !important;}


.add-padding-right {padding-right: 20px;}

.padding-auto {padding-top: auto; padding-bottom: auto;}


.no-pointer-events {pointer-events: none !important;}
.no-border {border: 0 !important;}
.display-none {display: none}
.display-table {display: table !important}
.display-inline-block {display: inline-block;}


.div-scroll-buttons {
    position:fixed; padding: 5px 30px; width: 100px; height: 84px; bottom: 0px; right: 0px; text-align: right;
}


.field-label {color: #777; font-weight: 700; padding-bottom: 4px; font-size: 0.95em;}

.field-row {display: table; margin-bottom: 2px; padding: 2px 0px 2px 0px}
.field-row-thin {display: table; margin-bottom: 2px; padding: 2px 0px 2px 0px}

.field-label, .field-data {display: inline-block; min-width: 100%;}

.date-field {width: 160px; height: 31px;}

.table {display: table;}

.table-header {display: none; color: #777; margin-bottom: 0px; border-bottom: 1px solid var(--base-blue); padding: 8px 0px 8px 0px; }
.table-title-header {color: #777; display: inline-block; min-width: 100%; vertical-align: top; font-weight: 700; font-size: 0.95em; padding: 0px 8px;}
.table-title-row {color: #777; display: inline-block; min-width: 100%; vertical-align: bottom; font-weight: 700; font-size: 0.8em; padding: 2px 8px;}
.table-row {display: table; margin-bottom: 0px; border-bottom: 1px solid #eee; padding: 8px 0px 6px 0px; transition: var(--main-header-transition); font-size: 1em;}
.table-td {display: inline-block; min-width: 100%; vertical-align: top; margin-bottom: 8px; padding: 0px 8px; line-height: 1.4em;}

.table-td-thin {display: inline-block; min-width: 100%; vertical-align: top; margin-bottom: 0px; padding: 0px 8px; line-height: 0.9em;}

.table-row-entry-line {
    display: table; 
/*    background: #f5f5f5; */
    margin-bottom: 0px; 
    border-bottom: 1px solid #fafafa; 
    padding: 0px 0px 10px 0px; 
    transition: var(--main-header-transition);
}


.entry-line-amount {
    width: 100%;
    text-align: right;
}

.table-row-add {
    display: none; 
/*    background: #f5f5f5; */
    margin-bottom: 0px; 
    border-bottom: 1px solid #fafafa; 
    padding: 0px 0px 10px 0px; 
    transition: var(--main-header-transition);
}

.table-row-clean {display: table; margin-bottom: 0px; padding: 8px 0px 8px 0px;}

.table-row:hover {background: #eee}


.selectedentry, .selectedaccount {
/*    background: #f4f4f4;
    background: #f0f9ff; */
    background: #e2f4ff;
/*    border-color: #cfffda;*/
}


.line-blue {width: 100%; border-bottom: 1px solid var(--base-blue); margin: 10px 0px}
.line-grey {width: 100%; border-bottom: 1px solid #aaa; margin: 10px 0px}


.link {cursor: pointer;}
.link:hover {color: val(--base-blue) !important; text-decoration: underline !important;}


.spanSign { width: 10px; display: inline-block; margin-left: 5px; margin-right: 5px;}


@keyframes frame-fade-in-move {
    from {
        opacity: 0;
        margin-top: 30px;
    }
    to {
        opacity: 1;
        margin-top: 0px;
    }
}

@keyframes frame-fade-in-steady {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes frame-fade-out-steady {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}


.fade-in-move {
    animation-name: frame-fade-in-move;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;    
}

.fade-in-steady {
    animation-name: frame-fade-in-steady;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;    
}

.fade-out-steady {
    animation-name: frame-fade-out-steady;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;    
}

.template-link-group {
    width: 100%; 
    padding: 6px 6px 2px 6px;     
/*    border-radius: 8px;*/
/*    border: 1px solid #eee;*/
}


.icon-after-input {
    cursor: pointer;
    font-size: 18px;
    margin: 5px 10px 0px 5px;
    transition: all 0.35s ease;
}

.icon-after-input:hover {
    color: black;
}

.template-link {
    display: inline-block;     
    border: 1px solid #ddd;
    border-radius: 15px;
    padding-left: 12px;
    padding-right: 12px;
    line-height: 1.6em;
    margin: 0px 4px 8px 0px;
/*    white-space: nowrap;*/
    cursor: pointer;
    color: #222;
    background-color: #fff;
    transition: var(--main-header-transition);
    font-size: 1em;
    font-weight: normal;
}

.template-link:hover {
    border: 1px solid darkOrange;
    color: #fff;
    background-color: darkOrange;
}

.template-link-selected {
    display: inline-block;     
    border: 1px solid darkOrange;
    border-radius: 15px;
    padding-left: 12px;
    padding-right: 12px;
    line-height: 1.6em;
    margin: 0px 4px 4px 0px;
    white-space: nowrap;
    cursor: pointer;
    color: #fff;
    background-color: darkOrange;
    transition: var(--main-header-transition);
    font-size: 1em;
    font-weight: normal;
}

.template-link-keyword-match {
    display: inline-block;     
    border: 1px solid green;
    border-radius: 15px;
    padding-left: 12px;
    padding-right: 12px;
    line-height: 1.6em;
    margin: 0px 4px 4px 0px;
    white-space: nowrap;
    cursor: pointer;
    color: #fff;
    background-color: green;
    transition: var(--main-header-transition);
    font-size: 1em;
    font-weight: normal;
}

.template-link-keyword-match:hover {
    border: 1px solid #4caf50;
    color: #fff;
    background-color: #4caf50;
}

.div-keep-top-onscroll {
    display: none;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 50%; 
    background-color: #f1f1f1; 
    text-align: center; 
    padding: 6px; 
    margin-bottom: 10px;
    min-height: 50px;
    min-width: 280px;
    max-width: 380px;
    z-index: 520;
    border-radius: 5px;
    border: solid 1px #ccc;
    animation-name: frame-fade-in-move;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;     
    transition: var(--main-header-transition);
}

.div-keep-top-onscroll:hover {
    background-color: #f9f9f9; 
}    

.div-modal-container {
    display: none;
    width: 100%;
/*    height: calc(100vh);*/
/*    height: auto;*/
    height: 100%;

    background-image: linear-gradient(#555, transparent);
/*    background: #f1f1f1;*/
/*    background-color: rgba(25, 25, 25, 0.5);*/
/*  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);*/


    position: absolute; 
    top: 0px; 
    left: 0px; 
    z-index: 500;
/*    animation-name: frame-fade-in-move;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;    */
}

.message-container {
    display: none;
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 50%; 
    background-color: #fff; 
    text-align: center; 
    padding: 6px; 
    margin-bottom: 10px;
    min-height: 100px;
    min-width: 280px;
    max-width: 500px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    z-index: 520;
    border-radius: 5px;
    animation-name: frame-fade-in-move;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;    
}

.medium-container {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 85%; 
    background-color: #f1f1f1; 
    text-align: left; 
    padding: 20px; 
    margin-bottom: 10px;
    height: calc(100vh - 120px);
    max-width: 800px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    z-index: 520;
    overflow-x: hidden;
    border-radius: 5px;
    animation-name: frame-fade-in-move;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;    
}




.div-alert-container {
    display: none;
    width: 100%; 
    height: calc(100vh); 
    background-image: linear-gradient(grey, transparent);

/*    background-color: rgba(0,0,0,0.4);*/
    position: absolute; 
    top: 0px; 
    left: 0px;
    z-index: 5000;
}

.div-alert-small {
    display: block;
    position: fixed;
    top: 250px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 80%; 
    background-color: white;
    border: 1px solid #bbb;
    text-align: center; 
    padding: 25px; 
    margin-bottom: 10px;
    min-height: 50px;
    min-width: 200px;
    max-width: 400px;
    box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    z-index: 5001;
    border-radius: 5px;

    animation-name: frame-fade-in-move;
    animation-duration: 0.15s;
    animation-timing-function: ease-in-out;    
    
}

.modal-message {
    color: #333;
    font-size: 1em;
    font-weight: normal;
    margin: 0px 0px 25px 0px;
}


.div-alert-icon {
    color: orange; width: 100%; text-align: left; font-size: 20px; margin: -10px -10px 10px -10px;
}

.div-page-header-back {
    display: flex;
    width: 200px;
    align-items: center; 
    color: #000;
    cursor: pointer;
    transition: all 0.35s ease;
    height: 30px;
    line-height: 30px;
    font-size: 22px;
    vertical-align: middle;
    margin: 0 0 0 0;
}

.div-page-header-back:hover {
    color: #0099cc;
}

.div-page-header-back-icon {
    margin: 0px 6px 0px 3px;
}

.div-page-header-back-text {
    font-size: 15px;
}


.text-popup {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 80%; 
    height: 300px;
    background-color: #fff; 
    border: 1px solid #bbb;
    padding: 5px; 
/*    margin-bottom: 30px;*/
    min-height: 100px;
    min-width: 280px;
    max-width: 500px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    z-index: 10;
    border-radius: 5px;
    display: none;
    animation-name: frame-fade-in-move;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;    
    
}




.text-popup-textarea {
  width: 100%;
  height: 210px;
/*  height: calc(100% - 44px);*/
  padding: 5px 5px;
  box-sizing: border-box;
  border: none;
  border-radius: 4px;*/
  background-color: #fff;
  resize: none;
}

.textarea-template-text {
  width: 100%;
  height: 100px;
  padding: 5px 5px;
  box-sizing: border-box;
  border: none;
  border-radius: 4px;
  background-color: #fff;
  resize: none;
  font-weight: normal;
  color: #777;
}

.message-text {display: block; padding: 20px;} 
.message-buttons {display: block; margin: 5px; padding-bottom: 10px;} 


.div-page-button-footer-modal {
    background: #ededed;
    padding: 0 30px 0 30px; 
    margin: 2px 0 1px 0;
    width: 100%; 
    text-align: left; 
    color: black;
    position: absolute;
    left: 0px;
    bottom: 0px;
    height: 50px;
    line-height: 50px;
    box-shadow: inset 0px 11px 8px -10px #CCC;
}


.div-page-button-footer {
/*    backdrop-filter: blur(5px); */
    max-width: 900px; 
    left: 50%;
    transform: translate(-50%, 0);
    bottom: 0px;
    padding: 0 30px 0 30px; 
    margin: 2px 0 0 0;
    width: 100%; 
    text-align: left; 
    color: black;
    position: fixed;
    height: 50px;
    line-height: 50px;
}

.div-slide-modal {
    padding: 5px 10px;
    display: none;    
    text-align: left; 
    background: white; 
    overflow-y: auto; 
    height: calc(100vh - 300px); 
    z-index: 524;
}

.div-slide-modal-new {
    padding: 5px 10px;
    display: none;    
    text-align: left; 
    background: white; 
/*    overflow-y: auto; */
    height: calc(100vh - 300px); 
    z-index: 524;
}



.common-grey-box {
    background-color: #f6f6f6;
    width: 100%; 
    margin: 20px 20px 20px 0px; 
    padding: 10px 20px 10px 20px; 
    border-radius: 10px;
    border: 1px dotted #d0d0d0;
    border-width: 0 1px 1px 0;
}  

.common-grey-box-light {
    background-color: #ffffff;
    width: 100%;
    margin: 20px 20px 20px 0px;
    padding: 10px 20px 10px 20px;
    border-radius: 10px;
    border: 1px dotted #ffffff;
}

.common-bordered-box {
    width: 100%; 
    margin: 20px 20px 20px 0px; 
    padding: 10px 20px 10px 20px; 
    border-radius: 10px;
    border: 1px solid #eee
}  



.fieldset-light-grey {
    border-radius: 10px;
    border: 1px solid #f1f1f1;
    background: #f1f1f1;
}

.fieldset-templates {
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 0px 0px;
}

.circled-number {
    border-radius: 15px;
    padding: 2px 8px;
    font-weight: 700;
}


@keyframes slideLeft {
    from {
        margin-left: 400px;
    }
    to {
        margin-left: 0px;    
    }
}

@-webkit-keyframes slideLeft {
    0% {
        margin-left: 400px;
    }
    100%{
        margin-left: 0px;    
    }
}

@keyframes slideRight {
    from {
        margin-left: -400px;
    }
    to {
        margin-left: 0px;    
    }
}

@-webkit-keyframes slideRight {
    0% {
        margin-left: -400px;
    }
    100%{
        margin-left: 0px;    
    }
}

.slideLeft {
    animation-name: slideLeft;
    animation-iteration-count: 1;
    transition-timing-function: cubic-bezier(0, 0, 0.9, 1.0);
    animation-duration: 0.5s;    
}

.slideRight {
    animation-name: slideRight;
    animation-iteration-count: 1;
    transition-timing-function: cubic-bezier(0, 0, 0.9, 1.0);
    animation-duration: 0.5s;    
}

.divscroll {
    height: calc(100vh - 220px); 
    overflow-x: hidden; 
    overflow-y: auto; 
    margin: 0; 
    padding: 0 10px 0 0;
    -moz-scrollbar-width: none; 
    scrollbar-width: none; 
    overflow: -moz-scrollbars-none; 
}

.divscroll-medium {
    height: calc(100vh - 265px); 
    overflow-x: hidden; 
    overflow-y: auto; 
    margin: 0; 
    padding: 0 0 0 0;
    -moz-scrollbar-width: none; 
    scrollbar-width: none; 
    overflow: -moz-scrollbars-none; 
}


/*period selector*/
.period {
    width: 100%;
    display: inline-block;
    padding: 8px 0px;
    border-radius: 5px;
    cursor: pointer;
}
.period:hover {
    background: #008dc1;
    color: white;
}
.period-td {
    box-shadow: 0px 1px #eee;
    padding: 0px 0px 0px 0px;
}

.period-row {
    padding: 8px 8px;
    border-radius: 5px;
    cursor: pointer;
    color: #777;
}
.period-row:hover, .period-row-td:hover {
    color: #008dc1;
}

.period-row-td {
    width: 100%;
    display: inline-block;
    padding: 8px 0px;
    border-radius: 5px;
    cursor: pointer;
    border-top: 1px solid #eee;
}




    .extra-menu-left-background {
        opacity: 0.5;
        background-color: #fff;/*#005f82*/
        position: fixed;
        top: 65px;
        left: calc(50% - 680px);
        width: 230px;
        /*height: calc(100vh - 0px);*/
        height: 550px;
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 0 0 0 10px;
        -webkit-box-shadow: -23px 22px 38px -20px #999;
        -moz-box-shadow: -23px 22px 38px -20px #999;
        box-shadow: -23px 22px 38px -20px #999;
    }


    .extra-menu-left-content {
        color: #222;
        position: fixed;
        top: 65px;
        left: calc(50% - 680px);
        width: 230px;
        /*height: calc(100vh - 0px);*/
        height: 550px;
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 5px;
        border: 0px solid #888;
        padding: 20px 10px;
        text-align: left;"
    }

    .extra-menu-left-item {
        font-size: 1em;
        color: #222;
        font-weight: normal;
        line-height: 30px;
        transition: all 0.25s ease;
        width: 100%;
        padding: 2px 10px;
        cursor: pointer;
        border-radius: 5px;
    }

    .extra-menu-left-item:hover {
        color: #ffffff;
        background: #3ba7cf;
    }

    .extra-menu-right-background {
        opacity: 0.8;
        background-color: #ffffff;
        position: fixed;
        top: 65px;
        left: calc(50% + 450px);
        width: 230px;
        height: calc(100vh - 0px);
        overflow-x: hidden;
        overflow-y: auto;
    }

    .extra-menu-right-content {
        color: #ffffff;
        position: fixed;
        top: 65px;
        left: calc(50% + 450px);
        width: 230px;
        height: calc(100vh - 0px);
        overflow-x: hidden;
        overflow-y: auto;
        border-left: 1px solid #ddd;
        /*box-shadow: rgba(0, 0, 0, 0.06) 0px 0px 5px 5px inset;*/
        padding: 20px 20px;
        text-align: left;"
    }

    .extra-menu-right-item {
        font-size: 0.9em;
        color: #777;
        font-weight: normal;
        line-height: 30px;
        transition: all 0.25s ease;
        width: 100%;
    }



/* MEDIA QUERIES MAIN HEADER */
@media (min-width: 768px) {
    .main-header-menu {display: flex;}
    .side-menu {display: none;}
    .side-menu-main-item {display: none;}
    .main-header-side-menu-button {display: none;}
    .field-label, .field-data {display: table-cell;}   
    .table-header {display: table;}
    .table-title-row {display: none; margin-bottom: 0px;}
    .table-td, .table-td-thin, .field-label, .field-data {display: table-cell; min-width: 0px; margin-bottom: 0px;}
    .table-title-header {display: table-cell; min-width: 0px;}
    .display-small-only {display: none;}
    .div-desktop-only {display: block;}
}

@media (max-width: 767px) {
    .page-body {padding: 105px 15px 15px 15px;}
/*    .table-row {width: 100%; font-size: 1.1em;}
    .table-row-clean {width: 100%; font-size: 1.1em;}*/
    .field-label {margin-bottom: 4px;}
    .display-wide-only {display: none;}
    .field-row {padding: 6px 0px 6px 0px}
    .button-back {margin-left: 0px; top: 77px;}
    .div-mobile-only {display: block;}

}

@media (max-width: 1370px) {
    .extra-menu-container {display: none;}

}

@media (min-width: 1370px) {
    .hide-on-extra-menu {display: none;}
    .main-header .container {max-width: 1360px;}

}
