/* Visuelle Pfeil-Markierung für beantwortete Anfragen (Curved Reply-Arrow ↩) */

.sandhu-answered-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 4px;
  background-color: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  margin-right: 7px;
  vertical-align: -3px;
  flex-shrink: 0;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.08);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.sandhu-answered-badge:hover {
  background-color: #bae6fd;
  border-color: #7dd3fc;
  color: #0369a1;
  transform: scale(1.05);
}

.sandhu-answered-badge .sandhu-answered-icon {
  width: 12px;
  height: 12px;
  display: block;
  fill: currentColor;
  pointer-events: none;
}

/* In Ticket Zoom Header */
.scrollPageHeader .sandhu-answered-badge,
.ticketZoom-header .sandhu-answered-badge {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  vertical-align: middle;
  margin-right: 8px;
}

.scrollPageHeader .sandhu-answered-badge .sandhu-answered-icon,
.ticketZoom-header .sandhu-answered-badge .sandhu-answered-icon {
  width: 13px;
  height: 13px;
}

/* Dark Theme Support */
[data-theme="dark"] .sandhu-answered-badge {
  background-color: rgba(2, 132, 199, 0.22);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .sandhu-answered-badge:hover {
  background-color: rgba(2, 132, 199, 0.35);
  border-color: rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
}

/* Optional row styling for answered tickets */
tr.item.is-answered {
  /* Keep standard row layout intact */
}

/* Responsive Mobile Table Styles (screen width <= 768px):
   Hide bulky secondary columns and give ticket title 100% priority and readable wrapping */
@media (max-width: 768px) {
  /* 1. Hide tags, owner, and group columns in table overviews so they don't crush the title */
  th[data-column-key="tags"],
  td.col-tags,
  td[data-column-key="tags"],
  th[data-column-key="owner"],
  td.col-owner,
  td[data-column-key="owner"],
  th[data-column-key="group"],
  td.col-group,
  td[data-column-key="group"] {
    display: none !important;
  }

  /* 2. Give the title column full priority and allow multi-line wrapping */
  th[data-column-key="title"],
  td.col-title,
  td[data-column-key="title"] {
    width: 100% !important;
    min-width: 140px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }

  th[data-column-key="title"] a,
  td.col-title a,
  td[data-column-key="title"] a {
    white-space: normal !important;
    word-break: break-word !important;
    display: inline !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
  }

  /* 3. Compact customer name */
  th[data-column-key="customer"],
  td.col-customer,
  td[data-column-key="customer"] {
    max-width: 85px !important;
    font-size: 11px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  /* 4. Compact ticket number */
  th[data-column-key="number"],
  td.col-number,
  td[data-column-key="number"] {
    max-width: 55px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    padding-left: 2px !important;
    padding-right: 4px !important;
  }

  /* 5. Keep answered badge properly sized on mobile */
  .sandhu-answered-badge {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    margin-right: 5px;
    vertical-align: -2px;
  }
}

