.pmh-demand-section-head[hidden],
.pmh-demand-kpis[hidden],
.pmh-demand-list[hidden],
.pmh-demand-completed[hidden] {
  display: none !important;
}

[data-active-workstream] {
  overflow: hidden;
  border: 1px solid var(--aos-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 28, 52, .045);
}

.pmh-active-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 15px;
  border-bottom: 1px solid var(--aos-line);
}
.pmh-active-head small {
  color: var(--aos-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.pmh-active-head h2 {
  margin: 5px 0 0;
  color: var(--aos-ink);
  font-size: 22px;
}
.pmh-active-head p {
  margin: 5px 0 0;
  color: var(--aos-muted);
  font-size: 12px;
}
.pmh-active-head > b {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--aos-accent);
  background: var(--aos-accent-soft);
  font-size: 12px;
}

.pmh-active-filters {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--aos-line);
  background: #fafafe;
}
.pmh-active-filters button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--aos-line);
  border-radius: 999px;
  color: var(--aos-muted);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}
.pmh-active-filters button b {
  margin-left: 4px;
  color: inherit;
}
.pmh-active-filters button.active {
  border-color: var(--aos-accent);
  color: #fff;
  background: var(--aos-accent);
}

.pmh-active-list {
  display: grid;
  gap: 1px;
  background: var(--aos-line);
}
.pmh-active-row {
  display: grid;
  grid-template-columns: 125px minmax(260px, 1fr) minmax(150px, .55fr) 130px 92px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 70px;
  padding: 12px 16px;
  border: 0;
  color: var(--aos-text);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.pmh-active-row:hover {
  background: #fbfaff;
}

.pmh-active-origin {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  max-width: 120px;
  padding: 6px 8px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--origin-color, #555465);
  background: var(--origin-bg, #efeff3);
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pmh-active-origin.tone-sults { --origin-color: #2e63a8; --origin-bg: var(--aos-blue-soft); }
.pmh-active-origin.tone-inauguration { --origin-color: #a55b16; --origin-bg: #fff0df; }
.pmh-active-origin.tone-direction { --origin-color: #8b3b45; --origin-bg: #fdeef0; }
.pmh-active-origin.tone-meeting { --origin-color: #5a43c8; --origin-bg: var(--aos-accent-soft); }
.pmh-active-origin.tone-whatsapp { --origin-color: #187d59; --origin-bg: #edf9f4; }
.pmh-active-origin.tone-internal,
.pmh-active-origin.tone-other { --origin-color: #62606e; --origin-bg: #efeff3; }
.pmh-active-origin.tone-content { --origin-color: #187d59; --origin-bg: #edf9f4; }
.pmh-active-origin.tone-campaign { --origin-color: #a13c70; --origin-bg: #fdeef6; }

.pmh-active-main,
.pmh-active-person {
  min-width: 0;
}
.pmh-active-main strong,
.pmh-active-main small,
.pmh-active-person small,
.pmh-active-person strong {
  display: block;
}
.pmh-active-main strong {
  overflow: hidden;
  color: var(--aos-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pmh-active-main small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--aos-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pmh-active-person small {
  color: var(--aos-muted-2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
}
.pmh-active-person strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pmh-active-status {
  overflow: hidden;
  color: var(--aos-muted);
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pmh-active-row time {
  justify-self: end;
  padding: 6px 8px;
  border-radius: 999px;
  color: #666471;
  background: #efeff3;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}
.pmh-active-row time.late { color: #ae4038; background: var(--aos-coral-soft); }
.pmh-active-row time.today { color: #a55b16; background: #fff0df; }
.pmh-active-row time.soon { color: #2e63a8; background: var(--aos-blue-soft); }
.pmh-active-row time.later { color: #5a43c8; background: var(--aos-accent-soft); }

.pmh-active-empty {
  padding: 30px;
  color: var(--aos-muted);
  background: #fff;
  text-align: center;
  font-size: 13px;
}
.pmh-active-warning {
  padding: 10px 14px;
  color: #9a681f;
  background: #fff8e8;
  font-size: 11px;
}

@media (max-width: 1050px) {
  .pmh-active-row {
    grid-template-columns: 115px minmax(220px, 1fr) 130px 88px;
  }
  .pmh-active-person {
    display: none;
  }
}

@media (max-width: 720px) {
  .pmh-active-head {
    align-items: flex-start;
  }
  .pmh-active-head p {
    display: none;
  }
  .pmh-active-row {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 13px 14px;
  }
  .pmh-active-origin {
    grid-column: 1;
    grid-row: 1;
  }
  .pmh-active-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .pmh-active-status {
    grid-column: 1;
    grid-row: 3;
  }
  .pmh-active-row time {
    grid-column: 2;
    grid-row: 1;
  }
}
