/* ws191 · customer documents and public pages (invoice, receipt, refund, credit note, messages) · Revision: 1.0 · 2026-11-09
   Loaded only by the pages that use App\Legacy\Doc. Screen: a white A4 sheet on the park green background; print: A4, no buttons. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

:root { --dc-forest: #173f33; --dc-green: #1f7a4d; --dc-ink: #12261f; --dc-muted: #45574f; --dc-line: #d5e2dc; --dc-soft: #f3f8f5; --dc-bg: #e9f0ec;
  --dc-font: Inter, "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif; --dc-head: Montserrat, Inter, "Segoe UI", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body.dc-body, body.dc-pub { background: var(--dc-bg); color: var(--dc-ink); font: 400 14px/1.5 var(--dc-font) !important; -webkit-text-size-adjust: 100%; }
.dc-body td, .dc-body th, .dc-body button, .dc-pub button, .dc-pub input { font-family: var(--dc-font) !important; }
.dc-body a, .dc-pub a { color: var(--dc-green); text-decoration: none; } .dc-body a:hover, .dc-pub a:hover { text-decoration: underline; }
.dc-body .ws-foot { display: none !important; }            /* the GUI footer: the document has its own */
.dc-body .ws-rev { text-align: center; color: #7b8c85; font-size: 11px; padding: 0 0 18px; }
[hidden] { display: none !important; }

/* buttons (class names start with ws- so the GUI theme leaves them alone) */
.ws-dbtn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--dc-forest); background: var(--dc-forest);
  color: #fff; font: 600 14px var(--dc-font); cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.ws-dbtn:hover { background: #24574a; } .ws-dbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ws-dbtn.ghost { background: #fff; color: var(--dc-forest); border-color: #b9cfc5; } .ws-dbtn.ghost:hover { background: #eef5f1; }
