        :root {
            --primary-color: #0f172a;
            --primary-soft: #eff6ff;
            --secondary-color: #0284c7;
            --accent-color: #f59e0b;
            --success-color: #16a34a;
            --danger-color: #dc2626;
            --muted-color: #64748b;
            --soft-border: #dbeafe;
            --paper-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
            --text-dark: #111827;
            --text-soft: #475569;
            --border-color: #0f172a;
        }

        * {
            box-sizing: border-box;
        }

        body {
            min-height: 100vh;
            background:
                radial-gradient(circle at top left, rgba(2,132,199,0.18), transparent 30%),
                radial-gradient(circle at top right, rgba(245,158,11,0.16), transparent 28%),
                linear-gradient(135deg, #eef2ff 0%, #f8fafc 45%, #e0f2fe 100%);
            font-family: "Segoe UI", Arial, sans-serif;
            color: var(--text-dark);
            line-height: 1.62;
            margin: 0;
            padding: 0;
        }

        .container {
            max-width: 100%;
        }

        .letter-paper {
            position: relative;
            overflow: hidden;
            background-color: #ffffff;
            width: 210mm;
            max-width: 940px;
            margin: 2.2rem auto;
            padding: 2.2rem 2.55rem 2.4rem;
            border-radius: 24px;
            box-shadow: var(--paper-shadow);
            border: 1px solid rgba(148, 163, 184, 0.28);
        }

        .letter-paper::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 9px;
            background: linear-gradient(90deg, #0f172a, #0284c7, #22c55e, #f59e0b);
        }

        .letter-watermark {
            position: absolute;
            right: -45px;
            top: 150px;
            width: 260px;
            height: 260px;
            border-radius: 999px;
            background: radial-gradient(circle, rgba(14,165,233,0.09), rgba(14,165,233,0.02), transparent 72%);
            pointer-events: none;
        }

        .document-badge-row {
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            align-items: center;
            margin-bottom: 1.1rem;
            font-size: 0.78rem;
            color: var(--muted-color);
            text-transform: uppercase;
            letter-spacing: 0.08em;
            font-weight: 800;
        }

        .doc-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.45rem 0.7rem;
            border-radius: 999px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            color: #0f172a;
            white-space: nowrap;
        }

        /* Kop Surat */
        .kop-surat {
            display: flex;
            align-items: center;
            gap: 1.25rem;
            border-bottom: 0;
            padding: 1rem 0 1.15rem;
            margin-bottom: 1.35rem;
            position: relative;
        }

        .kop-surat::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 4px;
            border-radius: 999px;
            background: linear-gradient(90deg, #0f172a 0%, #0284c7 50%, #f59e0b 100%);
        }

        .kop-logo {
            width: 92px;
            height: 92px;
            max-height: 92px;
            max-width: 120px;
            object-fit: contain;
            padding: 0.6rem;
            border-radius: 22px;
            border: 1px solid #e2e8f0;
            background: #ffffff;
            box-shadow: 0 14px 28px rgba(15,23,42,0.08);
            margin-right: 0;
            flex-shrink: 0;
        }

        .kop-text {
            flex-grow: 1;
            text-align: left;
            padding-right: 0;
        }

        .kop-title {
            font-size: 1.72rem;
            line-height: 1.15;
            font-weight: 900;
            letter-spacing: -0.035em;
            text-transform: uppercase;
            margin-bottom: 0.35rem;
            color: var(--primary-color);
        }

        .kop-subtitle {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            font-size: 0.97rem;
            line-height: 1.35;
            font-weight: 800;
            color: var(--secondary-color);
            margin-bottom: 0.45rem;
        }

        .kop-subtitle::before {
            content: "Sistem Gudang & Operasional Bisnis";
            font-size: 0.68rem;
            text-transform: uppercase;
            letter-spacing: 0.09em;
            color: #ffffff;
            background: linear-gradient(135deg, #0284c7, #0f172a);
            padding: 0.25rem 0.48rem;
            border-radius: 999px;
        }

        .kop-address {
            font-size: 0.88rem;
            color: var(--text-soft);
            line-height: 1.55;
        }

        /* Meta Surat */
        .meta-surat {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 1.2rem;
            align-items: stretch;
            margin-bottom: 1.35rem;
            font-size: 0.98rem;
        }

        .meta-kiri,
        .meta-kanan {
            border: 1px solid #dbeafe;
            background: linear-gradient(180deg, #f8fafc, #ffffff);
            border-radius: 18px;
            padding: 0.95rem 1rem;
        }

        .meta-kiri table {
            width: 100%;
        }

        .meta-kiri td {
            vertical-align: top;
            padding-bottom: 0.35rem;
        }

        .meta-kiri tr:last-child td {
            padding-bottom: 0;
        }

        .meta-kanan {
            min-width: 210px;
            text-align: right;
            font-weight: 800;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .meta-kanan::before {
            content: "\f133";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            margin-right: 0.55rem;
            color: var(--secondary-color);
        }

        .doc-quick-summary {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
            margin: 0.35rem 0 1.45rem;
            page-break-inside: avoid;
        }

        .summary-pill {
            border: 1px solid #dbeafe;
            background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
            border-radius: 16px;
            padding: 0.8rem 0.85rem;
            min-height: 74px;
        }

        .summary-pill .label {
            display: block;
            font-size: 0.72rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--muted-color);
            font-weight: 800;
            margin-bottom: 0.18rem;
        }

        .summary-pill .value {
            display: block;
            font-size: 0.95rem;
            color: var(--primary-color);
            font-weight: 900;
            line-height: 1.32;
        }

        /* Alamat Tujuan */
        .recipient-section {
            margin-bottom: 1.45rem;
            font-size: 1rem;
            padding: 1rem 1.15rem;
            border-radius: 18px;
            border: 1px solid #e2e8f0;
            background:
                linear-gradient(90deg, rgba(2,132,199,0.08), rgba(255,255,255,0.96) 46%),
                #ffffff;
            page-break-inside: avoid;
        }

        .recipient-section strong {
            color: var(--primary-color);
        }

        /* Isi Surat */
        .letter-content {
            position: relative;
            z-index: 1;
            text-align: justify;
            font-size: 1rem;
            color: var(--text-dark);
        }

        .letter-content p {
            margin-bottom: 0.98rem;
        }

        .lead-paragraph {
            font-size: 1.05rem;
            color: #0f172a;
            border-left: 5px solid var(--secondary-color);
            background: #f8fafc;
            padding: 1rem 1.15rem;
            border-radius: 0 18px 18px 0;
            margin-bottom: 1.1rem !important;
        }

        .section-hl,
        .letter-content p:not(.lead-paragraph) > strong:first-child {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            margin: 1.05rem 0 0.55rem;
            padding: 0.48rem 0.75rem;
            border-radius: 999px;
            background: linear-gradient(135deg, #0f172a, #0284c7);
            color: #ffffff !important;
            font-size: 0.89rem;
            letter-spacing: 0.015em;
            font-weight: 900;
            page-break-after: avoid;
        }

        .letter-content p:not(.lead-paragraph) > strong:first-child::before {
            content: "\f058";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            font-size: 0.85rem;
        }

        /* Daftar Keunggulan */
        .highlight-list {
            list-style: none;
            margin: 0 0 1.15rem 0;
            padding: 0;
        }

        .highlight-list li {
            position: relative;
            margin-bottom: 0.62rem;
            padding: 0.72rem 0.85rem 0.72rem 2.45rem;
            border-radius: 15px;
            background: #ffffff;
            border: 1px solid #e2e8f0;
            box-shadow: 0 8px 18px rgba(15,23,42,0.045);
            text-align: left;
        }

        .highlight-list li::before {
            content: "\f00c";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            position: absolute;
            left: 0.85rem;
            top: 0.78rem;
            width: 1.12rem;
            height: 1.12rem;
            border-radius: 999px;
            display: grid;
            place-items: center;
            color: #ffffff;
            background: var(--success-color);
            font-size: 0.62rem;
        }

        .highlight-list li strong {
            color: var(--secondary-color);
            font-weight: 900;
        }

        .executive-summary {
            border-radius: 22px;
            border: 1px solid #bfdbfe;
            background:
                radial-gradient(circle at top right, rgba(14,165,233,0.18), transparent 36%),
                linear-gradient(135deg, #eff6ff 0%, #ffffff 72%);
            padding: 1.15rem 1.2rem;
            margin: 1.1rem 0 1.25rem;
            page-break-inside: avoid;
            box-shadow: 0 15px 30px rgba(2,132,199,0.08);
        }

        .executive-summary h4,
        .panel-box h4,
        .compact-table-title {
            color: var(--primary-color);
            font-size: 1.05rem;
            font-weight: 900;
            letter-spacing: -0.01em;
            margin-bottom: 0.62rem;
        }

        .executive-summary p {
            margin-bottom: 0.65rem;
        }

        .insight-grid,
        .deliverable-grid,
        .next-step-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.82rem;
            margin: 0.95rem 0 1.1rem;
            page-break-inside: avoid;
        }

        .insight-card,
        .deliverable-card,
        .next-step-card,
        .hw-spec-card,
        .panel-box {
            border: 1px solid #dbeafe;
            border-radius: 18px;
            background: #ffffff;
            padding: 1rem;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
            page-break-inside: avoid;
        }

        .insight-card h5,
        .deliverable-card h5,
        .next-step-card h5 {
            font-size: 0.96rem;
            font-weight: 900;
            color: #0f172a;
            margin-bottom: 0.35rem;
        }

        .insight-card p,
        .deliverable-card p,
        .next-step-card p {
            font-size: 0.91rem;
            color: var(--text-soft);
            margin: 0;
            text-align: left;
        }

        .icon-dot {
            width: 34px;
            height: 34px;
            border-radius: 13px;
            display: inline-grid;
            place-items: center;
            color: #ffffff;
            background: linear-gradient(135deg, #0284c7, #0f172a);
            margin-bottom: 0.5rem;
        }

        .pricing-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            overflow: hidden;
            border: 1px solid #dbeafe;
            border-radius: 18px;
            margin: 0.85rem 0 1.15rem;
            font-size: 0.92rem;
            page-break-inside: avoid;
        }

        .pricing-table th {
            background: linear-gradient(135deg, #0f172a, #0284c7);
            color: #ffffff;
            padding: 0.72rem 0.8rem;
            text-align: left;
            font-weight: 900;
        }

        .pricing-table td {
            padding: 0.72rem 0.8rem;
            border-top: 1px solid #e2e8f0;
            vertical-align: top;
            background: #ffffff;
        }

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

        .negotiation-note {
            background:
                linear-gradient(135deg, rgba(245,158,11,0.15), rgba(255,255,255,0.98)),
                #fffbeb;
            padding: 1rem 1.1rem;
            border-left: 5px solid var(--accent-color);
            border-radius: 0 18px 18px 0;
            margin-bottom: 1rem;
            font-size: 0.98rem;
            box-shadow: 0 12px 22px rgba(245,158,11,0.08);
            page-break-inside: avoid;
        }

        .implementation-timeline {
            counter-reset: step;
            margin: 0.75rem 0 1.15rem;
            padding: 0;
            list-style: none;
            page-break-inside: avoid;
        }

        .implementation-timeline li {
            counter-increment: step;
            position: relative;
            padding: 0.7rem 0.85rem 0.7rem 3rem;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            margin-bottom: 0.55rem;
            background: #ffffff;
            box-shadow: 0 8px 18px rgba(15,23,42,0.04);
        }

        .implementation-timeline li::before {
            content: counter(step);
            position: absolute;
            left: 0.85rem;
            top: 0.68rem;
            width: 1.55rem;
            height: 1.55rem;
            border-radius: 999px;
            display: grid;
            place-items: center;
            background: #0f172a;
            color: #ffffff;
            font-weight: 900;
            font-size: 0.78rem;
        }

        .implementation-timeline strong {
            color: var(--primary-color);
        }

        .hw-spec-card {
            min-height: 100%;
            background:
                radial-gradient(circle at top right, rgba(34,197,94,0.12), transparent 32%),
                #ffffff;
        }

        .hw-spec-card h6 {
            font-size: 0.95rem;
        }

        .alert-info {
            border-radius: 18px !important;
            border: 1px solid #bae6fd !important;
        }

        .closing-callout {
            border-radius: 22px;
            padding: 1.1rem 1.2rem;
            margin: 1.15rem 0;
            color: #ffffff;
            background:
                linear-gradient(135deg, rgba(15,23,42,0.96), rgba(2,132,199,0.92)),
                #0f172a;
            page-break-inside: avoid;
            text-align: left;
        }

        .closing-callout h4 {
            font-size: 1.08rem;
            font-weight: 900;
            margin-bottom: 0.45rem;
        }

        .closing-callout p {
            color: rgba(255,255,255,0.92);
            margin-bottom: 0;
        }

        /* Tanda Tangan */
        .signature-section {
            margin-top: 3.2rem;
            text-align: right;
            font-size: 1rem;
            page-break-inside: avoid;
        }

        .signature-space {
            height: 82px;
        }

        .signature-name {
            font-weight: 900;
            text-decoration: underline;
            color: var(--primary-color);
        }

        .document-footer-note {
            margin-top: 2rem;
            padding-top: 0.85rem;
            border-top: 1px dashed #cbd5e1;
            color: var(--muted-color);
            font-size: 0.78rem;
            text-align: center;
            page-break-inside: avoid;
        }

        .btn-print {
            position: fixed;
            /* 7.5rem supaya lolos dari tombol "Tanya Jawab" (bantuan_button.jsp:
               right:16px; bottom:62px). */
            bottom: 7.5rem;
            right: 2rem;
            z-index: 1000;
            border-radius: 999px;
            padding: 0.9rem 1.35rem;
            box-shadow: 0 16px 34px rgba(2, 132, 199, 0.28);
            font-family: "Segoe UI", sans-serif;
            border: 0;
            background: linear-gradient(135deg, #0284c7, #0f172a);
        }

        .btn-print:hover {
            filter: brightness(1.05);
            transform: translateY(-1px);
        }

        @page {
            size: A4;
            margin: 12mm;
        }

        @media (max-width: 900px) {
            .letter-paper {
                width: calc(100% - 1.2rem);
                padding: 1.6rem 1.1rem;
                border-radius: 18px;
            }

            .kop-surat,
            .meta-surat,
            .doc-quick-summary,
            .insight-grid,
            .deliverable-grid,
            .next-step-grid {
                grid-template-columns: 1fr;
            }

            .kop-surat {
                flex-direction: column;
                text-align: center;
            }

            .kop-text {
                text-align: center;
            }

            .meta-kanan {
                text-align: left;
                justify-content: flex-start;
                min-width: 0;
            }
        }

        @media print {
            body {
                background: #ffffff !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .container {
                padding: 0 !important;
                margin: 0 !important;
                max-width: 100% !important;
            }

            .letter-paper {
                width: 100%;
                max-width: 100%;
                margin: 0;
                padding: 0;
                box-shadow: none;
                border: 0;
                border-radius: 0;
            }

            .letter-paper::before {
                height: 6px;
            }

            .btn-print,
            .letter-watermark {
                display: none !important;
            }

            .highlight-list li,
            .insight-card,
            .deliverable-card,
            .next-step-card,
            .hw-spec-card,
            .panel-box,
            .executive-summary {
                box-shadow: none !important;
            }

            a {
                color: inherit;
                text-decoration: none;
            }
        }
