﻿/* ---------- OVERLAY ---------- */
.client-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    z-index: 9999;
}

/* ---------- MODAL BOX ---------- */
.client-modal {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 88vh;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* ---------- MODAL HEADER ---------- */
.client-modal-header {
    display: flex;
    justify-content: space-between;
    padding: 20px 28px;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

    .client-modal-header h2 {
        margin: 0;
        font-size: 22px;
        font-weight: 600;
    }

/* ---------- CLOSE BUTTON ---------- */
.client-modal-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #6b7280;
}

/* ---------- BODY ---------- */
.client-modal-body {
    padding: 26px 28px;
    overflow-y: auto;
    max-height: calc(88vh - 130px);
}

/* ---------- FOOTER ---------- */
.client-modal-footer {
    padding: 16px 28px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
    text-align: right;
}

/* ---------- CARD ---------- */
.client-card {
    padding: 20px;
    border-radius: 10px;
    background: white;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ---------- SECTION TITLE ---------- */
.section-title {
    font-weight: 600;
    margin-bottom: 15px;
}

/* ---------- INVOICE SUMMARY ---------- */
.invoice-summary {
    display: flex;
    gap: 20px;
}

    .invoice-summary .invoice-tile {
        flex: 1;
        background: #f1f5f9;
        padding: 16px;
        border-radius: 10px;
        border-left: 5px solid #3b82f6;
    }

    .invoice-summary h4 {
        margin: 0;
        font-size: 14px;
        color: #475569;
    }

    .invoice-summary p {
        font-size: 22px;
        margin: 5px 0 0;
        font-weight: 600;
    }

/* ---------- STATUS PILLS ---------- */
.status-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

/*.status-active {
    background: #22c55e;
}*/

.status-inactive {
    background: #9ca3af;
}

.status-onhold {
    background: #eab308;
}

.status-completed {
    background: #0ea5e9;
}

.status-pending {
    background: #f97316;
}

.status-quotecreated {
    background: #3b82f6;
}
.status-active {
    background: #2FD505;
}
/* +number badge */
.count-badge {
    background: #ececec;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 10px;
    margin-left: 5px;
    color: #444;
}