.r-dimmer {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color: var(--r-gallery-bg);
}
.r-gridboard {
    position: relative;
    /*top: 2rem; right: 2rem; bottom: 2rem; left: 2rem;*/
    margin: 2rem;
    display: flex;
    flex-direction: column;
    border-radius: var(--r-border-radius);
    -webkit-text-size-adjust: 100%;

    background-color: white;
    /*box-shadow: 0 6px 24px 0 rgba(0, 0, 0, 0.24);*/
}
.r-gridboard.relative {
    position: relative;
}

.r-gb-toolbar {
    position: relative;
    z-index: 15;
    /*background-color: #fff; /* rgb(242, 242, 242);*/
    border-bottom: 1px solid rgba(var(--r-text-color-rgb), 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
}

.r-gb-content {
    position: relative;
    overflow: hidden;
    padding-top: 48px;
}

/*.r-tabs {
    display: flex;
    padding: 0 .5rem;
}
.r-tabs .r-tab {
    display: block;
    padding: 1em .5em calc(1em - 3px) .5em;
    margin-right: .5em;
    border-bottom: 3px solid transparent;
    text-decoration: none;
    color: inherit;
    line-height: 1.71429;
    transition: border-bottom-color .2s;
}
.r-tabs .r-tab:hover {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}
.r-tabs .r-tab.active {
    border-bottom-color: #003768;
    color: #003768;
}*/

.r-gb-filters {
    display: flex;
    margin-bottom: 1rem;
}
.r-gb-filters .filter {
    display: block;
    position: relative;
    line-height: 1.714285;
    padding: 1em 1.75em 1em 1em;
    text-decoration: none;
    color: var(--r-text-color);
    cursor: pointer;
}
.r-gb-filters .r-gb-context {
    display: block;
    padding: .75rem 2.25rem .75rem 1.125rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(var(--r-text-color-rgb), 0.2);
    border-radius: var(--r-border-radius);
    line-height: 1;
    /*font-size: 18px;*/
    margin-left: 1rem;
}
.r-gb-filters .r-gb-item {
    display: block;
    padding: 16px;
    text-decoration: none;
    color: var(--r-text-color);
    cursor: pointer;
}
.r-gb-filters .r-gb-value {
    display: inline-block;
    padding: 0;
    line-height: 1;
    border-radius: var(--r-border-radius);
    /*background-color: rgba(0, 0, 0, 0.075);*/
    margin-left: .35714em;
    /*color: rgb(var(--r-text-color-rgb));*/
    /*color: #0d1388;*/
    font-weight: 700;
}

@media screen and (max-width: 767px) {
    .r-gb-filters {
        flex-wrap: wrap;
    }
    .r-gb-filters .r-gb-context {
        width: calc(100% - 2rem);
        margin: 0 1rem 1rem 1rem;
    }
}

.r-gb-top {
    position: absolute;
    top: 0; right: 0; left: 0;
    background-color: #FFFFFF;
    z-index: 10;
    flex-shrink: 0;
    /*background-color: white;*/
    /* border-bottom: 1px solid #ebebeb; */
    /*display: flex;*/

    font-weight: var(--r-font-weight-bold);
}
.r-gb-top .r-gb-toprow {
    display: flex;
    width: 100%;
    margin: 0 auto;
}
.r-gb-top.r-fixed {
    position: fixed;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}
.r-gb-top.r-fixed .r-gb-toprow {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media screen and (min-width: 768px) {
    .r-gb-top.r-fixed {
        top: 0;
    }
    .r-gb-top.r-fixed .r-gb-toprow {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}
.r-gb-fix {
    width: 14.5rem;
    flex-shrink: 0;
    /*border-right: 1px solid #ebebeb;*/
}
@media screen and (max-width: 768px) {
    .r-gb-fix {
        width: 8rem;
    }
    .r-gb-fix .r-gb-year {
        display: none;
    }
}
.r-gb-top .r-gb-fix {
    padding: 1rem 1rem 0.5rem 1rem;
    /*font-size: 1.5em;*/
}
.r-gridboard .r-gb-scroll {
    overflow: hidden;
    width: 100%;
}
.r-gridboard .r-gb-nobody {
    font-size: 1.14285em;
    font-weight: var(--r-font-weight-bold);
    padding: 5rem 2rem;
    text-align: center;
}
.r-gridboard .issue-choice {
    cursor: pointer;
}
.r-gridboard .r-gb-body .r-gb-scroll {
    overflow-x: auto;
    /*overflow: auto;*/
    /*background-color: #fff;*/
    cursor: grab;
}
.r-gb-top .r-gb-scroll .r-inner {
    display: flex;
}
.r-gb-body .r-gb-scroll .r-inner {
    min-width: 100%;
}
.r-gridboard .r-gb-scroll .r-inner .r-gb-col {
    width: 10rem;
    padding: .14285em;
    position: relative;
}
.r-gridboard .r-gb-scroll .r-inner .r-gb-col.quarter {
    width: 3.57143em;
}
.r-gridboard .r-gb-scroll .r-inner .r-gb-col.smaller {
    width: 225px; /*195*/
}

.r-gridboard .r-gb-scroll .r-inner .r-gb-col > small {
    opacity: 0.5;
    display: block;
    width: 3.57143em;
    position: absolute;
    top: .5em;
    left: .714285em; right: .714285em;
}
.r-gridboard .r-gb-scroll .r-inner > .divider {
    width: 1px;
    background-color: #ebebeb;
}
.r-gb-body .r-gb-scroll .r-inner > .divider {
    position: absolute;
    top: 0; bottom: 0;
    height: 100%;
}
/*.r-gb-body .r-gb-scroll .r-inner {
    position: relative;
    z-index: 1;
}*/

.r-gb-body .r-gb-header {
    padding: 1rem .714285rem .14285rem 1rem;
    font-size: 12px; /* .85714rem;*/
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.75;
    border-bottom: 1px solid #ebebeb;
}
.r-gb-body .r-gb-subheader {
    padding: 1rem 1rem 0 1rem;
    font-weight: 700;
    /*border-bottom: 1px solid #ebebeb;*/
}
.r-gb-body .r-gb-header.disabled {
    display: none;
}
.r-gb-fix .r-gb-row {
    padding: .714285em .714285em .714285em 1rem;
    position: relative;
}
.r-gb-fix .r-gb-header {
    position: relative;
}
.r-gb-fix .r-gb-row .action {
    position: absolute;
    top: calc(50% - 12px);
    right: .714285em;
    /*opacity: 0;*/
    opacity: 0.5;
    color: inherit;
    transition: opacity .2s;
}
/*.r-gb-fix .r-gb-row:hover .action {
    opacity: 0.5;
}*/
.r-gb-fix .r-gb-row .action:hover {
    opacity: 1;
}
.r-gb-fix a[href] {
    color: inherit;
    text-decoration: none;
}
.r-gb-body .r-gb-scroll .r-inner {
    position: relative;
}
.r-gb-body .r-gb-row {
    /*border-bottom: 1px solid #ebebeb;*/
    position: relative;
    z-index: 1;
}
.r-gb-body .r-gb-row.disabled {
    display: none !important;
}
.r-gb-body .r-gb-col {
    padding: .714285em;
    height: 100%;
}
.r-gb-top .r-gb-col {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-top: 1em !important;
    color: var(--r-dark-alt-color);
    /*padding-bottom: 1em !important;*/
}
.r-gb-top .r-gb-col a {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--r-dark-alt-color) !important;
    text-decoration: none;
}
.r-gb-body .r-gb-scroll .r-gb-row {
    display: flex;
}
.r-gb-body .r-gb-scroll .r-gb-row,
.r-gb-top .r-gb-scroll .r-inner {
    padding-left: .7rem;
}

.r-gb-body {
    /*height: 100%;*/
    display: flex;
}
.r-gb-body .r-gb-fix {
    /*height: 100%;*/
    /*background-color: white;*/
    /*border-right: 1px solid #ebebeb;*/
    overflow: hidden;
}
.r-gb-body .r-gb-fix strong {
    font-size: 1.1rem;
    color: var(--r-theme-color);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.r-gridboard .r-meta {
    font-size: .95em;
    opacity: 0.75;
}

.r-gridboard .r-gb-col.center {
    text-align: center;
}

.r-gb-body .r-gb-item {
    display: block;
    position: relative;
    width :100%;
    height: 100%;
    /*border-radius: var(--r-border-radius);*/
    padding: .14285em;
    /*background-color: white;*/
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none;
    font-size: .85em;
    line-height: 1;
}
.r-gb-body .r-gb-item .r-gb-old {
    text-decoration: line-through;
    display: block;
    font-size: 0.85em;
    margin-bottom: 0.25em;
}
.r-gb-body .r-gb-item strong {
    font-weight: var(--r-font-weight-bold);
    color: white;
}
.r-gb-body .r-gb-item.hinted {
    background-color: rgba(var(--r-theme-color-rgb), 0.5);
    z-index: 1;
    transition: background-color .2s, box-shadow .2s;
}
.r-gb-body .r-gb-item.hinted.discount:hover {
    background-color: rgba(var(--r-theme-color-rgb), 0.4);
    box-shadow: 0 1px 2px rgba(0, 4, 27,0.04),
        0 2px 4px rgba(0, 4, 27,0.04),
        0 4px 8px rgba(0, 4, 27,0.04),
        0 8px 16px rgba(0, 4, 27,0.04),
        0 16px 32px rgba(0, 4, 27,0.04),
        0 32px 64px rgba(0, 4, 27,0.04);
}
/* .r-gb-body .r-gb-item.green {
    box-shadow: inset 0 0 0 1px #44cc68;
} */
.r-gb-body .r-gb-item.green.hinted {
    background-color: var(--r-color-success);
    z-index: 1;
    transition: background-color .2s, box-shadow .2s;
}
.r-gb-body .r-gb-item.green.hinted:hover {
    background-color: var(--r-color-success-hover);
    box-shadow: 0 1px 2px rgba(0, 4, 27,0.04),
        0 2px 4px rgba(0, 4, 27,0.04),
        0 4px 8px rgba(0, 4, 27,0.04),
        0 8px 16px rgba(0, 4, 27,0.04),
        0 16px 32px rgba(0, 4, 27,0.04),
        0 32px 64px rgba(0, 4, 27,0.04);
}
/* .r-gb-body .r-gb-item.teal {
    box-shadow: inset 0 0 0 1px #00B5AD;
} */
.r-gb-body .r-gb-item.teal.hinted {
    background-color: var(--r-theme-color);
}
/* .r-gb-body .r-gb-item.orange {
    box-shadow: inset 0 0 0 1px #ffa800;
} */
.r-gb-body .r-gb-item.orange.hinted {
    background-color: var(--r-color-warning);
}
/* .r-gb-body .r-gb-item.red {
    box-shadow: inset 0 0 0 1px #E61A23;
} */
.r-gb-body .r-gb-item.red.hinted {
    background-color: rgb(241,242,242);
    color: rgba(0, 0, 0, 0.25) !important;
}
/* .r-gb-body .r-gb-item.purple {
    box-shadow: inset 0 0 0 1px #6435C9;
} */
.r-gb-body .r-gb-item.purple.hinted {
    background-color: #F0EBFA;
}
.r-gb-body .r-gb-item.grey {
    /*box-shadow: inset 0 0 0 1px #aaaaaa;*/
    color: rgba(var(--r-text-color-rgb), 0.25);
}
.r-gb-body .r-gb-item.grey.hinted {
    background-color: #F2F2F2;
}
.r-gb-body .r-gb-item.grey strong {
    color: rgba(var(--r-text-color-rgb), 0.5);
}

.r-gb-body .r-gb-scroll .r-inner > .r-gb-item {
    position: absolute;
    top: 0; left: 0;
    width: auto;
    height: auto;
}

.r-gb-body .r-gb-item.center {
    text-align: center;
}
.r-gb-body .r-gb-item.middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.r-gridboard strong {
    font-weight: 500;
}

.r-gridboard .colindicate {
    position: absolute;
    top: 0; bottom: 0;
    width: 14.5rem;
    background-color: rgba(var(--r-text-color-rgb), 0.05);
}
.r-gridboard.hoverindicate .body .r-gb-scroll .r-gb-row:hover {
    background-color: rgba(var(--r-text-color-rgb), 0.05);
}

.purple.material-icons {
    color: #6435C9
}

.r-gb-context {
    position: relative;
    cursor: pointer;
    padding-right: 2.5rem;
}
.r-gb-context .material-icons {
    vertical-align: middle;
}
.r-gb-context:after {
    content: "";
    display: block;
    position: absolute;
    top: calc(50% - 2px); right: 1em;
    width: 0; height: 0;
    border-top: 4px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}
.toolbar .r-gb-header .right .r-gb-context {
    margin-left: 1em;
    font-weight: 500;
    color: var(--r-theme-color);
}


.r-popup {
    position: absolute;
    background-color: white;
    border-radius: var(--r-large-border-radius);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.24);
    min-width: 14.5rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(.35714em);

    transition: opacity .3s, transform .3s;
}
.r-popup .r-inner {
    padding: .285714em 0;
    max-height: 75vh;
    overflow-y: auto;
}
.r-popup:before {
    content: "";
    display: block;
    width: 0; height: 0;
    position: absolute;
    top: -5px; right: 1rem;
    border-right: 5px solid transparent;
    border-bottom: 5px solid white;
    border-left: 5px solid transparent;
}
.r-popup.visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.r-popup .r-item {
    display: block;
    text-decoration: none;
    /*color: rgba(0, 0, 0, 0.6);*/
    color: var(--r-text-color);
    padding: .5714285em 1em;
    line-height: 1;
    cursor: pointer;
}
.r-popup .r-checkbox {
    display: block;
    text-decoration: none;
    /*color: rgba(0, 0, 0, 0.6);*/
    color: var(--r-text-color);
    padding: .5714285em 1.14285em .5714285em .5714285em;
    line-height: 1;
    cursor: pointer;
}
.r-popup .r-checkbox:hover,
.r-popup .r-item:hover,
.r-popup .r-item.active {
    background-color: rgba(var(--r-text-color-rgb), 0.03);
}
.r-popup .r-item.active {
    font-weight: var(--r-font-weight-bold);
}
.r-popup .r-item .material-icons {
    vertical-align: middle;
    margin-left: -5px;
    margin-right: 5px;
}

.r-checkbox input[type="checkbox"] {
    margin: 0;
}

@media screen and (max-width: 768px) {
    .r-gridboard {
        /* top: 1rem; right: 1rem; bottom: 1rem; left: 1rem; */
        margin: 1rem 0;
    }
    .r-gb-filters .r-gb-value {
        margin-left: 0;
    }
}
