/*
 * Shared Reports sidebar: native report pages use the same MultivendorX
 * dashboard-tabs markup/classes as /dashboard/, so both screens match.
 */
#store-dashboard .dashboard-tabs-wrapper ul,
.hc-report-sidebar.dashboard-tabs-wrapper ul {
	max-height: calc(100vh - 5rem);
	overflow: auto;
}
#store-dashboard .dashboard-tabs .tab-name ul.subtabs.hc-reports-subtabs,
#store-dashboard .dashboard-tabs .tab-name ul.subtabs.hc-reports-subtabs.open,
.hc-report-sidebar .tab-name ul.subtabs.hc-reports-subtabs,
.hc-report-sidebar .tab-name ul.subtabs.hc-reports-subtabs.open {
	display: block;
	max-height: none;
	overflow: visible;
}

/* Native report / Pickup Point shell mirrors the SPA sidebar chrome.
 * MultivendorX sets .dashboard-tabs-wrapper { position:fixed } and
 * .tab-wrapper { margin-left:16rem }. Our shell uses flex instead, so
 * we must cancel the fixed sidebar or content slides underneath it.
 */
body.hc-report-document,
body.hc-pp-document {
	margin: 0;
	background: var(--color-background, #f3f4f6);
}
body.hc-report-document .site-header,
body.hc-report-document .site-footer,
body.hc-report-document .store-header,
body.hc-pp-document .site-header,
body.hc-pp-document .site-footer,
body.hc-pp-document .store-header {
	display: none !important;
}
.hc-report-layout {
	display: flex;
	align-items: stretch;
	min-height: 100vh;
	width: 100%;
	background: var(--color-background, #f3f4f6);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
}
.hc-report-layout * {
	box-sizing: border-box;
}
.hc-report-layout > .hc-report-sidebar,
.hc-report-layout > .hc-report-sidebar.dashboard-tabs-wrapper,
body.hc-report-document .hc-report-sidebar,
body.hc-pp-document .hc-report-sidebar {
	flex: 0 0 16rem;
	width: 16rem !important;
	max-width: 16rem;
	position: relative !important;
	top: auto !important;
	left: auto !important;
	transform: none !important;
	height: auto;
	min-height: 100vh;
	max-height: none;
	overflow: auto;
	background: var(--background-white, #fff);
	border-right: 0.063rem solid var(--border-color, #ddd);
	z-index: 2 !important;
}
.hc-report-sidebar .logo-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.875rem 1.5rem;
	height: 4.063rem;
}
.hc-report-sidebar .hc-report-brand {
	display: block;
	padding: 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--color-primary, #191578);
	text-decoration: none;
}
.hc-report-sidebar .dashboard-tabs {
	height: 87vh;
	position: relative;
}
.hc-report-sidebar .dashboard-tabs > ul {
	padding: 0;
	margin: 0;
	max-height: 80vh;
	overflow: auto;
	list-style: none;
}
.hc-report-sidebar .dashboard-tabs > ul > li.tab-name {
	padding: 0 0.75rem;
	position: relative;
	margin-top: 0.5rem;
}
.hc-report-sidebar .dashboard-tabs > ul > li.tab-name > a.tab {
	display: flex;
	position: relative;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem;
	border-radius: 0.375rem;
	font-size: 0.975rem;
	font-weight: 500;
	line-height: 1.25rem;
	color: inherit;
	text-decoration: none;
	transition: all 0.3s ease;
}
.hc-report-sidebar .dashboard-tabs > ul > li.tab-name > a.tab i[class*="adminfont-"]:not(.admin-arrow) {
	font-size: 1.25rem;
}
.hc-report-sidebar .dashboard-tabs > ul > li.tab-name > a.tab .admin-arrow {
	position: absolute;
	top: 25%;
	right: 1rem;
	font-size: 1.4rem;
	transition: transform 0.3s ease;
}
.hc-report-sidebar .dashboard-tabs > ul > li.tab-name > a.tab .admin-arrow.rotate {
	transform: rotate(90deg);
}
.hc-report-sidebar .dashboard-tabs > ul > li.tab-name > a.tab.active,
.hc-report-sidebar .dashboard-tabs > ul > li.tab-name.active > a.tab {
	background-color: var(--color-primary, #191578);
	color: #fff;
}
.hc-report-sidebar .dashboard-tabs > ul > li.tab-name:not(.active) > a.tab:hover {
	color: var(--color-primary, #191578);
	background: var(--background-primary, #eef0f7);
}
.hc-report-sidebar .subtabs {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0;
}
.hc-report-sidebar .subtabs.open {
	display: block;
}
.hc-report-sidebar .subtabs li {
	margin-top: 0.15rem;
	padding: 0;
}
.hc-report-sidebar .subtabs a.tab {
	display: flex;
	align-items: center;
	padding: 0.65rem 0.75rem 0.65rem 2.35rem;
	border-radius: 0.375rem;
	font-size: 0.925rem;
	font-weight: 500;
	line-height: 1.25rem;
	color: inherit;
	text-decoration: none;
}
.hc-report-sidebar .subtabs a.tab:hover {
	color: var(--color-primary, #191578);
	background: var(--background-primary, #eef0f7);
}
.hc-report-sidebar .subtabs li.active a.tab,
.hc-report-sidebar .subtabs a.tab.active {
	background-color: var(--color-primary, #191578);
	color: #fff;
}
.hc-report-sidebar .tab-name.hc-report-settings {
	margin-bottom: 0.75rem;
}

/* Match SPA submenu active/hover on the dashboard Reports list too. */
#store-dashboard .subtabs.hc-reports-subtabs li.active > a.tab,
#store-dashboard .subtabs.hc-reports-subtabs a.tab.active {
	background-color: var(--color-primary, #191578);
	color: #fff;
}
#store-dashboard .subtabs.hc-reports-subtabs a.tab:hover {
	color: var(--color-primary, #191578);
	background: var(--background-primary, #eef0f7);
}
#store-dashboard .subtabs.hc-reports-subtabs li.active > a.tab:hover,
#store-dashboard .subtabs.hc-reports-subtabs a.tab.active:hover {
	background-color: var(--color-primary, #191578);
	color: #fff;
}

.hc-report-layout > .hc-report-workspace,
body.hc-report-document .hc-report-workspace,
body.hc-pp-document .hc-report-workspace {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	max-width: 100%;
	margin-left: 0 !important;
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--color-background, #f3f4f6);
}
.hc-report-header {
	min-height: 64px;
	padding: 16px 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #fff;
	border-bottom: 1px solid #ddd;
	position: relative;
	z-index: 1;
}
.hc-report-header a { color: var(--color-primary, #191578); text-decoration: none; }
.hc-report-account { color: #52606d; font-size: 13px; }
.hc-report-layout .hc-report-page {
	margin: 0;
	max-width: none;
	padding: 24px 28px;
	flex: 1;
	min-width: 0;
	width: 100%;
}

.hc-reports { margin: 0; border: 1px solid #e0e3e7; border-radius: 8px; padding: 24px; background: #fff; color: var(--color-text, #263238); }
.hc-reports-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.hc-report-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid #ddd; border-radius: 6px; color: inherit; }
.hc-report-card:hover, .hc-report-card:focus { border-color: var(--color-primary, #191578); background: #eef0f7; }
.hc-report-card span { color: #666; }
.hc-report-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.hc-report-filters label { display: flex; flex-direction: column; gap: 6px; }
.hc-report-filters input, .hc-report-filters select { min-height: 40px; padding: 8px; border: 1px solid #ccc; border-radius: 3px; }
.hc-report-table-wrap { max-width: 100%; overflow-x: auto; margin: 20px 0; }
.hc-report-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hc-report-table th, .hc-report-table td { padding: 12px; border: 1px solid #ddd; text-align: left; min-width: 130px; }
.hc-report-table th { background: #f5f5f5; }
.hc-report-table caption { text-align: left; font-weight: 600; margin-bottom: 10px; }
.hc-report-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; }
.hc-report-pagination[hidden] { display: none; }
#hc-report-warnings p { padding: 10px; background: #fff8e8; border-left: 3px solid #ba8a25; }
.hc-reports button:disabled { opacity: .6; cursor: default; }
@media (max-width: 600px) { .hc-reports { padding: 12px; } .hc-report-filters label { width: 100%; } }
@media (max-width: 760px) {
	.hc-report-layout { flex-direction: column; }
	.hc-report-layout > .hc-report-sidebar,
	.hc-report-layout > .hc-report-sidebar.dashboard-tabs-wrapper,
	body.hc-report-document .hc-report-sidebar,
	body.hc-pp-document .hc-report-sidebar {
		position: relative !important;
		width: 100% !important;
		max-width: none;
		flex-basis: auto;
		height: auto;
		min-height: 0;
		max-height: none;
	}
	.hc-report-header { padding: 14px 16px; }
	.hc-report-layout .hc-report-page { padding: 12px; }
}
.hc-reports h1 { margin: 0 0 24px; font-size: 24px; font-weight: 600; line-height: 1.3; color: var(--color-text, #263238); }
.hc-reports a { text-decoration: none; }
.hc-report-card { min-height: 96px; justify-content: center; border-color: #e0e3e7; transition: border-color .15s, background .15s; }
.hc-report-filters { padding: 18px; border: 1px solid #e0e3e7; border-radius: 6px; background: #fafbfc; }
.hc-report-filters label { font-size: 13px; font-weight: 500; color: #52606d; }
.hc-report-filters input, .hc-report-filters select { background: #fff; color: #263238; font-size: 14px; border-color: #d5d9df; border-radius: 6px; }
.hc-reports .button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 18px; border: 1px solid var(--color-primary, #191578); border-radius: 6px; background: var(--color-primary, #191578); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; }
.hc-reports .button:hover { filter: brightness(.92); }
.hc-reports .button:focus-visible, .hc-report-filters input:focus-visible, .hc-report-filters select:focus-visible, .hc-report-card:focus-visible { outline: 2px solid var(--color-primary, #191578); outline-offset: 3px; }
.hc-report-table-wrap { border: 1px solid #e0e3e7; border-radius: 6px; }
.hc-report-table { margin: 0; }
.hc-report-table caption { padding: 12px; margin: 0; }
.hc-report-table th, .hc-report-table td { border: 0; border-bottom: 1px solid #e0e3e7; padding: 14px 16px; }
.hc-report-table th { background: #f6f7f9; color: #52606d; font-weight: 600; }
.hc-report-table tbody tr:hover { background: #fafbfc; }
.hc-report-table tfoot { background: #f6f7f9; font-weight: 600; }
.hc-report-pagination { padding-top: 12px; }
#hc-report-status { padding: 12px 0; color: #52606d; }
#hc-report-status.woocommerce-error { padding: 14px; border: 1px solid #efc4c4; border-radius: 6px; background: #fff5f5; color: #9d2525; }
@media (max-width: 760px) { .hc-report-header { padding: 14px 16px; } .hc-report-layout .hc-report-page { padding: 12px; } .hc-reports { padding: 16px; } .hc-report-account { max-width: 45%; overflow-wrap: anywhere; } }
.hc-report-notice-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.hc-reports .hc-report-notice-links a { color: var(--color-primary, #191578); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
