/*
Theme Name: Sebastian DP Portal
Theme URI: http://www.osberget.no/
Author: Magne Grimstad and Marius Ertesvåg at Osberget AS, Maxim Kukulinsky at RASAMAX SIA
Author URI: http://www.osberget.no/
Description: Sebastian DP Portal Wordpress theme
Version: 0.2.19
Tags: sebastian osberget rasamax
Text Domain: sebastiandpp
*/
/**
 * Reset CSS instead of Normalize inside of Bootstrap
 */

/* Page commons */
html {
  scroll-behavior: smooth;
}

body {
    font-family: neue-haas-unica, sans-serif;
    font-size: 15px;
    color: #2F2A2B;
}

* > p:first-child {
    margin-top: 0;
}

* > p:last-child {
    margin-bottom: 0;
}

.alignleft {
    float: left;
    margin: 0 20px 10px 0;
}

.alignright {
    float: right;
    margin: 0 0 10px 20px;
}

.aligncenter {
    margin: 0 auto 10px auto;
    display: block;
}

.bg-cover {
    background: center no-repeat;
    background-size: cover;
}

.bg-contain {
    background: center no-repeat;
    background-size: contain;
}

/* Fixed aspect ratio images */
.fixed-aspect-ratio-image {
    display: block !important;
    padding-top: 100%;
    background: center no-repeat;
    background-size: cover;
}

.fixed-aspect-ratio-image.r-60 {
    padding-top: 60%;
}

.fixed-aspect-ratio-image.r-75 {
    padding-top: 75%;
}

.fixed-aspect-ratio-image.r-67 {
    padding-top: 67%;
}

#go-to-top {
    position: fixed;
    width: 64px;
    right: 20px;
    bottom: 20px;
    opacity: 0;
    max-width: 0;
    transition: opacity .5s, max-width .0s .5s;
    z-index: 3;
}

#go-to-top.visible {
    opacity: 1;
    max-width: 64px;
    transition: opacity .5s, max-width .0s;
}

/* Page stretch to 100% screen height */
main {
    min-height: calc(100vh - 143px - 211px);
}

body.admin-bar main {
    min-height: calc(100vh - 143px - 211px - 32px);
}

/* Text style */
.text-19 {
    font-size: 19px;
}

.text-16 {
    font-size: 16px;
}

.text-15 {
    font-size: 15px;
}

.text-14 {
    font-size: 14px;
}

.text-12 {
    font-size: 12px;
}

.text-secondary {
    color: #909BA2!important;
}

.text-danger {
    color: #BA4660 !important;
}

.w-65px {
    width: 65px;
}

.mw-900px {
    max-width: 900px;
}

.square-21 {
    width: 21px;
    height: 21px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 4px;
    text-align: center;
}

.square-34 {
    width: 34px;
    height: 34px;
    padding-left: 0;
    padding-right: 0;
    padding-top: 4px;
    text-align: center;
}

.cursor-pointer {
    cursor: pointer;
}

.pointer-events-none {
    pointer-events: none;
}

/* Survery window bars */
.survery_window_bars,
.before_next_survey_window_period,
.after_next_survey_window_period {
    position: relative;
    overflow: visible;
}

.card-body .survery_window_bars {
    margin-left: -20px;
    margin-right: -20px;
}

.before_next_survey_window_period.with-ending-arrow:after {
    content: '';
    position: absolute;
    left: 100%;
    top: 0;
    display: block;
    width: 0;
    height: 0;
    border-top: 4.5px solid var(--green);
    border-bottom: 4.5px solid var(--green);
    border-right: 5px solid transparent;
    border-left: 5px solid var(--green);
}

.before_next_survey_window_period.with-ending-arrow:before {
    content: '';
    position: absolute;
    left: calc(100% + 3px);
    top: 0;
    display: block;
    width: 0;
    height: 0;
    border-top: 4.5px solid white;
    border-bottom: 4.5px solid white;
    border-right: 5px solid transparent;
    border-left: 5px solid white;
}

.after_next_survey_window_period:after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    display: block;
    width: 2px;
    height: 9px;
    background-color: white;
}

.today_position {
    font-size: 0;
    width: 0;
    height: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid white;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}

.next_ship_check_date {
    font-size: 0;
    width: 0;
    height: 0;
    top: 0;
    transform: translateX(-50%);
    border-top: 4.5px solid white;
    border-bottom: 4.5px solid transparent;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
}

