.report-issue-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.report-issue-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 24px;
    direction: rtl;
    font-family: inherit;
    color: #eee;
    max-height: 90vh;
    overflow-y: auto;
}

.report-issue-box h3 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #fff;
}

.report-issue-context-label {
    margin: 0 0 16px;
    font-size: 13px;
    color: #999;
}

.report-issue-close {
    position: absolute;
    top: 12px;
    left: 16px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #888;
    cursor: pointer;
}
.report-issue-close:hover {
    color: #fff;
}

.report-issue-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.report-issue-categories label {
    flex: 1;
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #242424;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.report-issue-categories label:has(input:checked) {
    border-color: #c71786;
    background: rgba(214, 9, 229, 0.12);
    color: #fff;
}

.report-issue-categories input[type="radio"] {
    accent-color: #c71786;
    margin: 0;
}

.report-issue-desc {
    width: 100%;
    min-height: 90px;
    resize: vertical;
    background: #242424;
    border: 1px solid #333;
    border-radius: 8px;
    color: #eee;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
    margin-bottom: 12px;
}
.report-issue-desc:focus {
    outline: none;
    border-color: #c71786;
}

/* Marks the options that mean nothing without a written explanation */
.report-issue-desc.is-required {
    border-color: #c71786;
}

.report-issue-msg {
    min-height: 18px;
    font-size: 12px;
    margin-bottom: 10px;
}
.report-issue-msg.success { color: #4CAF50; }
.report-issue-msg.error { color: #c71786; }

/* Where the report went, shown after a successful submit */
.report-issue-followup {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(76, 175, 80, .35);
    border-radius: 8px;
    background: rgba(76, 175, 80, .08);
    font-size: 12px;
    line-height: 2;
    color: #cfd8dc;
}
.report-issue-followup[hidden] { display: none; }

.report-issue-followup-link {
    align-self: flex-start;
    color: #4CAF50;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(76, 175, 80, .5);
}
.report-issue-followup-link:hover { opacity: .85; }

.report-issue-submit {
    width: 100%;
    background: #c71786;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
}
.report-issue-submit:hover { opacity: .9; }
.report-issue-submit:disabled { opacity: .5; cursor: not-allowed; }

/* Trigger button next to download rows */
button.report-issue {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid #444;
    color: #ccc;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}
button.report-issue:hover {
    border-color: #c71786;
    color: #c71786;
}

.report-issue-subissues {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.report-issue-subissue-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #202020;
    border: 1px solid #2e2e2e;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .15s;
}

.report-issue-subissue-item:has(input:checked) {
    border-color: #c71786;
    color: #fff;
}

.report-issue-subissue-item input[type="radio"] {
    accent-color: #c71786;
    margin: 0;
}

.btn.report-issue .fa-light.fa-triangle-exclamation {
    color: #fff;
}


/* ============================================================
   Panel: tickets and reports in one list
   ============================================================ */

.panel-requests .feed-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.panel-requests .feed-filter .filter-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 13px;
    color: #666;
    transition: all .15s;
}

.panel-requests .feed-filter .filter-item:hover {
    border-color: #c71786;
    color: #c71786;
}

.panel-requests .feed-filter .filter-item.active {
    background: #c71786;
    border-color: #c71786;
    color: #fff;
}

.panel-requests .feed-filter .filter-item .count {
    font-size: 11px;
    opacity: .75;
}

/* Tells the two kinds of row apart at a glance */
.panel-requests .item-kind {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 11px;
    line-height: 1.8;
    margin-left: 6px;
}
.panel-requests .item-kind.ticket {
    background: rgba(16, 216, 118, .14);
    color: #10d876;
}
.panel-requests .item-kind.report {
    background: rgba(199, 23, 134, .14);
    color: #c71786;
}

/* Report statuses, alongside the ticket ones the panel already styles */
.panel-requests .ticket-status.new,
.show-report .ticket-status.new { color: #d63638; }
.panel-requests .ticket-status.reviewing,
.show-report .ticket-status.reviewing { color: #dba617; }
.panel-requests .ticket-status.need_info,
.show-report .ticket-status.need_info { color: #2271b1; }
.panel-requests .ticket-status.awaiting_confirm,
.show-report .ticket-status.awaiting_confirm { color: #8c5eb0; }
.panel-requests .ticket-status.resolved,
.show-report .ticket-status.resolved { color: #00a32a; }


/* ============================================================
   Panel: one report
   ============================================================ */

.show-report .report-reply-msg {
    min-height: 18px;
    font-size: 13px;
    margin: 10px 0;
}
.show-report .report-reply-msg.success { color: #10d876; }
.show-report .report-reply-msg.error { color: #c71786; }

.show-report .report-verdict {
    background: rgba(140, 94, 176, .08);
    border: 1px solid rgba(140, 94, 176, .35);
    border-radius: 10px;
    padding: 18px;
    margin-top: 10px;
}

.show-report .report-verdict .verdict-question {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
}

.show-report .report-verdict .verdict-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.show-report .verdict-btn {
    flex: 1;
    min-width: 160px;
    padding: 11px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .15s;
}
.show-report .verdict-btn:hover { opacity: .9; }
.show-report .verdict-btn:disabled { opacity: .5; cursor: not-allowed; }

.show-report .verdict-btn.fixed {
    background: rgba(16, 216, 118, .15);
    border-color: #10d876;
    color: #10d876;
}

.show-report .verdict-btn.broken {
    background: rgba(199, 23, 134, .12);
    border-color: #c71786;
    color: #c71786;
}

.show-report .report-verdict-note {
    margin-top: 14px;
}

.show-report .report-verdict-note textarea {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    margin-bottom: 10px;
}

.show-report .report-back {
    margin-top: 20px;
    font-size: 13px;
}
.show-report .report-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #888;
}
.show-report .report-back a:hover { color: #c71786; }

body.dark .show-report .report-verdict-note textarea {
    background: #242424;
    border-color: #333;
    color: #eee;
}
body.dark .panel-requests .feed-filter .filter-item {
    border-color: #333;
    color: #aaa;
}
