/* ── Section headings ── */
#content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    color: #1a1a2e;
}

/* ── Card ── */
.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

/* ── Toolbar ── */
.toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* ── Tables ── */
table {
    border-collapse: collapse;
    width: 100%;
    font-size: .9rem;
}

table thead tr {
    background-color: #1a1a2e;
    color: #fff;
}

table th {
    padding: .75rem 1rem;
    text-align: left;
    font-weight: 500;
    letter-spacing: .02em;
    white-space: nowrap;
}

table td {
    padding: .65rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

table tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr:hover td {
    background-color: #f7f8ff;
}

/* ── Sortable columns ── */
.th-sortable {
    cursor: pointer;
    user-select: none;
}

.th-sortable:hover {
    background-color: #2d2d4e;
}

.th-sort-asc::after { content: " ▲"; font-size: .7em; opacity: .8; }
.th-sort-desc::after { content: " ▼"; font-size: .7em; opacity: .8; }

/* ── Client name subline ── */
.client-name {
    display: block;
    font-size: .78rem;
    color: #888;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
