/* Stage 2 table foundation: one calm rhythm for pagination and desktop ledgers. */
.pagination-bar.modern-pagination {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(96px, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .045);
}

.modern-pagination .pagination-info {
  justify-content: flex-start;
  gap: 6px;
  font-size: .76rem;
}

.modern-pagination .pagination-controls {
  justify-content: center;
  gap: 6px;
}

.modern-pagination .pagination-pages {
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(15, 23, 42, .055);
  background: #f8fafc;
}

.modern-pagination .pagination-page,
.modern-pagination .pagination-nav {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 11px;
  font-size: .78rem;
  font-weight: 850;
  box-shadow: none;
}

.modern-pagination .pagination-page.active {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  box-shadow: 0 10px 20px rgba(124, 58, 237, .2);
}

.modern-pagination .pagination-nav {
  background: #fff;
  color: #64748b;
  border: 1px solid rgba(15, 23, 42, .08);
}

.modern-pagination .pagination-gap {
  min-width: 18px;
  justify-content: center;
  color: #94a3b8;
}

.modern-pagination .pagination-jump {
  justify-content: flex-end;
  gap: 7px;
  font-size: .74rem;
}

.modern-pagination .pagination-jump select {
  min-width: 72px;
  min-height: 32px;
  padding-inline: 12px 26px;
  border-radius: 12px;
}

.topbar-back-btn {
  border-color: rgba(124, 58, 237, .16) !important;
  background: #f6f1ff !important;
  color: #5b21b6 !important;
}

.topbar-back-btn:hover {
  transform: translateY(-1px);
  background: #ede9fe !important;
}

.invoice-revamp-actions {
  justify-content: center;
  gap: 6px !important;
}

.invoice-revamp-actions > button,
.invoice-action-menu summary {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 12px !important;
}

.invoice-revamp-actions .app-icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.invoice-action-menu div {
  min-width: 150px;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
}

.invoice-action-menu div button {
  justify-content: flex-start;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 11px;
  font-size: .78rem;
  font-weight: 850;
}

/* Invoice register: reserve the real width of the four compact actions. */
.invoice-revamp-page:not(.expenses-ledger-page) .invoice-col-actions {
  width: 140px !important;
}

.invoice-revamp-page:not(.expenses-ledger-page) .invoice-revamp-actions {
  gap: 4px !important;
}

.invoice-revamp-page:not(.expenses-ledger-page) .invoice-revamp-actions > button,
.invoice-revamp-page:not(.expenses-ledger-page) .invoice-action-menu summary {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  border-radius: 10px !important;
}

.invoice-revamp-page:not(.expenses-ledger-page) .invoice-revamp-table tbody td:last-child {
  padding-inline: 6px !important;
}

.invoice-revamp-page:not(.expenses-ledger-page) .invoice-revamp-table tbody td {
  padding-block: 9px !important;
}

@media (min-width: 921px) {
  .invoice-revamp-table-shell,
  .modern-table-wrap,
  .table-wrap {
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, .36) rgba(241, 245, 249, .95);
  }

  .invoice-revamp-table th,
  .customer-ledger-table th,
  .activity-table th,
  .archive-table th,
  .document-registry-table th,
  .unified-data-table th {
    height: 48px;
    padding-block: 10px !important;
    white-space: nowrap;
  }

  .invoice-revamp-table td,
  .customer-ledger-table td,
  .activity-table td,
  .archive-table td,
  .document-registry-table td,
  .unified-data-table td {
    padding-block: 12px !important;
    vertical-align: middle;
  }

  .invoice-revamp-table th:not(:last-child)::after,
  .customer-ledger-table th:not(:last-child)::after,
  .activity-table th:not(:last-child)::after,
  .archive-table th:not(:last-child)::after,
  .document-registry-table th:not(:last-child)::after,
  .unified-data-table th:not(:last-child)::after {
    content: "\2195" !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-inline-start: 6px;
    border-radius: 999px;
    background: #eef4fb;
    color: #94a3b8;
    font-size: .72rem;
    line-height: 1;
  }
}

@media (max-width: 720px) {
  .pagination-bar.modern-pagination {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .modern-pagination .pagination-info,
  .modern-pagination .pagination-controls,
  .modern-pagination .pagination-jump {
    justify-content: center;
  }
}

/* Customer ledger: keep the side summary, but make the table fit cleanly on desktop. */
.customer-ledger-workspace {
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr) !important;
}

