:root{font-family:Arial,Helvetica,sans-serif;color:#25313a;background:#edf0f2;font-size:15px;line-height:1.5}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;justify-content:space-between;padding:22px max(24px,calc((100vw - 1180px)/2));border-bottom:1px solid #d6dce0;background:#fff;gap:24px}a{color:#294e68;text-underline-offset:3px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#25313a;font-size:22px;font-weight:700;white-space:nowrap}.brand small{font-size:12px;display:block;letter-spacing:.3px;color:#66727a;font-weight:400}.mark{width:44px;height:44px;display:grid;place-items:center;background:#303d46;color:white;border-radius:10px;font-size:18px}nav{display:flex;flex-wrap:wrap;gap:18px;align-items:center}nav a{font-size:14px}main{max-width:1180px;margin:32px auto 64px;padding:0 24px;min-height:65vh}h1{font-size:30px;letter-spacing:-.6px;margin:0 0 6px}h2{font-size:20px;margin:0 0 14px}h3{font-size:16px;margin:0 0 10px}p{margin:0 0 18px}small,.muted{color:#60707b}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:1.3px;margin-bottom:9px;color:#60707b}.card{background:#fff;border:1px solid #d7dde2;border-radius:12px;padding:24px;margin:20px 0;box-shadow:0 2px 3px #26354605}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}.grid>.card{margin:0}.stack{display:grid;gap:12px}.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:18px}.narrow{max-width:540px;margin:24px auto}label{display:grid;gap:5px;font-size:13px;font-weight:600;margin:10px 0}input,select,textarea{font:inherit;font-size:15px;width:100%;padding:11px 12px;border:1px solid #aebac4;background:white;color:#25313a;border-radius:6px;min-height:44px}input[type=checkbox]{width:18px;min-height:18px;accent-color:#344d5e}label.check{display:flex;align-items:center;gap:8px;font-weight:400}textarea{min-height:100px;resize:vertical}button,.button{font:inherit;min-height:44px;border:1px solid #324651;border-radius:6px;padding:10px 16px;background:#324651;color:white;cursor:pointer;text-decoration:none;display:inline-flex;justify-content:center;align-items:center}button.secondary,.button.secondary{background:#fff;color:#324651;border-color:#bec8cf}button.danger{background:#fff;color:#9d2c32;border-color:#d9afb1}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #5a9ac7;outline-offset:3px}.tag{display:inline-block;font-size:12px;font-weight:600;background:#ecf3ef;color:#2d5948;border:1px solid #cbded3;padding:4px 9px;border-radius:5px}.tag.neutral{background:#edf0f3;color:#465864;border-color:#d5dde3}.stat{font-size:26px;font-weight:700;display:block}.rule{border-top:1px solid #e1e5e8;margin:18px 0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:start;vertical-align:top;padding:13px 10px;border-bottom:1px solid #e1e5e8}th{background:#f4f6f7;font-size:12px;white-space:nowrap}td button{min-height:36px;padding:5px 10px}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:90vw;padding:15px 22px;border:1px solid #a1b8a8;border-radius:8px;background:#f1faf4;box-shadow:0 5px 24px #0002;z-index:100}#notice.error{background:#fff2ef;border-color:#d6a095;color:#8a2a23}#environment{padding:9px 24px;text-align:center;background:#fff4df;color:#6d5326;font-size:13px}footer{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;font-size:12px;padding:20px;border-top:1px solid #d6dce0;color:#62717c}details{border-top:1px solid #e1e5e8;margin-top:18px;padding-top:14px}summary{cursor:pointer;font-weight:600}code,pre{font-family:Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.callout{padding:14px 16px;background:#f1f4f6;border-left:3px solid #6c8494;margin:16px 0}.permissions{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0 16px}.qr{max-width:220px}dialog{border:1px solid #bdc8ce;border-radius:12px;max-width:490px;width:90vw;padding:26px}dialog::backdrop{background:#14212d80}@media(max-width:650px){header{align-items:flex-start;padding:16px;flex-direction:column;gap:16px}main{padding:0 16px;margin-top:24px}h1{font-size:25px}.card{padding:18px}.grid{grid-template-columns:1fr}nav{gap:14px}.actions>*{flex:1 0 auto}table{min-width:500px}}
:root .report-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 20px}.support-message{white-space:pre-wrap;overflow-wrap:anywhere}.support-reply{padding:14px 18px;border-left:3px solid #b2c0c9;background:#f5f7f8;margin:12px 0}.support-reply p{margin:8px 0 0}@media(max-width:650px){:root .report-filters{grid-template-columns:1fr}}
.report-table td[data-label="Total"],.report-table td[data-label="Received"],.report-table td[data-label="Outstanding"],.report-table td[data-label="Total invoiced"],.report-table td[data-label="Payments received"]{font-variant-numeric:tabular-nums}@media(max-width:650px){.report-table .table-wrap{overflow:visible}.report-table table{min-width:0;display:block}.report-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.report-table tbody,.report-table tr{display:block}.report-table tr{border:1px solid #d7dde2;border-radius:6px;padding:10px;margin-bottom:14px}.report-table td{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border:0}.report-table td:before{content:attr(data-label);font-weight:600;font-size:12px;flex:0 0 105px;color:#60707b}.report-table td>span{min-width:0;text-align:end;overflow-wrap:anywhere}}
.statistics-page{max-width:1320px}.statistics-page>.eyebrow{color:#2773a5}.statistics-page>h1{color:#163b65}.statistics-page .card{border-color:#d5e3ef;box-shadow:0 3px 15px #173c6508}.statistics-filters{display:grid;grid-template-columns:1.25fr 1fr 1fr 1fr 1fr auto;gap:12px;align-items:end}.statistics-filters label{margin:0;min-width:0}.statistics-filters input,.statistics-filters select{min-width:0}.statistics-filters>button{background:#185a98;border-color:#185a98;white-space:nowrap}.statistics-counters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:24px}.statistics-counter{padding:22px;border:1px solid #c9deef;border-radius:14px;background:linear-gradient(135deg,#fff,#eaf5ff);display:grid;gap:12px;color:#225678}.statistics-counter>span{font-size:13px;font-weight:600}.statistics-counter>strong{font-size:36px;line-height:1;font-weight:650;color:#143d6b;font-variant-numeric:tabular-nums}.statistics-counter:nth-child(2){background:linear-gradient(135deg,#fff,#fff4dc);border-color:#eddcba}.statistics-counter:nth-child(4){background:linear-gradient(135deg,#fff,#e6f8f5);border-color:#bde2dc}.statistics-bottom{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:20px}.statistics-bottom>.card{min-width:0;margin-top:0}.statistics-breakdown{display:grid;gap:16px;margin:24px 0}.statistics-bar-row{display:grid;grid-template-columns:minmax(100px,1.2fr) minmax(50px,1fr) 32px;align-items:center;gap:12px;font-size:13px}.statistics-bar-track{background:#edf2f8;border-radius:8px;height:10px}.statistics-bar{height:10px;background:linear-gradient(90deg,#276ab4,#12a7b6);border-radius:8px}.statistics-bar-row strong{text-align:end;font-variant-numeric:tabular-nums}.statistics-error{padding:14px;background:#fff1ef;border:1px solid #dca39c;border-radius:8px;color:#8f302c}.statistics-page th{white-space:normal}.statistics-page table{font-size:13px}.statistics-page .muted{font-size:13px;line-height:1.6}.statistics-page #statisticsMoney td{font-variant-numeric:tabular-nums}.statistics-page #statisticsMoney td:not(:first-child){white-space:nowrap}@media(max-width:1100px){.statistics-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.statistics-bottom{grid-template-columns:1fr}}@media(max-width:650px){.statistics-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.statistics-counters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.statistics-counter{padding:16px}.statistics-counter>strong{font-size:30px}.statistics-counter>span{min-height:32px}.statistics-page #statisticsMoney td:not(:first-child){white-space:normal}.statistics-page .report-table td>span{text-align:end}.statistics-page .actions{gap:8px}.statistics-page .actions a{font-size:13px}.statistics-bar-row{grid-template-columns:minmax(80px,1fr) minmax(40px,1fr) 24px}}
.brand .mark{background:transparent;object-fit:contain;border-radius:0;width:48px;height:48px}header #navigation a{display:inline-flex;align-items:center;min-height:40px;padding:7px 11px;border-radius:8px;text-decoration:none;color:#234767}header #navigation a:hover{background:#eaf3fb}header #navigation{gap:6px}

/* Keep account actions together at the edge, with a quiet local-preview badge. */
body>.service-header{justify-content:flex-start;flex-direction:row;gap:12px;padding:18px 32px;box-shadow:none}
.service-header>.brand{order:0;margin-inline-end:auto;min-width:0}
.service-header>.interface-language{order:1;margin:0 6px 0 0;gap:8px}
.service-header .interface-language select{min-height:40px;border-color:#d6e3f1;border-radius:10px;padding:8px 10px;width:118px}
.service-header #navigation{order:2;gap:8px;justify-content:flex-end}
.service-header #navigation a{min-height:40px;padding:9px 18px;border:1px solid #d6e3f1;border-radius:10px;font-size:13px;font-weight:600;line-height:20px;text-decoration:none}
.service-header #navigation .header-help{background:#fff;color:#48627d}
.service-header #navigation .header-help:hover{background:#f1f6fc;border-color:#b5cee7}
.service-header #navigation .header-signin{background:#176cc2;border-color:#176cc2;color:#fff;box-shadow:0 3px 8px #176cc21a}
.service-header #navigation .header-signin:hover{background:#125aa3;border-color:#125aa3}
body>footer{align-items:center}
body>footer #environment:not([hidden]){display:inline-flex;align-items:center;gap:6px;padding:4px 9px;background:#eaf0f7;color:#61748b;border:1px solid #d8e3ef;border-radius:20px;font-size:11px;line-height:1.4}
body>footer #environment::before{content:'';width:5px;height:5px;flex:none;border-radius:50%;background:#758aa3}
@media(max-width:650px){
 body>.service-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 10px;padding:16px}
 .service-header>.brand{font-size:18px;gap:8px;margin:0}.service-header>.brand .mark{width:36px;height:36px}.service-header>.brand small{font-size:10px}
 .service-header>.interface-language{margin:0;justify-self:end;gap:4px}.service-header .interface-language select{width:105px}
 .service-header #navigation{grid-column:1/-1;justify-self:end;max-width:100%}
}
