/* DutyRoster Lite — front-end (calendar + cards)
   Asset revision 1.0.4 — status chips are dark fills with white text.
   A theme that forces near-white ink still clears WCAG AA. */
.drl-front {
	--drl-bg: #fff;
	--drl-border: #e2e5ea;
	--drl-muted: #64748b;
	--drl-text: #0f172a;
	--drl-primary: #2563eb;
	--drl-primary-hover: #1d4ed8;
	--drl-radius: 10px;
	--drl-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
	/* Same centered column as Service Booking (60rem / 960px), widened for a 7-day grid. */
	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	margin: 1.25em auto;
	font-size: 1rem;
	color: var(--drl-text);
	line-height: 1.45;
}
.drl-front *, .drl-front *::before, .drl-front *::after { box-sizing: border-box; }
.drl-front .drl-heading { margin: 0 0 0.85em; font-size: 1.35rem; font-weight: 650; }
.drl-muted { color: var(--drl-muted); }
.drl-empty-state {
	border: 1px dashed var(--drl-border);
	border-radius: var(--drl-radius);
	padding: 1.5rem 1.25rem;
	text-align: center;
	background: #f8fafc;
}
.drl-empty-state p { margin: 0.35em 0; }

/* Buttons */
.drl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35em;
	padding: 0.55em 1.1em;
	background: var(--drl-primary);
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.2;
	transition: background 0.15s ease, transform 0.1s ease;
}
.drl-btn:hover { background: var(--drl-primary-hover); }
.drl-btn:active { transform: translateY(1px); }
.drl-btn-secondary { background: #475569; }
.drl-btn-secondary:hover { background: #334155; }

/* Notices */
.drl-notice { padding: 0.75rem 1rem; margin-bottom: 1rem; border-radius: 8px; font-weight: 500; }
.drl-notice-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.drl-notice-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Badges */
.drl-badge {
	display: inline-block;
	padding: 0.15em 0.55em;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 650;
	letter-spacing: 0.01em;
	vertical-align: middle;
}
.drl-badge-open { background: #166534; color: #fff; }
.drl-badge-understaffed { background: #92400e; color: #fff; }
.drl-badge-full { background: #312e81; color: #fff; }
.drl-badge-cancelled { background: #7f1d1d; color: #fff; }

/* List cards */
.drl-shift-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.drl-shift-item,
.drl-shift-card {
	border: 1px solid var(--drl-border);
	border-radius: var(--drl-radius);
	padding: 1rem 1.1rem;
	background: var(--drl-bg);
	box-shadow: var(--drl-shadow);
}
.drl-shift-title { margin-bottom: 0.35rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.drl-shift-meta { color: var(--drl-muted); font-size: 0.92em; margin-bottom: 0.65rem; }
.drl-shift-desc { font-size: 0.95em; margin-bottom: 0.75rem; color: #334155; }
.drl-shift-yours { margin: 0 0 0.65rem; color: #166534; font-weight: 600; }
.drl-signup-form { margin: 0; }

/* Calendar */
.drl-calendar {
	width: 100%;
	border: 1px solid var(--drl-border);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--drl-shadow);
	overflow: hidden;
}
.drl-cal-toolbar {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--drl-border);
	background: #f8fafc;
	flex-wrap: wrap;
}
.drl-cal-month {
	font-weight: 700;
	font-size: 1.05rem;
	min-width: 9rem;
	text-align: center;
	flex: 1;
}
.drl-cal-nav {
	display: inline-flex;
	width: 2.25rem;
	height: 2.25rem;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 1px solid var(--drl-border);
	background: #fff;
	color: var(--drl-text) !important;
	-webkit-text-fill-color: var(--drl-text) !important;
	text-decoration: none !important;
	font-size: 1.35rem;
	line-height: 1;
}
.drl-cal-nav:hover { background: #eff6ff; border-color: #93c5fd; }
.drl-cal-today {
	margin-left: auto;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--drl-primary) !important;
	-webkit-text-fill-color: var(--drl-primary) !important;
	text-decoration: none !important;
	padding: 0.35rem 0.65rem;
	border-radius: 6px;
}
.drl-cal-today:hover { background: #eff6ff; }

.drl-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 1px;
	background: var(--drl-border);
	border-bottom: 1px solid var(--drl-border);
}
.drl-cal-dow {
	background: #f1f5f9;
	padding: 0.45rem 0.25rem;
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--drl-muted);
}
.drl-cal-day {
	background: #fff;
	min-height: 5.5rem;
	padding: 0.35rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.drl-cal-day--pad { background: #f8fafc; min-height: 2rem; }
.drl-cal-day--today { background: #eff6ff; }
.drl-cal-day--today .drl-cal-daynum {
	background: var(--drl-primary);
	color: #fff;
	-webkit-text-fill-color: #fff;
	border-radius: 999px;
	width: 1.5rem;
	height: 1.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.drl-cal-daynum { font-size: 0.8rem; font-weight: 650; color: #334155; }
.drl-cal-chips { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }

.drl-cal-chip,
a.drl-cal-chip {
	display: block;
	padding: 0.2rem 0.35rem;
	border-radius: 6px;
	font-size: 0.72rem;
	line-height: 1.25;
	text-decoration: none !important;
	color: #fff;
	-webkit-text-fill-color: #fff;
	background: #334155;
	border-left: 3px solid #94a3b8;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	cursor: pointer;
	transition: box-shadow 0.12s ease, transform 0.1s ease;
}
.drl-cal-chip:hover,
a.drl-cal-chip:hover { box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25); }
.drl-cal-chip.is-active { box-shadow: 0 0 0 2px var(--drl-primary); }
.drl-cal-chip--open { background: #166534; border-left-color: #86efac; color: #fff; }
.drl-cal-chip--understaffed { background: #92400e; border-left-color: #fbbf24; color: #fff; }
.drl-cal-chip--full { background: #312e81; border-left-color: #a5b4fc; color: #fff; }
.drl-cal-chip--mine { outline: 1px dashed #2563eb; }
.drl-cal-chip-time { font-weight: 700; }
.drl-cal-chip-title { font-weight: 500; }

.drl-cal-detail {
	padding: 1rem 1.1rem 1.15rem;
	border-top: 1px solid var(--drl-border);
	background: #fff;
}
.drl-cal-detail[hidden] { display: none !important; }
.drl-cal-hint { margin: 0; text-align: center; }
.drl-shift-card--detail { box-shadow: none; border: none; padding: 0; }

.drl-leaderboard { padding-left: 1.25em; margin: 0; }
.drl-leaderboard li { margin-bottom: 0.4em; }

@media (max-width: 720px) {
	.drl-front { max-width: 100%; }
	.drl-cal-day { min-height: 4.25rem; padding: 0.25rem; }
	.drl-cal-chip-title { display: none; }
	.drl-cal-dow { font-size: 0.65rem; }
	.drl-cal-month { font-size: 0.95rem; min-width: auto; }
}

/* Asset revision 1.0.4
   The live gallery shows near-white type on a pale yellow chip. The dark skin
   paints spans and Elementor links near-white, and that can win a color fight
   while the pale fill stays. Status chips use dark fills. White and the skin's
   near-white both clear WCAG AA on these fills (understaffed #fff on #92400e
   is about 7.1:1). Selectors include the Elementor kit and widget container. */
html body #content .drl-front,
html body #content .page-content .drl-front,
html body.elementor-kit-435 #content .page-content .drl-front,
html body #content .drl-calendar,
html body .drl-front .drl-calendar,
html body .drl-calendar {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 1100px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
html body .drl-cal-month,
html body .drl-cal-dow,
html body .drl-cal-daynum,
html body #content .drl-calendar .drl-cal-month,
html body #content .drl-calendar .drl-cal-dow,
html body #content .drl-calendar .drl-cal-daynum {
	color: #0f172a !important;
	-webkit-text-fill-color: #0f172a !important;
}
html body .drl-cal-day--today .drl-cal-daynum,
html body #content .drl-cal-day--today .drl-cal-daynum {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

html body a.drl-cal-chip,
html body a.drl-cal-chip:link,
html body a.drl-cal-chip:visited,
html body a.drl-cal-chip:hover,
html body a.drl-cal-chip:active,
html body a.drl-cal-chip:focus,
html body .drl-cal-chip,
html body #content a.drl-cal-chip,
html body #content .drl-cal-chip,
html body #content .drl-front a.drl-cal-chip,
html body #content .drl-front .drl-cal-chip,
html body #content .drl-calendar a.drl-cal-chip,
html body #content .drl-calendar .drl-cal-chip,
html body.elementor-kit-435 #content .page-content .drl-calendar a.drl-cal-chip,
html body.elementor-kit-435 #content .elementor .elementor-widget-container .drl-calendar a.drl-cal-chip,
html body .drl-cal-chip *,
html body a.drl-cal-chip *,
html body .drl-cal-chip *::before,
html body .drl-cal-chip *::after,
html body #content .drl-cal-chip *,
html body #content .drl-cal-chip span,
html body span.drl-cal-chip-time,
html body span.drl-cal-chip-title,
html body.elementor-kit-435 #content .page-content .drl-calendar a.drl-cal-chip span,
html body.elementor-kit-435 #content .page-content span.drl-cal-chip-time,
html body.elementor-kit-435 #content .page-content span.drl-cal-chip-title,
html body.elementor-kit-435 #content .elementor .elementor-widget-container .drl-calendar a.drl-cal-chip span.drl-cal-chip-time,
html body.elementor-kit-435 #content .elementor .elementor-widget-container .drl-calendar a.drl-cal-chip span.drl-cal-chip-title {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	text-decoration: none !important;
}
html body .drl-cal-chip *,
html body a.drl-cal-chip *,
html body #content .drl-cal-chip span,
html body span.drl-cal-chip-time,
html body span.drl-cal-chip-title {
	background: transparent !important;
	background-color: transparent !important;
}
html body .drl-cal-chip,
html body a.drl-cal-chip,
html body #content .drl-cal-chip,
html body #content a.drl-cal-chip,
html body #content .drl-calendar a.drl-cal-chip {
	background: #334155 !important;
	background-color: #334155 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
html body .drl-cal-chip.drl-cal-chip--open,
html body a.drl-cal-chip.drl-cal-chip--open,
html body #content .drl-calendar a.drl-cal-chip.drl-cal-chip--open,
html body.elementor-kit-435 #content .page-content .drl-calendar a.drl-cal-chip.drl-cal-chip--open,
html body.elementor-kit-435 #content .elementor .elementor-widget-container .drl-calendar a.drl-cal-chip.drl-cal-chip--open {
	background: #166534 !important;
	background-color: #166534 !important;
	border-left-color: #86efac !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
html body .drl-cal-chip.drl-cal-chip--understaffed,
html body a.drl-cal-chip.drl-cal-chip--understaffed,
html body a.drl-cal-chip.drl-cal-chip--understaffed:link,
html body a.drl-cal-chip.drl-cal-chip--understaffed:visited,
html body a.drl-cal-chip.drl-cal-chip--understaffed:hover,
html body a.drl-cal-chip.drl-cal-chip--understaffed:focus,
html body #content .drl-front a.drl-cal-chip.drl-cal-chip--understaffed,
html body #content .drl-calendar a.drl-cal-chip.drl-cal-chip--understaffed,
html body.elementor-kit-435 #content .page-content .drl-calendar a.drl-cal-chip.drl-cal-chip--understaffed,
html body.elementor-kit-435 #content .elementor .elementor-widget-container .drl-calendar a.drl-cal-chip.drl-cal-chip--understaffed {
	background: #92400e !important;
	background-color: #92400e !important;
	border-left-color: #fbbf24 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
html body .drl-cal-chip.drl-cal-chip--full,
html body a.drl-cal-chip.drl-cal-chip--full,
html body #content .drl-calendar a.drl-cal-chip.drl-cal-chip--full,
html body.elementor-kit-435 #content .page-content .drl-calendar a.drl-cal-chip.drl-cal-chip--full,
html body.elementor-kit-435 #content .elementor .elementor-widget-container .drl-calendar a.drl-cal-chip.drl-cal-chip--full {
	background: #312e81 !important;
	background-color: #312e81 !important;
	border-left-color: #a5b4fc !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

html body .drl-front .drl-shift-title,
html body .drl-front .drl-shift-title strong,
html body .drl-front .drl-shift-card,
html body .drl-front .drl-shift-item,
html body #content .drl-shift-card,
html body #content .drl-shift-card * {
	color: #0f172a !important;
	-webkit-text-fill-color: #0f172a !important;
}
html body .drl-front .drl-shift-meta,
html body #content .drl-shift-meta {
	color: #64748b !important;
	-webkit-text-fill-color: #64748b !important;
}
html body .drl-badge.drl-badge-open,
html body #content .drl-shift-card .drl-badge.drl-badge-open,
html body.elementor-kit-435 #content .page-content span.drl-badge.drl-badge-open {
	background: #166534 !important;
	background-color: #166534 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
html body .drl-badge.drl-badge-understaffed,
html body #content .drl-shift-card .drl-badge.drl-badge-understaffed,
html body.elementor-kit-435 #content .page-content span.drl-badge.drl-badge-understaffed {
	background: #92400e !important;
	background-color: #92400e !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
html body .drl-badge.drl-badge-full,
html body #content .drl-shift-card .drl-badge.drl-badge-full,
html body.elementor-kit-435 #content .page-content span.drl-badge.drl-badge-full {
	background: #312e81 !important;
	background-color: #312e81 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
html body .drl-badge.drl-badge-cancelled,
html body #content .drl-shift-card .drl-badge.drl-badge-cancelled,
html body.elementor-kit-435 #content .page-content span.drl-badge.drl-badge-cancelled {
	background: #7f1d1d !important;
	background-color: #7f1d1d !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
html body .drl-btn,
html body a.drl-btn,
html body a.drl-btn:link,
html body a.drl-btn:visited,
html body a.drl-btn:hover,
html body #content a.drl-btn,
html body #content .drl-btn,
html body #content .drl-btn * {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}
