/* Contacts share the menu-to-menu workspace geometry of SMS. */
.crm-wizard-modal {
    --cj-primary: var(--ws-primary, var(--custom-color-bg, #006d91));
    --cj-line: var(--ws-line, #e4ebef);
    --cj-soft: var(--ws-soft, #f5f9fa);
    color: #243b4a
}

.crm-wizard-modal .modal-dialog {
    position: relative !important;
    inset: auto !important;
    width: calc(100% - 48px) !important;
    max-width: 1120px !important;
    height: auto !important;
    margin: 24px auto !important;
    overflow: visible !important
}

.crm-wizard-modal .modal-content {
    height: min(850px, calc(100vh - 48px));
    height: min(850px, calc(100dvh - 48px));
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--cj-line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px #18334326;
    background: #fff
}

.crm-wizard-modal .modal-content > div:first-child {
    flex: none;
    padding: 16px 24px !important;
    border-bottom: 1px solid var(--cj-line);
    box-shadow: none !important;
    background: #fff
}

.crm-wizard-modal .modal-body {
    flex: 1;
    min-height: 0;
    padding: 0 !important;
    overflow: hidden
}

.crm-wizard-modal .modal-body > div, .crm-wizard-form, .crm-wizard-frame {
    height: 100%;
    max-height: 640px;
    min-height: 0;
}

.crm-wizard-frame {
    display: flex;
    flex-direction: column
}

.crm-wizard-layout {
    display: grid;
    grid-template-columns:272px minmax(0, 1fr);
    flex: 1;
    min-height: 0
}

.crm-wizard-sidebar {
    min-width: 0;
    padding: 26px 18px;
    background: linear-gradient(155deg, var(--cj-soft), #fff);
    border-right: 1px solid var(--cj-line);
    overflow-y: auto;
    overscroll-behavior: contain
}

.crm-wizard-form .crm-wizard-intro {
    padding: 0 10px 22px
}

.crm-wizard-form .crm-wizard-intro .cj-eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--cj-primary)
}

.crm-wizard-form .crm-wizard-intro h2 {
    font-size: 25px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -.8px;
    margin: 12px 0
}

.crm-wizard-form .crm-wizard-intro p {
    font-size: 12px;
    line-height: 1.7;
    color: #748591;
    margin: 0
}

.crm-wizard-steps {
    display: flex;
    flex-direction: column;
    gap: 5px
}

.crm-wizard-steps > button {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    padding: 10px;
    text-align: left;
    color: #6c7f8b;
    transition: background .15s, border-color .15s
}

.crm-wizard-steps > button:hover, .crm-wizard-address:hover {
    background: #fff;
    border-color: var(--cj-line)
}

.crm-wizard-steps > button.active {
    background: #fff;
    border-color: var(--cj-line);
    box-shadow: 0 3px 12px #18334308;
    color: var(--cj-primary)
}

.crm-wizard-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--cj-line);
    flex: none
}

.crm-wizard-steps > button.active .crm-wizard-step-icon {
    background: var(--cj-primary);
    border-color: var(--cj-primary);
    color: #fff
}

.crm-wizard-step-icon .material-icons {
    font-size: 19px
}

.crm-wizard-steps strong, .crm-wizard-address strong {
    display: block;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5
}

.crm-wizard-steps small, .crm-wizard-address small {
    display: block;
    font-size: 10px;
    line-height: 1.6;
    color: #7d909b
}

.crm-wizard-chevron {
    font-size: 17px !important;
    margin-left: auto;
    opacity: .5
}

.crm-wizard-address-book {
    margin-top: 24px;
    padding: 18px 8px 0;
    border-top: 1px solid var(--cj-line)
}

.crm-wizard-address-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px
}

.crm-wizard-form .crm-wizard-address-heading h3 {
    font-size: 12px;
    font-weight: 700;
    margin: 0
}

.crm-wizard-address-heading > span {
    font-size: 10px;
    color: #7d909b
}

.crm-wizard-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    width: 100%;
    text-align: left;
    padding: 10px;
    margin-bottom: 6px;
    border: 1px solid var(--cj-line);
    border-radius: 10px;
    background: #fff;
    color: #405b6b
}

.crm-wizard-address > span {
    min-width: 0;
    overflow-wrap: anywhere
}

.crm-wizard-address > .material-icons {
    font-size: 18px;
    color: var(--cj-primary);
    flex: none;
    margin-top: 2px
}

.crm-wizard-address.active {
    border-color: var(--cj-primary);
    background: var(--cj-soft)
}

.crm-wizard-address strong small {
    display: inline;
    font-size: 9px;
    color: var(--cj-primary);
    font-weight: 500;
    margin-left: 4px
}

.crm-wizard-form .crm-wizard-address-empty {
    font-size: 11px;
    line-height: 1.7;
    color: #7d909b;
    margin: 0 0 12px
}

.crm-wizard-address-book > .cj-soft-button {
    width: 100%;
    background: transparent;
    border-style: dashed
}

.crm-wizard-main {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 30px 36px;
    background: #fff
}

.crm-wizard-heading {
    margin-bottom: 26px
}

.crm-wizard-heading > .cj-eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--cj-primary)
}

.crm-wizard-form .crm-wizard-heading h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -.8px;
    line-height: 1.3;
    margin: 10px 0
}

.crm-wizard-heading h2:focus {
    outline: none
}

.crm-wizard-form .crm-wizard-heading p {
    font-size: 13px;
    line-height: 1.7;
    color: #748591;
    margin: 0
}

.crm-wizard-progress {
    height: 4px;
    border-radius: 10px;
    background: var(--cj-soft);
    overflow: hidden;
    margin-top: 20px
}

.crm-wizard-progress > span {
    display: block;
    height: 100%;
    border-radius: 10px;
    background: var(--cj-primary);
    transition: width .2s
}

.crm-wizard-basics {
    display: flow-root
}

.crm-wizard-form .form-group {
    margin-left: -8px;
    margin-right: -8px;
    margin-bottom: 20px
}

.crm-wizard-form .form-group > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px
}

.crm-wizard-form label {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 7px;
    color: #405b6b
}

.crm-wizard-form .form-control {
    min-height: 42px;
    border: 1px solid var(--cj-line);
    border-radius: 9px;
    box-shadow: none;
    background: #fff;
    font-size: 13px
}

.crm-wizard-form .form-control:focus {
    border-color: var(--cj-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cj-primary) 9%, transparent)
}

.crm-wizard-form textarea.form-control {
    min-height: 95px;
    resize: vertical
}

.crm-wizard-form .panel {
    border: 0;
    box-shadow: none;
    margin: 0
}

.crm-wizard-form .panel-heading {
    background: var(--cj-soft);
    border: 1px solid var(--cj-line);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    padding: 12px 16px
}

.crm-wizard-form .panel-heading small {
    float: right;
    font-weight: 400;
    color: #7d909b
}

.crm-wizard-form .panel-body {
    padding: 20px 0 0
}

.crm-wizard-form .panel-body > p {
    font-size: 12px;
    line-height: 1.7;
    color: #748591
}

.crm-wizard-form .well {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--cj-line);
    border-radius: 12px;
    box-shadow: none
}

.crm-wizard-form legend {
    padding: 0 6px;
    width: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--cj-primary);
    border: 0;
    margin-bottom: 16px
}

.crm-wizard-footer {
    position: static;
    bottom: auto;
    width: auto;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: none;
    padding: 16px 24px;
    border-top: 1px solid var(--cj-line);
    background: #fff
}

.crm-wizard-footer-note {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #68818c;
    font-size: 11px;
    line-height: 1.6
}

.crm-wizard-footer-note > .material-icons {
    font-size: 21px;
    color: var(--cj-primary)
}

.crm-wizard-footer-note small {
    display: block;
    font-size: 10px;
    color: #8a9ca6
}

.crm-wizard-actions, .crm-wizard-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.crm-wizard-actions {
    justify-content: flex-end;
    flex: none
}

.crm-wizard-save {
    display: contents
}

.crm-wizard-form .crm-wizard-submit {
    padding: 0 !important;
    float: none !important;
    width: auto !important
}

