:root {
    --bb-bg-soft: #edf2f8;
    --bb-bg-surface: #ffffff;
    --bb-ink-strong: #16202a;
    --bb-ink-muted: #50606f;
    --bb-border-soft: #d7e0ea;
    --bb-accent-brand: #2f7aa6;
    --bb-header-bg: #f6f9fc;
    --bb-header-text: #1b2f40;
    --bb-header-muted: #3d5569;
    --bb-accent-current: #228b5b;
    --bb-accent-upcoming: #c8840b;
    --bb-accent-past: #b24146;
    --bb-shadow-soft: 0 10px 24px rgba(23, 43, 64, 0.08);
    --bb-table-stripe-odd: #f6faff;
    --bb-table-stripe-even: #ffffff;
    --bb-table-hover: #eaf4ff;
}

body.layout {
    background:
        radial-gradient(circle at 15% -10%, rgba(45, 95, 133, 0.14), transparent 38%),
        radial-gradient(circle at 95% -20%, rgba(34, 139, 91, 0.14), transparent 42%),
        var(--bb-bg-soft);
}

.layout-header .navbar {
    background: linear-gradient(180deg, #fbfdff 0%, var(--bb-header-bg) 100%);
    border-bottom: 1px solid var(--bb-border-soft);
    box-shadow: 0 4px 14px rgba(20, 33, 48, 0.05);
}

.layout-header .navbar-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--bb-header-text);
}

.layout-header .navbar-nav > li > a {
    color: var(--bb-header-muted);
    font-weight: 600;
}

.layout-header .navbar-nav > li > a:hover,
.layout-header .navbar-nav > li > a:focus {
    color: var(--bb-accent-brand);
}

.layout-header .navbar-toggler {
    color: var(--bb-header-muted);
}

.ticker-mobile-toggle {
    border: 1px solid #b7cce0;
    border-radius: 8px;
    background: #ffffff;
    padding: 6px 9px;
    min-height: 34px;
    width: auto;
}

.ticker-mobile-toggle .bar-line {
    background-color: #2f7aa6;
}

.layout-header .navbar-toggler:hover,
.layout-header .navbar-toggler:focus {
    color: var(--bb-accent-brand);
}

.menu-language-link {
    display: inline-block;
    border-radius: 6px;
    padding: 4px 8px;
    transition: background-color 120ms ease, color 120ms ease;
}

.menu-language-link:hover,
.menu-language-link:focus {
    text-decoration: none;
    background: #eef5fb;
}

.menu-language-link.is-active {
    background: #e4f0fa;
    color: #1f5a7e !important;
    font-weight: 700;
}

.cc-window {
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(24, 43, 61, 0.2);
    border: 1px solid #d9e3ed;
    color: #264055;
    font-size: 0.92rem;
    line-height: 1.45;
}

.cc-window .cc-message {
    margin-bottom: 0.8em;
}

.cc-window .cc-link,
.cc-window .cc-link:active,
.cc-window .cc-link:visited {
    color: #2f7aa6;
    text-decoration: underline;
}

.cc-window .cc-btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.38em 1.1em;
    transition: all 120ms ease;
}

.cc-window .cc-btn:hover,
.cc-window .cc-btn:focus {
    transform: translateY(-1px);
}

.home-ad-row {
    margin-bottom: 2px;
}

.home-ad-label {
    text-align: left;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6a7887;
    margin-bottom: 4px;
}

.home-ad-slot {
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 8px;
}

.home-title-bar {
    margin-top: 2px;
    margin-bottom: 10px;
}

.home-title-bar .title-bar-title {
    font-size: 1.95rem;
    line-height: 1.2;
    color: var(--bb-ink-strong);
    margin-bottom: 6px;
}

.home-title-description {
    color: var(--bb-ink-muted);
}

.home-event-grid {
    margin-left: -10px;
    margin-right: -10px;
}

.event-column {
    padding: 0 10px;
    margin-bottom: 18px;
}

