﻿.form-label {
    color: var(--bs-with);
}

.form-floating > .form-control:-webkit-autofill ~ label,
.form-floating > .form-control ~ label {
    color: var(--bs-dark);
}

table.table thead, tbody, tfoot, tr, td, th {
    border-color: #000;
    border-style: solid;
    border-width: 1px;
}

table.table.bordered {
    border: 2px solid #404040;
}

table.table tr.sp-1 {
    border-top: 1rem solid black;
}

table.table tr.sp-2 {
    border-top: 0.2rem solid black;
}

table.table tr.owner {
}

table.table tr.link {
    cursor: pointer;
}

table.table th,
table.table td.active,
table.table td.head,
table.table tr.head td {
    background-color: #231E64;
    color: var(--bs-white);
    text-align: center;
    font-weight: normal;
}

table.table th,
table.table td.head,
table.table tr.head td {
    vertical-align: bottom;
}

div.head {
    line-height: 24px;
    font-size: 16px;
    background-color: #231E64;
    color: var(--bs-white);
    text-align: center;
    font-weight: normal;
    padding: 0.5rem;
    border: solid 1px #000;
}

table.table td {
    background-color: #404040;
    color: var(--bs-white);
    text-align: center;
}

a {
    color: var(--bs-white);
    text-decoration: none;
    font-weight: 700;
}

    a:hover:not(.btn) {
        color: var(--bs-white);
        text-decoration: underline;
    }

    a:hover:has(i) {
        text-decoration: none !important;
    }

.navigation td:has(a:hover) {
    background-color: #1F5857 !important;
}

.navigation td a {
    /*display: block;*/
    text-decoration: none !important;
}

table.table > :not(:last-child) > :last-child > * {
    border-bottom-color: inherit;
}

table.table tr.highlight td:not(.alert),
table.table td.highlight,
table.table tr.highlight-checked:has(input:checked[type=radio]) td,
table.table td.highlight-checked:has(input:checked[type=radio]) {
    background-color: #1F5857 !important;
}

table.table tr.black td,
table.table td.black {
    background-color: #000000;
}

.lowlight,
table.table tr.lowlight td,
table.table tr.lowlight th,
table.table td.lowlight {
    background-color: #2F2F2F;
}

table.table.hover :not(thead) tr.lowlight:hover:not(.no-hover) td,
table.table.hover :not(thead) tr:not(.no-hover, .head, .siege) td:hover,
table.table.hover :not(thead) tr:hover:not(.no-hover, .head, .siege) td,
table.table.hover :not(thead) tr:not(.no-hover, .head, .alert) td:hover,
table.table.hover :not(thead) tr:hover:not(.no-hover, .head, .alert) td,
table.table td.hover:hover {
    background-color: #1F5857;
}

table.table.oddEven tbody tr:nth-child(even) td,
table.table.evenOdd tbody tr:nth-child(odd) td {
    background: #2F2F2F;
}

table.table.oddEven tbody tr:nth-child(odd) td,
table.table.evenOdd tbody tr:nth-child(even) td {
    background: #404040
}

table.table tr.siege td,
table.table tr.alert td,
table.table td.alert {
    background-color: #5F1F1F !important;
}

table.table tr.friendly-siege td {
    background-color: #235F22 !important;
}

table.table tr.mark {
    border: 2px dashed #fff;
}

table.table tr.validation-errors td {
    background-color: #5F1F1F;
    text-align: left;
}

table.table span.form-error {
    display: block;
    clear: both;
    color: #A13434;
    margin-top: 3px;
    font-weight: 800;
}

table.table .input-validation-error {
    border: 2px solid #A13434;
}

table.table td.msg.unread {
    background-color: #804700;
}

    table.table td.msg.unread.player-incoming {
        background-color: #5F1F1F;
    }

    table.table td.msg.unread.player-friendlyincoming {
        background-color: #235F22;
    }

table.table tr.pm.unread.received td {
    background-color: #1F5857;
}

table.race-summary td {
    background-color: #2F2F2F;
}

.table-sm {
    font-size: 0.7em;
}

.indicator-incoming-friendly {
    text-shadow: -1px 0 #ddd, 0 1px #ddd, 1px 0 #ddd, 0 -1px #ddd;
    color: #1F5857;
}

.indicator-incoming {
    text-shadow: -1px 0 #ddd, 0 1px #ddd, 1px 0 #ddd, 0 -1px #ddd;
    color: #943332;
}

