:root {
  --bg: #101010;
  --card: #191919;
  --card-hover: #212121;
  --border: #282828;
  --accent: #84f85c;
  --accent-dim: rgba(132, 248, 92, 0.14);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --danger: #ef4444;
  --warn: #f59e0b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.mobile-only {
  display: none;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #303030;
  border-radius: 3px;
}

/* Buttons & Inputs */
button {
  cursor: pointer;
  font: inherit;
  border: none;
  outline: none;
}

input {
  font: inherit;
  color: var(--text);
  background: #121212;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.15s;
}
input:focus {
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #0b1407;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  transition: opacity 0.15s;
}
.btn-primary:hover {
  opacity: 0.9;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  transition: opacity 0.15s;
}
.btn-danger:hover {
  opacity: 0.9;
}

.confirm-text {
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 6px;
}

.btn-ghost {
  background: #222;
  color: var(--text);
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: #2a2a2a;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
  background: #242424;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-xs:hover {
  border-color: var(--accent);
}
.btn-xs.danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.full-width {
  width: 100%;
}

/* Login */
.login-screen {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.login-subtitle {
  color: var(--muted);
  margin: 6px 0 22px;
  font-size: 13px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field label {
  font-size: 12px;
  color: var(--muted);
}
.error-msg {
  color: var(--danger);
  font-size: 12px;
  margin-bottom: 12px;
}
.status-msg {
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 12px;
}
.twofa-info {
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.twofa-input {
  text-align: center;
  font-size: 20px;
  letter-spacing: 6px;
  font-weight: 600;
}
.twofa-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.twofa-actions button {
  flex: 1;
}

/* App Shell */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.topbar {
  height: 56px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-title {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 15px;
}
.brand-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 600;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-left: 14px;
}
.tab-btn {
  background: transparent;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 500;
}
.tab-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
}
.ws-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #222;
}
.ws-pill.online {
  color: var(--accent);
}
.ws-pill.offline {
  color: var(--warn);
}
.user-pill {
  color: var(--muted);
  font-size: 12px;
}

/* 3-Column Workspace */
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 300px 330px 1fr;
  gap: 12px;
  padding: 12px;
  min-height: 0;
}

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.panel-header {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-header.column {
  flex-direction: column;
  align-items: stretch;
}
.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-header h2 {
  font-size: 14px;
  font-weight: 600;
}
.search-input {
  width: 100%;
  font-size: 13px;
}
.scroll-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 40px 16px;
  font-size: 13px;
}

/* Agent Cards */
.agent-item {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  margin-bottom: 6px;
  cursor: pointer;
  background: #141414;
  transition: background 0.12s, border-color 0.12s;
}
.agent-item:hover {
  background: var(--card-hover);
}
.agent-item.active {
  border-color: var(--accent);
  background: #1a2117;
}
.agent-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.agent-name {
  font-weight: 600;
  font-size: 13px;
}
.status-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.status-online {
  background: var(--accent-dim);
  color: var(--accent);
}
.status-qr_waiting,
.status-connecting {
  background: rgba(245, 158, 11, 0.16);
  color: var(--warn);
}
.status-disconnected {
  background: rgba(239, 68, 68, 0.16);
  color: var(--danger);
}
.agent-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}
.agent-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* Chat Items */
.chat-item {
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  margin-bottom: 4px;
  cursor: pointer;
}
.chat-item:hover {
  background: var(--card-hover);
}
.chat-item.active {
  background: #1a2117;
  border-color: var(--accent);
}
.chat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.chat-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-time {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}
.chat-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.chat-preview {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.count-pill {
  background: #252525;
  color: var(--text);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}
.unread-badge {
  background: var(--accent);
  color: #0b1407;
  font-weight: 700;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}
.unreplied-tag {
  font-size: 10px;
  color: var(--warn);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Timeline */
.timeline-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.timeline-header h2 {
  font-size: 15px;
}
.muted-text {
  color: var(--muted);
  font-size: 12px;
}
.messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #121212;
}
.msg-row {
  display: flex;
  flex-direction: column;
  max-width: 72%;
}
.msg-row.in {
  align-self: flex-start;
}
.msg-row.out {
  align-self: flex-end;
}
.msg-bubble {
  padding: 9px 12px;
  border-radius: 12px;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  word-break: break-word;
}
.msg-row.out .msg-bubble {
  background: #162812;
  border-color: rgba(132, 248, 92, 0.28);
}
.msg-bubble.deleted {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(239, 68, 68, 0.08);
}
.deleted-tag {
  display: inline-block;
  font-size: 11px;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 5px;
}
.msg-sender {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 3px;
  font-weight: 600;
}
.msg-text {
  white-space: pre-wrap;
  font-size: 13px;
}
.msg-media-img {
  max-width: 260px;
  max-height: 260px;
  border-radius: 8px;
  margin-top: 4px;
  cursor: pointer;
  display: block;
}
.msg-media-audio {
  width: 250px;
  height: 36px;
  margin-top: 4px;
}
.msg-media-video {
  max-width: 280px;
  border-radius: 8px;
  margin-top: 4px;
}
.msg-doc-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
}
.msg-time {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  text-align: right;
}

