/* Map legend: a floating card styled like Google's own map controls, with the same quiet type as the
   settings panel (uppercase eyebrow labels, hover rows, --settings-accent). It sizes to its longest
   entry (180-300px) instead of a fixed 261px with a resize grip. */
/* The legend and the search box above it form one left-hand column: same width, same left edge
   (--map-left-column on #map-canvas). The legend used to size to its content (180-300px), so it could never
   line up with the fixed-width search box. */
#map-canvas {
    --map-left-column: 300px;
}
/* Search box: a white card like the legend below it (layout.css made it 80% translucent white with a scaled
   jQuery-UI sprite magnifier positioned in px). The magnifier is a Font Awesome glyph pinned to the box's right
   edge; .searchControl is Google's absolutely-positioned control wrapper, so it is the containing block. */
#searchBox {
    box-sizing: border-box;
    width: var(--map-left-column);
    height: 40px;
    margin: 12px 12px 12px 11px;   /* 11px: same left edge as the legend */
    padding: 0 40px 0 14px;
    border: 0 !important;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, .3);
    color: var(--gray-800, #343a40);
    font-size: 14px;
}
#searchBox:focus {
    outline: none;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, .3), 0 0 0 2px color-mix(in srgb, var(--primary) 45%, transparent);
}
#searchBox::placeholder {
    color: var(--gray-600, #6c757d);
}
.searchControl #searchBoxSubmit {
    top: 12px;
    left: auto;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    opacity: 1;
    zoom: 1;
    transform: none;
    -webkit-transform: none;
    color: var(--gray-600, #6c757d);
    cursor: pointer;
}
.searchControl #searchBoxSubmit::before {
    font: 300 16px/1 "Font Awesome 7 Pro";
    content: "\f002";   /* magnifying-glass */
}
.searchControl #searchBoxSubmit:hover {
    color: var(--gray-900, #212529);
}
#legend.legend {
    box-sizing: border-box;
    width: var(--map-left-column);
    max-height: 320px;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 10px 0 0 11px;   /* 11px lines the card up with the search box's left edge */
    padding: 12px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fff;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, .3);
    color: var(--gray-800, #343a40);
    font-size: 12px;
    --settings-accent: var(--primary);
}
/* showLegend() fades the card in with jQuery, which leaves an inline display:block and collapses the flex
   column above (the 12px gaps between title, eyebrow and rows disappear). Keep it flex once shown. */
#legend.legend[style*="display: block"] {
    display: flex !important;
}
/* Nothing to show (no colour breakout, shading or KML, or a breakout with no entries -- e.g. a map of only
   location lists): hide the card instead of a bare "Legend" / "Select All". Each section is shown/hidden with
   jQuery, i.e. an inline display style. */
#legend.legend:not(:has(> .legendContent:not([style*="none"]))),
#legend.legend:has(#breakoutEntries:empty):not(:has(> .legendContent:not(#legendBreakout):not([style*="none"]))) {
    display: none !important;
}
/* Status toast (#waitingMessage: "Saving...", "Settings Saved.", "Failed to ..."): layout.css drew it as a
   grey-bordered tab hanging off the top edge. Now a white card like the rest of the map chrome, with an icon
   from data-tone (set by mapping-common.js from the text): busy spins, done is a green check, error is red. */
#waitingMessage.messageBar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    padding: 8px 14px 8px 12px;
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, .3), 0 4px 12px -4px rgba(0, 0, 0, .15);
    color: var(--gray-800, #343a40);
    font-size: 13px;
    font-weight: 500;
    line-height: 18px;
}
/* Mark All Out / bulk package confirmations (map.jspx #confirmMarkAllOutWindow, #confirmBulkPackageMarkWindow):
   card styling like the rest of the map, and the two identical uppercase "OK" / "CANCEL" buttons become a quiet
   Cancel and a solid button named for the action (mapping-common.js sets its text). Scoped to these two dialogs. */
.fancybox-wrap:has(:is(#confirmMarkAllOutWindow, #confirmBulkPackageMarkWindow)) .fancybox-skin {
    padding: 20px 22px 18px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, .25), 0 12px 32px -8px rgba(0, 0, 0, .3) !important;
}
:is(#confirmMarkAllOutWindow, #confirmBulkPackageMarkWindow) {
    width: 380px;
}
:is(#confirmMarkAllOutWindow, #confirmBulkPackageMarkWindow) h2 {
    margin: 0 0 6px !important;
    font: 600 14.5px/20px 'Open Sans', Arial, Helvetica, sans-serif !important;
    color: var(--gray-900, #212529) !important;
    text-transform: none !important;
}
:is(#confirmMarkAllOutWindow, #confirmBulkPackageMarkWindow) p {
    margin: 0 0 4px !important;
    color: var(--gray-700, #495057);
    font-size: 12.5px;
    line-height: 19px;
}
:is(#confirmMarkAllOutWindow, #confirmBulkPackageMarkWindow) > div:last-child {
    display: flex;
    flex-direction: row-reverse;   /* markup order is [action, Cancel]; Cancel sits left of the action */
    justify-content: flex-start;
    gap: 8px;
    margin-top: 18px;
}
:is(#confirmMarkAllOutWindow, #confirmBulkPackageMarkWindow) button {
    float: none !important;
    margin: 0 !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}
:is(#confirmMarkAllOutWindow, #confirmBulkPackageMarkWindow) button:not(.markAllOutConfirmButton):not(.bulkPackageMarkConfirmButton) {
    border: 1px solid var(--border-color, #ced4da) !important;
    background: #fff !important;
    color: var(--gray-800, #343a40) !important;
}
:is(#confirmMarkAllOutWindow, #confirmBulkPackageMarkWindow) button:not(.markAllOutConfirmButton):not(.bulkPackageMarkConfirmButton):hover {
    background: var(--gray-100, #f1f3f5) !important;
}
:is(#confirmMarkAllOutWindow, #confirmBulkPackageMarkWindow) :is(.markAllOutConfirmButton, .bulkPackageMarkConfirmButton) {
    border: 1px solid var(--primary) !important;
    background: var(--primary) !important;
    color: #fff !important;
}
.fancybox-wrap:has(:is(#confirmMarkAllOutWindow, #confirmBulkPackageMarkWindow)) .fancybox-close {
    top: 10px !important;
    right: 10px !important;
    width: 28px !important;
    height: 28px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #fff none !important;
    box-shadow: none !important;
}
.fancybox-wrap:has(:is(#confirmMarkAllOutWindow, #confirmBulkPackageMarkWindow)) .fancybox-close::before {
    content: "\f00d" !important;   /* xmark */
    position: absolute;
    inset: 0;
    font: 300 15px/28px "Font Awesome 7 Pro" !important;
    text-align: center;
    color: var(--gray-600, #6c757d) !important;
}
.fancybox-wrap:has(:is(#confirmMarkAllOutWindow, #confirmBulkPackageMarkWindow)) .fancybox-close:hover {
    background: var(--gray-100, #f1f3f5) none !important;
}
/* Map warning banner (showMapWarningBanner): replaces the modal "Asset Warning" dialog. Lives in the same top-centre
   control as #waitingMessage, above it. */
#mapWarningBanner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-sizing: border-box;
    width: 520px;
    max-width: calc(100vw - 720px);
    min-width: 340px;
    margin: 12px auto 0;
    padding: 10px 10px 10px 12px;
    border-left: 4px solid var(--warning, #fda700);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, .3), 0 4px 12px -4px rgba(0, 0, 0, .15);
    color: var(--gray-800, #343a40);
    font-size: 12.5px;
    line-height: 18px;
    text-align: left;
}
#mapWarningBanner .mapWarningBannerIcon {
    margin-top: 1px;
    color: var(--warning-dark, #946200);
    font-size: 15px;
}
#mapWarningBanner .mapWarningBannerText b {
    display: block;
    color: var(--gray-900, #212529);
    font-weight: 600;
}
#mapWarningBanner .mapWarningBannerClose {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: auto;
    border-radius: 50%;
    color: var(--gray-600, #6c757d) !important;
    text-decoration: none !important;
}
#mapWarningBanner .mapWarningBannerClose:hover {
    background: var(--gray-100, #f1f3f5);
}
#mapWarningBanner + br {
    display: none;
}
#waitingMessage.messageBar[style*="display: none"] {
    display: none !important;
}
#waitingMessage.messageBar::before {
    font: 300 15px/1 "Font Awesome 7 Pro";
    content: "\f00c";   /* check */
    color: var(--success, #4b9b3d);
}
#waitingMessage.messageBar[data-tone="busy"]::before {
    content: "\f3f4";   /* spinner-third */
    color: var(--primary);
    animation: waitingMessageSpin .8s linear infinite;
}
#waitingMessage.messageBar[data-tone="error"]::before {
    content: "\f06a";   /* circle-exclamation */
    color: var(--danger, #c14a39);
}
@keyframes waitingMessageSpin {
    to { transform: rotate(360deg); }
}
/* Card titles on the map (Legend, settings panel name, Locations) share one size: 14.5px / 600. */
#legend > h5 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 19px;
    color: var(--gray-800, #343a40);
}
#legend .legendContent {
    margin: 0;
}
#legend h6 {
    margin: 0 0 4px;
    color: var(--gray-800, #343a40);
    font-weight: 600;
}
#legend #legendBreakoutTitle {
    margin: 0 0 6px;   /* flush with "Legend" and the row text, not the rows' hover tint */
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray-600, #6c757d);
}
/* Rows: full-width, hover tint, the whole row toggles (mapping-common.js forwards the click to the box). */
#legend #toggleAllBreakoutEntries {
    padding-bottom: 4px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border-color);
}
/* The hover tint bleeds 4px past the text column (negative margin) so the checkboxes line up with "Legend" and
   "Colored by ..." instead of sitting 4px in. */
#legend #breakoutEntries > span,
#legend #checkAllBreakoutEntriesLabel {
    display: block;
    width: calc(100% + 8px);
    margin: 0 -4px;
    padding: 2px 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 120ms ease-out, color 120ms ease-out;
}
/* Hanging indent: a long name ("Lambda Lambda Sigma, LLC D/B/A Alchemy Media") wraps under its own first word,
   not back under the checkbox. 33px = checkbox + pin + their margins (measured: the label starts 33px in). */
#legend #breakoutEntries > span {
    padding-left: 37px;
    text-indent: -33px;
}
#legend #breakoutEntries > span:hover,
#legend #checkAllBreakoutEntriesLabel:hover {
    background: var(--gray-100, #f8f9fa);
}
#legend #checkAllBreakoutEntriesLabel {
    color: var(--gray-600, #6c757d);
}
/* A hidden breakout fades out instead of only losing its tick. */
#legend #breakoutEntries > span:has(> input[type=checkbox]:not(:checked)) {
    color: var(--gray-500, #adb5bd);
}
#legend #breakoutEntries > span:has(> input[type=checkbox]:not(:checked)) > img {
    opacity: .35;
}
/* Location count per row, right-aligned (float, because the row cannot be flex -- see below). */
#legend #breakoutEntries .legendCount {
    float: right;
    text-indent: 0;   /* a floated block inherits the row's -33px hanging indent */
    padding-left: 14px;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    color: var(--gray-500, #adb5bd);
}
#legend::-webkit-scrollbar {
    width: 7px;
}
#legend::-webkit-scrollbar-thumb {
    border-radius: 5px;
    -webkit-border-radius: 5px;
    background: color-mix(in srgb, var(--gray-900) 46%, transparent);
}
#legend #breakoutEntries > span {
    float: left;
    clear: both;
}
/* Legend rows (Select All + one per breakout colour): checkbox, marker, label on one 17px line. jQuery
   .show()/.hide() write an inline display on these spans to filter them, so they cannot become flex rows
   (a display:flex !important would also beat .hide()). Instead each piece is top-aligned with a measured
   offset. The checkbox (3.5px) centres on the label's x-height, like every checkbox row; the pin (0px)
   centres on the label's capital-to-baseline height instead, because its pointed tail hangs below the
   text -- centred on the x-height (1px) it read as sitting low (Lawrence, 2026-11-03).
   The legend_NNN.png pins carry ~3px of transparent padding per side at 16px, so 2px margins give an even
   ~5px visible gap box->pin->label; "Select All" has no pin, so its box carries the full 5px. */
