:root {
    --header-height: 3.5rem;
    --menu-width: 16rem;
  }

html {
    box-sizing: border-box;
    font-size: .875rem;
}

@media only screen and (min-width: 769px) {
    html {
        font-size: .875rem;
    }
}

/* WebKit-browsere */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #eee;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Fjern pilene */
::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #999 #eee;
}



*,
*:before,
*:after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    outline: none;
    line-height: 1.6;
    vertical-align: baseline;
    font-weight: 400;
    min-height: 100vh;
    overflow-y: hidden;
    overflow-x: hidden;
    font-family: 'Raleway', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar-thumb {
    --tw-border-opacity: 1;
    background-color: hsla(0, 0%, 89%, .8);
    border-color: rgba(255,255,255, var(--tw-border-opacity));
    border-radius: 9999px;
    border-width: 1px;
}

::placeholder {
    color: #ccc;
}

A,
A:link,
A:visited,
A:active {
    line-height: inherit;
    color: #3468AF;
    text-decoration: none;
    cursor: pointer;
}

A.green {
    color: #3ba666;
}

A:hover {
    text-decoration: underline;
}

A:link.inherit,
A:visited.inherit,
A:active.inherit {
    line-height: inherit;
    color: inherit;
    text-decoration: inherit;
}

A:hover.inherit {
    text-decoration: inherit;
}

A:focus {
    outline: none;
}

@keyframes fadeInAnimation {
    from { opacity: 0; }
    to { opacity: 1; }
}


.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 10px auto;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }

  .loader-bar {
    position: fixed;
    top: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #e39a14 0%, #4d8161 50%, #4d8161 100%);
    background-size: 200% 100%;
    animation: loading-bar 1.5s infinite linear;
    z-index: 9999;
    pointer-events: none;
  }
  
  @keyframes loading-bar {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }

.modal-window {
    position: absolute;
    display: flex;
    flex-direction: column;
    top: 0;
    left: 0;
    right: 0;
    bottom: 4.95rem;
    background-color: #fcfcfc;
    animation: scaleAnimation ease .5s;    

}

.modal-window-close {
    position: absolute;
    z-index: 1001;
    top: 0;
    right: 0;
    height: 2.75rem;
    width: 2.75rem;
    background-image: url(../img/db-menu-search-close.svg);
    background-size: 1.5rem;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer !important;
}

/***************************************************************/
/*************************  Message box ************************/
/***************************************************************/

.modal-window-overlay {
    position: absolute;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(50, 50, 50, 0.15);
    z-index: 10000;
    animation: fadeInAnimation ease .5s;    
}

#yes-no-window > div {
    display: flex;
    flex-direction: column;
    align-items: center;    
    width: 15rem;
    margin-bottom: 3rem;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 6px 5px 11px 0px rgba(130, 120, 120, 0.31);
}

#yes-no-window > div > p {
    font-size: 1.2rem;
}

#yes-no-window > div > div {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.modal-window-backdrop {
    position: relative;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    width: 100%;
    height: 100%;
    display: flex;
    background-color: rgba(50, 50, 50, 0.35);
    z-index: 100;
    animation: fadeInAnimation ease .5s;    
}

.modal-window-header {
    display: none;
}

.modal-window-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    min-height: 2rem;
}

.modal-window-content > .loading{
    width: 100%;
    height: 8rem;
    background: url(../img/loading.gif) center no-repeat;
    background-size: 4rem;
}

@media only screen and (min-width: 769px) {

    .modal-window {
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        border: 1px solid #ccc;
        background-color: #fcfcfc;
        box-shadow: 6px 5px 11px 0px rgba(130, 120, 120, 0.31);
        margin-bottom: 2rem;
        resize: both;
        overflow: auto;
    }    

    .modal-window-header {
        display: block;
        width: 100%;
        height: 2.75rem;
        padding: .4rem 1rem;
        color: #777;
        font-weight: 600;
        font-size: 1.25rem;
        cursor: move;
        user-select: none;
        background-color: #f3f3f3;
        border-bottom: 1px solid #ddd;
    }    
}


