/* Projects page styles */

.project-name-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-name-cell .project-link {
    color: var(--text-dark);
    text-decoration: none;
}

.project-name-cell .project-link:hover {
    color: var(--primary-color);
}

.client-link {
    color: var(--primary-color);
    text-decoration: none;
}

.client-link:hover {
    text-decoration: underline;
}

.client-cell {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.3;
    gap: 2px;
}

.client-cell .client-company {
    font-weight: 600;
    font-size: 0.875rem;
}

.client-cell .client-name {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 400;
}

.client-cell:hover .client-name {
    color: var(--gray-600);
}

.docs-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    max-width: 220px;
}

.docs-cell .doc-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px 3px 4px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.docs-cell .doc-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.7rem;
}

.docs-cell .doc-chip-proposals {
    background: #eff6ff;
    color: #1d4ed8;
}

.docs-cell .doc-chip-contracts {
    background: #faf5ff;
    color: #6b21a8;
}

.docs-cell .doc-chip-invoices {
    background: #ecfdf5;
    color: #047857;
}

.docs-cell .doc-chip-expenses {
    background: #fff7ed;
    color: #b45309;
}

.text-right {
    text-align: right;
}

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

.table .table-sm th,
.table .table-sm td {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
}

/* Card stack on detail page */
.card + .card {
    margin-top: var(--spacing-md);
}

/* Project-on-client list (for /clients/:id) */
.projects-list-card {
    margin-bottom: var(--spacing-lg);
}

.projects-list-card .project-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.projects-list-card .project-row:last-child {
    border-bottom: none;
}

.projects-list-card .project-row:hover {
    background: var(--gray-50);
}

.projects-list-card .project-row .project-info strong {
    display: block;
    color: var(--text-dark);
}

.projects-list-card .project-row .project-info .meta {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.projects-list-card .project-row .project-totals {
    text-align: right;
}

.projects-list-card .project-row .project-totals .amount {
    font-weight: var(--font-weight-semibold);
}

@media (max-width: 768px) {
    .docs-cell .doc-chip {
        font-size: 0.68rem;
    }
    .docs-cell .doc-chip-count {
        font-size: 0.66rem;
        min-width: 16px;
        height: 16px;
    }
}

/* Row action kebab menu styles live in tables.css (shared across pages). */
