/* 0.13.0 — compact settings checkboxes, period-aware completion reports and My Work header switch. */

.vpm-settings-layout input[type="checkbox"] {
	position: relative;
	flex: 0 0 16px;
	width: 16px !important;
	min-width: 16px !important;
	max-width: 16px !important;
	height: 16px !important;
	min-height: 16px !important;
	max-height: 16px !important;
	margin: 0;
	padding: 0 !important;
	-webkit-appearance: none;
	appearance: none;
	border: 1px solid var(--vpm-border-strong, var(--vpm-border)) !important;
	border-radius: 4px !important;
	background: var(--vpm-panel) !important;
	box-shadow: none !important;
	cursor: pointer;
}

.vpm-settings-layout input[type="checkbox"]::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 5px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	opacity: 0;
	transform: rotate(45deg);
}

.vpm-settings-layout input[type="checkbox"]:checked {
	border-color: var(--vpm-brand) !important;
	background: var(--vpm-brand) !important;
}

.vpm-settings-layout input[type="checkbox"]:checked::after {
	opacity: 1;
}

.vpm-settings-layout input[type="checkbox"]:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--vpm-brand) 42%, transparent);
	outline-offset: 2px;
}

.vpm-view-checkboxes label,
.vpm-check-row {
	cursor: pointer;
}

.vpm-mywork-header-switch {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	margin-left: auto;
}

.vpm-mywork-header-switch .vpm-view-switch {
	background: var(--vpm-panel-alt);
}

.vpm-mywork-header-switch + .vpm-topbar__actions:empty {
	display: none;
}

.vpm-daily-report {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.vpm-daily-report__hero {
	display: grid;
	grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr);
	gap: 24px;
	align-items: center;
	padding: 22px;
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius);
	background:
		radial-gradient(circle at 0 0, color-mix(in srgb, var(--vpm-brand) 15%, transparent), transparent 36%),
		var(--vpm-panel);
	box-shadow: var(--vpm-shadow-sm);
}

.vpm-daily-report__hero > div:first-child > small {
	display: block;
	margin-bottom: 6px;
	color: var(--vpm-brand-strong);
	font-size: 9px;
	font-weight: 750;
	letter-spacing: .12em;
}

.vpm-daily-report__hero h1 {
	margin: 0;
	color: var(--vpm-ink);
	font-size: clamp(22px, 2.3vw, 34px);
	line-height: 1.05;
	letter-spacing: -.035em;
}

.vpm-daily-report__hero p {
	margin: 8px 0 0;
	color: var(--vpm-muted);
	font-size: 12px;
}

.vpm-daily-report__controls {
	display: grid;
	gap: 12px;
}

.vpm-daily-report__period-switch {
	display: inline-flex;
	justify-self: end;
	gap: 3px;
	padding: 3px;
	border: 1px solid var(--vpm-border);
	border-radius: 9px;
	background: var(--vpm-panel-alt);
}

.vpm-daily-report__period-switch button {
	min-width: 64px;
	height: 32px;
	padding: 0 12px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--vpm-muted);
	font: inherit;
	font-size: 11px;
	font-weight: 650;
	cursor: pointer;
}

.vpm-daily-report__period-switch button:hover {
	color: var(--vpm-ink);
}

.vpm-daily-report__period-switch button.is-active {
	background: var(--vpm-brand);
	color: #fff;
	box-shadow: 0 5px 14px color-mix(in srgb, var(--vpm-brand) 24%, transparent);
}

.vpm-daily-report__period-switch button:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--vpm-brand) 42%, transparent);
	outline-offset: 1px;
}

.vpm-daily-report__date-nav {
	display: flex;
	justify-content: flex-end;
	gap: 7px;
}

.vpm-daily-report__date-nav input,
.vpm-daily-report__filters select {
	min-height: 38px;
	border: 1px solid var(--vpm-border);
	border-radius: 8px;
	background: var(--vpm-panel);
	color: var(--vpm-ink);
	font: inherit;
	font-size: 11px;
}

.vpm-daily-report__date-nav input {
	width: min(190px, 100%);
}

.vpm-daily-report__date-nav button {
	min-height: 38px;
	padding: 0 11px;
}

