﻿/* =========================================
   Theme - Deep Forest Green
   Tuned for WCAG AA/AAA contrast
   Covers: Auctions.aspx + Dashboard.aspx
========================================= */
:root {
	/* Neutrals */
	--bg-page: #EEF0F3; /* cooler grey - more depth than flat white */
	--bg-card: #FFFFFF;
	--bg-muted: #F9FAFB;
	--border: #E5E7EB;
	--border-strong: #CDD1D8;
	--text: #111827;
	--text-muted: #4B5563;
	--text-subtle: #6B7280;
	/* Forest greens */
	--forest-900: #0B2F1E; /* sidebar base */
	--forest-800: #134E38; /* sidebar hover */
	--forest-700: #166534; /* active states */
	/* Accent */
	--accent: #10B981;
	--accent-strong: #059669;
	/* Semantic */
	--warn-bg: #FFFBEB;
	--warn-border: #F59E0B;
	--warn-text: #92400E;
	/* Component tokens */
	--sidebar-w: 258px;
	--sidebar-link: rgba(255,255,255,0.70);
	--sidebar-link-hover: #FFFFFF;
	--row-stripe: #F5F7F9; /* subtle, not jarring */
	--row-hover: #F0FDF4;
	--focus-ring: rgba(16,185,129,0.22);
	/* Shadows */
	--shadow-xs: 0 1px 2px rgba(0,0,0,0.07);
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 3px 8px rgba(0,0,0,0.05);
	--shadow-fab: 0 4px 12px rgba(16,185,129,0.32);
	--shadow-fab-hover: 0 6px 18px rgba(16,185,129,0.42);
	/* Radii */
	--radius-sm: .25rem;
	--radius: .375rem;
	--radius-lg: .5rem;
}

/* ─────────────────────────────────────────
   Reset
───────────────────────────────────────── */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Roboto', sans-serif;
	background-color: var(--bg-page);
	color: var(--text);
	line-height: 1.55;
	font-size: 14px;
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* ── Sticky-footer flex chain ──────────────────────────────────────
   The ASP.NET <form> sits between <body> and .layout, AND it also
   contains the <footer>. It must be a flex-column that grows to fill
   the body - otherwise the chain breaks and the footer floats up on
   short-content pages.
─────────────────────────────────────────────────────────────────── */
body > form#aspnetForm {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
}

.layout {
	display: flex;
	flex: 1 0 auto; /* grow tall enough to push the footer to the bottom */
	width: 100%;
}

/* ─────────────────────────────────────────
   Sidebar
───────────────────────────────────────── */
.sidebar, .leftheader {
	width: var(--sidebar-w);
	background-color: var(--forest-900);
	color: #fff;
	padding: 0;
	position: fixed;
	height: 100vh;
	overflow-y: auto;
	overflow-x: hidden;
	top: 0;
}

.leftheader {
	height: auto;
}

/* Thin, tasteful scrollbar */
.sidebar::-webkit-scrollbar {
	width: 3px;
}

.sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.14);
	border-radius: 2px;
}

.logo {
	padding: 0;
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	border-bottom: 1px solid rgba(255,255,255,0.08);
	margin-bottom: 0;
}

/* Nav */
.nav-menu {
	list-style: none;
	padding: 6px 0;
}

.nav-item {
	margin-bottom: 1px;
}

.nav-link {
	display: flex;
	align-items: center;
	padding: 10px 20px;
	color: var(--sidebar-link);
	text-decoration: none;
	font-size: .875rem;
	font-weight: 500;
	letter-spacing: .01em;
	transition: background 150ms ease, color 150ms ease;
}

.nav-link:hover {
	background-color: rgba(255,255,255,0.07);
	color: var(--sidebar-link-hover);
	text-decoration: none;
}

.nav-link.active {
	background-color: rgba(255,255,255,0.10);
	color: var(--sidebar-link-hover);
	position: relative;
}

/* Left accent bar on active item */
.nav-link.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 5px;
	bottom: 5px;
	width: 3px;
	background-color: var(--accent);
	border-radius: 0 2px 2px 0;
}

.nav-icon {
	margin-right: 10px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	opacity: .80;
}

.nav-link.active .nav-icon,
.nav-link:hover .nav-icon {
	opacity: 1;
}

/* Submenus */
.nav-item.has-submenu .nav-submenu {
	display: none;
}

.nav-item.has-submenu > .nav-link.active + .nav-submenu {
	display: block;
}

.nav-item.has-submenu > .nav-submenu {
	list-style: none;
	margin: 2px 0;
	padding: 4px 0 4px 44px;
}

