/* TechSome SLA Manager styles */

.tsla-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
}
.tsla-badge-green  { background: #2e8b57; }
.tsla-badge-amber  { background: #d98c00; }
.tsla-badge-red    { background: #d63638; }
.tsla-badge-grey   { background: #8a8a8a; }

/* Admin dashboard */
.tsla-stat-row { display: flex; gap: 16px; margin: 16px 0 24px; }
.tsla-stat {
	background: #fff; border: 1px solid #ccd0d4; border-radius: 6px;
	padding: 16px 24px; min-width: 140px; text-align: center;
}
.tsla-stat-num { display: block; font-size: 28px; font-weight: 700; }
.tsla-stat-amber .tsla-stat-num { color: #d98c00; }
.tsla-stat-red .tsla-stat-num { color: #d63638; }

/* Front-end portal */
.tsla-portal {
	max-width: 700px; margin: 0 auto; font-size: 16px; line-height: 1.5;
}
.tsla-login-box { max-width: 360px; }
.tsla-error { color: #d63638; font-weight: 600; }

.tsla-portal-header {
	display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.tsla-logout { font-size: 14px; }

.tsla-job-list { display: flex; flex-direction: column; gap: 10px; }
.tsla-job-card {
	display: block; padding: 14px 16px; border: 1px solid #ddd; border-radius: 8px;
	text-decoration: none; color: inherit; background: #fafafa;
}
.tsla-job-card:hover { background: #f0f0f0; }
.tsla-job-card-top { display: flex; align-items: center; justify-content: space-between; }
.tsla-job-card-meta { color: #666; font-size: 14px; margin-top: 4px; }

.tsla-job-detail-header {
	display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.tsla-job-type-label {
	display: inline-block; margin: 0 0 14px; font-size: 12px; text-transform: uppercase;
	letter-spacing: .04em; color: #555; font-weight: 600;
}
.tsla-hint { color: #666; font-size: 13px; margin-top: -6px; }

.tsla-checklist { list-style: none; margin: 0 0 20px; padding: 0; }
.tsla-checklist li { padding: 6px 0; border-bottom: 1px solid #eee; }
.tsla-checklist input[type="checkbox"] { margin-right: 8px; }

.tsla-btn {
	background: #1d4ed8; color: #fff; border: none; border-radius: 6px;
	padding: 10px 18px; font-size: 15px; cursor: pointer;
}
.tsla-btn:hover { background: #1e40af; }
.tsla-btn-small { padding: 6px 12px; font-size: 13px; }

.tsla-save-msg { margin-left: 10px; font-size: 13px; color: #2e8b57; }

.tsla-log-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.tsla-log-table th, .tsla-log-table td {
	text-align: left; padding: 8px; border-bottom: 1px solid #eee; font-size: 14px;
}

/* Checklist builder */
.tsla-checklist-builder-ui { max-width: 480px; }
.tsla-builder-list { list-style: none; margin: 0 0 10px; padding: 0; }
.tsla-builder-list li {
	display: flex; align-items: center; justify-content: space-between;
	background: #f6f7f7; border: 1px solid #e2e2e2; border-radius: 6px;
	padding: 8px 10px; margin-bottom: 6px; font-size: 14px;
}
.tsla-builder-list li.tsla-builder-empty {
	color: #888; font-style: italic; background: transparent; border-style: dashed;
}
.tsla-builder-remove {
	background: none; border: none; color: #d63638; font-size: 18px; line-height: 1;
	cursor: pointer; padding: 0 4px;
}
.tsla-builder-add-row { display: flex; gap: 8px; }
.tsla-builder-add-row input[type="text"] { flex: 1; }

/* App shell */
.tsla-app { max-width: 700px; margin: 0 auto; }
.tsla-appbar {
	position: sticky; top: 0; z-index: 10;
	background: #1d4ed8; color: #fff; padding: 14px 20px;
	font-weight: 700; font-size: 17px; letter-spacing: .01em;
	box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.tsla-app-content { padding: 16px; }
.tsla-top-nav {
	position: sticky; top: 49px; z-index: 9;
	display: flex; background: #fff; border-bottom: 1px solid #e2e2e2;
	box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.tsla-top-nav a {
	flex: 1; display: flex; flex-direction: row; align-items: center; justify-content: center;
	gap: 6px; padding: 12px 4px; text-decoration: none; color: #444;
	font-size: 13px; font-weight: 600; border-right: 1px solid #eee;
}
.tsla-top-nav a:last-child { border-right: none; }
.tsla-top-nav a span { line-height: 1; }
