:root { --primary: #6366f1; --primary-hover: #4f46e5; --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); --glass: rgba(255, 255, 255, 0.05); --glass-border: rgba(255, 255, 255, 0.1); --text: #f8fafc; --text-dim: #94a3b8; --success: #22c55e; --warning: #eab308; --danger: #ef4444; --accent: #8b5cf6; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg-gradient); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; } .dashboard { max-width: 1400px; margin: 40px auto; padding: 0 20px; width: 100%; } header { text-align: center; margin-bottom: 30px; animation: fadeInDown 0.8s ease-out; } h1 { font-size: 2.5rem; font-weight: 800; background: linear-gradient(to right, #818cf8, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; } .subtitle { color: var(--text-dim); font-size: 1.1rem; } /* ═══ Page Navigation ═══ */ .page-nav { display: flex; background: rgba(0, 0, 0, 0.3); padding: 4px; border-radius: 14px; margin-bottom: 24px; gap: 4px; animation: scaleIn 0.4s ease-out; } .page-nav-btn { flex: 1; padding: 14px 24px; border: none; background: transparent; color: var(--text-dim); font-weight: 700; font-size: 1rem; border-radius: 10px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; gap: 10px; } .page-nav-btn.active { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35); } .page-nav-btn:not(.active):hover { background: rgba(255, 255, 255, 0.06); color: var(--text); } /* ═══ Main Card ═══ */ .main-card { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: 24px; padding: 40px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); animation: scaleIn 0.5s ease-out; } /* ═══ Config Bar ═══ */ .config-bar { display: flex; align-items: center; justify-content: space-between; background: rgba(0, 0, 0, 0.2); padding: 12px 20px; border-radius: 12px; margin-bottom: 20px; gap: 12px; } .config-status { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 0.9rem; } .config-status.loaded { color: var(--success); } .btn-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text); border: 1px solid var(--glass-border); padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; font-size: 0.85rem; } .btn-secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--primary); } .btn-secondary:disabled { opacity: 0.4; cursor: not-allowed; } /* ═══ Mode Toggle (4 modes) ═══ */ .mode-toggle { display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(0, 0, 0, 0.2); padding: 4px; border-radius: 12px; margin-bottom: 30px; gap: 4px; } .mode-btn { padding: 12px 8px; border: none; background: transparent; color: var(--text-dim); font-weight: 600; border-radius: 8px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 0.82rem; text-align: center; line-height: 1.3; } .mode-btn.active { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); } .mode-btn:not(.active):hover { background: rgba(255, 255, 255, 0.06); } /* ═══ Drop Zone ═══ */ .drop-zone { border: 2px dashed var(--glass-border); border-radius: 16px; padding: 60px 40px; text-align: center; transition: all 0.3s ease; cursor: pointer; background: rgba(255, 255, 255, 0.02); margin-bottom: 30px; } .drop-zone:hover, .drop-zone.dragover { border-color: var(--primary); background: rgba(99, 102, 241, 0.05); } .drop-zone i { font-size: 3rem; color: var(--primary); margin-bottom: 15px; display: block; } /* ═══ NAD Card Grid ═══ */ .nad-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 10px; } .nad-card { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--glass-border); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 8px; transition: border-color 0.3s; } .nad-card:hover { border-color: var(--primary); } .nad-card-header { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 4px; font-size: 0.95rem; } .nad-qualifier { background: var(--primary); color: white; padding: 3px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; } .nad-card label { display: flex; flex-direction: column; gap: 3px; font-size: 0.78rem; color: var(--text-dim); } .nad-input { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--glass-border); color: white; padding: 6px 10px; border-radius: 6px; font-size: 0.85rem; font-family: 'Inter', sans-serif; width: 100%; transition: border-color 0.2s; } .nad-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15); } /* ═══ Enrichment Section ═══ */ .enrichment-section { display: none; margin-top: 30px; } table { width: 100%; border-collapse: collapse; margin-top: 15px; } th { text-align: left; padding: 10px 12px; color: var(--text-dim); font-size: 0.85rem; border-bottom: 1px solid var(--glass-border); } td { padding: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.9rem; } input[type="number"] { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--glass-border); color: white; padding: 6px 10px; border-radius: 6px; width: 110px; font-family: 'Fira Code', monospace; font-size: 0.85rem; } input[type="number"]:focus { outline: 2px solid var(--primary); border-color: transparent; } /* ═══ Badges ═══ */ .badge { padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; } .badge-vda { background: rgba(234, 179, 8, 0.1); color: #eab308; } .badge-edi { background: rgba(34, 197, 94, 0.1); color: #22c55e; } .badge-config { background: rgba(99, 102, 241, 0.15); color: #818cf8; } /* ═══ Stats Grid ═══ */ .stats-grid { display: flex; gap: 16px; margin-bottom: 20px; } .stat-card { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--glass-border); border-radius: 12px; padding: 16px 24px; text-align: center; min-width: 120px; } .stat-card.stat-warning { border-color: var(--warning); } .stat-card.active { background: rgba(99, 102, 241, 0.15); border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); } .stat-card:hover { border-color: var(--primary); background: rgba(255, 255, 255, 0.04); } .stat-value { font-size: 1.8rem; font-weight: 800; color: var(--primary); } .stat-label { font-size: 0.8rem; color: var(--text-dim); margin-top: 4px; } /* ═══ Result Section ═══ */ .result-section { display: none; margin-top: 40px; } .preview-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } pre { background: #000; padding: 20px; border-radius: 12px; overflow-x: auto; font-family: 'Fira Code', monospace; font-size: 0.85rem; color: #a5f3fc; border: 1px solid var(--glass-border); max-height: 400px; white-space: pre-wrap; word-break: break-all; } /* ═══ Buttons ═══ */ .btn-primary { background: var(--primary); color: white; border: none; padding: 14px 28px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; gap: 10px; } .btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); } .btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; } /* ═══ Settings Page – Sidebar Layout ═══ */ .settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; } .settings-sidebar { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--glass-border); border-radius: 16px; padding: 12px; position: sticky; top: 20px; } .settings-sidebar-header { display: flex; align-items: center; gap: 10px; padding: 10px 12px 14px; font-weight: 700; font-size: 0.9rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--glass-border); margin-bottom: 8px; } .settings-sidebar-header i { color: var(--primary); width: 16px; height: 16px; } .settings-nav-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 14px; border: none; background: transparent; color: var(--text-dim); font-weight: 600; font-size: 0.88rem; border-radius: 10px; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); text-align: left; } .settings-nav-btn i { width: 16px; height: 16px; flex-shrink: 0; transition: color 0.2s; } .settings-nav-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); } .settings-nav-btn.active { background: rgba(99, 102, 241, 0.15); color: var(--text); border-left: 3px solid var(--primary); padding-left: 11px; } .settings-nav-btn.active i { color: var(--primary); } .settings-content { min-width: 0; } .settings-section { animation: fadeIn 0.2s ease-out; } .settings-section-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--glass-border); } .settings-section-header h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; } .settings-section-sub { font-size: 0.9rem; font-weight: 400; color: var(--text-dim); } /* ═══ Watcher Banner ═══ */ .watcher-banner { display: flex; align-items: center; justify-content: space-between; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--glass-border); border-radius: 14px; padding: 14px 20px; margin-bottom: 20px; transition: border-color 0.3s, background 0.3s; } .watcher-banner.running { background: rgba(34, 197, 94, 0.06); border-color: rgba(34, 197, 94, 0.35); } .watcher-banner.paused { background: rgba(234, 179, 8, 0.06); border-color: rgba(234, 179, 8, 0.35); } .watcher-banner-left { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1rem; } /* ═══ Section Panel (sub-card) ═══ */ .section-panel { background: rgba(0, 0, 0, 0.2); border: 1px solid var(--glass-border); border-radius: 14px; padding: 20px; } .section-panel-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 4px; } .section-panel-header > i { color: var(--primary); margin-top: 4px; flex-shrink: 0; width: 18px; height: 18px; } .section-panel-header h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; } /* ═══ 3-column folder grid ═══ */ .settings-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; } /* ═══ Settings Title (legacy – kept for History page) ═══ */ .settings-title { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; margin-bottom: 8px; } .settings-title i { color: var(--primary); } .electron-notice { display: flex; align-items: center; gap: 12px; background: rgba(234, 179, 8, 0.1); border: 1px solid rgba(234, 179, 8, 0.3); color: var(--warning); padding: 14px 20px; border-radius: 12px; margin-bottom: 24px; font-size: 0.9rem; } .electron-notice code { background: rgba(0, 0, 0, 0.3); padding: 2px 8px; border-radius: 4px; font-family: 'Fira Code', monospace; font-size: 0.85rem; } .settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 30px; } .settings-card { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--glass-border); border-radius: 16px; padding: 24px; transition: border-color 0.3s; } .settings-card:hover { border-color: var(--primary); } .settings-card-header { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 12px; font-size: 1rem; } .settings-card-header i { color: var(--primary); } .folder-input-row { display: flex; gap: 10px; } .folder-path-input { flex: 1; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--glass-border); color: white; padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; font-family: 'Fira Code', monospace; } .folder-path-input:focus { outline: none; border-color: var(--primary); } /* ═══ Watcher Controls ═══ */ .watcher-controls { display: flex; align-items: center; justify-content: space-between; background: rgba(0, 0, 0, 0.2); padding: 16px 24px; border-radius: 14px; margin-bottom: 30px; } .watcher-status-display { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1rem; } .watcher-status-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--text-dim); transition: all 0.3s; } .watcher-status-dot.running { background: var(--success); box-shadow: 0 0 12px rgba(34, 197, 94, 0.5); animation: pulse 2s ease-in-out infinite; } .watcher-status-dot.paused { background: var(--warning); box-shadow: 0 0 12px rgba(234, 179, 8, 0.4); } .watcher-status-dot.stopped { background: var(--text-dim); } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .watcher-buttons { display: flex; gap: 10px; } .btn-start { background: var(--success) !important; } .btn-start:hover:not(:disabled) { background: #16a34a !important; } .btn-stop { border-color: var(--danger) !important; color: var(--danger) !important; } .btn-stop:hover:not(:disabled) { background: rgba(239, 68, 68, 0.1) !important; } /* ═══ Log Section ═══ */ .log-section { margin-top: 10px; } .log-container { background: #000; border: 1px solid var(--glass-border); border-radius: 12px; padding: 16px; max-height: 350px; overflow-y: auto; font-family: 'Fira Code', monospace; font-size: 0.82rem; } .log-empty { color: var(--text-dim); text-align: center; padding: 30px; } .log-entry { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); animation: fadeIn 0.3s ease-out; } .log-time { color: var(--text-dim); font-size: 0.78rem; flex-shrink: 0; } .log-level { font-weight: 700; font-size: 0.72rem; padding: 2px 6px; border-radius: 3px; flex-shrink: 0; } .log-info .log-level { background: rgba(99, 102, 241, 0.15); color: #818cf8; } .log-success .log-level { background: rgba(34, 197, 94, 0.15); color: #22c55e; } .log-error .log-level { background: rgba(239, 68, 68, 0.15); color: #ef4444; } .log-file { color: #c084fc; flex-shrink: 0; } .log-msg { color: var(--text); } /* ═══ Animations ═══ */ @keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } @keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* ═══ Utility ═══ */ .hidden { display: none; } /* ═══ Responsive ═══ */ @media (max-width: 1100px) { .mode-toggle { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 900px) { .nad-grid { grid-template-columns: 1fr; } .settings-grid { grid-template-columns: 1fr; } .watcher-controls { flex-direction: column; gap: 16px; } .mode-toggle { grid-template-columns: 1fr; } } /* ═══ EDI Viewer & Print Styles ═══ */ .viewer-actions { display: flex; gap: 10px; } .document-render-area { margin-top: 20px; display: none; background: white; color: #1e293b; border-radius: 16px; padding: 50px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); font-family: 'Inter', sans-serif; line-height: 1.5; } .print-document { max-width: 1000px; margin: 0 auto; } .print-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid #e2e8f0; padding-bottom: 15px; margin-bottom: 20px; font-size: 0.95rem; color: #64748b; } .print-header strong { color: #0f172a; } .print-title { font-size: 1.5rem; font-weight: 800; color: #4f46e5; text-transform: uppercase; letter-spacing: 0.05em; } .print-original { font-weight: 700; color: #16a34a; background: #dcfce7; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; } .print-address-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 30px; } .print-address-box { border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 12px; padding: 16px; min-height: 140px; font-size: 0.85rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02); } .box-title { border-bottom: 1px solid #cbd5e1; margin-bottom: 10px; padding-bottom: 6px; font-weight: 600; color: #475569; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; } .address-content { color: #0f172a; } .print-meta-bar { display: flex; justify-content: space-between; background: #f1f5f9; border-radius: 8px; padding: 12px 20px; font-size: 0.9rem; margin-bottom: 30px; color: #334155; } .print-meta-bar strong { color: #4f46e5; font-size: 1.05rem; } .print-article-row { margin-bottom: 40px; font-size: 0.9rem; background: white; } .article-header, .article-details { display: flex; padding: 8px 12px; } .article-header { font-weight: 700; background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 2px solid #cbd5e1; color: #475569; } .article-details { border-bottom: 1px dashed #e2e8f0; color: #0f172a; } .col-pos { width: 50px; } .col-art { width: 180px; font-family: 'Fira Code', monospace; font-size: 0.95rem; } .col-desc { flex: 1; } .article-sub-details { display: flex; gap: 30px; margin: 10px 0 20px 0px; font-size: 0.85rem; color: #64748b; } .article-sub-details strong { color: #0f172a; } .delivery-table, .schedule-table { width: 100%; margin-left: 0; border-collapse: collapse; margin-top: 15px; font-size: 0.85rem; } .delivery-table th, .schedule-table th { border-top: 1px solid #cbd5e1; border-bottom: 2px solid #cbd5e1; padding: 10px 8px; text-align: left; color: #475569; font-weight: 600; background: #f8fafc; } .delivery-table td, .schedule-table td { border-bottom: 1px solid #e2e8f0; padding: 8px; color: #334155; } .delivery-table tr:hover td, .schedule-table tr:hover td { background: #f1f5f9; } .month-sum-row td { font-weight: 700; color: #4f46e5 !important; border-bottom: 2px solid #e0e7ff !important; background: #f8fafc; } .text-right { text-align: right !important; } .print-footer { display: flex; justify-content: space-between; margin-top: 50px; border-top: 1px solid #cbd5e1; padding-top: 15px; font-size: 0.8rem; color: #64748b; } @media print { body { background: white; color: black; margin: 0; padding: 0; } .dashboard { margin: 0; padding: 0; max-width: none; } .no-print, header, .page-nav, .config-bar { display: none !important; } .main-card { border: none; box-shadow: none; padding: 0; background: transparent; } .document-render-area { margin: 0; padding: 0; box-shadow: none; display: block !important; } .print-address-box { box-shadow: none; background: white; } } /* --- VDA 4913 Improved Viewer Styles --- */ .vda-4913-document { color: #0f172a; line-height: 1.4; } .vda-header-grid { display: flex; justify-content: space-between; margin-bottom: 30px; gap: 30px; } .vda-address-section { flex: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .vda-address-card { padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; } .address-label { font-size: 0.75rem; font-weight: 700; color: #64748b; text-transform: uppercase; margin-bottom: 6px; border-bottom: 1px solid #cbd5e1; padding-bottom: 3px; } .address-content { font-size: 0.9rem; } .vda-meta-card { flex: 1; background: #f1f5f9; padding: 15px; border-radius: 8px; border: 1px solid #cbd5e1; } .meta-table { width: 100%; font-size: 0.85rem; border-collapse: collapse; } .meta-table td { padding: 4px 0; border-bottom: none; } .meta-table td:first-child { color: #64748b; font-weight: 600; } .vda-transport-block { margin-bottom: 30px; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; } .vda-transport-header { background: #334155; color: white; padding: 10px 15px; display: flex; align-items: center; gap: 15px; font-weight: 700; font-size: 0.95rem; } .vda-transport-stats { margin-left: auto; display: flex; gap: 20px; font-size: 0.85rem; font-weight: 400; } .vda-transport-stats strong { color: #94a3b8; } .vda-dn-card { padding: 20px; border-bottom: 1px dashed #cbd5e1; } .vda-dn-card:last-child { border-bottom: none; } .vda-dn-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 15px; } .dn-title { font-size: 1.2rem; font-weight: 800; color: #1e40af; } .dn-meta { display: flex; gap: 20px; font-size: 0.85rem; color: #475569; } .dn-meta strong { color: #0f172a; } .vda-dn-notes { background: #fffbeb; padding: 8px 12px; border-radius: 6px; border: 1px solid #fde68a; font-size: 0.8rem; color: #92400e; margin-bottom: 15px; } .vda-pos-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; } .vda-pos-table th { background: #f8fafc; color: #475569; font-size: 0.75rem; padding: 8px 10px; text-transform: uppercase; border-bottom: 2px solid #e2e8f0; } .vda-pos-table td { padding: 10px; font-size: 0.9rem; border-bottom: 1px solid #f1f5f9; } .mat-cust { font-weight: 700; color: #1e40af; } .mat-rev { font-size: 0.75rem; color: #64748b; font-style: italic; } .mat-supp { color: #64748b; font-family: 'Fira Code', monospace; font-size: 0.8rem; } .qty-val { font-size: 1.05rem; } .ref-val { font-family: 'Fira Code', monospace; font-size: 0.8rem; } .pack-row td { padding: 0 10px 15px 10px; border-bottom: 1px solid #e2e8f0; } .vda-pack-list { background: #f8fafc; padding: 10px 15px; border-radius: 6px; display: flex; gap: 15px; align-items: flex-start; } .pack-label { font-size: 0.75rem; font-weight: 700; color: #64748b; white-space: nowrap; margin-top: 3px; } .pack-items { display: flex; flex-direction: column; gap: 4px; } .pack-item { font-size: 0.85rem; } .pk-qty { font-weight: 800; color: #475569; margin-right: 5px; } .pk-name { font-weight: 600; } .pk-labels { color: #94a3b8; font-size: 0.75rem; margin-left: 10px; } .desadv-document .print-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #e2e8f0; padding-bottom: 15px; margin-bottom: 20px; } .desadv-document h1 { font-size: 1.5rem; font-weight: 800; margin: 0; color: #1e293b; } .doc-type-badge { background: #6366f1; color: white; padding: 3px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; display: inline-block; margin-bottom: 5px; } .info-box { background: #f8fafc; border: 1px dashed #cbd5e1; } .sub-info { margin-top: 10px; padding-top: 5px; border-top: 1px solid #e2e8f0; font-size: 0.85rem; } .meta-item { display: flex; flex-direction: column; } .meta-item .label { font-size: 0.7rem; color: #64748b; text-transform: uppercase; } .article-header-main { display: grid; grid-template-columns: 40px 180px 1fr 100px; gap: 15px; align-items: flex-start; padding: 10px; background: #f1f5f9; border-radius: 6px; } .mat-pair { display: flex; gap: 8px; font-size: 0.9rem; } .mat-label { color: #64748b; width: 60px; } .tags-row { display: flex; gap: 6px; margin-top: 5px; } .badge { padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; } .badge-gray { background: #e2e8f0; color: #475569; } .badge-indigo { background: #e0e7ff; color: #4338ca; } .col-qty { display: flex; flex-direction: column; } .qty-total { font-size: 1.2rem; font-weight: 800; color: #0f172a; } .qty-unit { font-size: 0.75rem; color: #64748b; } .article-sub-details { margin-top: 10px; padding-left: 0; display: flex; flex-wrap: wrap; gap: 20px; } .packaging-details { flex: 1; min-width: 250px; } .package-list { display: flex; flex-direction: column; gap: 6px; } .package-item { background: #fff; border: 1px solid #e2e8f0; padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; display: flex; align-items: center; } .type-code { color: #94a3b8; margin-left: 5px; font-size: 0.7rem; } .no-data { text-align: center; padding: 40px; color: #94a3b8; font-style: italic; } .text-right { text-align: right !important; } @media print { .no-print { display: none !important; } .document-render-area { padding: 0 !important; box-shadow: none !important; border: none !important; } } /* ═══ Conversion History ═══ */ .history-filter-bar { display: flex; justify-content: space-between; align-items: center; background: rgba(0, 0, 0, 0.2); padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; } .history-filter-buttons { display: flex; gap: 6px; } .history-filter-btn.active { background: var(--primary) !important; color: white !important; border-color: var(--primary) !important; } .history-search-row { display: flex; gap: 10px; align-items: center; } .history-table-wrapper { overflow-x: auto; border-radius: 12px; border: 1px solid var(--glass-border); } .history-table { width: 100%; border-collapse: collapse; } .history-table th { text-align: left; padding: 12px 10px; color: var(--text-dim); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 1px solid var(--glass-border); background: rgba(0, 0, 0, 0.2); } .history-table td { padding: 10px; font-size: 0.85rem; border-bottom: 1px solid rgba(255, 255, 255, 0.04); color: var(--text); } .history-row:hover td { background: rgba(99, 102, 241, 0.06); } .history-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; padding: 0 4px; } .history-detail-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: center; z-index: 9999; } .history-detail-modal-content { background: linear-gradient(135deg, #1e1b4b, #0f172a); border: 1px solid var(--glass-border); border-radius: 20px; padding: 30px; max-width: 900px; width: 90%; max-height: 85vh; overflow-y: auto; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6); } .history-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; } .history-detail-item { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--glass-border); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; } .history-detail-item .label { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.03em; } .history-detail-item strong { font-size: 0.9rem; color: var(--text); word-break: break-all; } .history-detail-tabs { display: flex; gap: 8px; margin: 16px 0 10px; } .history-tab-btn.active { background: var(--primary) !important; color: white !important; border-color: var(--primary) !important; } .history-tab-content pre { background: #000; padding: 16px; border-radius: 10px; font-family: 'Fira Code', monospace; font-size: 0.8rem; color: #a5f3fc; border: 1px solid var(--glass-border); white-space: pre-wrap; word-break: break-all; } @media (max-width: 700px) { .history-detail-grid { grid-template-columns: 1fr; } .history-filter-bar { flex-direction: column; align-items: stretch; } }