.crm-wizard-submit button[data-dismiss] {
    order: -1;
    background: #fff !important;
    border: 1px solid var(--cj-line) !important;
    color: #68818c !important
}

.crm-wizard-actions .cj-primary-button {
    background: var(--cj-primary);
    color: #fff;
    border-color: var(--cj-primary)
}

.crm-wizard-actions .btn {
    min-height: 40px;
    font-size: 12px;
    border-radius: 9px;
    padding: 9px 14px
}

.crm-wizard-actions button:disabled {
    opacity: .45;
    cursor: not-allowed
}

.crm-wizard-steps button:focus-visible, .crm-wizard-address:focus-visible {
    outline: 2px solid var(--cj-primary);
    outline-offset: 2px
}

@media (max-width: 767px) {
    .crm-wizard-modal .modal-dialog {
        width: calc(100% - 16px) !important;
        margin: 8px auto !important
    }

    .crm-wizard-modal .modal-content {
        height: calc(100vh - 16px);
        height: calc(100dvh - 16px);
        border-radius: 14px
    }

    .crm-wizard-modal .modal-content > div:first-child {
        padding: 12px 16px !important
    }

    .crm-wizard-layout {
        display: flex;
        flex-direction: column
    }

    .crm-wizard-sidebar {
        padding: 10px 12px;
        flex: none;
        border-right: 0;
        border-bottom: 1px solid var(--cj-line);
        overflow: hidden
    }

    .crm-wizard-intro {
        display: none
    }

    .crm-wizard-steps {
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding: 2px
    }

    .crm-wizard-steps > button {
        width: auto;
        flex: none;
        padding: 7px;
        gap: 7px;
        border-color: var(--cj-line)
    }

    .crm-wizard-step-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px
    }

    .crm-wizard-steps strong {
        font-size: 11px
    }

    .crm-wizard-steps small, .crm-wizard-chevron {
        display: none
    }

    .crm-wizard-address-book {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 2px 0;
        margin-top: 8px
    }

    .crm-wizard-address-heading, .crm-wizard-address-empty {
        display: none
    }

    .crm-wizard-address {
        flex: none;
        width: 160px;
        margin: 0;
        padding: 8px
    }

    .crm-wizard-address-book > .cj-soft-button {
        width: auto;
        flex: none;
        font-size: 11px
    }

    .crm-wizard-main {
        flex: 1;
        padding: 20px 18px
    }

    .crm-wizard-form .crm-wizard-heading h2 {
        font-size: 24px
    }

    .crm-wizard-heading {
        margin-bottom: 20px
    }

    .crm-wizard-form .form-control {
        font-size: 16px
    }

    .crm-wizard-footer {
        padding: 12px;
        gap: 8px;
        flex-wrap: wrap
    }

    .crm-wizard-footer-note {
        width: 100%
    }

    .crm-wizard-footer-note small {
        display: none
    }

    .crm-wizard-footer-note > .material-icons {
        font-size: 17px
    }

    .crm-wizard-actions {
        width: 100%;
        justify-content: space-between;
        gap: 5px
    }

    .crm-wizard-actions .btn, .crm-wizard-actions > .cj-soft-button {
        padding: 8px 10px;
        font-size: 11px
    }

    .crm-wizard-submit {
        gap: 5px
    }

    .crm-wizard-form .panel-body .form-group > label {
        margin-bottom: 6px
    }
}

@media (prefers-reduced-motion: reduce) {
    .crm-wizard-progress > span, .crm-wizard-steps > button {
        transition: none
    }
}

.crm-wizard-modal .modal-dialog > .modal-content {
    border-radius: 20px
}

@media (max-width: 767px) {
    .crm-wizard-modal .modal-dialog > .modal-content {
        border-radius: 14px
    }
}

.bd-app-shell .bd-route-theme:has(:is(.bd-page-contacts,.bd-page-tickets,.bd-page-list),.bd-page-contact-profile) {
    margin: 0 !important;
    padding: 0 !important
}

:is(.bd-page-contacts,.bd-page-tickets,.bd-page-list), .bd-page-contact-profile {
    --cj-primary: var(--ws-primary, var(--custom-color-bg, #006d91));
    --cj-line: var(--ws-line, #e4ebef);
    --cj-soft: var(--ws-soft, #f5f9fa);
    min-width: 0
}

.bd-app-shell :is(.cj-contacts-shell,.bd-list-shell), .bd-app-shell .cj-profile-shell {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: var(--ws-nav-width);
    right: var(--ws-quick-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff
}

:is(.cj-contact-list-header,.bd-list-header), .cj-profile-header {
    flex: none;
    width: 100%;
    float: none;
    padding: 12px 20px !important;
    border-bottom: 1px solid var(--cj-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px
}

:is(.cj-contact-list-header,.bd-list-header) .h2, .cj-profile-header .h2 {
    font-size: 22px;
    margin: 0 !important
}

:is(.cj-contact-list-header,.bd-list-header) .breadcrumb, .cj-profile-header .breadcrumb {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent
}

:is(.cj-contact-list-summary,.bd-list-summary) {
    padding: 10px 16px;
    border-bottom: 1px solid var(--cj-line);
    flex: none
}

:is(.cj-contact-list-summary,.bd-list-summary) .bd-summary-grid > [ng-repeat] {
    padding: 10px !important;
    min-height: 0 !important;
    box-shadow: none !important
}

:is(.cj-contact-list-summary,.bd-list-summary) .h1 {
    font-size: 24px !important
}

:is(.cj-contact-list-summary,.bd-list-summary) img {
    display: none
}

:is(.cj-contact-list-layout,.bd-list-layout) {
    display: flex;
    flex: 1;
    min-height: 0;
    gap: 0 !important;
    overflow: hidden
}

:is(.bd-page-contacts,.bd-page-tickets,.bd-page-list) :is(.cj-contact-list-filters,.bd-list-filters) {
    width: 280px !important;
    flex: 0 0 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px !important;
    border: 0;
    border-radius: 0;
    border-right: 1px solid var(--cj-line);
    background: var(--cj-soft);
    box-shadow: none
}

:is(.bd-page-contacts,.bd-page-tickets,.bd-page-list) :is(.cj-contact-list-content,.bd-list-content) {
    flex: 1;
    min-width: 0;
    width: auto !important;
    overflow: auto;
    padding: 16px !important;
    margin: 0 !important;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none
}

:is(.cj-contact-list-content,.bd-list-content) .row {
    margin-left: 0;
    margin-right: 0
}

:is(.cj-contact-list-content,.bd-list-content) .inbox-body {
    padding: 0 !important
}

.cj-profile-workspace {
    flex: 1;
    min-height: 0;
    margin: 0 !important;
    padding: 0 !important;
    float: none;
    width: 100%;
    overflow: hidden
}

.cj-profile-columns {
    display: grid !important;
    grid-template-columns:300px minmax(340px, 1fr) 330px;
    gap: 0 !important;
    height: 100%;
    align-items: stretch
}

.cj-profile-identity, .cj-profile-activity, .cj-profile-score {
    min-width: 0;
    min-height: 0;
    width: auto !important;
    float: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px !important;
    border: 0;
    border-radius: 0;
    margin: 0 !important;
    box-shadow: none
}

.cj-profile-identity {
    padding: 0 !important;
    border-right: 1px solid var(--cj-line);
    background: var(--cj-soft)
}

.cj-profile-identity .person-holder {
    height: 5em !important;
    border-radius: 0 !important
}

.cj-profile-identity .profile-userpic .icon_4 {
    margin-top: -3em !important
}

.cj-profile-identity .profile-userpic .icon_4 > span {
    font-size: 2.1em !important;
    line-height: 2em !important
}

.cj-profile-identity .profile-usertitle .h3 {
    font-size: 21px
}

.cj-profile-activity > .bordered-div {
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 0
}

.cj-profile-activity .nav-btn-tabs {
    flex-wrap: wrap
}

.cj-profile-activity .collection {
    min-width: 0
}

.cj-profile-score {
    border-left: 1px solid var(--cj-line);
    background: var(--cj-soft)
}

contact-journey {
    display: block;
    min-width: 0
}

.cj-scorecard {
    color: var(--ws-ink, #183343);
    font-size: 13px
}

.cj-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px
}

.cj-heading small {
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--cj-primary);
    font-weight: 700
}

.cj-heading h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 4px 0 12px
}

.cj-score-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0
}

.cj-score-hero p {
    font-size: 12px;
    color: #6c8090;
    margin: 6px 0
}

.cj-score-hero small {
    color: #6c8090
}

.cj-status {
    font-weight: 700;
    color: var(--cj-primary)
}

.cj-ring {
    --score: 0%;
    width: 96px;
    height: 96px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 50%;
    position: relative;
    background: conic-gradient(var(--cj-primary) var(--score), #e3edef 0)
}

.cj-ring:before {
    content: '';
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--cj-soft)
}

.cj-ring strong, .cj-ring span {
    position: relative
}

.cj-ring strong {
    font-size: 29px;
    line-height: 1.15
}

.cj-ring span {
    font-size: 11px;
    color: #718595
}

.cj-milestones {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 5px;
    border-bottom: 1px solid var(--cj-line);
    padding-bottom: 16px
}

.cj-milestones > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #80919b;
    min-width: 0
}

.cj-milestones i {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3ebee;
    border-radius: 50%
}

.cj-milestones .reached {
    color: var(--cj-primary)
}

.cj-milestones .reached i {
    background: var(--cj-primary);
    color: #fff
}

.cj-milestones small {
    font-size: 10px;
    overflow-wrap: anywhere
}

.cj-current-stage {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 14px 0
}

.cj-linked-customer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--cj-line);
    border-radius: 8px;
    background: #fff;
    overflow-wrap: anywhere
}

