/*
    Distributor Admin landing page theme.

    Scoped entirely under .distributor-admin-shell so it overrides the Telerik swatch,
    bootstrap and site.css for this page only and leaves the rest of the site untouched.
    This file is loaded last in _Layout.cshtml so it wins on equal specificity.
*/

.distributor-admin-shell {
    --da-blue: #1552c0;
    --da-blue-dark: #0f3f96;
    --da-navy: #0b2d6b;
    --da-page-bg: #f4f6f9;
    --da-surface: #ffffff;
    --da-border: #e3e7ee;
    --da-text: #1f2733;
    --da-text-muted: #6b7382;
    --da-rail-w: 232px;
    --da-header-h: 64px;
    position: fixed;
    inset: 0;
    display: flex;
    background: var(--da-page-bg);
    color: var(--da-text);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    overflow: hidden;
}

    /* ---------------------------------------------------------- left rail */

    .distributor-admin-shell .da-rail {
        width: var(--da-rail-w);
        flex: 0 0 var(--da-rail-w);
        background: var(--da-surface);
        border-right: 1px solid var(--da-border);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .distributor-admin-shell .da-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 20px 20px 18px;
    }

    .distributor-admin-shell .da-brand-mark {
        width: 40px;
        height: 44px;
        flex: 0 0 40px;
        border-radius: 6px 6px 14px 14px;
        background: var(--da-navy);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .distributor-admin-shell .da-brand-name {
        font-size: 19px;
        font-weight: 700;
        letter-spacing: .5px;
        line-height: 1.1;
        color: var(--da-navy);
    }

    .distributor-admin-shell .da-brand-tag {
        font-size: 7.5px;
        letter-spacing: 1.1px;
        color: var(--da-text-muted);
        text-transform: uppercase;
    }

    .distributor-admin-shell .da-rail-sep {
        height: 1px;
        background: var(--da-border);
        margin: 4px 20px 12px;
    }

    /* Telerik drawer overrides: flat, borderless, full-width items */
    .distributor-admin-shell .da-rail .k-drawer,
    .distributor-admin-shell .da-rail .k-drawer-wrapper {
        width: 100%;
        background: transparent;
        border: 0;
    }

    .distributor-admin-shell .da-rail .k-drawer-items {
        padding: 0 12px;
    }

        /* The ItemTemplate renders inside Telerik's own <li class="k-drawer-item">. The swatch paints
   that wrapper on selection/hover/focus, which showed through as the accent color around the
   item. Neutralize the wrapper entirely so only .da-nav-item below provides the visuals. */
        .distributor-admin-shell .da-rail .k-drawer-items .k-drawer-item,
        .distributor-admin-shell .da-rail .k-drawer-items .k-drawer-item:hover,
        .distributor-admin-shell .da-rail .k-drawer-items .k-drawer-item.k-selected,
        .distributor-admin-shell .da-rail .k-drawer-items .k-drawer-item.k-selected:hover,
        .distributor-admin-shell .da-rail .k-drawer-items .k-drawer-item.k-state-selected,
        .distributor-admin-shell .da-rail .k-drawer-items .k-drawer-item.k-state-selected:hover,
        .distributor-admin-shell .da-rail .k-drawer-items .k-drawer-item.k-state-hover,
        .distributor-admin-shell .da-rail .k-drawer-items .k-drawer-item.k-focus,
        .distributor-admin-shell .da-rail .k-drawer-items .k-drawer-item.k-hover {
            padding: 0;
            background: transparent;
            background-color: transparent;
            color: inherit;
            border: 0;
            box-shadow: none;
            outline: none;
        }

            /* The swatch also uses an ::before/::after overlay to tint the selected row. */
            .distributor-admin-shell .da-rail .k-drawer-items .k-drawer-item::before,
            .distributor-admin-shell .da-rail .k-drawer-items .k-drawer-item::after,
            .distributor-admin-shell .da-rail .k-drawer-items .k-drawer-item.k-selected::before,
            .distributor-admin-shell .da-rail .k-drawer-items .k-drawer-item.k-selected::after {
                display: none;
                content: none;
                background: transparent;
                opacity: 0;
            }

    .distributor-admin-shell .da-nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 9px 12px;
        margin-bottom: 2px;
        border-radius: 6px;
        font-size: 14px;
        color: var(--da-text);
        cursor: pointer;
        white-space: nowrap;
    }

        .distributor-admin-shell .da-nav-item:hover {
            background: #f1f4f9;
        }

        .distributor-admin-shell .da-nav-item .k-svg-icon {
            color: var(--da-text-muted);
        }

        /* Selected nav item: light gray fill only, matching the mockup. No accent bar or tint. */
        .distributor-admin-shell .da-nav-item.da-nav-selected {
            background: #eceef2;
            color: var(--da-text);
            font-weight: 600;
        }

            .distributor-admin-shell .da-nav-item.da-nav-selected .k-svg-icon {
                color: var(--da-text);
            }

        .distributor-admin-shell .da-nav-item.da-nav-dim,
        .distributor-admin-shell .da-nav-item.da-nav-dim .k-svg-icon {
            color: #9aa1ad;
        }

    .distributor-admin-shell .da-rail-footer {
        margin-top: auto;
        padding: 16px 20px 18px;
    }

    .distributor-admin-shell .da-support-title {
        font-size: 17px;
        font-weight: 600;
        margin-bottom: 10px;
    }

    .distributor-admin-shell .da-support-line {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 11.5px;
        color: var(--da-blue);
        margin-bottom: 6px;
    }

    .distributor-admin-shell .da-copyright {
        margin-top: 12px;
        font-size: 10.5px;
        color: var(--da-text-muted);
    }

    /* ------------------------------------------------------------ main col */

    .distributor-admin-shell .da-main {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        min-width: 0;
        overflow: hidden;
    }

    .distributor-admin-shell .da-topbar {
        height: var(--da-header-h);
        flex: 0 0 var(--da-header-h);
        background: var(--da-surface);
        border-bottom: 1px solid var(--da-border);
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 24px;
    }

    .distributor-admin-shell .da-crumb {
        font-size: 13px;
        color: var(--da-text-muted);
    }

    .distributor-admin-shell .da-topbar-right {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .distributor-admin-shell .da-bell {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        background: #eef1f6;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--da-text-muted);
    }

    .distributor-admin-shell .da-user {
        text-align: right;
        line-height: 1.2;
    }

    .distributor-admin-shell .da-user-name {
        font-size: 12.5px;
        font-weight: 700;
    }

    .distributor-admin-shell .da-user-company {
        font-size: 11px;
        color: var(--da-text-muted);
    }

    .distributor-admin-shell .da-avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: var(--da-blue);
        color: #fff;
        font-size: 11.5px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ------------------------------------------------------------- content */

    .distributor-admin-shell .da-content {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 26px 28px;
    }

    .distributor-admin-shell .da-card {
        background: var(--da-surface);
        border: 1px solid var(--da-border);
        border-radius: 8px;
        box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
        overflow: hidden;
        position: relative;
    }

    .distributor-admin-shell .da-card-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        padding: 24px 24px 0;
    }

    .distributor-admin-shell .da-title {
        font-size: 26px;
        font-weight: 700;
        margin: 0;
    }

    .distributor-admin-shell .da-head-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* search box */
    .distributor-admin-shell .da-search .k-input,
    .distributor-admin-shell .da-search.k-input {
        width: 250px;
        height: 36px;
        border-radius: 6px;
        border-color: var(--da-border);
        font-size: 13px;
    }

    /* buttons */
    .distributor-admin-shell .da-btn-filter.k-button {
        height: 36px;
        border-radius: 6px;
        background: #fff;
        border-color: var(--da-border);
        color: var(--da-text);
        font-size: 13px;
        font-weight: 600;
    }

    .distributor-admin-shell .da-btn-primary.k-button {
        height: 36px;
        border-radius: 6px;
        background: var(--da-blue);
        border-color: var(--da-blue);
        color: #fff;
        font-size: 13px;
        font-weight: 600;
    }

        .distributor-admin-shell .da-btn-primary.k-button:hover {
            background: var(--da-blue-dark);
            border-color: var(--da-blue-dark);
        }

    /* tabs */
    .distributor-admin-shell .da-tabs .k-tabstrip-items-wrapper {
        border-bottom: 1px solid var(--da-border);
        padding: 0 24px;
        margin-top: 10px;
    }

    /* Telerik emits both the legacy `.k-item` and the modern `.k-tabstrip-item` class, and the base
   Telerik theme colors every tab state with its primary accent variable. Every state is listed
   here, including `:active`, so no interaction can reintroduce the accent color. */
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-tabstrip-item,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item:hover,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-tabstrip-item:hover,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item.k-hover,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-tabstrip-item.k-hover,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item:active,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-tabstrip-item:active {
        border: 0;
        background: transparent;
        padding: 0;
        margin-right: 26px;
        font-size: 15px;
        color: var(--da-text-muted) !important;
        box-shadow: none;
    }

    /* The link carries the text, the padding and the underline. The base theme forces
   `border-block-end-color: transparent !important` on the active `.k-item`, so an underline on the
   item itself can never win -- drawing it on the link avoids that fight entirely. The transparent
   border on the resting state reserves the space so switching tabs does not shift the text. */
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-link {
        padding: 0 2px 8px;
        color: inherit !important;
        border-bottom: 2px solid transparent;
    }

    /* Active tab: bold, dark and underlined, matching the mockup. */
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item.k-active,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item.k-selected,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item.k-state-active,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item.k-state-selected,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-tabstrip-item.k-active,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-tabstrip-item.k-selected,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item.k-active:hover,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item.k-selected:hover,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-tabstrip-item.k-active:hover,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-tabstrip-item.k-selected:hover {
        color: var(--da-text) !important;
        background: transparent;
        font-weight: 700;
        box-shadow: none;
    }

        .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item.k-active .k-link,
        .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item.k-selected .k-link,
        .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item.k-state-active .k-link,
        .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item.k-state-selected .k-link,
        .distributor-admin-shell .da-tabs .k-tabstrip-items .k-tabstrip-item.k-active .k-link,
        .distributor-admin-shell .da-tabs .k-tabstrip-items .k-tabstrip-item.k-selected .k-link {
            border-bottom: 2px solid var(--da-text);
        }

    /* Remove the theme's own active-tab indicator bar. */
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item::after,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item::before,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-tabstrip-item::after,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-tabstrip-item::before {
        display: none;
        content: none;
    }

    /* Keep focus from reintroducing the accent ring. */
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item:focus,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-item.k-focus,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-tabstrip-item:focus,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-tabstrip-item.k-focus,
    .distributor-admin-shell .da-tabs .k-tabstrip-items .k-link:focus {
        box-shadow: none;
        outline: none;
    }

    .distributor-admin-shell .da-tabs .k-tabstrip-content {
        border: 0;
        padding: 0;
    }

    /* grid */
    .distributor-admin-shell .da-grid.k-grid {
        border: 0;
        font-size: 13.5px;
    }

    .distributor-admin-shell .da-grid .k-grid-header {
        background: #f7f8fb;
        border-bottom: 1px solid var(--da-border);
    }

        .distributor-admin-shell .da-grid .k-grid-header th {
            background: transparent;
            border: 0;
            padding: 11px 16px;
            font-size: 10.5px;
            font-weight: 700;
            letter-spacing: .7px;
            text-transform: uppercase;
            color: var(--da-text-muted);
        }

    .distributor-admin-shell .da-grid td {
        border: 0;
        border-bottom: 1px solid #eef1f5;
        padding: 16px;
        color: var(--da-text);
    }

    .distributor-admin-shell .da-grid tr.k-table-row:hover td,
    .distributor-admin-shell .da-grid tr.k-alt td {
        background: transparent;
    }

    .distributor-admin-shell .da-grid tr.k-table-row:hover td {
        background: #fafbfd;
    }

    .distributor-admin-shell .da-actions-cell {
        text-align: right;
    }

    .distributor-admin-shell .da-kebab.k-button {
        background: transparent;
        border: 0;
        color: var(--da-text);
        padding: 4px 8px;
    }

    /* ---------------------------------------------------------- breadcrumb */

    .distributor-admin-shell .da-breadcrumb {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: var(--da-text);
        margin-bottom: 12px;
    }

    .distributor-admin-shell .da-breadcrumb-link {
        color: var(--da-blue);
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
    }

        .distributor-admin-shell .da-breadcrumb-link:hover {
            text-decoration: underline;
        }

    .distributor-admin-shell .da-topbar .da-breadcrumb {
        margin-bottom: 0;
    }

    /* ---------------------------------------------------------- track onboarding */

    .distributor-admin-shell .da-onb-head {
        padding: 20px 24px;
        margin-bottom: 12px;
    }

    .distributor-admin-shell .da-onb-sub {
        margin-top: 6px;
        font-size: 15px;
        font-weight: 600;
    }

    /* Chevron stepper: each step is an arrow that overlaps the next. */
    .distributor-admin-shell .da-onb-steps {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        margin-bottom: 12px;
    }

    .distributor-admin-shell .da-onb-step {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 18px 14px 32px;
        background: var(--da-surface);
        font-weight: 600;
        font-size: 15px;
        clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
        margin-right: -12px;
        filter: drop-shadow(1px 0 0 var(--da-border));
    }

    .distributor-admin-shell .da-onb-step-first {
        padding-left: 18px;
        clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
        border-radius: 6px 0 0 6px;
    }

    .distributor-admin-shell .da-onb-cols {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        align-items: stretch;
    }

    .distributor-admin-shell .da-onb-col {
        padding: 14px 16px;
        min-height: 260px;
    }

    .distributor-admin-shell .da-onb-last {
        font-size: 11px;
        color: var(--da-text-muted);
        margin-bottom: 12px;
    }

    .distributor-admin-shell .da-onb-group {
        font-size: 12px;
        font-weight: 600;
        margin: 10px 0 6px;
    }

    .distributor-admin-shell .da-onb-event {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
    }

    .distributor-admin-shell .da-onb-label {
        font-size: 14px;
        color: var(--da-text);
    }

    .distributor-admin-shell .da-onb-date {
        font-size: 11px;
        color: var(--da-text-muted);
    }

    .distributor-admin-shell .da-onb-detail {
        font-size: 12px;
        margin: -6px 0 10px;
        display: flex;
        flex-direction: column;
    }

    .distributor-admin-shell .da-onb-ok {
        color: #2e9e5b;
        font-size: 20px;
    }

    .distributor-admin-shell .da-onb-pending {
        color: #c3c9d3;
        font-size: 20px;
    }

