body {
    background-color: #f6f8fa;
}

.rq-navbar {
    background: linear-gradient(90deg, #198754 0%, #0d3b66 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.rq-navbar-brand {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    gap: 10px;
}

.rq-brand-mark {
    align-items: center;
    background-color: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.rq-navbar-search-input {
    background-color: #198754;
    border-color: #157347;
    color: #ffffff;
    min-width: 240px;
}

.rq-navbar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.rq-navbar-search-input:focus {
    background-color: #198754;
    border-color: #145c32;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
    color: #ffffff;
}

.rq-page-header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.rq-stat-card .card-body {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.rq-stat-icon {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 1.35rem;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.rq-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
}

.card {
    border-color: #dee2e6;
    border-radius: 8px;
}

.card-header {
    background-color: #ffffff;
    font-weight: 600;
}

.rq-package-card {
    color: inherit;
}

.rq-stat-tile {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem;
}

.rq-empty-icon {
    align-items: center;
    background-color: #e9f5ee;
    border-radius: 8px;
    color: #198754;
    display: inline-flex;
    font-size: 1.75rem;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.tree-view ul {
    list-style: none;
    margin: 0;
    padding-left: 1.35rem;
}

.tree-view ul.tree-root {
    padding-left: 0;
}

.tree-view li.tree-node {
    margin: 0;
    padding: 0.25rem 0 0.25rem 1.15rem;
    position: relative;
}

.tree-view li.tree-node::before {
    border-bottom: 1px solid #b8c2cc;
    border-left: 1px solid #b8c2cc;
    content: "";
    height: 1.15rem;
    left: 0;
    position: absolute;
    top: 0;
    width: 0.85rem;
}

.tree-view li.tree-node::after {
    border-left: 1px solid #b8c2cc;
    bottom: -0.2rem;
    content: "";
    left: 0;
    position: absolute;
    top: 1.15rem;
}

.tree-view li.tree-node:last-child::after {
    display: none;
}

.rq-tree-node-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
}

.rq-tree-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.rq-tree-edit {
    margin-top: 0.5rem;
    max-width: 720px;
}

.node-chip {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.95rem;
    gap: 0.2rem;
    line-height: 1.2;
    max-width: 100%;
    padding: 0.2rem 0.6rem;
}

.structure-chip {
    background-color: #eef4ff;
    border-color: #b6cffd;
}

.requirement-chip {
    background-color: #edf8f2;
    border-color: #b9e5c8;
}

.table th {
    color: #495057;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .rq-navbar-search-input {
        min-width: 0;
    }
}
