/**
 * FG Booking - staff calendar dashboard.
 *
 * Loaded after fg-booking.css and inherits its palette custom properties
 * from .fgb-app, so there is one source of truth for the brand colours.
 *
 * Responsive strategy per view:
 *   month - grid always stays 7 columns; below 720px the cells show status
 *           dots + a count instead of chips (decided in JS, not CSS, since
 *           it changes what is rendered, not just how it looks)
 *   week  - horizontal scroll with a sticky hour gutter
 *   day   - same time grid, one column per room, same scroll behaviour
 *   list  - stacks naturally; this is the default view on a phone
 */

.fgb-dash {
	--fgb-hour-h: 52px;
	--fgb-col-min: 130px;

	/* One height for every control in the toolbar. They used to be sized
	   independently - 34px for the icon buttons against whatever padding +
	   inherited line-height gave the fields - so the button sat a couple of
	   pixels short and read as misaligned. */
	--fgb-ctl-h: 38px;

	max-width: 1400px;
}

.fgb-noscroll { overflow: hidden; }

/* Guaranteed distraction-free mode - works regardless of whether hiding
   the WP admin bar landed in time. */
.fgb-dash.is-fullscreen {
	position: fixed;
	inset: 0;
	z-index: 99999;
	max-width: none;
	margin: 0;
	padding: 12px;
	overflow-y: auto;
	background: var(--fg-bone);
}

/* ---------- toolbar ---------- */

.fgb-dash__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	margin-bottom: 10px;
	background: var(--fg-white);
	border: 1px solid var(--fg-tan);
	border-radius: var(--fg-radius);
	box-shadow: var(--fg-shadow);
}

.fgb-dash__nav { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; }

.fgb-dash__arrow,
.fgb-dash__icon-btn {
	width: var(--fgb-ctl-h); height: var(--fgb-ctl-h);
	box-sizing: border-box;
	padding: 0;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 1.1rem; line-height: 1;
	color: var(--fg-kombu-green);
	background: var(--fg-white);
	border: 1px solid var(--fg-tan);
	border-radius: 8px;
	cursor: pointer;
	flex: 0 0 auto;
}

/* An SVG rather than a font glyph: a glyph's box and baseline depend on
   whichever font the theme happens to load, so it lands off-centre on some
   sites and not on others. An SVG is the same everywhere. */
.fgb-dash__icon-btn svg {
	width: 17px; height: 17px;
	display: block;
	flex: 0 0 auto;
}
.fgb-dash__arrow:hover,
.fgb-dash__icon-btn:hover { background: var(--fg-bone); border-color: var(--fg-moss-green); }

.fgb-dash__today {
	padding: 7px 14px;
	font: inherit; font-size: .85rem; font-weight: 600;
	color: var(--fg-kombu-green);
	background: var(--fg-white);
	border: 1px solid var(--fg-tan);
	border-radius: 999px;
	cursor: pointer;
	flex: 0 0 auto;
}
.fgb-dash__today:hover { background: var(--fg-bone); }

.fgb-dash__title {
	margin: 0 0 0 8px;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--fg-kombu-green);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fgb-dash__views {
	display: flex;
	gap: 2px;
	padding: 3px;
	background: var(--fg-bone);
	border-radius: 999px;
	flex: 0 0 auto;
}
.fgb-dash__view {
	padding: 7px 14px;
	font: inherit; font-size: .82rem; font-weight: 600;
	color: var(--fg-moss-green);
	background: none;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
}
.fgb-dash__view.is-active { background: var(--fg-kombu-green); color: var(--fg-bone); }

/*
 * The filter group gets a row of its own at every width.
 *
 * Sharing a line with the view tabs only works while there is room for a
 * search box, two selects and a button, and there usually is not - the
 * group then broke mid-way, dropping one select onto a second line and
 * leaving a ragged toolbar. Its own row is predictable at every width,
 * which is worth more than the saved vertical space on a screen someone
 * works from all day.
 */
