/* Unified dashboard (multi-module) — ud-* namespace.
   New chrome only; KPI stat cards reuse the existing .performance-snapshot /
   .sales-widgets / .card patterns from style.css. */

[x-cloak] {
	display: none !important;
}

/* White content card (matches .sales-widgets .card look, full-width) */
.ud-card {
	background: #fff;
	border: 1px solid #ebebeb;
	border-radius: 16px;
	padding: 20px;
}

/* ---- Happening today (worklist) ---- */
.ud-worklist-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: transparent;
	border: none;
	padding: 0;
	text-align: left;
	cursor: pointer;
}

.ud-worklist-chevron {
	transition: transform 0.15s ease;
	width: 14px;
}

.ud-worklist-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 4px;
	border-bottom: 1px solid #f0f2f4;
}

.ud-worklist-row:last-child {
	border-bottom: none;
	padding-bottom: 4px;
}

#ud-worklist-body .ud-worklist-row:first-child {
	margin-top: 12px;
}

/* One neutral icon chip — site navy icon set, no per-module colors. */
.ud-module-icon {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: #F6F7F9;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ud-module-icon img {
	width: 17px;
	height: 17px;
}

.ud-module-icon-sm {
	width: 28px;
	height: 28px;
}

.ud-module-icon-sm img {
	width: 14px;
	height: 14px;
}

.ud-worklist-name {
	font-weight: 600;
	font-size: 14px;
	color: #303233;
	min-width: 108px;
}

.ud-chips {
	display: flex;
	gap: 7px;
	flex-wrap: wrap;
	flex: 1;
}

/* Chips are links — click through to the relevant bookings tab. */
.ud-chip {
	font-size: 12px;
	font-weight: 500;
	border-radius: 999px;
	padding: 3px 10px;
	background: #eef3f7;
	color: #3b5566;
	white-space: nowrap;
	text-decoration: none;
	transition: filter 0.1s ease, box-shadow 0.1s ease;
}

.ud-chip:hover {
	filter: brightness(0.94);
	box-shadow: inset 0 0 0 1px rgba(0, 50, 100, 0.25);
	color: #3b5566;
}

.ud-chip-warn { background: #fff3d6; color: #8a6500; }
.ud-chip-warn:hover { color: #8a6500; }
.ud-chip-danger { background: #fde4e4; color: #b42020; }
.ud-chip-danger:hover { color: #b42020; }
.ud-chip-success { background: #e3f6ec; color: #1a7a44; }
.ud-chip-success:hover { color: #1a7a44; }

/* Icon + name link — same destination as the row chevron. */
.ud-worklist-module {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.ud-worklist-module:hover .ud-worklist-name {
	color: #003264;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Icon-only row link (chevron) — 44px touch target, small visual. */
.ud-open-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	flex-shrink: 0;
}

.ud-open-icon:hover {
	background: #F6F7F9;
}

.ud-open-icon img {
	width: 6px;
}

/* ---- Per-module summary cards ---- */
.ud-modgrid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 14px;
}

/* Whole card is clickable (opens the module's dashboard tab). */
.ud-card-clickable {
	cursor: pointer;
	transition: border-color 0.1s ease, box-shadow 0.1s ease;
}

.ud-card-clickable:hover,
.ud-card-clickable:focus-visible {
	border-color: #003264;
	box-shadow: 0 2px 8px rgba(0, 50, 100, 0.08);
}

.ud-modcard-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.ud-modcard-title {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	font-weight: 600;
	color: #303233;
}

.ud-mini {
	display: flex;
	gap: 20px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.ud-mini-value {
	font-size: 20px;
	font-weight: 600;
	color: #003264;
	line-height: 1.2;
}

.ud-mini-label {
	font-size: 11px;
	color: var(--ed-text-muted);
}

.ud-attn {
	font-size: 12px;
	color: var(--ed-text-muted);
}

/* ---- Default-tab star (active tab only) ----
   Tiny by design; the theme's span-pill styling inside nav-links is
   explicitly neutralized (it was blowing the star up into a gray oval). */
.nav-tabs .nav-link .ud-star,
.ud-star {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px !important;
	height: 18px !important;
	background: transparent !important;
	padding: 0 !important;
	border-radius: 5px !important;
	min-width: 0 !important;
	cursor: pointer;
	opacity: 0.45;
	transition: opacity 0.1s ease;
	vertical-align: middle;
}

.ud-star img {
	width: 12px !important;
	height: 12px !important;
}

.ud-star:hover,
.ud-star:focus-visible {
	opacity: 1;
	background: #F6F7F9 !important;
}

.ud-star-on {
	opacity: 1;
}

/* ---- Tab panels ---- */
.ud-panel-skeleton {
	background: #fff;
	border: 1px solid #ebebeb;
	border-radius: 16px;
	padding: 24px;
}

.ud-panel-skeleton .bar {
	height: 14px;
	background: #f1f3f5;
	border-radius: 6px;
	margin-bottom: 12px;
}

/* Small screens: worklist rows wrap */
@media (max-width: 560px) {
	.ud-worklist-name { min-width: auto; }
	.ud-worklist-row { flex-wrap: wrap; }
}