.customer-ledger-table-panel,
.customer-ledger-workspace > div {
  min-width: 0;
}

.customer-ledger-table-shell {
  display: block !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 58, 237, .38) rgba(241, 245, 249, .98);
}

.customer-ledger-table-shell::-webkit-scrollbar {
  height: 10px;
}

.customer-ledger-table-shell::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, .96);
  border-radius: 999px;
}

.customer-ledger-table-shell::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(124, 58, 237, .72), rgba(192, 38, 211, .58));
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .92);
}

.customer-ledger-table {
  width: max(100%, 980px) !important;
  min-width: 980px !important;
  table-layout: fixed !important;
}

.customer-ledger-table .customer-col-code { width: 108px; }
.customer-ledger-table .customer-col-name { width: 220px; }
.customer-ledger-table .customer-col-count { width: 72px; }
.customer-ledger-table .customer-col-money { width: 118px; }
.customer-ledger-table .customer-col-status { width: 112px; }
.customer-ledger-table .customer-col-actions { width: 58px; }

.customer-ledger-person > span:last-child,
.customer-ledger-person b,
.customer-ledger-person small,
.customer-code-cell strong {
  min-width: 0;
}

.customer-ledger-person b,
.customer-ledger-person small,
.customer-code-cell strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The financial side card inside the full customer file was redundant with the main KPIs. */
.customer-profile-grid {
  grid-template-columns: 1fr !important;
}

.customer-profile-grid .customer-finance-card {
  display: none !important;
}

@media (max-width: 1280px) {
  .customer-ledger-workspace {
    grid-template-columns: 1fr !important;
  }

  .customer-ledger-table {
    width: max(100%, 900px) !important;
    min-width: 900px !important;
  }
}

/* Permanent notification-popover hardening: compact cards that never stretch on long dates/text. */
.notifications-popover {
  width: min(430px, calc(100vw - 34px)) !important;
  max-height: min(70vh, 540px) !important;
  grid-template-rows: auto auto minmax(0, 1fr) !important;
}

.notifications-toolbar {
  grid-template-columns: 40px minmax(0, 1fr) !important;
  gap: 8px !important;
}

.notification-link {
  grid-column: 1;
  grid-row: 1;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  border-radius: 14px !important;
}

.notification-tabs {
  grid-column: 2;
  grid-row: 1;
}

.notifications-toolbar-side {
  display: contents !important;
}

.notifications-summary-badge {
  display: none !important;
}

.notifications-popover-body {
  max-height: min(43vh, 330px) !important;
  gap: 8px !important;
  padding-inline: 4px 8px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  min-height: 0 !important;
}

.notification-feed-item {
  min-height: 0 !important;
  padding: 9px 10px !important;
  gap: 7px !important;
  border-radius: 17px !important;
  overflow: hidden !important;
}

.notification-feed-main {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 10px;
  align-items: start !important;
  gap: 8px !important;
}

.notification-avatar {
  grid-column: 1;
  width: 34px !important;
  height: 34px !important;
}

.notification-feed-copy {
  grid-column: 2;
  min-width: 0 !important;
}

.notification-dot {
  grid-column: 3;
  margin-top: 12px !important;
}

.notification-feed-line {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(42px, auto);
  gap: 6px !important;
  align-items: center !important;
}

.notification-feed-line strong,
.notification-feed-line span,
.notification-feed-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-feed-line strong {
  font-size: .9rem !important;
}

.notification-feed-line span {
  max-width: 78px;
  font-size: .78rem !important;
}

.notification-feed-meta {
  display: grid !important;
  grid-template-columns: minmax(72px, 1fr) auto auto auto;
  gap: 5px !important;
  align-items: center !important;
  font-size: .74rem !important;
  width: 100%;
}

.notification-feed-meta > span:first-child {
  max-width: 104px;
}

.notification-priority-chip,
.notification-chip {
  min-height: 22px !important;
  padding: 3px 7px !important;
  font-size: .7rem !important;
}

.notification-feed-actions {
  grid-template-columns: minmax(72px, .9fr) 32px minmax(104px, 1.1fr) !important;
  gap: 6px !important;
  margin-inline-start: 42px !important;
}

