.schedule-toolbar {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: .7rem;
}

.month-controls,
.view-controls {
  display: flex;
  gap: .35rem;
  align-items: center;
  flex-wrap: nowrap;
}

.schedule-filters {
  display: contents;
}

.schedule-toolbar button,
.schedule-toolbar input,
.schedule-toolbar select {
  height: 42px;
  box-sizing: border-box;
  margin: 0;
}

.month-controls button {
  width: 3.5rem;
  min-width: 3.5rem;
  padding-left: .4rem;
  padding-right: .4rem;
  white-space: nowrap;
}

.month-controls input[type="month"] {
  width: 12rem;
  min-width: 12rem;
}

.view-controls button {
  white-space: nowrap;
}

.schedule-toolbar [data-filter-name] {
  width: 11rem;
  min-width: 11rem;
}

.schedule-toolbar [data-filter-group] {
  width: 10rem;
  min-width: 10rem;
}

.schedule-toolbar [data-filter-status] {
  width: 9rem;
  min-width: 9rem;
}

.matrix-scroll {
  overflow: auto;
  max-height: 70vh;
  border: 1px solid #d2dbd9;
  background: #fff;
}

.schedule-matrix {
  border-collapse: separate;
  border-spacing: 0;
  min-width: max-content;
  width: 100%;
}

.schedule-matrix th,
.schedule-matrix td {
  border-right: 1px solid #d9e0de;
  border-bottom: 1px solid #d9e0de;
  padding: 0;
  text-align: center;
  height: 42px;
}

.schedule-matrix thead th {
  position: sticky;
  top: 0;
  background: #eef3f2;
  z-index: 3;
  padding: .5rem;
  min-width: 110px;
}

.schedule-matrix .date-col {
  position: sticky;
  left: 0;
  z-index: 4;
  box-sizing: border-box;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  background: #f7f9f8;
}

.client-message-button {
  border: 0;
  background: transparent;
  width: 100%;
  height: auto;
  padding: .15rem .35rem;
  font-weight: 700;
  white-space: nowrap;
}

.client-message-button:hover,
.client-message-button:focus-visible {
  background: #dfeae7;
}

.date-note-button {
  display: flex;
  align-items: center;
  gap: .45rem;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  width: 100%;
  height: 42px;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  padding: .35rem .55rem;
}

.date-label {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 700;
}

.date-note-preview {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .72rem;
  font-weight: 400;
}

.schedule-cell {
  display: block;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 110px;
  height: 42px;
  max-height: 42px;
  overflow: hidden;
  padding: .2rem .35rem;
  font-weight: 700;
  line-height: 1.05;
}

.schedule-cell small {
  display: block;
  width: 100%;
  margin-top: .15rem;
  font-weight: 400;
  font-size: .72rem;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-role-false {
  background: #fff3cc !important;
}

.status-role-null {
  background: #e9e7ff !important;
}

.status-role-true {
  background: #dff2e7 !important;
}

.adjacent-month {
  opacity: .62;
}

.memo-mark {
  margin-left: .35rem;
}
