:root {
    --background: #fff;
    --primary-text: #000;
    --secondary-text: #000;
    --tertiary-text: #222;
    --primary-input-bg: #fff;
    --label-text: #666;
    --link-color: blue;
    --tr-even: #F2F2F2;
    --tr-odd: #FFFFFF;
    --hover-text: #000;
}


@media not print {
    body.dark {
        --background: #18191A;
        --primary-text: #E4E6E8;
        --secondary-text: #B0B3B8;
        --tertiary-text: #B0B3B8;
        --primary-input-bg: #3A3B3C;
        --label-text: #E4E6E8;
        --link-color: #4599FF;
        --tr-even: #18191A;
        --tr-odd: #3A3B3C;
        --hover-text: #000;
    }
}
.print {
    display: none !important;
}
@media print {
	.noprint  {
		display: none !important;
	}
	.print  {
		display: block !important;
    }
    @page { 
        size: auto;   /* auto is the initial value */
        margin-top: 0mm;
        margin-bottom: 0mm;
    }
}


@media screen and (max-width: 48em) {
    .hideu48 {
        display: none !important;
    }
}
@media screen and (max-width: 30em) {
    .hideu30 {
        display: none !important;
    }
}
@media screen and (min-width: 48em) {
    .hideo48{
        display: none !important;
    }
}
@media screen and (min-width: 30em) {
    .hideo30{
        display: none !important;
    }
}



html {
    box-sizing: border-box;
}
*,
*:before,
*:after {
	-webkit-box-sizing: inherit;
	-moz-box-sizing: inherit;
	box-sizing: inherit;
}


body {
    width: 100%;
    display: block;
    margin: 0 auto;
    background: var(--background);
    display: flex;
    flex-direction: column;
    height: 100%;
}
body:not(.contentonly) {
    height: 100vh;
}

div.logo {
    height: 100%;
    max-height: 80px;
    margin-top: auto;
    margin-bottom: auto;
    justify-content: center;
}
img.logo {
    max-width: 100%;
    max-height: 100%;
}



nav {
    background: var(--primary-input-bg);
}

h1, h2 {
    font-size: 26px;
    font-size: 1.625rem;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
}

body,
button,
input,
select,
textarea {
    font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
    font-size: 16px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--primary-text);
}
button, input, select, textarea {
    background: var(--primary-input-bg);
}
select {    
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url("data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M0 0h24v24H0z' fill='none'/><path d='M7 10l5 5 5-5z'/></svg>") no-repeat 99% 50% var(--primary-input-bg);
    background-size: 24px;
}
input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: url("data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' height='24px' width='24px' viewBox='0 0 24 24'><path d='M0 0h24v24H0z' fill='none'/><path d='M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z'/></svg>") no-repeat 99% 50% var(--primary-input-bg);
    height: 46px;
}
::placeholder,
:-ms-input-placeholder
{
    color: #8D8A91;
}

a {
    text-decoration: none;
    color: var(--link-color);
}

p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}


@media print {
    footer {
        font-size: 0.8rem !important;
    }
}
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 0.8rem !important;
    height: auto;
    text-align: center;
}

.wrap {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    padding-left: 0.5em;
    padding-right: 0.5em;
    clear: both;
    content: "";
    display: block;
    padding-bottom: 8rem;
}


.content_area {
    padding: 0.5em 0 0;
    margin-left: auto;
    margin-right: auto;
    /*max-width: 740px;*/
    width: 100%;
}

.content_header {
    display: flex;
    width: 100%;
    flex-direction: column;
    height: auto;
    min-height: 100px;
    padding: 0.5em 0 0;
    align-items: center;
}


.printheader_company {
    text-align: right;
    font-size: 0.8rem;
}


