.vdc-statistics {
	display: grid;
	gap: 1.5rem;
	width: 100%;
	max-width: 100%;
}

.vdc-statistics__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.vdc-statistics__periods {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.vdc-statistics__periods a {
	padding: 0.45rem 0.75rem;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	color: #334155;
	background: #fff;
	text-decoration: none;
}

.vdc-statistics__periods .is-current {
	font-weight: 700;
	color: #1e3a8a;
	border-color: #93c5fd;
	background: #eff6ff;
}

.vdc-statistics__kpis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.vdc-statistics__card,
.vdc-statistics__group {
	min-width: 0;
	padding: 1.25rem;
	border: 1px solid #cbd5e1;
	border-radius: 0.75rem;
	background: #fff;
	box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.vdc-statistics__card {
	border-inline-start: 4px solid #3b82f6;
	background: #f8fbff;
}

.vdc-statistics__card:nth-child(3n + 2) {
	border-inline-start-color: #22c55e;
	background: #f7fdf9;
}

.vdc-statistics__card:nth-child(3n) {
	border-inline-start-color: #f59e0b;
	background: #fffaf0;
}

.vdc-statistics__value {
	display: block;
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1;
}

.vdc-statistics__card h3 { margin-block: 0.65rem 0.35rem; }
.vdc-statistics__card p { margin: 0; color: #475569; }

.vdc-statistics__details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.vdc-statistics__details .vdc-statistics__group {
	border-top: 3px solid #3b82f6;
	background: #f8fbff;
}

.vdc-statistics__details .vdc-statistics__group:nth-child(3n + 2) {
	border-top-color: #22c55e;
	background: #f7fdf9;
}

.vdc-statistics__details .vdc-statistics__group:nth-child(3n) {
	border-top-color: #f59e0b;
	background: #fffaf0;
}

.vdc-statistics__group dl { margin: 0; }
.vdc-statistics__group dl > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.45rem; border-bottom: 1px solid #e2e8f0; }
.vdc-statistics__group dd { margin: 0; font-weight: 700; text-align: right; }

.vdc-statistics__table-wrap {
	max-width: 100%;
	border: 1px solid #d7dde5;
	border-radius: 10px;
	overflow-x: auto;
	background: #fff;
}

.vdc-statistics__table {
	width: 100%;
	min-width: 48rem;
	border-collapse: collapse;
}

.vdc-statistics__table th,
.vdc-statistics__table td {
	padding: 0.85rem 0.75rem;
	border-bottom: 1px solid #e2e8f0;
	font-size: 1.6rem;
	text-align: left;
	vertical-align: middle;
}

.vdc-statistics__table th {
	background: #f8fafc;
	font-weight: 700;
}

.vdc-statistics__table tbody tr:last-child td { border-bottom: 0; }
.vdc-statistics__table tbody tr:hover { background: #f8fafc; }
.vdc-statistics__table :is(td, th) a + a { margin-inline-start: 0.65rem; }

.vdc-statistics__beneficiaries {
	display: grid;
	gap: 1rem;
}

.vdc-statistics__beneficiary-period {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
	align-items: end;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid #d7dde5;
	border-radius: 10px;
	background: #f8fafc;
}

.vdc-statistics__beneficiary-period label {
	display: grid;
	gap: 0.35rem;
}

.vdc-statistics__beneficiary-period input,
.vdc-statistics__beneficiary-period button {
	min-height: 2.75rem;
}

.vdc-statistics__beneficiary-period button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.9rem;
	border: 1px solid #1d4ed8;
	border-radius: 10px;
	color: #fff;
	background: #1d4ed8;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.vdc-statistics__beneficiary-period button:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 2px;
}

.vdc-statistics__monthly {
	padding: 1.25rem;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	background: #fff;
}

.vdc-statistics__monthly h3 {
	margin-block-start: 0;
}

@media (max-width: 52rem) {
	.vdc-statistics__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vdc-statistics__beneficiary-period { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vdc-statistics__beneficiary-period button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 40rem) {
	.vdc-statistics__periods {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
		width: 100%;
	}

	.vdc-statistics__periods a {
		display: inline-flex;
		min-height: 40px;
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	.vdc-statistics__periods a:nth-child(3) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 36rem) {
	.vdc-statistics__kpis,
	.vdc-statistics__details { grid-template-columns: minmax(0, 1fr); }
	.vdc-statistics__beneficiary-period,
	.vdc-statistics__beneficiary-period label,
	.vdc-statistics__beneficiary-period input,
	.vdc-statistics__beneficiary-period button { width: 100%; }
}

.vdc-off-schedule-hours__form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 1rem;
	margin-block: 1.5rem;
}

.vdc-dashboard__main .vdc-off-schedule-hours__filters {
	grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
	align-items: end;
	margin-block: 1.5rem;
}

.vdc-off-schedule-hours__filters label {
	display: grid;
	gap: 0.35rem;
	min-width: 0;
}

.vdc-off-schedule-hours__filters :is(select, button) {
	box-sizing: border-box;
	max-width: 100%;
}

.vdc-off-schedule-hours__form--volunteer {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-areas:
		"date hours minutes"
		"activity mode submit"
		"detail detail detail"
		"comment comment comment";
	column-gap: 1rem;
}

.vdc-off-schedule-hours__form--manager {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-areas:
		"volunteer date hours"
		"minutes activity mode"
		"detail detail detail"
		"comment comment submit";
	column-gap: 1rem;
}

.vdc-off-schedule-hours__field { display: grid; align-content: start; gap: 0.35rem; min-width: 0; }
.vdc-off-schedule-hours__field--volunteer { grid-area: volunteer; }
.vdc-off-schedule-hours__field--date { grid-area: date; }
.vdc-off-schedule-hours__field--hours { grid-area: hours; }
.vdc-off-schedule-hours__field--minutes { grid-area: minutes; }
.vdc-off-schedule-hours__field--activity { grid-area: activity; }
.vdc-off-schedule-hours__field--mode { grid-area: mode; }
.vdc-off-schedule-hours__field--detail { grid-area: detail; }
.vdc-off-schedule-hours__field--comment { grid-area: comment; }

.vdc-off-schedule-hours .vdc-off-schedule-hours__form input,
.vdc-off-schedule-hours .vdc-off-schedule-hours__form select,
.vdc-off-schedule-hours .vdc-off-schedule-hours__form textarea { box-sizing: border-box; width: 100%; max-width: 100%; }

.vdc-off-schedule-hours .vdc-off-schedule-hours__form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	align-self: end;
	justify-content: center;
	justify-self: start;
	width: max-content;
	max-width: 100%;
	min-height: 2.75rem;
	height: auto;
	padding: 0.65rem 1rem;
	line-height: 1.25;
	white-space: nowrap;
}

.vdc-off-schedule-hours__form button[type="submit"] { grid-area: submit; }
.vdc-off-schedule-hours__table-wrap { max-width: 100%; overflow-x: auto; }
.vdc-off-schedule-hours__table-wrap table { width: 100%; min-width: 58rem; border-collapse: collapse; }
.vdc-off-schedule-hours__table-wrap th,
.vdc-off-schedule-hours__table-wrap td { padding: 0.65rem; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.vdc-off-schedule-hours__action { display: inline-flex; gap: 0.35rem; margin: 0.15rem; }

.vdc-off-schedule-hours__table-wrap--volunteer,
.vdc-off-schedule-hours__table-wrap--board {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	overflow: visible;
}

.vdc-off-schedule-hours__table-wrap--volunteer .vdc-off-schedule-hours__history-table,
.vdc-off-schedule-hours__table-wrap--board .vdc-off-schedule-hours__history-table {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.vdc-off-schedule-hours__table-wrap--volunteer .vdc-off-schedule-hours__history-table thead,
.vdc-off-schedule-hours__table-wrap--board .vdc-off-schedule-hours__history-table thead {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.vdc-off-schedule-hours__table-wrap--volunteer .vdc-off-schedule-hours__history-table tbody,
.vdc-off-schedule-hours__table-wrap--board .vdc-off-schedule-hours__history-table tbody {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.vdc-off-schedule-hours__table-wrap--volunteer .vdc-off-schedule-hours__history-card,
.vdc-off-schedule-hours__table-wrap--board .vdc-off-schedule-hours__history-card {
	display: flex;
	min-width: 0;
	height: 100%;
	box-sizing: border-box;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1rem;
	border: 1px solid #dbe3ea;
	border-radius: 10px;
	background: #fff;
}

.vdc-off-schedule-hours__table-wrap--volunteer .vdc-off-schedule-hours__history-cell,
.vdc-off-schedule-hours__table-wrap--board .vdc-off-schedule-hours__history-cell {
	display: grid;
	grid-template-columns: minmax(6rem, 0.38fr) minmax(0, 1fr);
	align-items: start;
	gap: 0.5rem;
	min-width: 0;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	padding: 0.2rem 0;
	border: 0;
	font-size: 15px;
	line-height: 1.4;
	white-space: normal;
	overflow-wrap: normal;
	word-break: normal;
}

.vdc-off-schedule-hours__history-cell::before {
	content: attr(data-label);
	color: #475569;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.vdc-off-schedule-hours__table-wrap--volunteer .vdc-off-schedule-hours__history-cell--date {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.vdc-off-schedule-hours__table-wrap--board .vdc-off-schedule-hours__history-cell--volunteer {
	display: block;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.vdc-off-schedule-hours__table-wrap--board .vdc-off-schedule-hours__history-cell--date {
	font-size: 15px;
	font-weight: 600;
}

.vdc-off-schedule-hours__history-cell--volunteer::before,
.vdc-off-schedule-hours__history-cell--date::before,
.vdc-off-schedule-hours__history-cell--comment::before,
.vdc-off-schedule-hours__history-cell--actions::before { display: block; margin-block-end: 0.25rem; }

.vdc-off-schedule-hours__table-wrap--volunteer .vdc-off-schedule-hours__history-cell--comment,
.vdc-off-schedule-hours__table-wrap--board .vdc-off-schedule-hours__history-cell--comment {
	display: block;
	overflow-wrap: break-word;
}

.vdc-off-schedule-hours__table-wrap--volunteer .vdc-off-schedule-hours__history-cell--comment:empty,
.vdc-off-schedule-hours__table-wrap--volunteer .vdc-off-schedule-hours__history-cell--actions:empty,
.vdc-off-schedule-hours__table-wrap--board .vdc-off-schedule-hours__history-cell--comment:empty,
.vdc-off-schedule-hours__table-wrap--board .vdc-off-schedule-hours__history-cell--actions:empty { display: none; }

.vdc-off-schedule-hours__table-wrap--volunteer .vdc-off-schedule-hours__history-cell--actions,
.vdc-off-schedule-hours__table-wrap--board .vdc-off-schedule-hours__history-cell--actions {
	display: block;
	margin-block-start: auto;
	padding-block-start: 0.75rem;
	border-block-start: 1px solid #e2e8f0;
}

.vdc-off-schedule-hours__history-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.vdc-off-schedule-hours__history-actions :is(a, button) {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 40px;
	padding: 0.45rem 0.75rem;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
}

.vdc-off-schedule-hours__status {
	display: inline-flex;
	align-items: center;
	width: max-content;
	max-width: 100%;
	padding: 0.35rem 0.65rem;
	border-radius: 10px;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.25;
}

.vdc-off-schedule-hours__status--pending { color: #92400e; background: #fef3c7; }
.vdc-off-schedule-hours__status--approved { color: #166534; background: #dcfce7; }
.vdc-off-schedule-hours__status--rejected { color: #991b1b; background: #fee2e2; }

.vdc-off-schedule-hours__actions-cell { min-width: 0; }
.vdc-off-schedule-hours__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.vdc-off-schedule-hours__actions .vdc-off-schedule-hours__action { margin: 0; }

.vdc-off-schedule-hours__actions :is(button, .vdc-off-schedule-hours__action-link, .vdc-off-schedule-hours__reject > summary) {
	box-sizing: border-box;
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	width: auto;
	padding: 0.45rem 0.75rem;
	border-radius: 10px;
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.vdc-off-schedule-hours__action--approve button { color: #fff; border: 1px solid #15803d; background: #15803d; }
.vdc-off-schedule-hours__action-link { color: #1d4ed8; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 0.15em; }
.vdc-off-schedule-hours__action--delete button { min-height: 0; padding-inline: 0.2rem; color: #b91c1c; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 0.15em; }

.vdc-off-schedule-hours__reject { margin: 0; }
.vdc-off-schedule-hours__reject > summary { color: #991b1b; border: 1px solid #fca5a5; background: #fff; list-style: none; }
.vdc-off-schedule-hours__reject > summary::-webkit-details-marker { display: none; }
.vdc-off-schedule-hours__reject[open] { flex-basis: 100%; }
.vdc-off-schedule-hours__action--reject { display: grid; grid-template-columns: minmax(12rem, 1fr) auto; gap: 0.5rem; margin-block-start: 0.5rem; }
.vdc-off-schedule-hours__action--reject input { box-sizing: border-box; width: 100%; min-width: 12rem; padding: 0.5rem 0.65rem; border: 1px solid #aeb8c2; border-radius: 8px; font-size: 1.4rem; }
.vdc-off-schedule-hours__action--reject button { color: #fff; border: 1px solid #b91c1c; background: #b91c1c; }

@media (max-width: 72rem) {
	.vdc-off-schedule-hours__table-wrap--volunteer .vdc-off-schedule-hours__history-table tbody,
	.vdc-off-schedule-hours__table-wrap--board .vdc-off-schedule-hours__history-table tbody {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vdc-dashboard__main .vdc-off-schedule-hours__filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vdc-off-schedule-hours__form--volunteer,
	.vdc-off-schedule-hours__form--manager {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas: none;
		column-gap: 1rem;
	}

	.vdc-off-schedule-hours__form .vdc-off-schedule-hours__field,
	.vdc-off-schedule-hours__form button[type="submit"] { grid-area: auto; }
}

@media (max-width: 40rem) {
	.vdc-off-schedule-hours__table-wrap--volunteer .vdc-off-schedule-hours__history-table tbody,
	.vdc-off-schedule-hours__table-wrap--board .vdc-off-schedule-hours__history-table tbody {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 36rem) {
	.vdc-dashboard__main .vdc-off-schedule-hours__filters {
		grid-template-columns: minmax(0, 1fr);
	}

	.vdc-off-schedule-hours__filters button[type="submit"] { width: 100%; }

	.vdc-off-schedule-hours__form { grid-template-columns: minmax(0, 1fr); }

	.vdc-off-schedule-hours .vdc-off-schedule-hours__form button[type="submit"] {
		width: 100%;
		min-width: 0;
	}
}
