sozday-stranitsu-rynok-telek/style.css

320 lines
5.4 KiB
CSS

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary: #1a73e8;
--b2c-color: #4285f4;
--b2b-color: #34a853;
--total-color: #ea4335;
--bg: #f5f7fa;
--card-bg: #ffffff;
--text-primary: #202124;
--text-secondary: #5f6368;
--border: #dadce0;
--shadow: 0 1px 3px rgba(60,64,67,0.15), 0 1px 2px rgba(60,64,67,0.1);
--shadow-hover: 0 4px 12px rgba(60,64,67,0.2);
--positive: #34a853;
--negative: #ea4335;
--neutral: #5f6368;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
background: var(--bg);
color: var(--text-primary);
line-height: 1.5;
font-size: 14px;
}
.dashboard {
max-width: 1600px;
margin: 0 auto;
padding: 24px;
}
.header {
margin-bottom: 24px;
}
.header h1 {
font-size: 28px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 4px;
}
.subtitle {
color: var(--text-secondary);
font-size: 14px;
}
.filters {
display: flex;
align-items: center;
gap: 16px;
background: var(--card-bg);
padding: 16px 20px;
border-radius: 10px;
box-shadow: var(--shadow);
margin-bottom: 24px;
flex-wrap: wrap;
}
.filter-group {
display: flex;
align-items: center;
gap: 8px;
}
.filter-group label {
font-weight: 500;
color: var(--text-secondary);
white-space: nowrap;
}
.filter-group select,
.service-filters select {
padding: 8px 32px 8px 12px;
border: 1px solid var(--border);
border-radius: 6px;
background: white;
font-size: 13px;
cursor: pointer;
min-width: 140px;
}
.btn-reset {
margin-left: auto;
padding: 8px 16px;
background: transparent;
border: 1px solid var(--border);
border-radius: 6px;
cursor: pointer;
font-size: 13px;
color: var(--text-secondary);
transition: all 0.2s;
}
.btn-reset:hover {
background: var(--bg);
color: var(--text-primary);
}
.kpi-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.kpi-card {
background: var(--card-bg);
padding: 18px;
border-radius: 10px;
box-shadow: var(--shadow);
transition: box-shadow 0.2s;
}
.kpi-card:hover {
box-shadow: var(--shadow-hover);
}
.kpi-label {
font-size: 12px;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 6px;
font-weight: 500;
}
.kpi-value {
font-size: 24px;
font-weight: 600;
color: var(--text-primary);
}
.kpi-value.positive { color: var(--positive); }
.kpi-value.negative { color: var(--negative); }
.chart-section,
.services-section,
.conclusions {
background: var(--card-bg);
padding: 24px;
border-radius: 10px;
box-shadow: var(--shadow);
margin-bottom: 24px;
}
.chart-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 12px;
}
.chart-header h2,
.services-section h2,
.conclusions h2 {
font-size: 18px;
font-weight: 600;
}
.toggle-group {
display: flex;
gap: 4px;
background: var(--bg);
padding: 4px;
border-radius: 8px;
}
.toggle-btn {
padding: 8px 16px;
border: none;
background: transparent;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
font-weight: 500;
color: var(--text-secondary);
transition: all 0.2s;
}
.toggle-btn.active {
background: var(--card-bg);
color: var(--text-primary);
box-shadow: var(--shadow);
}
.chart-container {
position: relative;
height: 380px;
}
.service-chart {
height: 320px;
margin-top: 20px;
}
.table-container {
overflow-x: auto;
margin-top: 16px;
}
table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
th {
background: var(--bg);
padding: 12px 14px;
text-align: left;
font-weight: 600;
color: var(--text-secondary);
border-bottom: 2px solid var(--border);
white-space: nowrap;
position: sticky;
top: 0;
}
td {
padding: 12px 14px;
border-bottom: 1px solid var(--border);
vertical-align: middle;
}
tr:hover td {
background: #fafbfc;
}
.service-name {
font-weight: 500;
cursor: pointer;
color: var(--primary);
}
.service-name:hover {
text-decoration: underline;
}
.cell-positive {
color: var(--positive);
font-weight: 500;
}
.cell-negative {
color: var(--negative);
font-weight: 500;
}
.cell-neutral {
color: var(--neutral);
}
.conclusions-list {
display: grid;
gap: 12px;
}
.conclusion-item {
display: flex;
align-items: flex-start;
gap: 12px;
padding: 14px 16px;
background: #f8f9fa;
border-radius: 8px;
border-left: 4px solid var(--primary);
}
.conclusion-bullet {
width: 8px;
height: 8px;
background: var(--primary);
border-radius: 50%;
margin-top: 7px;
flex-shrink: 0;
}
.footer {
text-align: center;
padding: 20px;
color: var(--text-secondary);
font-size: 12px;
}
.service-filters {
margin-bottom: 16px;
}
@media (max-width: 1200px) {
.kpi-grid {
grid-template-columns: repeat(4, 1fr);
}
}
@media (max-width: 900px) {
.dashboard {
padding: 16px;
}
.header h1 {
font-size: 22px;
}
.kpi-grid {
grid-template-columns: repeat(2, 1fr);
}
.chart-container {
height: 300px;
}
}