/* Custom scrollbar for Editor */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Base Print Styles */
@media print {
    @page { 
        size: A4; 
        margin: 0 !important; 
    }
    body { 
        margin: 0 !important; 
        -webkit-print-color-adjust: exact !important; 
        print-color-adjust: exact !important; 
    }
    #invoice-capture {
        width: 210mm !important;
        height: 297mm !important;
        transform: scale(1) !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
    .no-print { 
        display: none !important; 
    }
}

/* Invoice Capture Container */
#invoice-capture {
    width: 210mm;
    min-height: 297mm;
    background-color: white;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #invoice-capture {
        transform-origin: top center;
    }
}

/* A4 Page Layout for Preview and PDF */
.a4-page {
    width: 794px !important;    /* A4 Width at 96 DPI */
    height: 1123px !important;  /* A4 Height at 96 DPI */
    background-color: white !important;
    color: black !important;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.no-shadow {
    box-shadow: none !important;
    border: none !important;
}

/* Utilities for Templates */
.clip-path-slant {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%);
}

/* Chevron icon rotation */
.chevron-icon {
    transition: transform 0.2s ease-in-out;
}
.chevron-icon.rotate-180 {
    transform: rotate(180deg);
}
