.app-main:has(.wclist-page) {
  margin-top: 0 !important;
  margin-right: 0;
  width: calc(100% - var(--sidebar-collapsed-w));
  padding-top: 0 !important;
}

.app-main:has(.wclist-page) > .flash-right {
  display: none;
}

@media (max-width: 991.98px) {
  .app-main:has(.wclist-page) {
    width: 100%;
  }
}

.wclist-page {
  min-height: 100vh;
  color: var(--app-text);
}

.wclist-content-shell {
  padding: 0.75rem 1rem 1rem;
}

.wclist-page .cc-work-table-th-id,
.wclist-page .cc-work-table-body td:nth-child(1) {
  width: 3.25rem;
  min-width: 3.25rem;
  max-width: 3.25rem;
  padding-right: 0.2rem;
}

.wclist-page .cc-work-table-head th:nth-child(2),
.wclist-page .cc-work-table-body td:nth-child(2) {
  padding-left: 0.2rem;
}

.wclist-page .js-open-filters.filters-active {
  border-color: color-mix(in srgb, var(--app-accent, #10b981) 50%, var(--app-border));
  background: color-mix(in srgb, var(--app-accent-soft, #d1fae5) 78%, var(--app-surface));
  color: var(--app-accent-strong, #047857);
}

.wclist-page .cc-work-table-action:has(> .material-symbols-outlined:only-child) {
  min-width: 1.85rem;
  padding-inline: 0.42rem;
}

.wclist-page .cc-work-table-action[data-row-action-key="edit"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.wclist-page .cc-work-table-action[data-row-action-key="edit"]:hover {
  border-color: #86efac;
  color: #166534;
}

.wclist-toolbar-filter {
  min-width: 4.5rem;
}

.wclist-toolbar-filter--type {
  min-width: 3.6rem;
}

.wclist-state-pill,
.wclist-status-pill,
.wclist-channel-pill,
.wclist-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.wclist-state-pill {
  border-color: color-mix(in srgb, var(--app-border) 85%, transparent);
  background: color-mix(in srgb, var(--app-surface-raised) 72%, var(--app-surface));
  color: var(--app-text-muted);
}

.wclist-type-pill.is-working_campaign {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

.wclist-type-pill.is-sms_campaign {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.wclist-type-pill.is-newsletter_campaign {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.wclist-status-pill.is-active {
  border-color: color-mix(in srgb, var(--app-success, var(--app-accent)) 24%, var(--app-border));
  background: color-mix(in srgb, var(--app-success-soft, var(--app-accent-soft)) 72%, var(--app-surface));
  color: #047857;
}

.wclist-status-pill.is-inactive {
  border-color: color-mix(in srgb, var(--app-danger) 20%, var(--app-border));
  background: color-mix(in srgb, var(--app-danger-soft) 72%, var(--app-surface));
  color: #b91c1c;
}

.wclist-status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.wclist-data-compact {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
}

.wclist-data-head {
  white-space: nowrap;
}

.wclist-data-head-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.wclist-header-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.88rem;
  height: 0.88rem;
  min-width: 0.88rem;
  border: 1px solid color-mix(in srgb, var(--app-border) 88%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-surface-raised) 72%, var(--app-surface));
  color: var(--app-text-muted);
  font-size: 0.58rem !important;
  font-weight: 700;
  line-height: 0.88rem;
  vertical-align: middle;
  cursor: help;
  user-select: none;
  overflow: hidden;
  font-variation-settings:
    'FILL' 0,
    'wght' 500,
    'GRAD' 0,
    'opsz' 16;
}

.wclist-header-help.material-symbols-outlined {
  font-size: 0.58rem !important;
  line-height: 0.88rem !important;
}

.wclist-header-tooltip-floating {
  position: absolute;
  min-width: 15rem;
  max-width: 18rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--app-border) 88%, transparent);
  border-radius: 0.55rem;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  pointer-events: none;
  z-index: 999;
}

.wclist-header-tooltip-floating::before {
  content: "";
  position: absolute;
  top: -0.3rem;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  background: #0f172a;
  border-left: 1px solid color-mix(in srgb, var(--app-border) 88%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--app-border) 88%, transparent);
  transform: translateX(-50%) rotate(45deg);
}

.wclist-channel-stack {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.wclist-channel-pill.is-cc {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

.wclist-channel-pill.is-sms {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.wclist-channel-pill.is-email {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

@media (max-width: 900px) {
  .wclist-page .cclist-header {
    height: auto;
    min-height: 3.25rem;
    flex-wrap: wrap;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }

  .wclist-page .cclist-spacer {
    display: none;
  }

}

@media (max-width: 640px) {
  .wclist-content-shell {
    padding: 0.8rem;
  }

  .wclist-toolbar-filter,
  .wclist-toolbar-filter--type {
    min-width: 0;
  }
}
