.repair-entry {
  display: grid; grid-template-columns: minmax(90px, 25%) 1fr auto; align-items: center;
  margin: 24px 0; gap: clamp(10px, 3vw, 32px); padding-right: 18px;
  background: #204541; color: #fff; text-decoration: none;
}
.repair-entry img { width: 100%; height: 104px; object-fit: cover; }
.repair-entry span { padding-block: 12px; }
.repair-entry small, .repair-entry strong { display: block; }
.repair-entry small { color: #e1e7d8; font-size: .78rem; }
.repair-entry strong { font: bold clamp(1.1rem, 2.6vw, 1.6rem)/1.5 "Yu Mincho", serif; }
.repair-entry:hover strong { text-decoration: underline; }
.repair-page { --forest: #234a44; --clay: #934722; color: #263835; }
.repair-hero { display: grid; grid-template-columns: 1.05fr 1fr; background: #f4efe3; }
.repair-hero > div { align-self: center; padding: clamp(20px, 4vw, 44px); }
.repair-hero p:first-child, .case-kind { color: var(--clay); font-weight: 700; }
.repair-hero h1 { font: bold clamp(2rem, 4.4vw, 3.1rem)/1.35 "Yu Mincho",serif; margin: 8px 0 18px; color: var(--forest); }
.repair-hero p { margin: 0; }
.repair-hero img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.repair-jumps { display: flex; flex-wrap: wrap; background: var(--forest); }
.repair-jumps a { color: white; flex: 1; text-align: center; padding: 14px 5px; font-weight: 700; }
.repair-page section { margin-block: 46px; scroll-margin-top: 15px; }
.repair-page h2 { border-color: var(--clay); color: var(--forest); }
.repair-page h3 { color: var(--forest); }
.photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: start; }
.photo-case { border: 1px solid #ccd2c6; background: #faf9f4; }
.photo-case img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-case > div { padding: 14px; }
.photo-case p { margin: 0 0 8px; }
.photo-case .case-kind { font-size: .82rem; margin: 0; }
.repair-page summary { cursor: pointer; padding-block: 7px; color: var(--forest); font-weight: 700; }
.credits { margin-top: 12px; font-size: .82rem; }
.plans { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.repair-page fieldset { min-width: 0; margin: 14px 0; padding: 12px 16px 16px; background: #f0f5f0; border: 1px solid #b4c5b8; }
.repair-page fieldset[data-plan="renovated"] { background: #fcf1df; border-color: #d8c39f; }
.repair-page legend { padding-inline: 8px; font-weight: 700; color: var(--forest); }
.money-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; }
.money-field > span:last-child { display: flex; align-items: center; gap: 5px; }
.repair-page .money-field input { width: 8em; text-align: right; padding: 5px; }
.money-field small { min-width: 2em; }
#annual > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
#numbers { padding: 18px; margin: 18px 0; background: var(--forest); color: white; }
#numbers h3 { color: white; }
#numbers p { margin: 12px 0 0; font-weight: bold; }
.repair-page table { width: 100%; min-width: 0; table-layout: fixed; }
.repair-page th, .repair-page td { width: auto; min-width: 0; padding: 8px 10px; border: 1px solid #b9c9be; color: #243d37; vertical-align: middle; overflow-wrap: anywhere; }
.repair-page th { background: #e8eee8; }
.repair-page td { background: #fff; }
#numbers td { font-weight: 700; text-align: right; }
.quote-table caption { text-align: left; font-weight: bold; }
.quote-table th:first-child { width: 23%; }
.quote-table td input, .quote-table td textarea { width: 100%; min-width: 0; padding: 6px; }
.quote-table tfoot td { font-weight: bold; }
.quote-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-block: 16px; }
.quote-actions button, .repair-print { min-height: 44px; border: 1px solid var(--forest); padding: 8px 14px; color: var(--forest); background: white; font-weight: bold; border-radius: 4px; }
.repair-print { color: white; background: var(--forest); }
.print-help { display: inline; margin-left: 10px; font-size: .85rem; }
.repair-visit { padding: 24px; background: #f3ecdd; }
.paper-value { display: none; }
@media(max-width: 680px) {
  .repair-hero, .plans, .photo-grid, #annual > div { grid-template-columns: 1fr; }
  .repair-hero img { height: 150px; min-height: 0; object-position: center 57%; }
  .repair-jumps { display: grid; grid-template-columns: 1fr 1fr; }
  .repair-jumps a { padding: 9px 3px; }
  .repair-entry { gap: 10px; padding-right: 9px; }
  .repair-entry img { height: 96px; }
  .plans { gap: 0; }
  .photo-case img { max-height: 210px; }
  .repair-page th, .repair-page td { padding: 6px; }
  .repair-page .money-field input { width: 6.6em; }
  #numbers { padding: 12px; }
  #numbers th:first-child { width: 24%; }
  .print-help { display: block; margin: 8px 0; }
}
@media print {
  @page { size: A4 portrait; margin: 14mm; }
  body:has(.repair-page) > :not(main), .repair-page > :not(#quotes),
  #quotes .quote-actions, #quotes button, #quotes .print-help, #quotes #quote-status,
  #quotes input, #quotes textarea, #quotes > p { display: none !important; }
  main.repair-page, .repair-page #quotes { margin: 0; padding: 0; max-width: none; }
  #quotes h2 { font-size: 18pt; color: black; margin: 0 0 5mm; }
  #quotes table { font-size: 10pt; border-collapse: collapse; }
  #quotes tr { break-inside: avoid; }
  #quotes th, #quotes td { color: black; border: 1px solid #777; padding: 2mm; }
  #quotes .paper-value { display: block; min-height: 5mm; white-space: pre-wrap; overflow-wrap: anywhere; }
  #quotes tr:has(textarea) td { height: 14mm; }
}
