.client-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

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

.client-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
}

.client-meta {
    margin: 6px 0 0;
    color: var(--bs-gray-600, #827d8b);
    font-size: 0.9rem;
}

.client-meta-sep {
    padding: 0 7px;
    color: #c6c3cc;
}

.client-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.client-search {
    display: flex;
    gap: 8px;
    flex: 1 1 320px;
    max-width: 420px;
}

.client-section {
    margin-bottom: 26px;
}

.client-section:last-child {
    margin-bottom: 0;
}

.client-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 11px;
}

.client-section-title {
    margin: 0;
    color: var(--bs-gray-600, #827d8b);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.client-section-count {
    margin-left: 6px;
    color: #b6b3bd;
    font-weight: 600;
}

.client-identifier {
    color: var(--bs-gray-600, #827d8b);
    font-size: 0.85rem;
    white-space: nowrap;
}

.client-muted {
    color: var(--bs-gray-600, #827d8b);
}

.client-empty {
    margin: 0;
    padding: 18px 16px;
    border: 1px dashed var(--bs-border-color, #e0dee3);
    border-radius: 8px;
    color: var(--bs-gray-500, #97939e);
    font-style: italic;
}

.client-contact-name {
    color: var(--bs-gray-900, #433c50);
    font-weight: 600;
}

.client-contact-address {
    color: var(--bs-gray-700, #6d6777);
}

.client-contact-shared {
    margin: 0 0 10px;
    color: var(--bs-gray-700, #6d6777);
    font-size: 0.875rem;
}

.client-contact-others {
    display: block;
    color: var(--bs-gray-700, #6d6777);
    font-size: 0.8rem;
}

.client-form-section {
    margin-bottom: 24px;
}

.client-form-section-head {
    margin-bottom: 12px;
}

.client-form-title {
    margin: 0;
    color: var(--bs-gray-900, #433c50);
    font-size: 1rem;
    font-weight: 600;
}

.client-form-desc {
    margin: 2px 0 0;
    color: var(--bs-gray-600, #827d8b);
    font-size: 0.85rem;
}

.client-form-section .form-label {
    margin-bottom: 4px;
    color: var(--bs-gray-900, #433c50);
    font-size: 0.9rem;
    font-weight: 600;
}

.client-contact-fields {
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--bs-border-color, #e0dee3);
    border-radius: 8px;
    background: #fbfbfd;
}

.client-contact-fields-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.client-form-errors {
    padding: 11px 13px;
    margin-bottom: 18px;
    border: 1px solid #ffc9cb;
    border-radius: 6px;
    background: #fff5f5;
    color: #a32d31;
    font-size: 0.88rem;
}

.client-form-errors p {
    margin: 0;
    font-weight: 600;
}

.client-form-errors ul {
    margin: 5px 0 0;
    padding-left: 18px;
}

.client-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--bs-border-color, #e0dee3);
}

.client-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--bs-border-color, #e0dee3);
}

.client-panel {
    color: #3e3f3a;
}

.client-title h3 {
    margin: 0;
}

.client-section-note {
    font-size: 0.85rem;
}

.client-confirm-actions form {
    display: inline;
}

.clients-table th:nth-child(1) { width: 15%; }
.clients-table th:nth-child(2) { width: 62%; }
.clients-table th:nth-child(3) { width: 13%; }
.clients-table th:nth-child(4) { width: 10%; }

@media (max-width: 575.98px) {
    .client-search {
        width: 100%;
    }
}
