:root{color-scheme:light;font-family:Arial,sans-serif;--fx-green-bg: #e8f5e9;--fx-green-fg: #2e7d32;--fx-red-bg: #ffebee;--fx-red-fg: #c62828;--fx-blue-bg: #e3f2fd;--fx-blue-fg: #1565c0;--fx-yellow-bg: #fff8e1;--fx-yellow-fg: #f57f17;--fx-orange-bg: #fff3e0;--fx-orange-fg: #e65100;--fx-purple-bg: #f3e5f5;--fx-purple-fg: #6a1b9a}*{box-sizing:border-box}body{margin:0;background:#eef2f8;color:#1f2a37}.page{min-height:100vh;display:grid;place-items:center;padding:16px}.card{width:100%;max-width:360px;background:#fff;border-radius:10px;box-shadow:0 8px 24px #00000014;padding:24px}h1{margin-top:0;margin-bottom:20px}form{display:grid;gap:10px}input,select,textarea{border:1px solid #c9d3e0;border-radius:6px;font-size:14px;padding:10px}button{margin-top:8px;border:none;border-radius:6px;background:#1d4e9f;color:#fff;padding:10px;cursor:pointer;transition:background-color .15s ease}button:hover:enabled{background:#163f80}button:disabled{opacity:.7;cursor:wait}.error{margin:4px 0;color:#b00020;font-size:14px}.app-page{min-height:auto;padding:16px;display:grid;gap:12px;width:min(1500px,calc(100vw - 32px));margin:0 auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(180deg,#fefefe,#f6f8fc);border-radius:10px;padding:12px 16px;box-shadow:0 4px 14px #0000000f;border:1px solid #d9e2ef}.topbar h1{margin:0;font-size:20px}.top-actions{display:flex;align-items:center;gap:10px}.toolbar{display:flex;align-items:center;gap:10px;background:#e8eef9;border-radius:10px;padding:10px 16px;box-shadow:0 4px 14px #0000000d;border:1px solid #d4deee}.toolbar button{margin-top:0}.year-modal-box{max-width:460px}.year-modal-form{display:grid;gap:8px}.year-modal-form label{font-size:.9rem;font-weight:600}.year-modal-error{margin:0}.tabs{display:flex;gap:8px}.tabs button{margin:0;background:#6b7f9f;font-weight:600}.tabs button.active{background:#1d4e9f}.panel{background:#fff;border-radius:10px;padding:14px;box-shadow:0 4px 14px #0000000f;border:1px solid #dbe5f2}.dashboard-wrap{display:grid;gap:16px}.dashboard-header{display:grid;gap:4px;justify-items:center;text-align:center}.dashboard-header h2{margin:0;font-size:28px}.dashboard-header p{margin:0;color:#667085}.dashboard-period{font-weight:700;color:#1565c0}.dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px}.dashboard-tile{min-height:140px;border-radius:12px;border:1px solid rgba(0,0,0,.08);box-shadow:inset 0 1px #ffffff80;display:grid;align-content:center;justify-items:center;text-align:center;padding:16px}.dashboard-tile__title{font-size:13px;color:#0009;margin-bottom:8px;font-weight:700}.dashboard-tile__value{font-size:22px;font-weight:700}.panel-error{margin:0}.row-form{display:grid;grid-template-columns:repeat(8,minmax(100px,1fr));gap:8px;margin-bottom:10px}.row-form button{margin:0}.grid-two{display:grid;grid-template-columns:repeat(2,minmax(200px,1fr));gap:10px}.tile{border:1px solid #d8dfea;border-radius:8px;padding:12px;background:#f8faff}table{width:100%;border-collapse:collapse;margin-bottom:12px;table-layout:fixed}th,td{border:1px solid #e2e8f0;text-align:left;padding:8px;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}th{background:#e9effa;font-weight:700}tbody tr:nth-child(2n){background:#fbfcff}tbody tr:hover{background:#f1f6ff}.report-block{display:grid;gap:6px;margin-bottom:10px}.tx-section{border:1px solid #d8e2ef;border-radius:10px;padding:10px;margin-bottom:12px}.tx-section-title{margin:0 0 10px;font-size:17px;font-weight:700;padding:8px 10px;border-radius:8px}.tx-section--income{background:#f7fbf8;border-color:#cfe5d7}.tx-section--income .tx-section-title{color:#20663a;background:#dff3e6}.tx-section--expense{background:#fff9f9;border-color:#f1d5d5}.tx-section--expense .tx-section-title{color:#b42323;background:#fde2e2}.tx-category-card{background:#fff;border:1px solid #e5edf7;border-radius:8px;padding:8px;margin-bottom:10px}.tx-category-title{display:inline-block;margin-bottom:6px}.tx-table{table-layout:fixed;margin-bottom:8px}.tx-col-posten{width:27%}.tx-col-datum{width:12%}.tx-col-betrag{width:10%}.tx-col-bemerkung{width:28%}.tx-col-action{width:23%}.btn-files{margin:0;background:#f1f5f9;color:#1f2a37;border:1px solid #cbd5e1;padding:3px 10px;min-width:72px;border-radius:4px;cursor:pointer;font-size:.82rem}.btn-files:hover{background:#e2e8f0}.tx-file-menu{position:absolute;top:calc(100% + 4px);left:0;z-index:20;min-width:240px;max-width:360px;background:#fff;border:1px solid #d8e2ef;border-radius:8px;box-shadow:0 8px 18px #0000001f;padding:4px;text-align:left}.tx-file-menu-item{display:block;padding:6px 8px;border-radius:6px;color:#1f2a37;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-file-menu-item:hover{background:#eef4ff}.tx-table td:nth-child(3),.tx-table th:nth-child(3){text-align:right}.tx-subtotal{text-align:right;color:#334155}.tx-grand-total{text-align:right;font-size:16px}.pdf-import-box{border:1px solid #d8e2ef;border-radius:10px;background:#f8fbff;padding:12px;margin-bottom:12px}.pdf-import-box h3{margin:0 0 10px}.pdf-import-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px}.pdf-import-actions button{margin-top:0}.pdf-import-meta{margin:4px 0 8px;color:#475569;font-size:13px}.pdf-import-table td:nth-child(6),.pdf-import-table th:nth-child(6){text-align:right}.pdf-col-import{width:7%}.pdf-col-datum{width:12%}.pdf-col-typ{width:10%}.pdf-col-kategorie{width:16%}.pdf-col-posten{width:20%}.pdf-col-betrag{width:10%}.pdf-col-bemerkung{width:25%}.pdf-import-table td,.pdf-import-table th{white-space:normal}.pdf-import-table input,.pdf-import-table select{width:100%;min-width:90px;padding:6px 8px;margin:0}.pdf-import-row--invalid{background:#fff8e1}.pdf-import-warn{margin-left:4px;color:#e65100;font-size:1rem;vertical-align:middle;cursor:help}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-box{background:#fff;border-radius:8px;padding:24px 28px;min-width:380px;max-width:520px;width:100%;box-shadow:0 8px 32px #0003}.modal-box h3{margin:0 0 16px;font-size:1.1rem}.modal-form{display:grid;grid-template-columns:1fr;gap:10px}.modal-form label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:600;color:#555}.modal-form input,.modal-form select{padding:6px 8px;border:1px solid #ccc;border-radius:4px;font-size:.95rem}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.btn-primary{background:#1976d2;color:#fff;border:none;padding:7px 18px;border-radius:4px;cursor:pointer;font-weight:600}.btn-primary:hover{background:#1565c0}.tx-action-cell{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;position:relative;gap:2px;white-space:nowrap;overflow:visible;text-overflow:clip}.tx-file-inline{position:relative;display:flex;align-items:center}.tx-action-cell .btn-files,.tx-action-cell .btn-upload,.tx-action-cell .btn-edit,.tx-action-cell .btn-delete{min-width:72px;text-align:center;padding-left:6px;padding-right:6px;margin:0}.btn-edit{background:#e3f2fd;color:#1565c0;border:1px solid #90caf9;padding:3px 10px;min-width:86px;border-radius:4px;cursor:pointer;font-size:.82rem}.btn-edit:hover{background:#bbdefb}.btn-upload{background:#e8f5e9;color:#2e7d32;border:1px solid #a5d6a7;padding:3px 10px;min-width:72px;border-radius:4px;cursor:pointer;font-size:.82rem}.modal-files ul{list-style:none;margin:0;padding:0;display:grid;gap:6px}.modal-files li{display:flex;align-items:center;justify-content:space-between;gap:8px}.btn-file-delete{margin:0;background:#ffebee;color:#c62828;border:1px solid #ef9a9a;padding:2px 8px;min-width:72px;border-radius:4px;cursor:pointer;font-size:.8rem}.btn-file-delete:hover{background:#ffcdd2}.btn-upload:hover{background:#c8e6c9}.btn-upload:disabled{background:#dcedc8;color:#4e7d4f;cursor:wait}.btn-delete{background:#ffebee;color:#c62828;border:1px solid #ef9a9a;padding:3px 10px;min-width:78px;border-radius:4px;cursor:pointer;font-size:.82rem}.btn-delete:hover{background:#ffcdd2}@media (max-width: 1200px){.dashboard-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media (max-width: 760px){.dashboard-grid{grid-template-columns:1fr}.topbar,.toolbar{flex-direction:column;align-items:stretch}.top-actions{flex-wrap:wrap}}
