.customer-page {
    padding: 0;
}

.customer-page-header,
.customer-table-shell {
    background: #fff;
    border: 1px solid #ebe9f1;
    border-radius: 8px;
}

.customer-page-header {
    display: grid;
    align-items: center;
    gap: .75rem;
    grid-template-columns: minmax(14rem, auto) minmax(22rem, 1fr) auto;
    padding: .55rem .75rem;
    margin-bottom: .45rem;
}

.customer-page-heading {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.customer-page-icon,
.customer-insight__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex: 0 0 auto;
}

.customer-page-icon {
    width: 36px;
    height: 36px;
    background: #eef7f4;
    color: #00875a;
}

.customer-page-icon svg,
.customer-insight__icon svg {
    width: 20px;
    height: 20px;
}

.customer-page-actions svg,
.customer-modal-panel__header svg {
    width: 15px;
    height: 15px;
}

.customer-page-title h2 {
    color: #2f2b3d;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 .2rem;
}

.customer-page-title p {
    color: #6e6b7b;
    font-size: .75rem;
    line-height: 1.2;
    margin: 0;
    max-width: 24rem;
}

.customer-page-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.customer-insights {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: .85rem;
    margin-bottom: 1rem;
}

.customer-insight {
    background: #fff;
    border: 1px solid #ebe9f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    min-height: 104px;
    padding: 1rem;
}

.customer-insight__label {
    color: #6e6b7b;
    display: block;
    font-size: .78rem;
    font-weight: 500;
    margin-bottom: .35rem;
}

.customer-insight__value {
    color: #2f2b3d;
    display: block;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.05;
}

.customer-insight__hint {
    color: #82868b;
    display: block;
    font-size: .75rem;
    margin-top: .35rem;
}

.customer-insight__icon {
    width: 40px;
    height: 40px;
}

.customer-insight__icon--clients {
    background: #eef7f4;
    color: #00875a;
}

.customer-insight__icon--opportunities {
    background: #eef5ff;
    color: #0b5ed7;
}

.customer-insight__icon--properties {
    background: #fff6e8;
    color: #b76e00;
}

.customer-insight__icon--radars {
    background: #eafaff;
    color: #007d91;
}

.customer-table-head {
    align-items: flex-start;
    border-bottom: 1px solid #ebe9f1;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.customer-table-head h4 {
    color: #2f2b3d;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 .2rem;
}

.customer-table-head p {
    color: #6e6b7b;
    margin: 0;
}

.customer-table-head__meta {
    color: #6e6b7b;
    font-size: .82rem;
    padding-top: .1rem;
    white-space: nowrap;
}

.customer-datatable-toolbar {
    padding: 1rem 1.25rem .35rem;
    row-gap: .75rem;
}

.customer-datatable-toolbar .dataTables_length label,
.customer-datatable-toolbar .dataTables_filter label {
    color: #6e6b7b;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 0;
}

.customer-datatable-toolbar .dataTables_filter input {
    min-width: 240px;
    margin-left: 0;
}

.customer-datatable-toolbar .dt-buttons {
    gap: .5rem;
}

.customer-list-table {
    margin-bottom: 0 !important;
}

.customer-list-table thead th {
    color: #5e5873;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.customer-list-table tbody td {
    vertical-align: middle;
}

.customer-cell {
    min-width: 0;
}

.customer-cell--person {
    display: flex;
    align-items: center;
}

.customer-avatar {
    height: 38px;
    width: 38px;
}

.customer-identity {
    min-width: 0;
}

.customer-identity a,
.customer-contact-link {
    color: #2f2b3d;
    font-weight: 600;
}

.customer-identity small,
.customer-empty {
    color: #82868b;
    display: block;
}

.customer-actions {
    display: flex;
    gap: .35rem;
    justify-content: flex-end;
}

.customer-actions .btn-icon {
    align-items: center;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    width: 32px;
}

.customer-modal-panel {
    border: 1px solid #ebe9f1;
    border-radius: 8px;
    height: 100%;
    overflow: hidden;
}

.customer-modal-panel__header {
    align-items: center;
    background: #f8f8f8;
    border-bottom: 1px solid #ebe9f1;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem 1rem;
}

.customer-modal-panel__header h5 {
    font-size: .95rem;
    font-weight: 600;
    margin: 0;
}

.customer-control-strip {
    background: transparent;
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.customer-control-strip .customer-insights {
    display: flex;
    flex-wrap: nowrap;
    gap: .35rem;
    margin-bottom: 0;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.customer-control-strip .customer-insight {
    background: #f8f8fb;
    box-shadow: none;
    flex: 1 0 6.5rem;
    min-height: 32px;
    padding: .25rem .4rem;
}

.customer-control-strip .customer-insight > div {
    align-items: center;
    display: flex;
    gap: .3rem;
    min-width: 0;
}

.customer-control-strip .customer-insight__label {
    font-size: .68rem;
    line-height: 1.05;
    margin-bottom: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-control-strip .customer-insight__value {
    font-size: .95rem;
}

.customer-control-strip .customer-insight__hint,
.customer-control-strip .customer-insight__icon {
    display: none;
}

.customer-control-strip .customer-page-actions {
    flex-wrap: nowrap;
}

.customer-table-head {
    display: none;
}

.customer-datatable-toolbar {
    padding: .65rem .85rem .3rem;
}

@media (max-width: 1199px) {
    .customer-page-header {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .customer-control-strip {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .customer-control-strip .customer-page-actions {
        justify-content: flex-start;
    }

    .customer-page-actions {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 767px) {
    .customer-page {
        padding: 0;
    }

    .customer-page-header,
    .customer-table-head {
        align-items: stretch;
    }

    .customer-page-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .customer-page-heading,
    .customer-control-strip,
    .customer-page-actions {
        grid-column: 1;
    }

    .customer-page-heading {
        grid-row: 1;
    }

    .customer-control-strip {
        grid-row: 2;
    }

    .customer-page-actions {
        grid-row: 3;
        justify-content: flex-start;
    }

    .customer-insights {
        grid-template-columns: 1fr;
    }

    .customer-control-strip .customer-insights {
        margin-right: -.25rem;
        padding-right: .25rem;
    }

    .customer-control-strip .customer-page-actions {
        flex-wrap: wrap;
    }

    .customer-datatable-toolbar .dataTables_filter input {
        min-width: 0;
        width: 100%;
    }

    .customer-table-head__meta {
        white-space: normal;
    }
}