/* ------------------------------------------------- top-nav landing layout */

.distributor-admin-shell.da-shell-top {
    flex-direction: column;
    overflow-y: auto;
}

    .da-shell-top .da-topbar {
        position: sticky;
        top: 0;
        z-index: 10;
        padding: 0 26px;
    }

    .da-shell-top .da-topbar-left {
        display: flex;
        align-items: center;
        gap: 40px;
    }

    .da-shell-top .da-logo {
        height: 36px;
        width: auto;
    }

    .da-shell-top .da-logo-link {
        display: inline-flex;
        align-items: center;
        cursor: pointer;
    }

    .da-shell-top .da-home-link {
        font-size: 13px;
        color: var(--da-text);
        text-decoration: none;
        cursor: pointer;
    }

    .da-shell-top .da-topbar-right .da-user-company {
        font-size: 12.5px;
        font-weight: 600;
        color: var(--da-text);
    }

    .da-shell-top .da-bell.k-button {
        width: 34px;
        height: 34px;
        background: #eef1f6;
        color: var(--da-text-muted);
    }

    .da-shell-top .da-content {
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        padding: 22px 24px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        overflow: visible;
    }

    /* message banner */
    .da-shell-top .da-banner {
        background: #0b78d9;
        color: #fff;
        border-radius: 4px;
        overflow: hidden;
    }

    .da-shell-top .da-banner-body {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 8px 16px;
        flex-wrap: wrap;
    }

    .da-shell-top .da-banner-message {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
    }

    .da-shell-top .da-btn-banner.k-button {
        background: #fff;
        border-color: #fff;
        color: var(--da-navy);
        font-size: 12px;
        font-weight: 600;
        border-radius: 4px;
    }

    .da-shell-top .da-banner-progress.k-progressbar {
        height: 5px;
        border-radius: 0;
        background: #fff;
    }

        .da-shell-top .da-banner-progress.k-progressbar .k-progress-status-wrap,
        .da-shell-top .da-banner-progress.k-progressbar .k-selected,
        .da-shell-top .da-banner-progress.k-progressbar .k-progressbar-value {
            background: #0533c0;
        }

    /* tabs + search card */
    .da-shell-top .da-tabs-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 20px 22px 18px;
        overflow: visible;
    }

    .da-shell-top .da-tabs-nav {
        flex: 1 1 auto;
        min-width: 0;
    }

        .da-shell-top .da-tabs-nav .k-tabstrip-items-wrapper {
            padding: 0;
            margin-top: 0;
            border-bottom: 2px solid var(--da-border);
        }

        .da-shell-top .da-tabs-nav .k-tabstrip-content,
        .da-shell-top .da-tabs-nav > .k-content {
            display: none;
        }

    .da-shell-top .da-global-search.k-input {
        flex: 0 0 214px;
        width: 214px;
        font-size: 11px;
    }

    /* dashboard */
    .da-shell-top .da-todo-card {
        padding: 22px 22px 0;
        height: 100%;
    }

    .da-shell-top .da-list-card {
        padding-top: 16px;
        height: auto;
    }

    .da-shell-top .da-kebab.k-button {
        flex: 0 0 auto;
    }

    .da-shell-top .da-todo-title {
        font-size: 20px;
        font-weight: 600;
        margin: 0 0 14px;
    }

    .da-shell-top .da-todo-head {
        display: flex;
        justify-content: space-between;
        font-size: 11px;
        font-weight: 600;
        padding: 0 10px 10px 16px;
        border-bottom: 1px solid var(--da-border);
        margin: 0 -22px;
        padding-left: 40px;
        padding-right: 32px;
    }

    .da-shell-top .da-link {
        color: var(--da-text-muted);
        cursor: pointer;
        text-decoration: none;
    }

    .da-shell-top .da-todo-row,
    .da-shell-top .da-invoice-row {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 0;
        border-bottom: 1px solid var(--da-border);
    }

    .da-shell-top .da-todo-row {
        margin: 0 -22px;
        padding-left: 22px;
        padding-right: 22px;
    }

        .da-shell-top .da-todo-row:last-child {
            border-bottom: 0;
        }

    .da-shell-top .da-dot {
        width: 5px;
        height: 5px;
        border-radius: 50%;
        flex: 0 0 5px;
    }

    .da-shell-top .da-dot-light { background: #d6dae1; }
    .da-shell-top .da-dot-mid { background: #8c93a0; }
    .da-shell-top .da-dot-dark { background: #2a313c; }

    .da-shell-top .da-todo-text {
        flex: 1 1 auto;
        min-width: 0;
    }

    .da-shell-top .da-todo-name {
        font-size: 11.5px;
        color: var(--da-text);
    }

    .da-shell-top .da-todo-sub {
        font-size: 9.5px;
        color: var(--da-text-muted);
    }

    .da-shell-top .da-todo-amount {
        flex: 0 0 110px;
        font-size: 10px;
    }

    .da-shell-top .da-btn-row.k-button {
        flex: 0 0 85px;
        font-size: 11px;
        font-weight: 600;
        border-color: #9aa1ad;
        color: var(--da-text);
        background: #fff;
    }

    .da-shell-top .da-invoice-card {
        padding: 22px;
    }

    .da-shell-top .da-invoice-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        font-weight: 600;
    }

    .da-shell-top .da-invoice-total {
        font-size: 24px;
        font-weight: 500;
        margin-top: 10px;
    }

    .da-shell-top .da-invoice-sub,
    .da-shell-top .da-invoice-note {
        font-size: 10px;
        color: var(--da-text-muted);
    }

    .da-shell-top .da-btn-approve.k-button {
        width: 100%;
        margin-top: 22px;
        background: #0533c0;
        border-color: #0533c0;
    }

    .da-shell-top .da-invoice-note {
        text-align: center;
        margin: 8px 0 20px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--da-border);
    }

    .da-shell-top .da-invoice-row:last-child {
        border-bottom: 0;
    }

    .da-shell-top .da-avatar-light {
        background: #dfe6f3;
        color: var(--da-text);
        font-size: 9px;
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
    }

    .da-shell-top .da-invoice-amount {
        font-size: 10.5px;
    }

@media (max-width: 767px) {
    .da-shell-top .da-tabs-card {
        flex-direction: column;
        align-items: stretch;
    }

    .da-shell-top .da-global-search.k-input {
        flex-basis: auto;
        width: 100%;
    }

    .da-shell-top .da-todo-amount {
        flex-basis: auto;
    }
}

/* ------------------------------------------------------ payor portal */

.pp-shell .da-content {
    flex: 1 0 auto;
    padding-top: 28px;
    padding-bottom: 40px;
}

.pp-shell .pp-company {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--da-text);
}

