/* [СВО] 2026-07-09 — Публичный реестр представителей и кабинет */
.pub-representatives-page {
    padding-bottom: 48px;
}

.pub-representatives-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.pub-representatives-toolbar .form-select {
    min-width: 220px;
}

.pub-representatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}

.pub-representative-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.pub-representative-card__region {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.pub-representative-card__name {
    font-size: 20px;
    font-weight: 800;
    color: #1e3a5f;
    margin-bottom: 8px;
}

.pub-representative-card__city {
    font-size: 14px;
    color: #475569;
    margin-bottom: 16px;
}

.pub-representative-card__actions {
    display: flex;
    gap: 10px;
}

.rep-cabinet-section {
    margin-bottom: 24px;
}

.rep-cabinet-section__title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}

.rep-cabinet-form .btn-outline {
    margin-top: 4px;
}

.rep-cabinet-form {
    display: grid;
    gap: 14px;
    max-width: 640px;
}

#repProfileStatus .badge {
    font-size: 13px;
}

.rep-members-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.rep-members-toolbar .form-input,
.rep-members-toolbar .form-select {
    min-width: 220px;
}

.rep-members-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: var(--surface);
}

.rep-members-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.rep-members-table th,
.rep-members-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.rep-members-table th {
    background: var(--surface-hover);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.rep-members-table tr:last-child td {
    border-bottom: none;
}

.cabinet-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cabinet-muted {
    color: var(--text-secondary);
    font-size: 13px;
}

.cabinet-cell-date {
    white-space: nowrap;
    color: var(--text-secondary);
    font-size: 13px;
}

.admin-badge--representative {
    background: #dbeafe;
    color: #1d4ed8;
}

@media (max-width: 768px) {
    .pub-representatives-toolbar,
    .rep-members-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .pub-representatives-toolbar .form-select,
    .rep-members-toolbar .form-input,
    .rep-members-toolbar .form-select {
        width: 100%;
        min-width: 0;
    }
}
