/* Wireroom Bankruptcy Sales — scoped to .wbs; inherits the theme's fonts and colors. */
.wbs {
	--wbs-border: rgba(127, 127, 127, 0.28);
	--wbs-muted: rgba(127, 127, 127, 0.95);
	--wbs-soft: rgba(127, 127, 127, 0.08);
	margin: 1.5em 0;
	font-size: 0.95em;
}
.wbs *,
.wbs *::before,
.wbs *::after {
	box-sizing: border-box;
}
.wbs-table td[data-label="Court"],
.wbs-table td[data-label="Last activity"],
.wbs-case-no {
	white-space: nowrap;
}
/* Wide: grow past a narrow text column (wireroom.com caps page text at 720px) to the page container. */
.wbs-wide {
	width: min(1112px, calc(100vw - 48px));
	max-width: none;
}
.wbs-filing-date {
	display: block;
	font-size: 0.85em;
	color: var(--wbs-muted);
	margin-top: 0.15em;
}
.wbs-heading {
	margin: 0 0 0.3em;
}
.wbs-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	align-items: flex-end;
	margin-bottom: 1em;
}
.wbs-filters label {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	font-size: 0.85em;
}
.wbs-filters select,
.wbs-filters button {
	font: inherit;
	padding: 0.45em 0.7em;
	min-height: 2.4em;
}
.wbs-count {
	color: var(--wbs-muted);
	margin: 0 0 0.6em;
	font-size: 0.9em;
}
.wbs-table {
	width: 100%;
	border-collapse: collapse;
}
.wbs-table th,
.wbs-table td {
	text-align: left;
	vertical-align: top;
	padding: 0.65em 0.6em;
	border-bottom: 1px solid var(--wbs-border);
}
.wbs-table th {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wbs-muted);
	font-weight: 600;
}
.wbs-table tbody tr:hover {
	background: var(--wbs-soft);
}
.wbs-case-no {
	font-variant-numeric: tabular-nums;
	font-size: 0.9em;
}
.wbs-stage {
	display: inline-block;
	white-space: nowrap;
	padding: 0.15em 0.55em;
	border-radius: 999px;
	font-size: 0.82em;
	font-weight: 600;
	border: 1px solid currentColor;
}
.wbs-stage-sale-motion-filed { color: #2563a8; }
.wbs-stage-bid-procedures { color: #9a5b00; }
.wbs-stage-sale-order-entered { color: #1d7a46; }
.wbs-stage-sale-closed { color: #6b6b6b; }
.wbs-request {
	margin: 0;
	display: inline;
}
.wbs-stage-btn {
	cursor: pointer;
	background: transparent;
	font: inherit;
	font-size: 0.82em;
	font-weight: 600;
	line-height: inherit;
	text-decoration: none;
	transition: background-color 0.15s ease;
}
button.wbs-stage-btn {
	padding: 0.15em 0.55em;
	border-radius: 999px;
	border: 1px solid currentColor;
}
.wbs-stage-btn:hover,
.wbs-stage-btn:focus-visible {
	background: var(--wbs-soft);
	text-decoration: none;
}
.wbs-stage-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.wbs-track {
	display: block;
	margin-top: 0.3em;
	font-size: 0.78em;
	color: var(--wbs-muted);
}
.wbs-track-on {
	color: #1d7a46;
	font-weight: 600;
}
.wbs-notice {
	padding: 0.6em 0.9em;
	border-radius: 6px;
	background: var(--wbs-soft);
	border-left: 3px solid #1d7a46;
}
.wbs-notice-error {
	border-left-color: #b32d2e;
}
.wbs-locked {
	color: var(--wbs-muted);
	font-style: italic;
}
.wbs-cta {
	margin-top: 1em;
	padding: 0.8em 1em;
	background: var(--wbs-soft);
	border-radius: 6px;
}
.wbs-source {
	margin-top: 1em;
	font-size: 0.8em;
	color: var(--wbs-muted);
}
.wbs-admin-note {
	padding: 0.6em 0.8em;
	border-left: 3px solid #b32d2e;
	background: rgba(179, 45, 46, 0.08);
	font-size: 0.85em;
}
.wbs-empty {
	padding: 1em 0;
}

/* Action buttons: Follow Case, View Sale Motion, View Case Docket. */
.wbs-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.3em;
	min-width: 9.5em;
}
.wbs-actions .wbs-btn,
.wbs-actions .wbs-request {
	display: block;
	width: 100%;
	text-align: center;
}
.wbs-btn {
	display: inline-block;
	white-space: nowrap;
	padding: 0.3em 0.7em;
	border-radius: 4px;
	border: 1px solid var(--wbs-border);
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
a.wbs-btn:hover,
button.wbs-btn:hover,
.wbs-btn:focus-visible {
	background: var(--wbs-soft);
	border-color: currentColor;
	text-decoration: none;
}
.wbs-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.wbs-btn-primary {
	color: #2563a8;
	border-color: currentColor;
}
.wbs-btn-on {
	color: #1d7a46;
	border-color: currentColor;
	cursor: default;
}
.wbs-btn-off {
	color: var(--wbs-muted);
	border-style: dashed;
	cursor: default;
}
.wbs-btn-locked {
	color: var(--wbs-muted);
}
.wbs-actions-cell {
	width: 1%;
}
/* Rows a member can click to request tracking: gray on hover. */
.wbs-table tbody tr.wbs-row-req {
	cursor: pointer;
}
.wbs-table tbody tr.wbs-row-req:hover {
	background: rgba(127, 127, 127, 0.16);
}
.wbs-table tbody tr.wbs-row-open {
	background: rgba(37, 99, 168, 0.08);
	box-shadow: inset 3px 0 0 #2563a8;
}
.wbs-table tbody tr.wbs-row-sending {
	opacity: 0.6;
}

/* Docket panel (View Case Docket, from DocketBird). */
.wbs-docket {
	border: 1px solid var(--wbs-border);
	border-radius: 6px;
	padding: 0.9em 1em;
	margin: 0 0 1.2em;
}
.wbs-docket-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1em;
	margin-bottom: 0.6em;
}
.wbs-docket-title {
	margin: 0 0 0.15em;
	font-size: 1.1em;
}
.wbs-docket-src {
	display: block;
	font-size: 0.8em;
	color: var(--wbs-muted);
	margin-top: 0.2em;
}
.wbs-docket-note {
	font-size: 0.85em;
	color: var(--wbs-muted);
	margin: 0 0 0.5em;
}
.wbs-docket-scroll {
	max-height: 34em;
	overflow: auto;
	border-top: 1px solid var(--wbs-border);
}
.wbs-docket-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9em;
}
.wbs-docket-table th,
.wbs-docket-table td {
	text-align: left;
	vertical-align: top;
	padding: 0.5em 0.5em;
	border-bottom: 1px solid var(--wbs-border);
}
.wbs-docket-table th {
	position: sticky;
	top: 0;
	background: var(--wbs-bg, #fff);
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wbs-muted);
}
.wbs-docket-no,
.wbs-docket-date,
.wbs-docket-open {
	white-space: nowrap;
}
.wbs-docket-no {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}
.wbs-docket-no a {
	text-decoration: underline;
	text-underline-offset: 2px;
}
.wbs-docket-nodoc {
	font-weight: 400;
	color: var(--wbs-muted);
}
.wbs-docket-att td {
	font-size: 0.92em;
	color: var(--wbs-muted);
}
.wbs-docket-att .wbs-docket-no {
	padding-left: 1.2em;
}
.wbs-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Phones: each row becomes a card. */
@media (max-width: 640px) {
	.wbs-table thead {
		display: none;
	}
	.wbs-table,
	.wbs-table tbody,
	.wbs-table tr,
	.wbs-table td {
		display: block;
		width: 100%;
	}
	.wbs-table tr {
		border: 1px solid var(--wbs-border);
		border-radius: 6px;
		margin-bottom: 0.8em;
		padding: 0.3em 0;
	}
	.wbs-table td {
		border: 0;
		padding: 0.3em 0.8em;
		display: grid;
		grid-template-columns: 7.5em minmax(0, 1fr);
		gap: 0.5em;
		justify-items: start;
		overflow-wrap: anywhere;
	}
	.wbs-table td::before {
		content: attr(data-label);
		font-size: 0.78em;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		color: var(--wbs-muted);
		padding-top: 0.15em;
	}
	.wbs-filters label,
	.wbs-filters select {
		width: 100%;
	}
	.wbs-wide {
		width: 100%;
	}
	.wbs-table td.wbs-actions-cell {
		display: block;
		width: 100%;
	}
	.wbs-table td.wbs-actions-cell::before {
		content: none;
	}
	.wbs-docket-table thead {
		display: none;
	}
	.wbs-docket-table tr {
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 0.2em 0.6em;
		padding: 0.5em 0;
		border-bottom: 1px solid var(--wbs-border);
	}
	.wbs-docket-table td {
		border: 0;
		padding: 0;
	}
	.wbs-docket-table td:nth-child(3) {
		grid-column: 1 / -1;
		grid-row: 2;
	}
	.wbs-actions {
		flex-direction: row;
		flex-wrap: wrap;
	}
	.wbs-actions .wbs-btn,
	.wbs-actions .wbs-request {
		width: auto;
	}
}

/* Claims feed (1.11.0) */
.wbs-stage-chapter-11-case { color: #2563a8; }
.wbs-stage-claim-transfer { color: #7a3fa8; }
.wbs-stage-asset-case { color: #9a5b00; }
.wbs-stage-trustee-final-report { color: #1d7a46; }
.wbs-tag {
	display: inline-block;
	margin-left: 6px;
	padding: 0 6px;
	border: 1px solid currentColor;
	border-radius: 3px;
	font-size: 11px;
	line-height: 16px;
	color: #6b6b6b;
	vertical-align: middle;
}
.wbs-legend {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 8px 20px;
	margin: 18px 0 6px;
	font-size: 13px;
}
.wbs-legend > div { margin: 0; }
.wbs-legend dt { margin: 0 0 2px; }
.wbs-legend dd { margin: 0; color: #555; }

/* Real Property Secured Debt (1.12.0) */
.wbs-stage-real-property-secured-debt { color: #a83f3f; }
.wbs-tag-rp { color: #a83f3f; }