.container {        /* used */
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.w100 {
    width: 100%;
}
.tac {
    text-align: center !important;
}
.customfooter {
    text-align: center !important;
}

.container.sbmc {
    justify-content: center;
}
@media screen and (min-width: 48em) {
    .container.sbmc {
        justify-content: space-between;
    }
}
.grid .end {
    text-align: end;
}

.container.row {    /* used */
    flex-direction: row;
}
.container.column { /* used */
    flex-direction: column;
}
.bottom-button-container {  /* used */
    width: 100%;
    display: flex;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
}
.pointer {      /* used */
    cursor:pointer;
}
.desc::after {  /* used */
    content: "\25bc";
}
.asc::after {   /* used */
    content: "\25b2";
}
.header {       /* used */
    display: flex;
}
.header > .end {    /* used */
    margin-right: 0px;
    margin-left: auto;
    align-self: flex-end;
}


.required {
    font-size: large;
    color: red;
    font-weight: bold;
}


div.service-element {
    text-align: left;
    min-width: 250px;
    width: 100%;
    /*padding: 0.5em 1em;*/
    margin: .5em;
    border-radius: 5px;
    border: 1px solid gray;
    -webkit-box-shadow: 0 0 5px gray;
    -moz-box-shadow: 0 0 5px gray;
    box-shadow: 0 0 5px gray;
}
div.service-element > div {
    padding: 0em 0.5em;
}
@media print, screen and (min-width: 48em) {
    div.service-element {
        width: 48%;
    }
    .container.sbmc {
        justify-content: space-between;
    }
}
div.service-element.center {
    text-align: center;
}
div.service-element.w100 {
    width: 100% !important;
}

div.user {      /* used */
    text-align: center;
    /*width: 175px;*/
    width: unset;
    padding: 1em;
    margin: .5em;
    border-radius: 5px;
    border: 1px solid gray;
    -webkit-box-shadow: 0 0 5px gray;
    -moz-box-shadow: 0 0 5px gray;
    box-shadow: 0 0 5px gray;
}
div.vipps-login {
    margin-top: 1em;
    text-align: center;
}
a.user {
    width: 100%;
}

a.attachment {
    display: flex;
}
div.attachment {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 200px;
    /*height: fit-content;*/
    padding: 1em;
    margin: .5em;
    border-radius: 5px;
    /*border: 1px solid gray;*/
    -webkit-box-shadow: 0 0 5px gray;
    -moz-box-shadow: 0 0 5px gray;
    box-shadow: 0 0 5px gray; 
}
.sw-input-icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sw-text {      /* used */
    padding-left: 5px;
    padding-right: 5px;
}
.sw-input-group {       /* used */
    display: flex;
    flex-direction: column;
    margin: 0.5em 0 0.5em 0;
    justify-content: space-between;
}
.sw-input-group.row {   /* used */
    flex-direction: row;
}
.sw-input-group.col {   /* used */
    flex-direction: column;
}
.sw-input-group.mb0 {
    margin-bottom: 0px;
}
.sw-input-group.center {
    justify-content: center;
}
.sw-input {             /* used */
    flex: 1;
    position: relative;
    padding-left: 10px;
    padding-right: 10px;
    text-align: left;
    margin-bottom: 10px;
}
.sw-input.mb0 {
    margin-bottom: 0px;
}
.sw-input.mlm10 {
    margin-left: -10px;
}
.sw-input.min {         /* used */
    flex: 0 1 auto;
    min-width: auto !important;
}
.sw-input.center {      /* used */
    align-self: center;
}
.sw-input.end {      /* used */
    align-self: flex-end;
}
.sw-input input,        /* used */
.sw-input textarea {
    padding: 1em 1em 0em 0.5em;
}

.sw-input input:required:valid,
.sw-input textarea:required:valid,
.sw-input select:required:valid {
    border-bottom: 1px solid green;
    background: url("data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='green'><path d='M0 0h24v24H0z' fill='none'/><path d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z'/></svg>") no-repeat 99% 50% var(--primary-input-bg);
    background-size: 25px;
}
.sw-input input:invalid,
.sw-input textarea:invalid,
.sw-input select:invalid {
    border-bottom: 1px solid red;
    background-size: 25px;
}
.sw-input textarea:invalid,
.sw-input textarea:required:valid {
    background-position-y: 10%;
}
.sw-input button {
    /*height: 100%;*/
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  border: 1px solid green;
  box-shadow: 0 0 0px 1000px var(--primary-input-bg) inset;
  -webkit-text-fill-color: var(--primary-text);
  -webkit-box-shadow: 0 0 0px 1000px var(--primary-input-bg) inset;
  transition: background-color 5000s ease-in-out 0s;
}


.sw-input select {      /* used */
    padding: 1em 1em 0.3em 0.3em;
}
.sw-input textarea {    /* used */
    resize: none;
}
.sw-input > label {     /* used */
    position: absolute;
    font-size: 0.8em;
    left: 1em;
    top: 0em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.sw-input [type="checkbox"] ~ label,
.sw-input [type="radio"] ~ label {   /* used */
    position: static;
    font-size: 1em;
    left: 2em;
    top: -0.1em;
    color: var(--primary-text);
}



.header_top {
    display: flex;
    width: 100%;
    min-height: 67px;
    flex-flow: row;
    align-items: center;
}
@media screen and (max-width: 48em) {
    .header_top {
        flex-flow: column-reverse;
        align-items: center;
    }
}
.header_top > div,
.header_top > h1 {
    flex: 1;
}
.header_top .logo {
    text-align: center;
}
.header_top .navigation_menu {
    justify-content: flex-end;
}
.header_top > h1 {
    padding-left: 0.5em;
    text-align: center;
}
.header_top:first-child,
.header_top:last-child { 
    flex: 1;
    display: flex;
    min-width: -webkit-min-content;
}
.header_top:last-child {
    justify-content: flex-end;
}
.header_navigation {
    width: 100%
}
.header_settings {
    flex-direction: column !important;
    align-items: flex-end;
}


.language_container {
    justify-content: flex-end !important;
    align-items: flex-end;
}

.content_title {
    color: var(--primary-text);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.content {
    margin-left: auto;
    margin-right: auto;
    /*max-width: 740px;*/
    width: 100%;
    box-sizing: inherit;
    display: block;
    color: var(--primary-text);
    text-overflow: ellipsis;
}

.content_container {
    /*min-height: 100vh;*/
    flex-grow: 1;
    /*min-height: calc(100vh - 10em);*/
    width: 100%;
    position: relative;
    margin: auto;
    margin-top: 1em;
    left: 0px;
    right: 0px;
    /*overflow: auto;*/
}

@media print {
    .error_box,
    .content_box {
        display: none !important;
    }
}

.error_box,
.content_box {
    text-align: center;
    background: #fff;
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1em;
    margin-bottom: 1em;
    height: auto;
    overflow: hidden;
    /*margin: 1em;*/
    padding: 10px;
    border: 1px solid #fff;
    /*cursor: pointer;*/
    -webkit-box-shadow: 0 0 5px #999;
    -moz-box-shadow: 0 0 5px #999;
    box-shadow: 0 0 5px #999;
    transition: border 0.2s ease;
    -webkit-transition: border 0.2s ease;
    -moz-transition: border 0.2s ease;
    -o-transition: border-top-color 0.2s ease, border-right-color 0.2s ease, border-bottom-color 0.2s ease, border-left-color 0.2s ease;
}
.error_box {
    background-color: rgba(153, 204, 232, 0.5); /* Hvis flere farger blir aktuelle senere - sette lysegrønn på "OK" og lyserød på feil? */
    /*background-color: silver;*/
    color: black;
}
.dark .error_box {
    background-color: rgba(153, 204, 232, 0.9); /* Hvis flere farger blir aktuelle senere - sette lysegrønn på "OK" og lyserød på feil? */
    /*background-color: silver;*/
    color: black;
}
.dark .error_box a {
    color: blue;
}
.error_box.center {
    text-align: center;
}

.error_box_title,
.content_box_title {
    display: block;
    padding-top: 0px;
    padding-bottom: 5px;
    font-weight: 600;
    text-align: center;    
}

.error_box_text,
.content_box_text {
    display: block;
    clear: both;
    /*text-align: left;*/ /* Not needed? If enabled, but serviceweb_service.mab registered=.T. -> center manually */
    font-weight: 600;
}

.error_box_footer,
.content_box_text.footer {
    margin-top: 1em;
    text-align: center;
}

.bold {
    font-weight: 600;
}
.italic {
    font-style: italic;
}

.languageselect {
    border: none;
    width: auto;
    width: fit-content;
    height: 2em;
    height: fit-content;
}

.welcome {
    text-align: center;
}
.welcome > ul {
    list-style-type: none;
    padding: 0px;
}

span.help {
    cursor: help;
}
span.right {
    text-align: right;
}


/* SMS */
div.sms-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1em;
}
div.sms {
    display: block;
    width: fit-content;
    margin-top: 1em;
    margin-bottom: 1em;
    max-width: 70%;
    height: auto;
    overflow: hidden;
    background-color: rgba(153, 204, 232); /* Hvis flere farger blir aktuelle senere - sette lysegrÃ¸nn pÃ¥ "OK" og lyserÃ¸d pÃ¥ feil? */
    color: black;
    /*margin: 1em;*/
    padding: 10px;
    border: 1px solid #fff;
    border-radius: 10px;
    /*cursor: pointer;*/
    box-shadow: 0 0 5px #999;
    transition: border 0.2s ease;
}
div.sms.incoming {
    align-self: flex-end;
}
div.sms .sms-from {
    font-weight: 600;
}
div.sms .sms-datetime {
    font-weight: 600;
}
div.sms .sms-message {
    display: block;
}


/* Dialog */
dialog {
    width: 80%;
    height: fit-content;
    background: var(--background);
    font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
    font-size: 16px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--primary-text);
}
dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}
dialog.dialog-600 {
    max-width: 600px;
}
.dialog-container {
    display:    none;
    position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background-color: rgba(0, 0, 0, 0.7);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.dialog-container.show {
    display: flex;
}
.dialog {
    position: relative;
    background: var(--background);
    width: fit-content;
    min-width: 30%;
    padding: 1em;
    border-radius: 5px;
    max-height: 90%;
    max-width: 90%;
    overflow: auto;
}


svg {
    width: 24px;
    height: 24px;
}
svg.s35 {
    width: 35px;
    height: 35px;
}
svg.s40 {
    width: 40px;
    height: 40px;
}
svg.s50 {
    width: 50px;
    height: 50px;
}
svg.loader {
    width: 200px;
    height: 200px;
}
  
/* Lists */
/* https://stackoverflow.com/questions/31859932/style-an-ordered-list-like-1-1-1-2-instead-of-1-2 */
.list-container h1 {
    font-size: 1.2em;
    margin-left: -20px;
    margin-top: 1em;
}
.list-container h2 {
    font-size: 1em;
    font-weight: 600;
    margin-left: -20px;
    padding: 12px;
    counter-increment: list1;
}
.list-container h2::before {
    content: counter(list1);
    padding-right: 1em;
}
ul.alpha, ol.alpha {
    list-style: lower-alpha;
}
ul.roman, ol.roman {
    list-style: lower-roman;
}


/* Flatpickr (datetime) overrides */
.flatpickr-wrapper {
    width: 100%;
}

/* Attachments */
.attachment-container,
.gallery-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}
.gallery-thumb-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}
div.thumb {
    display: flex;
    position: relative;
    flex-flow: column;
    justify-content: center;
    width: calc(240px + 2em);   /* img-width + 2x padding */
    /*width: fit-content;*/
    padding: 0.5em;
    text-align: center;
    border: 1px solid gray;
    border-radius: 5px;
    margin-top: 1em;
}
div.thumb > img {
    width: 160px;
    max-height: 160px;
}
div.thumb > span {
    overflow-wrap: break-word;
}
.dialog.gallery,
div.gallery-main {
    display: flex;
    flex-flow: column;
    justify-content: center;
    text-align: center;
}
div.gallery-main {
    width: 100%;
}