.ws-dbtn.pay { background: var(--dc-green); border-color: var(--dc-green); } .ws-dbtn.pay:hover { background: #18663f; }
.ws-dbtn.bad { background: #fff; color: #b42318; border-color: #e8b4ae; } .ws-dbtn.bad:hover { background: #fdf0ee; }
.ws-dbtn.sm { height: 32px; padding: 0 12px; font-size: 13px; } .ws-dbtn.big { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.ws-dbtn:disabled { opacity: .5; cursor: not-allowed; }

/* top bar with the buttons */
.dc-bar { position: sticky; top: 0; z-index: 20; background: var(--dc-forest); color: #fff; box-shadow: 0 2px 10px rgba(10,30,24,.18); }
.dc-bar-in { max-width: 860px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dc-bar-t { font: 700 15px var(--dc-head); letter-spacing: .2px; } .dc-bar-b { display: flex; gap: 8px; flex-wrap: wrap; }
.dc-bar .ws-dbtn { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); color: #fff; }
.dc-bar .ws-dbtn:hover { background: rgba(255,255,255,.2); }
.dc-bar .ws-dbtn.pay { background: #f5b301; border-color: #f5b301; color: #2c2100; } .dc-bar .ws-dbtn.pay:hover { background: #ffc634; }
.dc-bar .ws-dbtn.bad { background: transparent; color: #ffd2cc; border-color: rgba(255,210,204,.45); }
.dc-note { max-width: 860px; margin: 14px auto 0; padding: 12px 16px; border-radius: 12px; background: #fff7e0; border: 1px solid #f1d9a6; color: #5c4100; font-weight: 500; }
.dc-note.ok { background: #e7f4ec; border-color: #bfe0cc; color: #155c37; } .dc-note.bad { background: #fdecea; border-color: #f5c6c3; color: #8f1d1d; }

/* the sheet */
.dc-sheet { position: relative; max-width: 860px; margin: 18px auto 18px; background: #fff; border-radius: 14px; box-shadow: 0 10px 40px rgba(18,38,31,.12); padding: 38px 44px 26px; overflow: hidden; }
.dc-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding-bottom: 20px; border-bottom: 3px solid var(--dc-forest); }
.dc-from { display: flex; gap: 16px; align-items: flex-start; min-width: 0; }
.dc-logo { width: auto; display: block; flex: none; }
.dc-co { display: flex; flex-direction: column; font-size: 12.5px; color: var(--dc-muted); line-height: 1.45; } .dc-co b { color: var(--dc-ink); font: 700 15px var(--dc-head); margin-bottom: 2px; }
.dc-title { text-align: right; flex: none; }
.dc-title h1 { margin: 0; font: 700 32px/1.05 var(--dc-head); color: var(--dc-forest); letter-spacing: -.3px; }
.dc-no { font: 600 18px var(--dc-font); color: var(--dc-ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.dc-pill { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 999px; font: 700 12px var(--dc-font); text-transform: uppercase; letter-spacing: .6px; background: #eef1ef; color: #45574f; }
.dc-pill.paid { background: #dff2e7; color: #1f7a4d; } .dc-pill.part { background: #fde9b8; color: #7a4a00; } .dc-pill.can { background: #eef1ef; color: #6b7a74; }
.dc-pill.ref { background: #dbe8ff; color: #1d4ed8; } .dc-pill.due { background: #fbd5d0; color: #b42318; }

.dc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px 0; }
.dc-parties h2, .dc-sum h2, .dc-how h2 { margin: 0 0 6px; font: 700 11.5px var(--dc-font); text-transform: uppercase; letter-spacing: .8px; color: var(--dc-muted); }
.dc-to { display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.45; } .dc-to b { font: 700 16px var(--dc-font); margin-bottom: 2px; } .dc-to span { color: var(--dc-ink); }
.dc-to .dc-c { color: var(--dc-muted); font-size: 13px; }
.dc-info { margin: 0; display: grid; gap: 0; align-content: start; border: 1px solid var(--dc-line); border-radius: 12px; overflow: hidden; }
.dc-info > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 14px; font-size: 13px; } .dc-info > div + div { border-top: 1px solid #e6eeea; }
.dc-info dt { color: var(--dc-muted); } .dc-info dd { margin: 0; font-weight: 600; text-align: right; }

.dc-lines-w { position: relative; }
.dc-lines { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dc-lines thead th { background: var(--dc-forest); color: #fff; font: 600 12px var(--dc-font); text-transform: uppercase; letter-spacing: .5px; text-align: left; padding: 9px 12px; }
.dc-lines thead th:first-child { border-radius: 10px 0 0 10px; } .dc-lines thead th:last-child { border-radius: 0 10px 10px 0; }
.dc-lines td { padding: 10px 12px; border-bottom: 1px solid #e6eeea; vertical-align: top; } .dc-lines td b { font-weight: 600; }
.dc-lines td small { display: block; color: var(--dc-muted); font-size: 12.5px; margin-top: 1px; }
.dc-lines .n, .dc-tot td, .dc-pay .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dc-lines th.n { text-align: right; }
.dc-disc { margin: 8px 12px 0; font-size: 13px; color: var(--dc-green); }

/* the stamp: a rubber-stamp look, in CSS */
.dc-sum-l { position: relative; min-height: 120px; }
.dc-stamp { position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none; transform: translate(-50%, -50%) rotate(-12deg); padding: 6px 20px; border: 5px solid currentColor; border-radius: 12px;
  font: 800 38px/1 var(--dc-head); letter-spacing: 4px; text-transform: uppercase; opacity: .2; white-space: nowrap; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px currentColor; }
.dc-stamp.paid { color: #1f7a4d; } .dc-stamp.part { color: #b26b00; } .dc-stamp.can { color: #b42318; } .dc-stamp.ref { color: #1d4ed8; }

.dc-sum { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 18px 0 6px; align-items: start; }
.dc-pay { width: 100%; border-collapse: collapse; font-size: 13px; }
.dc-pay td { padding: 6px 8px; border-bottom: 1px dashed #e0e9e4; } .dc-pay td:first-child { color: var(--dc-muted); white-space: nowrap; width: 1%; }
.dc-pay tr.refund td { color: #1d4ed8; } .dc-pay small { color: var(--dc-muted); }
.dc-tot { width: 100%; border-collapse: collapse; font-size: 14px; }
.dc-tot th { text-align: left; font-weight: 500; color: var(--dc-muted); padding: 5px 0; } .dc-tot td { padding: 5px 0; font-weight: 600; }
.dc-tot tr.grand th, .dc-tot tr.grand td { border-top: 2px solid var(--dc-ink); padding-top: 9px; font: 700 18px var(--dc-font); color: var(--dc-ink); }
.dc-tot tr.bal th, .dc-tot tr.bal td { background: var(--dc-soft); padding: 10px 10px; font-weight: 700; color: var(--dc-ink); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.dc-tot tr.bal th { border-radius: 10px 0 0 10px; } .dc-tot tr.bal td { border-radius: 0 10px 10px 0; }
.dc-tot tr.bal.due th, .dc-tot tr.bal.due td { background: #fdecea; color: #b42318; font-size: 17px; } .dc-tot tr.bal.ok td { color: var(--dc-green); }
.dc-tot tr + tr.bal th, .dc-tot tr + tr.bal td { border-top: 6px solid #fff; }

.dc-paynow { margin: 16px 0 0; padding: 18px 20px; border-radius: 14px; background: linear-gradient(160deg, #173f33, #1f5f4a 60%, #2f7a62); color: #fff; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.dc-paynow h2 { margin: 0 0 4px; font: 700 18px var(--dc-head); color: #fff; } .dc-paynow p { margin: 0; color: #d6eadf; font-size: 13.5px; }
.dc-paynow .ws-dbtn.pay { background: #f5b301; border-color: #f5b301; color: #2c2100; } .dc-paynow .ws-dbtn.pay:hover { background: #ffc634; }
.dc-qr { display: flex; gap: 12px; align-items: center; } .dc-qr div[id] { background: #fff; padding: 6px; border-radius: 10px; line-height: 0; } .dc-qr img { width: 112px; height: 112px; image-rendering: pixelated; }
.dc-qr small { color: #d6eadf; font-size: 12.5px; max-width: 150px; }

.dc-how { margin-top: 18px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--dc-line); background: #fbfdfc; font-size: 13.5px; }
.dc-how ul { margin: 0 0 8px; padding-left: 18px; } .dc-how li { margin: 2px 0; } .dc-how p { margin: 0; color: var(--dc-ink); }
.dc-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--dc-line); text-align: center; font-size: 12px; color: var(--dc-muted); display: grid; gap: 3px; }
.dc-by { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: #7b8c85; margin-top: 4px; } .dc-by img { height: 18px; width: auto; }

/* pop-up frame (payment, SMS / e-mail, pay online) */
.dc-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(10,30,24,.45); display: grid; place-items: center; }
.dc-modal-box { background: #fff; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.3); display: flex; flex-direction: column; overflow: hidden; }
.dc-modal-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; background: var(--dc-forest); color: #fff; font: 600 15px var(--dc-font); }
.dc-modal iframe { flex: 1; width: 100%; border: 0; background: #fff; }
.dc-dlg { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; background: rgba(10,30,24,.45); }
.dc-dlg form { width: min(460px, 94vw); background: #fff; border-radius: 14px; padding: 22px 22px 18px; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.dc-dlg h3 { margin: 0 0 6px; font: 700 18px var(--dc-head); } .dc-dlg p { margin: 0 0 12px; color: var(--dc-muted); }
.dc-dlg textarea { width: 100%; min-height: 80px; border: 1px solid #c9d9d1; border-radius: 10px; padding: 10px 12px; font: 400 14px var(--dc-font); resize: vertical; }
.dc-dlg .btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* public message pages (link expired, nothing to pay, ...) */
.dc-msg { max-width: 520px; margin: 8vh auto 30px; background: #fff; border-radius: 16px; box-shadow: 0 14px 44px rgba(18,38,31,.14); padding: 34px 32px 24px; text-align: center; border-top: 6px solid var(--dc-forest); }
.dc-msg.bad { border-top-color: #b42318; } .dc-msg.ok { border-top-color: var(--dc-green); }
.dc-msg-logo { display: flex; justify-content: center; margin-bottom: 18px; } .dc-msg h1 { margin: 0 0 10px; font: 700 24px var(--dc-head); color: var(--dc-ink); }
.dc-msg p { margin: 0 0 12px; color: var(--dc-muted); font-size: 15px; } .dc-msg .dc-msg-co { margin-top: 22px; padding-top: 14px; border-top: 1px solid #e6eeea; font-size: 13px; }
.dc-msg-by { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px !important; color: #7b8c85 !important; } .dc-msg-by img { height: 20px; width: auto; vertical-align: middle; }
.dc-msg .ws-dbtn { margin: 6px 4px 0; }
.dc-msg .ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; font: 800 30px var(--dc-head); color: #fff; background: var(--dc-forest); }
.dc-msg.bad .ic { background: #b42318; } .dc-msg.ok .ic { background: var(--dc-green); }

@media (max-width: 720px) {
  .dc-sheet { margin: 0; border-radius: 0; padding: 22px 16px; box-shadow: none; }
  .dc-head { flex-direction: column; } .dc-title { text-align: left; } .dc-title h1 { font-size: 26px; }
  .dc-parties, .dc-sum { grid-template-columns: 1fr; gap: 16px; }
  .dc-lines thead th:nth-child(2), .dc-lines td:nth-child(2), .dc-lines thead th:nth-child(3), .dc-lines td:nth-child(3) { display: none; }
  .dc-stamp { font-size: 26px; } .dc-logo { height: 52px !important; }
}

@media print {
  @page { size: A4; margin: 11mm 12mm; }
  html, body.dc-body, body.dc-pub { background: #fff !important; }
  .no-print, .dc-bar, .dc-note, .dc-modal, .dc-dlg, .ws-rev, .ws-foot, .ws-popwrap, .ws-pops { display: none !important; }
  .dc-sheet { max-width: none; margin: 0; padding: 0; box-shadow: none; border-radius: 0; overflow: visible; }
  .dc-body { font-size: 12.5px !important; }
  .dc-head { padding-bottom: 14px; } .dc-parties { padding: 14px 0; } .dc-lines td { padding: 7px 10px; } .dc-sum { padding-top: 12px; }
  .dc-lines thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dc-pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dc-stamp { opacity: .26; font-size: 30px; letter-spacing: 3px; }
  .dc-lines tr, .dc-sum, .dc-how, .dc-foot { break-inside: avoid; }
  a { color: inherit !important; }
}
.dc-spin { width: 42px; height: 42px; margin: 0 auto 16px; border: 4px solid #d5e2dc; border-top-color: var(--dc-green); border-radius: 50%; animation: dcspin .9s linear infinite; }
@keyframes dcspin { to { transform: rotate(360deg); } }

/* OnTrack365 legal pages (policy.php, notice.php) */
.dc-legal { background: #f3f7f5 !important; }
.lg-hero { background: linear-gradient(160deg, #173f33, #1f5f4a 60%, #2f7a62); color: #fff; padding: 34px 20px 70px; }
.lg-in { max-width: 920px; margin: 0 auto; } .lg-brand img { height: 40px; width: auto; background: #fff; border-radius: 10px; padding: 5px 8px; }
.lg-hero h1 { margin: 18px 0 6px; font: 700 32px/1.15 var(--dc-head); } .lg-hero p { margin: 0; color: #d6eadf; font-size: 15.5px; max-width: 680px; }
.lg-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lg-links a { color: #fff !important; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 5px 13px; font-size: 13px; font-weight: 600; text-decoration: none !important; }
.lg-links a:hover { background: rgba(255,255,255,.12); }
.lg-main { max-width: 920px; margin: -44px auto 24px; padding: 0 16px; display: grid; grid-template-columns: 230px 1fr; gap: 16px; align-items: start; }
.lg-toc { position: sticky; top: 14px; background: #fff; border: 1px solid var(--dc-line); border-radius: 14px; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 28px); overflow: auto; }
.lg-toc b { font: 700 12px var(--dc-font); text-transform: uppercase; letter-spacing: .7px; color: var(--dc-muted); padding: 0 8px 6px; }
.lg-toc a { font-size: 13px; color: var(--dc-ink) !important; padding: 5px 8px; border-radius: 8px; text-decoration: none !important; } .lg-toc a:hover { background: var(--dc-soft); color: var(--dc-green) !important; }
.lg-text { background: #fff; border: 1px solid var(--dc-line); border-radius: 14px; padding: 26px 30px 18px; font-size: 14.5px; line-height: 1.65; box-shadow: 0 10px 30px rgba(23,63,51,.07); }
.lg-text h2 { margin: 22px 0 8px; font: 700 18px var(--dc-head); color: var(--dc-forest); scroll-margin-top: 14px; } .lg-text h2:first-child { margin-top: 0; }
.lg-text h2 span { color: var(--dc-green); margin-right: 4px; }
.lg-text p { margin: 0 0 9px; } .lg-text .n { display: inline-block; min-width: 34px; color: var(--dc-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.lg-text ul.ab { list-style: none; margin: 0 0 10px; padding: 0 0 0 34px; } .lg-text ul.ab li { margin: 0 0 6px; } .lg-text ul.ab .n { min-width: 26px; }
.lg-text a { word-break: break-all; }
.lg-foot { max-width: 920px; margin: 0 auto 30px; padding: 0 20px; text-align: center; color: var(--dc-muted); font-size: 12.5px; }
.lg-foot p { margin: 0 0 8px; } .lg-ver { font-size: 11.5px; color: #7b8c85; }
@media (max-width: 760px) { .lg-main { grid-template-columns: 1fr; } .lg-toc { position: static; max-height: none; } .lg-text { padding: 20px 16px; } .lg-hero h1 { font-size: 26px; } }
@media print { .lg-hero { background: #fff !important; color: #000; padding: 0 0 12px; } .lg-hero p { color: #333; } .lg-links, .lg-toc { display: none !important; } .lg-main { display: block; margin: 0; } .lg-text { border: 0; box-shadow: none; padding: 0; } }
.dc-paynow > div:first-child { flex: 1 1 300px; }