.pp-shell .da-topbar-left {
    gap: 24px;
}

/* tab bar */
.pp-shell .pp-tabbar {
    background: var(--da-surface);
    border-bottom: 1px solid var(--da-border);
}

.pp-shell .pp-tabbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

    .pp-shell .pp-tabbar-inner .da-tabs-nav .k-tabstrip-items-wrapper {
        border-bottom: 0;
    }

.pp-shell .pp-tab-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.pp-shell .pp-tabbar-inner .da-global-search.k-input {
    margin-bottom: 8px;
    background: #f4f6f9;
}

/* collect panel */
.pp-shell .pp-ask.k-input {
    height: 44px;
    background: #eef1f6;
    border-color: transparent;
    font-size: 13px;
}

.pp-shell .pp-ask-send.k-button {
    width: 30px;
    height: 30px;
    margin-right: 6px;
    background: var(--da-navy);
    border-color: var(--da-navy);
}

.pp-shell .pp-ask-note {
    font-size: 10px;
    color: var(--da-text-muted);
    margin: 8px 0 16px 10px;
}

.pp-shell .pp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

    .pp-shell .pp-chips .k-chip {
        background: #eef1f6;
        border-color: transparent;
        color: var(--da-text);
        font-size: 11px;
    }

        .pp-shell .pp-chips .k-chip:hover {
            background: #e1e7f2;
        }

