New tool for processing damage protocols: - Tab 1: Generate pre-filled PDF from Schadenlaufzettel.docx - Tab 2: Analyze filled PDF forms and extract dropdown selections - Tab 3: Generate Vorbericht.docx from filled PDF data Backend: Flask API with pypdf and python-docx Frontend: Vanilla JS SPA with drag-drop file upload 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
108 lines
3.5 KiB
CSS
108 lines
3.5 KiB
CSS
* { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
:root {
|
|
--primary: #2563eb;
|
|
--primary-dark: #1d4ed8;
|
|
--success: #16a34a;
|
|
--warning: #ca8a04;
|
|
--error: #dc2626;
|
|
--bg: #f8fafc;
|
|
--card: #ffffff;
|
|
--border: #e2e8f0;
|
|
--text: #1e293b;
|
|
--text-muted: #64748b;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.container { max-width: 900px; margin: 0 auto; padding: 2rem; }
|
|
|
|
header { text-align: center; margin-bottom: 2rem; }
|
|
header h1 { font-size: 1.75rem; font-weight: 600; margin-bottom: 0.5rem; }
|
|
header p { color: var(--text-muted); }
|
|
|
|
.tabs {
|
|
display: flex; gap: 0.5rem; margin-bottom: 1.5rem;
|
|
border-bottom: 2px solid var(--border); padding-bottom: 0.5rem;
|
|
}
|
|
|
|
.tab {
|
|
padding: 0.75rem 1.5rem; border: none; background: none;
|
|
font-size: 1rem; cursor: pointer; border-radius: 0.5rem 0.5rem 0 0;
|
|
color: var(--text-muted); transition: all 0.2s;
|
|
}
|
|
|
|
.tab:hover { background: var(--border); }
|
|
.tab.active { background: var(--primary); color: white; }
|
|
|
|
.tab-content {
|
|
display: none; background: var(--card); border-radius: 0.75rem;
|
|
padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
|
}
|
|
.tab-content.active { display: block; }
|
|
|
|
.upload-zone {
|
|
border: 2px dashed var(--border); border-radius: 0.75rem;
|
|
padding: 3rem; text-align: center; transition: all 0.2s; cursor: pointer;
|
|
}
|
|
.upload-zone:hover, .upload-zone.dragover {
|
|
border-color: var(--primary); background: #eff6ff;
|
|
}
|
|
.upload-zone input { display: none; }
|
|
.upload-zone h3 { margin-bottom: 0.5rem; }
|
|
.upload-zone p { color: var(--text-muted); font-size: 0.875rem; }
|
|
|
|
.file-info {
|
|
margin-top: 1rem; padding: 1rem; background: #f0fdf4;
|
|
border-radius: 0.5rem; display: none;
|
|
}
|
|
.file-info.visible { display: block; }
|
|
|
|
.btn {
|
|
display: inline-flex; align-items: center; gap: 0.5rem;
|
|
padding: 0.75rem 1.5rem; border: none; border-radius: 0.5rem;
|
|
font-size: 1rem; cursor: pointer; transition: all 0.2s;
|
|
}
|
|
.btn-primary { background: var(--primary); color: white; }
|
|
.btn-primary:hover { background: var(--primary-dark); }
|
|
.btn-primary:disabled { background: var(--border); cursor: not-allowed; }
|
|
|
|
.actions { margin-top: 1.5rem; display: flex; gap: 1rem; }
|
|
|
|
.status {
|
|
padding: 1rem; border-radius: 0.5rem; margin-top: 1rem; display: none;
|
|
}
|
|
.status.visible { display: block; }
|
|
.status.success { background: #f0fdf4; color: var(--success); }
|
|
.status.error { background: #fef2f2; color: var(--error); }
|
|
.status.loading { background: #eff6ff; color: var(--primary); }
|
|
|
|
.info-box {
|
|
background: #eff6ff; border-left: 4px solid var(--primary);
|
|
padding: 1rem; margin-bottom: 1.5rem; border-radius: 0 0.5rem 0.5rem 0;
|
|
}
|
|
.info-box h4 { margin-bottom: 0.25rem; }
|
|
.info-box p { color: var(--text-muted); font-size: 0.875rem; }
|
|
|
|
.result { margin-top: 1.5rem; padding: 1rem; background: var(--bg); border-radius: 0.5rem; display: none; }
|
|
.result.visible { display: block; }
|
|
.result h4 { margin-bottom: 0.75rem; }
|
|
|
|
.dropdown-item {
|
|
padding: 0.75rem; background: white; border: 1px solid var(--border);
|
|
border-radius: 0.5rem; margin-bottom: 0.5rem;
|
|
}
|
|
.dropdown-item strong { color: var(--primary); }
|
|
|
|
.field-group { margin-bottom: 1rem; }
|
|
.field-group h5 { margin-bottom: 0.5rem; color: var(--text-muted); }
|
|
.field-list { display: grid; gap: 0.5rem; }
|
|
|
|
footer { text-align: center; margin-top: 3rem; color: var(--text-muted); font-size: 0.875rem; }
|