.bw-task-groups {
  --bw-task-brand: #0e9aa7;
  --bw-task-brand-strong: #087b85;
  --bw-task-brand-soft: #e0f5f7;
  --bw-task-ink: #1e2d52;
  --bw-task-muted: #788293;
  --bw-task-line: #e3ebed;
  color: var(--bw-task-ink);
  font-family: inherit;
  width: 100%;
}

.bw-task-groups-header {
  margin: -0.15rem 0 1rem;
}

.bw-task-tabs {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 2rem;
  border-bottom: 1px solid var(--bw-task-line);
  padding: 0 0.25rem;
}

.bw-task-tab {
  color: #777f8c;
  display: inline-flex;
  align-items: center;
  height: 2rem;
  border-bottom: 2px solid transparent;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.bw-task-tab:hover {
  color: #263244;
}

.bw-task-tab-active {
  color: var(--bw-task-brand);
  border-bottom-color: var(--bw-task-brand);
}

.bw-task-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.25rem 0.15rem;
}

.bw-task-toolbar h1 {
  color: var(--bw-task-ink);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
}

.bw-task-toolbar h1 span {
  color: var(--bw-task-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.bw-task-toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  color: #737d8b;
  font-size: 0.75rem;
  white-space: nowrap;
}

.bw-task-detail-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  color: #687382;
  cursor: pointer;
  font: inherit;
  padding: 0.35rem 0.2rem;
}

.bw-task-detail-toggle:hover,
.bw-task-detail-toggle[aria-pressed="true"] {
  color: var(--bw-task-brand);
}

.bw-task-page-size {
  border-left: 1px solid #d7dbe1;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.2rem;
  padding-left: 0.7rem;
}

.bw-task-page-size select {
  background: #f6f7f9;
  border: 1px solid #d9dde3;
  border-radius: 0.25rem;
  color: #364152;
  font: inherit;
  min-width: 3.25rem;
  padding: 0.25rem 0.35rem;
}

.bw-task-table-wrap {
  background: #fff;
  border: 1px solid #e2e5e9;
  border-radius: 0.3rem;
  overflow-x: auto;
  box-shadow: 0 1px 2px rgb(23 34 52 / 4%);
}

.bw-task-table {
  border-collapse: collapse;
  min-width: 840px;
  table-layout: fixed;
  width: 100%;
}

.bw-task-table th,
.bw-task-table td {
  border-bottom: 1px solid var(--bw-task-line);
  padding: 0.48rem 0.62rem;
  text-align: left;
  vertical-align: middle;
}

.bw-task-table th {
  background: #f2fafa;
  color: var(--bw-task-ink);
  font-size: 0.75rem;
  font-weight: 700;
  height: 2.35rem;
}

.bw-task-table td {
  color: #495363;
  font-size: 0.78rem;
  line-height: 1.4;
}

.bw-task-table tbody tr:last-child td {
  border-bottom: 0;
}

.bw-task-table tbody tr:hover {
  background: #fafbfc;
}

.bw-task-table th:nth-child(1) { width: 19%; }
.bw-task-table th:nth-child(2) { width: 31%; }
.bw-task-table th:nth-child(3) { width: 8%; }
.bw-task-table th:nth-child(4) { width: 12%; }
.bw-task-table th:nth-child(5) { width: 12%; }
.bw-task-table th:nth-child(6) { width: 18%; }

.bw-task-title {
  color: #323d4d !important;
  font-weight: 650;
}

.bw-task-overview-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-weight: 550;
}

.bw-task-detail {
  color: #7b8491;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.45;
  margin-top: 0.35rem;
  white-space: normal;
}

.bw-task-urgent {
  align-items: center;
  background: #fff3e8;
  border: 1px solid #ffd7b3;
  border-radius: 999px;
  color: #b54708;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 800;
  gap: 0.28rem;
  letter-spacing: 0.025em;
  padding: 0.18rem 0.5rem;
}

.bw-task-urgent span {
  border-left: 1px solid #efbd91;
  font-size: 0.66rem;
  padding-left: 0.35rem;
}

.bw-task-assigned {
  align-items: center;
  background: #ecfdf3;
  border: 1px solid #86efac;
  border-radius: 999px;
  color: #15803d;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  margin-left: 0.35rem;
  padding: 0.18rem 0.5rem;
}

