/* CSS Resets & Base Defaults */
html {
  position: relative;
  min-height: 100%;
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* Framework Overrides (Bootstrap/Carbon) */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.action-button {
  width: 120px;
}

.action-button::part(button) {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.header-branding {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 29px;
  height: 48px;
  cursor: pointer;
}

.header-logo {
  height: 20px;
  width: auto;
  margin-bottom: 2px;
}

.header-title {
  font-size: 14px;
  font-weight: 400;
  color: #f4f4f4;
  white-space: nowrap;
}

/* Prevent flickering of header buttons on page load */
.header-actions {
  display: none;
}

/* Show header actions once the custom elements are defined/initialized */
.header-actions:has(cds-button:defined) {
  display: flex;
}

.header-actions cds-button:not(:defined) {
  visibility: hidden;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  padding-right: 29px;
  height: 48px;
}

.header-link {
  color: #f4f4f4;
  text-decoration: none;
  font-size: 14px;
  padding: 11px 16px;
  height: 48px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.header-link:hover {
  background-color: #e0e0e0;
  color: #161616;
}

.header-button {
  background: transparent;
  border: 1px solid #8d8d8d;
  color: #161616;
  font-size: 14px;
  padding: 7px 16px;
  height: auto;
  margin-top: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 400;
}

.header-button:hover {
  background-color: #e0e0e0;
}

.header-button-primary {
  background-color: #0f62fe;
  border-color: #0f62fe;
  color: #ffffff;
}

.header-button-primary:hover {
  background-color: #0353e9;
}

/* Hide the header and its sub-components until they are defined to prevent blue flickering */
cds-header:not(:defined),
cds-header-nav:not(:defined),
cds-header-menu-button:not(:defined) {
  visibility: hidden;
}

.header-actions {
  display: none;
}

.header-actions:has(cds-button:defined) {
  display: flex;
}

cds-header-nav {
  --cds-background: #222b36;
}

cds-header-nav-item {
  --cds-background: #222b36;
  
  --cds-text-secondary: #ffffff;
  --cds-link-primary: #ffffff;

  transition: all 0.15s ease-in-out;
}

cds-header-nav-item:hover {
  font-weight: 700 !important;
  color: #ffffff !important;
}

cds-header-nav-item::part(link):hover {
  font-weight: 700;
  color: #ffffff;
  background-color: transparent !important;
}

cds-header-nav-item,
cds-header-nav-item::part(link) {
  outline: none !important;
  box-shadow: none !important;
}

cds-header-nav-item::part(link):active,
cds-header-nav-item::part(link):focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background-color: transparent !important;
}

/* Ensure the blue outline ONLY shows when using a keyboard (Accessibility) */
cds-header-nav-item:focus-visible::part(link) {
  outline: 2px solid #0f62fe !important;
  outline-offset: -2px !important;
}

cds-header-nav-item:focus:not(:focus-visible),
cds-header-nav-item:focus:not(:focus-visible)::part(link) {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

[class^="ag-theme-"] .ag-row {
  min-height: unset !important;
}

[class^="ag-theme-"] .ag-cell {
  display: flex !important;
  align-items: center;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  line-height: 1.5 !important;
}

[class^="ag-theme-"] .ag-cell[col-id="Actions"] {
  display: flex !important;
  align-items: center;
}

cds-button {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  display: inline-flex;
}

/* Center text inside Carbon buttons */
cds-button::part(button) {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Shrink the branding title on small screens */
@media (max-width: 768px) {
  .header-branding .header-title {
    font-size: 1rem !important;
  }

 /* .header-branding .header-title span:last-child {
    display: none;
  }*/

  /* Adjust padding for header actions */
  .header-actions {
    padding-right: 8px;
    gap: 4px;
  }

  .header-button {
    padding: 4px 8px;
    font-size: 12px;
  }
}

/* Ensure the Side Nav only interacts with the layout when active */
@media (min-width: 1056px) {
  cds-header-menu-button {
    display: none;
  }
}

/* Prevent flickering of side nav on page load */
cds-side-nav {
  display: none;
}

/* Hide Side Nav and Menu Button on Desktop */
@media (min-width: 1056px) {
  cds-header-menu-button,
  cds-side-nav {
    display: none !important;
  }
}

/* On mobile, ensure side-nav doesn't force itself open 
@media (max-width: 1055px) {
  cds-side-nav:not([expanded]),
  cds-side-nav[expanded="false"] {
    display: none !important;
  }

  cds-side-nav[expanded],
  cds-side-nav[expanded="true"] {
    display: block !important;
    z-index: 9000;
  }
}*/

#productGrid {
  width: 100%;
}

/* AG Grid */
[class^="ag-theme-"] .ag-cell {
  display: flex !important;
  align-items: center;
  padding-left: 12px !important;
  padding-right: 12px !important;
  line-height: 1.5 !important;
}

.grid-toolbar {
    display: flex;
    align-items: center;
    margin: 8px 0 12px;
    padding: 4px 0;
    justify-content: flex-start;
}

    /* makes it �pill-like� instead of full-bleed */
    .grid-toolbar cds-content-switcher {
        width: fit-content;
        max-width: 100%;
        border-radius: 999px;
        overflow: hidden;
    }


#productTabs cds-tabs::part(tab):focus {
    outline: none;
    box-shadow: none;
}

#productTabs cds-tabs::part(tab):focus-visible {
    outline: 2px solid #0F62FE;
    outline-offset: 2px;
}

.logout-link-btn {
  color: #0f62fe;
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 8px 0;
}

.logout-link-btn:hover {
  text-decoration: underline;
}

.manage-account-link {
  color: #0f62fe;
  text-decoration: none;
  font-size: 12px;
  display: block;
  padding: 8px 0;
}

.manage-account-link:hover {
  text-decoration: underline;
}

.user-profile-dropdown hr {
  margin: 12px 0;
  border: 0;
  border-top: 1px solid #e0e0e0;
}

.user-profile-dropdown {
  display: none;
  position: absolute;
  top: 80px;
  right: 0px;
  width: 240px;
  background-color: #f4f4f4;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  z-index: 1000;
  padding: 16px;
  flex-direction: column;
}

.user-profile-dropdown.is-visible {
  display: flex;
}

.user-info {
  margin-bottom: 8px;
}

.user-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  color: #161616;
}

