/**
 * Solo CF - Invest Popup CSS
 * Fájl: includes/assets/css/cash-flow/solo-cf-invest-popup.css
 *
 * A B2B flow-cf-invest-popup.css változatlan portja — az osztálynevek
 * (.flow-invest-*) generikusak, nem kellett átnevezni őket, csak a fájlt
 * kellett bekötni a Solo enqueue-láncba.
 *
 * @version 1.0.0
 */

/* ═══ TABS ═══ */
.flow-invest-tabs {
    display: flex; gap: 0; margin-bottom: 20px;
    border-radius: 10px; overflow: hidden; border: 2px solid #e0e5ec;
}
.flow-invest-tab {
    flex: 1; padding: 14px 8px; text-align: center; cursor: pointer;
    font-size: 12.5px; font-weight: 600; background: #f8f9fb;
    color: #6b7d95; transition: all .2s; border-right: 1px solid #e0e5ec;
}
.flow-invest-tab:last-child { border-right: none; }
.flow-invest-tab:hover { background: #eef1f6; }
.flow-invest-tab.active { background: #223a5e; color: #fff; }
.flow-invest-tab-icon { font-size: 20px; display: block; margin-bottom: 4px; }
.flow-invest-tab-desc { font-size: 9.5px; font-weight: 400; opacity: .7; display: block; }

/* ═══ SUB TABS ═══ */
.flow-invest-sub-tabs {
    display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid #e0e5ec;
}
.flow-invest-sub-tab {
    padding: 10px 20px; cursor: pointer; font-size: 12px; font-weight: 600;
    color: #6b7d95; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s;
}
.flow-invest-sub-tab:hover { color: #223a5e; }
.flow-invest-sub-tab.active { color: #223a5e; border-bottom-color: #4a7dff; }

/* ═══ SECTIONS ═══ */
.flow-invest-section { margin-bottom: 16px; }
.flow-invest-sec-title {
    font-size: 12px; font-weight: 700; color: #223a5e; margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .5px;
}

/* ═══ PANELS ═══ */
.flow-invest-panel { display: none; }
.flow-invest-panel.active { display: block; }
.flow-invest-sub-panel { display: none; }
.flow-invest-sub-panel.active { display: block; }

/* ═══ FORM ═══ */
.flow-invest-popup .flow-cf-form-group { margin-bottom: 12px; }
.flow-invest-popup .flow-cf-form-group label {
    display: block; font-size: 11.5px; font-weight: 600; color: #3a4d65; margin-bottom: 4px;
}
.flow-invest-popup .flow-cf-form-group input,
.flow-invest-popup .flow-cf-form-group select,
.flow-invest-popup .flow-cf-form-group textarea {
    width: 100%; padding: 9px 12px; border: 1.5px solid #d3dae3; border-radius: 8px;
    font-size: 13px; font-family: inherit; transition: border-color .2s; background: #fff;
}
.flow-invest-popup .flow-cf-form-group input:focus,
.flow-invest-popup .flow-cf-form-group select:focus {
    border-color: #4a7dff; outline: none; box-shadow: 0 0 0 3px rgba(74,125,255,.12);
}
.flow-invest-popup .hint { font-size: 10px; color: #8896a7; margin-top: 3px; }

/* ═══ GRIDS ═══ */
.flow-invest-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.flow-invest-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* ═══ TYPE CARDS ═══ */
.flow-invest-type-cards { display: flex; gap: 10px; margin-bottom: 16px; }
.flow-invest-type-card {
    flex: 1; padding: 14px 10px; border: 2px solid #e0e5ec; border-radius: 10px;
    cursor: pointer; text-align: center; transition: all .2s; background: #fafbfc;
}
.flow-invest-type-card:hover { border-color: #96b3e0; background: #f0f4fa; }
.flow-invest-type-card.active { border-color: #4a7dff; background: #eef3ff; box-shadow: 0 2px 8px rgba(74,125,255,.15); }
.flow-invest-type-card .card-icon { font-size: 24px; margin-bottom: 4px; }
.flow-invest-type-card .card-name { font-size: 12px; font-weight: 700; color: #223a5e; }
.flow-invest-type-card .card-desc { font-size: 9.5px; color: #8896a7; margin-top: 2px; }

/* ═══ PILLS ═══ */
.flow-invest-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.flow-invest-pill {
    padding: 7px 14px; border: 1.5px solid #d3dae3; border-radius: 20px; cursor: pointer;
    font-size: 11px; font-weight: 600; color: #5a6e85; background: #fff; transition: all .15s;
}
.flow-invest-pill:hover { border-color: #96b3e0; }
.flow-invest-pill.active { background: #223a5e; color: #fff; border-color: #223a5e; }

/* ═══ CHECK TOGGLE ═══ */
.flow-invest-check-toggle {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px;
    border: 1.5px solid #e0e5ec; border-radius: 8px; cursor: pointer; margin-bottom: 10px; background: #fafbfc;
}
.flow-invest-check-toggle:hover { border-color: #96b3e0; }
.flow-invest-check-toggle input[type="checkbox"] { margin-top: 2px; accent-color: #4a7dff; }
.flow-invest-check-title { font-size: 12px; font-weight: 600; color: #223a5e; }
.flow-invest-check-sub { font-size: 10px; color: #8896a7; }

/* ═══ DYNAMIC ITEMS ═══ */
.flow-invest-dyn-item {
    background: #f8f9fb; border: 1px solid #e0e5ec; border-radius: 8px;
    padding: 10px 12px; margin-bottom: 8px; position: relative;
}
.flow-invest-dyn-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.flow-invest-dyn-header span { font-size: 11px; font-weight: 600; color: #4a7dff; }
.flow-invest-dyn-remove { background: none; border: none; font-size: 16px; cursor: pointer; color: #c0392b; }
.flow-invest-btn-add {
    display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px;
    border: 1.5px dashed #96b3e0; border-radius: 8px; background: #f0f4fa;
    color: #4a7dff; font-size: 11px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.flow-invest-btn-add:hover { background: #e0ebff; border-color: #4a7dff; }

/* ═══ NOTICES ═══ */
.flow-invest-notice { background: #fff3cd; border-left: 3px solid #ffc107; padding: 10px 14px; border-radius: 6px; font-size: 11px; color: #856404; margin-bottom: 12px; }
.flow-invest-notice-blue { background: #e8f0fe; border-left: 3px solid #4a7dff; padding: 10px 14px; border-radius: 6px; font-size: 11px; color: #1a4fa0; margin-bottom: 12px; }
.flow-invest-notice-red { background: #fde8e8; border-left: 3px solid #e53935; padding: 10px 14px; border-radius: 6px; font-size: 11px; color: #b71c1c; margin-bottom: 12px; }

/* ═══ SUMMARY ═══ */
.flow-invest-summary-box {
    background: linear-gradient(135deg, #f8f9fb, #eef1f6); border: 1px solid #d3dae3;
    border-radius: 10px; padding: 16px; margin-top: 10px;
}
.flow-invest-sum-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 12px; }
.flow-invest-sum-label { font-size: 11px; font-weight: 700; color: #223a5e; margin-bottom: 8px; text-transform: uppercase; }
.flow-invest-sum-divider { border-top: 1px solid #d3dae3; margin-top: 6px; padding-top: 6px; font-weight: 700; }

/* ═══ TAX ITEM ═══ */
.flow-invest-tax-item {
    background: #fef9e7; border: 1px solid #f0e0a0; border-radius: 8px;
    padding: 10px 12px; margin-bottom: 8px;
}
.flow-invest-tax-item .flow-invest-dyn-header span { color: #856404; }
.flow-invest-tax-add {
    border-color: #f0e0a0 !important; background: #fef9e7 !important; color: #856404 !important;
}

/* ═══ SEASONAL TABLE ═══ */
.flow-invest-seasonal-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.flow-invest-seasonal-table th { font-size: 10px; font-weight: 600; color: #6b7d95; padding: 4px 2px; text-align: center; }
.flow-invest-seasonal-table td { padding: 3px 2px; }
.flow-invest-seasonal-table input {
    width: 100%; padding: 6px 4px; border: 1px solid #d3dae3; border-radius: 5px;
    font-size: 11px; text-align: center; font-family: inherit;
}

/* ═══ MOD EVENT ═══ */
.flow-invest-mod-event {
    background: #fff; border: 1.5px solid #e0e5ec; border-radius: 10px;
    padding: 14px; margin-bottom: 10px; position: relative;
}
.flow-invest-mod-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.flow-invest-mod-type { font-size: 11px; font-weight: 700; color: #4a7dff; display: flex; align-items: center; gap: 6px; }

/* ═══ COND (conditional visibility) ═══ */
.flow-invest-cond { display: none; }
.flow-invest-cond.show { display: block; }

/* ═══ TOGGLE SECTIONS ═══ */
.flow-invest-toggle-header {
    cursor: pointer; padding: 8px 0; font-size: 12px; font-weight: 600; color: #223a5e;
    display: flex; align-items: center; gap: 6px;
}
.flow-invest-toggle-header .badge-opt {
    font-size: 9px; font-weight: 500; color: #8896a7; background: #eef1f6; padding: 2px 8px; border-radius: 10px;
}
.flow-invest-toggle-body { display: none; padding: 10px 0; }
.flow-invest-toggle-header.open + .flow-invest-toggle-body { display: block; }
.flow-invest-toggle-header.open::before { content: '▼ '; font-size: 9px; }
.flow-invest-toggle-header:not(.open)::before { content: '▶ '; font-size: 9px; }
.flow-invest-fx-row { background: #f0f7ff; border-radius: 4px; padding: 6px 8px; margin-top: 6px; border-left: 3px solid #2196F3; }

/* ═══ READONLY FIELD ═══ */
.flow-invest-readonly {
    background: #f0f4fa !important; color: #223a5e !important; font-weight: 600 !important;
}

/* ═══ SCROLL / SPINNER DISABLE ═══ */
.flow-invest-popup input[type="number"]::-webkit-inner-spin-button,
.flow-invest-popup input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.flow-invest-popup input[type="number"] { -moz-appearance: textfield; }

/* ── Betűméretek növelése ── */
.flow-invest-popup .flow-cf-form-group label { font-size: 13px !important; }
.flow-invest-popup .flow-cf-form-group input,
.flow-invest-popup .flow-cf-form-group select,
.flow-invest-popup .flow-cf-form-group textarea { font-size: 14px !important; padding: 11px 14px !important; }
.flow-invest-popup .hint { font-size: 12px !important; }
.flow-invest-sec-title { font-size: 14px !important; }
.flow-invest-tab { font-size: 13px !important; }
.flow-invest-tab-desc { font-size: 11px !important; }
.flow-invest-pill { font-size: 13px !important; padding: 8px 16px !important; }
.flow-invest-type-card .card-name { font-size: 13px !important; }
.flow-invest-type-card .card-desc { font-size: 11px !important; }
.flow-invest-dyn-header span { font-size: 13px !important; }
.flow-invest-notice, .flow-invest-notice-blue, .flow-invest-notice-red { font-size: 13px !important; }
.flow-invest-sum-row { font-size: 13px !important; }
.flow-invest-sum-label { font-size: 12px !important; }
.flow-invest-check-title { font-size: 13px !important; }
.flow-invest-check-sub { font-size: 11px !important; }

/* ── flow-invest-btn-add: Flow kék (Elementor override) ── */
.flow-invest-btn-add {
    background: linear-gradient(135deg, #223a5e 0%, #3a5a8e 100%) !important;
    background-image: linear-gradient(135deg, #223a5e 0%, #3a5a8e 100%) !important;
    color: #fff !important; border: none !important; border-radius: 6px !important;
    padding: 10px 18px !important; font-size: 13px !important; font-weight: 600 !important;
    cursor: pointer !important; transition: opacity 0.2s !important;
    box-shadow: none !important; text-shadow: none !important;
    display: inline-flex !important; align-items: center !important; gap: 6px !important;
}
.flow-invest-btn-add:hover {
    background: linear-gradient(135deg, #223a5e 0%, #3a5a8e 100%) !important;
    background-image: linear-gradient(135deg, #223a5e 0%, #3a5a8e 100%) !important;
    opacity: 0.88 !important; border: none !important;
}
.flow-invest-tax-add {
    background: #fef9e7 !important; background-image: none !important;
    color: #856404 !important; border: 1.5px dashed #f0e0a0 !important;
}
.flow-invest-tax-add:hover { background: #fdf3c0 !important; background-image: none !important; opacity: 1 !important; }

/* ═══ ROLE PILLS (B2B-specifikus — Solo-ban jelenleg nem használt, de
   ártalmatlan itt hagyni, ha a jövőben mégis kellene) ═══ */
.flow-invest-role-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.flow-invest-role-pill {
    padding: 14px 16px; border: 2px solid #e0e5ec; border-radius: 10px;
    cursor: pointer; transition: all .2s; background: #fafbfc; font-size: 12px; line-height: 1.5;
}
.flow-invest-role-pill:hover:not(.role-locked) { border-color: #96b3e0; background: #f0f4fa; }
.flow-invest-role-pill.active { border-color: #4a7dff; background: #eef3ff; box-shadow: 0 2px 8px rgba(74,125,255,.15); }
.flow-invest-role-pill.role-locked { cursor: not-allowed; opacity: 0.72; }
.flow-invest-role-pill strong { display: block; font-size: 13px; color: #223a5e; margin-bottom: 4px; }
.flow-invest-role-pill span { font-size: 11px; color: #6b7d95; }