﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #227c1d !important;
    border-color: #50944c !important;
}

    .btn-primary:hover, .btn-primary:focus, .btn-primary:active .btn-primary:focus-visible {
        background-color: #50944c !important;
        border-color: #50944c !important;
        outline: none !important;
        box-shadow: 0.5px 0.5px 0.5px 0.5px #227c1d !important;
    }

.btn:focus .btn:focus:focus-visible {
    outline: none !important;
    box-shadow: 0.5px 0.5px 0.5px 0.5px #227c1d !important;
}

    .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.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."
    }

.custom-button {
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    border: none; /* Remove default border */
    padding: 10px 20px; /* Padding for the button */
    font-size: 16px; /* Font size */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease; /* Smooth transition for background color */
}

    .custom-button:hover {
        background-color: #0056b3; /* Darker blue on hover */
    }

    .custom-button:active {
        background-color: #004085; /* Even darker blue on click */
    }


/* Accordion Header */
.accordion-button {
    background-color: #f8f9fa; /* Light gray background */
    color: #333; /* Dark text color */
    font-weight: bold; /* Bold text */
    border: 1px solid #ddd; /* Light border */
    border-radius: 5px; /* Rounded corners */
    padding: 10px; /* Padding */
    margin-bottom: 5px; /* Space between headers */
    transition: background-color 0.3s ease; /* Smooth background color transition */
}

    .accordion-button:hover {
        background-color: #e2e6ea; /* Slightly darker background on hover */
    }

    .accordion-button:focus {
        box-shadow: none; /* Remove default focus shadow */
    }

/* Accordion Body */
.accordion-body {
    background-color: #fff; /* White background */
    border: 1px solid #ddd; /* Light border */
    border-radius: 5px; /* Rounded corners */
    padding: 15px; /* Padding */
    margin-top: -1px; /* Remove gap between header and body */
}

/* Accordion Item */
.accordion-item {
    border: none; /* Remove default border */
}

.map-button {
    background-color: #007bff; /* Bootstrap primary color */
    color: #fff; /* White text */
    padding: 5px 10px; /* Padding */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s ease; /* Smooth background color transition */
}

    .map-button:hover {
        background-color: #0056b3; /* Darker primary color on hover */
    }

.k-button-text {
    color: blue;
}

.k-button-flat-primary {
    color: #0000FF;
}

.k-button-text {
    color: #0000FF;
}

.k-button {
    color: #0000FF;
}

.k-button-solid {
    color: #0000FF;
}

.k-rounded-md {
    color: #0000FF;
}

.k-button-md {
    color: #0000FF;
}

.k-button-solid-base {
    color: #0000FF;
}

.k-icon-button {
    color: #0000FF;
}
.cs-container {
    background-color: #eee;
}
@media (max-width: 768px) {
    .telerik-grid {
        display: none !important;
    }
}

.form-card {
    background-color: #bfc9dd78 !important;
}

.textarea-resize-control {
    resize: none;
    overflow: auto;
    height: auto !important;
}


.bg-form {
    background: #4b84971f !important;
}

.form-title {
    color: #227c1d;
}

.demo-page-content {
    overflow-x: hidden !important;
}

.event-box {
    padding-left: 14px;
}

.form-check-input:checked {
    background-color: black !important;
    border-color: black !important;
}

.valid.modified:not([type=checkbox]) {
    outline: none;
}

.event-font {
    font-size: 17.5px;
}

.text-danger {
    color: #cb0202 !important;
    font-size: 16px;
}

.container {
    margin: 0px auto 0px auto !important;
}

.cs-container {
    background-color: #eee;
}

@media (max-width: 768px) {
    .telerik-grid {
        display: none !important;
    }
}

.bg-form {
    background: #4b84971f !important;
}

.demo-page-content {
    overflow-x: hidden !important;
}

.textarea-resize-control {
    resize: none;
    overflow: auto;
    height: auto !important;
}

.container {
    padding: 1rem !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}

.row-flex {
    display: flex;
}

.line-break {
    white-space: normal;
}

.header-title {
    color: #115ba4;
    font-size: 2rem;
    font-weight: bold;
    text-align: left;
    padding-bottom: 2px;
    white-space: nowrap;
}

.remove-button {
    margin-left: auto;
    background-color: #dc3545;
    color: white;
    /*padding: 10px 20px;*/
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    top: 23px;
    position: relative;
}

