.spcrm-workspace,
.spcrm-profile-shell {
    color: #172033;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.spcrm-page .blog_header,
body.single-crm_contact .blog_header {
    display: none !important;
}

body.spcrm-page .index_banner,
body.spcrm-page .entry-header {
    display: none !important;
}

body.spcrm-page .single-inner {
    padding-top: 0 !important;
}

body.spcrm-page .page_content {
    padding-top: 0 !important;
}

body.spcrm-page .single-content {
    padding-top: 0 !important;
}

@media (min-width: 900px) {
    body.spcrm-page .left_nav {
        display: none !important;
    }

    body.spcrm-page .main_body {
        width: min(100%, 980px);
        max-width: 980px;
    }

    body.spcrm-page .page_main {
        width: min(100%, 760px) !important;
        max-width: 760px !important;
        flex: 0 0 auto;
    }

    body.spcrm-page .page_content {
        padding: 32px 44px 42px !important;
    }
}

.spcrm-workspace {
    width: 100%;
    padding: 0 0 34px;
}

.spcrm-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 20px 0 17px;
    border-top: 1px solid #dfe7ee;
    border-bottom: 1px solid #dfe7ee;
}

.spcrm-kicker {
    display: block;
    margin-bottom: 6px;
    color: #668095;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.spcrm-hero h2 {
    margin: 0;
    color: #122033;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: 0;
}

.spcrm-workspace h2::before,
.spcrm-profile-shell h2::before,
.spcrm-profile-shell h3::before {
    display: none !important;
    content: "" !important;
}

.spcrm-hero p {
    max-width: 560px;
    margin: 6px 0 0;
    color: #637589;
    font-size: 14px;
    line-height: 1.65;
}

.spcrm-primary-action,
.spcrm-record-actions a,
.spcrm-result-meta a {
    color: #0f766e;
    text-decoration: none;
}

.spcrm-primary-action {
    flex: 0 0 auto;
    justify-self: end;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid #143044;
    border-radius: 8px;
    background: #142437;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.spcrm-primary-action:hover {
    border-color: #0f766e;
    background: #0f766e;
    color: #fff;
}

.spcrm-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 14px;
    overflow: hidden;
    border-bottom: 1px solid #dfe7ee;
    background: transparent;
}

.spcrm-stat {
    min-width: 0;
    padding: 13px 16px 12px 0;
    border-right: 1px solid #edf2f6;
    background: transparent;
}

.spcrm-stat + .spcrm-stat {
    padding-left: 16px;
}

.spcrm-stat:last-child {
    border-right: 0;
}

.spcrm-stat strong {
    display: block;
    color: #13233a;
    font-size: 25px;
    line-height: 1;
}

.spcrm-stat span {
    display: block;
    margin-top: 7px;
    color: #344860;
    font-size: 13px;
    font-weight: 700;
}

.spcrm-stat small {
    display: block;
    margin-top: 3px;
    color: #8090a3;
    font-size: 12px;
}

.spcrm-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(92px, .58fr);
    gap: 9px;
    align-items: end;
    margin: 14px 0 8px;
    padding: 13px 0;
    border-top: 1px solid #edf2f6;
    border-bottom: 1px solid #edf2f6;
}

.spcrm-search {
    grid-column: 1 / -1;
}

.spcrm-search,
.spcrm-select {
    display: grid;
    gap: 6px;
}

.spcrm-search span,
.spcrm-select span {
    color: #607086;
    font-size: 12px;
    font-weight: 700;
}

.spcrm-search input,
.spcrm-select select,
.spcrm-toolbar button {
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #dde5ee;
    border-radius: 7px;
    background: #fbfcfd;
    color: #162337;
    font-size: 14px;
}

.spcrm-search input,
.spcrm-select select {
    width: 100%;
    padding: 0 12px;
}

.spcrm-toolbar button {
    padding: 0 16px;
    border-color: #152235;
    background: #152235;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.spcrm-search input:focus,
.spcrm-select select:focus,
.spcrm-toolbar button:focus,
.spcrm-copy-field:focus,
.spcrm-detail-item:focus {
    outline: 2px solid rgba(15, 118, 110, .18);
    outline-offset: 2px;
    border-color: #6bb8af;
}

.spcrm-result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 28px;
    color: #75859a;
    font-size: 13px;
}

.spcrm-record-list {
    display: grid;
    gap: 0;
    margin-top: 8px;
    border-top: 1px solid #e7edf3;
}

.spcrm-record {
    display: grid;
    grid-template-columns: minmax(210px, 1.05fr) minmax(220px, 1.25fr);
    gap: 12px 18px;
    align-items: start;
    padding: 17px 0;
    border-top: 1px solid #edf1f5;
}

.spcrm-record:not(.is-detail) {
    grid-template-columns: 1fr;
    gap: 10px;
}

.spcrm-record:first-child {
    border-top: 0;
}

