/* The Bugs tab of a file page (engine/modules/files/file_bugs.php, js/file_bugs.js).
   Reports are comments of the site; here only what a comment does not have. */
.thiscomments.fb_on .fb_head { flex-direction: row; flex-wrap: wrap; align-items: center; row-gap: 10px; }
.thiscomments.fb_on .fb_tab { margin-right: 24px; cursor: pointer; color: var(--grey); opacity: .75; }
.thiscomments.fb_on .fb_tab:hover { opacity: 1; }
.thiscomments.fb_on .fb_tab.on { color: var(--h-clr); opacity: 1; }
.thiscomments.fb_on [hidden] { display: none !important; }

/* one checkbox: the site moves every checkbox 2px down, which lifts its label */
.thiscomments.fb_on .fb_check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--white-blue-text); font-size: 14px; line-height: 18px; margin: 0; -webkit-user-select: none; user-select: none; }
.thiscomments.fb_on .fb_check input { position: static; top: auto; appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; padding: 0; border: 0; border-radius: 5px; background: transparent center/12px 12px no-repeat; box-shadow: inset 0 0 0 2px var(--light-grey); cursor: pointer; outline: none; transform: none; transition: background-color .12s, box-shadow .12s; }
.thiscomments.fb_on .fb_check:hover input { box-shadow: inset 0 0 0 2px var(--grey); }
.thiscomments.fb_on .fb_check input:checked { background-color: var(--btn-blue); box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.3 4.8 9 10 3.2' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.thiscomments.fb_on .fb_check input:focus-visible { box-shadow: 0 0 0 2px var(--white-blue); }

/* the form: the row sits inside the field, on the line of the site's icons */
.thiscomments.fb_on .fb_form trix-editor { padding-bottom: 60px !important; box-sizing: border-box; min-height: 140px; }
.thiscomments.fb_on .c_answer .fb_tick, .thiscomments.fb_on .c_answer .fb_hint { display: none; }
.thiscomments.fb_on .c_answer trix-editor { min-height: 110px; }
.fb_tick { position: absolute; left: 15px; bottom: 32px; transform: translateY(50%); right: 190px; display: flex; align-items: center; gap: var(--spad); min-width: 0; white-space: nowrap; }
/* the row keeps the height of the select whether it is shown or not: a row that grows on the tick moves the text */
.fb_tick { height: 28px; }
.fb_tick .abba { height: 28px; padding-top: 0; padding-bottom: 0; }
/* the highlight of a linked comment lies over it whole: let clicks through to the status select and the text */
.thiscomments .cpar .hlgt { pointer-events: none; }
.fb_tick.fb_off, .comment_wysiwyg.fb_off { display: none !important; }
.fb_more { display: none; }
.fb_form.fb_open .fb_more { display: inline-flex; }
.fb_hint { display: none; color: var(--grey); font-size: 13px; padding: 8px 0 0; }
.fb_form.fb_open .fb_hint { display: block; }
/* the site gives links their own size: a link in a hint is as big as the hint */
.fb_hint a { font-size: inherit; line-height: inherit; }
.mobile .fb_tick { position: static; transform: none; height: auto; padding: 10px 4px 0; flex-wrap: wrap; white-space: normal; }
.mobile .fb_hint { padding: 6px 0 0; }
.mobile .thiscomments.fb_on .fb_form trix-editor { padding-bottom: 50px !important; min-height: 120px; }
.mobile .thiscomments.fb_on .fb_tab { margin: 0 18px 0 0; white-space: nowrap; }
.mobile .thiscomments.fb_on .fb_sort_comments, .mobile .thiscomments.fb_on .fb_sort_bugs { flex: 0 0 100%; margin: 0; padding: 0; }
.mobile .thiscomments.fb_on .fb_sort_comments select, .mobile .thiscomments.fb_on .fb_sort_bugs select { width: auto; max-width: 100%; margin-left: 0; }

.fb_bar { margin-bottom: var(--inner-pad); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fb_empty { margin-top: var(--spad); }

/* a report */
.fb_hidden { display: none !important; }
.commenttopinfo .fb_st { font-weight: 500; }
.commenttopinfo .fb_s0 { background: var(--superlight-grey); color: #fff; }
.commenttopinfo .fb_s1 { background: var(--money-clr); color: #123; }
.commenttopinfo .fb_s2 { background: var(--btn-green); color: #fff; }
.commenttopinfo .fb_s3 { background: transparent; box-shadow: inset 0 0 0 1px var(--light-grey); color: var(--grey); }
.fb_ver_l:before { content: "·"; margin: 0 5px; }
.relink.fb_metoo, .relink.fb_move, .relink.fb_back { margin-left: 8px; cursor: pointer; }
.relink.fb_metoo.on { background: var(--btn-blue); color: #fff; }
.relink.fb_metoo.fb_own { cursor: default; opacity: .6; }
.relink.fb_metoo .fa { margin-right: 5px; }
#fb_panel .comm_rating { display: none; }
/* versions are the labels of the archives and can be long: the closed select cuts them, the open list shows them whole */
.fb_ver { max-width: 260px; text-overflow: ellipsis; }
.mobile .fb_ver { max-width: 100%; }
.fb_ver.fb_need { box-shadow: 0 0 0 2px #e5484d; }
.fb_ctl { display: flex; margin-left: auto; gap: 8px; align-items: center; }
/* as tall as the buttons of the row (25px): a taller control stretches them, and their text rides up */
.fb_ctl .abba { height: 25px; padding-top: 0; padding-bottom: 0; }
.fb_setfx { width: 64px; height: 25px; box-sizing: border-box; background: var(--egrey); border: 0; border-radius: 15px; color: #fff; padding: 0 12px; font: inherit; font-size: 15px; outline: none; }
.mobile .fb_ctl { margin: 8px 0 0; flex: 1 0 100%; }

/* logs from LC Mod Installer: a card of its own, apart from the buttons of the report */
.fb_logs { margin: 12px 0 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px #ffffff26; overflow: hidden; font-size: 13px; min-width: 0; }
.fb_logs summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 14px; color: var(--white-blue-text); cursor: pointer; user-select: none; min-width: 0; }
.fb_logs summary::-webkit-details-marker { display: none; }
.fb_logs summary:hover { background: #ffffff0a; }
.fb_logs summary:after { content: ""; flex: none; margin-left: auto; width: 7px; height: 7px; border: solid var(--grey); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.fb_logs[open] summary:after { transform: translateY(1px) rotate(-135deg); }
.fb_logs_ico { flex: none; width: 16px; height: 18px; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--grey); position: relative; }
.fb_logs_ico:before, .fb_logs_ico:after { content: ""; position: absolute; left: 4px; right: 4px; height: 2px; background: var(--grey); top: 6px; }
.fb_logs_ico:after { top: 10px; }
.fb_logs_t { font-weight: 500; flex: none; }
.fb_logs_n { color: var(--grey); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb_logs_box { box-shadow: inset 0 1px 0 #ffffff1a; }
.fb_logs_hint { padding: 9px 14px; color: var(--grey); font-size: 12px; }
.fb_logs_tabs { display: flex; gap: 2px; padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.fb_log { padding: 6px 12px; border-radius: 7px 7px 0 0; color: var(--grey); white-space: nowrap; text-decoration: none; font-size: 13px; }
.fb_log:hover { color: var(--white-blue-text); }
.fb_log.on { background: #00000033; color: var(--white-blue-text); }
.fb_logs_body { background: #00000033; }
.fb_logs_body pre { margin: 0; padding: 10px 12px 12px; max-height: 70vh; overflow: auto; font: 12px/1.5 Consolas, "Liberation Mono", Menlo, monospace; color: var(--white-blue-text); white-space: pre; tab-size: 4; }
.fb_log_img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; padding: 10px; box-sizing: border-box; }
.fb_log_bar { display: flex; justify-content: flex-end; gap: 14px; padding: 8px 12px; }
.fb_log_bar a { color: var(--white-blue); white-space: nowrap; font-size: 13px; }
.mobile .fb_logs_body pre { font-size: 11px; }
