Skip to content

The open-source AI receptionist for businesses. Answers every call, books the appointment and hands over to a person when needed. You own the code and the data.

6.6 KB
Raw Blame
/* Outbound calls (outbound/Outbound.tsx): the list at the left and the open call beside it; below 900 px wide one
   at a time, the open call full screen with Back and the instruction field fixed at its bottom. */
.oc {
  min-width: 0;
  overflow: hidden;
}
.oc-main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 2fr) minmax(0, 3fr);
}
.oc-list-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.oc-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.oc-list .zero {
  padding: 32px 16px;
}

.oc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  width: 100%;
  min-height: 64px;
  box-sizing: border-box;
  padding: 10px 20px 10px 18px;
  border: 0;
  border-left: 2px solid transparent;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.oc-row:hover {
  background: var(--surface-hover);
}
.oc-row.is-open {
  background: var(--highlight);
  border-left-color: var(--ink);
}
.oc-row:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.oc-row-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.oc-row-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.oc-row-time {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}
.oc-row-sub {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-muted);
  font-size: 13px;
}
.oc-row-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 2px;
}
.oc-row-retry {
  color: var(--ink-muted);
  font-size: 12px;
}

.oc-none {
  display: grid;
  place-items: center;
  color: var(--ink-muted);
  padding: 24px;
}

.oc-detail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--bg);
}
.oc-detail-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.oc-detail-bar .oc-back {
  visibility: hidden;
}
.oc-detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 24px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 12px;
}
.oc-detail-head {
  display: grid;
  gap: 4px;
}
.oc-detail-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.oc-detail-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--ink-muted);
  font-size: 13px;
}
.oc-detail-who {
  margin: 0;
  color: var(--ink-muted);
}
/* "If not reached, try again": the next try and Cancel, under whom the call went to. */
.oc-retry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 4px;
  padding: 6px 6px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-muted);
  font-size: 13px;
}
.oc-retry-text {
  flex: 1;
  min-width: 0;
  color: var(--ink);
}
.oc-retry .k-note {
  flex-basis: 100%;
}
.oc-num {
  font-family: var(--font-mono);
  font-size: 13px;
}
.oc-goal p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.oc-transcript {
  min-width: 0;
}
.oc-quiet {
  margin: 8px 0;
  color: var(--ink-muted);
  text-align: center;
}

.oc-log {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.oc-log-h {
  font-size: 13px;
}
.oc-log ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.oc-log li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  font-size: 13px;
  color: var(--ink);
}
.oc-log li > .k-icon,
.oc-log li > svg {
  margin-top: 3px;
  color: var(--ink-muted);
}
.oc-log-text {
  overflow-wrap: anywhere;
  display: grid;
  gap: 2px;
}
.oc-log-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}
.oc-log li.is-sending {
  color: var(--ink-muted);
}
.oc-log li.is-failed .oc-log-meta,
.oc-log-error {
  color: var(--danger);
}

.oc-guide {
  flex: none;
  display: grid;
  gap: 4px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.oc-guide-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.oc-guide-row textarea.ta {
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  padding: 11px 12px;
  line-height: 20px;
  max-height: 140px;
  resize: none;
  font-size: 16px;
}
.oc-guide-row .k-btn {
  flex: none;
  height: 44px;
}
/* The assistant's steps and the instructions sent wrap here: a phone is too narrow for one line. */
.oc .k-event-in {
  white-space: normal;
  min-width: 0;
}
.oc-guide-note {
  margin: 0;
  font-size: 12px;
  color: var(--ink-muted);
}

.oc-new {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
/* A long retry choice ends in "…" on a phone instead of widening the form. */
.oc-new .k-select {
  min-width: 0;
}
.oc-new .k-select-btn > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* One pane at a time: the list, or the open call over the whole page with Back. */
@container main (max-width: 899px) {
  .oc-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .oc-list-pane {
    border-right: 0;
  }
  .oc-has-open .oc-list-pane,
  .oc:not(.oc-has-open) .oc-detail,
  .oc-none {
    display: none;
  }
  .oc-has-open .oc-head {
    display: none;
  }
  .oc-detail-bar .oc-back {
    visibility: visible;
  }
  .oc-detail-bar {
    padding: 6px 12px;
    min-height: 44px;
  }
  .oc-detail-scroll {
    padding: 12px 16px 16px;
  }
  .oc-row {
    padding: 12px 16px;
    min-height: 72px;
  }
  .oc-list-pane .ib-hint {
    display: none;
  }
  .oc-detail-head h2 {
    font-size: 18px;
    line-height: 24px;
  }
}
/* Phones: the label of New call goes (the + stays), the fields are 16 px so iOS does not zoom in. */
@container main (max-width: 480px) {
  .oc-new-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .oc-new input,
  .oc-new textarea {
    font-size: 16px;
  }
}
@media (hover: none) and (pointer: coarse) {
  .oc-guide-send {
    display: none;
  }
  .oc-guide-row .k-btn {
    width: 44px;
    height: 44px;
    justify-content: center;
  }
  .oc-guide-note {
    display: none;
  }
}