/* ==================== Core row + hierarchy ==================== */
.blsa-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .4rem;
    border-bottom: 1px solid #ccc;
    margin: 10px 0;
    font-weight: bold;
    cursor: default;
    /* only the expander is clickable */
}

.blsa-expander {
    width: 1rem;
    height: 1rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex: 0 0 1rem;
}

/* caret */
.blsa-expander::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: .55rem;
    height: .55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    opacity: .7;
}

.blsa-toggle.is-open .blsa-expander::before {
    transform: rotate(45deg);
}

.blsa-title {
    font-weight: 600;
}

.blsa-edit {
    margin-left: auto;
    font-weight: 300;
    text-decoration: none;
    font-size: 14px;
    float: none;
    /* override any floats */
}

.blsa-children {
    margin-left: 20px;
    display: none;
}

/* Deliverables */
.deliverable-row {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: .25rem 0;
}

.score-dot {
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    display: inline-block;
    flex: 0 0 .65rem;
}

/* If your getColorForValue() returns score-xxx, map them here. Remove/adjust if you already define them elsewhere */
.score-red {
    background-color: #c50f0f;
}

.score-orange {
    background-color: #e5b400;
}

.score-green {
    background-color: #1f9d55;
}

/* ========== Filters (search + controls) ========== */
.blsa-hierarchy-filters {
    text-align: right;
}

#blsa-filter-form.blsa-filter {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin: .5rem 0 1rem;
}

#blsa-filter {
    padding: 10px 35px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#blsa-clear-filter {
    padding: 8px 15px;
    border: 1px solid #ccc;
    background: #eee;
    border-radius: 4px;
    cursor: pointer;
}

#blsa-expand-all,
#blsa-collapse-all {
    padding: 10px 35px;
}

/* ==================== Keep your existing admin styles ==================== */
#message.updated,
.notice.notice-success {
    background-color: #dff0d8;
    border-color: #d6e9c6;
    color: #3c763d;
    padding: 10px;
    margin-bottom: 20px;
}

#message p,
.notice.notice-success p {
    margin: 0;
    padding: 0;
}

#edit_profile {
    cursor: pointer;
    letter-spacing: 1px;
    display: inline-block;
    font-size: 13px;
    color: #fff;
    background-image: none;
    background-color: #436eb3;
    border: 1px solid #436eb3;
    padding: 10px 35px;
    text-transform: uppercase;
    text-decoration: none;
}

#sidebar {
    margin-bottom: 30px;
}

.sidebar-menu a {
    width: 100%;
    display: block;
    padding: 10px;
    background-color: #ccc;
    margin-bottom: 2px;
    text-decoration: none;
}

.sidebar-menu i {
    width: 30px;
}

.acf-field {
    box-sizing: border-box;
    padding: 0px;
    margin: 0 0 5px 0 !important;
}

.acf-field-684c1234b609c {
    display: none;
}

.acf-deliverable-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.acf-field-number,
.acf-field-radio {
    flex: 1 1 10%;
    min-width: 100px;
}

.acf-field-number .acf-label {
    min-height: 30px;
}

.acf-field-taxonomy {
    flex: 1 1 30%;
    min-width: 200px;
}

.acf-field-group {
    width: 100%;
}

.acf-field-textarea,
.acf-field--post-title {
    flex: 1 1 100%;
}

.acf-label label {
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
}

.acf-input input,
.acf-input textarea,
.acf-input select {
    padding: 8px !important;
    font-size: 14px !important;
    border: 1px solid #666 !important;
    border-radius: 4px !important;
}

.select2-container.-acf .select2-selection {
    border-color: #666 !important;
}

.acf-field-number .acf-label {
    font-size: 10px;
    font-weight: 300;
    word-wrap: break-word;
}

.blsa-edit-form input[type=text],
.blsa-edit-form textarea,
.blsa-edit-form select {
    width: 100%;
    padding: 8px !important;
    font-size: 14px !important;
    border: 1px solid #666 !important;
    border-radius: 4px !important;
}

.wppb-user-forms input[type=text],
.wppb-user-forms textarea,
.wppb-user-forms select {
    width: 100%;
    padding: 8px !important;
    font-size: 14px !important;
    border: 1px solid #666 !important;
    border-radius: 4px !important;
}

/* Legacy rule that hid FA dots — harmless now, left for completeness */
.blsa-children ul {
    list-style-type: none;
    padding-left: 0;
}

.blsa-children ul li i.fa {
    color: transparent !important;
}

/* Responsive tweaks */
@media (max-width: 768px) {

    .acf-field-number,
    .acf-field-radio,
    .acf-field-taxonomy {
        flex: 1 1 100%;
    }

    .blsa-toggle {
        flex-wrap: wrap;
    }

    .blsa-edit {
        margin-left: 0;
    }
}