﻿
body {
    background-color: #ccc;
    position: relative;
    font-size: 1rem;
    height: 100%;
    overflow-y: scroll;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

body:not(.login) {
    padding-top: 4rem; /* fixed header menu*/
}


.navbar {
    min-height: 4rem;

}

.login-box,
.objects-box {
    background-color: rgba(255,255,255,.95);
    padding: 2rem;
    flex: 1 1 25rem;
    max-width: 35rem;
    border-radius: .25rem;
}

@media(min-height: 768px) {
    .login-box, .objects-box {
        margin-top: -4rem;
    }
}

#login-header {
    padding: 1.5rem 0;
}

.login-box input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.login-box input[type=number] {
    -moz-appearance: textfield;
}

#nin-form #error-wrapper {
    color: red;
}

.navigate-to-password {
    display: flex;
    justify-content: space-between;
    position: relative;
    flex-wrap: wrap;
}

.navigate-to-password a, .resend-otp a {
    display: flex;
    align-items: center;
    padding: 0 .5rem 0 .25rem;
}

.navigate-to-password a i {
    position: relative;
    height: 1rem;
    width: 1.25rem;
}

.resend-otp a i {
    position: relative;
    height: 1rem;
    width: 1rem;
}

.navigate-to-password a i::before {
    right: 0;
    position: absolute;
    transition: right .2s ease-in-out
}

.resend-otp a, .resend-otp a:hover {
    text-decoration: underline !important;
}

.resend-otp a:hover {
    cursor: pointer;
}

.navigate-to-password a:hover i::before,
.navigate-to-password a:focus i::before {
    right: -.25rem;
}

.navigate-to-login {
    display: flex;
    justify-content: flex-start;
}

.navigate-to-login a {
    display: flex;
    align-items: center;
    padding: 0 .25rem 0 .5rem;
}

.navigate-to-login a i {
    position: relative;
    height: 1rem;
    width: 1.25rem;
}

.navigate-to-login a i::before {
    left: 0;
    position: absolute;
    transition: left .2s ease-in-out
}

.navigate-to-login a:hover i::before,
.navigate-to-login a:focus i::before {
    left: -.25rem;
}


.toggle-password-mode {
    font-size: 1rem;
    position: absolute;
    right: 0;
    margin-top: -2rem;
    border: none;
    outline: none;
    background: none;
    opacity: .5;
}

.toggle-password-mode:hover,
.toggle-password-mode:focus {
    opacity: 1;
}

.toggle-password-mode:hover i::before,
.toggle-password-mode:focus i::before {
    font-weight: 700;
}

.input-validation-error {
    box-shadow: 0 0 0 0.25rem rgb(220 53 69 / 25%);
}

.field-validation-error {
    color: rgb(220 53 69 / 100%);
    display: block;
    margin-top: .5rem;
}

::-ms-reveal { /* MS Edge input[type="password"] */
    display: none;
}

.pre-wrap {
    white-space: pre-wrap;
}

.validation-summary-errors ul {
    display: none;
}

.form-switch label:hover, .form-switch input:hover{
    cursor: pointer;
}

h1 {
    font-weight: 300;
    font-size: 2.5rem;
    margin-bottom: .25rem;
    hyphens: auto;
    word-break: break-word;
}

h2 {
    font-weight: 300;
    font-size: 1.75rem;
    hyphens: auto;
    word-break: break-word;
}

.card-header {
    padding: .25rem;
}

.card-body .btn-secondary {
    margin-right: .25rem;
    margin-bottom: .25rem;
}

.card-body .documentImage {
    max-height: 200px;
}

.card-footer {
    padding-top: .75rem;
}

.card-footer .btn {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin-bottom: .25rem;
}

.card-footer .btn span {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.card-footer .btn .fas {
    margin-left: .5rem;
    flex: 0;
    line-height: 1;
}


.object-menu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    margin: 1.5rem 1rem auto;
}

.object-menu h1 {
    text-align: center;
    padding: .5rem 2rem;
    margin: 0;
}