.pp-shell .pp-todo-head {
    margin: 0;
    padding: 0 0 10px;
    font-size: 10px;
    letter-spacing: .8px;
    color: var(--da-text-muted);
}

.pp-shell .pp-todos .da-todo-row {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
}

.pp-shell .pp-strong {
    font-weight: 600;
}

.pp-shell .pp-amount {
    flex: 0 0 auto;
    font-size: 12px;
    text-align: right;
    margin-right: 20px;
}

.pp-shell .pp-btn-review.k-button {
    flex: 0 0 110px;
    background: var(--da-blue);
    border-color: var(--da-blue);
    color: #fff;
    font-size: 11px;
}

    .pp-shell .pp-btn-review.k-button:hover {
        background: var(--da-blue-dark);
        border-color: var(--da-blue-dark);
    }

.pp-shell .pp-caps {
    font-size: 10px;
    letter-spacing: .8px;
    color: var(--da-text-muted);
}

/* footer */
.pp-shell .pp-footer {
    background: #eef1f6;
    border-top: 1px solid var(--da-border);
    font-size: 11.5px;
    color: var(--da-text);
}

.pp-shell .pp-footer-notice {
    text-align: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--da-border);
}

.pp-shell .pp-footer a {
    color: var(--da-blue);
    text-decoration: underline;
    cursor: pointer;
}

