Files
forge/client/src/pages/Insights/Insights.module.scss
T

137 lines
4.1 KiB
SCSS
Raw Normal View History

2026-08-29 12:30:19 +03:00
@use '../../styles/variables' as *;
.page { max-width: none; display: flex; flex-direction: column; gap: $s-3; }
.kpis {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: $s-3;
margin-bottom: $s-2;
}
.h2 {
font-size: 13px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
margin-top: $s-4;
}
.section { display: flex; flex-direction: column; gap: $s-3; }
.sectionHead {
display: flex;
align-items: center;
gap: $s-2;
width: 100%;
margin-top: $s-4;
padding: 4px 0;
background: transparent;
border: none;
cursor: pointer;
font-size: 13px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
&:hover { color: var(--text); }
}
.chev {
display: inline-flex;
color: var(--text-dim);
transition: transform 0.15s ease;
}
.sectionHead[aria-expanded='true'] .chev { transform: rotate(90deg); }
.sectionHead:hover .chev { color: var(--text-muted); }
.sectionTitle { flex: 0 0 auto; }
.sectionCount {
font-size: 11px;
font-weight: 700;
letter-spacing: 0;
padding: 1px 7px;
border-radius: 999px;
background: var(--surface-alt);
color: var(--text-muted);
}
.grid {
display: flex;
flex-direction: column;
gap: $s-4;
}
.grid[hidden] { display: none; }
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: $radius-lg;
box-shadow: var(--shadow-sm);
overflow: hidden;
}
.cardHot { border-left: 3px solid var(--danger); }
.cardHead {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: $s-3;
padding: $s-4 $s-5;
border: none;
background: transparent;
cursor: pointer;
&:hover { background: var(--surface-alt); }
}
.cardTitle { font-size: 14px; font-weight: 600; color: var(--text); }
.counts { display: flex; align-items: center; gap: 6px; }
.problem {
min-width: 22px; text-align: center; font-size: 11px; font-weight: 700;
padding: 1px 7px; border-radius: 999px; background: var(--danger-bg); color: var(--danger);
}
.total {
min-width: 22px; text-align: center; font-size: 11px; font-weight: 700;
padding: 1px 7px; border-radius: 999px; background: var(--surface-alt); color: var(--text-muted);
}
.list { list-style: none; border-top: 1px solid var(--border); max-height: 440px; overflow-y: auto; }
.row {
display: grid;
grid-template-columns: auto 1fr auto auto auto;
align-items: center;
gap: $s-2;
padding: $s-2 $s-5;
font-size: 12px;
border-bottom: 1px solid var(--border);
&:last-child { border-bottom: none; }
}
.emptyRow { padding: $s-3 $s-5; color: var(--text-dim); font-size: 12px; }
.rowNum { display: inline-flex; align-items: center; gap: 3px; font-family: var(--mono); font-weight: 700; color: var(--primary); white-space: nowrap; }
.rowDesc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.rowMeta { color: var(--text-muted); white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.rowDays { font-weight: 600; color: var(--warning); font-variant-numeric: tabular-nums; }
.rowCost { font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pmCard {
background: var(--surface);
border: 1px solid var(--border);
border-radius: $radius-lg;
box-shadow: var(--shadow-sm);
overflow-x: auto;
}
.pmTable {
width: 100%;
border-collapse: collapse;
font-size: 13px;
th {
text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase;
letter-spacing: 0.04em; color: var(--text-muted); padding: 10px 14px;
background: var(--surface-alt); border-bottom: 1px solid var(--border); white-space: nowrap;
}
td { padding: 8px 14px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: none; }
}
.num { text-align: right; font-variant-numeric: tabular-nums; }
.alertBadge { font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--danger-bg); color: var(--danger); }
.risk { font-weight: 600; color: var(--danger); }
.state, .stateError { padding: $s-8; text-align: center; color: var(--text-muted); font-size: 13px; }
.stateError { color: var(--danger); }