122 lines
2.9 KiB
CSS
122 lines
2.9 KiB
CSS
/* ─── Reset & Base ──────────────────────────────────────────────────────────── */
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
margin: 0;
|
|
padding-top: 70px; /* push everything below fixed header */
|
|
font-family: Arial, sans-serif;
|
|
background-color: #eeeeee;
|
|
color: #333;
|
|
}
|
|
|
|
/* ─── Header & Nav ─────────────────────────────────────────────────────────── */
|
|
.main-header {
|
|
background-color: #232F3E;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.5rem 1rem;
|
|
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;
|
|
}
|
|
|
|
/* ─── Page Container ───────────────────────────────────────────────────────── */
|
|
.page-container {
|
|
width: 95%;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 1rem;
|
|
background-color: #fff;
|
|
border-radius: 6px;
|
|
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* ─── Trends Chart & Table ─────────────────────────────────────────────────── */
|
|
|
|
/* Chart area */
|
|
#chart-container {
|
|
height: 50vh;
|
|
width: 100%;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
/* Table wrapper: scrollable pane */
|
|
#trends-table-container {
|
|
max-height: 40vh;
|
|
overflow: auto;
|
|
border: 1px solid #ddd;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* Spreadsheet-style table */
|
|
#trends-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
table-layout: fixed;
|
|
}
|
|
#trends-table th,
|
|
#trends-table td {
|
|
padding: 8px;
|
|
text-align: center;
|
|
border-bottom: 1px solid #ddd;
|
|
font-size: 0.95rem;
|
|
}
|
|
#trends-table thead th {
|
|
position: sticky;
|
|
top: 0;
|
|
background: #f2f2f2;
|
|
border-bottom: 2px solid #ccc;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
/* Zebra striping */
|
|
#trends-table tbody tr:nth-child(even) {
|
|
background: #fafafa;
|
|
}
|
|
/* Sort arrow indicators */
|
|
.sortable::after {
|
|
content: '▲▼';
|
|
font-size: 0.6em;
|
|
margin-left: 4px;
|
|
color: #888;
|
|
}
|
|
.sortable.asc::after {
|
|
content: '▲';
|
|
}
|
|
.sortable.desc::after {
|
|
content: '▼';
|
|
}
|
|
|
|
/* ─── Responsive Tweaks ─────────────────────────────────────────────────────── */
|
|
@media (max-width: 768px) {
|
|
.nav-btn {
|
|
padding: 0.4rem 0.8rem;
|
|
font-size: 0.9rem;
|
|
margin-left: 0.25rem;
|
|
}
|
|
}
|