html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  height: 100%;
  position: relative;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body > .container {
  flex: 1 0 auto;
  width: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* This feed is rendered by a partial view, so its styles must not be page-scoped. */
.hubspot-communication {
  background: #f5f8f9;
  border: 1px solid #d7e1e4;
  border-radius: 0.8rem;
  box-shadow: 0 0.3rem 1.1rem rgba(25, 52, 61, 0.07);
  overflow: hidden;
}

.hubspot-communication__heading {
  align-items: flex-start;
  background: #fff;
  border-bottom: 1px solid #d7e1e4;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.35rem;
}

.hubspot-communication__heading h2 {
  color: #172b33;
  font-size: 1.2rem;
  margin: 0;
}

.hubspot-communication__heading p:last-child {
  color: #65777e;
  font-size: 0.86rem;
  margin: 0.35rem 0 0;
}

.hubspot-communication .project-card__eyebrow {
  color: #55747d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin: 0 0 0.25rem;
  text-transform: uppercase;
}

.hubspot-communication__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.55rem;
}

.hubspot-communication .project-count {
  align-items: center;
  background: #e6f5f1;
  border-radius: 999px;
  color: #126b60;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 1.8rem;
  padding: 0.25rem 0.65rem;
}

.hubspot-communication__alert {
  border-radius: 0;
  border-width: 0 0 1px;
  margin: 0;
}

.hubspot-communication__toolbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e1e8ea;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 1.35rem;
}

.hubspot-communication__filters {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
}

.hubspot-communication__filter {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #4b6069;
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 650;
  padding: 0.35rem 0.65rem;
}

.hubspot-communication__filter:hover {
  background: #f0f5f5;
}

.hubspot-communication__filter.is-active {
  background: #e6f5f1;
  border-color: #b9ddd5;
  color: #0f695e;
}

.hubspot-communication__filter span {
  color: inherit;
  font-size: 0.72rem;
  opacity: 0.75;
}

.hubspot-communication__search {
  flex: 0 0 15rem;
  position: relative;
}

.hubspot-communication__search svg {
  fill: none;
  height: 1rem;
  left: 0.65rem;
  pointer-events: none;
  position: absolute;
  stroke: #6c7f86;
  stroke-linecap: round;
  stroke-width: 1.8;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
}

.hubspot-communication__search input {
  padding-left: 2rem;
}

.hubspot-communication__timeline {
  padding: 0.45rem 1.35rem 1.35rem;
}

.hubspot-activity-group > h3 {
  align-items: center;
  color: #526870;
  display: flex;
  font-size: 0.78rem;
  font-weight: 750;
  gap: 0.75rem;
  letter-spacing: 0.025em;
  margin: 1.15rem 0 0.65rem;
  text-transform: uppercase;
}

.hubspot-activity-group > h3::after {
  background: #dbe4e7;
  content: "";
  flex: 1 1 auto;
  height: 1px;
}

.hubspot-activity-group__items {
  display: grid;
  gap: 0.85rem;
}

.hubspot-activity {
  background: #fff;
  border: 1px solid #d5e0e3;
  border-left: 4px solid #74b8aa;
  border-radius: 0.65rem;
  box-shadow: 0 0.12rem 0.35rem rgba(25, 52, 61, 0.05);
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  padding: 1rem 1.1rem;
}

.hubspot-activity--email {
  border-left-color: #5d86dc;
}

.hubspot-activity--call {
  border-left-color: #8064c9;
}

.hubspot-activity--meeting,
.hubspot-activity--task {
  border-left-color: #d28a43;
}

