        body { 
            font-family: 'Prompt', sans-serif; background-color: #F5F5F7; 
            background-image: radial-gradient(at 0% 0%, rgba(0, 113, 227, 0.04) 0px, transparent 50%), radial-gradient(at 100% 0%, rgba(52, 199, 89, 0.02) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(255, 59, 48, 0.02) 0px, transparent 50%);
            background-attachment: fixed; color: #1D1D1F; font-size: 15px; overflow-x: hidden; -webkit-font-smoothing: antialiased;
        }

        .login-premium-bg { background-image: url('https://images.unsplash.com/photo-1586528116311-ad8ed7c663be?q=80&w=2070&auto=format&fit=crop'); background-size: cover; background-position: center; }
        .premium-input { width: 100%; font-size: 15px; outline: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); background: #FFFFFF; border: 1.5px solid #E5E7EB; border-radius: 12px; padding: 14px 16px; color: #111827; }
        .premium-input::placeholder { color: #9CA3AF; font-weight: 400; }
        .premium-input:focus { border-color: #111827; box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.05); }

        .glass-panel, .glass-card { background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(255, 255, 255, 0.5); border-radius: 24px; }
        .glass-header { background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border-bottom: 1px solid rgba(255, 255, 255, 0.8); }
        .glass-sidebar { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); border-right: 1px solid rgba(255, 255, 255, 0.8); }

        .segmented-control { background: #EEEEF0; border-radius: 12px; padding: 3px; display: flex; }
        .segmented-control label { flex: 1; text-align: center; }
        .segmented-control input[type="radio"]:checked + div { background: #FFFFFF; box-shadow: 0 3px 8px rgba(0,0,0,0.12), 0 3px 1px rgba(0,0,0,0.04); color: #1D1D1F; font-weight: 600; }
        .segmented-control div { padding: 8px 12px; border-radius: 10px; color: #86868B; transition: all 0.2s ease; cursor: pointer; font-size: 14px; }

        .input-style { width: 100%; font-size: 15px; outline: none; transition: all 0.2s ease; background: #F5F5F7; border: 1px solid transparent; border-radius: 12px; padding: 12px 16px; color: #1D1D1F; }
        .input-style::placeholder { color: #86868B; font-weight: 400; }
        .input-style:focus { background: #FFFFFF; border-color: #0071E3; box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15); }
        .input-style:disabled { background: #E5E5EA; color: #86868B; cursor: not-allowed; opacity: 0.7;}

        .btn-modern { transition: all 0.2s ease; font-weight: 600; letter-spacing: -0.01em; display: inline-flex; align-items: center; justify-content: center; }
        .btn-modern:hover:not(:disabled) { opacity: 0.9; transform: scale(0.98); }
        .btn-modern:active:not(:disabled) { transform: scale(0.95); }
        .btn-primary { background: #0071E3; color: white; border-radius: 980px; }
        .btn-primary:hover:not(:disabled) { background-color: #005BB5; opacity: 1; }
        .btn-secondary { background: #1D1D1F; color: white; border-radius: 980px; }
        
        .btn-interactive { position: relative; overflow: hidden; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }
        .btn-interactive::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%); transform: rotate(30deg) translate(-50%, -50%); transition: all 0.6s ease; opacity: 0; }
        .btn-interactive:hover::after { opacity: 1; transform: rotate(30deg) translate(50%, 50%); }
        .btn-interactive i { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
        .btn-interactive:hover i { transform: scale(1.3) rotate(90deg); }

        .sidebar-item { color: #86868B; font-weight: 500; padding: 10px 16px; border-radius: 12px; transition: all 0.2s ease; display: flex; align-items: center; margin-bottom: 4px; font-size: 14px; }
        .sidebar-item:hover { background: #F5F5F7; color: #1D1D1F; }
        .sidebar-item.active { background: #0071E3; color: #FFFFFF; font-weight: 600; }
        .sidebar-item-icon { width: 24px; text-align: center; margin-right: 12px; font-size: 16px; }

        .premium-sidebar-btn { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(0, 113, 227, 0.08), rgba(0, 113, 227, 0.02)); border: 1px solid rgba(0, 113, 227, 0.15); color: #0071E3; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 113, 227, 0.05); z-index: 1; }
        .premium-sidebar-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(0, 113, 227, 0.15), transparent); transition: all 0.5s ease; z-index: -1; }
        .premium-sidebar-btn:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 6px 16px rgba(0, 113, 227, 0.12); border-color: rgba(0, 113, 227, 0.3); background: #FFFFFF; color: #005BB5; }
        .premium-sidebar-btn:hover::before { left: 100%; transition: left 0.6s ease-in-out; }
        .premium-sidebar-btn.active { background: #0071E3; color: #FFFFFF; box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3); border-color: transparent; transform: none; }
        .premium-sidebar-btn.active::before { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent); }
        
        .wave-pulse { animation: ripple-wave 2s infinite; }
        @keyframes ripple-wave { 0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.5); } 70% { box-shadow: 0 0 0 12px rgba(0, 113, 227, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); } }
        .icon-wave-pulse { animation: icon-ripple-wave 2.5s infinite; }
        @keyframes icon-ripple-wave { 0% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.4); transform: scale(0.95); } 50% { box-shadow: 0 0 0 8px rgba(0, 113, 227, 0); transform: scale(1.05); } 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); transform: scale(0.95); } }
        
        .content-section { display: none; opacity: 0; }
        .content-section.active { display: block; animation: smoothFadeIn 0.4s ease forwards; }
        @keyframes smoothFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        .section-header { color: #1D1D1F; padding-bottom: 16px; margin-bottom: 24px; display: flex; align-items: center; font-weight: 700; font-size: 24px; letter-spacing: -0.02em; border-bottom: 1px solid #E5E5EA; }

        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; border: 2px solid #F5F5F7;}
        ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }
        
        table { width: 100%; border-collapse: separate; border-spacing: 0; }
        th { letter-spacing: 0; text-transform: none; color: #86868B; font-weight: 500; font-size: 13px; border-bottom: 1px solid #E5E5EA; }
        td { border-bottom: 1px solid #F5F5F7; }
        tbody tr:last-child td { border-bottom: none; }
        tbody tr { transition: background-color 0.2s; }

        @media print {
            /* 🆕 @page ไม่กำหนดขนาดตายตัวไว้ที่นี่อีกต่อไป — ให้ printSection()/printRequisitionDocument()
               ใน utils.js / requisition-print.js เป็นผู้ตั้งค่า @page แบบไดนามิกผ่าน #dynamic-print-style
               ก่อนสั่งพิมพ์ทุกครั้ง (แนวนอนสำหรับรายงานตาราง, แนวตั้ง A4 สำหรับใบเบิกวัสดุ) */
            * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
            body, html { height: auto !important; overflow: visible !important; background: #fff !important; background-image: none !important; font-size: 11pt !important; color: #000 !important; display: block !important; }
            header, #auth-modal, #sidebar-nav, #mobile-menu-overlay, #admin-floating-alert, .print-hidden, #mobile-header { display: none !important; }
            main { display: block !important; padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: 100% !important; overflow: visible !important; height: auto !important; }
            .content-section { display: none !important; }
            .content-section.active { display: block !important; }
            .content-section.force-hide-print { display: none !important; }
            .glass-panel, .glass-card { background: none !important; border: none !important; box-shadow: none !important; border-radius: 0 !important; padding: 0 !important; }
            .overflow-x-auto { overflow: visible !important; }
            table { border-collapse: collapse !important; width: 100% !important; min-width: 0 !important; table-layout: auto !important; }
            table.whitespace-nowrap, .whitespace-nowrap { white-space: normal !important; }
            thead { display: table-header-group !important; } 
            tfoot { display: table-footer-group !important; }
            tr, td, th { page-break-inside: avoid !important; break-inside: avoid !important; }
            th { background: #eef0f3 !important; border: 1px solid #999 !important; padding: 6px 10px !important; font-size: 10.5pt !important; font-weight: 600 !important; color: #000 !important; text-align: left !important; }
            td { border: 1px solid #ccc !important; padding: 6px 10px !important; font-size: 10.5pt !important; color: #000 !important; }
            tbody tr:nth-child(even) td { background: #f7f7f8 !important; }

            /* 🆕 พื้นที่พิมพ์ใบเบิกวัสดุ — ปกติซ่อนอยู่ (.hidden) จะแสดงเฉพาะตอน printRequisitionDocument()
               เพิ่ม body.printing-requisition แล้วสลับให้เห็นเฉพาะส่วนนี้ ซ่อนส่วนอื่นทั้งหมด */
            #print-requisition-root { display: none; }
            body.printing-requisition main,
            body.printing-requisition .content-section.active { display: none !important; }
            body.printing-requisition #print-requisition-root { display: block !important; }
        }

        .ultra-glass { background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(40px) saturate(150%); -webkit-backdrop-filter: blur(40px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.4); border-radius: 28px; }
        .ultra-glass-inner { background: rgba(255, 255, 255, 0.4); border: 1px solid rgba(255, 255, 255, 0.5); }
        .login-glass-bg { background-color: #f1f3f7; background-image: radial-gradient(at 0% 0%, rgba(0, 113, 227, 0.15) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(52, 199, 89, 0.15) 0px, transparent 50%); }

        /* ============================================================
           🖨️ ใบเบิกวัสดุ (Print A4 Portrait) — ฟอนต์ Sarabun ตามมาตรฐานราชการ 🆕
           ============================================================ */
        @media print {
            .print-a4-page {
                width: 100%;
                min-height: 267mm; /* ความสูง A4 หักระยะขอบโดยประมาณ เพื่อดันลายเซ็นไปก้นหน้ากระดาษ */
                font-family: 'Sarabun', 'Prompt', sans-serif;
                color: #000;
                display: flex;
                flex-direction: column;
                font-size: 15px;
            }
            .print-a4-header { display: flex; align-items: center; gap: 16px; border-bottom: 2px solid #000; padding-bottom: 12px; margin-bottom: 16px; }
            .print-a4-logo { height: 64px; width: auto; object-fit: contain; }
            .print-a4-org-name { font-size: 18px; font-weight: 700; }
            .print-a4-org-address { font-size: 13px; color: #333; margin-top: 2px; }
            .print-a4-title { text-align: center; font-size: 22px; font-weight: 700; margin: 8px 0 16px; letter-spacing: 1px; }
            .print-a4-meta { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; gap: 16px; }
            .print-a4-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
            .print-a4-table th, .print-a4-table td { border: 1px solid #000; padding: 6px 8px; text-align: left; }
            .print-a4-table th { background: #eee !important; font-weight: 700; text-align: center; }
            .print-a4-table td.text-center, .print-a4-table td:nth-child(1), .print-a4-table td:nth-child(3), .print-a4-table td:nth-child(4), .print-a4-table td:nth-child(5) { text-align: center; }
            .print-a4-reason { font-size: 14px; margin: 10px 0 24px; }
            .print-a4-signatures { display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 40px; }
            .print-a4-sign-box { flex: 1; text-align: center; font-size: 13px; }
            .print-a4-sign-image-area { height: 60px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 4px; }
            .print-a4-sign-image { max-height: 56px; max-width: 90%; object-fit: contain; }
            .print-a4-sign-line { border-bottom: 1px dotted #000; margin: 0 8px 6px; }
            .print-a4-sign-label { font-weight: 600; }
            .print-a4-sign-role { color: #333; margin-top: 2px; }
            .print-a4-sign-date { color: #555; font-size: 12px; margin-top: 4px; }
        }
