/**
 * Solo CF Popup CSS
 * Fájl: includes/assets/css/cash-flow/solo-cf-popup.css
 * @version 1.1.0 — max-width 680px → 1100px (asztali/tablet nézetre;
 *                   a mobil media query változatlan, a width:90-95%
 *                   szabály úgyis megvédi a kis képernyőket)
 */

.solo-cf-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: soloCFfadeIn 0.2s ease;
}
.solo-cf-popup-overlay.active { display: flex; }

@keyframes soloCFfadeIn { from { opacity: 0; } to { opacity: 1; } }

.solo-cf-popup-container {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 1100px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: soloCFslideDown 0.25s ease-out;
}

@keyframes soloCFslideDown {
    from { transform: translateY(-40px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.solo-cf-popup-header {
    background: linear-gradient(135deg, #1a2e4a 0%, #2d4a6e 100%);
    color: #fff;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.solo-cf-popup-header h3 { margin: 0; font-size: 18px; font-weight: 500; }

.solo-cf-popup-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 300;
}
.solo-cf-popup-close:hover { background: rgba(255,255,255,0.35); }

.solo-cf-popup-body {
    padding: 28px 24px;
    min-height: 300px;
}

.solo-cf-popup-footer {
    padding: 18px 24px;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e2e8f0;
}

/* Form elemek */
.solo-cf-form-group { margin-bottom: 20px; }

.solo-cf-form-group label {
    display: block;
    font-weight: 500;
    color: #1a2e4a;
    margin-bottom: 8px;
    font-size: 13px;
}

.solo-cf-form-group label .req { color: #dc2626; margin-left: 2px; }

.solo-cf-form-group input[type="text"],
.solo-cf-form-group input[type="number"],
.solo-cf-form-group select,
.solo-cf-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.solo-cf-form-group input:focus,
.solo-cf-form-group select:focus,
.solo-cf-form-group textarea:focus {
    outline: none;
    border-color: #1a2e4a;
    box-shadow: 0 0 0 3px rgba(26,46,74,0.1);
}

.solo-cf-form-group input[type="number"] { text-align: right; }

/* Grid – dátumok */
.solo-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

/* Gombok */
.solo-cf-btn {
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.solo-cf-btn-primary {
    background: #1a2e4a !important;
    color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.solo-cf-btn-primary:hover { background: #0f1e30 !important; }

.solo-cf-btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}
.solo-cf-btn-secondary:hover { background: #e2e8f0 !important; }

.solo-cf-btn-danger {
    background: #dc2626 !important;
    color: #fff !important;
}
.solo-cf-btn-danger:hover { background: #b91c1c !important; }

/* Seasonal tábla */
.solo-seasonal-input {
    width: 100%;
    padding: 6px 4px;
    text-align: right;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
}

/* Mobil — változatlan; a width:95% úgyis felülírja a max-width hatását
   kis képernyőn, tehát a fenti növelt max-width nem érinti a telefonokat.
   Amikor jön a dedikált mobil-optimalizálás, itt lesz a helye finomítani
   kis/nagy tablet töréspontokra. */
@media (max-width: 600px) {
    .solo-cf-popup-container { width: 95%; max-height: 95vh; }
    .solo-cf-popup-footer     { flex-direction: column; }
    .solo-cf-btn              { width: 100% !important; }
    .solo-date-grid           { grid-template-columns: 1fr; }
}