.event-section-title {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--bb-border-soft);
    border-radius: 12px 12px 0 0;
    background: #f7fafd;
    color: var(--bb-ink-strong);
    font-size: 1.4rem;
    letter-spacing: 0.01em;
}

.event-section-title-current {
    border-top: 4px solid var(--bb-accent-current);
}

.event-section-title-upcoming {
    border-top: 4px solid var(--bb-accent-upcoming);
}

.event-section-title-past {
    border-top: 4px solid var(--bb-accent-past);
}

.event-section-subtitle {
    margin: 0;
    padding: 8px 12px 10px;
    border-left: 1px solid var(--bb-border-soft);
    border-right: 1px solid var(--bb-border-soft);
    background: #f7fafd;
}

.event-list {
    margin-bottom: 0;
    padding: 10px;
    border-left: 1px solid var(--bb-border-soft);
    border-right: 1px solid var(--bb-border-soft);
    border-bottom: 1px solid var(--bb-border-soft);
    border-radius: 0 0 12px 12px;
    background: #f6f9fc;
}

.event-list .event-list-item {
    border: 1px solid #d1dde8;
    border-radius: 10px;
    background: var(--bb-bg-surface);
    padding: 12px 12px;
    margin-bottom: 8px;
    color: inherit;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.event-list .event-list-item:last-child {
    margin-bottom: 0;
}

.event-list .event-list-item:hover,
.event-list .event-list-item:focus {
    border-color: #b9c8d7;
    box-shadow: 0 8px 18px rgba(23, 43, 64, 0.12);
    transform: translateY(-1px);
    text-decoration: none;
}

.event-column-current .event-list-item {
    box-shadow: inset 3px 0 0 rgba(34, 139, 91, 0.28);
}

.event-column-upcoming .event-list-item {
    box-shadow: inset 3px 0 0 rgba(200, 132, 11, 0.28);
}

.event-column-past .event-list-item {
    box-shadow: inset 3px 0 0 rgba(178, 65, 70, 0.24);
}

.event-list-item:focus {
    outline: 2px solid #2e7fb8;
    outline-offset: 1px;
}

.event-list-media {
    display: flex;
    align-items: center;
    width: 100%;
}

.event-flag-wrap {
    margin-right: 10px;
    flex: 0 0 auto;
}

.event-flag {
    width: 38px;
    height: 38px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.event-list-body {
    min-width: 0;
    flex: 1 1 auto;
}

.event-name {
    margin: 0;
    color: var(--bb-ink-strong);
    font-size: 1.2rem;
    line-height: 1.25;
    font-weight: 700;
}

.event-date {
    margin-top: 4px;
    display: inline-block;
    color: var(--bb-ink-muted) !important;
    font-size: 1.2rem;
    border-top: 1px solid #ecf1f5;
    padding-top: 4px;
}

.event-status-wrap {
    margin-left: 10px;
    flex: 0 0 auto;
}

.event-status-dot {
    width: 10px;
    height: 10px;
}

.archive-list-item {
    background: linear-gradient(180deg, #fcfdff 0%, #f7fbff 100%);
}

.archive-list {
    margin-bottom: 0;
}

.archive-month-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.archive-month-card {
    border: 1px solid var(--bb-border-soft);
    background: #f9fcff;
    box-shadow: var(--bb-shadow-soft);
}

.archive-month-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #d9e5f0;
    background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
}

.archive-month-title {
    margin: 0;
    color: #23425b;
    font-size: 1rem;
    font-weight: 700;
    text-transform: capitalize;
}

.archive-month-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    border-radius: 999px;
    padding: 0 8px;
    background: #e6f0fa;
    border: 1px solid #bed3e6;
    color: #2f5671;
    font-size: 0.78rem;
    font-weight: 700;
}

.archive-month-list.event-list {
    border: 0;
    border-radius: 0 0 10px 10px;
    background: #f7fbff;
    padding: 10px;
}

@media (min-width: 992px) {
    .archive-month-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .test-page-body .dataTables_wrapper .row {
        margin-left: 0;
        margin-right: 0;
    }

    .test-page-body .dataTables_wrapper .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }

    .test-page-body table.dataTable > thead > tr > th,
    .test-page-body table.dataTable > tbody > tr > td {
        padding-left: 5px;
        padding-right: 5px;
    }

    .archive-month-list .event-list-item {
        overflow: hidden;
    }

    .archive-month-list .event-list-media {
        min-width: 0;
    }

    .archive-month-list .event-list-body {
        width: auto;
        flex: 1 1 0%;
        min-width: 0;
    }

    .archive-month-list .event-name {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

.archive-list-media::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #7d8ea0;
    border-bottom: 2px solid #7d8ea0;
    transform: rotate(-45deg);
    margin-left: 8px;
}

.app-promo-card {
    border: 1px solid #b8cfe1;
    background: linear-gradient(130deg, #f6fbff 0%, #eef6fd 58%, #e7f1fb 100%);
    box-shadow: 0 10px 24px rgba(25, 57, 84, 0.12);
}

.app-promo-body {
    padding: 18px 20px;
}

.app-promo-kicker {
    margin: 0 0 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #4f718d;
    font-weight: 700;
}

.app-promo-title {
    margin: 0 0 6px;
    font-size: 1.38rem;
    line-height: 1.25;
    color: #163249;
    font-weight: 700;
}

.app-promo-text {
    margin: 0 0 12px;
    color: #35516a;
}

.app-promo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.app-promo-link {
    display: inline-flex;
    align-items: center;
}

.app-promo-link img {
    height: 46px;
    width: auto;
    display: block;
}

.imprint-title-bar {
    margin-top: 6px;
    margin-bottom: 14px;
}

.imprint-title-bar .title-bar-title {
    color: #1d3142;
    letter-spacing: 0.01em;
}

.imprint-row {
    margin-bottom: 8px;
}

.imprint-column {
    float: none;
    margin: 0 auto;
}

.imprint-card {
    border: 1px solid #d4e0ea;
    background: #fbfdff;
    box-shadow: 0 6px 16px rgba(26, 45, 63, 0.06);
}

.imprint-card + .imprint-card {
    margin-top: 10px;
}

.imprint-card-body {
    padding: 16px 18px;
}

.imprint-heading-link {
    color: #21425b !important;
    font-weight: 700;
    text-decoration: none;
    pointer-events: none;
}

.imprint-card p {
    color: #31495d;
    line-height: 1.6;
    margin-bottom: 0.9em;
}

.imprint-card p:last-child {
    margin-bottom: 0;
}

.imprint-card h3,
.imprint-card h4 {
    color: #1f3a50;
    line-height: 1.35;
}

.imprint-card h3 {
    margin-top: 0;
    margin-bottom: 0.7em;
}

.imprint-card h4 {
    margin-top: 1.1em;
    margin-bottom: 0.45em;
}

.imprint-card ul {
    padding-left: 1.2em;
    margin: 0 0 1em;
}

.imprint-card li {
    margin-bottom: 0.3em;
}

@media (max-width: 767px) {
    .layout-content-body {
        padding: 10px;
    }

    .app-promo-body {
        padding: 12px;
    }

    .imprint-card-body {
        padding: 12px;
    }

    .app-promo-title {
        font-size: 1.1rem;
    }

    .app-promo-link img {
        height: 40px;
    }

    .home-title-bar .title-bar-title {
        font-size: 1.68rem;
    }

    .layout-header .navbar-brand {
        font-size: 1rem;
    }

    .cc-window {
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        margin: 0;
    }

    .event-header-row {
        margin-bottom: 6px;
    }

    .event-ad-column {
        margin-bottom: 8px;
    }
}

@media (min-width: 768px) {
    .home-title-bar {
        margin-bottom: 20px;
    }

    .event-column {
        margin-bottom: 14px;
    }
}

.event-meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.event-meta-title-col {
    min-width: 0;
}

.event-meta-status-col {
    display: flex;
    justify-content: flex-end;
}

.event-title-bar {
    margin-top: 0;
    margin-bottom: 0;
}

.event-title {
    font-size: 1.72rem;
    line-height: 1.2;
    color: var(--bb-ink-strong);
    margin: 0;
}

.event-title-description {
    color: var(--bb-ink-muted);
    font-size: 0.95rem;
    margin: 2px 0 0;
}

.event-message-row {
    margin-bottom: 8px;
}

.event-status-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 44px;
}

.event-sound-toggle {
    padding-left: 0;
}

.event-sound-toggle a {
    color: var(--bb-ink-muted);
    text-decoration: none;
    transition: color 120ms ease;
}

.event-sound-toggle a:hover {
    color: var(--bb-accent-brand);
}

.event-status-output {
    font-size: 0.85rem;
    color: var(--bb-ink-muted);
}

.test-meta-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.test-meta-title-col {
    min-width: 0;
}

.test-title-bar {
    margin-top: 0;
    margin-bottom: 0;
}

.test-title-main {
    font-size: 1.62rem;
    line-height: 1.2;
    color: var(--bb-ink-strong);
    margin: 0;
}

.test-title-sub {
    margin: 3px 0 0;
    color: var(--bb-ink-muted);
    font-size: 0.9rem;
    line-height: 1.3;
}

.test-event-name {
    font-weight: 600;
    color: #38546b;
    margin-right: 8px;
}

.test-code-phase {
    margin-right: 8px;
}

.test-corrected-note {
    margin-left: 6px;
    font-size: 0.82rem;
}

.test-sponsor-text {
    margin: 3px 0 0;
    color: var(--bb-ink-muted);
}

.test-meta-status-col {
    display: flex;
    justify-content: flex-end;
}

.test-status-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-height: 42px;
}