.add-services {
    margin-left: auto;
    margin-left: auto;
    background-color: #15588e;
    color: white;
    /* padding: 10px 20px; */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.additional-box {
    background-color: #e0e0e0;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    /* box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.2), inset -5px -5px 10px rgba(255, 255, 255, 0.7); */
    /* display: flex
; */
    /* justify-content: center; */
    /* align-items: center; */
    font-size: 13px;
    /* color: #555; */
    /* text-transform: uppercase; */
    font-weight: bold;
}

.submit-button {
    margin-left: auto;
    margin-left: auto;
    background-color: #227c1d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.phone-number-text {
    display: block !important;
    width: 100% !important;
    padding: .375rem .75rem !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: var(--bs-body-color) !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-color: var(--bs-body-bg) !important;
    background-clip: padding-box !important;
    border-radius: var(--bs-border-radius) !important;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
}


.custom-edit-button-provider {
    background-color: #1472cb !important;
    color: white !important;
    border: none !important;
    /* padding: 10px 20px !important;*/
    border-radius: 5px !important;
    cursor: pointer !important;
}

.custom-button-provider {
    background-color: #1472cb !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    cursor: pointer !important;
}

.custom-button-custom-button-provider:hover {
    /*background-color: #45a049 !important;*/
}

.k-button-text-provider {
    color: #fff;
}

.right-align-provider {
    text-align: right !important;
}

/* Client intake form */
/* ---------------------------------------------------
           Client intake form styles
        --------------------------------------------------- */
    .client-intake-form * {
        box-sizing: border-box;
    }

    .client-intake-form .required::after {
        content: " *";
        color: #dc3545;
        font-weight: 600;
    }

    .client-intake-form .page-progress-header {
        background: #fff;
        border-bottom: 1px solid #d7e3f0;
        box-shadow: 0 1px 2px rgba(13, 79, 144, 0.06);
    }

    .client-intake-form .page-progress-header .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .client-intake-form .page-progress-title-wrap {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .client-intake-form .page-progress-title-icon {
        width: 2.45rem;
        height: 2.45rem;
        border: 1.5px solid #0D4F90;
        border-radius: 8px;
        background: #eef6ff;
        color: #0D4F90;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        flex: 0 0 auto;
    }

    .client-intake-form .page-progress-title {
        margin: 0;
        color: #0D4F90;
        font-size: 1.65rem;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0;
    }

    .client-intake-form .signature-surface {
        border: 2px dashed #0D4F90;
        border-radius: 12px;
        background: #f0f4f8;
        overflow: hidden;
        padding: 14px;
    }

    .client-intake-form canvas {
        touch-action: none;
        display: block;
        background: transparent;
        width: 100% !important;
    }

    .client-intake-form .form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 700 !important;
        font-size: 0.95rem;
        color: #000;
    }

    /* -- Grid -- */
    .client-intake-form .row {
        display: flex;
        flex-wrap: wrap;
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }

        .client-intake-form .row > * {
            padding-left: 0.5rem;
            padding-right: 0.5rem;
        }

    .client-intake-form .col-12 {
        flex: 0 0 auto;
        width: 100%;
    }

    .client-intake-form .col-md-4 {
        flex: 0 0 auto;
        width: 33.333%;
    }

    .client-intake-form .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    /* -- Section -- */
    .client-intake-form .section-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
        margin-top: 0.5rem;
    }

    .client-intake-form .section-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        border-radius: 0.375rem;
        background-color: #e8f1f8;
        border: 1px solid #0D4F90;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .client-intake-form .section-icon i {
        color: #0D4F90;
        font-size: 0.95rem;
        line-height: 1;
    }

    .client-intake-form .section-title {
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0;
        color: #0D4F90;
    }

    .client-intake-form .accordion-section {
        border: 1px solid #bfd4ea;
        border-radius: 8px;
        background: #fff;
        margin-bottom: 1rem;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(13,79,144,0.08);
    }

    .client-intake-form .accordion-section.has-error {
        border-color: #dc3545;
        box-shadow: 0 0 0 1px rgba(220,53,69,0.12);
    }

    .client-intake-form .accordion-toggle {
        width: 100%;
        border: 0;
        background: #f8fbff;
        color: inherit;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.85rem 1rem;
        text-align: left;
    }

    .client-intake-form .accordion-toggle:hover,
        .client-intake-form .accordion-toggle:focus {
        background: #eef6ff;
        outline: none;
    }

    .client-intake-form .accordion-toggle .section-header {
        margin: 0;
    }

    .client-intake-form .accordion-toggle.has-error {
        background: #fff5f5;
    }

    .client-intake-form .accordion-body {
        border-top: 1px solid #d8e7f6;
        padding: 1rem;
    }

    .client-intake-form .accordion-chevron {
        color: #0D4F90;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.4rem;
        height: 1.4rem;
        border: 1px solid #0D4F90;
        border-radius: 50%;
        background: #fff;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1;
    }

    .client-intake-form .divider {
        margin: 2rem 0;
        border: none;
        border-top: 2px solid #0D4F90;
    }

    /* -- Eligibility box -- */
    .client-intake-form .eligibility-box {
        border: 2px solid #0D4F90;
        border-radius: 0.75rem;
        overflow: hidden;
    }

    .client-intake-form .elig-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 0.75rem 1rem;
        background: #fff;
        border-top: 1px solid #0D4F90;
    }

        .client-intake-form .elig-row:first-child {
            border-top: none !important;
        }

    .client-intake-form .elig-label {
        flex: 1;
        margin: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        min-width: 200px;
        color: #000;
        font-weight: 500;
    }

    .client-intake-form .elig-options {
        display: flex;
        align-items: center;
        gap: 2rem;
        flex-shrink: 0;
    }

    /* -- Card -- */
    .client-intake-form .card {
        border: 2px solid #0D4F90;
        box-shadow: 0 1px 3px rgba(13,79,144,0.1);
        border-radius: 6px;
    }

    .client-intake-form .card-body {
        padding: 2rem;
    }

    .client-intake-form .conditional-section {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 2px solid #0D4F90;
    }

    .client-intake-form .dynamic-question-panel {
        margin-top: 1.25rem;
    }

    .client-intake-form .dynamic-question-grid {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 1rem;
    }

    .client-intake-form .dynamic-question {
        grid-column: span 3;
    }

    .client-intake-form .dynamic-question.full {
        grid-column: 1 / -1;
    }

    .client-intake-form .dynamic-question.third {
        grid-column: span 2;
    }

    .client-intake-form .dynamic-question {
        min-width: 0;
    }

    .client-intake-form .dynamic-question .form-label {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
        line-height: 1.25;
    }

    .client-intake-form .dynamic-option-row {
        display: flex;
        gap: 1.25rem;
        flex-wrap: wrap;
        min-height: 38px;
        align-items: center;
        padding: 0.35rem 0;
    }

    .client-intake-form .dynamic-checkbox-row {
        display: inline-flex;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0;
        font-weight: 600;
    }

    .client-intake-form .dynamic-checkbox-row .form-check-input {
        margin-top: 0.15rem;
        flex: 0 0 auto;
    }

    .client-intake-form .dynamic-checkbox-row .form-check-label {
        font-weight: 700;
    }

    .client-intake-form .eligibility-question-panel {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    .client-intake-form .eligibility-question-panel .dynamic-question-grid {
        gap: 0;
        border: 1px solid #0D4F90;
        border-radius: 6px;
        overflow: hidden;
    }

    .client-intake-form .eligibility-question-panel .dynamic-question.full {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 1rem;
        align-items: center;
        padding: 0.65rem 1rem;
        border-bottom: 1px solid #0D4F90;
    }

    .client-intake-form .eligibility-question-panel .dynamic-question.full:last-child {
        border-bottom: 0;
    }

    .client-intake-form .dynamic-option-row-bordered {
        justify-content: flex-end;
        min-width: 8rem;
    }

    /* -- Telerik controls -- */
    .client-intake-form .k-textbox, .client-intake-form .k-datepicker, .client-intake-form .k-maskedtextbox, .client-intake-form .k-dropdown, .client-intake-form .k-multiselect, .client-intake-form .k-textarea {
        border: 1px solid #0D4F90 !important;
        border-radius: 4px !important;
        width: 100% !important;
    }

        .client-intake-form .k-textbox:focus, .client-intake-form .k-datepicker:focus, .client-intake-form .k-maskedtextbox:focus,
        .client-intake-form .k-dropdown:focus, .client-intake-form .k-multiselect:focus, .client-intake-form .k-textarea:focus {
            border-color: #0D4F90 !important;
            box-shadow: 0 0 0 0.2rem rgba(13,79,144,0.25) !important;
        }

    .client-intake-form .w-100 {
        width: 100% !important;
    }

    /* -- Radios / checkboxes -- */
    .client-intake-form .form-check-input {
        border-color: #0D4F90;
        accent-color: #0D4F90;
    }

        .client-intake-form .form-check-input:checked {
            background-color: #0D4F90;
            border-color: #0D4F90;
        }

    .client-intake-form .form-check-label {
        color: #000;
        font-weight: 500;
    }

    .client-intake-form .form-check {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        margin-bottom: 0;
    }

    /* inline Yes/No pairs */
    .client-intake-form .yn-row {
        display: flex;
        gap: 1.5rem;
        flex-wrap: wrap;
        margin-top: 0.5rem;
    }

    /* -- Buttons -- */
    .client-intake-form .btn-primary {
        background-color: #0D4F90;
        border-color: #0D4F90;
        color: white;
    }

        .client-intake-form .btn-primary:hover {
            background-color: #0a3d6f;
            border-color: #0a3d6f;
            color: white;
        }

    .client-intake-form .btn-secondary {
        background-color: #4A7BA7;
        border-color: #4A7BA7;
        color: white;
    }

        .client-intake-form .btn-secondary:hover {
            background-color: #3a6287;
            border-color: #3a6287;
            color: white;
        }

    .client-intake-form .btn-outline-secondary {
        color: white;
        background-color: #0D4F90;
        border-color: #0D4F90;
    }

        .client-intake-form .btn-outline-secondary:hover {
            background-color: #0a3d6f;
            color: white;
            border-color: #0a3d6f;
        }

    .client-intake-form .btn-outline-danger {
        border-color: #0D4F90;
        background-color: #0D4F90;
        color: white;
    }

        .client-intake-form .btn-outline-danger:hover {
            background-color: #0a3d6f;
            border-color: #0a3d6f;
            color: white;
        }

    .client-intake-form .k-button.k-button-md {
        border-radius: 4px;
        background-color: #0D4F90 !important;
        border-color: #0D4F90 !important;
        color: white !important;
    }

        .client-intake-form .k-button.k-button-md:hover {
            background-color: #0a3d6f !important;
            border-color: #0a3d6f !important;
        }

    .client-intake-form .k-button-text {
        color: #ffffff !important;
    }

    .client-intake-form .submit-button {
        padding: 0.4rem 1.2rem !important;
        font-size: 0.95rem !important;
        font-weight: 600;
    }

    /* -- Multiselect theming -- */
    .client-intake-form .k-multiselect-popup .k-list-item:hover,
        .client-intake-form .k-animation-container .k-list-item:hover {
        background-color: #cce5ff !important;
        color: #000 !important;
    }

    .client-intake-form .k-multiselect-popup .k-selected,
        .client-intake-form .k-animation-container .k-selected {
        background-color: #007bff !important;
        color: white !important;
    }

    .client-intake-form .k-animation-container .k-list-item {
        background-color: #f0f8ff !important;
        color: #003366 !important;
    }

    /* form action row */
    .client-intake-form .form-actions {
        display: flex;
        gap: 0.75rem;
        margin-top: 1.5rem;
        flex-wrap: wrap;
    }

    /* signature status row */
    .client-intake-form .sig-status {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
        flex-wrap: wrap;
    }

    .client-intake-form .save-status {
        border: 1px solid;
        border-radius: 6px;
        font-weight: 600;
        margin-bottom: 1rem;
        padding: .65rem .85rem;
    }

    .client-intake-form .save-status-success {
        background: #e9f7ef;
        border-color: #8fd19e;
        color: #146c2e;
    }

    .client-intake-form .save-status-error {
        background: #fff1f1;
        border-color: #f1a7a7;
        color: #b42318;
    }

    .client-intake-form .save-status-info {
        background: #eef6ff;
        border-color: #8bbdf2;
        color: #004b93;
    }

    .routing-confirm-window .k-window-titlebar {
        border-bottom: 1px solid #0ea5e9;
        background: #20628f;
        color: #fff;
    }

    .routing-confirm-window {
        transform: translate(-50%, -50%);
    }

    .routing-confirm-window .k-window-title,
    .routing-confirm-window .k-window-titlebar .k-button,
    .routing-confirm-window .k-window-titlebar .k-icon,
    .routing-confirm-window .k-window-titlebar .k-svg-icon {
        color: #fff !important;
    }

    .routing-confirm-title {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        color: #fff;
        font-weight: 800;
    }

    .routing-confirm-content {
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 1rem;
        align-items: flex-start;
        padding: .5rem 0 1rem;
    }

    .routing-confirm-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        background: #eaf5ff;
        color: #005ea8;
        font-size: 1.35rem;
    }

    .routing-confirm-content h3 {
        margin: 0 0 .4rem;
        color: #004b93;
        font-size: 1.15rem;
        font-weight: 800;
    }

    .routing-confirm-content p {
        margin: 0;
        color: #24364b;
        line-height: 1.45;
    }

    .routing-confirm-content strong {
        color: #0f2040;
        font-weight: 800;
    }

    .routing-confirm-actions {
        display: flex;
        justify-content: flex-end;
        gap: .75rem;
        padding-top: 1rem;
        border-top: 1px solid #d6e8fb;
    }

    .routing-confirm-actions .k-button {
        min-width: 116px;
        border-radius: 6px;
        font-weight: 700;
    }

    .routing-confirm-actions .routing-confirm-cancel-button {
        background: #fff !important;
        border-color: #6b7280 !important;
        color: #6b7280 !important;
    }

    .routing-confirm-actions .routing-confirm-cancel-button:hover,
    .routing-confirm-actions .routing-confirm-cancel-button:focus {
        background: #6b7280 !important;
        border-color: #6b7280 !important;
        color: #fff !important;
    }

    .routing-confirm-actions .routing-confirm-primary-button {
        background: #1f5faa !important;
        border-color: #1f5faa !important;
        color: #fff !important;
        box-shadow: 0 2px 6px rgba(15, 32, 64, 0.25);
    }

    .routing-confirm-actions .routing-confirm-primary-button .k-button-text {
        color: #fff !important;
    }

    .routing-confirm-actions .routing-confirm-cancel-button .k-button-text {
        color: #6b7280 !important;
    }

    .routing-confirm-actions .routing-confirm-cancel-button:hover .k-button-text,
    .routing-confirm-actions .routing-confirm-cancel-button:focus .k-button-text {
        color: #fff !important;
    }

    .case-notes-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: #fff;
        border: 1px solid #dbeafe;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(15, 32, 64, 0.12);
        padding: 0;
        min-height: 0;
    }

    .case-notes-panel.is-disabled {
        background: #f8fafc;
    }

    .case-notes-compose {
        flex-shrink: 0;
        padding: 1rem 1rem 0;
    }

    .case-notes-heading {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: .75rem;
        margin-bottom: .75rem;
        padding-bottom: .5rem;
        border-bottom: 2px solid #dbeafe;
    }

    .case-notes-heading h6,
    .case-notes-list-header h6 {
        color: #1a3560;
        font-size: .82rem;
        font-weight: 700;
        letter-spacing: .07em;
        margin: 0;
        text-transform: uppercase;
    }

    .case-notes-heading p {
        color: #64748b;
        font-size: .78rem;
        margin: .25rem 0 0;
    }

    .case-notes-entry {
        display: flex;
        flex-direction: column;
        gap: .65rem;
    }

    .case-notes-add-button {
        align-items: center;
        background: #0f9f8f;
        border: 1px solid #0b6f66;
        border-radius: 5px;
        color: #fff;
        cursor: pointer;
        display: inline-flex;
        font-size: .82rem;
        font-weight: 700;
        justify-content: center;
        line-height: 1.2;
        min-height: 27px;
        padding: .35rem .75rem;
        width: 100%;
        margin: 0;
    }

    .case-notes-add-button:hover,
    .case-notes-add-button:focus {
        background: #0c8276;
        border-color: #085f57;
        color: #fff;
        outline: none;
    }

    .case-notes-add-button:disabled {
        cursor: not-allowed;
        opacity: .65;
    }

    .case-notes-panel .case-notes-textarea,
    .case-notes-panel .case-notes-textarea textarea,
    .case-notes-panel .case-notes-textarea .k-input-inner,
    .case-notes-panel .case-notes-textarea .k-input-inner textarea,
    .case-notes-panel .case-notes-textarea.k-input,
    .case-notes-panel .case-notes-textarea.k-textarea,
    .case-notes-panel .k-textarea.case-notes-textarea,
    .case-notes-panel .k-input.case-notes-textarea,
    .case-notes-panel textarea.case-notes-textarea,
    .case-notes-panel textarea.k-input-inner {
        resize: none !important;
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .case-notes-panel .case-notes-textarea::-webkit-scrollbar,
    .case-notes-panel .case-notes-textarea textarea::-webkit-scrollbar,
    .case-notes-panel .case-notes-textarea .k-input-inner::-webkit-scrollbar,
    .case-notes-panel .case-notes-textarea .k-input-inner textarea::-webkit-scrollbar,
    .case-notes-panel .case-notes-textarea.k-input::-webkit-scrollbar,
    .case-notes-panel .case-notes-textarea.k-textarea::-webkit-scrollbar,
    .case-notes-panel .k-textarea.case-notes-textarea::-webkit-scrollbar,
    .case-notes-panel .k-input.case-notes-textarea::-webkit-scrollbar,
    .case-notes-panel textarea.case-notes-textarea::-webkit-scrollbar,
    .case-notes-panel textarea.k-input-inner::-webkit-scrollbar {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
    }

    .case-notes-panel .case-notes-textarea::-webkit-resizer,
    .case-notes-panel .case-notes-textarea textarea::-webkit-resizer,
    .case-notes-panel .case-notes-textarea .k-input-inner::-webkit-resizer,
    .case-notes-panel .case-notes-textarea .k-input-inner textarea::-webkit-resizer,
    .case-notes-panel .case-notes-textarea.k-input::-webkit-resizer,
    .case-notes-panel .case-notes-textarea.k-textarea::-webkit-resizer,
    .case-notes-panel .k-textarea.case-notes-textarea::-webkit-resizer,
    .case-notes-panel .k-input.case-notes-textarea::-webkit-resizer,
    .case-notes-panel textarea.case-notes-textarea::-webkit-resizer,
    .case-notes-panel textarea.k-input-inner::-webkit-resizer {
        background: transparent !important;
        display: none !important;
    }

    .case-notes-panel .case-notes-textarea .k-input-inner,
    .case-notes-panel .case-notes-textarea .k-input-inner textarea,
    .case-notes-panel textarea.case-notes-textarea,
    .case-notes-panel textarea.k-input-inner {
        padding-right: .75rem !important;
    }

    .case-notes-status {
        border: 1px solid;
        border-radius: 6px;
        font-size: .82rem;
        font-weight: 600;
        margin-top: .65rem;
        padding: .5rem .65rem;
    }

    .case-notes-status.success {
        background: #e9f7ef;
        border-color: #8fd19e;
        color: #146c2e;
    }

    .case-notes-status.error {
        background: #fff1f1;
        border-color: #f1a7a7;
        color: #b42318;
    }

    .case-notes-list-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 1rem 1rem .75rem;
        padding-bottom: .5rem;
        border-bottom: 2px solid #dbeafe;
        flex-shrink: 0;
    }

    .case-notes-count-badge {
        background: #1e4a8a;
        border-radius: 20px;
        color: #fff;
        font-size: .7rem;
        font-weight: 700;
        min-width: 22px;
        padding: 2px 8px;
        text-align: center;
    }

    .case-notes-scroll-area {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 0 1rem 1rem;
        scrollbar-color: #bfdbf0 transparent;
        scrollbar-width: thin;
    }

    .case-note-card {
        background: #eff6ff;
        border: 1px solid #dbeafe;
        border-left: 3px solid #2563b0;
        border-radius: 6px;
        margin-bottom: .65rem;
        padding: .7rem .8rem;
    }

    .case-note-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        margin-bottom: .35rem;
    }

    .case-note-author {
        color: #1a3560;
        font-size: .75rem;
        font-weight: 700;
    }

    .case-note-date {
        color: #64748b;
        font-size: .72rem;
        white-space: nowrap;
    }

    .case-note-card-body {
        color: #334155;
        font-size: .84rem;
        line-height: 1.5;
        white-space: pre-wrap;
        word-break: break-word;
    }

    .case-notes-empty {
        color: #64748b;
        padding: 1.5rem 1rem;
        text-align: center;
    }

    .case-notes-empty i {
        color: #93c5e8;
        display: block;
        font-size: 2rem;
        margin-bottom: .5rem;
    }

    .case-notes-empty p {
        font-size: .83rem;
        margin: 0;
    }

    .care-priority-form {
        padding: 0;
    }

    .care-priority-title-wrap {
        margin-bottom: 1rem;
    }

    .care-priority-form .card {
        border: 1px solid #bfd4ea;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(13,79,144,0.1);
    }

    .care-priority-notice {
        background: #fff8e6;
        border: 1px solid #f2c76f;
        border-left: 3px solid #d98b15;
        border-radius: 4px;
        color: #7a4b00;
        font-size: .84rem;
        line-height: 1.45;
        margin-bottom: 1rem;
        padding: .7rem .85rem;
    }

    .care-priority-help {
        color: #64748b;
        font-size: .83rem;
        line-height: 1.35;
        margin: 0;
    }

    .care-priority-form .form-label {
        line-height: 1.35;
        white-space: normal;
    }

    .care-priority-radio-group {
        display: flex;
        flex-wrap: wrap;
        gap: .65rem;
    }

    .care-priority-radio-group .k-radio-list,
    .care-priority-radio-group .k-radio-list-horizontal {
        display: flex;
        flex-wrap: wrap;
        gap: .65rem;
    }

    .care-priority-radio-group .k-radio-item {
        align-items: center;
        background: #f8fbff;
        border: 1px solid #bfd4ea;
        border-radius: 4px;
        display: inline-flex;
        gap: .45rem;
        min-height: 34px;
        min-width: 84px;
        padding: .35rem .7rem;
    }

    .care-priority-radio-group .k-radio:checked + .k-radio-label {
        color: #0D4F90;
        font-weight: 700;
    }

    .care-priority-options {
        gap: .75rem;
        margin-top: .25rem;
    }

    .care-priority-option {
        border: 1px solid #bfd4ea;
        border-radius: 4px;
        min-width: 86px;
        padding: .45rem .7rem;
    }

    .care-priority-level-grid {
        display: grid;
        gap: .75rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 520px;
    }

    .care-priority-level {
        align-items: center;
        background: #f8fbff;
        border: 1px solid #bfd4ea;
        border-radius: 4px;
        color: #1a3560;
        display: inline-flex;
        font-size: .9rem;
        font-weight: 700;
        gap: .5rem;
        min-height: 42px;
        padding: .55rem .7rem;
    }

    .care-priority-level.is-selected {
        background: #eef6ff;
        border-color: #0D4F90;
        box-shadow: 0 0 0 2px rgba(13,79,144,0.12);
    }

    .care-priority-dot {
        border-radius: 50%;
        display: inline-block;
        height: .55rem;
        width: .55rem;
    }

    .care-priority-dot.high {
        background: #dc3545;
    }

    .care-priority-dot.medium {
        background: #d98b15;
    }

    .care-priority-dot.low {
        background: #227c1d;
    }

    .care-priority-divider {
        margin: .25rem 0;
    }

    .care-priority-update-panel {
        background: #f8fbff;
        border: 1px solid #bfd4ea;
        border-radius: 6px;
        padding: 1rem;
    }

    .care-priority-actions {
        align-items: center;
        justify-content: flex-end;
    }

    .care-priority-required {
        color: #64748b;
        font-size: .82rem;
    }

    .care-form-shell {
        padding: 2rem 2.4rem 1.5rem;
    }

    .care-form-title-bar {
        background: #176ef2;
        border-radius: 6px 6px 0 0;
        color: #fff;
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1.2;
        margin: 0 0 1.25rem;
        padding: 1rem 1.25rem;
    }

    .care-form-workspace {
        background: #f8fbff;
        border: 1px solid #d5e2f2;
        border-radius: 0 0 6px 6px;
        padding: 1.5rem;
    }

    .care-form-toolbar {
        margin-bottom: 1rem;
    }

    .care-plan-form .card-body {
        padding-top: 1.25rem;
    }

    .care-form-toolbar .care-plan-add-button.k-button,
    .care-plan-grid .care-plan-add-button.k-button {
        background: #e9eef5 !important;
        border-color: #e9eef5 !important;
        color: #00f !important;
        font-weight: 500;
    }

    .care-form-toolbar .care-plan-add-button.k-button .k-button-text,
    .care-form-toolbar .care-plan-add-button.k-button .k-svg-icon,
    .care-plan-grid .care-plan-add-button.k-button .k-button-text,
    .care-plan-grid .care-plan-add-button.k-button .k-svg-icon {
        color: #00f !important;
        fill: #00f !important;
    }

    .care-goal-panel {
        background: #fff;
        border: 1px solid #bfd4ea;
        border-radius: 6px;
        box-shadow: 0 1px 2px rgba(13,79,144,0.08);
        margin-bottom: 1rem;
        overflow: hidden;
    }

    .care-goal-panel-header {
        align-items: center;
        background: #f8fbff;
        border-bottom: 1px solid #d8e7f6;
        color: #0D4F90;
        display: flex;
        font-size: 1.2rem;
        font-weight: 700;
        gap: .5rem;
        padding: .85rem 1rem;
    }

    .care-goal-panel-icon {
        align-items: center;
        background: #e8f1f8;
        border: 1px solid #0D4F90;
        border-radius: 6px;
        display: inline-flex;
        height: 2rem;
        justify-content: center;
        width: 2rem;
    }

    .care-goal-panel-icon i {
        color: #0D4F90;
        font-size: .95rem;
    }

    .care-goal-panel-body {
        padding: 1rem;
    }

    .care-goal-panel .form-label {
        color: #000;
        display: block;
        font-size: .95rem;
        font-weight: 700;
        margin-bottom: .5rem;
    }

    .care-goal-panel .required::after {
        color: #dc3545;
        content: " *";
        font-weight: 600;
    }

    .care-goal-panel .k-textbox,
    .care-goal-panel .k-datepicker,
    .care-goal-panel .k-dropdown,
    .care-goal-panel .k-textarea {
        border: 1px solid #0D4F90 !important;
        border-radius: 4px !important;
        width: 100% !important;
    }

    .care-goal-panel .k-textarea {
        min-height: 88px;
    }

    .care-goal-character-count {
        color: #64748b;
        display: block;
        font-size: .78rem;
        line-height: 1.3;
        margin: .25rem 0 0 auto;
        text-align: right;
        width: max-content;
    }

    .care-goal-panel-actions {
        display: flex;
        gap: .65rem;
        justify-content: flex-end;
        margin-top: 1rem;
    }

    .care-form-grid-panel {
        background: #fff;
        border: 1px solid #d7dde5;
        padding: 1rem;
    }

    .care-plan-grid {
        border-color: #d7dde5;
        font-size: .9rem;
    }

    .care-plan-grid .k-grid-toolbar {
        background: #fff;
        border: 0;
        padding: 0 0 .65rem;
    }

    .care-plan-grid .k-grid-header,
    .care-plan-grid .k-grid-header-wrap,
    .care-plan-grid .k-grid-header th {
        background: #155d8f !important;
        border-color: #0e527e !important;
    }

    .care-plan-grid .k-grid-header th,
    .care-plan-grid .k-grid-header th .k-link,
    .care-plan-grid .k-grid-header th .k-column-title {
        color: #fff !important;
        font-weight: 500;
    }

    .care-plan-grid .k-grid-content {
        background: #fff;
        min-height: 0;
    }

    .care-plan-grid .k-grid-norecords {
        color: #000;
        font-size: .95rem;
    }

    .care-plan-grid-actions {
        align-items: center;
        display: flex;
        gap: .35rem;
    }

    .care-plan-row-action,
    .care-plan-row-action.k-button {
        align-items: center;
        border-radius: 4px;
        display: inline-flex;
        height: 32px;
        justify-content: center;
        min-width: 32px;
        padding: 0;
        width: 32px;
    }

    .btn-teal {
        color: #fff !important;
        background-color: #009c9d !important;
        border-color: #00c3c3 !important;
    }

    .white-icon i {
        color: #fff !important;
    }

    .care-plan-row-edit,
    .care-plan-row-edit.k-button {
        background: #009c9d !important;
        border-color: #00c3c3 !important;
        color: #fff !important;
    }

    .care-plan-row-delete.k-button {
        background: #fff !important;
        border-color: #dc3545 !important;
        color: #dc3545 !important;
    }

    .care-plan-row-edit i {
        color: #fff !important;
        font-size: 1rem;
        line-height: 1;
    }

    .care-plan-row-edit.k-button .k-svg-icon {
        color: #fff !important;
        fill: #fff !important;
    }

    .care-plan-row-delete.k-button .k-svg-icon {
        color: #dc3545 !important;
        fill: #dc3545 !important;
    }

    .care-plan-row-edit:hover,
    .care-plan-row-edit.k-button:hover {
        background: #008c8c !important;
        border-color: #008c8c !important;
        color: #fff !important;
    }

    .care-plan-row-delete.k-button:hover {
        background: #dc3545 !important;
        border-color: #dc3545 !important;
        color: #fff !important;
    }

    .care-plan-row-delete.k-button:hover .k-svg-icon {
        color: #fff !important;
        fill: #fff !important;
    }

    .care-plan-grid-actions .assessment-icon-button.k-button {
        background: #fff !important;
        border-color: #fca5a5 !important;
        border-radius: 4px;
        color: #dc2626 !important;
        height: 32px;
        min-width: 32px;
        padding: 0;
        width: 32px;
    }

    .care-plan-grid-actions .assessment-icon-button.k-button .fa-trash {
        color: #dc2626 !important;
    }

    .care-plan-grid-actions .assessment-icon-button.k-button:hover:not(.k-disabled),
    .care-plan-grid-actions .assessment-icon-button.k-button:focus:not(.k-disabled) {
        background: #fee2e2 !important;
        border-color: #ef4444 !important;
    }

    .care-plan-grid-actions .assessment-icon-button.k-button:hover:not(.k-disabled) .fa-trash,
    .care-plan-grid-actions .assessment-icon-button.k-button:focus:not(.k-disabled) .fa-trash {
        color: #b91c1c !important;
    }

    .care-plan-grid .care-plan-edit-row,
    .care-plan-grid .care-plan-edit-row > td {
        background: #fff3cd !important;
    }

    .care-plan-grid .k-pager {
        background: #fff;
        border-top: 1px solid #d7dde5;
        gap: .15rem;
        padding: .55rem .65rem;
    }

    .care-plan-grid .k-pager .k-button {
        background: #fff !important;
        border-color: transparent !important;
        border-radius: 0;
        color: #0d4f90 !important;
        min-width: 32px;
    }

    .care-plan-grid .k-pager .k-button.k-selected,
    .care-plan-grid .k-pager .k-button[aria-current="page"] {
        background: #3d66a3 !important;
        border-color: #3d66a3 !important;
        color: #fff !important;
    }

    .care-plan-grid .k-pager .k-button .k-svg-icon {
        color: inherit !important;
        fill: currentColor !important;
    }

    .care-form-actions {
        margin-top: 1.25rem;
    }

    .referral-form-actions {
        align-items: center;
    }

    .form-required-note {
        color: #64748b;
        font-size: .82rem;
    }

    .assessment-form .form-control[readonly] {
        background: #f8fbff;
        border-color: #bfd4ea;
        color: #334155;
        cursor: default;
    }

    .assessment-client-subtitle {
        align-items: center;
        background: #fff;
        color: #1e4a8a;
        display: inline-flex;
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .08em;
        line-height: 1;
        margin: 0 0 .8rem;
        padding: 0 .45rem;
        position: relative;
        text-transform: uppercase;
        top: -.45rem;
    }

    .assessment-client-subtitle::after {
        content: none;
    }

    .assessment-client-panel {
        border: 1px solid #bfd4ea;
        border-radius: 6px;
        margin-bottom: 1rem;
        padding: 0 .85rem .85rem;
    }

    .assessment-client-panel:last-of-type {
        margin-bottom: .75rem;
    }

    .assessment-client-grid {
        margin-bottom: 0;
    }

    .assessment-form .dynamic-question-panel {
        width: 100%;
    }

    .assessment-form .assessment-dynamic-question-grid {
        display: grid;
        gap: 1rem 1.25rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .assessment-form .assessment-dynamic-question-grid > .dynamic-question {
        grid-column: auto;
        min-width: 0;
    }

    .assessment-form .assessment-dynamic-question-grid > .dynamic-question.full {
        grid-column: 1 / -1;
    }

    .assessment-form .dynamic-question .form-label {
        display: block;
        line-height: 1.25;
        margin-bottom: .45rem;
    }

    .assessment-form .dynamic-question textarea,
    .assessment-form .dynamic-question .k-textarea {
        min-height: 74px;
        width: 100%;
    }

    .assessment-preferred-contact .dynamic-question-panel {
        margin-top: 0;
    }

    .assessment-preferred-contact-heading {
        margin-bottom: .35rem;
    }

    .assessment-contact-options {
        display: flex;
        flex-wrap: wrap;
        gap: .6rem;
    }

    .assessment-contact-question {
        width: 100%;
    }

    .assessment-contact-option {
        align-items: center;
        background: #f8fbff;
        border: 1px solid #d1ddeb;
        border-radius: 5px;
        display: inline-flex;
        gap: .45rem;
        min-width: 112px;
        padding: .45rem .75rem;
    }

    .assessment-contact-option input {
        accent-color: #0D4F90;
    }

    .assessment-household-wrap {
        overflow-x: auto;
    }

    .assessment-household-table {
        border-collapse: separate;
        border-spacing: 0;
        min-width: 860px;
        width: 100%;
    }

    .assessment-household-table thead tr {
        background: #1f4f8f;
        color: #fff;
    }

    .assessment-household-table th {
        font-size: .76rem;
        font-weight: 700;
        letter-spacing: .04em;
        padding: .7rem .8rem;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .assessment-household-table td {
        border-bottom: 1px solid #dbeafe;
        padding: .65rem .75rem;
        vertical-align: top;
    }

    .assessment-household-table .form-label {
        display: none;
    }

    .assessment-household-action-header {
        background: #1f4f8f;
        box-shadow: -6px 0 8px -8px rgba(15, 23, 42, .55);
        position: sticky;
        right: 0;
        text-align: center;
        width: 54px;
        z-index: 3;
    }

    .assessment-household-actions {
        background: #fff;
        box-shadow: -6px 0 8px -8px rgba(15, 23, 42, .35);
        position: sticky;
        right: 0;
        text-align: center;
        width: 54px;
        z-index: 2;
    }

    .assessment-radio-group {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: .7rem;
        min-height: 32px;
    }

    .assessment-radio-option {
        align-items: center;
        display: inline-flex;
        gap: .35rem;
        margin: 0;
        white-space: nowrap;
    }

    .assessment-radio-option input {
        accent-color: #0D4F90;
    }

    .assessment-add-row {
        align-items: center;
        background: #0D4F90;
        border: 1px solid #0a4278;
        border-radius: 6px;
        box-shadow: 0 2px 5px rgba(13, 79, 144, .18);
        color: #fff;
        display: inline-flex;
        font-weight: 700;
        gap: .45rem;
        margin-top: .9rem;
        padding: .55rem 1.05rem;
        transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
    }

    .assessment-add-row:hover,
    .assessment-add-row:focus {
        background: #0a4278;
        border-color: #083762;
        box-shadow: 0 3px 8px rgba(13, 79, 144, .24);
        color: #fff;
    }

    .barrier-dynamic-form .card-body {
        padding: 1.5rem;
    }

    .barrier-start-panel,
    .barrier-entry-panel {
        background: #fff;
        border: 1px solid #bfd4ea;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(15, 32, 64, .08);
        margin-bottom: 1.25rem;
        padding: 1.15rem;
    }

    .barrier-start-panel.has-error,
    .barrier-entry-panel.has-error {
        border-color: #dc3545;
        box-shadow: 0 0 0 1px rgba(220, 53, 69, .12);
    }

    .barrier-add-row {
        align-items: center;
        display: flex;
        margin: .35rem 0 1.4rem;
    }

    .barrier-add-button {
        align-items: center;
        background: #0D4F90;
        border: 1px solid #0a4278;
        border-radius: 6px;
        box-shadow: 0 2px 5px rgba(13, 79, 144, .18);
        color: #fff;
        display: inline-flex;
        font-weight: 700;
        gap: .45rem;
        min-height: 42px;
        padding: .55rem 1.05rem;
        transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    }

    .barrier-add-button:hover:not(:disabled),
    .barrier-add-button:focus:not(:disabled) {
        background: #0a4278;
        border-color: #083762;
        color: #fff;
        outline: none;
    }

    .barrier-add-button:disabled {
        background: #f8fafc;
        border-color: #d7e3f0;
        color: #94a3b8;
        cursor: not-allowed;
    }

    .barrier-count {
        color: #64748b;
        font-size: .82rem;
        font-weight: 700;
    }

    .barrier-entry-panel {
        padding: 0;
        overflow: hidden;
    }

    .barrier-entry-header {
        align-items: center;
        background: #f8fbff;
        border-bottom: 1px solid #d8e7f6;
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: .9rem 1rem;
    }

    .barrier-entry-header h3 {
        color: #0D4F90;
        font-size: 1.15rem;
        font-weight: 700;
        margin: 0;
    }

    .barrier-entry-section {
        border-bottom: 1px solid #d8e7f6;
        padding: 1.15rem;
    }

    .barrier-entry-section:last-child {
        border-bottom: 0;
    }

    .barrier-entry-actions {
        align-items: center;
        border-top: 1px solid #d8e7f6;
        display: flex;
        gap: .65rem;
        justify-content: flex-end;
        padding: .95rem 1rem;
    }

    .barrier-entry-actions .submit-button {
        margin-left: 0;
    }

    .barrier-cancel-button.k-button {
        background: #fff !important;
        border-color: #d1ddeb !important;
        color: #334155 !important;
        font-weight: 700;
    }

    .barrier-cancel-button.k-button:hover:not(.k-disabled),
    .barrier-cancel-button.k-button:focus:not(.k-disabled) {
        background: #f1f5f9 !important;
        border-color: #b8c6d8 !important;
        color: #0f172a !important;
    }

    .barrier-remove-button.k-button {
        background: #fff !important;
        border-color: #fca5a5 !important;
        border-radius: 4px;
        color: #dc2626 !important;
        height: 34px;
        min-width: 34px;
        padding: 0;
        width: 34px;
    }

    .barrier-remove-button.k-button .fa-trash {
        color: #dc2626 !important;
    }

    .barrier-remove-button.k-button:hover:not(.k-disabled),
    .barrier-remove-button.k-button:focus:not(.k-disabled) {
        background: #fee2e2 !important;
        border-color: #ef4444 !important;
        color: #b91c1c !important;
    }

    .barrier-dynamic-form .form-actions {
        border-top: 1px solid #d8e7f6;
        justify-content: space-between;
        padding-top: 1rem;
    }

    .assessment-household-actions .assessment-icon-button.k-button {
        background: #fff !important;
        border-color: #fca5a5 !important;
        color: #dc2626 !important;
        min-width: 36px;
        transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    }

    .assessment-household-actions .assessment-icon-button.k-button .fa-trash {
        color: #dc2626 !important;
    }

    .assessment-household-actions .assessment-icon-button.k-button:hover:not(.k-disabled),
    .assessment-household-actions .assessment-icon-button.k-button:focus:not(.k-disabled) {
        background: #fee2e2 !important;
        border-color: #ef4444 !important;
        color: #b91c1c !important;
    }

    .assessment-household-actions .assessment-icon-button.k-button:hover:not(.k-disabled) .fa-trash,
    .assessment-household-actions .assessment-icon-button.k-button:focus:not(.k-disabled) .fa-trash {
        color: #b91c1c !important;
    }

    .assessment-household-actions .assessment-icon-button.k-button.k-disabled,
    .assessment-household-actions .assessment-icon-button.k-button:disabled {
        background: #f8fafc !important;
        border-color: #e2e8f0 !important;
        color: #94a3b8 !important;
    }

    .assessment-household-actions .assessment-icon-button.k-button.k-disabled .fa-trash,
    .assessment-household-actions .assessment-icon-button.k-button:disabled .fa-trash {
        color: #94a3b8 !important;
    }

    /* ---------------------------------------------------
           Tablet layout
        --------------------------------------------------- */
    @media (max-width: 1024px) {
        .client-intake-form .card-body {
            padding: 1.25rem;
        }

        .client-intake-form .section-title {
            font-size: 1.1rem;
        }

        .client-intake-form .referrer-box {
            padding: 0.85rem;
        }
            /* 3-column referrer to 2-column, then last full-width */
            .client-intake-form .referrer-box .row .col-md-4 {
                flex: 0 0 50%;
                max-width: 50%;
            }

                .client-intake-form .referrer-box .row .col-md-4:last-child {
                    flex: 0 0 100%;
                    max-width: 100%;
                }

        .client-intake-form .elig-label {
            font-size: 0.88rem;
        }

        .client-intake-form .elig-options {
            gap: 1.25rem;
        }
    }

    /* ---------------------------------------------------
           Mobile layout
        --------------------------------------------------- */
    @media (max-width: 767px) {
        /* page chrome */
        .client-intake-form .bg-light.py-4 {
            padding-top: 0.75rem !important;
            padding-bottom: 0.75rem !important;
        }

        .client-intake-form .container {
            padding-left: 0.5rem !important;
            padding-right: 0.5rem !important;
        }
        /* app bar */
        .client-intake-form .page-progress-header .container {
            padding: 0.75rem 0.85rem;
        }

        .client-intake-form .page-progress-title {
            font-size: 1.25rem;
        }

        .client-intake-form .page-progress-title-icon {
            width: 2.1rem;
            height: 2.1rem;
            font-size: 1.05rem;
        }
        /* card */
        .client-intake-form .card-body {
            padding: 0.85rem;
        }
        /* section */
        .client-intake-form .section-header {
            margin-bottom: 0.85rem;
        }

        .client-intake-form .accordion-toggle {
            align-items: flex-start;
            gap: .55rem;
            padding: .7rem .75rem;
        }

        .client-intake-form .accordion-toggle .section-header {
            align-items: flex-start;
            display: flex;
            flex: 1 1 auto;
            gap: .5rem;
            margin-bottom: 0;
            min-width: 0;
        }

        .client-intake-form .section-title {
            font-size: 0.95rem;
            line-height: 1.25;
            overflow-wrap: anywhere;
            white-space: normal;
            word-break: normal;
        }

        .client-intake-form .section-icon {
            flex: 0 0 auto;
            width: 1.6rem;
            height: 1.6rem;
            font-size: 0.82rem;
        }

        .client-intake-form .accordion-chevron {
            flex: 0 0 auto;
            height: 1.25rem;
            margin-top: .15rem;
            width: 1.25rem;
        }

        .client-intake-form .accordion-body {
            overflow-wrap: anywhere;
            padding: .75rem;
        }

        .client-intake-form .accordion-body .text-muted {
            font-size: .82rem;
            line-height: 1.35;
            margin: 0;
            white-space: normal;
        }

        .client-intake-form .divider {
            margin: 1.1rem 0;
        }
        /* All columns to full width */
        .client-intake-form .col-md-6, .client-intake-form .col-md-4 {
            flex: 0 0 100% !important;
            max-width: 100% !important;
            width: 100% !important;
        }
        /* referrer box */
        .client-intake-form .referrer-box {
            padding: 0.75rem;
            margin-top: 0.85rem;
            margin-bottom: 0.85rem;
        }

        .client-intake-form .referrer-label {
            font-size: 0.7rem;
            margin-bottom: 0.6rem;
        }

        .client-intake-form .dynamic-question-grid {
            grid-template-columns: 1fr;
        }

        .client-intake-form .dynamic-question,
        .client-intake-form .dynamic-question.third {
            grid-column: 1 / -1;
        }

        .assessment-form .assessment-dynamic-question-grid {
            grid-template-columns: 1fr;
        }

        .assessment-form .assessment-dynamic-question-grid > .dynamic-question {
            grid-column: 1 / -1;
        }

        .client-intake-form .eligibility-question-panel .dynamic-question.full {
            grid-template-columns: 1fr;
            gap: 0.35rem;
            padding: 0.75rem;
        }

        .client-intake-form .dynamic-option-row-bordered {
            justify-content: flex-start;
        }

        /* labels */
        .client-intake-form .form-label {
            font-size: 0.85rem;
            margin-bottom: 0.3rem;
        }
        /* All inputs use 16px font to prevent iOS auto-zoom on focus */
        .client-intake-form input[type="text"],
        .client-intake-form input[type="email"],
        .client-intake-form input[type="tel"],
        .client-intake-form input[type="date"],
        .client-intake-form select,
        .client-intake-form textarea,
        .client-intake-form .k-textbox,
        .client-intake-form .k-datepicker,
        .client-intake-form .k-maskedtextbox,
        .client-intake-form .k-dropdown,
        .client-intake-form .k-multiselect,
        .client-intake-form .k-textarea,
        .client-intake-form .k-input,
        .client-intake-form .k-input-inner {
            font-size: 16px !important;
            width: 100% !important;
            min-height: 42px;
        }

        .client-intake-form textarea, .client-intake-form .k-textarea {
            min-height: 80px;
        }
        /* eligibility rows: stack label above Yes/No on small screens */
        .client-intake-form .elig-row {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.45rem;
            padding: 0.65rem 0.75rem;
        }

        .client-intake-form .elig-label {
            min-width: unset;
            width: 100%;
            font-size: 0.82rem;
        }

        .client-intake-form .elig-options {
            gap: 1.25rem;
        }
        /* inline Yes/No rows */
        .client-intake-form .yn-row {
            gap: 1.25rem;
        }
        /* clear-signature button: pull out of absolute so it doesn't overlap canvas */
        .client-intake-form .sig-clear-wrap {
            position: static !important;
            margin-bottom: 0.5rem;
            display: block;
        }
        /* signature canvas min-height */
        .client-intake-form .signature-surface {
            padding: 8px;
        }

        .client-intake-form canvas {
            min-height: 110px;
        }
        /* sig status row */
        .client-intake-form .sig-status {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.2rem;
        }

            .client-intake-form .sig-status .ms-auto {
                margin-left: 0 !important;
            }
        /* action buttons */
        .client-intake-form .form-actions {
            flex-direction: column;
        }

            .client-intake-form .form-actions .k-button,
        .client-intake-form .form-actions button {
                width: 100%;
                justify-content: center;
                padding: 0.55rem !important;
                font-size: 0.9rem !important;
            }
        /* validation */
        .client-intake-form .text-danger.small {
            font-size: 0.75rem;
        }

        .client-intake-form h6.fw-bold {
            font-size: 0.88rem;
        }
    }


/* Question Administration */
.question-admin-page {
    padding: 1rem;
    color: #0b2341;
}

.question-admin-header,
.question-admin-filters,
.question-grid-shell {
    border: 1px solid #b8d7f5;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 32, 64, 0.08);
}

.question-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.question-admin-header h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    color: #004b93;
    font-size: 1.45rem;
    font-weight: 700;
}

.question-admin-header p {
    margin: 0.25rem 0 0;
    color: #58708f;
}

.question-admin-alert {
    margin-bottom: 0.75rem;
}

.question-admin-filters {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr auto;
    gap: 1rem;
    align-items: end;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
}

.filter-field label {
    display: block;
    margin-bottom: 0.25rem;
    color: #173b68;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.question-toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 38px;
    margin: 0;
    color: #173b68;
    font-weight: 700;
}

.question-grid-shell {
    padding: 0.75rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pill.active,
.status-pill.required {
    background: #e6f4ea;
    color: #176b35;
}

.status-pill.inactive,
.status-pill.optional {
    background: #eef2f7;
    color: #50627a;
}

.question-icon-button,
.danger-icon-button,
.question-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.question-icon-button {
    background: #005ea8;
    color: #fff;
}

.question-icon-button:hover {
    background: #004b88;
}

.danger-icon-button {
    background: #fff1f1;
    border-color: #ffc9c9;
    color: #c81e1e;
}

.danger-icon-button:hover {
    background: #dc2626;
    color: #fff;
}

.question-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1rem;
    overflow-y: auto;
    background: rgba(5, 18, 35, 0.55);
}

.question-modal {
    width: min(1120px, 100%);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.25);
}

