
.customer-signal-sheet {
  padding: 24px;
  border: 1px solid #dedbe7;
  border-radius: 12px;
  background: #fff;
  color: #252038;
  margin: 20px 0;
}
.customer-signal-sheet h3 {
  margin: 0 0 22px;
  text-align: center;
  color: #006661;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.customer-signal-sheet h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 16px;
}
.customer-signal-basics {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr 1.2fr 0.7fr;
  margin: 0;
  border: 1px solid #d7d3de;
}
.customer-signal-basics > div {
  padding: 10px;
  min-width: 0;
  border-inline-end: 1px solid #d7d3de;
}
.customer-signal-basics > div:last-child {
  border: 0;
}
.customer-signal-basics dt {
  color: #756c81;
  font-size: 12px;
}
.customer-signal-basics dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.customer-signal-measurements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 16px;
}
.customer-signal-questions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.customer-signal-instruction,
.customer-signal-note {
  color: #766c80;
  font-size: 12px;
  line-height: 1.8;
}
.customer-signal-sheet .ant-checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  width: 100%;
}
.customer-signal-sheet .ant-checkbox-wrapper {
  align-items: flex-start;
  margin-inline: 0;
  line-height: 1.7;
}
.customer-signal-sheet .ant-form-item-label > label {
  font-weight: 600;
}
@media (min-width: 1100px) {
  .customer-signal-sheet .ant-checkbox-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .customer-signal-sheet {
    padding: 16px 12px;
  }
  .customer-signal-sheet h3 {
    font-size: 23px;
  }
  .customer-signal-basics {
    grid-template-columns: 1fr 1fr;
  }
  .customer-signal-measurements,
  .customer-signal-questions {
    grid-template-columns: 1fr;
  }
  .customer-signal-sheet .ant-checkbox-group {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.customer-assessment {
  margin: 8px 0 20px;
  border: 1px solid #e7e3ee;
  border-radius: 8px;
  overflow: hidden;
}
.customer-assessment-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px;
  background: #f6f3fb;
}
.customer-assessment-heading h3,
.customer-assessment-section h4 {
  margin: 0;
  color: #282238;
}
.customer-assessment-heading span,
.customer-assessment-note,
.customer-assessment-reference {
  color: #6a6377;
  font-size: 12px;
  line-height: 1.7;
}
.customer-assessment-section {
  padding: 16px;
  border-top: 1px solid #e7e3ee;
}
.customer-assessment-section h4 {
  margin-bottom: 12px;
  font-size: 14px;
}
.customer-assessment-measurements,
.customer-assessment-signatures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 0 16px;
}
.customer-assessment-signatures .ant-picker {
  width: 100%;
}
.customer-assessment-options .ant-form-item {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #efedf4;
}
.customer-assessment-options .ant-form-item-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 8px 16px;
}
.customer-assessment-options .ant-form-item:last-child {
  border-bottom: 0;
}
.customer-assessment-options .ant-form-item-label {
  padding: 0;
  text-align: left;
  align-self: center;
}
.customer-assessment-options .ant-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  gap: 4px 16px;
  width: 100%;
}
.customer-assessment-options .ant-checkbox-wrapper {
  margin: 0;
  min-width: 0;
  min-height: 36px;
  padding-block: 6px;
  align-items: flex-start;
  line-height: 24px;
}
.customer-assessment-options .ant-checkbox {
  flex: none;
  margin-top: 3px;
}
.customer-assessment-options .ant-checkbox-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.customer-assessment-reference summary {
  cursor: pointer;
  min-height: 32px;
}
.customer-assessment-reference p {
  margin-bottom: 8px;
}
.customer-assessment-note {
  margin: 0;
  padding: 0 16px 16px;
}
@media (max-width: 600px) {
  .customer-assessment-options .ant-form-item-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .customer-assessment-options .ant-checkbox-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
  }
  .customer-assessment-options .ant-checkbox-wrapper {
    min-height: 44px;
  }
}