.fgb-dash__filters {
	display: flex;
	gap: 8px;
	align-items: center;
	flex: 1 1 100%;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.fgb-dash__search,
.fgb-dash__select {
	height: var(--fgb-ctl-h);
	box-sizing: border-box;
	padding: 0 10px;
	font: inherit; font-size: .85rem;
	color: var(--fg-cafe-noir);
	background: var(--fg-white);
	border: 1px solid var(--fg-tan);
	border-radius: 8px;
	min-width: 0;
}

/*
 * Both of these need an explicit flex-basis, and the select needs its width
 * reset.
 *
 * Plenty of themes ship `select { width: 100% }`. A flex item's automatic
 * basis comes from its width, so the two selects each claimed the full bar
 * and the search box - the only item allowed to shrink - collapsed until
 * its placeholder was clipped to "Tìm mã". Sizing both explicitly is what
 * makes the row immune to whatever the theme does to form controls.
 */
.fgb-dash__search { flex: 1 1 240px; min-width: 150px; max-width: 320px; }
.fgb-dash__select { flex: 0 1 180px; width: auto; }
.fgb-dash__search:focus,
.fgb-dash__select:focus { outline: none; border-color: var(--fg-moss-green); box-shadow: 0 0 0 3px rgba(136,144,99,.2); }

/* ---------- legend + notice ---------- */

.fgb-dash__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	padding: 0 4px 10px;
	font-size: .75rem;
	color: var(--fg-moss-green);
}
.fgb-dash__legend-item { display: inline-flex; align-items: center; gap: 6px; }

.fgb-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.fgb-dot--pending_payment { background: var(--fg-tan); }
.fgb-dot--confirmed { background: var(--fg-moss-green); }
.fgb-dot--checked_in { background: var(--fg-kombu-green); }
.fgb-dot--completed { background: var(--fg-cafe-noir); }
.fgb-dot--cancelled { background: #D8B7A4; }
.fgb-dot--no_show { background: var(--fg-alert); }

.fgb-dash__notice {
	padding: 10px 14px;
	margin-bottom: 10px;
	border-radius: 8px;
	font-size: .85rem;
	background: var(--fg-bone);
	border: 1px solid var(--fg-tan);
	color: var(--fg-cafe-noir);
}
.fgb-dash__notice.is-success { border-color: var(--fg-moss-green); }
.fgb-dash__notice.is-error { background: #F6E6DE; border-color: var(--fg-alert); color: #6E3B23; }

/* ---------- shared calendar shell ---------- */

.fgb-cal {
	background: var(--fg-white);
	border: 1px solid var(--fg-tan);
	border-radius: var(--fg-radius);
	overflow: hidden;
	box-shadow: var(--fg-shadow);
}

/* ---------- month ---------- */

.fgb-cal__head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--fg-bone); }
.fgb-cal__head-cell {
	padding: 9px 4px;
	text-align: center;
	font-size: .75rem; font-weight: 700;
	color: var(--fg-kombu-green);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.fgb-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }

