173 lines
2.5 KiB
CSS
173 lines
2.5 KiB
CSS
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
font-family: Arial, sans-serif;
|
|
}
|
|
|
|
.controls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 20px;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 10px;
|
|
flex: 1;
|
|
min-width: 200px;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Fixed height for input/select elements */
|
|
select, input {
|
|
width: 100%;
|
|
padding: 8px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
box-sizing: border-box;
|
|
height: 40px; /* Set a fixed height for both */
|
|
line-height: 24px; /* Consistent line height */
|
|
font-size: 14px; /* Consistent font size */
|
|
appearance: auto; /* Preserve native appearance but ensure consistent sizing */
|
|
}
|
|
|
|
.date-input {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.chart-container {
|
|
background-color: #f9f9f9;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
min-height: 400px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.loading, .error {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 400px;
|
|
}
|
|
|
|
.error {
|
|
color: #d9534f;
|
|
}
|
|
|
|
.price-list {
|
|
margin-top: 30px;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
th, td {
|
|
padding: 10px;
|
|
text-align: left;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
th {
|
|
background-color: #f2f2f2;
|
|
}
|
|
|
|
tr:hover {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
/* Price summary styles - similar to the image */
|
|
.price-summary {
|
|
background-color: #f9f9f9;
|
|
border-radius: 8px;
|
|
padding: 20px;
|
|
margin-bottom: 20px;
|
|
border: 1px solid #e0e0e0;
|
|
}
|
|
|
|
.price-heading {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.price-heading h2 {
|
|
font-size: 1.2rem;
|
|
margin: 0;
|
|
color: #1d5631;
|
|
}
|
|
|
|
.price-subheading {
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
margin: 5px 0 15px 0;
|
|
font-style: italic;
|
|
}
|
|
|
|
.current-price {
|
|
display: flex;
|
|
align-items: baseline;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.price-label {
|
|
font-size: 1rem;
|
|
color: #1d5631;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.price-value {
|
|
font-size: 2rem;
|
|
font-weight: bold;
|
|
color: #1d5631;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.price-unit {
|
|
font-size: 1rem;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.price-change {
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.price-increase {
|
|
background-color: #ff6b6b;
|
|
color: white;
|
|
}
|
|
|
|
.price-decrease {
|
|
background-color: #51cf66;
|
|
color: white;
|
|
}
|
|
|
|
.price-extremes {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
font-size: 0.9rem;
|
|
color: #555;
|
|
}
|
|
|
|
.price-high {
|
|
color: #e03131;
|
|
}
|
|
|
|
.price-low {
|
|
color: #2b8a3e;
|
|
}
|
|
|
|
.price-average {
|
|
color: #555;
|
|
}
|