/* Private customer pages: clear vehicle records, item decisions and post-service feedback. */
body:has(.customer-report) {
  background: #f3f6f8;
}
.customer-report.report-page {
  max-width: 1064px;
  margin: 0 auto;
  padding: 24px 32px 32px;
  color: #193345;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.customer-report [hidden] {
  display: none !important;
}
.customer-report .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.customer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 20px;
  border-bottom: 1px solid #d8e1e8;
}
.customer-header .report-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
}
.customer-header .report-brand > span {
  font-size: 13px;
  color: #526474;
  border-left: 1px solid #cad8e2;
  padding-left: 20px;
}
.customer-reference {
  font-size: 13px;
  color: #526474;
  white-space: nowrap;
}
.customer-vehicle {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px 0;
}
.customer-kicker {
  font-size: 12px;
  color: #526474;
  margin-bottom: 6px;
}
.customer-vehicle h1 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
}
.customer-vehicle-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #526474;
}
.customer-vehicle-meta .plate {
  font-size: 12px;
}
.customer-tabs {
  display: flex;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid #cad8e2;
  background: #f3f6f8;
  margin-bottom: 24px;
  scroll-margin-top: 0;
}
.customer-tabs button {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  color: #526474;
}
.customer-tabs button[aria-pressed="true"] {
  color: #0768aa;
  border-bottom-color: #0768aa;
  font-weight: 600;
}
.customer-tabs svg {
  width: 18px;
  height: 18px;
}
.customer-tabs b {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  border-radius: 3px;
  background: #e0edf6;
}
.customer-section {
  scroll-margin-top: 64px;
  outline: none;
}
.customer-summary-grid,
.customer-quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}
.customer-summary-grid > * {
  min-width: 0;
}
.customer-block {
  border: 1px solid #d8e1e8;
  border-radius: 6px;
  background: #fff;
  padding: 24px;
  margin: 0 0 20px;
  min-width: 0;
}
.customer-block h2,
.customer-section-heading h2 {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
}
.customer-block h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 8px;
}
.customer-block > p,
.customer-section-heading > p {
  font-size: 14px;
  line-height: 1.7;
  color: #526474;
}
.customer-block small {
  font-size: 12px;
  line-height: 1.6;
  color: #526474;
}
.customer-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.customer-cover {
  display: block;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #d8e1e8;
  border-radius: 6px;
  background: #fff;
}
.customer-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
}
.customer-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.customer-facts div {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
}
.customer-facts dt {
  font-size: 12px;
  color: #526474;
  margin-bottom: 4px;
}
.customer-facts dd {
  margin: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.customer-budget-preview > strong {
  display: block;
  font-size: 27px;
  line-height: 1.3;
  margin: 16px 0 4px;
  color: #0768aa;
  letter-spacing: -0.5px;
}
.customer-budget-preview > small {
  display: block;
  margin-bottom: 20px;
}
.customer-block .btn {
  min-height: 44px;
  font-size: 13px;
}
.customer-budget-preview > .btn {
  width: 100%;
}
.customer-oil-date {
  display: block;
  margin: 16px 0 4px;
  font-size: 21px;
}
.customer-inspection {
  margin-top: 16px;
  border-top: 1px solid #d8e1e8;
}
.customer-inspection summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  cursor: pointer;
  padding: 12px 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
}
.customer-inspection summary::-webkit-details-marker {
  display: none;
}
.customer-inspection summary small {
  margin-left: auto;
  font-weight: 400;
  text-align: right;
}
.customer-inspection summary svg {
  margin-left: auto;
  width: 16px;
  height: 16px;
}
.customer-inspection summary small + svg {
  margin-left: 0;
}
.customer-inspection[open] > summary > svg {
  transform: rotate(90deg);
}
.customer-check {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid #e5ebef;
  padding: 12px 0;
  font-size: 14px;
}
.customer-check p {
  font-size: 12px;
  color: #526474;
  margin: 4px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.customer-check .pill {
  flex-shrink: 0;
}
.customer-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.customer-gallery a {
  display: block;
  color: #193345;
  text-decoration: none;
  min-width: 0;
}
.customer-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #d8e1e8;
}
.customer-gallery span,
.customer-gallery small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.customer-section-heading {
  margin-bottom: 20px;
}
.customer-quote-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #e1e7ed;
  font-size: 14px;
}
.customer-quote-item:first-child {
  padding-top: 0;
}
.customer-quote-item b {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.customer-quote-item small {
  display: block;
  margin-top: 4px;
}
.customer-item-choice {
  display: flex;
  align-items: start;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  margin: 0;
  flex: 1;
  min-width: 0;
}
.customer-item-choice input {
  width: 20px;
  height: 20px;
  min-height: 0 !important;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: #0768aa;
}
.customer-item-price {
  text-align: right;
  flex-shrink: 0;
}
.customer-item-price strong {
  display: block;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.customer-item-price .pill {
  font-size: 11px;
}
.customer-quote-totals {
  position: sticky;
  top: 74px;
}
.customer-quote-totals h3 {
  margin-top: 0;
}
.customer-quote-totals dl {
  margin: 20px 0;
}
.customer-quote-totals dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
}
.customer-quote-totals dd {
  margin: 0;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.customer-quote-totals > p {
  font-size: 12px;
}
.customer-quote-totals > .btn {
  width: 100%;
  margin-top: 16px;
}
.customer-selected-total {
  border-top: 1px solid #d8e1e8;
  border-bottom: 1px solid #d8e1e8;
  margin: 16px 0;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.customer-selected-total strong {
  font-size: 24px;
  color: #0768aa;
  letter-spacing: -0.4px;
}
.customer-decision > h3 {
  margin-top: 24px;
  font-size: 17px;
}
.customer-decision > p {
  font-size: 13px;
  color: #526474;
  line-height: 1.6;
  margin-bottom: 20px;
}
.customer-report .field {
  margin: 20px 0;
}
.customer-report .field label {
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}
.customer-report input:not([type="radio"]):not([type="checkbox"]),
.customer-report textarea {
  font-size: 16px;
  width: 100%;
  min-height: 44px;
}
.customer-report fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0;
  min-width: 0;
}
.customer-report legend {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  margin: 0 0 12px;
}
.customer-decision-options > label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #cad8e2;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  margin: 8px 0;
}
.customer-decision-options > label:has(input:checked) {
  background: #edf5fa;
  border-color: #0768aa;
}
.customer-decision-options input,
.customer-consent input {
  accent-color: #0768aa;
  min-height: 0 !important;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.customer-consent {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  cursor: pointer;
  margin: 20px 0;
  min-height: 44px;
}
.customer-consent input {
  margin-top: 2px;
}
.customer-submit {
  width: 100%;
  justify-content: center;
  min-height: 46px !important;
}
.customer-form-note {
  font-size: 12px !important;
  color: #526474;
  line-height: 1.6;
  margin: 12px 0 0;
}
.customer-evaluation {
  max-width: 660px;
  margin: 0 auto;
}
.rating-stars,
.rating-scale {
  display: grid;
  gap: 8px;
}
.rating-stars {
  grid-template-columns: repeat(5, 44px);
}
.rating-scale {
  grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
  gap: 6px;
}
.customer-rating label {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}
.customer-rating input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.customer-rating label > span:not(.sr-only) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 1px solid #cad8e2;
  border-radius: 4px;
  font-size: 15px;
  color: #526474;
  pointer-events: none;
}
.rating-stars label > span:not(.sr-only) {
  font-size: 28px;
  color: #8a9ba7;
}
.customer-rating input:checked + span {
  background: #e9f3fa;
  border-color: #0768aa;
  color: #0768aa;
}
.customer-rating input:focus-visible + span {
  outline: 3px solid #5babdf;
  outline-offset: 3px;
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #526474;
  margin-top: 8px;
}
.customer-thanks > svg {
  width: 36px;
  height: 36px;
  padding: 7px;
  border: 1px solid #9cc9b8;
  border-radius: 50%;
  color: #187858;
  margin-bottom: 16px;
}
.customer-thanks .customer-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.customer-footer {
  padding: 20px 0;
  border-top: 1px solid #d8e1e8;
  color: #526474;
  font-size: 12px;
}
.customer-footer > b {
  display: block;
  font-size: 13px;
  color: #193345;
  margin-bottom: 4px;
}
.customer-footer > p {
  margin-top: 12px;
  line-height: 1.7;
}
.customer-report [data-form-error]:not(:empty) {
  margin: 16px 0;
}
@media (max-width: 720px) {
  .customer-report.report-page {
    padding: 16px 14px 24px;
  }
  .customer-header {
    padding-bottom: 14px;
  }
  .customer-header .report-brand {
    gap: 0;
  }
  .customer-header .report-brand > span {
    display: none;
  }
  .customer-header .brand {
    transform: scale(0.8);
    transform-origin: left center;
    margin-right: -32px;
  }
  .customer-reference {
    font-size: 12px;
  }
  .customer-vehicle {
    align-items: start;
    gap: 8px;
    padding: 20px 0;
  }
  .customer-vehicle h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .customer-vehicle > .pill {
    font-size: 11px;
  }
  .customer-vehicle-meta {
    gap: 8px;
    font-size: 12px;
  }
  .customer-tabs {
    margin-bottom: 16px;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .customer-tabs button {
    flex: 1;
    min-width: 0;
    padding: 10px 4px;
    gap: 6px;
    font-size: 13px;
    min-height: 48px;
  }
  .customer-tabs svg {
    width: 16px;
    height: 16px;
  }
  .customer-tabs b {
    min-width: 16px;
    height: 18px;
    font-size: 10px;
  }
  .customer-summary-grid,
  .customer-quote-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .customer-summary-grid > aside {
    display: grid;
    grid-template-columns: 1fr;
  }
  .customer-block {
    padding: 18px 16px;
    margin-bottom: 16px;
  }
  .customer-block h2,
  .customer-section-heading h2 {
    font-size: 18px;
  }
  .customer-cover {
    margin-bottom: 16px;
  }
  .customer-quote-totals {
    position: static;
    grid-row: 1;
  }
  .customer-quote-totals dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
    margin: 12px 0;
  }
  .customer-quote-totals dl > div {
    display: block;
    font-size: 12px;
  }
  .customer-quote-totals dd {
    margin-top: 3px;
    font-size: 14px;
  }
  .customer-quote-totals > p {
    display: none;
  }
  .customer-selected-total {
    margin: 12px 0;
    padding: 12px 0;
  }
  .customer-selected-total strong {
    font-size: 22px;
  }
  .customer-quote-item {
    gap: 10px;
    font-size: 14px;
    padding-block: 16px;
    flex-wrap: wrap;
  }
  .customer-item-choice {
    min-width: 140px;
  }
  .customer-item-choice input {
    width: 20px;
    height: 20px;
  }
  .customer-item-price {
    margin-left: auto;
  }
  .customer-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .customer-inspection summary {
    flex-wrap: wrap;
    gap: 6px;
  }
  .customer-inspection summary small {
    font-size: 11px;
  }
  .customer-inspection summary > span {
    flex: 1;
  }
  .customer-check {
    font-size: 13px;
  }
  .customer-check .pill {
    font-size: 11px;
    max-width: 130px;
    white-space: normal;
    text-align: center;
  }
  .customer-budget-preview > strong {
    font-size: 24px;
  }
  .customer-budget-preview > .btn {
    margin-top: 8px;
  }
}
@media (max-width: 360px) {
  .customer-report.report-page {
    padding-inline: 12px;
  }
  .customer-vehicle {
    flex-wrap: wrap;
  }
  .customer-tabs button {
    font-size: 12px;
    gap: 4px;
  }
  .customer-tabs svg {
    display: none;
  }
  .rating-stars {
    gap: 6px;
  }
  .customer-thanks .customer-facts {
    grid-template-columns: 1fr;
  }
}
@media print {
  .customer-tabs,
  .customer-report form,
  .customer-report button {
    display: none !important;
  }
  .customer-report .customer-section[hidden] {
    display: block !important;
  }
  .customer-report.report-page {
    max-width: none;
    padding: 0;
  }
  .customer-cover img {
    max-height: 220px;
  }
  .customer-quote-totals {
    position: static;
  }
  .customer-report details::details-content {
    content-visibility: visible;
  }
}
/* The complete vehicle folder remains a single compact, scrollable tab row. */
.customer-tabs {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  max-width: 100%;
}
.customer-tabs button {
  flex: 0 0 auto;
  white-space: nowrap;
  padding-inline: 16px;
}
.customer-finding-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.customer-finding-toolbar button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #c7d6e1;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
}
.customer-finding-toolbar button[aria-pressed="true"] {
  color: #0768aa;
  border-color: #0768aa;
  background: #eaf3fa;
}
.customer-finding-toolbar b {
  margin-left: 5px;
  font-variant-numeric: tabular-nums;
}
.finding-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 12px;
  color: #526474;
  line-height: 1.6;
  margin: 0 0 20px;
}
.inspection-family > h3,
.customer-signature > h3,
.customer-workshop > h3 {
  font-size: 18px;
  margin-top: 0;
}
.inspection-family > p {
  font-size: 13px;
}
.inspection-counts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #d8e1e8;
  border-radius: 4px;
  margin: 16px 0;
}
.finding-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  gap: 2px;
  border-right: 1px solid #e1e7ed;
  text-align: center;
}
.finding-count:last-child {
  border: 0;
}
.finding-count b {
  font-size: 20px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.finding-count small {
  font-size: 11px;
}
.finding-0 {
  color: #187858;
}
.finding-1 {
  color: #996016;
}
.finding-2 {
  color: #ad3939;
}
.finding-3,
.finding-pending {
  color: #526474;
}
.finding-row {
  padding: 12px 0;
  align-items: center;
}
.finding-row b {
  font-size: 14px;
  font-weight: 500;
}
.finding-row.needs-attention {
  border-left: 3px solid #d2a164;
  padding-left: 12px;
  background: #fffaf1;
}
.finding-row[data-finding="Reparar"] {
  border-left-color: #c56666;
  background: #fff8f8;
}
.customer-pending {
  color: #526474;
  background: #f0f3f6;
}
.customer-no-findings {
  padding: 18px;
  background: #fff;
  border: 1px solid #d8e1e8;
  border-radius: 4px;
  margin-bottom: 16px;
}
.customer-signature-ink {
  display: block;
  width: min(100%, 400px);
  height: 134px;
  stroke: #193345;
  stroke-width: 2;
  fill: none;
  margin: 16px 0;
  border-bottom: 1px solid #d8e1e8;
  background: #fff;
}
.customer-signature details summary,
.customer-workshop details summary,
.vehicle-supplement > summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.customer-signature details summary::before,
.customer-workshop details summary::before,
.vehicle-supplement > summary::before {
  content: "+";
  font-size: 18px;
  color: #0768aa;
}
.customer-signature details[open] > summary::before,
.customer-workshop details[open] > summary::before,
.vehicle-supplement[open] > summary::before {
  content: "−";
}
.vehicle-supplement {
  padding: 12px 0;
  border-block: 1px solid #d8e1e8;
  margin: 16px 0;
}
.vehicle-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 8px;
}
.vehicle-facts > div {
  padding: 10px 12px;
  border: 1px solid #e1e7ed;
  border-radius: 4px;
  background: #f8fafc;
}
.customer-facts dd {
  max-width: none;
}
.customer-workshop .btn {
  margin: 16px 10px 12px 0;
  display: inline-flex;
  gap: 8px;
}
.customer-workshop details {
  max-width: 460px;
  border-top: 1px solid #d8e1e8;
  margin-top: 6px;
}
.customer-workshop details dl div {
  padding: 8px 0;
  gap: 10px;
}
.customer-workshop details dd {
  font-size: 13px;
  max-width: none;
  white-space: nowrap;
}
.customer-workshop > small {
  display: block;
  margin-top: 12px;
}
@media (max-width: 720px) {
  .customer-tabs button {
    flex: 0 0 auto;
    min-width: 84px;
    font-size: 12px;
    min-height: 48px;
    padding-inline: 10px;
  }
  .customer-tabs svg {
    display: block;
  }
  .customer-tabs button span {
    white-space: nowrap;
  }
  .customer-finding-toolbar {
    gap: 6px;
  }
  .customer-finding-toolbar button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .finding-row b {
    font-size: 13px;
  }
  .finding-row .pill {
    max-width: 100px;
    font-size: 10px;
  }
  .finding-count b {
    font-size: 18px;
  }
  .finding-count small {
    font-size: 10px;
  }
  .finding-legend {
    gap: 4px 12px;
    font-size: 11px;
  }
  .vehicle-facts {
    gap: 10px;
  }
  .vehicle-facts > div {
    padding: 10px;
  }
  .customer-workshop details dt {
    font-size: 12px;
  }
  .customer-workshop details dd {
    font-size: 12px;
  }
}
.finding-row[data-finding="OK"] > .pill {
  color: #187858;
  background: #edf7f1;
}
.finding-row[data-finding="Não se aplica"] > .pill {
  color: #526474;
  background: #f0f3f6;
}
