.employee_number_badge {
    width: 64px;
}

.top-bar-button {
    width: 46px;
    height: 42px;
}

.logo {
    max-height: 64px;
}

.kb_picture {
    width: 48px;
    height: 48px;
    background-color: black;
    object-fit: cover;
    display: block;
}

.kb_line {
    min-height: 48px;
}

.bk_text {
    background-color: black;
    text-decoration: none;
    color: white;
}

.kb_bg_gray {
    background-color: #1d1d1d;
}

.kb_kill {
    background-color: #004000;
}

.kb_loss {
    background-color: #900000;
}

.kb_header {
    width: 4em;
}

.kb_link {
    text-decoration: none;
}

.kb_smaller_font {
    font-size: 0.8em;
}


/* ---------------------------------------------------------
   Compact killboard header / Cycle tabs
   --------------------------------------------------------- */

.kb-cycle-header {
    margin-top: 0;
    margin-bottom: 0;

    padding-left: 12px;
    padding-right: 12px;

    background: #1d2228;
}


.kb-cycle-header-inner {
    position: relative;

    min-height: 88px;

    width: 100%;

    display: flex;
    align-items: center;
}


/*
 * Brand block
 */

.kb-cycle-brand {
    position: relative;
    z-index: 2;

    flex: 0 0 150px;
    width: 150px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    color: white;
    text-decoration: none;

    white-space: nowrap;
}

.kb-cycle-brand:hover {
    color: white;
    text-decoration: none;
}


.kb-cycle-brand-title {
    display: block;

    width: 100%;

    margin-bottom: 5px;

    font-size: 0.9rem;
    font-weight: 500;

    line-height: 1.1;

    text-align: center;
}


.kb-cycle-logo {
    display: block;

    width: 46px;
    height: 46px;

    object-fit: contain;

    margin: 0;
}


/*
 * Desktop tabs centred over the left 8/12 killboard column.
 */

.kb-cycle-tabs-area {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 66.666667%;
    height: 100%;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    pointer-events: none;
}


.kb-cycle-tabs-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding-bottom: 4px;

    min-width: 0;

    pointer-events: auto;
}


.kb-cycle-tabs {
    margin: 0;

    border-bottom: 0;
}


.kb-cycle-tabs .nav-link {
    white-space: nowrap;
}


.kb-cycle-range {
    font-weight: 400;
}


/* ---------------------------------------------------------
   Main layout
   --------------------------------------------------------- */

.kb-main-layout {
    align-items: flex-start;
}

.kb-board-column {
    align-self: stretch;
}

.kb-panel-column {
    position: relative;
    min-height: 100%;
}


/* ---------------------------------------------------------
   Static information heading

   On the desktop layout this is lifted into the dark header
   area above the right-hand Battle Information column.
   This keeps it independent of the fixed battle panel and
   avoids the heading being inconsistently covered.
   --------------------------------------------------------- */

.kb-panel-heading {
    position: absolute;

    top: -66px;
    left: 8px;

    z-index: 5;

    color: #7f8891;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    margin: 0;
    padding: 0;

    white-space: nowrap;
}


/* ---------------------------------------------------------
   Battle panel
   --------------------------------------------------------- */

.kb-battle-panel {
    position: fixed;

    top: 50%;
    transform: translateY(-50%);

    width: 100%;
    max-width: 720px;

    z-index: 20;

    visibility: hidden;
    opacity: 0;

    transition: opacity 0.12s ease;
}

.kb-battle-panel.is-active {
    visibility: visible;
    opacity: 1;
}


.kb-battle-panel-inner {
    width: 100%;
    box-sizing: border-box;

    max-height: 82vh;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 20px;

    background: #11161c;

    border: 2px solid #d9e4ef;

    scrollbar-gutter: stable;
}


.kb-battle-panel-inner {
    scrollbar-width: thin;
    scrollbar-color: #7f8891 #181d22;
}


.kb-battle-panel-inner::-webkit-scrollbar {
    width: 10px;
}

.kb-battle-panel-inner::-webkit-scrollbar-track {
    background: #181d22;
}

.kb-battle-panel-inner::-webkit-scrollbar-thumb {
    background: #7f8891;
    border-radius: 5px;
    border: 2px solid #181d22;
}

.kb-battle-panel-inner::-webkit-scrollbar-thumb:hover {
    background: #a5afb8;
}


.kb-battle-panel-inner h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.kb-battle-meta {
    margin-bottom: 14px;
    color: #adb5bd;
}

.kb-battle-panel-body p {
    margin-bottom: 1rem;
}

.kb-battle-panel-body a {
    color: #6ea8fe;
    text-decoration: none;
    word-break: break-word;
}

.kb-battle-panel-body a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Cycle 2 Coming Soon panel
   --------------------------------------------------------- */

.kb-coming-soon-panel {
    width: 100%;
    max-width: 720px;
}

.kb-coming-soon-inner {
    width: 100%;
    box-sizing: border-box;

    padding: 20px;

    background: #11161c;

    border: 2px solid #d9e4ef;
}

.kb-coming-soon-inner h4 {
    margin-top: 0;
    margin-bottom: 12px;
}

.kb-coming-soon-inner p {
    margin-bottom: 0;
    color: #adb5bd;
}


/* ---------------------------------------------------------
   Default Battle Information panel
   --------------------------------------------------------- */

.kb-battle-default-panel {
    width: 100%;
    max-width: 720px;
}

.kb-battle-default-inner {
    width: 100%;
    box-sizing: border-box;

    padding: 20px;

    background: #11161c;

    border: 2px solid #d9e4ef;
}

.kb-battle-default-inner h4 {
    margin-top: 0;
    margin-bottom: 14px;
}

.kb-battle-default-inner ul {
    padding-left: 1.4rem;
}

