/* Manager extra tabs — Amend policy, Places, Features, Orders, Stats. */

.tpcbs-mgr-places__bar { display: flex; gap: 10px; align-items: center; margin: 12px 0; flex-wrap: wrap; }
.tpcbs-mgr-orders__bar { display: flex; gap: 12px; align-items: end; margin: 12px 0; flex-wrap: wrap; }

.tpcbs-mgr-places__list { display: flex; flex-direction: column; gap: 8px; }

.tpcbs-mgr-place-row {
	display: grid;
	grid-template-columns: 60px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
}
.tpcbs-mgr-place-thumb {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	object-fit: cover;
	background: #f3f4f6;
	display: block;
}
.tpcbs-mgr-place-thumb--empty { background: repeating-linear-gradient(45deg, #f3f4f6, #f3f4f6 5px, #eef0f2 5px, #eef0f2 10px); }
.tpcbs-mgr-place-thumb--icon { display: flex; align-items: center; justify-content: center; font-size: 12px; text-transform: uppercase; color: #6b7280; }

.tpcbs-mgr-place-body { min-width: 0; }
.tpcbs-mgr-place-title { font-weight: 600; color: #111827; font-size: 14px; margin-bottom: 2px; }
.tpcbs-mgr-place-meta { color: #6b7280; font-size: 12px; }

.tpcbs-mgr-place-actions { display: flex; gap: 6px; }

.tpcbs-mgr-badge {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 999px;
	background: #e5e7eb;
	color: #374151;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	vertical-align: middle;
	margin-left: 4px;
}
.tpcbs-mgr-badge--muted { background: #f3f4f6; color: #9ca3af; }
.tpcbs-mgr-badge--ok    { background: #d1fae5; color: #047857; }
.tpcbs-mgr-badge--warn  { background: #fef3c7; color: #92400e; }

.tpcbs-mgr-place-editor-host {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 14px;
	background: #f9fafb;
	margin-bottom: 12px;
}

.tpcbs-mgr-btn--danger { color: #b91c1c; }
.tpcbs-mgr-btn--danger:hover { background: #fee2e2; }

/* Stats */
.tpcbs-mgr-stats-range { color: #6b7280; font-size: 13px; margin: 8px 0 12px; }
.tpcbs-mgr-stats-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
	margin-bottom: 20px;
}
.tpcbs-mgr-stat {
	display: flex;
	flex-direction: column;
	padding: 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}
.tpcbs-mgr-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7280; font-weight: 600; }
.tpcbs-mgr-stat-value { font-size: 20px; font-weight: 700; color: #111827; margin-top: 4px; }

.tpcbs-mgr-stats-sources, .tpcbs-mgr-stats-top { list-style: none; padding: 0; margin: 8px 0 20px; }
.tpcbs-mgr-stats-sources li, .tpcbs-mgr-stats-top li {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px solid #f3f4f6;
	font-size: 14px;
}
.tpcbs-mgr-src-label { text-transform: capitalize; }

.tpcbs-mgr-form__msg.is-ok    { color: #047857; }
.tpcbs-mgr-form__msg.is-error { color: #b91c1c; }
