
/* surveyhub-admin-mobile-payments-v2
   Compact professional payment review cards.
   Small screens only. No financial logic changes. */

@media (max-width:760px) {

  .card:has(.sh-admin-review-table) {
    padding:12px !important;
    max-width:100% !important;
    min-width:0 !important;
    overflow:visible !important;
  }

  .sh-admin-review-table,
  .sh-admin-review-table tbody {
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }

  .sh-admin-review-table tbody tr {
    display:grid !important;
    grid-template-columns:
      minmax(0,1fr) minmax(0,1fr) !important;
    column-gap:14px !important;
    row-gap:13px !important;
    width:100% !important;
    min-width:0 !important;
    margin:0 0 13px !important;
    padding:15px !important;
    box-sizing:border-box !important;
    border:1px solid rgba(211,180,107,.22) !important;
    border-radius:17px !important;
    background:linear-gradient(
      155deg,
      rgba(46,51,43,.97),
      rgba(30,35,30,.97)
    ) !important;
    box-shadow:0 5px 16px rgba(0,0,0,.08);
  }

  .sh-admin-review-table tbody td {
    position:static !important;
    display:block !important;
    width:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    box-sizing:border-box !important;
    text-align:left !important;
    font-size:13px !important;
    line-height:1.5 !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
    white-space:normal !important;
  }

  .sh-admin-review-table tbody td::before {
    position:static !important;
    display:block !important;
    width:auto !important;
    height:auto !important;
    margin:0 0 4px !important;
    padding:0 !important;
    font-size:10px !important;
    line-height:1.4 !important;
    letter-spacing:.06em !important;
    font-weight:750 !important;
    text-transform:uppercase !important;
    color:#c8bd9d !important;
    opacity:.85 !important;
  }

  /* ID and status share the top row */
  .sh-admin-review-table tbody td:first-child {
    grid-column:1;
    grid-row:1;
  }

  .sh-admin-review-table tbody td:nth-last-child(2) {
    grid-column:2;
    grid-row:1;
    justify-self:end;
    text-align:right !important;
  }

  .sh-admin-review-table tbody
    td:nth-last-child(2)::before {
    text-align:right !important;
  }

  .sh-admin-review-table tbody td:nth-child(2) {
    grid-column:1/-1;
    grid-row:2;
  }

  .sh-admin-review-table tbody td:nth-child(3) {
    grid-column:1;
    grid-row:3;
  }

  .sh-admin-review-table tbody td:nth-child(4) {
    grid-column:2;
    grid-row:3;
  }

  .sh-admin-review-table tbody td:nth-child(5) {
    grid-column:1/-1;
    grid-row:4;
  }

  .sh-admin-review-table--withdrawals
    tbody td:nth-child(6) {
    grid-column:1/-1;
    grid-row:5;
  }

  /* Compact status badge */
  .sh-admin-review-table .status {
    display:inline-flex !important;
    width:auto !important;
    max-width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    align-items:center !important;
    justify-content:center !important;
    padding:6px 12px !important;
    margin:0 !important;
    font-size:12px !important;
    font-weight:700 !important;
    line-height:1.2 !important;
    border-radius:999px !important;
    white-space:normal !important;
    overflow-wrap:normal !important;
  }

  .sh-admin-review-table tbody td small {
    display:block;
    margin-top:5px !important;
    font-size:12px !important;
    line-height:1.45 !important;
    opacity:.8;
    overflow-wrap:anywhere;
  }

  /* Review actions occupy the full card width */
  .sh-admin-review-table tbody td:last-child {
    grid-column:1/-1 !important;
    padding:13px 0 0 !important;
    margin-top:3px !important;
    border-top:1px solid rgba(200,183,137,.17) !important;
  }

  .sh-admin-review-table tbody
    td:last-child::before {
    content:"Review" !important;
    margin-bottom:9px !important;
  }

  .sh-admin-review-table tbody
    td:last-child form {
    display:flex !important;
    flex-direction:column !important;
    gap:9px !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
  }

  .sh-admin-review-table tbody
    td:last-child button,
  .sh-admin-review-table tbody
    td:last-child .button {
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
    max-width:100% !important;
    min-height:46px !important;
    padding:10px 12px !important;
    box-sizing:border-box !important;
    border-radius:11px !important;
    font-size:13px !important;
    font-weight:750 !important;
    line-height:1.4 !important;
    white-space:normal !important;
  }

  .sh-admin-review-table tbody
    td:last-child input,
  .sh-admin-review-table tbody
    td:last-child textarea,
  .sh-admin-review-table tbody
    td:last-child select {
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    min-height:44px !important;
    padding:11px !important;
    font-size:16px !important;
    border-radius:10px !important;
  }

  .sh-admin-review-table tbody
    td:last-child button:disabled {
    opacity:.4 !important;
    cursor:not-allowed !important;
  }

  /* Keep existing reject disclosure functional */
  .sh-admin-review-table tbody
    td:last-child details {
    width:100%;
    max-width:100%;
    min-width:0;
    margin-top:9px;
  }

  .sh-admin-review-table tbody
    td:last-child details > summary {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:43px;
    padding:10px 12px;
    border:1px solid rgba(230,135,122,.3);
    border-radius:11px;
    color:#eac4bb;
    font-size:13px;
    font-weight:700;
    text-align:center;
    cursor:pointer;
    list-style:none;
  }

  .sh-admin-review-table tbody
    td:last-child details > summary::-webkit-details-marker {
    display:none;
  }

  .sh-admin-review-table tbody
    td:last-child details[open] > summary {
    margin-bottom:10px;
  }

  /* Source badges and long references */
  .sh-admin-review-table .shw-source {
    display:inline-block;
    max-width:100%;
    font-size:12px !important;
    line-height:1.4 !important;
    overflow-wrap:anywhere;
  }

  .sh-admin-review-table tbody tr:last-child {
    margin-bottom:
      calc(105px + env(safe-area-inset-bottom,0px))
      !important;
  }
}

@media (max-width:350px) {
  .sh-admin-review-table tbody tr {
    grid-template-columns:minmax(0,1fr) !important;
    padding:13px !important;
    row-gap:10px !important;
  }

  .sh-admin-review-table tbody td,
  .sh-admin-review-table tbody td:first-child,
  .sh-admin-review-table tbody td:nth-child(2),
  .sh-admin-review-table tbody td:nth-child(3),
  .sh-admin-review-table tbody td:nth-child(4),
  .sh-admin-review-table tbody td:nth-child(5),
  .sh-admin-review-table tbody td:nth-child(6),
  .sh-admin-review-table tbody td:nth-last-child(2) {
    grid-column:1/-1 !important;
    grid-row:auto !important;
    justify-self:stretch !important;
    text-align:left !important;
  }

  .sh-admin-review-table tbody
    td:nth-last-child(2)::before {
    text-align:left !important;
  }
}
