/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-4ufmmj38um],
.components-reconnect-repeated-attempt-visible[b-4ufmmj38um],
.components-reconnect-failed-visible[b-4ufmmj38um],
.components-pause-visible[b-4ufmmj38um],
.components-resume-failed-visible[b-4ufmmj38um],
.components-rejoining-animation[b-4ufmmj38um] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-4ufmmj38um],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-4ufmmj38um],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-4ufmmj38um],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-4ufmmj38um],
#components-reconnect-modal.components-reconnect-retrying[b-4ufmmj38um],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-4ufmmj38um],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-4ufmmj38um],
#components-reconnect-modal.components-reconnect-failed[b-4ufmmj38um],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-4ufmmj38um] {
    display: block;
}


#components-reconnect-modal[b-4ufmmj38um] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-4ufmmj38um 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-4ufmmj38um 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-4ufmmj38um 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-4ufmmj38um]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-4ufmmj38um 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-4ufmmj38um {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-4ufmmj38um {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-4ufmmj38um {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-4ufmmj38um] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-4ufmmj38um] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-4ufmmj38um] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-4ufmmj38um] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-4ufmmj38um] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-4ufmmj38um] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-4ufmmj38um] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-4ufmmj38um 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-4ufmmj38um] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-4ufmmj38um {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Private/WorkPlans/Structure/NationalPlanStructureEditor.razor.rz.scp.css */
/* Structure tab: an outline that reads like NDMA's work plan. One accent per level, matching the
   legend: key activity (teal, the strategic plan's), national activity (cyan), output (indigo),
   indicator (slate). Colours come from the palette so dark mode follows. */

.kw-st[b-q1hebdpxa1] { display: flex; flex-direction: column; gap: 10px; }