.vpm-daily-report__date-nav button:first-child,
.vpm-daily-report__date-nav button:nth-child(3) {
	width: 38px;
	padding: 0;
}

.vpm-daily-report__filters {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.vpm-daily-report__filters label {
	display: grid;
	gap: 5px;
}

.vpm-daily-report__filters label > span {
	color: var(--vpm-muted);
	font-size: 9px;
	font-weight: 650;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.vpm-daily-report__filters select {
	width: 100%;
}

.vpm-daily-report__summary {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.vpm-daily-report__summary article {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--vpm-border);
	border-radius: 12px;
	background: var(--vpm-panel);
	box-shadow: var(--vpm-shadow-sm);
}

.vpm-daily-report__summary article > .dashicons {
	display: grid;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	place-items: center;
	border-radius: 10px;
	background: var(--vpm-brand-soft);
	color: var(--vpm-brand-strong);
	font-size: 17px;
}

.vpm-daily-report__summary strong,
.vpm-daily-report__summary small {
	display: block;
}

.vpm-daily-report__summary strong {
	color: var(--vpm-ink);
	font-size: 20px;
	line-height: 1;
}

.vpm-daily-report__summary small {
	margin-top: 4px;
	overflow: hidden;
	color: var(--vpm-muted);
	font-size: 9px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vpm-daily-report__groups {
	display: grid;
	gap: 12px;
}

.vpm-daily-employee {
	overflow: hidden;
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius);
	background: var(--vpm-panel);
	box-shadow: var(--vpm-shadow-sm);
}

.vpm-daily-employee > header {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 62px;
	padding: 11px 14px;
	border-bottom: 1px solid var(--vpm-border);
	background: var(--vpm-panel-alt);
}

.vpm-daily-employee > header > img,
.vpm-daily-employee > header > .dashicons {
	display: grid;
	flex: 0 0 38px;
	width: 38px;
	height: 38px;
	place-items: center;
	border: 1px solid var(--vpm-border);
	border-radius: 50%;
	background: var(--vpm-panel);
	color: var(--vpm-muted);
	object-fit: cover;
}

.vpm-daily-employee > header > div {
	min-width: 0;
	flex: 1;
}

.vpm-daily-employee h2 {
	margin: 0;
	overflow: hidden;
	color: var(--vpm-ink);
	font-size: 14px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vpm-daily-employee > header p {
	margin: 3px 0 0;
	color: var(--vpm-muted);
	font-size: 10px;
}

.vpm-daily-employee > header > strong {
	display: grid;
	min-width: 30px;
	height: 30px;
	padding: 0 8px;
	place-items: center;
	border-radius: 99px;
	background: var(--vpm-brand-soft);
	color: var(--vpm-brand-strong);
	font-size: 11px;
}

.vpm-daily-employee > div {
	display: grid;
}

.vpm-daily-report-task {
	display: grid;
	grid-template-columns: 4px minmax(0, 1fr) auto 18px;
	gap: 13px;
	align-items: center;
	width: 100%;
	min-height: 72px;
	padding: 10px 14px 10px 0;
	border: 0;
	border-bottom: 1px solid var(--vpm-border);
	background: transparent;
	color: var(--vpm-ink);
	text-align: left;
	cursor: pointer;
}

.vpm-daily-report-task:last-child {
	border-bottom: 0;
}

.vpm-daily-report-task:hover {
	background: var(--vpm-dark-hover, var(--vpm-panel-alt));
}

.vpm-daily-report-task > i {
	align-self: stretch;
	background: var(--vpm-project-color, var(--vpm-brand));
}

.vpm-daily-report-task__main {
	min-width: 0;
}

.vpm-daily-report-task__main > small,
.vpm-daily-report-task__main > strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vpm-daily-report-task__main > small {
	color: var(--vpm-muted);
	font-size: 9px;
	font-weight: 650;
	letter-spacing: .025em;
}

.vpm-daily-report-task__main > strong {
	margin-top: 4px;
	color: var(--vpm-ink);
	font-size: 12px;
}

.vpm-daily-report-task__main > span {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 7px;
	color: var(--vpm-muted);
	font-size: 9px;
}

.vpm-daily-report-task__main > span > span {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.vpm-daily-report-task__main .dashicons {
	width: 12px;
	height: 12px;
	font-size: 12px;
}

.vpm-daily-report-task > time {
	display: grid;
	gap: 3px;
	min-width: 90px;
	text-align: right;
}

.vpm-daily-report-task > time strong {
	color: var(--vpm-ink);
	font-size: 10px;
}

.vpm-daily-report-task > time small {
	color: var(--vpm-muted);
	font-size: 9px;
}

.vpm-daily-report-task > .dashicons {
	color: var(--vpm-subtle, var(--vpm-muted));
	font-size: 15px;
}

.vpm-daily-report__loading,
.vpm-daily-report__error,
.vpm-daily-report__empty {
	display: grid;
	min-height: 260px;
	padding: 30px;
	place-items: center;
	align-content: center;
	border: 1px dashed var(--vpm-border);
	border-radius: var(--vpm-radius);
	background: var(--vpm-panel);
	color: var(--vpm-muted);
	text-align: center;
}

.vpm-daily-report__loading > span {
	width: 36px;
	height: 36px;
	margin-bottom: 13px;
	border: 3px solid var(--vpm-border);
	border-top-color: var(--vpm-brand);
	border-radius: 50%;
	animation: vpm-report-spin .8s linear infinite;
}

.vpm-daily-report__error > .dashicons,
.vpm-daily-report__empty > .dashicons {
	width: 40px;
	height: 40px;
	color: var(--vpm-brand);
	font-size: 40px;
}

.vpm-daily-report__error strong,
.vpm-daily-report__empty h2 {
	margin: 9px 0 0;
	color: var(--vpm-ink);
}

.vpm-daily-report__error p,
.vpm-daily-report__empty p {
	margin: 5px 0 14px;
}

@keyframes vpm-report-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
	.vpm-daily-report__hero {
		grid-template-columns: 1fr;
	}

	.vpm-daily-report__date-nav {
		justify-content: flex-start;
	}

	.vpm-daily-report__period-switch {
		justify-self: start;
	}
}

@media (max-width: 760px) {
	.vpm-mywork-header-switch .vpm-view-switch button {
		width: 34px;
		padding: 0;
		justify-content: center;
	}

	.vpm-mywork-header-switch .vpm-label {
		display: none;
	}

	.vpm-daily-report__hero {
		padding: 16px;
	}

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

@media (max-width: 520px) {
	.vpm-mywork-header-switch {
		margin-left: auto;
	}

	.vpm-mywork-header-switch .vpm-view-switch {
		padding: 2px;
	}

	.vpm-mywork-header-switch .vpm-view-switch button {
		width: 30px;
		height: 30px;
	}

	.vpm-daily-report__date-nav {
		display: grid;
		grid-template-columns: 38px minmax(0, 1fr) 38px;
	}

	.vpm-daily-report__period-switch {
		width: 100%;
	}

	.vpm-daily-report__period-switch button {
		flex: 1 1 0;
		min-width: 0;
	}

	.vpm-daily-report__date-nav input {
		width: 100%;
	}

	.vpm-daily-report__date-nav button:last-child {
		grid-column: 1 / -1;
		width: 100%;
	}

	.vpm-daily-report__filters {
		grid-template-columns: 1fr;
	}

	.vpm-daily-report__summary {
		gap: 7px;
	}

	.vpm-daily-report__summary article {
		padding: 10px;
	}

	.vpm-daily-report__summary article > .dashicons {
		display: none;
	}

	.vpm-daily-report-task {
		grid-template-columns: 4px minmax(0, 1fr) 14px;
		gap: 9px;
	}

	.vpm-daily-report-task > time {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vpm-daily-report__loading > span {
		animation: none;
	}
}

/* 0.13.38 — report view switch and employee timer timeline. */
.vpm-daily-report__switches {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

.vpm-daily-report__view-switch {
	display: inline-flex;
	gap: 3px;
	padding: 3px;
	border: 1px solid var(--vpm-border);
	border-radius: 9px;
	background: var(--vpm-panel-alt);
}

.vpm-daily-report__view-switch button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 32px;
	padding: 0 11px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--vpm-muted);
	font: inherit;
	font-size: 10px;
	font-weight: 650;
	cursor: pointer;
}

.vpm-daily-report__view-switch button .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
}

.vpm-daily-report__view-switch button.is-active {
	background: var(--vpm-panel);
	color: var(--vpm-brand-strong, var(--vpm-brand));
	box-shadow: var(--vpm-shadow-sm);
}

.vpm-work-timeline {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--vpm-border);
	border-radius: var(--vpm-radius);
	background: var(--vpm-panel);
	box-shadow: var(--vpm-shadow-sm);
}

.vpm-work-timeline > header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 15px 17px;
	border-bottom: 1px solid var(--vpm-border);
	background: var(--vpm-panel-alt);
}

.vpm-work-timeline > header h2 {
	margin: 0;
	color: var(--vpm-ink);
	font-size: 14px;
}

.vpm-work-timeline > header p {
	margin: 4px 0 0;
	color: var(--vpm-muted);
	font-size: 10px;
}

.vpm-work-timeline > header > strong {
	flex: 0 0 auto;
	padding: 7px 10px;
	border-radius: 99px;
	background: var(--vpm-brand-soft);
	color: var(--vpm-brand-strong, var(--vpm-brand));
	font-size: 10px;
}

.vpm-work-timeline__header-tools,
.vpm-work-timeline__range {
	display: flex;
	align-items: center;
	gap: 8px;
}

.vpm-work-timeline__header-tools > strong {
	flex: 0 0 auto;
	padding: 7px 10px;
	border-radius: 99px;
	background: var(--vpm-brand-soft);
	color: var(--vpm-brand-strong, var(--vpm-brand));
	font-size: 10px;
}

.vpm-work-timeline__range > div {
	display: inline-flex;
	gap: 2px;
	padding: 2px;
	border: 1px solid var(--vpm-border);
	border-radius: 8px;
	background: var(--vpm-panel);
}

.vpm-work-timeline__range button {
	min-height: 28px;
	padding: 0 9px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--vpm-muted);
	font: inherit;
	font-size: 9px;
	font-weight: 700;
	cursor: pointer;
}

