.rdc-table {
	font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.rdc-table.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.rdc-table__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.rdc-table__filters-label {
	margin-right: 8px;
	color: #031527;
	font-size: 18px;
	line-height: 1.6;
	opacity: 0.9;
}

.rdc-table__filter {
	position: relative;
}

.rdc-table__filter-toggle {
	display: inline-flex;
	align-items: stretch;
	height: 32px;
	border: 1px solid #E9E9E9;
	border-radius: 20px;
	background-color: #FFFFFF;
	overflow: hidden;
}

.rdc-table__filter.is-active .rdc-table__filter-toggle {
	border-radius: 16px;
}

.rdc-table__filter.is-open .rdc-table__filter-toggle {
	border-color: #0072FF;
}

.rdc-table__filter-open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	background: none;
	padding: 0 12px;
	color: #031527;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.8;
	cursor: pointer;
}

.rdc-table__filter-plus {
	font-size: 12px;
	color: #031527;
}

.rdc-table__filter-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	border: none;
	border-right: 1px solid #E9E9E9;
	background: none;
	padding: 0;
	color: #031527;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.rdc-table__filter-divider {
	width: 1px;
	height: 14px;
	background-color: #E9E9E9;
}

.rdc-table__filter-value {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 6px;
	background-color: rgba( 0, 114, 255, 0.12 );
	color: #0072FF;
	font-size: 14px;
	white-space: nowrap;
}

.rdc-table__filter-chevron {
	font-size: 10px;
	color: #031527;
}

.rdc-table__filter-panel {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 10;
	min-width: 220px;
	max-height: 280px;
	overflow-y: auto;
	padding: 12px;
	border: 1px solid #E9E9E9;
	border-radius: 12px;
	background-color: #FFFFFF;
	box-shadow: 0 8px 24px rgba(3, 21, 39, 0.12);
}

.rdc-table__filter.is-open .rdc-table__filter-panel {
	display: block;
}

.rdc-table__filter-option {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 4px;
	color: #031527;
	font-size: 14px;
	cursor: pointer;
}

.rdc-table__scroll {
	overflow-x: auto;
	border: 1px solid #E9E9E9;
	border-radius: 24px;
	scrollbar-width: thin;
	scrollbar-color: #E9E9E9 transparent;
}

.rdc-table__scroll::-webkit-scrollbar {
	height: 6px;
}

.rdc-table__scroll::-webkit-scrollbar-track {
	background: transparent;
}

.rdc-table__scroll::-webkit-scrollbar-thumb {
	background-color: #E9E9E9;
	border-radius: 999px;
}

/*
 * table-layout is auto, not fixed, so the service-type column can size itself
 * to its pills (see width: max-content below) — fixed layout resolves a column
 * from the header cell alone and ignores the body rows entirely.
 *
 * Auto layout treats a cell `width` as a suggestion and will shrink a column
 * below it when the content is narrower, so every other column repeats its
 * width as `min-width` to stay exactly where it was.
 */
.rdc-table__table {
	table-layout: auto;
	width: 1239px;
	border-collapse: collapse;
	white-space: nowrap;
}