#legend #breakoutEntries > span,
#legend #checkAllBreakoutEntriesLabel {
    line-height: 17px;
}
#legend #breakoutEntries > span > input,
#legend #checkAllBreakoutEntriesLabel > input {
    vertical-align: top;
    margin: 3.5px 2px 0 0;
}
#legend #checkAllBreakoutEntriesLabel > input {
    margin-right: 5px;
}
#legend #breakoutEntries > span > img {
    vertical-align: top;
    margin: 0 2px 0 0;
}
#legendDemographic, #legendCustomKml{
    display:flex;
    flex-direction: column;
    gap: .5rem;
}
.panoramaControl {
    background-color: var(--gray-900);
    opacity: .8;
    font-size: 12px;
    padding: 5px;
}
th.rfpData {
    background-color: var(--secondary);
}
/* RFP/Contract Data toggles check ORANGE on purpose (Lawrence, 2026-11-03): they turn on the orange
   th.rfpData columns in the Locations table, so the colour ties toggle to column. Native checkbox,
   only the accent changes (every other checkbox is var(--primary) via _overrides.scss). */
#settingsContent .rfpData input[type=checkbox] {
    accent-color: var(--secondary);
}
/* accent-color alone can't do it: Chrome picks the checkmark colour for contrast and draws a DARK
   check on a light accent like #F0773F. So only the CHECKED state is custom-drawn (13px, same box as
   the native one, white check); unchecked stays native so it matches every other section. */
#settingsContent .rfpData input[type=checkbox]:checked {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 13px;
    height: 13px;
    border: 0 !important;   /* conqueror.css: `input {border: 1px solid ... !important}`; a native box ignores it, appearance:none doesn't */
    border-radius: 2px;
    background: var(--secondary) url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Cpath d='M3 6.8 5.4 9.2 10 4.2' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
}
/* Map settings panel checkbox rows (every section, RFP/Contract Data included): 400 weight, the
   app-wide checkbox-label weight from _general.scss; 1.4em rows with a 1px gap. The checkbox is a
   CHILD of the label, so Bootstrap's label margin-bottom and .settingsTabContent label's
   padding-bottom would otherwise add ~13px under every row. RFP/Contract Data used to be .FAinput
   font-icon checkboxes (orange when checked, baseline-aligned 15px glyph); it now uses the same
   native markup as every other section so alignment, gap and checked colour all match.
   A wrapped label (long Audience Data / vendor names) hangs under its own text, not under the box:
   padding-left 23px = the old 5px + 18px, and text-indent -18px pulls the first line (box + text)
   back out. Do NOT use flex for this: it splits the name's text node and the count <span>
   (" (17)", filled by mapping-common.js) into separate flex items, which drops the leading space
   and wraps the count onto its own line. The box's 2px margin-right + the markup's collapsed space
   (~3.1px at 12px Open Sans) = the 5px gap, so wrapped lines line up with the first line's text.
   vertical-align top + margin-top 3px centres the 13px box on the FIRST line's x-height (box mid
   9.5px), not the cap height: at 2px the box read as too high next to mostly-lowercase labels. */
#settingsContent .content label:has(> input[type=checkbox]),
#settingsContent .content label:has(> input[type=radio]) {   /* Heatmaps audience radios */
    display: block;
    font-weight: 400;
    line-height: normal;
    min-height: 1.4em;
    margin: 0 1em 1px 0;
    padding: 0 0 0 23px;
    text-indent: -18px;
}
#settingsContent .content label > input[type=checkbox] {
    vertical-align: top;
    margin: 3px 2px 0 0;
}
/* Same box, but the radio's label text is in a <span> and JSPX drops the whitespace before it, so
   there is no collapsed space to make up the gap: the radio carries the full 5px itself. */
#settingsContent .content label > input[type=radio] {
    vertical-align: top;
    margin: 3px 5px 0 0;
}
/* Map settings panel chrome (Lawrence picked "B panel + B tabs", 2026-11-03): a white Google-style card like
   the legend -- no grey title band, one accent colour, small uppercase labels.
   - Header: a small type label ("COMPILE ALL PROPOSALS", only for app-generated map names, see
     splitSettingsTitle in mapping-common.js) over the name, clamped to two lines; the full name is the tooltip.
     The old 18px/100 white title wrapped to three lines and still lost the end of the name.
   - The chevron is a plain grey icon button. layout.css/commb.css paint it a filled link-blue / COMMB-red
     circle with !important, so the overrides here are !important at a higher specificity.
   - The illustration + two-sentence intro became one row: live location count + a Share pill. */
/* #settingsScrollTab: the copy of this header pinned to the window top while the panel is scrolled out of
   view (layouts/map.jspx, mapOnly.jspx, bare-map.jspx, commbAdmin mapSearch.jspx). */
#settingsScrollTab {
    border: 0;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 1px 4px -1px rgba(0,0,0,.3), 0 4px 16px -4px rgba(0,0,0,.12);
}
div.settings {
    margin: 12px 12px 0 0;   /* layout.css 20px; 12px matches the search box / legend / Locations insets */
    border: 0;
    border-radius: 6px;
    box-shadow: 0 1px 4px -1px rgba(0,0,0,.3), 0 4px 16px -4px rgba(0,0,0,.12);
}
div.settings #settingsContainerHeading,
#settingsScrollTab #settingsContainerHeading {
    float: none;
    display: flex;
    flex-direction: column;
    gap: 1px;
    width: auto;
    padding: 12px 48px 10px 14px;
    background: #fff;
    color: var(--gray-800, #343a40);
    border-radius: 0;
}
div.settings #settingsContainerHeading:hover,
#settingsScrollTab #settingsContainerHeading:hover {
    background: #fff;
}
.settingsTitleType {
    font: 700 10.5px/14px 'Open Sans', Arial, Helvetica, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray-600, #6c757d);
}
div.settings #settingsTitle,
#settingsScrollTab #settingsScrollTitle {
    font: 600 14.5px/19px 'Open Sans', Arial, Helvetica, sans-serif;
    color: var(--gray-800, #343a40);
    text-transform: none;            /* layout.css capitalised every word of user-typed names */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;         /* RFP names like UPMC_CPA_2027_BF2402_ANNUALS have no spaces to wrap at */
}
div.settings #settingsControlArrow.controlArrow,
#settingsScrollTab #settingsControlArrow.controlArrow {
    top: 50%;
    right: 8px;
    margin-top: 0;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    color: var(--gray-600, #6c757d);
    font-size: 15px;
    transition: background 120ms ease-out;
}
div.settings #settingsContainerHeading:hover #settingsControlArrow.controlArrow,
#settingsScrollTab #settingsContainerHeading:hover #settingsControlArrow.controlArrow {
    background: var(--gray-100, #f1f3f5) !important;
    border: 0 !important;
}
#settingsTop {
    padding: 0 14px;
    margin-bottom: 0;
}
#settingsTop > .colWrap {
    padding: 0;
}
#settingsTop hr {
    display: none;                   /* the tab strip's own bottom rule separates the summary from the tabs */
}
#mapSummary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 0 8px;
    font-size: 12px;
    line-height: 20px;
    color: var(--gray-600, #6c757d);
}
#mapSummary .mapSummaryCount > i {
    margin-right: 6px;
    color: var(--gray-500, #adb5bd);
}
#mapSummary .mapSummaryCount > b {
    font-weight: 600;
    color: var(--gray-800, #343a40);
}
#mapSummary #shareMapSpan a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
    color: var(--settings-accent, var(--primary));
    text-decoration: none;
    transition: background 120ms ease-out;
}
#mapSummary #shareMapSpan a:hover {
    background: color-mix(in srgb, var(--settings-accent, var(--primary)) 7%, white);
}

/* Vendors / Format / Display tabs: Google underline tabs (was boxed grey tabs with an orange top border).
   The strip scrolls sideways when a map has many tabs (Location Lists, Closest Inventory...). The commb.css
   red top border on span.current is cancelled by the border:0 !important here; COMMB keeps its red via
   --settings-accent. */
div.settings ul#settingsTabs {
    display: flex;
    gap: 2px;
    padding: 0 6px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
}
/* ‹ / › over a white fade when the strip overflows (initSettingsTabArrows in mapping-common.js wraps the strip in
   .settingsTabsScroller). They are <button>s inside the map, so the .gm-style button reset is overridden here. */