img.gallery-main {
    max-width: 100%;
    max-height: 100%;
}

/* Event */
.event-container {
    width: 100%;
    display: flex;
}
.event-container.menu {
    margin-top: 2em;
    justify-content: center;
}
.event {
    display: flex;
    flex-flow: column;
    flex: 1 1 auto;
    padding-left: 0.5em;
    padding-right: 0.5em;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 25px;
    background-color: rgb(0, 76, 107);
    width: 100%;
}
.event.list {
    background-color: white;
}
.event > div,
.event-header > div {
    padding: 1em 1em 1em 1em;
    background-color: rgba(255, 255, 255, 0.75);
    margin-top: 1em;
    border-radius: 25px;
    border: 1px solid gray;
}
.event-header > div {
    margin-top: 0em;
    border: 0px;
}
.event-dt {
    display: table-row;
}
.event-dt > span:not(.icon) {
    display: table-cell;
    padding-left: 5px;
}

.event-header.bg {
    background-size: cover;
}
.clickable {
    cursor: pointer;
}
.event-group {
    display: flex;
    flex-direction: column;
    margin: 0.5em 0 0.5em 0;
    justify-content: space-between;
}
.event-group.tbl {
    display: table;
    width: fit-content;
}
.event-group.row {
    flex-direction: row;
}
.event-group.col {
    flex-direction: column;
}
.event-group span {
    vertical-align: middle;
}
.event-title > h1 {
    text-align: center;
}
.event > :last-child {
    margin-bottom: 1em;
}
.event-input {
    flex: 1;
    position: relative;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 10px;
    text-align: left;
}
.event-input.w1-3 {
    flex: 1 1 33.3%;
}
.event-input.w2-3 {
    flex: 1 1 66.6%;
}
.event-input.max {
    flex: 1 0 auto;
}
.event-input.min {
    flex: 0 1 auto;
    padding-left: 5px;
    padding-right: 5px;
}
.event-input.valign {
    margin-top: auto;
    margin-bottom: auto;
}
.event-input input,
.event-input textarea {
    padding: 1em 1em 0em 0.5em;
}
.event-input select {
    padding: 1em 1em 0.3em 0.3em;
}
.event-input textarea {
    resize: none;
}
.event-input > label {
    position: absolute;
    font-size: 0.8em;
    left: 1em;
    top: 0em;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.event-input [type="checkbox"] ~ label {
    position: absolute;
    font-size: 1em;
    left: 2em;
    top: -0.1em;
    color: black;
}
.event-register-container {
    padding: 0px;
}

.tooltip {
    position: relative;
    display: inline-block;
  }

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    top: 100%;
    left: 50%;
    margin-left: -200px;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
}