.rdc-table__table th,
.rdc-table__table td {
	box-sizing: border-box;
	height: 56px;
	padding: 0 16px;
	text-align: left;
	vertical-align: middle;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rdc-table__table thead th {
	background-color: #F7F7F6;
	color: #031527;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.8;
}

.rdc-table__table tbody tr:nth-child(even) {
	background-color: #F7F7F6;
}

.rdc-table__table tbody td {
	color: #031527;
	font-size: 14px;
	line-height: 1.8;
}

.rdc-table__table th.rdc-table__th--rank,
.rdc-table__table td.rdc-table__rank {
	padding-left: 28px;
}

/*
 * No right padding on the heading: "Rank" plus its sort icon needs 51px and
 * the 28px indent leaves only 36px of the 80px column, which made .rdc-table__sort
 * shrink its own icon away to nothing and still clip into an ellipsis. The
 * column is wide enough for the row numbers, so the padding was dead space.
 */
.rdc-table__table thead th.rdc-table__th--rank {
	padding-right: 0;
}

/* max-width too: the "Rank" heading needs 83px and auto layout would grant it,
   pushing the sticky company column off its hard-coded left offset. */
.rdc-table__th--rank,
.rdc-table__rank {
	width: 80px;
	min-width: 80px;
	max-width: 80px;
}

.rdc-table__th--company_name,
.rdc-table__company {
	width: 210px;
	min-width: 210px;
}

.rdc-table__th--unit_count,
.rdc-table__cell--unit_count {
	width: 152px;
	min-width: 152px;
}

.rdc-table__th--headquarters,
.rdc-table__cell--headquarters {
	width: 172px;
	min-width: 172px;
}

/*
 * The one content-sized column: max-content makes it exactly as wide as the
 * widest pill row currently rendered, so a page showing single-service rows
 * no longer carries the ~100-200px of dead space a static width needed to
 * cover the three-pill worst case. The heading is its natural floor.
 */
.rdc-table__th--service_type,
.rdc-table__cell--service_type {
	width: max-content;
}

/*
 * Parent companies can list several service types (e.g. Fast Casual, Quick
 * Serve, Casual/Family) — each renders as its own pill in its own colour
 * instead of one long comma-joined string. Kept on one line: wrapping onto a
 * 2nd line collided with the fixed row height and made pills overlap. Overflow
 * stays visible + elevated as a safety net in case the measured width is stale.
 */
.rdc-table__table td.rdc-table__cell--service_type {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 6px;
	overflow: visible;
	text-overflow: unset;
	white-space: nowrap;
	padding-top: 8px;
	padding-bottom: 8px;
}

.rdc-table__th--cuisine_primary,
.rdc-table__cell--cuisine_primary {
	width: 173px;
	min-width: 173px;
}

.rdc-table__th--sales,
.rdc-table__cell--sales {
	width: 131px;
	min-width: 131px;
}

.rdc-table__th--trading_areas_total,
.rdc-table__cell--trading_areas_total {
	width: 160px;
	min-width: 160px;
}

/* Rank and Company stay in place during horizontal scroll. */
.rdc-table__th--rank,
.rdc-table__rank,
.rdc-table__th--company_name,
.rdc-table__company {
	position: sticky;
	z-index: 2;
	background-color: #FFFFFF;
}

.rdc-table__th--rank,
.rdc-table__rank {
	left: 0;
}

.rdc-table__th--company_name,
.rdc-table__company {
	left: 80px;
	box-shadow: 4px 0 8px -4px rgba(13, 21, 31, 0.12);
}

.rdc-table__table thead .rdc-table__th--rank,
.rdc-table__table thead .rdc-table__th--company_name {
	z-index: 3;
	background-color: #F7F7F6;
}

.rdc-table__table tbody tr:nth-child(even) .rdc-table__rank,
.rdc-table__table tbody tr:nth-child(even) .rdc-table__company {
	background-color: #F7F7F6;
}

.rdc-table__sort {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	background: none;
	padding: 0;
	color: inherit;
	font: inherit;
	font-weight: inherit;
	cursor: pointer;
}

.rdc-table__sort-icon {
	display: inline-flex;
	color: #91A0AC;
}

.rdc-table__sort-icon svg {
	display: block;
	width: 12px;
	height: 12px;
}

.rdc-table__th.is-sorted-asc .rdc-table__sort,
.rdc-table__th.is-sorted-desc .rdc-table__sort {
	color: #0072FF;
}

.rdc-table__th.is-sorted-asc .rdc-table__sort-icon,
.rdc-table__th.is-sorted-desc .rdc-table__sort-icon {
	color: #0072FF;
}

.rdc-table__company {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.rdc-table__company a {
	display: block;
	min-width: 0;
	overflow: hidden;
	color: #031527;
	text-overflow: ellipsis;
	text-decoration: none;
}

.rdc-table__company a:hover,
.rdc-table__company a:focus-visible {
	text-decoration: underline;
}

.rdc-table__icons {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.rdc-table__icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
	color: #EBEBEB;
}

.rdc-table__icon svg {
	width: 100%;
	height: 100%;
}

.rdc-table__icon.is-active {
	color: #0072FF;
}

/* flex-shrink: 0 keeps pills at their natural width — both so they never get
   squashed onto a cramped line, and so measuring them stays accurate however
   narrow the column happens to be at the time. */
.rdc-table__pill {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	padding: 3px 8px;
	border-radius: 6px;
	font-size: 14px;
	white-space: nowrap;
}

.rdc-table__pill--qsr {
	background-color: rgba( 0, 114, 255, 0.12 );
	color: #0072FF;
}

.rdc-table__pill--fast-casual {
	background-color: rgba( 232, 128, 0, 0.12 );
	color: #E88000;
}

.rdc-table__pill--full-service {
	background-color: rgba( 231, 29, 54, 0.12 );
	color: #E71D36;
}

.rdc-table__pill--default {
	background-color: rgba( 196, 145, 15, 0.2 );
	color: #6B5200;
}

.rdc-table__table td.rdc-table__empty {
	height: auto;
	padding: 64px 20px;
}

.rdc-table__empty-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 420px;
	margin: 0 auto;
	text-align: center;
	white-space: normal;
}

.rdc-table__empty-icon {
	display: inline-flex;
	color: #E9E9E9;
}

.rdc-table__empty-title {
	margin: 0;
	color: #031527;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.rdc-table__empty-text {
	margin: 0;
	color: #42505D;
	font-size: 15px;
	line-height: 1.6;
}

.rdc-table__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
}

