/* Modern Client Listing Styles */
.client-listing-card p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2;
}

.client-listing-row {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    width: 100%;
    padding: 0;
    line-height: 1.2;
}

.client-listing-card {
    display: flex;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    width: 100%;
    min-width: 1050px;
    max-width: 1150px;
    transition: all 0.2s ease;
    border: 1px solid #eaeef2;
    overflow: hidden;
    margin: 0;
    padding: 0;
    align-items: stretch;
    min-height: 300px;
    height: auto;
    flex-direction: row;
    line-height: 1.2;
}

.client-listing-card:hover {
    box-shadow: 0 8px 32px rgba(44,62,80,0.16);
    transform: translateY(-2px) scale(1.01);
}

/* Left: Company Information */
.client-listing-left {
    display: flex;
    flex-direction: column;
    width: 35%;
    padding: 0;
    box-sizing: border-box;
    border-right: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f8fafc 60%, #e0f7fa 100%);
    justify-content: flex-start;
}

.company-info {
    width: 100%;
}

.company-info-title {
    margin: 0;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    background-color: #f8fafc;
    border-bottom: 1px solid #eaeef2;
    line-height: 1.2;
}

.company-details {
    flex: 1;
    padding: 5px 15px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    line-height: 1.2;
}

.company-name, .company-phone, .company-email, .company-address {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4a5568;
    margin: 0;
    padding: 2px 0;
    line-height: 1.2;
    min-height: 24px;
}

.company-name {
    font-weight: 700;
    font-size: 16px;
    color: #1a202c;
    margin-bottom: 0;
}

.company-phone a,
.company-email a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s;
}

/* Enhanced View Proof Buttons */
.view-proof-buttons {
    display: flex;
    gap: 10px;
    margin: 15px 0 10px;
    flex-wrap: wrap;
}

.view-proof-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.view-company-proof {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    border: none;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.view-company-proof::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.view-company-proof:hover::before {
    opacity: 1;
}

.view-company-proof:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
    color: white !important;
    background: #4f46e5 !important;
}

/* Specific override for inline styled buttons */
a.view-company-proof:hover {
    color: white !important;
    background: #4f46e5 !important;
}

.view-company-proof:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.view-self-proof {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    border: none;
    text-shadow: 0 1px 1px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.view-self-proof::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #34d399, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.view-self-proof:hover::before {
    opacity: 1;
}

.view-self-proof:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.view-self-proof:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.view-proof-btn i {
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .view-proof-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .view-proof-btn {
        width: 100%;
        padding: 10px 15px;
    }
}

.company-phone a:hover,
.company-email a:hover {
    color: #3182ce;
}

.dashicons-building,
.dashicons-phone,
.dashicons-email-alt {
    color: #4a5568;
    width: 20px;
    height: 20px;
    font-size: 18px;
    margin-top: 2px;
}

.company-name .dashicons-building {
    color: #2c5282;
}

.company-phone .dashicons-phone {
    color: #2f855a;
}

.company-email .dashicons-email-alt {
    color: #9f7aea;
}

.company-address .dashicons-location {
    color: #e53e3e;
}

/* Middle: Settlement Details */
.client-listing-middle {
    display: flex;
    flex-direction: column;
    width: 45%;
    padding: 0;
    box-sizing: border-box;
    border-right: 1px solid #f0f0f0;
    background: #f8fafc;
    min-width: 0;
}

.settlement-title {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 14px;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.settlement-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px 15px 0;
}

.settlement-row {
    display: flex;
    align-items: center;
    padding: 5px 15px;
    min-height: 32px;
    margin: 0;
    flex-shrink: 0;
    border-bottom: 1px solid #f0f4f8;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.5;
}

.settlement-label {
    color: #4a5568;
    font-size: 13px;
    font-weight: 500;
    margin-right: 2px;
}

.settlement-label::after {
    content: ' : -';
    margin: 0 6px 0 2px;
    color: #a0aec0;
}

.settlement-value {
    font-weight: 400;
    color: #2d3748;
    text-align: left;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 2px;
}

.client-listing-card .contact-title {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 14px;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 5px 15px 0;
}

.address-with-icon {
    display: flex;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #4a5568;
}

.address-with-icon .dashicons-location {
    color: #e53e3e;
    width: 20px;
    height: 20px;
    font-size: 18px;
    margin-top: 2px;
}

.no-address {
    color: #a0aec0;
    font-style: italic;
    font-size: 14px;
}

.client-listing-card .contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #444;
    font-size: 15px;
}

.client-listing-card .contact-info .dashicons {
    margin-right: 8px;
    color: #23c16b;
    font-size: 17px;
    vertical-align: middle;
}

