/* 会社全体 収支：部署システムの app.css に追加する分 */
.dept-tabs { display: flex; gap: 6px; background: #e9edf3; padding: 4px; border-radius: 12px; width: max-content; max-width: 100%; overflow-x: auto; margin-top: 12px; }
.dept-tabs button { border: 0; background: none; padding: 9px 18px; border-radius: 9px; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.dept-tabs button.is-on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(23, 32, 51, .12); }
.dept-tabs button i { width: 9px; height: 9px; border-radius: 50%; }
.dept-tabs .soon { font-size: 11px; color: var(--muted); background: #fff; border-radius: 6px; padding: 1px 6px; }
.dept-sec, .dept-go { margin-top: 0; }
.dept-go { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.dept-go .muted { font-size: 13px; margin-top: 4px; }
.dlink { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--signal); text-decoration: none; border: 1px solid var(--line); padding: 6px 12px; border-radius: 9px; background: #fff; white-space: nowrap; }
.dlink:hover { border-color: var(--signal); }
.sys-links { padding: 0 6px; }
.sys-links__k { font-size: 11px; color: #64748b; margin: 18px 12px 6px; letter-spacing: .05em; }
.sys-links__item { display: flex; align-items: center; gap: 10px; color: #93a1b8; text-decoration: none; padding: 9px 12px; border-radius: 10px; font-size: 14px; }
a.sys-links__item:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sys-links__item i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sys-links__item em { font-style: normal; font-size: 11px; color: #64748b; margin-left: auto; }
.sys-links__item.is-soon { cursor: default; }
@media (max-width: 760px) { .sys-links { display: none; } }
.dept-sec .card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dept-note { font-size: 12px; color: var(--muted); margin: 10px 18px 16px; }
@media (max-width: 760px) { .sidebar { display: none; } .main { padding-bottom: 24px; } }
.trend__yoy { color: var(--muted); }
a.plink { color: inherit; text-decoration: none; }
a.plink:hover { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.dn__name a.plink { font-weight: inherit; }

/* ドーナツの凡例：金額と構成比を並べる */
.dn__amt { font-family: var(--num); font-weight: 700; font-size: 13px; color: var(--ink, #172033); white-space: nowrap; text-align: right; min-width: 92px; }
.dn__amt small { font-size: 10.5px; color: var(--muted); font-weight: 600; margin-left: 1px; }
.dn__amt.is-neg { color: var(--neg); }
.dn__legend b { min-width: 48px; text-align: right; color: var(--muted); font-size: 12.5px; }