.tooltip:hover .tooltiptext,
.tooltip:active .tooltiptext {
    visibility: visible;
}



/* Login */
form {
    width: 100%;
    margin: auto;
    text-align: center;
    margin-bottom: 1em;
}
form#loginform,
form.login {
    width: 100%;
}

.customer-register-container,
.login-container {
    display: flex;
    flex-direction: column;
}
p.form-caption {   /* Used */
    align-self: flex-start;
    font-weight: 600;
}
p.form-caption.elementcaption {
    text-align: left;
    padding-left: 2px;
}
div.forgotpassword {
    text-align: right;
}
div.forgotpassword a {
    font-size: 0.8rem;
    color: gray;
}


@media print {
    .overview-header {
        display: none !important;
    }
}
.overview-header {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.overview-header > * {
    margin-left: 0.5em;
    margin-right: 0.5em;
    margin-bottom: 1em;
}
.overview-header > input, select {
    width: fit-content;
}


template {
    display: none !important;
}




span.icon {
    display: inline-block;
    fill: currentColor;
    position: relative;
    vertical-align: middle;
}
span.icon.gray {
    fill: gray;
}
span.icon.white {
    fill: white;
}


a.terms {   /* used */
    /*display: block;*/
}
span.terms {    /* used */
    font-style: italic;
}
span.warrantytext {
    font-style: italic;
    font-weight: 600;
}
.clicktoclose,
.close {
    position: absolute; /* Absolute within the parent dialog */
    top: 10px;
    right: 10px;
    z-index: 999;
    color: red;
}
button svg {
    top: 0.2em;
    position: relative;
    margin-right: 0.5em;
}

svg.hidden {
    display:none;
}


/* File upload */
#droparea {
    border: 2px dashed #ccc;
    border-radius: 5px;
    width: 100%;
    font-family: sans-serif;
    padding: 0.5em 1em;
}
#droparea p {
    margin-top: 0;
}
#droparea.highlight {
    border-color: purple;
}