.vpm-work-timeline__range button.is-active {
	background: var(--vpm-brand);
	color: #fff;
}

.vpm-work-timeline__range label {
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--vpm-muted);
	font-size: 8px;
	font-weight: 700;
	text-transform: uppercase;
}

.vpm-work-timeline__range input {
	width: 82px;
	min-height: 32px;
	padding: 0 6px;
	border: 1px solid var(--vpm-border);
	border-radius: 7px;
	background: var(--vpm-panel);
	color: var(--vpm-ink);
	font: inherit;
	font-size: 10px;
}

.vpm-work-timeline__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	padding: 10px 17px;
	border-bottom: 1px solid var(--vpm-border);
	background: var(--vpm-panel);
}

.vpm-work-timeline__legend span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--vpm-muted);
	font-size: 9px;
}

.vpm-work-timeline__legend i {
	width: 8px;
	height: 8px;
	border-radius: 3px;
	background: var(--timeline-color);
}

.vpm-work-timeline__scroll {
	overflow-x: auto;
	overscroll-behavior-inline: contain;
}

.vpm-work-timeline__canvas {
	min-width: 900px;
}

.vpm-work-timeline__axis,
.vpm-work-timeline__row {
	display: grid;
	grid-template-columns: 184px minmax(700px, 1fr);
}

