<!doctype html>
<html lang="id">

<head>
    <meta charset="utf-8">
    <title>Kartu Ujian</title>

    <style>
        * {
            box-sizing: border-box;
        }

        body.print-body.v2 {
            margin: 0;
            padding: 24px;
            background: #dff5ff;
            font-family: Arial, sans-serif;
        }

        .print-toolbar {
            margin-bottom: 20px;
        }

        .btn-gray,
        .btn-blue {
            display: inline-block;
            padding: 10px 16px;
            border-radius: 8px;
            text-decoration: none;
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
        }

        .btn-gray {
            background: #475569;
            color: white;
        }

        .btn-blue {
            background: #2563eb;
            color: white;
        }

        .exam-card-v2 {
            position: relative;
            width: 340px;
            min-height: 535px;
            margin: 0 auto;
            background: #ffffff;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
            border: 1px solid #b7e0f7;
        }

        .exam-card-v2::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 18px;
            background: #0ea5e9;
            z-index: 1;
        }

        .exam-card-v2::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: 0;
            width: 100%;
            height: 10px;
            background: #0ea5e9;
            z-index: 1;
        }

        .left-panel {
            background: transparent;
            padding: 34px 18px 0;
            text-align: center;
            color: #0f172a;
        }

        .logo-row-v2 {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin-bottom: 6px;
        }

        .logo-box-v2 {
            width: 55px;
            height: 55px;
            background: white;
            border-radius: 50%;
            padding: 3px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .school-logo-v2 {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .photo-box {
            background: transparent;
            border: none;
            padding: 0;
        }

        .student-photo-v2 {
            width: 165px;
            height: 200px;
            object-fit: cover;
            background: #fff;
            border-radius: 4px;
            border: 2px solid #0ea5e9;
            display: block;
            margin: 10px auto 0;
        }

        .photo-area {
            margin-top: 50px;
            text-align: center;
        }

        .photo-label,
        .number-box,
        .barcode {
            display: none;
        }

        .main-panel {
            padding: 0 22px 45px;
        }

        .card-header-v2 {
            text-align: center;
            margin-top: -270px;
            padding-top: 34px;
        }

        .card-header-v2 h1 {
            margin: 0;
            font-size: 18px;
            color: #111827;
            text-transform: uppercase;
            line-height: 1.1;
            font-weight: 800;
        }

        .card-header-v2 p {
            margin: 4px auto 8px;
            font-size: 8.5px;
            color: #334155;
            line-height: 1.25;
            max-width: 235px;
        }

        .divider span {
            width: 260px;
            height: 2px;
            background: #0ea5e9;
            border-radius: 999px;
        }

        .card-header-v2 h2 {
            margin: 8px 0 2px;
            font-size: 25px;
            color: #123b91;
            letter-spacing: 1px;
            font-weight: 900;
        }

        .year-ribbon {
            display: inline-block;
            background: #facc15;
            color: #111827;
            font-weight: 800;
            padding: 3px 14px;
            border-radius: 4px;
            font-size: 10px;
        }

        .student-info-v2 {
            margin-top: 230px;
            background: transparent;
            border-radius: 0;
            padding: 0;
            border: none;
        }

        .row-info {
            display: grid;
            grid-template-columns: 105px 8px 1fr;
            gap: 4px;
            padding: 3px 0;
            border-bottom: 1px solid #a7d8f5;
            font-size: 12px;
            line-height: 1.15;
        }

        .row-info label {
            font-weight: 700;
            color: #111827;
        }

        .row-info b {
            color: #111827;
            font-weight: 500;
        }

        .bottom-area {
            margin-top: 10px;
            display: block;
        }

        .note-box,
        .bottom-area .signature-box:last-child {
            display: none;
        }

        .signature-box {
            text-align: center;
            font-size: 10px;
            color: #0f172a;
        }

        .signature-space {
            height: 24px;
        }

        .signature-box strong {
            display: block;
            text-decoration: underline;
            font-size: 10px;
        }

        .signature-box small {
            display: block;
            font-size: 8px;
        }

        .warning-strip {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 18px;
            background: #123b91;
            color: white;
            text-align: center;
            padding: 7px 8px;
            font-size: 8px;
            font-weight: bold;
            letter-spacing: .3px;
            z-index: 2;
        }

        .corner,
        .dot {
            display: none;
        }

        @media print {
            @page {
                size: 86mm 135mm;
                margin: 0;
            }

            .no-print {
                display: none !important;
            }

            body.print-body.v2 {
                background: white !important;
                padding: 0 !important;
                margin: 0 !important;
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .exam-card-v2 {
                width: 86mm;
                min-height: 135mm;
                border-radius: 0;
                box-shadow: none !important;
                margin: 0 auto;
            }
        }
    </style>
</head>

<body class="print-body v2">

    <?php include 'template_kartu_body.php'; ?>

</body>

</html>