/* Style specyficzne dla komponentu lokalizacji */
#territory-search {
    width: 100%;
    box-sizing: border-box;
}

#territory-search[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
    color: #495057;
}

.location-container {
    position: relative;
    margin: 15px 0;
}

.location-results {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #d9d9d9;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background-color: white;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.location-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.location-item:last-child {
    border-bottom: none;
}

.location-item:hover, .location-item.active {
    background-color: #f5f5f5;
}

.location-name {
    font-weight: bold;
    display: block;
}

.location-type {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
    margin-top: 4px;
}

.location-path {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 4px;
}

.selected-location {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    display: none;
}

.selected-location-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.selected-location-path {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.selected-location-type {
    display: inline-block;
    background-color: #e9ecef;
    color: #495057;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 5px;
}

.clear-location {
    background-color: #ff4d4f;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.clear-location:hover {
    background-color: #cf1322;
}

.error-message {
    color: #ff4d4f;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Animacja dla błędów */
.error-message.show {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}