.test-status-output {
    font-size: 0.85rem;
    color: var(--bb-ink-muted);
}

.test-sponsor-logo-wrap {
    margin-bottom: 8px;
}

.test-sponsor-logo {
    max-height: 70px;
}

.test-page-body .card {
    border: 1px solid var(--bb-border-soft);
    box-shadow: var(--bb-shadow-soft);
}

.test-page-body .card-header {
    background: #f6f9fc;
    border-bottom: 1px solid var(--bb-border-soft);
    font-size: 1.08rem;
}

.test-page-body .card-header strong,
.test-page-body .card-header .card-toggle {
    font-size: 1.12rem;
    color: var(--bb-ink-strong);
}

.test-page-body .card-header .card-toggle:hover,
.test-page-body .card-header .card-toggle:focus {
    color: var(--bb-ink-strong);
}

.test-page-body .card-body {
    padding: 14px;
}

.test-page-body .table.table-striped > tbody > tr.odd,
.test-page-body .table.table-striped > tbody > tr:nth-of-type(odd):not(.child) {
    background-color: var(--bb-table-stripe-odd);
}

.test-page-body .table.table-striped > tbody > tr.even,
.test-page-body .table.table-striped > tbody > tr:nth-of-type(even):not(.child) {
    background-color: var(--bb-table-stripe-even);
}

