.quick-sheet {
  box-sizing: border-box;
  max-width: 620px;
  padding: 16px 18px 24px;
}

.quick-sheet details {
  margin: 10px 0;
  border: 1px solid #eee5dc;
  border-radius: 10px;
  background: #fffdf9;
}

.quick-sheet summary {
  padding: 13px;
  font-weight: 600;
  cursor: pointer;
}

.quick-sheet summary small {
  float: right;
  color: #82908b;
  font-size: 12px;
  font-weight: 400;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 13px 15px;
}

.quick-field {
  min-width: 0;
  margin: 8px 0;
}

.quick-field > label {
  display: block;
  margin-bottom: 7px;
  color: #53665f;
  font-size: 13px;
}

.quick-field input:not([type=checkbox]):not([type=file]),
.quick-field select,
.quick-field textarea,
.quick-search input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e5ddd5;
  border-radius: 8px;
  background: #fff;
  color: #20332e;
  font-size: 14px;
}

.quick-field textarea {
  min-height: 90px;
  resize: vertical;
}

.quick-field:has(textarea),
.quick-field:has(.quick-checks),
.quick-field:has(.quick-upload) {
  grid-column: 1 / -1;
}

.quick-required {
  color: #c05b49;
}

.quick-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
}

.quick-checks label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.quick-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.quick-upload {
  min-width: 0;
}

.quick-upload-trigger {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px dashed #e6cfc6;
  border-radius: 9px;
  background: #fff8f5;
  color: #3d4944;
  cursor: pointer;
}

.quick-upload-trigger:active {
  background: #fff0eb;
}

.quick-upload-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f07c62;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.quick-upload-copy {
  min-width: 0;
}

.quick-upload-copy strong,
.quick-upload-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-upload-copy strong {
  color: #b65e4b;
  font-size: 13px;
  font-weight: 700;
}

.quick-upload-copy small {
  margin-top: 3px;
  color: #8b918e;
  font-size: 10px;
  font-weight: 400;
}

.quick-upload-arrow {
  color: #b4aaa4;
  font-size: 22px;
  line-height: 1;
}

.quick-file-input:focus-visible + .quick-upload-trigger {
  outline: 2px solid #f07c62;
  outline-offset: 2px;
}

.quick-previews {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.quick-previews:empty {
  display: none;
}

.quick-previews img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #eee2db;
  border-radius: 8px;
  background: #f6f1ed;
}

.quick-search,
.quick-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.quick-search input {
  flex: 1;
}

.quick-sheet button:disabled {
  opacity: .45;
  cursor: default;
}

.quick-search button,
.quick-pager button {
  padding: 10px;
  border-radius: 8px;
  background: #fff0eb;
  color: #a55343;
  white-space: nowrap;
}

.quick-pager span {
  flex: 1;
  text-align: center;
  font-size: 12px;
}

.quick-customer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eee5dc;
  font-size: 14px;
}

.quick-customer small {
  display: block;
  color: #82908b;
  font-size: 12px;
  line-height: 1.6;
}

.quick-sheet .page-error[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .quick-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .quick-sheet {
    max-height: 92dvh;
  }

  .quick-previews {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.activity-delete-button {
  display: block;
  width: auto;
  min-width: 64px;
  min-height: 36px;
  margin: 12px 0 0 auto;
  padding: 7px 14px;
  border: 1px solid #eedde1;
  border-radius: 8px;
  background: #fff;
  color: #a94755;
  font-size: 12px;
  line-height: 20px;
}

.activity-delete-button:disabled {
  cursor: wait;
  opacity: .55;
}