.cj-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0 20px
}

.cj-actions .btn {
    white-space: normal
}

.cj-scorecard h3 {
    font-size: 14px;
    margin: 20px 0 12px;
    font-weight: 700
}

.cj-factor {
    margin-bottom: 12px
}

.cj-factor > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 8px
}

.cj-factor small {
    font-size: 10px;
    color: #81919a
}

.cj-meter {
    height: 5px;
    background: #e3ebee;
    border-radius: 4px;
    margin: 7px 0;
    overflow: hidden
}

.cj-meter span {
    display: block;
    height: 100%;
    background: var(--cj-primary);
    border-radius: 4px;
    transition: width .4s
}

.cj-method {
    font-size: 11px;
    color: #6c7f8c;
    line-height: 1.6
}

.cj-method summary {
    cursor: pointer;
    color: var(--cj-primary)
}

.cj-method p {
    font-size: 11px;
    margin: 8px 0
}

.cj-next-actions {
    border: 1px solid var(--cj-line);
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    margin: 20px 0
}

.cj-next-actions h3 {
    margin: 0 0 10px
}

.cj-next-actions p {
    font-size: 12px;
    margin: 0 0 9px;
    line-height: 1.6
}

.cj-next-actions i {
    color: var(--cj-primary)
}

.cj-totals {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12px
}

.cj-totals b {
    color: var(--cj-primary)
}

.cj-outcome, .cj-meeting {
    border: 1px solid var(--cj-line);
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    margin: 10px 0;
    overflow-wrap: anywhere
}

