.dashboard-distributions { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(340px, 1fr); gap: 16px; margin-bottom: 20px; align-items: stretch; }
#categoryChart { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding: 18px 20px; margin-bottom: 0; min-width: 0; background: #fff; }
.category-chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.category-chart-heading > div:first-child { min-width: 0; }
.category-chart-title-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.category-chart-heading h2 { margin: 0; color: #162d4d; font-size: 18px; }
.category-chart-heading p { color: #8592a7; font-size: 11px; line-height: 1.6; margin: 6px 0 0; }
.category-chart-total { display: flex; align-items: baseline; gap: 10px; padding: 6px 12px; border: 1px solid #e1f0f1; border-radius: 10px; background: #f1faf9; white-space: nowrap; flex-shrink: 0; }
.category-chart-total span { color: #708995; font-size: 11px; }
.category-chart-total strong { color: #167b80; font-size: 22px; font-variant-numeric: tabular-nums; }
.category-bar-chart { --category-label-width: 156px; --category-value-width: 78px; --category-gap: 12px; min-width: 0; }
.category-bar-chart.category-bar-chart-single-line { --category-label-width: 288px; --category-gap: 6px; overflow-x: auto; }
.category-bar-chart-single-line .category-bar-head, .category-bar-chart-single-line .category-bar-rows { min-width: 520px; }
.category-bar-head, .category-bar-row { display: grid; grid-template-columns: var(--category-label-width) minmax(0, 1fr) var(--category-value-width); column-gap: var(--category-gap); align-items: center; }
.category-bar-head { padding: 0 0 9px; color: #8a98ac; font-size: 11px; }
.category-bar-head > :last-child { text-align: right; white-space: nowrap; }
.category-bar-axis { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.category-bar-axis > span { width: 0; display: flex; justify-content: center; }
.category-bar-rows { position: relative; isolation: isolate; }
.category-bar-rows::before { content: ''; position: absolute; z-index: -1; pointer-events: none; top: 0; bottom: 0; left: calc(var(--category-label-width) + var(--category-gap)); right: calc(var(--category-value-width) + var(--category-gap)); border-right: 1px solid #eaf0f5; background-image: linear-gradient(to right, #eaf0f5 1px, transparent 1px); background-size: calc(100% / var(--category-divisions)) 100%; }
.category-bar-row { position: relative; width: 100%; min-height: 26px; padding: 4px 0; border: 0; border-radius: 7px; background: transparent; text-align: left; cursor: pointer; font: inherit; transition: background .15s; }
.category-bar-row:hover { background: #f2f9fb; }
.category-bar-row.selected { background: #eaf8f7; box-shadow: inset 0 0 0 1px #bfe6e2; }
.category-bar-row:focus-visible { outline: 2px solid #159ea9; outline-offset: 2px; }
.category-bar-name { min-width: 0; padding-left: 5px; padding-right: 4px; color: #465b74; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.category-bar-chart-single-line .category-bar-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.category-bar-track { display: flex; align-items: center; height: 16px; min-width: 0; }
.category-bar-fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #10b4cf, #20b9a6); box-shadow: 0 2px 5px #11aeb314; transition: opacity .15s; }
.category-bar-row.selected .category-bar-fill { background: linear-gradient(90deg, #078eb4, #099e91); }
.category-bar-value { display: grid; grid-template-columns: 1fr 40px; align-items: baseline; gap: 10px; padding-right: 5px; text-align: right; font-variant-numeric: tabular-nums; }
.category-bar-value strong { color: #294763; font-size: 14px; font-weight: 650; }
.category-bar-value small { color: #8a98ac; font-size: 11px; }
.category-bar-row.selected .category-bar-name, .category-bar-row.selected strong { color: #087d82; font-weight: 650; }
.category-bar-row.muted .category-bar-fill { opacity: .3; }
.category-bar-row.muted .category-bar-name, .category-bar-row.muted .category-bar-value { opacity: .55; }
.category-bar-row.muted:hover .category-bar-fill { opacity: .65; }
.category-chart-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 0; color: #8592a7; font-size: 11px; line-height: 1.5; }
.category-chart-status strong { color: #13848c; font-weight: 600; }
.category-chart-status button { border: 0; border-radius: 6px; padding: 5px 9px; background: #e6f4f3; color: #13848c; cursor: pointer; font: inherit; }
.category-chart-status button:focus-visible { outline: 2px solid #159ea9; outline-offset: 2px; }
.category-chart-empty { margin: 32px 0; color: #8592a7; }
#priorityChart { display: grid; grid-template-rows: auto 1fr; gap: 12px; padding: 18px 20px; margin-bottom: 0; min-width: 0; background: #fff; }
.priority-chart-heading h2 { margin: 0; color: #162d4d; font-size: 18px; }
.priority-chart-heading p { margin: 6px 0 0; color: #8592a7; font-size: 11px; line-height: 1.6; }
.priority-chart-body { display: grid; grid-template-columns: minmax(140px, 220px) minmax(140px, 1fr); gap: 16px; align-items: center; align-self: center; min-width: 0; }
.priority-pie-wrap { min-width: 0; width: 100%; max-width: 220px; margin: 0 auto; }
#priorityChart svg.priority-pie { display: block; width: 100%; height: auto; aspect-ratio: 1; stroke: none; fill: none; overflow: visible; }
.priority-legend { min-width: 0; }
.priority-legend-head, .priority-legend-row { display: grid; grid-template-columns: minmax(0, 1fr) 24px 36px; gap: 8px; align-items: center; }
.priority-legend-head { color: #8a98ac; font-size: 10px; padding-bottom: 7px; border-bottom: 1px solid #edf1f6; }
.priority-legend-head > :nth-child(n+2) { text-align: right; }
.priority-legend ul { list-style: none; padding: 0; margin: 0; }
.priority-legend li { padding: 0; border-bottom: 1px solid #f0f3f8; }
.priority-legend li:last-child { border-bottom: 0; }
.priority-legend-name { display: flex; align-items: center; gap: 7px; min-width: 0; color: #465b74; font-size: 12px; line-height: 1.4; }
.priority-legend-name > span { min-width: 0; overflow-wrap: anywhere; }
.priority-legend-name i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.priority-legend strong { color: #294763; font-size: 14px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.priority-legend small { color: #8a98ac; font-size: 11px; text-align: right; font-variant-numeric: tabular-nums; }
.priority-chart-empty { align-self: center; justify-self: center; margin: 36px 0; color: #8592a7; font-size: 12px; }
@media (max-width: 1150px) { .dashboard-distributions { grid-template-columns: minmax(0, 1fr); } .priority-chart-body { grid-template-columns: minmax(140px, 200px) minmax(140px, 1fr); max-width: 560px; width: 100%; justify-self: center; } }
@media (max-width: 540px) { #categoryChart, #priorityChart { padding: 16px 14px; } .category-chart-heading { align-items: flex-start; gap: 10px; } .category-chart-heading h2, .priority-chart-heading h2 { font-size: 17px; } .category-chart-title-line { gap: 3px; } .category-chart-status { width: 100%; } .category-chart-total { flex-direction: column; gap: 0; padding: 5px 10px; } .category-chart-total strong { font-size: 24px; } .category-bar-chart { --category-label-width: 108px; --category-value-width: 65px; --category-gap: 8px; } .category-bar-name { font-size: 11px; padding-left: 3px; } .category-bar-value { grid-template-columns: 1fr 30px; gap: 4px; padding-right: 3px; } .category-bar-value strong { font-size: 13px; } .category-bar-value small { font-size: 10px; } .category-bar-track { height: 16px; } .priority-chart-body { gap: 12px; } }
@media (max-width: 360px) { .priority-chart-body { grid-template-columns: minmax(0, 1fr); } .priority-pie-wrap { max-width: 180px; } }
@media (prefers-reduced-motion: reduce) { .category-bar-row, .category-bar-fill { transition: none; } }

.priority-chart-title-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.priority-chart-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: #8592a7; font-size: 11px; line-height: 1.5; }
.priority-chart-status strong { color: #426597; font-weight: 600; }
.priority-chart-status button { padding: 4px 8px; border: 0; border-radius: 6px; background: #edf3fc; color: #426597; font: inherit; cursor: pointer; }
.priority-legend-row { width: 100%; padding: 10px 3px; border: 0; border-radius: 7px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: opacity .15s, background .15s; }
.priority-legend-row:hover { background: #f5f8fc; }
.priority-legend-row.selected { background: #eef4fc; box-shadow: inset 0 0 0 1px #d5e2f4; }
.priority-legend-row.muted { opacity: .45; }
.priority-legend-row.muted:hover { opacity: .8; }
.priority-legend-row:focus-visible, .priority-chart-status button:focus-visible { outline: 2px solid #648ed5; outline-offset: 2px; }
.priority-pie-slice { cursor: pointer; outline: none; transform-origin: 120px 120px; transition: opacity .15s, transform .15s; }
.priority-pie-slice:hover, .priority-pie-slice.selected { transform: scale(1.02); }
.priority-pie-slice.muted { opacity: .3; }
.priority-pie-slice.muted:hover { opacity: .7; }
.priority-pie-slice:focus-visible > path, .priority-pie-slice:focus-visible > circle { stroke: #294763; stroke-width: 3; }
.priority-pie-slice text { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .priority-pie-slice, .priority-legend-row { transition: none; } }
