html,
body {
    --height: 100%;
    --scrollbar-width: calc(100vw - 100%);
    min-height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
    position: relative;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: fit-content;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    opacity: .9;
    line-height: 4rem;
    padding: 20px;
    position: fixed;
    bottom: 0;
    display: block;
    width: 100%;
    margin: 0;
    --z-index: -1;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

a[disabled], a[disabled]:hover, a[disabled]:focus {
    color: #bebebe;
    cursor: default;
    background-color: transparent;
    text-decoration: none;
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

.popover {
    max-width: 550px !important;
}

nav .popover-content {
    --overflow-y: scroll;
    overflow-y: auto;
    max-height: 500px;
    padding: 10px 0;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.navbar-inverse {
    background-color: rgba(61, 205, 88, .9);
}
.navbar-inverse .navbar-nav > li > span {
    display: inline-block;
    padding: 15px;
    font-weight: bold;
    color: white;
}
.navbar-inverse .navbar-nav > li > span:hover {
    color: whitesmoke;
}

.navbar-brand {
    padding: 5px;
    height: 100%;
    margin-left:0 !important;
}

.navbar-brand img {
    height: 100%;
}

.navbar-inverse .container {
    margin: 0 10px;
}

/*new navbar*/
.navbar-nav {
    background-color: rgba(61, 205, 88, 1);
    margin: 0;
    height: 55px;
    box-shadow: 0px 1px 11px 0px rgba(0,0,0, 0.32);
}
.navbar-nav.landing {
    background-color: rgba(61, 205, 88, .9);
}
.navbar-nav span {
    display: inline-block;
    padding: 15px;
    //font-weight: bold;
    color: white;
}
.navbar-nav span:hover {
    color: whitesmoke;
}
/*----------*/

.navbar .container {
    width: 100%;
}

.navbar-button:hover {
    background-color: #2caf45;
}

.navbar-button.active {
    background-color: #2caf45;
}

.navbar.landing .navbar-toggle {
    display: none;
}

#navbar-shop-block {
    width: 140px;
    margin: 0 auto;
}

.login-form-well {
    background-color: rgba(245, 245, 245, 0.9);
    max-width: 500px;
    margin: auto;
}

.blue {
    color: #41b4e6;
}
.green {
    color: #3dcd58;
}
.gray {
    color: lightgray !important;
}

a {
    color: #41b4e6;
}
a:focus {
    outline: none;
}

.btn {
    outline-style: none !important;
    outline-color: unset !important;
    padding: 6px 27px;
}

.btn-primary {
    color: white;
    background-color: #41b4e6;
    border-color: #41b4e6;
}
.btn-outline-primary {
    color: #41b4e6 !important;
    background-color: white;
    border-color: #41b4e6;
}
.btn-outline-primary:hover {
    color: #41b4e6 !important;
}
.btn-success {
    color: white;
    background-color: #3dcd58;
    border-color: #3dcd58;
}
.btn-outline-success {
    color: #3dcd58 !important;
    background-color: white;
    border-color: #3dcd58;
}
.btn-outline-success:hover {
    color: #3dcd58 !important;
}

.wallet-button {
    width: 280px;
    height: 280px;
    margin: 50px auto;
    border-radius: 5px;
    text-align: center;
    padding: 32px;
    cursor: pointer;
}
.wallet-button img {
    width: 30%;
    margin: 21px 0;
}
#gratitude-wallet:hover {
    background-color: rgba(65, 180, 230, .1);
}
#purchase-wallet:hover {
    background-color: rgba(61, 205, 88, .1);
}
.pointer {
    cursor: pointer;
}

#sidebar {
    display:block;
    position: fixed;
    padding: 15px 0;
    margin-top: -15px;
    right: -1px;
    width: 0;
    --height: 300px;
    height: 100%;
    overflow-x: hidden;
    border: 1px solid lightgray;
    --border-radius: 10px 0 0 10px;
    background-color: rgba(240, 240, 240, 1);
    transition: width .2s 0s ease-in-out;
    --backdrop-filter: blur(7px) saturate(100%) contrast(45%) brightness(130%);
    z-index: 999;
}
#sidebar.opened {
    width: 300px;
    transition: width .2s 0s ease-in-out;
}
#sidebar li {
    display: block;
    --padding: 8px 20px 8px;
    padding-left: 5px;
    white-space: nowrap;
}
#sidebar li:first-child {
    margin-top: 10px;
}
#sidebar li:hover {
    background-color: rgba(61, 205, 88, 0.067);
    transition: background-color .1s 0s ease-in-out;
}
#sidebar li.active {
    border-left: 2px solid #3dcd58;
    --padding: 8px 15px 8px;
    --background-color: rgba(200, 200, 200, .3);
    background-color: rgba(61, 205, 88, 0.067);
}