.user-email {
  font-size: 12px;
  color: #525252;
  margin-bottom: 0;
}

.user-profile-dropdown hr {
  margin: 12px 0;
  border: 0;
  border-top: 1px solid #cacaca;
}

.grid-toolbar {
    display: block;
}

.dashboard-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.dashboard-description {
    color: #6f6f6f;
    font-size: 0.875rem;
    max-width: 420px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-row:hover {
    background-color: #f4f4f4;
}

th.actions,
td.actions {
    text-align: right;
}

.btn {
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid transparent;
}

cds-button::part(button) {
    border: 1px solid currentColor;
}

cds-button[kind="primary"]::part(button) {
    border-color: #0f62fe;
}

cds-button[kind="ghost"]::part(button) {
    color: #525252; /* gray 70 */
    border-color: #8d8d8d; /* gray 60 */
}

cds-button[kind="ghost"]:hover::part(button) {
    background-color: #f4f4f4;
}


.ag-cell .actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

/*.quickview-icon {
    padding: 0;
    width: 32px;
    min-width: 32px;
}*/

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* lock icon slightly muted */
.status-pill__icon {
    opacity: 0.8;
}

/* dot only where you want it (if you still want any dot at all) */
/*.status-pill--available::before {
    content: none !important
}*/

.actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* Ghost button but with blue outline */
cds-button.outline-blue::part(button) {
    background: transparent !important;
    border: 1px solid #0f62fe !important;
    color: #0f62fe !important;
}

    /* Hover */
    cds-button.outline-blue::part(button):hover {
        background: rgba(15, 98, 254, 0.08) !important;
    }

/* Make the icon button a neat square */
cds-button.quickview-btn::part(button) {
    width: 36px;
    height: 36px;
    padding: 0 !important;
}

.ag-theme-alpine .ag-cell.reportNameCell {
    font-weight: 600;
    color: #0f172a;
}

/* Base pill  */
.ag-theme-alpine .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0; /* slate-200 */
    background: #f8fafc; /* slate-50 */
    font-size: 12px;
    font-weight: 500;
    color: #334155; /* slate-700 */
    line-height: 1;
}

