/* ClockIn: assets/feedback/feedback.css. Load order and the file map: CLAUDE.md */
/* ============================================================
   REPORT A BUG DRAWER (1.51.0)
   Slides in from the right over a see-through backdrop. z-index 30:
   over modals (20). Loads last of the CSS, so it only styles its own
   .bug-* classes; the footer button is styled in core.css (FOOTER).
   ============================================================ */
.bug-backdrop {
  position: fixed;
  inset: 0;
  background: var(--backdrop);
  z-index: 30;
}
.bug-backdrop[hidden] { display: none; }
.bug-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: var(--shadow-card), -12px 0 40px rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  z-index: 31;
  overflow-y: auto;
  transform: translateX(105%);
  visibility: hidden;
  transition: transform 260ms cubic-bezier(0.2, 0, 0, 1), visibility 0s 260ms;
}
.bug-drawer.is-open { transform: none; visibility: visible; transition: transform 260ms cubic-bezier(0.2, 0, 0, 1); }
.bug-form { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); }
.bug-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.bug-head h3 { margin: 0; }
.bug-form label { display: flex; flex-direction: column; gap: 4px; font-size: var(--font-size-base); color: var(--text-muted); }
.bug-form input[type="text"], .bug-form select, .bug-form textarea {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
}
.bug-form textarea { resize: vertical; }
.bug-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.bug-form .bug-check { flex-direction: row; align-items: center; gap: var(--space-2); }
.bug-error { margin: -6px 0 0; font-size: var(--font-size-sm); color: var(--danger); }
.bug-error[hidden], .bug-details[hidden] { display: none; }
.bug-details {
  margin: 0;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  white-space: pre-wrap;
  word-break: break-word;
}
.bug-actions { margin-top: 0; }
@media (max-width: 700px) {
  .bug-drawer { border-radius: 0; }
  .bug-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bug-drawer, .bug-drawer.is-open { transition: none; }
}
