/* Portal styles stay inside the portal content; the shared site header/footer
   keep their original style.css rules and navigation behavior. */
.cp-content{max-width:1080px;margin:36px auto;padding:0 22px;min-height:60vh;font-size:16px;line-height:1.55;color:var(--text,#172329)}
.cp-content a{color:#426c1e;text-underline-offset:3px}.cp-content a:hover{color:#294510}.cp-content h1{font-size:clamp(1.8rem,4vw,2.8rem);letter-spacing:-.035em;line-height:1.15;margin:24px 0}.cp-content h2{font-size:1.25rem;margin:10px 0}.cp-content .muted,.cp-content small{color:#59685d}.cp-content .card{background:white;border:1px solid #dce4dd;border-radius:18px;padding:28px;margin:18px 0;box-shadow:0 8px 26px #172d1a05}.cp-content .narrow{max-width:520px}.cp-content label{display:block;font-weight:bold;margin:18px 0 7px}.cp-content input,.cp-content select{font:inherit;padding:12px;border:1px solid #a6b5a9;border-radius:9px;max-width:100%;width:100%;background:white;color:#172329}.cp-content button,.cp-content .button{display:inline-block;font:inherit;font-weight:bold;border:1px solid #527e21;background:#527e21;color:white;border-radius:9px;padding:11px 18px;text-decoration:none;cursor:pointer}.cp-content form>button{margin-top:20px}.cp-content button:hover,.cp-content .button:hover{background:#385e16;color:white}.cp-content button.secondary{background:#fff;color:#345d12}.cp-content button.danger{background:#a62525;border-color:#a62525}.cp-content button:disabled{opacity:.5;cursor:not-allowed}.cp-content a:focus-visible,.cp-content button:focus-visible,.cp-content input:focus-visible{outline:3px solid #e0ac26;outline-offset:3px}.cp-content .error,.cp-content .notice,.cp-content .preview{border-radius:10px;padding:16px;background:#fce9e9;border:1px solid #e6bcbc}.cp-content .notice{background:#edf6e4;border-color:#c9deb8}.cp-content .preview{background:#fff2cc;border-color:#e4c965;margin-bottom:28px}.cp-content .preview a{margin-left:12px}.cp-content .tabs,.cp-content .pagination{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:28px 0}.cp-content .tabs a{border:1px solid #dce4dd;border-radius:30px;padding:9px 18px;text-decoration:none;background:white}.cp-content .tabs .selected{background:#18251c;color:#fff}.cp-content .document{display:flex;justify-content:space-between;gap:24px}.cp-content .document-end{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.cp-content .amount{font-size:1.7rem}.cp-content .tag{display:inline-block;background:#edf4e8;padding:4px 10px;border-radius:6px;font-size:.8rem;font-weight:bold}.cp-content .table-wrap{overflow:auto}.cp-content table{width:100%;border-collapse:collapse;text-align:left}.cp-content th,.cp-content td{padding:12px 10px;border-bottom:1px solid #dce4dd;vertical-align:top}.cp-content th{color:#59685d;font-size:.85rem}.cp-content td form{margin:0}.cp-content td button{padding:7px 12px;font-size:.9rem}.cp-content .actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.cp-content .actions form>button{margin:0}.cp-content .actions input[type=checkbox]{width:auto}.cp-content .grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.cp-content .break{overflow-wrap:anywhere}.cp-content .token-link{background:#f4f6f5;padding:14px;border-radius:8px;display:block;overflow-wrap:anywhere}.cp-content small{display:block}.cp-content code{overflow-wrap:anywhere}.cp-content summary{cursor:pointer;font-weight:bold}.cp-content .count{font-weight:bold}.cp-content .search{display:flex;gap:12px}.cp-content .search button{margin:0;white-space:nowrap}.cp-content .search input{min-width:0}.cp-content .check{width:auto}.cp-content .cp-toolbar{display:flex;align-items:center;gap:20px;flex-wrap:wrap;border-bottom:1px solid #dce4dd;padding:0 0 18px;margin-bottom:24px}.cp-content .cp-toolbar form{margin:0 0 0 auto}.cp-content .cp-toolbar .link{border:0;background:none;box-shadow:none;padding:0;margin:0;color:#426c1e;text-decoration:underline;cursor:pointer;width:auto;font-weight:600}
@media(max-width:640px){.cp-content{margin-top:26px;padding:0 16px}.cp-content .card{padding:20px}.cp-content .grid{grid-template-columns:1fr;gap:0}.cp-content .document{flex-direction:column}.cp-content .document-end{align-items:flex-start}.cp-content .table-wrap{margin:0 -8px}.cp-content .search{flex-wrap:wrap}.cp-content .tabs{gap:8px}.cp-content .tabs a{padding:8px 12px}.cp-content .amount{font-size:1.5rem}.cp-content .cp-toolbar{gap:14px}}
.cp-content .payment-summary{display:grid;grid-template-columns:1fr 1fr;gap:20px}.cp-content .payment-summary .card{display:flex;flex-direction:column;gap:8px;text-decoration:none;color:inherit}.cp-content .payment-summary strong{font-size:2rem;line-height:1.1}.cp-content .payment-summary span{font-size:.9rem;color:#59685d}.cp-content .payment-status{display:inline-block;border-radius:7px;padding:5px 11px;font-weight:700;font-size:.9rem;background:#eef1f4;color:#374151}.cp-content .state-open{background:#fff0de;color:#7b3c00}.cp-content .state-partial{background:#fff4cd;color:#755400}.cp-content .state-paid{background:#e5f3df;color:#285614}.cp-content .state-review{background:#e8efff;color:#304e84}.cp-content .state-cancelled{background:#eee;color:#555}.cp-content .payment-details{margin:16px 0;max-width:420px}.cp-content .payment-details>div{display:flex;gap:28px;justify-content:space-between;padding:5px 0}.cp-content .payment-details dt{color:#59685d}.cp-content .payment-details dd{font-weight:700;margin:0;white-space:nowrap}.cp-content .payment-details .remaining{border-top:1px solid #dce4dd;margin-top:6px;padding-top:10px}.cp-content .payment-tabs{margin-top:-8px}.cp-content .payment-tabs a{font-size:.9rem}@media(max-width:640px){.cp-content .payment-summary{grid-template-columns:1fr;gap:0}.cp-content .payment-summary .card{margin:8px 0}.cp-content .payment-details>div{gap:16px}}

/* 1.4: shared modern customer workspace, scoped away from header/footer. */
.cp-modern{max-width:1320px;margin:32px auto 60px;color:#20332f;--cp-accent:#315e3e}.cp-modern .cp-page-heading{margin:26px 0 28px}.cp-modern .cp-eyebrow{font-size:10px;letter-spacing:.16em;font-weight:800;color:#5b775b;margin:0 0 6px}.cp-modern h1{font-size:clamp(1.8rem,4vw,2.7rem);margin:0 0 8px;letter-spacing:-.045em}.cp-modern h2{letter-spacing:-.025em;font-weight:750}.cp-modern .cp-page-heading>.muted{margin:0}.cp-modern .cp-toolbar{font-size:13px;border-color:#e1e9e3;padding-bottom:16px;gap:24px}.cp-modern .cp-toolbar a{font-weight:650;text-decoration:none}.cp-modern .card{border-color:#dfe7e2;box-shadow:0 5px 18px #173e2304;border-radius:18px;padding:26px}.cp-modern .cp-master{background:linear-gradient(115deg,#f2f7ee,#fff);padding:22px 26px}.cp-modern .cp-master h2{font-size:17px}.cp-modern .cp-master p{font-size:13px;margin:6px 0}.cp-modern .cp-master form>button{font-size:12px;padding:8px 12px;margin-top:10px}.cp-modern .cp-master button.danger{background:white;border-color:#dcbfb9;color:#934a3e}.cp-modern button,.cp-modern .button{background:var(--cp-accent);border-color:var(--cp-accent);border-radius:10px;padding:11px 16px;font-size:13px;min-height:42px}.cp-modern button.secondary{background:white;color:var(--cp-accent);border-color:#c8d9cb}.cp-modern button.danger{background:#a13e39;border-color:#a13e39}.cp-modern input,.cp-modern select{border-color:#cddbd1;border-radius:10px;font-size:14px;min-height:44px}.cp-modern label{font-size:13px}.cp-modern .cp-account-card>form{padding:18px;background:#f6f8f6;border:1px solid #e3eae4;border-radius:14px;margin:20px 0}.cp-modern .cp-account-card>form label{margin-top:0}.cp-modern .cp-account-card .actions{margin:20px 0}.cp-modern details{border-top:1px solid #e2e9e3;padding-top:18px}.cp-modern details summary{font-size:14px;line-height:1.5}.cp-modern details>p{font-size:13px;color:#647269;max-width:760px}.cp-modern .cp-section-heading{display:flex;gap:16px;align-items:center}.cp-modern .cp-section-heading h2{margin:0}.cp-modern .cp-avatar{display:grid;place-items:center;width:52px;height:52px;border-radius:15px;background:#e7f0df;color:#4f713a;font-size:19px}.cp-modern .tag{font-size:11px;letter-spacing:.01em;background:#eaf0e7;color:#476244;font-weight:700;padding:4px 9px;border-radius:6px}.cp-modern .table-wrap{border:1px solid #e1e8e3;border-radius:14px;background:#fff}.cp-modern table{font-size:13px;width:100%}.cp-modern thead{background:#edf2ee}.cp-modern th{font-size:10px;text-transform:uppercase;letter-spacing:.085em;padding:15px 18px;white-space:nowrap;font-weight:800;color:#617266}.cp-modern td{padding:19px 18px;border-color:#e7ede8;vertical-align:middle}.cp-modern tbody tr:nth-child(even){background:#f3f6f3}.cp-modern tbody tr:hover{background:#ecf2e9}.cp-modern td a{font-weight:650}.cp-modern td small{font-size:11px;line-height:1.55;max-width:300px;margin-top:5px}.cp-modern td label{font-size:12px;margin:0 0 8px;display:flex;align-items:center;gap:9px;line-height:1.4;font-weight:600}.cp-modern .check{min-height:0;width:17px;height:17px;accent-color:var(--cp-accent);flex-shrink:0}.cp-modern .cp-document-admin>.muted{font-size:13px;max-width:900px;margin-bottom:22px}.cp-modern .payment-summary{gap:18px;margin:20px 0 28px}.cp-modern .payment-summary .card{margin:0;position:relative;border-top:3px solid #96b06c;background:linear-gradient(125deg,#f1f6ea,#fff)}.cp-modern .payment-summary .card:nth-child(2){border-top-color:#93aaa4;background:linear-gradient(125deg,#eff5f4,#fff)}.cp-modern .payment-summary strong{font-size:2.1rem;letter-spacing:-.05em;margin:6px 0}.cp-modern .payment-summary small{font-size:12px;font-weight:650}.cp-modern .payment-summary span{font-size:12px}.cp-modern .tabs{gap:8px;margin:22px 0}.cp-modern .tabs a{font-size:12px;font-weight:650;border:1px solid #dce4dc;border-radius:9px;padding:9px 13px}.cp-modern .tabs .selected{background:#294d37;border-color:#294d37;color:#fff}.cp-modern .payment-tabs{margin-top:-10px}.cp-modern .cp-document-table{margin:24px 0}.cp-modern .cp-document-table h2{font-size:15px;margin:8px 0 0}.cp-modern .cp-reference{font-size:12px;line-height:1.6;color:#60716a;margin:7px 0 0;max-width:330px}.cp-modern .cp-reference strong{font-weight:500}.cp-modern .cp-money-col{text-align:right}.cp-modern .cp-row-amount{font-size:16px;white-space:nowrap;letter-spacing:-.025em}.cp-modern .cp-balance{display:block;font-size:12px;font-weight:750;margin-top:8px;white-space:nowrap}.cp-modern .cp-row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:8px;white-space:nowrap}.cp-modern .cp-row-actions>a:not(.button){font-size:11px;text-underline-offset:3px}.cp-modern .cp-row-actions .button{padding:9px 12px;font-size:12px;min-height:36px}.cp-modern .cp-nowrap{white-space:nowrap}.cp-modern .payment-status{font-size:11px;white-space:nowrap;padding:5px 9px;border-radius:7px}.cp-modern .pagination{justify-content:center;font-size:12px;gap:18px}.cp-modern .pagination a{padding:8px 14px;border:1px solid #dce4dc;border-radius:8px;text-decoration:none}.cp-modern .notice,.cp-modern .error{font-size:13px}.cp-modern .token-link{margin:16px 0}.cp-modern .search{margin:20px 0}.cp-modern .search button{min-width:95px}@media(max-width:760px){.cp-modern{padding:0 16px;margin-top:24px}.cp-modern .card{padding:20px}.cp-modern .payment-summary{grid-template-columns:1fr;gap:12px}.cp-modern .payment-summary .card{padding:20px;margin:0}.cp-modern .payment-summary strong{font-size:1.8rem}.cp-modern .tabs{gap:6px}.cp-modern .tabs a{padding:8px 10px;font-size:11px}.cp-modern .table-wrap{margin:0}.cp-modern .cp-document-table{border:0;background:transparent;overflow:visible}.cp-modern .cp-zebra thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.cp-modern .cp-zebra,.cp-modern .cp-zebra tbody{display:block;width:100%}.cp-modern .cp-zebra tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #dbe5dc;border-radius:14px;margin-bottom:12px;padding:16px;gap:15px;background:#fff}.cp-modern .cp-zebra td{display:block;border:0;padding:0;min-width:0}.cp-modern .cp-zebra td:first-child,.cp-modern .cp-zebra td:last-child{grid-column:1/-1}.cp-modern .cp-zebra td:nth-child(4){grid-column:1/-1;text-align:left;border-top:1px solid #e0e8e0;padding-top:12px}.cp-modern .cp-zebra td[data-label="Datum"]:before{content:'Datum';display:block;color:#64766a;font-size:10px;text-transform:uppercase;margin-bottom:3px}.cp-modern .cp-zebra .cp-row-actions{flex-direction:row;align-items:center;gap:18px}.cp-modern .cp-zebra .cp-reference{max-width:none}.cp-modern .cp-zebra .payment-status{white-space:normal}.cp-modern .cp-zebra .cp-balance{white-space:normal}.cp-modern .cp-master form>button{width:100%}.cp-modern th,.cp-modern td{padding:13px 12px}.cp-modern .cp-account-card>form{padding:14px}.cp-modern .cp-account-card .actions{align-items:stretch}.cp-modern .cp-account-card .actions form{flex:1}.cp-modern .cp-account-card .actions button{width:100%;font-size:12px}}
@media(min-width:761px){.cp-modern .cp-master{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;align-items:center}.cp-modern .cp-master h2,.cp-modern .cp-master p{grid-column:1}.cp-modern .cp-master form{grid-column:2;grid-row:1/3}.cp-modern .cp-master form>button{margin:0}}
