/* ---------------------------------------------------------------------------
   wwwroot/css/shared/global/04-grids.css

   Loaded by _Layout.cshtml as part 4 of 17 for every page.
   Cascade order is the file order in that <link> list:
     previous: 03-app-header.css
     next:     05-quick-view.css

   Split out of a single monolithic stylesheet. Do not reorder the <link>
   tags and do not move a rule between these files: both change the cascade.
--------------------------------------------------------------------------- */
[class^="ag-theme-"] .ag-row {
  min-height: unset !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;
}

@media (max-width: 768px) {
  .header-branding .header-title {
    font-size: 1rem !important;
  }

 

  
  .header-actions {
    padding-right: 8px;
    gap: 4px;
  }

  .header-button {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}


@media (min-width: 1056px) {
  cds-header-menu-button {
    display: none;
  }
}


cds-side-nav {
  display: none;
}


@media (min-width: 1056px) {
  cds-header-menu-button,
  cds-side-nav {
    display: none !important;
  }
}


#productGrid {
  width: 100%;
}


[class^="ag-theme-"] .ag-cell {
    display: flex !important;
    align-items: center;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    line-height: 1.5 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}
    
    .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: 0.875rem;
  display: block;
  padding: 8px 0;
}

.logout-link-btn:hover {
  text-decoration: underline;
}

.manage-account-link {
  color: #0f62fe;
  text-decoration: none;
  font-size: 0.75rem;
  display: block;
  padding: 8px 0;
}

.manage-account-link:hover {
  text-decoration: underline;
}
.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: 0.875rem;
  margin-bottom: 2px;
  color: #161616;
}

.user-email {
  font-size: 0.75rem;
  color: #525252;
  margin-bottom: 0;
}

.user-profile-dropdown hr {
    margin: 12px 0;
    border: 0;
    border-top: 1px solid #cacaca;
}

.grid-toolbar {
    display: block;
    align-items: center;
    margin: 8px 0 12px;
    padding: 4px 0;
    justify-content: flex-start;
}
.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) {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    border: 1px solid currentColor;
}

cds-button[kind="primary"]::part(button) {
    border-color: #0f62fe;
}

cds-button[kind="ghost"]::part(button) {
    color: #525252; 
    border-color: #8d8d8d; 
}

cds-button[kind="ghost"]:hover::part(button) {
    background-color: #f4f4f4;
}


.ag-cell .actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}


.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


.status-pill__icon {
    opacity: 0.8;
}


.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}


cds-button.outline-blue::part(button) {
    background: transparent !important;
    border: 1px solid #0f62fe !important;
    color: #0f62fe !important;
}

    
    cds-button.outline-blue::part(button):hover {
        background: rgba(15, 98, 254, 0.08) !important;
    }


cds-button.quickview-btn::part(button) {
    width: 36px;
    height: 36px;
    padding: 0 !important;
}

.ag-theme-alpine .ag-cell.reportNameCell {
    font-weight: 600;
    color: #0f172a;
}


.ag-theme-alpine .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e2e8f0; 
    background: #f8fafc; 
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155; 
    line-height: 1;
}


.ag-theme-alpine .status-pill--subscribed .status-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #10b981; 
}


.ag-theme-alpine .status-pill--locked {
    color: #64748b; 
}


.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;
}
#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: 8px;
    background: transparent;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    opacity: 0.75;
    transition: background 150ms ease, color 150ms ease, opacity 150ms ease;
    margin-left: 12px;
}

#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;
}