/* style.css */

/* Font default untuk UI utama */
body { 
    font-family: 'Inter', sans-serif; 
}

/* Kelas utilitas untuk transisi */
.transition-all {
    transition: all 0.3s ease-in-out;
}

/* ================================= */
/* == CSS KHUSUS GENERATOR INVOICE == */
/* ================================= */

/* Definisi font kustom untuk invoice */
@font-face {
    font-family: 'PrimaSansBT';
    /* Path disesuaikan dari root folder CSS */
    src: url('../font/PrimaSansBT-Regular.ttf') format('truetype');
}

/* Gaya dasar untuk pratinjau invoice */
#invoice-preview {
    font-family: 'PrimaSansBT', 'Arial', sans-serif;
    color: black;
    font-size: 8px;
}

/* Gaya untuk link di footer invoice */
.footer-link {
    color: #0000ee;
    text-decoration: underline;
}

/* Gaya untuk header hijau di invoice */
.header-custom-bg {
    background-color: #3b8628;
}

/* ================================= */
/* ==       ATURAN CETAK          == */
/* ================================= */
@media print {
    @page {
        size: a4;
        margin: 0;
    }
    body {
        background-color: white !important;
    }
    /* Sembunyikan semua elemen KECUALI kontainer invoice */
    body * {
        visibility: hidden;
    }
    #invoice-container, #invoice-container * {
        visibility: visible;
    }
    #invoice-container {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
    #invoice-preview {
        box-shadow: none;
        border: none;
    }
    /* Sembunyikan elemen yang tidak perlu dicetak */
    .no-print {
        display: none;
    }
}
