﻿  body.fg-no-page-scroll { overflow: hidden !important; }

  .fg-grid-wrap {
    height: var(--fg-grid-height, calc(100vh - 260px));
    margin-top: .125rem;

    display: flex;
    flex-direction: column;
    min-height: 240px;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-gutter: auto;
  }

  .firmographics-grid {
    flex: 1 1 auto;
    min-height: 0;
  }

  .firmographics-grid tbody tr:hover td {
    background-color: rgba(0, 0, 0, 0.07);
  }

  .firmographics-grid .fg-readonly-cell {
    display: block;
    width: 100%;
    padding: 2px 8px;
    border-radius: 0;
    background: #e7ebf0;
    color: #5a6672;
  }

  .firmographics-grid tbody tr:hover .fg-readonly-cell {
    background: #dde3e9;
  }

  .fg-top-toolbar {
    display: flex;
    gap: .75rem;
    align-items: flex-end;
    margin-bottom: 1rem !important;
  }

  .fg-top-toolbar .toolbar-cell {
    display: flex;
    align-items: stretch;
  }

  .fg-top-toolbar .toolbar-label {
    font-size: .82rem;
    opacity: .85;
  }

  .fg-save-cell {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    margin-left: -6px;
  }

  .fg-main-toolbar {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0 !important;
  }

  .fg-save-spacer {
    visibility: hidden;
    user-select: none;
  }

  .fg-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-height: 38px;
  }

  .fg-toolbar > .dxbl-btn {
    margin-top: 6px;
  }

  .fg-saving-pill {
    display: none;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.92);
    color: #444;
    font-size: 0.9rem;
    user-select: none;
    white-space: nowrap;
  }
  .fg-saving-pill.show { display: inline-flex; }

  .fg-saved {
    display: none;
    font-weight: 600;
    color: #198754;
    user-select: none;
    white-space: nowrap;
  }
  .fg-saved.show { display: inline-block; }

  @media (max-width: 767.98px) {
    .fg-top-toolbar {
      flex-direction: column;
      gap: 6px;
      align-items: stretch;
      margin-bottom: .25rem !important;
    }

    .fg-save-cell {
      flex: 0 0 auto;
      width: 100%;
    }

    .fg-save-cell .toolbar-label {
      font-size: .72rem;
      margin-bottom: 0;
    }

    .fg-top-toolbar .toolbar-cell {
      align-items: flex-start;
    }
  }