.object-menu .thumbnail {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 7rem;
    height: 7rem;
    flex: 0 0 7rem;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.25);
    border: solid 1px rgba(0,0,0,0.125);
    display: inline-block;
}

.object-menu .toggle-details {
    padding-right: 1.5rem;
}

.object-menu .toggle-details .show {
    display: none;
}

.object-menu .toggle-details:after {
    content: "\f107"; /* angle-down */
    font-family: 'Font Awesome 5 Pro';
    font-weight: 400;
    transition: transform .2s ease-in-out;
    transform: rotate(0);
    position: absolute;
    right: .5rem;
}

.object-menu .toggle-details.collapsed .hide {
    display: none;
}

.object-menu .toggle-details.collapsed .show {
    display: inline;
}

.object-menu .toggle-details.collapsed:after {
    transform: rotate(-90deg);
}

.object-menu .main-heading {
    text-align: center;
}

.object-menu .quick-links .btn {
    margin-top: .25rem;
}

.object-menu .quick-links {
    text-align: center;
}

.object-menu .quick-links .btn {
    margin-top: .25rem;
}


.alert a[data-bs-toggle="tooltip"] {
    text-decoration: none;
    border-bottom: dotted 1px black;
}

.alert-warning a[data-bs-toggle="tooltip"] {
    color: #664d03;
}

.alert-info a[data-bs-toggle="tooltip"] {
    color: #055160;
}

.alert-success a[data-bs-toggle="tooltip"] {
    color: #0f5132;
}

.alert-danger a[data-bs-toggle="tooltip"] {
    color: #842029;
}

#fase-bg-wrapper {
    background-repeat: no-repeat !important;
    background-size: cover !important;
    padding-bottom: 1rem;
}

/* widgets */
.card-body .info-icon {
    width: 8rem;
    float: right;
    margin-right: -1rem;
}
/*default midtstilt innhold i aktivitetswidget*/
.activity-widget {
    text-align: center;
}

.activity-widget .info-icon {
    float: none;
}

.activity-widget .activity-details, .document-details {
    font-size: larger;
}
/* ledetekst kan legges inn foran aktivitetsdatoen */
.activity-widget .activity-details .activity-type {
    display: none;
}

.bg-primary {
    background-color: #205493 !important;
}

.bg-secondary {
    background-color: #b0d0ec !important;
}

.breadcrumb {
    margin: 0;
    display: block;
    text-align: center;
    font-size: .95rem;
    line-height: 1.9;
}

.breadcrumb li {
    text-align: center;
    display: inline-block;
    position: relative;
}

.breadcrumb li.active {
    font-weight: 700;
    color: black;
}

.breadcrumb-item + .breadcrumb-item:not(.active)::before {
    content: "" !important;
}

.breadcrumb-item + .breadcrumb-item a {
    margin-left: 2rem;
}

.breadcrumb-item + .breadcrumb-item a::before {
    content: "\f061"; /* fa-arrow-right */
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    float: none;
    opacity: .8;
    position: absolute;
    left: 1rem;
    transition: left .2s ease-in-out
}

.breadcrumb-item + .breadcrumb-item:not(.active) a:hover::before,
.breadcrumb-item + .breadcrumb-item:not(.active) a:focus::before {
    opacity: 1;
    left: 1.25rem;
}

.breadcrumb-item + .breadcrumb-item.active {
    padding-left: 2.5rem;
}

.breadcrumb-item + .breadcrumb-item.active::before {
    content: "\f061"; /* fa-arrow-right */
    font-family: "Font Awesome 5 Pro";
    font-weight: 300;
    float: none;
    opacity: 1;
    position: absolute;
    left: 1rem;
}


.navbar-nav {
    flex: 1 1 auto;
}

.navbar-brand {
    padding: 0;
    margin: 0;
}


button.user-announcements {
    position: relative;
    margin-right: .25rem;
}

button.user-announcements:after {
    position: absolute;
    bottom: -7px;
    left: -1px;
    content: " ";
    width: 0;
    height: 0;
    border: 7px solid;
    border-color: transparent transparent transparent var(--bs-warning);
    transition: border-color .15s ease-in-out;
}

