/* ============================================================
   Time clock (kiosk + timesheets) — tc- namespace
   Palette + radii follow docs/DESIGN_SYSTEM.md
   ============================================================ */

/* ---------- Kiosk shell ---------- */
.tc-kiosk {
	min-height: 100vh;
	background-color: #f5f7fa;
	display: flex;
	flex-direction: column;
}

.tc-kiosk-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 24px;
	background-color: #ffffff;
	border-bottom: 1px solid #e7ecf1;
}

.tc-kiosk-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 700;
	color: #003264;
}

.tc-kiosk-title img {
	width: 24px;
	height: 24px;
}

.tc-kiosk-now {
	font-size: 28px;
	font-weight: 700;
	color: #003264;
	font-variant-numeric: tabular-nums;
}

.tc-kiosk-date {
	font-size: 13px;
	color: #6E88A2;
	text-align: center;
}

.tc-kiosk-shop {
	font-size: 15px;
	font-weight: 600;
	color: #6E88A2;
	white-space: nowrap;
	max-width: 240px;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- Staff grid ---------- */
.tc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	padding: 24px;
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
}

.tc-card {
	background-color: #ffffff;
	border: 1px solid #e7ecf1;
	border-radius: 12px;
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	min-height: 150px;
	text-align: center;
}

.tc-card:hover,
.tc-card:focus-visible {
	box-shadow: 0 4px 14px rgba(0, 50, 100, 0.10);
	transform: translateY(-1px);
	outline: none;
}

.tc-avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: #eef3f8;
	color: #003264;
	font-weight: 700;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
}

.tc-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tc-card-name {
	font-weight: 600;
	font-size: 15px;
	color: #1d2939;
	line-height: 1.3;
}

/* ---------- Status pills ---------- */
.tc-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	white-space: nowrap;
}

.tc-pill-off {
	background-color: #f1f4f8;
	color: #6E88A2;
}

.tc-pill-on {
	background-color: #e3f5e4;
	color: #08810E;
}

.tc-pill-break {
	background-color: #fdf0db;
	color: #b76e00;
}

.tc-pill-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: currentColor;
}

/* ---------- Action / PIN overlay ---------- */
.tc-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(13, 27, 42, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1050;
	padding: 16px;
}

.tc-panel {
	background-color: #ffffff;
	border-radius: 16px;
	padding: 28px 24px;
	width: 100%;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
}

.tc-panel-name {
	font-size: 20px;
	font-weight: 700;
	color: #003264;
}

.tc-panel-status {
	font-size: 13px;
	color: #6E88A2;
}

/* PIN dots */
.tc-pin-dots {
	display: flex;
	gap: 14px;
	margin: 6px 0;
}

.tc-pin-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid #c2cfdb;
	background-color: transparent;
}

.tc-pin-dot.filled {
	background-color: #003264;
	border-color: #003264;
}

.tc-pin-error {
	color: #d92d20;
	font-size: 13px;
	font-weight: 600;
	min-height: 20px;
}

/* PIN pad */
.tc-pin-pad {
	display: grid;
	grid-template-columns: repeat(3, 72px);
	gap: 10px;
	justify-content: center;
}

.tc-pin-key {
	width: 72px;
	height: 60px;
	border-radius: 12px;
	border: 1px solid #e7ecf1;
	background-color: #f9fafb;
	font-size: 22px;
	font-weight: 600;
	color: #1d2939;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.1s ease;
	-webkit-tap-highlight-color: transparent;
}

.tc-pin-key:active {
	background-color: #e7eef5;
}

.tc-pin-key.muted {
	border: none;
	background: transparent;
	color: #6E88A2;
	font-size: 18px;
}

/* Big action buttons */
.tc-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.tc-action-btn {
	width: 100%;
	min-height: 56px;
	border-radius: 12px;
	font-size: 17px;
	font-weight: 700;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	white-space: nowrap;
}

.tc-action-in {
	background-color: #08810E;
	color: #ffffff;
}

.tc-action-out {
	background-color: #003264;
	color: #ffffff;
}

.tc-action-break {
	background-color: #f1f4f8;
	color: #003264;
	border: 1px solid #e7ecf1;
}

.tc-action-cancel {
	background: transparent;
	border: none;
	color: #6E88A2;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 8px;
}

/* Empty state */
.tc-empty {
	text-align: center;
	color: #6E88A2;
	padding: 60px 24px;
}

/* ---------- Timesheets: kiosk device link ---------- */
.tc-link-panel {
	background-color: #ffffff;
	border: 1px solid #e7ecf1;
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 16px;
}

.tc-link-label {
	font-size: 13px;
	font-weight: 700;
	color: #003264;
	margin-bottom: 8px;
}

.tc-link-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.tc-link-input {
	flex: 1 1 280px;
	min-width: 0;
	height: 40px;
	margin-bottom: 0 !important;
	font-size: 13px;
	color: #6E88A2;
}

/* ---------- Timesheets page bits ---------- */
.tc-on-now-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	background-color: #ffffff;
	border: 1px solid #e7ecf1;
	border-radius: 12px;
	padding: 12px 16px;
	margin-bottom: 16px;
}

.tc-on-now-label {
	font-size: 13px;
	font-weight: 700;
	color: #003264;
	margin-right: 4px;
	white-space: nowrap;
}

.tc-on-now-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: #e3f5e4;
	color: #08810E;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 10px;
	white-space: nowrap;
}

.tc-on-now-chip.break {
	background-color: #fdf0db;
	color: #b76e00;
}

.tc-source-note {
	font-size: 12px;
	color: #6E88A2;
}

.tc-summary-total {
	font-weight: 700;
	color: #003264;
}

/* Scheduled vs actual deviation hints */
.tc-deviation {
	font-size: 12px;
	color: #6E88A2;
	white-space: nowrap;
}

.tc-deviation.late {
	color: #b76e00;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
	.tc-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		padding: 16px;
		gap: 12px;
	}

	.tc-kiosk-header {
		flex-wrap: wrap;
		padding: 12px 16px;
	}

	.tc-kiosk-now {
		font-size: 22px;
	}
}

@media (max-width: 375px) {
	.tc-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tc-pin-pad {
		grid-template-columns: repeat(3, 64px);
	}

	.tc-pin-key {
		width: 64px;
		height: 54px;
	}
}