.cj-outcome > div {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.cj-outcome small, .cj-meeting small {
    display: block;
    color: #7a8c97;
    font-size: 11px;
    margin: 4px 0
}

.cj-outcome p {
    font-size: 12px;
    white-space: pre-wrap;
    line-height: 1.6;
    margin: 8px 0
}

.cj-meeting .btn {
    margin-top: 8px
}

.cj-event {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-left: 1px solid var(--cj-line);
    margin-left: 5px
}

.cj-event > i {
    color: var(--cj-primary);
    font-size: 8px;
    margin-left: -4px;
    padding-top: 5px
}

.cj-event div {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.cj-event span, .cj-event small {
    font-size: 11px;
    color: #6c8090
}

.cj-footnote {
    display: block;
    margin-top: 20px;
    color: #81919a;
    font-size: 10px
}

.cj-skeleton span {
    display: block;
    height: 22px;
    background: linear-gradient(90deg, #e2e9ec, #f1f5f6, #e2e9ec);
    background-size: 200% 100%;
    animation: cj-shimmer 1.5s infinite;
    border-radius: 6px;
    margin: 16px 0
}

.cj-skeleton span:first-child {
    height: 96px
}

.cj-skeleton span:last-child {
    width: 65%
}

@keyframes cj-shimmer {
    to {
        background-position: -200% 0
    }
}

.cj-modal .modal-title {
    font-size: 20px
}

.cj-modal .form-group {
    margin-bottom: 18px
}

.cj-modal small {
    display: block;
    color: #6e8190;
    margin-top: 6px
}

.cj-modal .modal-body {
    padding: 20px
}

.cj-modal .modal-body > p {
    font-size: 14px;
    line-height: 1.7
}

.cj-modal fieldset {
    min-width: 0
}

@media (min-width: 992px) and (max-width: 1240px) {
    .cj-profile-columns {
        grid-template-columns:220px minmax(300px, 1fr)
    }

    .cj-profile-score {
        grid-column: 1/-1;
        border-top: 1px solid var(--cj-line);
        max-height: 420px
    }

    .cj-profile-columns {
        overflow-y: auto;
        height: auto
    }

    .cj-profile-workspace {
        overflow-y: auto
    }

    .cj-profile-activity, .cj-profile-identity {
        overflow: visible
    }

    .cj-profile-score .cj-scorecard {
        max-width: 780px;
        margin: auto
    }
}

@media (max-width: 991px) {
    .bd-app-shell :is(.cj-contacts-shell,.bd-list-shell), .bd-app-shell .cj-profile-shell {
        left: 0;
        right: 0
    }

    .cj-profile-columns {
        grid-template-columns:240px minmax(0, 1fr);
        height: auto
    }

    .cj-profile-score {
        grid-column: 1/-1;
        border-top: 1px solid var(--cj-line)
    }

    .cj-profile-workspace {
        overflow-y: auto
    }

    .cj-profile-identity, .cj-profile-activity, .cj-profile-score {
        overflow: visible
    }

    :is(.cj-contact-list-summary,.bd-list-summary) .bd-summary-grid {
        display: grid !important;
        grid-template-columns:repeat(3, minmax(0, 1fr))
    }

    :is(.cj-contact-list-summary,.bd-list-summary) .bd-summary-grid > div {
        width: auto !important
    }
}

@media (max-width: 767px) {
    :is(.cj-contact-list-header,.bd-list-header), .cj-profile-header {
        padding: 12px !important;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px
    }

    :is(.cj-contact-list-header,.bd-list-header) .breadcrumb, .cj-profile-header .breadcrumb {
        font-size: 11px
    }

    :is(.cj-contact-list-summary,.bd-list-summary) {
        display: none
    }

    :is(.cj-contact-list-layout,.bd-list-layout) {
        flex-direction: column !important
    }

    :is(.bd-page-contacts,.bd-page-tickets,.bd-page-list) :is(.cj-contact-list-filters,.bd-list-filters) {
        flex: 0 0 auto;
        width: 100% !important;
        max-height: 150px;
        border-right: 0;
        border-bottom: 1px solid var(--cj-line);
        padding: 10px !important
    }

    :is(.cj-contact-list-filters,.bd-list-filters) .nav {
        display: flex;
        flex-wrap: wrap;
        gap: 4px
    }

    :is(.cj-contact-list-filters,.bd-list-filters) .nav li {
        margin: 0
    }

    :is(.cj-contact-list-filters,.bd-list-filters) .nav li a {
        padding: 7px 10px !important
    }

    :is(.cj-contact-list-filters,.bd-list-filters) > .clearfix {
        display: none
    }

    :is(.cj-contact-list-filters,.bd-list-filters) > .text-muted {
        font-size: 11px
    }

    :is(.cj-contact-list-filters,.bd-list-filters) > .text-muted br {
        display: none
    }

    :is(.cj-contact-list-filters,.bd-list-filters) .list-group-related {
        display: none
    }

    :is(.bd-page-contacts,.bd-page-tickets,.bd-page-list) :is(.cj-contact-list-content,.bd-list-content) {
        padding: 12px !important
    }

    .cj-profile-columns {
        display: flex !important;
        flex-direction: column !important;
        height: auto
    }

    .cj-profile-identity, .cj-profile-activity, .cj-profile-score {
        width: 100% !important;
        flex: none;
        border-right: 0;
        border-left: 0
    }

    .cj-profile-activity {
        padding: 12px !important;
        border-top: 1px solid var(--cj-line)
    }

    .cj-profile-score {
        padding: 18px !important
    }

    .cj-profile-identity .person-holder {
        height: 4em !important
    }

    .cj-modal .form-control {
        font-size: 16px
    }

    .cj-modal .modal-footer {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end
    }

    .cj-modal .modal-dialog {
        width: calc(100% - 20px) !important;
        margin: 10px auto !important
    }

    .cj-modal .modal-title {
        font-size: 18px
    }

    .cj-modal .close {
        font-size: 26px
    }
}

@media (prefers-reduced-motion: reduce) {
    .cj-skeleton span {
        animation: none
    }

    .cj-meter span {
        transition: none
    }
}

/* Override the older generic graphs card padding at the workspace boundary. */
.bd-app-shell .bd-page-contact-profile .cj-profile-workspace {
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important
}

.cj-profile-identity .profile-sidebar {
    max-width: 100%;
    box-sizing: border-box
}

.cj-profile-identity .fw-500 {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word
}

.cj-profile-identity .icon-container {
    flex: none
}

.cj-profile-identity .row {
    margin-left: 0;
    margin-right: 0
}

.cj-profile-identity .alert {
    max-width: 100%;
    flex-wrap: wrap
}

.cj-profile-identity .profile-usertitle > .h3 {
    flex-wrap: wrap
}

.cj-profile-activity .nav-btn-tabs > li.active > a {
    color: var(--cj-primary) !important;
    background: var(--cj-soft) !important
}

.cj-modal .modal-title {
    color: #183343;
    font-weight: 700
}

@media (max-width: 767px) {
    :is(.bd-page-contacts,.bd-page-tickets) :is(.cj-contact-list-content,.bd-list-content) .custom-table {
        table-layout: fixed;
        min-width: 0 !important;
        width: 100% !important
    }

    :is(.bd-page-contacts,.bd-page-tickets) :is(.cj-contact-list-content,.bd-list-content) .custom-table th:last-child, :is(.bd-page-contacts,.bd-page-tickets) :is(.cj-contact-list-content,.bd-list-content) .custom-table td:last-child {
        width: 44px !important;
        padding: 6px !important
    }

    :is(.bd-page-contacts,.bd-page-tickets) :is(.cj-contact-list-content,.bd-list-content) .custom-table td:first-child .flex-grow-1 {
        min-width: 0
    }

    :is(.bd-page-contacts,.bd-page-tickets) :is(.cj-contact-list-content,.bd-list-content) .custom-table td {
        overflow-wrap: anywhere
    }

    :is(.bd-page-contacts,.bd-page-tickets) :is(.cj-contact-list-content,.bd-list-content) .custom-table .icon_4 {
        flex: none;
        width: 40px !important;
        height: 40px !important
    }

    :is(.bd-page-contacts,.bd-page-tickets) :is(.cj-contact-list-content,.bd-list-content) .custom-table .text-one-line {
        max-width: 100%
    }
}

:is(.cj-contact-list-content,.bd-list-content) .pull-right .dropdown-menu {
    left: auto;
    right: 0
}

.bd-app-shell :is(.bd-page-contacts,.bd-page-tickets,.bd-page-list) :is(.cj-contact-list-content,.bd-list-content) {
    padding: 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important
}

@media (max-width: 767px) {
    .bd-app-shell :is(.bd-page-contacts,.bd-page-tickets,.bd-page-list) :is(.cj-contact-list-content,.bd-list-content) {
        padding: 12px !important
    }
}

/* CRM contact identity: compact actions, grouped fields and relationship context. */
.bd-heatmap {
    min-width: 640px;
    padding: 16px
}

.bd-heatmap-row {
    display: grid;
    grid-template-columns:48px repeat(24, minmax(16px, 1fr));
    gap: 4px;
    align-items: center;
    margin-bottom: 4px;
    font-size: 10px
}

.bd-heatmap-cell {
    display: block;
    height: 22px;
    border-radius: 3px;
    background: var(--cj-primary)
}

@media (max-width: 767px) {
    .bd-page-tickets .bd-list-filters {
        max-height: none;
        overflow: visible
    }

    .bd-page-tickets .bd-list-filters .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        max-width: 100%
    }

    .bd-page-tickets .bd-list-filters .nav li {
        flex: none
    }
}

.bd-app-shell .cj-profile-identity {
    background: #fbfcfd;
    border-right: 1px solid var(--cj-line) !important;
    color: var(--ws-ink, #183343)
}

.cj-identity-header {
    position: relative;
    padding: 24px 20px 20px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--cj-primary) 9%, #fff), #fff 75%);
    border-bottom: 1px solid var(--cj-line)
}

.cj-identity-header:before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--cj-primary)
}

.cj-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--cj-primary);
    margin-bottom: 20px
}

.cj-identity-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 20px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -1px;
    box-shadow: 0 6px 16px #18334312;
    border: 3px solid #fff;
    margin-bottom: 16px
}

.cj-identity-header h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.6px;
    line-height: 1.25;
    margin: 0 0 7px;
    overflow-wrap: anywhere;
    color: var(--ws-ink, #183343)
}

.cj-identity-role {
    font-size: 13px;
    line-height: 1.5;
    color: #667b88;
    margin: 0 0 5px
}

.cj-record-id {
    font-size: 11px;
    color: #81919c
}

.cj-identity-shortcuts {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 20px
}

.cj-identity-shortcuts button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--cj-line);
    border-radius: 10px;
    padding: 10px 4px;
    background: #fff;
    color: var(--cj-primary);
    font-size: 11px;
    font-weight: 600;
    transition: background .15s, box-shadow .15s
}

.cj-identity-shortcuts .material-icons {
    font-size: 19px
}

.cj-identity-shortcuts button:hover:not(:disabled) {
    background: var(--cj-soft);
    box-shadow: 0 3px 10px #1833430d
}

.cj-identity-shortcuts button:disabled {
    opacity: .4;
    cursor: not-allowed
}

.cj-identity-section {
    padding: 20px;
    border-bottom: 1px solid var(--cj-line)
}

.cj-identity-section h3 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #718390;
    margin: 0 0 14px
}

.cj-stage-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 11px 12px;
    background: #fff;
    border: 1px solid var(--cj-line);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ws-ink, #183343);
    box-shadow: 0 2px 4px #18334304
}

.cj-stage-toggle > span:nth-child(2) {
    flex: 1;
    text-align: left
}

.cj-stage-toggle > .material-icons {
    font-size: 20px;
    color: #7d909b
}

.cj-stage-toggle:disabled {
    opacity: .6
}

.cj-stage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cj-primary);
    flex: none
}

.cj-contact-fields {
    margin: 0
}

.cj-contact-fields > div + div {
    margin-top: 17px
}

.cj-contact-fields dt {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #81919c;
    font-size: 11px;
    font-weight: 400;
    margin-bottom: 4px
}

.cj-contact-fields dt .material-icons {
    font-size: 15px;
    color: #8ea0aa
}

.cj-contact-fields dd {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ws-ink, #183343);
    font-weight: 500;
    overflow-wrap: anywhere;
    margin: 0
}

.cj-value-empty {
    color: #84949e !important
}

.cj-customer-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--cj-line);
    border-radius: 10px;
    color: var(--ws-ink, #183343) !important;
    text-decoration: none !important
}

.cj-customer-card > span:nth-child(2) {
    min-width: 0;
    flex: 1
}

.cj-customer-card strong {
    display: block;
    font-size: 13px;
    line-height: 1.5
}

