.vffc-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.vffc-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.vffc-modal-close {
    color: #aaa;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.vffc-modal-close:hover {
    color: #151a24;
}

.vffc-modal-title {
    font-size: 2rem;
    color: #151a24;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

.vffc-layout {
    display: flex;
    gap: 30px;
}

.vffc-sidebar {
    flex: 0 0 350px;
    background: #f8fafc;
    padding: 25px;
    border-radius: 8px;
}

.vffc-main {
    flex: 1;
}

.vffc-form-group {
    margin-bottom: 15px;
}

.vffc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
}

.vffc-form-group input,
.vffc-form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.vffc-form-group input[readonly] {
    background-color: #e2e8f0;
    font-weight: bold;
    color: #151a24;
}

.vffc-btn-calc {
    width: 100%;
    background: #1464f4;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.vffc-btn-calc:hover {
    background: #0f4dbd;
}

.vffc-summary-cards {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.vffc-summary-cards .vffc-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.vffc-card-title {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.vffc-card-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1464f4;
}

.vffc-main h3 {
    font-size: 1.2rem;
    color: #151a24;
    margin-top: 0;
    margin-bottom: 15px;
}

.vffc-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.vffc-table th, .vffc-table td {
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    text-align: left;
    font-size: 0.95rem;
}

.vffc-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #151a24;
}

.vffc-table-wrap {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
}

.vffc-table-wrap thead th {
    position: sticky;
    top: 0;
}

@media (max-width: 768px) {
    .vffc-layout {
        flex-direction: column;
    }
    .vffc-sidebar {
        flex: auto;
    }
    .vffc-summary-cards {
        flex-direction: column;
    }
}
