/* Стилі для РРП статусу */
.rrp-status {
    font-size: 1.2rem;
    cursor: help;
    display: inline-block;
    text-align: center;
    width: 24px;
}

.rrp-status.registered {
    color: #198754;
}

.rrp-status.not-registered {
    color: #ffc107;
}

.rrp-status.unknown {
    color: #6c757d;
}

/* Стилі для таблиці реєстру ділянок */
#registry-container {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    position: relative;
    scrollbar-width: thin;
}

#registry-container::-webkit-scrollbar {
    width: 8px;
}

#registry-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#registry-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#registry-container::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.registry-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

.group-header {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.group-header:hover {
    background-color: rgba(0, 0, 0, 0.075) !important;
}

.status-color-marker {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.registry-name {
    color: #212529;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px; /* Обмежуємо максимальну ширину */
    display: inline-block;
    font-weight: 500;
    font-size: 0.95rem;
}

.toggle-parcels {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border-radius: 4px;
}

.toggle-parcels:hover {
    color: var(--bs-primary);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Анімація для кнопок розгортання/згортання */
.bi-chevron-down,
.bi-chevron-up {
    transition: transform 0.2s ease;
}

.bi-chevron-up {
    transform: rotate(180deg);
}

.parcel-row {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.parcel-row:hover {
    background-color: rgba(13, 110, 253, 0.1) !important;
}

/* Покращення відступів */
.registry-table td,
.registry-table th {
    padding: 0.5rem;
    vertical-align: middle;
}

/* Стилі для бейджів */
.badge {
    font-weight: normal;
    font-size: 0.875em;
    background-color: #f0f0f0;
    color: #666;
}

/* Стилі для заголовка групи */
.group-header strong {
    color: var(--bs-primary);
}

/* Стилі для об'єднаних колонок */
.parcel-info, .owner-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.25rem 0;
}

.parcel-info .cadnum {
    font-weight: 500;
    color: #212529;
}

.owner-info .tenant {
    font-weight: 500;
    color: #212529;
}

.parcel-info small, .owner-info small {
    font-size: 0.85em;
    color: #6c757d;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Покращення відображення тексту */
.text-truncate {
    max-width: 100%;
    display: block;
}