.pm.unread .has-been-read-icon,
.pm.read .has-notbeen-read-icon,
.pm.received .outgoing,
.pm.sent .incoming {
    visibility: hidden;
    display: none;
}

/*.btn-primary {
    color: #fff;
    background-color: #231E64;
    border-color: #231E64;
}

    .btn-primary:hover {
        color: #fff;
        background-color: #231E64;
        border-color: #231E64;
    }*/

.progress-bar,
.progress-bar-timed {
    background-color: #57514F;
    border-radius: 0;
    min-width: 68px;
    position: relative;
}

    .progress-bar .progress,
    .progress-bar-timed .progress {
        background-color: #CC6630;
        height: 20px;
        border-radius: 0;
    }

    .progress-bar .progress-text,
    .progress-bar-timed .progress-text {
        position: absolute;
        top: 2px;
        right: 3px;
        color: #fff;
        font-size: 10px;
    }

@media (min-width: 768px) {
    .progress-bar,
    .progress-bar-timed {
        min-width: 150px;
    }

        .progress-bar .progress-text,
        .progress-bar-timed .progress-text {
            top: 1px;
            right: 5px;
            font-size: 13px;
        }
}

@media (max-width: 575.98px) {
    .form-control-sm :not(.form-control) {
        max-width: 147px;
        min-width: 50px;
    }
}

.form-control-inline {
    display: inline;
    width: inherit;
}

.bg-multi-ok {
    background-color: #235F22 !important;
}

.bg-multi-suspicious {
    background-color: #ffc107 !important;
}

.bg-multi-convicted {
    background-color: #943332 !important;
}

.bg-success {
    background-color: #235F22 !important;
}

.text-left {
    text-align: left !important;
}

.text-highlight {
    color: #7EAEAE !important;
    font-weight: 800;
}

.text-highlight-orange {
    color: #ff8040 !important;
    font-weight: 800;
}


.hideMeAfterTime {
    -webkit-animation: cssHideAnimation 5s forwards;
    animation: cssHideAnimation 5s forwards;
}

