
/* Светлая история операций */
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] {
    padding: 24px !important;
    background: #fff;
    color: #294766;
    min-width: 0;
}

/* Счётчики */
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] > .space-y-6 > div:first-child {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px !important;
    margin-bottom: 28px;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] > .space-y-6 > div:first-child > span {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border: 1px solid #dae5f2;
    border-radius: 14px;
    background: #f7faff;
    color: #526b87 !important;
    font-size: 13px;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] > .space-y-6 > div:first-child > span > span {
    color: #24496e !important;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] > .space-y-6 > div:first-child > span:nth-child(2) {
    background: #f0faf5;
    border-color: #cce9dc;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] > .space-y-6 > div:first-child > span:nth-child(2) > span {
    color: #087c52 !important;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] > .space-y-6 > div:first-child > span:nth-child(3) {
    background: #fff5f5;
    border-color: #f1d8dd;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] > .space-y-6 > div:first-child > span:nth-child(3) > span {
    color: #b9364e !important;
}

/* Заголовки разделов */
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] h3 {
    margin: 24px 0 12px;
    font-size: 16px;
    font-weight: 650;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] .text-green-400 {
    color: #087c52 !important;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] .text-red-400 {
    color: #b9364e !important;
}

/* Контейнеры таблиц */
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] div[class*="bg-[#0D0F12]"] {
    background: #fff !important;
    border: 1px solid #d9e5f2 !important;
    border-radius: 14px !important;
    overflow-x: auto !important;
    box-shadow: 0 3px 14px rgba(37, 66, 103, .035);
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] table {
    width: 100%;
    min-width: 620px;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] thead tr {
    background: #f0f5fc !important;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] th {
    padding: 13px 16px !important;
    color: #516b88 !important;
    font-size: 12px;
    font-weight: 650;
    border-bottom: 1px solid #d9e5f2;
    white-space: nowrap;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] td {
    padding: 12px 16px !important;
    color: #304f70 !important;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid #e8eef6;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] tbody tr {
    background: #fff !important;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] tbody tr:nth-child(even) {
    background: #f8fafd !important;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] tbody tr:hover {
    background: #edf5ff !important;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] tbody tr:last-child td {
    border-bottom: 0;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] td:nth-child(1),
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] td:nth-child(2),
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] td:nth-child(3) {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] td:nth-child(2) {
    color: #647b94 !important;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] td:nth-child(3) {
    font-weight: 650;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] td.text-green-400 {
    color: #087c52 !important;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] td.text-red-400 {
    color: #b9364e !important;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] td:last-child {
    width: 45%;
    max-width: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    overflow: visible;
    text-overflow: clip;
}
[data-testid="profile-editor-page"] [data-testid="history-tab-content"] > .text-center {
    padding: 48px 20px;
    background: #f7faff;
    border: 1px dashed #ccdcef;
    border-radius: 14px;
    color: #627b97 !important;
}
@media (max-width: 700px) {
    [data-testid="profile-editor-page"] [data-testid="history-tab-content"] {
        padding: 14px !important;
    }
    [data-testid="profile-editor-page"] [data-testid="history-tab-content"] > .space-y-6 > div:first-child {
        grid-template-columns: 1fr;
        gap: 10px !important;
    }
    [data-testid="profile-editor-page"] [data-testid="history-tab-content"] > .space-y-6 > div:first-child > span {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px;
    }
}
