/* ============ Device photos — shared by active + completed repairs ============ */

.dph-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dph-thumb {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(120, 140, 170, 0.28);
    background: #eef2f8;
    cursor: zoom-in;
    flex: 0 0 auto;
}
.dph-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.dph-tag {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(10, 25, 50, 0), rgba(10, 25, 50, 0.78));
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-align: center;
    padding: 9px 3px 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dph-del {
    position: absolute;
    top: 3px; right: 3px;
    width: 19px; height: 19px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 25, 45, 0.62);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: none;
    padding: 0;
}
.dph-thumb:hover .dph-del { display: block; }
.dph-del:hover { background: #DC2626; }

.dph-add {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    border: 1.5px dashed rgba(120, 140, 170, 0.5);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    cursor: pointer;
    color: #64748b;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    flex: 0 0 auto;
}
.dph-add:hover { border-color: #1a5fa8; background: rgba(26, 95, 168, 0.06); color: #1a5fa8; }
.dph-add-i { font-size: 19px; font-weight: 300; line-height: 1; }
.dph-add-t { font-size: 9.5px; font-weight: 700; letter-spacing: 0.2px; }

.dph-none { font-size: 12.5px; color: #94a3b8; }

.dph-msg { font-size: 11.5px; color: #64748b; margin-top: 6px; min-height: 0; }
.dph-msg:empty { display: none; }
.dph-msg.err {
    color: #991b1b;
    font-weight: 600;
    font-size: 12.5px;
    line-height: 1.45;
    background: rgba(220, 38, 38, 0.07);
    border: 1px solid rgba(220, 38, 38, 0.28);
    border-radius: 9px;
    padding: 9px 12px;
    max-width: 460px;
}

.dph.busy { opacity: 0.65; pointer-events: none; }

/* ── lightbox ── */
.dph-lb {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 30px;
    background: rgba(8, 18, 35, 0.86);
    backdrop-filter: blur(4px);
}
.dph-lb.open { display: flex; }
.dph-lb img {
    max-width: min(94vw, 1100px);
    max-height: 82vh;
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    background: #fff;
}
.dph-lb-cap {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12.5px;
    font-family: var(--font-num);
    text-align: center;
}
.dph-lb-x {
    position: absolute;
    top: 18px; right: 22px;
    width: 38px; height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.dph-lb-x:hover { background: rgba(255, 255, 255, 0.26); }
/* The phase tag on each thumbnail ("In Progress", "Completed") is gone: the
   photos sit under the ticket's own stepper, which already says the phase. */
.dph-tag { display: none !important; }

/* ── Phone: photos taken on a phone, through a QR code (Luis, 2026-10-15) ──
   The tile sits beside Add and looks like it; the code opens in a card in the
   middle of the screen. Arrives on the house curve, leaves quicker. */
button.dph-phone {
    font: inherit;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    gap: 3px;
}
.dph-phone .dph-ico { width: 21px; height: 21px; }
.dph-phone.busy { opacity: 0.55; pointer-events: none; }

.dph-qr {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0);
    transition: background 0.2s ease;
}
.dph-qr.open { background: rgba(15, 23, 42, 0.32); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.dph-qr.closing { background: rgba(15, 23, 42, 0); transition-duration: 0.18s; }

.dph-qr-card {
    width: 360px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 22px 22px 18px;
    border-radius: 24px;
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(15, 23, 42, 0.08);
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    transition: opacity 0.18s ease-in, transform 0.18s ease-in;
}
.dph-qr.open .dph-qr-card {
    opacity: 1;
    transform: none;
    transition: opacity 0.25s ease, transform 0.42s var(--ease-liquid, cubic-bezier(.22, 1.12, .36, 1));
}

.dph-qr-head { display: flex; align-items: center; gap: 12px; }
.dph-qr-badge {
    flex: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: #f5f5f7;
    display: flex; align-items: center; justify-content: center;
}
.dph-qr-badge .dph-ico { width: 24px; height: 24px; }
.dph-qr-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.dph-qr-ticket { font-family: var(--font-num, ui-monospace, monospace); font-size: 12.5px; color: #6e6e73; margin-top: 1px; }

.dph-qr-code {
    position: relative;
    width: 224px;
    height: 224px;
    margin: 18px auto 14px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #fff;
}
.dph-qr-svg svg { display: block; width: 100%; height: 100%; }
.dph-qr-gone {
    position: absolute; inset: 0;
    display: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    font-size: 14px;
}
.dph-qr-code.expired .dph-qr-gone { display: flex; }
.dph-qr-new {
    border: 0; border-radius: 17px; height: 34px; padding: 0 18px;
    background: #1d1d1f; color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}

.dph-qr-steps { margin: 0; padding: 0 0 0 20px; font-size: 13.5px; line-height: 1.5; color: #424245; }
.dph-qr-steps li + li { margin-top: 2px; }

.dph-qr-live { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(0, 0, 0, 0.07); }
.dph-qr-count { font-size: 12.5px; font-weight: 600; color: #6e6e73; }
.dph-qr-live.full .dph-qr-count { color: #1a7f37; }
.dph-qr-thumbs { display: flex; gap: 6px; margin-top: 8px; min-height: 44px; }
.dph-qr-thumbs:empty { min-height: 0; margin-top: 0; }
.dph-qr-thumb {
    width: 44px; height: 44px;
    border-radius: 9px;
    overflow: hidden;
    background: #eef2f8;
    animation: dphQrIn 0.42s var(--ease-liquid, cubic-bezier(.22, 1.12, .36, 1)) both;
}
.dph-qr-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes dphQrIn { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }

.dph-qr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.dph-qr-exp { font-size: 12px; color: #86868b; }
.dph-qr-exp.err { color: #b91c1c; font-weight: 600; }
.dph-qr-done {
    flex: none;
    border: 0; border-radius: 19px; height: 38px; padding: 0 24px;
    background: #1d1d1f; color: #fff;
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.dph-qr-done:hover, .dph-qr-new:hover { background: #3a3a3c; }

@media (prefers-reduced-motion: reduce) {
    .dph-qr-card, .dph-qr.open .dph-qr-card { transform: none; transition: opacity 0.15s ease; }
    .dph-qr-thumb { animation: none; }
}