@keyframes cssHideAnimation {
    0% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@-webkit-keyframes cssHideAnimation {
    0% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.navbar .nav-item .nav-link {
    color: #fff;
}

.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
    color: #fff;
}

.navbar-light .navbar-brand,
.navbar-light .navbar-brand:hover, .navbar-light .navbar-brand:focus {
    color: #fff;
}

.link,
input[type=radio],
input[type=checkbox],
label {
    cursor: pointer;
}

table.table td.race-pick-0 {
    background-color: #5F0F0F;
}

table.table td.race-pick-1 {
    background-color: #56190d;
}

table.table td.race-pick-2 {
    background-color: #452210;
}

table.table td.race-pick-3 {
    background-color: #3d2514;
}

table.table td.race-pick-4 {
    background-color: #2F271F;
}

table.table td.race-pick-5 {
    background-color: #37351f;
}

table.table td.race-pick-6 {
    background-color: #363d22;
}

table.table td.race-pick-7 {
    background-color: #264e31;
}

table.table td.race-pick-8 {
    background-color: #0F573F;
}

table.table td.ranking-up {
    background-color: #203030;
}

table.table td.ranking-down {
    background-color: #402525;
}

.badge.bonus,
.badge.output,
.badge.luckiness {
    border: 0.2em solid #aaa;
}

.bonus-m-3,
.luckiness-m-3 {
    background-color: #56190d;
}

.bonus-m-2,
.luckiness-m-2 {
    background-color: #452210;
}

.bonus-m-1,
.luckiness-m-1 {
    background-color: #3d2514;
}

.bonus-0,
.luckiness-0 {
    background-color: #2F271F;
}

.bonus-p-1,
.luckiness-p-1 {
    background-color: #37351f;
}

.bonus-p-2,
.luckiness-p-2 {
    background-color: #363d22;
}

.bonus-p-3,
.luckiness-p-3 {
    background-color: #264e31;
}

.bonus-growth,
.output-growth {
    background-color: darkolivegreen;
}

.bonus-production,
.output-production {
    background-color: saddlebrown
}

.bonus-culture,
.output-culture {
    background-color: purple;
}

.bonus-science,
.output-science {
    background-color: royalblue;
}

.bonus-trade,
.bonus-eco {
    background-color: #c28b00;
}

.bonus.bonus-trade-none,
.bonus.bonus-eco-none,
.bonus.bonus-none {
    background-color: #80808054;
    color: #999;
    border: 0.2em solid #999;
}

.bonus-speed {
    background-color: #e19e41;
}

.bonus-attack {
    background-color: #000000;
}

.bonus-defence {
    background-color: #e14141;
}

.bonus-maxcombatvalue {
    background-color: #41bce1;
}

.fleet-launch {
    background-color: #235F22;
}

.fleet-available {
    background-color: royalblue;
}

.fleet-remaining {
    background-color: grey;
}

.changelog h2 {
    padding-top: 1em;
    border-bottom: 1px solid #fff;
    padding-bottom: .3em;
}

.changelog h3 {
    padding-top: .2em;
}

table.table td.msg.player-countdown,
table.table td.msg.alliance-countdown,
table.table td.msg.player-defeated {
    background-color: #5F1F1F;
}

table.table td.msg.game-soloplayerwins,
table.table td.msg.game-allianceplayerwins,
table.table td.msg.game-alliancewins {
    background-color: #1F5857;
}

table.table tr.ranking-victory td {
    background-color: #FFD700 !important;
    color: #404040;
}

    table.table tr.ranking-victory td a,
    table.table tr.ranking-victory td a:hover {
        color: #404040;
    }

table.table tfoot tr td {
    background-color: #2F2F2F;
}

.flag {
    height: 14px;
    margin-bottom: 2px;
}

.bg-battle-victory {
    background-color: #235F22 !important;
}

.bg-battle-lost {
    background-color: #943332 !important;
}

.map-origin img,
.map-colony img {
    border: 1px solid green;
}

    .map-origin img:hover,
    .map-colony img:hover {
        border-color: #04be04;
    }

.map-siege img {
    border: 1px solid #950000;
}

    .map-siege img:hover {
        border-color: #ff0000;
    }

.map-fleet img,
.map-planets img {
    border: 1px solid #78909C;
}

    .map-fleet img:hover,
    .map-planets img:hover {
        border-color: #CFD8DC;
    }

.map-opponent img {
    border: 1px solid #FBC02D;
}

    .map-opponent img:hover {
        border-color: #FFF176;
    }

.map-inhabitants img {
    border: 1px solid #039BE5;
}

    .map-inhabitants img:hover {
        border-color: #4FC3F7;
    }


.map-grid {
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgb(40, 40, 40) 1px, transparent 1px), linear-gradient(rgb(40, 40, 40) 1px, transparent 1px);
    position: absolute;
    -webkit-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

.map-container {
    position: relative;
    overflow: hidden;
    height: calc(-240px + 100vh);
    min-height: 285px;
    width: 100%;
    margin-bottom: 8px;
    background-image: url('/img/map_bg.jpg');
}

.map-content {
    position: relative;
}

.map-planet img {
    border-radius: 19px;
    padding: 2px 2px;
    width: 30px;
    height: 30px;
    margin-bottom: 3px;
}

    .map-planet img:hover {
        transform: scale(1.1);
    }

.map-planet span {
    position: relative;
    top: 20px;
    left: -50%;
    font-size: 9px;
    white-space: nowrap;
    display: inline-block;
}

.map-planet:has(img:hover) span {
    font-size: 9.5px;
}

.map-info li {
    line-height: 45px;
}

.map-system-popover {
    position: fixed;
    z-Index: 3000;
    background: #111;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    max-width: 360px;
    min-width: 270px;
    overflow: hidden;
    visibility: hidden
}

#modal .help-item .help-image {
    float: left;
    padding-right: 15px;
    max-width: 200px;
    max-height: 200px;
}

.copy .copy-none {
    display: none;
    visibility: hidden;
}

table.table td.building-lvl-up {
    font-weight: bold;
}

table.table td.building-lvl-started {
    color: #FFF176;
    font-weight: bold;
}

table.table td.building-lvl-finish {
    color: #04be04;
    font-weight: bold;
}

