/**
 * Brokers Inventory — CRM theme (v1.56.0)
 *
 * Public /brokersinventory/ page only (loaded after all other plugin
 * styles). Works together with includes/js/brokers-inventory-layout.js,
 * which arranges the page as: title + stat cards · search & filter
 * panel · left sidebar (Mumbai Locations, BHK) · type tabs + toolbar ·
 * table. Every rule is scoped under body.y2b-brokers-inventory.
 */

body.y2b-brokers-inventory {
	--bi-navy: #122850;
	--bi-orange: #ff6a00;
	--bi-orange-dk: #e85f00;
	--bi-orange-soft: #fff4ec;
	--bi-text: #1d2939;
	--bi-label: #344054;
	--bi-muted: #667085;
	--bi-icon: #475467;
	--bi-line: #e4e7ec;
	--bi-input: #d0d5dd;
	--bi-soft: #f9fafb;
	--bi-blue: #1d4ed8;
	--bi-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
	--bi-radius: 14px;
	background: #f5f7fb !important;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--bi-text);
}
body.y2b-brokers-inventory .y2b-dv-wrap,
body.y2b-brokers-inventory .y2b-dv-wrap button,
body.y2b-brokers-inventory .y2b-dv-wrap select,
body.y2b-brokers-inventory .y2b-dv-wrap input { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important; }

body.y2b-brokers-inventory .bi-hidden { display: none !important; }
body.y2b-brokers-inventory .y2b-public-app { max-width: 1760px !important; padding: 18px 22px 40px !important; }

/* Shared outline-button look ("buttons show border line") */
body.y2b-brokers-inventory .bi-tools button,
body.y2b-brokers-inventory .bi-tools a,
body.y2b-brokers-inventory .bi-tab {
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	height: 40px !important;
	padding: 0 14px !important;
	border: 1px solid var(--bi-input) !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--bi-label) !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	white-space: nowrap !important;
	box-shadow: none !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
