/* ================= CSS VARIABLES ================= */ :root { --square-size: 60px; --gap: 8px; --v-gap: 24px; --warehouse-height: 200px; } /* ================= GLOBAL & LAYOUT ================= */ html, body { height: 100%; margin: 0; padding: 0; background: #f4f4f4; font-family: Arial, sans-serif; } h1 { text-align: center; margin-bottom: 1rem; } .page-container { margin-top: 70px; /* under fixed header */ width: 95%; max-width: 1200px; margin-left: auto; margin-right: auto; padding: 1rem; background: #fff; border-radius: 6px; box-sizing: border-box; display: flex; flex-direction: column; min-height: calc(100vh - 70px); } /* ================= BINS HEADER & NAV BUTTONS ================= */ .main-header { background-color: #232F3E; display: flex; align-items: center; padding: 0.5rem 2rem; position: fixed; top: 0; left: 0; right: 0; z-index: 1000; } .logo { height: 40px; margin-right: 1rem; } .header-title { color: #fff; font-size: 1.2rem; font-weight: bold; margin-right: auto; } .nav-btn { background-color: #FF9900; color: #111; border: none; border-radius: 5px; padding: 0.5rem 1rem; margin-left: 0.5rem; cursor: pointer; font-weight: bold; } .nav-btn:hover { background-color: #e48f00; } /* ================= FORM STYLES ================= */ .form-input { width: 80%; max-width: 400px; margin: 1rem auto; display: block; padding: 1rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 6px; } .big-button { background-color: #28a745; color: white; padding: 0.75rem 1.5rem; border: none; border-radius: 6px; cursor: pointer; font-size: 1rem; margin: 1rem auto; display: block; } .big-button:hover { background-color: #218838; } fieldset { border: 1px solid #ccc; border-radius: 6px; padding: 1rem; margin-bottom: 1.5rem; } legend { font-weight: bold; } /* ================= TRENDS PAGE ================= */ /* Controls */ #trend-controls { flex: 0 0 auto; text-align: center; margin-bottom: 1rem; } /* Chart */ .chart-container { flex: 1 1 auto; width: 100%; position: relative; } .chart-container canvas { width: 100% !important; height: 100% !important; } /* Table */ .table-container { margin-top: 2rem; overflow-x: auto; } table.dataTable { width: 100% !important; } /* ================= HEATMAP STYLES ================= */ /* Scroll & pan wrapper */ .heatmap-wrapper { width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; display: flex; justify-content: flex-start; align-items: center; } /* Entire diagram */ .diagram-container { display: flex; flex-direction: column; align-items: center; gap: var(--v-gap); } /* Dock-door row */ .dock-row { display: flex; gap: var(--gap); } /* Each dock square */ .dock-square { width: var(--square-size); height: var(--square-size); background: #ddd; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: #333; cursor: pointer; user-select: none; } /* Regions below dock row */ .regions-container { display: flex; width: 100%; gap: var(--gap); } .region { flex: 1; height: 120px; border: 2px solid #666; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: bold; user-select: none; } .region-amod { background: #eef; } .region-preslam { background: #efe; } .region-bmod { background: #fee; } /* Warehouse rectangle */ .warehouse { width: calc( (var(--square-size) * 83) + /* adjust door count if needed */ (var(--gap) * 82) ); height: var(--warehouse-height); background: #ccc; border-radius: 6px; } /* Hover tooltip */ .tooltip { position: absolute; pointer-events: none; background: rgba(0,0,0,0.75); color: #fff; padding: 8px; border-radius: 4px; font-size: 0.9rem; line-height: 1.2; display: none; z-index: 2000; } /* ================= UTILITY ================= */ .hidden { display: none; }