/* SignFlow Executive Legal Signer Stylesheet */
:root {
    --bg-dark: 220 35% 6%; /* Trustworthy Deep Slate Navy */
    --card-bg: 220 25% 10% / 0.8;
    
    --primary: 43 96% 56%; /* Luxury Amber Gold */
    --primary-glow: 43 96% 56% / 0.15;
    
    --navy-blue: 221 83% 53%; /* Strong Corporate Blue */
    --green: 142.1 76.2% 45%;
    --red: 346.8 77.2% 49.8%;
    
    --border: 220 15% 18% / 0.8;
    --border-hover: 220 15% 28% / 0.9;
    --text-main: 210 20% 98%;
    --text-muted: 215 15% 65%;
    
    /* Paper sheet tokens */
    --paper-bg: #faf9f6; /* Off-white linen paper */
    --paper-text: #1a202c;
    --paper-border: #e2e8f0;
    
    --font-heading: 'Cinzel', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: hsl(var(--bg-dark));
    color: hsl(var(--text-main));
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Gradients */
.mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(at 15% 15%, hsla(var(--primary), 0.05) 0px, transparent 50%),
        radial-gradient(at 85% 85%, hsla(var(--navy-blue), 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.01) 0px, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navbar */
.navbar {
    height: 70px;
    border-bottom: 1px solid hsl(var(--border));
    background-color: hsla(var(--bg-dark), 0.8);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 700;
    color: hsl(var(--text-main));
    text-decoration: none;
    letter-spacing: 0.05em;
}

.logo-icon {
    color: hsl(var(--primary));
    width: 24px;
    height: 24px;
}

.accent-text {
    color: hsl(var(--primary));
}

.security-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.3rem 0.85rem;
    background-color: #0b0d10;
    border: 1px solid hsl(var(--border));
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--text-muted));
}

.shield-icon {
    color: hsl(var(--primary));
    width: 14px;
    height: 14px;
}

/* Main Workspace Grid */
.signer-container {
    padding-top: 2rem;
    padding-bottom: 3rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.signer-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 1.5rem;
    align-items: start;
    flex-grow: 1;
}

/* Left Sidebar */
.sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-card {
    background-color: hsl(var(--card-bg));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.dashboard-card:hover {
    border-color: hsl(var(--border-hover));
}

.dashboard-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px dashed hsl(var(--border));
    padding-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

/* Ingest Dropzone */
.dropzone-card {
    cursor: pointer;
    text-align: center;
    border: 2px dashed hsl(var(--border));
    padding: 2rem 1.5rem;
}

.dropzone-card:hover, .dropzone-card.highlight {
    border-color: hsl(var(--primary));
    background-color: hsla(var(--primary), 0.03);
}

.upload-icon {
    width: 38px;
    height: 38px;
    color: hsl(var(--text-muted));
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.dropzone-card:hover .upload-icon {
    color: hsl(var(--primary));
    transform: translateY(-2px);
}

.dropzone-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.dropzone-content p {
    font-size: 0.78rem;
    color: hsl(var(--text-muted));
    margin-bottom: 0.5rem;
}

.file-limits {
    font-size: 0.7rem;
    background-color: #0b0d10;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: hsl(var(--text-muted));
    border: 1px solid hsl(var(--border));
}

/* Document ledger list */
.doc-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 320px;
    overflow-y: auto;
}

.doc-item {
    background-color: #0b0d10;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
}

.doc-item:hover {
    border-color: hsl(var(--border-hover));
    background-color: #12151b;
}

.doc-item.active {
    border-color: hsl(var(--primary));
    background-color: hsla(var(--primary), 0.04);
}

.doc-icon {
    width: 28px;
    height: 28px;
    background-color: rgba(255,255,255,0.03);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--text-muted));
    flex-shrink: 0;
}

.doc-item.active .doc-icon {
    color: hsl(var(--primary));
    background-color: hsla(var(--primary), 0.15);
}

.doc-item-details {
    flex-grow: 1;
    min-width: 0;
}

.doc-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: hsl(var(--text-main));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-item-meta {
    font-size: 0.72rem;
    color: hsl(var(--text-muted));
    display: flex;
    justify-content: space-between;
    margin-top: 0.15rem;
}

