.chart-card-tools {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.pill-actions {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 999px;
    padding: 6px 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
}

.btn-pill-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, .10);
    background: #fff;
    color: #334155;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.btn-pill-icon i {
    font-size: 14px;
    line-height: 1;
}

.btn-pill-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .96);
}

.btn-pill-icon:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .10);
}

.btn-pill-icon:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .22);
}

.btn-pill-success {
    border-color: rgba(34, 197, 94, .35);
    color: #16a34a;
}

.btn-pill-success:hover {
    background: rgba(34, 197, 94, .08);
}

.btn-pill-info {
    border-color: rgba(14, 165, 233, .35);
    color: #0284c7;
}

.btn-pill-info:hover {
    background: rgba(14, 165, 233, .08);
}

.btn-pill-dark {
    border-color: rgba(51, 65, 85, .25);
    color: #0f172a;
}

.btn-pill-dark:hover {
    background: rgba(15, 23, 42, .06);
}

.chart-data-modal-table {
    font-size: 0.88rem;
}

.chart-data-modal-table th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 1;
}

.btn-pill-dark {
    border-color: rgba(51, 65, 85, .25);
    color: #0f172a;
}

.btn-pill-dark:hover {
    background: rgba(15, 23, 42, .06);
}

.card-title-tools {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}

.card-title-tools .card-title {
    min-width: 0;
}

.card-title-tools .pill-actions {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .card-title-tools {
        align-items: stretch;
    }

    .card-title-tools .pill-actions {
        width: 100%;
        justify-content: flex-end;
    }
}