/* _content/IQ.Blazor.HigherEducation/Configuration/RequisiteDesigner.razor.rz.scp.css */
.iq-rq-canvas[b-95007q5c9d] {
    background-color: #f8fafc;
    background-image: radial-gradient(#d5dde8 1px, transparent 1px);
    background-size: 18px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: auto;
    min-height: 220px;
    max-height: calc(100vh - 16rem);
    padding: 1.25rem;
}

.iq-rq-branch[b-95007q5c9d] {
    display: flex;
    align-items: center;
}

.iq-rq-children[b-95007q5c9d] {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-left: 22px;
}

/* Line from a node to the vertical spine of its children. */
.iq-rq-children[b-95007q5c9d]::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 50%;
    width: 22px;
    border-top: 2px solid #94a3b8;
}

.iq-rq-child[b-95007q5c9d] {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0.3rem 0 0.3rem 22px;
}

.iq-rq-child[b-95007q5c9d]::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 22px;
    border-top: 2px solid #94a3b8;
}

.iq-rq-child[b-95007q5c9d]::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    border-left: 2px solid #94a3b8;
}

.iq-rq-child:first-child[b-95007q5c9d]::after {
    top: 50%;
}

.iq-rq-child:last-child[b-95007q5c9d]::after {
    bottom: 50%;
}

.iq-rq-children.single > .iq-rq-child[b-95007q5c9d]::after {
    display: none;
}

.iq-rq-node[b-95007q5c9d] {
    position: relative;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(4, 44, 84, 0.08);
    padding: 0.45rem 0.6rem;
    font-size: 0.8rem;
    min-width: 160px;
    max-width: 280px;
    flex-shrink: 0;
}

.iq-rq-node.start[b-95007q5c9d] {
    background: #042c54;
    color: #fff;
    border-color: #042c54;
    border-radius: 1.5rem;
    text-align: center;
    min-width: 120px;
}

.iq-rq-node.start .iq-rq-kind[b-95007q5c9d] {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.iq-rq-node.start .iq-rq-say[b-95007q5c9d] {
    color: #fff;
}

.iq-rq-node.group[b-95007q5c9d] {
    border: 1.5px solid #38bdf8;
    background: #f0f9ff;
    min-width: 190px;
}

.iq-rq-node.group .iq-rq-kind[b-95007q5c9d] {
    background: #e0f2fe;
    color: #0369a1;
}

.iq-rq-node.item[b-95007q5c9d] {
    cursor: grab;
}

.iq-rq-node.item[draggable="false"][b-95007q5c9d] {
    cursor: default;
}

.iq-rq-node.empty[b-95007q5c9d] {
    background: transparent;
    border: 1.5px dashed #94a3b8;
    box-shadow: none;
    color: #64748b;
}

.iq-rq-node.over[b-95007q5c9d] {
    border-color: #0daaea;
    box-shadow: 0 0 0 3px rgba(13, 170, 234, 0.25);
}

.iq-rq-kind[b-95007q5c9d] {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    border-radius: 0.25rem;
    padding: 0.05rem 0.35rem;
    display: inline-block;
    margin-bottom: 0.2rem;
    background: #e2e8f0;
    color: #475569;
}

.iq-rq-say[b-95007q5c9d] {
    color: #1e293b;
    line-height: 1.3;
}

.iq-rq-count[b-95007q5c9d] {
    width: 56px;
}

.iq-rq-plus[b-95007q5c9d] {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid #94a3b8;
    background: #fff;
    color: #475569;
    font-size: 0.9rem;
    line-height: 20px;
    padding: 0;
}

.iq-rq-plus:hover[b-95007q5c9d],
.iq-rq-plus:focus[b-95007q5c9d] {
    background: #0daaea;
    color: #fff;
    border-color: #0daaea;
}

.iq-rq-remove[b-95007q5c9d] {
    position: absolute;
    top: 0.15rem;
    right: 0.3rem;
    border: 0;
    background: none;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    display: none;
}

.iq-rq-node:hover > .iq-rq-remove[b-95007q5c9d] {
    display: block;
}

.iq-rq-remove:hover[b-95007q5c9d] {
    color: #ef4444;
}

.iq-rq-picker-backdrop[b-95007q5c9d] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iq-rq-picker[b-95007q5c9d] {
    width: min(440px, 92vw);
    max-height: 80vh;
    overflow: auto;
}

.iq-rq-picker-list[b-95007q5c9d] {
    max-height: 240px;
    overflow: auto;
}

body.dark-theme .iq-rq-canvas[b-95007q5c9d] {
    background-color: var(--iq-surface-alt);
    background-image: radial-gradient(var(--iq-border) 1px, transparent 1px);
    border-color: var(--iq-border);
}

body.dark-theme .iq-rq-node:not(.start)[b-95007q5c9d] {
    background: var(--iq-surface);
    border-color: var(--iq-border);
}

body.dark-theme .iq-rq-say[b-95007q5c9d] {
    color: inherit;
}
