﻿#sidebar {
    width: 260px;
    min-width: 260px;
    background-color: #12161f;
    border-right: 1px solid #1e2638;
    display: flex;
    flex-direction: column;
    height: 100vh;
    transition: transform 0.3s ease;
    z-index: 100;
}
#claim-list {
    list-style: none;
    overflow-y: auto;
    flex: 1;
    padding: 0;
    margin: 0;
}
#claim-list li {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid #1e2638;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#claim-list li:hover { background-color: #18202e; color: #ffffff; }
#claim-list li.active {
    background-color: rgba(217, 119, 6, 0.15);
    color: #f59e0b;
    border-left: 3px solid #f59e0b;
    font-weight: 600;
}

.claim-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.claim-name-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
}
.claim-name-wrapper img {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    flex-shrink: 0;
}
.claim-name {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.claim-total {
    font-size: 0.7rem;
    font-weight: 400;
    color: #9ca3af;
    padding-left: 4px;
    flex-shrink: 0;
}
.claim-total .value {
    color: #fbbf24;
    font-weight: 600;
}
.claim-total.loading .value {
    color: #64748b;
    animation: pulse 1.2s ease-in-out infinite;
}

.claim-action-buttons {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
    flex-shrink: 0;
}
.claim-info-btn,
.claim-map-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    flex-shrink: 0;
    color: #64748b;
    transition: color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.claim-info-btn:hover { color: #60a5fa; }
.claim-map-btn:hover { color: #f59e0b; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 13, 18, 0.7);
    backdrop-filter: blur(2px);
    z-index: 90;
}

.claim-competitiveness {
    font-size: 0.7rem;
    font-weight: 400;
    color: #9ca3af;
    padding-left: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.comp-value {
    color: #60a5fa;
    font-weight: 600;
}
.comp-history-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0 4px;
    text-decoration: underline dotted;
    transition: color 0.2s;
}
.comp-history-btn:hover {
    color: #f59e0b;
}