/* Subscribed stays calm: same pill, just add dot */
.ag-theme-alpine .status-pill--subscribed .status-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #10b981; /* emerald-500 */
}

/* Locked is even quieter */
.ag-theme-alpine .status-pill--locked {
    color: #64748b; /* slate-500 */
}

/* Lock icon: small and muted */
.ag-theme-alpine .status-pill__icon {
    width: 12px;
    height: 12px;
    opacity: 0.75;
}

.ag-theme-alpine .status-pill::before,
.ag-theme-alpine .status-pill::after,
.ag-theme-alpine .status-pill--subscribed::before,
.ag-theme-alpine .status-pill--subscribed::after {
    content: none !important;
}

/* Secondary action icon � quiet by default */
#productGrid cds-button.action-icon::part(button) {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280; /* gray-500 */
    opacity: 0.6;
    transition: background 150ms ease, color 150ms ease, opacity 150ms ease;
}

/* Reveal intent on row hover */
#productGrid .ag-row-hover cds-button.action-icon::part(button) {
    opacity: 1;
    background: #f3f4f6; /* gray-100 */
    color: #374151; /* gray-700 */
}

/* Icon-only secondary action */
#productGrid cds-button.action-icon::part(button) {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0;
  margin-left: 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    opacity: 0.75;
}

#productGrid .ag-row-hover cds-button.action-icon::part(button) {
    opacity: 1;
    background: #f3f4f6;
    color: #374151;
}

#productGrid cds-button.action-icon svg {
    width: 36px !important;
    height: 36px !important;
    display: block;
}

.qv {
    display: grid;
    gap: 14px;
}

.qv__viewer {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 10px;
}

.qv__frame {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    min-height: 220px;
    display: grid;
    place-items: center;
    background: #fff;
}

.qv__main {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    display: block;
}

.qv__placeholder {
    width: 100%;
    height: 220px;
    display: grid;
    place-items: center;
    background: #f4f4f4;
    color: #525252;
}

.qv__nav {
    height: 40px;
    width: 40px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    padding: 0;
}

    .qv__nav:hover {
        background: #f4f4f4;
    }

.qv__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.qv__thumb {
    flex: 0 0 auto;
    width: 76px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 0;
    overflow: hidden;
    scroll-snap-align: center;
    cursor: pointer;
}

    .qv__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .qv__thumb.is-active {
        border-color: #0f62fe;
        box-shadow: 0 0 0 2px rgba(15, 98, 254, 0.18);
    }

.qv__desc {
    margin: 0;
    line-height: 1.4;
}

.qv__frame {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.qv__main {
    width: 100%;
    height: auto; /* keep natural ratio */
    display: block;
    max-height: calc(100vh - 240px);
    object-fit: contain;
}

/* Reduce Carbon modal content padding so the image can breathe */
#quick-view-modal::part(content) {
    padding: 0;
}

.qv {
    padding: 16px 20px 18px;
    display: grid;
    gap: 12px;
}

/* viewer layout */
.qv__viewer {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 10px;
}

/* Frame uses width; height is bounded so it doesn't overflow */
.qv__frame {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #fff;
    min-height: 260px;
    max-height: calc(100vh - 260px);
    display: grid;
    place-items: center;
}

/* MAIN IMAGE: NEVER CROP */
.qv__main {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 260px);
    object-fit: contain; /* key: no crop */
    display: block;
    transition: opacity 160ms ease;
}

    /* Fade effect on change */
    .qv__main.is-fading {
        opacity: 0.2;
    }

/* arrows */

.qv__nav {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative; /* Essential for pseudo-element positioning */
}

.qv__nav::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-left: 2px solid #525252;
  border-bottom: 2px solid #525252;
}

.qv__nav--prev::before {
  transform: rotate(45deg);
  margin-left: 4px; /* Slight horizontal nudge for visual balance */
}