.nav-submenu.bordered {
	border-top: 1px solid rgba(255,255,255,0.06);
	border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-subitem {
	margin: 2px 0;
}

.nav-sublink {
	display: block;
	font-size: .8rem;
	color: rgba(255,255,255,0.50);
	text-decoration: none;
	padding: 3px 0;
	transition: color 140ms;
}

.nav-sublink:hover {
	color: rgba(255,255,255,0.85);
}

.nav-subitem.active .nav-sublink {
	color: #fff;
	font-weight: 600;
	position: relative;
}

.nav-subitem.active .nav-sublink::before {
	content: "";
	position: absolute;
	left: -14px;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 70%;
	background-color: var(--accent);
	border-radius: 2px;
}

/* FAB (live help) */
.live-help {
	position: absolute;
	bottom: 20px;
	left: 20px;
	background-color: var(--accent);
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 48px;
	height: 48px;
	font-size: 20px;
	cursor: pointer;
	box-shadow: var(--shadow-fab);
	transition: transform 200ms ease, box-shadow 200ms ease;
}

.live-help:hover {
	transform: scale(1.06);
	box-shadow: var(--shadow-fab-hover);
}

/* ─────────────────────────────────────────
   Main content
───────────────────────────────────────── */
.main-content {
	margin-left: var(--sidebar-w);
	flex: 1;
	min-width: 0;
	/* Previously 220px - that pushed the footer off-screen on short pages */
	padding: 0 28px 40px;
}

.content {
	flex-basis: 100%;
	padding: 0 28px 40px;
}

/* ─────────────────────────────────────────
   Page header
───────────────────────────────────────── */
.header, .rightheader {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 0 16px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--border);
}

.rightheader {
	margin-left: var(--sidebar-w);
	flex: 1;
	padding: 20px 28px 16px;
}

h1.page-title {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--text);
	letter-spacing: -.3px;
	line-height: 1.2;
}

h2.page-desc {
	font-size: .775rem;
	font-weight: 400;
	color: var(--text-muted);
	margin-top: 3px;
}

#custname {
	font-size: .875rem;
	font-weight: 500;
	color: var(--text-muted);
	margin-right: 8px;
}

.header-icon {
	width: 20px;
	height: 20px;
	color: var(--text-subtle);
	cursor: pointer;
	transition: color 150ms;
	vertical-align: middle;
}

.header-icon:hover {
	color: var(--text);
}

/* Auction selector in header */
.header .form-control,
.rightheader .form-control {
	font-size: .8rem;
	border-color: var(--border-strong);
	border-radius: var(--radius);
	height: calc(1.6em + .6rem + 2px);
}

/* ─────────────────────────────────────────
   Cards  (Bootstrap overrides)
───────────────────────────────────────── */
.card {
	border: 1px solid var(--border) !important;
	border-radius: var(--radius-lg) !important;
	box-shadow: var(--shadow-sm) !important;
	overflow: hidden;
}

.card-header {
	background: var(--bg-card) !important;
	border-bottom: 1px solid var(--border) !important;
}

.card-body {
	padding: 1rem !important;
}

/* Collapse toggle buttons inside card headers */
.card-header .btn-link {
	color: var(--text) !important;
	font-weight: 600 !important;
	font-size: .875rem !important;
	padding: .75rem 1rem !important;
	text-decoration: none !important;
	width: 100%;
}

.card-header .btn-link:hover {
	color: var(--forest-700) !important;
	background: var(--bg-muted) !important;
	text-decoration: none !important;
}

/* Collapse +/- indicator badge */
.collapse-indicator {
	font-size: .68rem !important;
	font-weight: 700 !important;
	background: var(--forest-700) !important;
	color: #fff !important;
	border-radius: var(--radius-sm) !important;
	padding: .2em .5em !important;
	letter-spacing: .02em;
	min-width: 1.4em;
	text-align: center;
}

/* ─────────────────────────────────────────
   Dashboard - stat mini-cards
───────────────────────────────────────── */
.border.rounded.p-3 {
	border-color: var(--border) !important;
	border-radius: var(--radius) !important;
	background: var(--bg-muted);
	transition: box-shadow 150ms ease, border-color 150ms ease;
}

.border.rounded.p-3:hover {
	border-color: var(--accent) !important;
	box-shadow: 0 0 0 3px var(--focus-ring);
}

.border.rounded.p-3 .small.text-muted {
	font-size: .7rem !important;
	text-transform: uppercase;
	letter-spacing: .05em;
	font-weight: 600;
	color: var(--text-subtle) !important;
}

.border.rounded.p-3 .h5 {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--text);
	margin-top: .3rem;
}

/* Welcome card */
.card-body hr {
	border-color: var(--border);
	margin: .85rem 0;
}

.card-body h4 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--text);
}

/* "My Stats" badge */
.badge-light {
	background: var(--bg-muted) !important;
	color: var(--text-muted) !important;
	border: 1px solid var(--border) !important;
	font-size: .68rem !important;
	font-weight: 500 !important;
}

/* Quick Tips card */
.card-body h6 {
	font-size: .72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--text-subtle);
	margin-bottom: .5rem !important;
}

.card-body ul.small li {
	margin-bottom: .3rem;
	line-height: 1.45;
}

/* Alert callout inside accordion (upcoming auctions reminder) */
.alert-light.border {
	background: var(--bg-muted) !important;
	border-color: var(--border) !important;
	border-radius: var(--radius) !important;
	padding: .65rem .875rem !important;
}

