.signature-page {
    padding: 4px 0 24px;
}

.signature-intro {
    color: #475569;
    font-size: 14px;
    margin: 0 0 16px;
}

/* Current signature on file */
.signature-current {
    background: #f8fafc;
    border: 1px solid #e1e8ef;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
}

.signature-current-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.signature-current-date {
    font-weight: 500;
    color: #94a3b8;
    font-size: 12px;
}

.signature-current-img {
    display: block;
    max-width: 100%;
    max-height: 120px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

/* Capture pad */
.signature-pad-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.signature-pad-wrap {
    position: relative;
    width: 100%;
    background: #ffffff;
    border: 2px solid #e1e8ef;
    border-radius: 12px;
    overflow: hidden;
}

.signature-pad {
    display: block;
    width: 100%;
    height: 240px;
    touch-action: none; /* keep page from scrolling while drawing */
    cursor: crosshair;
}

.signature-pad-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    text-align: center;
    color: #cbd5e1;
    font-size: 15px;
    font-style: italic;
    pointer-events: none;
    user-select: none;
}

.signature-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.signature-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.signature-btn-secondary {
    background: #ffffff;
    border-color: #e1e8ef;
    color: #475569;
}

.signature-btn-secondary:hover {
    background: #f8fafc;
}

.signature-btn-primary {
    background: #059669;
    color: #ffffff;
}

.signature-btn-primary:hover {
    background: #047857;
}

.signature-btn:disabled {
    opacity: 0.7;
    cursor: default;
}

/* Page header - same band every other Field page draws (copied from myschedule/index.css).
   This page loads only its own stylesheet, so without these the title and icon rendered
   unstyled above the content. */
.page-header {
    background: linear-gradient(135deg, #059669, #047857);
    color: #ffffff;
    padding: 20px 16px;
    margin-bottom: 0;
}

.page-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-header-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.page-header-icon {
    font-size: 24px;
    opacity: 0.9;
}
