.hrmg-sign-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sign-header {
    text-align: center;
    margin-bottom: 40px;
}

.company-logo {
    margin-bottom: 30px;
}

.company-logo img {
    max-width: 300px;
    height: auto;
    display: inline-block;
}

.sign-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.contract-preview {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contract-preview h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.contract-preview iframe {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.contract-preview-annotate {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contract-preview-annotate h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

.contract-preview-annotate .description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.pdf-viewer-container {
    margin-top: 20px;
}

.pdf-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pdf-controls .button {
    margin: 0;
}

.pdf-canvas-wrapper {
    position: relative;
    overflow: auto;
    max-height: 800px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.pdf-canvas-inner {
    position: relative;
    margin: 0 auto;
    width: fit-content;
}

#pdf-canvas-client {
    display: block;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: white;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

#annotation-canvas-client {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
    z-index: 10;
    pointer-events: all;
}

.client-annotations-list {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.client-annotations-list h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 16px;
}

.client-annotation-item {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.client-annotation-item.status-approved {
    border-left-color: #46b450;
}

.client-annotation-item.status-rejected {
    border-left-color: #dc3232;
    opacity: 0.7;
}

.client-annotation-item.status-pending {
    border-left-color: #ffc107;
}

.client-annotation-item:hover {
    background: #fffbf0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.client-annotation-item.editable:hover::after {
    content: '✏️ Click to edit';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 11px;
    color: #999;
    background: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.client-annotation-item.readonly {
    cursor: default;
    opacity: 0.9;
}

.client-annotation-item.readonly:hover {
    background: #f8f9fa;
}

.client-annotation-item.readonly .annotation-meta {
    color: #666;
    font-weight: 500;
}

.client-annotation-item .annotation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.client-annotation-item .annotation-type {
    font-weight: bold;
    font-size: 13px;
    color: #f0ad4e;
}

.client-annotation-item .annotation-page {
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 3px;
}

.client-annotation-item .annotation-comment {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 6px;
}

.client-annotation-item .annotation-meta {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

.amendment-request-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.amendment-request-section h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #f0ad4e;
}

.amendment-request-section p {
    margin-bottom: 15px;
    color: #666;
}

.signature-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.signature-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.signature-pad-container {
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    background: #fff;
    cursor: crosshair;
}

#signature-pad {
    display: block;
    width: 100%;
    max-width: 800px;
    height: 200px;
    border-radius: 4px;
    touch-action: none;
}

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

.signature-actions .button {
    padding: 12px 30px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.signature-actions .button-primary {
    background-color: #2271b1;
    color: white;
}

.signature-actions .button-primary:hover {
    background-color: #135e96;
}

.signature-actions .button {
    background-color: #f0f0f1;
    color: #2c3338;
}

.signature-actions .button:hover {
    background-color: #dcdcde;
}

#signature-result {
    margin-top: 30px;
}

.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    color: #155724;
}

.success-message h2 {
    margin-top: 0;
    color: #155724;
}

@media (max-width: 768px) {
    .hrmg-sign-container {
        padding: 20px 10px;
    }
    
    #signature-pad {
        height: 150px;
    }
    
    .signature-actions {
        flex-direction: column;
    }
    
    .signature-actions .button {
        width: 100%;
    }
}


