/* =========================================
   Repair Step Renderer -- staff app
   Specialised compact step UI for repair execution.
   All values from tokens.css. No required indicators, no validation styling.
   ========================================= */

.repair-step {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
    padding: var(--sp-6);
}

.repair-step-header {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

/* Photo tile + notes textarea share a single row, top-aligned. */
.repair-step-body {
    display: flex;
    align-items: stretch;
    gap: var(--sp-5);
}

/* Photo tile -- fixed square footprint in both empty and captured states so
   capture/remove never causes a layout shift. */
.repair-step-photo-tile {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    position: relative;
    border-radius: var(--radius-md);
    background: var(--color-surface);
    border: 1px dashed var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    cursor: pointer;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.repair-step-photo-tile[data-state="empty"]:active {
    background: rgba(22, 163, 74, 0.05);
}

.repair-step-photo-tile[data-state="empty"]:focus-visible {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.repair-step-photo-tile[data-state="captured"] {
    border: 1px solid var(--border-color);
    cursor: default;
}

.repair-step-photo-empty-label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
}

.repair-step-photo-empty-glyph {
    font-size: 24px;
    line-height: 1;
    color: var(--color-primary);
    font-weight: 400;
}

.repair-step-photo-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.repair-step-photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Notes textarea fills the remaining row width; height matches photo tile so
   the row sits cleanly on a single baseline at top. */
.repair-step-notes {
    flex: 1 1 auto;
    min-height: 96px;
    resize: vertical;
    line-height: 1.4;
}

/* Action row: Previous on the left, Next/Complete on the right. */
.repair-step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-5);
}

.repair-step-actions .staff-btn {
    min-width: 120px;
}
