/* Details of an individual captured order; the general order form remains intact. */
#createIndividual .pep-capture-legacy{display:none!important}
#createIndividual #pepCaptureDetails{min-width:0;margin:12px 0;border:1px solid #d5dfe7;border-radius:12px;padding:14px;background:#f8fafc}
.pep-capture-heading,.pep-capture-detail-head,.pep-capture-page-nav,.pep-capture-material-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.pep-capture-heading{margin-bottom:12px}.pep-capture-heading h2{font-size:17px;color:var(--navy);margin:0}
.pep-capture-heading .pep-svg-icon,.pep-capture-page-nav .pep-svg-icon,.pep-capture-material-head .pep-svg-icon{width:18px;height:18px;vertical-align:middle;margin-right:4px}
.pep-capture-list{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.pep-capture-list button{border:1px solid #c9d5df;background:#fff;border-radius:8px;color:var(--navy);font-weight:650;padding:9px 13px;max-width:100%;overflow-wrap:anywhere}
.pep-capture-list button.on{background:#e6eff8;border-color:#91b1ce}
.pep-capture-editor{background:#fff;border:1px solid #cbd7e0;border-radius:11px;padding:13px;min-width:0}
.pep-capture-detail-head{align-items:end;margin-bottom:12px}.pep-capture-detail-head label{display:grid;gap:5px;flex:1;min-width:0;font-size:12px;font-weight:700;color:#536778}
.pep-capture-detail-head input,.pep-capture-audio textarea,.pep-capture-photo-list textarea,.pep-capture-pane textarea,.pep-capture-material-row input,.pep-capture-material-row select{width:100%;min-width:0;background:#fff;border:1px solid #bfcbd6;border-radius:8px;color:var(--text);padding:10px;font-size:15px}
.pep-capture-remove{width:42px;height:42px;flex:none;border:1px solid #d6dde5;border-radius:8px;background:#fff;color:#9f4040}.pep-capture-remove .pep-svg-icon{width:20px;height:20px}
.pep-capture-tools{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.pep-capture-tool{min-height:42px;display:inline-flex;gap:6px;align-items:center;justify-content:center;padding:8px 10px;border:1px solid #cbd6df;border-radius:9px;background:#fff;color:var(--navy);font-weight:650;font-size:13px}
.pep-capture-tool .pep-svg-icon{width:20px;height:20px;flex:none}
.pep-capture-more{display:none;position:relative}.pep-capture-more summary{list-style:none;display:grid;place-items:center;min-width:42px;min-height:42px;border:1px solid #cbd6df;border-radius:9px;background:#fff;cursor:pointer}.pep-capture-more summary::-webkit-details-marker{display:none}.pep-capture-more summary .pep-svg-icon{width:21px;height:21px}
.pep-capture-more>div{position:absolute;right:0;top:48px;z-index:28;width:min(255px,calc(100vw - 48px));padding:8px;display:grid;gap:5px;background:#fff;border:1px solid #cbd6df;border-radius:10px;box-shadow:0 10px 28px #17345125}.pep-capture-more .pep-capture-tool{justify-content:flex-start;width:100%}
.pep-capture-photo-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));gap:10px;margin:8px 0}.pep-capture-photo-list>div{border:1px solid #d6dfe6;border-radius:9px;padding:7px;min-width:0}.pep-capture-photo-list img{width:100%;height:125px;object-fit:cover;border-radius:6px}.pep-capture-photo-list textarea{min-height:70px;margin:6px 0}
.pep-capture-audio{margin-bottom:14px}.pep-capture-audio>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:7px}.pep-capture-audio audio{max-width:100%;height:36px}.pep-capture-audio label,.pep-capture-pane label{display:grid;gap:5px;color:#536778;font-weight:650;font-size:13px}.pep-capture-audio textarea{min-height:62px}.pep-capture-pane{margin-top:12px}.pep-capture-pane textarea{min-height:140px;resize:vertical;line-height:1.5}
.pep-capture-page-nav{align-items:flex-start;flex-wrap:wrap;margin-bottom:8px}.pep-capture-page-nav strong{font-size:13px}.pep-capture-page-nav>div{display:flex;gap:5px;flex-wrap:wrap}
#pepCaptureCanvas{display:block;width:min(100%,650px);height:auto;aspect-ratio:3/4;margin:auto;border:1px solid #cfd8df;border-radius:6px;background-color:#fff;background-image:radial-gradient(#d8dfe5 0.7px,transparent 0.8px);background-size:18px 18px;touch-action:none;cursor:crosshair}
.pep-capture-material-head{margin-bottom:8px}.pep-capture-material-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 90px 43px;gap:6px;margin-bottom:7px}.pep-capture-material-row .pep-svg-icon{width:19px;height:19px}
.pep-captured-summary{margin:14px 0;padding:16px;background:#f6f8fa;border:1px solid #cbd7e0;border-radius:11px;overflow-wrap:anywhere}.pep-captured-summary h3,.pep-captured-summary h4{margin:0 0 8px;color:var(--navy)}.pep-captured-summary>div{border-top:1px solid #dce4ea;padding:10px 0}.pep-captured-summary p{white-space:pre-wrap;line-height:1.5}.pep-captured-summary small{color:#536778}
#ordersTable .badge.captured{background:#e8edf1;color:#243d52}#ordersTable select[aria-label^="Bauleiter für Auftrag"]{min-height:40px;max-width:190px;border:1px solid #bfcbd6;background:#fff;border-radius:8px;padding:7px;color:var(--text)}
@media(max-width:760px){#createIndividual #pepCaptureDetails{padding:10px}.pep-capture-editor{padding:10px}.pep-capture-tools>.pep-capture-tool{display:none}.pep-capture-more{display:block;margin-left:auto}.pep-capture-heading h2{font-size:15px}.pep-capture-heading .btn{white-space:nowrap}.pep-capture-material-row{grid-template-columns:minmax(0,1fr) 74px 70px 40px}.pep-capture-material-row input,.pep-capture-material-row select{padding:8px 5px;font-size:14px}.pep-capture-page-nav .btn{min-height:38px}}

/* Dieselben Werkzeuge und das punktierte Blatt wie im Bereich Notizen. */
#createIndividual .pep-capture-note-toolbar{position:static;min-height:58px;padding:4px 0 9px;gap:7px}
#createIndividual .pep-capture-note-toolbar .pep-note-tool{width:44px;height:44px;flex-basis:44px;border:1px solid var(--pep-control-border);border-radius:11px;background:#fff;color:var(--navy)}
#createIndividual .pep-capture-note-toolbar .pep-note-tool.on{background:var(--pep-control-active-bg);border-color:#91bfe8}
#createIndividual .pep-capture-note-toolbar .pep-note-tool svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#createIndividual .pep-capture-sheet{display:block;width:min(100%,720px);height:auto;min-height:0;aspect-ratio:3/4;margin:0 auto;position:relative;overflow:hidden;touch-action:none}
#createIndividual #pepCaptureCanvas{position:absolute;inset:0;z-index:3;width:100%;height:100%;aspect-ratio:auto;margin:0;border:0;border-radius:0;background:transparent;touch-action:none;cursor:crosshair}
#createIndividual .pep-capture-image-layer,#createIndividual .pep-capture-text-layer{position:absolute;inset:0;pointer-events:none}
#createIndividual .pep-capture-image-layer{z-index:2}
#createIndividual .pep-capture-text-layer{z-index:4}
#createIndividual .pep-capture-sheet.text-mode #pepCaptureCanvas{pointer-events:auto}
#createIndividual .pep-capture-sheet.text-mode .pep-capture-image-layer{z-index:5}
#createIndividual .pep-capture-sheet.text-mode .pep-capture-text-layer{z-index:6}
#createIndividual .pep-capture-image-object{position:absolute;line-height:0;touch-action:none;pointer-events:none;user-select:none}
#createIndividual .pep-capture-sheet.text-mode .pep-capture-image-object{pointer-events:auto}
#createIndividual .pep-capture-image-object img{display:block;width:100%;height:auto;pointer-events:none;border-radius:5px;box-shadow:0 3px 14px #102c5526}
#createIndividual .pep-capture-image-object.selected{outline:2px solid #246fba;outline-offset:2px}
#createIndividual .pep-capture-image-handle{display:none;position:absolute;right:-10px;bottom:-10px;width:25px;height:25px;border:3px solid #fff;border-radius:50%;background:#246fba;box-shadow:0 2px 8px #102c554d;touch-action:none}
#createIndividual .pep-capture-image-object.selected .pep-capture-image-handle{display:block}
#createIndividual .pep-capture-text-object{position:absolute;display:flex;align-items:stretch;min-width:95px;min-height:65px;pointer-events:auto;border:1px solid #8aaed0;border-radius:8px;background:#ffffffed}
#createIndividual .pep-capture-text-grip{min-width:26px;display:grid;place-items:center;cursor:grab;background:#e6f2fb;color:var(--navy);touch-action:none}
#createIndividual .pep-capture-text-object textarea{width:100%;min-height:65px;border:0!important;outline:0;background:transparent!important;padding:8px!important;font:500 16px/1.45 Inter,system-ui,sans-serif;resize:vertical;touch-action:auto}
#createIndividual .pep-capture-page-nav{width:min(100%,720px);margin:8px auto 13px}
#createIndividual .pep-capture-material-entry{display:grid;grid-template-columns:minmax(0,1fr) 100px 88px auto;gap:7px;margin:10px 0}
#createIndividual .pep-capture-material-entry input,#createIndividual .pep-capture-material-entry select{min-width:0;width:100%;background:#fff;border:1px solid #bfcbd6;border-radius:8px;padding:8px}
#createIndividual .pep-capture-material-row{grid-template-columns:minmax(0,1fr) 130px 43px;align-items:center;padding:6px;border:1px solid #d6dfe6;border-radius:7px}
#createIndividual .pep-capture-material-columns{display:grid;grid-template-columns:minmax(0,1fr) 130px 43px;gap:6px;padding:6px;color:#536778;font-size:12px;font-weight:700;text-transform:uppercase}
#createIndividual .pep-capture-pane[hidden]{display:none}
#createIndividual .pep-capture-list button:not(.on){background:#f9fbfc;color:#596d7b}
@media(max-width:650px){#createIndividual .pep-capture-note-toolbar{gap:5px}#createIndividual .pep-capture-note-toolbar .pep-note-tool{width:41px;height:41px;flex-basis:41px}#createIndividual .pep-capture-note-toolbar .pep-note-color{width:28px;height:28px;flex-basis:28px}#createIndividual .pep-capture-note-toolbar .pep-note-toolbar-spacer{flex-basis:100%;height:0}#createIndividual .pep-capture-material-entry{grid-template-columns:minmax(0,1fr) 70px 70px}#createIndividual .pep-capture-material-entry .btn{grid-column:1/-1}#createIndividual .pep-capture-material-row,#createIndividual .pep-capture-material-columns{grid-template-columns:minmax(0,1fr) 84px 40px}#createIndividual .pep-capture-detail-head{align-items:center}}

/* V10.7 GoodNotes-Arbeitsweise: Verschieben-Werkzeug, Entwurfsstatus, Kamera-Dialog */
#createIndividual .pep-capture-sheet.select-mode .pep-capture-image-layer{z-index:5}
#createIndividual .pep-capture-sheet.select-mode .pep-capture-image-object{pointer-events:auto;cursor:move}
#createIndividual .pep-capture-sheet.select-mode #pepCaptureCanvas{cursor:default}
#createIndividual .pep-capture-image-handle{width:30px;height:30px;right:-13px;bottom:-13px;pointer-events:auto;cursor:nwse-resize}
#createIndividual .pep-capture-image-object.selected{outline-width:2px}
.pep-capture-draft-state{flex:1 1 auto;margin:0 12px;font-size:12px;color:var(--muted,#6b7785);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pep-capture-draft-state .btn.text{padding:0 4px;min-height:0;font-size:12px}
@media(max-width:700px){.pep-capture-draft-state{order:3;flex-basis:100%;margin:4px 0 0;white-space:normal}}
.pep-camera-dialog{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:16px;background:#0b1b2ecc}
.pep-camera-box{width:min(760px,100%);max-height:100%;display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:14px;background:#fff;box-shadow:0 18px 50px #0006}
.pep-camera-head{display:flex;align-items:center;justify-content:space-between;color:var(--navy,#17365d)}
.pep-camera-head .pep-icon-only{width:36px;height:36px;border:0;background:transparent;color:inherit}
.pep-camera-head svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.pep-camera-stage{position:relative;min-height:220px;display:grid;place-items:center;border-radius:10px;overflow:hidden;background:#101820}
.pep-camera-stage video,.pep-camera-stage img{display:block;width:100%;max-height:65vh;object-fit:contain}
.pep-camera-hint{margin:0;padding:24px;color:#fff;text-align:center;font-size:14px}
.pep-camera-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pep-camera-actions>span{flex:1}

/* V10.8 Textfeld auf dem Notizblatt: Breite frei ziehbar */
#createIndividual .pep-capture-text-object{position:absolute}
#createIndividual .pep-capture-text-resize{position:absolute;right:-10px;top:50%;width:16px;height:34px;margin-top:-17px;border:3px solid #fff;border-radius:9px;background:#246fba;box-shadow:0 2px 8px #102c554d;cursor:ew-resize;touch-action:none}