.qv__nav--next::before {
  transform: rotate(-135deg);
  margin-right: 4px; /* Slight horizontal nudge for visual balance */
}

.qv__nav:hover {
  background: #f4f4f4;
}

/* dots */
.qv__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 2px;
}

.qv__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: #c6c6c6;
    cursor: pointer;
    padding: 0;
}

    .qv__dot.is-active {
        background: #0f62fe;
        transform: scale(1.2);
    }

/* description */
.qv__desc {
    margin: 0;
    line-height: 1.4;
}

.dashboard-row > .cds--label {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    letter-spacing: 0.01em;
}


#productGrid cds-button.primary-action-btn::part(button) {
  width: 150px;
  min-width: 150px;
  justify-content: center;
}


/* =========================
   DASHBOARD COMBO CONTROL
========================= */

:root {
    --dash-h: 40px;
    --dash-r: 10px;
    --dash-border: #c6c6c6;
    --dash-bg: #f4f4f4;
    --dash-bg-hover: #e8e8e8;
    --dash-seam: rgba(0,0,0,0.10);
}

/* Mobile banner width - match grid width */
@media (max-width: 480px) {
    .mmrp-banner__grid,
    .mmrp-banner__content {
        width: 358px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}

/* Controls row */
.dashboard-toolbar__controls {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}

/* Combo container */
#dashboardCombo {
    flex: 1 1 auto;
    min-width: 0;
}

    /* Entire field surface */
    #dashboardCombo .dashboard-combo__field {
        display: flex;
        align-items: center;
        width: 30%;
        height: var(--dash-h);
        background: var(--dash-bg);
        border: 1px solid var(--dash-border);
        border-radius: var(--dash-r);
        padding: 0;
        box-sizing: border-box;
    }

        #dashboardCombo .dashboard-combo__field:hover {
            background: var(--dash-bg-hover);
        }

        #dashboardCombo .dashboard-combo__field:focus-within {
            outline: 2px solid #0F62FE;
            outline-offset: 2px;
        }

    /* Left icon */
    #dashboardCombo .dashboard-combo__icon {
        width: var(--dash-h);
        height: var(--dash-h);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        flex-shrink: 0;
    }

    /* Input */
    #dashboardCombo .dashboard-combo__input {
        flex: 1 1 auto;
        min-width: 0;
        height: var(--dash-h);
        padding: 0 12px 0 4px;
        background: transparent;
        border: 0;
        outline: none;
    }

    /* Chevron */
    #dashboardCombo .cds--list-box__menu-icon {
        width: var(--dash-h);
        height: var(--dash-h);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
        border-left: 1px solid var(--dash-seam);
        flex-shrink: 0;
    }


/* =========================
   VIEWER LAYOUT
========================= */

.viewer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.report-frame-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.empty-state,
#reportLoaded {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.empty-state {
    align-items: center;
    justify-content: center;
}

.report-iframe {
    flex: 1;
    width: 100%;
    border: none;
}


.viewer-content {
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack items vertically */
    height: 100%; /* Full height of the parent */
    padding: 0; /* Remove padding if any */
    border: 2px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.report-frame-container {
    flex: 1; /* Allow it to grow and fill available space */
    display: flex; /* Use flexbox for inner elements */
    flex-direction: column; /* Stack inner elements vertically */
    position: relative; /* Position context for absolute elements */
}

.empty-state {
    flex: 1; /* Allow it to fill the available space */
    display: flex; /* Center the content */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*#reportLoaded {
    flex: 1;*/ /* Allow this to fill space */
    /*display: flex;*/ /* Use flex properties for layout */
    /*flex-direction: column;*/ /* Stack elements vertically */
/*}

.report-iframe {
    flex: 1;*/ /* Make the iframe fill the container */
    /*width: 100%;*/ /* Full width */
    /*border: none;*/ /* Remove border */
/*}*/

#reportLoaded, #reportContainer {
    width: 100%;
    max-width: 100%;
}

#reportIframe.report-iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}

/* safest: only for the report area */
#reportLoaded {
    overflow-x: hidden;
}

