/* Saját téma – purple primary */
:root {
    --bs-primary: #6020a8;
    --bs-primary-rgb: 96, 32, 168;
    --bs-primary-hover: #5e37a6;
    --bs-primary-hover-rgb: 94, 55, 166;
    --bs-primary-active: #542f98;
    --bs-primary-active-rgb: 84, 47, 152;
    --bs-primary-border: #5a34a0;
    --bs-primary-disabled: #b69dd9;
    --bs-primary-disabled-rgb: 182, 157, 217;

    --bs-link-color: var(--bs-primary);
    --bs-link-color-rgb: var(--bs-primary-rgb);
    --bs-link-hover-color: var(--bs-primary-hover);

    --bs-pagination-color: var(--bs-primary);
    --bs-pagination-hover-color: var(--bs-primary-hover);
    --bs-pagination-focus-color: var(--bs-primary-active);
    --bs-pagination-active-bg: var(--bs-primary);
    --bs-pagination-active-border-color: var(--bs-primary);
    --bs-pagination-active-color: #fff;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: var(--bs-primary-hover);
    --bs-btn-hover-border-color: var(--bs-primary-border);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-active-bg: var(--bs-primary-active);
    --bs-btn-active-border-color: var(--bs-primary-active);
    --bs-btn-disabled-bg: var(--bs-primary-disabled);
    --bs-btn-disabled-border-color: var(--bs-primary-disabled);
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-primary-active);
    --bs-btn-active-border-color: var(--bs-primary-active);
    --bs-btn-disabled-color: var(--bs-primary-disabled);
    --bs-btn-disabled-border-color: var(--bs-primary-disabled);
}

.text-primary {
    color: var(--bs-primary) !important;
}
.bg-primary {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}
.border-primary {
    border-color: var(--bs-primary) !important;
}

.page-item.active .page-link {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-pagination-active-color) !important;
}
/* Saját téma – purple primary vége */

.chip {
    display:inline-flex;
    align-items:center;
    gap:.5rem;
    padding:.25rem .5rem;
    border:1px solid rgba(0,0,0,.1);
    border-radius:9999px;
    background: var(--bs-light-bg-subtle, #f8f9fa);
}
.chip .remove {
    cursor:pointer;
}
.inline-rename{
    display:inline-block;
    min-width:220px;
    max-width:420px;
    padding:.125rem .375rem;
}
.inline-rename-toolbar .btn, .inline-create-wrap .btn {
    padding: 0.2rem .4rem;
    line-height:1.2
}
.tree {
    position: relative;
    padding-left: 0;
}
.tree .tree-item {
    position: relative;
}
.tree .tree-row {
    padding: .4rem .6rem;
    border-radius: .5rem;
    transition: background-color .15s ease;
}
.tree .tree-row:hover {
    background-color: rgba(0,0,0,.03);
}
.tree .toggle {
    width: 28px;
    height: 28px;
    line-height: 1;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    background: var(--bs-body-bg);
}
.tree .placeholder-toggle {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items:center;
    justify-content:center;
    opacity:.25;
}
.tree .chev {
    display:inline-block;
    transition: transform .15s ease;
    min-width: 28px;
}
.tree [aria-expanded="false"] .chev {
    transform: rotate(-90deg);
}
.tree .tree-children {
    margin-left: 1.25rem;
    padding-left: .75rem;
    border-left: 1px dashed rgba(0,0,0,.15);
}
.tree .tree-item::before {
    content: "";
    position: absolute;
    left: .5rem;
    top: 1.35rem;
    width: .75rem;
    height: 0;
    border-top: 1px dashed rgba(0,0,0,.15);
}
.tree > .tree-item::before {
    display: none;
}

.tree-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media screen and (max-width: 991px) {
    .tree-responsive > .tree:first-of-type {
        width: fit-content;
    }
}

.tree .tree-row{
    white-space: nowrap;
}

.tree .mapping-panel{
    white-space: normal;
}

.badge.text-bg-light {
    background-color: var(--bs-body-bg)!important;
}
.btn-light-subtle {
    background: var(--bs-light-bg-subtle, #f8f9fa);
}