.fgb-cal__cell {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-height: 108px;
	padding: 5px;
	border-right: 1px solid var(--fg-bone);
	border-bottom: 1px solid var(--fg-bone);
}
.fgb-cal__cell:nth-child(7n) { border-right: 0; }
.fgb-cal__cell.is-outside { background: #FAF7F2; }
.fgb-cal__cell.is-outside .fgb-cal__daynum { opacity: .4; }
.fgb-cal__cell.is-today { background: var(--fg-bone); }

.fgb-cal__daynum {
	align-self: flex-start;
	min-width: 26px; height: 26px;
	padding: 0 6px;
	display: grid; place-items: center;
	font: inherit; font-size: .8rem; font-weight: 700;
	color: var(--fg-cafe-noir);
	background: none;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
}
.fgb-cal__daynum:hover { background: var(--fg-tan); }
.fgb-cal__cell.is-today .fgb-cal__daynum { background: var(--fg-kombu-green); color: var(--fg-bone); }

.fgb-cal__dots { display: flex; flex-wrap: wrap; gap: 3px; padding: 0 2px; }
.fgb-cal__count { font-size: .7rem; font-weight: 700; color: var(--fg-moss-green); padding-left: 2px; }

.fgb-cal__more {
	font: inherit; font-size: .7rem;
	color: var(--fg-moss-green);
	background: none; border: 0;
	text-align: left; padding: 1px 3px;
	cursor: pointer;
	text-decoration: underline;
}

/* ---------- chips (month) ---------- */

.fgb-chip {
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	padding: 3px 6px;
	font: inherit; font-size: .7rem;
	text-align: left;
	border: 0;
	border-left: 3px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	overflow: hidden;
	background: var(--fg-bone);
	color: var(--fg-cafe-noir);
}
.fgb-chip:hover { filter: brightness(.96); }
.fgb-chip__time { font-weight: 700; flex: 0 0 auto; }
.fgb-chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fgb-chip__queue { margin-left: auto; font-weight: 700; flex: 0 0 auto; }

.fgb-chip--pending_payment { background: var(--fg-tan); border-left-color: var(--fg-cafe-noir); }
.fgb-chip--confirmed { background: var(--fg-moss-green); border-left-color: var(--fg-kombu-green); color: var(--fg-white); }
.fgb-chip--checked_in { background: var(--fg-kombu-green); border-left-color: var(--fg-bone); color: var(--fg-bone); }
.fgb-chip--completed { background: var(--fg-bone); border-left-color: var(--fg-moss-green); }
.fgb-chip--cancelled { background: #F0DED4; border-left-color: var(--fg-alert); color: #6E3B23; text-decoration: line-through; }
.fgb-chip--no_show { background: var(--fg-alert); border-left-color: #6E3B23; color: #fff; }

/* ---------- time grid (week + day) ---------- */

.fgb-cal__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.fgb-cal__timehead,
.fgb-cal__timebody {
	display: grid;
	grid-template-columns: 54px repeat(var(--fgb-cols, 7), minmax(var(--fgb-col-min), 1fr));
	min-width: 100%;
}

.fgb-cal__timehead { background: var(--fg-bone); position: sticky; top: 0; z-index: 3; }
.fgb-cal__timehead-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 8px 6px;
	border-left: 1px solid var(--fg-tan);
	text-align: center;
}
.fgb-cal__timehead-cell.is-today { background: var(--fg-tan); }
.fgb-cal__timehead-main { font-size: .82rem; font-weight: 700; color: var(--fg-kombu-green); }
.fgb-cal__timehead-sub { font-size: .68rem; color: var(--fg-moss-green); }

.fgb-cal__timebody { height: calc(var(--fgb-hours, 12) * var(--fgb-hour-h)); }

.fgb-cal__gutter {
	position: sticky;
	left: 0;
	z-index: 2;
	background: var(--fg-white);
	border-right: 1px solid var(--fg-tan);
}
.fgb-cal__timehead .fgb-cal__gutter { background: var(--fg-bone); }

.fgb-cal__hour {
	height: var(--fgb-hour-h);
	padding: 2px 6px 0 0;
	text-align: right;
	font-size: .68rem;
	color: var(--fg-moss-green);
	border-top: 1px solid var(--fg-bone);
}

.fgb-cal__col { position: relative; border-left: 1px solid var(--fg-bone); }
.fgb-cal__col.is-today { background: rgba(207, 187, 153, .14); }
.fgb-cal__hourline { height: var(--fgb-hour-h); border-top: 1px solid var(--fg-bone); }

.fgb-event {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 1px;
	padding: 3px 6px;
	font: inherit; font-size: .7rem;
	text-align: left;
	overflow: hidden;
	border: 0;
	border-left: 3px solid rgba(0, 0, 0, .18);
	border-radius: 4px;
	cursor: pointer;
	background: var(--fg-bone);
	color: var(--fg-cafe-noir);
	/* A hair of inset keeps neighbouring lanes visually separated. */
	box-shadow: inset -1px 0 0 rgba(255, 253, 249, .8);
	min-height: 15px;
}
.fgb-event:hover { filter: brightness(.95); z-index: 4; }
.fgb-event__time { font-weight: 700; white-space: nowrap; flex: 0 0 auto; }

/* Short bookings (a 5-20 minute slot) get one line instead of a stack -
   see hourHeight() in fg-dashboard.js for why they are short at all. */
.fgb-event.is-short {
	flex-direction: row;
	align-items: center;
	gap: 5px;
	padding: 1px 5px;
	font-size: .64rem;
	line-height: 1.25;
}
.fgb-event.is-short .fgb-event__name { font-size: .64rem; }
.fgb-event__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fgb-event__meta { font-size: .64rem; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fgb-event--pending_payment { background: var(--fg-tan); }
.fgb-event--confirmed { background: var(--fg-moss-green); color: var(--fg-white); }
.fgb-event--checked_in { background: var(--fg-kombu-green); color: var(--fg-bone); }
.fgb-event--completed { background: var(--fg-bone); }
.fgb-event--cancelled { background: #F0DED4; color: #6E3B23; text-decoration: line-through; }
.fgb-event--no_show { background: var(--fg-alert); color: #fff; }

/* ---------- list ---------- */

.fgb-cal--list { padding: 4px; }
.fgb-list__group { margin-bottom: 8px; }
.fgb-list__date {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 8px 12px;
	background: var(--fg-bone);
	border-radius: 8px;
	font-size: .82rem;
	color: var(--fg-kombu-green);
}
.fgb-list__date span { color: var(--fg-moss-green); }

.fgb-list__row {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 11px 12px;
	font: inherit;
	text-align: left;
	background: none;
	border: 0;
	border-bottom: 1px solid var(--fg-bone);
	border-left: 4px solid transparent;
	cursor: pointer;
}
.fgb-list__row:hover { background: #FAF7F2; }
.fgb-list__row--pending_payment { border-left-color: var(--fg-tan); }
.fgb-list__row--confirmed { border-left-color: var(--fg-moss-green); }
.fgb-list__row--checked_in { border-left-color: var(--fg-kombu-green); }
.fgb-list__row--completed { border-left-color: var(--fg-cafe-noir); }
.fgb-list__row--cancelled { border-left-color: #D8B7A4; opacity: .7; }
.fgb-list__row--no_show { border-left-color: var(--fg-alert); }

.fgb-list__time { display: flex; flex-direction: column; flex: 0 0 56px; line-height: 1.25; }
.fgb-list__time strong { font-size: .95rem; color: var(--fg-kombu-green); }
.fgb-list__time small { font-size: .7rem; color: var(--fg-moss-green); }

.fgb-list__main { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.fgb-list__name { font-weight: 700; color: var(--fg-cafe-noir); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fgb-list__meta { font-size: .76rem; color: var(--fg-moss-green); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fgb-list__side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.fgb-list__total { font-weight: 700; font-size: .85rem; color: var(--fg-kombu-green); white-space: nowrap; }

/* ---------- detail drawer ---------- */

.fgb-dash__drawer { position: fixed; inset: 0; z-index: 100000; }
.fgb-dash__drawer[hidden] { display: none; }
.fgb-dash__drawer-backdrop { position: absolute; inset: 0; background: rgba(53, 64, 36, .45); }

.fgb-dash__drawer-panel {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: min(420px, 100%);
	padding: 22px;
	overflow-y: auto;
	background: var(--fg-white);
	box-shadow: -4px 0 24px rgba(53, 64, 36, .18);
	animation: fgb-slide-in .22s ease;
}
@keyframes fgb-slide-in { from { transform: translateX(16px); opacity: 0; } to { transform: none; opacity: 1; } }

.fgb-dash__drawer-x {
	position: absolute;
	top: 12px; right: 12px;
	width: 32px; height: 32px;
	display: grid; place-items: center;
	font-size: 1.4rem; line-height: 1;
	color: var(--fg-kombu-green);
	background: var(--fg-bone);
	border: 0; border-radius: 50%;
	cursor: pointer;
}
.fgb-dash__drawer-x:hover { background: var(--fg-tan); }

.fgb-drawer__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 40px 16px 0; }
.fgb-drawer__head .fgb-code { font-size: 1.25rem; color: var(--fg-kombu-green); }

.fgb-drawer__proof { margin-top: 18px; }
.fgb-drawer__proof .fgb-h3 { margin-top: 0; }
.fgb-drawer__proof .fgb-proof { max-width: 100%; border: 1px solid var(--fg-tan); border-radius: 8px; display: block; }

.fgb-drawer__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.fgb-drawer__actions .fgb-btn { flex: 1 1 auto; padding: 10px 14px; font-size: .85rem; }
.fgb-btn--danger { background: var(--fg-alert); color: #fff; border-color: var(--fg-alert); }
.fgb-btn--danger:hover:not(:disabled) { background: #7F4730; }

.fgb-drawer__note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--fg-bone); }
.fgb-drawer__note .fgb-input { margin-bottom: 8px; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.fgb-dash__filters { order: 3; flex-basis: 100%; justify-content: flex-start; }
	.fgb-dash__search { flex: 1 1 200px; max-width: none; }
}

@media (max-width: 720px) {
	.fgb-dash { --fgb-hour-h: 44px; --fgb-col-min: 112px; }

	.fgb-dash__bar { padding: 10px; gap: 8px; }
	.fgb-dash__nav { order: 1; flex-basis: 100%; }
	.fgb-dash__title { font-size: .95rem; margin-left: 4px; }
	.fgb-dash__views { order: 2; flex-basis: 100%; }
	.fgb-dash__view { flex: 1 1 0; padding: 8px 4px; text-align: center; }
	.fgb-dash__filters { flex-wrap: wrap; }
	/* Sized so both selects AND the fullscreen button still share one row:
	   368px of usable width, minus two 8px gaps and the 38px button,
	   leaves 157px each. A larger basis pushes the button onto a line of
	   its own. */
	.fgb-dash__select { flex: 1 1 calc(50% - 29px); max-width: none; }
	.fgb-dash__search { flex: 1 1 100%; max-width: none; }

	.fgb-dash__legend { font-size: .68rem; gap: 4px 10px; }

	/* Month cells drop to dots + a count (chips are suppressed in JS). */
	.fgb-cal__cell { min-height: 64px; padding: 3px; gap: 2px; }
	.fgb-cal__daynum { min-width: 22px; height: 22px; font-size: .72rem; }
	.fgb-cal__head-cell { padding: 7px 2px; font-size: .64rem; }

	.fgb-list__row { gap: 8px; padding: 10px 8px; flex-wrap: wrap; }
	.fgb-list__time { flex-basis: 48px; }
	.fgb-list__side { flex-basis: 100%; padding-left: 56px; }
	.fgb-list__total { margin-left: auto; }

	/* The drawer becomes a bottom sheet, which is far easier to reach
	   one-handed than a full-height side panel. */
	.fgb-dash__drawer-panel {
		top: auto;
		left: 0;
		width: 100%;
		max-height: 88vh;
		border-radius: 16px 16px 0 0;
		padding: 20px 16px 28px;
		animation: fgb-slide-up .24s ease;
	}
	@keyframes fgb-slide-up { from { transform: translateY(22px); opacity: 0; } to { transform: none; opacity: 1; } }

	.fgb-drawer__actions .fgb-btn { flex-basis: calc(50% - 4px); }
}

@media (max-width: 420px) {
	.fgb-dash__view { font-size: .74rem; }
	.fgb-cal__cell { min-height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	.fgb-dash__drawer-panel { animation: none; }
}

@media print {
	.fgb-dash__bar,
	.fgb-dash__filters,
	.fgb-dash__drawer { display: none !important; }
	.fgb-cal { border: 0; box-shadow: none; }
	.fgb-cal__scroll { overflow: visible; }
}


/* ==================================================================== */
/* Theme guard - see the long note at the end of fg-booking.css         */
/* ==================================================================== */
/*
 * The generic `.fgb-app a/button` rule lives in fg-booking.css, which this
 * stylesheet always loads after (it is registered with fg-frontend as a
 * dependency). Only the components that carry a colour of their own need
 * restating here, and every one of them is a <button>, so every one of
 * them is hit by the theme's `button:hover`.
 */

.fgb-app .fgb-dash__arrow:hover,
.fgb-app .fgb-dash__arrow:focus,
.fgb-app .fgb-dash__arrow:active,
.fgb-app .fgb-dash__icon-btn:hover,
.fgb-app .fgb-dash__icon-btn:focus,
.fgb-app .fgb-dash__icon-btn:active,
.fgb-app .fgb-dash__today:hover,
.fgb-app .fgb-dash__today:focus,
.fgb-app .fgb-dash__today:active,
.fgb-app .fgb-dash__drawer-x:hover,
.fgb-app .fgb-dash__drawer-x:focus,
.fgb-app .fgb-dash__drawer-x:active { color: var(--fg-kombu-green); }

.fgb-app .fgb-dash__view:hover,
.fgb-app .fgb-dash__view:focus,
.fgb-app .fgb-dash__view:active { color: var(--fg-moss-green); background: var(--fg-bone); }

.fgb-app .fgb-dash__view.is-active:hover,
.fgb-app .fgb-dash__view.is-active:focus,
.fgb-app .fgb-dash__view.is-active:active { color: var(--fg-bone); background: var(--fg-kombu-green); }

.fgb-app .fgb-cal__daynum:hover,
.fgb-app .fgb-cal__daynum:focus,
.fgb-app .fgb-cal__daynum:active { color: var(--fg-cafe-noir); }

.fgb-app .fgb-cal__cell.is-today .fgb-cal__daynum:hover,
.fgb-app .fgb-cal__cell.is-today .fgb-cal__daynum:focus,
.fgb-app .fgb-cal__cell.is-today .fgb-cal__daynum:active { color: var(--fg-bone); }

.fgb-app .fgb-cal__more:hover,
.fgb-app .fgb-cal__more:focus,
.fgb-app .fgb-cal__more:active { color: var(--fg-moss-green); }

/* Chips, events and list rows: the base carries the default ink and the
   per-status modifiers override it, so both levels need the state list. */
.fgb-app .fgb-chip:hover,
.fgb-app .fgb-chip:focus,
.fgb-app .fgb-chip:active,
.fgb-app .fgb-event:hover,
.fgb-app .fgb-event:focus,
.fgb-app .fgb-event:active,
.fgb-app .fgb-list__row:hover,
.fgb-app .fgb-list__row:focus,
.fgb-app .fgb-list__row:active { color: var(--fg-cafe-noir); }

.fgb-app .fgb-chip--confirmed:hover,
.fgb-app .fgb-chip--confirmed:focus,
.fgb-app .fgb-chip--confirmed:active,
.fgb-app .fgb-event--confirmed:hover,
.fgb-app .fgb-event--confirmed:focus,
.fgb-app .fgb-event--confirmed:active { color: var(--fg-white); }

.fgb-app .fgb-chip--checked_in:hover,
.fgb-app .fgb-chip--checked_in:focus,
.fgb-app .fgb-chip--checked_in:active,
.fgb-app .fgb-event--checked_in:hover,
.fgb-app .fgb-event--checked_in:focus,
.fgb-app .fgb-event--checked_in:active { color: var(--fg-bone); }

.fgb-app .fgb-chip--cancelled:hover,
.fgb-app .fgb-chip--cancelled:focus,
.fgb-app .fgb-chip--cancelled:active,
.fgb-app .fgb-event--cancelled:hover,
.fgb-app .fgb-event--cancelled:focus,
.fgb-app .fgb-event--cancelled:active { color: #6E3B23; }

.fgb-app .fgb-chip--no_show:hover,
.fgb-app .fgb-chip--no_show:focus,
.fgb-app .fgb-chip--no_show:active,
.fgb-app .fgb-event--no_show:hover,
.fgb-app .fgb-event--no_show:focus,
.fgb-app .fgb-event--no_show:active { color: #fff; }

.fgb-app .fgb-btn--danger:hover,
.fgb-app .fgb-btn--danger:focus,
.fgb-app .fgb-btn--danger:active { color: #fff; }

/* -------------------------------------------------------------------- */
/* background + border, same reasoning as fg-booking.css                */
/* -------------------------------------------------------------------- */

.fgb-app .fgb-dash__arrow:hover,
.fgb-app .fgb-dash__arrow:focus,
.fgb-app .fgb-dash__arrow:active,
.fgb-app .fgb-dash__icon-btn:hover,
.fgb-app .fgb-dash__icon-btn:focus,
.fgb-app .fgb-dash__icon-btn:active,
.fgb-app .fgb-dash__today:hover,
.fgb-app .fgb-dash__today:focus,
.fgb-app .fgb-dash__today:active {
	background-color: var(--fg-bone);
	border-color: var(--fg-moss-green);
}

.fgb-app .fgb-dash__view:hover,
.fgb-app .fgb-dash__view:focus,
.fgb-app .fgb-dash__view:active { background-color: var(--fg-bone); }

.fgb-app .fgb-dash__view.is-active:hover,
.fgb-app .fgb-dash__view.is-active:focus,
.fgb-app .fgb-dash__view.is-active:active { background-color: var(--fg-kombu-green); }

.fgb-app .fgb-cal__daynum:hover,
.fgb-app .fgb-cal__daynum:focus,
.fgb-app .fgb-cal__daynum:active { background-color: var(--fg-tan); }

.fgb-app .fgb-cal__cell.is-today .fgb-cal__daynum:hover,
.fgb-app .fgb-cal__cell.is-today .fgb-cal__daynum:focus,
.fgb-app .fgb-cal__cell.is-today .fgb-cal__daynum:active { background-color: var(--fg-kombu-green); }

.fgb-app .fgb-cal__more:hover,
.fgb-app .fgb-cal__more:focus,
.fgb-app .fgb-cal__more:active { background-color: transparent; }

.fgb-app .fgb-list__row:hover,
.fgb-app .fgb-list__row:focus,
.fgb-app .fgb-list__row:active { background-color: #FAF7F2; }

.fgb-app .fgb-dash__drawer-x:hover,
.fgb-app .fgb-dash__drawer-x:focus,
.fgb-app .fgb-dash__drawer-x:active { background-color: var(--fg-tan); }

.fgb-app .fgb-btn--danger:focus,
.fgb-app .fgb-btn--danger:active { background-color: var(--fg-alert); }
.fgb-app .fgb-btn--danger:hover:not(:disabled) { background-color: #7F4730; }

/* Chips and events: the base tint, then one rule per status. Both
   components share every value, so they share every rule. */
.fgb-app .fgb-chip:hover,
.fgb-app .fgb-chip:focus,
.fgb-app .fgb-chip:active,
.fgb-app .fgb-event:hover,
.fgb-app .fgb-event:focus,
.fgb-app .fgb-event:active { background-color: var(--fg-bone); }

.fgb-app .fgb-chip--pending_payment:hover,
.fgb-app .fgb-chip--pending_payment:focus,
.fgb-app .fgb-chip--pending_payment:active,
.fgb-app .fgb-event--pending_payment:hover,
.fgb-app .fgb-event--pending_payment:focus,
.fgb-app .fgb-event--pending_payment:active { background-color: var(--fg-tan); }

.fgb-app .fgb-chip--confirmed:hover,
.fgb-app .fgb-chip--confirmed:focus,
.fgb-app .fgb-chip--confirmed:active,
.fgb-app .fgb-event--confirmed:hover,
.fgb-app .fgb-event--confirmed:focus,
.fgb-app .fgb-event--confirmed:active { background-color: var(--fg-moss-green); }

.fgb-app .fgb-chip--checked_in:hover,
.fgb-app .fgb-chip--checked_in:focus,
.fgb-app .fgb-chip--checked_in:active,
.fgb-app .fgb-event--checked_in:hover,
.fgb-app .fgb-event--checked_in:focus,
.fgb-app .fgb-event--checked_in:active { background-color: var(--fg-kombu-green); }

.fgb-app .fgb-chip--completed:hover,
.fgb-app .fgb-chip--completed:focus,
.fgb-app .fgb-chip--completed:active,
.fgb-app .fgb-event--completed:hover,
.fgb-app .fgb-event--completed:focus,
.fgb-app .fgb-event--completed:active { background-color: var(--fg-bone); }

.fgb-app .fgb-chip--cancelled:hover,
.fgb-app .fgb-chip--cancelled:focus,
.fgb-app .fgb-chip--cancelled:active,
.fgb-app .fgb-event--cancelled:hover,
.fgb-app .fgb-event--cancelled:focus,
.fgb-app .fgb-event--cancelled:active { background-color: #F0DED4; }

.fgb-app .fgb-chip--no_show:hover,
.fgb-app .fgb-chip--no_show:focus,
.fgb-app .fgb-chip--no_show:active,
.fgb-app .fgb-event--no_show:hover,
.fgb-app .fgb-event--no_show:focus,
.fgb-app .fgb-event--no_show:active { background-color: var(--fg-alert); }