.alert-light.border .btn-outline-primary {
	font-size: .75rem;
	padding: .2rem .6rem;
	border-color: var(--forest-700);
	color: var(--forest-700);
	border-radius: var(--radius-sm);
}

.alert-light.border .btn-outline-primary:hover {
	background: var(--forest-700);
	color: #fff;
}

/* ─────────────────────────────────────────
   Badges
───────────────────────────────────────── */
.badge-secondary {
	background: #6B7280 !important;
	font-weight: 600 !important;
	font-size: .68rem !important;
}

.badge-success {
	background: var(--accent-strong) !important;
	font-size: .68rem !important;
	font-weight: 600 !important;
	letter-spacing: .02em;
}

.badge-primary {
	background: var(--forest-700) !important;
	font-size: .68rem !important;
}

/* ─────────────────────────────────────────
   Buttons
───────────────────────────────────────── */
.btn-primary, .btn.btn-primary {
	background-color: var(--forest-700) !important;
	border-color: var(--forest-700) !important;
	font-size: .775rem !important;
	font-weight: 500 !important;
	border-radius: var(--radius) !important;
	transition: background 150ms ease, transform 100ms ease;
}

.btn-primary:hover, .btn.btn-primary:hover {
	background-color: var(--forest-800) !important;
	border-color: var(--forest-800) !important;
	transform: translateY(-1px);
}

.btn-sm {
	padding: .22rem .55rem !important;
	font-size: .75rem !important;
	border-radius: var(--radius-sm) !important;
	line-height: 1.4 !important;
}

button.watch-toggle {
	border: none !important;
	background: none !important;
	font-size: 1.1rem;
	line-height: 1;
	color: var(--text-muted);
	cursor: pointer;
	padding: 0 2px !important;
	transition: color 150ms, transform 150ms;
}

button.watch-toggle:hover {
	color: #F59E0B;
	transform: scale(1.15);
}

a[title="Property Details"] {
	padding: .22rem .55rem !important;
	font-size: .75rem !important;
	border-radius: var(--radius-sm) !important;
	line-height: 1.4 !important;
	background-color: var(--forest-700) !important;
	border-color: var(--forest-700) !important;
	font-size: .775rem !important;
	font-weight: 500 !important;
	border-radius: var(--radius) !important;
	transition: background 150ms ease, transform 100ms ease;
	display: inline-block;
	color: white !important;
}
/* ─────────────────────────────────────────
   Tables
───────────────────────────────────────── */
table.table.table-sm {
	font-size: .8rem;
	margin-bottom: 0;
}

table.table.table-sm td,
table.table.table-sm th {
	font-size: .8rem;
	padding: .35rem .55rem;
	vertical-align: middle;
	border-color: var(--border);
}

/* Subtle stripes - not the original harsh #e6e6e6 */
table.table.table-sm tr:nth-child(odd) {
	background-color: #fff;
}

table.table.table-sm tr:nth-child(even) {
	background-color: var(--row-stripe);
}

table.table.table-sm tbody tr:hover {
	background-color: var(--row-hover) !important;
}

/* Header rows - all variants */
.table .thead-light th,
.table .thead-light td,
.headerrow td.hdr {
	color: var(--text-muted);
	background-color: var(--bg-muted) !important;
	border-color: var(--border) !important;
	font-weight: 600;
	font-size: .7rem !important;
	text-transform: uppercase;
	letter-spacing: .05em;
	white-space: nowrap;
}

.table thead th,
.table thead td {
	vertical-align: bottom;
	border-bottom: 2px solid var(--border-strong) !important;
}

/* Dark header variant */
.headerrow.thead-dark td.hdr {
	background-color: var(--forest-900) !important;
	color: rgba(255,255,255,0.82) !important;
	border-color: var(--forest-800) !important;
}

/* Pre-bid cells */
td.prebid {
	display: none;
}

td.prebid-hidden {
	display: none;
}

/* Dropdown inside table cell */
div.ddlNoBorder select {
	border: none;
	background: transparent;
	font-size: .8rem;
	padding: 0 .2rem;
}

/* ─────────────────────────────────────────
   Pagination (pagelinks)
───────────────────────────────────────── */
.pagelinks {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: .45rem 0;
	font-size: .8rem;
	color: var(--text-muted);
}

.pagelinks select {
	font-size: .775rem;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm);
	padding: .15rem .3rem;
	color: var(--text);
}

.pagelinks .current {
	font-weight: 700;
	color: var(--forest-700);
	background: rgba(16,185,129,.09);
	border-radius: var(--radius-sm);
	padding: .1rem .45rem;
}

.pagelinks .invalid img {
	opacity: .3;
}

/* ─────────────────────────────────────────
   Forms
───────────────────────────────────────── */
.form-inline label {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	margin-bottom: 0;
}

.form-inline .form-group {
	display: flex;
	flex: 0 0 auto;
	flex-flow: row wrap;
	align-items: center;
	margin-bottom: .5rem;
}

.form-control {
	border-color: var(--border-strong);
	border-radius: var(--radius);
	font-size: .8rem;
	transition: border-color 150ms, box-shadow 150ms;
}