div.settings .settingsTabsScroller {
    position: relative;
}
div.settings .settingsTabsArrow {
    display: none !important;
}
div.settings .settingsTabsScroller.canScrollLeft .settingsTabsArrowLeft,
div.settings .settingsTabsScroller.canScrollRight .settingsTabsArrowRight {
    position: absolute;
    top: 0;
    bottom: 1px;   /* leave the strip's bottom border showing */
    z-index: 3;
    display: flex !important;
    align-items: center;
    width: 34px;
    min-width: 0;
    margin: 0;
    padding: 0 4px !important;
    border: 0 !important;
    color: var(--gray-600, #6c757d) !important;
    font-size: 13px;
    cursor: pointer;
}
div.settings .settingsTabsScroller.canScrollLeft .settingsTabsArrowLeft {
    left: 0;
    justify-content: flex-start;
    background: linear-gradient(90deg, #fff 55%, rgba(255, 255, 255, 0)) !important;
}
div.settings .settingsTabsScroller.canScrollRight .settingsTabsArrowRight {
    right: 0;
    justify-content: flex-end;
    background: linear-gradient(270deg, #fff 55%, rgba(255, 255, 255, 0)) !important;
}
div.settings .settingsTabsArrow i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}
div.settings .settingsTabsArrow:hover i {
    background: var(--gray-100, #f1f3f5);
    color: var(--gray-900, #212529);
}
div.settings ul#settingsTabs.hide {
    display: none;
}
div.settings ul#settingsTabs > li {
    display: block;
    flex: 1 1 auto;   /* tabs share the strip's width instead of leaving a gap on the right */
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    line-height: normal;
}
div.settings ul#settingsTabs > li > span {
    position: relative;
    display: block;
    height: 40px;
    padding: 0 12px;
    margin: 0;
    border: 0 !important;
    border-radius: 6px 6px 0 0;
    background: none !important;
    font: 500 13px/40px 'Open Sans', Arial, Helvetica, sans-serif;
    color: var(--gray-600, #6c757d);
    white-space: nowrap;
    transition: background 120ms ease-out, color 120ms ease-out;
}
div.settings ul#settingsTabs > li > span:hover {
    background: var(--gray-100, #f1f3f5) !important;
    color: var(--gray-800, #343a40);
}
div.settings ul#settingsTabs > li > span {
    text-align: center;
}
/* Set by initSettingsTabArrows when the tabs don't fit at full size (Redmine #18562 feedback: Display must stay one
   click away, as on the old panel). Measured with the compact rules removed, so it is re-tried on every resize. */
div.settings ul#settingsTabs.compactTabs {
    gap: 0;
    padding: 0 2px;
}
div.settings ul#settingsTabs.compactTabs > li > span {
    padding: 0 7px;
    font-size: 12px;
}
div.settings ul#settingsTabs.compactTabs > li > span.current::after {
    left: 5px;
    right: 5px;
}
div.settings ul#settingsTabs > li > span.current {
    color: var(--settings-accent, var(--primary));
    font-weight: 600;
}
div.settings ul#settingsTabs > li > span.current::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--settings-accent, var(--primary));
}

/* Vendors / Format / Location Lists rows: out of their grey box, full-width rows like the legend (hover tint, unchecked rows
   fade, count right-aligned -- mapping-common.js writes a bare number now, not " (4)"). The 23px hanging
   indent below is kept inside the 8px row padding (31px). */
#settingsContent #companyTabContent > .content,
#settingsContent #categoryTabContent > .content,
#settingsContent #clientLocationListTabContent > .content:not(.toggle),
#settingsContent #vendorLocationListTabContent > .content:not(.toggle) {
    background: transparent;
    border: 0;
    padding: 0 !important;
}
#settingsContent #companyTabContent .content label:has(> input[type=checkbox]),
#settingsContent #categoryTabContent .content label:has(> input[type=checkbox]),
#settingsContent #clientLocationListTabContent > .content:not(.toggle) label:has(> input[type=checkbox]),
#settingsContent #vendorLocationListTabContent > .content:not(.toggle) label:has(> input[type=checkbox]) {
    width: 100%;
    margin: 0;
    padding: 4px 8px 4px 31px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;   /* same as the legend rows and the Locations table */
    line-height: 18px;
    transition: background 120ms ease-out, color 120ms ease-out;
}
#settingsContent #companyTabContent .content label:has(> input[type=checkbox]):hover,
#settingsContent #categoryTabContent .content label:has(> input[type=checkbox]):hover,
#settingsContent #clientLocationListTabContent > .content:not(.toggle) label:has(> input[type=checkbox]):hover,
#settingsContent #vendorLocationListTabContent > .content:not(.toggle) label:has(> input[type=checkbox]):hover {
    background: var(--gray-100, #f1f3f5);
}
/* ticked rows in the same dark grey as the legend and the Display-tab rows (they inherited --gray-600) */
#settingsContent #companyTabContent .content label:has(> input:checked),
#settingsContent #categoryTabContent .content label:has(> input:checked),
#settingsContent #clientLocationListTabContent > .content:not(.toggle) label:has(> input:checked),
#settingsContent #vendorLocationListTabContent > .content:not(.toggle) label:has(> input:checked) {
    color: var(--gray-800, #343a40);
}
#settingsContent #companyTabContent .content label:has(> input:not(:checked)),
#settingsContent #categoryTabContent .content label:has(> input:not(:checked)),
#settingsContent #clientLocationListTabContent > .content:not(.toggle) label:has(> input:not(:checked)),
#settingsContent #vendorLocationListTabContent > .content:not(.toggle) label:has(> input:not(:checked)) {
    color: var(--gray-500, #adb5bd);
}
#settingsContent #companyTabContent .content label > input[type=checkbox],
#settingsContent #categoryTabContent .content label > input[type=checkbox],
#settingsContent #clientLocationListTabContent > .content:not(.toggle) label > input[type=checkbox],
#settingsContent #vendorLocationListTabContent > .content:not(.toggle) label > input[type=checkbox] {
    margin-top: 2.5px;
}
#settingsContent [id^=companyMarkerCount],
#settingsContent [id^=categoryMarkerCount],
#settingsContent [id^=clientLocationListMarkerCount],
#settingsContent [id^=vendorLocationListMarkerCount] {
    float: right;
    padding-left: 14px;
    font-size: 11.5px;
    font-variant-numeric: tabular-nums;
    color: var(--gray-500, #adb5bd);
}
/* Location Lists rows also carry a pin icon, so the checkbox-only hanging indent above sent wrapped names back
   under the checkbox. Flex row instead: checkbox, pin, name (wraps under itself), count. The checkbox stays at
   the same x as on Vendors/Format (31px padding - 18px indent = 13px). */
#settingsContent #clientLocationListTabContent > .content:not(.toggle) label:has(> input[type=checkbox]),
#settingsContent #vendorLocationListTabContent > .content:not(.toggle) label:has(> input[type=checkbox]) {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding-left: 13px;
    text-indent: 0;
}
#settingsContent #clientLocationListTabContent > .content:not(.toggle) label > input[type=checkbox],
#settingsContent #vendorLocationListTabContent > .content:not(.toggle) label > input[type=checkbox] {
    flex: none;
    margin: 3.5px 0 0;
}
#settingsContent #clientLocationListTabContent > .content:not(.toggle) label > img.legendimage,
#settingsContent #vendorLocationListTabContent > .content:not(.toggle) label > img.legendimage {
    flex: none;
    margin: 2px 0 0;
}
#settingsContent #clientLocationListTabContent > .content:not(.toggle) [id^=clientLocationListMarkerCount],
#settingsContent #vendorLocationListTabContent > .content:not(.toggle) [id^=vendorLocationListMarkerCount] {
    flex: none;
    margin-left: auto;
}
/* Display-tab section rows (Inventory / RFP-Contract / PoP Data, Marker Labels, Photosheet...): same size, line
   height and hover rows as the Vendors / Format lists (they were 12px, line-height normal, no row padding). The
   checkbox keeps its column (23px hanging indent); unchecked rows stay readable rather than faded, because here an
   unticked box is just an option that is off. */
#settingsContent .content.toggle label:has(> input[type=checkbox]) {
    margin: 0 !important;
    padding: 3px 8px 3px 23px !important;
    border-radius: 6px;
    color: var(--gray-800, #343a40);
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
    transition: background 120ms ease-out;
}
#settingsContent .content.toggle label:has(> input[type=checkbox]):hover {
    background: var(--gray-100, #f1f3f5);
}
#settingsContent .content.toggle label:has(> input[type=checkbox]:not(:checked)) {
    color: var(--gray-600, #6c757d);
}
#settingsContent .content.toggle label > input[type=checkbox] {
    margin-top: 2.5px !important;
}
/* Format tab: the format's marker icon sat flush against its name */
#settingsContent #categoryTabContent .content label > img {
    margin: 0 6px 0 4px;
    vertical-align: -3px;
}
/* Single selects in the panel (e.g. Marker Color > "Breakout colors by") had appearance:none and no arrow, so they
   read as text boxes. select2-enhanced selects draw their own arrow. */
div.settings #settingsContent select:not([multiple]):not(.select2-hidden-accessible) {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 28px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%236c757d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center / 12px 12px !important;
}
/* Audience Shading picker (js/components/audiencePicker.js, shared with the asset list and seller proposal pages,
   so scoped to the map panel): its Bootstrap panel box, 20px padding and floats left gaps and a ragged layout, and
   the two actions were orange uppercase .btn-secondary buttons, the second shoved 21px right by .ML1. Now: no box,
   Plan / Basic / Advanced on one row, the actions as full-width quiet outlined buttons, all on the checkbox column
   (x + 5px, the same as the Show Audience Shading / Show Legend boxes above). */