.service-record-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
.service-record-comparison section {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e9e4f0;
  border-radius: 8px;
}
.service-record-comparison h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.service-record-comparison > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #776b87;
  font-size: 13px;
  line-height: 1.7;
}
.service-record-comparison ul {
  margin: 0;
  padding-inline-start: 18px;
  overflow-wrap: anywhere;
}
.service-record-required,
.service-record-updated {
  color: #776b87;
  font-size: 14px;
  line-height: 1.7;
}
.service-record-legacy {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8f6fb;
  border-radius: 8px;
}
.service-record-legacy summary {
  cursor: pointer;
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .service-record-comparison {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service-record-sheet {
  width: 100%;
  color: #282039;
}
.service-record-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.service-record-heading h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 0;
  font-weight: 600;
}
.service-record-meta {
  margin-bottom: 16px;
}
.service-record-sheet .ant-descriptions-item-label,
.service-record-content .ant-descriptions-item-label {
  background: #f6f3fa;
  color: #645975;
  font-size: 15px;
  white-space: nowrap;
  width: 132px;
}
.service-record-sheet .ant-descriptions-item-content,
.service-record-content .ant-descriptions-item-content {
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.service-record-text {
  white-space: pre-wrap;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.service-record-sheet .v3-record-form {
  margin-top: 0;
}
.service-record-sheet .ant-input {
  font-size: 16px;
  line-height: 1.8;
}
.service-record-photos {
  margin-top: 16px;
}
.service-record-sheet .ant-alert {
  margin-top: 16px;
}
.service-review-link .service-record-content {
  margin-top: 0;
}
@media (max-width: 600px) {
  .service-record-heading h2 {
    font-size: 20px;
  }
  .service-record-sheet .ant-descriptions-item-label,
  .service-record-content .ant-descriptions-item-label {
    width: 104px;
    white-space: normal;
  }
  .service-record-sheet .ant-descriptions-item-content,
  .service-record-content .ant-descriptions-item-content {
    font-size: 15px;
  }
}

.review-detail-sheet .record-detail-grid .ant-descriptions-item-label {
  background: #f6f3fa;
  color: #645975;
  font-size: 15px;
}
.review-detail-sheet .record-detail-grid .ant-descriptions-item-content {
  font-size: 16px;
  line-height: 1.7;
}
@media (max-width: 600px) {
  .service-record-content .ant-rate {
    font-size: 20px;
  }
  .service-record-content .ant-rate-star:not(:last-child) {
    margin-inline-end: 6px;
  }
}

.service-log-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-block: 8px 12px;
}
.service-log-photo { min-width: 0; margin: 0; }
.service-log-photo-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e5deee;
  border-radius: 8px;
  background: #f8f6fb;
  cursor: zoom-in;
}
.service-log-photo-thumb img { display: block; width: 100%; height: 136px; object-fit: cover; }
.service-log-photo-thumb span {
  position: absolute;
  inset: auto 0 0;
  padding: 5px;
  color: white;
  background: #282039b3;
  font-size: 12px;
}
.service-log-photo figcaption { margin-top: 5px; color: #776b87; font-size: 12px; overflow-wrap: anywhere; }
.service-log-photo-status { min-height: 100px; padding: 12px; background: #f8f6fb; border-radius: 8px; }
.service-log-photo-viewer {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  box-sizing: border-box;
  width: min(960px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 16px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 64px #0005;
}
.service-log-photo-viewer::backdrop { background: #171020b3; }
.service-log-photo-viewer header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.service-log-photo-viewer strong { min-width: 0; overflow-wrap: anywhere; }
.service-log-photo-viewer header button { flex: none; padding: 6px 14px; border: 1px solid #e5deee; border-radius: 6px; background: #fff; cursor: pointer; }
.service-log-photo-viewer > img { display: block; width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; }

.calendar-customer-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding-block: 4px;
  color: #615a6c;
  font-size: 12px;
  line-height: 1.5;
}
.calendar-grade-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.calendar-grade {
  display: inline-block;
  flex: 0 0 auto;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 10px;
  line-height: 13px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}
.calendar-grade-A {
  background: #fff0c2;
  color: #6c490c;
}
.calendar-grade-B {
  background: #d9efe1;
  color: #24563c;
}
.calendar-grade-C {
  background: #dfebff;
  color: #2c4e80;
}
.calendar-grade-D {
  background: #e5e9ef;
  color: #465164;
}
.calendar-grade-new {
  background: #eee4fa;
  color: #61407e;
}
.calendar-grade-pending {
  background: #eeedf0;
  color: #58515f;
}
.calendar-customer-legend button {
  min-height: 44px;
  padding-inline: 8px;
  border: 1px solid #d3ccdf;
  border-radius: 4px;
  background: #fff;
  color: #4c3d6d;
  cursor: pointer;
}
.calendar-customer-legend button:focus-visible {
  outline: 2px solid #6954e8;
  outline-offset: 2px;
}
.calendar-same-customer {
  flex: 0 0 auto;
  font-size: 10px;
  line-height: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.appointment-customer-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.appointment-customer-name > strong {
  overflow: hidden;
  text-overflow: ellipsis;
}
.appointment-event-meta .calendar-same-customer {
  overflow: visible;
}
.appointment-event-cancelled .appointment-event-heading strong,
.appointment-event-no_show .appointment-event-heading strong {
  text-decoration: line-through;
}

.calendar-grade-AA{background:#f6e7bc;color:#725308}
.calendar-grade-experience{background:#fff4d5;color:#8a6400}
.calendar-grade-casual{background:#eef0f4;color:#5f6572}
