/**
 * Public frontend dashboard — sidebar + main, accent #fdc444.
 */

.eam-fe {
	--eam-fe-accent: #fdc444;
	--eam-fe-accent-dark: #e8b520;
	--eam-fe-accent-soft: rgba(253, 196, 68, 0.22);
	--eam-fe-bg: #e8eaef;
	--eam-fe-surface: #ffffff;
	--eam-fe-main-tint: #f7f8fb;
	--eam-fe-sidebar-bg: #fafbfe;
	--eam-fe-sidebar-border: #e6e8f0;
	--eam-fe-maroon: #9b2335;
	--eam-fe-text: #16181d;
	--eam-fe-muted: #5c6470;
	--eam-fe-border: #e2e5ec;
	--eam-fe-radius: 16px;
	--eam-fe-radius-sm: 10px;
	--eam-fe-sidebar-w: 18.5rem;
	box-sizing: border-box;
	font-family: 'Inter', sans-serif !important;
}


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

/**
 * Fill parent width only — avoids 100vw scrollbar overflow (no page horizontal scroll).
 */
#eam-fe-root.eam-fe {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: var(--eam-fe-bg);
	position: relative;
	overflow-x: hidden;
}

#eam-fe-root.eam-fe .eam-fe-layout {
	background: var(--eam-fe-surface);
}

/* Theme / block wrappers: never expand past column */
.entry-content #eam-fe-root.eam-fe,
.post-content #eam-fe-root.eam-fe,
.wp-block-shortcode #eam-fe-root.eam-fe,
article #eam-fe-root.eam-fe {
	max-width: 100%;
}

.eam-fe--gate {
	max-width: 36rem;
	margin: 2rem auto;
	padding: 2.5rem 1.5rem;
	text-align: center;
	background: linear-gradient(160deg, var(--eam-fe-main-tint) 0%, var(--eam-fe-surface) 100%);
	border-radius: var(--eam-fe-radius);
	border: 1px solid var(--eam-fe-border);
	box-shadow: 0 8px 32px rgba(22, 24, 29, 0.06);
}

.eam-fe-gate {
	margin: 0;
	color: var(--eam-fe-muted);
	font-size: 1.05rem;
}

/* —— Layout: sidebar (panel) | main —— */
.eam-fe-layout {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	border-radius: 0;
	border: none;
	border-top: 1px solid var(--eam-fe-border);
	border-bottom: 1px solid var(--eam-fe-border);
	box-shadow: none;
	overflow: hidden;
	overflow-x: hidden;
	min-height: min(70vh, 880px);
}

@media (min-width: 782px) {
	.eam-fe-layout {
		flex-direction: row;
		align-items: stretch;
		min-height: min(80vh, 1100px);
	}
}

.eam-fe-sidebar {
	flex-shrink: 0;
	background: var(--eam-fe-sidebar-bg);
	border-bottom: 1px solid var(--eam-fe-sidebar-border);
	padding: 1.35rem 1.15rem 1.5rem;
	box-shadow: 0 1px 0 rgba(22, 24, 29, 0.04);
}

@media (min-width: 782px) {
	.eam-fe-sidebar {
		width: var(--eam-fe-sidebar-w);
		flex: 0 0 min(var(--eam-fe-sidebar-w), 32vw);
		max-width: var(--eam-fe-sidebar-w);
		border-bottom: none;
		border-right: 1px solid var(--eam-fe-sidebar-border);
		padding: 1.85rem 1.35rem 2rem;
		box-shadow:
			inset -1px 0 0 rgba(22, 24, 29, 0.06),
			4px 0 24px rgba(22, 24, 29, 0.04);
		align-self: stretch;
	}
}

.eam-fe-sidebar__brand {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--eam-fe-border);
}

.eam-fe-sidebar__mark {
	display: block;
	width: 2.65rem;
	height: 2.65rem;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--eam-fe-accent) 0%, var(--eam-fe-accent-dark) 100%);
	box-shadow: 0 4px 14px rgba(253, 196, 68, 0.45);
	flex-shrink: 0;
}

.eam-fe-sidebar__titles {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.eam-fe-sidebar__kicker {
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--eam-fe-muted);
}

.eam-fe-sidebar__title {
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.eam-fe-main {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	background: var(--eam-fe-main-tint);
}

.eam-fe-shell {
	padding: 1rem 0.85rem 1.35rem;
	max-width: none;
	width: 100%;
	min-width: 0;
}

@media (min-width: 600px) {
	.eam-fe-shell {
		padding: 1.1rem 1rem 1.35rem;
		margin: 0;
		background: #fff;
	}
}

@media (min-width: 782px) {
	.eam-fe-shell {
		padding: 1.65rem clamp(1rem, 2.5vw, 2.25rem) 2rem;
	}
}

/* —— Nav (vertical in sidebar) —— */
.eam-fe-nav {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eam-fe-nav__item {
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
	padding: 0.65rem 0.9rem;
	border-radius: var(--eam-fe-radius-sm);
	font-weight: 600;
	font-size: clamp(0.85rem, 2.8vw, 0.92rem);
	text-decoration: none;
	color: var(--eam-fe-text);
	background: transparent;
	border: 1px solid transparent;
	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease;
}

.eam-fe-page-cell {
	display: flex;
	align-items: center;
	gap: 8px;
}

.eam-fe-more-btn {
	color: #4b5563;
	padding-bottom: 15px !important;
	padding: 10px;
	font-weight: 700;
	border:0px !important;
	cursor: pointer;
	text-decoration: none;
}

.eam-fe-more-btn:hover {
	border-color: #c5ccd9;
	background-color: #fff !important;
	color: #000 !important;
	text-decoration: none;
}
.eam-fe-more-btn:active {
	border-color: #c5ccd9;
	background-color: #fff !important;
	color: #000 !important;
	text-decoration: none;
}
.eam-fe-more-btn:focus {
	border-color: #c5ccd9;
	background-color: #fff !important;
	color: #000 !important;
	text-decoration: none;
}

.eam-fe-modal[hidden] {
	display: none !important;
}

.eam-fe-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
}

#eam-fe-instances-modal {
	z-index: 999999;
}

#eam-fe-history-editor-modal {
	z-index: 1000009;
}

.eam-fe-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.eam-fe-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(900px, calc(100% - 24px));
	max-height: calc(100% - 40px);
	margin: 20px auto;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.eam-fe-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #eceff5;
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 2;
}

.eam-fe-modal__title {
	margin: 0;
	font-size: 16px;
}

