
        :root {
            --primary-color: #0f172a;
            --secondary-color: #1d4ed8;
            --accent-color: #f59e0b;
            --success-color: #0f766e;
            --soft-blue: #eff6ff;
            --soft-gold: #fffbeb;
            --soft-green: #ecfdf5;
            --text-dark: #0f172a;
            --text-regular: #334155;
            --text-muted: #64748b;
            --border-color: #cbd5e1;
            --paper-border: #e2e8f0;
        }

        * { box-sizing: border-box; }

        body {
            background:
                radial-gradient(circle at top left, rgba(29, 78, 216, 0.16), transparent 32%),
                radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.14), transparent 34%),
                #e2e8f0;
            font-family: "Times New Roman", Times, serif;
            color: var(--text-dark);
            line-height: 1.62;
            margin: 0;
        }

        .document-paper {
            position: relative;
            overflow: hidden;
            background-color: #ffffff;
            max-width: 980px;
            margin: 3rem auto;
            padding: 4.8rem 5.6rem;
            border-radius: 18px;
            border: 1px solid rgba(148, 163, 184, 0.45);
            box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
        }

        .document-paper::before {
            content: "EMEDIC - ENTERPRISE EDUCATION";
            position: absolute;
            top: 44%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(-28deg);
            font-family: Arial, sans-serif;
            font-weight: 900;
            font-size: 3.4rem;
            letter-spacing: 0.25rem;
            color: rgba(15, 23, 42, 0.035);
            white-space: nowrap;
            pointer-events: none;
        }

        .document-paper > * { position: relative; z-index: 1; }

        .doc-header {
            position: relative;
            text-align: center;
            margin: -1.8rem -2.2rem 2.4rem;
            padding: 2.4rem 2rem 2rem;
            border: 1px solid var(--paper-border);
            border-radius: 22px;
            background:
                linear-gradient(135deg, rgba(15,23,42,0.96), rgba(30,64,175,0.92)),
                radial-gradient(circle at top right, rgba(245,158,11,0.35), transparent 34%);
            color: #ffffff;
            box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
        }

        .doc-logo {
            max-height: 96px;
            max-width: 150px;
            object-fit: contain;
            padding: 10px;
            background: #ffffff;
            border-radius: 18px;
            margin-bottom: 1.2rem;
            box-shadow: 0 10px 28px rgba(0,0,0,0.18);
        }

        .doc-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 7px 14px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.22);
            font-family: Arial, sans-serif;
            font-size: 0.78rem;
            letter-spacing: 0.16rem;
            text-transform: uppercase;
            margin-bottom: 0.9rem;
        }

        .doc-title {
            font-size: 1.85rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 1.3px;
            margin-bottom: 0.55rem;
            line-height: 1.22;
        }

        .doc-subtitle {
            font-size: 1.12rem;
            font-weight: 700;
            text-transform: uppercase;
            line-height: 1.45;
            color: #dbeafe;
        }

        .doc-number {
            display: inline-block;
            margin-top: 1rem;
            padding: 9px 18px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.95);
            color: var(--primary-color);
            font-size: 1rem;
            font-weight: 800;
            border: 1px solid rgba(255,255,255,0.55);
        }

        .doc-meta-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            margin-top: 1.25rem;
            font-family: Arial, sans-serif;
        }

        .doc-meta-item {
            padding: 10px 12px;
            border-radius: 14px;
            background: rgba(255,255,255,0.11);
            border: 1px solid rgba(255,255,255,0.16);
            text-align: left;
        }

        .doc-meta-item small {
            display: block;
            color: #bfdbfe;
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.08rem;
            margin-bottom: 2px;
        }

        .doc-meta-item strong { font-size: 0.88rem; color: #ffffff; }

        .article-title {
            position: relative;
            text-align: center;
            font-weight: 900;
            font-size: 1.24rem;
            margin-top: 3.2rem;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
            letter-spacing: 0.06rem;
            color: var(--primary-color);
            page-break-after: avoid;
        }

        .article-title::after {
            content: "";
            display: block;
            width: 92px;
            height: 4px;
            margin: 0.75rem auto 0;
            border-radius: 999px;
            background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
        }

        .clause-content {
            text-align: justify;
            margin-bottom: 1rem;
            font-size: 1.08rem;
        }

        .lead-clause {
            font-size: 1.12rem;
            padding: 1rem 1.1rem;
            border-left: 5px solid var(--secondary-color);
            background: linear-gradient(90deg, var(--soft-blue), #ffffff);
            border-radius: 0 14px 14px 0;
        }

        .summary-panel {
            margin: 1.8rem 0 2rem;
            padding: 1.25rem;
            border-radius: 20px;
            border: 1px solid var(--paper-border);
            background: linear-gradient(135deg, #ffffff, #f8fafc);
            box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
        }

        .summary-title {
            font-family: Arial, sans-serif;
            font-size: 0.78rem;
            letter-spacing: 0.14rem;
            text-transform: uppercase;
            color: var(--secondary-color);
            font-weight: 800;
            margin-bottom: 0.35rem;
        }

        .summary-headline {
            font-size: 1.32rem;
            font-weight: 900;
            line-height: 1.35;
            margin-bottom: 0.75rem;
        }

        .summary-card-grid,
        .value-grid,
        .deliverable-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
            margin: 1rem 0;
        }

        .summary-card,
        .value-card,
        .deliverable-card {
            padding: 1rem;
            border-radius: 16px;
            background: #ffffff;
            border: 1px solid var(--paper-border);
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
            page-break-inside: avoid;
        }

        .summary-card i,
        .value-card i,
        .deliverable-card i {
            width: 34px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background: var(--soft-blue);
            color: var(--secondary-color);
            margin-bottom: 0.6rem;
            font-size: 0.95rem;
        }

        .summary-card strong,
        .value-card strong,
        .deliverable-card strong {
            display: block;
            font-size: 0.98rem;
            margin-bottom: 0.35rem;
            color: var(--primary-color);
        }

        .summary-card span,
        .value-card span,
        .deliverable-card span {
            display: block;
            font-size: 0.9rem;
            color: var(--text-regular);
            line-height: 1.48;
        }

        .legal-note {
            margin: 1.4rem 0;
            padding: 1rem 1.15rem;
            border-radius: 16px;
            border: 1px solid #fde68a;
            background: linear-gradient(135deg, var(--soft-gold), #ffffff);
            color: #78350f;
            font-size: 0.98rem;
            text-align: justify;
        }

        .highlight-box {
            margin: 1rem 0 1.25rem;
            padding: 1.1rem 1.25rem;
            border-radius: 16px;
            border: 1px solid #bfdbfe;
            background: linear-gradient(135deg, #eff6ff, #ffffff);
            text-align: justify;
        }

        .timeline-list {
            position: relative;
            margin: 1rem 0;
            padding-left: 0;
            list-style: none;
        }

        .timeline-list li {
            position: relative;
            padding: 0.8rem 0.9rem 0.8rem 3.2rem;
            margin-bottom: 0.7rem;
            border-radius: 14px;
            background: #ffffff;
            border: 1px solid var(--paper-border);
            box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
        }

        .timeline-list li::before {
            content: attr(data-step);
            position: absolute;
            left: 0.85rem;
            top: 0.78rem;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--secondary-color);
            color: #ffffff;
            font-family: Arial, sans-serif;
            font-weight: 800;
            font-size: 0.82rem;
        }

        .enhanced-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0 1.5rem;
            font-size: 0.96rem;
            page-break-inside: avoid;
        }

        .enhanced-table th {
            background: var(--primary-color);
            color: #ffffff;
            padding: 10px 12px;
            border: 1px solid var(--primary-color);
            text-align: left;
            font-family: Arial, sans-serif;
            font-size: 0.82rem;
            text-transform: uppercase;
            letter-spacing: 0.04rem;
        }

        .enhanced-table td {
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            vertical-align: top;
            background: #ffffff;
        }

        .enhanced-table tr:nth-child(even) td { background: #f8fafc; }

        .pricing-box {
            border-radius: 18px;
            border: 1px solid #cbd5e1 !important;
            background: linear-gradient(135deg, #f8fafc, #ffffff);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.85);
        }

        .list-alpha { list-style-type: lower-alpha; padding-left: 2rem; margin-bottom: 1rem; }
        .list-number { list-style-type: decimal; padding-left: 2rem; margin-bottom: 1rem; }
        .list-dash { list-style-type: none; padding-left: 1.5rem; margin-bottom: 1rem; }
        .list-dash li { position: relative; }
        .list-dash li::before { content: "—"; position: absolute; margin-left: -1.5rem; color: var(--secondary-color); font-weight: bold; }

        li { margin-bottom: 0.5rem; text-align: justify; font-size: 1.07rem; }

        .signature-section {
            margin-top: 5rem;
            display: flex;
            justify-content: space-between;
            gap: 2rem;
            page-break-inside: avoid;
        }

        .signature-box {
            text-align: center;
            width: 48%;
            padding: 1.2rem 1rem;
            border: 1px solid var(--paper-border);
            border-radius: 16px;
            background: #ffffff;
        }

        .signature-space { height: 120px; }

        .closing-note {
            margin-top: 2.5rem;
            padding: 1rem 1.25rem;
            border-radius: 16px;
            background: #f8fafc;
            border: 1px solid var(--paper-border);
            font-size: 0.96rem;
            text-align: justify;
            color: var(--text-regular);
        }

        .doc-footer {
            margin-top: 2.4rem;
            padding-top: 1rem;
            border-top: 1px solid var(--paper-border);
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            color: var(--text-muted);
            font-size: 0.82rem;
            font-family: Arial, sans-serif;
        }

        .print-toolbar {
            position: fixed;
            /* 7.5rem supaya lolos dari tombol "Tanya Jawab" (bantuan_button.jsp:
               right:16px; bottom:62px), yang tanpa ini tertutup toolbar cetak ini. */
            bottom: 7.5rem;
            right: 2rem;
            z-index: 1000;
            display: flex;
            gap: 10px;
            align-items: center;
            padding: 10px;
            border-radius: 999px;
            background: rgba(255,255,255,0.9);
            border: 1px solid rgba(148,163,184,0.45);
            box-shadow: 0 18px 40px rgba(15,23,42,0.18);
            backdrop-filter: blur(12px);
            font-family: Arial, sans-serif;
        }

        .btn-print {
            border-radius: 999px;
            padding: 0.85rem 1.25rem;
            font-weight: 800;
        }

        .toolbar-hint {
            color: var(--text-muted);
            font-size: 0.82rem;
            padding-left: 8px;
        }

        @media (max-width: 900px) {
            .document-paper { padding: 2rem 1.3rem; margin: 1rem; border-radius: 14px; }
            .doc-header { margin: 0 0 1.4rem; }
            .doc-meta-grid, .summary-card-grid, .value-grid, .deliverable-grid { grid-template-columns: 1fr; }
            .signature-section { flex-direction: column; }
            .signature-box { width: 100%; }
            .print-toolbar { left: 1rem; right: 1rem; bottom: 7.5rem; justify-content: center; }
            .toolbar-hint { display: none; }
        }

        @page { size: A4; margin: 18mm 15mm; }

        @media print {
            body { background: #fff !important; }
            .document-paper {
                margin: 0;
                padding: 0;
                box-shadow: none;
                max-width: 100%;
                border-radius: 0;
                border: 0;
            }
            .document-paper::before { color: rgba(15, 23, 42, 0.025); }
            .print-toolbar, .no-print { display: none !important; }
            .page-break { page-break-before: always; }
            .doc-header {
                margin: 0 0 2rem;
                color: #ffffff !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
            .summary-panel, .summary-card, .value-card, .deliverable-card, .signature-box, .highlight-box, .legal-note, .pricing-box, .timeline-list li {
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }
            .article-title { page-break-after: avoid; }
            .summary-card, .value-card, .deliverable-card, .signature-section, .enhanced-table, .timeline-list li { page-break-inside: avoid; }
        }
    