.bw-task-pay-bonus {
  color: #b54708;
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.bw-task-modal-bonus strong {
  color: #b54708;
}

.bw-task-queue {
  color: #3e4958 !important;
  font-weight: 650;
  text-align: center !important;
}

.bw-task-pay {
  color: #2f3948 !important;
  font-weight: 650;
  white-space: nowrap;
}

.bw-task-live-limit {
  color: var(--bw-task-brand-strong) !important;
  font-weight: 650;
  white-space: nowrap;
}

.bw-task-actions,
.bw-task-actions-heading {
  text-align: right !important;
  white-space: nowrap;
}

.bw-task-preview,
.bw-task-accept,
.bw-task-secondary,
.bw-task-pagination button,
.bw-task-error button {
  border-radius: 0.25rem;
  cursor: pointer;
  font: inherit;
}

.bw-task-preview {
  background: transparent;
  border: 0;
  color: var(--bw-task-brand);
  font-size: 0.74rem;
  font-weight: 650;
  margin-right: 0.45rem;
  padding: 0.35rem 0.2rem;
}

.bw-task-preview:hover {
  color: var(--bw-task-brand-strong);
  text-decoration: underline;
}

.bw-task-accept {
  background: var(--bw-task-brand);
  border: 1px solid var(--bw-task-brand-strong);
  box-shadow: 0 1px 2px rgb(14 154 167 / 20%);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  min-height: 1.75rem;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
}

.bw-task-accept:hover:not(:disabled) {
  background: var(--bw-task-brand-strong);
}

.bw-task-accept:disabled {
  cursor: wait;
  opacity: 0.7;
}

.bw-task-empty {
  color: var(--bw-task-muted) !important;
  padding: 2.5rem 1rem !important;
  text-align: center !important;
}

.bw-task-pagination {
  align-items: center;
  color: #77818e;
  display: flex;
  font-size: 0.74rem;
  justify-content: space-between;
  padding: 0.55rem 0.1rem 0;
}

.bw-task-pagination p {
  margin: 0;
}

.bw-task-pagination-controls {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.bw-task-pagination-controls span {
  color: #55606d;
  font-weight: 650;
  min-width: 2.2rem;
  text-align: center;
}

.bw-task-pagination button,
.bw-task-error button {
  background: #fff;
  border: 1px solid #dfe3e8;
  color: #414c5b;
  font-size: 0.74rem;
  min-height: 1.8rem;
  padding: 0.3rem 0.65rem;
}

.bw-task-pagination button:hover:not(:disabled),
.bw-task-error button:hover {
  background: #f5f6f8;
  border-color: var(--bw-task-brand);
  color: var(--bw-task-brand-strong);
}

.bw-task-groups button:focus-visible,
.bw-task-groups select:focus-visible {
  outline: 2px solid var(--bw-task-brand);
  outline-offset: 2px;
}

.bw-task-pagination button:disabled {
  color: #b0b6bf;
  cursor: not-allowed;
}

.bw-task-error {
  align-items: center;
  background: #fff5f3;
  border: 1px solid #f0d1cb;
  border-radius: 0.3rem;
  color: #a43d2b;
  display: flex;
  font-size: 0.75rem;
  justify-content: space-between;
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
}

.bw-task-modal-backdrop {
  align-items: center;
  background: rgb(18 27 42 / 48%);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 1rem;
  position: fixed;
  z-index: 100000;
}

.bw-task-modal {
  background: #fff;
  border: 1px solid #e4e7eb;
  border-radius: 0.6rem;
  box-shadow: 0 20px 55px rgb(14 28 48 / 24%);
  max-height: calc(100vh - 2rem);
  max-width: 36rem;
  overflow-y: auto;
  padding: 1.5rem;
  position: relative;
  width: 100%;
}

.bw-task-modal-close {
  background: transparent;
  border: 0;
  color: #798392;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.1rem 0.35rem;
  position: absolute;
  right: 0.8rem;
  top: 0.65rem;
}

.bw-task-modal-kicker {
  color: var(--bw-task-brand);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.bw-task-modal h2 {
  color: var(--bw-task-ink);
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 0 2rem 0.6rem 0;
}

.bw-task-category {
  background: var(--bw-task-brand-soft);
  border-radius: 1rem;
  color: var(--bw-task-brand-strong);
  display: inline-block;
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
}

.bw-task-modal-metrics {
  border-bottom: 1px solid #e9ebef;
  border-top: 1px solid #e9ebef;
  display: flex;
  gap: 2.5rem;
  margin: 1rem 0;
  padding: 0.8rem 0;
}

.bw-task-modal-metrics span {
  color: #737d89;
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  gap: 0.2rem;
}

.bw-task-modal-metrics strong {
  color: #2e3949;
  font-size: 0.88rem;
}

.bw-task-modal h3 {
  color: #445061;
  font-size: 0.8rem;
  margin: 1rem 0 0.35rem;
}

.bw-task-modal-description {
  color: #5b6675;
  font-size: 0.79rem;
  line-height: 1.55;
  margin: 0;
  white-space: pre-wrap;
}

.bw-task-modal-actions {
  border-top: 1px solid #e9ebef;
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 0.9rem;
}

.bw-task-secondary {
  background: #fff;
  border: 1px solid #dfe3e8;
  color: #4c5867;
  font-size: 0.72rem;
  padding: 0.45rem 0.8rem;
}

@media (max-width: 760px) {
  .bw-task-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.65rem 0.1rem;
  }

  .bw-task-toolbar-controls {
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    width: 100%;
  }

  .bw-task-table {
    min-width: 760px;
  }

  .bw-task-pagination {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }
}

@media (max-width: 420px) {
  .bw-task-tabs {
    gap: 0.85rem;
  }

  .bw-task-toolbar h1 {
    font-size: 1.02rem;
  }

  .bw-task-toolbar h1 span {
    font-size: 0.76rem;
  }
}
