/* Bookd Demo Switcher – Reports preview. Looks like the real Bookd Pro screen in WordPress. */
.bdr {
	max-width: 1200px;
	--bdr-bg: #f0f0f1;
	--bdr-card: #fff;
	--bdr-line: #dcdcde;
	--bdr-text: #1d2327;
	--bdr-muted: #646970;
	--bdr-blue: #2271b1;
	--bdr-indigo: #1f2b5c;
	--bdr-marigold: #f2a93b;
	--bdr-marigold-soft: #fff4e0;
	margin: 0 0 2em;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: var(--bdr-text);
	text-align: left;
}

.bdr *,
.bdr *::before,
.bdr *::after {
	box-sizing: border-box;
}

.bdr p {
	margin: 0;
}

/* The one addition to the real screen: says plainly that this is sample data. */
.bdr-sample {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 12px 16px;
	border-radius: 10px 10px 0 0;
	background: var(--bdr-marigold-soft);
	border: 1px solid #f3d29a;
	border-bottom: 0;
}

.bdr a.bdr-cta {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 8px;
	background: var(--bdr-marigold);
	color: #1b2240;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.bdr a.bdr-cta:hover {
	background: #e89a25;
}

.bdr-screen {
	padding: 20px;
	background: var(--bdr-bg);
	border: 1px solid var(--bdr-line);
	border-radius: 0 0 10px 10px;
}

.bdr-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.bdr .bdr-title {
	margin: 0;
	padding: 0;
	font-size: 23px;
	font-weight: 400;
	line-height: 1.3;
	color: var(--bdr-text);
}

.bdr-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 8px;
}

.bdr-filters label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	font-size: 12px;
	color: var(--bdr-muted);
}

.bdr select {
	min-height: 32px;
	padding: 0 28px 0 8px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background-color: #fff;
	font: inherit;
	font-size: 14px;
	color: var(--bdr-text);
}

.bdr button.bdr-btn {
	min-height: 32px;
	margin: 0;
	padding: 0 10px;
	border: 1px solid var(--bdr-blue);
	border-radius: 4px;
	background: #f6f7f7;
	color: var(--bdr-blue);
	font: inherit;
	font-size: 13px;
	line-height: 30px;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}

.bdr button.bdr-btn:hover {
	background: #f0f0f1;
	color: #135e96;
	border-color: #135e96;
}

/* Tabs, like WordPress's nav-tab. */
.bdr-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	margin: 0 0 16px;
	border-bottom: 1px solid #c3c4c7;
}

.bdr button.bdr-tab {
	margin: 0 0 -1px;
	padding: 6px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 0;
	background: #dcdcde;
	color: #50575e;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.7;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
}

.bdr button.bdr-tab:hover {
	background: #fff;
	color: #3c434a;
}

.bdr button.bdr-tab[aria-selected="true"] {
	background: var(--bdr-bg);
	border-bottom-color: var(--bdr-bg);
	color: #000;
}

.bdr button:focus-visible,
.bdr select:focus-visible,
.bdr a:focus-visible {
	outline: 2px solid var(--bdr-blue);
	outline-offset: 1px;
}

/* Headline figures. */
.bdr-kpis {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.bdr-kpi {
	padding: 14px 16px;
	background: var(--bdr-card);
	border: 1px solid var(--bdr-line);
	border-radius: 8px;
}

.bdr .bdr-kpi__label {
	font-size: 13px;
	color: var(--bdr-muted);
}

.bdr .bdr-kpi__value {
	margin: 2px 0;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.bdr .bdr-kpi__note {
	font-size: 12px;
	color: var(--bdr-muted);
}

.bdr .bdr-kpi__note.is-up {
	color: #00703c;
}

.bdr .bdr-kpi__note.is-down {
	color: #b32d2e;
}

/* Cards and grids. */
.bdr-card {
	margin-bottom: 16px;
	padding: 16px;
	background: var(--bdr-card);
	border: 1px solid var(--bdr-line);
	border-radius: 8px;
	min-width: 0;
}

.bdr-grid .bdr-card {
	margin-bottom: 0;
}

.bdr .bdr-card__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--bdr-text);
	text-transform: none;
	letter-spacing: normal;
}

.bdr-grid {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}

.bdr-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bdr-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bdr-chart {
	position: relative;
	height: 240px;
}

.bdr-chart--tall {
	height: 280px;
	margin-top: 8px;
}

.bdr .bdr-hint {
	margin: -4px 0 12px;
	font-size: 13px;
	color: var(--bdr-muted);
}

.bdr .bdr-empty {
	padding: 18px 0;
	color: var(--bdr-muted);
}

/* Tables, like WordPress list tables. */
.bdr-table-wrap {
	overflow-x: auto;
	margin-bottom: 8px;
}

.bdr table.bdr-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	border: 1px solid #c3c4c7;
	font-size: 13px;
	background: #fff;
}

.bdr .bdr-table th,
.bdr .bdr-table td {
	padding: 8px 10px;
	border: 0;
	border-bottom: 1px solid #f0f0f1;
	text-align: left;
	vertical-align: top;
	white-space: nowrap;
}

.bdr .bdr-table th {
	border-bottom: 1px solid #c3c4c7;
	font-weight: 600;
	color: var(--bdr-text);
	background: #fff;
}

.bdr .bdr-table tbody tr:nth-child(odd) td {
	background: #f6f7f7;
}

.bdr .bdr-table .num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.bdr .bdr-table td:first-child {
	white-space: normal;
	min-width: 160px;
}

.bdr-pill {
	display: inline-block;
	padding: 1px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.bdr-pill.is-danger {
	background: #fcf0f1;
	color: #b32d2e;
}

.bdr-pill.is-warning {
	background: #fcf9e8;
	color: #8a6116;
}

.bdr-pill.is-info {
	background: #f0f6fc;
	color: #135e96;
}

@media (max-width: 900px) {
	.bdr-grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.bdr-screen {
		padding: 12px;
	}

	.bdr-grid--2,
	.bdr-grid--3 {
		grid-template-columns: 1fr;
	}

	.bdr-filters,
	.bdr-filters label {
		width: 100%;
	}

	.bdr select {
		width: 100%;
	}

	.bdr-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
	}

	.bdr button.bdr-tab {
		white-space: nowrap;
	}
}

@media print {
	body * {
		visibility: hidden;
	}

	.bdr,
	.bdr * {
		visibility: visible;
	}

	.bdr {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
	}

	.bdr-filters,
	.bdr-tabs,
	.bdr a.bdr-cta {
		display: none !important;
	}

	.bdr-screen {
		border: 0;
		background: #fff;
		padding: 0;
	}

	.bdr-card,
	.bdr-kpi {
		break-inside: avoid;
	}
}
