.cr-ledger-preview { position:fixed;inset:0;z-index:1600;display:flex;align-items:center;justify-content:center;padding:20px;background:rgb(25 31 35 / 55%);color:#222;font-family:Arial,Helvetica,sans-serif; }
body.cr-ledger-print-open { overflow:hidden; }
body.auth-pending .cr-ledger-preview { display:none !important; }
.cr-ledger-dialog { display:flex;flex-direction:column;min-width:0;max-width:100%;width:1200px;max-height:calc(100vh - 40px);border-radius:10px;background:#eef0f1;box-shadow:0 20px 65px #0004;overflow:hidden; }
.cr-ledger-toolbar { display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;background:#fff;border-bottom:1px solid #d9dcdf; }
.cr-ledger-toolbar h2 { margin:0 0 6px;font-size:20px; }
.cr-ledger-toolbar p { margin:0;color:#60666b;font-size:13px; }
.cr-ledger-actions { display:flex;gap:8px;flex:none; }
.cr-ledger-actions button { min-height:40px;padding:9px 15px;border:1px solid #d9dcdf;border-radius:6px;background:#fff;color:#222;font-weight:600;cursor:pointer; }
.cr-ledger-actions [data-cr-ledger-print] { background:#e62620;border-color:#e62620;color:#fff; }
.cr-ledger-actions button:focus-visible,.cr-ledger-scroll:focus-visible { outline:3px solid #e62620;outline-offset:-3px; }
.cr-ledger-actions button:disabled { opacity:.5;cursor:not-allowed; }
.cr-ledger-toolbar .cr-ledger-status { margin-top:6px;font-size:12px; }
.cr-ledger-toolbar .cr-ledger-status[data-kind="error"] { color:#b52723; }
.cr-ledger-preview [hidden] { display:none!important; }
.cr-ledger-scroll { min-height:0;overflow:auto;padding:22px; }
.cr-ledger-sheet { position:relative;box-sizing:border-box;width:297mm;min-height:210mm;padding:76pt 28pt 44pt;margin:0 auto;background:#fff;box-shadow:0 3px 15px #0002;font-size:11px;line-height:1.35; }
/* Clip the existing 2555 × 3616 portrait business paper into landscape bands.
   Native image proportions are retained, even when background printing is off. */
.cr-ledger-paper-logo,.cr-ledger-paper-tagline { display:block;overflow:hidden;print-color-adjust:exact;-webkit-print-color-adjust:exact; }
.cr-ledger-paper-source { position:absolute;display:block;max-width:none!important;height:auto!important; }
.cr-ledger-letterhead { position:absolute;top:14pt;left:28pt;right:28pt;height:49pt;z-index:2; }
.cr-ledger-paper-logo { position:absolute;right:0;top:0;width:172pt;height:48.5484pt; }
.cr-ledger-paper-logo .cr-ledger-paper-source { width:590.672pt;left:-378.9086pt;top:-36.2957pt; }
.cr-ledger-paper-tagline { position:absolute;left:0;top:18pt;width:140pt;height:10.0211pt; }
.cr-ledger-paper-tagline .cr-ledger-paper-source { width:753.0526pt;left:-74.8632pt;top:-60.4211pt; }
.cr-ledger-report-content { position:relative;z-index:1; }
.cr-ledger-report-head { display:flex;justify-content:space-between;align-items:flex-start;gap:20px;border-bottom:2px solid #e62620;padding-bottom:14px; }
.cr-ledger-report-head h1 { font-size:24px;line-height:1.15;margin:0 0 8px;color:#222; }
.cr-ledger-filter { margin:0;color:#454b50;max-width:720px;overflow-wrap:anywhere; }
.cr-ledger-report-head dl { flex:none;margin:0;text-align:right;font-size:10px; }
.cr-ledger-report-head dl div + div { margin-top:8px; }
.cr-ledger-report-head dt { color:#666;margin:0; }
.cr-ledger-report-head dd { margin:2px 0 0;font-variant-numeric:tabular-nums; }
.cr-ledger-counts { margin:12px 0;font-size:11px;font-weight:600; }
.cr-ledger-warnings { margin:10px 0;padding:8px 12px;border-left:3px solid #a47715;background:#fff8e8;color:#654b18; }
.cr-ledger-warnings p { margin:3px 0;overflow-wrap:anywhere; }
.cr-ledger-table { width:100%;table-layout:fixed;border-collapse:collapse;font-size:11px;line-height:1.3; }
.cr-ledger-table caption { caption-side:top;text-align:left;font-size:10px;color:#666;padding:0 0 6px; }
.cr-ledger-table th,.cr-ledger-table td { text-align:left;vertical-align:top;padding:7px 5px;border-bottom:1px solid #d9dcdf;overflow-wrap:anywhere; }
.cr-ledger-table thead th { background:#eef0f1;border-top:1px solid #b9bec3;border-bottom:1px solid #b9bec3;font-size:10px;font-weight:700; }
.cr-ledger-table .cr-ledger-money { text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums; }
.cr-ledger-date { white-space:nowrap;font-variant-numeric:tabular-nums; }
.cr-ledger-sub { display:block;margin-top:3px;color:#62686d;font-size:9px;line-height:1.3;white-space:normal;overflow-wrap:anywhere; }
.cr-ledger-excluded { display:block;margin-top:3px;font-weight:700;color:#7c5208; }
.cr-ledger-unverified { background:#fffaf0; }
.cr-ledger-table tfoot th,.cr-ledger-table tfoot td { background:#eef0f1;font-weight:700;border-top:2px solid #555;border-bottom:0;padding-top:10px;padding-bottom:10px; }
.cr-ledger-empty { text-align:center !important;padding:30px !important;color:#666; }
.cr-ledger-report-footer { border-top:1px solid #d9dcdf;margin-top:15px;padding-top:6px;font-size:9px;color:#62686d; }
.cr-ledger-report-footer p { margin:5px 0; }
.cr-ledger-col-invoice { width:10%; }
.cr-ledger-col-date { width:7%; }
.cr-ledger-col-customer { width:22%; }
.cr-ledger-col-net,.cr-ledger-col-gross,.cr-ledger-col-paid,.cr-ledger-col-status { width:9%; }
.cr-ledger-col-tax { width:7%; }
.cr-ledger-col-payment { width:10%; }
.cr-ledger-col-open { width:8%; }
@media (max-width:650px) {
  .cr-ledger-preview { padding:0; }
  .cr-ledger-dialog { max-height:100dvh;height:100dvh;border-radius:0; }
  .cr-ledger-toolbar { align-items:flex-start;flex-direction:column;gap:12px;padding:16px; }
  .cr-ledger-toolbar h2 { font-size:18px; }
  .cr-ledger-actions { width:100%; }
  .cr-ledger-actions button { flex:1; }
  .cr-ledger-scroll { padding:12px; }
}
@page creditorLedger {
  size:A4 landscape;
  margin:76pt 28pt 44pt;
  @bottom-left { content:"Rechnungsausgangsbuch";vertical-align:top;padding-top:17pt;font-family:Arial,Helvetica,sans-serif;font-size:7pt;color:#666; }
  @bottom-right { content:"Seite " counter(page) " / " counter(pages);vertical-align:top;padding-top:17pt;font-family:Arial,Helvetica,sans-serif;font-size:7pt;color:#666; }
}
@media print {
  body.cr-ledger-print-open { display:block !important;min-height:0 !important;margin:0 !important;padding:0 !important;background:#fff !important;overflow:visible !important; }
  body.cr-ledger-print-open > :not(.cr-ledger-preview) { display:none !important; }
  body.cr-ledger-print-open .cr-ledger-preview { position:static !important;display:block !important;inset:auto !important;padding:0 !important;background:#fff !important;overflow:visible !important; }
  body.cr-ledger-print-open .cr-ledger-dialog,body.cr-ledger-print-open .cr-ledger-scroll { display:block !important;width:auto !important;max-width:none !important;height:auto !important;max-height:none !important;overflow:visible !important;padding:0 !important;margin:0 !important;border:0 !important;border-radius:0 !important;box-shadow:none !important; }
  body.cr-ledger-print-open .cr-ledger-toolbar { display:none !important; }
  body.cr-ledger-print-open .cr-ledger-sheet { page:creditorLedger;width:auto !important;min-height:0 !important;margin:0 !important;padding:0 !important;box-shadow:none !important;font-size:8.25pt;print-color-adjust:exact;-webkit-print-color-adjust:exact; }
  body.cr-ledger-print-open .cr-ledger-letterhead { position:fixed;top:-62pt;left:0;right:0; }
  .cr-ledger-table thead { display:table-header-group; }
  .cr-ledger-table tfoot { display:table-row-group; }
  .cr-ledger-table tr { break-inside:avoid;page-break-inside:avoid; }
  .cr-ledger-report-head,.cr-ledger-report-footer { break-inside:avoid;page-break-inside:avoid; }
  .cr-ledger-report-head { break-after:avoid; }
  body.auth-pending .cr-ledger-preview { display:none !important; }
}