div.settings #audiencePicker {
    margin-top: 6px;
    padding-left: 5px;
}
div.settings #audiencePicker .panel {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
}
div.settings #audiencePicker .panel-body {
    padding: 0 !important;
}
div.settings #audiencePicker .audiencePicker {
    margin: 0 !important;
}
div.settings #audiencePicker .audienceMenu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    margin: 0 0 8px;
}
div.settings #audiencePicker .audienceMenu > label {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    font-size: 12px;
    line-height: 18px;
    cursor: pointer;
}
div.settings #audiencePicker .audienceMenu > label > input {
    position: static !important;
    float: none !important;
    margin: 0 !important;
}
div.settings #audiencePicker .audienceMenu > span.right {
    float: none !important;
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 2px 0 0;
}
div.settings #audiencePicker .audienceMenu > span.right > a.btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 5px 8px !important;
    border: 1px solid var(--border-color, #ced4da) !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--gray-800, #343a40) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    white-space: nowrap;
}
div.settings #audiencePicker .audienceMenu > span.right > a.btn:hover {
    background: var(--gray-100, #f1f3f5) !important;
}
div.settings #audiencePicker .audienceMenu > span.right > a.btn i {
    margin: 0 !important;
    color: var(--settings-accent, var(--primary)) !important;
    font-size: 13px;
}
/* The "Save Map Position / Clear" links picked up the 14px <p> default; match the Center:/Zoom: labels above it. */
#settingsContent .startingPositionActions {
    font-size: 12px;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 1px;   /* the <p> default 16px left 24px under the links vs 9px under every other section */
    /* Save Map Position on the left, Clear on the right (no bullet). clear:both because a flex box will
       not sit beside the floated Center/Zoom labels -- it got squeezed into the 0px left beside them. */
    display: flex;
    justify-content: space-between;
    clear: both;
    margin-left: 5px;     /* line Save up with the Center:/Zoom: text (those labels pad 5px); Clear mirrors it */
    margin-right: 5px;
}
/* Map settings panel spacing: .settingsTabContent (10px) sat inside #settingsContent (10px), insetting
   every section ~20px per side in a 300px panel (258px of content). One 10px inset is enough. */
#settingsContent .settingsTabContent {
    padding: 0;
}
/* The blue section header already ends in a 2px border; the box's own 1px top border stacked a second
   line under it. Only boxes that follow a header lose it -- the Vendors/Format boxes have no header. */
#settingsContent a + .content.toggle {
    border-top: 0;
}
/* Section boxes slide open/closed (toggleContent in mapping-common.js). layout.css pads them 8px
   !important (it has to beat the app-wide `.content {padding-bottom: 0 !important}`), and jQuery's slide
   cannot animate an !important padding, so each box popped in as a 17px stub, then slid, then snapped.
   Keep the side padding; move the 8px top/bottom into spacers that the height animation clips. The
   ::after also clears the floated rows, as overflow:hidden already did. */
#settingsContent .content.toggle {
    padding: 0 8px !important;
}
#settingsContent .content.toggle::before,
#settingsContent .content.toggle::after {
    content: '';
    display: block;
    height: 8px;
    clear: both;
}
/* Settings-panel section headers, every tab, user + anonymous map: quiet rows instead of solid
   link-colour bars. Markup: <a id="X" onclick="toggleContent(..)"><h6>[<i class="sectionIcon"/>] Name
   [<span class="sectionCount"/>]<span class="toggleContentSymbol"><i class="fa-chevron-down"/></span></h6></a>.
   toggleContent() puts `is-open` on the <a>. The accent is a variable so commb.css can keep COMMB red. */
#settingsContent {
    --settings-accent: var(--primary);
}
#settingsContent a[onclick^="toggleContent"] {
    display: block;
    color: inherit;
}
#settingsContent a[onclick^="toggleContent"] > h6 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 8px 8px 8px 10px;
    background: transparent;
    color: var(--gray-800, #343a40);
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 6px;
    transition: background 150ms ease-out, color 150ms ease-out;
}
#settingsContent a[onclick^="toggleContent"]:hover > h6 {
    background: var(--gray-100, #f8f9fa);
}
#settingsContent a[onclick^="toggleContent"].is-open > h6 {
    color: var(--settings-accent);
    font-weight: 600;
    background: color-mix(in srgb, var(--settings-accent) 7%, white);
    border-left-color: var(--settings-accent);
    border-radius: 0 6px 6px 0;
}
#settingsContent .sectionIcon {
    flex: 0 0 16px;
    text-align: center;
    font-size: 14px;
    color: var(--gray-600, #6c757d);
}
#settingsContent a.is-open .sectionIcon {
    color: var(--settings-accent);
}
#settingsContent .toggleContentSymbol {
    float: none;
    margin-left: auto;
    font-size: 11px;
    color: var(--gray-500, #adb5bd);
    transition: transform 200ms ease-out;
}
#settingsContent a.is-open .toggleContentSymbol {
    transform: rotate(180deg);
    color: inherit;
}
/* "N on" pill: how many boxes are ticked in a long checkbox section, so it can stay closed. */
#settingsContent .sectionCount {
    margin-left: auto;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    color: var(--settings-accent);
    background: color-mix(in srgb, var(--settings-accent) 12%, white);
}
#settingsContent .sectionCount:empty {
    display: none;
}
#settingsContent .sectionCount + .toggleContentSymbol {
    margin-left: 0;
}
#settingsContent .sectionCount:empty + .toggleContentSymbol {
    margin-left: auto;
}
/* The open section's body hangs off the header on a thin guide line, on white. Beats the
   `.content.toggle` padding above (same !important, higher specificity). */
#settingsContent a[onclick^="toggleContent"] + .content.toggle {
    width: auto;            /* something upstream fixes the box at 100%, which the indent pushes past the edge */
    margin: 0 0 4px 13px;
    padding: 0 8px 0 14px !important;
    background: #fff;
    border: 0;
    border-left: 1px solid var(--border-color);
}
/* RFP/Contract Data (~35-60 checkboxes) and Inventory Data (~50) scroll in place, so the sections below stay in
   reach and the panel does not grow down over the Locations toolbar. */
#settingsContent .rfpData.content.toggle,
#settingsContent .vendorIdeaFolders.content.toggle {
    max-height: 260px;
    overflow-y: auto;
}
/* Display tab groups (user map.jspx). A group whose every header is permission-gated away or `.hide`
   disappears with its label. */
#settingsContent .displayGroupLabel {
    margin: 16px 4px 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray-600, #6c757d);
}
#settingsContent .displayGroup:first-of-type .displayGroupLabel {
    margin-top: 0;
}
#settingsContent .displayGroup:not(:has(> a[onclick^="toggleContent"]:not(.hide))) {
    display: none;
}
/* Demographic Shading column checkboxes (e.g. Household Income) are built by mapping-common.js as
   <ul id="demographicShadingColumns"><li><label><input/>Name</label></li>. Strip the app-wide list styling
   (`ul li` orange dot + 14px indent, `.content li` 14px/22px gray-700 text, the ul's own margins) so they
   are plain rows like every other checkbox. The JS appends the name with no space before it, so the box
   carries the whole 5px gap (the other rows get ~3px of it from the markup's collapsed space). */
#demographicShadingColumns {
    margin: 0;
    padding: 0;
    list-style: none;
}
/* Separate the shading columns (e.g. the Household Income brackets) from Show Demographic Shading /
   Show Legend below them. Only when a column row is visible: a single-column category hides its li. */
#demographicShadingColumns:has(> li:not([style*="none"])) {
    margin-bottom: 8px;
}
#demographicShadingColumns > li {
    margin: 0;
    padding: 0;
    background: none;
    color: inherit;
    font-size: 12px;
    line-height: normal;
}
#settingsContent #demographicShadingColumns label > input[type=checkbox] {
    margin-right: 5px;
}
/* Even 10px rhythm under the Vendors/Format/Display tabs: the tab strip's 0.5em bottom margin
   (layout.css `#map-canvas ul.steps`) stacked on #settingsContent's 10px padding (15.5px), and the
   "expand all / collapse all" and "change colors" links (`p.TAR.MB5`) left only 5px above the first box. */
#map-canvas ul.steps#settingsTabs {
    margin-bottom: 0;
}
#settingsContent .settingsTabContent > p.TAR,
#settingsContent .settingsTabContent > p.TAR.MB5 {
    margin-bottom: 10px;
}
/* "expand all | collapse all" was 10px (inline style) on every tab. On the Location Lists tabs it also sat right
   under the list rows, reading as part of the last row; a divider ties it to the sections below instead. */
#settingsContent .settingsTabContent > p.TAR {
    font-size: 11.5px !important;
}
#settingsContent .settingsTabContent > .content:not(.toggle) + p.TAR {
    margin-top: 8px;
    padding-top: 8px !important;
    border-top: 1px solid var(--gray-200, #eaf0f6);
}
/* Summary count: "1 location on map" vs "N locations on map" (setTotalMarkerCount toggles .isSingular). */
.mapSummaryCount .mapSummarySingular,
.mapSummaryCount.isSingular .mapSummaryPlural {
    display: none;
}
.mapSummaryCount.isSingular .mapSummarySingular {
    display: inline;
}
.ds_STREETVIEW a {
    cursor: pointer;
}

/* layout.css makes .ds_STREETVIEW display:block for the cell content; a block-level <th>
   stops stretching to the header row, which shows once the Action header wraps to two lines. */
#markerDetailContent th.ds_STREETVIEW {
    display: table-cell;
}
#panoramaSnapshotControl .orange {
    color: var(--secondary);
}
#panoramaSnapshotControl a.orange:hover {
    color: var(--secondary-light);
}
.panoramaControl a {
    display: inline-block !important;
    width: 206px;
}
#panoramaSnapshotControl .panoramaControl a[disabled="disabled"] {
    cursor: default;
}
#panoramaSnapshotControl .panoramaControl a[disabled="disabled"]:hover {
    text-decoration: none;
}
div#markerDetailContent > div.markerDetailTabContent.showScroll::-webkit-scrollbar {
    height: 6px;
    width: 6px;
    -webkit-appearance: none;
}
div#markerDetailContent > div.markerDetailTabContent.showScroll::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: darkslategrey;
}
/* Google's own map buttons. The site-wide button rules are !important (blue fill, uppercase, 6px), so every
   button Google renders has to be reset here. The old reset painted the camera control near-black and turned
   every button dark grey on hover; now Map/Satellite, the camera control and the pegman are white cards with
   the same shadow and 6px corners as the legend, and the rest (Keyboard shortcuts, scale) stay plain text. */
/* Only Google's own buttons (inside its control wrappers). A bare `.gm-style button` also reached our custom map
   controls -- e.g. the audience plan editor's "Calculate", whose blue fill it wiped (Redmine #18562). */
.gm-style :is(.gmnoprint, .gm-style-cc, .gm-style-iw-chr) button,
.gm-style button.gm-style-cc {   /* the scale bar is itself a button.gm-style-cc (navy box, cut-off "5 KM") */
    min-width: auto;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: transparent !important;
    color: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}