.timeline-panel {
  position: relative;
}
.drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.85);
  border: 2px dashed var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  z-index: 20;
  pointer-events: none;
}

.pending-media-bar {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: #151515;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pending-media-preview img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.pending-media-preview {
  font-size: 22px;
  line-height: 1;
}
.pending-media-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pending-media-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reply-bar {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
}
.reply-bar input[type="text"] {
  flex: 1;
}
.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #222;
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.btn-icon:hover {
  border-color: var(--accent);
}
.btn-icon.recording {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
  animation: pulseRec 1s infinite;
}
@keyframes pulseRec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.record-timer {
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Analytics */
.analytics-view {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}
.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.kpi-label {
  color: var(--muted);
  font-size: 12px;
}
.kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 6px;
}
.table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 16px;
}
.modal-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.modal-card.center {
  text-align: center;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.modal-close {
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.qr-box {
  margin: 16px auto;
  width: 260px;
  height: 260px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.qr-status {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}
.lightbox-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 10px;
}
.lightbox-close {
  position: absolute;
  top: -32px;
  right: 0;
  color: #fff;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}
.toast {
  background: var(--card);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .mobile-only {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
  }

  .app-shell {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .topbar {
    height: auto;
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .topbar-left,
  .topbar-right {
    gap: 8px;
    flex-wrap: wrap;
  }
  .topbar-left {
    flex: 1 1 auto;
    justify-content: space-between;
  }
  .brand-badge,
  .user-pill {
    display: none;
  }
  .tabs {
    margin-left: 0;
  }
  .tab-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
  .ws-pill {
    font-size: 11px;
    padding: 3px 8px;
  }
  #logout-btn {
    padding: 5px 10px;
    font-size: 12px;
  }

  /* Step-by-step full-screen mobile navigation */
  .workspace {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 8px;
    gap: 0;
  }
  .workspace .panel {
    flex: 1;
    min-height: 0;
    width: 100%;
  }

  .workspace.mobile-view-agents .chats-panel,
  .workspace.mobile-view-agents .timeline-panel {
    display: none;
  }
  .workspace.mobile-view-chats .agents-panel,
  .workspace.mobile-view-chats .timeline-panel {
    display: none;
  }
  .workspace.mobile-view-thread .agents-panel,
  .workspace.mobile-view-thread .chats-panel {
    display: none;
  }

  .timeline-header {
    padding: 10px 12px;
    gap: 8px;
  }
  .timeline-header h2 {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .messages-scroll {
    padding: 10px;
  }
  .msg-row {
    max-width: 86%;
  }
  .msg-media-img,
  .msg-media-video {
    max-width: 220px;
  }
  .msg-media-audio {
    width: 205px;
  }

  .reply-bar {
    padding: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }
  .btn-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .reply-bar input[type="text"] {
    min-width: 0;
    padding: 8px 10px;
    font-size: 14px;
  }
  #send-btn {
    padding: 8px 12px;
    font-size: 13px;
    flex-shrink: 0;
  }

  /* Analytics mobile */
  .analytics-view {
    padding: 12px;
  }
  .analytics-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .kpi-value {
    font-size: 22px;
  }
  .table-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Modals mobile */
  .modal-card {
    max-width: 94vw;
    padding: 16px;
  }
  .qr-box {
    width: 220px;
    height: 220px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

/* RBAC & Operator Management */
.readonly-notice {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #161616;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-card.modal-lg {
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
  padding: 10px;
  background: #121212;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: #121212;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  margin: 0;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-row.status-toggle {
  padding: 8px 10px;
  background: #121212;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.perm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.perm-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  background: #222;
  border: 1px solid var(--border);
  color: var(--text);
}

.perm-pill.accent {
  background: var(--accent-dim);
  border-color: rgba(132, 248, 92, 0.35);
  color: var(--accent);
}

.op-actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.status-badge.status-active {
  background: var(--accent-dim);
  color: var(--accent);
}

.status-badge.status-inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* Customers CRM */
select,
textarea {
  font: inherit;
  color: var(--text);
  background: #121212;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.15s;
}
select:focus,
textarea:focus {
  border-color: var(--accent);
}
textarea {
  width: 100%;
  resize: vertical;
}

.customers-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.customers-toolbar .search-input {
  flex: 1;
  min-width: 220px;
}
.tag-select {
  min-width: 160px;
}

.tag-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag-filter-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #1c1c1c;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
}
.tag-filter-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}
.tag-filter-pill.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(132, 248, 92, 0.14);
  color: var(--accent);
  border: 1px solid rgba(132, 248, 92, 0.3);
}
.tag-badge.tag-vip {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}
.tag-badge.tag-ftd {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.4);
}
.tag-badge.tag-pasif,
.tag-badge.tag-sikayet {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.4);
}
.tag-badge.tag-takip {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.4);
}

.tag-badge .tag-remove {
  background: transparent;
  color: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 0 2px;
  opacity: 0.8;
}
.tag-badge .tag-remove:hover {
  opacity: 1;
}

.tag-chips-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
  padding: 8px;
  background: #121212;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
}

.quick-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.tag-input-row {
  display: flex;
  gap: 8px;
}
.tag-input-row input {
  flex: 1;
}

.chat-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}

.cust-note-cell {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 12.5px;
}
