/* Calendars › + New → "Book appointment" (public/calendar-book.js).
   GHL's AppointmentWizard: 956px (536px on Blocked off time), a 660px body,
   two columns that scroll on their own, Naive UI controls with GHL's
   Tailwind tokens (gray-200 #eaecf0, gray-300 #d0d5dd, primary-600 #155eef). */

.bk-backdrop, .bk-sub-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(16, 24, 40, 0.45); }
.bk-sub-backdrop { z-index: 1010; background: rgba(16, 24, 40, 0.25); }
.bk-modal { position: relative; display: flex; flex-direction: column; width: min(956px, calc(100vw - 100px)); max-height: calc(100vh - 32px); background: #fff; border-radius: 12px; box-shadow: 0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03); font: 400 14px/20px Inter, system-ui, sans-serif; color: #101828; }
.bk-modal.is-narrow { width: min(536px, calc(100vw - 32px)); }
@media (max-width: 700px) { .bk-modal { width: calc(100vw - 32px); } }

.bk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 8px; }
.bk-title { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; line-height: 28px; color: #101828; word-break: break-all; }
.bk-title-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid #eaecf0; color: #344054; }
.bk-x { display: grid; place-items: center; width: 34px; height: 34px; margin-right: -6px; border: 0; border-radius: 34px; background: none; color: #344054; cursor: pointer; }
.bk-x:hover { background: #f2f4f7; }
.bk-ico { display: inline-flex; flex-shrink: 0; }

.bk-tabs { display: flex; gap: 32px; margin: 0 24px; border-bottom: 1px solid #eaecf0; }
.bk-tab { position: relative; padding: 12px 0 10px; border: 0; background: none; font: 500 15px/22px Inter, system-ui, sans-serif; color: #101828; cursor: pointer; }
.bk-tab.is-on { color: #155eef; }
.bk-tab.is-on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #155eef; }

.bk-body { flex: 1; min-height: 0; padding: 16px 24px 0; overflow: hidden; display: flex; flex-direction: column; }
.bk-subbody { overflow: visible; padding-bottom: 8px; }
.bk-loading { display: flex; align-items: center; gap: 8px; height: 200px; justify-content: center; color: #667085; }
.bk-cols { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 0.84fr); gap: 0 20px; height: min(600px, calc(100vh - 260px)); }
.bk-left, .bk-right { min-height: 0; overflow-y: auto; padding: 4px 6px 16px; }
.bk-left { padding-right: 14px; }
.bk-vline { background: #eaecf0; }
@media (max-width: 700px) {
  .bk-cols { grid-template-columns: 1fr; height: calc(100vh - 230px); overflow-y: auto; }
  .bk-left, .bk-right { overflow: visible; }
  .bk-vline { height: 1px; margin: 8px 0; }
}
.bk-block { overflow-y: auto; padding: 4px 2px 12px; max-height: min(600px, calc(100vh - 230px)); }

.bk-field { margin-bottom: 20px; min-width: 0; }
.bk-field.is-tight { margin-bottom: 0; }
.bk-label { display: flex; align-items: center; gap: 2px; margin-bottom: 8px; font-size: 14px; font-weight: 500; line-height: 20px; color: #344054; }
.bk-label.is-plain { font-weight: 400; color: #344054; }
.bk-label.is-flat { margin: 0; }
.bk-req { color: #d92d20; margin-left: 2px; }
.bk-hint, .bk-sub { margin: 6px 0 0; font-size: 12px; line-height: 18px; color: #475467; }
.bk-sub { margin: 10px 0 6px; font-size: 14px; color: #344054; }
.bk-muted { color: #98a2b3; }
.bk-err { margin-top: 8px; font-size: 13px; line-height: 18px; color: #d92d20; }
.bk-err.is-block { margin: -8px 0 16px; text-align: center; }
.bk-err.is-center { text-align: center; }

.bk-input { display: block; width: 100%; min-height: 40px; padding: 9px 14px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; font: 400 15px/20px Inter, system-ui, sans-serif; color: #101828; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
textarea.bk-input { resize: vertical; min-height: 80px; }
.bk-input::placeholder { color: #667085; }
.bk-input:focus { outline: none; border-color: #84adff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 0 0 4px #eff4ff; }
.bk-input.is-error { border-color: #f04438; }
.bk-input:disabled { background: #f9fafb; color: #98a2b3; }
.bk-select { appearance: none; padding-right: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.bk-select:disabled { cursor: default; background-color: #fff; }
.bk-static { display: flex; align-items: center; gap: 8px; color: #667085; }

.bk-link { padding: 0; border: 0; background: none; font: 500 15px/20px Inter, system-ui, sans-serif; color: #004eeb; cursor: pointer; }
.bk-link:hover { text-decoration: underline; }
.bk-link.is-danger { color: #b42318; font-weight: 600; font-size: 14px; }
.bk-desc { margin-top: -10px; }
.bk-desc textarea { margin-bottom: 0; }
.bk-desc .bk-link { margin-top: 10px; }

.bk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 10px 16px; border: 1px solid transparent; border-radius: 8px; font: 500 15px/20px Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
.bk-btn.is-sm { height: 36px; padding: 8px 14px; font-size: 14px; }
.bk-btn.is-primary { background: #155eef; border-color: #155eef; color: #fff; }
.bk-btn.is-primary:hover:not(:disabled) { background: #004eeb; border-color: #004eeb; }
.bk-btn.is-primary:disabled { background: #84adff; border-color: #84adff; cursor: not-allowed; }
.bk-btn.is-outline { background: #fff; border-color: #d0d5dd; color: #344054; }
.bk-btn.is-outline:hover { background: #f9fafb; }
.bk-iconbtn { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: #667085; cursor: pointer; }
.bk-iconbtn:hover { background: #f2f4f7; color: #344054; }

/* Date & time */
.bk-datebox { display: flex; flex-direction: column; gap: 14px; padding: 16px 12px; border-radius: 8px; background: #f9fafb; }
.bk-datebox > .bk-label { margin-bottom: -6px; }
.bk-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #344054; cursor: pointer; }
.bk-check input { width: 16px; height: 16px; accent-color: #155eef; }
.bk-seg { display: inline-flex; gap: 4px; width: max-content; padding: 4px; border: 1px solid #f2f4f7; border-radius: 8px; background: #fff; }
.bk-seg-btn { height: 36px; padding: 0 14px; border: 0; border-radius: 6px; background: none; font: 500 15px/20px Inter, system-ui, sans-serif; color: #344054; cursor: pointer; }
.bk-seg-btn:hover { background: #f9fafb; }
.bk-seg-btn.is-on { background: #eff4ff; color: #004eeb; }
.bk-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-pill { padding: 4px 9px; border: 1px solid #d0d5dd; border-radius: 9999px; background: #fff; font: 500 14px/20px Inter, system-ui, sans-serif; color: #1d2939; cursor: pointer; }
.bk-pill:hover { border-color: #2970ff; }
.bk-pill.is-on { border-color: #004eeb; background: #eff4ff; color: #004eeb; }
.bk-radios { display: flex; gap: 40px; }
.bk-radio { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #344054; cursor: pointer; }
.bk-radio input { accent-color: #155eef; }
.bk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .bk-grid2 { grid-template-columns: 1fr; } }
.bk-datewrap { position: relative; }
.bk-datebtn { text-align: left; cursor: pointer; }
.bk-recur { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; font-weight: 500; color: #667085; }
.bk-recur .bk-link { font-size: 12px; }

/* popovers */
.bk-pop-anchor { position: relative; }
.bk-pop { position: absolute; z-index: 20; background: #fff; border: 1px solid #eaecf0; border-radius: 8px; box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03); }
.bk-pop[hidden] { display: none; }
.bk-cal { top: calc(100% + 6px); left: 0; width: 300px; padding: 14px; }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bk-cal-title { font-weight: 600; color: #344054; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bk-cal-wd { padding: 6px 0; text-align: center; font-size: 12px; font-weight: 500; color: #667085; }
.bk-cal-day { height: 36px; border: 0; border-radius: 9999px; background: none; font: 500 14px/20px Inter, system-ui, sans-serif; color: #344054; cursor: pointer; }
.bk-cal-day:hover:not(:disabled) { background: #eff4ff; color: #004eeb; }
.bk-cal-day:disabled { color: #d0d5dd; cursor: not-allowed; }
.bk-cal-day.is-today { box-shadow: inset 0 0 0 1px #d0d5dd; }
.bk-cal-day.is-on { background: #155eef; color: #fff; box-shadow: none; }
.bk-cal-note { margin-top: 8px; text-align: center; font-size: 12px; color: #667085; }

/* meeting location */
.bk-loccards { display: flex; gap: 12px; margin-bottom: 4px; }
.bk-loccard { display: flex; align-items: center; gap: 10px; padding: 12px 0; margin-right: 12px; cursor: pointer; }
.bk-loccard input { width: 16px; height: 16px; accent-color: #155eef; flex-shrink: 0; }
.bk-loccard-title { display: block; font-size: 14px; font-weight: 500; color: #344054; }
.bk-loccard-sub { display: block; font-size: 12px; line-height: 18px; color: #475467; }
.bk-field > .bk-select + .bk-input, .bk-field > .bk-sub + .bk-select { margin-top: 0; }
.bk-field > select.bk-input + input.bk-input { margin-top: 12px; }

/* right column */
.bk-contactbox { padding: 12px 12px 14px; border: 1px solid #eaecf0; border-radius: 8px; background: #f9fafb; }
.bk-contactbox.is-error { border-color: #d92d20; }
.bk-contact-head { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; font-size: 15px; font-weight: 500; color: #101828; }
.bk-contact-head .bk-ico { color: #667085; }
.bk-contact-head .bk-req { margin-left: 0; }
.bk-search { position: relative; }
.bk-search-row { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 14px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; color: #667085; }
.bk-search-row:focus-within { border-color: #84adff; box-shadow: 0 0 0 4px #eff4ff; }
.bk-search-row input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 400 15px/20px Inter, system-ui, sans-serif; color: #101828; }
.bk-search-row input::placeholder { color: #667085; }
.bk-results { top: calc(100% + 4px); left: 0; right: 0; display: flex; flex-direction: column; }
.bk-results-list { max-height: 240px; overflow-y: auto; padding: 4px; }
.bk-result { display: flex; align-items: center; gap: 12px; width: 100%; padding: 5px 8px; border: 0; border-radius: 6px; background: none; text-align: left; cursor: pointer; }
.bk-result:hover { background: #f9fafb; }
.bk-result-main { display: flex; flex-direction: column; min-width: 0; }
.bk-result-name { font-size: 14px; font-weight: 500; color: #101828; }
.bk-result-sub { font-size: 12px; color: #475467; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-results-empty { padding: 14px; text-align: center; font-size: 14px; color: #667085; }
.bk-results-empty.is-error { color: #d92d20; }
.bk-result-add { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; border-top: 1px solid #eaecf0; border-radius: 0 0 8px 8px; background: #fff; font: 500 14px/20px Inter, system-ui, sans-serif; color: #101828; cursor: pointer; }
.bk-result-add .bk-ico { color: #667085; }
.bk-result-add:hover { background: #f9fafb; }
.bk-av { display: inline-grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 9999px; background: #155eef; color: #fff; font-size: 12px; font-weight: 600; }
.bk-av.is-grey { background: #f2f4f7; color: #344054; }
.bk-chosen { margin-top: 20px; padding-top: 14px; border-top: 1px solid #eaecf0; }
.bk-sec { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: #101828; }
.bk-sec .bk-ico { color: #667085; }
.bk-person { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.bk-person-main { flex: 1; min-width: 0; }
.bk-person-name { display: block; font-size: 14px; font-weight: 500; line-height: 20px; color: #101828; text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
a.bk-person-name:hover { color: #004eeb; }
.bk-person-sub { margin-top: 2px; font-size: 11px; line-height: 14px; color: #344054; overflow: hidden; text-overflow: ellipsis; }
.bk-addguests { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 0; border-radius: 8px; background: #eff4ff; font: 500 14px/20px Inter, system-ui, sans-serif; color: #004eeb; cursor: pointer; }
.bk-addguests:hover { background: #e0eaff; }
.bk-guests { margin-top: 20px; padding-top: 14px; border-top: 1px solid #eaecf0; }
.bk-guestlist { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.bk-hline { height: 1px; margin: 20px 0; background: #eaecf0; }

/* associated objects */
.bk-linkrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 2px; }
.bk-countchip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border: 1px solid #eaecf0; border-radius: 9999px; background: #fff; font: 500 12px/18px Inter, system-ui, sans-serif; color: #344054; cursor: pointer; }
.bk-countchip:hover { background: #f9fafb; }
.bk-linked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 6px; border-radius: 9999px; background: #f2f4f7; font-size: 13px; color: #344054; }
.bk-chip-av { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 9999px; background: #e0eaff; font-size: 10px; font-weight: 600; color: #004eeb; }
.bk-chipsbox { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #f9fafb; cursor: default; }
.bk-linkpop { top: calc(100% + 6px); right: 0; width: min(560px, calc(100vw - 48px)); display: flex; flex-direction: column; height: 380px; }
.bk-linkpop-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; font-size: 14px; font-weight: 600; color: #101828; }
.bk-linkpop-main { display: flex; flex: 1; min-height: 0; border-top: 1px solid #eaecf0; }
.bk-linkside { width: 196px; flex-shrink: 0; overflow-y: auto; padding: 8px; border-right: 1px solid #eaecf0; background: #f9fafb; }
.bk-linktab { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 0; border-radius: 6px; background: none; font: 500 13px/18px Inter, system-ui, sans-serif; color: #344054; text-align: left; cursor: pointer; }
.bk-linktab:hover { background: #f2f4f7; }
.bk-linktab.is-on { background: #fff; color: #004eeb; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06); }
.bk-linktab-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-linktab-count { font-size: 12px; color: #667085; }
.bk-linkbody { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bk-linksearch { padding: 12px; border-bottom: 1px solid #eaecf0; }
.bk-linksearch .bk-input { min-height: 36px; padding: 7px 12px; font-size: 14px; }
.bk-linklist { flex: 1; overflow-y: auto; padding: 12px; }
.bk-linkgroup { margin: 8px 0 4px; font-size: 12px; font-weight: 500; color: #667085; }
.bk-linkgroup:first-child { margin-top: 0; }
.bk-linkitem { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 6px; font-size: 14px; color: #101828; cursor: pointer; }
.bk-linkitem:hover { background: #f9fafb; }
.bk-linkitem input { width: 16px; height: 16px; accent-color: #155eef; }
.bk-linkitem-main { display: flex; flex-direction: column; min-width: 0; }
.bk-linkpop-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid #eaecf0; }

/* blocked off time */
.bk-vacation { margin: 0 0 16px; font-size: 14px; line-height: 20px; color: #344054; }

/* footer */
.bk-foot { display: flex; align-items: center; gap: 12px; margin: 0 24px; padding: 16px 0 20px; border-top: 1px solid #eaecf0; }
.bk-grow { flex: 1; }
.bk-status { display: flex; align-items: center; gap: 16px; }
.bk-status-label { font-weight: 500; color: #344054; }
.bk-statusbtn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; font: 400 15px/20px Inter, system-ui, sans-serif; color: #101828; cursor: pointer; }
.bk-statusbtn .bk-ico:first-child { color: #344054; }
.bk-statusbtn .bk-ico:last-child { margin-left: 8px; color: #344054; }
.bk-statusmenu { bottom: calc(100% + 6px); left: 0; min-width: 200px; padding: 4px; }
.bk-statusitem { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: none; font: 400 14px/20px Inter, system-ui, sans-serif; color: #101828; text-align: left; cursor: pointer; }
.bk-statusitem:hover { background: #f9fafb; }
.bk-statusitem.is-on { color: #004eeb; }
.bk-statusitem span { flex: 1; }
@media (max-width: 560px) { .bk-foot { flex-wrap: wrap; } .bk-status { width: 100%; } }

.bk-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid #d0d5dd; border-top-color: #155eef; border-radius: 9999px; animation: bk-spin 0.7s linear infinite; flex-shrink: 0; }
.bk-spin[hidden] { display: none; }
.bk-spin.is-light { border-color: rgba(255, 255, 255, 0.4); border-top-color: #fff; }
@keyframes bk-spin { to { transform: rotate(360deg); } }
.bk-submodal .bk-foot { justify-content: flex-end; }

/* Calendar view with no calendar: GHL's EmptyState (CalendarPage), which
   stands in for the toolbar and the grid — "w-full flex flex-col
   items-center space-y-5 py-48", a 128px picture, text-xl semibold. */
.calv-empty { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 12vh 16px; text-align: center; }
.calv-empty-text p { margin: 0; font-size: 20px; font-weight: 600; line-height: 30px; color: #101828; }
.calv-empty-btn { height: 40px; padding: 10px 16px; border: 1px solid #155eef; border-radius: 8px; background: #155eef; color: #fff; font: 500 14px/20px Inter, system-ui, sans-serif; cursor: pointer; }
.calv-empty-btn:hover { background: #004eeb; border-color: #004eeb; }
