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.

5.1 KB
Raw Blame
/* Settings > Assistant > Booking & calendar. The lists are the kit's (ui/list.css); this is what is only here. */

.cal-connect {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cal-connect .k-btn {
  gap: 8px;
}
.cal-type-form {
  display: grid;
  gap: 12px;
}
/* "Can be booked" fills its column, so "During business hours" is not cut on a phone. */
.cal-type-form .bh-with {
  display: flex;
}
.cal-type-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
/* Buffers and when it can be booked: three small selects in one row; two columns on a phone. */
.cal-type-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 559px) {
  .cal-type-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cal-type-rules > :nth-child(3) {
    grid-column: 1 / -1;
  }
}

/* Where a key is made (KeyConnect.tsx): the button to the page, and the steps folded away. */
.key-guide {
  display: grid;
  justify-items: start;
  gap: 8px;
  font-size: 13px;
}
.key-guide details {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: var(--radius-md);
}
.key-guide summary {
  cursor: pointer;
  font-weight: 500;
}
.key-guide details[open] summary {
  margin-bottom: 6px;
}
.key-guide ol {
  margin: 0 0 6px;
  padding-left: 18px;
  display: grid;
  gap: 3px;
}
.key-guide .help {
  margin: 0;
}

/* The calendar picker: a checkbox per calendar, "Main calendar" at the right. */
.cal-pick .k-row {
  grid-template-columns: minmax(0, 1fr);
  padding: 8px 0;
}
.cal-pick .k-check {
  display: flex;
  width: 100%;
  min-width: 0;
}
.cal-pick .k-check-text {
  display: flex;
  flex: 1;
  gap: 8px;
  min-width: 0;
}
.cal-pick-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cal-pick-len {
  flex: none;
  color: var(--ink-muted);
}

/* The page: the summary, the two steps, the accounts. */
.cal-page {
  display: grid;
  gap: 16px;
}

/* A numbered step: the number in a small black circle before the title. */
.cal-step .k-card-title h2 {
  gap: 10px;
}
.cal-step .k-card-title p {
  margin-left: 32px;
}
.cal-step-no {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--surface);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* How the assistant books: its own calendars or one scheduling tool account, as radio cards. */
.cal-mode-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cal-step-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ink-muted);
}
.cal-mode-note {
  margin-top: 8px;
  color: var(--ink-muted);
}

/* Rows: a little more air than the kit's default, the "when" as a quiet sentence under the title. */
.cal-list .cal-row {
  padding-top: 10px;
  padding-bottom: 10px;
}
.cal-when {
  display: flex;
  gap: 8px;
  margin: 2px 0 0 28px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ink);
  min-width: 0;
}
.cal-when-lead {
  flex: none;
  color: var(--ink-muted);
}
.cal-when-empty {
  color: var(--ink-muted);
  font-style: italic;
}
.cal-own-mark {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-xs);
  background: var(--surface-hover);
  color: var(--ink-muted);
}
.cal-source {
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  box-shadow: inset 0 0 0 1px var(--line-soft);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
}
.cal-edit-gap {
  display: inline-block;
  width: 28px;
}

/* The own type dialog: delete at the bottom, quiet. */
.cal-type-delete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Calendar accounts: a FoldOut at the end of the page; its list in a card when open. */
.cal-accounts-body {
  display: grid;
  gap: 10px;
}
.cal-accounts-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Suggested appointment types for the kind of business (LIN-774): one click adds one. Dashed: not a type yet. */
.cal-suggest-after {
  margin-top: 14px;
}
.cal-suggest-lead {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--ink-muted);
}
.cal-suggest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cal-suggest-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--control-h);
  padding: 0 12px;
  border: 1px dashed var(--line-soft);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.cal-suggest-chip b {
  font-weight: 600;
}
.cal-suggest-chip:hover {
  border-color: var(--line-control);
  background: var(--surface-hover);
}
.cal-suggest-chip:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.cal-suggest-len {
  color: var(--ink-muted);
}