/* The dashboards' blue bar (Oct 31, 2026; two rows since Nov 19, 2026). Row 1: Month, Deal type, the period, then the
   Stores pick and Reset filters on the right. Row 2: search and Saved views, with the two biggest deals beside them in
   two short lines each (the rest shows on hover). A narrower screen puts the biggest deals on a third row. */
.fid-top.db-bar, .fid-top.db-bar.db-has-big { grid-template-columns: max-content minmax(0, 1fr); }
.fid-top.db-bar .db-r1 { grid-column: 1; grid-row: 1; }
.fid-top.db-bar .db-r2 { grid-column: 2; grid-row: 1; justify-content: flex-end; }
.fid-top.db-bar .db-r3 { grid-column: 1 / span 2; grid-row: 2; }
.fid-top.db-bar .fid-bigtop { grid-column: 1 / span 2; grid-row: 3; flex-direction: row; flex-wrap: wrap; gap: 6px 24px; max-width: none; padding: 6px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.fid-top.db-bar .fid-bigtop .fib { width: 290px; max-width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: baseline; }
.fid-top.db-bar .fid-bigtop .fib strong { font-size: 15px; }
.fid-top.db-bar .fid-bigtop .fib-who { grid-column: 1 / -1; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.fid-top.db-bar .fid-bigtop .fib-who span + span::before { content: "·"; margin: 0 6px; opacity: .6; }
@media (min-width: 1180px) {
  .fid-top.db-bar.db-has-big { grid-template-columns: max-content minmax(0, 1fr) auto; }
  .fid-top.db-bar.db-has-big .db-r2 { grid-column: 2 / span 2; }
  .fid-top.db-bar.db-has-big .db-r3 { grid-column: 1 / span 2; }
  .fid-top.db-bar.db-has-big .fid-bigtop { grid-column: 3; grid-row: 2; flex-wrap: nowrap; padding: 0 0 0 16px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .25); }
  html.rt-v2 .fid-top.db-bar.db-has-big .fid-bigtop { border-top: 0 !important; border-left: 1px solid var(--rt-line-2); }
}
@media (max-width: 760px) {
  .fid-top.db-bar, .fid-top.db-bar.db-has-big { grid-template-columns: minmax(0, 1fr); }
  .fid-top.db-bar .db-r1, .fid-top.db-bar .db-r2, .fid-top.db-bar .db-r3, .fid-top.db-bar .fid-bigtop { grid-column: 1; grid-row: auto; }
  .fid-top.db-bar .fid-bigtop .fib { width: auto; flex: 1 1 200px; }
}

/* the Stores pick: a button that opens a checklist */
.sd-dd { position: relative; display: inline-flex; }
.sd-ddb { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 9px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 8px; background: rgba(255, 255, 255, .1); color: #fff; font: 500 12.5px Roboto, Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.sd-ddb:hover, .sd-dd.open .sd-ddb { background: rgba(255, 255, 255, .2); border-color: #fff; }
.sd-ddb:focus-visible { outline: 2px solid #FFD966; outline-offset: 2px; }
.sd-ddb b { font-weight: 700; margin-left: 3px; }
.sd-ddl { letter-spacing: .01em; }
.sd-dds { display: inline-flex; }
.sd-dds .sd-dot { width: 9px; height: 9px; border-radius: 50%; margin: 0 -2px 0 0; box-shadow: 0 0 0 1.5px var(--brand, #1F3A93); }
.sd-ddc { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.sd-dd.open .sd-ddc { transform: rotate(180deg); }
.sd-ddp { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 230px; padding: 6px; background: #fff; border: 1px solid #D5DBE7; border-radius: 10px; box-shadow: 0 12px 30px rgba(27, 35, 51, .18); display: flex; flex-direction: column; gap: 1px; }
.sd-ddp[hidden] { display: none; }
.sd-ddi { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 10px; border: 0; border-radius: 7px; background: none; color: #1B2333; font: 400 13.5px Roboto, Arial, sans-serif; text-align: left; cursor: pointer; }
.sd-ddi:hover { background: #F1F4FA; }
.sd-ddi:focus-visible { outline: 2px solid var(--brand, #1F3A93); outline-offset: -2px; }
.sd-ddi .sd-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; margin: 0; }
.sd-ck { flex: none; width: 16px; height: 16px; border: 1.5px solid #9AA3B5; border-radius: 4px; display: grid; place-items: center; }
.sd-ddi[aria-pressed="true"] .sd-ck { background: var(--brand, #1F3A93); border-color: var(--brand, #1F3A93); }
.sd-ddi[aria-pressed="true"] .sd-ck::after { content: ''; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.sd-ddall { font-weight: 600; }
.sd-ddall[aria-disabled="true"] { cursor: default; }
.sd-ddall[aria-disabled="true"]:hover { background: none; }
.sd-ddsep { height: 1px; background: #E1E5EE; margin: 4px 2px; }
/* Take it to the Bank's pick (Nov 19, 2026): the button looks like the logs' store drop-down; in it, Clear all beside
   All stores, then brands, regions and stores */
.sd-dd.sd-dd-sf .sd-ddb { height: auto; min-width: 190px; justify-content: space-between; gap: 10px; padding: 6px 12px; border: 1px solid #C9D1DA; border-radius: 8px; background: #fff; color: #1B2333; font: 600 14px Roboto, Arial, sans-serif; }
.sd-dd.sd-dd-sf .sd-ddb:hover, .sd-dd.sd-dd-sf.open .sd-ddb { border-color: var(--brand, #1F3A93); background: #fff; }
.sd-dd.sd-dd-sf .sd-ddb:focus-visible { outline: 2px solid var(--brand, #1F3A93); outline-offset: 2px; }
.sd-dd.sd-dd-sf .sd-ddc { width: 14px; height: 14px; color: #5B6475; }
.sd-ddp-g { max-height: min(72vh, 600px); overflow-y: auto; }
.sd-ddtop { display: flex; align-items: center; gap: 4px; }
.sd-ddtop .sd-ddall { flex: 1; }
.sd-ddclr { flex: none; padding: 6px 9px; border: 0; border-radius: 7px; background: none; color: var(--brand, #1F3A93); font: 500 12.5px Roboto, Arial, sans-serif; cursor: pointer; white-space: nowrap; }
.sd-ddclr:hover { background: #F1F4FA; text-decoration: underline; }
.sd-ddclr:focus-visible { outline: 2px solid var(--brand, #1F3A93); outline-offset: -2px; }
.sd-ddclr:disabled { color: #9AA3B5; cursor: default; background: none; text-decoration: none; }
.sd-ddh { padding: 6px 10px 2px; color: #5B6475; font: 600 11px Roboto, Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
/* Brands, Regions and Stores fold (Nov 20, 2026) */
.sd-ddfold { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; padding: 7px 10px 4px; color: #5B6475; font: 600 11px Roboto, Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; border-radius: 6px; }
.sd-ddfold:hover { background: #F1F4FA; color: #1B2333; }
.sd-ddfold:focus-visible { outline: 2px solid var(--brand, #1F3A93); outline-offset: -2px; }
.sd-ddfold svg { width: 10px; height: 10px; flex: none; transition: transform .15s; }
.sd-ddfold[aria-expanded="true"] svg { transform: rotate(90deg); }
.sd-ddhn { margin-left: auto; font-weight: 500; letter-spacing: 0; color: #8A93A5; }
.sd-ddgrp { display: flex; flex-direction: column; gap: 1px; }
.sd-ddgrp[hidden] { display: none; }
.sd-ddn { margin-left: auto; color: #8A93A5; font-size: 11.5px; }
.sd-ddi[aria-pressed="mixed"] .sd-ck { border-color: var(--brand, #1F3A93); }
.sd-ddi[aria-pressed="mixed"] .sd-ck::after { content: ''; width: 8px; height: 2px; border-radius: 1px; background: var(--brand, #1F3A93); }
.sd-dd-lt .sd-ddb { color: var(--brand, #1F3A93); border-color: #C9CFDA; background: #fff; }
.sd-dd-lt .sd-ddb:hover, .sd-dd-lt.open .sd-ddb { border-color: var(--brand, #1F3A93); background: #F1F4FA; }

/* Reset filters, inside the blue bar beside the Stores pick */
.fid-top.db-bar .app-reset { height: 30px; padding: 0 12px 0 10px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 8px; background: transparent; color: #fff; font: 500 12.5px Roboto, Arial, sans-serif; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; margin: 0; }
.fid-top.db-bar .app-reset:hover { background: rgba(255, 255, 255, .2); border-color: #fff; color: #fff; }
.fid-top.db-bar .app-reset.done { background: #E6F4EA; border-color: #E6F4EA; color: #1E8449; }
.fid-top.db-bar .app-reset:focus-visible { outline: 2px solid #FFD966; outline-offset: 2px; }

/* the dashboards that scroll with the page (F&I, Recon) keep their views row in sight, as the Sales dashboard does;
   the blue bar scrolls away with the page (Oct 31, 2026) */
html.on-dash:not(.phone) .lp-head { position: sticky; top: 0; z-index: 12; background: var(--lp-bg, #F4F6FA); }
