/**
 * Partifinans specific styles
 * Restored tabbed layout with clearer navigation and helper UI elements
 */

.finance-tabs {
    top: 68px;
    z-index: 3;
    border: 1px solid #e9ecef;
}

.finance-tab-list .nav-link {
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    height: 100%;
    background: #f8f9fa;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.finance-tab-list .nav-link:hover {
    background: #eef2ff;
    border-color: #e2e8f0;
}

.finance-tab-list .nav-link.active {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

.finance-tab-list small {
    font-size: 0.8rem;
}

.finance-info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 4px;
    vertical-align: middle;
}

.finance-info-icon:hover {
    background: #0a58ca;
}

.chart-card-valu {
    position: relative;
    width: 100%;
    min-height: 260px;
}

.finance-details summary {
    list-style: none;
}

.finance-details summary::-webkit-details-marker {
    display: none;
}

.finance-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.finance-kpis .kpi-item {
    min-width: 180px;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.finance-kpis .kpi-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.finance-kpis .kpi-value {
    font-weight: 700;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .finance-tab-list {
        gap: 0.5rem;
        flex-direction: column;
    }

    .finance-tabs {
        position: sticky;
        top: 56px;
    }

    .chart-card-valu {
        min-height: 220px;
    }
}

@media print {
    .finance-tabs,
    .btn,
    .alert,
    summary,
    select,
    input,
    .finance-kpis {
        display: none !important;
    }

    .chart-card-valu {
        page-break-inside: avoid;
    }
}