.hubspot-activity__icon {
  align-items: center;
  background: #e6f5f1;
  border-radius: 50%;
  color: #0f695e;
  display: flex;
  font-size: 0.72rem;
  font-weight: 800;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.hubspot-activity--email .hubspot-activity__icon {
  background: #e9f0ff;
  color: #205ecb;
}

.hubspot-activity--call .hubspot-activity__icon {
  background: #eee9ff;
  color: #6647bd;
}

.hubspot-activity--meeting .hubspot-activity__icon,
.hubspot-activity--task .hubspot-activity__icon {
  background: #fff1df;
  color: #a45716;
}

.hubspot-activity__content {
  min-width: 0;
}

.hubspot-activity__topline {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.hubspot-activity__type {
  background: #edf5f3;
  border-radius: 999px;
  color: #36535d;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  padding: 0.22rem 0.5rem;
  text-transform: uppercase;
}

.hubspot-activity__topline time {
  color: #62767e;
  font-size: 0.76rem;
  font-weight: 600;
}

.hubspot-activity__date-actions {
  align-items: flex-end;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.4rem;
}

.hubspot-activity__message-actions {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.hubspot-activity__copy-link svg {
  fill: none;
  height: 0.85rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 0.85rem;
}

.hubspot-activity--linked {
  outline: 2px solid #167d8d;
  outline-offset: 2px;
  scroll-margin-top: 1rem;
}

.hubspot-activity__open,
.hubspot-activity__copy-link {
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0.28rem 0.5rem;
}

.hubspot-activity h4 {
  color: #172b33;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0.55rem 0 0;
  overflow-wrap: anywhere;
}

.hubspot-activity__metadata {
  color: #557078;
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0.4rem 0 0;
  overflow-wrap: anywhere;
}

.hubspot-activity__metadata span + span::before {
  color: #557078;
  content: " · ";
}

.hubspot-activity__metadata-failed {
  color: #dc3545;
  font-weight: 700;
}

.hubspot-activity__details {
  border-top: 1px solid #e5ecee;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
}

.hubspot-activity__details summary {
  color: #0f695e;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  width: max-content;
}

.hubspot-activity__details p {
  background: #f7f9fa;
  border-radius: 0.45rem;
  color: #31474f;
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0.75rem 0 0;
  overflow-wrap: anywhere;
  padding: 0.8rem;
  white-space: pre-line;
}

.hubspot-activity__details--email {
  overflow: hidden;
}

.hubspot-activity__export-pdf {
  background: transparent;
  border: 0;
  border-radius: 0.25rem;
  color: #c53030;
  cursor: pointer;
  margin-left: 0.5rem;
  padding: 0.2rem;
  vertical-align: middle;
}

.hubspot-activity__export-pdf:hover,
.hubspot-activity__export-pdf:focus-visible {
  background: #fce8e8;
}

.hubspot-activity__export-pdf svg {
  fill: none;
  height: 1.4rem;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.5;
  width: 1.4rem;
}

.hubspot-activity__export-pdf text {
  fill: currentColor;
  font: bold 8px Arial, sans-serif;
  stroke: white;
  stroke-width: 2px;
  paint-order: stroke;
}

.hubspot-pdf-modal.hubspot-email-pdf-modal .modal-body {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
  background: #f4f5f7;
}

.hubspot-email-pdf-modal__status {
  flex: 0 0 auto;
  background: #fff8e1;
  color: #31474f;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

#hubSpotEmailPdfViewer {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
}

.hubspot-email-pdf-renderer {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 794px;
  height: 1123px;
  border: 0;
}

.hubspot-activity__email-frame {
  background: #fff;
  border: 1px solid #dce5e8;
  border-radius: 0.45rem;
  display: block;
  height: clamp(24rem, 70vh, 52rem);
  margin-top: 0.75rem;
  width: 100%;
}

.hubspot-activity__attachments {
  border-top: 1px solid #e5ecee;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
}

.hubspot-activity__attachments > p {
  color: #526870;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.hubspot-activity__attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hubspot-activity__attachment {
  align-items: center;
  background: #fff;
  border: 1px solid #cfdadd;
  border-radius: 0.4rem;
  color: #0f695e;
  display: inline-flex;
  font: inherit;
  gap: 0.4rem;
  max-width: 24rem;
  min-width: 12rem;
  padding: 0.5rem 0.65rem;
  text-align: left;
  text-decoration: none;
}

.hubspot-activity__attachment:hover {
  background: #f2f8f7;
  border-color: #9dc9c0;
  color: #0a574e;
}

.hubspot-activity__attachment svg {
  fill: none;
  flex: 0 0 auto;
  height: 1rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 1rem;
}

.hubspot-activity__attachment span {
  flex: 1 1 auto;
  font-size: 0.78rem;
  font-weight: 650;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hubspot-activity__attachment small {
  color: #6b7e85;
  flex: 0 0 auto;
  font-size: 0.7rem;
  margin-left: auto;
}

.hubspot-pdf-modal .modal-dialog {
  height: calc(100dvh - 2rem);
  margin-block: 1rem;
  max-width: min(96vw, 92rem);
}

.hubspot-pdf-modal .modal-content {
  height: 100%;
  overflow: hidden;
}

.hubspot-pdf-modal .modal-header,
.hubspot-pdf-modal .modal-footer {
  flex: 0 0 auto;
}

.hubspot-pdf-modal .modal-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hubspot-pdf-modal .modal-body {
  background: #252525;
  display: grid;
  min-height: 20rem;
  overflow: hidden;
  padding: 0;
  place-items: center;
}

.hubspot-pdf-modal__loading,
.hubspot-pdf-modal__frame {
  grid-area: 1 / 1;
}

.hubspot-pdf-modal__loading {
  align-items: center;
  color: #fff;
  display: flex;
  gap: 0.75rem;
}

.hubspot-pdf-modal__frame {
  background: #252525;
  border: 0;
  height: 100%;
  opacity: 0;
  width: 100%;
}

.hubspot-pdf-modal__frame.is-loaded {
  opacity: 1;
}

.hubspot-pdf-modal .modal-footer form {
  margin: 0;
}

.hubspot-communication__empty {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 17rem;
  padding: 3.5rem 1.25rem;
  text-align: center;
}

.hubspot-communication__empty-icon {
  align-items: center;
  background: #fff0e6;
  border-radius: 50%;
  color: #df5d20;
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: 3rem;
  justify-content: center;
  margin-bottom: 0.8rem;
  width: 3rem;
}

.hubspot-communication__empty h3 {
  color: #263d45;
  font-size: 1rem;
  margin: 0;
}

.hubspot-communication__empty p,
.hubspot-communication__filtered-empty {
  color: #6a7d84;
  font-size: 0.84rem;
  margin: 0.45rem 0 0;
}

.hubspot-communication__filtered-empty {
  padding: 2.5rem 1.35rem;
  text-align: center;
}

@media (max-width: 575.98px) {
  .hubspot-communication__heading,
  .hubspot-communication__toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .hubspot-communication__actions {
    flex-wrap: wrap;
  }

  .hubspot-communication__search {
    flex-basis: auto;
    width: 100%;
  }

  .hubspot-communication__timeline {
    padding-inline: 0.75rem;
  }

  .hubspot-activity {
    grid-template-columns: 2rem minmax(0, 1fr);
    padding: 0.85rem;
  }

  .hubspot-activity__icon {
    height: 2rem;
    width: 2rem;
  }

  .hubspot-activity__topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .hubspot-activity__date-actions {
    align-items: flex-start;
  }

  .hubspot-activity__attachment {
    max-width: 100%;
    width: 100%;
  }

  .hubspot-pdf-modal .modal-dialog {
    height: calc(100dvh - 1rem);
    margin-block: 0.5rem;
    max-width: calc(100vw - 1rem);
  }

  .hubspot-pdf-modal .modal-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hubspot-pdf-modal .modal-footer .btn,
  .hubspot-pdf-modal .modal-footer form,
  .hubspot-pdf-modal .modal-footer form .btn {
    width: 100%;
  }
}