/* if the scrollbar is on the whole page, use this */
html, body {
    overflow-x: hidden;
}

.report-frame-container {
    flex: 1 1 auto;
    min-width: 0; /* ✅ critical: allow shrinking in a flex row */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* ✅ prevents 1–2px “mystery” overflow */
}

    /* If the iframe is inside this container */
    .report-frame-container > iframe,
    #reportIframe.report-iframe {
        display: block;
        width: 100%;
        max-width: 100%;
        border: 0;
    }

.powerbi-viewer,
#reportLoaded {
    min-width: 0;
}

.report-iframe {
    width: 100%;
    border: none;
    min-height: 600px;
    height: 80vh; /* or flex-fill if you already do that */
}

#reportContainer.loading {
    /* optional loading visual */
}

.viewer-content {
    display: flex; /* if not already */
    width: 100%;
    max-width: 100%;
}

.report-frame-container {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0; /* ✅ critical in flex layouts */
    max-width: 100%;
}

    .report-frame-container iframe {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        border: 0;
    }

.viewer-content,
.report-frame-container {
    overflow-x: hidden;
}


/* Make it look closer to your 2nd screenshot */
.my-quartz-grid {
    /* Quartz uses CSS vars heavily */
    --ag-font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --ag-font-size: 13px;
    --ag-border-color: #e0e0e0;
    --ag-row-border-color: #ececec;
    --ag-background-color: #ffffff;
    --ag-odd-row-background-color: #ffffff; /* keep clean like screenshot */
    --ag-row-hover-color: rgba(0, 0, 0, 0.03);
    --ag-header-background-color: #ffffff;
    --ag-header-foreground-color: #161616; /* Carbon-ish */
    --ag-header-cell-hover-background-color: rgba(0, 0, 0, 0.03);
    --ag-selected-row-background-color: rgba(15, 98, 254, 0.08);
    --ag-range-selection-border-color: #0f62fe;
    --ag-border-radius: 10px;
    /* sizes */
    --ag-header-height: 56px;
    --ag-group-header-height: 44px;
    --ag-floating-filter-height: 52px;
    --ag-row-height: 48px;
    /* checkbox + inputs */
    --ag-control-panel-background-color: #ffffff;
    --ag-input-border-color: #e0e0e0;
    --ag-input-border-radius: 8px;
}

    /* Subtle separators like screenshot */
    .my-quartz-grid .ag-root-wrapper {
        border: 1px solid var(--ag-border-color);
        border-radius: var(--ag-border-radius);
        overflow: hidden;
    }

    /* Center group headers (Participant / Game of Choice / Performance style) */
    .my-quartz-grid .ag-header-group-cell-label {
        justify-content: center;
        font-weight: 600;
    }

    /* Make header labels a bit stronger */
    .my-quartz-grid .ag-header-cell-label {
        font-weight: 600;
    }

    /* Floating filter inputs: nice spacing */
    .my-quartz-grid .ag-floating-filter-input,
    .my-quartz-grid .ag-floating-filter-full-body {
        align-items: center;
    }

    /* Remove the “thick focus” look */
    .my-quartz-grid .ag-cell-focus,
    .my-quartz-grid .ag-cell:focus {
        outline: none !important;
        box-shadow: none !important;
    }

    /* Optional: slightly tighter cell padding like screenshot */
    .my-quartz-grid .ag-cell {
        padding-top: 6px;
        padding-bottom: 6px;
    }



.cds--tab--list {
    display: flex; 
    gap: 0.75rem; 
}



.ag-theme-quartz {
    --ag-header-background-color: #ffffff;
    --ag-background-color: #ffffff;
    --ag-data-background-color: #ffffff;
}

.container-fluid {
    padding-left: 100px;
    padding-right: 100px;
}

