.section-head,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.dialog-head h2 {
  margin: 0;
}
.stat strong {
  display: block;
}
.main {
  min-width: 0;
}
.main .panel + .panel,
.stats + .panel {
  margin-top: 1rem;
}
.calendar td {
  vertical-align: top;
}
.calendar thead th {
  line-height: 1.3;
}
.calendar td .booking {
  max-width: 8rem;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar .blocked {
  background: #eee3ce;
  color: #5d461d;
}
.calendar td .departure {
  display: block;
  color: #574730;
  font-size: 0.8rem;
  line-height: 1.2;
  background: #f6efdc;
  border: 0;
  margin-bottom: 3px;
  white-space: nowrap;
}
.calendar .free-night {
  min-width: 2.4rem;
  min-height: 2.2rem;
  background: transparent;
  border: 0;
  color: #656b60;
}
.calendar th.is-today {
  box-shadow: inset 0 3px #778557;
}
.calendar td.is-today {
  background: #f8f9f0;
}
.detail-list {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 0.45rem 1rem;
}
.detail-list dt {
  color: #555d51;
}
.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.history {
  padding-left: 1.3rem;
}
.history li {
  margin: 0.6rem 0;
}
.panel table td,
.panel table th {
  text-align: left;
}
.panel table.calendar td,
.panel table.calendar th:not(:first-child) {
  text-align: center;
}
.table-scroll {
  overflow: auto;
}
.form-grid label {
  min-width: 0;
}
.main h3,
dialog h3 {
  margin-top: 1.3rem;
}
.sidebar small {
  display: inline-block;
  margin-bottom: 0.4rem;
}
.notice:not(:empty),
#notice:not([hidden]) {
  margin-bottom: 0.8rem;
}
.calendar .location-row th {
  white-space: nowrap;
}
.section-head label {
  min-width: 10rem;
}