.next_ship_check_date:before {
    content: '';
    display: block;
    width: 2px;
    height: 9px;
    background: white;
    position: absolute;
    top: -4.5px;
    transform: translateX(-50%);
}

.bg-orange-yellow {
    background: linear-gradient(90deg, rgba(250,213,6,1) 0%, rgba(248,127,24,1) 100%);
}

.new_year_position {
    font-size: 0;
    width: 10px;
    height: 90px;
    bottom: 0;
    border-left: 1px dashed var(--light);
    transform: translateX(-50%);
}

.new_year_position:before {
    content: '';
    position: absolute;
    display: block;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-left: 17px solid var(--light);
    border-right: 17px solid transparent;
    border-top: 4.5px solid transparent;
    border-bottom: 4.5px solid transparent;
}

/* Menu */
.menu-item a {
    color: #2F2A2B;
}

.menu-item.text-danger a {
    color: #BA4660;
}

.menu-item.icon-question:after {
    content: '';
    display: inline-block;
    margin-left: 30px;
    width: 22px;
    height: 22px;
    background: url('images/question.svg') no-repeat center;
    margin-bottom: -5px;
}

.menu-item-has-children {
    position: relative;
}

.menu-item-has-children:after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 4px solid #2F2A2B;
    border-right: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid transparent;
    margin-left: 30px;
}

.sub-menu .menu-item-has-children:after {
    border-top: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid #2F2A2B;
    margin-left: 0;
    float: right;
    margin-top: 5px;
}

#menu-top-menu li input {
    display: none;
}

#menu-top-menu .sub-menu {
    padding: 0;
    display: none;
    width: 200px;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    background: white;
    box-shadow: 3px 3px 5px rgb(0 0 0 / 0.3);
}

#menu-top-menu .sub-menu li {
    padding: 20px;
}

#menu-top-menu li:hover > .sub-menu,
#menu-top-menu .sub-menu:hover {
    display: block;
    z-index: 100;
}

#menu-top-menu .sub-menu li:hover > .sub-menu {
    top: 0;
    left: 100%;
}

@media (max-width: 991px) {
    .menu-item-has-children:after {
        display: none;
    }

    #menu-top-menu li.menu-item-has-children > .sub-menu {
        display: block;
        position: static;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        order: 2;
        -webkit-transition: max-height .5s cubic-bezier(0, 1, 0, 1);
        -moz-transition: max-height .5s cubic-bezier(0, 1, 0, 1);
        -ms-transition: max-height .5s cubic-bezier(0, 1, 0, 1);
        transition: max-height .5s cubic-bezier(0, 1, 0, 1);
        box-shadow: none;
    }

    #menu-top-menu li {
        padding: 10px 0;
    }

    #menu-top-menu li.menu-item-has-children > .sub-menu li {
        padding: 10px 0 0 20px;
    }

    #menu-top-menu li.menu-item-has-children > input:checked ~ .sub-menu {
        max-height: 1000px;
        -webkit-transition: max-height .5s cubic-bezier(1, 0, 1, 0);
        -moz-transition: max-height .5s cubic-bezier(1, 0, 1, 0);
        -ms-transition: max-height .5s cubic-bezier(1, 0, 1, 0);
        transition: max-height .5s cubic-bezier(1, 0, 1, 0);
    }

    #menu-top-menu li.menu-item-has-children > input {
        display: block;
        position: absolute;
        right: 0;
        top: 0;
        -ms-appearance: none;
        -o-appearance: none;
        -moz-appearance: none;
        -webkit-appearance: none;
        appearance: none;
        width: 20px;
        height: 20px;
        order: 1;
    }

    #menu-top-menu li.menu-item-has-children > input:before,
    #menu-top-menu li.menu-item-has-children > input:after {
        content: "";
        position: absolute;
        top: 50%;
        width: 100%;
        height: 2px;
        background: black;
        transition: transform 0.5s;
    }

    #menu-top-menu li.menu-item-has-children > input:before,
    #menu-top-menu li.menu-item-has-children > input:checked:after {
        transform: translate(0, -50%);
    }

    #menu-top-menu li.menu-item-has-children > input:after {
        transform: translate(0, -50%) rotate(90deg);
    }
}

/* Flashing animation */
@-webkit-keyframes blinker {
  0% { opacity: 1.0; }
  50% { opacity: 0.0; }
  100% { opacity: 1.0; }
}

.flashing {
  -webkit-animation-name: blinker;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: cubic-bezier(.5, 0, 1, 1);
  -webkit-animation-duration: .5s;
}

.btn.disabled, .btn:disabled {
    opacity: .45;
}