/* Public tokenized billing statement — standalone page, print friendly. */

.ann-statement-body {
	margin: 0;
	background: #f3f4f6;
	font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #111827;
	-webkit-font-smoothing: antialiased;
}

.ann-statement {
	max-width: 880px;
	margin: 0 auto;
	padding: 32px 20px 60px;
}

.ann-statement__error {
	background: #fff;
	border-radius: 14px;
	padding: 48px 32px;
	text-align: center;
	margin-top: 10vh;
	box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07);
}

.ann-statement__error h1 { font-size: 20px; margin: 0 0 8px; }
.ann-statement__error p { color: #6b7280; margin: 0; }

.ann-statement__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 22px;
}

.ann-statement__brand { display: flex; align-items: center; gap: 14px; }
.ann-statement__logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; }
.ann-statement__title { font-size: 21px; margin: 0; }
.ann-statement__company { margin: 2px 0 0; color: #6b7280; font-size: 14px; }

.ann-statement__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	font-size: 12.5px;
	color: #6b7280;
}

.ann-statement__print {
	appearance: none;
	border: 1px solid #d1d5db;
	background: #fff;
	border-radius: 8px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}

.ann-statement__print:hover { background: #f9fafb; }

.ann-statement__empty {
	background: #fff;
	border-radius: 14px;
	padding: 40px;
	text-align: center;
	color: #6b7280;
}

.ann-statement__agreement {
	background: #fff;
	border-radius: 14px;
	padding: 22px 24px;
	margin-bottom: 18px;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.ann-statement__agreement-head {
	display: flex;
	justify-content: space-between;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.ann-statement__chip {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 6px;
	background: #dbeafe;
	color: #1d4ed8;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.ann-statement__agreement-title { font-size: 17px; margin: 8px 0 4px; }
.ann-statement__summary { color: #4b5563; font-size: 13.5px; margin: 0 0 6px; max-width: 480px; }
.ann-statement__dates { color: #9ca3af; font-size: 12.5px; margin: 0; }

.ann-statement__totals { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }

.ann-statement__total { text-align: right; }

.ann-statement__total-label {
	display: block;
	font-size: 10.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #9ca3af;
}

.ann-statement__total-value {
	display: block;
	font-size: 17px;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	margin-top: 2px;
}

.ann-statement__total.is-due .ann-statement__total-value { color: #dc2626; }

.ann-statement__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.ann-statement__table th {
	text-align: left;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	padding: 7px 9px;
	border-bottom: 2px solid #e5e7eb;
}

.ann-statement__table td {
	padding: 9px;
	border-bottom: 1px solid #f3f4f6;
}

.ann-statement__table .is-num { text-align: right; font-variant-numeric: tabular-nums; }

.ann-statement__status {
	display: inline-block;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	background: #f3f4f6;
	color: #4b5563;
	white-space: nowrap;
}

.ann-statement__status.is-paid { background: #ecfdf5; color: #065f46; }
.ann-statement__status.is-invoiced,
.ann-statement__status.is-partial { background: #eff6ff; color: #1e40af; }
.ann-statement__status.is-overdue { background: #fef2f2; color: #991b1b; }

.ann-statement__notes h3,
.ann-statement__agreement > h3 { font-size: 14px; margin: 18px 0 8px; }

.ann-statement__note {
	background: #f9fafb;
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 8px;
}

.ann-statement__note p { margin: 0 0 4px; font-size: 13px; white-space: pre-wrap; }
.ann-statement__note-date { font-size: 11.5px; color: #9ca3af; }

.ann-statement__foot {
	text-align: center;
	color: #9ca3af;
	font-size: 12.5px;
	margin-top: 28px;
}

@media print {
	.ann-statement-body { background: #fff; }
	.ann-statement { padding: 0; max-width: none; }
	.ann-statement__print { display: none; }
	.ann-statement__agreement { box-shadow: none; border: 1px solid #e5e7eb; page-break-inside: avoid; }
}