/* "Keyboard shortcuts" in Google's attribution strip is a <button>: the site-wide button {font-size: .875rem
   !important; line-height: 2em !important} made it 14px on a 28px line inside a 14px strip, so it was cut off at
   the map's bottom edge. Back to the strip's own size, matching "Map data" beside it. */
/* Google's "Keyboard shortcuts" dialog is a native <dialog> outside .gm-style, so the reset above never reached its
   close button: the site's button rules made it a blue 6px square and cleared the colour of the X (a CSS mask on
   the inner span). Back to Google's plain grey X. Card close buttons are styled separately (.gm-style-iw-chr). */
/* Google draws its dialogs (Keyboard shortcuts) with 28px corners; the map's own cards (legend, search, settings)
   and the site use 6px. */
#map-canvas dialog {
    border-radius: 6px !important;
}
#map-canvas dialog button.gm-ui-hover-effect {
    min-width: auto;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 !important;
}
#map-canvas dialog button.gm-ui-hover-effect:hover {
    background-color: var(--gray-100, #f1f3f5) !important;
}
#map-canvas dialog button.gm-ui-hover-effect span {
    background-color: #5f6368 !important;   /* Google's control grey */
}
/* conqueror.css gives every `button span` an ::after box (a divider/caret slot for the site's old buttons). On
   Google's own buttons it sat over the dialog X's lower-right arm and the scale bar. (The pin card close button
   draws its own button::before, which this does not touch.) */
