/* Client List Layout */
.client-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.client-list-item {
    display: flex;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Company Logo and Name Section */
.client-logo-name {
    flex: 0 0 25%;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}

.client-logo-container {
    width: 90px;
    height: 90px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    padding: 5px;
}

.client-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.client-placeholder {
    font-size: 30px;
    color: #ccc;
}

.client-name {
    text-align: center;
}

.company-name {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Section Headings */
.section-heading {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* Contact Details Section */
.client-contact-details {
    flex: 0 0 40%;
    padding: 25px 30px;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: #555;
    font-size: 14px;
}

.contact-row:last-child {
    margin-bottom: 0;
}

.contact-row .dashicons {
    margin-right: 12px;
    color: #666;
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.contact-row a {
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-row a:hover {
    color: #2271b1;
    text-decoration: none;
}

/* Settlement Section */
.client-settlement {
    flex: 0 0 35%;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
    position: relative;
}

.settlement-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: #444;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row .label {
    color: #666;
    font-weight: 400;
}

.detail-row .value {
    color: #333;
    font-weight: 500;
}

.view-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: #4CAF50;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    align-self: flex-end;
    margin-top: auto;
    border: none;
    cursor: pointer;
}

.view-details-btn:hover {
    background: #43A047;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.view-details-btn .dashicons {
    margin-left: 5px;
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .client-list-item {
        flex-wrap: wrap;
    }
    
    .client-logo-name {
        flex: 0 0 100%;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .client-logo-container {
        width: 80px;
        height: 80px;
        margin: 0 20px 0 0;
    }
    
    .client-contact-details {
        flex: 0 0 60%;
        padding: 20px;
    }
    
    .client-settlement {
        flex: 0 0 40%;
        border-left: 1px solid #eee;
    }
}

@media (max-width: 768px) {
    .client-contact-details,
    .client-settlement {
        flex: 0 0 100% !important;
        border-left: none !important;
        border-top: 1px solid #eee;
    }
    
    .client-settlement {
        text-align: center;
    }
    
    .settlement-amount {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .view-details-btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .client-logo-name {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .client-logo-container {
        margin: 0 0 15px 0 !important;
    }
    
    .client-contact-details {
        padding: 20px 15px;
    }
    
    .contact-row {
        font-size: 0.95em;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #2271b1;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background-color: #2271b1;
    color: white;
    border-color: #2271b1;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
    .client-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .client-grid {
        grid-template-columns: 1fr;
    }
}
