/* ===== SIGN-OFF SCREEN ===== */
.signoff-wrap {
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.signoff-job-summary {
    background: #111111;
    color: #fff;
    border-radius: 12px;
    padding: 20px; margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    border-left: 4px solid #C8102E;
}

.signoff-job-number {
    font-size: 11px; color: #C8102E; font-weight: 800;
    margin-bottom: 4px; text-transform: uppercase; letter-spacing: .6px;
}

.signoff-company { font-size: 20px; font-weight: 800; color: #fff; }
.signoff-items-summary { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 6px; }

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

.signature-section h3 {
    font-size: 16px; font-weight: 700; margin-bottom: 4px;
}

.signature-note {
    font-size: 13px; color: #777; margin-bottom: 14px;
}

.signature-pad-wrap {
    border: 2px solid #e0e0e0;
    border-radius: 8px; overflow: hidden;
    background: #fafafa;
    position: relative;
    margin-bottom: 12px;
}

.signature-canvas {
    display: block;
    width: 100%;
    height: 160px;
    touch-action: none;
    cursor: crosshair;
}

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

.sig-signed-preview {
    display: block; max-height: 120px;
    margin: 8px auto 0;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.sig-placeholder {
    text-align: center; padding: 32px;
    color: #bbb; font-size: 14px;
}

/* Signed state */
.signature-section--signed .signature-pad-wrap {
    border-color: #a5d6a7;
    background: #f9fbe7;
}

.signature-check {
    display: inline-flex; align-items: center; gap: 6px;
    color: #2E7D32; font-size: 14px; font-weight: 600;
    margin-top: 8px;
}

/* ===== PO INLINE SIGNATURE ===== */
.sig-canvas-wrap {
    border: 2px solid #555;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
    margin-bottom: 8px;
}

.sig-canvas {
    display: block;
    width: 100%;
    height: 160px;
    touch-action: none;
    cursor: crosshair;
}

.sig-clear-btn {
    font-size: 12px;
    color: #C8102E;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-bottom: 12px;
    text-decoration: underline;
}

/* ===== REMOTE SIGN LINK ===== */
.remote-sign-section {
    background: #f9f9f9;
    border-radius: 12px;
    border: 1.5px dashed #e0e0e0;
    padding: 16px; margin-top: 12px;
}

.remote-sign-section h3 {
    font-size: 14px; font-weight: 700; margin-bottom: 6px;
    color: #C8102E;
}

.remote-sign-section p { font-size: 13px; color: #777; margin-bottom: 12px; }

.remote-link-wrap { display: flex; gap: 10px; align-items: center; }
.remote-link-wrap .form-input { flex: 1; font-size: 13px; padding: 10px 12px; }

/* ===== REMOTE SIGN PAGE ===== */
.remote-sign-wrap {
    padding: 20px 16px;
    max-width: 480px;
    margin: 0 auto;
}

.remote-sign-info {
    text-align: center; padding: 24px;
    background: #fff; border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    margin-bottom: 24px;
    border-top: 3px solid #C8102E;
}

.remote-sign-info h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.remote-sign-info p  { font-size: 14px; color: #777; }

.error-state {
    color: #9B0B22;
    background: #FFF0F2;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}
