/* Breadcrumb styles */
.breadcrumb-container {
    padding: 10px 20px 0 20px;
    font-size: 14px;
    color: var(--text-muted);
    /* Prevent the container itself from expanding beyond its parent */
    max-width: 100%;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 100%;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* Allow children to shrink properly when max-width applies */
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden; /* Necessary to allow children to truncate */
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\f105"; /* FontAwesome angle-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    padding: 0 10px;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--primary-action);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.breadcrumb-item a:hover {
    color: var(--primary-action-hover);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-charcoal);
    font-weight: 500;
    flex: 1 1 0%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
