/* Arbeitsplatz auf Tablet und Desktop (Fabian 6.11.2026, public/arbeitsplatz.js, public/arbeitsplatz-zuschnitt.js). Schwarz auf Weiss, grosse Bedienflächen auch am Desktop. */
.ap-kopfzeile { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 10px 0 14px; }
.ap-feld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.ap-feld select, .ap-feld input { min-height: 48px; font-size: 16px; color: var(--ink); }
.ap-wc { flex: 1 1 280px; max-width: 420px; }
.person-bar.ap-feld { flex: 1 1 220px; max-width: 340px; }
.ap-filter { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin: 16px 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.ap-suche { flex: 1 1 240px; }
.ap-haken { display: flex; align-items: center; gap: 8px; min-height: 48px; font-size: 15px; color: var(--ink); }
.ap-haken input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: #111; }
.ap-filter .btn-secondary { min-height: 48px; }
.ap-filter [hidden] { display: none; }
.ap-zaehler { flex: 1 1 100%; font-size: 14px; color: var(--muted); }
.ap-stand { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 10px; margin-bottom: 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 14px; }
.ap-stand b { font-size: 15px; }
.ap-stand-bereit b { color: var(--green); }
.ap-stand-wartet { background: var(--surface2); }
.ap-stand-unterlagen { background: var(--amberbg); border-color: var(--amber); }
.ap-stand-unterlagen b { color: var(--amber); }
.ap-bilder { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 10px; align-items: stretch; margin: 10px 0; }
.ap-zeichnung { display: flex; align-items: center; justify-content: center; min-height: 100px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.ap-zeichnung img { display: block; width: 100%; max-height: 120px; object-fit: contain; }
.ap-qr { display: block; width: 100px; height: 100px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.op-card .actions { flex-wrap: wrap; }
.op-card .actions .btn-done, .op-card .actions .btn-break { flex: 1 1 40%; }
.op-card .actions .btn, .op-card .actions .btn-secondary { flex: 1 1 100%; justify-content: center; min-height: 52px; height: auto; }
.op-card .actions .ap-details-knopf { font-weight: 600; }
.ap-dateien { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.ap-dateien-kopf { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ap-dateien-kopf small { color: var(--muted); }
.ap-datei-knopf { margin-left: auto; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; }
.ap-stueck { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.ap-stueck select { min-height: 44px; }
.ap-seite h1 { margin-top: 12px; }
.ap-zurueck { display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px; }
.ap-details-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 12px; align-items: start; }
.ap-details-raster .card { margin-bottom: 0; min-width: 0; }
.ap-breit { grid-column: 1 / -1; }
.ap-gross { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #fff; }
.ap-dl { display: grid; grid-template-columns: minmax(90px, auto) minmax(0, 1fr); gap: 4px 12px; margin: 6px 0; }
.ap-dl dt { color: var(--muted); }
.ap-dl dd { margin: 0; overflow-wrap: anywhere; }
.ap-zeile { margin: 3px 0; }
.ap-fett { font-weight: 600; }
.ap-grau { color: var(--muted); }
.ap-warn { color: var(--red); font-weight: 500; }
.ap-fehlt { color: var(--amber); font-weight: 500; margin: 6px 0; }
.ap-ober { margin: 10px 0; padding-top: 8px; border-top: 1px solid var(--line); }
.ap-aufbau td, .ap-aufbau th { padding: 6px 8px; text-align: left; }
.ap-schritte { list-style: none; padding: 0; margin: 0; }
.ap-schritte li { padding: 8px 0 8px 12px; border-left: 3px solid var(--line2); }
.ap-schritte small { color: var(--muted); }
.ap-schritt-done { border-left-color: var(--green) !important; }
.ap-schritt-running, .ap-schritt-ready { border-left-color: var(--ink) !important; }
.ap-dokumente { margin: 6px 0; padding-left: 18px; }
.ap-programme { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.ap-bruch { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.ap-bruch small { color: var(--muted); }
.ap-info { max-height: 70vh; overflow: auto; }
.ap-z-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 14px 0; align-items: start; }
.ap-z-karte { margin-bottom: 0; min-width: 0; }
.ap-z-karte h2 { font-size: 17px; }
.ap-z-karte h2 small { font-size: 13px; color: var(--muted); font-weight: 400; }
.ap-z-bock { grid-column: 1 / -1; }
.ap-z-zeile { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ap-z-zeile strong, .ap-z-zeile small { display: block; }
.ap-z-zeile small { color: var(--muted); margin-top: 3px; font-size: 13px; }
.ap-z-zeile small.ap-warn { color: var(--red); }
.ap-z-offen strong { font-weight: 700; }
.ap-z-fotos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ap-z-fotos img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.ap-z-bock select, .ap-z-bock input:not([type=checkbox]) { min-height: 48px; font-size: 16px; width: 100%; box-sizing: border-box; }
.ap-z-scan, .ap-z-form { margin-top: 12px; }
.ap-z-scanzeile { display: flex; gap: 8px; }
.ap-z-scanzeile input { flex: 1 1 auto; min-width: 0; }
.ap-z-scanzeile button { min-height: 48px; flex: none; }
.ap-z-form button[type=submit] { min-height: 52px; width: 100%; margin-top: 8px; }
.ap-z-meldung { min-height: 1.2em; margin: 8px 0; overflow-wrap: anywhere; }
.ap-caption { margin: 12px 0 4px; font-size: 12px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
/* Satz unter der Bockfolge (Fabian 8.11.2026: zuletzt eingescannt wird zuerst produziert) */
.ap-hinweis { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.ap-z-folge { margin: 0; padding-left: 26px; }
.ap-z-folge li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ap-z-folge small { display: block; font-size: 13px; color: var(--muted); }
.ap-z-folge small.ap-warn { color: var(--red); }
.ap-z-erste { font-weight: 600; }
.ap-z-links { margin-top: 12px; }
.ap-z-links .btn { display: inline-flex; align-items: center; min-height: 44px; }
/* Lage auf dem Bock (public/bock-lage.js) */
.bl { margin: 12px 0; padding: 12px; border: 2px solid var(--ink, #111); border-radius: 10px; background: #fff; }
.bl-titel { font-weight: 600; font-size: 16px; }
.bl-hilfe { margin: 4px 0; font-size: 13px; color: var(--muted, #5f646b); }
.bl-bild { display: block; width: 100%; max-width: 320px; margin: 8px auto; }
.bl-text { font-size: 17px; font-weight: 600; text-align: center; margin: 6px 0; }
.bl-saug { text-align: center; font-weight: 500; }
.bl-warn { margin: 6px 0; font-weight: 600; color: var(--red, #b42318); }
.bl-eig { margin: 6px 0; padding-left: 18px; font-size: 14px; }
.bl-eig:empty { display: none; }
.bl-knoepfe { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 8px; }
.bl-knoepfe button { min-height: 52px; font-size: 16px; }
.bl-knoepfe .bl-an { background: #111; color: #fff; border-color: #111; }
.bl-kurz { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink, #111); }
.bl-offen { color: var(--red, #b42318); font-weight: 600; }
.bl-mini { width: 44px; height: 44px; border: 1px solid var(--line, #e6e8eb); border-radius: 4px; }
.ap-z-ungeklaert { width: 100%; min-height: 48px; margin-top: 8px; }
.ap-z-folge .btn-sm { min-height: 44px; margin-top: 4px; }
@media (max-width: 760px) {
  .ap-wc, .person-bar.ap-feld { max-width: none; flex-basis: 100%; }
  .ap-feld { flex-basis: 100%; }
}
/* Schritt 4 «Schneiden und abstellen» (6.11.2026): Scheiben der gemeldeten Tafel als Vorschlag fürs Abstellen (public/arbeitsplatz-zuschnitt.js tafelHtml) */
.ap-z-tafel { list-style: none; margin: 0 0 8px; padding: 0; }
.ap-z-tafel-zeile { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ap-z-tafel-zeile b, .ap-z-tafel-zeile small { display: block; }
.ap-z-tafel-zeile small { color: var(--muted); font-size: 13px; }
.ap-z-tafel-zeile .btn-sm { min-height: 44px; flex: none; }