.form-control:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--focus-ring);
	outline: none;
}

.login-card {
	width: 100%;
	max-width: 400px;
}

/* ─────────────────────────────────────────
   Alerts
───────────────────────────────────────── */
[id*=divErrormsg] {
	display: none;
}

[id*=divMessage] {
	display: none;
}

/* ─────────────────────────────────────────
   Property detail modal
───────────────────────────────────────── */
@media (min-width: 992px) {
	.modal-dialog.modal-1200 {
		max-width: 1200px;
	}
}

textarea.legalbox {
	max-height: 140px;
	width: 100% !important;
	overflow-y: auto;
	font-size: .8rem;
}

.pd-card {
	padding: .45rem .7rem;
	border-radius: var(--radius) !important;
}

.pd-card h6 {
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--text-subtle);
	margin-bottom: .4rem;
}

.pd-form .form-group {
	margin-bottom: .2rem;
}

.pd-form .input-group-text {
	padding: .125rem .4rem;
	font-size: .78rem;
}

.pd-form .form-control-sm {
	font-size: .78rem;
	height: calc(1.5em + .4rem + 2px);
}

.pd-form textarea.form-control-sm {
	height: auto;
}

/* ─────────────────────────────────────────
   Toast notifications
───────────────────────────────────────── */
.toast-center-wrap {
	position: fixed;
	top: -9999px;
	left: -9999px;
	transform: translateX(-50%);
	z-index: 1080;
	width: 500px;
	max-width: 92vw;
	pointer-events: none;
}

.toast-center-wrap:has(.toast.show) {
	top: 18%;
	left: 50%;
	pointer-events: auto;
}

@media (max-width: 767.98px) {
	.toast-center-wrap:has(.toast.show) {
		top: auto;
		bottom: 1.25rem;
		left: 50%;
		width: 92vw;
	}
}

.toast.toast-lg {
	pointer-events: auto;
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.toast-header.toast-hdr {
	border-bottom: 0;
	padding: .75rem 1rem;
}

.toast-body.toast-body-lg {
	font-size: 1rem;
	padding: .875rem 1rem;
}

.toast-actions {
	display: flex;
	gap: .5rem;
	margin-top: .65rem;
}

.toast .btn {
	border-radius: var(--radius);
}

@keyframes toastIn {
	0% {
		opacity: 0;
		transform: translateY(-10px) scale(.97);
	}

	60% {
		opacity: 1;
		transform: translateY(0) scale(1.01);
	}

	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.toast-animate-in {
	animation: toastIn 220ms ease-out;
}
/* ─────────────────────────────────────────
   Bid row pulse
───────────────────────────────────────── */
@keyframes bidPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(40,167,69,.38);
	}

	100% {
		box-shadow: 0 0 0 12px rgba(40,167,69,0);
	}
}

.bid-highlight {
	position: relative;
	animation: bidPulse 900ms ease-out;
	border-radius: var(--radius);
}

/* ─────────────────────────────────────────
   Mobile topbar
───────────────────────────────────────── */
.mobile-topbar {
	display: none;
	align-items: center;
	gap: .65rem;
	padding: .45rem .75rem;
	background: var(--bg-card);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 1030;
	box-shadow: var(--shadow-xs);
}

.mobile-topbar .mobile-brand img {
	height: 50px;
	width: auto;
	display: block;
}

/* Sidebar overlay */
.sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.40);
	z-index: 1035;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

/* ─────────────────────────────────────────
   Responsive - tablets / small desktop
───────────────────────────────────────── */
@media (max-width: 991.98px) {

	.mobile-topbar {
		display: flex;
	}

	.layout {
		display: block;
	}

	.sidebar {
		position: fixed;
		left: 0;
		top: 0;
		height: 100vh;
		transform: translateX(-104%);
		transition: transform .22s ease;
		z-index: 1040;
		box-shadow: 4px 0 20px rgba(0,0,0,.20);
	}

	.layout.nav-open .sidebar {
		transform: translateX(0);
	}

	.layout.nav-open .sidebar-overlay {
		display: block;
	}

	.main-content, .rightheader {
		margin-left: 0 !important;
		padding: 12px 16px 28px;
	}

	.header {
		flex-wrap: wrap;
		gap: .65rem;
		align-items: flex-start;
		padding: 14px 0 12px;
	}
}