#sidebar li span {
    display: block;
    padding: 12px 20px 12px;
}

#sidebar li span:hover {
    color: #37c050;
}


#sidebar li.active span {
    padding: 12px 20px 12px 15px;
    color: #37c050;
}

#sidebar li a {
    color: black;
    text-decoration: none;
}

#left-sidebar {
    display:block;
    position: absolute;
    padding: 15px 0;
    margin-top: 55px;
    left: 0px;
    --height: 300px;
    height: 100%;
    min-height: 100vh;
    width: 300px;
    overflow-x: hidden;
    border: 1px solid lightgray;
    --border-radius: 10px 0 0 10px;
    background-color: rgba(240, 240, 240, 1);
    transition: width .2s 0s ease-in-out;
   z-index: 999;
}
#left-sidebar li {
    display: block;
    --padding: 8px 20px 8px;
    padding-left: 5px;
    white-space: nowrap;
}

#left-sidebar li:first-child {
    margin-top: 10px;
}

#left-sidebar li:hover {
    background-color: rgba(61, 205, 88, 0.067);
    transition: background-color .1s 0s ease-in-out;
}
#left-sidebar li.active {
    border-right: 2px solid #3dcd58;
    --padding: 8px 15px 8px;
    background-color: rgba(61, 205, 88, 0.067);
}
#left-sidebar li span {
    display: block;
    padding: 12px 20px 12px;
}
#left-sidebar li span:hover {
    color: #37c050;
}
#left-sidebar li.active span {
    --padding: 12px 20px 12px 15px;
    color: #37c050;
}

#left-sidebar li a {
    color: black;
    text-decoration: none;
}

#gratitudeModal .card {
    width: 128px;
    height: 66px;
    margin: 0 auto;
    text-align: center;
    border-radius: 5px;
    color: white;
    vertical-align:middle;
    cursor: pointer;
}
#gratitudeModal .card.graycard {
    border: 1px solid #adadad;
    --background-color: rgba(173, 173, 173, .5);
    background-color: #adadad;
}
#gratitudeModal .card.graycard.active {
    background-color: #adadad;
}
#gratitudeModal .card.bluecard {
    border: 1px solid #41b4e6;
    --background-color: rgba(65, 180, 230, .5);
    background-color: #41b4e6;
}
#gratitudeModal .card.bluecard.active {
    background-color: #41b4e6;
}
#gratitudeModal .card.greencard {
    border: 1px solid #3dcd58;
    --background-color: rgba(61, 205, 88, .5);
    background-color: #3dcd58;
}
#gratitudeModal .card.greencard.active {
    background-color: #3dcd58;
}
#gratitudeModal .card.active {
    box-shadow: 0 0 10px rgba(0, 0, 0, .5);
    transition: box-shadow .2s;
}
#gratitudeModal .card .card-content {
    display: table-cell;
    width: 128px;
    height: 66px;
    vertical-align: middle;
}

.modal .close {
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 1;
}

.new-notifications-count {
    height: 18px;
    width: 18px;
    position: relative;
    margin-left: -18px;
    margin-top: 10px;
    color: white;
    background-color: red;
    border-radius: 9px;
    padding: 0 !important;
    text-align: center;
    font-size: 13px;
    line-height: 1.2em;
    z-index: 99;
}

.form-control {
    border: none;
    background-color: #fafafa;
    box-shadow: none !important;
}

.select2-selection {
    border: none !important;
    background-color: #fafafa !important;
    box-shadow: none !important;
    height: 48px !important;
    line-height: 34px !important;
}
.select2-selection__arrow {
    border: none !important;
    background-color: #fafafa !important;
    height: 46px !important;
    line-height: 34px !important;
}
.select2-dropdown {
    border: none !important;
}

.input-daterange > .kv-field-separator {
    border: none !important;
    background-color: inherit;
}

.table td {
    border: none !important;
}

.notification {
    color: black;
    padding-bottom: 5px;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px;
}
.notification:hover {
    color: black;
}

