.chart-card canvas {
    width: 100%;
    height: 280px;
}
.toolbar {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}
.subtitle {
    color: var(--text-soft);
    margin-top: .25rem;
}
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.inline-stat {
    padding: .8rem 1rem;
    background: var(--bg-panel);
    border-radius: 1rem;
    border: 1px solid var(--line);
}
.file-link {
    color: var(--primary-strong);
    font-weight: 700;
}
.action-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
}
.action-group-modal {
    justify-content: flex-end;
}
.btn-action {
    min-width: 112px;
    font-size: .85rem;
    padding: .72rem .95rem;
}
.btn-action-view {
    background: rgba(27, 38, 59, 0.12);
    color: #0d1321;
    border-color: rgba(13, 19, 33, 0.18);
}
.btn-action-edit {
    background: rgba(201, 180, 138, 0.22);
    color: #4c3522;
    border-color: rgba(120, 84, 47, 0.18);
}
.btn-action-delete {
    background: rgba(159, 45, 31, 0.12);
    color: #882418;
    border-color: rgba(159, 45, 31, 0.24);
}
.btn.is-disabled,
.btn:disabled {
    opacity: .58;
    cursor: not-allowed;
    transform: none !important;
}
.btn-action-status {
    background: rgba(47, 122, 78, 0.14);
    color: #225639;
    border-color: rgba(47, 122, 78, 0.24);
}
.metric-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 24, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 120;
}
body.modal-open {
    overflow: hidden;
}
.modal-overlay.hidden {
    display: none;
}
.modal-card {
    width: min(100%, 560px);
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    padding: 1.5rem;
}
@media (max-width: 980px) {
    .metric-detail-grid {
        grid-template-columns: 1fr;
    }
    .action-group,
    .action-group-modal {
        width: 100%;
    }
    .btn-action {
        width: 100%;
    }
}
