
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; padding: 15px; }
.container { max-width: 1000px; margin: 5px auto; background: white; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }
.header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; }
.header h2 { font-size: 18px; }
.btn-back { background: rgba(255,255,255,0.2); color: white; border: 2px solid white; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: 13px; text-decoration: none; }
.content { padding: 15px 20px; }
.report-section { background: #f8f9fa; padding: 15px; border-radius: 10px; margin-bottom: 15px; }
.section-title { font-size: 15px; font-weight: 700; color: #333; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #667eea; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat-item { background: white; padding: 12px; border-radius: 8px; border-left: 3px solid #667eea; }
.stat-label { font-size: 11px; color: #666; margin-bottom: 4px; }
.stat-value { font-size: 20px; font-weight: 700; color: #333; }
.client-list { background: white; border-radius: 8px; overflow: hidden; }
.client-item { padding: 10px 12px; border-bottom: 1px solid #e0e0e0; display: flex; justify-content: space-between; align-items: center; }
.client-item:last-child { border-bottom: none; }
.client-name { font-size: 13px; font-weight: 600; color: #333; }
.client-value { font-size: 14px; font-weight: 700; color: #667eea; }
.export-btn { padding: 12px 20px; background: #28a745; color: white; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.tabs-report { display: flex; gap: 5px; margin-bottom: 15px; flex-wrap: wrap; }
.tab-report { padding: 8px 15px; border: 2px solid #667eea; border-radius: 8px; background: white; color: #667eea; font-weight: 600; font-size: 13px; cursor: pointer; }
.tab-report.active { background: #667eea; color: white; }
.debt-section { border-left-color: #ff6b6b; }
.loading-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.9); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 15px; z-index: 9999; font-size: 18px; color: #667eea; font-weight: 600; }

/* Dark Mode */
body.dark-mode { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
body.dark-mode .container { background: #0f0f23; color: #e0e0e0; }
body.dark-mode .header { }
body.dark-mode .content { color: #e0e0e0; }
body.dark-mode input, body.dark-mode select, body.dark-mode textarea { background: #16213e; color: #e0e0e0; border-color: #333; }
body.dark-mode .card-item, body.dark-mode .summary-card { border-color: #333; }

@media (max-width: 600px) {
    .summary-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .cards-grid { grid-template-columns: 1fr !important; }
    .header { flex-direction: column; text-align: center; gap: 8px; }
}

