/* The dashboards' blue bar (Oct 31, 2026), tighter. Row 1: Month, Deal type, the period, then the Stores pick and Reset
   filters on the right. Row 2: search and Saved views. Row 3: the two biggest deals side by side (beside the rows instead
   on a wide screen). */
.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: 8px 28px; max-width: none; padding: 8px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.fid-top.db-bar .fid-bigtop .fib { width: 300px; max-width: 100%; }
.fid-top.db-bar .fid-bigtop .fib-who { gap: 0 14px; }
.fid-top.db-bar .fid-bigtop .fib-who span + span::before { content: none; } /* a dot at the start of a wrapped line looked like a stray mark */
/* a wide screen: the biggest deals beside the two rows instead of under them */
@media (min-width: 1680px) {
  .fid-top.db-bar.db-has-big { grid-template-columns: max-content minmax(0, 1fr) auto; }
  .fid-top.db-bar .fid-bigtop { grid-column: 3; grid-row: 1 / span 2; flex-wrap: nowrap; padding: 0 0 0 18px; border-top: 0; border-left: 1px solid rgba(255, 255, 255, .25); }
}
@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; }
.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); }