.vpm-work-timeline__axis {
	min-height: 42px;
	border-bottom: 1px solid var(--vpm-border);
	background: var(--vpm-panel-alt);
}

.vpm-work-timeline__axis > span {
	display: flex;
	align-items: center;
	padding: 0 15px;
	border-right: 1px solid var(--vpm-border);
	color: var(--vpm-muted);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.vpm-work-timeline__axis > div,
.vpm-work-timeline__grid {
	position: relative;
}

.vpm-work-timeline__axis > div > span,
.vpm-work-timeline__grid > span {
	position: absolute;
	left: var(--timeline-left);
	transform: translateX(-50%);
}

.vpm-work-timeline__axis > div > span {
	top: 13px;
	color: var(--vpm-muted);
	font-size: 9px;
	font-variant-numeric: tabular-nums;
}

.vpm-work-timeline__axis > div > span:first-child { transform: none; }
.vpm-work-timeline__axis > div > span:last-child { transform: translateX(-100%); }

.vpm-work-timeline__row {
	min-height: 68px;
	border-bottom: 1px solid var(--vpm-border);
}

.vpm-work-timeline__row:last-child { border-bottom: 0; }

.vpm-work-timeline__row > header {
	display: flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	padding: 10px 13px;
	border-right: 1px solid var(--vpm-border);
	background: var(--vpm-panel-alt);
}

.vpm-work-timeline__row > header > img,
.vpm-work-timeline__row > header > .dashicons {
	display: grid;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	place-items: center;
	border: 1px solid var(--vpm-border);
	border-radius: 50%;
	background: var(--vpm-panel);
	color: var(--vpm-muted);
	object-fit: cover;
}

.vpm-work-timeline__row > header > span { min-width: 0; }
.vpm-work-timeline__row > header strong,
.vpm-work-timeline__row > header small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vpm-work-timeline__row > header strong { color: var(--vpm-ink); font-size: 11px; }
.vpm-work-timeline__row > header small { margin-top: 3px; color: var(--vpm-muted); font-size: 8px; }

.vpm-work-timeline__track {
	position: relative;
	min-width: 0;
	min-height: 68px;
	overflow: hidden;
	background: var(--vpm-panel);
}

.vpm-work-timeline__grid {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.vpm-work-timeline__grid > span {
	top: 0;
	bottom: 0;
	width: 1px;
	overflow: hidden;
	background: var(--vpm-border);
	color: transparent;
}

.vpm-work-timeline__block {
	position: absolute;
	z-index: 2;
	left: var(--timeline-left);
	top: 10px;
	width: var(--timeline-width);
	min-width: 5px;
	height: 48px;
	overflow: hidden;
	padding: 6px 8px;
	border: 0;
	border-left: 3px solid color-mix(in srgb, var(--timeline-color) 68%, #000);
	border-radius: 6px;
	background: color-mix(in srgb, var(--timeline-color) 82%, white);
	color: #fff;
	box-shadow: 0 2px 7px color-mix(in srgb, var(--timeline-color) 30%, transparent);
	text-align: left;
	cursor: pointer;
}

.vpm-work-timeline__block:hover,
.vpm-work-timeline__block:focus-visible {
	z-index: 4;
	filter: brightness(1.08);
	outline: 2px solid color-mix(in srgb, var(--timeline-color) 45%, transparent);
	outline-offset: 2px;
}

.vpm-work-timeline__block small,
.vpm-work-timeline__block strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vpm-work-timeline__block small { opacity: .82; font-size: 7px; }
.vpm-work-timeline__block strong { margin-top: 4px; font-size: 9px; }
.vpm-work-timeline__block.is-running { animation: vpm-timeline-running 1.7s ease-in-out infinite; }

.vpm-work-timeline__empty-row {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	color: var(--vpm-subtle, var(--vpm-muted));
	font-size: 9px;
}

.vpm-work-timeline__no-people {
	padding: 28px;
	color: var(--vpm-muted);
	font-size: 10px;
	text-align: center;
}

.vpm-theme-dark .vpm-work-timeline__block {
	background: color-mix(in srgb, var(--timeline-color) 68%, #111827);
	color: #fff;
}

@keyframes vpm-timeline-running {
	50% { filter: brightness(1.18); box-shadow: 0 0 0 4px color-mix(in srgb, var(--timeline-color) 16%, transparent); }
}

@media (max-width: 980px) {
	.vpm-daily-report__switches { justify-content: flex-start; flex-wrap: wrap; }
	.vpm-work-timeline__header-tools,
	.vpm-work-timeline__range { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 600px) {
	.vpm-daily-report__view-switch { width: 100%; }
	.vpm-daily-report__view-switch button { flex: 1 1 0; padding-inline: 6px; }
	.vpm-work-timeline > header { align-items: flex-start; flex-direction: column; }
	.vpm-work-timeline__header-tools { width: 100%; }
	.vpm-work-timeline__range { width: 100%; }
	.vpm-work-timeline__canvas { min-width: 820px; }
	.vpm-work-timeline__axis,
	.vpm-work-timeline__row { grid-template-columns: 150px minmax(650px, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.vpm-work-timeline__block.is-running { animation: none; }
}
