/* WorkTrack Pro - public auth forms and worker dashboard (Fase 1: solo auth) */

.wtp-auth {
	max-width: 420px;
	margin: 2rem auto;
	padding: 2rem;
	background: var(--wtp-surface);
	border: 1px solid var(--wtp-border);
	border-radius: var(--wtp-radius);
	box-shadow: var(--wtp-shadow);
	font-family: var(--wtp-font);
	color: var(--wtp-text);
}

.wtp-alert {
	padding: 0.75rem 1rem;
	border-radius: var(--wtp-radius);
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.wtp-alert--success {
	background: var(--wtp-success-bg);
	color: var(--wtp-success);
}

.wtp-alert--error {
	background: var(--wtp-error-bg);
	color: var(--wtp-error);
}

.wtp-form--auth .wtp-field {
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wtp-form--auth label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--wtp-text-muted);
}

.wtp-form--auth input {
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--wtp-border);
	border-radius: 8px;
	background: var(--wtp-bg);
	color: var(--wtp-text);
	font-size: 0.95rem;
}

.wtp-form--auth input:focus {
	outline: 2px solid var(--wtp-primary);
	outline-offset: 1px;
}

.wtp-form--auth .iti {
	width: 100%;
}

.wtp-form--auth .iti input {
	width: 100%;
}

.wtp-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.25rem;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	width: 100%;
}

.wtp-button--primary {
	background: var(--wtp-primary);
	color: #fff;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wtp-button--primary:hover {
	background: var(--wtp-accent);
	color: var(--wtp-primary);
}

/* ── Login form ── */
#wtp-login-form .wtp-password-wrap {
	position: relative;
}

#wtp-login-form .wtp-password-wrap input[type="password"],
#wtp-login-form .wtp-password-wrap input[type="text"] {
	width: 100%;
	padding-right: 2.75rem;
	box-sizing: border-box;
}

#wtp-login-form .wtp-toggle-pass {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: var(--wtp-text-muted);
	display: flex;
	align-items: center;
	line-height: 1;
	user-select: none;
	z-index: 1;
}

#wtp-login-form .wtp-toggle-pass:hover {
	color: var(--wtp-text);
}

#wtp-login-form .wtp-forgot-link {
	font-size: 0.78rem;
	color: var(--wtp-primary);
	text-decoration: none;
	white-space: nowrap;
}

#wtp-login-form .wtp-forgot-link:hover {
	text-decoration: underline;
}

#wtp-login-form .wtp-field--inline {
	margin-top: -0.25rem;
}

@media (max-width: 480px) {
	.wtp-auth {
		margin: 1rem;
		padding: 1.25rem;
	}
}

/* Combined login/register tabs [wtp_auth] */

.wtp-tabs {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 1.5rem;
	background: var(--wtp-bg);
	border: 1px solid var(--wtp-border);
	border-radius: 10px;
	padding: 0.25rem;
}

.wtp-auth-tabs .wtp-tab {
	flex: 1;
	padding: 0.6rem 1rem;
	border: none !important;
	border-radius: 8px;
	background: transparent !important;
	box-shadow: none !important;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wtp-text-muted) !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.wtp-auth-tabs .wtp-tab.is-active {
	background: var(--wtp-surface) !important;
	color: var(--wtp-primary) !important;
	box-shadow: var(--wtp-shadow) !important;
}

.wtp-tab-panel {
	display: none;
}

.wtp-tab-panel.is-active {
	display: block;
}

