/* 取引管理用CSS */
.card-sm {
    margin-bottom: 0.5rem;
}

.card-sm .card-body {
    padding: 0.75rem;
}

.card-sm .card-title {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-sm h6 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.card-sm .small {
    font-size: 0.8rem;
    line-height: 1.2;
}

.card-sm .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

.card-sm .btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.85rem;
}

.badge-sm {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

.alert-sm {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* グラフ用 */
@media (max-width: 768px) {
    #expenseBarChartMobile,
    #balanceLineChartMobile {
        height: 250px !important;
        max-height: 250px !important;
    }
    
    /* その他のグラフは200pxのまま */
    .chart-canvas {
        height: 200px !important;
    }
}

/* フォームエラー表示 */
.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}