.question-modal-header,
.question-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.question-modal-header {
    border-bottom: 1px solid #cfe3f8;
    background: #f4f9ff;
}

.question-modal-header h3 {
    margin: 0;
    color: #004b93;
    font-size: 1.25rem;
    font-weight: 700;
}

.question-modal-header p {
    margin: 0.2rem 0 0;
    color: #58708f;
}

.question-modal-close {
    background: #fff;
    border-color: #b8d7f5;
    color: #005ea8;
}

.question-modal-body {
    display: grid;
    gap: 1rem;
    max-height: 72vh;
    overflow-y: auto;
    padding: 1rem 1.25rem;
}

.question-modal-footer {
    border-top: 1px solid #cfe3f8;
    background: #fff;
}

.question-fieldset {
    margin: 0;
    padding: 1rem;
    border: 1px solid #b8d7f5;
    border-radius: 8px;
}

.question-fieldset legend {
    float: none;
    width: auto;
    padding: 0 0.4rem;
    margin: 0;
    color: #004b93;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.question-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    margin-bottom: 0.25rem;
    color: #000;
    font-weight: 700;
}

.form-field label span,
.question-fieldset .validation-message {
    color: #dc2626;
}

.question-checks {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.6rem;
    font-weight: 700;
}

.question-checks label,
.row-check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.fieldset-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: #58708f;
}

