/* views/themarketer/api_log_detail.tpl */
.tm-status-ok {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.72rem;
	font-weight: 600;
	background: #ecfdf5;
	color: #059669;
}
.tm-status-error {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.72rem;
	font-weight: 600;
	background: #fef2f2;
	color: #dc2626;
}
.tm-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
	color: #5b6178;
	text-decoration: none;
	margin-bottom: 16px;
	transition: color .15s ease;
}
.tm-back-link:hover {
	color: #1a1d2e;
}

/* views/themarketer/api_log.tpl */
.tm-list-card { border: none; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04); background: #fff; }
.tm-list-card .card-header-custom { background: #fff; border-bottom: 1px solid #f0f0f5; padding: 16px 20px; border-radius: 12px 12px 0 0; display: flex; align-items: center; justify-content: space-between; }
.tm-list-card .card-header-custom h6 { font-weight: 600; font-size: 0.95rem; color: #1a1d2e; margin: 0; }
.tm-count { background: #f0f2f8; color: #5b6178; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-left: 10px; }
.tm-status-ok { display: inline-block; background: #ecfdf5; color: #059669; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.tm-status-error { display: inline-block; background: #fef2f2; color: #dc2626; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.tm-list-card .action-btn { width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e8e9f0; background: #fff; color: #5b6178; transition: all .15s; }
.tm-list-card .action-btn:hover { background: #f0f2f8; border-color: #d0d2dd; color: #1a1d2e; }
.tm-date .date-day { font-weight: 500; color: #3a3f58; }
.tm-date .date-time { font-size: 0.72rem; color: #8b8fa3; }
.tm-empty { text-align: center; padding: 60px 20px; }
.tm-empty i { font-size: 48px; color: #d1d5db; }
.tm-empty h5 { color: #3a3f58; font-weight: 600; }
.tm-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 16px 20px; border-bottom: 1px solid #f0f0f5; }

/* views/themarketer/feed_status.tpl */
.tm-status-ok {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.72rem;
	font-weight: 600;
	background: #ecfdf5;
	color: #059669;
}
.tm-status-error {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.72rem;
	font-weight: 600;
	background: #fef2f2;
	color: #dc2626;
}
.tm-status-warn {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.72rem;
	font-weight: 600;
	background: #fffbeb;
	color: #d97706;
}
.tm-status-info {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.72rem;
	font-weight: 600;
	background: #f0f2f8;
	color: #5b6178;
}
.tm-status-muted {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 0.72rem;
	font-weight: 600;
	background: #f3f4f6;
	color: #6b7280;
}

/* Styles extracted from addon templates. */
[data-addon-style="themarketer-09d4ece05c"] {
	padding:60px 20px;
}
[data-addon-style="themarketer-0f44cd67ab"] {
	color:#3a3f58;
	font-weight:600;
}
[data-addon-style="themarketer-17cadd9910"] {
	color:#dc2626;
}
[data-addon-style="themarketer-1a71a516ba"] {
	flex:1;
}
[data-addon-style="themarketer-36ad7f52e6"] {
	font-size:0.72rem;
	color:#8b8fa3;
}
[data-addon-style="themarketer-63e6baf9db"] {
	font-size:10px;
	opacity:.5;
}
[data-addon-style="themarketer-682fe6306d"] {
	font-weight:500;
	color:#3a3f58;
}
[data-addon-style="themarketer-c1973b3dd5"] {
	max-height:400px;
	overflow:auto;
	background:#f8f9fb;
	padding:16px 20px;
	border-radius:0 0 12px 12px;
	font-size:13px;
	margin:0;
	border:none;
}
[data-addon-style="themarketer-cdef15c73e"] {
	font-size:48px;
	color:#d1d5db;
}

.tm-test-result__json {
	margin: 0;
	padding: 16px;
	min-height: 200px;
	max-height: 480px;
	overflow: auto;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	font-size: 12px;
	line-height: 1.6;
}

#tm-reports .tm-report-card {
	height: 100%;
	margin-bottom: 0;
}
#tm-reports .tm-report-label {
	display: block;
	color: var(--text-muted, #6c757d);
	font-size: 0.8125rem;
	margin-bottom: 3px;
}
#tm-reports .tm-report-value {
	font-size: 1.375rem;
	font-weight: 600;
	line-height: 1.35;
	font-variant-numeric: tabular-nums;
}
#tm-reports .tm-report-message:empty {
	display: none;
}
#tm-reports .tm-ecommerce-table {
	border-collapse: separate;
	border-spacing: 0 6px;
}
#tm-reports .tm-ecommerce-table tbody > tr > * {
	background: var(--default-background, #f7f7f8);
	border: 0;
	padding: 7px 10px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
#tm-reports .tm-ecommerce-table tbody th {
	font-weight: inherit;
	width: 45%;
	border-radius: 6px 0 0 6px;
}
#tm-reports .tm-ecommerce-table tbody td:last-child {
	border-radius: 0 6px 6px 0;
}
#tm-reports .tm-ecommerce-table thead th:not(:first-child),
#tm-reports .tm-ecommerce-table tbody td {
	text-align: right;
}
#tm-reports .tm-ecommerce-table thead th {
	font-size: 0.75rem;
	color: var(--text-muted, #6c757d);
	padding: 8px 10px;
	white-space: nowrap;
}
#tm-reports .tm-ecommerce-table tbody tr[data-channel="total"] > * {
	background: var(--primary005, #eef2f6);
	padding-top: 11px;
	padding-bottom: 11px;
	font-weight: 600;
}
#tm-reports .tm-campaign-table tbody th {
	white-space: normal;
	min-width: 240px;
	font-weight: 500;
	line-height: 1.5;
}
#tm-reports .tm-campaign-table tbody > tr > * {
	padding-top: 12px;
	padding-bottom: 12px;
}