#map-canvas :is(.gmnoprint, .gm-style-cc, dialog) button span::before,
#map-canvas :is(.gmnoprint, .gm-style-cc, dialog) button span::after,
#map-canvas button.gm-style-cc span::before,   /* the scale bar is itself a button.gm-style-cc */
#map-canvas button.gm-style-cc span::after {
    content: none !important;
}
.gm-style button.gm-style-cc {
    padding: 0 !important;   /* the site's button padding pushed the scale's ruler out of its 14px strip */
}
.gm-style .gm-style-cc button,
.gm-style button.gm-style-cc {
    font-family: Roboto, Arial, sans-serif !important;   /* and Google's face/weight, not the site's 600 Open Sans */
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 14px !important;
}
.gm-style .gm-style-mtc button,
.gm-style button.gm-control-active,
.gm-style button.gm-svpc {
    background-color: #fff !important;
    color: var(--gray-600, #5f6672) !important;
}
.gm-style .gm-style-mtc button:hover,
.gm-style button.gm-control-active:hover {
    background-color: var(--gray-100, #f1f3f5) !important;
    color: var(--gray-900, #212529) !important;
}
.gm-style .gm-style-mtc button {
    font-size: 13px !important;
    font-weight: 500 !important;
}
.gm-style .gm-style-mtc button[aria-checked="true"] {
    color: var(--gray-900, #212529) !important;
    font-weight: 600 !important;
}
/* Map/Satellite hover menus ("Terrain" / "Labels"): Google writes an inline 18px font, and the site-wide label
   rules made the label a block under its checkbox. 13px like the buttons, box + label on one row, card corners. */
/* Map/Satellite now sits at the bottom of the stack (see the translates below), so its menu opens UPWARD; Google's
   inline top:40px dropped it behind the Need Help bubble and off the map. */
.gm-style .gm-style-mtc ul {
    overflow: hidden;
    top: auto !important;
    bottom: 100% !important;
    border-radius: 6px 6px 0 0 !important;
    box-shadow: 0 -2px 6px -1px rgba(0, 0, 0, .25) !important;
}
/* The site-wide `ul li` rule (start_domedia.css / layout.css) draws an orange bullet as a background radial-gradient
   on every <li> -- including Google's own menu items, where it sat beside the Terrain / Labels checkbox. */
.gm-style .gmnoprint li {
    background-image: none !important;
}
.gm-style .gm-style-mtc li[role=menuitemcheckbox] {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 12px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    color: var(--gray-800, #343a40) !important;
}
.gm-style .gm-style-mtc li[role=menuitemcheckbox]:hover {
    background-color: var(--gray-100, #f1f3f5) !important;
}
.gm-style .gm-style-mtc li[role=menuitemcheckbox] > span {
    display: inline-flex !important;
    align-items: center;
}
.gm-style .gm-style-mtc li[role=menuitemcheckbox] span[style*="mask"] {
    width: 14px !important;
    height: 14px !important;
    -webkit-mask-size: 14px 14px !important;
    mask-size: 14px 14px !important;
}
.gm-style .gm-style-mtc li[role=menuitemcheckbox] label {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    font: inherit !important;
    color: inherit !important;
    cursor: pointer;
}
.gm-style .gm-style-mtc-bbw {
    border-radius: 6px;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, .3);
}
.gm-style .gm-style-mtc:first-child button {
    border-radius: 6px 0 0 6px !important;
}
.gm-style .gm-style-mtc:last-child button {
    border-radius: 0 6px 6px 0 !important;
}
.gm-style button.gm-control-active,
.gm-style button.gm-svpc {
    border-radius: 6px !important;
    box-shadow: 0 1px 4px -1px rgba(0, 0, 0, .3) !important;
}
.gm-style a {
    font-size: 1em !important;
}
/* Bottom-right Google controls (Map/Satellite; camera control + pegman, which share one bundled control) on the
   same 12px rhythm as the DOmedia cards: 12px from the right edge, 12px between controls. Google places them
   10px in with 20px / 8px gaps, so each group is nudged by an offset from Google's own position.
   With the Inline Manual "Need Help?" bubble (fixed to the window's bottom-right corner) the stack ends 12px
   above it; without it the stack ends where Google puts the pegman, above the attribution strip.
   Google stacks Map/Satellite on top; the widest control reads better at the bottom (Redmine #18562 feedback), so
   the two groups swap: Map/Satellite moves down by the camera control + pegman + two gaps (40 + 40 + 24 = 104px)
   and the bundled control moves up by Map/Satellite + one gap (40 + 12 = 52px).
   The swap only applies when BOTH groups are in the corner (.gmControlsStacked). This stylesheet also serves maps
   with only one of them there (the COMMB road segment map puts zoom + Street View top-left, leaving Map/Satellite
   alone), and those keep the plain un-swapped offsets so a lone control is not pushed off the map. Google keeps
   an EMPTY bundled wrapper (data-control-height="0") when its controls are off or moved.
   NO :has() here: trackMapChrome() (mapping-common.js) sets the classes. Descendant :has() on .gm-style / body is
   re-tested on every change inside the map, and with thousands of Custom KML label overlays that hung the tab
   (Redmine #18562 item 12, "Aw, Snap!" on map 375364). */
.gm-style .gm-style-mtc-bbw {
    translate: -2px 28px;
}
.gm-style .gm-bundled-control-on-bottom {
    translate: -2px 20px;
}
body.mapHasInlineManual .gm-style .gm-style-mtc-bbw {
    translate: -2px 3px;
}
body.mapHasInlineManual .gm-style .gm-bundled-control-on-bottom {
    translate: -2px -5px;
}
.gm-style.gmControlsStacked .gm-style-mtc-bbw {
    translate: -2px 132px;
}
.gm-style.gmControlsStacked .gm-bundled-control-on-bottom {
    translate: -2px -32px;
}
body.mapHasInlineManual .gm-style.gmControlsStacked .gm-style-mtc-bbw {
    translate: -2px 107px;
}
body.mapHasInlineManual .gm-style.gmControlsStacked .gm-bundled-control-on-bottom {
    translate: -2px -57px;
}
/* Inline Manual fixes its "Need Help?" bubble 10px from the window edge; on the map it sits in the control stack, so
   line its right edge up with the controls above it (12px inside the map's right edge = 13px from the window).
   Scoped to the full-screen maps with the legend (body.mapHasLegend: the geoMap pages and COMMB map search): this
   stylesheet also loads on the COMMB road segment map (its own layout and control positions) and on the seller
   Update Inventory error page, which has no map at all. */
body.mapHasLegend .inmplayer-trigger {
    right: 13px !important;
}
/* The bubble also covered the right end of Google's attribution strip ("Terms", "Report a map error"), which
   Google's terms require to stay visible: end the strip just left of the bubble instead (bubble ~118px wide, 13px
   from the edge, plus an 8px gap). The strip is Google's unclassed inline-flex row pinned right:0 by an inline
   style, hence !important (.gmAttributionRow is added by trackMapChrome). Same geoMap-only scope as above. */
body.mapHasLegend.mapHasInlineManual .gm-style .gmAttributionRow {
    right: 139px !important;
}
.gm-style .gm-svpc {
    translate: 0 -20px;   /* the pegman, relative to the camera control above it */
}
/* Pin popup card (Redmine #18562, buildInfowindowCard in mapping-common.js): photo band, title + "Vendor · Format",
   label / value rows, one action row. Scoped to Google's popup (.gm-style-iw-d) so the sidebar copy of
   .infowindowContent keeps its own styles. layout.css drew the photo as a padded, shadowed frame nudged 10px right
   and the close button as Google's old 14x13 GIF (`#map-canvas .gm-style-iw-t button`), hence the overrides. */
/* Google focuses the popup box (role=dialog) when it opens, and Chrome drew its blue focus ring around the whole
   card. Focus still lands there for keyboard / screen-reader users; the close button and links keep their rings. */
.gm-style .gm-style-iw-c:has(.infowindowCard):focus,
.gm-style .gm-style-iw-c:has(.infowindowCard):focus-visible {
    outline: none;
}
.gm-style .gm-style-iw-c:has(.infowindowCard) {
    padding: 0 !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, .25), 0 8px 24px -6px rgba(0, 0, 0, .2) !important;
}
.gm-style .gm-style-iw-c:has(.infowindowCard) .gm-style-iw-d {
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
.gm-style .gm-style-iw-c:has(.infowindowCard) .gm-style-iw-chr {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 3;
    height: auto !important;
}
#map-canvas .gm-style .gm-style-iw-c:has(.infowindowCard) .gm-style-iw-chr button.gm-ui-hover-effect {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .92) none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25) !important;
    opacity: 1 !important;
}
#map-canvas .gm-style .gm-style-iw-c:has(.infowindowCard) .gm-style-iw-chr button.gm-ui-hover-effect:hover {
    background: #fff none !important;
}
#map-canvas .gm-style .gm-style-iw-c:has(.infowindowCard) .gm-style-iw-chr button.gm-ui-hover-effect span {
    display: none !important;
}
#map-canvas .gm-style .gm-style-iw-c:has(.infowindowCard) .gm-style-iw-chr button.gm-ui-hover-effect::before {
    content: "\f00d";   /* xmark */
    position: absolute;
    inset: 0;
    font: 300 15px/28px "Font Awesome 7 Pro";
    text-align: center;
    color: var(--gray-700, #495057);
}
.gm-style-iw-d .infowindowCard {
    box-sizing: border-box;
    width: 310px;   /* Street View + Photosheet + Photos need 305px on one line */
    max-height: none !important;   /* grow to fit rather than scroll; Google still caps the box at the map's height */
    overflow: visible !important;
    color: var(--gray-800, #343a40) !important;
    font-size: 12.5px;
    white-space: normal !important;
}
.gm-style-iw-d .infowindowCard > * {
    max-width: none !important;
}
.gm-style-iw-d .infowindowCard .index {
    padding: 8px 14px 0;
}
/* photo band */
.gm-style-iw-d .infowindowCard .markerImageDiv {
    position: relative;
    background: var(--gray-200, #eaf0f6);
}
.gm-style-iw-d .infowindowCard .markerImageDiv:empty {
    display: none;
}
.gm-style-iw-d .infowindowCard .markerImageDiv > strong,
.gm-style-iw-d .infowindowCard .markerImageDiv > br {
    display: none;
}
.gm-style-iw-d .infowindowCard .markerImageDiv img.infowindowImage {
    position: static !important;
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 158px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    object-fit: cover;
}
/* photo loading: the app's Font Awesome spinner (buildInfowindowCard / populateMarkerImage), centred in a band of
   the photo's height so the card does not jump when the photo lands; the src-less <img> waits out of sight */
.gm-style-iw-d .infowindowCard .markerImageDiv:has(> .infowindowPhotoSpinner) {
    min-height: 158px;
}
.gm-style-iw-d .infowindowCard .markerImageDiv:has(> .infowindowPhotoSpinner) > img.infowindowImage {
    visibility: hidden;
}
.gm-style-iw-d .infowindowCard .markerImageDiv > .infowindowPhotoSpinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* outside the card (sidebar pin info) the spinner just sits centred where the photo will go */
.infowindowPhotoSpinner {
    display: block;
    padding: 16px 0;
    text-align: center;
    font-size: 2rem;   /* the size of the site's ring spinner (.page-loading-spinner) */
    line-height: 1;
    color: var(--primary, #0f6e8c);
}
/* header */
.gm-style-iw-d .infowindowCard .infowindowHeader {
    padding: 12px 14px 8px;
}
.gm-style-iw-d .infowindowCard .infowindowTitle {
    padding-right: 26px;   /* clear of the close button when there is no photo */
    font: 600 14.5px/19px 'Open Sans', Arial, Helvetica, sans-serif;
    color: var(--gray-900, #212529);
    /* a vendor's whole paragraph can be the location name: 3 lines, the rest in the tooltip (buildInfowindowCard) */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
.gm-style-iw-d .infowindowCard .markerImageDiv:not(:empty):not(.infowindowNoPhoto) ~ .infowindowHeader .infowindowTitle {
    padding-right: 0;
}
/* the server's "photo not available" placeholder: no band (buildInfowindowCard adds the class) */
.gm-style-iw-d .infowindowCard .markerImageDiv.infowindowNoPhoto {
    display: none !important;
}
.gm-style-iw-d .infowindowCard .infowindowSubtitle {
    margin-top: 2px;
    font-size: 12px;
    color: var(--gray-600, #6c757d);
}
.gm-style-iw-d .infowindowCard .infowindowSubtitle > span:not([style*="none"]) ~ span:not([style*="none"])::before {
    content: "\00b7";
    margin: 0 5px;
}
/* label / value rows */
.gm-style-iw-d .infowindowCard .infowindowRow {
    display: grid;
    grid-template-columns: 136px 1fr;   /* "Vendor Inventory #", "Location Description" fit on one line at semibold */
    gap: 8px;
    padding: 3px 14px;
    line-height: 17px;
}
.gm-style-iw-d .infowindowCard .infowindowRow[style*="none"],
.gm-style-iw-d .infowindowCard .infowindowInHeader {
    display: none !important;
}
.gm-style-iw-d .infowindowCard .infowindowLabel {
    color: var(--gray-600, #6c757d);
    font-weight: 600;   /* semibold labels, as elsewhere on the site */
}
.gm-style-iw-d .infowindowCard .infowindowValue {
    overflow-wrap: anywhere;
}
/* No keyboard focus ring on the map, its pins or its popups while it is being used with a mouse (mapping-common.js
   toggles body.mapPointerMode): closing a popup with Esc returns focus to its pin, and Esc being a key press would
   otherwise outline that pin. Tab / arrows / Enter / Space drop the class, so keyboard users keep the ring. */
body.mapPointerMode #map-canvas:focus,
body.mapPointerMode #map-canvas :focus {
    outline: none !important;
}
/* Long values (vendor paragraphs pasted into Cross Street, Description...) stop at 3 lines. The text itself is the
   control: addInfowindowMoreToggles puts a chevron on the end of the last visible line of any value that is cut off
   (over a fade), and a click on the text or the chevron expands it in place; once expanded the chevron flips up and
   drops under the text. Clamping beats a scroll box inside the popup: no wheel tug-of-war with map zoom, and the cut
   is visible. */
.gm-style-iw-d .infowindowCard .infowindowRow > .infowindowValue:not(.infowindowExpanded) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
/* label, value and chevron get explicit cells, so the chevron shares the value's cell instead of bumping the text */
.gm-style-iw-d .infowindowCard .infowindowRow:has(> .infowindowClampable) > .infowindowLabel {
    grid-row: 1;
    grid-column: 1;
}
.gm-style-iw-d .infowindowCard .infowindowRow > .infowindowValue.infowindowClampable {
    grid-row: 1;
    grid-column: 2;
    cursor: pointer;
}
.gm-style-iw-d .infowindowCard .infowindowMoreToggle {
    grid-row: 1;
    grid-column: 2;
    align-self: end;
    justify-self: end;
    padding-left: 28px;
    line-height: 17px;
    font-size: 11px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--white, #fff) 45%);
}
.gm-style-iw-d .infowindowCard .infowindowMoreToggle.infowindowExpandedToggle {
    grid-row: 2;
    margin-top: -4px;
    background: none;
}
.gm-style-iw-d .infowindowCard > .text-primary,
.gm-style-iw-d .infowindowCard > .addToCartDiv {
    padding: 4px 14px;
}
/* action row */
.gm-style-iw-d .infowindowCard .infoWindowActions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 8px 10px 10px;
    border-top: 1px solid var(--gray-200, #eaf0f6);
}
.gm-style-iw-d .infowindowCard .infoWindowActions > div {
    margin: 0 !important;    /* layout.css centres .ds_STREETVIEW / .ds_ADDTORFP with auto margins */
    padding: 0 !important;   /* ...and pads them 23px for the old icon column */
    text-align: left !important;
}
.gm-style-iw-d .infowindowCard .infoWindowActions > div[style*="none"] {
    display: none !important;
}
.gm-style-iw-d .infowindowCard .infoWindowActions > div > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--gray-700, #495057) !important;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none !important;
}
.gm-style-iw-d .infowindowCard .infoWindowActions > div > a:hover {
    background: var(--gray-100, #f1f3f5);
}
.gm-style-iw-d .infowindowCard .infoWindowActions > div > a i {
    margin: 0 !important;
    color: var(--settings-accent, var(--primary)) !important;
    font-size: 13px;
}
/* View on the left (Street View, Photosheet: plain links), act on the right on their own line (Add to RFP /
   Proposal / folder, Mark Out / In / Remove: outlined buttons). The ::before is a full-width flex item that forces
   the line break between the two groups; the buttons then fill their line. */
.gm-style-iw-d .infowindowCard .infoWindowActions::before {
    content: '';
    order: 3;
    flex-basis: 100%;
    height: 0;
}
.gm-style-iw-d .infowindowCard .infoWindowActions > .ds_STREETVIEW {
    order: 1;
}
.gm-style-iw-d .infowindowCard .infoWindowActions > .ds_IMAGE {
    order: 2;
}
.gm-style-iw-d .infowindowCard .infoWindowActions > :is(.ds_ADDTORFP, .ds_ADDTOPROPOSAL) {
    order: 4;
}
.gm-style-iw-d .infowindowCard .infoWindowActions > .infowindowMarkAction {
    order: 5;
}
/* "Add to..." menu (2+ targets): a button like Mark Out with a menu opening upward over the card. */
.gm-style-iw-d .infowindowCard .infoWindowActions > .infowindowAddMenu {
    position: relative;
}
.gm-style-iw-d .infowindowCard .infowindowAddMenu .infowindowAddCaret {
    margin-left: 2px !important;
    color: var(--gray-600, #6c757d) !important;
    font-size: 10px !important;
}
.gm-style-iw-d .infowindowCard .infowindowAddMenuList {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 4px);
    z-index: 5;
    min-width: 170px;
    padding: 4px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, .25), 0 8px 24px -6px rgba(0, 0, 0, .2);
}
.gm-style-iw-d .infowindowCard .infowindowAddMenu.open .infowindowAddMenuList {
    display: block;
}
.gm-style-iw-d .infowindowCard .infowindowAddMenuList > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    color: var(--gray-800, #343a40) !important;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none !important;
}
.gm-style-iw-d .infowindowCard .infowindowAddMenuList > a:hover {
    background: var(--gray-100, #f1f3f5);
}
.gm-style-iw-d .infowindowCard .infowindowAddMenuList > a i {
    margin: 0 !important;
    color: var(--settings-accent, var(--primary)) !important;
}
/* Google's content box scrolls (overflow:auto), which would clip the open menu */
.gm-style .gm-style-iw-c:has(.infowindowAddMenu.open) .gm-style-iw-d {
    overflow: visible !important;
}
/* The buttons share their line equally (Redmine #18562 feedback: right-aligned they looked scrunched); a lone button
   spans the card. */
.gm-style-iw-d .infowindowCard .infoWindowActions > :is(.ds_ADDTORFP, .ds_ADDTOPROPOSAL, .infowindowMarkAction, .infowindowAddMenu) {
    flex: 1 1 0;
    min-width: max-content;   /* a long label wraps the row instead of truncating */
}
.gm-style-iw-d .infowindowCard .infoWindowActions > :is(.ds_ADDTORFP, .ds_ADDTOPROPOSAL, .infowindowMarkAction) > a {
    display: flex;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid var(--border-color, #ced4da);
    color: var(--gray-800, #343a40) !important;
    font-weight: 600;
}
.gm-compass, button.gm-compass-needle, button.gm-compass-turn, .gm-compass-needle img {
    background: transparent !important;
}
button.gm-compass-needle {
    left: 6px;
}
button.gm-compass-turn-opposite {
    left: -6px;
}
/* Checkbox, Street View and Action headers don't sort (sorter-false in map.jspx); the table's pointer cursor (rows are
   clickable) made them look clickable anyway. */
.markerDetail th.sorter-false {
    cursor: default;
}
.markerDetail th.sorter-false input[type=checkbox] {
    cursor: pointer;
}
/* Mark Out / Mark In / Remove in the Locations table: same as the Action column of the site's list tables (e.g.
   /d/buyer/rfp/list: `font-weight-bold color-primary`), not the default cyan link. */
.markerDetail td.action a {
    color: var(--primary);
    font-weight: 600;
}
.markerDetail .disabledAction {
    color:var(--gray-400) !important;
    text-decoration: none;
    cursor: default;
}

#mapSideBarContainer[x-show-sidebar="true"] #sideBar {
    display: block !important;
    width: 420px;
    box-sizing: border-box;
    background-color: white;
    padding: 8px;
    background-color: var(--gray-100)
}

#markerDetailScrollTab[x-show-sidebar="true"] {
    margin-left: 338px;
}

#mapSideBarContainer[x-show-sidebar="true"] #mapContainer {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

#mapSideBarContainer[x-show-sidebar="true"] .ds_IMAGE.markerImageDiv {
    max-width: inherit !important;
    margin-top: 10px;
    margin-bottom: 12px;
    order: -1;
}

#mapSideBarContainer[x-show-sidebar="true"] .infowindowContent {
    max-height: 1000px !important;
    display: flex;
    flex-direction: column;
}

#mapSideBarContainer[x-show-sidebar="true"] .infowindowContent .infoWindowActions {
    display: flex;
    flex-flow: wrap;
    order: -1;
    margin-bottom: 12px;
    max-width: inherit !important;
}

#mapSideBarContainer[x-show-sidebar="true"] .infowindowContent .index {
    order: -1;
    display: block !important;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}

#mapSideBarContainer[x-show-sidebar="true"] .infowindowContent .infoWindowActions div {
    margin: 0px;
    padding-left: 0px;
    padding-right: 1px;
}

#mapSideBarContainer[x-show-sidebar="true"] .infowindowContent .infoWindowActions div:not(:last-of-type)::after {
    content: '|';
    color: var(--link-color)
}

#mapSideBarContainer[x-show-sidebar="true"] .infowindowContent .infowindowImage[src*="gallery"] {
    max-width: inherit !important;
    width: 100%;
    margin: 0px;
    left: auto;
}

#mapSideBarContainer[x-show-sidebar="true"] .infowindowContent .ds_COMMB_ID {
    order: -2;
    text-align: center;
    font-size: 16px;
}