.eam-fe-modal__close {
	background: #fff;
	border: 1px solid #d8dce6;
	border-radius: 6px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 2px !important;
	text-decoration: none;
}

.eam-fe-modal__body {
	padding: 12px 16px 16px;
	overflow: auto;
	max-height: calc(100vh - 120px);
}

.eam-fe-modal__table th {
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
}

.eam-fe-modal__dialog--editor {
	width: min(620px, calc(100% - 24px));
}

.eam-fe-row-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.eam-fe-row-action-btn {
	border: 1px solid #d2d8e4;
	background: #fff;
	border-radius: 8px;
	min-width: 34px;
	height: 34px;
	padding: 0 8px !important;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
}

.eam-fe-row-action-btn:hover {
	background: #f8fafc !important;
	border-color: #bbc5d6;
}

.eam-fe-row-action-btn--delete {
	color: #b42318;
}

.eam-fe-edit-form {
	display: grid;
	gap: 10px;
}

.eam-fe-edit-form__label {
	font-size: 12px;
	color: #64748b;
}

.eam-fe-edit-form__actions {
	margin-top: 6px;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.eam-fe-edit-form__error {
	margin: 6px 0 0;
	color: #b42318;
	font-size: 13px;
}

a.eam-fe-nav__item:hover {
	background: var(--eam-fe-surface);
	border-color: var(--eam-fe-border);
	color: var(--eam-fe-text);
	box-shadow: 0 2px 8px rgba(22, 24, 29, 0.05);
}

.eam-fe-nav__item--current {
	background: linear-gradient(135deg, var(--eam-fe-accent) 0%, var(--eam-fe-accent-dark) 100%);
	border-color: transparent;
	color: #1a1a1a;
	box-shadow: 0 4px 16px rgba(253, 196, 68, 0.35);
}

.eam-fe-nav__item--disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.wp-block-post-title {
	display: none;
}

.wp-block-group-is-layout-constrained {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/**
 * Desktop: remove theme “global padding” on the wrapper that contains the dashboard
 * (full-width group) so tables get more horizontal space.
 */
@media (min-width: 782px) {
	.wp-block-group.alignfull.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained:has(#eam-fe-root) {
		--wp--style--root--padding-left: 0 !important;
		--wp--style--root--padding-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		padding-inline: 0 !important;
	}
}

.eam-fe-hero {
	margin-bottom: 1.35rem;
	padding-bottom: 1.15rem;
	border-bottom: 1px solid var(--eam-fe-border);
}

.eam-fe-hero__title {
	margin: 0 0 0.4rem;
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.eam-fe-hero__lead {
	margin: 0;
	color: var(--eam-fe-muted);
	font-size: 0.96rem;
	max-width: 52rem;
}

.eam-fe-toolbar {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.85rem;
	padding: 0.95rem 1rem;
	background: var(--eam-fe-surface);
	border-radius: var(--eam-fe-radius-sm);
	border: 1px solid var(--eam-fe-border);
	margin-bottom: 1.15rem;
	box-shadow: 0 2px 12px rgba(22, 24, 29, 0.04);
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

@media (min-width: 720px) {
	.eam-fe-toolbar {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-end;
		justify-content: space-between;
		gap: 1rem;
		padding: 1.1rem 1.2rem;
		margin-bottom: 1.35rem;
	}
}

.eam-fe-toolbar__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.65rem 0.85rem;
	width: 100%;
	min-width: 0;
}

@media (min-width: 720px) {
	.eam-fe-toolbar__filters {
		flex: 1 1 auto;
		width: auto;
		max-width: 100%;
	}
}

.eam-fe-toolbar__filter-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	width: 100%;
	margin-bottom: 10px !important;
}
.eam-fe-toolbar__actions{
	margin-bottom: 10px !important;
}
.eam-fe-toolbar__filter-actions--analysis .eam-fe-btn.eam-fe-btn--secondary,
.eam-fe-toolbar__filter-actions--analysis .eam-fe-btn.eam-fe-btn--ghost {
	background: #fdc444;
	color: #1a1a1a;
	border: 1px solid rgba(22, 24, 29, 0.12);
}
.eam-fe-toolbar__filter-actions--analysis .eam-fe-btn.eam-fe-btn--secondary:hover,
.eam-fe-toolbar__filter-actions--analysis .eam-fe-btn.eam-fe-btn--ghost:hover {
	background: #fdc444;
	color: #1a1a1a;
	filter: brightness(1.06);
}
@media (min-width: 480px) {
	.eam-fe-toolbar__filter-actions {
		width: auto;
	}
}

.eam-fe-toolbar__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	justify-content: flex-start;
}

.eam-fe-field{
	margin-bottom: 10px !important;
}
@media (min-width: 720px) {
	.eam-fe-toolbar__actions {
		width: auto;
		justify-content: flex-start;

		flex: 0 0 auto;
	}
}

.eam-fe-field {
	display: flex;
	flex-direction: column;
	gap: 0.28rem;
	min-width: 0;
}

.eam-fe-field--block {
	width: 100%;
	max-width: 28rem;
}

.eam-fe-field__label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--eam-fe-muted);
}

.eam-fe-input,
.eam-fe-select {
	padding: 0.52rem 0.7rem;
	border: 1px solid var(--eam-fe-border);
	border-radius: var(--eam-fe-radius-sm);
	background: #fbfbfc;
	color: var(--eam-fe-text);
	font-size: 0.94rem;
	min-height: 2.55rem;
	max-width: 100%;
	width: 100%;
	min-width: 0;
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

@media (min-width: 480px) {
	.eam-fe-toolbar .eam-fe-field:not(.eam-fe-field--block) .eam-fe-input,
	.eam-fe-toolbar .eam-fe-field:not(.eam-fe-field--block) .eam-fe-select {
		width: auto;
		min-width: 8.5rem;
	}
}

.eam-fe-input:focus,
.eam-fe-select:focus {
	outline: none;
	border-color: var(--eam-fe-accent);
	box-shadow: 0 0 0 3px var(--eam-fe-accent-soft);
	background: #fff;
}

.eam-fe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.52rem 1.05rem;
	border-radius: var(--eam-fe-radius-sm);
	font-size: 0.94rem;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid transparent;
	text-decoration: none;
	font-family: inherit;
	line-height: 1.2;
	transition:
		background 0.15s ease,
		border-color 0.15s ease,
		box-shadow 0.15s ease,
		color 0.15s ease;
}

