/* divisions_sales.css — drilldown styles, mirrors .gl-division-card visual.
   Locked tokens: card bg rgba(255,255,255,0.92); border-radius 12px;
   theme color #191A1A; bar/accent #1976D2.
   ALL CAPS singular titles applied via existing .gdc-title rules. */

/* Breadcrumb nav above the grid.
   Use html/body prefix + !important to win specificity over the
   global v2008be.* layers that style .gl-divisions-view children. */
html body .ds-view .ds-crumbs,
html body .gl-divisions-view .ds-crumbs {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 4px 0 16px 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  color: rgba(25, 26, 26, 0.7) !important;
  letter-spacing: 0.02em !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html body .ds-view .ds-crumbs ol {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0 !important;
}
html body .ds-view .ds-crumbs li {
  display: inline-flex !important;
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
}
html body .ds-view .ds-crumbs a {
  color: #1976D2 !important;
  text-decoration: none !important;
  border-radius: 6px !important;
  padding: 3px 8px !important;
  font-weight: 500 !important;
  transition: background-color 120ms ease, color 120ms ease;
}
html body .ds-view .ds-crumbs a:hover {
  background: rgba(25, 118, 210, 0.10) !important;
  color: #1976D2 !important;
}
html body .ds-view .ds-crumbs span[aria-current="page"] {
  padding: 3px 8px !important;
  color: #191A1A !important;
  font-weight: 600 !important;
  background: transparent !important;
}
html body .ds-view .ds-crumbs .ds-crumb-sep {
  display: inline-block !important;
  margin: 0 4px !important;
  color: rgba(25, 26, 26, 0.34) !important;
  user-select: none !important;
}

/* "Dim" / coming-soon variant of division card */
.gl-division-card--dim {
  cursor: default;
  opacity: 0.62;
  pointer-events: none;
  filter: saturate(0.6);
}
.gl-division-card--dim .gdc-cta {
  color: rgba(25, 26, 26, 0.5);
}

/* Dark Knights iframe wrapper -- full-bleed, fills viewport below header.
   Uses --bg-card / --border-card tokens so the wrapper matches the rest
   of the cards across dark, light, and OG themes. The DK app itself
   inside the iframe paints its own light theme regardless. */
.ds-dk-frame-wrap {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 220px);
  background: var(--bg-card, rgba(255, 255, 255, 0.92));
  border: 1px solid var(--border-card, rgba(25, 26, 26, 0.06));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card, 0 1px 2px rgba(25, 26, 26, 0.04));
}
.ds-dk-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 220px);
  border: 0;
  background: #fafaf7; /* matches DK app theme */
}

/* Mobile breakpoint -- breadcrumbs collapse to scrollable row */
@media (max-width: 720px) {
  .ds-crumbs ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ds-crumbs ol::-webkit-scrollbar { display: none; }
  .ds-dk-frame-wrap,
  .ds-dk-frame {
    min-height: calc(100vh - 180px);
  }
}

/* 2026-05-07: Fullscreen toggle button on Dark Knights iframe.
   Floats top-right corner of .ds-dk-frame-wrap. Click toggles
   browser-native fullscreen via Fullscreen API, with CSS-class
   fallback for environments where it's blocked. */
.ds-dk-frame-wrap {
  position: relative;
}
.ds-dk-fullscreen-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(25, 26, 26, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #191A1A;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(25, 26, 26, 0.10);
  transition: background-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
  -webkit-appearance: none;
  appearance: none;
}
.ds-dk-fullscreen-btn:hover {
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(25, 26, 26, 0.16);
  transform: translateY(-1px);
}
.ds-dk-fullscreen-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(25, 26, 26, 0.12);
}
.ds-dk-fs-icon {
  flex: 0 0 auto;
}
.ds-dk-fs-icon--collapse { display: none; }
.ds-dk-fs-icon--expand { display: inline; }
.ds-dk-frame-wrap--fs .ds-dk-fs-icon--expand { display: none; }
.ds-dk-frame-wrap--fs .ds-dk-fs-icon--collapse { display: inline; }
.ds-dk-fs-label { white-space: nowrap; }

/* Fullscreen state: take over the viewport entirely (CSS fallback +
   browser-native both end up with this class via _wireDkFullscreen). */
.ds-dk-frame-wrap--fs {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 99999 !important;
  background: #000 !important;
}
.ds-dk-frame-wrap--fs .ds-dk-frame {
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  border-radius: 0 !important;
}

/* Hide buttons gracefully on tiny viewports, keep functionality */
@media (max-width: 480px) {
  .ds-dk-fs-label { display: none; }
  .ds-dk-fullscreen-btn { padding: 7px 9px; }
}

/* 2026-05-07: Center the chips/cards in the Sales drilldown grids
   (sales index, inside, outside). Cards stay at their natural width
   but the row centers itself when there are 1-3 cards. */
.ds-view .gl-divisions-grid {
  justify-content: center;
  justify-items: center;
}
.ds-view .gl-division-card {
  margin-left: auto;
  margin-right: auto;
}

/* Theme-aware fullscreen button text on light/og still readable
   (dark text on white is fine; just ensure dark theme still readable). */
[data-app-theme="dark"] .ds-dk-fullscreen-btn {
  background: rgba(31, 33, 33, 0.94);
  color: #EAEBEC;
  border-color: rgba(255, 255, 255, 0.12);
}
[data-app-theme="dark"] .ds-dk-fullscreen-btn:hover {
  background: #1F2121;
}
