h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* CFLOW-07A CLASSFLOW CHATFLOW BEGIN */
.cf-chatflow-stage,
.cf-chatflow-page {
    min-width: 0;
}

.cf-chatflow-page,
.cf-chat-modal-backdrop {
    --chat-bg: #f5f7fb;
    --chat-surface: #ffffff;
    --chat-surface-soft: #f8fafc;
    --chat-text: #10233f;
    --chat-muted: #617087;
    --chat-primary: #173b73;
    --chat-primary-accent: #315f9c;
    --chat-primary-soft: #eaf1fb;
    --chat-border: #dce4ef;
    --chat-border-strong: #cbd6e5;
    --chat-danger: #9f2d25;
    --chat-warning: #815f00;
    --chat-success: #247247;
    color: var(--chat-text);
}

.cf-chat-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cf-chat-toolbar > div {
    display: grid;
    gap: .15rem;
}

.cf-chat-toolbar-label {
    color: var(--chat-primary-accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.cf-chat-button,
.cf-chat-icon-button {
    border: 1px solid transparent;
    border-radius: .65rem;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.cf-chat-button {
    min-height: 2.55rem;
    padding: .65rem .9rem;
}

.cf-chat-button.primary,
.cf-chat-modal-actions .cf-chat-button.primary {
    background: var(--chat-primary);
    color: #fff;
}

.cf-chat-button.primary:hover,
.cf-chat-button.primary:focus-visible {
    background: var(--chat-primary-accent);
}

.cf-chat-button.secondary {
    border-color: var(--chat-border-strong);
    background: var(--chat-surface);
    color: var(--chat-primary);
}

.cf-chat-button:disabled,
.cf-chat-icon-button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.cf-chat-icon-button {
    display: inline-flex;
    width: 2.45rem;
    height: 2.45rem;
    align-items: center;
    justify-content: center;
    border-color: var(--chat-border);
    background: var(--chat-surface);
    color: var(--chat-primary);
}

.cf-chat-notice {
    margin-bottom: 1rem;
    padding: .75rem .9rem;
    border: 1px solid var(--chat-border);
    border-radius: .65rem;
    background: var(--chat-surface-soft);
}

.cf-chat-notice.error { border-color: #efc1bd; background: #fff1f0; color: #762019; }
.cf-chat-notice.success { border-color: #bee3ca; background: #effaf2; color: #185c37; }
.cf-chat-notice.warning { border-color: #ead99f; background: #fff5d9; color: #664b00; }

.support-shell {
    display: grid;
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    min-height: min(72vh, 54rem);
    overflow: hidden;
    border: 1px solid var(--chat-border);
    border-radius: 1.25rem;
    background: var(--chat-surface);
    box-shadow: 0 6px 18px rgba(16, 35, 63, .06);
}

.support-list-pane {
    min-width: 0;
    border-right: 1px solid var(--chat-border);
    background: var(--chat-surface-soft);
}

.support-pane-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--chat-border);
}

.support-pane-header > div { display: grid; gap: .2rem; }
.support-pane-header span,
.support-conversation-item small,
.support-loading,
.support-selected-files,
.cf-chat-muted { color: var(--chat-muted); }

.support-conversation-list {
    display: grid;
    max-height: 66vh;
    overflow-y: auto;
}

.support-conversation-item {
    display: grid;
    gap: .38rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--chat-border);
    color: inherit;
    text-decoration: none;
    transition: background .15s ease, box-shadow .15s ease;
}

.support-conversation-item:hover,
.support-conversation-item:focus-visible,
.support-conversation-item.active {
    background: var(--chat-primary-soft);
    outline: none;
}

.support-conversation-item.active { box-shadow: inset 3px 0 0 var(--chat-primary-accent); }

.support-conversation-heading,
.support-conversation-meta,
.support-thread-title-row,
.support-message header,
.support-reply-actions,
.support-file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.support-conversation-heading { align-items: flex-start; }
.support-conversation-item strong,
.support-thread-header h2 { min-width: 0; overflow-wrap: anywhere; }
.support-conversation-meta { justify-content: flex-start; color: var(--chat-muted); font-size: .82rem; }

.support-list-unread,
.cf-chat-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--chat-primary);
    color: #fff;
    font-weight: 800;
}

.support-list-unread { min-width: 1.45rem; height: 1.45rem; padding: 0 .35rem; font-size: .72rem; }
.cf-chat-nav-badge { min-width: 1.15rem; height: 1.15rem; padding: 0 .24rem; font-size: .62rem; }

.support-loading { padding: 1.25rem; }
.support-empty { display: grid; gap: .3rem; margin: 1rem; padding: 1rem; color: var(--chat-muted); text-align: center; }
.support-load-more { margin: 1rem; }

.support-thread-pane {
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: var(--chat-surface);
}

.support-thread-header { padding: 1rem 1.15rem; border-bottom: 1px solid var(--chat-border); background: var(--chat-surface); }
.support-thread-title-row { align-items: flex-start; }
.support-thread-title-row h2 { margin: .15rem 0 .25rem; color: var(--chat-text); }
.support-thread-kicker { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .35rem; }
.support-thread-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.support-mobile-back { display: none; }

.cf-chat-chip,
.cf-chat-status {
    display: inline-flex;
    align-items: center;
    min-height: 1.65rem;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 750;
}

.cf-chat-chip { background: var(--chat-primary-soft); color: var(--chat-primary); }
.cf-chat-status.open { background: #fff5d9; color: #6d5000; }
.cf-chat-status.closed { background: #eef1f5; color: #526075; }

.support-messages {
    display: flex;
    min-height: 18rem;
    max-height: 56vh;
    flex: 1 1 auto;
    flex-direction: column;
    gap: .8rem;
    overflow-y: auto;
    padding: 1rem;
    background: var(--chat-surface-soft);
}

.support-message {
    align-self: flex-start;
    width: min(82%, 44rem);
    padding: .78rem .92rem;
    border: 1px solid var(--chat-border);
    border-radius: .8rem .8rem .8rem .3rem;
    background: var(--chat-surface);
    box-shadow: 0 2px 8px rgba(16, 35, 63, .04);
}

.support-message.user {
    align-self: flex-end;
    border-color: #c8daef;
    border-radius: .8rem .8rem .3rem .8rem;
    background: var(--chat-primary-soft);
}

.support-message.system {
    align-self: center;
    width: min(92%, 38rem);
    background: #f1f4f8;
    color: var(--chat-muted);
    text-align: center;
}

.support-message header { color: var(--chat-muted); font-size: .8rem; }
.support-message header strong { color: var(--chat-text); }
.support-message p { margin: .55rem 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }

.support-attachments { display: grid; gap: .4rem; margin-top: .7rem; }
.support-attachments a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem;
    padding: .5rem .6rem;
    border: 1px solid var(--chat-border);
    border-radius: .65rem;
    background: rgba(255,255,255,.75);
    color: inherit;
    text-decoration: none;
}

.support-reply-panel { display: grid; gap: .8rem; padding: 1rem 1.15rem; border-top: 1px solid var(--chat-border); background: var(--chat-surface); }
.cf-chat-field,
.support-file-picker { display: grid; gap: .35rem; min-width: 0; }
.cf-chat-field > span,
.support-file-picker > span,
.cf-chat-form-grid label > span { color: var(--chat-muted); font-size: .82rem; font-weight: 750; }
.cf-chat-field textarea,
.cf-chat-form-grid textarea,
.cf-chat-form-grid input,
.cf-chat-form-grid select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--chat-border-strong);
    border-radius: .65rem;
    background: var(--chat-surface);
    color: var(--chat-text);
    padding: .7rem .75rem;
    font: inherit;
}

