/* Gestion du temps — styles front-end (shortcode) et admin */

.gdt-wrap {
	max-width: 480px;
	margin: 0 auto;
	font-size: 16px;
}

.gdt-alert {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-weight: 600;
}
.gdt-alert-success {
	background: #e6f6ee;
	color: #1c7a4d;
}
.gdt-alert-error {
	background: #fdecea;
	color: #b3261e;
}

.gdt-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 12px;
	padding: 24px 20px;
	text-align: center;
	margin-bottom: 20px;
}

.gdt-date {
	text-transform: capitalize;
	color: #666;
	margin: 0 0 16px;
}

.gdt-greeting {
	font-size: 19px;
	font-weight: 700;
	text-align: center;
	margin: 0 0 12px;
}

.gdt-status {
	font-size: 17px;
	margin: 0 0 8px;
}
.gdt-status-total {
	font-size: 20px;
	text-align: center;
	margin: 0;
}

.gdt-btn {
	display: block;
	width: 100%;
	padding: 16px;
	font-size: 18px;
	font-weight: 700;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	color: #fff;
}
.gdt-btn-arrivee {
	background: #2f9e6e;
}
.gdt-btn-depart {
	background: #d9534f;
}
.gdt-btn-manuel {
	background: #3a6ea5;
	margin-top: 12px;
}

.gdt-details {
	margin-bottom: 24px;
	background: #fafafa;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 12px 16px;
}
.gdt-details summary {
	cursor: pointer;
	font-weight: 600;
	color: #3a6ea5;
}
.gdt-form-manuel {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.gdt-form-manuel label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-weight: 600;
	font-size: 14px;
	color: #444;
}
.gdt-form-manuel input,
.gdt-form-manuel textarea {
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font-size: 16px;
	font-family: inherit;
	resize: vertical;
}

.gdt-h3 {
	margin-bottom: 8px;
}

.gdt-stats {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
}
.gdt-stat {
	flex: 1;
	background: #fafafa;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 12px;
	text-align: center;
}
.gdt-stat-value {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: #2f9e6e;
}
.gdt-stat-cible {
	font-size: 14px;
	font-weight: 400;
	color: #999;
}
.gdt-stat-over {
	color: #d9534f;
}
.gdt-stat-label {
	display: block;
	font-size: 12px;
	color: #888;
	margin-top: 2px;
}

.gdt-login-card {
	text-align: left;
}
.gdt-remember {
	flex-direction: row !important;
	align-items: center;
	gap: 6px !important;
}
.gdt-logout {
	text-align: center;
	margin-top: 16px;
}
.gdt-logout a {
	color: #888;
	font-size: 14px;
}
.gdt-version {
	text-align: center;
	color: #bbb;
	font-size: 11px;
	margin-top: 24px;
}

.gdt-table-wrap {
	overflow-x: auto;
}
.gdt-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.gdt-table th,
.gdt-table td {
	padding: 8px 6px;
	text-align: left;
	border-bottom: 1px solid #eee;
}

/* Admin */
.gdt-admin-table td,
.gdt-admin-table th {
	vertical-align: middle;
}
.gdt-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
}
.gdt-badge-absent {
	background: #999;
}
.gdt-badge-present {
	background: #2f9e6e;
}
.gdt-badge-fini {
	background: #3a6ea5;
}
.gdt-recap-filtre {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 16px 0;
}
.gdt-kpis {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 16px 0 20px;
}
.gdt-kpi {
	background: #fff;
	border: 1px solid #dcdcde;
	border-left: 4px solid #2f9e6e;
	border-radius: 6px;
	padding: 14px 20px;
	min-width: 160px;
}
.gdt-kpi-value {
	display: block;
	font-size: 24px;
	font-weight: 700;
	color: #1d2327;
}
.gdt-kpi-label {
	display: block;
	font-size: 12px;
	color: #666;
	margin-top: 2px;
}
.gdt-bar-cell {
	min-width: 200px;
}
.gdt-bar-track {
	background: #eee;
	border-radius: 999px;
	height: 10px;
	overflow: hidden;
	margin-bottom: 4px;
}
.gdt-bar-fill {
	height: 100%;
	border-radius: 999px;
}
.gdt-bar-neutre {
	background: #3a6ea5;
}
.gdt-bar-ok {
	background: #2f9e6e;
}
.gdt-bar-warn {
	background: #e0a728;
}
.gdt-bar-low {
	background: #d9534f;
}
.gdt-bar-over {
	background: #b3261e;
}
.gdt-bar-label {
	font-size: 12px;
	color: #555;
}
.gdt-bar-depasse {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: #fdecea;
	color: #b3261e;
	font-weight: 700;
	font-size: 11px;
}
.gdt-alert-depassement {
	border-left-color: #b3261e;
}
.gdt-detail-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 8px;
}
.gdt-detail-table th,
.gdt-detail-table td {
	padding: 4px 8px;
	border-bottom: 1px solid #eee;
	text-align: left;
}
.gdt-detail-table th {
	font-size: 12px;
	color: #666;
}

@media (max-width: 600px) {
	.gdt-wrap {
		font-size: 15px;
	}
	.gdt-btn {
		font-size: 17px;
	}
}