button.user-announcements:hover:after,
button.user-announcements:active:after,
button.user-announcements:focus:after {
    border-left-color: #ffca2c;
}

.offcanvas-header h5 {
    word-break: break-all;
    padding-right: 1rem;
}

.bd-callout {
    padding: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e9ecef;
    border-left-width: .25rem;
    border-radius: .25rem;
}

.bd-callout-info {
    border-left-color: var(--bs-info);
}

.bd-callout-warning {
    border-left-color: var(--bs-warning);
}

.bd-callout-danger {
    border-left-color: var(--bs-danger);
}

.bd-callout-success {
    border-left-color: var(--bs-success);
}

main .container {
    padding: 1rem;
    border-radius: .25rem;
}

main .container.primary {
    margin-bottom: 2rem;
}

main .container.primary.first {
    margin-top: -4rem;
}

main article.info {
    background-color: rgba(255,255,255,.95);
    padding-bottom: 4rem;
}

main article.info > .alert {
    margin: 0 3rem 1rem 3rem;
}


.smart-scroll {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    transition: transform 0.2s ease-in-out;
}

.scrolled-down {
    transform: translateY(-100%);
}

.scrolled-up {
    transform: translateY(0);
}

#ie-alert a {
    color: #dc3545; /* --bs-danger */
}

#ie-alert a:hover {
    color: black;
}

#objectDetails, #brokerDetails {
    text-align: center;
}

#objectDetails .card,
#brokerDetails .card {
    border: none;
    background-color: transparent;
}

#calendarModal .activity td {
    vertical-align: middle;
}

#marketingModal td {
    vertical-align: middle;
}

#imageListModal .thumbnail {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.25);
    border: solid 1px rgba(0,0,0,0.125);
    aspect-ratio: 1 / 1;
    display: inline-block;
    flex: 0 0 2.5rem;
    object-fit: cover;
}

#imageListModal tr:hover {
    cursor: pointer;
}


.change-alert-settings-form .list-group-item label:hover, .change-alert-settings-form .list-group-item input:hover {
    cursor: pointer !important;
}

.change-alert-settings-form label {
    margin-left: 0.5rem;
}

#offcanvasUserInformation .list-group-item {
    padding: 0.5rem 0;
}

#offcanvasUserInformation .list-group-item .member-label {
    line-height: 1.5rem;
    margin-right: .25rem;
}

.broker-details dt {
    margin-top: 1rem;
    margin-bottom: 0;
}

.broker-details dd {
    margin-bottom: 0;
}

.broker-details dd:first-child { /* broker.Title */
    margin-bottom: 1rem;
}

.broker-details .thumbnail {
    object-fit: cover;
    width: 4rem;
    height: 4rem;
    display: block;
    margin-left: calc(50% - 2rem);
    border-radius: 50%;
    border: solid 1px rgba(0,0,0,0.125);
}

/* accordions */
.accordion-button:not(.collapsed) {
    background-color: transparent;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
}

/* widgets */

.modal-body .amount-column {
    text-align: right;
    white-space: nowrap;
}

.modal-body .btn[data-bs-toggle="tooltip"] {
    display: inline-flex;
    padding-top: 0;
}

.modal-body .btn[data-bs-toggle="tooltip"] .fa-info-circle {
    color: var(--bs-primary);
}

.offcanvas a[data-bs-toggle="tooltip"] {
    text-decoration: none;
    border-bottom: dotted 1px black;
}

.offcanvas a[data-bs-toggle="tooltip"] .fa-info-circle {
    color: var(--bs-primary);
}


footer {
    background-color: #f8f9fa; /* bg-light */
}


.sortable thead th button:before {
    font-family: 'Font Awesome 5 Pro';
    font-weight: 700;
    content: "\f0dc"; /* fa-sort */
    margin-right: .125rem;
}

.sortable thead th[aria-sort="ascending"] button:before {
    content: "\f0de"; /* fa-sort-up */
}