.cj-customer-card small {
    display: block;
    font-size: 11px;
    line-height: 1.6;
    color: #718390;
    overflow-wrap: anywhere
}

.cj-customer-card > .material-icons {
    font-size: 17px;
    color: #8ea0aa;
    margin-top: 6px
}

.cj-customer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cj-soft);
    color: var(--cj-primary);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex: none
}

.cj-customer-icon .material-icons {
    font-size: 18px
}

.cj-relationship-empty {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px dashed var(--cj-line);
    border-radius: 10px;
    padding: 12px;
    color: #6a808e;
    font-size: 12px;
    line-height: 1.5
}

.cj-relationship-empty > .material-icons {
    font-size: 21px;
    color: #90a3ac
}

.cj-relationship-empty small {
    display: block;
    font-size: 11px;
    line-height: 1.6;
    margin-top: 4px;
    color: #85949e
}

.cj-affiliates-link {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--cj-primary);
    padding: 15px 0 0;
    font-size: 12px;
    text-align: left
}

.cj-affiliates-link > span {
    flex: 1
}

.cj-affiliates-link .material-icons {
    font-size: 18px
}

.cj-affiliates-link b {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--cj-soft);
    min-width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 11px
}

.cj-contact-notes {
    font-size: 12px;
    line-height: 1.8;
    color: #6a808e;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    margin: 0
}

.cj-record-dates {
    border-bottom: 0
}

.cj-record-dates .cj-contact-fields > div {
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.cj-record-dates dt {
    flex: none;
    margin: 0
}

.cj-record-dates dd {
    font-size: 11px;
    text-align: right;
    color: #718390
}

.cj-stage-menu.dropdown-menu {
    padding: 7px;
    margin: 0;
    border: 1px solid var(--cj-line, #e4ebef);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 40px #18334326;
    min-width: 0;
    list-style: none
}

.cj-stage-menu.dropdown-menu.cj-stage-floating {
    display: block !important;
    position: fixed !important;
    z-index: 1045;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box
}

.cj-stage-menu-title {
    padding: 8px 10px;
    color: #81919c;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em
}

.cj-stage-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    border-radius: 7px;
    padding: 10px;
    width: 100%;
    color: #183343;
    font-size: 13px;
    text-align: left
}

.cj-stage-menu button > span:nth-child(2) {
    flex: 1
}

.cj-stage-menu button > .material-icons {
    font-size: 16px;
    color: var(--cj-primary, #006d91)
}

.cj-stage-menu button:hover, .cj-stage-menu button:focus, .cj-stage-menu button.cj-stage-selected {
    background: var(--cj-soft, #f5f9fa)
}

.cj-identity-shortcuts button:focus-visible, .cj-stage-toggle:focus-visible, .cj-affiliates-link:focus-visible, .cj-customer-card:focus-visible, .cj-stage-menu button:focus-visible {
    outline: 2px solid var(--cj-primary, #006d91);
    outline-offset: 2px
}

@media (max-width: 767px) {
    .cj-identity-header {
        padding: 20px
    }

    .cj-identity-section {
        padding: 18px 20px
    }

    .cj-identity-shortcuts button {
        flex-direction: row;
        justify-content: center;
        padding: 11px
    }

    .cj-contact-fields {
        display: grid;
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap: 16px
    }

    .cj-contact-fields > div + div {
        margin: 0
    }

    .cj-record-dates .cj-contact-fields {
        display: block
    }

    .cj-record-dates .cj-contact-fields > div + div {
        margin-top: 12px
    }
}

@media (prefers-reduced-motion: reduce) {
    .cj-identity-shortcuts button {
        transition: none
    }
}

.cj-identity-section h3 {
    line-height: 1.4
}

.cj-eyebrow {
    line-height: 1.4;
    margin-bottom: 16px
}

.cj-identity-shortcuts button {
    line-height: 1.4
}

.cj-identity-section {
    padding-top: 17px;
    padding-bottom: 17px
}

/* Shared contacts header and mobile-first activity workspace. */
.bd-app-shell .cj-page-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px !important;
    background: #fff;
    border-bottom: 1px solid var(--cj-line);
    min-width: 0;
    flex: none
}

.cj-page-title {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0
}

.cj-page-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--cj-soft);
    color: var(--cj-primary);
    flex: none
}

.cj-page-icon .material-icons {
    font-size: 22px
}

.cj-page-kicker {
    display: block;
    color: var(--cj-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.4
}

.bd-app-shell .cj-page-header h1 {
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -.5px;
    font-weight: 700;
    color: var(--ws-ink, #183343);
    margin: 3px 0 0;
    padding: 0;
    text-transform: none
}

.cj-page-header nav {
    min-width: 0
}

.cj-breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    font-size: 11px;
    line-height: 1.6;
    color: #7f909b
}

.cj-breadcrumb li {
    min-width: 0;
    display: flex;
    align-items: center
}

.cj-breadcrumb li + li:before {
    content: '›';
    padding: 0 9px;
    font-size: 16px;
    color: #b5c0c6
}

.cj-breadcrumb a {
    color: #6e8491;
    text-decoration: none;
    padding: 3px 0
}

.cj-breadcrumb a:hover {
    color: var(--cj-primary)
}

.cj-breadcrumb [aria-current=page] span {
    color: var(--ws-ink, #183343);
    font-weight: 500;
    overflow-wrap: anywhere
}

.cj-mobile-pane-tabs {
    display: flex;
    flex: none;
    gap: 5px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid var(--cj-line)
}

.cj-mobile-pane-tabs button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    min-height: 42px;
    padding: 8px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #758b98;
    font-size: 12px;
    font-weight: 600
}

.cj-mobile-pane-tabs .material-icons {
    font-size: 18px
}

.cj-mobile-pane-tabs button.active {
    color: var(--cj-primary);
    background: var(--cj-soft)
}

.bd-app-shell .cj-profile-activity {
    padding: 0 !important;
    background: #fff;
    min-width: 0;
    color: var(--ws-ink, #183343)
}

.cj-activity-heading {
    padding: 20px 16px 16px;
    border-bottom: 1px solid var(--cj-line);
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: linear-gradient(115deg, #fff, var(--cj-soft))
}

.cj-activity-heading h2 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.6px;
    margin: 5px 0 6px
}

.cj-activity-heading p {
    font-size: 12px;
    color: #81929c;
    line-height: 1.6;
    margin: 0
}

.cj-activity-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.cj-activity-menu .dropdown-menu {
    left: auto;
    right: 0;
    min-width: 220px;
    max-width: calc(100vw - 40px);
    padding: 7px;
    border: 1px solid var(--cj-line);
    border-radius: 12px;
    box-shadow: 0 12px 30px #1833431f
}

.cj-activity-menu .dropdown-menu a {
    padding: 11px 10px;
    border-radius: 7px;
    font-size: 12px
}

.cj-activity-menu .dropdown-menu a:hover {
    background: var(--cj-soft)
}

.cj-primary-button, .cj-soft-button, .cj-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    border-radius: 9px;
    padding: 9px 12px;
    line-height: 1.4;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--cj-line);
    background: #fff;
    color: var(--cj-primary);
    white-space: normal;
    transition: background .15s
}

.cj-primary-button {
    background: var(--cj-primary);
    color: #fff;
    border-color: var(--cj-primary)
}

.cj-soft-button:hover:not(:disabled), .cj-icon-button:hover:not(:disabled) {
    background: var(--cj-soft)
}

.cj-primary-button:hover {
    filter: brightness(.96)
}

.cj-primary-button .material-icons, .cj-soft-button .material-icons {
    font-size: 18px
}

.cj-icon-button {
    width: 42px;
    flex: none;
    padding: 8px
}

.cj-icon-button .material-icons {
    font-size: 19px
}

.cj-danger-button {
    color: #b35a5a
}

.cj-soft-button:disabled, .cj-icon-button:disabled {
    opacity: .45;
    cursor: not-allowed
}

.cj-activity-body {
    min-width: 0
}

.cj-activity-navigation {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--cj-line);
    padding: 0 12px;
    min-width: 0
}

