/* Contract pill column filter menu — tree-view with checkboxes. */

.saf-menu {
    padding: 8px;
    min-width: 240px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 70vh;
    overflow: auto;
}

.saf-empty {
    font-size: 11px;
    color: #888;
}

.saf-tree {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.saf-config {
    display: flex;
    flex-direction: column;
}

.saf-row {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    padding: 2px 4px;
    border-radius: 3px;
}

.saf-row:hover {
    background: #f0f0f0;
}

.saf-config-row {
    font-weight: 600;
}

.saf-config-label {
    font-size: 12px;
    color: #333;
}

.saf-config-name {
    font-size: 11px;
    color: #888;
    margin-left: 4px;
    font-weight: 400;
}

.saf-statuses {
    display: flex;
    flex-direction: column;
    margin-left: 18px;
    margin-top: 2px;
    gap: 2px;
}

.saf-status-row {
    font-weight: 400;
}

/* Custom 3-state checkbox indicator. */
.saf-cb {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: 1px solid #888;
    border-radius: 2px;
    background: #fff;
    position: relative;
    box-sizing: border-box;
    display: inline-block;
}

.saf-cb-checked {
    background: #0078d4;
    border-color: #0078d4;
}

.saf-cb-checked::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.saf-cb-indeterminate {
    background: #0078d4;
    border-color: #0078d4;
}

.saf-cb-indeterminate::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    top: 5px;
    height: 2px;
    background: #fff;
}
