/* Appointment schedule and detail */

.dolo-schedule,
.dolo-appointment,
.dolo-appointment-form-page {
  min-width: 0;
  color: var(--dolo-text);
  font-family: var(--dolo-font-body);
}

.dolo-appointment,
.dolo-appointment-form-page {
  width: min(100%, 76rem);
  margin-inline: auto;
}

.dolo-schedule__header,
.dolo-appointment-form-page > header {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dolo-schedule__header .dolo-type-body,
.dolo-appointment-form-page > header .dolo-type-body {
  max-width: 44rem;
  margin-top: 0.45rem;
}

.dolo-schedule__header-actions,
.dolo-appointment__hero-actions,
.dolo-appointment__document-actions,
.dolo-appointment__contact-actions,
.dolo-appointment-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.dolo-schedule__header-actions .dolo-button,
.dolo-appointment__hero-actions .dolo-button {
  flex: 1 1 auto;
}

.dolo-scheduling-toolbar {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.dolo-scheduling-toolbar__sections {
  flex: 1 1 100%;
}

.dolo-scheduling-toolbar__sections .dolo-segmented-control__item {
  line-height: 1.15;
  white-space: normal;
}

.dolo-schedule__view-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.dolo-schedule__view-label {
  color: var(--dolo-text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dolo-schedule .dolo-scheduling-toolbar {
  margin-bottom: 0.875rem;
}

.dolo-schedule__attention-banner,
.dolo-schedule__request-banner {
  margin-bottom: 0.875rem;
}

.dolo-schedule__toolbar {
  display: grid;
  gap: 0.875rem;
  border-bottom: 1px solid var(--dolo-border);
  background: var(--dolo-surface-subtle);
  padding: 0.75rem 1rem;
  box-shadow: none;
}

.dolo-schedule__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.dolo-schedule__search .dolo-control {
  min-width: 0;
}

.dolo-schedule__search > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.dolo-schedule__agenda,
.dolo-calendar {
  overflow: hidden;
}

.dolo-schedule__agenda-header,
.dolo-schedule-week__header,
.dolo-calendar__header {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  border-bottom: 1px solid var(--dolo-border);
  padding: 1rem;
}

.dolo-schedule__agenda-header .dolo-type-body-small,
.dolo-schedule-week__header .dolo-type-body-small,
.dolo-calendar__header .dolo-type-body-small {
  max-width: 42rem;
  margin-top: 0.25rem;
}

.dolo-schedule-week__actions {
  display: flex;
  gap: 0.5rem;
}

.dolo-schedule-week__days {
  display: grid;
  grid-auto-columns: minmax(3.25rem, 1fr);
  grid-auto-flow: column;
  gap: 0.375rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--dolo-border);
  padding: 0.75rem 1rem;
  scrollbar-width: none;
}

.dolo-schedule-week__days::-webkit-scrollbar {
  display: none;
}

.dolo-schedule-week__day {
  position: relative;
  display: grid;
  min-width: 3.25rem;
  min-height: 4.75rem;
  place-items: center;
  align-content: center;
  gap: 0.1rem;
  border: 1px solid var(--dolo-border);
  border-radius: 0.75rem;
  background: var(--dolo-surface-subtle);
  color: var(--dolo-text-muted);
  line-height: 1;
  text-decoration: none;
}

.dolo-schedule-week__day:hover {
  border-color: var(--dolo-border);
  background: var(--dolo-surface-subtle);
  color: var(--dolo-text);
}

.dolo-schedule-week__day[aria-current="date"] {
  border-color: var(--dolo-brand-border);
  background: var(--dolo-brand-soft);
  color: var(--dolo-action-quiet);
}

.dolo-schedule-week__day[data-attention="overdue"] {
  border-color: var(--dolo-status-warning-border);
}

.dolo-schedule-week__day span {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dolo-schedule-week__day strong {
  color: currentColor;
  font-family: var(--dolo-font-display);
  font-size: 1rem;
}

.dolo-schedule-week__day small {
  position: absolute;
  bottom: 0.35rem;
  left: 50%;
  display: inline-grid;
  min-width: 1.25rem;
  min-height: 1.25rem;
  place-items: center;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--dolo-surface-sunken);
  color: var(--dolo-text-soft);
  font-size: 0.6rem;
  font-weight: 800;
}

.dolo-schedule-week__day[aria-current="date"] small {
  background: var(--dolo-surface);
  color: var(--dolo-action-quiet);
}

.dolo-schedule-week__day[data-attention="overdue"] small {
  background: var(--dolo-status-warning-background);
  color: var(--dolo-status-warning);
}

.dolo-schedule__text-link,
.dolo-appointment__text-link,
.dolo-appointment__linked-copy a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  border-radius: 0.4rem;
  color: var(--dolo-action-quiet);
  font-size: 0.75rem;
  font-weight: 800;
  text-underline-offset: 0.2em;
}

.dolo-schedule__groups {
  min-width: 0;
}

.dolo-schedule__day + .dolo-schedule__day,
.dolo-schedule__history {
  border-top: 1px solid var(--dolo-border);
}

.dolo-schedule__day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--dolo-surface-subtle);
  padding: 0.65rem 1rem;
}

