:root{--bg:#eef2f7;--card:#fff;--line:#d8dee8;--text:#111827;--muted:#6b7280;--blue:#2563eb;--red:#b91c1c;--green:#15803d;--orange:#b45309;--violet:#7c3aed;}
*{box-sizing:border-box} body{margin:0;background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--text)}
.wrap{max-width:1180px;margin:0 auto;padding:28px 20px 50px}.top{display:flex;justify-content:space-between;gap:16px;align-items:start}.h1{font-size:34px;font-weight:800}.sub{color:var(--muted);font-size:20px;margin-top:6px}.admin{border:1px solid var(--line);padding:8px 12px;background:#f8fafc;color:var(--green)}
.card{background:var(--card);border:1px solid var(--line);margin:22px 0;padding:24px;box-shadow:0 1px 2px #00000008}h2{margin:0 0 18px;font-size:26px}.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.field label{display:block;font-weight:700;margin-bottom:8px;font-size:18px}.field input,.field select{width:100%;height:48px;border:1px solid var(--line);font-size:16px;padding:0 14px;background:#fff}.btn{border:0;padding:14px 20px;font-weight:800;color:#fff;background:#64748b;cursor:pointer}.btn.primary{background:var(--blue)}.btn.red{background:var(--red)}.btn:disabled{opacity:.55}.pill{display:inline-block;border:1px solid var(--line);background:#f8fafc;padding:7px 10px;margin:4px 4px 4px 0;font-size:16px}.ok{color:var(--green);font-weight:700}.warn{color:var(--orange);font-weight:800}.bad{color:var(--red);font-weight:800}.violet{color:var(--violet);font-weight:800}.muted{color:var(--muted)}
.notice{line-height:1.45;color:var(--muted);font-size:18px}.sectionTitle{font-size:22px;font-weight:800;margin:20px 0 10px}.tableWrap{overflow-x:auto;border:1px solid var(--line);background:#fff;margin-top:12px}.table{width:100%;border-collapse:collapse;min-width:820px}.table th,.table td{border-bottom:1px solid var(--line);padding:11px 10px;text-align:left;vertical-align:top}.table th{background:#f8fafc;font-size:14px}.table td{font-size:14px}.mainTable{min-width:760px}.mainTable .note{max-width:300px;color:var(--muted);font-size:13px}.compact td{font-size:13px}.hidden{display:none!important} details{border:1px solid var(--line);background:#fff;margin-top:16px;padding:12px} summary{font-weight:800;cursor:pointer}.tech{white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f8fafc;border:1px solid var(--line);padding:14px;max-height:280px;overflow:auto;font-size:13px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.tab{background:#fff;border:1px solid var(--line);padding:10px 12px;font-weight:800}.tab.active{background:#1f2937;color:#fff}.small{font-size:12px;color:var(--muted)}.invoiceLink{color:var(--blue);font-weight:800;text-decoration:none}.invoiceLink:hover{text-decoration:underline}.progressBox{border:1px solid var(--line);background:#f8fafc;padding:12px;margin-top:12px;color:var(--muted);line-height:1.45}.exportGrid{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.exportItem{border:1px solid var(--line);background:#fff;padding:10px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.exportLabel{font-weight:800;color:var(--text)}.exportBtn{background:#0f766e;color:#fff;border:0;padding:10px 12px;font-weight:800;cursor:pointer}.exportBtn.download{background:var(--blue)}.exportBtn:disabled{opacity:.55}.exportBtn.pdfButtonLoading{position:relative;overflow:hidden;background:#1e40af!important;color:#fff!important;pointer-events:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}.exportBtn.pdfButtonLoading::before{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--pdf-progress,8%);background:linear-gradient(90deg,rgba(255,255,255,.10),rgba(34,197,94,.45));transition:width .35s ease}.pdfButtonText{position:relative;z-index:1;display:inline-flex;align-items:center;gap:6px}.pdfButtonText::after{content:"";width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.86);box-shadow:12px 0 0 rgba(255,255,255,.55),24px 0 0 rgba(255,255,255,.28);animation:pdfDots 1.1s infinite ease-in-out}@keyframes pdfDots{0%,100%{opacity:.45;transform:translateY(0)}50%{opacity:1;transform:translateY(-1px)}}.exportTitle{font-weight:800;color:var(--text);margin-bottom:6px}.pdfPreviewBox{margin-top:12px;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px}.pdfPreviewTitle{font-weight:800;margin-bottom:8px}.pdfPreviewFrame{width:100%;height:72vh;min-height:420px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.pdfPreviewActions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.pdfWarn{color:var(--orange);font-weight:700}.uploadBox{border:2px dashed var(--line);background:#f8fafc;padding:24px;margin-top:12px}.manualFilePicker{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#fff;border:2px solid var(--line);padding:18px;min-height:86px}.fileInputHidden{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.filePickerButton{display:inline-flex!important;align-items:center;justify-content:center;min-height:64px;min-width:260px;background:var(--blue);color:#fff!important;font-size:22px!important;font-weight:900!important;padding:0 28px;border-radius:12px;cursor:pointer;margin:0!important;box-shadow:0 1px 2px #00000020}.filePickerButton:active{transform:translateY(1px)}.filePickerName{font-size:22px;font-weight:800;color:var(--text);word-break:break-word}.filePickerHint{margin-top:10px;color:var(--muted);font-size:15px;line-height:1.35}.scanExcerpt{max-width:360px;color:var(--muted);font-size:13px;line-height:1.35}.scanFileName{font-weight:800;color:var(--text)}

.loginShell{min-height:50vh;display:flex;align-items:center;justify-content:center;padding:10px 0 4px}.loginCardInner{width:100%;max-width:460px!important;padding:26px 22px 20px!important;border-radius:28px;border:1px solid rgba(37,99,235,.16);background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);box-shadow:0 18px 48px rgba(15,23,42,.12),0 2px 8px rgba(37,99,235,.08)}.loginBrand{text-align:center;margin-bottom:20px}.loginBrandTitle{font-size:34px;font-weight:900;line-height:1.08;letter-spacing:-.02em}.loginBrandSub{font-size:17px;color:var(--muted);margin-top:8px}.loginBrandVersion{font-size:18px;font-weight:800;color:var(--muted);margin-top:10px}.loginFormStack{display:flex;flex-direction:column;gap:14px;align-items:stretch}.pinInput{height:64px!important;text-align:center;font-size:28px!important;letter-spacing:1px;border:2px solid #c9d5eb!important;border-radius:18px;box-shadow:inset 0 1px 2px rgba(0,0,0,.03)}.loginFormStack .btn{height:56px;border-radius:18px;font-size:18px;box-shadow:0 8px 18px rgba(37,99,235,.2)}.loginMsgBig{font-size:17px;line-height:1.35;margin-top:14px;text-align:center}.manualProgressPanel{border:1px solid var(--line);background:#f8fafc;padding:14px;margin-top:14px}.manualProgressPanel.topManualProgress{margin-top:0;margin-bottom:16px;border-width:2px;background:#eff6ff}.manualProgressTop{display:flex;justify-content:space-between;gap:12px;align-items:center;font-weight:900;color:var(--text)}.manualProgressShell{height:18px;border:1px solid var(--line);background:#fff;margin-top:10px;overflow:hidden}.manualProgressFill{height:100%;width:0%;background:var(--blue);transition:width .25s ease}.manualProgressText{margin-top:8px;color:var(--muted);line-height:1.4}.importProgressPanel{border:1px solid var(--line);background:#f8fafc;padding:14px;margin-top:14px}.importProgressTop{display:flex;justify-content:space-between;gap:12px;align-items:center;font-weight:900;color:var(--text)}.importProgressShell{height:18px;border:1px solid var(--line);background:#fff;margin-top:10px;overflow:hidden}.importProgressFill{height:100%;width:0%;background:var(--blue);transition:width .25s ease}.importProgressText{margin-top:8px;color:var(--muted);line-height:1.4}.manualFilePicker{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#fff;border:2px solid var(--line);padding:18px;min-height:86px}.fileInputHidden,.manualFileInputNative{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.filePickerButton,.manualFileButton{display:inline-flex!important;align-items:center;justify-content:center;min-height:64px;min-width:260px;background:var(--blue);color:#fff!important;font-size:22px!important;font-weight:900!important;padding:0 28px;border-radius:12px;cursor:pointer;margin:0!important;box-shadow:0 1px 2px #00000020}.filePickerName,.manualFileName{font-size:22px;font-weight:800;color:var(--text);word-break:break-word}.filePickerHint,.scanHint{margin-top:10px;color:var(--muted);font-size:15px;line-height:1.35}.scanExcerpt{max-width:360px;color:var(--muted);font-size:13px;line-height:1.35}.scanFileName{font-weight:800;color:var(--text)}
.topRight{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.headerVersion{font-size:16px;font-weight:800;color:var(--muted);margin-top:6px}.headerLogout{padding:10px 14px!important}.manualArchiveBox{margin-top:12px}
@media(max-width:760px){.manualProgressPanel.topManualProgress{position:sticky;top:8px;z-index:20;box-shadow:0 4px 14px #00000018}.wrap{width:100%;max-width:100%;margin:0 auto;padding:18px 16px 54px}.h1{font-size:28px;text-align:center;line-height:1.15}.sub{font-size:16px;text-align:center}.top{display:block;text-align:center}.topRight{justify-content:center;margin-top:12px}.admin{display:inline-block;text-align:center}.headerVersion{text-align:center}.headerLogout{width:100%;max-width:520px;margin:8px auto 0!important}.grid{grid-template-columns:1fr}.card{width:100%;max-width:640px;margin:18px auto;padding:18px;text-align:center}.card h2{text-align:center}.notice{text-align:center}.row{justify-content:center}.btn{width:100%;max-width:520px;margin:5px auto}.tableWrap,.tableWrap *{text-align:left}.table th,.table td{padding:9px 8px}.pill{font-size:14px}.hideMobile{display:none}.uploadBox{width:100%;max-width:560px;margin:14px auto 0;padding:18px;text-align:center}.manualFileField label{text-align:center}.manualFilePicker{display:block;width:100%;max-width:480px;margin:0 auto;padding:14px;text-align:center}.filePickerButton{width:100%;max-width:420px;min-width:0;font-size:22px!important;margin-left:auto!important;margin-right:auto!important}.filePickerName{display:block;margin-top:12px;font-size:19px;text-align:center}.filePickerHint,.scanHint{text-align:center}.manualProgressPanel{max-width:560px;margin-left:auto;margin-right:auto}.progressBox{text-align:left}.loginBrand,.loginCardInner{text-align:center}.loginCardInner{max-width:430px!important;padding:24px 18px 18px!important;border-radius:24px}.loginBrandTitle{font-size:30px}.loginBrandSub{font-size:16px}.loginBrandVersion{font-size:18px}.loginFormStack .btn{max-width:none;width:100%;margin:0 auto}.pinInput{font-size:24px!important}}

/* V1.98 mobile centering and manual scan run-list layout */
@media(max-width:760px){
  html,body{width:100%;overflow-x:hidden;text-align:center;}
  .wrap{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;max-width:100%;padding-left:14px;padding-right:14px;}
  .top{width:100%;max-width:640px;margin-left:auto;margin-right:auto;text-align:center;}
  #app{width:100%;display:flex;flex-direction:column;align-items:center;}
  #app.hidden{display:none!important;}
  #app>.card{width:100%;max-width:640px;margin-left:auto;margin-right:auto;}
  .card>*{max-width:100%;}
  .uploadBox,.manualFileField,.manualFilePicker{margin-left:auto!important;margin-right:auto!important;}
  .manualFileField{width:100%;max-width:560px;}
  .manualFilePicker{justify-content:center;}
  .manualProgressPanel.topManualProgress{left:14px;right:14px;}
  #manualScanResult{width:100%;margin-left:auto;margin-right:auto;text-align:left;}
  #manualScanResult .sectionTitle{text-align:center;}
  .manualArchiveBox,.progressBox{width:100%;max-width:640px;margin-left:auto;margin-right:auto;}
}


/* V2.00 iPhone post-login viewport centering fix
   The login screen was already centered. After login, wide result/archive tables can widen
   the document and make the app column look shifted left in Safari. These rules anchor
   the logged-in app to the visible viewport, while tables remain horizontally scrollable. */
@media(max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden;}
  .wrap{width:100vw!important;max-width:100vw!important;margin:0!important;padding-left:14px!important;padding-right:14px!important;align-items:center!important;}
  .top{width:calc(100vw - 28px)!important;max-width:640px!important;margin-left:auto!important;margin-right:auto!important;}
  #app{width:100vw!important;max-width:100vw!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;display:flex;flex-direction:column;align-items:center!important;justify-content:flex-start;overflow-x:hidden;}
  #app.hidden{display:none!important;}
  #app>.card{width:calc(100vw - 28px)!important;max-width:640px!important;margin-left:auto!important;margin-right:auto!important;align-self:center!important;}
  #app .card,#app .uploadBox,#app .manualFileField,#app .manualFilePicker,#app .manualProgressPanel,#app .progressBox,#app #manualScanResult,#app #results{max-width:100%!important;}
  #app .uploadBox{width:100%!important;margin-left:auto!important;margin-right:auto!important;}
  #app .manualFilePicker{width:100%!important;}
  #app .tableWrap{width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch;text-align:left!important;}
  #app .table{width:max-content;min-width:760px;}
  #app .tableWrap *{text-align:left;}
}



/* V2.00 login design polish: compact protected-area login, no image assets */
.loginShell{
  min-height:clamp(420px,58vh,680px);
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:34px 0 18px;
  position:relative;
}
.loginShell::before{
  content:"";
  position:absolute;
  inset:8px 0 0;
  border-radius:34px;
  background:
    radial-gradient(circle at 50% 0%,rgba(37,99,235,.13),transparent 44%),
    linear-gradient(180deg,rgba(255,255,255,.72),rgba(241,245,249,.40));
  pointer-events:none;
}
.loginCardInner{
  position:relative;
  width:min(440px,100%)!important;
  max-width:440px!important;
  margin:0 auto!important;
  padding:0!important;
  border:1px solid rgba(148,163,184,.34)!important;
  border-radius:28px!important;
  background:rgba(255,255,255,.92)!important;
  box-shadow:0 22px 60px rgba(15,23,42,.16),0 2px 10px rgba(15,23,42,.06)!important;
  overflow:hidden;
  backdrop-filter:blur(10px);
}
.loginCardInner::before{
  content:"";
  display:block;
  height:5px;
  background:linear-gradient(90deg,#2563eb,#60a5fa,#2563eb);
}
.loginBrand{
  margin:0!important;
  padding:26px 26px 14px;
  text-align:center;
}
.loginBrandTitle{
  font-size:25px!important;
  line-height:1.12!important;
  font-weight:900!important;
  letter-spacing:-.025em;
  color:var(--text);
}
.loginBrandSub{
  margin-top:8px!important;
  font-size:15px!important;
  color:var(--muted)!important;
}
.loginBrandVersion{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:12px!important;
  padding:6px 11px;
  border:1px solid rgba(148,163,184,.36);
  border-radius:999px;
  background:#f8fafc;
  font-size:13px!important;
  font-weight:900!important;
  color:#475569!important;
}
.loginCardInner h2{
  display:none!important;
}
.loginFormStack{
  display:flex!important;
  flex-direction:column!important;
  gap:13px!important;
  margin:0 22px 22px!important;
  padding:16px!important;
  border:1px solid rgba(203,213,225,.80);
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.pinInput{
  width:100%!important;
  height:62px!important;
  border:2px solid #cbd5e1!important;
  border-radius:18px!important;
  background:#fff!important;
  text-align:center!important;
  font-size:26px!important;
  font-weight:700!important;
  letter-spacing:.04em!important;
  color:var(--text)!important;
  outline:none!important;
  box-shadow:0 1px 2px rgba(15,23,42,.04)!important;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.pinInput::placeholder{
  color:#94a3b8!important;
  font-weight:600!important;
  letter-spacing:0!important;
}
.pinInput:focus{
  border-color:#2563eb!important;
  background:#fff!important;
  box-shadow:0 0 0 4px rgba(37,99,235,.16),0 1px 2px rgba(15,23,42,.06)!important;
}
.loginFormStack .btn.primary{
  width:100%!important;
  height:58px!important;
  margin:0!important;
  border-radius:18px!important;
  background:linear-gradient(135deg,#2563eb,#1d4ed8)!important;
  box-shadow:0 12px 24px rgba(37,99,235,.28)!important;
  font-size:17px!important;
  font-weight:900!important;
}
.loginFormStack .btn.primary:active{
  transform:translateY(1px);
}
.loginMsgBig{
  min-height:22px;
  margin:0 24px 22px!important;
  text-align:center!important;
  font-size:14px!important;
  line-height:1.38!important;
}
@media(max-width:760px){
  .loginShell{min-height:calc(100svh - 310px);padding:24px 0 12px;}
  .loginShell::before{inset:2px -8px 0;border-radius:30px;}
  .loginCardInner{width:min(100%,430px)!important;border-radius:26px!important;}
  .loginBrand{padding:24px 20px 12px;}
  .loginBrandTitle{font-size:30px!important;line-height:1.06!important;}
  .loginBrandSub{font-size:16px!important;}
  .loginBrandVersion{font-size:15px!important;}
  .loginFormStack{margin:0 14px 18px!important;padding:14px!important;border-radius:20px;}
  .pinInput{height:66px!important;font-size:27px!important;}
  .loginFormStack .btn.primary{height:60px!important;font-size:18px!important;}
  .loginMsgBig{margin:0 18px 18px!important;font-size:15px!important;}
}



/* V2.01: Reload-sichere iPhone-Zentrierung nach Login */
html,body{max-width:100%;overflow-x:hidden;}
@media(max-width:760px){
  html,body{
    width:100vw!important;
    max-width:100vw!important;
    margin:0!important;
    overflow-x:hidden!important;
    text-align:center;
  }
  body{position:relative!important;left:0!important;right:0!important;}
  .wrap{
    width:100vw!important;
    max-width:100vw!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:14px!important;
    padding-right:14px!important;
    overflow-x:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
  }
  .top,.loginShell,#app{
    width:calc(100vw - 28px)!important;
    max-width:640px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  #app{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    overflow-x:visible!important;
  }
  #app.hidden{display:none!important;}
  #app>.card{
    width:100%!important;
    max-width:640px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    align-self:center!important;
    overflow:hidden!important;
  }
  #app .uploadBox,
  #app .manualFileField,
  #app .manualFilePicker,
  #app .manualProgressPanel,
  #app .progressBox,
  #app #manualScanResult,
  #app #results{
    width:100%!important;
    max-width:100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  #app .tableWrap{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch;
    margin-left:auto!important;
    margin-right:auto!important;
    text-align:left!important;
  }
  #app .table{max-width:none!important;table-layout:auto;}
  #app .tableWrap *{text-align:left!important;}
  .manualProgressPanel.topManualProgress{left:auto!important;right:auto!important;}
}



/* V2.07: nur Button-Text größer, keine zusätzlichen Abstände/Höhen */
.btn{font-size:19px!important;}
.exportBtn{font-size:18px!important;}
.filePickerButton,.manualFileButton{font-size:27px!important;}
.uploadBox .row .btn{font-size:22px!important;}
.headerLogout{font-size:18px!important;}
.table .btn,.table button{font-size:16px!important;}
@media(max-width:760px){
  .btn{font-size:20px!important;}
  .uploadBox .row .btn{font-size:24px!important;}
  .filePickerButton,.manualFileButton{font-size:29px!important;}
  .exportBtn{font-size:19px!important;}
  .table .btn,.table button{font-size:16px!important;}
}


/* V2.08: iPhone-scroll optimieren, Prüffall-Hinweise, dezenter Header-Logout */
html,body{-webkit-overflow-scrolling:touch;overscroll-behavior-y:auto;touch-action:pan-y;}
.tableWrap,.tech,.progressBox,.manualArchiveBox{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;}
.headerLogout{font-size:14px!important;padding:7px 10px!important;min-height:0!important;line-height:1.1!important;border-radius:10px!important;box-shadow:none!important;}
.reviewRequestTop{border:2px solid #f59e0b;background:#fffbeb;color:#92400e;border-radius:14px;padding:14px 16px;margin:12px auto;text-align:left;font-size:17px;line-height:1.35;max-width:980px}
.reviewRequestTop b{color:#78350f}.reviewRequestBox{margin-top:8px;border-left:5px solid #f59e0b;background:#fffbeb;color:#92400e;padding:9px 10px;border-radius:10px;font-size:15px;line-height:1.35;font-weight:800}
.manualExportRefresh{margin-top:10px;display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.manualExportRefresh .exportBtn{font-size:16px!important;padding:9px 12px!important}
@media(max-width:760px){.manualProgressPanel.topManualProgress{position:relative!important;top:auto!important;z-index:auto!important;box-shadow:none!important}.headerLogout{width:auto!important;max-width:170px!important;margin:6px auto 0!important;font-size:13px!important;padding:7px 10px!important}.reviewRequestTop{font-size:16px;text-align:center}.reviewRequestBox{font-size:14px;text-align:left}.tableWrap{max-width:100%;overflow-x:auto}.manualExportRefresh .exportBtn{width:100%;max-width:420px}}



/* V2.10: Mehrfachfoto-Dublettenlogik korrigiert; Belege aus demselben Foto zählen einzeln */
.btn.deleteBtn,.table .btn.deleteBtn,.table button.deleteBtn{font-size:13px!important;padding:6px 9px!important;min-height:0!important;line-height:1.1!important;border-radius:8px!important;width:auto!important;max-width:none!important;margin:0!important;white-space:nowrap!important;}
.btn.dangerSmall{font-size:15px!important;padding:9px 12px!important;min-height:0!important;line-height:1.15!important;border-radius:10px!important;}
@media(max-width:760px){.btn.deleteBtn,.table .btn.deleteBtn,.table button.deleteBtn{font-size:13px!important;padding:7px 9px!important;width:auto!important;display:inline-flex!important}.btn.dangerSmall{font-size:16px!important;padding:10px 12px!important;max-width:420px!important}}

.loginBrandWorker{font-size:14px;font-weight:800;color:var(--muted);margin:0 0 18px}.workerVersionOk{color:var(--green)!important}.workerVersionBad{color:var(--red)!important}


/* V2.18: Button-Texte wieder etwas kleiner, OCR-Worker-Version bleibt sichtbar */
.btn{font-size:16px!important;}
.exportBtn{font-size:15px!important;}
.filePickerButton,.manualFileButton{font-size:22px!important;}
.uploadBox .row .btn{font-size:17px!important;}
.headerLogout{font-size:13px!important;}
.table .btn,.table button{font-size:13px!important;}
@media(max-width:760px){
  .btn{font-size:17px!important;}
  .uploadBox .row .btn{font-size:18px!important;}
  .filePickerButton,.manualFileButton{font-size:23px!important;}
  .exportBtn{font-size:16px!important;}
  .table .btn,.table button{font-size:13px!important;}
}
.scanLogHint{margin-top:14px;padding:12px;border:1px dashed #cbd5e1;background:#f8fafc;text-align:center}.scanLogHint .btn{font-size:16px}
.exportLogBlock{border:2px solid #2563eb;background:#eff6ff;padding:16px;margin:0 0 18px;text-align:center;border-radius:12px}.exportLogTitle{font-size:20px;font-weight:900;color:#111827;margin-bottom:6px}.exportLogBlock .btn{font-size:17px;max-width:520px}.exportLogBlock .small{font-size:13px;margin-top:8px;color:#475569}


/* V2.34: PDF-Download-Button bleibt blau mit klar sichtbarer Fortschrittsfüllung */
.btn,.exportBtn,.filePickerButton,.manualFileButton{border-radius:16px!important;}
.exportBtn.download.pdfButtonLoading,.exportBtn.download.pdfButtonLoading:disabled{opacity:1!important;background:#2563eb!important;color:#fff!important;border:1px solid #1d4ed8!important;box-shadow:0 8px 18px rgba(37,99,235,.28),inset 0 0 0 1px rgba(255,255,255,.24)!important;}
.exportBtn.download.pdfButtonLoading::before{background:linear-gradient(90deg,#1d4ed8 0%,#3b82f6 45%,#93c5fd 100%)!important;box-shadow:inset 0 0 0 999px rgba(255,255,255,.18),0 0 16px rgba(147,197,253,.7);}
.exportBtn.download.pdfButtonLoading::after{content:"";position:absolute;left:var(--pdf-progress,8%);top:0;bottom:0;width:3px;background:rgba(255,255,255,.95);box-shadow:0 0 10px rgba(255,255,255,.8);z-index:1;transition:left .35s ease;}
.exportBtn.download.pdfButtonLoading .pdfButtonText{text-shadow:0 1px 2px rgba(15,23,42,.55);font-weight:900;}
.exportItem{border-radius:18px!important;box-shadow:0 1px 2px rgba(15,23,42,.06);}
.uploadBox,.progressBox,.manualArchiveBox{border-radius:18px;}
.manualProgressPanel.topManualProgress{border-radius:18px;border-color:#bfdbfe;background:linear-gradient(180deg,#eff6ff 0%,#f8fafc 100%);box-shadow:0 10px 26px rgba(37,99,235,.08);}
.manualProgressShell{height:22px!important;border-radius:999px!important;border:1px solid #cbd5e1!important;background:#e5e7eb!important;overflow:hidden;box-shadow:inset 0 1px 3px rgba(15,23,42,.12);}
.manualProgressFill{height:100%;width:0%;border-radius:999px;background:linear-gradient(90deg,#2563eb 0%,#3b82f6 38%,#10b981 78%,#16a34a 100%)!important;transition:width .85s ease;box-shadow:0 0 14px rgba(16,185,129,.25);}
.manualProgressText{font-size:15px;color:#475569;}
.manualProgressPhase{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:5px 9px;border-radius:999px;background:#ffffff;border:1px solid #dbeafe;color:#1d4ed8;font-weight:800;font-size:12px;}
.manualSummaryClean{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;border:1px solid #dbe4ef;background:linear-gradient(180deg,#f8fafc,#ffffff);border-radius:18px;padding:12px;margin:12px 0 14px;}
.manualSummaryClean .pill{border-radius:999px;border-color:#dbe4ef;background:#fff;font-weight:800;}
.manualTableWrap{border:1px solid #dbe4ef;border-radius:18px;overflow:auto;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.06);}
.manualTable{min-width:860px;border-collapse:separate!important;border-spacing:0;}
.manualTable th{position:sticky;top:0;background:#f8fafc!important;color:#334155;font-size:13px;text-transform:none;letter-spacing:.01em;border-bottom:1px solid #dbe4ef!important;}
.manualTable td{border-bottom:1px solid #eef2f7!important;font-size:14px;line-height:1.35;}
.manualTable tbody tr:nth-child(even){background:#fbfdff;}
.manualTable tbody tr:hover{background:#f8fafc;}
.manualTable .dateCell{font-weight:900;color:#111827;white-space:nowrap;}
.manualTable .amountCell{font-weight:900;text-align:right;white-space:nowrap;}
.manualTable .fileCell{max-width:190px;}
.manualTable .vatCell{white-space:nowrap;font-weight:800;color:#475569;}
.statusBadge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900;background:#f1f5f9;color:#475569;white-space:nowrap;}
.statusBadge.okStatus{background:#dcfce7;color:#166534;}
.statusBadge.warnStatus{background:#fef3c7;color:#92400e;}
.statusBadge.badStatus{background:#fee2e2;color:#991b1b;}
.exportLogBlock{margin-top:22px!important;border-radius:18px!important;}
.exportLogBlock .btn{border-radius:16px!important;}
@media(max-width:760px){.manualSummaryClean{justify-content:center}.manualTable{min-width:780px}.manualTable th,.manualTable td{padding:10px 9px}.manualProgressPhase{display:flex;justify-content:center}.exportItem{justify-content:center;text-align:center}.exportItem .exportLabel{width:100%;}}
