<!DOCTYPE html>
<html lang="id">
<head>
    <?php helper('logo'); ?>
    <link rel="icon" type="image/png" href="<?= getLogo('sekolah') ?>">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?= esc($title ?? 'Cetak Surat') ?></title>
    <style>
        @page {
            size: A4 portrait;
            margin: 2cm 2cm 2cm 2cm;
        }

        body {
            font-family: "Bookman Old Style", Bookman, "URW Bookman L", Georgia, serif;
            font-size: 12pt;
            line-height: 1.5;
            margin: 0;
            padding: 0;
        }

        .kop, .kop *, #surat-kop, #surat-kop * {
            font-family: Arial, Helvetica, sans-serif !important;
        }

        @media print {
            body * {
                visibility: hidden;
            }
            #surat, #surat * {
                visibility: visible;
            }
            #surat {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
            }
            .no-print {
                display: none !important;
            }
        }

        .no-print {
            margin: 20px 0;
            padding: 10px;
            background: #f5f5f5;
            text-align: center;
        }

        .no-print button {
            padding: 10px 20px;
            margin: 0 5px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
        }

        .btn-print {
            background: #007bff;
            color: white;
        }

        .btn-back {
            background: #6c757d;
            color: white;
        }

        .btn-print:hover {
            background: #0056b3;
        }

        .btn-back:hover {
            background: #545b62;
        }
    </style>
</head>
<body>
    <?= $this->renderSection('content') ?>
</body>
</html>
