/* ---------------------------------- */
/* BASIC */
/* ---------------------------------- */

:root {
    --white: #fff;
    --black: #000;
    --font: #5a5555;
    --primary: #e20221;
    --secondary: #23145f;
    --b--light-gray: #ebebeb;
    --bg-light-gray: #eee;
    --green: #467211; /* for kamera versjon */
}

.b--black {
    border-color: var(--black);
}

.bg-green {
    background-color: var(--green);
}

.secondary {
    color: var(--secondary);
}

html, body {
    height: 100vh;
}

.w-max-240 {
    max-width: 240px;
}

.w-max-450 {
    max-width: 450px;
}

.w-max-700 {
    max-width: 700px;
}

.w-min-240 {
    min-width: 240px;
}

.w-min-450 {
    min-width: 450px;
}

.w-70 {
    width: 70%;
}

.w-90 {
    width: 90%;
}

.mh {
    margin: 0 auto;
}

.mt3 {
    margin-top: 1rem;
}

.mt3-halv {
    margin-top: 1.5rem;
}

.mt5 {
    margin-top: 4rem;
}

.mb3-halv {
    margin-bottom: 1.5rem;
}

.mb5 {
    margin-bottom: 4rem;
}

.pa4 {
    padding: 2rem;
}

.pt4 {
    padding-top: 2rem;
}

.pt4-halv {
    padding-top: 3rem;
}

/* for Ny bruker form */
.pt5 {
    padding-top: 3.6rem;
}

/* not integer */
.pb2 {
    padding-bottom: .5rem;
}

.pb4 {
    padding-bottom: 2rem;
}

.pl3 {
    padding-left: 1rem;
}

.pr3 {
    padding-right: 1rem;
}

.ba2 {
    border-style: solid;
    border-width: 2px;
}

.brt3 {
    border-right: 2px solid var(--b--light-gray);
}

.br-pill {
    border-radius: 9999px;
}

.outline {
    outline: 2px dotted var(--black);
}

.f2 {
    font-size: 1.75rem;
}

.f-small {
    font-size: 11px;
}

.fw6 {
    font-weight: 600;
}

.fr {
    float: right;
    _display: inline;
}

.stretch {
    align-items: stretch;
}

.justify-start {
    justify-content: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.items-center {
    align-items: center;
}

.z-9999 {
    z-index: 9999;
}

.overflow-x-auto {
    overflow-x: auto;
}

input[type=text]:focus,
input[type=submit]:focus,
input[type=tel]:focus,
input[type=button]:focus,
input[type=email]:focus,
input[type=password]:focus {
    outline: none;
}

.right-icon {
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 2rem;
}

.left-icon {
    background-repeat: no-repeat;
    background-position: left 10px center;
    background-size: 24px;
    padding-left: 2.2rem;
}

.center-icon {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 32px;
}

.button-arrow-red {
    background-image: url(/images/svg/button-arrow-red.svg);
}

.icon-search-navigation {
    background-image: url(/images/svg/icon-search-navigation.svg);
}

/* usersearch.php, with .icon-right */
.arrow-down-white {
    background-image: url(/images/svg/arrow-down-white.svg);
}

/* _inc_nybrukere.php --> left */
.footer-arrow {
    background-image: url(/images/svg/footer-arrow.svg);
}

/* sidebar.php --> right, _inc_nybrukere.php --> left */

.menu {
    background-image: url(/images/svg/menu.svg);
}

/* header.php */


/* Override snla-css */
body {
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--font);
}

.b--light-gray {
    border-color: var(--b--light-gray);
}

.b--secondary {
    border-color: var(--secondary);
}

.pb0 {
    padding-bottom: 0;
}

/* #search: can not working from snla-css, need write again, use together with pa4 */

.bg-primary {
    background-color: var(--primary);
}

.bg-secondary {
    background-color: var(--secondary);
}

.bg-light-gray {
    background-color: var(--bg-light-gray);
}

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