/* Modern outlined button with obsidian border */
.cds--btn--primary.btn-obsidian-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 2rem;
    background: #ffffff;
    color: #2f3742;
    border: 2px solid #6f7782;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    box-shadow: none;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

    /* Hover */
    .cds--btn--primary.btn-obsidian-outline:hover {
        background: #f7f7f7;
        border-color: #4f5661;
        color: #1f2933;
    }

    /* Active */
    .cds--btn--primary.btn-obsidian-outline:active {
        background: #ececec;
        border-color: #3f4650;
    }

    /* Focus */
    .cds--btn--primary.btn-obsidian-outline:focus,
    .cds--btn--primary.btn-obsidian-outline:focus-visible {
        outline: 2px solid #0f62fe;
        outline-offset: 2px;
    }

    /* Disabled */
    .cds--btn--primary.btn-obsidian-outline:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.load-data-row {
    display: grid;
    grid-template-columns: minmax(320px, 1.8fr) 160px 160px 132px;
    gap: 1rem;
    align-items: end;
    display: grid;
    grid-template-columns: minmax(320px, 1.8fr) 160px 160px 132px;
    gap: 1rem;
    align-items: end;
}

    /* originator select */
    /*.load-data-row .cds-select-input {
        min-height: 48px;
        border-radius: 8px;

    }*/

    /* date input wrapper */
    .load-data-row .cds-form-item .cds--date-picker-input,
    .load-data-row .cds-form-item input {
        min-height: 48px;
        border-radius: 8px;
    }

    /* button */
    .load-data-row .cds--btn--primary.btn-obsidian-outline {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 1.25rem;
        border-radius: 8px;
        background: #fff;
        color: #161616;
        border: 1px solid #262626;
        text-align: center;
        font-weight: 500;

    }

:root {
    --ctrl-h: 48px;
    --ctrl-border: #727983;
    --ctrl-text: #2d3440;
    --ctrl-bg: #ffffff;
    --ctrl-border-w: 2px;
}

/* Make sizing predictable */
#originatorNameFilter.cds--select-input,
#asOfDateFrom.cds--text-input,
#asOfDateTo.cds--text-input,
button.cds--btn.btn-obsidian-clean {
    box-sizing: border-box;
}

/* Select + date inputs */
#originatorNameFilter.cds--select-input,
#asOfDateFrom.cds--text-input,
#asOfDateTo.cds--text-input {
    height: var(--ctrl-h) !important;
    min-height: var(--ctrl-h) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    background: var(--ctrl-bg) !important;
    color: var(--ctrl-text) !important;
    border: var(--ctrl-border-w) solid var(--ctrl-border) !important;
    border-radius: 0 !important;
    line-height: calc(var(--ctrl-h) - (var(--ctrl-border-w) * 2)) !important;
    box-shadow: none !important;
}

/* Select arrow spacing */
#originatorNameFilter.cds--select-input {
    padding-right: 2.5rem !important;

}

/* Button */
button.cds--btn.btn-obsidian-clean {
    height: var(--ctrl-h) !important;
    min-height: var(--ctrl-h) !important;
    padding: 0 1.5rem !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    color: var(--ctrl-text) !important;
    border: var(--ctrl-border-w) solid var(--ctrl-border) !important;
    border-radius: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

/* Replace your .initial-filters-section and .filters-row styles with this */

/* Fix filters-row to keep everything together, no gap */
.filters-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    align-items: end;
}

/* Originator Name - fixed width */
.filter-item:first-child {
    width: 520px;
    min-width: 520px;
    max-width: 520px;
    flex: 0 0 520px;
}

/* Date inputs - fixed width */
.filter-item:nth-child(2),
.filter-item:nth-child(3) {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
    flex: 0 0 180px;
}

/* Apply Filters button - immediately after dates, no auto margin */
.filter-item:nth-child(4) {
    flex: 0 0 auto;
}

/* Export CSV section - full width row, button pinned to the right */
.filters-section {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}

    /* Remove export-row and filter-item wrappers entirely */

    .filters-section .filter-item {
        margin-right: auto; /* remove the inline margin-left: auto, handle it with justify-content */
    }

.filters-section {
    width: 100%;
    box-sizing: border-box;
}


.grid-container {
    width: 100%;
}