.dolo-schedule__day-header h3 {
  margin: 0;
  color: var(--dolo-text-soft);
  font-size: 0.75rem;
  font-weight: 800;
}

.dolo-schedule__day-header span {
  color: var(--dolo-text-muted);
  font-size: 0.68rem;
}

.dolo-schedule__rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dolo-schedule-row + .dolo-schedule-row {
  border-top: 1px solid var(--dolo-divider);
}

.dolo-schedule-row > a {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0.75rem;
  min-width: 0;
  min-height: 5.75rem;
  align-items: center;
  padding: 0.875rem 1rem;
  color: inherit;
  text-decoration: none;
}

.dolo-schedule-row > a::before {
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  left: 0;
  width: 0.1875rem;
  border-radius: 999px;
  background: var(--dolo-border-strong);
  content: "";
}

.dolo-schedule-row[data-status="requested"] > a::before {
  background: var(--dolo-info);
}

.dolo-schedule-row[data-status="confirmed"] > a::before {
  background: var(--dolo-brand-border);
}

.dolo-schedule-row[data-status="completed"] > a::before {
  background: var(--dolo-success);
}

.dolo-schedule-row[data-attention="overdue"] > a {
  background:
    linear-gradient(90deg, var(--dolo-status-warning-background), transparent 12rem),
    var(--dolo-surface);
}

.dolo-schedule-row[data-attention="overdue"] > a::before {
  background: var(--dolo-status-warning);
}

.dolo-schedule-row[data-status="canceled"] {
  opacity: 0.78;
}

.dolo-schedule-row > a:hover {
  background: var(--dolo-surface-subtle);
}

.dolo-schedule-row[data-next-up="true"] > a {
  background:
    linear-gradient(90deg, var(--dolo-brand-soft), transparent 12rem),
    var(--dolo-surface);
}

.dolo-schedule-row__time {
  display: grid;
  align-content: center;
  justify-items: center;
  color: var(--dolo-text-muted);
  font-size: 0.62rem;
  line-height: 1.15;
  text-align: center;
}

