.qa-sign {
    min-height: 100vh;
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
}

.qa-sign-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 16px;
    color: #ffffff;
    text-align: center;
}

.qa-sign-banner-logo {
    max-height: 64px;
    max-width: 220px;
    object-fit: contain;
}

.qa-sign-banner-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.qa-sign-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 24px 16px 48px;
}

.qa-sign-card {
    width: 100%;
    max-width: 720px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.qa-sign-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 14px;
}

.qa-sign-doc-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.qa-sign-kind {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.qa-sign-customer {
    font-size: 14px;
    color: #6b7280;
}

.qa-sign-doc {
    width: 100%;
    height: 520px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.qa-sign-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qa-sign-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.qa-sign-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    color: #111827;
    box-sizing: border-box;
}

.qa-sign-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.qa-sign-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

.qa-sign-consent input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.qa-sign-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.qa-sign-btn {
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
}

.qa-sign-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.qa-sign-btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.qa-sign-btn-ghost {
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
}

.qa-sign-status {
    font-size: 15px;
    color: #374151;
    text-align: center;
    padding: 12px;
}

.qa-sign-success {
    color: #047857;
    font-weight: 600;
}

.qa-sign-error {
    color: #b91c1c;
    font-size: 14px;
}

.qa-sig-panel {
    margin-top: 16px;
}

.qa-sig-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.qa-sig-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.qa-sig-card {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qa-sig-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qa-sig-kind {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #2563eb;
}

.qa-sig-method {
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 999px;
    padding: 2px 8px;
}

.qa-sig-img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
}

.qa-sig-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.qa-sig-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.qa-sig-muted {
    font-size: 12px;
    color: #6b7280;
}

.qa-sig-audit {
    font-size: 12px;
    color: #4b5563;
}

.qa-sig-audit > summary {
    cursor: pointer;
    color: #2563eb;
    font-weight: 600;
}

.qa-sig-audit-body {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    word-break: break-word;
}

.qa-sig-audit-label {
    display: inline-block;
    min-width: 78px;
    color: #9ca3af;
    font-weight: 600;
}

.qa-sig-hash {
    font-family: monospace;
    font-size: 11px;
}

@media print {
    .qa-sig-panel {
        display: none;
    }
}