.cj-activity-tabs {
    display: flex;
    align-items: stretch;
    gap: 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    min-width: 0;
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 6px 0
}

.cj-activity-tabs li {
    flex: none
}

.cj-activity-tabs button {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 11px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: #81929c;
    white-space: nowrap
}

.cj-activity-tabs button.active {
    background: var(--cj-soft);
    color: var(--cj-primary)
}

.cj-activity-tabs button:hover {
    color: var(--cj-primary)
}

.cj-activity-tabs .material-icons {
    font-size: 17px
}

.cj-custom-tabs {
    flex: none
}

.cj-custom-tabs .dropdown-menu {
    max-width: calc(100vw - 40px)
}

.cj-activity-panel {
    padding: 20px 16px;
    min-width: 0
}

.cj-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px
}

.cj-panel-heading > div {
    min-width: 0
}

.cj-panel-heading h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 4px;
    letter-spacing: -.2px
}

.cj-panel-heading p {
    font-size: 12px;
    line-height: 1.6;
    color: #81929c;
    margin: 0
}

.cj-panel-heading > .cj-soft-button {
    flex: none;
    font-size: 11px;
    padding: 8px 10px
}

.cj-activity-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    min-width: 0
}

.cj-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--cj-line);
    border-radius: 9px;
    background: #fbfcfd;
    min-height: 42px;
    padding: 0 11px;
    flex: 1;
    min-width: 0;
    margin: 0;
    cursor: text
}

.cj-search .material-icons {
    font-size: 19px;
    color: #8ea0aa;
    flex: none
}

.cj-search input {
    border: 0;
    outline: 0 !important;
    background: transparent;
    padding: 11px 0;
    width: 100%;
    min-width: 0;
    box-shadow: none !important;
    color: var(--ws-ink, #183343);
    font-size: 16px;
    font-weight: 400
}

.cj-search:focus-within {
    border-color: var(--cj-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--cj-primary) 10%, transparent)
}

.cj-search input::placeholder {
    color: #93a0a8;
    font-size: 12px
}

.cj-history-group + .cj-history-group {
    margin-top: 24px
}

.cj-date-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b9ca6;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    line-height: 1.4;
    margin: 0 0 14px
}

.cj-date-label .material-icons {
    font-size: 14px
}

.cj-activity-timeline {
    list-style: none;
    padding: 0;
    margin: 0
}

.cj-activity-timeline > li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 16px
}

.cj-activity-timeline > li:before {
    position: absolute;
    content: '';
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 1px;
    background: var(--cj-line)
}

.cj-activity-timeline > li:last-child:before {
    display: none
}

.cj-timeline-icon {
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex: none;
    background: var(--cj-soft);
    color: var(--cj-primary);
    font-size: 13px;
    border: 1px solid var(--cj-line);
    margin-top: 3px
}

.cj-record {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--cj-line);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 3px 10px #18334304;
    overflow-wrap: anywhere
}

.cj-activity-timeline .cj-record {
    flex: 1
}

.cj-record-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap
}

.cj-record-row > strong, .cj-record-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--ws-ink, #183343)
}

.cj-record-title {
    color: var(--cj-primary);
    flex: 1;
    min-width: 0
}

.cj-record-content {
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    color: #526c7b;
    margin: 10px 0 14px
}

.cj-record-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 11px;
    color: #8a9ba5;
    line-height: 1.7;
    margin-top: 8px
}

.cj-record-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow-wrap: anywhere
}

.cj-record-meta .material-icons {
    font-size: 14px;
    flex: none
}

.cj-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    background: var(--cj-soft);
    color: var(--cj-primary);
    flex: none
}

.cj-chip-success {
    background: #eef8f3;
    color: #459079
}

.cj-chip-muted {
    background: #f3f5f7;
    color: #8e9ba5
}

.cj-record-list {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.cj-record-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid var(--cj-line);
    margin-top: 15px;
    padding-top: 12px
}

.cj-record-footer small {
    color: #8a9ba5;
    font-size: 11px
}

.cj-record-footer .cj-soft-button {
    min-height: 38px;
    font-size: 11px;
    padding: 8px 10px
}

.cj-record-footer-end {
    justify-content: flex-end
}

.cj-followup-response {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px
}

.cj-call-record {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.cj-call-record > div {
    flex: 1;
    min-width: 0
}

.cj-record-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cj-soft);
    color: var(--cj-primary);
    width: 36px;
    height: 36px;
    border-radius: 11px;
    flex: none
}

.cj-record-icon .material-icons {
    font-size: 19px
}

.cj-missed-call {
    background: #fcf1f0;
    color: #bd7770
}

.cj-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    padding: 16px 0 0;
    margin-top: 14px;
    border-top: 1px solid var(--cj-line);
    font-size: 11px;
    color: #8a9ba5
}

.cj-pagination > span {
    margin-right: auto
}

.cj-pagination button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--cj-line);
    border-radius: 8px;
    background: #fff;
    color: var(--cj-primary)
}

.cj-pagination button:disabled {
    opacity: .35;
    cursor: not-allowed
}

.cj-pagination .material-icons {
    font-size: 20px
}

.cj-activity-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 40px 18px;
    border: 1px dashed var(--cj-line);
    border-radius: 12px;
    background: #fbfcfd
}

.cj-activity-empty > .material-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--cj-soft);
    color: var(--cj-primary);
    font-size: 24px;
    margin-bottom: 14px
}

.cj-activity-empty h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 7px;
    color: var(--ws-ink, #183343)
}

.cj-activity-empty p {
    max-width: 280px;
    font-size: 12px;
    line-height: 1.7;
    color: #8a9ba5;
    margin: 0
}

.cj-activity-loading span:not(.sr-only) {
    display: block;
    height: 100px;
    margin: 12px 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0f4f6, #fafcfd, #f0f4f6);
    background-size: 200% 100%;
    animation: cj-shimmer 1.5s infinite
}

.cj-activity-loading span:last-child {
    width: 75%
}

.cj-affiliates-panel .custom-table {
    width: 100%;
    table-layout: fixed
}

.cj-affiliates-panel .custom-table td {
    overflow-wrap: anywhere
}

.cj-affiliates-panel .custom-table td:last-child {
    width: 96px
}

.cj-affiliates-panel .custom-table .text-one-line {
    white-space: normal
}

.cj-affiliates-panel .h3, .cj-inquiries-panel > h4 {
    font-size: 17px;
    line-height: 1.4;
    margin: 0 0 18px;
    font-weight: 700
}

.cj-inquiries-panel .row {
    margin: 0
}

.cj-inquiries-panel .mail-option {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px
}

.cj-inquiries-panel .form-control {
    font-size: 16px;
    min-height: 42px;
    border-radius: 9px
}

.cj-inquiries-panel .cj-record > div, .cj-inquiries-panel .cj-record p {
    min-width: 0;
    overflow-wrap: anywhere
}

.cj-inquiries-panel .cj-record .justify-content-between {
    gap: 8px;
    flex-wrap: wrap
}

.cj-primary-button:focus-visible, .cj-soft-button:focus-visible, .cj-icon-button:focus-visible, .cj-activity-tabs button:focus-visible, .cj-mobile-pane-tabs button:focus-visible, .cj-pagination button:focus-visible {
    outline: 2px solid var(--cj-primary);
    outline-offset: 2px
}

@media (max-width: 767px) {
    .cj-profile-columns > .cj-profile-identity:not(.cj-mobile-pane-active), .cj-profile-columns > .cj-profile-activity:not(.cj-mobile-pane-active), .cj-profile-columns > .cj-profile-score:not(.cj-mobile-pane-active) {
        display: none !important
    }

    .bd-app-shell .cj-profile-activity {
        border-top: 0 !important
    }

    .cj-profile-workspace {
        scroll-padding-top: 16px
    }

    .cj-profile-score {
        border-top: 0 !important
    }

    .cj-record-footer > .cj-soft-button {
        max-width: 100%
    }

    .cj-custom-tabs .cj-soft-button {
        font-size: 10px;
        max-width: 100px
    }

    .cj-panel-heading {
        flex-wrap: wrap
    }

    .cj-affiliates-panel .d-flex-sm {
        flex-wrap: wrap;
        gap: 12px
    }

    .cj-affiliates-panel .dropdown-menu {
        left: 0;
        right: auto
    }

    .cj-affiliates-panel .dropdown-menu input {
        font-size: 16px
    }

    .cj-affiliates-panel .icon_4 {
        width: 32px !important;
        height: 32px !important;
        flex: none
    }
}