.test-page-body .table.table-striped > tbody > tr:not(.child):hover {
    background-color: var(--bb-table-hover);
}

/* Detail panel shown when tapping a result/startlist row */
.test-page-body table.dataTable > tbody > tr.child {
    background: linear-gradient(180deg, #fcfeff 0%, #f5faff 100%);
}

.test-page-body table.dataTable > tbody > tr.child > td {
    padding: 10px 12px !important;
    border-top: 0;
    border-bottom: 1px solid var(--bb-border-soft);
}

.test-page-body table.dataTable > tbody > tr.child .row {
    margin-left: 0;
    margin-right: 0;
}

.test-page-body table.dataTable > tbody > tr.child [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 8px;
}

.test-page-body table.details {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border: 1px solid #d7e1ec;
    border-radius: 8px;
    table-layout: fixed;
}

.test-page-body #rider-details {
    margin-bottom: 8px;
}

.test-page-body table.details td {
    padding: 7px 9px;
    border-bottom: 1px solid #eef3f8;
    vertical-align: top;
}

.test-page-body table.details tr:last-child td {
    border-bottom: 0;
}

.test-page-body table.details td.label {
    width: 38% !important;
    min-width: 130px;
    display: table-cell !important;
    border-radius: 0;
    font-size: inherit;
    line-height: inherit;
    text-align: left;
    background: #f3f8fd;
    color: #415a6f;
    font-weight: 600;
    white-space: normal;
    text-overflow: clip;
    overflow: visible;
    line-height: 1.25;
    background-clip: padding-box;
}