.pp-shell .pp-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 24px;
}

.pp-shell .pp-footer-title {
    font-size: 10px;
    letter-spacing: 1.2px;
    font-weight: 600;
    color: var(--da-text-muted);
    margin-bottom: 12px;
}

.pp-shell .pp-footer-link {
    display: block;
    margin-bottom: 8px;
}

    .pp-shell .pp-footer-link.pp-inline {
        display: inline;
    }

.pp-shell .pp-footer-chat {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

    .pp-shell .pp-footer-chat .pp-footer-link {
        margin-bottom: 0;
    }

.pp-shell .pp-online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2e9e5b;
}

.pp-shell .pp-hours {
    display: grid;
    grid-template-columns: 80px auto;
    row-gap: 6px;
}

.pp-shell .pp-muted {
    color: var(--da-text-muted);
}

.pp-shell .pp-footer-bottom {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 28px;
    font-size: 10.5px;
}

.pp-shell .pp-footer-logo {
    height: 22px;
    width: auto;
}

.pp-shell .pp-footer-copy {
    margin-left: auto;
    text-align: right;
}

@media (max-width: 767px) {
    .pp-shell .pp-tabbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .pp-shell .pp-tabbar-inner .da-global-search.k-input {
        flex-basis: auto;
        width: 100%;
    }

    .pp-shell .pp-footer-cols.k-grid-layout {
        grid-template-columns: 1fr !important;
    }

    .pp-shell .pp-footer-copy {
        margin-left: 0;
        text-align: left;
    }
}

