/* modules/reports/static/reports/style.css */

.reports-help {
  margin-top: 0;
  color: #64748b;
  font-size: 14px;
}

.reports-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.reports-error {
  margin-top: 12px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
}

.reports-error[data-hidden="true"] {
  display: none;
}

.reports-profile-action { color: var(--danger, #dc2626); }
.reports-profile-modal[hidden] { display: none !important; }
.reports-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: clamp(12px, 3vw, 24px);
}
.reports-profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(15 23 42 / 58%);
  backdrop-filter: blur(2px);
}
.reports-profile-modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: min(82vh, 680px);
  max-height: min(82svh, 680px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  background: var(--surface, #fff);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: 0 20px 50px rgb(15 23 42 / 25%);
  -webkit-overflow-scrolling: touch;
}
.reports-profile-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.reports-profile-form-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  padding-right: 12px;
  -webkit-overflow-scrolling: touch;
}
.reports-profile-form-body::-webkit-scrollbar { width: 8px; }
.reports-profile-form-body::-webkit-scrollbar-track { background: transparent; }
.reports-profile-form-body::-webkit-scrollbar-thumb { border-radius: 999px; background: #cbd5e1; }
.reports-profile-form-body::-webkit-scrollbar-button { width: 0; height: 0; }
.reports-profile-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.reports-profile-modal-head h2 { margin: 0; color: var(--text, #172033); font-size: clamp(19px, 2.5vw, 22px); }
.reports-profile-modal-close {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  touch-action: manipulation;
}
.reports-profile-modal-close:hover,
.reports-profile-modal-close:focus-visible { background: rgb(100 116 139 / 12%); }
.reports-profile-modal-copy { margin: 8px 0 16px; color: var(--text-muted, #64748b); font-size: 14px; line-height: 1.45; }
.reports-profile-reasons { display: grid; gap: 4px; margin: 0; padding: 0; border: 0; }
.reports-profile-reasons legend, .reports-profile-note-label { display: block; margin-bottom: 8px; color: var(--text, #172033); font-weight: 700; }
.reports-profile-reasons label {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 10px;
  padding: 4px 8px;
  border-radius: 10px;
  color: var(--text, #172033);
  cursor: pointer;
  touch-action: manipulation;
}
.reports-profile-reasons label:hover { background: rgb(100 116 139 / 8%); }
.reports-profile-reasons input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--primary, #2498e8); }
.reports-profile-note-label { margin-top: 18px; }
.reports-profile-modal textarea {
  width: 100%;
  min-height: 96px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 10px;
  background: var(--surface, #fff);
  color: var(--text, #172033);
  font: inherit;
  resize: vertical;
}
.reports-profile-error { min-height: 20px; margin: 8px 0 0; color: var(--danger, #dc2626); font-size: 14px; }
.reports-profile-modal-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border, #e2e8f0);
}
.reports-profile-success {
  display: grid;
  gap: 12px;
  padding: 24px 0 4px;
  text-align: center;
}
.reports-profile-success h3,
.reports-profile-success p { margin: 0; }
.reports-profile-success h3 { color: var(--text, #172033); font-size: 18px; }
.reports-profile-success p { color: var(--text-muted, #64748b); line-height: 1.45; }
.reports-profile-success .btn { justify-self: center; min-height: 44px; padding-inline: 22px; }
body.reports-profile-modal-open { overflow: hidden; }

@media (min-width: 601px) {
  .reports-profile-reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .reports-profile-reasons legend { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .reports-profile-modal-card {
    max-height: calc(100vh - 32px);
    max-height: calc(100svh - 32px);
  }
}

@media (max-width: 600px) {
  .reports-profile-modal { align-items: end; padding: 8px; }
  .reports-profile-modal-card {
    width: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100svh - 16px);
    border-radius: 18px;
    padding: 16px;
  }
  .reports-profile-form-body { padding-right: 8px; }
  .reports-profile-modal-copy { margin-bottom: 12px; }
  .reports-profile-reasons { gap: 2px; }
  .reports-profile-reasons { grid-template-columns: 1fr; }
  .reports-profile-reasons label { min-height: 40px; }
  .reports-profile-modal-actions { flex-direction: column-reverse; }
  .reports-profile-modal-actions .btn { width: 100%; min-height: 44px; }
}
