.record-grid-scroll {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  max-height: min(66dvh, 44rem);
  overflow: auto !important;
  border: 1px solid #cbd7e6;
  border-radius: 5px;
  background: #fff;
}

.record-grid-scroll > table.record-grid {
  width: 100%;
  margin: 0;
  border-collapse: separate !important;
  border-spacing: 0;
  font-size: 0.75rem;
}

.record-grid-scroll > .record-grid > :is(thead, tbody, tfoot) > tr > :is(th, td) {
  box-sizing: border-box;
  height: 30px;
  padding: 3px 7px !important;
  border-right: 1px solid #d7e0ec;
  border-bottom: 1px solid #d7e0ec;
  font-size: 0.75rem;
  line-height: 1.25;
  vertical-align: middle;
  white-space: nowrap;
}

.record-grid-scroll > .record-grid > :is(thead, tbody, tfoot) > tr > :last-child {
  border-right: 0;
}

.record-grid-scroll > .record-grid > thead > tr > th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 28px;
  background: #e8eff7;
  color: #284360;
  font-size: 0.6875rem;
  box-shadow: none;
}

.record-grid-scroll > .record-grid > tbody > tr:not(.resource-group-row) > td[title] {
  max-width: 17rem;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}

.record-grid-scroll > .record-grid > tbody > tr > :is(.currency-cell, .number) {
  max-width: none;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.record-grid-scroll > .record-grid > tbody > tr:nth-child(even):not(.resource-group-row, .selected-row, [aria-selected='true']) > td {
  background: #f6f8fc;
}

.record-grid-scroll > .record-grid > tbody > tr:hover:not(.resource-group-row, .selected-row, [aria-selected='true']) > td {
  background: #eaf2ff;
}

.record-grid-scroll > .record-grid > tbody > tr > td.row-actions {
  display: table-cell;
  min-width: max-content;
  overflow: visible;
}

.record-grid-scroll > .record-grid :is(.resource-row-buttons, .file-link-actions, .engagement-file-list, .professional-engagement-actions) {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
}

.record-grid-scroll > .record-grid :is(button, .file-download-btn) {
  min-height: 24px;
  padding: 2px 6px;
  line-height: 1.2;
  white-space: nowrap;
}

.record-grid-scroll > .record-grid .row-actions > button + button { margin-inline-start: 4px; }

.budget-detail-table > .budget-detail-totals > tr > :is(th, td) {
  border-top: 1px solid #b4c4d7;
  background: #e8eff7;
  color: #173c65;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 7px;
}

.budget-detail-table > .budget-detail-totals > tr > th { text-align: left; }
.budget-detail-table > .budget-detail-totals > tr > td { text-align: right; font-variant-numeric: tabular-nums; }

.vendor-master-workspace {
  container: vendor-master / inline-size;
  min-width: 0;
  width: 100%;
}

.vendor-master-workspace :is(.table-panel, .section-header-end, .searchbar input) { min-width: 0; }
.vendor-master-workspace :is(.section-header, .section-header-end) { flex-wrap: wrap; }
.vendor-master-workspace .record-grid-scroll { max-height: none; }

.record-grid-scroll > table.vendor-master-grid {
  min-width: 0;
  table-layout: fixed;
}

.record-grid-scroll > .vendor-master-grid > :is(thead, tbody) > tr > :is(th, td) {
  min-width: 0;
  padding: 2px 5px !important;
}

.vendor-master-grid thead th { white-space: normal !important; }
.vendor-master-grid th[data-column='ID'] { width: 4%; }
.vendor-master-grid th[data-column='VENDOR_NAME'] { width: 11.3%; }
.vendor-master-grid th[data-column='CONTACT_PERSON'] { width: 8%; }
.vendor-master-grid th[data-column='GSTIN'] { width: 9.5%; }
.vendor-master-grid th[data-column='PAN'] { width: 6.8%; }
.vendor-master-grid th[data-column='TDS_SECTION'] { width: 6.9%; }
.vendor-master-grid th[data-column='TDS_PERCENT'] { width: 3.6%; }
.vendor-master-grid th[data-column='EMAIL'] { width: 10.8%; }
.vendor-master-grid th[data-column='PHONE'] { width: 7%; }
.vendor-master-grid th[data-column='BANK_ACCOUNT_NO'] { width: 8.2%; }
.vendor-master-grid th[data-column='BANK_IFSC'] { width: 7%; }
.vendor-master-grid th[data-column='RECORD_STATUS'] { width: 4.7%; }
.vendor-master-grid th:last-child { width: 106px; }
.vendor-master-grid [data-column='TDS_PERCENT'] { text-align: right; font-variant-numeric: tabular-nums; }

.record-grid-scroll > .vendor-master-grid > tbody > tr > td.row-actions { min-width: 0; }
.record-grid-scroll > .vendor-master-grid .resource-row-buttons { gap: 3px; vertical-align: middle; }
.record-grid-scroll > .vendor-master-grid .resource-row-buttons > button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 24px;
  min-height: 24px;
  padding: 0 !important;
  margin: 0;
}

