#editor {
  width: min(1040px, calc(100vw - 32px));
  max-width: 1040px;
  padding: 28px;
  box-sizing: border-box;
}
#editor .dispatch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
#editor .dispatch-grid > label,
#editor .dispatch-grid > fieldset {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
#editor .dispatch-full {
  grid-column: 1/-1;
}
#editor .dispatch-grid input:not([type='checkbox']),
#editor .dispatch-grid select,
#editor .dispatch-grid textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  inline-size: 100%;
  min-width: 0;
  min-inline-size: 0;
  max-width: 100%;
  margin: 6px 0 0;
  position: static;
  height: auto;
  min-height: 44px;
}
#editor .dispatch-grid input[type='date'],
#editor .dispatch-grid input[type='time'] {
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
}
#editor .dispatch-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}
#editor .dispatch-checkbox input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}
#editor .checks label {
  min-width: 0;
  overflow-wrap: anywhere;
}
#editor .dispatch-grid > input[type='hidden'] {
  display: none;
}
.booking .booking-team {
  display: block;
  font-size: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
  margin-top: 4px;
}
.booking .booking-status {
  display: inline-block;
  margin-top: 5px;
  font-size: 9px;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 1px 4px;
}
.booking.tone-teal {
  background: #e0f4eb;
  color: #145b42;
  border-left-color: #16865f;
}
.booking.tone-blue {
  background: #e4effe;
  color: #17467d;
  border-left-color: #2d70b8;
}
.booking.tone-purple {
  background: #f0e6fa;
  color: #603383;
  border-left-color: #8851b0;
}
.booking.tone-amber {
  background: #fff0d6;
  color: #7a4c06;
  border-left-color: #be8117;
}
.booking.tone-rose {
  background: #ffe7ed;
  color: #8b2945;
  border-left-color: #bf4b69;
}
.booking.tone-cyan {
  background: #dbf5f8;
  color: #155c68;
  border-left-color: #218b9a;
}
.booking.tone-indigo {
  background: #e8e9fd;
  color: #3e4087;
  border-left-color: #6366b0;
}
.booking.tone-slate {
  background: #e7edf2;
  color: #3f5260;
  border-left-color: #6d8493;
}
.legend .group-legend {
  font-weight: 600;
}
@media (max-width: 1100px), (pointer: coarse) {
  #editor .dispatch-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #editor .dispatch-full {
    grid-column: 1;
  }
  #editor .checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  #editor {
    width: calc(100vw - 20px);
    padding: 20px;
  }
  #editor .checks {
    grid-template-columns: 1fr;
  }
}
:where(.series-preview, .cancelled-jobs) {
  margin-block: 16px;
  padding: 16px;
  border: 1px solid #b7cbd0;
  border-radius: 10px;
  background: #f4f8f9;
}
.series-preview-table {
  overflow: auto;
  max-height: 360px;
  margin-block: 12px;
}
.series-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.series-preview th,
.series-preview td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #d5e1e4;
  vertical-align: top;
  min-width: 150px;
}
.series-preview th {
  position: sticky;
  top: 0;
  background: #e5eff1;
}
.series-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-block-end: 12px;
}
.cancelled-booking {
  border-inline-start: 4px solid #8b949b;
  background: #f4f4f4;
}
#copyExtraDates {
  display: grid;
  gap: 8px;
  margin-block-end: 8px;
}
#repeatOptions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
#repeatOptions[hidden],
#seriesFields[hidden],
#removePersonFields[hidden],
#copyDateFields[hidden] {
  display: none;
}
#repeatOptions > .checks,
#repeatOptions > .muted {
  grid-column: 1/-1;
}
@media (max-width: 600px) {
  #repeatOptions {
    grid-template-columns: minmax(0, 1fr);
  }
  .series-preview {
    padding: 10px;
  }
  .cancelled-booking {
    flex-wrap: wrap;
  }
}
#editor.transfer-dialog {
  width: min(660px, calc(100vw - 32px));
  max-width: 660px;
  padding: 24px;
}
#editor.transfer-dialog .dialog-head h2 {
  font-size: 21px;
}
#editor.transfer-dialog .dispatch-grid {
  gap: 14px;
}
.transfer-summary {
  display: grid;
  gap: 4px;
  margin: 0 0 20px;
  padding: 12px 14px;
  background: #f0f5f6;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.transfer-summary span {
  font-size: 13px;
  color: #536771;
}
.transfer-options {
  border-top: 1px solid #d5e1e4;
  padding-top: 12px;
  margin-top: 12px;
}
.transfer-options > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.transfer-options > .dispatch-grid {
  margin-top: 14px;
}
#transferHint {
  font-size: 13px;
  line-height: 1.45;
  margin-block: 12px;
}
#editor.transfer-dialog .series-preview {
  margin-block: 12px;
  padding: 12px;
}
#editor.transfer-dialog .series-preview-table {
  max-height: 240px;
}
#editor.transfer-dialog [hidden] {
  display: none !important;
}
/* Opening the removal choices is safe while a save is pending. Confirmation still
   checks saving/saveFailed and the data revision before it can change anything. */
.saving #content [data-delete-job],
.saving #editor.removal-dialog {
  pointer-events: auto;
}
.quick-choice {
  margin-block: 14px;
}
.quick-choice-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.choice-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.choice-buttons button {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #cddae2;
  border-radius: 7px;
  background: #f5f8fa;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  min-height: 42px;
}
.choice-buttons button[aria-pressed='true'] {
  background: #e0f4eb;
  border-color: #16865f;
  color: #145b42;
  box-shadow: inset 0 0 0 1px #16865f;
  font-weight: 650;
}
.choice-buttons button:focus-visible {
  outline: 2px solid #16865f;
  outline-offset: 2px;
}
.quick-summary {
  padding: 12px 14px;
  background: #f4f8f9;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 13px;
}
.quick-summary p {
  margin: 6px 0;
}
.quick-summary details {
  margin-top: 7px;
}
.quick-summary summary {
  cursor: pointer;
}
.quick-summary ul {
  max-height: 220px;
  overflow: auto;
  padding-left: 20px;
}
.transfer-destination {
  font-weight: 600;
  margin-bottom: 4px;
}
.quick-actions {
  flex-wrap: wrap;
}
.quick-actions .primary {
  margin-left: auto;
}
.vehicle-picker .checks {
  margin-block: 10px;
  max-height: 230px;
  overflow: auto;
}
.vehicle-picker .checks small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.vehicle-picker > small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}
