body { font-family: 'Segoe UI', Tahoma, sans-serif; background-color: #f0f2f5; padding: 20px; color: #333; margin: 0; }
.container { max-width: 1100px; margin: 0 auto; }

.tabs { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 2px solid #ddd; padding-bottom: 10px; }
.tab-btn { padding: 10px 20px; background: none; border: none; font-size: 16px; font-weight: bold; color: #7f8c8d; cursor: pointer; border-radius: 6px; transition: 0.3s; }
.tab-btn.active { background: #2196F3; color: white; }
.tab-btn:hover:not(.active) { background: #e0e0e0; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.stat-card { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: center; border-bottom: 4px solid #ddd; }
.stat-card.profit { border-color: #4CAF50; }
.stat-card.partner { border-color: #2196F3; }
.stat-card.debt { border-color: #e74c3c; background-color: #fffaf9; }
.stat-value { font-size: 24px; font-weight: bold; margin-top: 10px; color: #2c3e50; }
.stat-label { font-size: 13px; color: #7f8c8d; text-transform: uppercase; }

.forms-wrapper { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.form-container { background: white; padding: 25px; border-radius: 12px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); flex: 1; }
h3 { margin-top: 0; margin-bottom: 20px; font-size: 18px; border-left: 4px solid #2196F3; padding-left: 10px; }

.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid #dfe6e9; border-radius: 6px; box-sizing: border-box; font-family: inherit; }
textarea { min-height: 80px; resize: vertical; }

.btn { width: 100%; padding: 12px; border: none; border-radius: 6px; color: white; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-green { background: #4CAF50; }
.btn-blue { background: #2196F3; }
.btn:hover { opacity: 0.9; }

.grid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.data-card { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); border-top: 4px solid #4CAF50; }

#expense-fields { display: none; margin-top: 15px; padding-top: 15px; border-top: 1px dashed #ccc; }

/* Стили для экрана авторизации */
#login-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #f0f2f5; display: flex; justify-content: center; align-items: center; z-index: 1000;
}
.login-box {
    background: white; padding: 40px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 100%; max-width: 350px; text-align: center;
}
#login-error {
    color: #e74c3c; display: none; font-size: 14px; margin-top: 15px; font-weight: bold;
}