/* Right: Action Buttons */
.client-listing-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20%;
    padding: 0;
    box-sizing: border-box;
    background: #fff;
    min-width: 0;
    text-align: center;
}

.payment-status-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
    height: 100%;
    position: relative;
}

.payment-status-title {
    font-size: 14px;
    color: #4a5568;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 15px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    background-color: #f8fafc;
}

.payment-status-badge {
    font-size: 16px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 4px;
    margin: 30px auto 0;
    text-align: center;
    width: auto;
    box-sizing: border-box;
    text-transform: capitalize;
    min-width: 120px;
}

.payment-status-badge.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 2px solid #ffeeba;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    animation: blinkPending 1s ease-in-out infinite, pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    transform: translateZ(0);
    transition: all 0.3s ease;
}

.payment-status-badge.status-pending:hover {
    animation: none;
    background-color: #ffeeba;
    transform: scale(1.05);
}

@keyframes blinkPending {
    0%, 100% { 
        background-color: #fff3cd;
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
    }
    50% { 
        background-color: #ffeeba;
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
    }
}

.payment-status-badge.status-approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-status-badge.status-disapproved {
    background-color: #ffebee;
    color: #c62828;
    border: 2px solid #ffcdd2;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    animation: blink 1s ease-in-out infinite, pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
    transform: translateZ(0);
    transition: all 0.3s ease;
}

.payment-status-badge.status-disapproved:hover {
    animation: none;
    background-color: #ffcdd2;
    transform: scale(1.05);
}

@keyframes blink {
    0%, 100% { 
        background-color: #ffebee;
        box-shadow: 0 0 5px rgba(244, 67, 54, 0.5);
    }
    50% { 
        background-color: #ffcdd2;
        box-shadow: 0 0 20px rgba(244, 67, 54, 0.8);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

.client-listing-card > div:last-child > * {
    align-items: center;
    text-align: center;
    width: 100%;
}

.client-listing-card .settlement-title {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 16px;
    color: #23c16b;
    letter-spacing: 0.5px;
    padding: 8px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.client-listing-card .settlement-info {
    font-size: 15px;
    color: #444;
    margin-bottom: 0;
    line-height: 1.8;
    padding: 5px 15px 0;
}

.client-listing-card .settlement-info span.label {
    font-weight: 600;
    color: #1a202c;
    min-width: 110px;
    display: inline-block;
}

/* View More Button */
.client-listing-card .view-more-btn {
    display: inline-block;
    background: #23c16b;
    color: #fff;
    border-radius: 6px;
    padding: 10px 32px;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    text-align: center;
    min-width: 130px;
    letter-spacing: 0.5px;
    margin-top: 18px;
    position: relative;
    overflow: hidden;
}

.client-listing-card .view-more-btn:hover {
    background: #1b9b55;
    box-shadow: 0 4px 16px rgba(44,62,80,0.14);
    transform: translateY(-2px) scale(1.04);
}

.client-listing-card .view-more-btn .dashicons {
    margin-left: 8px;
    transition: margin-left 0.2s;
}

.client-listing-card .view-more-btn:hover .dashicons {
    margin-left: 14px;
}

/* Responsive */
@media (max-width: 900px) {
    .client-listing-card {
        flex-direction: column;
        min-width: 0;
        max-width: 98vw;
    }

    .client-listing-left,
    .client-listing-middle,
    .client-listing-right {
        width: 100% !important;
        min-width: 0;
        padding: 16px 10px !important;
        border-right: none !important;
        border-left: none !important;
        border-bottom: 1px solid #f0f0f0;
        align-items: center !important;
        justify-content: center !important;
    }

    .client-listing-card .client-logo {
        width: 64px;
        height: 64px;
    }

    .client-listing-card .client-logo img,
    .client-listing-card .client-logo .dashicons {
        width: 48px;
        height: 48px;
    }

    .client-listing-card > div:last-child {
        border-bottom: none !important;
    }
}

@media (max-width: 600px) {
    .client-listing-row {
        margin: 16px 0;
    }

    .client-listing-card {
        box-shadow: 0 2px 8px rgba(44,62,80,0.10);
        border-radius: 10px;
    }

    .client-listing-card > div {
        padding: 16px 8px !important;
    }
    .client-listing-card .client-logo {
        width: 54px;
        height: 54px;
    }
    .client-listing-card .client-logo img,
    .client-listing-card .client-logo .dashicons {
        width: 40px;
        height: 40px;
    }
    .client-listing-card .client-name {
        font-size: 16px;
    }
}
