/* Dongda finance wide-phone layout: shared by PWA, APK and desktop shells. */
.erp-sheet-scroll-hint {
  display: none;
}

@media (min-width: 761px) and (max-width: 1100px) {
  html,
  body,
  .app,
  .main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .wrap {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    overflow-x: hidden;
  }

  .hamb,
  .top-search,
  .top-alert-btn,
  .btn,
  .btn.sm,
  .dd-select-button,
  .reference-tabs button,
  .payroll-view-switch button,
  .compact-filter-panel .compact-filter-chips button,
  .compact-filter-panel > summary,
  .tx-filter-panel > summary,
  .note-review-fold > summary,
  .erp-sheet-detail > summary,
  .accounting-ledger-more button,
  .settings-module-card,
  .order-recon-toolbar input,
  .order-recon-toolbar select,
  .erp-voucher-filters input,
  .erp-voucher-filters select,
  .expense-quality-actions button,
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
  select {
    min-height: 44px;
  }

  .expense-calendar-day,
  .expense-calendar-day.has-expense {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .hamb {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
  }

  .topbar {
    min-height: 64px;
    padding: 9px 14px;
    gap: 10px;
  }

  .top-actions {
    gap: 8px;
  }

  .top-search {
    height: 44px;
    padding: 8px 12px;
  }

  .top-search kbd {
    display: none;
  }

  .top-alert-btn {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  #authUserBox .auth-user,
  #authUserBox .btn {
    min-height: 44px;
  }

  .order-recon-toolbar,
  .erp-voucher-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .order-recon-toolbar > input:first-child,
  .erp-voucher-search {
    grid-column: span 2;
  }

  .erp-voucher-filters > .btn {
    width: 100%;
    justify-content: center;
  }

  .expense-quality-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .expense-quality-item {
    grid-template-columns: 1fr;
  }

  .erp-voucher-kpis {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .erp-voucher-kpis > * {
    grid-column: span 2;
  }

  .erp-voucher-kpis > :nth-last-child(-n + 2) {
    grid-column: span 3;
  }

  .finance-table-wrap,
  .reference-table-wrap,
  .erp-sheet-wrap,
  .accounting-ledger-table-wrap,
  .erp-voucher-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: auto;
    scrollbar-color: rgba(15, 23, 42, .42) rgba(148, 163, 184, .16);
    -webkit-overflow-scrolling: touch;
  }

  .finance-table-wrap::-webkit-scrollbar,
  .reference-table-wrap::-webkit-scrollbar,
  .erp-sheet-wrap::-webkit-scrollbar,
  .accounting-ledger-table-wrap::-webkit-scrollbar,
  .erp-voucher-table-wrap::-webkit-scrollbar {
    height: 10px;
  }

  .finance-table-wrap::-webkit-scrollbar-thumb,
  .reference-table-wrap::-webkit-scrollbar-thumb,
  .erp-sheet-wrap::-webkit-scrollbar-thumb,
  .accounting-ledger-table-wrap::-webkit-scrollbar-thumb,
  .erp-voucher-table-wrap::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(15, 23, 42, .42);
    background-clip: padding-box;
  }

  .erp-sheet-scroll-hint {
    position: sticky;
    left: 10px;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin: 8px 8px 6px;
    padding: 5px 9px;
    border: 1px solid rgba(10, 132, 255, .2);
    border-radius: 999px;
    background: rgba(239, 247, 255, .94);
    color: #075fae;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
    pointer-events: none;
  }

  .order-recon-table .erp-sheet-table th:first-child,
  .order-recon-table .erp-sheet-table td:first-child,
  .erp-voucher-table th:first-child,
  .erp-voucher-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #f8fbff;
    box-shadow: 8px 0 14px rgba(15, 23, 42, .06);
  }

  .order-recon-table .erp-sheet-table th:first-child,
  .erp-voucher-table th:first-child {
    z-index: 7;
    background: #eef5fb;
  }

  .tx-account-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .tx-account-line {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .tx-account-line b {
    flex: 1 1 58%;
    min-width: 220px;
    max-width: 100%;
    white-space: normal;
    word-break: break-all;
  }

  .settings-group-head > span,
  .settings-directory-head > .badge,
  .settings-module-side .badge {
    min-width: max-content;
    white-space: nowrap;
    word-break: keep-all;
  }

  .settings-module-side {
    min-width: 88px;
  }
}