.support-file-row { align-items: flex-end; }
.support-selected-files { font-size: .88rem; overflow-wrap: anywhere; }
.support-older { align-self: center; }
.support-thread-empty { display: grid; place-items: center; align-content: center; gap: .45rem; min-height: 28rem; padding: 2rem 1rem; color: var(--chat-muted); text-align: center; }
.support-thread-empty .material-symbols-rounded { font-size: 2rem; color: var(--chat-primary-accent); }
.support-closed-notice { margin: 1rem; }

.cf-chat-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(16, 35, 63, .48);
}

.cf-chat-modal {
    width: min(100%, 42rem);
    max-height: min(90vh, 52rem);
    overflow-y: auto;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 20px 52px rgba(16,35,63,.18);
    padding: 1.1rem;
}

.cf-chat-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cf-chat-modal-header h2 { margin: .2rem 0; color: var(--chat-text); }
.cf-chat-modal-header p { margin: 0; color: var(--chat-muted); }
.cf-chat-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; }
.cf-chat-form-grid label { display: grid; gap: .35rem; }
.cf-chat-form-grid .full { grid-column: 1 / -1; }
.cf-chat-modal-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1rem; }

.cf-chat-broadcast-note {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    min-width: 0;
    padding: .7rem .8rem;
    border: 1px solid var(--chat-border);
    border-radius: .7rem;
    background: var(--chat-primary-soft);
    color: var(--chat-muted);
    font-size: .86rem;
    line-height: 1.45;
}

.cf-chat-broadcast-note .material-symbols-rounded {
    flex: 0 0 auto;
    color: var(--chat-primary);
}

.cf-chat-form-grid .cf-chat-notice.full,
.cf-chat-form-grid .cf-chat-broadcast-note.full {
    grid-column: 1 / -1;
}

@media (max-width: 760px) {
    .cf-chat-toolbar { align-items: stretch; flex-direction: column; }
    .cf-chat-toolbar .cf-chat-button { width: 100%; }
    .support-shell { grid-template-columns: minmax(0, 1fr); min-height: 70vh; }
    .support-list-pane { border-right: 0; }
    .support-shell.thread-open .support-list-pane { display: none; }
    .support-shell.list-only .support-thread-pane { display: none; }
    .support-mobile-back { display: inline-flex; margin-bottom: .75rem; }
    .support-mobile-back a { display: inline-flex; align-items: center; gap: .25rem; color: var(--chat-primary); font-weight: 750; text-decoration: none; }
    .support-thread-title-row,
    .support-file-row { align-items: stretch; flex-direction: column; }
    .support-message { width: 94%; }
    .support-messages { max-height: none; padding: .75rem; }
    .support-thread-header,
    .support-reply-panel { padding-right: .85rem; padding-left: .85rem; }
    .support-thread-actions .cf-chat-button,
    .support-reply-actions .cf-chat-button { width: 100%; }
    .cf-chat-form-grid { grid-template-columns: 1fr; }
    .cf-chat-form-grid .full { grid-column: auto; }
    .cf-chat-modal-actions { display: grid; grid-template-columns: 1fr; }
}
/* CFLOW-07A CLASSFLOW CHATFLOW END */
