/* Additive property hierarchy navigator for the TerraCore user-facing sidebar. */
.tc-hierarchy-wrap {
    margin: 12px 10px 4px;
    border-top: 1px solid #eef0f4;
    padding-top: 10px;
}
.tc-hierarchy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 6px;
}
.tc-hierarchy-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #8892a0;
    font-weight: 700;
}
.tc-hierarchy-refresh {
    border: 0;
    background: transparent;
    color: #6b7688;
    cursor: pointer;
    font-size: 11px;
    padding: 2px 4px;
}
.tc-hierarchy-refresh:hover { color: #2952cc; }
.tc-hierarchy-tree { font-size: 12.5px; }
.tc-hierarchy-tree details { margin: 0; }
.tc-hierarchy-tree summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #2a3550;
    padding: 6px 8px;
    border-radius: 5px;
}
.tc-hierarchy-tree summary::-webkit-details-marker { display: none; }
.tc-hierarchy-tree summary::before {
    content: "›";
    display: inline-block;
    width: 10px;
    color: #9aa2b1;
    transform-origin: center;
    transition: transform 120ms ease;
    flex-shrink: 0;
}
.tc-hierarchy-tree details[open] > summary::before { transform: rotate(90deg); }
.tc-hierarchy-tree summary:hover { background: #f4f6fa; }
.tc-hierarchy-estate > summary { font-weight: 700; }
.tc-hierarchy-estate-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-hierarchy-count {
    margin-left: auto;
    min-width: 20px;
    text-align: center;
    border-radius: 10px;
    background: #eef1f6;
    color: #6b7688;
    font-size: 10px;
    padding: 1px 6px;
    font-weight: 600;
}
.tc-hierarchy-estate-body { padding-left: 10px; }
.tc-hierarchy-section > summary { color: #556176; font-weight: 600; }
.tc-hierarchy-branch > summary { color: #33405a; }
.tc-hierarchy-children { padding-left: 12px; }
.tc-hierarchy-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 8px 5px 18px;
    border-radius: 5px;
    color: #42506a;
    text-decoration: none;
    min-width: 0;
}
.tc-hierarchy-link:hover { background: #f0f3f8; color: #1a2f7a; }
.tc-hierarchy-node-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tc-hierarchy-meta {
    font-size: 10px;
    color: #929baa;
    white-space: nowrap;
}
.tc-hierarchy-action { color: #2952cc; font-weight: 600; }
.tc-hierarchy-plot::before, .tc-hierarchy-unit::before {
    content: "•";
    color: #a7afbc;
    margin-right: -10px;
}
.tc-hierarchy-empty, .tc-hierarchy-loading {
    color: #929baa;
    font-size: 11.5px;
    padding: 8px;
    line-height: 1.4;
}
.tc-hierarchy-empty-small { padding: 4px 8px 6px 18px; }

@media (max-width: 860px) {
    .tc-hierarchy-wrap { display: none; }
}
