.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;
}


/* ---------------------------------------------------------
   Main killboard / information layout
   --------------------------------------------------------- */

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

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

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


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

   JS positions this horizontally inside the right column.
   Vertically it remains centred in the browser viewport.
   --------------------------------------------------------- */

.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;

    padding: 20px;

    background: #11161c;

    border: 2px solid #d9e4ef;
}

.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;
}


/* ---------------------------------------------------------
   Battle image
   --------------------------------------------------------- */

.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;
}


/* ---------------------------------------------------------
   Top statistics table
   --------------------------------------------------------- */

.kb-stats-wrap {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.kb-stats-wrap th,
.kb-stats-wrap td {
    padding: 4px 6px;
    white-space: nowrap;
}


/* ---------------------------------------------------------
   Battle selection
   --------------------------------------------------------- */

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

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

    transition:
        outline-color 0.12s ease,
        background-color 0.12s ease;
}

.kb-battle-block.has-battle-info:hover,
.kb-battle-block.battle-active {
    outline: 2px solid #d9e4ef;
    outline-offset: 1px;

    background-color: rgba(255, 255, 255, 0.025);
}


/* ---------------------------------------------------------
   Battle-to-panel bridge

   This SVG lives over the browser viewport.
   It only occupies the empty horizontal space between
   the killboard and the information panel.
   --------------------------------------------------------- */

.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: #11161c;

    stroke: #d9e4ef;
    stroke-width: 2;

    stroke-linejoin: round;
}


/* ---------------------------------------------------------
   Tablet / phone behaviour

   No desktop connector or fixed panel.
   Panel becomes ordinary content below the board.
   --------------------------------------------------------- */

@media (max-width: 1199.98px) {

    .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-connector-layer {
        display: none !important;
    }

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