#mapSideBarContainer[x-show-sidebar="true"] .infowindowContent .markerImageDiv strong {
    display: none;
}

#mapSideBarContainer[x-show-sidebar="true"] {
    display: flex;
}

#mapSideBarContainer #sideBar #noLocationSelected {
    text-align: center;
    margin-top: 10px;
}

#mapSideBarContainer #sideBar #locationSelected {
    padding-top: 10px;
}

.audienceShading label:last-child {
    margin-bottom: 8px;
    padding-bottom: 5px;
}

#audiencePicker h4 {
    background: inherit;
    font-size: 12px;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

#audiencePicker .panel-heading {
    display: none;
}

.audienceMenu label {
    width: auto;
}

#audiencePicker .audiencePicker .audienceMenu > span {
    clear: both !important;
    float: left;
    margin-left: 0px;
}

#audiencePicker .audiencePicker .audienceMenu > span > a:last-child {
    margin-left: 21px;
}

#audiencePicker .audiencePicker .select2.select2-container {
    top: 7px;
}

#audiencePicker .audiencePicker {
    margin-top: 10px;
}

#settingsContent .content.audienceShading {
    padding-bottom: 7px !important;
}

#settingsContent .content .panel {
    margin-bottom: 0px;
}

#audiencePicker .audiencePicker .audienceMenu > label {
    width: auto;
    padding-left: 0px;
    padding-bottom: 5px;
}

.quantileStyles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quantileStyles > div {
    display: inline-block;
    width: 100%;
}

.legendContent {
    margin-bottom: 0.5rem;
}
/* Locations table (Lawrence picked "B · Compact", 2026-11-03): same white chrome as the settings panel and the
   legend, and dense enough to read -- the 208px scroll area showed ~1.5 rows (81px header, 66px rows; the
   header also scrolled away). Rows are ~39px now and the header row is sticky.
   #markerDetailScrollTab is the fixed "Locations 74" tab shown at the window bottom while the real panel is
   scrolled out of view (layouts/map.jspx, mapOnly.jspx, bare-map.jspx), so it gets the same bar.
   layout.css/commb.css paint the bar slate and the chevron a filled link-blue / COMMB-red circle (commb with
   !important), hence the !important colour overrides. */
div.markerDetail {
    border: 0;
    border-radius: 6px 6px 0 0;
    /* the legend / Google controls shadow (0 1px 4px -1px rgba(0,0,0,.3)), flipped upward for a bottom-docked panel */
    box-shadow: 0 -1px 4px -1px rgba(0,0,0,.3);
}
#markerDetailHeaderContainer,
#markerDetailScrollTab {
    background: #fff;
    color: var(--gray-800, #343a40);
}
/* Redmine #18562 (Sandy, 11-06): the collapsed "Locations" tab was a 160x40 sliver at 14.5px that new users could
   miss -- bigger type and a bigger count chip; the tab grows with them (no min-width: it left a gap after the
   chevron). */
#markerDetailHeaderContainer {
    display: flex;
    align-items: center;
    min-height: 0;
    padding: 8px 12px 0 18px;
}
#markerDetailScrollTab {
    border: 0;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 -1px 4px -1px rgba(0,0,0,.3);
    padding: 6px 12px 6px 18px;
}
#markerDetailHeaderContainer h5,
#markerDetailScrollTab h5 {
    float: none;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    margin: 0;
    font: 600 17px/36px 'Open Sans', Arial, Helvetica, sans-serif;
    color: var(--gray-900, #212529);
}
/* Redmine #18562 (Sandy/Maya, 11-07): the tab still read as grey-on-white against the pale map tiles, so it gets
   colour rather than size -- the account's primary colour on a leading pin icon (Regular: it labels a control) and
   a filled count pill, as counts are badged elsewhere (the header bell). */
.markerDetailIcon {
    color: var(--primary, #00698f);
    font-size: 17px;
    margin-right: -2px;
}
.markerDetailCount {
    font-size: 13px;
    font-weight: 600;
    line-height: 22px;
    padding: 0 10px;
    border-radius: 11px;
    background: var(--primary, #00698f);
    color: #fff;
}
/* One-time "find me" pulse on the count (nudgeLocationsCountOnce in mapping-common.js): the pill swells a little and
   a ring in the account colour spreads out and fades. Off for users who ask for reduced motion. */
@keyframes markerDetailCountPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary, #00698f) 55%, transparent); }
    40% { transform: scale(1.18); }
    100% { transform: scale(1); box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary, #00698f) 0%, transparent); }
}
.markerDetailCountPulse {
    animation: markerDetailCountPulse .9s ease-out 1;
}
@media (prefers-reduced-motion: reduce) {
    .markerDetailCountPulse {
        animation: none;
    }
}
#markerDetailHeaderContainer .controlArrow,
#markerDetailScrollTab .controlArrow,
#markerDetailControlArrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    color: var(--gray-700, #495057);
    font-size: 16px;
    transition: background 120ms ease-out;
}
#markerDetailHeaderContainer h5:hover .controlArrow,
#markerDetailScrollTab h5:hover .controlArrow {
    background: var(--gray-100, #f1f3f5) !important;
    border: 0 !important;
}
/* Toolbar: quiet icon + label buttons, right-aligned. The links carry .white (white text for the old slate bar). */
#locationDetailsActions {
    float: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 2px;
    margin: 0 0 0 auto !important;
}
#locationDetailsActions.hide {
    display: none;
}
#locationDetailsActions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px !important;   /* a site rule shrank these to 11px */
    font-weight: 500;
    line-height: 18px;
    color: var(--gray-700, #495057) !important;
    text-decoration: none !important;
    transition: background 120ms ease-out;
}
#locationDetailsActions a:hover {
    background: var(--gray-100, #f1f3f5);
}
#locationDetailsActions a i {
    padding: 0 !important;
    color: var(--gray-500, #adb5bd) !important;
}
/* "Add to..." and "More" menus (initLocationsToolbarMenus): open upward over the map, since the panel sits at the
   bottom of the window. */
#locationDetailsActions .toolbarMenu {
    position: relative;
    display: inline-flex;
}
#locationDetailsActions .toolbarMenu .toolbarMenuCaret {
    margin-left: -2px;
    color: var(--gray-500, #adb5bd) !important;
    font-size: 10px !important;
}
#locationDetailsActions .toolbarMenuList {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 4px);
    z-index: 20;
    min-width: 190px;
    padding: 4px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 6px -1px rgba(0, 0, 0, .25), 0 8px 24px -6px rgba(0, 0, 0, .2);
}
#locationDetailsActions .toolbarMenu.open > .toolbarMenuList {
    display: block;
}
#locationDetailsActions .toolbarMenuList > a,
#locationDetailsActions .toolbarMenuList > span > a {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    white-space: nowrap;
}
#locationDetailsActions .toolbarMenuList > span.toolbarMenu {
    display: block;   /* an "Add to..." menu that overflowed into "More" */
}
#locationDetailsActions .toolbarMenuList > span.toolbarMenu > .toolbarMenuList {
    right: auto;
    left: 100%;
    bottom: 0;
}
div.markerDetail:has(.toolbarMenu.open) {
    overflow: visible !important;
}
#locationDetailsActions a.markSelectedAction {
    color: var(--settings-accent, var(--primary)) !important;
    font-weight: 600;
}
#locationDetailsActions a.markSelectedAction i {
    color: inherit !important;
}
#locationDetailsActions .markSelectedCount {
    padding: 0 7px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--settings-accent, var(--primary)) 12%, white);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 18px;
    font-variant-numeric: tabular-nums;
}
/* Drag handle on the panel's top edge (initMarkerDetailResize): sets --marker-detail-height, which caps the
   table's scroll area (layout.css fixed it at 208px). 75vh is the hard ceiling even if the window shrinks. */