/* Setup Organization */
.setup-org {
    padding: 20px;
}

.setup-org-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 20px;
    margin: -20px -20px 20px;
    border-bottom: 1px solid var(--da-border, #e5e7eb);
}



.setup-org-header .setup-org-back.k-button,
.setup-org-header .setup-org-back.k-button .k-svg-icon {
    color: var(--da-blue);
}

.setup-org-header .setup-org-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.setup-org-card.k-card {
    height: 100%;
}

.setup-org-list-body.k-card-body {
    padding: 0;
    height: 240px;
    overflow-y: auto;
}

.setup-org-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.setup-org-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--da-border, #e5e7eb);
}

.setup-org-list-item:last-child {
    border-bottom: none;
}

.setup-org-list-item .setup-org-list-name {
    flex: 1 1 auto;
}

.setup-org-list-item .setup-org-remove.k-button {
    margin-left: auto;
}

.setup-org-list-item .setup-org-level-badge.k-badge {
    position: static;
    transform: none;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    justify-content: center;
    background: var(--da-blue);
    border-color: var(--da-blue);
    color: #fff;
}

.setup-org .da-btn-primary.k-button {
    background: var(--da-blue);
    border-color: var(--da-blue);
    color: #fff;
}

.setup-org .da-btn-primary.k-button:hover {
    background: var(--da-blue-dark);
    border-color: var(--da-blue-dark);
}

