/*
 * Patient-detail Tickets tab — hybrid layout.
 *
 * Column-aligned card rows with assignment rail (purple/blue/dashed/gray)
 * and click-to-expand body. See static/js/patient_modal.js renderTickets()
 * for the markup contract.
 */

#tickets-items .hybrid-grid {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 240px 110px 110px;
  gap: 12px;
  align-items: start;
}

#tickets-items .hybrid-header {
  align-items: center;
}

#tickets-items .hybrid-grid > * {
  min-width: 0;
}

#tickets-items .hybrid-header {
  padding: 8px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px 8px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#tickets-items .hybrid-row {
  padding: 12px 14px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

#tickets-items .hybrid-row:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#tickets-items .hybrid-row.expanded {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: #c7d2fe;
}

#tickets-items .hybrid-expand {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
  display: none;
}

#tickets-items .hybrid-row.expanded .hybrid-expand {
  display: block;
}

/* Assignment rails — 3px left border keyed to who/what owns the ticket. */
#tickets-items .rail-owner       { border-left: 3px solid #a78bfa; }
#tickets-items .rail-queue       { border-left: 3px solid #3b82f6; }
#tickets-items .rail-unassigned  { border-left: 3px dashed #9ca3af; }
#tickets-items .rail-closed      { border-left: 3px solid #e5e7eb; opacity: 0.72; }