body.y2b-brokers-inventory .bi-tools button:hover,
body.y2b-brokers-inventory .bi-tab:hover { background: var(--bi-soft) !important; border-color: #98a2b3 !important; }
body.y2b-brokers-inventory .bi-tools svg,
body.y2b-brokers-inventory .bi-tab svg { width: 16px !important; height: 16px !important; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* Panels */
body.y2b-brokers-inventory .bi-panel {
	background: #fff;
	border: 1px solid var(--bi-line);
	border-radius: var(--bi-radius);
	box-shadow: var(--bi-shadow);
}

/* =====================================================================
   1. Title + stat cards
   ===================================================================== */
body.y2b-brokers-inventory .bi-top { display: flex; align-items: center; gap: 20px; margin: 4px 0 16px; }
body.y2b-brokers-inventory .bi-title { flex: 0 0 auto; min-width: 300px; }
body.y2b-brokers-inventory .bi-title h1 { margin: 0 0 4px; font-size: 32px; line-height: 1.15; font-weight: 800; color: var(--bi-navy); letter-spacing: -.02em; }
body.y2b-brokers-inventory .bi-title p { margin: 0 0 10px; font-size: 15px; color: var(--bi-muted); }
body.y2b-brokers-inventory .bi-stats { flex: 1 1 auto; min-width: 0; }

/* Last Updated (under subtitle) */
body.y2b-brokers-inventory .y2b-dv-last-updated {
	display: inline-flex !important; align-items: center !important; gap: 7px !important;
	height: auto !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important;
}
body.y2b-brokers-inventory .y2b-dv-last-updated > svg { width: 15px !important; height: 15px !important; padding: 0 !important; background: none !important; box-shadow: none !important; stroke: var(--bi-icon) !important; fill: none !important; }
body.y2b-brokers-inventory .y2b-dv-last-updated > div { display: flex !important; align-items: baseline; gap: 5px; }
body.y2b-brokers-inventory .y2b-dv-last-updated-label { font-size: 12.5px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--bi-muted) !important; }
body.y2b-brokers-inventory .y2b-dv-last-updated-label::after { content: ":"; }
body.y2b-brokers-inventory .y2b-dv-last-updated-value { font-size: 12.5px !important; font-weight: 600 !important; color: var(--bi-label) !important; white-space: nowrap; }
body.y2b-brokers-inventory .y2b-dv-lu-time { margin-left: 3px; }
body.y2b-brokers-inventory .y2b-dv-lu-time::before { content: "\00b7"; margin-right: 3px; color: #98a2b3; }

/* Stat cards */
body.y2b-brokers-inventory .y2b-dash-cards { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 12px !important; margin: 0 !important; }
body.y2b-brokers-inventory .y2b-dash-card {
	display: flex !important; align-items: center !important; gap: 14px !important;
	min-height: 84px; padding: 14px 16px !important;
	border: 1px solid var(--bi-line) !important; border-radius: var(--bi-radius) !important;
	box-shadow: var(--bi-shadow) !important; text-align: left !important;
	flex-wrap: wrap; align-content: center;
}
body.y2b-brokers-inventory .y2b-dash-card:hover { box-shadow: 0 4px 12px rgba(16, 24, 40, .08) !important; transform: none !important; }
body.y2b-brokers-inventory .y2b-dash-card-icon {
	width: 52px !important; height: 52px !important; min-width: 52px; border-radius: 50% !important;
	display: inline-flex !important; align-items: center; justify-content: center; box-shadow: none !important;
	grid-row: span 2;
}
body.y2b-brokers-inventory .y2b-dash-card-icon svg { width: 24px !important; height: 24px !important; fill: none !important; stroke-width: 2 !important; }
body.y2b-brokers-inventory .y2b-dash-card { display: grid !important; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px !important; row-gap: 0 !important; }
body.y2b-brokers-inventory .y2b-dash-card-count { font-size: 24px !important; font-weight: 800 !important; color: var(--bi-navy) !important; line-height: 1.1; align-self: end; }
body.y2b-brokers-inventory .y2b-dash-card-label { font-size: 13.5px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--bi-muted) !important; align-self: start; }
body.y2b-brokers-inventory .y2b-dash-card-total      { background: #fff !important; }
body.y2b-brokers-inventory .y2b-dash-card-rent       { background: linear-gradient(135deg, #eef4ff 0, #fff 75%) !important; }
body.y2b-brokers-inventory .y2b-dash-card-sale       { background: linear-gradient(135deg, #edfbf2 0, #fff 75%) !important; }
body.y2b-brokers-inventory .y2b-dash-card-commercial { background: linear-gradient(135deg, #fff3ea 0, #fff 75%) !important; }
body.y2b-brokers-inventory .y2b-dash-card-pg         { background: linear-gradient(135deg, #f4efff 0, #fff 75%) !important; }
body.y2b-brokers-inventory .y2b-dash-card-total .y2b-dash-card-icon      { background: #f2f4f7 !important; }
body.y2b-brokers-inventory .y2b-dash-card-rent .y2b-dash-card-icon       { background: #dbe7ff !important; }
body.y2b-brokers-inventory .y2b-dash-card-sale .y2b-dash-card-icon       { background: #d3f4df !important; }
body.y2b-brokers-inventory .y2b-dash-card-commercial .y2b-dash-card-icon { background: #ffe1cc !important; }
body.y2b-brokers-inventory .y2b-dash-card-pg .y2b-dash-card-icon         { background: #e6dcff !important; }
body.y2b-brokers-inventory .y2b-dash-card-total .y2b-dash-card-icon svg      { stroke: var(--bi-navy) !important; }
body.y2b-brokers-inventory .y2b-dash-card-rent .y2b-dash-card-icon svg       { stroke: #2563eb !important; }
body.y2b-brokers-inventory .y2b-dash-card-sale .y2b-dash-card-icon svg       { stroke: #16a34a !important; }
body.y2b-brokers-inventory .y2b-dash-card-commercial .y2b-dash-card-icon svg { stroke: #ea580c !important; }
body.y2b-brokers-inventory .y2b-dash-card-pg .y2b-dash-card-icon svg         { stroke: #7c3aed !important; }
body.y2b-brokers-inventory .y2b-dash-card.y2b-dash-active { border-color: var(--bi-line) !important; box-shadow: var(--bi-shadow) !important; }

/* =====================================================================
   2. Search + filter panel
   ===================================================================== */
body.y2b-brokers-inventory .bi-searchpanel { display: flex; align-items: flex-end; gap: 16px; padding: 14px 16px; margin-bottom: 16px; }
body.y2b-brokers-inventory .bi-searchbox {
	flex: 0 0 34%; display: flex; gap: 10px; align-items: center;
	padding: 8px; border: 1px solid var(--bi-line); border-radius: 12px; background: #fff; align-self: center;
}
body.y2b-brokers-inventory .y2b-dv-header-search-wrap { flex: 1 1 auto !important; position: relative !important; min-width: 0 !important; max-width: none !important; width: auto !important; }
body.y2b-brokers-inventory .y2b-dv-search-input {
	width: 100% !important; height: 42px !important; padding-left: 40px !important;
	border: 1px solid var(--bi-input) !important; border-radius: 10px !important;
	background: #fff !important; color: var(--bi-text) !important; font-size: 14px !important;
	box-shadow: none !important; -webkit-appearance: none; appearance: none;
}
body.y2b-brokers-inventory .y2b-dv-search-input::placeholder { color: #98a2b3 !important; }
body.y2b-brokers-inventory .y2b-dv-search-input:focus { border-color: var(--bi-navy) !important; box-shadow: 0 0 0 3px rgba(18, 40, 80, .10) !important; outline: none !important; }
body.y2b-brokers-inventory .y2b-dv-search-icon { stroke: #667085 !important; }
body.y2b-brokers-inventory .bi-search-btn {
	flex: 0 0 auto; height: 42px; padding: 0 26px; border: 0; border-radius: 10px;
	background: var(--bi-orange); color: #fff; font-size: 14.5px; font-weight: 700; cursor: pointer;
	box-shadow: 0 2px 6px rgba(255, 106, 0, .25);
}
body.y2b-brokers-inventory .bi-search-btn:hover { background: var(--bi-orange-dk); }

body.y2b-brokers-inventory .bi-filters { flex: 1 1 auto; display: flex; flex-wrap: wrap; gap: 12px; min-width: 0; }
body.y2b-brokers-inventory .bi-filters .y2b-dv-fg { flex: 1 1 140px !important; min-width: 130px !important; max-width: 240px; position: relative; margin: 0 !important; }
body.y2b-brokers-inventory .bi-filters .y2b-dv-fg label {
	display: block !important; margin: 0 0 6px !important;
	font-size: 13.5px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important;
	color: var(--bi-text) !important;
}
body.y2b-brokers-inventory .y2b-fl-ic { display: none !important; }
body.y2b-brokers-inventory .bi-filters select,
body.y2b-brokers-inventory .bi-filters .y2b-dv-budget-btn {
	width: 100% !important; height: 42px !important; padding: 0 30px 0 12px !important;
	border: 1px solid var(--bi-input) !important; border-radius: 10px !important;
	background-color: #fff !important; color: var(--bi-text) !important;
	font-size: 14px !important; font-weight: 500 !important; box-shadow: none !important;
}
body.y2b-brokers-inventory .bi-filters .bi-has-ic select,
body.y2b-brokers-inventory .bi-filters .bi-has-ic .y2b-dv-budget-btn { padding-left: 38px !important; }
body.y2b-brokers-inventory .bi-fg-ic { position: absolute; left: 12px; bottom: 12px; width: 18px; height: 18px; pointer-events: none; z-index: 1; }
body.y2b-brokers-inventory .bi-fg-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--bi-label); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.y2b-brokers-inventory .y2b-dv-budget-btn { display: inline-flex !important; align-items: center !important; justify-content: space-between !important; padding-right: 12px !important; }
body.y2b-brokers-inventory .y2b-dv-budget-btn::before { content: "\20B9"; position: absolute; left: 15px; font-weight: 700; color: var(--bi-label); }
body.y2b-brokers-inventory .y2b-dv-budget-fg .y2b-dv-budget-btn { position: relative; padding-left: 34px !important; }
body.y2b-brokers-inventory .y2b-dv-budget-btn svg { stroke: var(--bi-icon) !important; width: 16px !important; height: 16px !important; }
body.y2b-brokers-inventory .bi-filters select:focus,
body.y2b-brokers-inventory .bi-filters .y2b-dv-budget-btn:focus { border-color: var(--bi-navy) !important; box-shadow: 0 0 0 3px rgba(18, 40, 80, .10) !important; outline: none !important; }

/* =====================================================================
   3. Main grid: sidebar + content
   ===================================================================== */
body.y2b-brokers-inventory .bi-main { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
body.y2b-brokers-inventory .bi-side { padding: 14px 12px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow-y: auto; }
body.y2b-brokers-inventory .bi-side-h {
	display: flex; align-items: center; gap: 8px; margin: 4px 6px 10px; font-size: 16px; font-weight: 700; color: var(--bi-navy);
}
body.y2b-brokers-inventory .bi-side-h svg { width: 18px; height: 18px; fill: var(--bi-navy); stroke: #fff; stroke-width: 1.6; }
body.y2b-brokers-inventory .bi-side-h:not(:first-child) { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--bi-line); }
body.y2b-brokers-inventory .bi-side-h:not(:first-child) svg { fill: none; stroke: var(--bi-navy); stroke-width: 2; }

/* Sidebar list rows: location tabs + BHK chips */
body.y2b-brokers-inventory .bi-side .y2b-loctabs,
body.y2b-brokers-inventory .bi-side .y2b-dash-chips {
	display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important;
	gap: 2px !important; overflow: visible !important; padding: 0 !important; margin: 0 !important;
}
body.y2b-brokers-inventory .bi-side .y2b-loctab,
body.y2b-brokers-inventory .bi-side .y2b-dash-chip {
	display: flex !important; align-items: center !important; gap: 10px !important;
	width: 100% !important; min-width: 0 !important; height: 36px !important; flex: 0 0 auto !important;
	padding: 0 8px !important; margin: 0 !important;
	background: transparent !important; border: 0 !important; border-radius: 8px !important; box-shadow: none !important;
	color: var(--bi-text) !important; font-size: 14px !important; font-weight: 500 !important; text-align: left !important;
}
body.y2b-brokers-inventory .bi-side .y2b-loctab::before,
body.y2b-brokers-inventory .bi-side .y2b-dash-chip::before {
	content: ""; flex: 0 0 16px; width: 16px; height: 16px; border: 1.5px solid #98a2b3; border-radius: 4px; background: #fff; box-sizing: border-box;
}
body.y2b-brokers-inventory .bi-side .y2b-loctab-icon,
body.y2b-brokers-inventory .bi-side .y2b-dash-chip-icon { display: none !important; }
body.y2b-brokers-inventory .bi-side .y2b-loctab-label,
body.y2b-brokers-inventory .bi-side .y2b-dash-chip-label { flex: 1 1 auto; color: var(--bi-text) !important; font-size: 14px !important; font-weight: 500 !important; }
body.y2b-brokers-inventory .bi-side .y2b-loctab-count,
body.y2b-brokers-inventory .bi-side .y2b-dash-chip-count {
	margin-left: auto; background: #f2f4f7 !important; color: var(--bi-label) !important;
	border-radius: 999px !important; padding: 2px 9px !important; font-size: 12px !important; font-weight: 600 !important; min-width: 0 !important;
}
body.y2b-brokers-inventory .bi-side .y2b-loctab:hover,
body.y2b-brokers-inventory .bi-side .y2b-dash-chip:hover { background: var(--bi-soft) !important; }
body.y2b-brokers-inventory .bi-side .y2b-loctab.y2b-loctab-active,
body.y2b-brokers-inventory .bi-side .y2b-dash-chip.y2b-dash-active { background: var(--bi-orange-soft) !important; }
body.y2b-brokers-inventory .bi-side .y2b-loctab.y2b-loctab-active::before,
body.y2b-brokers-inventory .bi-side .y2b-dash-chip.y2b-dash-active::before {
	border-color: var(--bi-orange); background: var(--bi-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
body.y2b-brokers-inventory .bi-side .y2b-loctab.y2b-loctab-active .y2b-loctab-label,
body.y2b-brokers-inventory .bi-side .y2b-dash-chip.y2b-dash-active .y2b-dash-chip-label { color: var(--bi-orange-dk) !important; font-weight: 700 !important; }
body.y2b-brokers-inventory .bi-side .y2b-loctab.y2b-loctab-active .y2b-loctab-count,
body.y2b-brokers-inventory .bi-side .y2b-dash-chip.y2b-dash-active .y2b-dash-chip-count { background: #ffe1cc !important; color: var(--bi-orange-dk) !important; }

/* Content panel */
body.y2b-brokers-inventory .bi-content { padding: 14px 14px 10px; min-width: 0; }

/* Toolbar: type tabs + tools */
body.y2b-brokers-inventory .bi-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
body.y2b-brokers-inventory .bi-tabs,
body.y2b-brokers-inventory .bi-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body.y2b-brokers-inventory .bi-tab .bi-tab-c { font-weight: 600; color: var(--bi-muted); }
body.y2b-brokers-inventory .bi-tab[data-bi-type="Rent"] svg { color: #2563eb; }
body.y2b-brokers-inventory .bi-tab[data-bi-type="Sell"] svg { color: #16a34a; }
body.y2b-brokers-inventory .bi-tab[data-bi-type="Commercial"] svg { color: #ea580c; }
body.y2b-brokers-inventory .bi-tab[data-bi-type="PG"] svg { color: #7c3aed; }
body.y2b-brokers-inventory .bi-tab[data-bi-type=""] svg { color: var(--bi-orange); }
body.y2b-brokers-inventory .bi-tab.bi-tab-active { background: var(--bi-orange-soft) !important; border-color: #ffb27a !important; color: var(--bi-orange-dk) !important; }
body.y2b-brokers-inventory .bi-tab.bi-tab-active .bi-tab-c { color: var(--bi-orange-dk); }

/* Tools */
body.y2b-brokers-inventory .y2b-dv-key-available-icon { display: inline-flex !important; width: auto !important; height: auto !important; background: none !important; box-shadow: none !important; color: #d97706 !important; }
body.y2b-brokers-inventory .y2b-dv-key-available-icon svg { width: 16px !important; height: 16px !important; fill: currentColor !important; stroke: none !important; }
body.y2b-brokers-inventory .y2b-dv-key-available-count { color: var(--bi-navy) !important; font-weight: 700 !important; }
body.y2b-brokers-inventory .y2b-dv-key-available-btn.y2b-dv-key-available-active { background: #fffbeb !important; border-color: #fcd34d !important; color: #92400e !important; }
body.y2b-brokers-inventory .y2b-dv-key-available-clear.y2b-dv-clear-visible,
body.y2b-brokers-inventory .y2b-dv-my-favourites-clear.y2b-dv-clear-visible {
	display: inline-flex !important; align-items: center; justify-content: center;
	width: 18px !important; height: 18px !important; border-radius: 50% !important;
	background: #f2f4f7 !important; color: var(--bi-muted) !important; margin-left: 2px;
}
body.y2b-brokers-inventory .y2b-dv-key-available-clear svg,
body.y2b-brokers-inventory .y2b-dv-my-favourites-clear svg { width: 10px !important; height: 10px !important; stroke: currentColor !important; stroke-width: 3 !important; }
body.y2b-brokers-inventory .y2b-dv-key-available-clear:hover,
body.y2b-brokers-inventory .y2b-dv-my-favourites-clear:hover { background: #fee4e2 !important; color: #d92d20 !important; }
body.y2b-brokers-inventory .y2b-dv-my-favourites-btn > svg { stroke: #e11d48 !important; }
body.y2b-brokers-inventory .y2b-dv-my-favourites-count { background: #f2f4f7 !important; color: var(--bi-navy) !important; border-radius: 999px !important; min-width: 20px; padding: 1px 7px !important; font-size: 12px !important; font-weight: 700 !important; text-align: center; }
body.y2b-brokers-inventory .y2b-dv-my-favourites-btn.y2b-dv-my-favourites-active { background: #fff1f3 !important; border-color: #fda4af !important; color: #be123c !important; }
body.y2b-brokers-inventory .bi-tools .y2b-dv-reset-btn { color: #b42318 !important; }
body.y2b-brokers-inventory .bi-tools .y2b-dv-refresh-btn { color: var(--bi-blue) !important; border-color: #b2ccff !important; }
body.y2b-brokers-inventory .bi-tools .y2b-dv-refresh-btn:hover { background: #eff4ff !important; }
body.y2b-brokers-inventory .bi-tools .y2b-dv-post-property-btn {
	background: var(--bi-orange) !important; border-color: var(--bi-orange) !important; color: #fff !important;
	box-shadow: 0 2px 6px rgba(255, 106, 0, .25) !important;
}
body.y2b-brokers-inventory .bi-tools .y2b-dv-post-property-btn:hover { background: var(--bi-orange-dk) !important; }

/* Sub header: count + sort */
body.y2b-brokers-inventory .bi-subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
body.y2b-brokers-inventory .y2b-dv-count {
	background: transparent !important; border: 0 !important; padding: 0 !important;
	color: var(--bi-text) !important; font-size: 14.5px !important; font-weight: 500 !important;
}
body.y2b-brokers-inventory .bi-sort { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; margin: 0 !important; flex: 0 0 auto !important; max-width: none !important; }
body.y2b-brokers-inventory .bi-sort label { display: inline !important; margin: 0 !important; font-size: 13.5px !important; font-weight: 500 !important; color: var(--bi-label) !important; text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap; }
body.y2b-brokers-inventory .bi-sort label::after { content: ":"; }
body.y2b-brokers-inventory .bi-sort select { height: 38px !important; min-width: 170px; padding: 0 30px 0 12px !important; border: 1px solid var(--bi-input) !important; border-radius: 10px !important; background-color: #fff !important; font-size: 14px !important; color: var(--bi-text) !important; box-shadow: none !important; }

/* Active filters + sub-location tabs */
body.y2b-brokers-inventory #y2b-dv-active-filters { padding: 0 0 10px !important; margin: 0 !important; border: 0 !important; background: none !important; }
body.y2b-brokers-inventory .y2b-dv-active-filter-pill { background: #f2f4f7 !important; border: 1px solid var(--bi-line) !important; color: var(--bi-label) !important; border-radius: 999px !important; font-weight: 500 !important; }
body.y2b-brokers-inventory .y2b-subloctabs-wrap { margin: 0 0 10px !important; }
body.y2b-brokers-inventory .y2b-subloctabs { flex-wrap: wrap !important; overflow: visible !important; gap: 6px !important; }
body.y2b-brokers-inventory .y2b-subloctab { border: 1px solid var(--bi-input) !important; background: #fff !important; border-radius: 999px !important; color: var(--bi-label) !important; box-shadow: none !important; }
body.y2b-brokers-inventory .y2b-subloctab.y2b-subloctab-active,
body.y2b-brokers-inventory .y2b-subloctab[aria-pressed="true"] { background: var(--bi-orange-soft) !important; border-color: #ffb27a !important; color: var(--bi-orange-dk) !important; }

/* =====================================================================
   4. Table
   ===================================================================== */
body.y2b-brokers-inventory .y2b-dv-table-wrap { border: 1px solid var(--bi-line) !important; border-radius: 12px !important; box-shadow: none !important; overflow: hidden; background: #fff !important; }
body.y2b-brokers-inventory .y2b-dv-table thead th {
	background: #f5f8ff !important; color: var(--bi-label) !important;
	border-color: var(--bi-line) !important; border-bottom: 1px solid var(--bi-line) !important;
	font-size: 12px !important; font-weight: 700 !important; letter-spacing: .03em !important; text-transform: uppercase !important;
	white-space: nowrap !important;
}
body.y2b-brokers-inventory .y2b-dv-table thead th[data-y2b-sort-key]:hover { background: #eef3ff !important; }
body.y2b-brokers-inventory .y2b-dv-table thead th.y2b-dv-sort-active { background: #eef3ff !important; color: var(--bi-navy) !important; box-shadow: inset 0 -2px 0 var(--bi-orange); }
body.y2b-brokers-inventory .y2b-dv-table tbody tr { background: #fff !important; }
body.y2b-brokers-inventory .y2b-dv-table tbody tr:hover { background: #f8faff !important; }
body.y2b-brokers-inventory .y2b-dv-table td { border-color: #eef0f3 !important; color: var(--bi-text); font-size: 13px !important; }
body.y2b-brokers-inventory .y2b-dv-fav-btn svg { stroke: #98a2b3 !important; }
body.y2b-brokers-inventory .y2b-dv-fav-btn.y2b-dv-fav-active svg { fill: #e11d48 !important; stroke: #e11d48 !important; }

/* Pills: code, type, BHK, furnishing (location stays plain text) */
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-code,
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-tag,
body.y2b-brokers-inventory .y2b-dv-table [class*="y2b-dv-bhk"] {
	display: inline-block !important; padding: 3px 8px !important; border-radius: 6px !important;
	border: 1px solid transparent !important; font-size: 12px !important; font-weight: 600 !important;
	line-height: 1.35 !important; white-space: nowrap; box-shadow: none !important;
}
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-code { background: #f2f4f7 !important; border-color: #e4e7ec !important; color: var(--bi-label) !important; }
/* Type */
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-tag-rent       { background: #eff4ff !important; border-color: #c7d7fe !important; color: #1d4ed8 !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-tag-sell       { background: #ecfdf3 !important; border-color: #abefc6 !important; color: #067647 !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-tag-commercial { background: #fff6ed !important; border-color: #fddcab !important; color: #c4320a !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-tag-pg         { background: #f4f3ff !important; border-color: #d9d6fe !important; color: #5925dc !important; }
/* Furnishing — one colour per value */
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-tag-sf { background: #fffaeb !important; border-color: #fedf89 !important; color: #b54708 !important; }   /* Semi Furnished */
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-tag-ff { background: #eff8ff !important; border-color: #b2ddff !important; color: #175cd3 !important; }   /* Fully Furnished */
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-tag-f  { background: #fdf2fa !important; border-color: #fcceee !important; color: #c11574 !important; }   /* Furnished */
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-tag-uf { background: #f2f4f7 !important; border-color: #e4e7ec !important; color: #475467 !important; }   /* Unfurnished */
/* BHK — one colour per size */
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-bhk-1rk    { background: #f2f4f7 !important; border-color: #d0d5dd !important; color: #344054 !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-bhk-1      { background: #f0f9ff !important; border-color: #b9e6fe !important; color: #026aa2 !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-bhk-1-5    { background: #ecfdff !important; border-color: #a5f0fc !important; color: #0e7090 !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-bhk-2      { background: #ecfdf3 !important; border-color: #abefc6 !important; color: #067647 !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-bhk-2-5    { background: #f0fdf9 !important; border-color: #99f6e0 !important; color: #107569 !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-bhk-3      { background: #fff1f3 !important; border-color: #fecdd6 !important; color: #c01048 !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-bhk-3-5    { background: #fdf2fa !important; border-color: #fcceee !important; color: #c11574 !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-bhk-4      { background: #f4f3ff !important; border-color: #d9d6fe !important; color: #5925dc !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-bhk-4-5    { background: #eef4ff !important; border-color: #c7d7fe !important; color: #3538cd !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-bhk-5      { background: #fef3f2 !important; border-color: #fecdca !important; color: #b42318 !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-bhk-shop   { background: #fffaeb !important; border-color: #fedf89 !important; color: #b54708 !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-bhk-office { background: #f9f5ff !important; border-color: #e9d7fe !important; color: #6941c6 !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-bhk-male   { background: #f0f9ff !important; border-color: #b9e6fe !important; color: #026aa2 !important; }
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-bhk-female { background: #fdf2fa !important; border-color: #fcceee !important; color: #c11574 !important; }
/* Location + date: plain text, no colour */
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-tag-location,
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-tag-date {
	background: transparent !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important;
	color: var(--bi-text) !important; font-weight: 400 !important; font-size: 13px !important;
}
body.y2b-brokers-inventory .y2b-dv-table .y2b-dv-price { color: var(--bi-orange-dk) !important; font-weight: 700 !important; }

/* Row buttons — bordered */
body.y2b-brokers-inventory .y2b-dv-btn-view,
body.y2b-brokers-inventory .y2b-dv-btn-share {
	display: inline-flex !important; align-items: center !important; gap: 4px !important;
	background: #fff !important; border: 1px solid #b2ccff !important; color: var(--bi-blue) !important;
	border-radius: 8px !important; font-weight: 600 !important; box-shadow: none !important;
}
body.y2b-brokers-inventory .y2b-dv-btn-view svg { stroke: var(--bi-blue) !important; }
body.y2b-brokers-inventory .y2b-dv-btn-share svg { fill: var(--bi-blue) !important; }
body.y2b-brokers-inventory .y2b-dv-btn-view:hover,
body.y2b-brokers-inventory .y2b-dv-btn-share:hover { background: #eff4ff !important; }

/* View Contact — dark green with icon */
body.y2b-brokers-inventory .y2b-dv-btn-contact,
body.y2b-brokers-inventory .y2b-dv-btn-view-contact {
	display: inline-flex !important; align-items: center !important; justify-content: center; gap: 5px !important;
	background: #166534 !important; border: 1px solid #14532d !important; color: #fff !important;
	border-radius: 8px !important; font-weight: 600 !important; font-size: 11.5px !important;
	padding: 5px 9px !important; white-space: nowrap !important; max-width: none !important;
	overflow: visible !important; width: auto !important; box-shadow: none !important; cursor: pointer;
}
body.y2b-brokers-inventory .y2b-dv-btn-contact:hover,
body.y2b-brokers-inventory .y2b-dv-btn-view-contact:hover { background: #14532d !important; }
body.y2b-brokers-inventory .y2b-vc-ic { width: 12px !important; height: 12px !important; min-width: 12px; flex: 0 0 12px !important; display: inline-block !important; }
body.y2b-brokers-inventory .y2b-dv-table td.y2b-dv-contact-cell { padding-left: 4px !important; padding-right: 4px !important; text-align: center; overflow: visible !important; }

/* Column widths (public table, 14 columns) */
body.y2b-brokers-inventory .y2b-dv-table th:nth-child(1),  body.y2b-brokers-inventory .y2b-dv-table td:nth-child(1)  { width: 3% !important; }
body.y2b-brokers-inventory .y2b-dv-table th:nth-child(2),  body.y2b-brokers-inventory .y2b-dv-table td:nth-child(2)  { width: 7% !important; }
body.y2b-brokers-inventory .y2b-dv-table th:nth-child(3),  body.y2b-brokers-inventory .y2b-dv-table td:nth-child(3)  { width: 7.5% !important; }
body.y2b-brokers-inventory .y2b-dv-table th:nth-child(4),  body.y2b-brokers-inventory .y2b-dv-table td:nth-child(4)  { width: 8% !important; }
body.y2b-brokers-inventory .y2b-dv-table th:nth-child(5),  body.y2b-brokers-inventory .y2b-dv-table td:nth-child(5)  { width: 6% !important; }
body.y2b-brokers-inventory .y2b-dv-table th:nth-child(6),  body.y2b-brokers-inventory .y2b-dv-table td:nth-child(6)  { width: 9.5% !important; }
body.y2b-brokers-inventory .y2b-dv-table th:nth-child(7),  body.y2b-brokers-inventory .y2b-dv-table td:nth-child(7)  { width: 9% !important; }
body.y2b-brokers-inventory .y2b-dv-table th:nth-child(8),  body.y2b-brokers-inventory .y2b-dv-table td:nth-child(8)  { width: 8% !important; }
body.y2b-brokers-inventory .y2b-dv-table th:nth-child(9),  body.y2b-brokers-inventory .y2b-dv-table td:nth-child(9)  { width: 8% !important; }
body.y2b-brokers-inventory .y2b-dv-table th:nth-child(10), body.y2b-brokers-inventory .y2b-dv-table td:nth-child(10) { width: 6.5% !important; }
body.y2b-brokers-inventory .y2b-dv-table th:nth-child(11), body.y2b-brokers-inventory .y2b-dv-table td:nth-child(11) { width: 3.5% !important; }
body.y2b-brokers-inventory .y2b-dv-table th:nth-child(12), body.y2b-brokers-inventory .y2b-dv-table td:nth-child(12) { width: 10% !important; min-width: 112px; }
body.y2b-brokers-inventory .y2b-dv-table th:nth-child(13), body.y2b-brokers-inventory .y2b-dv-table td:nth-child(13) { width: 7.5% !important; }
body.y2b-brokers-inventory .y2b-dv-table th:nth-child(14), body.y2b-brokers-inventory .y2b-dv-table td:nth-child(14) { width: 6.5% !important; }

/* Pagination */
body.y2b-brokers-inventory .y2b-dv-pagination-row { margin-top: 12px !important; }
body.y2b-brokers-inventory .y2b-dv-pagination button,
body.y2b-brokers-inventory .y2b-dv-pagination a { border: 1px solid var(--bi-input) !important; border-radius: 8px !important; background: #fff !important; color: var(--bi-label) !important; }
body.y2b-brokers-inventory .y2b-dv-pagination .y2b-dv-page-active,
body.y2b-brokers-inventory .y2b-dv-pagination [aria-current="page"] { background: var(--bi-orange) !important; border-color: var(--bi-orange) !important; color: #fff !important; }
body.y2b-brokers-inventory .y2b-dv-per-page select { border: 1px solid var(--bi-input) !important; border-radius: 8px !important; }

/* Smaller laptops */
@media (max-width: 1400px) {
	body.y2b-brokers-inventory .bi-top { flex-direction: column; align-items: stretch; gap: 12px; }
	body.y2b-brokers-inventory .bi-searchpanel { flex-direction: column; align-items: stretch; }
	body.y2b-brokers-inventory .bi-searchbox { flex-basis: auto; }
	body.y2b-brokers-inventory .bi-main { grid-template-columns: 220px minmax(0, 1fr); }
}

/* =====================================================================
   View Contact popup — revealed details
   ===================================================================== */
.y2b-cm-reveal { margin-top: 12px; text-align: left; }
.y2b-cm-reveal-loading { font-size: 13px; color: #667085; text-align: center; padding: 8px 0; }
.y2b-cm-reveal-error { font-size: 13px; color: #b42318; background: #fef3f2; border: 1px solid #fecdca; border-radius: 10px; padding: 10px 12px; }
.y2b-cm-reveal-card { background: #f9fafb; border: 1px solid #e4e7ec; border-radius: 12px; padding: 4px 14px; }
.y2b-cm-reveal-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eaecf0; font-size: 13.5px; }
.y2b-cm-reveal-row:last-child { border-bottom: 0; }
.y2b-cm-reveal-row span { color: #667085; }
.y2b-cm-reveal-row strong { color: #122850; text-align: right; }
.y2b-cm-reveal-actions { display: flex; gap: 8px; margin-top: 10px; }
.y2b-cm-reveal-actions a { flex: 1; text-align: center; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 13.5px; text-decoration: none !important; color: #fff !important; }
.y2b-cm-reveal-call { background: #166534; }
.y2b-cm-reveal-wa { background: #16a34a; }
.y2b-cm-reveal-call:hover { background: #14532d; }
.y2b-cm-reveal-wa:hover { background: #15803d; }