#fileelement {
    display: none;
}
#progressbar {
    margin-top: 20px;
    width: 100%;
}
/*#upload-gallery {
    margin-top: 10px;
}
#upload-gallery img {
    width: 150px;
    margin-bottom: 10px;
    margin-right: 10px;
    vertical-align: middle;
}/*


/* Forms */
/* https://stackoverflow.com/questions/38301774/how-to-do-floating-of-labels-in-css */
/* https://codepen.io/dannibla/pen/amgRNR */
fieldset {
    width: 100%;
    border: 1px solid gray;
    margin-top: 1em;
    border-radius: 5px;
    -webkit-box-shadow: 0 0 5px gray;
    -moz-box-shadow: 0 0 5px gray;
    box-shadow: 0 0 5px gray;
    transition: border 0.2s ease;
    -webkit-transition: border 0.2s ease;
    -moz-transition: border 0.2s ease;
    -o-transition: border-top-color 0.2s ease, border-right-color 0.2s ease, border-bottom-color 0.2s ease, border-left-color 0.2s ease;
}
fieldset > legend {
    font-weight: bold;
    text-align: left;
    background: var(--background);
}
input, select {
    font-size: 18px;
    padding: 5px 5px 5px 5px;
    width: 100%;
    border: none;
}

textarea {
    width: 100%;
}
input[type="checkbox"], input[type="radio"] {
    width: auto;
    width: fit-content;
}
/* Hide arrows on number-inputs */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


