.crew-job-notes {
  min-width: 0;
  margin: 0 0 18px;
  padding: 20px;
  border: 1px solid #b7d6d0;
  border-left: 4px solid #137b70;
  border-radius: 14px;
  background: #f3faf7;
  color: #173b35;
}
.crew-job-notes > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.crew-job-notes h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}
.crew-job-notes > header > span {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 20px;
  background: #deeee7;
  font-size: 12px;
  font-weight: 700;
}
.crew-job-notes .crew-job-notes-help {
  margin: 7px 0 14px;
  color: #46645d;
  font-size: 13px;
  line-height: 1.5;
}
.crew-job-notes .field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.crew-job-notes textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 130px;
  resize: vertical;
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
}
.crew-job-notes .crew-job-notes-text,
.crew-job-notes-preview p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.crew-job-notes-preview {
  min-width: 0;
  padding: 12px;
  border-radius: 10px;
  background: #edf7f2;
  color: #173b35;
}
.crew-job-notes-preview strong { display: block; margin-bottom: 5px; }
.schedule-job-sheet-scroll .crew-job-notes { margin-top: 4px; }
@media (max-width: 600px) {
  .crew-job-notes { padding: 16px; border-radius: 12px; }
  .crew-job-notes h2 { font-size: 18px; }
}

.crew-job-notes > header { margin-bottom: 12px; }
.visit-reference-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.visit-reference-photos a { min-width: 0; overflow: hidden; border: 1px solid #cadcd6; border-radius: 9px; color: inherit; background: white; }
.visit-reference-photos img { display: block; width: 100%; height: 130px; object-fit: cover; }
.visit-reference-photos span { display: block; padding: 7px; font-size: 12px; overflow-wrap: anywhere; }
.visit-line-items > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.visit-line-items > div > p { grid-column: 1 / -1; margin: 4px 0 0; font-size: 14px; font-weight: 400; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.visit-address { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.visit-details-load { display: flex; align-items: center; gap: 8px; color: #556876; font-size: 13px; }
.visit-details-load:has([data-visit-details-status]:empty) { display: none; }
.visit-details-load button { padding: 8px; border: 1px solid #cad5dd; border-radius: 8px; background: white; }
.visit-directions { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; padding: 16px; }
.visit-directions-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #102e45aa; }
.visit-directions > section { position: relative; width: min(420px, 100%); max-height: 85dvh; overflow: auto; padding: 20px; border-radius: 16px; background: white; color: #19374b; box-shadow: 0 15px 50px #0004; }
.visit-directions header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.visit-directions h2 { margin: 0; font-size: 20px; }
.visit-directions header button { width: 40px; height: 40px; border: 0; border-radius: 10px; font-size: 26px; background: #edf4f6; }
.visit-directions p { margin: 8px 0 18px; font-size: 14px; overflow-wrap: anywhere; }
.visit-directions section > div { display: grid; gap: 10px; }
.visit-directions a { display: flex; align-items: center; justify-content: space-between; padding: 15px; border: 1px solid #cbd9df; border-radius: 10px; color: inherit; text-decoration: none; font-weight: 700; }
@media (max-width: 600px) { .visit-directions { align-items: end; padding-bottom: max(16px, env(safe-area-inset-bottom)); } }
.schedule-job-sheet-card .icon-button { color: #19374b; background: #fff; border: 1px solid #cbd9df; }
.schedule-job-sheet-card .visit-address { height: auto; min-height: 60px; }
.schedule-job-sheet-card .visit-address span { white-space: normal; overflow-wrap: anywhere; }

.visit-job-visual { margin: 4px 0 16px; min-width: 0; }
.visit-job-visual > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.visit-job-visual h3 { margin: 0; font-size: 17px; }
.visit-job-visual figure { margin: 0; min-width: 0; }
.visit-job-visual .christmas-view-gallery { grid-template-columns: minmax(0, 1fr); }
.visit-job-visual .visit-reference-photos img { height: auto; max-height: 300px; object-fit: contain; }
.schedule-job-sheet.has-expanded-photos .schedule-job-sheet-card { width: min(1100px, calc(100vw - 24px)); max-width: calc(100vw - 24px); }
.has-expanded-photos .visit-reference-photos { grid-template-columns: minmax(0, 1fr); }
.has-expanded-photos .visit-reference-photos img { max-height: none; }
.visit-job-visual [data-photo-unavailable] { padding: 16px; background: #edf4f6; border-radius: 9px; }
.visit-job-visual .install-reference-photos { margin: 0; padding: 0; border: 0; box-shadow: none; }
.visit-job-visual .install-reference-photos > h3,
.visit-job-visual .install-reference-photos > p { display: none; }
.visit-job-visual .install-reference-grid { grid-template-columns: minmax(0, 1fr); }
.visit-job-visual .install-reference-grid img { width: 100%; height: auto; max-height: 300px; object-fit: contain; }
.has-expanded-photos .install-reference-grid img { max-height: none; }
