/**
 * Solo CF Chart – a CF terv grafikonja
 * Fájl: includes/assets/css/cash-flow/solo-cf-chart.css
 */

.solo-cf-chart-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 20px;
    color: #1a2e4a;
}

/* ── Összefoglaló ── */
.solo-cf-chart-summary { display: grid; gap: 10px; margin-bottom: 16px; }

.solo-cf-chart-kpi {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid;
}
.solo-cf-chart-kpi--ok  { background: #f0fdf4; border-color: #bbf7d0; }
.solo-cf-chart-kpi--bad { background: #fef2f2; border-color: #fecaca; }
.solo-cf-chart-kpi-label { font-size: 0.9em; color: #475569; }
.solo-cf-chart-kpi-value { font-size: 1.7em; font-weight: 700; font-variant-numeric: tabular-nums; }
.solo-cf-chart-kpi--ok  .solo-cf-chart-kpi-value { color: #166534; }
.solo-cf-chart-kpi--bad .solo-cf-chart-kpi-value { color: #b42318; }
.solo-cf-chart-kpi-help { font-size: 0.88em; color: #475569; line-height: 1.45; }

.solo-cf-chart-note {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.93em;
    line-height: 1.45;
}
.solo-cf-chart-note--info { background: #eff6ff; color: #1e3a8a; }
.solo-cf-chart-note--warn { background: #fff7ed; color: #9a3412; border-left: 4px solid #d97706; }
.solo-cf-chart-note--bad  { background: #fef2f2; color: #991b1b; border-left: 4px solid #dc2626; }

.solo-cf-chart-opening { font-size: 0.93em; color: #475569; }
.solo-cf-chart-opening strong { color: #1a2e4a; font-variant-numeric: tabular-nums; }
.solo-cf-chart-opening details { display: block; margin-top: 4px; }
.solo-cf-chart-opening details[open] { margin-bottom: 4px; }
.solo-cf-chart-opening summary { cursor: pointer; color: #2563eb; }
.solo-cf-chart-opening ul { margin: 6px 0 0 18px; padding: 0; }
.solo-cf-chart-est { color: #94a3b8; font-size: 0.92em; }

/* ── Vászon ── */
.solo-cf-chart-canvas-wrap { position: relative; height: 380px; }

/* ── Jelmagyarázat ── */
.solo-cf-chart-legend ul {
    display: flex; flex-wrap: wrap; gap: 6px 16px;
    list-style: none; margin: 12px 0 6px; padding: 0;
    font-size: 0.88em; color: #475569;
}
.solo-cf-chart-legend li { display: flex; align-items: center; gap: 6px; }
.solo-cf-lg-box  { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.solo-cf-lg-line { width: 18px; height: 3px; background: var(--c); }
.solo-cf-lg-dash { width: 18px; height: 0; border-top: 3px dashed var(--c); }
.solo-cf-lg-band { width: 18px; height: 12px; background: rgba(217, 119, 6, 0.15); border-top: 2px dashed var(--c); }
.solo-cf-chart-legend-help { margin: 4px 0 0; font-size: 0.86em; color: #64748b; line-height: 1.5; }

/* ── Beállítások ── */
.solo-cf-chart-settings { margin-top: 12px; border-top: 1px solid #f1f5f9; padding-top: 10px; }
.solo-cf-chart-settings > summary { cursor: pointer; font-weight: 600; color: #1a2e4a; }
.solo-cf-chart-settings-body { padding-top: 10px; font-size: 0.92em; color: #475569; }
.solo-cf-chart-roots { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 12px; }
.solo-cf-chart-root { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.solo-cf-chart-settings-row { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.solo-cf-chart-settings-row select,
.solo-cf-chart-settings-row input { padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; }
.solo-cf-chart-settings-row input { width: 130px; }
.solo-cf-chart-settings-help { font-size: 0.86em; color: #64748b; margin: 8px 0 10px; }
/* A téma (Elementor) gombstílusai felülírnák – ezért !important */
#soloCFChart .solo-cf-chart-save {
    background: #1a2e4a !important;
    background-image: none !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 6px !important;
    padding: 8px 18px !important;
    font: inherit !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    cursor: pointer;
}
#soloCFChart .solo-cf-chart-save:hover,
#soloCFChart .solo-cf-chart-save:focus { background: #0f1e30 !important; color: #fff !important; }
#soloCFChart .solo-cf-chart-save:focus-visible { outline: 2px solid #2563eb !important; outline-offset: 2px; }
#soloCFChart .solo-cf-chart-save:disabled { opacity: 0.6; cursor: wait; }
.solo-cf-chart-save-msg { margin-left: 8px; font-size: 0.9em; }

/* ── Mobil ── */
@media (max-width: 640px) {
    .solo-cf-chart-card { padding: 14px; border-radius: 10px; }
    .solo-cf-chart-canvas-wrap { height: 340px; }
    .solo-cf-chart-kpi-value { font-size: 1.4em; }
    .solo-cf-chart-settings-row { flex-direction: column; align-items: flex-start; }
}
