/* Approved calendar composition, isolated from the other workspace pages. */
.office-calendar {
  --green: #215ee8;
  --muted: #657085;
  --border: #edf0f5;
  background: #fff;
  color: #172131;
  font-family: Arial, sans-serif;
  font-size: 14px;
}
.office-calendar .schedule-main {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
}
.office-calendar .calendar-top {
  height: auto;
  min-height: 76px;
  padding: 18px 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.calendar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.calendar-mark {
  color: #215ee8;
  font-size: 25px;
  line-height: 1;
}
.office-calendar header nav {
  gap: 8px;
}
.office-calendar header nav a {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
}
.office-calendar header nav a[aria-current] {
  background: #edf3ff;
  color: #234779;
  border-color: transparent;
}
.office-calendar .schedule-heading {
  padding: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.office-calendar .schedule-heading h1 {
  font-size: 24px;
  letter-spacing: 0;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}
.office-calendar #view-options {
  padding: 0;
  margin-top: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}
.office-calendar #company:empty + span,
.office-calendar #range-title:empty + .date-separator {
  display: none;
}
.calendar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.office-calendar button,
.office-calendar .primary-link,
.office-calendar .secondary-link {
  padding: 10px 14px;
  border-radius: 9px;
  font-weight: 400;
  font-size: 14px;
}
.office-calendar button:hover,
.office-calendar a.primary-link:hover,
.office-calendar a.secondary-link:hover {
  filter: brightness(0.96);
}
.office-calendar .secondary,
.office-calendar .secondary-link {
  background: white;
  color: #172131;
  border: 1px solid var(--border);
}
.office-calendar :is(button, a, input, select, summary):focus-visible {
  outline: 3px solid #215ee8;
  outline-offset: 3px;
}
.calendar-options {
  margin: 0 24px 24px;
  background: #f7f9fc;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
}
.office-calendar .schedule-toolbar {
  margin: 0;
  border: 0;
  padding: 0;
}
.office-calendar .schedule-toolbar label {
  font-weight: 400;
  font-size: 12px;
  min-width: 135px;
}
.office-calendar .schedule-toolbar input,
.office-calendar .schedule-toolbar select {
  padding: 9px;
  color: inherit;
  font-size: 14px;
}
.calendar-option-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}
.calendar-option-links a {
  color: #215ee8;
}
.office-calendar .cancelled-toggle {
  margin: 12px 0 0;
}
.office-calendar #pilot {
  margin: 12px 0 0;
}
.office-calendar #limits {
  margin: 0 24px 16px;
}
.office-calendar #status {
  min-height: 49px;
  margin: 0;
  padding: 16px 24px;
  font-size: 14px;
  color: var(--muted);
}
.office-calendar #sign-in {
  display: inline-block;
  margin: 0 24px 24px;
  color: #215ee8;
}
.schedule-timeline {
  display: flex;
  overflow: auto;
  margin: 0 24px;
  min-height: 350px;
  max-height: calc(100vh - 220px);
  background: #fff;
  isolation: isolate;
}
.timeline-axis {
  width: 56px;
  flex: 0 0 56px;
  position: sticky;
  left: 0;
  z-index: 3;
  background: white;
}
.timeline-corner,
.timeline-person {
  height: 57px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: white;
  position: sticky;
  top: 0;
  z-index: 2;
}
.timeline-person {
  border-bottom: 1px solid var(--border);
}
.timeline-ticks,
.timeline-track {
  position: relative;
}
.timeline-tick {
  position: absolute;
  left: 0;
  padding-top: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.timeline-tick small {
  display: block;
  font-size: 10px;
}
.schedule-column.timeline-column {
  flex: 1 0 220px;
  min-width: 220px;
  background: white;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.timeline-track {
  border-left: 1px solid var(--border);
}
.timeline-person h3 {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}
.resource-avatar {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f7f9fc;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}
.timeline-slot {
  border: 0;
}
.timeline-slot.hour-start {
  border-top: 1px solid var(--border);
}
.timeline-slot:hover {
  background: #f7f9fc;
}
.timeline-card.appointment-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-start;
  padding: 8px;
  border: 0;
  border-left: 3px solid #215ee8;
  border-radius: 7px;
  background: #edf3ff;
  color: #234779;
  box-shadow: none;
  font-weight: 400;
  font-size: 14px;
}
.timeline-card.appointment-card:hover {
  background: #e5edfc;
  box-shadow: none;
  z-index: 1;
}
.timeline-card .card-creator {
  border: 0;
  padding: 0;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  font-weight: 500;
  white-space: nowrap;
}
.timeline-card .card-main {
  line-height: 1.4;
}
.timeline-card .card-main strong,
.timeline-card .card-time {
  font-weight: 400;
  font-size: 14px;
}
.timeline-card .card-service {
  font-size: 14px;
  line-height: 1.4;
}
.timeline-card .card-resource {
  display: none;
}
.timeline-card .card-status {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #176647;
  font-size: 13px;
}
.timeline-card .card-status[data-state="scheduled"] {
  display: none;
}
.timeline-card.is-compact {
  gap: 2px;
  padding: 4px 8px;
}
.timeline-card.is-compact .card-service,
.timeline-card.is-compact .card-continuation {
  display: none;
}
.timeline-card.is-short .card-creator {
  font-size: 10px;
}
.timeline-card.is-short .card-main strong,
.timeline-card.is-short .card-time {
  font-size: 11px;
}
.timeline-card.is-short .card-status {
  display: none;
}
.timeline-card.is-cancelled {
  background: #f2f4f7;
  border-left-color: #8a96a8;
}
.office-calendar .schedule-column.drop-target {
  outline-color: #215ee8;
  background: #f7f9fc;
}
.office-calendar .schedule-board,
.office-calendar .schedule-agenda {
  margin: 0 24px;
}
.office-calendar .booking-details {
  position: fixed;
  inset: 0 0 0 auto;
  width: 380px;
  max-width: 100%;
  padding: 24px;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  color: #172131;
  box-shadow: -12px 0 30px #16213712;
  z-index: 5;
  overflow-y: auto;
}
.office-calendar .detail-heading {
  margin-bottom: 24px;
}
.office-calendar .detail-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
}
.office-calendar #detail-status:empty {
  display: none;
}
.customer-profile-link {
  display: inline-flex;
  color: #215ee8;
  font-size: 19px;
  font-weight: 400;
  padding: 0;
  overflow-wrap: anywhere;
}
.detail-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.detail-label {
  color: var(--muted);
  margin-bottom: 7px;
  font-weight: 400;
}
.office-calendar .booking-details .detail-label {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 7px;
}
.detail-row p {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.office-calendar .booking-details .detail-link {
  display: inline-flex;
  color: #215ee8;
  padding: 12px 0;
  font-size: 14px;
  text-decoration: none;
}
.office-calendar .booking-details .actions {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.office-calendar .booking-details .actions .detail-link {
  color: var(--muted);
}
.booking-metadata {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}
.booking-metadata summary {
  cursor: pointer;
}
.office-calendar .booking-details dl {
  border: 0;
  margin: 12px 0;
  padding: 0;
}
.office-calendar .booking-details h3 {
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0;
}
.office-calendar .calendar-customer .location-card h3,
.office-calendar .calendar-customer .call-entry h3 {
  font-size: 15px;
  margin: 12px 0 6px;
}
.calendar-customer .location-card,
.calendar-customer .call-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.calendar-customer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.calendar-customer .map-link {
  color: #215ee8;
  display: inline-block;
  padding: 10px 0;
}
.office-calendar .calendar-customer dd {
  margin: 5px 0;
}
.office-calendar .job-correction h3 {
  font-size: 15px;
}
@media (max-width: 600px) {
  .office-calendar .calendar-top,
  .office-calendar .schedule-heading {
    padding: 16px;
  }
  .office-calendar .calendar-top {
    gap: 12px;
  }
  .office-calendar header nav {
    font-size: 13px;
  }
  .office-calendar .schedule-heading h1 {
    font-size: 22px;
  }
  .calendar-options {
    margin: 0 16px 16px;
  }
  .schedule-timeline {
    margin: 0 16px;
    max-height: none;
    display: block;
  }
  .timeline-axis {
    display: none;
  }
  .schedule-column.timeline-column {
    min-width: 0;
    width: 100%;
    margin-bottom: 20px;
  }
  .timeline-person {
    border-top: 1px solid var(--border);
    position: static;
  }
  .office-calendar .booking-details {
    inset: 0;
    width: 100%;
    max-width: 100%;
  }
  .office-calendar button,
  .office-calendar .primary-link,
  .office-calendar .secondary-link {
    min-height: 44px;
  }
  .office-calendar .timeline-card.appointment-card {
    min-height: 0;
  }
  .office-calendar #status {
    padding: 16px;
  }
}
.calendar-mark {
  display: flex;
  align-items: center;
}
.calendar-mark svg {
  width: 24px;
  height: 24px;
}
.card-creator {
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-creator svg {
  width: 14px;
  height: 14px;
  flex: none;
}
