:root { --apple-blue: #007aff; --sidebar-bg: #f9fafc; --sidebar-border: #dce1e6; --text-main: #1c1c1e; --text-muted: #8e8e93; --highlight: #0a84ff; --card-bg: #ffffff; --card-shadow: rgba(0, 0, 0, 0.06); --hover-shadow: rgba(0, 0, 0, 0.1); --transition-fast: 0.25s ease; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color: #f2f4f8; color: var(--text-main); margin: 0; padding: 0; overflow-x: hidden; } /* === Apple-Style Sidebar (Fixed to avoid collision with navbar) === */ .sidebar { position: fixed; top: 56px; /* Leaves space for the navbar */ left: 0; width: 260px; height: calc(100vh - 56px); background: rgba(255, 255, 255, 0.65); /* Glassmorphism */ backdrop-filter: blur(20px); border-right: 1px solid rgba(200, 200, 200, 0.3); padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; box-shadow: 2px 0 12px rgba(0, 0, 0, 0.06); z-index: 999; overflow-y: auto; /* Animation defaults */ transition: transform 0.3s ease; transform: translateX(-100%); /* start off-screen */ } /* ✨ Sidebar Title — Improved Readability and Padding */ .sidebar-title { font-size: 1.25rem; font-weight: 700; color: #1c1c1e; margin-bottom: 1.5rem; letter-spacing: 0.5px; padding-left: 2px; } /* 🚪 Slide-In Sidebar Effect (Apple-like animation) */ .sidebar.active { transform: translateX(0); /* Slide in */ } /* ⬅️ Slide Out (when hiding again) */ .sidebar.slide-out-left { transform: translateX(-100%); /* Slide out to left */ } /* Main content shift */ #mainContent.shifted { margin-left: 270px; /* Matches the sidebar width + padding */ transition: margin-left 0.3s ease; } /* 🍎 Sidebar Button — Apple-style Friendly UI */ .sidebar-btn { background: linear-gradient(135deg, #007aff, #0a84ff); border: none; padding: 0.7rem 1.4rem; border-radius: 18px; color: #ffffff; font-weight: 600; font-size: 1rem; cursor: pointer; box-shadow: 0 4px 10px rgba(0, 122, 255, 0.15); transition: all 0.2s ease-in-out; display: flex; align-items: center; justify-content: center; gap: 0.5rem; text-align: center; white-space: nowrap; } .sidebar-btn:hover { background: linear-gradient(135deg, #005ecb, #007aff); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 122, 255, 0.25); } .sidebar-btn:active { transform: scale(0.98); box-shadow: 0 3px 8px rgba(0, 122, 255, 0.2); } .sidebar-btn.active { background: #004ba0; box-shadow: inset 0 0 0 2px #ffffff33; } /* 🧑‍💻 Optional: Add icons to buttons if needed */ .sidebar-btn::before { content: '🛠️'; font-size: 1.1rem; } /* === Main Content === */ .main-content { transition: margin-left 0.3s ease; margin-left: 0; /* default when sidebar is hidden */ } .main-content.shifted { margin-left: 260px; /* same width as sidebar */ } /* === Card Summary === */ .card-summary { background: var(--card-bg); padding: 1.5rem 2rem; border-radius: 16px; box-shadow: 0 4px 14px var(--card-shadow); border-left: 5px solid var(--highlight); transition: transform 0.3s ease, box-shadow 0.3s ease; } .card-summary:hover { transform: translateY(-4px); box-shadow: 0 10px 24px var(--hover-shadow); } /* === Upload Zone === */ .upload-zone { border: 2px dashed #c7c7cc; background-color: #f4f4f7; padding: 2rem; border-radius: 12px; text-align: center; color: var(--text-muted); transition: all var(--transition-fast); cursor: pointer; } .upload-zone:hover { border-color: var(--highlight); color: var(--highlight); background-color: #e6f0ff; } /* === Table Wrapper === */ .table-wrapper { max-height: 500px; /* Set scrollable height */ overflow-y: auto; overflow-x: auto; background: #ffffff; border-radius: 16px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06); margin-top: 2rem; padding: 0; border: 1px solid #e0e0e0; } /* === Table === */ table { width: 100%; border-collapse: separate; border-spacing: 0; font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 0.93rem; color: #1c1c1e; background: #fff; } /* === Table Header === */ /* 🍏 Apple Card Styling */ .apple-card { background: #ffffffcc; border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); overflow: hidden; backdrop-filter: blur(20px); border: 1px solid #e0e0e5; transition: all 0.3s ease; } /* Header */ .apple-card-header { background: linear-gradient(to right, #007aff, #0a84ff); color: white; padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); font-size: 1.1rem; font-weight: 600; } /* Body Padding */ .apple-card-body { padding: 0; } /* Scrollable Table Container */ .apple-table-wrapper { max-height: 600px; overflow-y: auto; border-radius: 0 0 16px 16px; position: relative; /* ✅ add this */ z-index: 1; /* ✅ to establish stacking context */ } /* Table */ .apple-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 600px; font-size: 0.95rem; font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; } /* Table Head */ .apple-table thead th { position: sticky; top: 0; background: #f8f9fb; font-weight: 600; color: #1c1c1e; padding: 0.85rem 1.2rem; border-bottom: 1px solid #d1d1d6; backdrop-filter: blur(12px); z-index: 10; /* ✅ make sure this is high */ white-space: nowrap; text-align: left; } /* Table Rows */ .apple-table tbody tr:hover { background-color: #f2f4f8; transition: background-color 0.2s ease; } .apple-table td { padding: 0.75rem 1.2rem; border-bottom: 1px solid #ebedf0; color: #2c2c2e; background: #fff; vertical-align: middle; transition: background 0.3s ease; } /* Scrollbar (optional styling) */ .apple-table-wrapper::-webkit-scrollbar { height: 10px; width: 10px; } .apple-table-wrapper::-webkit-scrollbar-thumb { background: #cfd3d6; border-radius: 10px; } .apple-table th:first-child, .apple-table td:first-child { position: sticky; left: 0; background: #f8f9fb; z-index: 3; } .apple-table thead th:first-child { z-index: 11; /* higher than normal header row and left column */ } /* === Chart Styling === */ .chart-wrapper { height: 240px; } #chartCanvas, #ordersIssuedChart { width: 100% !important; height: 240px !important; } /* === Side-by-side Charts === */ .chart-duo { display: flex; flex-wrap: wrap; gap: 20px; } .chart-box { flex: 1; min-width: 300px; } /* Divider */ .chart-divider { width: 1px; background-color: #e0e0e0; margin: 0 10px; } @media (max-width: 992px) { .chart-duo { flex-direction: column; } .chart-divider { display: none; } } /* === Status Tags (One-Line Badge Style) === */ .status-delivered, .status-cancelled, .status-partial { font-weight: 600; display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.85rem; line-height: 1; white-space: nowrap; } .status-delivered { color: #fff; background-color: #34c759; } .status-cancelled { color: #fff; background-color: #ff3b30; } .status-partial { color: #fff; background-color: #ff9500; } /* === Fade Animation === */ .fade-in { animation: fadeIn 0.5s ease-in-out both; } @keyframes fadeIn { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } } .apple-style-btn { background: linear-gradient(to bottom, #f2f2f7, #d1d1d6); /* Apple-style gray gradient */ color: #1c1c1e; border: 1px solid #c7c7cc; border-radius: 12px; padding: 10px 18px; font-size: 0.95rem; font-weight: 500; box-shadow: inset 0 1px 0 #ffffff, 0 2px 4px rgba(0, 0, 0, 0.1); transition: all 0.2s ease-in-out; backdrop-filter: blur(10px); } .apple-style-btn:hover { background: linear-gradient(to bottom, #e0e0e5, #c7c7cc); box-shadow: 0 4px 8px rgba(0,0,0,0.12); transform: translateY(-1px); } .apple-style-btn:active { background: #d1d1d6; transform: scale(0.98); box-shadow: inset 0 1px 2px rgba(0,0,0,0.15); } .apple-logout-btn { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: linear-gradient(to bottom, #f2f2f7, #d1d1d6); /* macOS-style gray gradient */ color: #1c1c1e; font-size: 0.95rem; font-weight: 500; border: 1px solid #c7c7cc; border-radius: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.2s ease; font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; } .apple-logout-btn:hover { background: linear-gradient(to bottom, #e5e5ea, #c7c7cc); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0,0,0,0.1); } .apple-logout-btn:active { background: linear-gradient(to bottom, #d1d1d6, #a1a1aa); transform: translateY(0); box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); } .apple-logout-btn .icon { width: 18px; height: 18px; stroke: #1c1c1e; } /* World-Class Apple-Inspired Table Design */ .apple-style-report-table { width: 100%; border-collapse: separate; border-spacing: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 0.95rem; background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(6px); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); transition: all 0.3s ease; } .apple-style-report-table thead th { background: linear-gradient(to bottom, #f9f9fb, #e8e8f0); color: #1c1c1e; font-weight: 600; padding: 16px; text-align: center; border-bottom: 1px solid #d1d1d6; letter-spacing: 0.3px; font-size: 0.96rem; } .apple-style-report-table tbody td { padding: 14px 16px; text-align: center; border-bottom: 1px solid #eaeaf0; color: #2c2c2e; vertical-align: middle; background-color: #ffffff; transition: background-color 0.2s ease; } .apple-style-report-table tbody tr:nth-child(even) td { background-color: #fafafa; } .apple-style-report-table tbody tr:hover td { background-color: #f2f2f7; cursor: pointer; } .apple-style-report-table .text-success { color: #30d158; font-weight: 600; } .apple-style-report-table .text-danger { color: #ff3b30; font-weight: 600; } .apple-style-report-table .text-warning { color: #ff9f0a; font-weight: 600; } /* Updated Remarks Column Styling for Full Visibility */ .apple-style-report-table td.remarks-cell { text-align: left; white-space: pre-wrap; word-break: break-word; max-width: 100%; } /* For resizable column headers */ .resizable-header { position: relative; display: flex; justify-content: center; align-items: center; padding-right: 10px; } .resizable-header::after { content: ''; position: absolute; right: 0; top: 0; width: 5px; height: 100%; cursor: col-resize; user-select: none; } #rrReportTableBody tr.selected-row td { background-color: #cce4ff !important; } #rrReportTableBody tr:hover td { background-color: #e2f0ff !important; cursor: pointer; } #supplierCheckboxes label { margin-right: 10px; white-space: nowrap; } .apple-footer { background: linear-gradient(to top, #f2f2f7, #ffffff); padding: 40px 20px 20px; font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1c1c1e; border-top: 1px solid #e5e5ea; box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05); } .footer-container { max-width: 1200px; margin: 0 auto; text-align: center; } .footer-section { margin-bottom: 20px; } .footer-title { font-size: 1.2rem; font-weight: 600; margin: 0; } .footer-subtext { font-size: 0.95rem; color: #6e6e73; margin: 4px 0 0; } .footer-links { margin: 20px 0; } .footer-links a { margin: 0 12px; font-size: 0.95rem; color: #0071e3; text-decoration: none; transition: color 0.2s ease; } .footer-links a:hover { color: #004ba0; } .footer-copy { font-size: 0.85rem; color: #8e8e93; } .main-content.shifted { margin-left: 260px; } .apple-footer { transition: margin-left 0.3s ease; margin-left: 0; } .main-content.shifted ~ .apple-footer { margin-left: 260px; }