/* R31B5B3-FIX1-EXTERNAL-UNREAD-CSS
   Same-origin external stylesheet: avoids inline-style CSP restrictions.
   Only B3 unread indicators, filter and matching order-card accents. */
.r31b5b3-filter-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: 100%;
  min-height: 38px;
  margin: 8px 0 12px !important;
}
.r31b5b3-filter-hint { display: none !important; }
button.r31b5b3-filter-btn {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex: 0 0 auto;
  width: auto !important;
  max-width: 100%;
  min-height: 36px !important;
  padding: 7px 11px !important;
  margin: 0 !important;
  border: 1px solid #d9e1e9 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #415469 !important;
  box-shadow: 0 1px 3px rgba(23, 43, 65, .05) !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
button.r31b5b3-filter-btn::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #d94860;
}
button.r31b5b3-filter-btn:hover:not(:disabled) {
  border-color: #e0a6b0 !important;
  background: #fff9fa !important;
}
button.r31b5b3-filter-btn.active,
button.r31b5b3-filter-btn[aria-pressed="true"] {
  border-color: #d97485 !important;
  background: #fff0f2 !important;
  color: #a42c43 !important;
  box-shadow: inset 0 0 0 1px rgba(200, 66, 92, .06) !important;
}
button.r31b5b3-filter-btn:disabled { opacity: .65; cursor: default; }
button.r31b5b3-filter-btn:focus-visible {
  outline: 3px solid #edb4be !important;
  outline-offset: 2px;
}
button.r31b5b3-filter-btn .r31b5b3-filter-count {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #536478;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
button.r31b5b3-filter-btn.active .r31b5b3-filter-count,
button.r31b5b3-filter-btn[aria-pressed="true"] .r31b5b3-filter-count {
  background: #d24761;
  color: #ffffff;
}
.r31b5b3-unread-badge {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  width: max-content;
  padding: 4px 9px;
  border: 1px solid #f3ced4 !important;
  border-radius: 999px !important;
  background: #fff0f2 !important;
  color: #a92c44 !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.35;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.r31b5b3-unread-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #d74761;
}
.r31b5b3-unread-badge[hidden],
.r31b5b3-filter-row[hidden] { display: none !important; }
.order-card.r31b5b3-has-unread,
.orders-table-item.r31b5b3-has-unread,
.technician-order-row.r31b5b3-has-unread {
  border-color: #e7c5ca !important;
  background: linear-gradient(95deg, #fff7f8 0%, #ffffff 50%) !important;
  box-shadow: inset 4px 0 0 #dc667b !important;
}
.order-card.r31b5b3-has-unread:hover,
.orders-table-item.r31b5b3-has-unread:hover,
.technician-order-row.r31b5b3-has-unread:hover {
  border-color: #da9ca7 !important;
}
.order-badges .r31b5b3-unread-badge,
.orders-table-item .table-order-ref .r31b5b3-unread-badge,
.technician-order-row .r31b5b3-unread-badge { margin-top: 4px; }
.technician-order-row .r31b5b3-unread-badge { justify-self: start; }
@media (max-width: 640px) {
  .r31b5b3-filter-row { justify-content: flex-end !important; margin: 7px 0 10px !important; }
  button.r31b5b3-filter-btn { min-height: 38px !important; }
  .r31b5b3-unread-badge { font-size: 11px !important; }
}
@media (prefers-reduced-motion: reduce) {
  button.r31b5b3-filter-btn { transition: none; }
}
/* R31B5B3-FIX1-EXTERNAL-UNREAD-CSS-END */