/***************************************************************/
/***********************  Standard styles **********************/
/***************************************************************/

.display-none {
    display: none !important;
}

.display-block {
    display: block !important;
}

.display-flex {
    display: flex;
}

.float-right {
    float: right;
}

.float-left {
    float: left;
}

.font-bold {
    font-weight: bold;
}

.font-normal {
    font-weight: normal;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.flex {
    display: flex;
}

.wrap {
    flex-wrap: wrap;
}

.nowrap {
    flex-wrap: nowrap;
}

fieldset.wrap label {
    width: 100% !important;
    max-width: 100% !important;
}

@media only screen and (min-width: 769px) {
    
    .modal-window-content {
        top: 2.75rem;
    }

    .modal-window-backdrop {
        margin: 0;
    }    

    .wrap {
        flex-wrap: nowrap;
    }

}



/***************************************************************/
/***************************************************************/
/***************************  Grids ****************************/
/***************************************************************/
/***************************************************************/

.width-1-12 {
    width: 8.333%;
    max-width: 8.333%;
}

.width-2-12 {
    width: 16.666%;
    max-width: 16.666%;
}

.width-3-12 {
    width: 25%;
    max-width: 25%;
}

.width-4-12 {
    width: 33.333%;
    max-width: 33.333%;
}

.width-5-12 {
    width: 41.666%;
    max-width: 41.666%;
}

.width-6-12 {
    width: 50%;
    max-width: 50%;
}

.width-7-12 {
    width: 58.333%;
    max-width: 58.333%;
}

.width-8-12 {
    width: 66.666%;
    max-width: 66.666%;
}

.width-9-12 {
    width: 75%;
    max-width: 75%;
}

.width-10-12 {
    width: 83.333%;
    max-width: 83.333%;
}

.width-11-12 {
    width: 91.666%;
    max-width: 91.666%;
}

.width-12-12 {
    width: 100%;
    max-width: 100%;
}

.main-header {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: var(--header-height);
    padding: .5rem 4rem .5rem 0;
    background-image: linear-gradient(60deg, #4dac71 50%, #3ba666 50%);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    justify-content: space-between;
}

.main-header-logo {
    height: 2.5rem !important;
    width: 2.5rem !important;
    margin: .5rem;
    background-image: url(../img/header-main-logo.svg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
}

.userinfo {
    color:white;
    text-align: right;
    text-overflow: ellipsis;
    text-wrap: nowrap;
    overflow: hidden;
    margin-right: .5rem;
}

.userinfo > div.realname {
    font-size: 1rem;
}

#user-information {
    margin: 1rem;
    font-size: 0.82rem;
    padding: .5rem;
    border-top: 1px solid #3c584b;
}

#user-information > .head{
    font-weight: bold;
    color: #999;
    padding-top: .65rem;
}

#user-information > .info{
    color: #999;
}

#user-information > .admin{
    color: #e86433;
    padding-top: .5rem;
}

#user-information select {
    margin: .5rem 0;
    font-size: 0.82rem;
    padding: .35rem;
    background-color: #2e4051;  
    color: #aaa;
    outline: none;
    width: 100%;
    font-size: .875rem;
    border: 1px solid #555;
}

.userinfo > div.email {
    font-size: .75rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-wrap: nowrap;
    overflow: hidden;    
}

.main-menu {
    position: absolute;
    z-index: 10000;
    background-color: #293949;
    color: #ddd;
    top: var(--header-height);
    width: var(--menu-width);
    left: -16rem;
    bottom: 5rem;
    max-width: fit-content;
    user-select: none;
    overflow: hidden;
    transition: left 0.1s ease-out;
}

.main-container {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right:0;
    bottom:0;
    overflow: hidden;
}

/***************************************************************/

@media only screen and (min-width: 1199px) {

    .main-header {
        padding: .5rem .5rem .5rem 0;
    }

    .main-menu {
        left: 0;
        max-width: var(--menu-width);
    }

    .main-container {
        left: var(--menu-width);
    }
    
}