* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; padding: 1rem; background: #f8fafc; color: #1e293b; }
.block-container { max-width: 1400px; margin: 0 auto; }
h1 { color: #1e3a5f; font-size: 1.5rem; margin-bottom: 0.5rem; }
.section-title { font-size: 1.25rem; font-weight: 600; color: #1e3a5f; margin: 1rem 0 0.5rem; }
.section-desc { color: #555; font-size: 0.9rem; margin-bottom: 1rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 1rem 0; border-bottom: 1px solid #e2e8f0; }
.tabs button { padding: 0.5rem 1rem; border: none; background: #e2e8f0; cursor: pointer; border-radius: 4px 4px 0 0; }
.tabs button:hover { background: #cbd5e1; }
.tabs button.active { background: #1e40af; color: #fff; }
.sidebar { background: #f1f5f9; padding: 1rem; border-radius: 8px; margin-bottom: 1rem; }
.sidebar h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.sidebar button { margin: 0.25rem 0.25rem 0.25rem 0; padding: 0.5rem 0.75rem; cursor: pointer; border-radius: 4px; border: 1px solid #94a3b8; background: #fff; }
.sidebar button.primary { background: #1e40af; color: #fff; border-color: #1e40af; }
.sidebar button:hover { background: #e2e8f0; }
.sidebar button.primary:hover { background: #1d4ed8; }
.msg { padding: 0.5rem 1rem; border-radius: 4px; margin: 0.5rem 0; }
.msg.success { background: #d1fae5; color: #065f46; }
.msg.error { background: #fee2e2; color: #991b1b; }
.msg.info { background: #dbeafe; color: #1e40af; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
th, td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
th { background: #1f4e78; color: #fff; font-weight: 600; }
tr:hover { background: #f8fafc; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin: 1rem 0; }
.metric { background: #fff; padding: 1rem; border-radius: 8px; border: 1px solid #e2e8f0; }
.metric-label { font-size: 0.85rem; color: #64748b; }
.metric-value { font-size: 1.35rem; font-weight: 700; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
input[type="file"] { margin: 0.5rem 0; }
.loading { color: #64748b; }
.eur { color: #0f766e; font-weight: 600; }
.pz { color: #1e40af; font-weight: 600; }