.test-page-body table.details td:not(.label) {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.3;
}

.test-page-body .judgeList {
    background: #ffffff;
    border: 1px solid #d7e1ec;
    border-radius: 8px;
    padding: 8px 10px;
}

.test-page-body .divider {
    margin: 8px 0 6px;
}

.event-card {
    border: 1px solid var(--bb-border-soft);
    background: var(--bb-bg-surface);
    box-shadow: var(--bb-shadow-soft);
}

.event-card-header {
    border-bottom: 1px solid var(--bb-border-soft);
    background: #f6f9fc;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.event-sched-warning {
    color: var(--bb-ink-muted);
    font-size: 0.82rem;
    margin-right: auto;
}

.event-sched-warning:empty {
    display: none;
}

.event-toolbar {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.event-table-filter {
    margin: 0;
    text-align: left;
}

.event-table-filter > label {
    margin: 0;
    color: inherit !important;
    font: inherit !important;
    text-shadow: none;
    position: static;
}

.event-table-filter > label:after {
    display: none !important;
    content: none !important;
}

.event-table-filter > label > input {
    height: 30px;
    width: 170px;
    border-radius: 8px;
    border: 1px solid #c8d6e4;
    padding: 4px 10px;
}

.event-phase-nav {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: 10px;
    background: #e8f0f7;
    border: 1px solid #d0ddea;
}

.event-btn-testlist,
.event-btn-schedule {
    border-radius: 8px;
    font-weight: 600;
    transition: all 120ms ease;
    margin-left: 0;
    border: none;
    background: transparent;
    color: #2a4d67;
    min-height: 30px;
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.event-btn-testlist:hover,
.event-btn-schedule:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 43, 64, 0.12);
    background: #dce9f4;
}

.event-btn-testlist.active,
.event-btn-schedule.active {
    background: #2f7aa6;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(27, 66, 94, 0.24);
}

.event-btn-testlist[disabled],
.event-btn-schedule[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.event-phase-nav .fa-list-alt::before,
.event-phase-nav .fa-calendar::before {
    margin-right: 4px;
}

.event-order-text {
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    font-weight: 700;
}

.event-card-body {
    padding: 14px;
}

/* Event page tables - striped and modernized */
.event-card-body .table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.event-card-body .table thead {
    background: #f0f5fa;
}

.event-card-body .table thead th {
    border: none;
    background: #f0f5fa;
    color: var(--bb-ink-strong);
    font-weight: 700;
    font-size: 1.03rem;
    padding: 12px 14px;
    border-bottom: 2px solid var(--bb-border-soft);
    text-align: left;
}

.event-card-body .table tbody tr {
    border-bottom: 1px solid var(--bb-border-soft);
    transition: background-color 120ms ease;
}

.event-card-body .table.table-striped > tbody > tr.odd,
.event-card-body .table.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--bb-table-stripe-odd);
}

.event-card-body .table.table-striped > tbody > tr.even,
.event-card-body .table.table-striped > tbody > tr:nth-of-type(even) {
    background-color: var(--bb-table-stripe-even);
}