/* ---------------------------------- */
/* HEADER */
/* ---------------------------------- */

header {
    max-height: 70px;
    min-height: 70px;
    background-color: var(--primary);
}

#header-logo-white {
    height: 36px;
}

#mobil-menu {
    top: 19px;
    right: 19px;
}

.mobil-menu-wapper {
    top: 0;
    height: 100vh;
    background-color: var(--white);
    position: fixed;
    animation: 1s;
    animation-name: slidein;
}

@keyframes slidein {
    from {
        margin-left: 100%;
        width: 100%;
    }

    to {
        margin-left: 0%;
        width: 100%;
    }
}

.mobil-menu-open {
    min-width: 272px;
    max-width: 272px;
    border-left: 2px solid var(--b--light-gray);
    float: right;
}

.mobil-menu-open-header {
    height: 70px;
}

/* ---------------------------------- */
/* Logg inn page */
/* ---------------------------------- */

#logginn-page {
    width: 300px;
}

#logginn-logo {
    height: 52px;
}

#logginn-btn {
    padding: 0.6rem 2.5rem;
}

/* ---------------------------------- */
/* nav#sidebar-nav */
/* ---------------------------------- */

.active {
    color: var(--primary);
}

#sidebar-nav {
    background-color: #f6fffe;
}

/* for testing */

#sidebar-nav ul li a:hover,
#sidebar-nav ul li a:active {
    color: var(--primary);
}

ul.collapse li { /* choose more children */
    margin-top: 0.8rem;
    font-size: 11px;
}

/* start with padding for the arrow to show */
#sidebar-nav li a {
    padding-left: 1.2rem;
}

.sidebar-active {
    color: var(--primary);
    background-image: url(/images/svg/button-arrow-red.svg);
    background-repeat: no-repeat;
    background-size: 16px;
}

.line {
    width: 210px;
    border-bottom: 1px solid var(--b--light-gray);
}

.sidebar-nav-line::after {
    content: " ";
    display: block;
    position: absolute;
    height: 1px;
    width: 208px;
    background: var(--b--light-gray);
    margin-top: 1rem;
}

.sidebar-mainmenu .sidebar-submenu {
    display: none;
}

.sidebar-mainmenu.active .sidebar-submenu,
.sidebar-mainmenu:hover .sidebar-submenu {
    display: block;
}

/* ---------------------------------- */
/* #search */
/* ---------------------------------- */

.content-top {
    height: auto;
}

#content-top-search-input {
    padding-left: 1rem;
    padding-right: 2.5rem;
}

#content-top-search-btn {
    background: 0 0;
    border: none;
    height: 24px;
    line-height: 24px;
    right: 0;
}

.content-top-nav { /* absolute, bottom used for hide line when hover */
    height: 46px;
    bottom: -1px;
}

.content-top-nav li {
    list-style: none;
    display: inline-block;
}

.content-top-nav li a {
    display: block;
    height: 46px;
    line-height: 46px;
    padding: 0 8px;
    /* font-weight: 600; */
    /* border-top: 3px solid transparent; */ /* still have moving effect!!! */
    /* border-right: 1px solid transparent; */
    /* border-bottom: 1px solid transparent; */
    /* border-left: 1px solid transparent; */
}

.content-top-nav-active {
    color: var(--secondary);
    background: var(--white);
    border-top: 3px solid var(--primary);
    border-right: 1px solid var(--b--light-gray);
    border-bottom: 1px solid var(--white);
    border-left: 1px solid var(--b--light-gray);
}

.content-top-nav li a:hover {
    color: var(--secondary);
    cursor: pointer;
}

/* ---------------------------------- */
/* Details */
/* ---------------------------------- */

/* Button */
.details-btn {
    padding: 8px 12px;
}

/* table */
thead {
    text-align: left;
}

th, td {
    border-bottom: 1px solid var(--b--light-gray);
    line-height: 2.9rem;
}

/* Brukere */