.rdc-table__note {
	margin: 0;
	color: #031527;
	font-size: 14px;
	line-height: 1.8;
}

.rdc-table__pagination {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
}

.rdc-table__pages {
	display: flex;
	align-items: center;
	gap: 4px;
}

.rdc-table__page,
.rdc-table__page-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #E9E9E9;
	border-radius: 16px;
	background: none;
	box-shadow: 0 1px 2px rgba( 13, 21, 31, 0.03 );
	color: #031527;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.8;
	cursor: pointer;
}

.rdc-table__page.is-current {
	box-shadow: none;
	color: #0072FF;
	font-weight: 700;
}

.rdc-table__page-nav:disabled {
	opacity: 0.4;
	box-shadow: none;
	cursor: default;
}

.rdc-table__page-nav-icon {
	display: inline-flex;
}

.rdc-table__page-nav-icon svg {
	display: block;
	width: 12px;
	height: 12px;
}

.rdc-table__page-ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
}

@media (max-width: 767px) {
	.rdc-table__table th,
	.rdc-table__table td {
		height: 48px;
		padding: 0 10px;
	}

	.rdc-table__table thead th,
	.rdc-table__table tbody td {
		font-size: 13px;
	}

	.rdc-table__table th.rdc-table__th--rank,
	.rdc-table__table td.rdc-table__rank {
		padding-left: 14px;
	}

	/* Narrower pinned columns, to leave more room for the rest of the table. */
	.rdc-table__th--rank,
	.rdc-table__rank {
		width: 48px;
		min-width: 48px;
		max-width: 48px;
	}

	/* 48px cannot hold "Rank" and the icon, and widening it costs real space on
	   a phone. The sorted state still reads from the heading turning blue. */
	.rdc-table__th--rank .rdc-table__sort-icon {
		display: none;
	}

	.rdc-table__th--company_name,
	.rdc-table__company {
		width: 140px;
		min-width: 140px;
		left: 48px;
	}

	.rdc-table__icons {
		gap: 4px;
	}

	.rdc-table__icon {
		width: 16px;
		height: 16px;
	}

	.rdc-table__footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.rdc-table__pagination {
		margin-left: 0;
		width: 100%;
		justify-content: space-between;
	}
}

.rdc-table__name-tooltip {
	position: fixed;
	z-index: 1000;
	max-width: min(320px, calc(100vw - 24px));
	padding: 6px 10px;
	border-radius: 6px;
	background-color: #031527;
	color: #FFFFFF;
	font-size: 13px;
	line-height: 1.4;
	white-space: normal;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease;
}

.rdc-table__name-tooltip.is-visible {
	opacity: 1;
	visibility: visible;
}