/* ─────────────────────────────────────────
   RESPONSIVE TABLES  (mobile card-stack)
   < 768px  → stacked card rows
   768–992px → horizontal scroll
───────────────────────────────────────── */
.tbl-responsive-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {

	/* Visually hide thead (keep accessible) */
	.tbl-card-mobile thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.tbl-card-mobile,
	.tbl-card-mobile tbody,
	.tbl-card-mobile tr,
	.tbl-card-mobile td {
		display: block;
		width: 100%;
	}

	/* Each row → card */
	.tbl-card-mobile tr {
		background: var(--bg-card);
		border: 1px solid var(--border-strong);
		border-radius: var(--radius-lg);
		margin-bottom: .55rem;
		padding: .4rem .65rem;
		box-shadow: var(--shadow-xs);
	}

	.tbl-card-mobile tr:nth-child(odd),
	.tbl-card-mobile tr:nth-child(even) {
		background: var(--bg-card);
	}

	.tbl-card-mobile tr:hover {
		background: var(--row-hover);
	}

	/* Header row hidden - labels come from JS data-label */
	.tbl-card-mobile tr.headerrow {
		display: none;
	}

	/* Each cell: label on left, value on right */
	.tbl-card-mobile td {
		display: flex;
		align-items: flex-start;
		gap: .5rem;
		padding: .28rem 0;
		border: none;
		border-bottom: 1px solid var(--border);
		font-size: .8rem;
		min-height: 1.7rem;
	}

	.tbl-card-mobile td:last-child {
		border-bottom: none;
	}

	.tbl-card-mobile td::before {
		content: attr(data-label);
		font-weight: 600;
		font-size: .67rem;
		color: var(--text-subtle);
		text-transform: uppercase;
		letter-spacing: .05em;
		min-width: 100px;
		flex-shrink: 0;
		padding-top: .1rem;
	}

	.tbl-card-mobile td[data-label=""]::before {
		display: none;
	}

	/* Props table tweaks */
	#ctl00_ContentPlaceHolder_tblShowProps td[data-label="Watch"] {
		border-bottom: 2px solid rgba(16,185,129,.25);
		padding-bottom: .4rem;
	}

	#ctl00_ContentPlaceHolder_tblShowProps td[data-label="Value"] {
		font-weight: 700;
	}

	#ctl00_ContentPlaceHolder_tblShowProps td[data-label="Pre-bid"] .btn,
	#ctl00_ContentPlaceHolder_tblShowProps td[data-label=""] .btn {
		width: 100%;
		margin-top: .2rem;
	}

	.tbl-card-mobile td.prebid-hidden {
		display: none !important;
	}

	.tbl-card-mobile td.prebid {
		display: flex !important;
	}
}

@media (max-width: 767.98px) {

	/* Make sure the ::before label never intercepts clicks */
	.tbl-card-mobile td::before {
		pointer-events: none;
	}

	/* Buttons inside cards need to be explicitly clickable */
	.tbl-card-mobile td input[type="submit"],
	.tbl-card-mobile td input[type="button"],
	.tbl-card-mobile td button {
		position: relative;
		z-index: 1;
		pointer-events: auto;
	}

	/* Watch button cell - give it enough room, no clipping */
	.tbl-card-mobile td:has(input.watch-toggle) {
		overflow: visible;
	}

	/* Pre-bid button cell full width so it's easy to tap */
	.tbl-card-mobile td[class*="noprebid_"] input,
	.tbl-card-mobile td.prebid input[type="submit"] {
		width: 100%;
		min-height: 38px; /* comfortable tap target */
	}
}

.badge {
	display: inline-block;
	padding: .25em .4em 0;
	font-size: 75%;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	vertical-align: baseline;
	border-radius: .25rem;
	transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* ── Footer design tokens ── */
:root {
	--ia-black: #000000;
	--ia-gold: #c8973a;
	--ia-gold-l: #e8b558;
	--ia-muted: #8ea9c4;
	--ia-text: #d4e4f4;
	--ia-border: rgba(200,151,58,0.22);
	--ia-font: 'Segoe UI', system-ui, sans-serif;
}

/* ── Footer shell ── */
.ia-footer {
	background: var(--ia-black);
	color: var(--ia-text);
	font-family: var(--ia-font);
	font-size: 0.8rem;
	border-top: 3px solid var(--ia-gold);
	width: 100%;
	flex-shrink: 0;
	position: relative;
	z-index: 10;
	margin-top: 0;
}

/* ── Three-column row ── */
.ia-footer__bottom {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: 1300px;
	margin: 0 auto;
	padding: 1rem 2rem;
	min-height: 0;
	max-height: 200px;
	box-sizing: border-box;
}

/* ── Each column ── */
.ia-footer__col {
	flex: 1 1 0;
	min-width: 33%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.3rem;
}

/* Col 3 aligns links to the right on desktop */
.ia-footer__col:last-child {
	align-items: flex-end;
}

/* ── Logo ── */
.ia-footer__logo {
	height: auto;
	width: 35%;
	display: block;
	margin-bottom: 0.3rem;
}

/* ── Tagline ── */
.ia-footer__tagline {
	color: var(--ia-muted);
	line-height: 1.45;
	margin: 0;
	font-size: 0.75rem;
}

/* ── Copyright ── */
.ia-footer__copy {
	color: var(--ia-muted);
	font-size: 0.75rem;
	display: block;
	margin-bottom: 0.25rem;
}

/* ── Contact links ── */
.ia-footer__contact a {
	display: block;
	color: var(--ia-gold-l);
	text-decoration: none;
	font-size: 0.78rem;
	line-height: 1.6;
	transition: color 0.18s;
}

.ia-footer__contact a:hover {
	color: #fff;
}

/* ── Legal nav ── */
.ia-footer__legal-links {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.25rem;
}

.ia-footer__legal-links a {
	color: var(--ia-muted);
	text-decoration: none;
	font-size: 0.75rem;
	transition: color 0.18s;
	white-space: nowrap;
}

.ia-footer__legal-links a:hover {
	color: var(--ia-gold-l);
}

/* ── Mobile: stack to single column ── */
@media (max-width: 767px) {
	.ia-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		max-height: none;
		padding: 1.25rem 1.25rem;
		gap: 1rem;
	}

	.ia-footer__col:last-child {
		align-items: flex-start;
	}

	.ia-footer__legal-links {
		align-items: flex-start;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.4rem 1rem;
	}
}
/* ============================================================
   LEGAL PAGES - Shared styles
   Add to Auctions.css or your Site.css
   ============================================================ */