/*select,
input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.select-container {position:relative; display: inline;}
.select-container:after {content:""; width:0; height:0; position:absolute; pointer-events: none;}
.select-container:after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    top: .3em;
    right: .75em;
    border-top: 8px solid black;
    opacity: 0.5;
}
select::-ms-expand {
    display: none;
}*/


select {
    /* Make select slightly larger, to compensate for the fact that html/css is fun... */
    padding-top: 8px;
    padding-bottom: 7px;
}
input, select {
    border-bottom: 1px solid #757575;
}
input:disabled, select:disabled,
input:read-only, select:read-only {
    border-bottom: 0;
}
input.warning {
    color: red;
    font-weight: 600;
}
.input-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.input-group.row {
    flex-direction: row;
}
.input-group.left {
    align-items: flex-start;
}
.input-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
}
.input-item {
    /*width: 100%;*/
    flex: 1 1 0;
    position: relative;
    margin: 20px 0 5px;
    padding-left: 10px;
    padding-right: 10px;
}


input:focus {
    outline: none;
}

label {
    color: var(--label-text);
    pointer-events: none;
    padding-left: 5px;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
    pointer-events: all;
    user-select: none;
}
.input-item > label {
    position: absolute;
    left: 5px;
    top: 5px;
    padding-left: 10px;
}
.input-item.fit {
    width: fit-content;
}
.search-item {
    text-align: left;
    margin-left: 1em;
    margin-right: 1em;
}
.search-item.bottom {
    align-self: flex-end;
}
.search-item.right {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}
.search-item.right * {
    margin-left: 1em;
    height: fit-content;
    align-self: flex-end;
}

.input-item > input:focus ~ label,
.input-item > input:valid ~ label,
.input-item > select ~ label
{
    top: -15px !important;
    font-size: 14px;
    color: #999;
}
/* Fix for autofill, otherwise label and autofill might "collide" */
.input-item > input:-webkit-autofill ~ label ,
.input-item > input:-webkit-autofill:hover ~ label, 
.input-item > input:-webkit-autofill:focus ~ label, 
.input-item > input:-webkit-autofill:active ~ label {
    top: -15px !important;
    font-size: 14px;
    color: #999;
}

.bar {
    position: relative;
    display:block;
    width:100%;
}

.bar:before,
.bar:after {
    content: '';
    height: 2px;
    width: 0;
    bottom: 1px;
    position: absolute;
    background: #4285f4;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.bar:before {
    left: 50%;
}

.bar:after {
    right: 50%;
}

input:focus ~ .bar:before,
input:focus ~ .bar:after,
select:focus ~ .bar:before,
select:focus ~ .bar:after {
    width: 50%;
}