/* Themes often set underline on all content links; anchor “buttons” must stay plain. */
#eam-fe-root.eam-fe a.eam-fe-btn,
#eam-fe-root.eam-fe a.eam-fe-btn:hover,
#eam-fe-root.eam-fe a.eam-fe-btn:focus,
#eam-fe-root.eam-fe a.eam-fe-btn:focus-visible,
#eam-fe-root.eam-fe a.eam-fe-btn:active,
#eam-fe-root.eam-fe a.eam-fe-btn:visited,
#eam-fe-root.eam-fe button.eam-fe-btn,
#eam-fe-root.eam-fe button.eam-fe-btn:hover,
#eam-fe-root.eam-fe button.eam-fe-btn:focus,
#eam-fe-root.eam-fe button.eam-fe-btn:focus-visible,
#eam-fe-root.eam-fe button.eam-fe-btn:active {
	text-decoration: none;
}

.eam-fe-btn--primary {
	background: linear-gradient(135deg, var(--eam-fe-accent) 0%, var(--eam-fe-accent-dark) 100%);
	border-color: transparent;
	color: #141414;
	box-shadow: 0 2px 10px rgba(253, 196, 68, 0.35);
}

.eam-fe-btn--primary:hover {
	filter: brightness(1.03);
	box-shadow: 0 4px 16px rgba(253, 196, 68, 0.45);
	color: #0d0d0d;
}

.eam-fe-btn--secondary {
	background: var(--eam-fe-surface);
	border-color: var(--eam-fe-border);
	color: var(--eam-fe-text);
}

.eam-fe-btn--secondary:hover {
	border-color: var(--eam-fe-accent);
	box-shadow: 0 2px 8px rgba(253, 196, 68, 0.15);
}

.eam-fe-btn--ghost {
	background: var(--eam-fe-surface);
	border-color: var(--eam-fe-border);
	color: var(--eam-fe-text);
}

.eam-fe-btn--ghost:hover {
	border-color: var(--eam-fe-accent);
	background: #fffef8;
}

.eam-fe-export-wrap {
	position: relative;
}

.eam-fe-export-menu {
	position: absolute;
	right: 0;
	left: auto;
	top: calc(100% + 4px);
	margin: 0;
	padding: 0.35rem 0;
	list-style: none;
	background: var(--eam-fe-surface);
	border: 1px solid var(--eam-fe-border);
	border-radius: var(--eam-fe-radius-sm);
	box-shadow: 0 10px 36px rgba(22, 24, 29, 0.12);
	min-width: min(11rem, calc(100vw - 2rem));
	max-width: calc(100vw - 2rem);
	z-index: 20;
}

@media (max-width: 719px) {
	.eam-fe-export-menu {
		right: 0;
		left: 0;
		max-width: none;
	}
}

.eam-fe-export-menu a {
	display: block;
	padding: 0.5rem 1rem;
	color: var(--eam-fe-text);
	text-decoration: none;
	font-size: 0.9rem;
}

.eam-fe-export-menu a:hover {
	background: var(--eam-fe-accent-soft);
}

.eam-fe-alerts {
	padding: 0.85rem 1.1rem;
	margin-bottom: 1.1rem;
	background: linear-gradient(135deg, #fffbeb 0%, #fff8e0 100%);
	border: 1px solid rgba(253, 196, 68, 0.45);
	border-radius: var(--eam-fe-radius-sm);
	font-size: 0.92rem;
}

.eam-fe-alerts ul {
	margin: 0.4rem 0 0;
	padding-left: 1.2rem;
}

.eam-fe-grid {
	display: grid;
	gap: 1.1rem;
	margin-bottom: 1.1rem;
}

@media (min-width: 900px) {
	.eam-fe-grid {
		grid-template-columns: 1fr 1fr;
	}

	/* team_member overview: keep Live-Status card full width */
	.eam-fe-grid.eam-fe-grid--overview-member {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 599px) {
	.eam-fe-grid {
		gap: 0.85rem;
	}
}

.eam-fe-grid--charts {
	margin-top: 0;
}

/* Overview: task switching */
.eam-fe-card--task-switch {
	position: relative;
	background:
		radial-gradient(120% 120% at 100% 0%, rgba(217, 119, 6, 0.08) 0%, rgba(217, 119, 6, 0) 48%),
		linear-gradient(180deg, #ffffff 0%, #fcfcfd 100%);
	border-color: rgba(209, 213, 219, 0.85);
	box-shadow: 0 12px 28px rgba(17, 24, 39, 0.06);
}

.eam-fe-card--task-switch::before {
	content: '';
	position: absolute;
	left: 0.85rem;
	right: 0.85rem;
	top: 0;
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
	opacity: 0.95;
}

.eam-fe-card--task-switch .eam-fe-card__hint {
	margin-top: 0.35rem;
	margin-bottom: 0.75rem;
	color: #6b7280;
}

.eam-fe-task-switch {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

.eam-fe-task-switch__leaders {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: 1fr;
}

@media (min-width: 980px) {
	.eam-fe-task-switch__leaders {
		grid-template-columns: 1fr 1fr;
	}
}

.eam-fe-task-switch__leader-card {
	background: #fff;
	border: 1px solid rgba(209, 213, 219, 0.85);
	border-radius: 12px;
	padding: 0.65rem 0.7rem;
}

.eam-fe-task-switch__leader-title {
	margin: 0 0 0.45rem;
	font-size: 0.8rem;
	font-weight: 800;
	color: #4b5563;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.eam-fe-task-switch__leader-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.eam-fe-task-switch__leader-item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.5rem;
	padding: 0.42rem 0.42rem;
	border-radius: 10px;
	background: rgba(243, 244, 246, 0.65);
	border: 1px solid rgba(209, 213, 219, 0.8);
}

.eam-fe-task-switch__leader-item--empty {
	display: block;
	text-align: center;
	color: #6b7280;
	font-size: 0.86rem;
}

.eam-fe-task-switch__leader-rank {
	font-weight: 800;
	font-size: 0.78rem;
	color: #92400e;
	background: rgba(245, 158, 11, 0.14);
	border: 1px solid rgba(245, 158, 11, 0.35);
	border-radius: 999px;
	padding: 0.13rem 0.42rem;
}

.eam-fe-task-switch__leader-person {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
}

.eam-fe-task-switch__leader-avatar {
	width: 26px;
	height: 26px;
	border-radius: 999px;
	object-fit: cover;
	border: 1px solid rgba(209, 213, 219, 0.9);
	background: #fff;
}

.eam-fe-task-switch__leader-avatar--fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.78rem;
}

.eam-fe-task-switch__leader-name {
	font-size: 0.85rem;
	font-weight: 600;
	color: #1f2937;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.eam-fe-task-switch__leader-value {
	font-size: 0.78rem;
	font-weight: 700;
	color: #374151;
	background: #fff;
	border: 1px solid rgba(209, 213, 219, 0.8);
	border-radius: 999px;
	padding: 0.14rem 0.44rem;
}

.eam-fe-task-switch__hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
}

.eam-fe-task-switch__metric {
	display: inline-flex;
	align-items: baseline;
	gap: 0.45rem;
	padding: 0.35rem 0.65rem;
	border-radius: 999px;
	border: 1px solid rgba(245, 158, 11, 0.25);
	background: rgba(245, 158, 11, 0.08);
}

.eam-fe-task-switch__metric-value {
	font-size: 1.65rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
	color: #111827;
}

.eam-fe-task-switch__metric-label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	color: #9a3412;
}

.eam-fe-task-switch__delta {
	font-size: 0.9rem;
	color: #374151;
	font-weight: 600;
	padding: 0.28rem 0.62rem;
	border-radius: 999px;
	background: rgba(107, 114, 128, 0.09);
	border: 1px solid rgba(107, 114, 128, 0.2);
}

.eam-fe-task-switch__delta--up {
	color: #92400e;
	background: rgba(245, 158, 11, 0.12);
	border-color: rgba(245, 158, 11, 0.35);
}

.eam-fe-task-switch__delta--down {
	color: #065f46;
	background: rgba(16, 185, 129, 0.12);
	border-color: rgba(16, 185, 129, 0.35);
}

.eam-fe-task-switch__row {
	display: grid;
	gap: 1.05rem;
	align-items: start;
}

@media (min-width: 900px) {
	.eam-fe-task-switch__row {
		grid-template-columns: minmax(14rem, 1.05fr) minmax(0, 1.95fr);
	}
}

.eam-fe-task-switch__indicators {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.55rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: #374151;
}

@media (min-width: 540px) and (max-width: 899px) {
	.eam-fe-task-switch__indicators {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 680px) {
	.eam-fe-task-switch__hero {
		gap: 0.55rem;
	}

	.eam-fe-task-switch__metric {
		width: 100%;
		justify-content: space-between;
	}

	.eam-fe-task-switch__delta {
		width: 100%;
		font-size: 0.82rem;
	}

	.eam-fe-task-switch__row {
		gap: 0.75rem;
	}

	.eam-fe-task-switch__indicators {
		grid-template-columns: 1fr;
	}

	.eam-fe-task-switch__focus-line,
	.eam-fe-task-switch__stat {
		min-height: 2.5rem;
		padding: 0.5rem 0.56rem;
	}

	.eam-fe-chart-wrap--task-switch {
		min-height: 170px;
		padding: 0.2rem 0.1rem 0.1rem;
	}
}

.eam-fe-task-switch__focus-line {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: #fff;
	border: 1px solid rgba(209, 213, 219, 0.85);
	border-radius: 12px;
	padding: 0.55rem 0.65rem;
	min-height: 3rem;
}

.eam-fe-task-switch__badge {
	flex-shrink: 0;
	width: 0.72rem;
	height: 0.72rem;
	border-radius: 999px;
	background: #9ca3af;
	box-shadow: 0 0 0 4px rgba(156, 163, 175, 0.18);
}

.eam-fe-task-switch__badge--low {
	background: #059669;
	box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.18);
}

.eam-fe-task-switch__badge--medium {
	background: #d97706;
	box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.18);
}