.event-card-body .table tbody tr:hover {
    background-color: var(--bb-table-hover);
}

.event-card-body .table tbody td {
    padding: 12px 14px;
    color: var(--bb-ink-strong);
    border: none;
    vertical-align: middle;
}

.event-card-body .table tbody tr.break {
    background-color: #fef3f3 !important;
}

.event-card-body .table tbody tr.break td {
    color: #8b4545;
    font-style: italic;
    font-size: 0.95rem;
}

.event-card-body .day-header {
    background: linear-gradient(180deg, #eef6fa 0%, #e6f1f8 100%);
    border: 1px solid var(--bb-border-soft);
    border-radius: 8px;
    padding: 10px 12px;
    line-height: 1.4;
    color: var(--bb-ink-strong);
    font-weight: 600;
    margin: 12px 0 8px 0;
    font-size: 0.95rem;
}

.event-card-body .venue {
    background: #e6f0fa;
    border: 1px solid #b8d4e8;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
    text-align: center;
    color: var(--bb-ink-strong);
    font-weight: 600;
    font-size: 0.93rem;
}

@media (max-width: 767px) {
    .event-meta-row {
        margin-bottom: 6px;
    }

    .test-meta-row {
        margin-bottom: 6px;
    }

    .test-title-main {
        font-size: 1.3rem;
    }

    .test-title-sub {
        font-size: 0.8rem;
    }

    .test-status-bar {
        gap: 6px;
        min-height: 36px;
    }

    .test-status-output {
        font-size: 0.76rem;
    }

    .test-page-body table.details td.label {
        width: 26% !important;
        min-width: 0;
        white-space: nowrap;
        word-break: normal;
    }

    .test-page-body table.details td:not(.label) {
        width: 74% !important;
        word-break: normal;
    }

    .test-page-body table.details {
        table-layout: auto;
    }

    .test-sponsor-logo {
        max-height: 56px;
    }

    .event-title {
        font-size: 1.4rem;
    }

    .event-title-description {
        font-size: 0.85rem;
        margin-top: 1px;
    }

    .event-meta-status-col {
        padding-left: 4px;
    }

    .event-status-bar {
        gap: 6px;
        min-height: 38px;
    }

    .event-status-output {
        font-size: 0.78rem;
    }

    .event-sound-toggle i {
        font-size: 1.4em !important;
    }

    .event-card-header {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .event-phase-nav {
        margin-top: 0;
        width: auto;
        display: inline-flex;
        border-radius: 8px;
    }

    .event-btn-testlist,
    .event-btn-schedule {
        margin-left: 0;
        margin-right: 0;
        flex: 0 0 auto;
        justify-content: center;
        min-width: 0;
        padding: 5px 4px;
    }

    .event-order-text {
        font-size: 0.72rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .test-page-body .card-header {
        font-size: 0.99rem;
    }

    .test-page-body .card-header strong,
    .test-page-body .card-header .card-toggle {
        font-size: 1.03rem;
    }

    .event-toolbar {
        width: 100%;
        justify-content: space-between;
    }

    .event-table-filter > label > input {
        width: 126px;
        height: 28px;
    }

    .event-sched-warning {
        order: 3;
        width: 100%;
        margin-right: 0;
        margin-top: 2px;
    }

    .event-card-body .table {
        font-size: 0.95rem;
    }

    .event-card-body .table thead th {
        font-size: 0.98rem;
    }

    .event-card-body .table thead th,
    .event-card-body .table tbody td {
        padding: 8px 6px;
    }
}

table.details {
    background-color: inherit;
}

table.details td {
    padding: 2px;
    vertical-align: middle;
}

table.details td.label {
    color: #757575;
    font-weight: bold;
    font-size: 13px;
    line-height: 20px;
    text-align: right;
    padding-right: 6px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

@media (max-width: 991px) {
    table.details td.label {
        width: 100px;
    }
}

span.sectionmark {
    text-decoration: underline;
    display: inline-block;
    min-width: 2.8em;
}

div.judgeList {
    white-space: normal;
}


div.divider {
    margin: 0;
}

a.card-toggle {
    text-decoration: none;
}

.card-header .card-toggle:after {
    font-family: 'FontAwesome' !important;
    content: "\f13a";
    float: right;
    color: grey;
}

.card-header .card-toggle.collapsed:after {
    content: "\f138";
}

/* decorate the phase buttons to show available startlists and results and active phases */
.has-lockedstartlist::before {
    font-family: 'FontAwesome' !important;
    content: "\f023";
    float: right;
    padding-left: .5em;
    color: red;
}

.has-reviewedresults::before {
    font-family: 'FontAwesome' !important;
    content: "\f0a3";
    float: right;
    padding-left: .5em;
    color: red;
}

.has-correctedresults::before {
    font-family: 'FontAwesome' !important;
    content: "\f05d";
    float: right;
    padding-left: .5em;
    color: red;
}

.has-correctedresults {
    color: red;
}

.has-startlist::after {
    font-family: 'FontAwesome' !important;
    content: "\f0cb";
    float: right;
    padding-left: .5em;
}

.has-results::after {
    font-family: 'FontAwesome' !important;
    content: "\f11e";
    float: right;
    padding-left: .5em;
}

.active-phase::before {
    font-family: 'FontAwesome' !important;
    content: "\f251";
    float: left;
    padding-right: .5em;
}

/* decorate the phase buttons to show the age of the most recent update */
.t_5min {
    background-color: #1a75ff;
    color: #fff;
}

.t_15min {
    background-color: #3385ff;
    color: #fff;
}

.t_1hour {
    background-color: #80b3ff;
    color: #fff;
}

.t_6hour {
    background-color: #b3d1ff;
    color: #333;
}

.t_1day {
    background-color: #e6f0ff;
    color: #000;
}

.t_old {
    background-color: #efefef;
    color: #000;
}

.t_none {
    background-color: #fff;
    color: #000;
}

.btn-phase:hover {
    color: #333;
    background-color: #e6e6e6;
    border-color: #adadad;
}

.websocket-message {
    color: red;
    list-style-type: none;
    padding: 0;
}

.break {
    background-color: #f1cbcb !important;
}

.fa-list-alt::before {
    font-family: 'FontAwesome' !important;
    content: "\f022";
}

.fa-calendar::before {
    font-family: 'FontAwesome' !important;
    content: "\f073";
}

.day-header {
    line-height: 2em;
}

tr.break {
    background-color: #f1cbcb;
}

div.venue {
    width: 100%;
    text-align: center;
    line-height: 1.5em;
    background-color: #cee8fc;
}

ul.awards {
    list-style-type: none;
}

ul.awards li:before {
    font-family: 'FontAwesome' !important;
    content: "\f091";
    margin-left: -25px;
    margin-right: 10px;
    color: goldenrod;
}

ul.awards li {
  font-weight: bold;
  color: goldenrod;
}

span.hasAwards:after {
    font-family: 'FontAwesome' !important;
    content: "\f091";
    color: goldenrod;
    padding-left: 5px;
}

img.sponsor-logo {
  max-height: 80px;
}

.sponsor-text {
    font-size: 80%;
}

.title-bar {
  margin-top: 10px;
}

div.sound-status {
  padding-left: 1.1em;
}

div.sound-status a,
div.sound-status a:hover,
div.sound-status a:visited,
div.sound-status a:active {
    color: inherit;
    text-decoration: none;
}

ul.phase-list li{
   display: inline;
   list-style: none;
}

ul.phase-list li a,
ul.phase-list li a:link,
ul.phase-list li a:visited {
    display: block;
    padding: 2px 15px 2px 5px;
    float: left;
    margin: 0 5px 0 0;
}