@media (min-width: 768px) {
    .cj-mobile-pane-tabs {
        display: none
    }

    .bd-app-shell .cj-page-header {
        flex-direction: row;
        align-items: center;
        padding: 14px 20px !important
    }

    .cj-page-header nav {
        max-width: 50%
    }

    .cj-page-header h1 {
        font-size: 22px
    }

    .cj-activity-heading {
        padding: 22px 22px 18px
    }

    .cj-activity-actions {
        justify-content: flex-end
    }

    .cj-activity-navigation {
        padding: 0 16px
    }

    .cj-activity-panel {
        padding: 22px
    }

    .cj-search input {
        font-size: 13px
    }

    .cj-activity-tabs button {
        padding: 10px 11px;
        font-size: 11px;
        gap: 5px
    }
}

@media (min-width: 1241px) {
    .bd-app-shell .cj-profile-activity {
        display: flex;
        flex-direction: column;
        overflow: hidden
    }

    .cj-activity-heading {
        flex: none
    }

    .cj-activity-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain
    }

    .cj-activity-navigation {
        position: sticky;
        top: 0;
        z-index: 5
    }

    .cj-activity-heading {
        flex-direction: row;
        align-items: center
    }

    .cj-activity-heading h2 {
        font-size: 21px
    }

    .cj-activity-actions {
        flex: none
    }

    .cj-activity-tabs .material-icons {
        display: none
    }
}

@media (prefers-reduced-motion: reduce) {
    .cj-activity-loading span:not(.sr-only) {
        animation: none
    }

    .cj-primary-button, .cj-soft-button, .cj-icon-button {
        transition: none
    }
}

.cj-actions-menu.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 10px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.6;
    color: #183343
}

.cj-actions-menu.dropdown-menu a:hover, .cj-actions-menu.dropdown-menu a:focus {
    background: var(--cj-soft, #f5f9fa)
}

.cj-actions-menu.dropdown-menu a.text-danger {
    color: #b35a5a
}

.cj-inquiry-content {
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere
}

.cj-inquiry-content p {
    margin: 0
}

.cj-inquiry-content img {
    max-width: 100%;
    height: auto
}

.cj-activity-navigation {
    position: sticky;
    top: 0;
    z-index: 5
}

/* Shared list layout; analytics adds only its own content components. */
.bd-analytics-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 20px
}

.bd-analytics-toolbar label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    font-size: 12px
}

.bd-analytics-toolbar .form-control {
    width: 165px
}

.bd-analytics-grid {
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 18px 0
}

.bd-analytics-card {
    padding: 16px;
    border: 1px solid var(--cj-line);
    border-radius: 12px;
    background: var(--cj-soft)
}

.bd-analytics-card strong {
    display: block;
    font-size: 25px;
    margin-top: 8px
}

.bd-analytics-block {
    margin: 24px 0;
    border: 1px solid var(--cj-line);
    border-radius: 12px;
    overflow: hidden
}

.bd-analytics-block h3 {
    font-size: 16px;
    margin: 0;
    padding: 16px;
    background: var(--cj-soft)
}

.bd-analytics-block .table {
    margin: 0
}

.bd-analytics-table {
    overflow: auto
}

.bd-analytics-block th {
    white-space: nowrap
}

.bd-analytics-block td:first-child {
    min-width: 180px;
    overflow-wrap: anywhere
}

.bd-list-filters .brand-pills button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 10px 15px;
    color: inherit;
    border-radius: 6px
}

.bd-list-filters .active button {
    background: var(--cj-primary);
    color: white
}

.bd-list-filters button:focus-visible {
    outline: 2px solid var(--cj-primary);
    outline-offset: 2px
}

.bd-page-tickets .bd-list-content {
    float: none
}

.bd-list-shell > .bd-list-layout {
    width: 100%
}

@media (max-width: 767px) {
    .bd-list-filters .brand-pills button {
        padding: 7px 10px
    }

    .bd-analytics-toolbar label {
        flex: 1
    }

    .bd-analytics-toolbar .form-control {
        width: 100%
    }
}

/* Users directory: reuse the shared list shell and utility spacing. */
.bd-page-users .bd-users-actions {
    flex-wrap: wrap;
    margin-bottom: 20px;
    float: none
}

.bd-page-users .bd-users-actions .pull-right {
    float: none !important
}

.bd-page-users .bd-users-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0 0 16px;
    float: none;
    width: 100%
}

.bd-page-users .bd-users-toolbar .inbox-pagination {
    margin: 0 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    float: none
}

.bd-page-users .bd-users-search {
    max-width: 440px;
    margin-bottom: 20px;
    min-height: 40px
}

.bd-page-users .bd-users-table {
    width: 100%;
    min-width: 900px;
    table-layout: fixed
}

.bd-page-users .bd-users-table th {
    padding: 12px 16px;
    white-space: nowrap;
    background: var(--cj-soft);
    font-size: 12px
}

.bd-page-users .bd-users-table td {
    padding: 18px 16px;
    vertical-align: middle;
    line-height: 1.5;
    overflow-wrap: anywhere;
    border-bottom: 1px solid var(--cj-line)
}

.bd-page-users .bd-users-table th:first-child {
    width: 28%
}

.bd-page-users .bd-users-table th:nth-child(2) {
    width: 16%
}

.bd-page-users .bd-users-table th:nth-child(3) {
    width: 17%
}

.bd-page-users .bd-users-table th:nth-child(4) {
    width: 17%
}

.bd-page-users .bd-users-table th:nth-child(5) {
    width: 14%
}

.bd-page-users .bd-users-table th:last-child {
    width: 100px
}

.bd-page-users .bd-users-table td:first-child .d-flex {
    min-width: 0
}

.bd-page-users .bd-users-table td:first-child a {
    flex-wrap: wrap;
    gap: 6px;
    align-items: center
}

.bd-page-users .bd-users-table .icon_4 {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0
}

.bd-page-users .bd-users-table td:last-child > .dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
    float: none !important
}

.bd-page-users .bd-users-last-online {
    display: block;
    margin-top: 6px
}

@media (max-width: 767px) {
    .bd-page-users .bd-users-toolbar .inbox-pagination {
        width: 100%;
        margin: 4px 0 0
    }

    .bd-page-users .bd-users-search {
        max-width: none
    }

    .bd-page-users .bd-users-table td {
        padding: 14px 12px
    }

    .bd-page-users .bd-users-actions {
        margin-bottom: 16px
    }
}

/* Dock the inquiry reply outside the scrolling activity body. */
.bd-page-inquiry-profile .cj-inquiry-composer {
    position: sticky;
    bottom: 0;
    z-index: 6;
    flex: none;
    background: #fff;
    border-top: 1px solid var(--cj-line);
    max-height: 45vh;
    overflow-y: auto
}

.bd-page-inquiry-profile .cj-inquiry-composer .cj-panel-heading {
    margin-bottom: 10px
}

.bd-page-inquiry-profile .cj-inquiry-composer .cj-record-footer {
    margin-top: 10px;
    padding-top: 10px
}

@media (max-width: 767px) {
    .bd-page-inquiry-profile .cj-profile-workspace {
        overflow: hidden
    }

    .bd-page-inquiry-profile .cj-profile-columns {
        height: 100%;
        min-height: 0
    }

    .bd-page-inquiry-profile .cj-mobile-pane-active {
        height: 100%;
        overflow-y: auto
    }

    .bd-page-inquiry-profile .cj-profile-activity {
        display: flex;
        flex-direction: column;
        flex: 1 !important;
        min-height: 0;
        overflow: hidden
    }

    .bd-page-inquiry-profile .cj-activity-body {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain
    }

    .bd-page-inquiry-profile .cj-activity-heading, .bd-page-inquiry-profile .cj-activity-navigation {
        flex: none
    }
}

