.gn-user-panel-wrapper, .gn-single-contract-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: inherit;
    direction: rtl;
}
.gn-public-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.gn-public-table th, .gn-public-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: right;
}
.gn-public-table th {
    background: #fafafa;
    font-weight: bold;
}
.gn-btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    border: none;
}
.gn-btn-primary {
    background: #2271b1;
    color: #fff !important;
}
.gn-btn-secondary {
    background: #f0f0f1;
    color: #3c434a !important;
}
.gn-contract-header {
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.gn-help-text {
    color: #666;
    margin-bottom: 20px;
}
.gn-clause-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}
.gn-clause-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}
.gn-clause-badge {
    background: #e5e5e5;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 10px;
}
.gn-status-approved {
    border-color: #00a32a;
    background: #f0fdf4;
}
.gn-status-approved .gn-clause-title { color: #00a32a; }
.gn-status-rejected {
    border-color: #d63638;
    background: #fff5f5;
}
.gn-status-rejected .gn-clause-title { color: #d63638; }
.gn-status-question {
    border-color: #f0b849;
    background: #fffcf5;
}
.gn-status-question .gn-clause-title { color: #d99a2b; }
.gn-clause-content {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #444;
}
.gn-clause-actions {
    display: flex;
    gap: 10px;
    border-top: 1px dashed #ddd;
    padding-top: 15px;
}
.gn-btn-action {
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}
.gn-btn-approve.active { background: #00a32a; color: #fff; border-color: #00a32a; }
.gn-btn-reject.active { background: #d63638; color: #fff; border-color: #d63638; }
.gn-btn-question.active { background: #f0b849; color: #fff; border-color: #f0b849; }
.gn-clause-note-area {
    margin-top: 15px;
    background: #fafafa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}
.gn-review-note {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: inherit;
}
.gn-note-msg {
    margin-right: 10px;
    font-size: 13px;
    color: #00a32a;
}
.gn-files-section {
    margin-top: 40px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}
.gn-upload-area {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fafafa;
    padding: 15px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    margin-bottom: 20px;
}
.gn-upload-area input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
}
.gn-signature-section {
    margin-top: 40px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}
.gn-final-checkbox-label {
    display: block;
    background: #f0fdf4;
    border: 1px solid #00a32a;
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
}
.gn-signature-pad-wrapper {
    background: #fafafa;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
}
#gn_signature_canvas {
    background: #fff;
    border: 2px dashed #bbb;
    border-radius: 4px;
    cursor: crosshair;
    touch-action: none;
    margin-bottom: 15px;
    max-width: 100%;
}
.gn-signature-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

#gn_drop_zone {
    border: 2px dashed #b4b9be;
    background: #f8f9fa;
    text-align: center;
    padding: 30px 15px;
    transition: background 0.3s, border-color 0.3s;
    display: block;
}
#gn_drop_zone.gn-dragover {
    background: #f0fdf4;
    border-color: #00a32a;
}
.gn-drop-zone-content input[type="text"] {
    width: 100%;
    max-width: 250px;
    margin-bottom: 10px;
    display: inline-block;
}

@media print {
    body * {
        visibility: hidden;
    }
    .gn-contract-paper, .gn-contract-paper * {
        visibility: visible;
    }
    .gn-contract-paper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        max-width: none;
    }
    .gn-no-print {
        display: none !important;
    }
    @page {
        margin: 2cm;
    }
}

body.rtl .gn-user-panel-wrapper,
body.rtl .gn-single-contract-wrapper,
[dir="rtl"] .gn-user-panel-wrapper,
[dir="rtl"] .gn-single-contract-wrapper {
    direction: rtl;
    text-align: right;
}

body.ltr .gn-user-panel-wrapper,
body.ltr .gn-single-contract-wrapper,
[dir="ltr"] .gn-user-panel-wrapper,
[dir="ltr"] .gn-single-contract-wrapper {
    direction: ltr;
    text-align: left;
}

body.ltr .gn-public-table th,
body.ltr .gn-public-table td,
[dir="ltr"] .gn-public-table th,
[dir="ltr"] .gn-public-table td {
    text-align: left;
}

body.ltr .gn-clause-badge,
[dir="ltr"] .gn-clause-badge {
    margin-left: 0;
    margin-right: 10px;
}