/* MapTrax v2.4.1.3 - Context Menu Styles */

.context-menu {
    position: absolute;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 5px 0;
    display: none;
    z-index: 2000;
    min-width: 150px;
}

.context-menu.visible {
    display: block;
}

.context-menu-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
}

.context-menu-item:hover {
    background: #f0f0f0;
}

.context-menu-item.delete {
    color: #dc3545;
}

.context-menu-header {
    padding: 6px 15px;
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #eee;
    margin-bottom: 2px;
}

.context-menu-divider {
    height: 1px;
    background: #eee;
    margin: 3px 0;
}

/* Stacked Tract Picker */
.stacked-picker-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.stacked-picker-backdrop.visible {
    display: flex;
}

.stacked-picker-dialog {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-width: 350px;
    max-width: 550px;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.stacked-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.stacked-picker-header h4 {
    margin: 0;
    font-size: 14px;
}

.stacked-picker-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 0 4px;
}

.stacked-picker-close:hover {
    color: #333;
}

.stacked-picker-list {
    overflow-y: auto;
    padding: 8px;
}

.stacked-picker-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 4px;
    font-size: 12px;
    gap: 10px;
}

.stacked-picker-row:hover {
    background: #f8f9fa;
}

.stacked-picker-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stacked-picker-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.stacked-picker-btn {
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 11px;
    cursor: pointer;
    background: white;
}

.stacked-picker-btn.edit:hover {
    background: #e7f3ff;
    border-color: #0d6efd;
}

.stacked-picker-btn.delete {
    color: #dc3545;
    border-color: #dc3545;
}

.stacked-picker-btn.delete:hover {
    background: #dc3545;
    color: white;
}