.kw-st-toolbar[b-q1hebdpxa1] { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
[b-q1hebdpxa1] .kw-st-search { max-width: 360px; }

.kw-st-summary[b-q1hebdpxa1] { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: .82rem; color: var(--mud-palette-text-secondary); }
.kw-st-legend[b-q1hebdpxa1] { display: inline-flex; gap: 6px; align-items: center; margin-left: auto; font-size: .74rem; }
.kw-st-hint[b-q1hebdpxa1] { color: var(--mud-palette-text-secondary); }

.kw-st-dot[b-q1hebdpxa1] { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; margin-left: 6px; }
.kw-st-dot.ka[b-q1hebdpxa1] { background: #14b8a6; }
.kw-st-dot.na[b-q1hebdpxa1] { background: #06b6d4; }
.kw-st-dot.out[b-q1hebdpxa1] { background: #6366f1; }
.kw-st-dot.ind[b-q1hebdpxa1] { background: #64748b; }

.kw-st-eyebrow[b-q1hebdpxa1] { display: block; font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.kw-st-caption[b-q1hebdpxa1] { font-size: .72rem; color: var(--mud-palette-text-secondary); }
.kw-st-meta[b-q1hebdpxa1] { font-size: .74rem; color: var(--mud-palette-text-secondary); white-space: nowrap; }
.kw-st-custom[b-q1hebdpxa1] { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; font-size: .64rem; font-weight: 700;
                background: rgba(245, 158, 11, .16); color: #b45309; text-transform: uppercase; letter-spacing: .04em; }
.kw-st-pill[b-q1hebdpxa1] { font-size: .72rem; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--mud-palette-lines-default); }

/* strategic objective */
.kw-st-so[b-q1hebdpxa1] { border: 1px solid var(--mud-palette-lines-default); border-radius: 12px; overflow: hidden; background: var(--mud-palette-surface); }
.kw-st-so-head[b-q1hebdpxa1] { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; padding: 10px 14px;
                 background: linear-gradient(90deg, rgba(6, 182, 212, .14), rgba(6, 182, 212, .02)); border-bottom: 1px solid var(--mud-palette-lines-default); }
.kw-st-so-title[b-q1hebdpxa1] { font-weight: 700; }
.kw-st-so-meta[b-q1hebdpxa1] { font-size: .76rem; color: var(--mud-palette-text-secondary); }
.kw-st-unused .kw-st-so-head[b-q1hebdpxa1] { background: linear-gradient(90deg, rgba(100, 116, 139, .14), rgba(100, 116, 139, .02)); }

.kw-st-strategy[b-q1hebdpxa1] { padding: 8px 14px 4px; font-size: .84rem; font-weight: 600; color: var(--mud-palette-text-secondary); }
.kw-st-strategy .kw-st-eyebrow[b-q1hebdpxa1] { display: inline; margin-right: 6px; }

/* key activity */
.kw-st-ka[b-q1hebdpxa1] { margin: 4px 10px 10px; border-left: 3px solid #14b8a6; border-radius: 6px; background: var(--mud-palette-background-gray); }
.kw-st-ka-row[b-q1hebdpxa1] { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 4px; flex-wrap: wrap; }
.kw-st-unused .kw-st-ka-row[b-q1hebdpxa1] { padding: 6px 14px; border-top: 1px dashed var(--mud-palette-lines-default); }
.kw-st-ka-text[b-q1hebdpxa1] { min-width: 0; flex: 0 1 auto; }
.kw-st-ka-label[b-q1hebdpxa1] { font-weight: 600; }

/* national activity */
.kw-st-na[b-q1hebdpxa1] { margin: 0 10px 8px 28px; padding: 6px 8px 8px; border-left: 3px solid #06b6d4; border-radius: 6px; background: var(--mud-palette-surface); }
.kw-st-na-row[b-q1hebdpxa1] { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kw-st-na-text[b-q1hebdpxa1] { flex: 1 1 260px; min-width: 0; }
.kw-st-no[b-q1hebdpxa1] { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 22px; padding: 0 6px;
            border-radius: 11px; font-size: .74rem; font-weight: 700; color: #fff; background: #06b6d4; }

.kw-st-empty[b-q1hebdpxa1] { margin: 6px 0 0 34px; font-size: .78rem; color: var(--mud-palette-text-secondary); font-style: italic; }

/* output */
.kw-st-out[b-q1hebdpxa1] { margin: 6px 0 0 22px; padding-left: 10px; border-left: 2px solid rgba(99, 102, 241, .45); }
.kw-st-out-row[b-q1hebdpxa1] { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kw-st-out-text[b-q1hebdpxa1] { min-width: 0; flex: 1 1 240px; font-size: .9rem; }

/* indicator */
.kw-st-ind[b-q1hebdpxa1] { margin: 4px 0 0 16px; padding: 4px 6px; border-radius: 6px; }
.kw-st-ind:hover[b-q1hebdpxa1] { background: var(--mud-palette-action-default-hover); }
.kw-st-ind-row[b-q1hebdpxa1] { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kw-st-ind-text[b-q1hebdpxa1] { display: flex; flex-direction: column; flex: 1 1 240px; min-width: 0; font-size: .86rem; }
.kw-st-figs[b-q1hebdpxa1] { display: flex; gap: 12px; font-size: .76rem; color: var(--mud-palette-text-secondary); white-space: nowrap; }
.kw-st-figs b[b-q1hebdpxa1] { color: var(--mud-palette-text-primary); }
.kw-st-select[b-q1hebdpxa1] { font: inherit; font-size: .78rem; padding: 2px 4px; border-radius: 6px; border: 1px solid var(--mud-palette-lines-default);
                background: var(--mud-palette-surface); color: var(--mud-palette-text-primary); }

/* budget lines */
.kw-st-lines[b-q1hebdpxa1] { margin: 4px 0 2px 24px; padding: 4px 8px; border-radius: 6px; background: var(--mud-palette-background-gray); }
.kw-st-line[b-q1hebdpxa1] { display: flex; align-items: center; gap: 12px; padding: 2px 0; font-size: .78rem; flex-wrap: wrap; }
.kw-st-line + .kw-st-line[b-q1hebdpxa1] { border-top: 1px dashed var(--mud-palette-lines-default); }
.kw-st-line-name[b-q1hebdpxa1] { font-weight: 600; }

@media (max-width: 640px) {
    .kw-st-na[b-q1hebdpxa1] { margin-left: 10px; }
    .kw-st-out[b-q1hebdpxa1] { margin-left: 8px; }
    .kw-st-ind[b-q1hebdpxa1] { margin-left: 4px; }
    .kw-st-legend[b-q1hebdpxa1] { margin-left: 0; }
}

/* A balance brought forward: last year's unspent money carried into this year — orange wherever a work
   plan shows budget lines (the grids, the row editor and every Excel download use the same colours). */
.kw-st-line.bbf[b-q1hebdpxa1] { background: #FCE4D6; border-left: 3px solid #C65911; }
.kw-st-bbf[b-q1hebdpxa1] { border: 1px dashed #C65911; background: transparent; color: #C65911; border-radius: 10px; padding: 0 8px;
             font: inherit; font-size: .7rem; font-weight: 600; cursor: pointer; white-space: nowrap; line-height: 1.6; }
.kw-st-bbf.on[b-q1hebdpxa1] { border-style: solid; background: #C65911; color: #fff; }
.kw-st-bbf:disabled[b-q1hebdpxa1] { opacity: .5; cursor: default; }
span.kw-st-bbf[b-q1hebdpxa1] { cursor: default; }
.kw-st-addline[b-q1hebdpxa1] { display: flex; flex-wrap: wrap; gap: 4px; }
[b-q1hebdpxa1] .kw-st-addbbf { color: #C65911; }
