Files
turnosxpress/txclient/src/app/components/FinancialWidget/FinancialWidget.module.css
T

149 lines
2.5 KiB
CSS

.container {
background: #f4fbf4;
border-radius: 16px;
padding: 24px;
box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.05);
border: 1px solid var(--green-darkestX1);
display: flex;
flex-direction: column;
gap: 20px;
width: 100%;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 15px;
}
.headerButton {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
width: 100%;
padding: 0;
border: 0;
background: transparent;
text-align: left;
}
.headerToggle {
display: block;
width: 100%;
padding: 0;
border: 0;
background: transparent;
font: inherit;
color: inherit;
text-align: left;
cursor: pointer;
}
.title {
font-size: 20px;
font-weight: 700;
color: var(--green-darkestX1);
margin: 0;
flex: 1;
min-width: 0;
}
.toggleIcon {
display: inline-flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
width: 32px;
height: 32px;
padding: 0;
border-radius: 999px;
background: var(--white);
color: var(--green-darkestX1);
border: 1px solid var(--green-darkestX1);
font-family: inherit;
font-size: 22px;
font-weight: 800;
line-height: 1;
cursor: pointer;
}
.filters {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.select {
padding: 8px 12px;
border-radius: 8px;
border: 1px solid #d1d5db;
background-color: #f9fafb;
font-size: 14px;
color: #374151;
outline: none;
cursor: pointer;
transition: border-color 0.2s ease;
}
.select:focus {
border-color: var(--wine-red, #6366f1);
}
.metricsRow {
display: flex;
gap: 20px;
flex-wrap: wrap;
}
.metricBox {
flex: 1;
min-width: 200px;
padding: 15px;
border-radius: 12px;
background-color: #e8f7ea;
border: 1px solid rgba(36, 169, 53, 0.2);
display: flex;
flex-direction: column;
}
.metricLabel {
font-size: 13px;
color: #6b7280;
font-weight: 600;
text-transform: uppercase;
}
.metricValue {
font-size: 28px;
font-weight: 800;
color: #111827;
margin-top: 5px;
}
.metricComparison {
font-size: 13px;
font-weight: 500;
margin-top: 5px;
}
.positive {
color: var(--green-darkest, #10b981);
}
.negative {
color: var(--error, #ef4444);
}
.neutral {
color: #6b7280;
}
.chartContainer {
width: 100%;
height: 350px;
margin-top: 20px;
}