/* Factory ERP - Custom Styling */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --erp-primary: #1e3a8a;
    --erp-primary-hover: #172554;
    --erp-accent: #0284c7;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
}

code, kbd, samp, pre, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sticky table headers */
.sticky-table-head th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f8fafc;
}

/* Toast Notifications Container */
#toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Smooth modal transitions */
.modal-backdrop {
    backdrop-filter: blur(2px);
}

/* Print Stylesheet for Job Work Sheets and Delivery Challans */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 12pt;
    }
    aside, header, nav, #toast-container, .no-print, button, .btn {
        display: none !important;
    }
    main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .print-sheet {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    .print-sheet * {
        color: #000000 !important;
    }
    @page {
        margin: 1cm;
        size: A4;
    }
}
