/* mod-tickets.css — MODULE L: Help Desk / Ticketing.
   Class prefixes are tk-* to avoid collisions with app styles. */

.tk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.25rem;
}
.tk-chip {
  border: 1px solid var(--line, #ddd);
  background: var(--card, #fff);
  border-radius: 999px;
  padding: .35rem .8rem;
  font: inherit;
  cursor: pointer;
}
.tk-chip.active {
  background: var(--accent, #1a5fb4);
  border-color: var(--accent, #1a5fb4);
  color: #fff;
  font-weight: 600;
}
.tk-badge {
  display: inline-block;
  border-radius: .35rem;
  padding: .1rem .5rem;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}
.tk-pr-low { background: #eef4ee; color: #2d6a2d; }
.tk-pr-normal { background: #eef2f7; color: #40556e; }
.tk-pr-high { background: #fdf1e3; color: #9a5b00; }
.tk-pr-urgent { background: #fdecea; color: #a4261c; }
.tk-st-open { background: #e8f0fe; color: #1a5fb4; }
.tk-st-in_progress { background: #fdf1e3; color: #9a5b00; }
.tk-st-waiting_client { background: #f3e8fd; color: #6b3fa0; }
.tk-st-resolved { background: #eef4ee; color: #2d6a2d; }
.tk-st-closed { background: #f0f0f0; color: #666; }

.tk-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: .75rem;
}
.tk-actions { margin-top: .75rem; }
.tk-whitespace { white-space: pre-wrap; overflow-wrap: break-word; }

.tk-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.tk-detail-head h3 { margin: 0 0 .25rem; }
.tk-head-badges { display: flex; gap: .35rem; flex-shrink: 0; }

.tk-comments { display: grid; gap: .75rem; margin: .5rem 0 1.25rem; }
.tk-comment {
  border: 1px solid var(--line, #e2e2e2);
  border-radius: .5rem;
  padding: .6rem .8rem;
  background: var(--card-soft, #fafafa);
}
.tk-comment-meta {
  font-size: .8rem;
  color: var(--muted, #666);
  margin-bottom: .3rem;
}
