.bg-blue .uk-tab > .uk-active > a {
    color: white;
    border-color: #e9530f;
}

:not(.bg-blue) .uk-tab > .uk-active > a {
    color: black;
    border-color: #e9530f;
}


.bg-white {
    background-color: white;
    color: #808080;
}

.bg-blue {
    background-color: #16243d;
    color: white;
}

.bg-orange {
    background-color: #e9530f;
    color: white;
    border: 1px solid transparent
}

.rnl-h1 {
    color: white;
    text-transform: uppercase;
    font-weight: 200;
    font-size: 200%;
}

.rnl-h1-std {
    color: inherit;
    text-transform: uppercase;
    font-weight: 200;
    font-size: 200%;
}

.rnl-button {
    background-color: #e9530f;
    width: 12em;
    margin-top: 8px;
}

ul.uk-subnav .rnl-small-icon.uk-icon {
    width: 35px;
}
.rnl-small-icon.uk-icon {
    width: 20px;
}

main p a.uk-link-text {
    white-space: nowrap;
}

main em {
    color: inherit;
}
main :not(pre) > code {
    color: inherit;
}

ol.uk-breadcrumb > :last-child > span {
    font-size: 1rem;
    color: white;
}

div.mobile-minimal {
    padding-top: 8px;
    clear: both;
}
@media (min-width: 800px ) {
    .rnl-short {
        display: none;
    }
    .rnl-full {

    }
    .rnl-h1-std {
        margin-top: 30px;
    }
    div#admin-bar {
        margin-top: 5px;
        float: right;
    }
}

@media (max-width: 799px) {
    #rnl-logo {
        float: left;
        clear: none;
        z-index: -10;
        margin-top: 20px;
        margin-left: -20px;
        max-height: 60px;
        max-width: 160px;
    }

    a.uk-slidenav-large {
        margin-top: 12px !important;
    }

    .rnl-short {
        display: inline-block;
    }

    .rnl-full {
        display: none;
    }

    .rnl-h1-std, .rnl-h1 {
        margin-top: 10px;
    }

    .uk-width-medium\@s {
        width: 250px;
    }

    .uk-button {
        margin-bottom: 5px;
    }

    .uk-margin-large-left {
        margin-left: 7px !important;
    }

    .uk-margin-xlarge-left {
        margin-left: 10px !important;
    }

    .uk-margin-medium-right {
        margin-right: 5px !important;
    }

    .uk-margin-remove-left\@s {
        margin-left: 0 !important;
    }

    dl#event-details > dd {
        margin-bottom: 0.5em;
    }

    .uk-margin-xlarge-right {
        margin-right: 5px !important;
    }

    .uk-margin-medium-left\@s {
        margin-left: 20px;
    }

    .uk-margin-large-left\@s {
        margin-left: 40px;
    }

    div#admin-bar {
        margin: 5px 0 8px 5px;
    }
    div.mobile-minimal label.uk-form-label {
        display: none;
    }
    div.mobile-minimal .uk-form-controls {
        margin-left: 5px !important;
    }
}


.rnl-h2 {
    color: white;
    text-transform: uppercase;
    font-weight: 200;
    font-size: 130%;
}

.rnl-h2-std {
    color: inherit;
    text-transform: uppercase;
    font-weight: 130;
    font-size: 130%;
}

div.uk-card-header h2.uk-h4 {
    margin-bottom: 5px;
}

.uk-padding-xs {
    padding: 10px;
}


.rnl-bg {
    background-position: 100%;
    background-repeat: repeat-y;
}

td.rnl-ok-bg {
    background-image: url('/assets/checkbox-mark-green.svg');
    background-repeat: no-repeat;
    background-position: center;
}

td.rnl-fail-bg {
    background-image: url('/assets/checkbox-cross-red.svg');
    background-repeat: no-repeat;
    background-position: center;
}

ul.rnl-checklist {
    list-style: none;
    padding-left: 10px;
    margin-top: 10px;
}

ul.rnl-checklist li.rnl-ok-bg::before {
    content: '';
    width: 1em;
    height: 1em;
    display: inline-block;
    background-repeat: no-repeat;
    background-image: url('/assets/checkbox-mark-green.svg');
    margin-right: 0.5rem;
}

ul.rnl-checklist li.rnl-fail-bg::before {
    content: '';
    width: 1em;
    height: 1em;
    display: inline-block;
    background-repeat: no-repeat;
    background-image: url('/assets/checkbox-cross-red.svg');
    margin-right: 0.5rem;
}

input[name=ageVerification] {
    display: none;
}

form#membership-form .uk-form-controls {
    margin-left: 180px;
}

div#late-registration .uk-form-controls {
    margin-left: 160px;
}
table#calendar tbody tr {
    border-top: 1px solid #858585;
}

