/* Dropdown */
#ruleDropdown {
    z-index: 1050;
    display: none;
    min-height: 100%;
    overflow-y: auto;
    background-color: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.375rem;
}

/* Dropdown list item */
#ruleDropdown li {
    cursor: pointer;
}

#ruleDropdown li.text-muted {
    cursor: not-allowed;
}

/* Accordion styling tweaks if needed */
.accordion .accordion-header {
    padding-right: 1rem;
}

.rule-instance-list {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rule-instance-add {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
    cursor: pointer;
}

.rule-instance-card {
    min-width: 140px;
    transition: background 0.2s, color 0.2s;
}

.rule-instance-card .btn {
    visibility: hidden;
}

.rule-instance-card:hover .btn {
    visibility: visible;
}

.rule-instance-card.bg-primary {
    border-color: #0d6efd;
}

.rule-instance-details {
    margin-top: 0.5rem;
}

.tooltip-inner {
    max-width: 400px;
    text-align: left;
    white-space: normal;
    padding: 0.75rem; /* more padding inside the tooltip */
    font-size: 0.9rem; /* slightly bigger text */
}
