@import url('./inspection-recovery.css?v=471');
@import url('./precast-product.css?v=470');
#yard-report{--yard-example-size:clamp(72px,11vw,96px);--yard-photo-size:clamp(120px,18vw,160px);display:grid;gap:18px;min-width:0;color:var(--navy)}
#yard-report [hidden]{display:none!important}
.yard-card{background:#fff;border:1px solid var(--line,#d3dbe3);border-radius:12px;padding:clamp(16px,2.3vw,28px);min-width:0}
#yard-report h2,#yard-report h3{margin:0;color:var(--navy);line-height:1.25}
#yard-report h2{font-size:1.35rem}#yard-report h3{font-size:1.1rem}
.yard-head,.yard-actions,.yard-finish{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.yard-head,.yard-finish{justify-content:space-between}.yard-modal,.yard-card{box-sizing:border-box}
.yard-meta,.yard-product,.yard-pair{display:grid;gap:14px}
.yard-card:has(> .yard-meta), .yard-card:has(> .yard-product) { container-type: inline-size; }
.yard-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
@container (min-width: 48rem) {
 .yard-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.yard-meta > label, .yard-product > label { min-inline-size: 0; }
.yard-date { display: block; margin-top: 5px; }
.yard-date-value { display: none; }
.yard-product {
 grid-template-columns: minmax(0, 1fr);
 margin-top: 16px;
}
@container (min-width: 30rem) {
 .yard-product { grid-template-columns: minmax(8rem, .7fr) minmax(0, 1.6fr); }
 .yard-product-group { grid-column: 1 / -1; }
}
@container (min-width: 51rem) {
 .yard-product { grid-template-columns: minmax(8rem, .7fr) minmax(15rem, 1.2fr) minmax(19rem, 1.5fr); }
 .yard-product-group { grid-column: auto; }
}
.yard-product:has(.precast-identity:not([hidden])) .yard-product-group {grid-column:1 / -1}
#yard-report label,#yard-report legend{font-weight:650;font-size:.94rem;color:var(--navy)}
#yard-report input:not([type=radio]):not([type=checkbox]):not([type=file]),#yard-report select,#yard-report textarea{display:block;width:100%;min-width:0;height:auto;min-height:44px;box-sizing:border-box;color:var(--navy);padding:9px 11px;border:1px solid #b7c8d7;border-radius:7px;background:#fff;font:inherit;font-weight:450}
#yard-report label>input:not([type=checkbox]):not([type=file]),#yard-report label>select,#yard-report label>textarea{margin-top:5px}
#yard-report button,.yard-file{min-height:42px;padding:9px 15px;font-size:.9rem;border-radius:8px;cursor:pointer}
#yard-report button.secondary,.yard-file{background:#edf1f5;color:var(--navy);border:1px solid #cbd7e0}
#yard-report .yard-link{padding:6px 3px;color:#355a78;background:transparent;border:0;text-decoration:underline;text-underline-offset:3px}
#yard-report button:focus-visible,#yard-report input:focus-visible,#yard-report label:focus-within,#yard-report select:focus-visible{outline:2px solid #32688d;outline-offset:2px}
.yard-help,.yard-message,.yard-finish p{font-size:.9rem;color:#485f73;line-height:1.5;margin:8px 0}
.yard-message:empty{display:none}.yard-finish .yard-message{flex-basis:100%;margin:0}.yard-subhead{margin-top:24px;border-top:1px solid #dce4eb;padding-top:18px}
#yard-findings,#yard-photos{padding:0;margin:12px 0;list-style:none}
#yard-findings li{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #e0e6eb;padding:10px 0}
.yard-find-text{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
.yard-find-text span,.yard-find-text small{font-size:.88rem;color:#3b5266}
#yard-report .yard-check{display:flex;align-items:center;gap:8px;font-weight:500}
#yard-report input[type=checkbox],#yard-report input[type=radio]{width:18px;height:18px;min-height:0;margin:0;flex:none;accent-color:#225979}
.yard-dots{display:inline-flex;align-items:center;gap:3px;vertical-align:middle}.yard-dots i{height:9px;width:9px;border-radius:100%;background:#171d20}
#yard-report dialog{box-sizing:border-box;width:min(620px,95vw);max-width:95vw;max-height:90dvh;padding:0;border:1px solid #b4c4d1;border-radius:13px;color:var(--navy);background:white;overflow:auto}
#yard-report dialog::backdrop{background:rgba(17,37,56,.48)}.yard-modal{display:grid;gap:14px;padding:clamp(16px,3vw,28px)}
#yard-report fieldset{margin:0;padding:0;border:0;min-width:0}#yard-report legend{margin-bottom:6px}
.yard-pair{grid-template-columns:1.4fr 1fr}
#yard-report .yard-choice{display:flex;align-items:center;gap:8px;min-height:43px;padding:5px 7px;box-sizing:border-box;cursor:pointer;font-weight:500}
#yard-report .yard-choice:has(:checked){background:#eaf2f8;border-radius:6px}
.yard-step{display:flex;gap:5px;align-items:center}
#yard-report .yard-step input{width:86px;text-align:center}
.yard-file{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;box-sizing:border-box}
.yard-file input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
#yard-photos{display:flex;gap:8px;flex-wrap:wrap}#yard-photos:empty{display:none}#yard-photos figure{margin:0;width:min(100%,max(12rem,var(--yard-photo-size)));display:grid;align-content:start;gap:6px}#yard-photos img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:5px}#yard-photos button{padding:3px;min-height:32px;font-size:.8rem}
#yard-reasons{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:7px}
#yard-reasons button,#yard-report .yard-reason-current{display:flex;gap:9px;align-items:center;text-align:left;color:var(--navy);background:#f4f7f9;border:1px solid #cbd7de;font-weight:600;overflow-wrap:anywhere}
#yard-reasons button{padding:5px;font-size:.84rem}#yard-reasons img,#yard-choose img,.yard-other{width:var(--yard-example-size);height:var(--yard-example-size);object-fit:cover;flex:none;border-radius:5px;background:#e0e7ec}
.yard-other{display:grid;place-items:center;font-size:1.5rem}
#yard-reasons small,#yard-choose small{display:block;font-size:.75rem;font-weight:450;color:#496074}
#yard-draft-tools{margin-top:15px}#yard-draft-tools summary{cursor:pointer;font-size:.88rem}
#yard-draft-tools .yard-actions{margin-top:8px}#yard-report #yard-draft-list{width:auto;max-width:100%}
@media(max-width:640px){.yard-card{padding:14px}.yard-pair{grid-template-columns:1fr}.yard-pair fieldset{display:flex;flex-wrap:wrap}.yard-pair legend{margin-bottom:0}.yard-actions{gap:7px}}

@media (any-pointer: coarse), (max-width: 1180px) {
 /* Center the displayed date independently of the native picker’s internal layout. */
 .yard-date {
  position: relative;
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  min-inline-size: 0;
  inline-size: 100%;
  block-size: max(44px, 2.75rem);
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #b7c8d7;
  border-radius: 7px;
  background: white;
 }
 .yard-date-value {
  display: block;
  max-inline-size: 100%;
  text-align: center;
  font-size: max(16px, 1rem);
  font-weight: 450;
  line-height: 1.25;
  pointer-events: none;
 }
 #yard-report .yard-meta .yard-date input[type="date"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 0;
  font-size: max(16px, 1rem);
 }
 /* Show the browser’s editable segments when using a keyboard on a compact screen. */
 @media (any-pointer: fine) {
  .yard-date:has(input:focus-visible) .yard-date-value { visibility: hidden; }
  #yard-report .yard-meta .yard-date input:focus-visible { opacity: 1; }
 }
 .yard-date:focus-within { outline: 2px solid #32688d; outline-offset: 2px; }
 #yard-report .yard-meta label:has(.yard-date):focus-within { outline: none; }
}
@container (max-width: 19rem) {
 .yard-meta { grid-template-columns: minmax(0, 1fr); }
}

#yard-report ~ footer { display: none; }

.yard-tally-context {
 position: sticky;
 top: 0;
 z-index: 2;
 padding: 12px 0;
 margin-top: 16px;
 background: white;
 border-block: 1px solid #dce4eb;
}
#yard-photo-actions {
 flex-wrap: nowrap;
 justify-content: center;
 padding-block: .75rem;
 border-bottom: 1px solid #dce4eb;
}
#yard-report #yard-identify {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: .5rem;
 min-height: 44px;
 background: #255677;
 border: 1px solid #255677;
 color: white;
}
#yard-identify svg { flex: none; }
#yard-report #yard-identify:hover { background: #1a435e; }
#yard-current-product { font-size: .95rem; overflow-wrap: anywhere; }
#yard-family-grid {
 display: grid;
 gap: 10px;
 grid-template-columns: minmax(0, 1fr);
 align-items: start;
 margin: 12px 0 18px;
}
@container (min-width: 49rem) {
 #yard-family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.yard-family {
 border: 1px solid #cad6df;
 border-radius: 10px;
 background: white;
 overflow: clip;
}
.yard-family:has([aria-expanded="true"]) { border-color: #6489a3; }
#yard-report .yard-family-toggle {
 display: flex; align-items: center; gap: 10px;
 width: 100%; min-height: 64px; padding: 8px 12px; border: 0;
 color: var(--navy); background: white; text-align: left; scroll-margin-top: 68px;
}
#yard-report .yard-family-toggle[aria-expanded="true"] { background: #eef4f8; }
.yard-family-toggle img,.yard-family-toggle .yard-other {
 width: 48px; height: 48px; border-radius: 5px; object-fit: cover; flex: none;
}
.yard-family-toggle strong { flex: 1; min-width: 0; overflow-wrap: break-word; font-size: 1rem; line-height: 1.25; }
.yard-family-count { color: #174969; background: #e6eff5; padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.yard-toggle-sign { color: #42647e; font-size: 1.35rem; font-weight: 500; }
.yard-counter-panel {
 display: grid;
 gap: 12px;
 padding: 14px clamp(10px, 2vw, 18px);
 container-type: inline-size;
}
.yard-counter-panel > .yard-help { margin: 0; }
#yard-report .yard-counter-panel > .yard-link { justify-self: start; font-weight: 600; }
.yard-location-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.yard-location-options > :only-child { grid-column: 1 / -1; justify-self: start; }
@container (min-width: 33rem) {
 .yard-location-options { display: flex; flex-wrap: wrap; }
}
#yard-report .yard-location { min-height: 44px; padding: 6px 8px; border: 1px solid #c1cfda; color: var(--navy); background: white; line-height: 1.25; }
#yard-report .yard-location[aria-pressed="true"] { background: #204c6d; border-color: #204c6d; color: white; }
.yard-count-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
#yard-report .yard-count-table :is(td,th) { padding: 8px 4px; border: 0; background: transparent; color: var(--navy); text-transform: none; letter-spacing: normal; text-align: center; }
#yard-report .yard-count-table th { font-size: .91rem; font-weight: 650; line-height: 1.25; }
#yard-report .yard-count-table th:first-child { width: 25%; text-align: left; }
.yard-count-table thead { background: #f2f6f9; }
.yard-count-table tbody tr { border-bottom: 1px solid #e1e8ee; }
.yard-count-table small { display: block; margin-top: 3px; font-size: .8rem; color: #405972; font-weight: 450; }
.yard-counter {
 display: grid;
 grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
 align-items: stretch;
 max-width: 8rem;
 margin-inline: auto;
 border-radius: 8px;
 background: #eef5fa;
 box-shadow: inset 0 0 0 1px #b8cad8;
}
.yard-counter:has([data-change="minus"]:enabled) { background: #e2eef7; }
.yard-counter output { align-self: center; min-width: 2ch; padding-inline: 4px; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
#yard-report .yard-count-button {
 background: transparent;
 color: #164e73;
 border: 0;
 width: 100%;
 min-width: 0;
 min-height: 44px;
 padding: 0;
 font-size: 1.25rem;
 touch-action: manipulation;
}
#yard-report .yard-count-button:enabled:hover { background: #dceaf4; }
#yard-report .yard-count-button:enabled:active { background: #c7dce9; }
#yard-report .yard-count-button:disabled { opacity: .45; cursor: default; }
@container (max-width: 22rem) {
 .yard-count-table, .yard-count-table thead, .yard-count-table tbody { display: block; }
 .yard-count-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
 #yard-report .yard-count-table th:first-child { width: auto; }
 #yard-report .yard-count-table thead th:first-child { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); }
 #yard-report .yard-count-table tbody th { grid-column: 1 / -1; padding-bottom: 0; }
}
.yard-last { border-top: 1px solid #dce4eb; padding-top: 10px; margin-top: 5px; font-size: .9rem; }
.yard-last .yard-actions { margin-top: 6px; gap: 8px; }
#yard-history { margin: 16px 0; }
#yard-history summary { cursor: pointer; font-weight: 600; }
.yard-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#yard-edit-reference:empty { display: none; }
#yard-report #yard-reference { width: min(740px, 95vw); }
#yard-reference .yard-modal { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.yard-reference-strip {
 display: grid;
 grid-auto-flow: column;
 grid-auto-columns: 100%;
 overflow-x: auto;
 overscroll-behavior-x: contain;
 scroll-snap-type: x mandatory;
 height: min(52dvh, 470px);
 background: #edf1f4;
 border-radius: 7px;
}
.yard-reference-strip img {
 display: block;
 box-sizing: border-box;
 width: 100%;
 height: 100%;
 min-height: 0;
 object-fit: contain;
 scroll-snap-align: start;
}
.yard-reference-controls {
 display: grid;
 grid-template-columns: auto 1fr auto;
 align-items: center;
 gap: 6px;
}
.yard-reference-controls [data-position] { grid-column: 2; text-align: center; font-size: .94rem; }
#yard-report .yard-reference-controls button { min-height: 44px; }

.yard-box-criteria { margin: 0 0 8px; border-bottom: 1px solid #dce4eb; padding: 8px 0; }
.yard-box-criteria summary { cursor: pointer; font-weight: 650; padding: 8px 0; }
.yard-box-criteria :is(p,dl,ul,ol) { line-height: 1.5; }
.yard-box-criteria dt { margin-top: 10px; font-weight: 650; }
.yard-box-criteria dd { margin: 3px 0 0; }
.yard-box-criteria :is(ul,ol) { padding-inline-start: 1.5em; }
.yard-box-criteria li + li { margin-top: .4em; }
#yard-reference .yard-help { margin: 0; }

#yard-identify-dialog .photo-query { display:flex; gap:8px; }
#yard-identify-dialog .photo-query:empty { display:none; }
#yard-identify-dialog .photo-query img { flex:1; min-inline-size:0; width:0; height:clamp(120px,25vh,230px); object-fit:contain; background:#f1f3f5; border-radius:8px; }
#yard-identify-dialog .yard-file:has(:disabled) { opacity:.55; }
#yard-identify-dialog .photo-filters, .photo-candidates { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr)); gap:12px; }
#yard-identify-dialog .photo-filters { margin-bottom:20px; }
#yard-identify-dialog .photo-candidate { display:grid; align-content:start; justify-items:start; gap:7px; text-align:left; padding:8px; }
.photo-candidate img { width:100%; height:100px; object-fit:contain; background:white; border-radius:4px; }
