.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 / battle panel layout --- */

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

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

.kb-panel-column {
    position: relative;
    min-height: 100%;
    display: flex;
    justify-content: center;
}

.kb-battle-panel {
    position: sticky;
    top: 50vh;
    transform: translateY(-50%);
    width: 100%;
    max-width: 720px;
    z-index: 4;
}

.kb-battle-panel-inner {
    min-height: 340px;
    padding: 18px;
    background: #11161c;
    border: 1px solid #46515c;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset;
}

.kb-battle-panel.is-active .kb-battle-panel-inner {
    border-color: #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 {
    word-break: break-word;
}

.kb-battle-panel-body img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

/* --- Top ship summary block --- */

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

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

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

/* Group */
.kb-stats-wrap th:nth-child(2),
.kb-stats-wrap td:nth-child(2) {
    width: 90px;
    text-align: right;
}

/* Kills / Losses */
.kb-stats-wrap th:nth-child(3),
.kb-stats-wrap td:nth-child(3),
.kb-stats-wrap th:nth-child(4),
.kb-stats-wrap td:nth-child(4) {
    width: 60px;
    text-align: center;
}

/* Ship name */
.kb-stats-wrap th:nth-child(1),
.kb-stats-wrap td:nth-child(1) {
    width: auto;
}

/* --- Battle block hover / selection --- */

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

.kb-battle-block.has-battle-info {
    transition:
        outline-color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease;
    cursor: pointer;
}

.kb-battle-block.has-battle-info:hover,
.kb-battle-block.battle-active {
    outline: 2px solid #d9e4ef;
    outline-offset: 2px;
    background-color: rgba(255, 255, 255, 0.025);
    box-shadow: 0 0 0 1px rgba(217, 228, 239, 0.15);
}

.kb-battle-block.battle-pinned {
    box-shadow: 0 0 0 1px rgba(217, 228, 239, 0.25);
}

/* --- Connector drawing layer --- */

.kb-connector-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: visible;
    display: none;
}

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

.kb-connector-layer path {
    fill: none;
    stroke: #d9e4ef;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.95;
}

/* --- Smaller screens --- */

@media (max-width: 1199.98px) {
    .kb-battle-panel {
        position: static;
        transform: none;
        max-width: none;
        margin-top: 1rem;
    }

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

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