.question-row-table {
    display: grid;
    gap: 0.4rem;
}

.question-row-header,
.question-row {
    display: grid;
    gap: 0.75rem;
    align-items: center;
}

.question-row-header {
    padding: 0.55rem 0.75rem;
    border-radius: 6px;
    background: #214f8f;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.question-row {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #d7e7f8;
}

.option-grid {
    grid-template-columns: minmax(220px, 1.3fr) minmax(160px, 1fr) 100px 110px 44px;
}

.dependency-grid {
    grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 1fr) 110px 44px;
}

.routing-criteria-grid {
    grid-template-columns: minmax(90px, 0.6fr) minmax(140px, 0.8fr) minmax(260px, 1.8fr) minmax(180px, 1fr) 90px 90px 44px;
}

.empty-panel {
    padding: 0.85rem;
    border: 1px dashed #b8d7f5;
    border-radius: 8px;
    background: #f8fbff;
    color: #58708f;
}

@media (max-width: 900px) {
    .question-admin-header,
    .question-admin-filters,
    .fieldset-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .question-admin-filters,
    .question-form-grid,
    .option-grid,
    .dependency-grid,
    .routing-criteria-grid {
        grid-template-columns: 1fr;
    }

    .question-checks {
        padding-top: 0;
    }
}