.eam-fe-task-switch__badge--high {
	background: #dc2626;
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.18);
}

.eam-fe-task-switch__focus-text {
	margin: 0;
	font-weight: 600;
}

.eam-fe-task-switch__stat {
	margin: 0;
	color: #4b5563;
	background: #fff;
	border: 1px solid rgba(209, 213, 219, 0.85);
	border-radius: 12px;
	padding: 0.55rem 0.65rem;
	min-height: 3rem;
}

.eam-fe-task-switch__stat--impact {
	font-weight: 600;
	color: #1f2937;
}

.eam-fe-chart-wrap--task-switch {
	min-height: 200px;
	background: #fff;
	border: 1px solid rgba(209, 213, 219, 0.8);
	border-radius: 14px;
	padding: 0.4rem 0.35rem 0.2rem;
}

.eam-fe-task-switch__pairs-title {
	margin: 0 0 0.45rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.eam-fe-task-switch__pairs-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.88rem;
}

.eam-fe-task-switch__pairs-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.7rem;
	padding: 0.45rem 0.62rem;
	background: #fff;
	border-radius: 9px;
	border: 1px solid rgba(209, 213, 219, 0.85);
	box-shadow: 0 3px 8px rgba(17, 24, 39, 0.04);
}

.eam-fe-task-switch__pair-count {
	color: #6b7280;
	font-weight: 700;
	font-size: 0.8rem;
	padding: 0.15rem 0.42rem;
	border-radius: 999px;
	border: 1px solid rgba(156, 163, 175, 0.35);
	background: rgba(156, 163, 175, 0.12);
}