/* Configured relationship journeys share a vertical stage history. */
.cj-journey-steps {
    list-style: none;
    padding: 0;
    margin: 20px 0
}

.cj-journey-steps li {
    position: relative;
    display: flex;
    gap: 12px;
    padding-bottom: 22px;
    min-width: 0
}

.cj-journey-steps li:not(:last-child):before {
    content: '';
    position: absolute;
    left: 11px;
    top: 26px;
    bottom: 3px;
    width: 2px;
    background: var(--cj-line)
}

.cj-journey-step-icon {
    position: relative;
    flex: none;
    width: 24px;
    color: #a2b0b9;
    background: none;
    z-index: 1
}

.cj-journey-step-icon .material-icons {
    font-size: 24px
}

.cj-journey-steps li > div {
    min-width: 0
}

.cj-journey-steps strong {
    display: block;
    font-size: 13px;
    color: var(--ws-ink, #183343);
    line-height: 1.5
}

.cj-journey-steps small {
    display: block;
    font-size: 11px;
    line-height: 1.7;
    color: #81919c;
    margin-top: 4px
}

.cj-journey-steps .is-completed .cj-journey-step-icon, .cj-journey-steps .is-completed strong {
    color: #278c5c
}

.cj-journey-steps .is-completed:before {
    background: #93cfaf !important
}

.cj-journey-steps .is-current .cj-journey-step-icon {
    color: var(--cj-primary)
}

.cj-journey-steps .is-exited .cj-journey-step-icon {
    color: #b35a5a
}

.cj-journey-progress {
    border: 1px solid var(--cj-line);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 16px;
    overflow: hidden
}

.cj-journey-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px;
    cursor: pointer;
    list-style: none
}

.cj-journey-summary::-webkit-details-marker {
    display: none
}

.cj-journey-summary > span {
    min-width: 0
}

.cj-journey-summary strong {
    display: block;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ws-ink, #183343)
}

.cj-journey-summary small {
    display: block;
    color: #718390;
    font-size: 11px;
    line-height: 1.6;
    margin-top: 4px
}

.cj-journey-summary > .material-icons {
    flex: none;
    color: var(--cj-primary);
    font-size: 21px
}

.cj-journey-progress[open] > .cj-journey-summary {
    border-bottom: 1px solid var(--cj-line)
}

.cj-journey-progress[open] > .cj-journey-summary > .material-icons {
    transform: rotate(180deg)
}

.cj-journey-summary:focus-visible {
    outline: 2px solid var(--cj-primary);
    outline-offset: -3px
}

.cj-journey-body {
    padding: 16px
}

.cj-journey-body .cj-panel-heading h3 {
    margin: 0
}

.cj-journey-steps li > div {
    flex: 1;
    padding: 0 0 4px
}

.cj-journey-steps .is-completed .material-icons {
    color: #278c5c
}

.cj-journey-steps .is-skipped .material-icons, .cj-journey-steps .is-skipped strong, .cj-journey-steps .is-skipped .cj-journey-state-label {
    color: #b74646
}

.cj-journey-steps .is-skipped:before {
    background: #edbaba !important
}

.cj-journey-steps .is-current .cj-journey-state-label {
    color: var(--cj-primary)
}

/* Customer photos retain initials as a fallback in details and directory rows. */
.cj-customer-photo-wrap {
    position: relative;
    width: 112px;
    margin-bottom: 18px;
}

.cj-identity-avatar.cj-customer-photo {
    position: relative;
    width: 112px;
    height: 112px;
    overflow: hidden;
    margin: 0;
    font-size: 36px;
    border-radius: 24px;
}

.cj-customer-photo img, .cj-customer-list-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cj-photo-choose {
    position: absolute;
    right: -7px;
    bottom: -7px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--cj-primary);
}

.cj-photo-choose .material-icons {
    font-size: 17px;
}

.cj-photo-choose:disabled {
    opacity: .6;
}

.cj-photo-choose:focus-visible {
    outline: 2px solid var(--cj-primary);
    outline-offset: 3px;
}

.cj-photo-controls {
    margin: 0 0 18px;
}

.cj-photo-controls > small {
    color: var(--ws-muted, #738394);
    display: block;
    font-size: 10px;
    margin-bottom: 9px;
}

.cj-photo-controls > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cj-photo-controls p {
    font-size: 11px;
    margin: 10px 0;
}

.cj-customer-list-photo {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

.cj-directory-photo-feedback {
    flex: none;
    padding: 10px 20px;
    border-bottom: 1px solid var(--cj-line);
    background: #fff;
    font-size: 12px;
}

.cj-directory-photo-action {
    display: block;
    width: 100%;
    padding: 8px 20px;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 13px;
    color: inherit;
}

.cj-directory-photo-action:hover {
    background: var(--cj-soft);
}

/* Shared two-column variant for detail pages without an insights panel. */
@media (min-width: 768px) {
    .cj-profile-columns.cj-profile-columns-two {
        grid-template-columns:minmax(240px, 300px) minmax(0, 1fr)
    }
}

/* Flush account group list and details workspace. */
.bd-app-shell .bd-page-accounts .bd-list-content.bd-account-groups-content {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.bd-account-groups-content > div:has(>ng-include) {
    display: flex;
    flex: 1;
    min-height: 0
}

.bd-account-groups-content > div > ng-include, .bd-account-groups, .bd-account-groups > div {
    display: block;
    flex: 1;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%
}

.bd-account-groups .bd-account-groups-workspace {
    display: grid;
    grid-template-columns:minmax(240px, 320px) minmax(0, 1fr);
    height: 100%;
    min-height: 0
}

.bd-account-group-list, .bd-account-group-detail {
    min-width: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 16px
}

.bd-account-group-list {
    border-right: 1px solid var(--cj-line);
    background: #fff
}

.bd-account-group-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px !important;
    padding: 0 !important
}

.bd-account-group-toolbar .btn-add {
    margin-right: auto;
    order: -1
}

.bd-account-group-toolbar .inbox-pagination {
    margin: 0 0 0 auto;
    padding: 0
}

.bd-account-group-list .collection {
    padding: 0;
    margin: 12px 0 0;
    float: none
}

.bd-account-group-list .collection-item {
    padding: 12px !important;
    display: flex;
    gap: 10px;
    align-items: flex-start
}

.bd-account-group-list .collection-item > .icon_4 {
    position: static !important;
    flex: none;
    margin: 0 !important
}

.bd-account-group-list .collection-item > div {
    flex: 1;
    min-width: 0;
    padding: 0;
    width: auto
}

.bd-account-group-list .email-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-wrap: anywhere
}

.bd-account-group-list .small-time-ago {
    position: static;
    float: none !important;
    white-space: normal
}

.bd-account-group-panel {
    padding: 0;
    border: 0;
    box-shadow: none
}

.bd-account-group-header {
    padding: 0 0 16px !important;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    float: none
}

.bd-account-group-header > div:first-child {
    width: auto !important;
    flex: none
}

.bd-account-group-header > div:last-child {
    width: auto !important;
    flex: 1;
    min-width: 0;
    float: none !important
}

.bd-account-group-detail .nav-tabs {
    margin: 16px 0
}

.bd-account-group-detail .mail-option {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px
}

@media (max-width: 767px) {
    .bd-app-shell .bd-page-accounts .bd-list-content.bd-account-groups-content {
        overflow: auto
    }

    .bd-account-groups .bd-account-groups-workspace {
        display: flex;
        flex-direction: column;
        height: auto
    }

    .bd-account-groups, .bd-account-groups > div {
        height: auto
    }

    .bd-account-group-list {
        max-height: 340px;
        border-right: 0;
        border-bottom: 1px solid var(--cj-line);
        flex: none
    }

    .bd-account-group-list, .bd-account-group-detail {
        padding: 12px
    }

    .bd-account-group-detail {
        overflow: visible
    }
}