.prevent-select {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.form-select-inline {
    display: inline;
    width: auto;
}


.btn:focus, .btn:active:focus, .btn.active:focus, .btn-check:focus + .btn {
    outline: none !important;
    box-shadow: none !important;
}

.badge.small {
    padding: 0.30em 0.60em;
    font-size: 0.6em;
    vertical-align: middle;
}

.badge.price {
    border: 1px solid #aaa;
}

code {
    background-color: grey;
    border-radius: .25rem;
    color: #fff;
    padding: .15rem .3rem;
}

.tooltip .tooltip-inner {
    color: white;
    background-color: #2F2F2F;
    border: 1px solid #999;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border: none;
}

/* appended styles for alliance color picker */
.color-swatch {
    display: inline-block;
    cursor: pointer;
}

    .color-swatch .swatch {
        width: 28px;
        height: 28px;
        border-radius: 4px;
        border: 2px solid transparent;
        display: inline-block;
        box-sizing: border-box;
    }

    .color-swatch input[type="radio"]:focus + .swatch,
    .color-swatch input[type="radio"]:checked + .swatch {
        border-color: #ffffff;
        box-shadow: 0 0 0 2px rgba(255,255,255,0.12), 0 0 0 4px rgba(37,140,251,0.25);
    }

/* alliance color swatch used in alliance name tag helper */
.alliance-color-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.12);
    vertical-align: middle;
    box-sizing: border-box;
}

/* ── Player Search Widget ──────────────────────────────────────────────────── */

.search-widget {
    position: relative;
}

    .search-widget .form-control:focus {
        background-color: #1e1e1e;
        border-color: #555;
        color: #f0f0f0;
        box-shadow: none;
    }

.search-dropdown {
    /* position, top, left, width and z-index are set dynamically via JS (fixed to viewport) */
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background-color: #1a1a1a;
    border: 1px solid #555;
    border-radius: 4px;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .6);
    display: none;
}

    .search-dropdown.show {
        display: block;
    }

    .search-dropdown .dropdown-item {
        color: #d0d0d0;
        background-color: transparent;
        padding: 6px 14px;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-decoration: none;
    }

        .search-dropdown .dropdown-item:hover,
        .search-dropdown .dropdown-item:focus,
        .search-dropdown .dropdown-item.active {
            background-color: #2c2c2c;
            color: #ffffff;
            text-decoration: none;
        }

        .search-dropdown .dropdown-item mark {
            background-color: #d4a800;
            color: #000;
            padding: 0 1px;
            border-radius: 2px;
        }

    .search-dropdown .dropdown-item-text {
        color: #888;
        font-size: .8rem;
        padding: 6px 14px;
        display: block;
    }

    .search-dropdown li + li {
        border-top: 1px solid #2a2a2a;
    }

.btn-outline-secondary {
    background-color: #404040;
}

.card.sb-module {
    border: 2px solid #888;
}

button.btn.sb-module-selection {
    border: 2px solid #888;
    color: #FFF;
}

button.btn.sb-module-selection:not(:hover) {
    background-color: #303030 !important;
}

.sb-module-scanner {
    background-color: #235F22;
}

.sb-module-jammer {
    background-color: #5f2222;
}

.sb-module-combat  {
    background-color: #000;
}

.sb-module-trade {
    background-color: #c28b00;
}

.card.sb-module .card-body {
    display: none;
}

/*.card.dark-theme.sb-module:hover .card-body {
    display: block;
}*/

table.table td.sb-current-slot {
    background-color: #5f1f1f !important;
}

.form-control.dark {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
    --bs-text-opacity: 1;
    color: rgba(var(--bs-light-rgb), var(--bs-text-opacity)) !important;
    border-color: #6c757d !important;
}
.form-control.dark:focus {
    box-shadow: none;
}

/* ── Map toolbar ──────────────────────────────────────────────────────────── */

.map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    padding: 0.25rem 0.5rem;
    background: #303030;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.map-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.map-toolbar-divider {
    width: 1px;
    height: 1.4em;
    background: rgba(255, 255, 255, 0.15);
}

/* Toggle button in its OFF state */
.map-toolbar-toggle.toolbar-inactive {
    opacity: 0.35;
}

/* Highlight the selected slot option in the dropdown */
.form-control.dark.slot-current,
option.slot-current {
    background-color: #5F1F1F !important;
    color: #fff;
}

/* ── Map toolbar wrapper (establishes stacking context for the overlay panel) */

.map-toolbar-wrapper {
    position: relative;
}

/* ── Map search toolbar group ──────────────────────────────────────────────── */

.map-search-toolbar-group {
    flex: 1 1 140px;       /* grow to fill available toolbar space */
    min-width: 130px;
    max-width: 260px;
}

.map-search-icon {
    background: #404040;
    border-color: #6c757d;
    color: rgba(255,255,255,0.5);
    padding-left: 0.4rem;
    padding-right: 0.4rem;
}

