/* psbs/assets/css/style.css - VERSI FINAL UNTUK CETAK SEMPURNA */

/* --- STYLE UNTUK TAMPILAN LAYAR (SCREEN) --- */
body {
    background-color: #e9f5ff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Sembunyikan elemen yang hanya untuk dicetak saat di layar */
.print-only {
    display: none !important;
}

/* Style untuk footer */
.bottom-footer .footer-container {
    font-size: 0.85rem;
    align-items: center;
    width: 100%;
}
.footer-static-text {
    flex-shrink: 0;
    white-space: nowrap; 
    padding: 0 1rem;
}
.footer-center {
    flex-grow: 1;
    overflow: hidden; 
    margin: 0 1.5rem;
}
.alert-info a {
    color: #0033cc !important;
    font-weight: 600;
    text-decoration: underline !important;
}

/* --- STYLE KHUSUS SAAT AKAN MENCETAK (PRINT) --- */
@media print {

    .qr-validation-section {
    display: flex !important;    /* Gunakan flexbox untuk layout berdampingan */
    align-items: center;      /* Sejajarkan item di tengah secara vertikal */
    justify-content: space-between; /* Beri jarak antar item */
    border-top: 1px solid #aaa; /* Garis pemisah di atas */
    padding-top: 1rem;        /* Jarak dari garis pemisah */
    width: 100%;
}

.qr-validation-section .qr-code {
    flex-shrink: 0;           /* Jangan biarkan QR Code menyusut */
    margin-right: 1.5rem;     /* Jarak kanan dari QR Code ke teks */
}

.qr-validation-section .qr-code img {
    width: 110px !important;  /* Ukuran QR Code di kertas */
    height: 110px !important;
    display: block;
}

.qr-validation-section .qr-text {
    font-size: 8pt;           /* Ukuran font teks penjelasan */
    color: #333;
    text-align: left;
}















    @page {
        size: A4;
        margin: 1.5cm; /* Margin kertas */
    }

    /* Sembunyikan semua yang tidak perlu */
    .no-print, .bottom-footer {
        display: none !important;
    }

    /* Reset style dasar */
    body {
        background: #fff !important;
        font-size: 11pt;
        color: #000 !important;
        font-family: 'Times New Roman', Times, serif;

    }

    /* Reset layout Bootstrap */
    main.container, .row, .col-md-8, .col-lg-6 {
        margin: 0 !important; padding: 0 !important;
        width: 100% !important; max-width: 100% !important;
    }
    .card.printable-content {
        border: none !important;
        box-shadow: none !important;
    }
    .card-body {
        padding: 0 !important;
        position: relative; /* Jadi acuan watermark */
    }

    /* Tampilkan & atur KOP SURAT */
    .print-only.print-header {
        display: flex !important;
        align-items: center;
        border-bottom: 3px double #000;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
    }
    .print-only.print-header img {
        height: 75px;
        width: auto;
        margin-right: 1.5rem;
    }
    .print-only.print-header .school-identity {
        text-align: center;
        flex-grow: 1;
    }
    .print-only.print-header h4 { font-size: 16pt; font-weight: bold; }
    .print-only.print-header h5 { font-size: 14pt; }
    
    /* Paksa cetak warna & ikon */
  
    .alert-success { background-color: #d1e7dd !important; border-color: #badbcc !important; color: #0f5132 !important; }
    .alert-danger { background-color: #f8d7da !important; border-color: #f5c6cb !important; color: #842029 !important; }
    .alert-info { background-color: #cff4fc !important; border-color: #b6effb !important; color: #055160 !important; }
    [class^="bi-"]::before, [class*=" bi-"]::before { color: inherit !important; }

    /* Atur style watermark */
    .card-body::after {
        content: "DOKUMEN ASLI";
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
        z-index: -1;
        font-size: 5rem;
        color: rgba(0, 0, 0, 0.07) !important;
        font-weight: 700;
        pointer-events: none;
    }







}