#customersPanel .client-factbox {
    position: sticky;
    top: 88px;
    z-index: 1;
    max-height: calc(100dvh - 104px);
    overflow: auto;
}
.client-summary-title, .client-card-buttons, .client-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem .85rem;
}
#manageCustomer.client-account-card {
    box-sizing: border-box;
    width: min(1050px, calc(100vw - 24px));
    max-height: 90dvh;
    overflow: auto;
}
#manageCustomer :is(h2, h3, h4, p) { margin-block: 0 .35rem; }
.client-card-heading { margin-bottom: .75rem; }
.client-card-buttons a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: .35rem .7rem;
    border: 1px solid #c9dfe2;
    border-radius: 8px;
    color: #006970;
    font-weight: 650;
}
.client-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(215px, .5fr);
    gap: 1rem;
    align-items: start;
}
.client-reading-factbox {
    background: #f1f7f8;
    border: 1px solid #d6e7e9;
    border-radius: 10px;
    padding: .75rem;
    max-height: 55dvh;
    overflow: auto;
}
.client-reading-facts article + article {
    border-top: 1px solid #d6e7e9;
    margin-top: .55rem;
    padding-top: .55rem;
}
.client-reading-facts dl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0;
    gap: .18rem .4rem;
    font-size: .78rem;
}
.client-reading-facts dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.client-meter-subform .table-wrap { margin-block: .4rem; overflow: auto; }
.client-meter-subform th, .client-meter-subform td { padding: .35rem .5rem; }
#manageCustomer .client-whish-switch {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
    margin-top: .6rem;
}
#manageCustomer .client-whish-switch input { width: auto; min-height: 0; margin: 0; accent-color: #007b83; }
#clientCardNotice:empty { display: none; }
.client-preview-banner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .4rem .6rem;
    margin-bottom: .5rem;
    background: #fff4dc;
    border-radius: 8px;
    color: #65420c;
    font-size: .8rem;
}
@media (max-width: 1150px) {
    #customersPanel .client-factbox { grid-row: 1; top: 76px; max-height: 24dvh; }
}
@media (max-width: 700px) {
    .client-card-grid { grid-template-columns: minmax(0, 1fr); }
    .client-reading-factbox { max-height: none; }
}

#customersPanel .client-directory .table-wrap {
    border: 1px solid #dce8eb;
    border-radius: 8px;
    overflow: auto;
}
#customersPanel .client-directory tbody tr:hover { background: #eef7f7; }
#customersPanel .client-directory .client-selected { background: #e1f3f1; }
#customersPanel .client-username { color: #44626e; font-variant-numeric: tabular-nums; }
#customersPanel .client-meter-count { font-variant-numeric: tabular-nums; }
#customersPanel button.client-name {
    min-height: 30px;
    padding: 2px 0;
    background: transparent;
    color: #006970;
    border: 0;
    font-weight: 650;
    text-align: start;
}
#customersPanel button.client-name:hover { text-decoration: underline; }
.client-status {
    display: inline-block;
    border-radius: 999px;
    padding: .12rem .4rem;
    background: #f2f4f5;
    color: #506571;
    font-size: .7rem;
    font-weight: 650;
}
.client-status.is-enabled { background: #e1f3eb; color: #1d6248; }
.client-meter-subform,
#manageCustomer .client-account-actions,
#manageCustomer .client-whish-switch {
    padding: .65rem .75rem;
    border: 1px solid #dce8eb;
    border-radius: 9px;
}
#manageCustomer .client-account-actions { margin-top: .65rem; }
#manageCustomer .client-whish-switch { background: #f7fbfb; }
.client-card-heading {
    padding-bottom: .7rem;
    border-bottom: 1px solid #dce8eb;
}

.client-directory-factbox {
    margin-top: .75rem;
    max-height: none;
    overflow: visible;
}
.client-directory-factbox h3 { margin: 0 0 .4rem; }
#customersPanel .client-directory tbody tr { cursor: pointer; }
#manageCustomer #clientNameForm {
    display: flex;
    flex-direction: row;
    align-items: end;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .55rem;
}
#manageCustomer #clientNameForm label { flex: 1 1 12rem; }
#manageCustomer #clientNameForm button { min-height: 38px; }
