*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#f8fafc;color:#111827}.app{min-height:100vh;display:flex;flex-direction:column}.app-header{background:#1e293b;color:#fff;display:flex;align-items:center;gap:16px;height:52px;flex-shrink:0;flex-wrap:wrap;height:auto;min-height:52px;padding:8px 16px}.logo-img{height:32px;width:auto;object-fit:contain;flex-shrink:0}.tabs{display:flex;gap:4px}.tab{background:none;border:none;color:#94a3b8;padding:6px 14px;font-size:.9rem;cursor:pointer;border-radius:6px;transition:background .15s,color .15s}.tab:hover{background:#334155;color:#e2e8f0}.tab.active{background:#334155;color:#fff;font-weight:500}.logout-btn{margin-left:auto;background:none;border:1px solid #475569;color:#94a3b8;padding:5px 12px;border-radius:6px;font-size:.85rem;cursor:pointer}.logout-btn:hover{background:#334155;color:#e2e8f0}.app-main{flex:1;padding:24px 16px;max-width:1100px;width:100%;margin:0 auto;box-sizing:border-box}@media (min-width: 640px){.app-main{padding:32px 24px}}@media (max-width: 480px){.tabs{flex-wrap:wrap;gap:2px}.tab{padding:5px 10px;font-size:.82rem}.logout-btn{font-size:.78rem;padding:4px 8px}.btn-primary.btn-large{width:100%;text-align:center}.btn-secondary{padding:8px 12px;font-size:.85rem}}.btn-primary{background:#4f6ef7;color:#fff;border:none;padding:9px 20px;border-radius:7px;font-size:.95rem;font-weight:500;cursor:pointer;transition:background .15s}.btn-primary:hover:not(:disabled){background:#3b5cf6}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-primary.btn-large{padding:11px 28px;font-size:1rem}.btn-secondary{background:#fff;color:#374151;border:1px solid #d1d5db;padding:8px 16px;border-radius:7px;font-size:.9rem;font-weight:500;cursor:pointer;transition:background .15s}.btn-secondary:hover:not(:disabled){background:#f3f4f6}.btn-secondary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary.btn-small{padding:4px 10px;font-size:.82rem}.login-wrapper{min-height:100vh;background:#f1f5f9;display:flex;align-items:center;justify-content:center}.login-box{background:#fff;border-radius:12px;padding:40px 36px;width:100%;max-width:360px;box-shadow:0 4px 24px #00000014}.login-logo-img{display:block;margin:0 auto 28px;max-height:80px;max-width:220px;width:auto;object-fit:contain}.login-field{margin-bottom:16px;display:flex;flex-direction:column;gap:5px}.login-field label{font-size:.88rem;font-weight:500;color:#374151}.login-field input{padding:10px 12px;border:1px solid #d1d5db;border-radius:7px;font-size:.95rem;outline:none;transition:border-color .15s}.login-field input:focus{border-color:#4f6ef7}.login-error{background:#fee2e2;color:#991b1b;padding:8px 12px;border-radius:6px;font-size:.85rem;margin-bottom:12px}.login-btn{width:100%;background:#4f6ef7;color:#fff;border:none;padding:11px;border-radius:7px;font-size:1rem;font-weight:500;cursor:pointer;margin-top:4px;transition:background .15s}.login-btn:hover:not(:disabled){background:#3b5cf6}.login-btn:disabled{opacity:.6;cursor:not-allowed}.smtp-form{max-width:540px}.smtp-form h2{margin-top:0;font-size:1.25rem}.smtp-hint{color:#666;font-size:.9rem;margin-bottom:1.5rem}.form-row select,.form-row input[type=text],.form-row input[type=password],.form-row input[type=number],.form-row input:not([type=checkbox]){padding:8px 10px;border:1px solid #ccc;border-radius:6px;font-size:.95rem;outline:none;transition:border-color .15s}.port-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.port-hints{display:flex;gap:6px}.port-hints button{font-size:.8rem;padding:4px 8px;border:1px solid #ccc;border-radius:4px;background:#f5f5f5;cursor:pointer}.port-hints button:hover{background:#e8e8e8}.form-actions{display:flex;gap:10px;margin-top:1.5rem;flex-wrap:wrap}@media (max-width: 480px){.form-actions .btn-primary,.form-actions .btn-secondary{width:100%;text-align:center}.port-hints{flex-wrap:wrap}}.campaign-form{max-width:820px}.campaign-form h2{margin-top:0;font-size:1.25rem}.form-row input{padding:8px 10px;border:1px solid #ccc;border-radius:6px;font-size:.95rem;outline:none;transition:border-color .15s}.form-row input:focus{border-color:#4f6ef7}.email-list-input,.html-editor{margin-bottom:1.25rem}.count-badge{display:inline-block;background:#dbeafe;color:#1e40af;padding:2px 8px;border-radius:999px;font-size:.8rem;font-weight:600;margin-left:8px}textarea{width:100%;padding:10px;border:1px solid #ccc;border-radius:6px;font-size:.9rem;resize:vertical;box-sizing:border-box;outline:none;transition:border-color .15s}textarea:focus{border-color:#4f6ef7}.editor-layout{display:flex;gap:12px;flex-direction:column}@media (min-width: 640px){.editor-layout{flex-direction:row}}.editor-layout.single textarea{width:100%}.editor-layout.split textarea{flex:1}.preview-pane{flex:1;display:flex;flex-direction:column;border:1px solid #ccc;border-radius:6px;overflow:hidden}.preview-label{background:#f3f4f6;padding:4px 10px;font-size:.8rem;color:#555;border-bottom:1px solid #ccc}.preview-pane iframe{flex:1;border:none;width:100%;min-height:280px}.form-actions{margin-top:1.25rem;display:flex;flex-wrap:wrap;gap:8px}@media (max-width: 480px){.form-actions .btn-primary{width:100%}.input-header{flex-wrap:wrap}}.badge{display:inline-block;margin-top:.5rem;padding:6px 14px;border-radius:6px;font-size:.88rem;font-weight:500}.sending-dashboard{max-width:900px}.dashboard-header h2{margin:0;font-size:1.25rem}.progress-section{margin-bottom:1.25rem}.progress-bar{height:14px;background:#e5e7eb;border-radius:999px;overflow:hidden;display:flex}.progress-sent{background:#34d399;transition:width .3s ease}.progress-failed{background:#f87171;transition:width .3s ease}.progress-labels{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px;font-size:.85rem}.label-sent{color:#065f46;font-weight:600}.label-failed{color:#991b1b;font-weight:600}.label-remaining{color:#555}.label-total{color:#999}.email-table-wrap{overflow-x:auto;border:1px solid #e5e7eb;border-radius:8px}.email-table{width:100%;border-collapse:collapse;font-size:.88rem}.email-table thead tr{background:#f9fafb}.email-table th{text-align:left;padding:9px 12px;font-weight:600;color:#374151;border-bottom:1px solid #e5e7eb}.email-table td{padding:8px 12px;border-bottom:1px solid #f3f4f6;vertical-align:middle}.email-table tbody tr:last-child td{border-bottom:none}.row-failed{background:#fff7f7}.td-email{font-family:monospace;font-size:.85rem}.td-error{color:#991b1b;font-size:.82rem;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:.8rem;font-weight:600}.status-pending{background:#f3f4f6;color:#6b7280}.status-sending{background:#dbeafe;color:#1d4ed8}.status-sent{background:#d1fae5;color:#065f46}.status-failed{background:#fee2e2;color:#991b1b}.btn-retry{background:#fff;border:1px solid #f87171;color:#dc2626;padding:3px 10px;border-radius:5px;cursor:pointer;font-size:.82rem;font-weight:500}.btn-retry:hover{background:#fee2e2}@media (max-width: 600px){.email-table th:nth-child(3),.email-table td:nth-child(3){display:none}.email-table th,.email-table td{padding:8px;font-size:.82rem}.td-email{font-size:.78rem;word-break:break-all}.dashboard-header,.banner{flex-direction:column;align-items:flex-start;gap:8px}}.twilio-form,.sms-form,.sms-dashboard{max-width:680px}.twilio-form h3,.sms-form h3,.sms-dashboard h3{margin-top:0;font-size:1.1rem}.hint{color:#666;font-size:.88rem;margin-bottom:1.25rem}.field-hint{font-size:.78rem;color:#888;margin-top:3px;display:block}.form-row{margin-bottom:1rem;display:flex;flex-direction:column;gap:4px}.form-row label{font-weight:500;font-size:.9rem;color:#333}.form-row input,.phone-input textarea,.form-row textarea{padding:8px 10px;border:1px solid #ccc;border-radius:6px;font-size:.9rem;outline:none;transition:border-color .15s;width:100%;box-sizing:border-box}.form-row input:focus,.phone-input textarea:focus,.form-row textarea:focus{border-color:#4f6ef7}.phone-input{margin-bottom:1.25rem}.input-header{display:flex;align-items:center;gap:10px;margin-bottom:6px}.input-header label{font-weight:500;font-size:.9rem;color:#333;flex:1}.count-badge{display:inline-block;background:#dbeafe;color:#1e40af;padding:2px 8px;border-radius:999px;font-size:.8rem;font-weight:600;margin-left:6px}.char-count{font-size:.8rem;color:#888}.char-count.over{color:#dc2626;font-weight:600}.input-hint{font-size:.8rem;color:#888;margin:4px 0 0}.form-actions{margin-top:1.25rem}.badge{display:inline-block;margin-top:.75rem;padding:6px 14px;border-radius:6px;font-size:.88rem;font-weight:500}.badge-ok{background:#d1fae5;color:#065f46}.badge-error{background:#fee2e2;color:#991b1b}.dashboard-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.banner{padding:10px 16px;border-radius:8px;margin-bottom:1rem;font-weight:500;display:flex;align-items:center;gap:12px}.banner-ok{background:#d1fae5;color:#065f46}.banner-warn{background:#fef3c7;color:#92400e}.spinner-row{display:flex;align-items:center;gap:10px;color:#555;margin-bottom:1rem;font-size:.95rem}.spinner{width:18px;height:18px;border:3px solid #d1d5db;border-top-color:#4f6ef7;border-radius:50%;animation:spin .7s linear infinite;display:inline-block;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.btn-retry-all{background:none;border:1px solid #92400e;color:#92400e;padding:3px 10px;border-radius:5px;cursor:pointer;font-size:.85rem;font-weight:500}.btn-retry-all:hover{background:#fef3c7}.sms-page-divider{border:none;border-top:1px solid #e5e7eb;margin:2rem 0}@media (max-width: 480px){.form-actions .btn-primary,.form-actions .btn-secondary{width:100%;text-align:center}.dashboard-header,.banner{flex-direction:column;align-items:flex-start;gap:8px}.input-header{flex-wrap:wrap}}.faktura-tab{display:flex;flex-direction:column;gap:16px}.faktura-auth-box,.faktura-revolut-box{background:#fff;border-radius:10px;padding:16px 20px;box-shadow:0 2px 8px #0000000f;display:flex;flex-direction:column;gap:8px}.faktura-auth-header{display:flex;align-items:center;gap:10px}.faktura-auth-label{font-weight:600;font-size:.95rem;color:#1e293b}.faktura-auth-status{background:#dcfce7;color:#166534;font-size:.78rem;font-weight:600;padding:2px 8px;border-radius:99px}.faktura-auth-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.faktura-token-input{flex:1;min-width:200px;padding:8px 12px;border:1px solid #d1d5db;border-radius:7px;font-size:.9rem;outline:none}.faktura-token-input:focus{border-color:#4f6ef7}.faktura-notice{background:#fef9c3;color:#713f12;padding:12px 16px;border-radius:8px;font-size:.9rem}.faktura-subtabs{display:flex;gap:4px;border-bottom:2px solid #e2e8f0;padding-bottom:0}.faktura-subtab{background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;padding:8px 18px;font-size:.9rem;cursor:pointer;color:#64748b;transition:color .15s,border-color .15s}.faktura-subtab:hover{color:#1e293b}.faktura-subtab.active{color:#4f6ef7;border-bottom-color:#4f6ef7;font-weight:600}.faktura-section{background:#fff;border-radius:10px;padding:20px 24px;box-shadow:0 2px 8px #0000000f;display:flex;flex-direction:column;gap:14px}.faktura-section h3{margin:0;font-size:1.1rem;color:#1e293b}.faktura-field{display:flex;flex-direction:column;gap:4px}.faktura-field label{font-size:.85rem;font-weight:500;color:#374151}.faktura-field input,.faktura-field select{padding:8px 12px;border:1px solid #d1d5db;border-radius:7px;font-size:.9rem;outline:none}.faktura-field input:focus,.faktura-field select:focus{border-color:#4f6ef7}.faktura-row{display:flex;gap:12px;flex-wrap:wrap}.faktura-row .faktura-field{flex:1;min-width:140px}.faktura-error{background:#fee2e2;color:#991b1b;padding:8px 12px;border-radius:6px;font-size:.85rem}.faktura-empty,.faktura-loading{color:#64748b;font-size:.9rem}.results-summary{display:flex;justify-content:space-between;font-size:.9rem;color:#374151}.results-total{font-weight:600}.results-table-wrap,.overdue-table-wrap{overflow-x:auto}.results-table{width:100%;border-collapse:collapse;font-size:.88rem}.results-table th{text-align:left;padding:8px 12px;background:#f8fafc;color:#374151;font-weight:600;border-bottom:2px solid #e2e8f0}.results-table td{padding:8px 12px;border-bottom:1px solid #f1f5f9;vertical-align:top}.results-table tr.row-ok:hover td{background:#f8fafc}.results-table tr.row-failed td{background:#fff7f7}.status-badge{display:inline-block;padding:2px 8px;border-radius:99px;font-size:.78rem;font-weight:600;background:#dcfce7;color:#166534}.status-badge.status-fakturafehlede,.status-badge.status-remindernotsended{background:#fee2e2;color:#991b1b}.result-message{font-size:.75rem;color:#991b1b;margin-top:2px}.pay-link{color:#4f6ef7;text-decoration:none;font-size:.85rem}.pay-link:hover{text-decoration:underline}.no-link{color:#9ca3af}.reminder-results{display:flex;flex-direction:column;gap:6px;margin-top:8px}.reminder-ok{background:#dcfce7;color:#166534;padding:6px 10px;border-radius:6px;font-size:.85rem}.reminder-fail{background:#fee2e2;color:#991b1b;padding:6px 10px;border-radius:6px;font-size:.85rem}.customer-card{border:1px solid #e2e8f0;border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:10px}.customer-card-header{display:flex;justify-content:space-between;align-items:center}.customer-card-header h4{margin:0;font-size:.95rem;color:#1e293b}.product-table{width:100%;border-collapse:collapse;font-size:.85rem}.product-table th{text-align:left;padding:4px 8px;color:#374151;font-weight:600;border-bottom:1px solid #e2e8f0}.product-table td{padding:4px 8px}.product-table input,.product-table select{width:100%;padding:5px 8px;border:1px solid #d1d5db;border-radius:5px;font-size:.85rem;outline:none}.product-table input:focus,.product-table select:focus{border-color:#4f6ef7}.faktura-checkboxes{display:flex;gap:20px;font-size:.9rem;color:#374151}.faktura-checkboxes label{display:flex;align-items:center;gap:6px;cursor:pointer}@media (max-width: 480px){.faktura-auth-row{flex-direction:column;align-items:stretch}.faktura-token-input{min-width:unset}.faktura-subtab{padding:6px 12px;font-size:.82rem}}
