<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}Project Payments{% endblock %}</title>
<style>
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
margin: 0;
background: #f7f7f7;
color: #1f2933;
font: 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 26px; margin-bottom: 4px; }
h2 { font-size: 18px; margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 20px 0; text-align: left; vertical-align: top; }
th { color: #697586; font-size: 13px; }
input, textarea {
width: 100%;
border: 1px solid #cfd6dd;
border-radius: 6px;
padding: 10px;
font: inherit;
}
label { display: block; font-weight: 650; margin-bottom: 6px; }
button, .button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 38px;
border: 1px solid #176b5b;
border-radius: 6px;
background: #176b5b;
color: #fff;
padding: 8px 12px;
font: inherit;
font-weight: 650;
text-decoration: none;
cursor: pointer;
}
.secondary { background: #fff; border-color: #cfd6dd; color: #1f2933; }
.danger { background: #fff; border-color: #efb5ad; color: #b42318; }
.topbar { background: #fff; }
.topbar-inner, .page { max-width: 1080px; margin: 0 auto; padding: 16px 20px; }
.topbar-inner, .header-row, .nav, .searchbar {
display: flex;
align-items: center;
gap: 10px;
}
.topbar-inner, .header-row { justify-content: space-between; }
.brand { font-weight: 750; text-decoration: none; }
.public-logo {
margin: 0 0 18px;
text-align: center;
}
.public-logo img {
display: inline-block;
max-width: min(350px, 100%);
height: auto;
}
.title-line {
display: flex;
align-items: center;
gap: 10px;
}
.back-link {
color: #697586;
font-size: 24px;
line-height: 1;
text-decoration: none;
}
.page { padding-top: 28px; padding-bottom: 48px; }
.narrow { max-width: 680px; }
.section {
background: #fff;
border-radius: 8px;
padding: 18px;
margin-bottom: 16px;
}
.muted, .footer-note { color: #697586; }
.field { margin-bottom: 14px; }
.prewrap { white-space: pre-wrap; }
.star-emphasis { font-size: calc(1em + 1px); font-weight: 700; }
.inline { display: inline; }
.nav .inline { display: flex; }
.grid-2, .stats {
display: grid;
gap: 12px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 16px 0; }
.stat { border-radius: 8px; padding: 12px; }
.stat span { display: block; color: #697586; font-size: 13px; }
.stat strong { font-size: 19px; }
.alert { border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.alert.error { border-color: #efb5ad; color: #b42318; background: #fff0ee; }
.alert.info { background: #fff8e8; }
.alert.ok { background: #eaf7ef; }
.status {
border-radius: 999px;
background: #edf5ff;
color: #164c7d;
padding: 3px 9px;
font-size: 13px;
font-weight: 700;
text-transform: capitalize;
}
.status.paid,
.status.succeeded { background: #eaf7ef; color: #166534; }
.status.processing,
.status.pending { background: #fff8e8; color: #8a5a00; }
.status.failed,
.status.canceled { background: #fff0ee; color: #b42318; }
.project-list {
display: grid;
gap: 12px;
}
.project-card,
.payment-card {
background: #fff;
border-radius: 8px;
color: inherit;
text-decoration: none;
padding: 14px;
}
.invoice-line-card,
.invoice-summary {
background: #fff;
color: inherit;
text-decoration: none;
padding: 14px;
}
.project-card-main {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 12px;
align-items: start;
}
.project-card h2,
.payment-card h3 {
font-size: 18px;
margin: 0 0 4px;
}
.project-card-id { color: #697586; font-size: 13px; }
.project-card-amount { text-align: right; }
.project-card-amount span {
display: block;
color: #697586;
font-size: 13px;
}
.project-card-footer {
display: flex;
justify-content: flex-end;
margin-top: 12px;
}
.payment-card-reference { overflow-wrap: anywhere; }
.line-items-section {
background: #fff;
border-radius: 8px;
margin-bottom: 16px;
overflow: hidden;
}
.invoice-line-list {
display: grid;
gap: 10px;
}
.invoice-line-card {
display: grid;
grid-template-columns: minmax(0, 1fr) max-content;
gap: 12px;
align-items: start;
}
.invoice-line-description {
min-width: 0;
overflow-wrap: anywhere;
}
.invoice-line-amount {
min-width: 0;
text-align: right;
}
.invoice-line-amount span,
.invoice-summary-row span {
display: block;
color: #697586;
font-size: 13px;
}
.invoice-line-amount strong,
.invoice-summary-row strong {
overflow-wrap: anywhere;
}
.invoice-summary {
display: grid;
gap: 8px;
}
.invoice-summary-row {
display: grid;
grid-template-columns: minmax(0, 1fr) max-content;
gap: 12px;
align-items: baseline;
}
.invoice-summary-row + .invoice-summary-row {
border-top: 1px solid #eceff3;
padding-top: 8px;
}
.invoice-summary-total strong { font-size: 18px; }
.line-item {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 12px;
align-items: end;
border-radius: 8px;
padding: 14px;
margin-bottom: 12px;
background: #fafafa;
}
.line-item-text { grid-column: 1 / -1; }
.line-item-price { max-width: 180px; }
.line-item [data-remove-line] {
align-self: end;
justify-self: end;
}
.searchbar { margin-bottom: 14px; }
.searchbar input { flex: 1; }
.search-field {
position: relative;
flex: 1;
}
.search-field input { padding-right: 40px; }
.search-clear {
position: absolute;
top: 50%;
right: 8px;
min-height: 28px;
width: 28px;
border: 0;
background: transparent;
color: #697586;
padding: 0;
transform: translateY(-50%);
}
.search-clear:hover { background: transparent; color: #1f2933; }
.copy-field { position: relative; }
.copy-field input {
cursor: pointer;
padding-right: 76px;
}
.copy-indicator {
position: absolute;
top: 50%;
right: 12px;
width: 22px;
height: 22px;
color: #697586;
pointer-events: none;
transform: translateY(-50%);
}
.copy-indicator::before,
.copy-indicator::after {
content: "";
position: absolute;
width: 13px;
height: 13px;
border: 1.5px solid currentColor;
border-radius: 2px;
background: #fff;
}
.copy-indicator::before { left: 2px; top: 6px; }
.copy-indicator::after { left: 7px; top: 1px; }
.copy-indicator.copied {
width: auto;
height: auto;
color: #176b5b;
font-size: 13px;
font-weight: 700;
}
.copy-indicator.copied::before {
content: "Copied!";
position: static;
width: auto;
height: auto;
border: 0;
background: transparent;
}
.copy-indicator.copied::after { display: none; }
.has-sticky-pay { padding-bottom: 100px; }
.sticky-pay {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 10;
background: rgba(247, 247, 247, .96);
padding: 12px 20px;
}
.sticky-pay-inner {
max-width: 1080px;
margin: 0 auto;
display: flex;
justify-content: flex-end;
}
.sticky-pay button {
width: 100%;
}
.has-sticky-actions { padding-bottom: 104px; }
.sticky-actions {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 10;
background: rgba(247, 247, 247, .96);
padding: 12px 20px;
}
.sticky-actions-inner {
max-width: 1080px;
margin: 0 auto;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.sticky-actions .button,
.sticky-actions button,
.sticky-actions .inline,
.add-line-button {
width: 100%;
}
.full-width-form,
.full-width-form button {
width: 100%;
}
.has-sticky-index {
padding-top: 78px;
padding-bottom: 92px;
}
.sticky-index-top,
.sticky-index-search {
position: fixed;
left: 0;
right: 0;
z-index: 10;
background: rgba(247, 247, 247, .96);
padding: 12px 20px;
}
.sticky-index-top {
top: 0;
}
.sticky-index-search {
bottom: 0;
}
.sticky-index-actions,
.sticky-index-search-inner {
max-width: 1080px;
margin: 0 auto;
}
.sticky-index-actions {
display: grid;
grid-template-columns: 3fr 1fr;
gap: 10px;
}
.sticky-index-actions .button {
width: 100%;
}
.sticky-index-actions .logout-button {
background: #fff;
border-color: #efb5ad;
color: #b42318;
}
.sticky-index-search .searchbar {
margin: 0;
}
.empty { color: #697586; padding: 18px 0; }
.amount { text-align: right; }
@media (max-width: 760px) {
.topbar-inner, .header-row, .nav, .searchbar { align-items: stretch; flex-direction: column; }
.nav .inline, .nav .inline button, .nav .button { width: 100%; }
.grid-2, .stats, .line-item, .project-card-main { grid-template-columns: 1fr; }
.line-item-text { grid-column: auto; }
.line-item-price { max-width: none; }
.invoice-line-card,
.invoice-summary-row { grid-template-columns: 1fr; }
.invoice-line-amount { text-align: left; }
.project-card-amount { text-align: left; }
.project-card-footer { justify-content: flex-start; }
.sticky-pay button { width: 100%; }
}
@media print {
.sticky-pay {
display: none !important;
}
body.has-sticky-pay {
padding-bottom: 0 !important;
}
}
</style>
{% block head %}{% endblock %}
</head>
<body>
<main class="page {% block page_class %}{% endblock %}">
{% block content %}{% endblock %}
</main>
</body>
</html>