
/* V22.4 品檢拍照 + 檢驗回報 */
.qtask-report{color:#0b5f8a!important;border-color:#9bc8df!important;background:#f4fbff!important;font-weight:800}
.qtask-report:hover{background:#e7f6fd!important}
.qreport-modal{position:fixed;inset:0;z-index:10030;background:rgba(7,25,38,.64);display:flex;align-items:center;justify-content:center;padding:18px}
.qreport-modal.hidden{display:none}
.qreport-dialog{width:min(760px,96vw);max-height:92vh;overflow:auto;background:#fff;border-radius:16px;box-shadow:0 24px 80px rgba(0,0,0,.28);border:1px solid #cbdbe6}
.qreport-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:18px 20px;border-bottom:1px solid #dbe6ed;background:#f6fafc}
.qreport-head h3{margin:0;color:#0b3a61;font-size:20px}.qreport-head p{margin:5px 0 0;color:#607684;font-size:12px}
.qreport-close{border:0;background:#e9f1f6;color:#173f5d;border-radius:50%;width:36px;height:36px;font-size:18px;cursor:pointer}
.qreport-body{padding:18px 20px}
.qreport-summary{display:flex;flex-direction:column;gap:4px;padding:12px 14px;background:#edf6fb;border:1px solid #c9dfe9;border-radius:10px;color:#143d58;margin-bottom:14px}
.qreport-summary b{font-size:15px}.qreport-summary span{font-size:12px;color:#5c7383}
.qreport-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.qreport-field{display:flex;flex-direction:column;gap:6px}.qreport-field.full{grid-column:1/-1}
.qreport-field label{font-size:12px;font-weight:800;color:#294f68}
.qreport-field input,.qreport-field select,.qreport-field textarea{width:100%;border:1px solid #c7d7e1;border-radius:9px;background:#fff;min-height:42px;padding:9px 10px;font:inherit;color:#17384e;box-sizing:border-box}
.qreport-field textarea{min-height:96px;resize:vertical}
.qreport-photo-box{border:1px solid #cbdbe5;border-radius:10px;padding:12px;background:#f9fcfd}
.qreport-photo-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.qreport-photo-head b{color:#0b3a61}.qreport-photo-head span{font-size:11px;color:#607684}
.qreport-photo-actions{display:flex;gap:8px;margin-top:9px;flex-wrap:wrap}
.qreport-photo-actions button{border:1px solid #aac5d6;background:white;color:#0b4e75;border-radius:8px;padding:8px 12px;font-weight:800;cursor:pointer}
.qreport-photo-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
.qreport-photo-item{position:relative;aspect-ratio:4/3;border-radius:8px;overflow:hidden;border:1px solid #d3e0e7;background:#fff}
.qreport-photo-item img{width:100%;height:100%;object-fit:cover}.qreport-photo-item button{position:absolute;right:5px;top:5px;width:28px;height:28px;border:0;border-radius:50%;background:rgba(20,35,47,.82);color:#fff;font-weight:900}
.qreport-msg{font-size:12px;min-height:20px;margin-top:8px;color:#607684}.qreport-msg.ok{color:#247d50}.qreport-msg.warn{color:#a36818}.qreport-msg.bad{color:#b42318}
.qreport-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.qreport-history-title{margin:20px 0 8px;color:#0b3a61;font-size:14px}
.qreport-history{display:flex;flex-direction:column;gap:8px}
.qreport-history-item{border:1px solid #d6e2e9;border-radius:10px;padding:10px 12px;background:#fff}
.qreport-history-head{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:#647987}.qreport-history-head b{font-size:12px;color:#0b5c88}
.qreport-history-text{font-size:12px;color:#263f50;margin-top:6px;white-space:pre-wrap}
.qreport-history-photos{display:flex;gap:7px;margin-top:8px;flex-wrap:wrap}.qreport-history-photos img{width:86px;height:64px;object-fit:cover;border-radius:7px;border:1px solid #d5e0e7;cursor:pointer}
.qreport-empty{padding:12px;border:1px dashed #c7d6df;border-radius:8px;color:#70828e;text-align:center;font-size:11px}
.qreport-lightbox{position:fixed;inset:0;z-index:10060;background:rgba(4,15,24,.9);display:flex;align-items:center;justify-content:center;padding:18px}.qreport-lightbox.hidden{display:none}
.qreport-lightbox img{max-width:96vw;max-height:88vh;object-fit:contain;border-radius:8px;background:#fff}.qreport-lightbox button{position:fixed;top:18px;right:18px;width:42px;height:42px;border:0;border-radius:50%;background:#fff;color:#173c57;font-size:22px;font-weight:900}
@media(max-width:700px){.qreport-grid{grid-template-columns:1fr}.qreport-field.full{grid-column:1}.qreport-dialog{width:98vw;max-height:94vh}.qreport-head,.qreport-body{padding-left:14px;padding-right:14px}.qreport-photo-preview{grid-template-columns:repeat(3,1fr)}}
