/* Nirwana Residence v8.14
   PWA-only native card tables. No horizontal table scrolling in standalone mode. */

html.nr-pwa-native.nr-pwa-card-mode .main-content .nr-pwa-card-wrap,
html.nr-pwa-native.nr-pwa-card-mode .main-content .nr-table-scroll.nr-pwa-card-wrap,
html.nr-pwa-native.nr-pwa-card-mode .main-content .table-responsive.nr-pwa-card-wrap,
html.nr-pwa-native.nr-pwa-card-mode .main-content .simpkk-table-scroll.nr-pwa-card-wrap,
html.nr-pwa-native.nr-pwa-card-mode .main-content .dataTables_scrollBody.nr-pwa-card-wrap {
  overflow: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: separate !important;
  background: transparent !important;
  box-shadow: none !important;
  table-layout: auto !important;
}

html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > thead,
html.nr-pwa-native.nr-pwa-card-mode .main-content .dataTables_scrollHead:has(table.nr-pwa-card-table) {
  display: none !important;
}

html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
}

html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 7px 12px 9px !important;
  overflow: hidden !important;
  border: 1px solid rgba(128, 87, 58, .14) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg, #fff 0%, #fffaf6 100%) !important;
  box-shadow: 0 7px 20px rgba(77, 47, 27, .07) !important;
}

html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #ee4d2d, #f49a62);
}

html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td {
  display: grid !important;
  grid-template-columns: minmax(92px, 34%) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 9px 2px !important;
  border: 0 !important;
  border-bottom: 1px dashed rgba(111, 79, 58, .12) !important;
  background: transparent !important;
  color: #3e332d !important;
  font-size: 12.2px !important;
  line-height: 1.42 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td:last-child {
  border-bottom: 0 !important;
}

html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td::before {
  content: attr(data-label);
  min-width: 0;
  color: #8a7568;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .035em;
  text-transform: uppercase;
  white-space: normal;
}


html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td > .nr-pwa-card-value {
  grid-column: 2 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  color: inherit !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td > .nr-pwa-card-value > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td.nr-pwa-card-primary {
  margin-top: -1px !important;
  padding-top: 11px !important;
  color: #2f241e !important;
  font-weight: 750 !important;
}

html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td.nr-pwa-card-money {
  font-variant-numeric: tabular-nums;
  font-weight: 800 !important;
}

html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td.nr-pwa-card-empty {
  display: block !important;
  padding: 22px 12px !important;
  border: 0 !important;
  color: #8a7568 !important;
  text-align: center !important;
}
html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td.nr-pwa-card-empty::before { display: none !important; }

html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td > *,
html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td > div,
html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td > span,
html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td > strong,
html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td > a {
  min-width: 0 !important;
  max-width: 100% !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table .badge,
html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table .nr-status-pill {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table td.nr-pwa-card-actions > :not(style),
html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table td.nr-cell-actions > :not(style) {
  max-width: 100% !important;
}
html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table td.nr-pwa-card-actions .btn,
html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table td.nr-cell-actions .btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-height: 36px !important;
  margin: 2px 4px 2px 0 !important;
  padding: 7px 10px !important;
  white-space: nowrap !important;
  font-size: 10.5px !important;
}

/* DataTables controls remain native/mobile friendly above card list. */
html.nr-pwa-native.nr-pwa-card-mode .main-content .dataTables_wrapper,
html.nr-pwa-native.nr-pwa-card-mode .main-content .dt-container,
html.nr-pwa-native.nr-pwa-card-mode .main-content .dataTables_scroll,
html.nr-pwa-native.nr-pwa-card-mode .main-content .dataTables_scrollBody {
  overflow: visible !important;
  max-width: 100% !important;
}
html.nr-pwa-native.nr-pwa-card-mode .main-content .dataTables_paginate,
html.nr-pwa-native.nr-pwa-card-mode .main-content .dt-paging {
  width: 100% !important;
  overflow: visible !important;
  white-space: normal !important;
}
html.nr-pwa-native.nr-pwa-card-mode .main-content .dataTables_paginate .pagination,
html.nr-pwa-native.nr-pwa-card-mode .main-content .dt-paging .pagination {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
}

/* Page-specific min-width/max-width rules must never force sideways PWA scrolling. */
html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table,
html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table [class*="table"],
html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table td[class*="nr-"] {
  min-width: 0 !important;
}

@media (max-width: 390px) {
  html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr { padding-inline: 10px !important; }
  html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td {
    grid-template-columns: minmax(82px, 32%) minmax(0, 1fr) !important;
    gap: 8px !important;
    font-size: 11.8px !important;
  }
  html.nr-pwa-native.nr-pwa-card-mode .main-content table.nr-pwa-card-table > tbody > tr > td::before { font-size: 9.4px !important; }
}
