: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}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}.error{margin:4px 0;color:#b00020;font-size:14px}.panel-error{margin:0}.hint{margin:4px 0 12px;color:#667085;font-size:.85rem}.warning{margin:0 0 12px;padding:8px 12px 8px 28px;color:var(--fx-yellow-fg);background:var(--fx-yellow-bg);border:1px solid #ffe082;border-radius:8px;font-size:.85rem}.negativ{color:var(--fx-red-fg);font-weight:700}.pos-text{white-space:pre-line;line-height:1.5}.num{text-align:right}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}.btn-secondary{background:#e8eef9;color:#1d4e9f}.btn-secondary:hover:enabled{background:#d5e1f5;color:#163f80}.btn-secondary:disabled{cursor:not-allowed}.btn-danger{background:#c0392b}.btn-danger:disabled{background:#ddc4c0;cursor:not-allowed}.btn-logout{margin-left:auto;margin-top:0;padding:6px 14px;font-size:13px}.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-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}.btn-zugang{margin-top:0;padding:2px 9px;font-size:14px;line-height:1.4;background:#e8eef9;color:#1d4e9f}.btn-zugang:hover:enabled{background:#d5e1f5;color:#163f80}.btn-close{margin-top:0;padding:0 10px;font-size:18px;line-height:1.6;background:transparent;color:#46536a;border:none}.btn-close:hover:enabled{background:#e2e8f4;color:#1d4e9f}.zeilen-aktionen{display:flex;gap:6px;justify-content:flex-end}.zeilen-aktionen button{margin-top:0;padding:3px 10px;font-size:.82rem;min-width:86px;border-radius:4px}.zeilen-aktionen .btn{background:#e8eef9;color:#1d4e9f;border:1px solid #1d4e9f}.zeilen-aktionen .btn:hover:enabled{background:#d5e1f5;color:#163f80}.zeilen-aktionen .btn-secondary{background:#f4f7fc;color:#1d4e9f;border:1px solid #b7c7e2}.zeilen-aktionen .btn-secondary:hover:enabled{background:#e8eef9;color:#163f80}.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}.app{min-height:auto;padding:16px;display:grid;gap:12px;width:min(1500px,calc(100vw - 32px));margin:0 auto}.app-header{display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(180deg,#fefefe 0%,#f6f8fc 100%);border-radius:10px;padding:12px 16px;box-shadow:0 4px 14px #0000000f}.app-header h1{margin:0;font-size:20px}.brand{display:flex;align-items:center;gap:12px}.brand-logo{width:50px;height:50px;display:block}.brand-title{display:inline-flex;align-items:center;gap:6px}.card .brand-title{justify-content:center;width:100%}.panel{background:#fff;border-radius:10px;padding:14px;box-shadow:0 4px 14px #0000000f;border:1px solid #dbe5f2}.panel-head-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.panel-head-actions{display:flex;gap:10px;align-items:center}.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}.tile{border:1px solid #d8dfea;border-radius:8px;padding:12px;background:#f8faff}.customer-address{margin:4px 0 0;color:#475569;line-height:1.5}@media (max-width: 1200px){.dashboard-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}@media (max-width: 760px){.dashboard-grid{grid-template-columns:1fr}}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tabs button{margin:0;background:#6b7f9f;font-weight:600;padding:6px 14px;font-size:13px;white-space:nowrap}.tabs button.active{background:#1d4e9f}.tabs .tab-icon{display:block;height:16px;width:16px;filter:brightness(0) invert(1)}.subtabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:4px}.subtabs button{margin:0;background:#d8e2f2;color:#1d4e9f;font-weight:600;font-size:.82rem;padding:6px 12px}.subtabs button:hover:enabled{background:#c3d3ec}.subtabs button.active{background:#1d4e9f;color:#fff}.customer-switcher{margin-left:16px;max-width:260px;padding:6px 10px;border:1px solid #cdd6e4;border-radius:8px;background:#fff;font-size:14px;text-overflow:ellipsis}.tenant-switcher{margin-left:16px;max-width:220px;padding:6px 10px;border:1px solid #cdd6e4;border-radius:8px;background:#fff;font-size:14px;text-overflow:ellipsis}.page-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0}.page-nav label{display:flex;align-items:center;gap:8px;font-size:13px;color:#46536a}.page-nav select{padding:4px 8px;border:1px solid #cdd6e4;border-radius:6px;background:#fff}.page-nav-buttons{display:flex;align-items:center;gap:10px}.page-nav-status{font-size:13px;color:#46536a;min-width:180px;text-align:center}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}.table-scroll{overflow-x:auto}.row-clickable{cursor:pointer}.row-clickable:hover{background:#eaf1ff}.row-active{background:#dbe7fb;font-weight:600}.expand-row>td{background:#f6f8fc;padding:12px 16px 16px;border-left:3px solid #1d4e9f}.expand-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.expand-table{background:#fff}.grid-two{display:grid;grid-template-columns:repeat(2,minmax(200px,1fr));gap:12px}.grid-two label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#46536a}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin:12px 0}.form-grid label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#46536a}.form-grid label.checkbox-label{flex-direction:row;align-items:center;gap:8px;align-self:end;padding-bottom:8px}.form-grid label.checkbox-label input{width:auto}.form-actions{display:flex;gap:10px}.invoice-filters{display:flex;gap:16px;margin-bottom:12px;flex-wrap:wrap}.invoice-filters label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:600;color:#555}.invoice-filters button{align-self:flex-end;margin-top:0;padding:8px 14px}.invoice-filters .badge{align-self:flex-end;margin-bottom:7px}.payment-form{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:12px}.payment-form label{display:flex;flex-direction:column;gap:4px;font-size:.85rem;font-weight:600;color:#555}.payment-form button{margin:0}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.45);display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}.modal-box{background:#fff;border-radius:8px;padding:24px 28px;min-width:380px;max-width:560px;width:100%;max-height:90vh;overflow-y:auto;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}.badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}.badge-offen{background:var(--fx-orange-bg);color:var(--fx-orange-fg)}.badge-teilbezahlt{background:var(--fx-blue-bg);color:var(--fx-blue-fg)}.badge-bezahlt{background:var(--fx-green-bg);color:var(--fx-green-fg)}.badge-ausgebucht{background:#eceff1;color:#546e7a}.quelle-badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}.quelle-badge--cl_import{background:var(--fx-purple-bg);color:var(--fx-purple-fg)}.quelle-badge--rechnung{background:var(--fx-blue-bg);color:var(--fx-blue-fg)}.quelle-badge--zahlung{background:var(--fx-green-bg);color:var(--fx-green-fg)}.quelle-badge--kreditorenrechnung{background:var(--fx-orange-bg);color:var(--fx-orange-fg)}.quelle-badge--kreditorenzahlung{background:var(--fx-yellow-bg);color:var(--fx-yellow-fg)}.quelle-badge--vortrag{background:#eceff1;color:#546e7a}.quelle-badge--manuell{background:#f1f3f7;color:#46536a}.invoice-detail{display:grid;gap:16px}.invoice-detail-actions button{margin:0}.invoice-detail-head{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:12px}.invoice-detail-head h2{margin:0 0 8px}.invoice-detail-head p{margin:2px 0}.invoice-detail-address{text-align:right;color:#475569}.invoice-detail-address p{margin:2px 0}.stock-warnings{margin:0 0 12px;padding-left:20px;color:var(--fx-orange-fg);font-size:.85rem}.invoice-summary{display:grid;gap:4px;max-width:320px;margin-left:auto}.invoice-summary>div{display:flex;justify-content:space-between;padding:4px 8px}.invoice-summary-total{font-weight:700;font-size:16px;border-top:1px solid #dbe5f2;padding-top:8px!important}.invoice-rest{font-weight:700;margin:8px 0}.artikel-picker{position:relative;margin-bottom:12px;max-width:480px}.artikel-picker input{width:100%}.artikel-picker-dropdown{position:absolute;top:calc(100% + 2px);left:0;right:0;z-index:20;list-style:none;margin:0;padding:4px;background:#fff;border:1px solid #d8e2ef;border-radius:8px;box-shadow:0 8px 18px #0000001f;max-height:260px;overflow-y:auto}.artikel-picker-dropdown li{list-style:none}.artikel-picker-dropdown button{display:block;width:100%;margin:0;padding:6px 8px;border-radius:6px;background:transparent;color:#1f2a37;text-align:left;font-size:.85rem;white-space:normal;cursor:pointer}.artikel-picker-dropdown button:hover{background:#eaf1ff}.artikel-picker-empty{padding:6px 8px;color:#667085;font-size:.85rem}.neue-rechnung-kopf{max-width:240px;margin-bottom:12px}.rabatt-zeile td,.rabatt-zeile input{background:#f1f3f7;color:#5a6577;font-style:italic}.rabatt-platzhalter{display:inline-block;width:100%;text-align:center;color:#9aa4b5}.bestand-value{display:inline-block}.bestand-edit{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.bestand-edit input{width:80px;padding:4px 6px}.bestand-edit button{margin:0;padding:4px 8px;font-size:.8rem}td.bestand-cell-editing{overflow:visible;white-space:normal}.bestand-mit-zugang{display:inline-flex;align-items:center;gap:8px}.bilanz-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;align-items:start}@media (max-width: 800px){.bilanz-grid{grid-template-columns:1fr}}.gruppen-titel{font-weight:700;color:#1d4e9f;padding-top:10px}.journal-zeilen td{border-top:none;padding-top:2px;padding-bottom:2px;background:#f8faff}.journal-zeile-row{display:grid;grid-template-columns:1fr 120px 120px;gap:8px;padding-left:24px;color:#5a6577;font-size:.85rem}.journal-zeile-konto{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kontoblatt-saldozeile td{background:#eef2f8}.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 0%,#f6f8fc 100%);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}.row-form{display:grid;grid-template-columns:repeat(8,minmax(100px,1fr));gap:8px;margin-bottom:10px}.row-form button{margin:0}.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:enabled,.btn-files:focus-visible{background:#163f80;color:#fff;border-color:#163f80}.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;background:transparent;border:none;width:100%;margin:0;text-align:left;cursor:pointer;color:#1f2a37;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-file-menu-item:hover,.tx-file-menu-item:focus-visible{background:#163f80;color:#fff}.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}.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-add-row{background:#e8f5e9;color:#2e7d32;border:1px solid #a5d6a7;padding:3px 10px;min-width:86px;border-radius:4px;cursor:pointer;font-size:.82rem}.btn-add-row:hover{background:#c8e6c9}.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}@media (max-width: 760px){.topbar,.toolbar{flex-direction:column;align-items:stretch}.top-actions{flex-wrap:wrap}}
