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


/* ---------------------------------------------------------
   Cycle tabs
   --------------------------------------------------------- */

.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
   --------------------------------------------------------- */

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

    margin: 0 0 2rem 0;
    padding: 0.25rem 0.5rem 0.75rem 0.5rem;
}


/* ---------------------------------------------------------
   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;
}


/* ---------------------------------------------------------
   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

   IMPORTANT:
   No padding, margin, border or outline is added here.

   Therefore an annotated day remains EXACTLY the same
   width as an ordinary killboard day.
   --------------------------------------------------------- */

.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

   JavaScript positions this using viewport coordinates.

   Since it is fixed and pointer-events:none, it changes
   absolutely nothing about the killmail layout.
   --------------------------------------------------------- */

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


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

@media (max-width: 1199.98px) {

    .kb-panel-heading {
        margin-bottom: 1rem;

        padding-left: 0;
        padding-right: 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-battle-selection-box {
        display: none !important;
    }


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


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