/* ===========================================================================
   نِی‌باکس — پوستهٔ شرکت‌ها
   برچسب رنگی شرکت، فیلتر شرکت و انتخابگر رنگ (تکمیل‌کنندهٔ assets/app.css)
   =========================================================================== */

.company-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.8;
  white-space: nowrap;
  vertical-align: middle;
}

[data-mode="dark"] .company-badge {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.recipient-text .company-badge { margin-inline-start: 2px; }
.cell-user-text .company-badge,
.person-text .company-badge { margin-inline-start: 4px; }

.company-filter { min-width: 190px; }

.company-color {
  height: 40px;
  padding: 3px;
  cursor: pointer;
}
.company-color::-webkit-color-swatch-wrapper { padding: 0; }
.company-color::-webkit-color-swatch { border: 0; border-radius: 4px; }
.company-color::-moz-color-swatch { border: 0; border-radius: 4px; }

@media (max-width: 820px) {
  .company-filter { min-width: 0; width: 100%; }
}