.sortable thead th[aria-sort="descending"] button:before {
    content: "\f0dd "; /* fa-sort-down */
}

.sortable th.amount-column { /* venstrestilt sorterings-ikon */
    direction: rtl;
}

.modal-body .amount-column {
    text-align: right;
    white-space: nowrap;
}

.modal-body th.amount-column {
    overflow: hidden;
    text-overflow: ellipsis;
}

#bidDetailsTableWrapper i {
    padding-right: 6px;
}

.login-logo {
    display: block;
    width: 100%;
    height: 5rem;
    object-fit: contain;
}

.topp-logo {
    display: inline-block;
    width: 12rem;
    height: 3rem;
    object-fit: contain;
}

#login-outer-wrapper.dual {
    display: flex;
    column-gap: 24px;
}

.cognito-login-wrapper {
    max-width: 50%;
    padding: 12px;
    border: solid green 2px;
    border-radius: 12px;
}

.cognito-login-wrapper span {
    width: 100%;
    text-align: center;
}

.cognito-login-wrapper img {
    max-width: 100%;
}

#documentsArchiveModal .signed-by-all-wrapper{
    position: relative;
    padding-right: 5px;
}

#documentsArchiveModal .signed-by-all-wrapper i {
    position: absolute;
    left: -20px;
    top: 0;
    color: var(--bs-success);
}

#documentsArchiveModal td {
    vertical-align: middle;
}

.btn-group {
    flex-wrap: wrap;
    gap: 5px;
}

.modal-preview .preview-loader {
    font-size: 2rem;
    position: absolute;
    top: calc(50% - 1rem);
    left: calc(50% - 1rem);
}

.modal-preview .modal-body {
    background: #eee;
    min-height: 70vh;
}

/*  Tabelloppsett inkl tabell-skygge ved sidescroll */

.table-responsive td {
    hyphens: auto;
    word-break: break-word;
    min-width: 85px;
    max-width: 45vw;
}

    .table-responsive tr:last-child td {
        border-bottom: none;
    }

    .table-responsive td:first-child .btn-group .btn-primary,
    .table-responsive td:first-child .btn-group .btn-outline-primary,
    .table-responsive td:first-child .btn-group .btn-secondary,
    .table-responsive td:first-child .btn-group .btn-warning,
    .table-responsive td:first-child .btn-group .btn-error {
        margin: 0;
    }

.table-responsive.shadow-left {
    box-shadow: inset 10px 0 8px -8px rgb(0 0 0 / 0.3);
}

.table-responsive.shadow-right {
    box-shadow: inset -10px 0 8px -8px rgb(0 0 0 / 0.3);
}

.table-responsive.shadow-left.shadow-right {
    box-shadow: inset 10px 0 8px -8px rgb(0 0 0 / .3), /* venstre */
    inset -10px 0 8px -8px rgb(0 0 0 / .3); /* høyre  */
}


/* media queries */
@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .details-actions {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    #fase-bg-wrapper {
        background: none !important;
    }

    .object-menu .quick-links .btn {
        min-width: 8rem;
    }
}

@media (min-width: 768px) {

    /* Ikke bruke fullscreen modal på stor skjerm */
    .modal-xl {
        width: 90%;
        max-width: 90% !important;
    }

    .modal-body .fixed-table {
        table-layout: fixed;
    }

    main article.info {
        padding-top: 1rem;
        padding-bottom: 3rem;
    }

    main .container {
        padding: 2rem;
    }

    .object-menu .toggle-details {
        min-width: 8rem;
    }
}

@media(min-width: 992px) {

    #objectDetails, #brokerDetails {
        text-align: left;
    }

    .estate-details, .broker-details {
        max-width: 30rem;
    }

        .broker-details .thumbnail {
            float: left;
            clear: both;
            margin-top: -0.5rem;
            margin-right: 1rem;
            margin-bottom: 4rem;
            margin-left: -5rem;
        }

    .card-body {
        padding: 2rem 2rem;
    }
}