/* Holz Adrian 2027 – Zuschnitt & Holzliste. Baut auf treppe.css auf (Formular, Zeichenbrett, Zettel unter .ha27-tp);
   hier nur, was der Zuschnitt zusätzlich hat: Materialwahl, Trefferliste, gewählter Artikel, Teile-Zeilen, Preisvorschau. */

.ha27-zs .zs-modus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.ha27-zs .zs-modus button { display: grid; justify-items: start; gap: .15rem; padding: .7rem .9rem; text-align: left; }
.ha27-zs .zs-modus b { font-weight: 900; font-stretch: 80%; text-transform: uppercase; font-size: 1.25rem; line-height: 1; font-family: var(--display); }
.ha27-zs .zs-modus small { font: 13px/1.3 var(--mono); opacity: .75; }

.ha27-zs .zs-treffer { display: grid; gap: .35rem; max-height: 22rem; overflow-y: auto; margin: 0; padding: 0; list-style: none; overscroll-behavior: contain; }
.ha27-zs .zs-treffer:empty { display: none; }
.ha27-zs .zs-treffer button { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: .7rem; align-items: center; width: 100%; padding: .4rem .6rem .4rem .4rem; border: 1.5px solid var(--line-d); border-radius: 6px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.ha27-zs .zs-treffer button:hover, .ha27-zs .zs-treffer button:focus-visible { border-color: var(--ink); }
.ha27-zs .zs-treffer img, .ha27-zs .zs-treffer__leer { width: 48px; height: 38px; object-fit: cover; border-radius: 3px; background: var(--sawdust-2); }
.ha27-zs .zs-treffer b { display: block; font-size: 14px; line-height: 1.25; }
.ha27-zs .zs-treffer small { display: block; font: 13px/1.4 var(--mono); opacity: .7; }

.ha27-zs .zs-wahl__karte { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .7rem; border: 2px solid var(--ink); border-radius: 6px; background: #fff; }
.ha27-zs .zs-wahl__karte img { width: 64px; height: 48px; object-fit: cover; border-radius: 3px; }
.ha27-zs .zs-wahl__karte b { display: block; font-size: 15px; line-height: 1.25; }
.ha27-zs .zs-wahl__karte small { display: block; font: 13px/1.45 var(--mono); opacity: .75; }

.ha27-zs fieldset[disabled] { opacity: .45; }
.ha27-zs .zs-teile { display: grid; gap: .5rem; }
.ha27-zs .zs-teil { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .5rem .7rem; padding: .6rem .7rem; border: 1.5px solid var(--line-d); border-radius: 6px; background: #fff; }
.ha27-zs .zs-teil__nr { align-self: center; min-width: 1.6rem; font: 700 13px var(--mono); color: var(--walnut); }
.ha27-zs .zs-teil label { display: grid; gap: .2rem; }
.ha27-zs .zs-teil input[type="text"] { width: 6.5rem; height: 42px; }
.ha27-zs .zs-teil .zs-teil__n input[type="text"] { width: 4.5rem; }
.ha27-zs .zs-teil select { height: 42px; min-width: 7rem; }
.ha27-zs .zs-teil__x { display: flex !important; align-items: center; gap: .4rem; min-height: 42px; font: 13px var(--mono); cursor: pointer; }
.ha27-zs .zs-teil__kanten { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-height: 42px; }
.ha27-zs .zs-teil__kanten > .zs-label { margin-right: .2rem; }
.ha27-zs .zs-teil__kanten label { display: flex; align-items: center; gap: .25rem; font: 700 13px var(--mono); cursor: pointer; }
.ha27-zs .zs-teil__weg { margin-left: auto; align-self: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; opacity: .55; }
.ha27-zs .zs-teil__weg:hover { opacity: 1; background: rgba(163,50,31,.12); color: var(--warn); }
.ha27-zs input[type="checkbox"] { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }

.ha27-zs #zs-cap.is-fehler { color: var(--warn-hell); }
.ha27-zs .zl-msg.is-ok { color: var(--green); font-weight: 700; }
.ha27-zs .zl-msg a { text-decoration: underline; }
.ha27-zs .zs-preis__t { width: 100%; max-width: 34rem; margin: .4rem 0 .6rem; border-collapse: collapse; font-size: 14.5px; }
.ha27-zs .zs-preis__t th, .ha27-zs .zs-preis__t td { padding: .45rem 0; border-top: 1px dashed var(--line-d); text-align: left; font-weight: 400; }
.ha27-zs .zs-preis__t th { font: 13px var(--mono); opacity: .8; }
.ha27-zs .zs-preis__t td { text-align: right; font-weight: 700; }
.ha27-zs .zs-preis__summe th, .ha27-zs .zs-preis__summe td { border-top: 2px solid var(--ink); font-size: 17px; opacity: 1; }
.ha27-zs .zs-ask { scroll-margin-top: 4px; }

@media (max-width: 560px) {
  .ha27-zs .zs-modus { grid-template-columns: minmax(0, 1fr); }
  .ha27-zs .zs-teil input[type="text"] { width: 5.5rem; }
  .ha27-zs .zs-wahl__karte { grid-template-columns: minmax(0, 1fr); }
  .ha27-zs .zs-wahl__karte img { display: none; }
}
@media print {
  .ha27-zs .zs-ask, .ha27-zs .zs-modus, .ha27-zs .zs-treffer, .ha27-zs #zs-plus, .ha27-zs .zs-teil__weg { display: none !important; }
}

/* Zettel wie im Entwurf (0.12.0): Preis je Position, Plattenwahl in der Eingabe */
.ha27-zs .zl__preis { display: block; margin-top: .2rem; font: 700 13px/1.4 var(--mono); color: var(--green); }
.ha27-zs .zl__preis:empty { display: none; }
.ha27-zs .zl__preis.is-anfrage { color: var(--walnut); }
.ha27-zs .zs-preis .is-err { color: var(--warn); font-weight: 700; }
.ha27-zs #zs-suchbox { display: grid; gap: .45rem; }
.ha27-zs .zs-wahl__karte .zs-pill { white-space: nowrap; }
.ha27-zs .zl-msg.is-note { color: var(--walnut); font-weight: 700; }
@media print { .ha27-zs .zl__preis, .ha27-zs .zs-preis { display: none !important; } }

/* Balkenliste (KVH/BSH im Grobzuschnitt nach Liste): Hinweis zu Lieferzeit und Anfrage, Zeile „aus Rohbalken …“ */
.ha27-zs .zs-bl-info { display: grid; gap: .35rem; margin-bottom: .9rem; padding: .75rem .9rem; border: 1.5px solid var(--line-d); border-left: 4px solid var(--spray-dark); border-radius: 6px; background: #fff; font-size: 14px; line-height: 1.45; }
.ha27-zs .zs-bl-info p { margin: 0; }
.ha27-zs .zs-bl-info a { color: var(--spray-dark); font-weight: 700; text-decoration: underline; }
.ha27-zs .zs-bl-roh { margin: -.25rem 0 .75rem; font-weight: 700; }
.ha27-zs .zs-bl-roh.is-ok { color: var(--spray-dark); }
.ha27-zs .zs-bl-roh.is-hobel { color: var(--walnut); }
.ha27-zs .zs-bl-roh.is-err { color: var(--warn); }
.ha27-zs .zs-bsh { display: grid; gap: .2rem; }
.ha27-zs .zs-bsh[hidden] { display: none; }
/* Lieferzeit der Balkenliste: zwei Schalter mit Summe und Ersparnis (assets/js/zuschnitt.js zeitHtml) */
.ha27-zs .zs-zeit { margin: .4rem 0 1rem; }
.ha27-zs .zs-zeit__wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .35rem; }
.ha27-zs .zs-zeit__wahl button { display: grid; justify-items: start; gap: .15rem; min-height: 64px; padding: .65rem .8rem; border: 2px solid var(--line-d); border-radius: 8px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.ha27-zs .zs-zeit__wahl button[aria-pressed="true"] { border-color: var(--spray-dark); box-shadow: inset 0 0 0 1px var(--spray-dark); background: #f3f9f4; }
.ha27-zs .zs-zeit__wahl button:focus-visible { outline: 3px solid var(--spray-dark); outline-offset: 2px; }
.ha27-zs .zs-zeit__t { font: 900 1.05rem/1 var(--display); font-stretch: 80%; text-transform: uppercase; }
.ha27-zs .zs-zeit__wahl small { font: 13px/1.3 var(--mono); opacity: .8; }
.ha27-zs .zs-zeit__wahl b { font-size: 1.05rem; }
.ha27-zs .zs-zeit__spar { display: inline-block; padding: .1rem .45rem; border-radius: 99px; background: var(--spray-dark); color: #fff; font: 700 13px var(--mono); }
@media (max-width: 420px) { .ha27-zs .zs-zeit__wahl { grid-template-columns: 1fr; } }