.legal-page {
	max-width: 860px;
	margin: 0 auto;
	padding: 2rem 1.5rem 3rem;
}

/* ── Page header ── */
.legal-page__header {
	margin-bottom: 2rem;
	padding-bottom: 1rem;
	border-bottom: 2px solid var(--border);
}

.legal-page__header .page-title {
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 0.25rem;
}

.legal-page__header .page-desc {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin: 0;
}

/* ── Body text ── */
.legal-page__body {
	color: var(--text);
	line-height: 1.75;
	font-size: 0.9rem;
}

.legal-page__body p {
	margin-bottom: 1rem;
}

/* ── Section headings ── */
.legal-page__body h2 {
	font-size: 1rem;
	font-weight: 700;
	color: var(--forest-700);
	margin: 2rem 0 0.6rem;
	padding-bottom: 0.3rem;
	border-bottom: 1px solid var(--border);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* ── Lists ── */
.legal-page__body ul {
	margin: 0.5rem 0 1rem 1.25rem;
	padding: 0;
}

.legal-page__body ul li {
	margin-bottom: 0.4rem;
	color: var(--text);
}

/* ── Links ── */
.legal-page__body a {
	color: var(--forest-700);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.15s;
}

.legal-page__body a:hover {
	color: var(--accent);
}

/* ── Contact block ── */
.legal-page__contact {
	background: var(--bg-muted);
	border: 1px solid var(--border);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	margin: 1.5rem 0;
	font-size: 0.875rem;
}

.legal-page__contact p {
	margin: 0;
	line-height: 1.8;
}

/* ── Responsive ── */
@media (max-width: 767px) {
	.legal-page {
		padding: 1.25rem 1rem 2rem;
	}

	.legal-page__header .page-title {
		font-size: 1.3rem;
	}

	.legal-page__body {
		font-size: 0.875rem;
	}
}

.fancybox-title-float-wrap {
	position: absolute;
	top: 0;
	right: 50%;
	margin-bottom: -35px;
	z-index: 8050;
	text-align: center;
}


/* ─────────────────────────────────────────
   Horizontal-scroll table wrapper
───────────────────────────────────────── */
.tbl-scroll-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 4px;
	/* Scroll-shadow hint on right/left edges */
	background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)), linear-gradient(to right, rgba(255,255,255,0), #fff 70%) 100% 0, linear-gradient(to right, rgba(0,0,0,0.06), rgba(0,0,0,0)), linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.06)) 100% 0;
	background-repeat: no-repeat;
	background-color: #fff;
	background-size: 40px 100%, 40px 100%, 12px 100%, 12px 100%;
	background-attachment: local, local, scroll, scroll;
}

/* Remove shadow at mobile breakpoint (card-stack takes over) */
@media (max-width: 575px) {
	.tbl-scroll-wrap {
		background: none;
		overflow-x: visible;
	}
}