.kb-battle-default-inner li {
    margin-bottom: 4px;
}


/* ---------------------------------------------------------
   Battle images
   --------------------------------------------------------- */

.kb-battle-image,
.kb-battle-panel-body img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    box-sizing: border-box;

    margin-top: 16px;

    border: 1px solid #46515c;
}


/* ---------------------------------------------------------
   Statistics
   --------------------------------------------------------- */

.kb-stats-wrap {
    width: 100%;
    max-width: 960px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 8px;
    padding-right: 8px;

    box-sizing: border-box;
}

.kb-stats-wrap table {
    width: 100%;
    table-layout: auto;
}

.kb-stats-wrap th,
.kb-stats-wrap td {
    padding: 5px 8px;
    white-space: nowrap;
    vertical-align: middle;
}

.kb-stats-wrap .row {
    --bs-gutter-x: 1rem;
}


/* ---------------------------------------------------------
   Battle blocks
   --------------------------------------------------------- */

.kb-battle-block {
    position: relative;
}

.kb-battle-block.has-battle-info {
    cursor: pointer;
}

.kb-battle-block.has-battle-info:hover {
    background-color: rgba(255, 255, 255, 0.015);
}


/* ---------------------------------------------------------
   Independent battle selection box
   --------------------------------------------------------- */

.kb-battle-selection-box {
    position: fixed;

    display: none;

    box-sizing: border-box;

    border: 3px solid #d9e4ef;

    pointer-events: none;

    z-index: 18;
}

.kb-battle-selection-box.is-visible {
    display: block;
}


/* ---------------------------------------------------------
   Solid connector
   --------------------------------------------------------- */

.kb-connector-layer {
    position: fixed;

    left: 0;
    top: 0;

    width: 100vw;
    height: 100vh;

    pointer-events: none;

    z-index: 19;

    display: none;

    overflow: visible;
}

.kb-connector-layer.is-visible {
    display: block;
}

.kb-connector-layer path {
    fill: #d9e4ef;
    stroke: #d9e4ef;

    stroke-width: 1;
    stroke-linejoin: round;

    opacity: 0.96;
}


/* ---------------------------------------------------------
   Intermediate desktop widths
   --------------------------------------------------------- */

@media (max-width: 1349.98px) and (min-width: 1200px) {

    .kb-cycle-brand {
        flex-basis: 112px;
        width: 112px;
    }


    .kb-cycle-brand-title {
        font-size: 0.74rem;

        margin-bottom: 3px;
    }


    .kb-cycle-logo {
        width: 40px;
        height: 40px;
    }


    .kb-cycle-tabs .nav-link {
        padding-left: 0.65rem;
        padding-right: 0.65rem;

        font-size: 0.86rem;
    }

}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1199.98px) {

    .kb-cycle-header {
        padding-left: 8px;
        padding-right: 8px;
    }


    .kb-cycle-header-inner {
        min-height: 88px;
    }


    .kb-cycle-brand {
        flex: 0 0 115px;
        width: 115px;

        margin-right: 8px;
    }


    .kb-cycle-brand-title {
        font-size: 0.74rem;

        margin-bottom: 3px;
    }


    .kb-cycle-logo {
        width: 40px;
        height: 40px;
    }


    .kb-cycle-tabs-area {
        position: static;

        width: auto;
        height: auto;

        flex: 1 1 auto;

        align-self: stretch;

        display: flex;
        align-items: flex-end;
        justify-content: center;
    }


    .kb-cycle-tabs-wrap {
        padding-bottom: 0;

        min-width: 0;
    }


    .kb-cycle-tabs .nav-link {
        padding-left: 0.65rem;
        padding-right: 0.65rem;

        font-size: 0.86rem;
    }


    /*
     * Once the Battle Information column stacks beneath the
     * killboard, return the heading to normal document flow.
     */

    .kb-panel-heading {
        position: static;

        color: #7f8891;
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;

        margin: 0 0 1rem 0;

        padding: 0.25rem 0 0.75rem 0;
    }


    .kb-battle-panel {
        position: static;

        top: auto;
        left: auto !important;

        transform: none;

        width: 100% !important;
        max-width: none;

        margin-top: 1rem;

        visibility: visible;
        opacity: 1;
    }


    .kb-battle-panel:not(.is-active) {
        display: none;
    }


    .kb-battle-panel-inner {
        max-height: none;

        overflow-y: visible;

        scrollbar-gutter: auto;
    }


    .kb-coming-soon-panel {
        max-width: none;
    }


    .kb-battle-default-panel {
        max-width: none;
    }


    .kb-battle-selection-box {
        display: none !important;
    }


    .kb-connector-layer {
        display: none !important;
    }


    .kb-stats-wrap {
        max-width: none;
    }
}


/* ---------------------------------------------------------
   Narrow widths
   --------------------------------------------------------- */

@media (max-width: 949.98px) {

    .kb-cycle-header-inner {
        min-height: auto;

        padding-top: 8px;

        flex-wrap: wrap;
    }


    .kb-cycle-brand {
        width: 100%;
        flex: 0 0 100%;

        margin-right: 0;
        margin-bottom: 7px;
    }


    .kb-cycle-brand-title {
        font-size: 0.82rem;
    }


    .kb-cycle-logo {
        width: 42px;
        height: 42px;
    }


    .kb-cycle-tabs-area {
        width: 100%;

        flex: 0 0 100%;

        overflow-x: auto;

        justify-content: flex-start;
    }


    .kb-cycle-tabs-wrap {
        width: max-content;

        justify-content: flex-start;
    }


    .kb-cycle-tabs {
        flex-wrap: nowrap;
    }


    .kb-cycle-tabs .nav-link {
        font-size: 0.84rem;
    }
}