/* Right Side Sheet Viewer */
.viewer-panel {
    display: flex;
    flex-direction: column;
    min-height: 550px;
}

.viewer-card {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed hsl(var(--border));
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.doc-info h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.badge-status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background-color: hsla(var(--primary), 0.15);
    color: hsl(var(--primary));
    border: 1px solid hsla(var(--primary), 0.25);
    font-weight: 600;
}

.badge-status.signed {
    background-color: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.25);
}

/* Document Paper Sheet Layout */
.document-scroller {
    background-color: #0b0d10;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    padding: 2rem 1rem;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    max-height: 480px;
}

.document-sheet {
    background-color: var(--paper-bg);
    color: var(--paper-text);
    width: 100%;
    max-width: 580px;
    min-height: 650px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    padding: 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 4px;
}

.sheet-header {
    border-bottom: 2px solid var(--paper-border);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.legal-header-logo {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: #2d3748;
}

.sheet-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sheet-body h3 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a5568;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sheet-body p {
    text-align: justify;
    line-height: 1.6;
    color: #4a5568;
}

.sheet-divider {
    border-bottom: 1px solid var(--paper-border);
    margin: 1.5rem 0 1rem 0;
}

/* Signatures structure */
.signature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: auto;
}

.sig-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sig-block label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
}

.sig-line-box {
    border-bottom: 2px solid #a0aec0;
    height: 70px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sig-line-box.certified {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.seal-icon {
    position: absolute;
    right: 5px;
    top: 5px;
    color: #10b981;
    opacity: 0.8;
}

.seal-icon i {
    width: 20px;
    height: 20px;
}

.system-signed-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: bold;
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.1);
    padding: 0.1rem 0.3rem;
    border-radius: 2px;
}

.system-sig-name {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin-top: 0.25rem;
}

/* Recipient Dropzone */
.target-dropzone {
    border: 1.5px dashed #cbd5e0;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
    cursor: pointer;
}

.target-dropzone:hover {
    border-color: #4a5568;
    background-color: rgba(0, 0, 0, 0.04);
}

.target-dropzone.has-stamp {
    border-style: solid;
    border-color: #a0aec0;
    background-color: transparent;
}

.drop-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: #a0aec0;
    font-size: 0.72rem;
    pointer-events: none;
}

.pulse-arrow {
    width: 16px;
    height: 16px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.signature-stamp-placed {
    max-height: 55px;
    max-width: 90%;
    object-fit: contain;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s;
}

.signature-stamp-placed:hover {
    transform: scale(1.05);
}

.sheet-footer {
    border-top: 1px solid var(--paper-border);
    margin-top: 1.5rem;
    padding-top: 0.5rem;
    font-size: 0.68rem;
    color: #a0aec0;
    display: flex;
    justify-content: space-between;
}

/* Viewer footer controls */
.viewer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed hsl(var(--border));
    padding-top: 1.25rem;
    margin-top: 1.25rem;
}

.footer-hint {
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
    display: flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 60%;
}

.footer-hint i {
    width: 16px;
    height: 16px;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-gold {
    background: linear-gradient(135deg, hsl(var(--primary)), #ca8a04);
    color: #0b0d10;
    box-shadow: 0 4px 15px hsla(var(--primary), 0.2);
}

.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px hsla(var(--primary), 0.45);
}

.btn-navy {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.btn-navy:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-navy:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--text-main));
}

.btn-outline:hover {
    background-color: #0c0f14;
    border-color: hsl(var(--border-hover));
}

/* Drawing Canvas Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(3, 4, 6, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background-color: #0c0f14;
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    padding: 1.75rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid hsl(var(--border));
    padding-bottom: 0.75rem;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: hsl(var(--text-muted));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition);
}

.close-modal:hover {
    color: hsl(var(--text-main));
    background-color: rgba(255,255,255,0.05);
}

.canvas-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#sig-canvas {
    background-color: white;
    border: 2px solid hsl(var(--border));
    border-radius: 8px;
    cursor: crosshair;
    display: block;
    width: 100%;
}

.canvas-hint {
    font-size: 0.72rem;
    color: hsl(var(--text-muted));
    text-align: center;
}

.canvas-controls {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.control-group label {
    font-size: 0.78rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
}

.color-options {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-dot.active {
    border-color: hsl(var(--primary));
    transform: scale(1.15);
}

.width-options {
    display: flex;
    gap: 0.4rem;
}

.width-btn {
    background-color: #07090c;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--text-muted));
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    flex-grow: 1;
    font-weight: 500;
    transition: var(--transition);
}

.width-btn:hover {
    color: hsl(var(--text-main));
    border-color: hsl(var(--border-hover));
}

.width-btn.active {
    background-color: hsla(var(--primary), 0.15);
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid hsl(var(--border));
    padding-top: 1rem;
}

.modal-footer .btn {
    flex-grow: 1;
}

/* Cert spinner animation */
.cert-card-modal {
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 440px;
    padding: 2.5rem 2rem;
}

