/* ===== JOB CARD FORM ===== */
.job-form { padding-bottom: 40px; }

.type-selector-panel {
    padding: 24px 16px;
    max-width: 600px;
    margin: 0 auto;
}

.type-selector-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 22px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.type-selector-btn:active,
.type-selector-btn:focus {
    border-color: #C8102E;
    box-shadow: 0 0 0 3px rgba(200,16,46,.1);
    outline: none;
}

.type-icon { font-size: 28px; }

/* ===== SNAG ITEM SCREEN ===== */
.snag-item-wrap {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.photo-section {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.photo-section h3 {
    font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .6px;
    color: #C8102E; margin-bottom: 12px;
}

.photo-preview {
    width: 100%; aspect-ratio: 4/3;
    border-radius: 8px; overflow: hidden;
    background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    position: relative;
    border: 1.5px solid #eee;
}

.photo-preview img { width: 100%; height: 100%; object-fit: cover; }

.photo-placeholder {
    display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    color: #bbb; font-size: 14px;
}

.photo-actions { display: flex; gap: 10px; }

.photo-btn {
    flex: 1; padding: 12px;
    background: #FCE4E8; color: #C8102E;
    border-radius: 8px; font-size: 14px; font-weight: 700;
    border: none; cursor: pointer; text-align: center;
    transition: background .12s;
}

.photo-btn:active { background: #f5b8c0; }
.photo-btn--danger { background: #f5f5f5; color: #999; }
.photo-btn--danger:active { background: #eee; }

/* ===== MULTI-PHOTO GALLERY ===== */
.multi-photo-gallery {
    display: flex; flex-wrap: wrap; gap: 8px;
    min-height: 80px; margin-bottom: 12px;
    padding: 8px; background: #f5f5f5;
    border-radius: 8px; border: 1.5px solid #eee;
    align-items: flex-start;
}

.gallery-item {
    width: calc(33.33% - 6px);
    border-radius: 6px; background: #ddd;
    display: flex; flex-direction: column;
    overflow: hidden;
}

.gallery-item-img {
    position: relative; width: 100%; aspect-ratio: 1;
    overflow: hidden; flex-shrink: 0;
}

.gallery-item-img img { width: 100%; height: 100%; object-fit: cover; }

.gallery-remove-btn {
    position: absolute; top: 4px; right: 4px;
    width: 22px; height: 22px;
    background: rgba(200,16,46,0.85); color: #fff;
    border: none; border-radius: 50%; cursor: pointer;
    font-size: 14px; font-weight: 700; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}

.gallery-annotate-btn {
    position: absolute; bottom: 4px; left: 4px;
    width: 22px; height: 22px;
    background: rgba(26,26,26,0.80); color: #fff;
    border: none; border-radius: 50%; cursor: pointer;
    font-size: 11px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}

.gallery-item-desc {
    width: 100%; padding: 4px 6px; font-size: 10px;
    border: none; border-top: 1px solid #e0e0e0;
    background: #fff; box-sizing: border-box;
    outline: none; color: #444;
}

.gallery-item-desc[readonly] {
    background: #f5f5f5; color: #888; cursor: default;
}

.gallery-placeholder {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 8px; width: 100%; min-height: 60px;
    color: #bbb; font-size: 13px;
}

.complete-section {
    background: #fff; border-radius: 12px;
    padding: 16px; margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.complete-toggle {
    display: flex; align-items: center; gap: 14px;
    padding: 4px 0; cursor: pointer;
}

.complete-toggle input[type=checkbox] {
    width: 24px; height: 24px;
    accent-color: #C8102E; flex-shrink: 0;
}

.complete-toggle-label { font-size: 16px; font-weight: 600; }

.after-photo-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}

/* ===== ANNOTATION CANVAS ===== */
.annotation-toolbar {
    display: flex; align-items: center;
    gap: 4px; padding: 10px 12px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
    overflow-x: auto;
    flex-shrink: 0;
}

.tool-btn {
    min-width: 36px; height: 36px;
    border-radius: 8px;
    font-size: 16px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    background: #333; color: #ccc;
    border: 1.5px solid transparent;
    cursor: pointer; flex-shrink: 0;
    transition: background .1s;
}

.tool-btn.active { background: #C8102E; border-color: #ff4060; color: #fff; }
.tool-btn:active { background: #444; }

.color-btn {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid #555; box-shadow: none;
    min-width: 28px;
}

.color-btn.active { box-shadow: 0 0 0 2px #C8102E, 0 0 0 4px rgba(200,16,46,.3); }

.tool-divider { width: 1px; height: 28px; background: #444; margin: 0 4px; flex-shrink: 0; }

.annotation-canvas-wrap {
    flex: 1; overflow: auto;
    background: #222;
    display: flex; align-items: center; justify-content: center;
}

#annotation-canvas { max-width: 100%; touch-action: none; cursor: crosshair; }

.text-input-wrap {
    padding: 12px; background: #1a1a1a;
    border-top: 1px solid #333;
    display: flex; gap: 10px; align-items: center;
    flex-shrink: 0;
}

.annotation-footer {
    padding: 12px 16px;
    background: #1a1a1a;
    border-top: 1px solid #333;
    flex-shrink: 0;
}

.text-input-wrap .form-input {
    flex: 1;
    background: #2a2a2a; color: #fff; border-color: #444;
}

/* ===== STOCK RETURN SECTION ===== */
.stock-return-section {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 16px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border-left: 4px solid #C8102E;
}

.sr-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}

.sr-title {
    font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .6px;
    color: #C8102E;
}

.sr-signed-badge {
    font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 99px;
    background: #E8F5E9; color: #2E7D32;
}

.sr-sub-title {
    font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .6px;
    color: #555; margin-bottom: 12px;
}

.sr-divider { border: none; border-top: 1px solid #f0f0f0; margin: 14px 0; }

.sr-info-row {
    display: flex; gap: 10px;
    padding: 6px 0; border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
}

.sr-label { color: #888; font-size: 12px; min-width: 90px; flex-shrink: 0; }
.sr-value { color: #222; }

.sr-photo-wrap { margin: 10px 0; }
.sr-photo { width: 100%; border-radius: 8px; border: 1px solid #eee; }

.sr-sigs {
    display: flex; gap: 12px;
    margin-top: 14px;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.sr-sig-block {
    flex: 1; text-align: center;
    border: 1px solid #eee; border-radius: 8px;
    padding: 10px 8px;
}

.sr-sig-img {
    max-width: 100%; max-height: 80px;
    display: block; margin: 0 auto 8px;
}

.sr-sig-name { font-size: 12px; font-weight: 700; color: #222; }
.sr-sig-role { font-size: 10px; color: #888; margin-top: 2px; }
