/**
 * accounts.css — Accounts list styles
 */

/* ── Message states (loading, error, empty) ─────────────────── */

.accounts__message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-12);
    padding: var(--space-48) var(--space-24);
    text-align: center;
}

/* ── Header ─────────────────────────────────────────────────── */

.accounts {
    padding: var(--space-16) 0;
}

.accounts__header {
    margin-bottom: var(--space-24);
}

.accounts__header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
}

.accounts__header h1 {
    margin-bottom: var(--space-4);
}

/* ── Table ──────────────────────────────────────────────────── */

.accounts__table-wrap {
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-12);
    overflow: hidden;
}

.accounts__table {
    width: 100%;
    border-collapse: collapse;
}

.accounts__table thead {
    background: var(--surface-sunken);
}

.accounts__table th {
    padding: var(--space-8) var(--space-16);
    text-align: left;
    font-size: var(--text-14);
    font-weight: 600;
    color: var(--surface-text-medium);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.accounts__table td {
    padding: var(--space-12) var(--space-16);
    border-top: 1px solid var(--surface-border);
    vertical-align: middle;
}

.accounts__table tbody tr {
    transition: background 0.1s ease;
}

.accounts__table tbody tr:hover {
    background: var(--surface-raised);
}

/* ── Cell: name ─────────────────────────────────────────────── */

.accounts__name {
    font-weight: 500;
    color: var(--surface-text);
}

/* ── Cell: type ─────────────────────────────────────────────── */

.accounts__type {
    text-transform: capitalize;
}

/* ── Cell: status badge ─────────────────────────────────────── */

.accounts__status {
    display: inline-block;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    font-size: var(--text-14);
    font-weight: 500;
    text-transform: capitalize;
    background: var(--surface-sunken);
    color: var(--surface-text-medium);
}

.accounts__status--active {
    background: color-mix(in srgb, var(--semantic-success) 12%, transparent);
    color: var(--semantic-success);
}

.accounts__status--prospect {
    background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
    color: var(--brand-primary);
}

.accounts__status--archived {
    background: var(--surface-sunken);
    color: var(--surface-text-disabled);
}

/* ── Cell: actions ──────────────────────────────────────────── */

.accounts__th-actions {
    width: 1%;
    white-space: nowrap;
}

.accounts__cell-actions {
    white-space: nowrap;
    text-align: right;
}

.accounts__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-8);
    background: var(--surface-card);
    color: var(--surface-text-medium);
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
}

.accounts__action-btn + .accounts__action-btn {
    margin-left: var(--space-4);
}

.accounts__action-btn:hover {
    background: var(--surface-raised);
    color: var(--surface-text);
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 600px) {
    .accounts__cell-type,
    .accounts__cell-status {
        display: none;
    }

    .accounts__table th:nth-child(2),
    .accounts__table td:nth-child(2),
    .accounts__table th:nth-child(3),
    .accounts__table td:nth-child(3) {
        display: none;
    }
}
