* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #eef2f7; padding: 20px; font-size: 13px; }
.container { max-width: 1500px; margin: 0 auto; }

.header { background: linear-gradient(135deg, #1a73e8, #0d47a1); color: white; padding: 20px; border-radius: 12px; margin-bottom: 20px; }
.header h1 { font-size: 26px; }

.config-selector { margin-top: 15px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.config-selector select { padding: 8px 12px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.9); font-size: 13px; min-width: 200px; }
.btn-save-config, .btn-delete-config { padding: 8px 16px; border: none; border-radius: 6px; cursor: pointer; font-size: 13px; }
.btn-save-config { background: #4CAF50; color: white; }
.btn-delete-config { background: #f44336; color: white; }

.two-columns { display: flex; gap: 20px; flex-wrap: wrap; }
.left-panel { flex: 1; min-width: 350px; }
.right-panel { flex: 2; min-width: 500px; }

.card { background: white; border-radius: 12px; padding: 18px; margin-bottom: 18px; box-shadow: 0 1px 4px rgba(0,0,0,0.1); }
.card h3 { color: #1a73e8; margin-bottom: 15px; border-bottom: 2px solid #e0e0e0; padding-bottom: 8px; font-size: 16px; }

.form-row { display: flex; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.form-group { flex: 1; min-width: 100px; }
.form-group label { display: block; margin-bottom: 4px; font-weight: 600; color: #555; font-size: 11px; }
.form-group input { width: 100%; padding: 6px 8px; border: 1px solid #ccc; border-radius: 6px; font-size: 12px; }

.investment-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 10px; }
.investment-table th, .investment-table td { padding: 6px 4px; text-align: center; border: 1px solid #ddd; }
.investment-table th { background: #f5f5f5; }
.investment-table input { width: 50px; padding: 4px; text-align: center; }

.btn-calculate { background: linear-gradient(135deg, #1a73e8, #0d47a1); color: white; border: none; padding: 12px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; width: 100%; margin-top: 15px; }
.btn-calculate:hover { opacity: 0.9; }

.irr-card { background: linear-gradient(135deg, #1a73e8, #0d47a1); color: white; padding: 20px; border-radius: 12px; text-align: center; margin-bottom: 20px; }
.irr-card .value { font-size: 52px; font-weight: bold; }

.stat-row { display: flex; gap: 15px; margin-bottom: 20px; }
.stat-card { background: white; padding: 12px; border-radius: 10px; text-align: center; flex: 1; border: 1px solid #ddd; }
.stat-value { font-size: 22px; font-weight: bold; color: #1a73e8; }

.cashflow-table { width: 100%; border-collapse: collapse; font-size: 10px; margin-top: 10px; }
.cashflow-table th, .cashflow-table td { padding: 5px 4px; text-align: right; border: 1px solid #ddd; }
.cashflow-table th { background: #f5f5f5; text-align: center; }
.cashflow-table td:first-child { text-align: left; font-weight: bold; background: #fafafa; }

.investment-row { background: #ffebee; }
.residual-row { background: #e8eaf6; }

.residual-table { width: 100%; border-collapse: collapse; font-size: 11px; margin-top: 10px; }
.residual-table th, .residual-table td { padding: 5px 6px; border: 1px solid #ddd; }
.residual-table th { background: #f3e5f5; text-align: center; }

.note { font-size: 11px; background: #fff8e1; padding: 10px; border-radius: 6px; margin-top: 10px; }
.info-note { background: #e3f2fd; padding: 10px; border-radius: 6px; margin-top: 10px; font-size: 11px; }

.client-note { background: #e8f0fe; padding: 12px; border-radius: 8px; margin-top: 10px; font-size: 11px; }
.client-note h4 { color: #1a73e8; margin-bottom: 6px; }
.client-note p { margin: 2px 0; }

.opex-sum-box { background: #e8f5e9; padding: 8px 12px; border-radius: 6px; margin-top: 10px; text-align: center; }
.opex-sum-box strong { color: #2e7d32; }