div.markerDetail .markerDetailTabContent {
    max-height: min(var(--marker-detail-height, 208px), 75vh);
}
/* layout.css capped the open panel at 320px (header + the fixed 208px table); the table's own cap now bounds it.
   Its .5em left margin also put the open panel at x=7, 5px left of the search box and legend (x=12, see
   --map-left-column): 11px lines it up, the same as #legend.legend. */
div.markerDetail.markerDetailOpen {
    max-height: none;
    margin-left: 11px;
}
.markerDetailResize {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    height: 10px;
    cursor: ns-resize;
    touch-action: none;
}
.markerDetailResize::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    width: 36px;
    height: 4px;
    margin-left: -18px;
    border-radius: 2px;
    background: var(--gray-300, #d7dfe6);
    transition: background 120ms ease-out;
}
.markerDetailResize:hover::after,
.markerDetailResize:focus-visible::after,
div.markerDetail.markerDetailResizing .markerDetailResize::after {
    background: var(--gray-600, #798892);
}
.markerDetailResize:focus-visible {
    outline: none;
}
div.markerDetail:not(.markerDetailOpen) .markerDetailResize {
    display: none;
}
div.markerDetail.markerDetailResizing {
    user-select: none;
}
#markerDetailContainer {
    margin-top: 0;
    padding: 0;
}
/* Tabs: the settings panel's underline tabs. */
div.markerDetail ul#markerDetailTabs {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0 8px;
    border-bottom: 1px solid var(--border-color);
}
div.markerDetail ul#markerDetailTabs.hide {
    display: none;
}
div.markerDetail ul#markerDetailTabs > li {
    display: block;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0 !important;   /* layout.css `#markerDetailContainer .steps li:last-child` (higher specificity) adds a right border */
    border-radius: 0;
    background: none;
    line-height: normal;
}
div.markerDetail ul#markerDetailTabs > li[style*="none"] {
    display: none;
}
div.markerDetail ul#markerDetailTabs > li > span {
    position: relative;
    display: block;
    height: 38px;
    margin: 0;
    padding: 0 12px;
    border: 0 !important;
    border-radius: 6px 6px 0 0;
    background: none !important;
    font: 500 13px/38px 'Open Sans', Arial, Helvetica, sans-serif;
    color: var(--gray-600, #6c757d);
    white-space: nowrap;
    transition: background 120ms ease-out, color 120ms ease-out;
}
div.markerDetail ul#markerDetailTabs > li > span:hover {
    background: var(--gray-100, #f1f3f5) !important;
    color: var(--gray-800, #343a40);
}
div.markerDetail ul#markerDetailTabs > li > span.current {
    color: var(--settings-accent, var(--primary));
    font-weight: 600;
}
div.markerDetail ul#markerDetailTabs > li > span.current::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--settings-accent, var(--primary));
}
/* Table: light sticky header row, single-line ~39px rows, hover + selected tints. Cells clip with an ellipsis;
   mapping-common.js puts the full text in a tooltip on hover. The header keeps tablesorter's sort-arrow
   background IMAGES, so only background-color is set. */
div.markerDetail .markerDetailTabContent {
    padding: 0 !important;
}
div.markerDetail .markerDetailTabContent table {
    margin: 0 !important;
    border-collapse: separate !important;   /* collapsed borders don't stick with a sticky header */
    border-spacing: 0;
}
div.markerDetail .markerDetailTabContent thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 9px 18px 9px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    background-color: var(--gray-100, #f8f9fa) !important;
    color: var(--gray-600, #6c757d) !important;
    font: 600 12px/16px 'Open Sans', Arial, Helvetica, sans-serif !important;
    text-transform: none;
    white-space: normal;
    vertical-align: middle !important;
}
/* Long headers ("# of Copy Changes Included at No Cost After Initial Install") made their column as wide as the
   whole sentence. Tablesorter wraps each header's text in .tablesorter-header-inner: cap that at 180px and two
   lines; mapping-common.js puts the full text in a tooltip when it is cut off. */
div.markerDetail .markerDetailTabContent thead th .tablesorter-header-inner {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    width: max-content;
    max-width: 180px;
}
/* Sort carets: Font Awesome Solid sort / sort-up / sort-down drawn right after the header text, the same glyphs and
   weight as the Vue lists (VueTablesSortControl.vue) and the JSPX DataTables (start_domedia.css), instead of
   layout.css's cyan PNG pinned to the column's right edge -- on the narrow "#" column that PNG sat against the next
   column's checkbox, so the checkbox column looked sorted. Unsortable headers (sorter-false) get no caret, so the
   carets also show which columns sort. Every sortable header keeps the caret's room, so widths never jump.
   The Asc/Desc rules repeat :not(.sorter-false) to match the base rule's specificity, or its "\f0dc" wins. */
div.markerDetail .markerDetailTabContent thead th.tablesorter-header {
    padding-right: 10px !important;
    background-image: none !important;
}
div.markerDetail .markerDetailTabContent thead th.tablesorter-header:not(.sorter-false) .tablesorter-header-inner {
    position: relative;
    padding-right: 13px;
}
div.markerDetail .markerDetailTabContent thead th.tablesorter-header:not(.sorter-false) .tablesorter-header-inner::after {
    content: "\f0dc";
    position: absolute;
    right: 0;
    bottom: 0;
    font-family: "Font Awesome 7 Pro" !important;
    font-weight: 900 !important;
    font-size: 10px;
    line-height: 16px;   /* the header's line height: sits on the (last) text line */
    color: var(--gray-600, #6c757d);   /* as the DataTables caret: quieter than the sorted one but clears 3:1 */
}
div.markerDetail .markerDetailTabContent thead th.tablesorter-headerAsc:not(.sorter-false) .tablesorter-header-inner::after {
    content: "\f0de";
    color: var(--gray-900, #212529) !important;
}
div.markerDetail .markerDetailTabContent thead th.tablesorter-headerDesc:not(.sorter-false) .tablesorter-header-inner::after {
    content: "\f0dd";
    color: var(--gray-900, #212529) !important;
}
/* Orange RFP/Contract Data headers: carets in the header's white. */
div.markerDetail .markerDetailTabContent thead th.rfpData .tablesorter-header-inner::after {
    color: rgba(255, 255, 255, .6) !important;
}
div.markerDetail .markerDetailTabContent thead th.rfpData:is(.tablesorter-headerAsc, .tablesorter-headerDesc) .tablesorter-header-inner::after {
    color: #fff !important;
}
/* RFP/Contract Data columns stay orange (th.rfpData above) so they tie back to their orange toggles in the
   settings panel; the light header rule would otherwise grey them out. */
div.markerDetail .markerDetailTabContent thead th.rfpData {
    background-color: var(--secondary) !important;
    color: #fff !important;
    border-bottom-color: var(--secondary) !important;
}
/* Links in the header row (e.g. sort links) were white for the old teal header row. */
div.markerDetail .markerDetailTabContent thead th a {
    color: var(--settings-accent, var(--primary)) !important;
    font-weight: 600;
}
/* "Mark Selected Out / In" moved from the Action header to the toolbar (#markSelectedAction, built by
   initMarkSelectedAction in mapping-common.js, shown only while rows are ticked). The header links stay in
   the DOM as the source of the localized label and the empty-selection message. */
div.markerDetail .markerDetailTabContent thead th #markSelectedOut,
div.markerDetail .markerDetailTabContent thead th #markSelectedIn {
    display: none;
}
div.markerDetail .markerDetailTabContent tbody td {
    max-width: 340px;
    padding: 6px 10px !important;
    border: 0 !important;
    border-bottom: 0 !important;
    background: #fff !important;
    color: var(--gray-800, #343a40);
    font-size: 12.5px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle !important;
}
/* Zebra stripes, no row dividers: the site-wide table striping (start_domedia.css: even rows --gray-fill).
   Hover is one step darker than a stripe, and a ticked row's accent tint wins over both. */
div.markerDetail .markerDetailTabContent tbody tr:nth-child(even) td {
    background: var(--gray-fill, #f2f2f2) !important;
}
div.markerDetail .markerDetailTabContent tbody tr:hover td {
    background: var(--gray-200, #eaf0f6) !important;
}
div.markerDetail .markerDetailTabContent tbody tr:has(input[type=checkbox]:checked) td {
    background: color-mix(in srgb, var(--settings-accent, var(--primary)) 9%, white) !important;
}
/* Checkboxes: the settings panel's box (13px, --primary fill with a white tick; orange is reserved for the
   RFP/Contract Data toggles). */
div.markerDetail .markerDetailTabContent input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 13px;
    height: 13px;
    margin: 0;
    vertical-align: middle;
    border: 1px solid var(--gray-500, #9aa3af) !important;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
}
div.markerDetail .markerDetailTabContent input[type=checkbox]:checked {
    border: 0 !important;
    background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Cpath d='M3 6.8 5.4 9.2 10 4.2' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
}
/* Street View button (getCanEditPanoramaIcon): outlined icon button; a green dot = orientation snapshot saved. */
a.streetViewButton {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: transparent;
    color: var(--settings-accent, var(--primary));
    font-size: 14px;
    text-decoration: none !important;
    transition: background 120ms ease-out;
}
a.streetViewButton:hover {
    background: color-mix(in srgb, var(--settings-accent, var(--primary)) 8%, white);
}
/* Stays navy on hover instead of the site's teal link hover. The page's inline `a:hover:not(.button)` has the same
   specificity as a.streetViewButton:hover and loads later, so this needs the extra .markerDetail. */
.markerDetail a.streetViewButton:hover {
    color: var(--settings-accent, var(--primary));
}
a.streetViewButton.panoramaSaved::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success, #22a06b);
    box-shadow: 0 0 0 2px #fff;
}