/* button styling */
label.button,
button {
    /*margin-top: 18px;*/
    color: #fff!important;
    /*background-image: linear-gradient(to right,#004c6b 0,#007ec4 40%,#fff 50%,#007ec4 60%,#004c6b 100%)!important;*/
    background-image: linear-gradient(to right,#004c6b 0,#007ec4 40%,#fff 50%,#26e9b9 60%,#44c0ff 100%)!important;
    background-size: 300% 200%!important;
    background-position: -1px 0;
    transition: background-position .3s;
    border: none!important;
    border-radius: 5px;
    padding: 6px 20px;
}
button.selected {
    /*background-image: linear-gradient(to right,#ffb394 0,#ff813b 40%,#fff 50%,#ff813b 60%,#ffb394 100%)!important;*/
    background-image: linear-gradient(to right,#ff017d 0,#ff7f78 40%,#fff 50%,#26e9b9 60%,#44c0ff 100%)!important;
}
button.icon {
    padding: 0px 0px;
    width: 32px;
    height: 32px;
}
button.icon > span {
    margin-left: 5px;
}

#drop-area .button:hover,
button:hover {
    background-position: 99% 0 !important;
    cursor: pointer;
}



/* Modal */
.modal {
    display:    none;
    position:   fixed;
    z-index:    1000;
    top:        0;
    left:       0;
    height:     100%;
    width:      100%;
    background-color: rgba(255, 255, 255);
}
.modal.loading {
    display: block;
    background: rgba(255, 255, 255, .5);
    /*background: rgba( 255, 255, 255, .5 )
                url('../Images/serviceweb_loader.gif') 
                50% 50% 
                no-repeat;*/
}
.modal .container {
    height: 100%;
    align-items: center;
}



/* Service */
div.service {   
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    font-size: .8rem;
    line-height: 1.5;
}
div.service select {
    font-size: .8rem;
}
div.service button {
    font-size: 0.8rem;
}
div.service-row {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-start;
    align-items: stretch;
    /*justify-content: flex-start;
    align-items: stretch;*/
}
div.service-row.newline {
    margin-top: 1.5em;
}
div.service-item.w15 {
    flex-grow: 0;
    flex-basis: 15%;
}
div.service-item.fb50 {
    flex-grow: 1;
    flex-basis: 50%;
}
div.service-item {
    flex:1 1 0px;
    /*padding-left: 3px;
    padding-right: 3px;*/
}
div.service-item textarea {
    resize: none;
    font-size: inherit;
}
div.service-item.box {
    border: 1px solid silver;
}
div.service-item.right {
    text-align: right;
}
div.service-item.mr {
    margin-right: 10px;
}
div.service-item.ml {
    margin-left: 10px;
}

.bgltgrey {
    background-color: #eeeeee;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.dark .bgltgrey {
    background-color: var(--primary-input-bg);
    /*color: var(--primary-text);*/
    color: var(--primary-text);
}


/* Data list */
dl.data-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    row-gap: 0.5rem;
    column-gap: 1rem;
    margin: 1rem 0;
}

dl.data-list dt {
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
}

dl.data-list dd {
    margin: 0;
}

/* Div table */
div.service-container,
div.table-container {
    display: block;
    margin: 2em auto;
    width: 100%;
}
.table {
    display: flex;
    flex-flow: column nowrap;
    font-size: .8rem;
    line-height: 1.5;
    border-bottom: 1px solid #d0d0d0;
    flex: 1 1 auto;
}
.th {
    display: none;
    font-weight: 700;
    background-color: #f2f2f2;
}
  
.th > .td {
    white-space: normal;
    /*justify-content: center;*/
}
.td.right {
    justify-content: flex-end;
}
.td.min {
    flex: 0 1 auto;
}
.td > button {
    margin-top: 0px;
}
.td {
    word-break: break-all;
}

.tr {
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
}

a.tr:not(.th):hover, a.tr:not(.th):active,
.tr:not(.th):hover, tr:not(.th):active {
    background-color: rgb(153, 204, 232) !important;
    color: #000 !important;
}
.tr.clickable:hover, tr.clickable:active {
    cursor: pointer;
}

.tr:nth-of-type(even) {
    background-color: var(--tr-even);
}
.tr:nth-of-type(odd) {
    background-color: var(--tr-odd);
}

a.tr {
    color: var(--primary-text);
}
.td {
    display: flex;
    flex-flow: row nowrap;
    flex-grow: 1;
    flex-basis: 0;
    padding: 0.3em;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0px;
    border-bottom: 1px solid #d0d0d0;
}
.td.clickable {
    cursor: pointer;
    user-select: none;
}
.td.clickable.desc::after {
    content: "\25bc";
}
.td.clickable.asc::after {
    content: "\25b2";
}


/* Tables */
table {
	border-collapse: collapse;
	margin: 0 0 1.5em;
    width: 100%;
    color: white;
    font-size: 0.8rem;
    line-height: 1.5;
}

caption {
    color: #fff;
    font-size: 1em;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

thead th {
	border-bottom: 2px solid #bbb;
    padding-bottom: 0.5em;
}

th {
    cursor: pointer;
	padding: 0.4em;
    text-align: left;
    color: var(--primary-text);
}
td {
	padding: 0.4em;
}
td.number {
    text-align: right;
}

tr {
	border-bottom: 1px solid #eee;
}
tr:nth-of-type(even) {
    background-color: var(--tr-even);
}
tr:nth-of-type(odd) {
    background-color: var(--tr-odd);
}
tr.clickable {
    cursor: pointer;
    color: lightsteelblue
}
tbody tr:hover, tbody tr:active {
    background-color: rgb(153, 204, 232) !important;
    color: #000 !important;
}
th:hover, th:active {
    background-color: rgb(153, 204, 232) !important;
    color: #000 !important;
}
tr:hover td, tr:active td {
    color: #000 !important;
}
tr:not(:hover) td, tr:not(:active) td {
    color: var(--primary-text);
}

/*th:first-child,
td:first-child {
	padding-left: 0;
}

th:last-child,
td:last-child {
	padding-right: 0;
}*/


@media screen and (max-width: 48em) {
    .collapsable {
        display: none !important;
    }
    .dialog.mw {
        width: 90%;
    }
}


/* NAVIGATION */
@media screen and (max-width: 48em) {
    #navigation_menu li/*:not(:first-child)*/ {
        display: none !important;
    }
    #navigation_menu .navigation_icon {
        display: block !important;
    }
    #navigation_menu {
        flex-direction: column;
    }
}