/* Sizing stays the same, just updated selector */
#originatorNameFilter.cds--text-input,
#asOfDateFrom.cds--text-input,
#asOfDateTo.cds--text-input {
    box-sizing: border-box;
    height: var(--ctrl-h) !important;
    min-height: var(--ctrl-h) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important; /* back to symmetrical, no icon */
    background: var(--ctrl-bg) !important;
    color: var(--ctrl-text) !important;
    border: var(--ctrl-border-w) solid var(--ctrl-border) !important;
    border-radius: 0 !important;
    line-height: calc(var(--ctrl-h) - (var(--ctrl-border-w) * 2)) !important;
    box-shadow: none !important;
}

/* Dropdown menu */
#originatorNameFilter-menu {
    position: absolute;
    z-index: 9999;
    width: 100%;
    background: var(--ctrl-bg) !important;
    border: var(--ctrl-border-w) solid var(--ctrl-border) !important;
    border-top: none !important;
    max-height: 240px;
    overflow-y: auto;
    min-width: 920px;
}

/* Anchor the menu to the wrapper */
#originatorComboBox {
    position: relative;
    min-width: 520px;
}

/* Menu items */
#originatorNameFilter-menu .cds--list-box__menu-item {
    color: var(--ctrl-text) !important;
    background: transparent !important;
}

    #originatorNameFilter-menu .cds--list-box__menu-item:hover,
    #originatorNameFilter-menu .cds--list-box__menu-item--highlighted {
        background: var(--ctrl-border) !important;
    }

#originatorNameFilter-menu .cds--list-box__menu-item--active {
    background: var(--ctrl-border) !important;
    font-weight: 600;
}

/* Fixed width — unchanged */
.filter-item:first-child {
    width: 520px;
    min-width: 520px;
    max-width: 520px;
    flex: 0 0 520px;
}

.mmrp-banner {
    padding: 1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.mmrp-banner__shell {
    background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fa 100%);
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.mmrp-banner__grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    width: 100%;
}

/* LEFT */
.mmrp-banner__content {
    padding: 2.25rem 2.5rem 2.25rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(15, 98, 254, 0.05), transparent 24%), linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(248,250,252,0.96) 100%);
}

.mmrp-banner__eyebrow {
    display: inline-block;
    width: fit-content;
    padding: 0.32rem 0.7rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(15, 98, 254, 0.12) 0%, rgba(15, 98, 254, 0.08) 100%);
    border: 1px solid rgba(15, 98, 254, 0.14);
    color: #0f62fe;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(15, 98, 254, 0.10);
}

.mmrp-banner__title {
    margin: 0 0 1rem 0;
    max-width: 42rem;
    color: #161616;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.mmrp-banner__desc {
    max-width: 46rem;
}

.mmrp-banner__desc-block {
    margin: 0 0 0.85rem 0;
    color: #525252;
    line-height: 1.6;
}

    .mmrp-banner__desc-block:last-child {
        margin-bottom: 0;
    }

    .mmrp-banner__desc-block cds-link {
        margin: 0 0.2rem;
    }

/* RIGHT */
.mmrp-banner__aside {
    position: relative;
    border-left: 1px solid #dde5ec;
    background: linear-gradient(180deg, #eef3f8 0%, #e6edf5 100%);
    overflow: hidden;
}

    .mmrp-banner__aside::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(15, 98, 254, 0.09), transparent 28%);
        pointer-events: none;
        z-index: 1;
    }