/* Overview: team focus overview */
.eam-fe-card--focus-overview {
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border-color: rgba(209, 213, 219, 0.95);
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.eam-fe-focus-overview {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.eam-fe-focus-overview__split {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}

@media (min-width: 980px) {
	.eam-fe-focus-overview__split {
		grid-template-columns: minmax(17rem, 1fr) minmax(0, 2fr);
		align-items: start;
	}
}

.eam-fe-focus-overview__subtitle {
	margin: 0 0 0.45rem;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
}

.eam-fe-focus-overview__subtitle--chart {
	margin-top: 0;
}

.eam-fe-focus-overview__ranking {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.42rem;
}

.eam-fe-focus-overview__ranking li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 0.65rem;
	border: 1px solid rgba(226, 232, 240, 0.95);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.eam-fe-focus-overview__rank-name {
	font-weight: 700;
	color: #0f172a;
	font-size: 0.9rem;
}

.eam-fe-focus-overview__rank-metric {
	font-weight: 800;
	color: #0d9488;
	font-size: 0.88rem;
	white-space: nowrap;
}

/* Distraction band: two panels */
.eam-fe-focus-overview__distraction-band {
	background: #fff;
	border: 1px solid rgba(226, 232, 240, 0.95);
	border-radius: 14px;
	padding: 0.85rem 0.9rem 0.95rem;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.eam-fe-focus-overview__distraction-head {
	margin-bottom: 0.75rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.eam-fe-focus-overview__distraction-title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.eam-fe-focus-overview__distraction-lead {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	color: #64748b;
}

.eam-fe-focus-overview__distraction-grid {
	display: grid;
	gap: 0.85rem;
	grid-template-columns: 1fr;
}

@media (min-width: 900px) {
	.eam-fe-focus-overview__distraction-grid {
		grid-template-columns: 1fr 1fr;
		gap: 1rem;
	}
}

.eam-fe-focus-panel {
	min-width: 0;
	padding: 0.65rem 0.7rem;
	border-radius: 12px;
	background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
	border: 1px solid rgba(241, 245, 249, 0.95);
}

.eam-fe-focus-panel__title {
	margin: 0 0 0.55rem;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #94a3b8;
}

.eam-fe-focus-dist-list,
.eam-fe-focus-worker-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.eam-fe-focus-dist-list li {
	display: block;
	padding: 0;
	border: none;
	background: transparent;
}

.eam-fe-focus-dist__row-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 0.5rem;
	margin-bottom: 0.28rem;
}

.eam-fe-focus-dist__label {
	font-weight: 700;
	font-size: 0.88rem;
	color: #1e293b;
}

.eam-fe-focus-dist__pct {
	font-weight: 800;
	font-size: 0.85rem;
	color: #dc2626;
}

.eam-fe-focus-dist__time {
	display: block;
	font-size: 0.72rem;
	color: #94a3b8;
	margin-top: 0.15rem;
}

.eam-fe-focus-dist__track {
	height: 8px;
	border-radius: 999px;
	background: rgba(226, 232, 240, 0.9);
	overflow: hidden;
}

.eam-fe-focus-dist__fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	min-width: 2px;
	background: linear-gradient(90deg, #f97316 0%, #ef4444 100%);
	transition: width 0.35s ease;
}

.eam-fe-focus-worker-list li {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.48rem 0.55rem;
	border-radius: 10px;
	border: 1px solid rgba(226, 232, 240, 0.95);
	background: #fff;
}

.eam-fe-focus-worker__avatar {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	object-fit: cover;
	border: 1px solid rgba(226, 232, 240, 0.95);
	flex-shrink: 0;
}

.eam-fe-focus-worker__avatar--fb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: rgba(241, 245, 249, 0.95);
	font-size: 0.85rem;
	flex-shrink: 0;
}

.eam-fe-focus-worker__body {
	flex: 1;
	min-width: 0;
}

.eam-fe-focus-worker__name {
	font-weight: 700;
	font-size: 0.86rem;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.eam-fe-focus-worker__source {
	font-size: 0.78rem;
	color: #64748b;
	margin-top: 0.12rem;
}

.eam-fe-focus-worker__source strong {
	color: #b45309;
	font-weight: 700;
}

.eam-fe-focus-worker__pct {
	font-weight: 800;
	font-size: 0.8rem;
	color: #dc2626;
	white-space: nowrap;
}

.eam-fe-focus-dist-list .eam-fe-focus-empty,
.eam-fe-focus-worker-list .eam-fe-focus-empty {
	text-align: center;
	color: #94a3b8;
	font-size: 0.85rem;
	padding: 0.75rem 0.5rem;
	border: 1px dashed rgba(203, 213, 225, 0.95);
	border-radius: 10px;
	background: rgba(248, 250, 252, 0.6);
}

.eam-fe-focus-overview__insight {
	margin: 0;
	font-size: 0.9rem;
	padding: 0.55rem 0.65rem;
	border: 1px solid rgba(251, 191, 36, 0.35);
	border-radius: 10px;
	background: rgba(251, 191, 36, 0.1);
	color: #92400e;
	font-weight: 600;
}

.eam-fe-focus-overview__impact {
	margin-top: 0.55rem;
	padding: 0.45rem 0.58rem;
	border-radius: 9px;
	font-size: 0.85rem;
	border: 1px solid rgba(209, 213, 219, 0.85);
	background: #fff;
	color: #374151;
}

.eam-fe-focus-overview__impact--high {
	border-color: rgba(239, 68, 68, 0.35);
	background: rgba(239, 68, 68, 0.08);
	color: #991b1b;
}

.eam-fe-focus-overview__impact--medium {
	border-color: rgba(245, 158, 11, 0.35);
	background: rgba(245, 158, 11, 0.08);
	color: #92400e;
}

.eam-fe-focus-overview__impact--low {
	border-color: rgba(16, 185, 129, 0.35);
	background: rgba(16, 185, 129, 0.08);
	color: #065f46;
}

.eam-fe-chart-wrap--focus-overview {
	min-height: 220px;
	border: 1px solid rgba(209, 213, 219, 0.85);
	border-radius: 12px;
	padding: 0.35rem 0.25rem 0.15rem;
	background: #fff;
}

@media (max-width: 680px) {
	.eam-fe-chart-wrap--focus-overview {
		min-height: 190px;
	}
}

/* Page history: Idle periods | Page visits (two columns on wide viewports) */
.eam-fe-history-split {
	display: block;
	gap: 1.1rem;
	margin-bottom: 0;
	align-items: stretch;
}

.eam-fe-history-split .eam-fe-card--history-col {
	margin-bottom: 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.eam-fe-history-split .eam-fe-table-scroll {
	flex: 1 1 auto;
	min-height: 14rem;
}

@media (min-width: 1100px) {
	.eam-fe-history-split {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 1099px) {
	.eam-fe-history-split .eam-fe-table-scroll {
		min-height: 11rem;
	}
}

.eam-fe-card {
	background: var(--eam-fe-surface);
	border: 1px solid var(--eam-fe-border);
	border-radius: var(--eam-fe-radius-sm);
	padding: 1rem 0.9rem;
	margin-bottom: 1rem;
	box-shadow: 0 2px 14px rgba(22, 24, 29, 0.04);
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: hidden;
}

@media (min-width: 600px) {
	.eam-fe-card {
		padding: 1.15rem 1.15rem;
		margin-bottom: 1.1rem;
	}
}

@media (min-width: 782px) {
	.eam-fe-card {
		padding: 1.2rem 1.3rem;
	}
}

.eam-fe-range-filter--overview {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem 0.65rem;
	background: var(--eam-fe-surface, #fff);
	border: 1px solid var(--eam-fe-border, #e5e7eb);
	border-radius: var(--eam-fe-radius-sm, 10px);
	box-shadow: 0 2px 12px rgba(22, 24, 29, 0.05);
}

.eam-fe-range-filter__inner {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.eam-fe-range-filter__title {
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--eam-fe-muted, #6b7280);
}

.eam-fe-range-filter__row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.65rem 1rem;
}

.eam-fe-range-filter__row .eam-fe-field {
	margin: 0;
	min-width: 0;
}

.eam-fe-range-filter__row .eam-fe-field__label {
	font-size: 0.8rem;
}

.eam-fe-range-filter__row .eam-fe-input {
	min-width: 10.5rem;
}

.eam-fe-range-filter__hint {
	margin: 0;
	font-size: 0.82rem;
	color: var(--eam-fe-muted, #6b7280);
	line-height: 1.35;
}

/* Berichtszeitraum/Filter buttons: fixed brand yellow */
.eam-fe-range-filter__row .eam-fe-btn.eam-fe-btn--secondary,
.eam-fe-range-filter__row .eam-fe-btn.eam-fe-btn--ghost {
	background: #fdc444;
	border: 1px solid rgba(22, 24, 29, 0.12);
	color: #1a1a1a;
	font-weight: 700;
	box-shadow: 0 2px 10px rgba(253, 196, 68, 0.4);
}

.eam-fe-range-filter__row .eam-fe-btn.eam-fe-btn--secondary:hover,
.eam-fe-range-filter__row .eam-fe-btn.eam-fe-btn--ghost:hover {
	filter: brightness(1.06);
	color: #1a1a1a;
	border-color: rgba(22, 24, 29, 0.14);
	background: #fdc444;
	box-shadow: 0 4px 14px rgba(253, 196, 68, 0.45);
}

.eam-fe-range-filter__row .eam-fe-btn.eam-fe-btn--secondary:active,
.eam-fe-range-filter__row .eam-fe-btn.eam-fe-btn--ghost:active {
	filter: brightness(0.98);
	color: #1a1a1a;
}

.eam-fe-range-filter__row .eam-fe-btn.eam-fe-btn--secondary:focus,
.eam-fe-range-filter__row .eam-fe-btn.eam-fe-btn--secondary:focus-visible,
.eam-fe-range-filter__row .eam-fe-btn.eam-fe-btn--ghost:focus,
.eam-fe-range-filter__row .eam-fe-btn.eam-fe-btn--ghost:focus-visible {
	outline: none;
	color: #1a1a1a;
	box-shadow:
		0 0 0 3px var(--eam-fe-accent-soft),
		0 2px 10px rgba(253, 196, 68, 0.4);
}

.eam-fe-card--chart .eam-fe-chart-wrap {
	position: relative;
	height: 210px;
	margin-top: 0.55rem;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

@media (min-width: 600px) {
	.eam-fe-card--chart .eam-fe-chart-wrap {
		height: 240px;
	}
}

.eam-fe-card__title {
	margin: 0 0 0.55rem;
	font-size: 1.08rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.eam-fe-card__hint,
.eam-fe-card__body {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	color: var(--eam-fe-muted);
}

.eam-fe-statline {
	margin: 0 0 0.75rem;
	font-size: 0.88rem;
	color: var(--eam-fe-muted);
}

.eam-fe-summary {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.eam-fe-summary li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid var(--eam-fe-border);
	font-size: 0.92rem;
}

.eam-fe-summary li:last-child {
	border-bottom: 0;
}

.eam-fe-summary .eam-fe-stat-value {
	font-weight: 800;
	color: var(--eam-fe-text);
}

.eam-fe-table-scroll {
	overflow-x: auto;
	overflow-y: visible;
	max-width: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}

/* Table + amber footer in one scroll pane — scrollbar below footer (same feel as idle tfoot) */
.eam-fe-table-scroll--stacked-footer .eam-fe-table-scroll__track {
	display: inline-block;
	min-width: 100%;
	vertical-align: top;
}

.eam-fe-table-scroll--stacked-footer #eam-fe-visit-history-table {
	width: max-content;
	min-width: 100%;
	max-width: none;
}

.eam-fe-table-scroll--stacked-footer .eam-fe-total-bar {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

/* Label + value stay in view at the left of the scrollport when the bar is wider than the card */
.eam-fe-table-scroll--stacked-footer .eam-fe-total-bar__sticky {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	position: sticky;
	left: 0;
	z-index: 2;
	max-width: 100%;
	padding: 0.15rem 1rem 0.15rem 0;
	margin: -0.15rem 0;
	background: linear-gradient(135deg, var(--eam-fe-accent) 0%, var(--eam-fe-accent-dark) 100%);
	box-shadow: 8px 0 14px -4px rgba(22, 24, 29, 0.14);
}

.eam-fe-table-scroll--stacked-footer .eam-fe-total-bar__label {
	flex: 0 1 auto;
	min-width: 0;
}

.eam-fe-table-scroll--stacked-footer .eam-fe-total-bar__value {
	flex-shrink: 0;
}

.eam-fe-table {
	width: 100%;
	max-width: 100%;
	border-collapse: collapse;
	font-size: clamp(0.8rem, 2.4vw, 0.9rem);
	table-layout: auto;
}

.eam-fe-table thead th {
	text-align: left;
	padding: 0.68rem 0.55rem;
	border-bottom: 2px solid var(--eam-fe-border);
	font-weight: 800;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--eam-fe-muted);
	white-space: nowrap;
}

.eam-fe-table tbody td {
	padding: 0.62rem 0.55rem;
	border-bottom: 1px solid var(--eam-fe-border);
	vertical-align: middle;
}

/* Keep date/time, page path/title, durations on one line — scroll inside .eam-fe-table-scroll if needed */
#eam-fe-idle-history-table thead th:nth-child(3),
#eam-fe-idle-history-table thead th:nth-child(4),
#eam-fe-idle-history-table thead th:nth-child(5),
#eam-fe-idle-history-table tbody td:nth-child(3),
#eam-fe-idle-history-table tbody td:nth-child(4),
#eam-fe-idle-history-table tbody td:nth-child(5),
#eam-fe-visit-history-table thead th:nth-child(3),
#eam-fe-visit-history-table thead th:nth-child(4),
#eam-fe-visit-history-table thead th:nth-child(5),
#eam-fe-visit-history-table thead th:nth-child(6),
#eam-fe-visit-history-table tbody td:nth-child(3),
#eam-fe-visit-history-table tbody td:nth-child(4),
#eam-fe-visit-history-table tbody td:nth-child(5),
#eam-fe-visit-history-table tbody td:nth-child(6),
#eam-fe-pages-table thead th:nth-child(2),
#eam-fe-pages-table thead th:nth-child(3),
#eam-fe-pages-table thead th:nth-child(4),
#eam-fe-pages-table thead th:nth-child(5),
#eam-fe-pages-table tbody td:nth-child(2),
#eam-fe-pages-table tbody td:nth-child(3),
#eam-fe-pages-table tbody td:nth-child(4),
#eam-fe-pages-table tbody td:nth-child(5),
#eam-fe-presence-table thead th:nth-child(4),
#eam-fe-presence-table tbody td:nth-child(4),
#eam-fe-segments-table thead th:nth-child(4),
#eam-fe-segments-table thead th:nth-child(5),
#eam-fe-segments-table tbody td:nth-child(4),
#eam-fe-segments-table tbody td:nth-child(5) {
	white-space: nowrap;
}

/* Stop START/END/TOTAL from shrinking when PAGE is long (visit + latest pages tables) */
#eam-fe-visit-history-table thead th:nth-child(4),
#eam-fe-visit-history-table thead th:nth-child(5),
#eam-fe-visit-history-table thead th:nth-child(6),
#eam-fe-visit-history-table tbody td:nth-child(4),
#eam-fe-visit-history-table tbody td:nth-child(5),
#eam-fe-visit-history-table tbody td:nth-child(6),
#eam-fe-pages-table thead th:nth-child(3),
#eam-fe-pages-table thead th:nth-child(4),
#eam-fe-pages-table thead th:nth-child(5),
#eam-fe-pages-table tbody td:nth-child(3),
#eam-fe-pages-table tbody td:nth-child(4),
#eam-fe-pages-table tbody td:nth-child(5) {
	min-width: 11rem;
}

/* Worker names: one line; long names ellipsize inside the cell */
#eam-fe-idle-history-table tbody td:nth-child(2),
#eam-fe-visit-history-table tbody td:nth-child(2),
#eam-fe-pages-table tbody td:nth-child(1) {
	white-space: nowrap;
	max-width: 12rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (min-width: 1100px) {
	#eam-fe-idle-history-table tbody td:nth-child(2),
	#eam-fe-visit-history-table tbody td:nth-child(2),
	#eam-fe-pages-table tbody td:nth-child(1) {
		max-width: 14rem;
	}
}

.eam-fe-table tbody tr:hover td {
	background: rgba(253, 196, 68, 0.04);
}

.eam-fe-table tbody tr:last-child td {
	border-bottom: 1px solid var(--eam-fe-border);
}


.eam-fe-table__foot td {
	padding: 0.85rem 0.55rem;
	background: linear-gradient(135deg, var(--eam-fe-accent) 0%, var(--eam-fe-accent-dark) 100%);
	color: #141414;
	border-bottom: none;
	font-size: 0.96rem;
}

.eam-fe-table__foot td strong {
	color: #141414;
}

/* Page visits: total stays visible below horizontal scroll (not inside wide table row) */
.eam-fe-total-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 0.85rem 0.55rem;
	margin-top: 0;
	background: linear-gradient(135deg, var(--eam-fe-accent) 0%, var(--eam-fe-accent-dark) 100%);
	color: #141414;
	font-size: 0.96rem;
	font-weight: 700;
	border: 1px solid var(--eam-fe-border);
	border-top: none;
}

.eam-fe-total-bar__label {
	flex: 1 1 auto;
	min-width: 0;
}

.eam-fe-total-bar__value {
	font-weight: 800;
	color: #141414;
	white-space: nowrap;
	flex-shrink: 0;
}

.eam-fe-badge {
	display: inline-block;
	padding: 0.22rem 0.58rem;
	border-radius: 999px;
	font-size: 0.74rem;
	font-weight: 700;
	text-transform: capitalize;
}

.eam-fe-badge--active {
	background: rgba(46, 160, 67, 0.18);
	color: #145a22;
}

.eam-fe-badge--idle {
	background: var(--eam-fe-accent-soft);
	color: #6b5200;
}

.eam-fe-badge--offline {
	background: rgba(155, 35, 53, 0.12);
	color: var(--eam-fe-maroon);
}

.eam-fe-badge--delta {
	background: var(--eam-fe-maroon);
	color: #fff;
}

.eam-fe-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 0.85rem;
	font-size: 0.88rem;
	color: var(--eam-fe-muted);
}

.eam-fe-compare-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	margin-bottom: 0.85rem;
}

.eam-fe-compare-selected-label {
	font-size: 0.85rem;
	font-weight: 700;
	margin: 0.85rem 0 0.4rem;
}

.eam-fe-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	min-height: 1.5rem;
}

.eam-fe-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.28rem 0.55rem 0.28rem 0.7rem;
	background: var(--eam-fe-main-tint);
	border: 1px solid var(--eam-fe-border);
	border-radius: 999px;
	font-size: 0.85rem;
}
.eam-config-actions button {
	padding: 10px !important;
	text-decoration: none;
}

.eam-fe-chip button {
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	padding: 0 0.15rem;
	color: var(--eam-fe-muted);
	text-decoration: none;
}

.eam-fe-chip button:hover {
	color: var(--eam-fe-maroon);
	text-decoration: none;
}


/* —— Camera check-ins (FE) —— */
.eam-fe-camera-disabled-hint {
	margin: 0 0 1rem;
}

.eam-fe-camera-history-section {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid var(--eam-fe-border);
}

.eam-fe-camera-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
	margin-top: 0.5rem;
}