.setup-org-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--da-text-muted, #6b7280);
}

/* Custom SVG icons (wwwroot/images/icons) */
.app-icon { width: 1em; height: 1em; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.k-button .app-icon { width: 16px; height: 16px; }
.app-icon-xl { width: 48px; height: 48px; }
.app-icon-xxxl { width: 96px; height: 96px; }

/* BOC client onboarding form */
.boc .boc-header { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 12px 0; margin-bottom: 8px; }
.boc .boc-header > * { align-self: center; margin-top: 0; margin-bottom: 0; }
.boc .boc-header-text { flex: 1 1 auto; }
.boc .boc-logo { height: 48px; margin-left: 8px; }
.boc .boc-title { margin: 0; font-size: 1.6rem; font-weight: 700; color: #0f2a5c; }
.boc .boc-subtitle { font-size: .9rem; color: #0f2a5c; }
.boc .boc-readonly-value { min-height: 2.25rem; padding: .375rem 0; display: flex; align-items: center; font-weight: 600; }
.boc .k-form-label { font-weight: 600; margin-bottom: 4px; display: block; color: #1f2937; }
.boc .boc-row { margin-bottom: 14px; }
.boc .boc-row .k-grid-layout-item { min-width: 0; }
.boc .boc-info { display: flex; gap: 16px; align-items: flex-start; background: #eaf3fb; border: 1px solid #cfe2f3; border-radius: 6px; padding: 14px 20px; margin-bottom: 20px; }
.boc .boc-info-icon { color: #1f6fc5; flex: 0 0 auto; }
.boc .boc-info-content { flex: 1 1 auto; min-width: 0; }
.boc .boc-info-title { font-weight: 700; color: #0f2a5c; }
.boc .boc-info-toggle { all: unset; cursor: pointer; display: flex; width: 100%; justify-content: space-between; align-items: center; }
.boc .boc-info-toggle:focus-visible { outline: 2px solid #1f6fc5; outline-offset: -2px; }
.boc .boc-info-text { margin-top: 4px; font-size: .9rem; color: #1f2937; }
.boc .boc-info-text ol { margin: 0; padding-left: 20px; }
.boc .boc-section { margin-bottom: 24px; border: none; box-shadow: 0 1px 4px rgba(16, 24, 40, .12); overflow: hidden; }
.boc .boc-section > .k-card-header { padding: 0; border: none; }
.boc .boc-section-header { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 20px; background: #0f2a5c; color: #fff; }
.boc .boc-section-header:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
.boc .boc-section-title { flex: 1 1 auto; font-weight: 700; letter-spacing: .03em; }
.boc .boc-section > .k-card-body { padding: 20px; }
.boc .boc-person { margin-bottom: 20px; border: 1px solid #e5e7eb; box-shadow: none; }
.boc .boc-person > .k-card-header { background: transparent; border: none; padding: 16px 20px 0; }
.boc .boc-person-header { display: flex; align-items: center; gap: 14px; }
.boc .boc-person-avatar { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #0f2a5c; color: #fff; flex: 0 0 auto; }
.boc .boc-person-title { font-size: 1.25rem; font-weight: 700; color: #0f2a5c; }
.boc .boc-person-subtitle { font-size: .85rem; color: #4b5563; }
.boc .boc-subheader { display: flex; align-items: center; gap: 10px; background: #eaf3fb; color: #0f2a5c; font-weight: 700; padding: 8px 14px; border-radius: 4px; margin: 8px 0 14px; }
.boc .boc-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; padding-right: 8px; }
.boc .boc-section-header-static { cursor: default; }
.boc .boc-footer { border-top: 1px solid #e5e7eb; margin-top: 24px; padding-top: 8px; display: flex; justify-content: space-between; flex-wrap: wrap; }
.boc .boc-footer-tagline { color: #0f2a5c; font-weight: 700; font-style: italic; }
.boc .boc-footer-page { color: #0f2a5c; font-style: italic; }


.boc .boc-form { border: 0; margin: 0; padding: 0; min-width: 0; }
.boc .boc-form-loading { pointer-events: none; opacity: 0.6; }

.boc .boc-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