.mmrp-banner__aside-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mmrp-banner__panel-label {
    margin-bottom: 1rem;
    color: #52667a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mmrp-banner__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.mmrp-banner__stat {
    min-height: 80px;
    padding: 0.85rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(203, 213, 225, 0.95);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mmrp-banner__stat-value {
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.mmrp-banner__stat-label {
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mmrp-banner__trend {
    margin-top: 0.85rem;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: rgba(15, 98, 254, 0.08);
    border: 1px solid rgba(15, 98, 254, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

.mmrp-banner__trend-label {
    margin-bottom: 0.35rem;
    color: #52667a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mmrp-banner__trend-value {
    color: #0f62fe;
    line-height: 1.1;
}

/* GRAPH */
.mmrp-banner__graph-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.mmrp-banner__graph {
    width: 100%;
    height: 100%;
    opacity: 0.55;
}

.mmrp-banner__graph-grid line {
    stroke: rgba(82, 102, 122, 0.14);
    stroke-width: 1;
}

.mmrp-banner__graph-area {
    fill: rgba(15, 98, 254, 0.10);
}

.mmrp-banner__graph-line {
    fill: none;
    stroke: rgba(15, 98, 254, 0.60);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* RESPONSIVE */
@media (max-width: 1056px) {
    .mmrp-banner__grid {
        grid-template-columns: 1fr;
    }

    .mmrp-banner__aside {
        border-left: 0;
        border-top: 1px solid #dde5ec;
    }

    .mmrp-banner__content {
        padding: 2rem 1.5rem;
    }

    .mmrp-banner__aside-content {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .mmrp-banner__stats {
        grid-template-columns: 1fr;
    }
}

/* Mobile: Optimize banner for readability */
@media (max-width: 480px) {
    .mmrp-banner {
        padding: 0.75rem;
        margin-top: 0.75rem;
        margin-bottom: 1.5rem;
        box-sizing: border-box;
    }

    .mmrp-banner__shell {
        width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
    }

    .mmrp-banner__grid {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        box-sizing: border-box;
        min-height: auto;
    }

    .mmrp-banner__content {
        width: 100%;
        padding: 1.25rem 1rem;
        box-sizing: border-box;
        background: linear-gradient(180deg, rgba(251,252,254,0.95) 0%, rgba(244,247,250,0.95) 100%);
    }

    .mmrp-banner__eyebrow {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
        margin-bottom: 0.6rem;
    }

    .mmrp-banner__title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        max-width: 100%;
    }

    .mmrp-banner__desc {
        max-width: 100%;
    }

    .mmrp-banner__desc-block {
        font-size: 0.9rem;
        margin-bottom: 0.65rem;
        line-height: 1.5;
    }
}

/* Desktop: Banner at 2/3 width, left-justified */
@media (min-width: 1056px) {
    .mmrp-banner {
        width: 66.66%;
        margin-left: 0;
        margin-right: auto;
    }

    .mmrp-banner__shell {
        width: 100%;
    }

    .mmrp-banner__grid {
        width: 100%;
    }

    .mmrp-banner__content {
        width: 100%;
    }
}

.dashboard-data-status {
    margin: 0 0 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.dashboard-data-status__header {
    margin-bottom: 1.25rem;
}

.dashboard-data-status__eyebrow {
    display: inline-block;
    width: fit-content;
    padding: 0.28rem 0.65rem;
    margin-bottom: 0.65rem;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(15, 98, 254, 0.12) 0%, rgba(15, 98, 254, 0.08) 100%);
    border: 1px solid rgba(15, 98, 254, 0.14);
    color: #0f62fe;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(15, 98, 254, 0.10);
}

.dashboard-data-status__title {
    margin: 0 0 0.35rem;
    color: #161616;
    font-size: 1.25rem;
    font-family: "IBM Plex Sans";
}

.dashboard-data-status__subtitle {
    margin: 0;
    color: #525252;
}

.dashboard-data-status__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.data-status-card {
    padding: 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #d9e2ec;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04), 0 2px 6px rgba(15, 23, 42, 0.03);
}

.data-status-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.data-status-card__name {
    color: #161616;
    margin: 0;
    font-weight:bold;
}

.data-status-card__main {
    margin-bottom: 0.85rem;
}

.data-status-card__time {
    margin-bottom: 0.2rem;
    color: #1e293b;
    line-height: 1.05;
}

.data-status-card__label {
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-status-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #6b7280;
}

.data-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.data-status-badge--good {
    color: #0e6027;
    background: #defbe6;
    border: 1px solid #a7f0ba;
}

.data-status-badge--warn {
    color: #8e6a00;
    background: #fcf4d6;
    border: 1px solid #f1c21b;
}

.data-status-badge--bad {
    color: #a2191f;
    background: #fff1f1;
    border: 1px solid #fa4d56;
}

@media (max-width: 1056px) {
    .dashboard-data-status__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .dashboard-data-status__grid {
        grid-template-columns: 1fr;
    }
}