.brukere-table th:nth-child(n+5):nth-child(-n+9),
.brukere-table td:nth-child(n+5):nth-child(-n+9) {
    text-align: center;
}

.brukere-table a {
    color: var(--primary);
}

/* Grupper */
.grupper-nav li {
    list-style: none;
    display: inline-block;
    height: 24px;
    line-height: 24px;
    padding: 0 20px;
}

.grupper-nav-active {
    border-bottom: 3px solid var(--primary);
}

.grupper-nav li:hover {
    font-weight: 600;
}

.grupper-table {
    border: 1px solid #ebebeb;
    border-collapse: collapse;
}

.grupper-table th:nth-child(1),
.grupper-table td:nth-child(1),
.grupper-table th:nth-child(3),
.grupper-table td:nth-child(3) {
    text-align: center;
}

/* Presentasjoner */
.last-opp-pre-form {
    width: 550px;
    height: auto;
    background: var(--white);
    border: 1px solid var(--b--light-gray);
    box-shadow: 1px 1px 2px var(--bg-light-gray);
    top: 50px;
    left: 200px;
}

.upload-area {
    height: 200px;
    margin: auto;
    text-align: center;
}

.drag-drop {
    font-size: 12px;
}

.file-input {
    color: transparent; /* To hide no file choosen */
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.presentasjoner-table th:nth-child(3),
.presentasjoner-table td:nth-child(3) {
    text-align: center;
}

/* ---------------------------------- */
/* Responsive */
/* ---------------------------------- */

/* Small phones: from 0 to 480px */

@media only screen and (max-width: 767px) {
    #sidebar-nav,
    .logg-inn {
        display: none;
    }

    .mobil-menu-wapper #sidebar-nav {
        display: block;
    }

    table {
        max-width: 800px;
        white-space: nowrap;
        border-collapse: collapse;
    }

    .brukere-table th:nth-child(n+1):nth-child(-n+7),
    .brukere-table td:nth-child(n+1):nth-child(-n+7),
    .presentasjoner-table th:nth-child(n+1):nth-child(-n+2),
    .presentasjoner-table td:nth-child(n+1):nth-child(-n+2) {
        padding-right: 1.5rem;
    }

}

@media only screen and (max-width: 1023px) {
    .content-top-title {
        margin-bottom: 1rem;
    }
}

@media only screen and (min-width: 768px) {
    #header-logo-white {
        margin: 0 auto;
    }

    #mobil-menu, #content-top-search-a {
        display: none;
    }

    .logg-inn {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .content-top-search-form-div {
        display: block;
    }

    #sidebar-nav {
        max-width: 240px;
        min-width: 240px;
        padding: 3rem 1rem 1rem;
        border-right: 2px solid var(--b--light-gray);
    }

    .content-title {
        padding: 3.6rem 2rem 0 2rem;
    }

    .content-title h1 {
        font-size: 1.75rem;
        font-weight: 600;
    }

    .content-details {
        padding: 1rem 2rem;
    }

    .content-details table {
        padding-left: 1rem;
    }

}

@media only screen and (min-width: 1024px) {
    .content-top {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .content-top-area {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
    }

    .content-top-area h1, .content-form h1 {
        font-size: 1.75rem;
        font-weight: 600;
    }

    .content-top-search-form-div {
        margin-bottom: 0;
    }

    #content-top-search-input {
        min-width: 450px;
        max-width: 450px;
    }

    .content-top-nav li a {
        padding: 0 1rem;
    }

    .content-form {
        padding: 3.6rem 2rem 2rem;
    }

    .content-form-div {
        padding-bottom: 2rem;
    }

    .content-form-info p {
        font-size: 1.25rem;
    }

    .mobil-file {
        display: none;
    }

    #add-presentasjoner-btn {
        display: block;
    }

    .content-top-form-div {
        display: flex;
        justify-content: flex-start;
    }

    .content-top-form-div div:nth-child(-n+2) {
        margin-right: 0.5rem;
    }
}