.wtp-tab-link {
	display: inline-block;
	margin-top: 0.5rem;
	border: none;
	background: none;
	padding: 0;
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

/* Worker dashboard */

.wtp-dashboard {
	margin: 1.5rem auto;
	font-family: var(--wtp-font);
	color: var(--wtp-text);
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.wtp-dashboard__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	background: var(--wtp-surface);
	border: 1px solid var(--wtp-border);
	border-radius: var(--wtp-radius);
	box-shadow: var(--wtp-shadow);
	padding: 1.25rem 1.5rem;
}

.wtp-dashboard__greeting-group {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.wtp-dashboard__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50% !important;
	object-fit: cover;
	flex-shrink: 0;
	margin-top: 0.15rem;
	border: 2px solid var(--wtp-border);
}

.wtp-dashboard__greeting {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
}

.wtp-dashboard__date {
	margin: 0;
	color: var(--wtp-text-muted);
	text-transform: capitalize;
	font-size: 0.9rem;
}

.wtp-dashboard__clock-group {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.1rem;
}

.wtp-dashboard__clock-label {
	font-size: 0.7rem;
	color: var(--wtp-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wtp-dashboard__clock {
	font-size: 1.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--wtp-primary);
}

.wtp-dashboard__header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.wtp-profile__header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.wtp-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}

.wtp-card {
	background: var(--wtp-surface);
	border: 1px solid var(--wtp-border);
	border-radius: var(--wtp-radius);
	box-shadow: var(--wtp-shadow);
	padding: 1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wtp-card__label {
	font-size: 0.8rem;
	color: var(--wtp-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.wtp-card__value {
	font-size: 1.5rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.wtp-card__metric {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
}

.wtp-card__metric-label {
	font-size: 0.7rem;
	color: var(--wtp-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.wtp-card__earnings-today {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid var(--wtp-border);
}

.wtp-card__earnings-today-value {
	font-size: 1rem;
	font-weight: 700;
	color: var(--wtp-success);
	font-variant-numeric: tabular-nums;
}

.wtp-card__earnings-today-label {
	font-size: 0.7rem;
	color: var(--wtp-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.wtp-session-panel {
	padding: 0;
}

.wtp-empty {
	margin: 0;
	color: var(--wtp-text-muted);
	text-align: center;
}

.wtp-session-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

.wtp-session-status {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
}

.wtp-badge-status {
	display: inline-block;
	padding: 0.25rem 0.85rem;
	border-radius: 999px;
	background: var(--wtp-bg);
	border: 1px solid var(--wtp-border);
	font-size: 0.85rem;
	font-weight: 600;
}

.wtp-session-project {
	font-size: 1.1rem;
	font-weight: 600;
}

.wtp-stopwatch {
	font-size: 2.5rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--wtp-accent);
}

.wtp-session-state .wtp-field {
	width: 100%;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	text-align: left;
}

.wtp-session-state select {
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--wtp-border);
	border-radius: 8px;
	background: var(--wtp-bg);
	color: var(--wtp-text);
	font-size: 0.95rem;
}

.wtp-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	justify-content: center;
}

.wtp-actions .wtp-button,
.wtp-session-state > .wtp-button {
	width: auto;
	min-width: 180px;
}

.wtp-button--secondary {
	background: var(--wtp-bg);
	color: var(--wtp-text);
	border: 1px solid var(--wtp-border);
}

.wtp-button--danger {
	background: var(--wtp-error);
	color: #fff;
}

.wtp-button--nav {
	width: auto;
	text-decoration: none;
}

.wtp-feedback {
	min-height: 1.2em;
	font-size: 0.9rem;
	color: var(--wtp-text-muted);
	margin: 0;
}

.wtp-feedback--error {
	color: var(--wtp-error);
}

.wtp-modal {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.wtp-modal[hidden] {
	display: none;
}

.wtp-modal__dialog {
	background: var(--wtp-surface);
	color: var(--wtp-text);
	border-radius: var(--wtp-radius);
	box-shadow: var(--wtp-shadow);
	padding: 1.5rem;
	max-width: 360px;
	width: 90%;
	text-align: center;
}

.wtp-modal__actions {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.25rem;
	justify-content: center;
}

.wtp-modal__actions .wtp-button {
	width: auto;
	min-width: 120px;
}

@media (max-width: 640px) {
	.wtp-cards {
		grid-template-columns: 1fr;
	}

	.wtp-dashboard__header {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ─── Shared panel component (dashboard + profile) ──────────── */

.wtp-wo-panel {
	background: var(--wtp-surface);
	border: 1px solid var(--wtp-border);
	border-radius: var(--wtp-radius);
	box-shadow: var(--wtp-shadow);
	padding: 1rem 1.25rem;
}

.wtp-wo-sidebar__title,
.wtp-wo-panel .wtp-wo-sidebar__title,
.wtp-dashboard .wtp-wo-sidebar__title,
.wtp-profile .wtp-wo-sidebar__title {
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	margin: 0 0 0.75rem !important;
	padding-bottom: 0.5rem !important;
	border-bottom: 1px solid var(--wtp-border) !important;
	line-height: 1.4 !important;
	color: var(--wtp-text) !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	text-align: center !important;
}

.wtp-show-more {
	display: block !important;
	width: 100% !important;
	text-align: center !important;
	background: none !important;
	border: none !important;
	color: var(--wtp-primary) !important;
	font-size: 0.85rem !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	padding: 0.6rem 0 !important;
	box-shadow: none !important;
	margin-top: 0.5rem !important;
}

.wtp-wo-sidebar__totals {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
	margin-bottom: 1rem;
}

@media (max-width: 640px) {
	.wtp-wo-sidebar__totals {
		grid-template-columns: 1fr;
	}
}

.wtp-wo-sidebar__total {
	background: var(--wtp-bg, #f9fafb);
	border: 1px solid var(--wtp-border);
	border-radius: 8px;
	padding: 0.5rem 0.75rem;
}

.wtp-wo-sidebar__total-label {
	font-size: 0.68rem;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wtp-text-muted);
	margin: 0;
}

.wtp-wo-sidebar__total-value {
	font-size: 1.15rem;
	font-weight: 800;
	margin: 0.1rem 0 0;
}

.wtp-wo-items { display: block; }

.wtp-wo-item { border-bottom: 1px solid var(--wtp-border); }
.wtp-wo-item:last-child { border-bottom: none; }

.wtp-wo-item__toggle {
	width: 100%;
	background: none !important;
	border: none;
	padding: 0.65rem 0;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.75rem;
	text-align: left;
	box-shadow: none !important;
	color: inherit !important;
}

.wtp-wo-item__toggle:hover,
.wtp-wo-item__toggle:focus {
	background: none !important;
	box-shadow: none !important;
	color: inherit !important;
	outline: none;
}

.wtp-wo-item__toggle:hover .wtp-wo-item__title { color: var(--wtp-primary); }
.wtp-wo-item__toggle-left { flex: 1; min-width: 0; }
.wtp-wo-item__toggle-right { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }

.wtp-wo-item__title {
	font-size: 0.88rem;
	font-weight: 700;
	display: block;
	color: var(--wtp-text);
}

.wtp-wo-item__mini-bar {
	display: block;
	height: 3px;
	background: var(--wtp-border);
	border-radius: 9999px;
	overflow: hidden;
	margin-top: 0.3rem;
}

.wtp-wo-item__mini-fill {
	display: block;
	height: 100%;
	background: #16a34a;
	border-radius: 9999px;
}

.wtp-wo-item__chevron {
	transition: transform 0.2s;
	color: var(--wtp-text-muted);
	flex-shrink: 0;
}

.wtp-wo-item__toggle[aria-expanded="true"] .wtp-wo-item__chevron { transform: rotate(180deg); }

.wtp-wo-item__body { padding: 0 0 0.75rem; }

.wtp-wo-item__project {
	font-size: 1rem;
	color: var(--wtp-text);
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.5;
}

.wtp-wo-item__field-label {
	font-size: 0.85rem !important;
	font-weight: 600;
	text-transform: uppercase;
	color: #6b7280;
	letter-spacing: 0.04em;
}

.wtp-wo-item__amounts { display: flex; gap: 0.75rem; margin-top: 0.85rem; margin-bottom: 0.75rem; }
.wtp-wo-item__amount { font-size: 1rem; }
.wtp-wo-item__amount-label { text-transform: uppercase; font-weight: 600; color: var(--wtp-text-muted); font-size: 0.85rem; display: block; }
.wtp-wo-item__amount-value { font-weight: 800; display: block; font-size: 1rem; }

.wtp-wo-item__chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.wtp-wo-item__chip {
	flex: 1;
	min-width: 64px;
	text-align: center;
	padding: 0.7rem 0.4rem;
	border-radius: 6px;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.2;
}
.wtp-wo-item__chip-meta {
	display: block;
	margin-top: 0.35rem;
	font-size: 1.05rem;
	font-weight: 600;
}

/* ── Overtime confirmation banner ── */
.wtp-overtime-banner {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	border: 2px solid #b45309;
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin: 0 0 1rem;
	display: flex;
	gap: 1rem;
	align-items: center;
	flex-wrap: wrap;
	box-shadow: 0 4px 14px rgba(180, 83, 9, 0.18);
	animation: wtp-overtime-pulse 2.2s ease-in-out infinite;
}

@keyframes wtp-overtime-pulse {
	0%, 100% { box-shadow: 0 4px 14px rgba(180, 83, 9, 0.18); }
	50%      { box-shadow: 0 4px 22px rgba(180, 83, 9, 0.45); }
}

.wtp-overtime-banner__body {
	flex: 1;
	min-width: 240px;
}

.wtp-overtime-banner__title {
	display: block;
	font-size: 1.05rem;
	font-weight: 800;
	color: #78350f;
	line-height: 1.2;
	margin-bottom: 0.25rem;
}

.wtp-overtime-banner__text {
	margin: 0;
	font-size: 0.9rem;
	color: #92400e;
}

.wtp-overtime-banner__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.wtp-overtime-banner__btn {
	padding: 0.65rem 1.1rem;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	border: 2px solid transparent;
	line-height: 1;
	transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.wtp-overtime-banner__btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.wtp-overtime-banner__btn--continue {
	background: #b45309;
	color: #fff;
	border-color: #b45309;
}

.wtp-overtime-banner__btn--continue:not(:disabled):hover {
	background: #92400e;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(146, 64, 14, 0.35);
}

.wtp-overtime-banner__btn--finalize {
	background: #fff;
	color: #78350f;
	border-color: #b45309;
}

.wtp-overtime-banner__btn--finalize:not(:disabled):hover {
	background: #fef3c7;
}

@media (max-width: 600px) {
	.wtp-overtime-banner {
		flex-direction: column;
		align-items: stretch;
	}
	.wtp-overtime-banner__actions {
		justify-content: stretch;
	}
	.wtp-overtime-banner__btn {
		flex: 1;
	}
}

.wtp-review-submit-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.wtp-review-submit-btn {
	transition: background-color 0.15s ease, color 0.15s ease;
}
.wtp-review-submit-btn:not(:disabled):hover {
	background: var(--wtp-accent) !important;
	color: var(--wtp-primary) !important;
}
.wtp-review-cancel-btn:hover {
	background: rgba(242, 182, 50, 0.12) !important;
}

@media (max-width: 600px) {
	.wtp-wo-item__chip {
		font-size: 1rem;
		padding: 0.5rem 0.3rem;
		min-width: 52px;
	}
	.wtp-wo-item__chip-meta {
		font-size: 0.85rem;
		margin-top: 0.25rem;
	}
	.wtp-wo-item a[target="_blank"] {
		font-size: 0.95rem !important;
		padding: 0.55rem 1rem !important;
	}
}

.wtp-wo-empty {
	font-size: 0.85rem;
	color: var(--wtp-text-muted);
	text-align: center;
	padding: 1rem 0;
}

/* Worker profile [wtp_profile] */

.wtp-profile {
	margin: 1.5rem auto;
	font-family: var(--wtp-font);
	color: var(--wtp-text);
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.wtp-profile__header {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	background: var(--wtp-surface);
	border: 1px solid var(--wtp-border);
	border-radius: var(--wtp-radius);
	box-shadow: var(--wtp-shadow);
	padding: 1.25rem 1.5rem;
}

.wtp-profile__name {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
}

.wtp-profile__tabs {
	display: flex;
	gap: 0.35rem;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	overflow-x: auto;
	flex-wrap: wrap;
	justify-content: center;
}

.wtp-tab-btn {
	padding: 0.3rem 1rem !important;
	border: 1px solid var(--wtp-border) !important;
	border-radius: 2rem !important;
	background: transparent !important;
	color: var(--wtp-text-muted) !important;
	font-size: 0.82rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	white-space: nowrap;
	width: auto !important;
	min-width: 0 !important;
	box-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.wtp-tab-btn--active {
	background: var(--wtp-primary) !important;
	border-color: var(--wtp-primary) !important;
	color: #fff !important;
	animation: wtp-tab-pulse 1.8s ease-in-out infinite;
}

@keyframes wtp-tab-pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(26, 53, 109, 0.45);
	}
	50% {
		box-shadow: 0 0 0 6px rgba(26, 53, 109, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wtp-tab-btn--active {
		animation: none;
	}
}

.wtp-tab-panel--hidden {
	display: none !important;
}

/* Tab panel grid layout — controlled via CSS so media queries can override.
   The display property (grid/none) is set via inline style in PHP to beat theme specificity. */
.wtp-profile .wtp-tab-panel {
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	align-items: stretch;
}

.wtp-profile .wtp-cards {
	align-items: stretch;
	grid-template-columns: repeat(2, 1fr);
}

.wtp-profile .wtp-cards--4col {
	grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 720px) {
	.wtp-profile .wtp-cards {
		grid-template-columns: 1fr;
	}

	.wtp-profile .wtp-cards--4col {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

.wtp-card--profile {
	gap: 0.5rem;
}

.wtp-card--overtime .wtp-card__value {
	color: var(--wtp-warning, #b45309);
}

.wtp-card__earnings-primary--overtime {
	background: var(--wtp-warning-bg, #fef3c7);
	border: 1px solid var(--wtp-warning, #b45309);
	border-radius: var(--wtp-radius);
	padding: 0.5rem 0.75rem;
}

.wtp-card__earnings-value--overtime {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--wtp-warning, #b45309);
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.wtp-card__earnings-primary {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.wtp-card__earnings-primary--highlight {
	background: var(--wtp-success-bg);
	border: 1px solid var(--wtp-success);
	border-radius: var(--wtp-radius);
	padding: 0.75rem 1rem;
}

.wtp-card__earnings-value {
	font-size: 2rem;
	font-weight: 800;
	color: var(--wtp-success);
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.wtp-card__earnings-value--empty {
	font-size: 1rem;
	font-weight: 600;
	font-style: italic;
	color: var(--wtp-text-muted);
}

.wtp-card__earnings-label {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--wtp-success);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.wtp-card__earnings-primary--highlight .wtp-card__earnings-label {
	color: var(--wtp-success);
}

.wtp-card__hours {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding-top: 0.5rem;
	border-top: 1px solid var(--wtp-border);
}

.wtp-profile .wtp-card__value {
	font-size: 1.1rem;
}

.wtp-card__hours-label {
	font-size: 0.75rem;
	color: var(--wtp-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.wtp-card__extra-info {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.75rem;
	font-size: 0.75rem;
	color: var(--wtp-text-muted);
}

.wtp-card__extra-item--overtime {
	color: var(--wtp-accent);
	font-weight: 600;
}

.wtp-profile__salary-summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	background: var(--wtp-surface);
	border: 1px solid var(--wtp-border);
	border-radius: var(--wtp-radius);
	box-shadow: var(--wtp-shadow);
	padding: 1rem 1.25rem;
}

.wtp-summary-item {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	text-align: center;
}

.wtp-summary-item__label {
	font-size: 0.75rem;
	color: var(--wtp-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.wtp-summary-item__value {
	font-size: 1.25rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
	.wtp-profile__salary-summary {
		grid-template-columns: 1fr;
		text-align: left;
	}

	.wtp-summary-item {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		text-align: left;
	}
}

.wtp-profile__active-session {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.6rem 0.85rem;
	background: var(--wtp-surface);
	border: 1px solid var(--wtp-border);
	border-radius: var(--wtp-radius);
	box-shadow: var(--wtp-shadow);
	padding: 0.85rem 1.25rem;
}

.wtp-badge-status--active {
	background: var(--wtp-success-bg);
	color: var(--wtp-success);
	border-color: var(--wtp-success);
}

.wtp-badge-status--paused {
	background: var(--wtp-bg);
	color: var(--wtp-accent);
	border-color: var(--wtp-accent);
}

.wtp-profile__active-session-detail {
	font-size: 0.9rem;
	color: var(--wtp-text-muted);
}


.wtp-profile__history-title {
	margin: 0;
}

.wtp-history-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--wtp-surface);
	border: 1px solid var(--wtp-border);
	border-radius: var(--wtp-radius);
	box-shadow: var(--wtp-shadow);
	overflow: hidden;
}

.wtp-history-table th,
.wtp-history-table td {
	padding: 0.6rem 0.85rem;
	text-align: left;
	border-bottom: 1px solid var(--wtp-border);
	font-size: 0.9rem;
}

.wtp-history-table th {
	background: var(--wtp-bg);
	color: var(--wtp-text-muted);
	font-weight: 600;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.wtp-history-table tr:last-child td {
	border-bottom: none;
}

.wtp-pagination {
	display: flex;
	justify-content: center;
	gap: 0.35rem;
}

.wtp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.5rem;
	border: 1px solid var(--wtp-border);
	border-radius: 6px;
	color: var(--wtp-text);
	text-decoration: none;
	font-size: 0.85rem;
}

.wtp-pagination .page-numbers.current {
	background: var(--wtp-primary);
	color: #fff;
	border-color: var(--wtp-primary);
}

/* Table scroll wrapper */
.wtp-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--wtp-border);
	border-radius: var(--wtp-radius);
	box-shadow: var(--wtp-shadow);
}

.wtp-table-wrap .wtp-history-table {
	border: none;
	border-radius: 0;
	box-shadow: none;
	min-width: 480px;
}

/* ─── Mobile ≤ 640px ─────────────────────────────────────── */
@media (max-width: 640px) {

	/* Dashboard */
	.wtp-dashboard {
		margin: 0.75rem auto;
		gap: 0.75rem;
	}

	.wtp-dashboard__header {
		flex-direction: column;
		align-items: flex-start;
		padding: 1rem;
		gap: 0.75rem;
	}

	.wtp-dashboard__header-actions {
		width: 100%;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 0.5rem;
	}

	.wtp-dashboard__header-actions .wtp-button--nav {
		flex: 1;
		min-width: 0;
		justify-content: center;
		text-align: center;
	}

	.wtp-dashboard__clock-group {
		width: 100%;
		align-items: flex-start;
	}

	.wtp-dashboard__clock-group {
		align-items: flex-start;
	}

	.wtp-dashboard__clock {
		font-size: 1.5rem;
	}

	.wtp-dashboard__greeting {
		font-size: 1.1rem;
	}

	.wtp-cards {
		grid-template-columns: 1fr;
	}

	.wtp-session-panel {
		padding: 1rem;
	}

	.wtp-stopwatch {
		font-size: 2rem;
	}

	/* Profile */
	.wtp-profile {
		margin: 0.75rem auto;
		gap: 0.85rem;
	}

	.wtp-profile__header-top {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.wtp-profile__name {
		font-size: 1.2rem;
	}

	.wtp-profile__salary-summary {
		grid-template-columns: 1fr;
		gap: 0.4rem;
		padding: 0.75rem 1rem;
	}

	.wtp-summary-item {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		text-align: left;
	}

	.wtp-summary-item__value {
		font-size: 1rem;
	}

	/* Cards inner layout */
	.wtp-card {
		padding: 0.75rem;
	}

	.wtp-card__earnings-value {
		font-size: 1.6rem;
	}

	.wtp-card__hours {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.1rem;
	}

	.wtp-card__metric {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.1rem;
	}

	/* Tab panels: 1 column on phones */
	.wtp-profile .wtp-tab-panel {
		grid-template-columns: 1fr;
	}

	/* History tables */
	.wtp-history-table th,
	.wtp-history-table td {
		padding: 0.45rem 0.6rem;
		font-size: 0.82rem;
	}

	.wtp-history-table th {
		font-size: 0.72rem;
	}

	/* Buttons */
	.wtp-button--nav {
		font-size: 0.85rem;
		padding: 0.45rem 0.85rem;
	}

	.wtp-profile__active-session {
		padding: 0.75rem 1rem;
	}

	.wtp-profile__history-title {
		font-size: 1rem;
	}

	.wtp-pagination {
		flex-wrap: wrap;
	}

	.wtp-wo-item__amount {
		font-size: 0.88rem;
	}

	.wtp-wo-item__amount-label {
		font-size: 0.78rem;
	}
}

/* ---------------------------------------------------------
 * Sección de novedades (barra colapsable arriba del perfil/dashboard)
 * --------------------------------------------------------- */
.wtp-notif-section {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	margin-bottom: 1rem;
	overflow: hidden;
}
.wtp-notif-section__bar {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 1.1rem;
	background: transparent;
	border: none;
	cursor: pointer;
	font-family: inherit;
	text-align: left;
	color: #1e2a4a;
	transition: background 0.15s;
}
.wtp-notif-section__bar:hover {
	background: #f9fafb;
}
.wtp-notif-section__title {
	font-weight: 700;
	font-size: 0.95rem;
	display: inline-flex;
	align-items: center;
}
.wtp-notif-section__badge {
	background: #dc2626;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	padding: 0.1rem 0.55rem;
	border-radius: 9px;
	margin-left: 0.55rem;
	line-height: 1.4;
}
.wtp-notif-section__toggle {
	font-size: 0.85rem;
	color: #6b7280;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
.wtp-notif-section__chevron {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s;
}
.wtp-notif-section[data-open="true"] .wtp-notif-section__chevron {
	transform: rotate(-135deg);
}
.wtp-notif-section__list {
	border-top: 1px solid #f3f4f6;
	max-height: 420px;
	overflow-y: auto;
}
.wtp-notif-section__item {
	display: flex;
	gap: 0.75rem;
	padding: 0.8rem 1.1rem;
	border-bottom: 1px solid #f3f4f6;
	align-items: flex-start;
}
.wtp-notif-section__item:last-child { border-bottom: none; }
.wtp-notif-section__item--unread { background: #eff6ff; }
.wtp-notif-section__icon {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f3f4f6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 700;
}
.wtp-notif-section__item--stage_paid .wtp-notif-section__icon       { background: #dcfce7; color: #16a34a; }
.wtp-notif-section__item--order_assigned .wtp-notif-section__icon   { background: #fef3c7; color: #b45309; }
.wtp-notif-section__item--project_assigned .wtp-notif-section__icon { background: #dbeafe; color: #1d4ed8; }
.wtp-notif-section__item--deduction_added .wtp-notif-section__icon  { background: #fee2e2; color: #dc2626; }
.wtp-notif-section__body {
	flex: 1;
	min-width: 0;
}
.wtp-notif-section__item-title {
	font-weight: 600;
	font-size: 0.88rem;
	color: #111;
	margin: 0 0 0.15rem;
}
.wtp-notif-section__text {
	font-size: 0.82rem;
	color: #4b5563;
	margin: 0;
	overflow-wrap: anywhere;
}
.wtp-notif-section__time {
	font-size: 0.72rem;
	color: #9ca3af;
	white-space: nowrap;
	flex-shrink: 0;
	margin-left: 0.5rem;
}