form.rnl-mailing label.uk-form-label {
    width: 7em;
    margin-top: 0;
}

form.rnl-mailing > div > div.uk-form-controls {
    margin-left: 7em;
    width: 32em;
}

.brm-filter > li {
    padding-left: 12px;
    padding-right: 10px;
    margin-right: 10px;
}

.brm-filter > li.uk-active > a {
    color: white;
}

div.blog div.uk-text-small {
    font-size: 0.7rem;
    line-height: 1rem;
}

.blog {
    /*background: linear-gradient(90deg, #16243d 7px, transparent 0%);*/
    border-radius: 10px;
}
dl > .blog, li > .blog {
    border: solid 1px #16243d;
    margin-top: 5px;
}
ul#events-list div.uk-card.blog {
    border-color: #16243d;
}

.FLECHE {
    background: linear-gradient(90deg, #c071fe 7px, transparent 0%);
    border-radius: 10px;
}
dl > .FLECHE, li > .FLECHE {
    border: solid 1px #c071fe;
    margin-top: 5px;
}
li.FLECHE.uk-active {
    background-color: #c071fe;
}
ul#events-list div.uk-card.FLECHE {
    border-color: #c071fe;
}

.BRM-200 {
    background: linear-gradient(90deg, #d83c3d 7px, transparent 0%);
    border-radius: 10px;
}
dl > .BRM-200, li > .BRM-200 {
    border: solid 1px #d83c3d;
    margin-top: 5px;
}
li.BRM-200.uk-active {
    background-color: #d83c3d;
}
ul#events-list div.uk-card.BRM-200 {
    border-color: #d83c3d;
}

.BRM-300 {
    background: linear-gradient(90deg, #ffcc00 7px, transparent 0%);
    border-radius: 10px;
}
dl > .BRM-300, li > .BRM-300 {
    border: solid 1px #ffcc00;
    margin-top: 5px;
}
li.BRM-300.uk-active {
    background-color: #ffcc00;
}
ul#events-list div.uk-card.BRM-300 {
    border-color: #ffcc00;
}

.BRM-400 {
    background: linear-gradient(90deg, #339933 7px, transparent 0%);
    border-radius: 10px;
}
dl > .BRM-400, li > .BRM-400 {
    border: solid 1px #339933;
    margin-top: 5px;
}
li.BRM-400.uk-active {
    background-color: #339933;
}
ul#events-list div.uk-card.BRM-400 {
    border-color: #339933;
}

.BRM-600 {
    background: linear-gradient(90deg, #006699 7px, transparent 0%);
    border-radius: 10px;
}
dl > .BRM-600, li > .BRM-600 {
    border: solid 1px #006699;
    margin-top: 5px;
}
li.BRM-600.uk-active {
    background-color: #006699;
}
ul#events-list div.uk-card.BRM-600 {
    border-color: #006699;
}

.BRM-1000 {
    background: linear-gradient(90deg, #999999 7px, transparent 0%);
    border-radius: 10px;
}
dl > .BRM-1000, li > .BRM-1000 {
    border: solid 1px #999999;
    margin-top: 5px;
}
li.BRM-1000.uk-active {
    background-color: #999999;
}
ul#events-list div.uk-card.BRM-1000 {
    border-color: #999999;
}


.BRM-lrm {
    background: linear-gradient(90deg, #55624d 7px, transparent 0%);
    border-radius: 10px;
}
dl > .BRM-lrm, li > .BRM-lrm {
    border: solid 1px #55624d;
    margin-top: 5px;
}
li.BRM-lrm.uk-active {
    background-color: #55624d;
}
ul#events-list div.uk-card.BRM-lrm {
    border-color: #55624d;
}

ul#events-list div.uk-card-body {
    padding: 10px;
    padding-left: 15px;
    border: solid 1px;
}


@media (min-width: 800px) {
    #rnl-logo {
        margin-left: 43px;
        margin-top: 1px;
        max-height: 90px
    }

    .rnl-bg {
        background-image: url('/assets/rnl-blue_background-400x132.png');
    }
}

.euro::before {
    content: '€ ';
}

.euro-negative::before {
    content: '-/- € ';
}

span[uk-icon*=_] {
    width: 35px;
}

footer a,
.uk-breadcrumb a {
    color: white;
    text-decoration: underline;
}

dl#event-details > dd {
    margin-bottom: 1.5em;
}

dl#event-details address {
    margin-bottom: 4px;
}

div.control-info {
    font: 0.875rem/1.5 Consolas,monaco,monospace;
    color: #333;
    padding: 10px;
    border-radius: 3px;
    border: 1px solid #e5e5e5;
}

table#event-riders.uk-table td {
    padding-bottom: 0;
    text-align: right;
    min-width: 5em;
}
table#event-riders.uk-table th {
    text-align: right;
}

