:root {
color-scheme: light;
--bg: #f5f7fa;
--panel: #ffffff;
--ink: #17202a;
--muted: #657080;
--line: #d9e0e8;
--accent: #0f766e;
--accent-2: #2563eb;
--accent-3: #b45309;
--danger: #b91c1c;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: var(--bg);
color: var(--ink);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button,
input,
select {
font: inherit;
}
.app-shell {
width: min(1480px, 100%);
margin: 0 auto;
padding: 20px;
}
.topbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 16px;
}
h1,
h2,
p {
margin: 0;
}
h1 {
font-size: 28px;
font-weight: 760;
}
h2 {
font-size: 15px;
font-weight: 720;
}
.topbar p,
.panel-heading span,
.range-readout,
label {
color: var(--muted);
font-size: 13px;
}
.icon-button {
width: 40px;
height: 40px;
display: grid;
place-items: center;
border: 1px solid var(--line);
background: var(--panel);
color: var(--ink);
cursor: pointer;
}
.icon-button:hover {
border-color: var(--accent);
color: var(--accent);
}
.kpis {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
margin-bottom: 16px;
}
.kpis article,
.panel,
.filters {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 8px;
}
.kpis article {
min-height: 96px;
padding: 16px;
}
.kpis span {
display: block;
color: var(--muted);
font-size: 13px;
margin-bottom: 10px;
}
.kpis strong {
display: block;
font-size: 28px;
line-height: 1.1;
}
.workspace {
display: grid;
grid-template-columns: 260px minmax(0, 1fr);
gap: 16px;
align-items: start;
}
.filters {
position: sticky;
top: 16px;
padding: 14px;
}
label {
display: grid;
gap: 6px;
margin-bottom: 12px;
}
select,
input {
width: 100%;
min-height: 36px;
border: 1px solid var(--line);
border-radius: 6px;
background: #fff;
color: var(--ink);
padding: 6px 10px;
}
.range-readout {
display: grid;
gap: 4px;
padding-top: 4px;
}
.range-readout strong {
color: var(--ink);
font-size: 13px;
font-weight: 650;
overflow-wrap: anywhere;
}
.warnings {
margin-top: 14px;
padding: 10px;
border: 1px solid #fecaca;
color: var(--danger);
background: #fff7f7;
font-size: 12px;
}
.content {
display: grid;
gap: 16px;
}
.panel {
padding: 14px;
}
.panel-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 12px;
}
.timeline-panel {
min-height: 336px;
}
#timelineChart {
display: block;
width: 100%;
min-height: 260px;
background: #fbfcfd;
border: 1px solid var(--line);
}
.segmented {
display: inline-flex;
border: 1px solid var(--line);
overflow: hidden;
}
.segmented button {
min-width: 52px;
border: 0;
border-right: 1px solid var(--line);
background: #fff;
color: var(--muted);
cursor: pointer;
padding: 6px 10px;
}
.segmented button:last-child {
border-right: 0;
}
.segmented button.active {
background: var(--accent);
color: #fff;
}
.grid {
display: grid;
grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
gap: 16px;
}
.bar-chart,
.breakdown {
display: grid;
gap: 10px;
}
.bar-row {
display: grid;
grid-template-columns: minmax(110px, 220px) minmax(120px, 1fr) 96px;
align-items: center;
gap: 10px;
min-height: 28px;
font-size: 13px;
}
.bar-row[data-tooltip],
#timelineChart [data-tooltip] {
cursor: help;
}
.bar-row:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.bar-label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.bar-track {
height: 12px;
background: #edf2f7;
border: 1px solid var(--line);
}
.bar-fill {
height: 100%;
min-width: 2px;
background: var(--accent-2);
}
.bar-value {
text-align: right;
color: var(--muted);
}
.table-wrap {
width: 100%;
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
th,
td {
border-bottom: 1px solid var(--line);
padding: 9px 8px;
text-align: left;
vertical-align: top;
}
th {
color: var(--muted);
font-weight: 650;
white-space: nowrap;
}
td {
max-width: 320px;
overflow-wrap: anywhere;
}
.empty {
color: var(--muted);
font-size: 13px;
padding: 20px 0;
}
.chart-tooltip {
position: fixed;
z-index: 20;
max-width: 260px;
padding: 8px 10px;
border: 1px solid #0f172a;
border-radius: 6px;
background: #0f172a;
color: #fff;
font-size: 12px;
line-height: 1.45;
white-space: pre-line;
box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
pointer-events: none;
}
@media (max-width: 980px) {
.workspace,
.grid,
.kpis {
grid-template-columns: 1fr;
}
.filters {
position: static;
}
.bar-row {
grid-template-columns: 1fr;
gap: 5px;
}
.bar-value {
text-align: left;
}
}