.eam-fe-camera-card {
	background: var(--eam-fe-main-tint);
	border: 1px solid var(--eam-fe-border);
	border-radius: var(--eam-fe-radius-sm);
	padding: 1rem 1.1rem;
}

.eam-fe-camera-card__title {
	margin: 0 0 0.65rem;
	font-size: 1rem;
	font-weight: 600;
}

.eam-fe-camera-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.65rem;
	margin: 0 0 0.75rem;
}

.eam-fe-camera-card__pending-badge {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 600;
	color: #7a5a06;
	background: rgba(253, 196, 68, 0.2);
	border: 1px solid var(--eam-fe-accent-dark);
	border-radius: 6px;
	padding: 0.2rem 0.5rem;
	line-height: 1.35;
}

.eam-fe-camera-request-msg {
	margin: 0 0 0.65rem !important;
	font-size: 0.8rem;
}

.eam-fe-camera-card__figure {
	margin: 0;
}

.eam-fe-camera-card__img {
	display: block;
	width: 100%;
	max-width: 320px;
	min-height: 120px;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	background: #16181d;
}

.eam-fe-camera-thumb {
	cursor: zoom-in;
}

.eam-fe-camera-thumb:focus {
	outline: 2px solid var(--eam-fe-accent-dark);
	outline-offset: 2px;
}