@media screen and (max-width: 48em) {
    #navigation_menu.responsive {
        position: relative;
    }
    #navigation_menu.responsive li {
        float: none;
        display: block !important;
    }
}

#navigation_menu .navigation_icon {
    display: none;
    padding: 0;
    height: 40px;
}
#navigation_menu .navigation_icon a {
    height: 40px;
}
#navigation_menu,
.navigation_menu {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-top: 1em;
    margin-bottom: 0em;
    text-align: center;
    justify-content: center;
    min-height: unset;
}
#navigation_menu li,
.navigation_menu li {
    float: left;
    font-weight: 600;
    display: block;
    text-align: center;
    padding: 0.5em 0.5em;
    text-decoration: none;
}
.navigation_menu.row {
    flex-direction: column;
}
#navigation_menu li:hover:not(.navigation_icon) {
    background-color: #f2f2f2;
}
#navigation_menu li.active {
    background-color: rgb(153, 204, 232) !important;
}
.userdialogbutton {
    padding: 0.5em 1em;
    font-weight: 600;
}


.navigation_menu a {
    color: var(--primary-text);
    display: block;
}
.dark #navigation_menu li:hover:not(.navigation_icon) a,
.dark #navigation_menu li.active:not(.navigation_icon) a {
    color: var(--hover-text);
}




@media screen and (min-width: 30em) {

	/* Typography */

	h1 {
		font-size: 26px;
        font-size: 1.625rem;
        margin-top: 0.2em;
        margin-bottom: 0.2em;
	}

    h2 {
        font-size: 24px;
        font-size: 1.5rem;
        margin-top: 0.2em;
        margin-bottom: 0.2em;
    }

	h3 {
		font-size: 22px;
		font-size: 1.375rem;
	}

	h4 {
		font-size: 18px;
		font-size: 1.125rem;
	}

	h5 {
		font-size: 13px;
		font-size: 0.8125rem;
	}

	h6 {
		font-size: 16px;
		font-size: 1rem;
    }
}


/*@media screen and (min-width: 48em) {*/
@media screen and (min-width: 30em) {    
	button,
	input,
	select,
    .wrap,
    .header_top,
    .header_navigation {
		max-width: 1000px;
    }

    .content_box {
        width: 90%;
    }
    form#loginform,
    form.login {
        width: 50%;
    }
    form#newcustomerregisterform {
        width: 50%;
    }
    .event {
        padding-left: 1em;
        padding-right: 1em;
    }
    .event-group {
        display: flex;
        flex-direction: row;
    }
    .sw-input-group { /* used */
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .sw-input { /* used */
        /*flex: 1 1 auto;*/
        min-width: 250px;
    }
    .event-input {
        margin-bottom: 0px;
    }
    div.user {      /* used */
        width: 200px;
        margin: 1em;
    }
    a.user {
        width: unset;
    }
}

