
/* =====================================================
   MOJE ZGŁOSZENIA — WYGLĄD STRONY UŻYTKOWNIKA
===================================================== */

.my-reports-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.my-reports-page h1 {
    font-size: 25px !important;
    line-height: 1.15;
    margin-bottom: 20px;
}

#reportsStatus {
    margin: 18px 0;
    font-size: 17px;
    color: #444;
}

/* Lista zgłoszeń */

#myReportsList {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Pojedyncze zgłoszenie */

.my-report-item {
    background: #ffffff;
    border: 1px solid #d6dfe9;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Szerokość listy zgłoszeń – taka jak u administratora */
#myReportsList {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
}

/* Wiersz nagłówkowy */

.my-report-summary {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr) 160px 190px 30px;
    align-items: center;
    gap: 10px;
    padding: 9px 30px;
    cursor: pointer;
    list-style: none;
    min-height: 52px;
}

.my-report-summary::-webkit-details-marker {
    display: none;
}

.my-report-summary:hover {
    background: #f8fafc;
}

.my-report-number {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
}

.my-report-title {
    font-size: 14px;
    color: #2563a8;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.my-report-date {
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}

.my-report-arrow {
    color: #47739e;
    font-size: 20px;
    text-align: center;
}

.my-report-item[open] .my-report-arrow {
    transform: rotate(180deg);
}

/* Status zgłoszenia */

.my-report-status {
    display: inline-block;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.my-report-status.new {
    background: #fff3cd;
    color: #946200;
}

.my-report-status.reviewed {
    background: #dbeafe;
    color: #1d4ed8;
}

.my-report-status.resolved {
    background: #d1fae5;
    color: #047857;
}

.my-report-status.rejected {
    background: #fee2e2;
    color: #b91c1c;
}

/* Rozwinięte szczegóły */

.my-report-details {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    background: #fbfcfe;
}

.my-report-details p {
    margin: 10px 0;
    line-height: 1.5;
    color: #374151;
}

.my-report-details strong {
    color: #202124;
}

.my-report-details a {
    color: #6d28d9;
    font-weight: 600;
    text-decoration: none;
}

.my-report-details a:hover {
    text-decoration: underline;
}

.my-report-response {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #dce5f1;
    border-radius: 10px;
    background: #fff;
}

/* Widok na telefonie */

@media (max-width: 700px) {

    .my-report-page {
        padding: 0 10px;
    }

    .my-report-summary {
        grid-template-columns: 1fr auto;
        gap: 8px;
        padding: 14px;
    }

    .my-report-number,
    .my-report-title,
    .my-report-status,
    .my-report-date {
        grid-column: 1;
    }

    .my-report-arrow {
        grid-column: 2;
        grid-row: 1 / 5;
    }

    .my-report-details {
        padding: 14px;
    }
}

/* Wyrównanie górnego linku */

.topbar .topbar-left .back-button {
    display: inline-block;
    margin-left: 163px;
    margin-top: 8px;
}

/* =====================================================
   KORESPONDENCJA UŻYTKOWNIKA — WYGLĄD JAK U ADMINISTRATORA
===================================================== */

.my-report-conversation label {
    display: block;
    margin-bottom: 8px;
    color: #34445d;
    font-weight: 700;
}

.my-report-conversation .report-message-input {
    display: block;
    width: 100%;
    min-height: 105px;
    box-sizing: border-box;
    padding: 11px 12px;
    margin: 0 0 10px;
    border: 1px solid #cbd4e1;
    border-radius: 8px;
    background: #fff;
    color: #263247;
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}

.my-report-conversation .report-message-input:focus {
    outline: 2px solid rgba(57,117,198,.20);
    border-color: #3975c6;
}

.my-report-conversation .report-message {
    padding: 8px;
    margin: 6px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.my-report-conversation .report-message-heading {
    margin-bottom: 4px;
    font-size: 0.85em;
    color: #666;
}

.my-report-conversation .report-message-content {
    white-space: pre-wrap;
}