.eam-fe-camera-card__meta {
	margin: 0.65rem 0 0;
	font-size: 0.8rem;
	color: var(--eam-fe-muted);
	line-height: 1.45;
}

.eam-fe-camera-card__empty {
	margin: 0;
}

.eam-fe-camera-history-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
	margin-top: 0.5rem;
}

.eam-fe-camera-history-card {
	background: var(--eam-fe-main-tint);
	border: 1px solid var(--eam-fe-border);
	border-radius: var(--eam-fe-radius-sm);
	padding: 0.85rem 1rem;
}

.eam-fe-camera-history-card__title {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.3;
}

.eam-fe-camera-history-card__figure {
	margin: 0;
}

.eam-fe-camera-history-card__img {
	display: block;
	width: 100%;
	max-width: 280px;
	min-height: 100px;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	background: #16181d;
}

.eam-fe-camera-history-card__meta {
	margin: 0.5rem 0 0;
	font-size: 0.72rem;
	color: var(--eam-fe-muted);
	line-height: 1.45;
}

body.eam-fe-camera-lightbox-open {
	overflow: hidden;
}

.eam-fe-camera-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.eam-fe-camera-lightbox[hidden] {
	display: none !important;
}

.eam-fe-camera-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 30, 0.88);
	cursor: zoom-out;
}