@container vendor-master (max-width: 64rem) {
  .vendor-master-workspace :is(.section-header-end, .searchbar) { max-width: 100%; }
  .vendor-master-workspace .record-grid-scroll { max-height: 66dvh; }
  .record-grid-scroll > table.vendor-master-grid,
  .vendor-master-grid > tbody { display: block; }

  .vendor-master-grid > thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .vendor-master-grid > tbody > tr {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
    border-bottom: 1px solid #b4c4d7;
  }

  .record-grid-scroll > .vendor-master-grid > tbody > tr > td {
    display: block;
    height: auto;
    min-height: 30px;
    max-width: none;
    padding: 4px 6px !important;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .record-grid-scroll > .vendor-master-grid > tbody > tr:not(.resource-group-row) > td[title] { max-width: none; }

  .vendor-master-grid > tbody > tr > :is([data-column='VENDOR_NAME'], .row-actions, [colspan]) {
    grid-column: 1 / -1;
  }

  .vendor-master-grid > tbody > tr > td[data-column]::before {
    content: attr(data-label);
    display: block;
    color: #52657d;
    font-weight: 700;
    font-size: 0.6875rem;
  }
}

.asset-management {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}

.asset-management :is(.workspace, .table-panel) { min-width: 0; }
.asset-management .record-grid-scroll { overflow-x: hidden !important; }

.asset-management .record-grid-scroll > table.record-grid {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.asset-management .record-grid-scroll > .record-grid > :is(thead, tbody, tfoot) > tr > :is(th, td) {
  min-width: 0;
  padding: 4px 5px !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

.asset-management .record-grid-scroll > .record-grid > tbody > tr > td[title] {
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.asset-management .asset-register-table th { width: auto; }
.asset-management .asset-register-table th:first-child { width: 6.5%; }
.asset-management .asset-register-table th:nth-child(2) { width: 12%; }
.asset-management .asset-register-table th:is(:nth-child(3), :nth-child(16)) { width: 5%; }
.asset-management .asset-register-table th:is(:nth-child(4), :nth-child(5), :nth-child(15)) { width: 3%; }
.asset-management .asset-register-table th:nth-child(n+6):nth-child(-n+14) { width: 5.5%; }
.asset-management .asset-register-table th:nth-child(17) { width: 6%; }
.asset-management .asset-register-table th:nth-child(18) { width: 7%; }

.asset-management .asset-sale-attempts-table th[data-column='ATTEMPT_NO'] { width: 5%; }
.asset-management .asset-sale-attempts-table th[data-column='AUCTION_ID'] { width: 10%; }
.asset-management .asset-sale-attempts-table th:is([data-column='NOTICE_DATE'], [data-column='AUCTION_DATE'], [data-column='SALE_MODE'], [data-column='RESULT']) { width: 8%; }
.asset-management .asset-sale-attempts-table th:is([data-column='RESERVE_PRICE'], [data-column='HIGHEST_BID']) { width: 9%; }
.asset-management .asset-sale-attempts-table th:nth-last-child(2) { width: 9%; }
.asset-management .asset-sale-attempts-table th:last-child { width: 9%; }

.asset-management .record-grid :is(.resource-row-buttons, .file-link-actions) {
  max-width: 100%;
  flex-wrap: wrap;
}

.asset-management .record-grid :is(.asset-selection-details, .compact-file-menu) > summary {
  width: auto;
  max-width: 100%;
  color: #075f5a;
  font-weight: 700;
  cursor: pointer;
  white-space: normal;
}

.asset-management .asset-selection-details > div {
  margin-top: 5px;
  color: #334155;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.asset-management .record-grid .compact-file-menu-list {
  position: static;
  min-width: 0;
  width: auto;
  max-width: 100%;
  margin-top: 4px;
  padding: 3px;
  box-shadow: none;
}

.asset-management .record-grid .compact-file-menu-list button { white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 1200px) {
  .asset-management .record-grid-scroll > table.record-grid,
  .asset-management .record-grid-scroll > .record-grid > :is(tbody, tfoot) { display: block; }

  .asset-management .record-grid-scroll > .record-grid > thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .asset-management .record-grid-scroll > .record-grid > :is(tbody, tfoot) > tr {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
    border-bottom: 1px solid #bccde1;
  }

  .asset-management .record-grid-scroll > .record-grid > :is(tbody, tfoot) > tr > :is(td, th) {
    display: block;
    height: auto;
    min-height: 30px;
    text-align: left;
  }

  .asset-management .record-grid :is(tbody, tfoot) td[data-label]::before {
    display: block;
    margin-bottom: 2px;
    color: #52657d;
    font-size: 0.6875rem;
    font-weight: 700;
    content: attr(data-label);
  }

  .asset-management .record-grid tbody :is([data-column='SELECTED_ASSETS'], [data-column='ASSET_NAME'], [colspan]),
  .asset-management .record-grid tfoot th { grid-column: 1 / -1; }
  .asset-management .record-grid tfoot td:empty { display: none; }
}

.record-grid-scroll > .record-grid.meetings-list-table { min-width: 1140px; }
.record-grid-scroll > .meetings-list-table :is(th, td)[hidden] { display: none; }
.record-grid-scroll > .meetings-list-table th:is(:nth-child(2), :nth-child(8)) { width: auto; }
.record-grid-scroll > .meetings-list-table :is(th, td).meeting-document-cell {
  width: 7.25rem;
  min-width: 5.5rem;
  text-align: center;
}
.record-grid-scroll > .meetings-list-table th.meeting-attendance-column { width: 5.5rem; }
.record-grid-scroll > .meetings-list-table th.meeting-vc-column { width: 9rem; }
.record-grid-scroll > .meetings-list-table .zoom-link-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
}
.record-grid-scroll > .meetings-list-table .zoom-link-actions > button {
  min-height: 24px;
  padding: 0 6px;
}
.record-grid-scroll > .meetings-list-table th:nth-last-child(2) { width: 6rem; }
.record-grid-scroll > .meetings-list-table th:last-child { width: 7rem; }
.record-grid-scroll > .meetings-list-table .meeting-document-cell .compact-file-actions { vertical-align: middle; }
.record-grid-scroll > .meetings-list-table .meeting-document-cell .compact-file-actions button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
}
.record-grid-scroll > .meetings-list-table .meeting-document-missing { color: #52657d; }

.record-grid-scroll > .record-grid.claim-verification-grid { min-width: 825px; }
.record-grid-scroll > .record-grid.claim-verification-grid :is(th, td):nth-child(4),
.record-grid-scroll > .record-grid.claim-verification-grid :is(th, td):nth-child(5) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.record-grid-scroll > .record-grid.professional-engagement-table { min-width: 820px; }
.record-grid-scroll > .record-grid .engagement-professional :is(strong, small) { display: inline; }
.record-grid-scroll > .record-grid .engagement-professional small::before { content: ' · '; }

.record-grid-scroll > .record-grid .professional-engagement-scope span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-grid-scroll > .record-grid .professional-engagement-actions > button.professional-engagement-open {
  height: 24px;
  min-height: 24px;
}

.accounts-table-panel .record-grid-scroll > table.accounts-compact-list.record-grid {
  display: table;
  min-width: 86rem;
  table-layout: fixed;
}

.accounts-table-panel .record-grid-scroll > .accounts-compact-list.record-grid > thead {
  display: table-header-group;
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  overflow: visible;
}

.accounts-table-panel .record-grid-scroll > .accounts-compact-list.record-grid > tbody { display: table-row-group; }

.accounts-table-panel .record-grid-scroll > .accounts-compact-list.record-grid > tbody > tr {
  display: table-row;
  padding: 0;
}

.page-transition-stage .accounts-table-panel .record-grid-scroll > .accounts-compact-list.record-grid > tbody > tr > td {
  display: table-cell;
  padding: 3px 5px !important;
  border-right: 1px solid #d7e0ec;
  border-bottom: 1px solid #d7e0ec;
  text-align: left;
}

.accounts-table-panel .record-grid-scroll > .accounts-compact-list.record-grid > tbody > tr > td::before { content: none; }
.accounts-table-panel:has(.record-grid) .accounts-select-all { display: none; }

.page-transition-stage .accounts-table-panel .record-grid-scroll > .accounts-compact-list.record-grid :is(th, td):is([data-column='TOTAL_INVOICE_AMOUNT'], [data-column='TDS_DEDUCTED'], [data-column='PAYABLE_AMOUNT'], [data-column='BALANCE_OUTSTANDING']) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.accounts-table-panel .record-grid th[data-column='PAYMENT_PROOF_FILE'] { width: 72px; }

.accounts-table-panel .record-grid :is(.account-row-buttons, .compact-file-actions) {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  max-width: none;
  gap: 3px;
}

.accounts-table-panel .record-grid :is(.account-row-buttons, .compact-file-actions) > button {
  flex: 0 0 24px;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
}

.pra-module .record-grid-scroll > .pra-register-table.record-grid .pra-register-row-actions { display: table-cell; }
.pra-register-table.record-grid .pra-register-row-actions > button + button { margin-inline-start: 4px; }

.record-grid-scroll > .record-grid:is(.vdr-audit-table, .ip-invoice-table, .salary-register-grid, .pending-rp-table) {
  table-layout: auto;
}

.record-grid-scroll > .record-grid:is(.vdr-audit-table, .ip-invoice-table, .salary-register-grid, .pending-rp-table) > tbody > tr > td > :is(strong, small) {
  display: inline;
  margin: 0;
}

.record-grid-scroll > .record-grid:is(.vdr-audit-table, .ip-invoice-table, .salary-register-grid, .pending-rp-table) > tbody > tr > td > small::before {
  content: ' · ';
}

.record-grid-scroll > .record-grid.pending-rp-table input[type='checkbox'] {
  display: block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
}

.record-grid-scroll > .record-grid.vdr-audit-table { width: max-content; min-width: 100%; }
.record-grid-scroll > .record-grid.vdr-audit-table .vdr-audit-session-group:nth-of-type(even) > tr:first-child > td { background: #f6f8fc; }
.record-grid-scroll > .record-grid.vdr-audit-table .vdr-audit-session-group > tr:first-child:hover > td { background: #eaf2ff; }
.record-grid-scroll > .record-grid.vdr-audit-table .vdr-audit-session-group > tr > td > a { display: inline; margin-inline-start: 5px; }
.record-grid-scroll > .record-grid.vdr-audit-table .vdr-audit-expand { height: 25px; }
.record-grid-scroll > .record-grid.vdr-audit-table .vdr-audit-session-group > tr > td > span[title] { display: inline; margin-inline-start: 5px; }
.record-grid-scroll.record-grid-nested { max-height: 17rem; }

.record-grid-scroll > .record-grid > tbody > tr.record-grid-alert-row > td { background: #fef2f2; }
.record-grid-scroll > .record-grid.liquidation-timeline-table .timeline-col-proof { width: 255px; }
.record-grid-scroll > .record-grid.liquidation-timeline-table .timeline-col-date { width: 195px; }
.record-grid-scroll > .record-grid.liquidation-timeline-table .timeline-status { display: inline-block; margin: 0 0 0 4px; }
.record-grid-scroll > .record-grid.liquidation-timeline-table .table-date-picker { display: inline-flex; width: min(100%, 125px); vertical-align: middle; }
.record-grid-scroll > .record-grid.liquidation-timeline-table :is(.modern-date-input, .modern-date-button, .table-input) { height: 28px; min-height: 28px; }
.record-grid-scroll > .record-grid.liquidation-timeline-table :is(.timeline-proof-actions, .timeline-proof-chip) { display: inline-flex; margin: 0; vertical-align: middle; }
.record-grid-scroll > .record-grid.liquidation-timeline-table .timeline-proof-chip { margin-inline-start: 5px; }

.record-grid-scroll > .record-grid.ip-invoice-table :is(th, td):is(:nth-child(6), :nth-child(7)),
.record-grid-scroll > .record-grid.salary-payroll-grid :is(th, td):nth-child(n+3):nth-child(-n+13),
.record-grid-scroll > .record-grid.salary-employees-grid :is(th, td):nth-child(8),
.record-grid-scroll > .record-grid.salary-pt-grid :is(th, td):nth-child(n+2):nth-child(-n+4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .record-grid-scroll > .record-grid.professional-engagement-table { display: table; }
  .record-grid-scroll > .record-grid.professional-engagement-table > colgroup { display: table-column-group; }
  .record-grid-scroll > .record-grid.professional-engagement-table > thead { display: table-header-group; }
  .record-grid-scroll > .record-grid.professional-engagement-table > tbody { display: table-row-group; }
  .record-grid-scroll > .record-grid.professional-engagement-table > tbody > tr { display: table-row; }
  .record-grid-scroll > .record-grid.professional-engagement-table > tbody > tr > td { display: table-cell; }
  .record-grid-scroll > .record-grid.professional-engagement-table td::before { content: none; }
}
