/* The abuse report page (templates/pages/abuse-report.html.twig), on the template's own cards, inputs and buttons. */
.abuse-report [hidden] { display: none !important; }
.abuse-report .abuse-container { max-width: 960px; }
.abuse-report .abuse-intro { margin-bottom: 30px; }
.abuse-report .abuse-intro p { margin: 0 0 14px; }
.abuse-report .abuse-note { color: #6b7c93; font-size: 14px; }
.abuse-report .abuse-star { color: #ff4d57; font-weight: 600; }

.abuse-report #abuse-report { counter-reset: abuse-section; }
.abuse-report .abuse-section { padding: 30px; margin-bottom: 25px; counter-increment: abuse-section; }
.abuse-report .abuse-section h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.3; }
.abuse-report .abuse-section h2::before { content: counter(abuse-section) ". "; color: #6362d2; }
.abuse-report .abuse-section-intro { margin: 0 0 20px; color: #6b7c93; font-size: 15px; line-height: 1.5; }

.abuse-report .abuse-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; align-items: start; }
.abuse-report .abuse-field { display: flex; flex-direction: column; min-width: 0; }
.abuse-report .abuse-wide { grid-column: 1 / -1; }
.abuse-report .abuse-field > label { display: block; margin: 0 0 6px; font-size: 16px; line-height: 1.35; }
.abuse-report .abuse-field .uk-input { width: 100%; max-width: 100%; margin: 0; box-sizing: border-box; }
.abuse-report .abuse-field select.uk-input { padding-left: 15px; padding-right: 36px; text-overflow: ellipsis; background-color: #fafbfc; }
.abuse-report .abuse-field textarea.uk-input { height: auto; min-height: 0; line-height: 1.5; white-space: pre-wrap; text-overflow: clip; resize: vertical; }
.abuse-report .abuse-field textarea.uk-input[wrap="off"] { white-space: pre; font-family: Menlo, Consolas, "Liberation Mono", monospace; font-size: 14px; overflow-x: auto; }
.abuse-report .abuse-hint { margin-top: 6px; color: #6b7c93; font-size: 14px; line-height: 1.4; }
.abuse-report .abuse-error { margin: 6px 0 0; color: #d8323c; font-size: 14px; font-weight: 500; line-height: 1.4; }
.abuse-report #abuse-connections-error { margin: 0 0 16px; }
.abuse-report .abuse-alert { margin-bottom: 25px; padding: 16px 20px; border: 1px solid #ff4d57; border-radius: 3px; background: #fff1f2; color: #3e3e46; }
.abuse-report .abuse-alert strong { color: #d8323c; }

/* The template draws its box on the label after a hidden checkbox. */
.abuse-report .abuse-check > label { display: block; margin: 0; color: #3e3e46; font-size: 16px; font-weight: normal; line-height: 1.5; }

.abuse-report .abuse-file { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.abuse-report .abuse-file label { margin: 0; cursor: pointer; font-size: 14px; }
.abuse-report .abuse-file input[type="file"] { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; }
.abuse-report .abuse-file input[type="file"]:focus-visible ~ .abuse-file-note { outline: 2px solid #6362d2; outline-offset: 4px; }
.abuse-report .abuse-file-note { color: #6b7c93; font-size: 14px; }
.abuse-report .abuse-file-note.abuse-file-refused { color: #d8323c; font-weight: 500; }

.abuse-report #abuse-connections { margin-top: 26px; }
.abuse-report .abuse-connection { position: relative; min-width: 0; margin: 0 0 16px; padding: 46px 20px 18px; border: 1px solid #dfe3ee; border-radius: 3px; }
.abuse-report .abuse-connection legend { float: left; margin-top: -32px; padding: 0; color: #3e3e46; font-size: 15px; font-weight: 600; }
.abuse-report .abuse-remove { position: absolute; top: 10px; right: 16px; padding: 4px; border: 0; background: none; color: #6b7c93; font-size: 14px; text-decoration: underline; cursor: pointer; }
.abuse-report .abuse-remove:hover { color: #d8323c; }
.abuse-report .abuse-connection-main { clear: both; display: grid; grid-template-columns: 4fr 2.5fr 2.2fr 4fr 2.2fr; gap: 16px 12px; align-items: start; }
.abuse-report .abuse-connection .abuse-field > label { font-size: 14px; }
.abuse-report .abuse-connection .uk-input { height: 46px; padding-left: 12px !important; padding-right: 10px; font-size: 15px !important; line-height: 44px; }
.abuse-report .abuse-connection select.uk-input { padding-right: 28px; background-position: right 10px center; }
.abuse-report .abuse-connection .uk-form-danger { background-image: none !important; }
.abuse-report .abuse-connection select.uk-form-danger { background-image: url('/images/icon/select.svg') !important; }
.abuse-report .abuse-connection details { margin-top: 14px; }
.abuse-report .abuse-connection summary { color: #6362d2; font-size: 14px; cursor: pointer; }
.abuse-report .abuse-connection details .abuse-grid { margin-top: 14px; gap: 14px 16px; }

.abuse-report .abuse-submit { text-align: center; }
.abuse-report .abuse-submit .altcha-row { display: flex; justify-content: center; margin: 0 0 20px; }
.abuse-report .abuse-submit .uk-button { min-width: 280px; }
.abuse-report .abuse-submit .abuse-note { margin-top: 16px; }

.abuse-report .abuse-sent { padding: 40px 30px; text-align: center; }
.abuse-report .abuse-sent .abuse-case { margin: 10px 0 20px; color: #6362d2; font-size: 30px; font-weight: 600; overflow-wrap: anywhere; }

@media (max-width: 767px) {
    .abuse-report .abuse-section { padding: 22px 16px; }
    .abuse-report .abuse-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .abuse-report .abuse-connection { padding: 46px 14px 16px; }
    .abuse-report .abuse-connection-main { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .abuse-report .abuse-connection-main [data-field="time"] { grid-column: 1 / -1; }
    .abuse-report .abuse-connection-main [data-field="protocol"], .abuse-report .abuse-connection-main [data-field="source_port"] { grid-column: span 3; }
    .abuse-report .abuse-connection-main [data-field="target_ip"] { grid-column: span 4; }
    .abuse-report .abuse-connection-main [data-field="target_port"] { grid-column: span 2; }
    .abuse-report .abuse-submit .uk-button { width: 100%; min-width: 0; }
    .abuse-report .abuse-sent .abuse-case { font-size: 24px; }
}