.cert-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.spin-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(251, 191, 36, 0.1);
    border-top-color: hsl(var(--primary));
    border-radius: 50%;
    animation: rotation 1.2s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cert-shield-icon {
    width: 32px;
    height: 32px;
    color: hsl(var(--primary));
}

.cert-logs {
    background-color: #050608;
    border: 1px solid hsl(var(--border));
    border-radius: 6px;
    width: 100%;
    height: 90px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: hsl(var(--text-muted));
    padding: 0.5rem;
    text-align: left;
    margin-top: 1rem;
    line-height: 1.4;
}

.log-line {
    border-bottom: 1px solid rgba(255,255,255,0.01);
}

.log-line.green {
    color: #10b981;
}

/* Final receipts box style */
.cert-alert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 10, 0.95);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cert-receipt-content {
    background-color: #0c0f14;
    border: 1px solid hsl(var(--primary));
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 15px hsla(var(--primary), 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-seal {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: hsla(var(--primary), 0.15);
    border: 1.5px solid hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
    margin-bottom: 1.25rem;
}

.cert-seal i {
    width: 32px;
    height: 32px;
}

.cert-receipt-content h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.cert-receipt-content p {
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
    margin-bottom: 1.5rem;
}

.receipt-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background-color: #06070a;
    border: 1px solid hsl(var(--border));
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 0.35rem;
}

.receipt-item:last-child {
    border: none;
    padding: 0;
}

.receipt-lbl {
    color: hsl(var(--text-muted));
}

.receipt-val {
    font-weight: 600;
    font-family: var(--font-mono);
}

.receipt-actions {
    display: flex;
    gap: 0.75rem;
    width: 100%;
}

.receipt-actions .btn {
    flex: 1;
}

/* Footer */
.footer {
    border-top: 1px solid hsl(var(--border));
    background-color: #040507;
    padding: 2rem 0;
    margin-top: auto;
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Helper display */
.d-none {
    display: none !important;
}

/* AI Contract Guard Styles */
.ai-guard-card {
    border: 1px dashed hsla(var(--primary), 0.3) !important;
    background: linear-gradient(180deg, #0d0f14, #080a0e);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.ai-guard-card:hover {
    border-color: hsla(var(--primary), 0.6) !important;
    box-shadow: 0 4px 20px hsla(var(--primary), 0.05);
}

.ai-guard-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-bot-wrapper {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: hsla(var(--primary), 0.15);
    border: 1px solid hsla(var(--primary), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--primary));
    flex-shrink: 0;
}

.ai-bot-icon {
    width: 18px;
    height: 18px;
    animation: botGlow 2.5s infinite ease-in-out;
}

@keyframes botGlow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.risk-level-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.risk-level-badge.risk-low {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.risk-level-badge.risk-medium {
    background-color: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.risk-level-badge.risk-high {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.clause-warning-item {
    display: flex;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    line-height: 1.3;
}

.clause-warning-item.warning-orange {
    border-left: 2px solid #f59e0b;
}

.clause-warning-item.warning-red {
    border-left: 2px solid #ef4444;
}

.clause-warning-item.warning-green {
    border-left: 2px solid #10b981;
}

.clause-warning-item i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.clause-warning-item.warning-orange i {
    color: #f59e0b;
}

.clause-warning-item.warning-red i {
    color: #ef4444;
}

.clause-warning-item.warning-green i {
    color: #10b981;
}

/* Responsive */
@media (max-width: 968px) {
    .signer-grid {
        grid-template-columns: 1fr;
    }
    
    .document-sheet {
        padding: 1.5rem;
    }
    
    .signature-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .receipt-actions {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