/* ─────────────────────────────────────────
   Mobile card-stack  (575px breakpoint)
───────────────────────────────────────── */
@media (max-width: 575px) {

	/* Visually hide header row, keep it for screen readers */
	.tbl-scroll-wrap table .headerrow {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	/* Each data row becomes a card */
	.tbl-scroll-wrap table tbody tr {
		display: block;
		position: relative;
		background: var(--bg-card, #fff);
		border: 1px solid var(--border, #E5E7EB);
		border-radius: 6px;
		margin-bottom: .6rem;
		padding: .4rem .7rem;
	}

	/* Each cell: label (::before) + value side-by-side */
	.tbl-scroll-wrap table tbody td {
		display: flex;
		align-items: flex-start;
		gap: .5rem;
		padding: .25rem 0;
		border: none;
		border-bottom: 1px solid var(--border, #E5E7EB);
		font-size: .8rem;
		width: 100% !important;
		white-space: normal;
		text-align: left !important;
		box-sizing: border-box;
	}

	.tbl-scroll-wrap table tbody td:last-child {
		border-bottom: none;
	}

	/* Label from data-label attribute (stamped by JS) */
	.tbl-scroll-wrap table tbody td::before {
		content: attr(data-label);
		font-weight: 600;
		font-size: .67rem;
		color: var(--text-subtle, #6B7280);
		text-transform: uppercase;
		letter-spacing: .05em;
		min-width: 100px;
		flex-shrink: 0;
		padding-top: .15rem;
	}

	/* Buttons inside cards go full-width for easy tapping */
	.tbl-scroll-wrap table tbody td .btn,
	.tbl-scroll-wrap table tbody td input[type="button"],
	.tbl-scroll-wrap table tbody td input[type="submit"] {
		width: 100%;
		min-height: 36px;
	}

	/* First hidden-field column: collapse to nothing */
	.tbl-scroll-wrap table tbody td:first-child:empty,
	.tbl-scroll-wrap table .hidden-col {
		display: none !important;
	}

	/* Reset min-width on tables (they were set for horizontal scroll) */
	.tbl-scroll-wrap table {
		min-width: 0 !important;
		font-size: .8rem;
	}

	/* Reset display contexts so block/flex work */
	.tbl-scroll-wrap table,
	.tbl-scroll-wrap table thead,
	.tbl-scroll-wrap table tbody,
	.tbl-scroll-wrap table tr,
	.tbl-scroll-wrap table th,
	.tbl-scroll-wrap table td {
		display: block;
		width: 100%;
	}
}

/* ─────────────────────────────────────────
   Bid Modal 
───────────────────────────────────────── */
.bid-modal-info {
	font-size: .85rem;
}

.bid-info-row {
	display: flex;
	justify-content: space-between;
	padding: 2px 0;
	border-bottom: 1px solid #f0f0f0;
}

.bid-info-label {
	font-weight: 600;
	color: #6c757d;
}

.bid-info-value {
	text-align: right;
}

/* ─────────────────────────────────────────
   Sortable column headers  (Auctions.aspx)
───────────────────────────────────────── */
.sort-header {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

.sort-header:hover {
	text-decoration: underline;
	color: inherit;
}

.sort-indicator {
	display: inline-block;
	margin-left: 4px;
	font-size: .75em;
	opacity: .75;
}

/* ─────────────────────────────────────────
   Property search bar  (Auctions.aspx)
───────────────────────────────────────── */
.props-search-bar {
	gap: .5rem;
}

.props-search-input-group {
	max-width: 480px;
	min-width: 220px;
	flex: 1 1 220px;
}

.props-search-select {
	max-width: 200px;
	border-right: 0;
	border-radius: .2rem 0 0 .2rem !important;
	height: 31px;
}

@media (max-width: 575.98px) {
	.props-search-bar {
		flex-direction: column;
		align-items: stretch !important;
	}

	.props-search-input-group {
		flex: 1 1 100%;
		max-width: 100%;
		flex-direction: column;
	}

	.props-search-input-group .input-group-prepend,
	.props-search-input-group .input-group-append {
		width: 100%;
	}

	.props-search-select {
		max-width: 100%;
		width: 100%;
		border-right: 1px solid #ced4da;
		border-bottom: 0;
		border-radius: .2rem .2rem 0 0 !important;
	}

	.props-search-input-group .form-control {
		display: block !important;
		width: 100% !important;
		height: calc(1.5em + .5rem + 2px) !important;
		border-radius: 0 !important;
		border-bottom: 0;
	}

	.props-search-input-group .input-group-append .btn {
		width: 100%;
		border-radius: 0 0 .2rem .2rem !important;
	}

	.props-search-clear {
		align-self: flex-start;
	}
}

/* ─────────────────────────────────────────
   Mobile scroll hint  (Auctions.aspx props table)
───────────────────────────────────────── */
.tbl-scroll-hint {
	display: none;
}

@media (max-width: 767.98px) {
	.tbl-scroll-hint {
		display: flex;
		align-items: center;
		gap: .35rem;
		font-size: .72rem;
		color: var(--text-subtle);
		background: var(--bg-muted);
		border: 1px solid var(--border);
		border-radius: var(--radius);
		padding: .3rem .6rem;
		margin-bottom: .5rem;
		width: fit-content;
	}

	.tbl-scroll-hint svg {
		flex-shrink: 0;
		opacity: .6;
	}
}

/* ─────────────────────────────────────────
   Pagination links  (FirstRights, others)
───────────────────────────────────────── */
[id$="PageLinksTop"],
[id$="PageLinksBottom"] {
	display: block;
	padding: .5rem 0;
	font-size: .8rem;
	overflow-x: auto;
	white-space: nowrap;
}

@media (max-width: 575px) {
	[id$="PageLinksTop"],
	[id$="PageLinksBottom"] {
		white-space: normal;
		line-height: 2;
	}
}

/* ─────────────────────────────────────────
   Payments page
───────────────────────────────────────── */
.pay-wrap {
	max-width: 920px;
	margin: 0 auto;
}

.pay-card {
	border: 0 !important;
	box-shadow: 0 .4rem 1rem rgba(0,0,0,.08) !important;
	border-radius: .75rem !important;
}

.pay-card .card-header {
	background: transparent !important;
	border-bottom: 1px solid rgba(0,0,0,.06) !important;
	padding: .9rem 1.1rem !important;
}

.pay-card .card-body {
	padding: 1rem 1.1rem !important;
}

.pay-card .card-footer {
	background: transparent !important;
	border-top: 1px solid rgba(0,0,0,.06) !important;
	padding: .9rem 1.1rem !important;
}

.section-title {
	font-weight: 700;
	font-size: 1rem;
	margin: .9rem 0 .45rem;
}

.muted-help {
	color: #6c757d;
	font-size: .825rem;
}

.soft-box {
	border: 1px solid rgba(0,0,0,.08);
	border-radius: .75rem;
	padding: .85rem;
	background: #fff;
}

.soft-box .section-title {
	margin-top: 0;
}

.terms-box {
	background: #f8f9fa;
	border: 1px solid rgba(0,0,0,.06);
	border-radius: .75rem;
	padding: .75rem .85rem;
}

.table-wrap {
	border: 1px solid rgba(0,0,0,.06);
	border-radius: .75rem;
	overflow: hidden;
}

.table-wrap .table {
	margin-bottom: 0;
}

.btn-wide {
	min-height: 38px;
	font-weight: 600;
	padding: .45rem .9rem;
}

.btn-action {
	min-height: 40px;
	font-weight: 700;
	padding: .5rem .95rem;
}

/* Horizontal labels on md+; stacked on mobile */
.form-group.row {
	margin-bottom: .5rem;
}

.form-group.row > label {
	margin-bottom: 0;
}

@media (min-width: 768px) {
	.form-group.row > label {
		text-align: right;
		padding-top: calc(.3rem + 1px);
	}
}

/* City/State/ZIP inline row */
.csz-line {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

@media (min-width: 768px) {
	.csz-line {
		flex-wrap: nowrap;
	}
}

.csz-city {
	flex: 1 1 auto;
	min-width: 180px;
}

.csz-state {
	flex: 0 0 140px;
}

.csz-zip {
	flex: 0 0 120px;
}

/* ─────────────────────────────────────────
   Account page responsive columns
───────────────────────────────────────── */
@media (max-width: 767px) {
	#frmAccounts .row > .col-6 {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

.frmAccounts input[type="text"],
#frmAccounts input[type="text"] {
	border: none !important;
	background: #e1e1e1 !important;
}

/* ─────────────────────────────────────────
   Apply page
───────────────────────────────────────── */
#frmAccounts input[readonly] {
	background-color: #e9ecef;
	cursor: not-allowed;
}

/* ─────────────────────────────────────────
   Property Details modal  (additional rules
   not already covered by .pd-* above)
───────────────────────────────────────── */
.pd-form .legalbox {
	min-height: 110px;
	max-height: 140px;
	overflow: auto;
}

#pdMapWrap .embed-responsive {
	border-radius: .5rem;
	overflow: hidden;
}

@media (max-width: 576px) {
	.pd-form .text-right {
		text-align: left !important;
	}

	.pd-form .form-group.row > .col-sm-4,
	.pd-form .form-group.row > .col-sm-8 {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.pd-form .form-group.row > .col-sm-4 {
		margin-bottom: .15rem;
	}

	#pdMapWrap .embed-responsive-4by3::before {
		padding-top: 60%;
	}
}

/* ─────────────────────────────────────────
   WatchList / FirstRights property detail modal
───────────────────────────────────────── */
@media (max-width: 575px) {
	.modal-dialog.modal-1200 {
		margin: .5rem;
		max-width: calc(100vw - 1rem);
	}

	.pd-form .form-group.row {
		display: block;
		margin-bottom: .4rem;
	}

	.pd-form .form-group.row [class*="col-sm-"] {
		max-width: 100%;
		flex: 0 0 100%;
		padding-left: 0;
		padding-right: 0;
		margin-bottom: .2rem;
	}

	.pd-form .col-sm-4.text-right {
		text-align: left !important;
		padding-right: 0 !important;
	}

	.pd-card {
		padding: .4rem .5rem;
	}

	textarea.legalbox {
		max-height: 100px;
	}
}

/* ─────────────────────────────────────────
   Registration page form - mobile stacking
───────────────────────────────────────── */
@media (max-width: 575px) {
	#ctl00_ContentPlaceHolder_divRegister .form-group.row {
		display: block;
	}

	#ctl00_ContentPlaceHolder_divRegister .form-group.row [class*="col-sm-3"] {
		max-width: 100%;
		flex: 0 0 100%;
		padding-right: 15px;
		padding-left: 15px;
		margin-bottom: .4rem;
	}

	#ctl00_ContentPlaceHolder_divRegister .col-sm-3.text-right {
		text-align: left !important;
	}

	#ctl00_ContentPlaceHolder_divRegister .border.rounded.p-3 {
		height: 200px !important;
	}

	#ctl00_ContentPlaceHolder_divRegister #ctl00_ContentPlaceHolder_btnSaveReg,
	#ctl00_ContentPlaceHolder_divRegister .col-sm-3.offset-md-3 {
		max-width: 100%;
		flex: 0 0 100%;
		margin-left: 0 !important;
	}
}
