/* ============================================================================
   Orilogy Affiliate - My Account tabs

   Reuses the .oacc-* tokens and atoms from orilogy-account.css (panel, mono,
   pager, btn) so the three affiliate tabs read as part of the same account
   area rather than a bolted-on module.
   ========================================================================= */

.oaff-notice {
	padding: 16px 18px;
	background: var(--oacc-paper, #fffefb);
	border: 1px solid var(--oacc-hair, #eee);
	border-left: 3px solid #8a6a2f;
	border-radius: 10px;
	font-size: 14.5px;
	color: var(--oacc-ink, #241f20);
}

.oaff-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
	margin-bottom: 22px;
}

.oaff-stat {
	padding: 14px 16px;
	background: var(--oacc-paper, #fffefb);
	border: 1px solid var(--oacc-hair, #eee);
	border-radius: 10px;
}

.oaff-stat dt {
	margin: 0 0 4px;
	font-family: var(--oacc-mono, monospace);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--oacc-muted, #999);
}

.oaff-stat dd {
	margin: 0;
	font-size: 18px;
	color: var(--oacc-ink, #241f20);
	font-variant-numeric: tabular-nums;
}

.oaff-share {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.oaff-qr {
	flex: 0 0 auto;
	width: 140px;
	height: 140px;
	background: #fff;
	border: 1px solid var(--oacc-hair, #eee);
	border-radius: 10px;
	padding: 8px;
}

.oaff-share-fields {
	flex: 1 1 260px;
	min-width: 0;
}

.oaff-label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--oacc-soft, #555);
}

.oaff-copyrow {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.oaff-copyrow input {
	flex: 1;
	min-width: 0;
	min-height: 42px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid var(--oacc-line, #ddd);
	border-radius: 9px;
	font-family: var(--oacc-mono, monospace);
	font-size: 13px;
	color: var(--oacc-ink, #241f20);
}

.oaff-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
	margin-bottom: 8px;
}

.oaff-table th,
.oaff-table td {
	padding: 10px 8px 10px 0;
	border-bottom: 1px solid var(--oacc-hair, #eee);
	text-align: left;
}

.oaff-table thead th {
	font-family: var(--oacc-mono, monospace);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--oacc-muted, #999);
}

.oaff-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-family: var(--oacc-mono, monospace);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.oaff-pill--pending  { background: #fdf3e0; color: #7a5200; }
.oaff-pill--approved { background: #e6edfb; color: #1d4ed8; }
.oaff-pill--paid     { background: #e7f7ec; color: #14663a; }
.oaff-pill--rejected { background: #fdeceb; color: #8a1c14; }

@media (max-width: 600px) {
	.oaff-share {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.oaff-share-fields {
		width: 100%;
	}
}