.dolo-schedule-row__time strong {
  color: var(--dolo-text);
  font-family: var(--dolo-font-display);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.dolo-schedule-row__time span {
  margin-top: 0.05rem;
  font-weight: 800;
}

.dolo-schedule-row__time small {
  margin-top: 0.3rem;
}

.dolo-schedule-row__content,
.dolo-schedule-row__documents {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.dolo-schedule-row__title {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.dolo-schedule-row__title > strong {
  overflow: hidden;
  color: var(--dolo-text);
  font-size: 0.82rem;
  text-overflow: ellipsis;
}

.dolo-schedule-row__next {
  border-radius: 999px;
  background: var(--dolo-brand-soft);
  padding: 0.22rem 0.42rem;
  color: var(--dolo-action-quiet);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dolo-schedule-row__customer {
  overflow: hidden;
  color: var(--dolo-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dolo-schedule-row__context,
.dolo-schedule-row__documents {
  overflow: hidden;
  color: var(--dolo-text-muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dolo-schedule-row__documents {
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.dolo-schedule-row__documents strong,
.dolo-schedule-row__documents small,
.dolo-schedule-row__documents > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dolo-schedule-row__documents small {
  grid-row: 2;
}

.dolo-schedule-row__documents .dolo-icon {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.dolo-schedule__history > summary {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--dolo-text-soft);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.dolo-schedule__history > summary span {
  color: var(--dolo-text-muted);
  font-size: 0.68rem;
  font-weight: 650;
}

.dolo-schedule__empty {
  padding: clamp(2rem, 8vw, 4.5rem) 1rem;
}

.dolo-calendar__actions {
  display: flex;
  gap: 0.5rem;
}

.dolo-calendar__desktop {
  display: none;
}

.dolo-calendar__mobile .dolo-schedule__day + .dolo-schedule__day {
  border-top: 1px solid var(--dolo-border);
}

.dolo-appointment > .dolo-breadcrumbs {
  margin-bottom: 0.5rem;
}

.dolo-appointment__hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dolo-appointment__identity {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.875rem;
}

.dolo-appointment__date {
  display: grid;
  width: 3.5rem;
  height: 3.8rem;
  flex: 0 0 auto;
  place-items: center;
  align-content: center;
  border: 1px solid var(--dolo-border);
  border-radius: 1rem;
  background: var(--dolo-surface);
  box-shadow: var(--dolo-shadow-low);
  line-height: 1;
}

.dolo-appointment__date span {
  color: var(--dolo-action-quiet);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dolo-appointment__date strong {
  margin-top: 0.2rem;
  color: var(--dolo-text);
  font-family: var(--dolo-font-display);
  font-size: 1.4rem;
}

.dolo-appointment__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  margin-bottom: 0.35rem;
  color: var(--dolo-text-muted);
  font-size: 0.68rem;
}

.dolo-appointment__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  margin: 0.45rem 0 0;
  color: var(--dolo-text-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.dolo-appointment__meta strong {
  color: var(--dolo-text-soft);
}

.dolo-appointment__attention {
  margin-bottom: 1rem;
}

.dolo-appointment__layout,
.dolo-appointment__main,
.dolo-appointment__rail {
  display: grid;
  min-width: 0;
  gap: 0.875rem;
}

.dolo-appointment__card {
  min-width: 0;
  padding: 1rem;
}

.dolo-appointment__card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.dolo-appointment__card-heading .dolo-type-label {
  margin-bottom: 0.25rem;
}

.dolo-appointment__card-heading .dolo-type-body-small {
  margin-top: 0.3rem;
}

.dolo-appointment__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--dolo-border);
  border-radius: 0.9rem;
  background: var(--dolo-surface-subtle);
}

.dolo-appointment__facts > div {
  min-width: 0;
  padding: 0.75rem;
}

.dolo-appointment__facts > div:nth-child(even) {
  border-left: 1px solid var(--dolo-border);
}

.dolo-appointment__facts > div:nth-child(n + 3) {
  border-top: 1px solid var(--dolo-border);
}

.dolo-appointment__facts > .dolo-appointment__fact-wide {
  grid-column: 1 / -1;
  border-left: 0;
}

.dolo-appointment__facts dt {
  color: var(--dolo-text-muted);
  font-size: 0.62rem;
  font-weight: 750;
}

.dolo-appointment__facts dd {
  margin: 0.25rem 0 0;
  overflow-wrap: anywhere;
  color: var(--dolo-text);
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.45;
}

.dolo-appointment__notes {
  margin-top: 1rem;
  border-top: 1px solid var(--dolo-border);
  padding-top: 1rem;
}

.dolo-appointment__notes h3 {
  margin: 0;
  color: var(--dolo-text-soft);
  font-size: 0.72rem;
}

.dolo-appointment__notes p {
  margin: 0.4rem 0 0;
  color: var(--dolo-text-muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.dolo-appointment__reschedule {
  overflow: hidden;
}

.dolo-appointment__reschedule > summary {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  cursor: pointer;
  list-style: none;
}

.dolo-appointment__reschedule > summary::-webkit-details-marker {
  display: none;
}

.dolo-appointment__reschedule > summary span {
  display: grid;
  gap: 0.2rem;
}

.dolo-appointment__reschedule > summary strong {
  color: var(--dolo-text);
  font-size: 0.78rem;
}

.dolo-appointment__reschedule > summary small {
  color: var(--dolo-text-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.dolo-appointment__reschedule[open] > summary {
  border-bottom: 1px solid var(--dolo-border);
}

.dolo-appointment__reschedule[open] > summary .dolo-icon {
  transform: rotate(180deg);
}

.dolo-appointment__reschedule-body {
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.dolo-appointment__reschedule-form {
  display: grid;
  gap: 0.875rem;
}

.dolo-appointment__reschedule-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.625rem;
}

.dolo-appointment__document,
.dolo-appointment__document-choices article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--dolo-border);
  border-radius: 0.9rem;
  background: var(--dolo-surface-subtle);
  padding: 0.875rem;
}

.dolo-appointment__document > span:nth-child(2),
.dolo-appointment__document-choices article > div {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.dolo-appointment__document strong,
.dolo-appointment__document-choices strong {
  color: var(--dolo-text);
  font-size: 0.78rem;
}

.dolo-appointment__document small,
.dolo-appointment__document-choices p,
.dolo-appointment__linked-copy {
  margin: 0;
  color: var(--dolo-text-muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.dolo-appointment__document .dolo-button,
.dolo-appointment__document-actions,
.dolo-appointment__document-choices form {
  grid-column: 1 / -1;
}

.dolo-appointment__document-icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--dolo-info-soft);
  color: var(--dolo-info);
}

.dolo-appointment__linked-copy {
  margin-top: 0.75rem;
}

.dolo-appointment__document-choices {
  display: grid;
  gap: 0.75rem;
}

.dolo-appointment__contact {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
}

.dolo-appointment__avatar {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--dolo-brand-soft);
  color: var(--dolo-action-quiet);
  font-family: var(--dolo-font-display);
  font-size: 0.8rem;
  font-weight: 800;
}

.dolo-appointment__contact > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.dolo-appointment__contact strong {
  overflow-wrap: anywhere;
  color: var(--dolo-text);
  font-size: 0.75rem;
}

.dolo-appointment__contact small {
  color: var(--dolo-text-muted);
  font-size: 0.68rem;
  line-height: 1.45;
}

.dolo-appointment__contact-details {
  display: grid;
  margin: 0.875rem 0 0;
  border-block: 1px solid var(--dolo-border);
}

.dolo-appointment__contact-detail {
  display: grid;
  grid-template-columns: minmax(4.25rem, 0.32fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  padding-block: 0.625rem;
}

.dolo-appointment__contact-detail + .dolo-appointment__contact-detail {
  border-top: 1px solid var(--dolo-border);
}

.dolo-appointment__contact-detail dt {
  color: var(--dolo-text-muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.dolo-appointment__contact-detail dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--dolo-text);
  font-size: 0.75rem;
  font-weight: 700;
}

.dolo-appointment__contact-detail dd > small {
  display: block;
  margin-top: -0.25rem;
  color: var(--dolo-text-muted);
  font-size: 0.64rem;
  font-weight: 600;
}

.dolo-appointment__contact-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--dolo-action-quiet);
  text-decoration-line: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.dolo-appointment__contact-link:hover {
  text-decoration-thickness: 0.12em;
}

.dolo-appointment__contact-link:focus-visible {
  border-radius: 0.25rem;
  outline: 2px solid var(--dolo-focus);
  outline-offset: 2px;
}

.dolo-appointment__contact-empty {
  margin: 0.875rem 0 0;
  border-block: 1px solid var(--dolo-border);
  padding-block: 0.75rem;
  color: var(--dolo-text-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.dolo-appointment__contact-actions {
  margin-top: 0.875rem;
}

.dolo-appointment__contact-actions .dolo-button {
  flex: 1 1 7rem;
}

.dolo-appointment__contact + form {
  margin-top: 0.875rem;
}

.dolo-appointment__project-form {
  display: grid;
  gap: 0.75rem;
}

.dolo-appointment__danger {
  border: 1px solid var(--dolo-danger-border);
  border-radius: var(--dolo-radius-card);
  background: var(--dolo-surface);
  padding: 1rem;
}

.dolo-appointment__danger h2 {
  margin: 0;
  color: var(--dolo-text);
  font-family: var(--dolo-font-display);
  font-size: 0.88rem;
}

.dolo-appointment__danger p {
  margin: 0.4rem 0 0.875rem;
  color: var(--dolo-text-muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.dolo-appointment-form-page {
  max-width: 58rem;
}

.dolo-appointment-form {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1rem, 4vw, 1.5rem);
}

.dolo-appointment-form__section-heading {
  margin-bottom: 0.875rem;
}

.dolo-appointment-form__section-heading .dolo-type-label {
  margin-bottom: 0.25rem;
}

.dolo-appointment-form__section-heading .dolo-type-body-small {
  margin-top: 0.3rem;
}

.dolo-appointment-form__grid {
  display: grid;
  align-items: start;
  gap: 0.875rem;
}

.dolo-appointment-form__contact-default {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--dolo-border);
  border-radius: var(--dolo-radius-control);
  background: var(--dolo-surface-subtle);
  padding: 0.75rem;
}

.dolo-appointment-form__contact-default > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.125rem;
}

.dolo-appointment-form__contact-default strong,
.dolo-appointment-form__contact-default small {
  overflow-wrap: anywhere;
}

.dolo-appointment-form__contact-default strong {
  color: var(--dolo-text);
  font-size: 0.75rem;
  line-height: 1.35;
}

.dolo-appointment-form__contact-default small {
  color: var(--dolo-text-muted);
  font-size: 0.6875rem;
  line-height: 1.45;
}

.dolo-appointment-form__contact-icon {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--dolo-brand-soft);
  color: var(--dolo-action-quiet);
  font-size: 1.125rem;
}

.dolo-appointment-form__contact-details {
  margin-top: 0.75rem;
  overflow: clip;
  border: 1px solid var(--dolo-border);
  border-radius: var(--dolo-radius-control);
  background: var(--dolo-surface);
}

.dolo-appointment-form__contact-details > summary {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6875rem 0.75rem;
  color: var(--dolo-action-quiet);
  list-style: none;
  cursor: pointer;
}

.dolo-appointment-form__contact-details > summary::-webkit-details-marker {
  display: none;
}

.dolo-appointment-form__contact-details > summary > span {
  display: grid;
  gap: 0.125rem;
}

.dolo-appointment-form__contact-details > summary strong {
  font-size: 0.75rem;
  line-height: 1.35;
}

.dolo-appointment-form__contact-details > summary small {
  color: var(--dolo-text-muted);
  font-size: 0.6875rem;
  line-height: 1.45;
}

.dolo-appointment-form__contact-details > summary > .dolo-icon {
  transition: transform var(--dolo-motion);
}

.dolo-appointment-form__contact-details[open] > summary > .dolo-icon {
  transform: rotate(180deg);
}

.dolo-appointment-form__contact-body {
  display: grid;
  gap: 0.875rem;
  border-top: 1px solid var(--dolo-border);
  padding: 0.875rem 0.75rem;
}

.dolo-appointment-form__contact-body > .dolo-button {
  justify-self: start;
}

.dolo-appointment-form__actions {
  display: grid;
  border-top: 1px solid var(--dolo-border);
  padding-top: 1rem;
}

.dolo-appointment-form__actions .dolo-button {
  width: 100%;
}

.dolo-appointment-form__back {
  justify-content: center;
}

.dolo-schedule-week__day:focus-visible,
.dolo-schedule-row > a:focus-visible,
.dolo-schedule__history > summary:focus-visible,
.dolo-appointment__text-link:focus-visible,
.dolo-appointment__reschedule > summary:focus-visible,
.dolo-appointment-form__contact-details > summary:focus-visible {
  outline: 3px solid var(--dolo-focus);
  outline-offset: 2px;
}

@media (max-width: 41.999rem) {
  body:not(.native-app) .dolo-schedule {
    position: relative;
  }

  .dolo-schedule__header {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  body:not(.native-app) .dolo-schedule__header > div:first-child {
    min-height: 2.75rem;
    padding-inline-end: 6.25rem;
  }

  body:not(.native-app) .dolo-schedule__view-switcher {
    position: absolute;
    z-index: 1;
    inset-block-start: 0;
    inset-inline-end: 0;
  }

  body:not(.native-app) .dolo-schedule__view-label {
    display: none;
  }

  .dolo-schedule__header .dolo-type-label,
  .dolo-schedule__header .dolo-type-body {
    display: none;
  }

  .dolo-schedule__header .dolo-type-page-title {
    font-size: 1.5rem;
  }

  .dolo-schedule__attention-banner,
  .dolo-schedule__request-banner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.625rem;
    align-items: center;
    margin-bottom: 0.75rem;
    border-radius: 0.875rem;
    padding: 0.75rem;
  }

  .dolo-schedule__attention-banner .dolo-attention-banner__body,
  .dolo-schedule__request-banner .dolo-attention-banner__body {
    display: none;
  }

  .dolo-schedule__attention-banner .dolo-attention-banner__content,
  .dolo-schedule__request-banner .dolo-attention-banner__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.625rem;
    align-items: center;
  }

  .dolo-schedule__attention-banner .dolo-attention-banner__action,
  .dolo-schedule__request-banner .dolo-attention-banner__action {
    margin-top: 0;
  }

  .dolo-schedule__attention-banner .dolo-button,
  .dolo-schedule__request-banner .dolo-button {
    min-height: 2.75rem;
    padding-inline: 0.75rem;
  }

  .dolo-schedule-week__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.875rem 0.75rem;
  }

  .dolo-schedule-week__header .dolo-type-section-title {
    font-size: 1.125rem;
  }

  .dolo-schedule-week__header .dolo-type-body-small {
    display: none;
  }

  .dolo-schedule-week__days {
    grid-auto-flow: initial;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
    overflow-x: visible;
    padding: 0.625rem 0.75rem;
  }

  .dolo-schedule-week__day {
    min-width: 0;
    min-height: 4.5rem;
    border-radius: 0.625rem;
  }

  .dolo-schedule-week__day span {
    font-size: 0.55rem;
  }

  .dolo-schedule-week__day strong {
    font-size: 0.9rem;
  }

  .dolo-schedule__toolbar {
    gap: 0.625rem;
    padding: 0.75rem;
  }

  .dolo-schedule__empty {
    padding: 1.75rem 1rem 2rem;
  }
}

@media (min-width: 42rem) {
  .dolo-schedule__header,
  .dolo-appointment__hero,
  .dolo-appointment-form-page > header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .dolo-appointment-form-page > header {
    grid-template-columns: minmax(0, 1fr);
  }

  .dolo-schedule__header-actions .dolo-button,
  .dolo-appointment__hero-actions .dolo-button {
    flex: 0 0 auto;
  }

  .dolo-schedule__toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
    align-items: center;
  }

  .dolo-schedule-week__days {
    grid-auto-flow: initial;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow-x: visible;
  }

  .dolo-schedule-row > a {
    grid-template-columns: 3.5rem minmax(0, 1fr) minmax(9rem, auto);
    min-height: 5.5rem;
  }

  .dolo-schedule-row__documents {
    grid-column: auto;
    justify-items: end;
    text-align: right;
  }

  .dolo-appointment__card {
    padding: 1.25rem;
  }

  .dolo-appointment__reschedule-form,
  .dolo-appointment-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dolo-appointment__reschedule-actions,
  .dolo-appointment-form__wide {
    grid-column: 1 / -1;
  }

  .dolo-appointment-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .dolo-appointment-form__actions .dolo-button {
    width: auto;
  }

  .dolo-appointment__document {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .dolo-appointment__document > .dolo-button,
  .dolo-appointment__document-actions {
    grid-column: auto;
  }

  .dolo-appointment__document-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 42rem) {
  .dolo-scheduling-toolbar__sections {
    flex: 0 1 32rem;
  }
}

@media (min-width: 64rem) {
  .dolo-calendar__mobile {
    display: none;
  }

  .dolo-calendar__desktop {
    display: block;
    min-width: 0;
  }

  .dolo-calendar__weekdays,
  .dolo-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .dolo-calendar__weekdays {
    border-bottom: 1px solid var(--dolo-border);
    background: var(--dolo-surface-subtle);
  }

  .dolo-calendar__weekdays span {
    padding: 0.6rem;
    color: var(--dolo-text-muted);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .dolo-calendar__day {
    min-width: 0;
    min-height: 8.75rem;
    border-right: 1px solid var(--dolo-divider);
    border-bottom: 1px solid var(--dolo-divider);
    background: var(--dolo-surface);
    padding: 0.5rem;
  }

  .dolo-calendar__day[data-current-month="false"] {
    background: var(--dolo-surface-subtle);
    opacity: 0.65;
  }

  .dolo-calendar__day > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--dolo-text-muted);
    font-size: 0.62rem;
  }

  .dolo-calendar__date-link {
    color: inherit;
    text-decoration: none;
  }

  .dolo-calendar__day time {
    display: inline-grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border-radius: 999px;
    color: var(--dolo-text-soft);
    font-weight: 800;
  }

  .dolo-calendar__day[data-today="true"] time {
    background: var(--dolo-brand);
    color: var(--dolo-brand-text);
  }

  .dolo-calendar__appointments {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.35rem;
  }

  .dolo-calendar__appointments a {
    display: grid;
    min-width: 0;
    gap: 0.05rem;
    border-left: 0.16rem solid var(--dolo-brand-border);
    border-radius: 0.4rem;
    background: var(--dolo-brand-soft);
    padding: 0.35rem 0.4rem;
    color: var(--dolo-text-soft);
    font-size: 0.58rem;
    text-decoration: none;
  }

  .dolo-calendar__appointments a[data-status="requested"] {
    border-left-color: var(--dolo-info);
    background: var(--dolo-info-soft);
  }

  .dolo-calendar__appointments a[data-status="completed"] {
    border-left-color: var(--dolo-success);
    background: var(--dolo-success-soft);
  }

  .dolo-calendar__appointments a[data-status="canceled"] {
    border-left-color: var(--dolo-border-strong);
    background: var(--dolo-surface-sunken);
  }

  .dolo-calendar__appointments a[data-attention="overdue"] {
    border-left-color: var(--dolo-status-warning);
    background: var(--dolo-status-warning-background);
  }

  .dolo-calendar__appointments strong,
  .dolo-calendar__appointments span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dolo-calendar__appointments small {
    color: var(--dolo-text-muted);
    font-size: 0.58rem;
  }

  .dolo-appointment__layout {
    grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.7fr);
    align-items: start;
  }

  .dolo-appointment__rail {
    position: sticky;
    top: 5.5rem;
  }
}

@media (forced-colors: active) {
  .dolo-schedule-week__day,
  .dolo-schedule-row > a,
  .dolo-appointment__date,
  .dolo-appointment__facts,
  .dolo-appointment__document,
  .dolo-appointment__document-choices article,
  .dolo-calendar__day {
    border: 1px solid CanvasText;
  }
}