.map-search-input {
    min-width: 0;          /* allow flex shrink */
}

.map-search-clear-btn {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
}

/* ── Map search results panel ──────────────────────────────────────────────── */

.map-search-panel {
    position: absolute;
    bottom: calc(100% + 24px);
    left: 24px;
    z-index: 500;
    min-width: 280px;
    max-width: 420px;
    max-height: 360px;
    overflow-y: auto;

    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    font-size: 0.85rem;

    /* hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

    .map-search-panel.map-search-panel-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

.map-search-empty {
    padding: 0.6rem 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

/* ── Search result groups ──────────────────────────────────────────────────── */

.map-search-group + .map-search-group {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.map-search-group-header {
    padding: 0.35rem 0.75rem 0.2rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.38);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ── Individual result items ───────────────────────────────────────────────── */

.map-search-result-item {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    color: #d0d0d0;
    transition: background-color 0.1s;
}

    .map-search-result-item:hover,
    .map-search-result-item:focus {
        background-color: #2c2c2c;
        color: #fff;
        outline: none;
    }

.map-search-result-label {
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-search-result-sub {
    flex: 0 0 auto;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

/* Highlight matched text inside results */
.map-search-mark {
    background-color: #c49a00;
    color: #000;
    padding: 0 1px;
    border-radius: 2px;
}

/* ── Map filter panel ─────────────────────────────────────────────────────── */

.map-filter-panel {
    position: absolute;
    bottom: calc(100% + 24px);  /* float just above the toolbar */
    right: 24px;
    z-index: 500;
    min-width: 320px;

    background: #262626;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;

    /* hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

    .map-filter-panel.filter-panel-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.18s ease, transform 0.18s ease;
    }

.map-filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.map-filter-panel-title {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.map-filter-clear {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

    .map-filter-clear:hover {
        color: rgba(255, 255, 255, 0.8);
    }

.map-filter-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 0;
    margin-left: 0.4rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s;
}

    .map-filter-close:hover {
        color: rgba(255, 255, 255, 0.85);
    }

.map-filter-panel-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.map-filter-option {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    user-select: none;
    color: #d0d0d0;
}

    .map-filter-option input[type="checkbox"] {
        accent-color: #5f8fc8;
        width: 15px;
        height: 15px;
        cursor: pointer;
    }

/* Filter button highlight when a filter is active */
.map-toolbar #toggleFilter.filter-active {
    color: #ffd262;
}

/* ─── Fleet map layer ─────────────────────────────────────────────────────── */

.fleet-tooltip {
    display: none;
    position: fixed;
    background: rgba(8, 12, 24, 0.96);
    border: 1px solid #334;
    border-radius: 6px;
    color: #ccd;
    font-size: 12px;
    line-height: 1.6;
    padding: 8px 12px;
    pointer-events: none;
    z-index: 10000;
    min-width: 200px;
    max-width: 320px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
}

    .fleet-tooltip hr {
        border: none;
        border-top: 2px solid #334;
        margin: 5px 0;
    }

    .fleet-tooltip .ft-title  { font-weight: bold; margin-bottom: 3px; }
    .fleet-tooltip .ft-route  { color: #99a; margin-bottom: 3px; }
    .fleet-tooltip .ft-ships  { color: #aab; }
    .fleet-tooltip .ft-cv     { color: #aab; margin-top: 3px; }
    .fleet-tooltip .ft-time   { color: #889; font-size: 11px; }

@keyframes fleet-dash-move {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: -10; }
}

.fleet-route-animated {
    animation: fleet-dash-move 1.5s linear infinite;
}

table.table td.intel-status-valid {
    background-color: #008000;
}

table.table td.intel-status-expired {
    background-color: #AAA;
}

.top-permanent-ranker,
.top-permanent-ranker a,
.top-permanent-ranker a:active,
.top-permanent-ranker a:hover {
    color: #FFCC00;
}

.timeline {
    position: relative;
    padding: 0;
    list-style: none;
}

    .timeline::before {
        content: "";
        position: absolute;
        top: 0;
        left: 20px;
        bottom: 0;
        width: 2px;
        background: var(--bs-border-color, #444);
    }

    .card-body {
        color: #FFF;
        padding: 0.5rem 1rem;
    }

.timeline-item {
    position: relative;
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    padding-left: 52px;
}

.timeline-icon {
    position: absolute;
    left: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #231E64;
    border: 2px solid var(--bs-border-color, #444);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: transparent;
}