.notification-feed-actions .btn {
  min-height: 32px !important;
  padding: 7px 8px !important;
  border-radius: 13px !important;
  font-size: .76rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.notification-priority-action {
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.notification-priority-action .app-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.35;
}

.notifications-popover-body.single-notification {
  max-height: min(43vh, 330px) !important;
  overflow-y: auto !important;
}

.notifications-popover-body.single-notification .notification-feed-item {
  min-height: 0 !important;
}

.notifications-popover-body.single-notification .notification-feed-actions {
  margin-inline-start: 42px !important;
}

@media (max-width: 520px) {
  .notifications-popover {
    left: 8px !important;
    width: calc(100vw - 16px) !important;
  }

  .notification-feed-actions {
    margin-inline-start: 0 !important;
    grid-template-columns: 1fr 34px 1fr !important;
  }

  .notification-feed-meta {
    grid-template-columns: minmax(0, 1fr) auto auto !important;
  }

  .notification-feed-meta > span:nth-child(2) {
    display: none !important;
  }
}

/* ACC TEST MOBILE QA FINAL - loaded after styles.css, screen-only. */
@media screen and (max-width: 760px) {
  .invoice-page-actions,
  .invoice-status-pills,
  .expense-type-pills,
  .withdrawal-partner-pills,
  .settings-tabs,
  .access-tab-shell,
  .treasury-tabs,
  .hr-module-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    gap: 8px !important;
  }

  .invoice-page-actions .invoice-main-action,
  .invoice-page-actions .invoice-ghost-action,
  .invoice-status-pills button,
  .expense-type-pills button,
  .withdrawal-partner-pills button,
  .settings-tab,
  .access-tab-shell button,
  .treasury-tabs button,
  .hr-module-hero-actions button,
  .hr-module-hero-actions .hr-period-action {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-content: center !important;
    white-space: normal !important;
  }

  .invoice-compact-controls {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    overflow: visible !important;
  }

  .invoice-compact-controls select,
  .invoice-compact-controls input {
    width: 100% !important;
    min-width: 0 !important;
  }

  body:has(.invoice-studio-shell) .invoice-items-head,
  .invoice-items-head {
    display: none !important;
  }

  body:has(.invoice-studio-shell) .invoice-studio-items,
  .invoice-studio-items {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  body:has(.invoice-studio-shell) .invoice-customer-grid,
  body:has(.invoice-studio-shell) .invoice-studio-card .invoice-customer-grid,
  body:has(.invoice-studio-shell) .invoice-studio-card:has(#draft-discountType) .invoice-customer-grid,
  .invoice-customer-grid {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
    justify-items: stretch !important;
  }

  body:has(.invoice-studio-shell) .invoice-customer-grid .field,
  body:has(.invoice-studio-shell) .invoice-studio-card .invoice-customer-grid .field,
  body:has(.invoice-studio-shell) .invoice-studio-card:has(#draft-discountType) .invoice-customer-grid .field,
  .invoice-customer-grid .field {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    justify-self: stretch !important;
  }

  body:has(.invoice-studio-shell) .invoice-studio-item-row,
  .invoice-studio-item-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 10px !important;
    padding: 12px !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 18px !important;
    background: #fff !important;
  }

  body:has(.invoice-studio-shell) .invoice-service-stack,
  .invoice-service-stack {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
  }

  body:has(.invoice-studio-shell) .invoice-service-stack select,
  body:has(.invoice-studio-shell) .invoice-service-stack input,
  body:has(.invoice-studio-shell) .invoice-studio-item-row input,
  body:has(.invoice-studio-shell) .invoice-studio-item-row select,
  body:has(.invoice-studio-shell) .invoice-studio-item-row .readonly-box,
  .invoice-service-stack select,
  .invoice-service-stack input,
  .invoice-studio-item-row input,
  .invoice-studio-item-row select,
  .invoice-studio-item-row .readonly-box {
    width: 100% !important;
    min-width: 0 !important;
  }

  body:has(.invoice-studio-shell) .invoice-line-remove,
  .invoice-line-remove {
    width: 100% !important;
    min-width: 0 !important;
  }

  body:has(.invoice-studio-shell) .invoice-add-line,
  .invoice-add-line {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .customer-ledger-table-shell,
  .access-users-table-wrap,
  .modern-table-wrap:has(.service-items-table),
  .treasury-table-wrap:has(.treasury-movements-table) {
    overflow: visible !important;
  }

  .customer-ledger-table.mobile-responsive-table,
  .invoice-revamp-table,
  .service-items-table.mobile-responsive-table,
  .treasury-movements-table.mobile-responsive-table,
  .access-users-table.mobile-responsive-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }

  .customer-ledger-table.mobile-responsive-table colgroup,
  .invoice-revamp-table colgroup,
  .service-items-table.mobile-responsive-table colgroup,
  .treasury-movements-table.mobile-responsive-table colgroup,
  .access-users-table.mobile-responsive-table colgroup,
  .customer-ledger-table.mobile-responsive-table thead,
  .invoice-revamp-table thead,
  .service-items-table.mobile-responsive-table thead,
  .treasury-movements-table.mobile-responsive-table thead,
  .access-users-table.mobile-responsive-table thead {
    display: none !important;
  }

  .customer-ledger-table.mobile-responsive-table tbody,
  .invoice-revamp-table tbody,
  .service-items-table.mobile-responsive-table tbody,
  .treasury-movements-table.mobile-responsive-table tbody,
  .access-users-table.mobile-responsive-table tbody {
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .customer-ledger-table.mobile-responsive-table tr,
  .invoice-revamp-table tr,
  .service-items-table.mobile-responsive-table tr,
  .treasury-movements-table.mobile-responsive-table tr,
  .access-users-table.mobile-responsive-table tr {
    display: block !important;
    width: calc(100% - 10px) !important;
    min-width: 0 !important;
    padding: 12px !important;
    margin-inline: auto !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05) !important;
  }

  .customer-ledger-table.mobile-responsive-table td,
  .invoice-revamp-table td,
  .service-items-table.mobile-responsive-table td,
  .treasury-movements-table.mobile-responsive-table td,
  .access-users-table.mobile-responsive-table td {
    display: grid !important;
    grid-template-columns: minmax(88px, .42fr) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 9px 0 !important;
    border: 0 !important;
    text-align: right !important;
    white-space: normal !important;
  }

  .customer-ledger-table.mobile-responsive-table td:not(:last-child),
  .invoice-revamp-table td:not(:last-child),
  .service-items-table.mobile-responsive-table td:not(:last-child),
  .treasury-movements-table.mobile-responsive-table td:not(:last-child),
  .access-users-table.mobile-responsive-table td:not(:last-child) {
    border-bottom: 1px dashed rgba(148, 163, 184, .24) !important;
  }

  .customer-ledger-table.mobile-responsive-table td::before,
  .invoice-revamp-table td::before,
  .service-items-table.mobile-responsive-table td::before,
  .treasury-movements-table.mobile-responsive-table td::before,
  .access-users-table.mobile-responsive-table td::before {
    content: attr(data-label) !important;
    color: #64748b !important;
    font-size: .75rem !important;
    font-weight: 900 !important;
  }

  .customer-ledger-table .customer-ledger-person,
  .customer-ledger-table .customer-code-cell,
  .invoice-revamp-table .invoice-revamp-number,
  .invoice-revamp-table .invoice-revamp-customer,
  .invoice-revamp-table .invoice-revamp-actions,
  .access-users-table .access-user-cell,
  .access-users-table .access-row-actions,
  .service-items-table .table-actions,
  .treasury-movements-table .table-actions {
    width: 100% !important;
    min-width: 0 !important;
  }

  .invoice-revamp-table td > *,
  .expense-register-table td > *,
  .withdrawal-register-table td > * {
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .report-table-wrap {
    overflow: visible !important;
  }

  .report-screen-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: auto !important;
    font-size: .74rem !important;
  }

  .report-screen-table th,
  .report-screen-table td {
    padding: 8px 6px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .hr-saas-compact-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .hr-saas-compact-table thead {
    display: none !important;
  }

  .hr-saas-compact-table tbody {
    display: grid !important;
    gap: 10px !important;
  }

  .hr-saas-compact-table tr {
    display: block !important;
    width: calc(100% - 10px) !important;
    margin-inline: auto !important;
    padding: 12px !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 18px !important;
    background: #fff !important;
  }

  .hr-saas-compact-table td {
    display: grid !important;
    grid-template-columns: minmax(82px, .38fr) minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 8px 0 !important;
    border: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .hr-saas-compact-table td:not(:last-child) {
    border-bottom: 1px dashed rgba(148, 163, 184, .24) !important;
  }

  .hr-saas-compact-table td::before {
    color: #64748b !important;
    font-size: .75rem !important;
    font-weight: 900 !important;
  }

  .hr-saas-compact-table td:nth-child(1)::before { content: "الموظف"; }
  .hr-saas-compact-table td:nth-child(2)::before { content: "الوظيفة"; }
  .hr-saas-compact-table td:nth-child(3)::before { content: "المباشرة"; }
  .hr-saas-compact-table td:nth-child(4)::before { content: "الحضور"; }
  .hr-saas-compact-table td:nth-child(5)::before { content: "الصافي"; }

  .hr-shell table,
  .hr-module table,
  .hr-page table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto !important;
  }

  .hr-shell table th,
  .hr-shell table td,
  .hr-module table th,
  .hr-module table td,
  .hr-page table th,
  .hr-page table td {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .hr-module-hero.hr-module-hero-with-period .hr-module-hero-actions,
  .hr-module-hero.hr-module-hero-with-period:not(.hr-module-hero-payroll):not(.hr-module-hero-with-facts) .hr-module-hero-actions,
  .hr-shell .hr-module-hero.hr-module-hero-with-period .hr-module-hero-actions,
  .hr-shell .hr-module-hero.hr-module-hero-with-period:not(.hr-module-hero-payroll):not(.hr-module-hero-with-facts) .hr-module-hero-actions,
  .hr-module-hero-actions,
  .hr-shell .hr-module-hero .hr-module-hero-actions {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .hr-module-hero.hr-module-hero-with-period .hr-module-hero-actions .hr-period-action,
  .hr-module-hero.hr-module-hero-with-period:not(.hr-module-hero-payroll):not(.hr-module-hero-with-facts) .hr-module-hero-actions .hr-period-action,
  .hr-shell .hr-module-hero.hr-module-hero-with-period .hr-module-hero-actions .hr-period-action,
  .hr-shell .hr-module-hero.hr-module-hero-with-period:not(.hr-module-hero-payroll):not(.hr-module-hero-with-facts) .hr-module-hero-actions .hr-period-action,
  .hr-period-action,
  .hr-shell .hr-module-hero .hr-module-hero-actions .hr-period-action {
    box-sizing: border-box !important;
    padding-inline: 8px !important;
    overflow: hidden !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .hr-period-action input,
  .hr-shell .hr-module-hero .hr-module-hero-actions .hr-period-action input {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media screen and (max-width: 480px) {
  .invoice-page-actions,
  .invoice-status-pills,
  .expense-type-pills,
  .withdrawal-partner-pills,
  .settings-tabs,
  .access-tab-shell,
  .treasury-tabs,
  .hr-module-hero-actions {
    grid-template-columns: 1fr !important;
  }
}

/* ACC TEST MOBILE TABLE RESTORE - keep real tables on phones with horizontal scroll. */
@media screen and (max-width: 760px) {
  .table-wrap,
  .modern-table-wrap,
  .invoice-revamp-table-shell,
  .customer-ledger-table-shell,
  .customer-profile-table-wrap,
  .treasury-table-wrap,
  .report-table-wrap,
  .activity-table-wrap,
  .archive-table-wrap,
  .access-users-table-wrap,
  .hr-saas-table-wrap,
  .hr-employee-table-wrap,
  .hr-table-wrap,
  .hr-advance-table-wrap,
  .hr-payroll-transfer-table-wrap,
  .hr-evaluation-record-table-wrap,
  .hr-uploaded-table-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .mobile-responsive-table,
  .invoice-revamp-table,
  .document-registry-table,
  .customer-ledger-table,
  .service-items-table,
  .treasury-movements-table,
  .access-users-table,
  .activity-table,
  .archive-table,
  .report-screen-table,
  .customer-profile-table,
  .hr-saas-compact-table,
  .hr-employee-table,
  .hr-table,
  .hr-accounting-approval-table,
  .hr-payroll-run-table,
  .hr-advance-table,
  .hr-payroll-transfer-table,
  .hr-evaluation-record-table {
    display: table !important;
    width: 100% !important;
    min-width: 760px !important;
    max-width: none !important;
    table-layout: auto !important;
    border-collapse: collapse !important;
    background: #fff !important;
  }

  .hr-attendance-matrix,
  .hr-payroll-run-table,
  .hr-payroll-transfer-table,
  .hr-accounting-approval-table,
  .report-screen-table,
  .customer-ledger-table,
  .invoice-revamp-table {
    min-width: 980px !important;
  }

  .mobile-responsive-table colgroup,
  .invoice-revamp-table colgroup,
  .document-registry-table colgroup,
  .customer-ledger-table colgroup,
  .service-items-table colgroup,
  .treasury-movements-table colgroup,
  .access-users-table colgroup,
  .activity-table colgroup,
  .archive-table colgroup,
  .hr-saas-compact-table colgroup {
    display: table-column-group !important;
  }

  .mobile-responsive-table thead,
  .invoice-revamp-table thead,
  .document-registry-table thead,
  .customer-ledger-table thead,
  .service-items-table thead,
  .treasury-movements-table thead,
  .access-users-table thead,
  .activity-table thead,
  .archive-table thead,
  .report-screen-table thead,
  .customer-profile-table thead,
  .hr-saas-compact-table thead,
  .hr-employee-table thead,
  .hr-table thead,
  .hr-advance-table thead,
  .hr-payroll-transfer-table thead,
  .hr-evaluation-record-table thead {
    display: table-header-group !important;
  }

  .mobile-responsive-table tbody,
  .invoice-revamp-table tbody,
  .document-registry-table tbody,
  .customer-ledger-table tbody,
  .service-items-table tbody,
  .treasury-movements-table tbody,
  .access-users-table tbody,
  .activity-table tbody,
  .archive-table tbody,
  .report-screen-table tbody,
  .customer-profile-table tbody,
  .hr-saas-compact-table tbody,
  .hr-employee-table tbody,
  .hr-table tbody,
  .hr-advance-table tbody,
  .hr-payroll-transfer-table tbody,
  .hr-evaluation-record-table tbody {
    display: table-row-group !important;
    width: auto !important;
  }

  .mobile-responsive-table tr,
  .invoice-revamp-table tr,
  .document-registry-table tr,
  .customer-ledger-table tr,
  .service-items-table tr,
  .treasury-movements-table tr,
  .access-users-table tr,
  .activity-table tr,
  .archive-table tr,
  .report-screen-table tr,
  .customer-profile-table tr,
  .hr-saas-compact-table tr,
  .hr-employee-table tr,
  .hr-table tr,
  .hr-advance-table tr,
  .hr-payroll-transfer-table tr,
  .hr-evaluation-record-table tr {
    display: table-row !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .mobile-responsive-table th,
  .mobile-responsive-table td,
  .invoice-revamp-table th,
  .invoice-revamp-table td,
  .document-registry-table th,
  .document-registry-table td,
  .customer-ledger-table th,
  .customer-ledger-table td,
  .service-items-table th,
  .service-items-table td,
  .treasury-movements-table th,
  .treasury-movements-table td,
  .access-users-table th,
  .access-users-table td,
  .activity-table th,
  .activity-table td,
  .archive-table th,
  .archive-table td,
  .report-screen-table th,
  .report-screen-table td,
  .customer-profile-table th,
  .customer-profile-table td,
  .hr-saas-compact-table th,
  .hr-saas-compact-table td,
  .hr-employee-table th,
  .hr-employee-table td,
  .hr-table th,
  .hr-table td,
  .hr-advance-table th,
  .hr-advance-table td,
  .hr-payroll-transfer-table th,
  .hr-payroll-transfer-table td,
  .hr-evaluation-record-table th,
  .hr-evaluation-record-table td {
    display: table-cell !important;
    width: auto !important;
    min-width: max-content !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid rgba(226, 232, 240, .9) !important;
    text-align: right !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
  }

  .mobile-responsive-table td::before,
  .invoice-revamp-table td::before,
  .document-registry-table td::before,
  .customer-ledger-table td::before,
  .service-items-table td::before,
  .treasury-movements-table td::before,
  .access-users-table td::before,
  .activity-table td::before,
  .archive-table td::before,
  .hr-saas-compact-table td::before,
  .hr-employee-table td::before,
  .hr-table td::before,
  .hr-advance-table td::before,
  .hr-payroll-transfer-table td::before,
  .hr-evaluation-record-table td::before,
  .invoice-revamp-table tr::before {
    content: none !important;
    display: none !important;
  }

  td.table-actions,
  .mobile-responsive-table td.table-actions,
  .hr-employee-table td:last-child,
  .access-users-table td:last-child {
    display: table-cell !important;
    min-width: 150px !important;
    white-space: nowrap !important;
  }

  td.table-actions > *,
  .hr-table-actions > *,
  .hr-row-actions > *,
  .access-row-actions > *,
  .invoice-revamp-actions > * {
    margin-inline: 2px !important;
  }

  .table-wrap table,
  .modern-table-wrap table,
  .invoice-revamp-table-shell table,
  .customer-ledger-table-shell table,
  .customer-profile-table-wrap table,
  .treasury-table-wrap table,
  .report-table-wrap table,
  .activity-table-wrap table,
  .archive-table-wrap table,
  .access-users-table-wrap table,
  .hr-saas-table-wrap table,
  .hr-employee-table-wrap table,
  .hr-table-wrap table,
  .hr-advance-table-wrap table,
  .hr-payroll-transfer-table-wrap table,
  .hr-evaluation-record-table-wrap table,
  .hr-uploaded-table-wrap table,
  .hr-attendance-matrix {
    display: table !important;
    min-width: 760px !important;
    max-width: none !important;
  }

  .table-wrap thead,
  .modern-table-wrap thead,
  .invoice-revamp-table-shell thead,
  .customer-ledger-table-shell thead,
  .customer-profile-table-wrap thead,
  .treasury-table-wrap thead,
  .report-table-wrap thead,
  .activity-table-wrap thead,
  .archive-table-wrap thead,
  .access-users-table-wrap thead,
  .hr-saas-table-wrap thead,
  .hr-employee-table-wrap thead,
  .hr-table-wrap thead,
  .hr-advance-table-wrap thead,
  .hr-payroll-transfer-table-wrap thead,
  .hr-evaluation-record-table-wrap thead,
  .hr-uploaded-table-wrap thead {
    display: table-header-group !important;
  }

  .table-wrap tbody,
  .modern-table-wrap tbody,
  .invoice-revamp-table-shell tbody,
  .customer-ledger-table-shell tbody,
  .customer-profile-table-wrap tbody,
  .treasury-table-wrap tbody,
  .report-table-wrap tbody,
  .activity-table-wrap tbody,
  .archive-table-wrap tbody,
  .access-users-table-wrap tbody,
  .hr-saas-table-wrap tbody,
  .hr-employee-table-wrap tbody,
  .hr-table-wrap tbody,
  .hr-advance-table-wrap tbody,
  .hr-payroll-transfer-table-wrap tbody,
  .hr-evaluation-record-table-wrap tbody,
  .hr-uploaded-table-wrap tbody {
    display: table-row-group !important;
  }

  .table-wrap tr,
  .modern-table-wrap tr,
  .invoice-revamp-table-shell tr,
  .customer-ledger-table-shell tr,
  .customer-profile-table-wrap tr,
  .treasury-table-wrap tr,
  .report-table-wrap tr,
  .activity-table-wrap tr,
  .archive-table-wrap tr,
  .access-users-table-wrap tr,
  .hr-saas-table-wrap tr,
  .hr-employee-table-wrap tr,
  .hr-table-wrap tr,
  .hr-advance-table-wrap tr,
  .hr-payroll-transfer-table-wrap tr,
  .hr-evaluation-record-table-wrap tr,
  .hr-uploaded-table-wrap tr {
    display: table-row !important;
  }

  .table-wrap th,
  .table-wrap td,
  .modern-table-wrap th,
  .modern-table-wrap td,
  .invoice-revamp-table-shell th,
  .invoice-revamp-table-shell td,
  .customer-ledger-table-shell th,
  .customer-ledger-table-shell td,
  .customer-profile-table-wrap th,
  .customer-profile-table-wrap td,
  .treasury-table-wrap th,
  .treasury-table-wrap td,
  .report-table-wrap th,
  .report-table-wrap td,
  .activity-table-wrap th,
  .activity-table-wrap td,
  .archive-table-wrap th,
  .archive-table-wrap td,
  .access-users-table-wrap th,
  .access-users-table-wrap td,
  .hr-saas-table-wrap th,
  .hr-saas-table-wrap td,
  .hr-employee-table-wrap th,
  .hr-employee-table-wrap td,
  .hr-table-wrap th,
  .hr-table-wrap td,
  .hr-advance-table-wrap th,
  .hr-advance-table-wrap td,
  .hr-payroll-transfer-table-wrap th,
  .hr-payroll-transfer-table-wrap td,
  .hr-evaluation-record-table-wrap th,
  .hr-evaluation-record-table-wrap td,
  .hr-uploaded-table-wrap th,
  .hr-uploaded-table-wrap td {
    display: table-cell !important;
    white-space: nowrap !important;
  }
}