/* Role Selection */
.user_role_icon {
    color: #345c7f;
    font-size: 0.8rem;
    font-weight: 700;
}

.role-selection-window .k-window-titlebar {
    background: #20628f;
    border-color: #20628f;
    color: #fff;
    font-weight: 800;
}

.role-selection-window .k-window-title {
    color: #fff;
}

.role-selection-window .k-window-content {
    padding: 1.25rem;
}

.role-selection-content {
    display: grid;
    gap: 0.85rem;
}

.role-selection-help {
    color: #334155;
    margin: 0;
}

.role-selection-message {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 6px;
    color: #9a3412;
    padding: 0.65rem 0.75rem;
}

.role-selection-label {
    color: #0f2040;
    font-weight: 800;
    margin-bottom: -0.35rem;
}

.role-selection-label.required::after {
    color: #dc2626;
    content: " *";
}

.role-selection-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.35rem;
}

.role-selection-window .role-selection-actions .k-button,
.role-selection-window .role-selection-actions .k-button .k-button-text {
    color: #fff !important;
}


/* Case Workspace */
    /* ── Blue Design System ── */
    :root {
        --blue-950: #0a1628;
        --blue-900: #0f2040;
        --blue-800: #1a3560;
        --blue-700: #1e4a8a;
        --blue-600: #2563b0;
        --blue-500: #3b82c4;
        --blue-400: #60a5d8;
        --blue-300: #93c5e8;
        --blue-200: #bfdbf0;
        --blue-100: #dbeafe;
        --blue-50: #eff6ff;
        --accent: #0ea5e9;
        --success: #0d9488;
        --text-dark: #0f172a;
        --text-mid: #334155;
        --text-muted: #64748b;
        --white: #ffffff;
        --shadow-sm: 0 1px 3px rgba(15, 32, 64, 0.12), 0 1px 2px rgba(15, 32, 64, 0.08);
        --shadow-md: 0 4px 12px rgba(15, 32, 64, 0.15), 0 2px 6px rgba(15, 32, 64, 0.10);
        --shadow-lg: 0 8px 24px rgba(15, 32, 64, 0.18), 0 4px 10px rgba(15, 32, 64, 0.12);
        --radius: 10px;
        --radius-sm: 6px;
        --header-h: 58px;
    }

    body {
        background: linear-gradient(145deg, var(--blue-50) 0%, #e8f0fc 100%);
        min-height: 100vh;
        font-family: 'Segoe UI', system-ui, sans-serif;
        color: var(--text-dark);
        overflow: hidden; /* prevent page-level scroll — columns handle their own */
    }

    /* ── Header ── */
    .case-header {
        background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%) !important;
        border-bottom: 3px solid var(--accent) !important;
        border-radius: 0 0 8px 8px;
        padding: .75rem 1.25rem !important;
        box-shadow: var(--shadow-lg);
        color: var(--white) !important;
    }

        .case-header h5 {
            color: var(--white) !important;
            font-size: 1.15rem;
            font-weight: 700;
            letter-spacing: 0.01em;
            line-height: 1.05;
        }

        .case-header label.small {
            color: var(--blue-200) !important;
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            margin-bottom: 3px;
            display: block;
        }

    .case-id-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: rgba(255,255,255,0.12);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 20px;
        padding: 1px 9px;
        font-size: 0.75rem;
        color: var(--blue-200);
        margin-top: 2px;
    }

    /* ── Tab Strip ── */
    .k-tabstrip > .k-tabstrip-items-wrapper {
        background: var(--blue-800) !important;
        border-radius: var(--radius) var(--radius) 0 0;
        border-bottom: 2px solid var(--blue-600) !important;
        padding: 0 8px;
    }

    .k-tabstrip-item .k-link {
        color: var(--blue-200) !important;
        font-weight: 600;
        font-size: 0.85rem;
        letter-spacing: 0.04em;
        padding: 8px 14px;
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
        transition: all 0.18s ease;
    }

    .k-tabstrip-item:hover .k-link {
        color: var(--white) !important;
        background: rgba(255,255,255,0.1) !important;
    }

    .k-tabstrip-item.k-active .k-link {
        color: var(--white) !important;
        background: var(--accent) !important;
        border-bottom: none !important;
    }

    .k-tabstrip > .k-content {
        background: var(--white) !important;
        border: none !important;
        border-radius: 0 0 var(--radius) var(--radius);
        box-shadow: var(--shadow-md);
    }

    /* ── Cards ── */
    .panel-card {
        background: var(--white);
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
        border: 1px solid var(--blue-100);
        padding: 1.25rem;
    }

        .panel-card h6 {
            color: var(--blue-800);
            font-weight: 700;
            font-size: 0.82rem;
            letter-spacing: 0.07em;
            text-transform: uppercase;
            margin-bottom: 0.75rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--blue-100);
        }

    /* ── Form Labels ── */
    .k-label, .k-form-label {
        color: var(--blue-700) !important;
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.04em !important;
    }

    /* ── Telerik Inputs ── */
    .k-input, .k-dropdownlist, .k-textarea, .k-textbox {
        border: 1.5px solid var(--blue-200) !important;
        border-radius: var(--radius-sm) !important;
        background: var(--blue-50) !important;
        color: var(--text-dark) !important;
        transition: border-color 0.15s, box-shadow 0.15s;
    }

        .k-input:focus-within, .k-dropdownlist:focus, .k-textarea:focus, .k-textbox:focus {
            border-color: var(--accent) !important;
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18) !important;
            background: var(--white) !important;
            outline: none !important;
        }

        .k-input-value-text, .k-dropdownlist .k-input-value-text {
            color: var(--text-dark) !important;
        }

    .k-popup .k-list-item:hover,
    .k-popup .k-list-item.k-selected {
        background: var(--blue-100) !important;
        color: var(--blue-800) !important;
    }

    /* ── Buttons ── */
    .k-button-solid-primary {
        background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%) !important;
        border-color: var(--blue-700) !important;
        color: var(--white) !important;
        font-weight: 600 !important;
        letter-spacing: 0.03em !important;
        border-radius: var(--radius-sm) !important;
        box-shadow: var(--shadow-sm) !important;
        transition: all 0.18s ease !important;
    }

        .k-button-solid-primary:hover {
            background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 100%) !important;
            box-shadow: 0 4px 12px rgba(37, 99, 176, 0.35) !important;
            transform: translateY(-1px) !important;
        }

    .k-button-solid-success {
        background: linear-gradient(135deg, var(--success) 0%, #0f766e 100%) !important;
        border-color: var(--success) !important;
        color: var(--white) !important;
        font-weight: 600 !important;
        letter-spacing: 0.03em !important;
        border-radius: var(--radius-sm) !important;
        box-shadow: var(--shadow-sm) !important;
        transition: all 0.18s ease !important;
        width: 100%;
        margin-top: 8px;
    }

        .k-button-solid-success:hover {
            background: linear-gradient(135deg, #0f766e 0%, #115e59 100%) !important;
            box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35) !important;
            transform: translateY(-1px) !important;
        }

    /* ── Divider ── */
    hr {
        border-color: var(--blue-100);
        margin: 1rem 0;
    }

    /* ── Header dropdowns ── */
    .header-dropdown .k-dropdownlist {
        background: rgba(255,255,255,0.12) !important;
        border-color: rgba(255,255,255,0.25) !important;
        color: var(--white) !important;
        border-radius: var(--radius-sm) !important;
    }

    .header-dropdown .k-input-value-text {
        color: var(--white) !important;
    }

    .header-dropdown .k-button {
        color: var(--blue-200) !important;
    }

    .note-type-select {
        width: 100%;
        margin-top: 8px;
    }

    /* ══════════════════════════════════════════
                   LAYOUT: two-column fixed-height workspace
                   Left col scrolls · Right col stays fixed
                ══════════════════════════════════════════ */
    .workspace-body {
        padding: .75rem 1rem 1rem;
        height: calc(100vh - var(--header-h) - .75rem);
        overflow: hidden;
        max-width: 100%;
    }

    .workspace-row {
        height: 100%;
        overflow: hidden;
        flex-wrap: nowrap !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100%;
    }

    /* Left column — scrolls on its own */
    .left-col {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 1rem;
        padding-left: 0 !important;
        scrollbar-width: thin;
        scrollbar-color: var(--blue-200) transparent;
    }

        .left-col::-webkit-scrollbar {
            width: 5px;
        }

        .left-col::-webkit-scrollbar-track {
            background: transparent;
        }

        .left-col::-webkit-scrollbar-thumb {
            background: var(--blue-200);
            border-radius: 10px;
        }

    /* Right column — fixed, never moves */
    .right-col {
        height: 100%;
        display: flex;
        flex-direction: column;
        position: relative;
        padding-right: 0 !important;
        transition: flex-basis 0.18s ease, max-width 0.18s ease, min-width 0.18s ease;
    }

    .notes-toggle-anchor {
        align-items: center;
        background: var(--blue-700);
        border: 1px solid var(--blue-300);
        border-radius: 999px;
        color: var(--white);
        display: inline-flex;
        height: 28px;
        justify-content: center;
        left: -13px;
        padding: 0;
        position: absolute;
        top: 12px;
        width: 28px;
        z-index: 210;
    }

        .notes-toggle-anchor:hover,
        .notes-toggle-anchor:focus {
            background: var(--blue-800);
            color: var(--white);
            outline: none;
        }

        .notes-toggle-anchor i {
            font-size: .78rem;
            line-height: 1;
        }

    .notes-collapsed-rail {
        align-items: center;
        background: linear-gradient(180deg, var(--blue-800), var(--blue-700));
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
        color: var(--white);
        display: flex;
        flex: 1;
        justify-content: center;
        min-height: 0;
        width: 100%;
    }

        .notes-collapsed-rail span {
            font-size: .75rem;
            font-weight: 700;
            letter-spacing: .08em;
            text-transform: uppercase;
            transform: rotate(90deg);
            white-space: nowrap;
        }

    /* Notes panel fills the right column */
    .notes-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        background: var(--white);
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
        border: 1px solid var(--blue-100);
        padding: 1rem;
        min-height: 0; /* critical — allows flex child to shrink below content size */
    }

        .notes-panel h6 {
            color: var(--blue-800);
            font-weight: 700;
            font-size: 0.82rem;
            letter-spacing: 0.07em;
            text-transform: uppercase;
            margin-bottom: 0.75rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--blue-100);
            flex-shrink: 0;
        }

    /* Notes list header row */
    .notes-list-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--blue-100);
        flex-shrink: 0;
    }

        .notes-list-header h6 {
            border-bottom: none !important;
            padding-bottom: 0 !important;
            margin-bottom: 0 !important;
        }

    .notes-count-badge {
        background: var(--blue-700);
        color: var(--white);
        font-size: 0.7rem;
        font-weight: 700;
        border-radius: 20px;
        padding: 2px 8px;
        min-width: 22px;
        text-align: center;
    }

    /* Scrollable notes list — grows to fill all remaining space */
    .notes-scroll-area {
        flex: 1;
        overflow-y: auto;
        min-height: 0; /* critical — same reason as above */
        padding-right: 4px;
        scrollbar-width: thin;
        scrollbar-color: var(--blue-200) transparent;
    }

        .notes-scroll-area::-webkit-scrollbar {
            width: 5px;
        }

        .notes-scroll-area::-webkit-scrollbar-track {
            background: transparent;
        }

        .notes-scroll-area::-webkit-scrollbar-thumb {
            background: var(--blue-200);
            border-radius: 10px;
        }

    /* Individual note card */
    .note-card {
        background: var(--blue-50);
        border: 1px solid var(--blue-100);
        border-left: 3px solid var(--blue-600);
        border-radius: var(--radius-sm);
        padding: 10px 12px;
        margin-bottom: 10px;
        transition: box-shadow 0.15s;
    }

        .note-card:hover {
            box-shadow: var(--shadow-sm);
        }

    .note-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 6px;
    }

    .note-type-tag {
        background: var(--blue-700);
        color: var(--white);
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        border-radius: 4px;
        padding: 2px 7px;
    }

    .note-date {
        font-size: 0.72rem;
        color: var(--text-muted);
    }

    .note-card-body {
        font-size: 0.83rem;
        color: var(--text-mid);
        line-height: 1.5;
        white-space: pre-wrap;
        word-break: break-word;
    }

    /* Empty state */
    .notes-empty {
        text-align: center;
        padding: 1.5rem 1rem;
        color: var(--text-muted);
    }

        .notes-empty span {
            font-size: 2rem;
            display: block;
            margin-bottom: 0.5rem;
        }

        .notes-empty p {
            font-size: 0.83rem;
            margin: 0;
        }

    /* ── Keep the whole page scrolling normally ── */
    body {
        overflow: auto; /* remove any overflow:hidden */
    }

    /* ── Fix the case header to the top ── */
    .case-header {
        position: sticky;
        top: 0;
        z-index: 200;
        background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%) !important;
        border-bottom: 3px solid var(--accent) !important;
        padding: .75rem 1.25rem !important;
        box-shadow: var(--shadow-lg);
        color: var(--white) !important;
    }

    .k-tabstrip > .k-tabstrip-items-wrapper {
        position: sticky;
        top: 0px;
        z-index: 190;
        background: var(--blue-800) !important;
        border-radius: 0 !important;
        border-bottom: 2px solid var(--blue-600) !important;
        padding: 0 8px;
    }

    /* ── Tab content scrolls naturally with the page ── */
    .k-tabstrip > .k-content {
        background: var(--white) !important;
        border: none !important;
        box-shadow: var(--shadow-md);
        overflow: visible !important; /* let content grow to full height */
    }

    .case-workspace-page {
        max-width: 100vw;
        overflow-x: hidden;
    }

        .case-workspace-page .case-header {
            margin: 0 !important;
        }

        .case-workspace-page .status-wrap {
            min-width: 0;
        }

        .case-workspace-page .status-field {
            width: 180px;
        }

        .case-workspace-page .tab-inner {
            padding: .35rem .75rem .75rem !important;
            max-width: 100%;
            overflow-x: hidden;
        }

        .case-workspace-page .left-col {
            flex: 1 1 auto;
            min-width: 0;
            width: auto;
        }

            .case-workspace-page .left-col .k-tabstrip,
            .case-workspace-page .left-col .k-tabstrip-content,
            .case-workspace-page .left-col .k-content,
            .case-workspace-page .left-col .k-tabstrip-content.k-active,
            .case-workspace-page .left-col form,
            .case-workspace-page .left-col .card,
            .case-workspace-page .left-col .card-body {
                max-width: 100%;
                overflow-x: hidden;
            }

                .case-workspace-page .left-col .k-tabstrip-content,
                .case-workspace-page .left-col .k-tabstrip-content.k-active,
                .case-workspace-page .left-col .k-content {
                    padding: 0 !important;
                }

        .case-workspace-page .tabstrip-shell {
            position: relative;
            height: 100%;
            overflow: visible !important;
        }

            .case-workspace-page .tabstrip-shell .k-tabstrip {
                position: relative;
                z-index: 1;
            }

        .case-workspace-page .right-col {
            flex: 0 0 32%;
            max-width: 32%;
            min-width: 360px;
            min-height: 0;
        }

            .case-workspace-page .right-col.notes-collapsed {
                flex: 0 0 34px;
                max-width: 34px;
                min-width: 34px;
                padding-left: 0 !important;
            }

        .case-workspace-page .left-col .bg-white.border-bottom {
            display: none;
        }

        .case-workspace-page .left-col .bg-light.py-4 {
            background: transparent !important;
            padding: 0 !important;
        }

        .case-workspace-page .left-col .container {
            max-width: none !important;
            width: 100% !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        .case-workspace-page .left-col .client-intake-form .page-progress-header .container {
            padding-top: .25rem !important;
            padding-bottom: .25rem !important;
        }

        .case-workspace-page .left-col .card {
            border-color: #c7d7ea;
            box-shadow: none;
            width: 100%;
        }

        .case-workspace-page .left-col .card-body {
            padding: 1.25rem !important;
        }

        .case-workspace-page .left-col .divider {
            margin: 1.35rem 0;
        }

        .case-workspace-page .left-col .section-header {
            margin-top: 0;
            margin-bottom: 1.15rem;
        }

        .case-workspace-page .case-readonly-alert {
            align-items: center;
            background: #fff7ed;
            border: 1px solid #fdba74;
            border-radius: 6px;
            color: #9a3412;
            display: flex;
            font-size: .9rem;
            font-weight: 700;
            gap: .5rem;
            margin: .65rem .75rem;
            padding: .7rem .9rem;
        }

        .case-workspace-page .case-readonly-fieldset {
            border: 0;
            margin: 0;
            min-inline-size: 0;
            padding: 0;
        }

            .case-workspace-page .case-readonly-fieldset[disabled] {
                pointer-events: none;
            }

    @media (max-width: 1199px) {
        .workspace-body {
            height: auto;
            overflow: visible;
        }

        .workspace-row {
            flex-wrap: wrap !important;
            gap: .75rem;
        }

        .case-workspace-page .left-col,
        .case-workspace-page .right-col {
            flex: 0 0 100%;
            max-width: 100%;
            min-width: 0;
            height: auto;
            padding: 0 !important;
        }

        .case-workspace-page .left-col {
            overflow: visible;
        }

        .notes-panel {
            min-height: 280px;
        }

        .case-workspace-page .right-col.notes-collapsed {
            flex: 0 0 100%;
            max-width: 100%;
            min-width: 0;
            min-height: 46px;
        }

        .notes-toggle-anchor {
            left: 12px;
            top: -12px;
        }

        .notes-collapsed-rail {
            min-height: 46px;
        }

            .notes-collapsed-rail span {
                transform: none;
            }

    }

    @media (max-width: 767px) {
        .case-header {
            align-items: flex-start !important;
            gap: .75rem;
            padding: .75rem !important;
        }

        .case-workspace-page .status-wrap {
            flex-wrap: wrap;
            width: 100%;
        }

        .case-workspace-page .status-field {
            flex: 1 1 150px;
            width: auto;
        }

        .workspace-body {
            padding: .6rem;
        }
    }