.notification.unread {
    --background-color: lightgray;
    background-color: rgba(200, 200, 200, .3);
    transition: background-color .1s 0s ease-in-out;
}
.notification .date-time {
    font-weight: 400;
    font-size: 14px;
    color: #aeaeae;
    --color: gray !important;
}
.notification .date-time:hover {
    color: #aeaeae;
}
.notification .message {
    font-weight: 400;
    font-size: 18px;
    color: black;
}
.notification .message:hover {
    color: black;
}
.notification span {
    padding: 0;
}
.notification.empty {
    text-align: center;
    --min-width: 250px;
    overflow: hidden;
}

#menu-toggler::after {
    content: '';
    display: inline-block;
    height: 8px;
    width: 8px;
    border-top: 1px solid white;
    border-right: 1px solid white;
    margin-left: 10px;
    margin-bottom: 3px;

    transform: rotate(-135deg);
    transition: transform .2s 0s ease-in-out;
}
#menu-toggler.opened::after {
    transform: rotate(45deg);
    transition: transform .2s 0s ease-in-out;
}

/*SHOP*/
.showcase-filter {
    margin: 30px 0;
}
.showcase-filter a {
    margin-right: 30px;
}
.showcase-filter a.btn {
    padding-left: 30px;
    padding-right: 30px;
}
.type-purchase-link {
    display: inline-block;
    margin-bottom: 10px !important;
    padding-top: 7px;
    padding-bottom: 7px;
}
.btn.type-purchase-link {
    padding-top: 6px;
    padding-bottom: 6px;
}

.showcase-good {
    display: inline-block;
    padding: 10px 30px 70px 0;
}

.merch-photo {
    width: 200px;
    height: 127px;
    border: 1px solid lightgray;
    border-radius: 8px;

    background-image: url(/images/no-merch-photo.png);
    background-repeat: no-repeat;
    background-color: #f9f9f9;
    background-position: center;
    background-size: 30px;
    margin-bottom: 1rem;

    cursor: pointer;
}
.merch-photo img {
    width: 100%;
    height: 100%;
    object-fit:cover;
    border-radius: inherit;
}
.merch-title {
    margin-bottom: .3rem;
    padding-left: 5px;
    width: 190px;
    white-space: nowrap;
    overflow: hidden;
}
.merch-title-full {
    margin-bottom: 1.3rem;
    overflow: hidden;
}
.merch-cost {
    font-size: small;
    margin-bottom: 1rem;
    padding-left: 5px;
}
.merch-delivery-time {
    font-size: small;
    margin-bottom: 1rem;
    padding-left: 5px;
}
.merch-price {
    font-size: small;
    margin-bottom: 1rem;
    padding-left: 5px;
}

.showcase-good .btn {
    width: 200px;
    padding: 6px 0;
}

.showcase-good-look {
    display: block;
}

.showcase-good-look .merch-photo {
    float:left;
    margin-right: 15px;
    cursor: unset;
}

/*SHOP END*/

span.summ {
    font-weight: bold;
    color: #000;
    font-size: 18px;
}

span.summ:hover {
    color: #000;
}

span.employee {
    color: #000;
    font-size: 18px;
}

span.employee:hover {
    color: #000;
}

span.position {
    color: #000;
    font-size: 18px;
}

span.position:hover {
    color: #000;
}

span.message_text {
    color: #000;
    font-size: 18px;
}

span.message_text:hover {
    color: #000;
}

span.from_who {
    font-size: 18px;
    color: #000;
}

span.from_who:hover {
    color: #000;
}

.navbar-button {
    height: 55px;
}

@supports (backdrop-filter: blur(2px)) {
    #sidebar {
        background-color: rgba(240, 240, 240, .3);
        backdrop-filter: blur(7px) saturate(100%) contrast(45%) brightness(130%);
    }
}
/* Smartphones (вертикальная и горизонтальная ориентация) ----------- */
@media only screen /*and (min-width : 320px)*/ and (max-width : 768px) {
    .navbar-button {
        height: 54px;
    }

    .navbar:not(.landing) .navbar-header {
        display: none;
    }

    .navbar.landing .navbar-toggle {
        display: none;
    }

    span.desktop-only {
        display: none;
    }

    #pig-and-notification {
        display: none;
    }

    #navbar-shop-block {
        width: 55px;
        margin: 0;
    }

    #navbar-without-logo {
        display: inline-block;
        width: 100%;
        --margin: 0;
        --justify-content: space-between;
    }

    #navbar-button {
        height: 54px;
    }

    .navbar-toggle {
        margin-top: 0px;
        border-radius: 0;
    }

    .popover{
        max-width: 100%;
        border-left: none;
        border-right: none;
        /* Max Width of the popover (depending on the container!) */
    }

    .type-purchase-link {
        display: block;
        float: left;
        margin-bottom: 10px;
    }

    .showcase-filter a {
        margin-right: 50%;
    }

    .showcase-good {
        display: block;
        padding: 10px 10px 30px 10px;
        margin: 0 auto;
        width: 220px;
    }

    .merch-title {
        width: 200px;
        white-space: normal;
    }

    .card-gratitude:not(:last-child) {
        display: block;
        width: 200px;
        margin: 15px auto;
    }
    .card-gratitude:last-child {
        display: block;
        width: 200px;
        margin: 0 auto;
    }


    /*#navbar-shop-block span.desktop-only {
        display: none;
    } */
}

