.navbar-brand {
    font-size: 1.75rem!important;
    font-family: 'IM Fell DW Pica', serif;
}

h6 {
    font-size: 1.25rem!important;
    font-family: 'IM Fell DW Pica', serif;
}

.navbar {
    font-size: 1.5rem!important;
}

.navbar-brand img {
    width: 40px !important;
    height: 40px !important;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

#appLayout {
    min-height: 0;
}

@media (min-width: 768px) {
    #sidebar {
        width: 600px;
        min-width: 300px;
        height: 100%;
        display: flex !important;
        flex-direction: column;
        overflow: hidden;
    }

    #sidebar .offcanvas-body {
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    #sidebar .offcanvas-body > .flex-grow-1 {
        min-height: 0;
    }
}

#view-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    min-width: 0;
}

#tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.88);
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: auto;
    display: none;
    z-index: 9999;
    max-width: min(420px, calc(100vw - 16px));
    overflow-y: auto;
    max-height: calc(100vh - 16px);
}

#map-banner {
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.map-banner-overlay {
    padding: 2rem 1rem;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.55), transparent);
}

.form-check-label {
    user-select: none
}

.filters img {
    width: 24px;
    height: 24px;
}

.ts-dropdown .ts-dropdown-content {
    max-height: 40vh;
}

.ts-control .item {
    display: none !important;
}
.ts-control .ts-summary {
    align-self: center;
    padding: 0 2px;
    pointer-events: none;
    white-space: nowrap;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .ts-control,
[data-bs-theme="dark"] .ts-control input {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border-color: var(--bs-border-color);
}
[data-bs-theme="dark"] .ts-wrapper.focus .ts-control {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
[data-bs-theme="dark"] .ts-dropdown {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}
[data-bs-theme="dark"] .ts-dropdown .option,
[data-bs-theme="dark"] .ts-dropdown .optgroup-header {
    color: var(--bs-body-color);
}
[data-bs-theme="dark"] .ts-dropdown .option.active {
    background-color: var(--bs-primary);
    color: #fff;
}
[data-bs-theme="dark"] .ts-dropdown .option.selected {
    background-color: var(--bs-secondary-bg);
}
[data-bs-theme="dark"] .ts-dropdown .option.selected.active {
    background-color: var(--bs-primary);
    color: #fff;
}

:root {
    --uncommon: #7CFF90;
    --rare: #4DC7FF;
    --epic: #DE74FF;
    --legendary: #FFBF7C;
    --artifact: #ff7c7c;
}

.Rarity.Common {
    color: initial;
}
.Rarity.Uncommon {
    color: var(--uncommon);
}
.Rarity.Rare {
    color: var(--rare);
}
.Rarity.Epic {
    color: var(--epic);
}
.Rarity.Legendary {
    color: var(--legendary);
}
.Rarity.Artifact {
    color: var(--artifact);
}

.marker-info-table td {
    vertical-align: middle;
}
.marker-info-table {
    width: 100%;
}
.marker-info-table td.loot-subtable {
    padding: 0 0 0 20px;
}

.marker-tooltip.has-items {
    width: min(404px, calc(100vw - 32px));
}
.marker-tooltip.has-items .marker-info-table {
    table-layout: fixed;
}
.marker-tooltip.has-items .marker-info-table td:first-child:not([colspan]) {
    width: 33%;
}

.loot-row {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}
.marker-tooltip.long-list td[data-item] > .loot-row {
    content-visibility: auto;
    contain-intrinsic-size: auto 38px;
}
.loot-percent {
    flex: 0 0 auto;
    width: 58px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
}
.loot-item {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.loot-value {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.coin + .coin {
    margin-left: 3px;
}
.coin.gold {
    color: #ffd257;
}
.coin.silver {
    color: #cfd6dd;
}
.coin.copper {
    color: #e08a5b;
}

.item img {
    vertical-align: middle;
    margin-right: 5px;
    background-color: black;
    border-color: transparent;
    border-width: 2px;
    border-style: solid;
    padding: 2px;
    filter: saturate(1.5);
}
.item .name {
    font-weight: bold;
    text-shadow: 0 0 25px black;
}

.item.Rarity.Uncommon img {
    border-color: var(--uncommon);
    box-shadow: 0 0 3px var(--uncommon);
}
.item.Rarity.Rare img {
    border-color: var(--rare);
    box-shadow: 0 0 3px var(--rare);
}
.item.Rarity.Epic img {
    border-color: var(--epic);
    box-shadow: 0 0 3px var(--epic);
}
.item.Rarity.Legendary img {
    border-color: var(--legendary);
    box-shadow: 0 0 3px var(--legendary);
}
.item.Rarity.Artifact img {
    border-color: var(--artifact);
    box-shadow: 0 0 3px var(--artifact);
}

.ts-dropdown-content .option {
    display: flex;
}

.ts-dropdown-content .option .text {
    text-wrap: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

}
.ts-dropdown-content .option small {
    text-wrap: nowrap;
    margin-left: auto;
}