.eam-fe-camera-lightbox__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	max-width: min(96vw, 1280px);
	max-height: 94vh;
	padding: 2.25rem 0.5rem 0.5rem;
}

.eam-fe-camera-lightbox__close {
	position: absolute;
	top: 0;
	right: 0;
	min-height: 2.25rem;
	padding: 0.25rem 0.65rem !important;
	font-size: 1.5rem;
	line-height: 1;
}

.eam-fe-camera-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: min(78vh, 900px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
	background: #16181d;
}

.eam-fe-camera-lightbox__caption {
	margin: 0;
	max-width: 100%;
	text-align: center;
	font-size: 0.85rem;
	color: var(--eam-fe-muted);
	line-height: 1.45;
}

.eam-fe-camera-lightbox__caption:empty {
	display: none;
}
.eam-fe-btn:hover{
	color: #000 !important;
}
/* —— Mobile: full-width filters, charts, toolbar actions (Overview, Page history, etc.) —— */
@media (max-width: 719px) {
	.eam-fe-shell {
		padding-left: 0.65rem;
		padding-right: 0.65rem;
	}

	.eam-fe-hero {
		padding-right: 0;
	}

	.eam-fe-range-filter--overview {
		padding: 0.75rem 0.65rem;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.eam-fe-range-filter__row {
		flex-direction: column;
		align-items: stretch;
	}

	.eam-fe-range-filter__row .eam-fe-field {
		width: 100%;
		max-width: none;
	}

	.eam-fe-range-filter__row .eam-fe-input {
		width: 100%;
		min-width: 0;
		max-width: none;
		box-sizing: border-box;
	}

	.eam-fe-range-filter__row .eam-fe-btn {
		width: 100%;
		max-width: none;
		box-sizing: border-box;
		justify-content: center;
	}

	.eam-fe-toolbar {
		padding: 0.85rem 0.65rem;
		box-sizing: border-box;
	}

	.eam-fe-toolbar__filters {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.eam-fe-toolbar__filter-actions,
	.eam-fe-toolbar__actions {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}

	.eam-fe-toolbar .eam-fe-field,
	.eam-fe-toolbar .eam-fe-field--block {
		width: 100%;
		max-width: none;
	}

	.eam-fe-toolbar .eam-fe-input,
	.eam-fe-toolbar .eam-fe-select {
		width: 100%;
		min-width: 0 !important;
		max-width: none;
		box-sizing: border-box;
	}

	.eam-fe-toolbar__filter-actions .eam-fe-btn,
	.eam-fe-toolbar__actions .eam-fe-btn {
		width: 100%;
		justify-content: center;
		box-sizing: border-box;
	}

	.eam-fe-toolbar__actions .eam-fe-export-wrap {
		width: 100%;
	}

	.eam-fe-toolbar__actions #eam-fe-export-trigger {
		width: 100%;
		justify-content: center;
	}

	.eam-fe-card {
		padding-left: 0.65rem;
		padding-right: 0.65rem;
		box-sizing: border-box;
	}

	.eam-fe-card--chart .eam-fe-chart-wrap {
		width: 100%;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}

	.eam-fe-card .eam-fe-toolbar__actions {
		flex-direction: column;
	}

	.eam-fe-card .eam-fe-toolbar__actions .eam-fe-btn,
	.eam-fe-card .eam-fe-toolbar__actions a.eam-fe-btn {
		width: 100%;
		justify-content: center;
	}

	/* Pager: meta full width, Zurück + Weiter side by side */
	.eam-fe-pager {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		gap: 0.5rem;
	}

	.eam-fe-pager > span {
		order: -1;
		flex: 1 0 100%;
		text-align: center;
		line-height: 1.35;
	}

	.eam-fe-pager .eam-fe-btn {
		flex: 1 1 calc(50% - 0.25rem);
		min-width: 0;
		width: auto;
		max-width: none;
		box-sizing: border-box;
		justify-content: center;
	}

	.eam-fe-compare-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 0.5rem;
	}

	.eam-fe-compare-bar .eam-fe-btn,
	.eam-fe-compare-bar select {
		width: 100%;
		max-width: none;
		box-sizing: border-box;
	}

	/* Compare picker + other block fields: use full shell width on small screens */
	.eam-fe-shell .eam-fe-field--block {
		width: 100%;
		max-width: none;
	}

	.eam-fe-shell .eam-fe-field--block .eam-fe-select {
		width: 100%;
		box-sizing: border-box;
	}
}

@media print {
	.eam-fe {
		background: #fff;
		padding: 0;
		max-width: none;
	}

	#eam-fe-root.eam-fe {
		width: 100%;
		max-width: none;
		margin: 0;
		overflow: visible;
	}

	.eam-fe-layout {
		box-shadow: none;
		border: 0;
		min-height: 0;
	}

	.eam-fe-sidebar {
		display: none !important;
	}

	.eam-fe-main {
		background: #fff;
	}

	.eam-fe-toolbar,
	.eam-fe-export-wrap,
	.eam-fe-pager,
	.eam-fe-compare-bar,
	.eam-fe-field--block {
		display: none !important;
	}

	.eam-fe-camera-lightbox {
		display: none !important;
	}

	.eam-fe-history-split {
		display: block;
	}

	.eam-fe-history-split .eam-fe-card--history-col {
		margin-bottom: 20px !important;
	}
}

.eam-fe-card--history-col{
	margin-bottom: 20px !important;
}