/* iPads (вертикальная и горизонтальная) ----------- */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .navbar:not(.landing) .navbar-header {
        display: none;
    }

    .navbar.landing .navbar-toggle {
        display: none;
    }

    #navbar-shop-block {
        width: 55px;
        margin: 0;
    }

    #navbar-without-logo {
        display: inline-block;
        width: 100%;
        --justify-content: space-between;
    }

    .navbar-toggle.navbar-button {
        display: block;
        margin-top: 0;
        height: 55px;
    }
}

/* Настольные компьютеры и ноутбуки ----------- */
@media only screen  and (min-width: 1224px) {
    #navbar-without-logo {
        display: flex;
        justify-content: space-between;
    }

    #navbar-shop-block {
        width: 140px;
        margin: 0 auto;
    }

    .navbar.landing .navbar-toggle {
        display: none;
    }

    .navbar-button {
        height: 55px;
    }

    #notifications-switch {
        height: 54px !important;
    }

    span.good-title {
        display: inline-block;
        position: relative;
        width: 195px;
    }

    span.good-title::after {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 3em;
        content: '';
        background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); /* FF3.6+ */
        background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(255,255,255,1))); /* Chrome,Safari4+ */
        background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Chrome10+,Safari5.1+ */
        background: -o-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Opera 11.10+ */
        background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* IE10+ */
        background: linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 */
    }
}

/* Большие экраны ----------- */
@media only screen  and (min-width: 1824px) {

    .navbar.landing .navbar-toggle {
        display: none;
    }

    .navbar-button {
        height: 55px;
    }

    span.good-title {
        display: inline-block;
        position: relative;
        width: 195px;
    }

    span.good-title::after {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        width: 3em;
        content: '';
        background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%); /* FF3.6+ */
        background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(255,255,255,0)), color-stop(100%,rgba(255,255,255,1))); /* Chrome,Safari4+ */
        background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Chrome10+,Safari5.1+ */
        background: -o-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* Opera 11.10+ */
        background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* IE10+ */
        background: linear-gradient(left, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 100%); /* W3C */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 */
    }
}

.navbar-collapse.collapse:not(#menu-toggler) {
    display: block!important;
}

.navbar-nav>li, .navbar-nav {
    float: left !important;
}

.navbar-toggle .icon-bar {
    padding: 0;
    background-color: white;
}


/*
.navbar-nav.navbar-right:last-child {
    margin-right: -15px !important;
}

.navbar-right {
    float: right!important;
} */

#contributors-list-container .popover {
    background-color: #686868;
    color: white;
    font-size: 14px;
    font-weight: 400;
}
#contributors-list-container .popover.bottom > .arrow:after {
    border-bottom-color: #686868;
}
.contributors-list {
    width: 300px;
}
.contributors-list div{
    padding: 5px 20px;
}

.popover-container.dark ~ .popover {
    background-color: #686868;
    color: white;
    font-size: 14px;
    font-weight: 400;
}
.popover-container.dark ~ .popover.bottom > .arrow:after {
    border-bottom-color: #686868;
}


form div.required label.control-label:after {
    content:" * ";
    color:red;
}

.info-sign::before {
    content: '';
    background-image: url(/images/info.png);
    background-size: contain;
    height: 2.2rem;
    width: 2.2rem;
    display: inline-block;
    margin: 0 1rem -.5rem 0;
}

.common-setting-row {
    margin-bottom: 30px;
}

span.setting-comment {
    display: block;
    font-size: 14px;
}

.setting-hint {
    font-size: 14px;
}

.setting-value-input {
    width: 100px;
}