table#event-riders td:nth-child(1) {
    text-align: left;
    min-width: 16em;
}
table#event-riders th:nth-child(1) {
    text-align: left;
}

/* ui-kit interferes with leaflet, it hides the track */
div.leaflet-pane > canvas {
    max-width: unset;
}

ul.rnl-filter, ul.rnl-language-filter {
    margin-left: 10px;
}

.rnl-filter > li {
    border: solid 1px #19243b;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    margin-right: 10px;
}
.rnl-language-filter > li {
    border: solid 1px #19243b;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    width: 30px;
    margin-right: 10px;
}

.rnl-filter > li a:link {
    text-transform: none;
}

.rnl-filter > li.uk-active {
    background-color: #e9530f;
    border: solid 1px #e9530f;
}

.rnl-filter > li.uk-active > a {
    color: white;
}

form#edit-form label.uk-form-label {
    width: 100px;
}

form#edit-form div.uk-form-controls {
    margin-left: 115px;
}

div#ntfu-drop label.uk-form-label {
    width: 100px;
}
div#ntfu-drop  div.uk-form-controls {
    margin-left: 115px;
}

table#event-calendar {
    border: 1px solid gray;
    border-spacing: 0;
}

table#event-calendar th {
    border-bottom: 2px solid gray;
}
table#event-calendar td:not(:first-child) {
    border-left: 1px solid gray;
    vertical-align: top
}
table#event-calendar td ul {
    padding-left: 0;
    margin-top: 5px;
}
table#event-calendar td li {
    list-style-type: none;
    color: white;
    padding-left: 5px;
}
table#event-calendar td>div {
    text-align: right;
    font-size: larger;
    font-weight: bolder;
    margin-top: 2px;
    margin-right: 5px;
}
table#event-calendar td {
    border-bottom: 1px solid gray;
    height: 5em;
}
table#event-calendar td div.uk-card {
    padding: 10px;
    font-size: smaller;
}
table#event-calendar td a {
    color: white;
}


tbody#events-list td:nth-child(1) {
    min-width: 9em;
}
tbody#events-list td:nth-child(4),td:nth-child(5),td:nth-child(6) {
    text-align: right;
}


table#event-money td {
    text-align: right;
}
table#event-transactions {
    min-width: 30em;
    max-width: 50em;
}
table#event-transactions {
    width: 50em;
}
table#event-transactions td:nth-child(1) {
    width: 1em;
}
table#event-transactions td:nth-child(2) {
    width: 7em;
    text-align: right;
}
table#event-transactions td:nth-child(3) {
    width: 5em;
    text-align: right;
}

form.event-print label.uk-form-label {
    width: 12em;
    margin-top: 0;
}
form.event-print div.uk-form-controls {
    margin-left: 12em;
    width: 32em;
}


table#eagle-riders.uk-table td {
    padding-bottom: 0;
    /*padding-right: 0;*/
    text-align: right;
    min-width: 0;
}
table#eagle-riders.uk-table th {
    text-align: center;
    padding-right: 0;
}
table#eagle-riders td:nth-child(1), table#eagle-riders th:nth-child(1) {
    text-align: right;
    width: 3em;
    min-width: 1em;
    max-width: 3em;
    padding-right: 0;
}
table#eagle-riders.uk-table th:nth-child(2), table#eagle-riders.uk-table td:nth-child(2) {
    text-align: left;
    min-width: 12em;
}
table#eagle-riders .this-is-me {
    background-color: #21BCFF;
}


caption > #bank-summary td:nth-child(2), #bank-summary td:nth-child(3) {
    text-align: right;
    width: 5em;
}

#bank-summary tfoot td:nth-child(2), #bank-summary tfoot td:nth-child(3) {
    border-top: 2px solid black;
    font-style: italic;
}
.rnl-table-xs th,
.rnl-table-xs td {
    padding: 2px 12px;
}

#bank-transactions td:nth-child(2) {
    width: 11em;
}

#bank-transactions td:nth-child(4), #bank-transactions td:nth-child(5) {
    text-align: right;
}

/* pure switch from https://uikit.plus/snippets/checkbox-pure-css-switch-68305cc0a48a4d6043e1347d */
.uk-pure-switch {
    appearance: none;
    -webkit-appearance: none;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 5px;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}

.uk-pure-switch::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 3px;
    transition: transform 0.3s;
}
.uk-pure-switch:checked {
    background: #1e87f0;
}
.uk-pure-switch:checked::before {
    transform: translateX(26px);
}

.uk-pure-switch-small {
    appearance: none;
    -webkit-appearance: none;
    width: 32px;
    height: 16px;
    background: #ccc;
    border-radius: 3px;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background 0.3s;
}
.uk-pure-switch-small::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s;
}
.uk-pure-switch-small:checked::before {
    transform: translateX(16px);
}

/* end pure switch */