/* ===== Мои жалобы в профиле: popover + sheet ===== */

.my-reports-popover {
    width: 440px;
    max-width: calc(100vw - 24px);
    max-height: min(720px, calc(100vh - 24px));
    overflow-y: auto;
    padding: 10px;
}

.profile-sheet--my-reports .profile-sheet__content {
    max-height: 88vh;
    overflow-y: auto;
}

#myReportsPanel .settings-panel__header {
    top: 0;
    z-index: 30;

    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;

    min-height: 56px;
    margin: 0 -12px 12px;
    padding: 8px 12px;

    background: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#myReportsPopover .settings-panel__header {
    position: sticky;
    top: -10px;
    z-index: 30;

    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;

    margin: -10px -10px 10px;
    padding: 10px 12px 8px;

    background: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#myReportsPanel .settings-panel__back,
#myReportsPopover .settings-panel__back {
    position: static;
    width: 42px;
    height: 42px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
}

#myReportsPanel .settings-panel__title,
#myReportsPopover .settings-panel__title {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
}

.my-reports-panel-body {
    padding: 2px;
}

.my-reports-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.my-report-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.my-report-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.my-report-card__type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 800;
    color: #6b7280;
    margin-bottom: 6px;
}

.my-report-card__title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
    word-break: break-word;
}

.my-report-status {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.my-report-card__meta {
    margin-top: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.my-report-card__reason,
.my-report-card__comment,
.my-report-card__moderator {
    margin-top: 10px;
    color: #374151;
    font-size: 14px;
    line-height: 1.45;
}

.my-report-card__moderator {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.my-report-card__link {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.my-report-card__link:hover {
    color: #fff;
    text-decoration: none;
}

.my-reports-empty {
    background: #fff;
    border-radius: 20px;
    padding: 28px 18px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.my-reports-empty__icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: rgba(239, 68, 68, 0.10);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.my-reports-empty h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
}

.my-reports-empty p {
    margin: 8px auto 0;
    max-width: 420px;
    color: #6b7280;
    font-size: 14px;
}

/* Иконки типов */
.my-report-card__type--product i {
    color: #ff7a00;
}

.my-report-card__type--news i {
    color: #0077ff;
}

.my-report-card__type--comment i {
    color: #9333ea;
}

.my-report-card__type--review i {
    color: #f59e0b;
}

.my-report-card__type--profile i {
    color: #ef4444;
}

/* Статусы */
.my-report-status--pending {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.my-report-status--confirmed,
.my-report-status--reviewed {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.my-report-status--hidden {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.my-report-status--deleted {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.my-report-status--restored {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.my-report-status--rejected {
    background: rgba(107, 114, 128, 0.14);
    color: #4b5563;
}

@media (max-width: 768px) {
    .my-report-card__top {
        flex-direction: column;
    }

    .my-report-status {
        align-self: flex-start;
    }
}

/* Тёмная тема */
body.dark-theme .my-report-card,
html.dark-theme .my-report-card,
body.dark-theme .my-reports-empty,
html.dark-theme .my-reports-empty {
    background: #2f2f2f;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .my-report-card__title,
html.dark-theme .my-report-card__title,
body.dark-theme .my-reports-empty h2,
html.dark-theme .my-reports-empty h2 {
    color: #f9fafb;
}

body.dark-theme .my-report-card__reason,
body.dark-theme .my-report-card__comment,
body.dark-theme .my-report-card__moderator,
html.dark-theme .my-report-card__reason,
html.dark-theme .my-report-card__comment,
html.dark-theme .my-report-card__moderator {
    color: #d1d5db;
}

body.dark-theme .my-report-card__moderator,
html.dark-theme .my-report-card__moderator {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.my-reports-thanks {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(34, 197, 94, 0.10));
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.my-reports-thanks__icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    background: #ffffff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.my-reports-thanks__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.my-reports-thanks__text strong {
    font-size: 14px;
    font-weight: 800;
    color: #111827;
}

.my-reports-thanks__text span {
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

body.dark-theme .my-reports-thanks,
html.dark-theme .my-reports-thanks {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(34, 197, 94, 0.12));
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .my-reports-thanks__icon,
html.dark-theme .my-reports-thanks__icon {
    background: rgba(255, 255, 255, 0.08);
    color: #93c5fd;
}

body.dark-theme .my-reports-thanks__text strong,
html.dark-theme .my-reports-thanks__text strong {
    color: #f9fafb;
}

body.dark-theme .my-reports-thanks__text span,
html.dark-theme .my-reports-thanks__text span {
    color: #d1d5db;
}