body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9ff;
}

.scanning-line {
    height: 2px;
    background: linear-gradient(to right, transparent, #1e40af, transparent);
    position: absolute;
    width: 100%;
    top: 0;
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.pulse-overlay {
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(30, 64, 175, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 64, 175, 0); }
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

@media print {
    /* Sembunyikan elemen navigasi, sidebar, header web, dan tombol aksi */
    aside, header, .flex.flex-wrap.items-center.gap-2, button, a, .mb-6.flex {
        display: none !important;
    }

    /* Munculkan judul laporan khusus cetak */
    .print-header {
        display: block !important;
    }

    /* Lebarkan area konten utama secara penuh */
    main, .ml-\[280px\] {
        margin-left: 0 !important;
        width: 100% !important;
        background-color: white !important;
        padding: 0 !important;
    }

    body {
        background-color: white !important;
        color: black !important;
    }

    /* Format tabel cetak */
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-top: 10px;
    }

    th, td {
        border: 1px solid #000000 !important;
        padding: 6px 8px !important;
        font-size: 12px !important;
        color: black !important;
        text-align: left;
    }

    th {
        background-color: #f3f4f6 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Sembunyikan kolom aksi (edit/hapus) saat diprint */
    th:last-child, td:last-child {
        display: none !important;
    }
}

@media print {
    @page {
        size: landscape; /* Mengubah orientasi cetak printer menjadi lanskap (melebar ke samping) */
    }

    /* Sembunyikan elemen latar belakang web saat perintah print dipanggil */
    aside, header, form, button, .print\:hidden {
        display: none !important;
    }
    body, main, #slipModal {
        background-color: white !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
    #slipModal {
        display: block !important;
    }
}
