/* ── PSD Sales Analytics — Public Shortcode Styles ─────────────────────────── */

.psd-pub-analytics {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #2c3338;
	margin: 1.5em 0;
}

/* ── Updated notice ──────────────────────────────────────────────────────────── */
.psd-pub-updated {
	font-size: 0.8em;
	color: #646970;
	margin: 0 0 1.25em;
}

/* ── No-data notice ──────────────────────────────────────────────────────────── */
.psd-pub-notice {
	background: #f0ede8;
	border-left: 4px solid #2A1171;
	padding: 12px 16px;
	border-radius: 3px;
	font-size: 0.9em;
	color: #3c434a;
}
.psd-pub-notice p { margin: 0; }

/* ── Chart grid ──────────────────────────────────────────────────────────────── */
.psd-pub-chart-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 28px;
}

.psd-pub-chart-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 16px 18px 18px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.psd-pub-chart-card--full {
	grid-column: 1 / -1;
}

.psd-pub-chart-title {
	font-size: 0.95em;
	font-weight: 600;
	color: #2A1171;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid #2A1171;
}

.psd-pub-canvas-wrap {
	position: relative;
}

/* ── Section title ───────────────────────────────────────────────────────────── */
.psd-pub-section-title {
	font-size: 1em;
	font-weight: 600;
	color: #2A1171;
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #2A1171;
}

/* ── Table ───────────────────────────────────────────────────────────────────── */
.psd-pub-table-wrap {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 16px 18px 18px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.psd-pub-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.psd-pub-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85em;
	min-width: 600px;
}

.psd-pub-table th {
	background: #2A1171;
	color: #fff;
	font-weight: 600;
	font-size: 0.8em;
	padding: 7px 10px;
	text-align: center;
	white-space: nowrap;
	border: 1px solid #1a1060;
}

.psd-pub-table th:first-child { text-align: left; }

.psd-pub-table td {
	padding: 6px 10px;
	text-align: center;
	border: 1px solid #dcdcde;
	color: #2c3338;
}

.psd-pub-table td.psd-pub-month {
	text-align: left;
	font-weight: 600;
	background: #f5f0e6;
	white-space: nowrap;
}

.psd-pub-table tbody tr:nth-child(even) td {
	background: #f7f5fb;
}

.psd-pub-table tbody tr:nth-child(even) td.psd-pub-month {
	background: #ede8d8;
}

.psd-pub-table .psd-pub-subtotal {
	background: #f0ede8 !important;
	font-weight: 600;
}

.psd-pub-table tfoot .psd-pub-totals td {
	background: #2A1171;
	color: #fff;
	font-weight: 600;
	border-color: #1a1060;
}

.psd-pub-table tfoot .psd-pub-totals .psd-pub-subtotal {
	background: #1a1060 !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.psd-pub-chart-grid {
		grid-template-columns: 1fr;
	}
	.psd-pub-chart-card--full {
		grid-column: auto;
	}
}