.spcrm-record.is-hidden {
    display: none;
}

.spcrm-record.is-detail {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 0 18px;
    border-top: 0;
    border-bottom: 1px solid #e8edf3;
}

.spcrm-identity {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
}

.spcrm-avatar {
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #f6f8fa;
}

.spcrm-avatar img,
.spcrm-avatar-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.spcrm-avatar-fallback {
    display: grid;
    place-items: center;
    background: #eaf5f2;
    color: #0f766e;
    font-weight: 800;
}

.spcrm-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.spcrm-name,
.spcrm-title-row h2 {
    min-width: 0;
    margin: 0;
    color: #1a2940;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.spcrm-priority,
.spcrm-tags span,
.spcrm-inline-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border: 1px solid #dfe7ee;
    border-radius: 6px;
    background: #f8fafc;
    color: #53657b;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.spcrm-priority.is-high {
    border-color: #f2c2b8;
    background: #fff6f3;
    color: #b5432d;
}

.spcrm-priority.is-medium {
    border-color: #bddbd7;
    background: #f3fbf9;
    color: #0f766e;
}

.spcrm-priority.is-low {
    border-color: #d9e1ec;
    background: #f7f9fc;
    color: #64748b;
}

.spcrm-tags,
.spcrm-inline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

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

.spcrm-record:not(.is-detail) .spcrm-contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-left: 64px;
}

@supports selector(:has(*)) {
    .spcrm-record:not(.is-detail) .spcrm-contact-grid:has(.spcrm-copy-field:only-child) {
        grid-template-columns: minmax(180px, 250px);
    }
}

.spcrm-profile-shell .spcrm-record.is-detail .spcrm-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spcrm-profile-shell .spcrm-record.is-detail .spcrm-contact-grid .spcrm-copy-field:first-child {
    grid-column: 1 / -1;
}

.spcrm-copy-field {
    display: grid;
    gap: 2px;
    min-width: 0;
    min-height: 52px;
    padding: 8px 10px;
    border: 1px solid #e4ebf2;
    border-radius: 7px;
    background: #fbfcfd;
    color: #172033;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.spcrm-record:not(.is-detail) .spcrm-copy-field {
    min-height: 42px;
    gap: 1px;
    padding: 7px 10px;
    border-color: #e8eef4;
    background: #fcfdfe;
}

.spcrm-copy-field:hover,
.spcrm-copy-field.is-copied {
    border-color: #bddbd7;
    background: #f3fbf9;
}

.spcrm-copy-field.is-copy-selected {
    border-color: #e9d6a3;
    background: #fffaf0;
}

.spcrm-copy-field span,
.spcrm-copy-field small {
    color: #74849a;
    font-size: 12px;
}

.spcrm-copy-field strong {
    min-width: 0;
    overflow: hidden;
    color: #172033;
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.spcrm-record:not(.is-detail) .spcrm-copy-field strong {
    font-size: 13px;
}

.spcrm-profile-shell .spcrm-record.is-detail .spcrm-copy-field strong {
    overflow: visible;
    white-space: normal;
}

.spcrm-summary {
    grid-column: 1 / -1;
    padding-left: 64px;
    color: #465a70;
    font-size: 14px;
    line-height: 1.75;
}

.spcrm-inline-tags {
    grid-column: 1 / -1;
    padding-left: 64px;
    margin-top: -4px;
}

.spcrm-record:not(.is-detail) .spcrm-record-actions {
    padding-left: 64px;
}

.spcrm-record-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    color: #8290a3;
    font-size: 13px;
}

.spcrm-record-actions a,
.spcrm-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #d8e5e2;
    border-radius: 7px;
    background: #f7fbfa;
    color: #0f766e;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.spcrm-action-button.is-copied,
.spcrm-action-button:hover,
.spcrm-record-actions a:hover {
    border-color: #bddbd7;
    background: #eef8f6;
}

.spcrm-action-button.is-copy-selected {
    border-color: #e9d6a3;
    background: #fffaf0;
}

.spcrm-empty,
.spcrm-lock {
    padding: 28px;
    border: 1px solid #e8edf3;
    border-radius: 8px;
    background: #fff;
    color: #66758a;
    text-align: center;
}

.spcrm-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
}

.spcrm-pagination .page-numbers {
    min-width: 36px;
    padding: 8px 10px;
    border: 1px solid #e1e8ef;
    border-radius: 8px;
    color: #32445a;
    text-align: center;
    text-decoration: none;
}

.spcrm-pagination .current {
    background: #152235;
    color: #fff;
}

.spcrm-profile-shell {
    display: grid;
    gap: 15px;
    margin-top: 0;
    padding: 0 0 30px;
}

.spcrm-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 38px;
    padding: 4px 0 10px;
    border-bottom: 1px solid #e8edf3;
    color: #7b8da1;
    font-size: 13px;
}

