/**
 * Stok Cafe - Print CSS
 * Style khusus untuk cetak struk dan invoice
 */

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        font-size: 12px;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    /* Sembunyikan elemen yang tidak perlu */
    .navbar,
    .sidebar,
    .btn,
    .no-print,
    .toast-container,
    .loading-overlay {
        display: none !important;
    }
    
    /* Reset layout */
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    /* Struk thermal 80mm */
    .struk-print {
        width: 80mm;
        max-width: 80mm;
        margin: 0 auto;
        padding: 5mm;
    }
    
    .struk-print * {
        font-family: 'Courier New', monospace;
        font-size: 11px;
    }
    
    .struk-print h1 {
        font-size: 14px;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .struk-print .struk-header {
        text-align: center;
        border-bottom: 1px dashed #000;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }
    
    .struk-print .struk-item {
        display: flex;
        justify-content: space-between;
        margin: 2px 0;
    }
    
    .struk-print .struk-total {
        border-top: 1px dashed #000;
        border-bottom: 1px dashed #000;
        padding: 5px 0;
        margin: 5px 0;
        font-weight: bold;
    }
    
    .struk-print .struk-footer {
        text-align: center;
        margin-top: 10px;
        font-size: 10px;
    }
    
    /* Invoice A4 */
    .invoice-print {
        width: 210mm;
        max-width: 210mm;
        margin: 0 auto;
        padding: 20mm;
    }
    
    .invoice-print h1 {
        font-size: 24px;
    }
    
    .invoice-print table {
        width: 100%;
        border-collapse: collapse;
        margin: 15px 0;
    }
    
    .invoice-print th,
    .invoice-print td {
        padding: 8px;
        border: 1px solid #ddd;
        text-align: left;
    }
    
    .invoice-print th {
        background: #0D47A1;
        color: white;
    }
    
    /* Page break */
    .page-break {
        page-break-before: always;
    }
    
    /* Links */
    a {
        text-decoration: none;
        color: #000;
    }
}

/* Tombol print */
@media screen {
    .print-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }
}