.spcrm-breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #dfe7ee;
    border-radius: 7px;
    background: #fff;
    color: #0f766e;
    font-weight: 800;
    text-decoration: none;
}

.spcrm-breadcrumb strong {
    color: #23344a;
    font-weight: 800;
}

.spcrm-profile-shell .spcrm-record.is-detail .spcrm-identity {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    margin-bottom: 2px;
}

.spcrm-profile-shell .spcrm-record.is-detail .spcrm-avatar {
    width: 72px;
    height: 72px;
}

.spcrm-profile-shell .spcrm-record.is-detail .spcrm-title-row h2 {
    font-size: 26px;
    letter-spacing: 0;
}

.spcrm-profile-shell .spcrm-record.is-detail .spcrm-contact-grid {
    align-self: center;
}

.spcrm-profile-shell .spcrm-record.is-detail .spcrm-summary,
.spcrm-profile-shell .spcrm-record.is-detail .spcrm-inline-tags,
.spcrm-profile-shell .spcrm-record.is-detail .spcrm-record-actions {
    padding-left: 84px;
}

.spcrm-profile-shell .spcrm-record.is-detail .spcrm-copy-field {
    background: #fbfcfd;
    min-height: 58px;
}

.spcrm-profile-shell .spcrm-record.is-detail .spcrm-copy-field.is-copied {
    background: #f3fbf9;
}

.spcrm-detail-section {
    padding: 16px 0;
    border-top: 1px solid #e8edf3;
}

.spcrm-detail-section h3 {
    margin: 0 0 10px;
    color: #18273d;
    font-size: 18px;
    line-height: 1.3;
}

.spcrm-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.spcrm-detail-item {
    appearance: none;
    display: grid;
    gap: 4px;
    width: 100%;
    min-width: 0;
    min-height: 58px;
    padding: 11px 0 10px;
    border: 0;
    border-bottom: 1px solid #f0f3f6;
    border-radius: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}

.spcrm-detail-item:hover,
.spcrm-detail-item.is-copied {
    background: #f8fbfa;
    border-bottom-color: #bddbd7;
}

.spcrm-detail-item.is-copy-selected {
    background: #fffaf0;
    border-bottom-color: #e9d6a3;
}

.spcrm-detail-item.is-wide {
    grid-column: 1 / -1;
}

.spcrm-detail-item span {
    color: #7c8da2;
    font-size: 12px;
    font-weight: 700;
}

.spcrm-detail-item strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #21324a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
}

.spcrm-detail-item.is-warn strong {
    color: #b5472e;
}

.spcrm-rich-content {
    color: #263850;
    line-height: 1.8;
}

@media (max-width: 760px) {
    .spcrm-hero,
    .spcrm-result-meta {
        align-items: flex-start;
    }

    .spcrm-hero {
        grid-template-columns: 1fr;
    }

    .spcrm-primary-action {
        justify-self: start;
    }

    .spcrm-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .spcrm-stat {
        padding: 12px 8px;
    }

    .spcrm-stat + .spcrm-stat {
        padding-left: 8px;
    }

    .spcrm-stat strong {
        font-size: 22px;
    }

    .spcrm-record {
        grid-template-columns: 1fr;
    }

    .spcrm-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spcrm-search,
    .spcrm-toolbar button {
        grid-column: 1 / -1;
    }

    .spcrm-record.is-detail {
        grid-template-columns: 1fr;
    }

    .spcrm-record:not(.is-detail) .spcrm-contact-grid,
    .spcrm-profile-shell .spcrm-record.is-detail .spcrm-contact-grid,
    .spcrm-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spcrm-record:not(.is-detail) .spcrm-contact-grid {
        margin-left: 64px;
    }

    .spcrm-record-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .spcrm-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-top: 1px solid #edf2f6;
    }

    .spcrm-stat:nth-child(2n) {
        border-right: 0;
    }

    .spcrm-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .spcrm-record:not(.is-detail) .spcrm-contact-grid,
    .spcrm-profile-shell .spcrm-record.is-detail .spcrm-contact-grid,
    .spcrm-detail-grid {
        grid-template-columns: 1fr;
    }

    .spcrm-record:not(.is-detail) .spcrm-contact-grid,
    .spcrm-record:not(.is-detail) .spcrm-record-actions,
    .spcrm-summary,
    .spcrm-inline-tags,
    .spcrm-profile-shell .spcrm-record.is-detail .spcrm-summary,
    .spcrm-profile-shell .spcrm-record.is-detail .spcrm-inline-tags,
    .spcrm-profile-shell .spcrm-record.is-detail .spcrm-record-actions {
        padding-left: 0;
        margin-left: 0;
    }

    .spcrm-profile-shell .spcrm-record.is-detail .spcrm-identity {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .spcrm-profile-shell .spcrm-record.is-detail .spcrm-avatar {
        width: 60px;
        height: 60px;
    }
}
