/* Shared responsive treatment for decision tables across the site. */
.az-table-swipe-hint {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: #52677b;
  font: 600 12px/1.5 "Sarabun", sans-serif;
}

.az-table-swipe-hint::before {
  content: "↔";
  color: #185fa5;
  font-size: 16px;
}

@media (max-width: 640px) {
  .az-table-swipe-hint {
    display: flex;
  }

  .az-mobile-card-wrap {
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  table.az-mobile-card-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .az-mobile-card-table thead {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
  }

  .az-mobile-card-table tbody,
  .az-mobile-card-table tr,
  .az-mobile-card-table td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .az-mobile-card-table tbody {
    display: grid !important;
    gap: 12px;
  }

  .az-mobile-card-table tbody tr {
    overflow: hidden;
    border: 1px solid #dbeaf6;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(22, 58, 91, 0.07);
  }

  .az-mobile-card-table tbody td {
    position: static !important;
    display: grid !important;
    grid-template-columns: minmax(92px, 0.72fr) minmax(0, 1.28fr);
    gap: 12px;
    align-items: start;
    padding: 11px 13px !important;
    border: 0 !important;
    border-bottom: 1px solid #edf3f8 !important;
    background: #fff !important;
    color: #405468 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    text-align: left !important;
    box-shadow: none !important;
  }

  .az-mobile-card-table tbody td:last-child {
    border-bottom: 0 !important;
  }

  .az-mobile-card-table tbody td::before {
    color: #163a5b;
    content: attr(data-label);
    font-weight: 800;
    line-height: 1.45;
  }

  .az-mobile-card-table tbody td:first-child {
    background: #f2f8fc !important;
    color: #163a5b !important;
    font-weight: 800 !important;
  }

  .az-mobile-card-table tbody td:only-child::before,
  .az-mobile-card-table tbody td[data-label=""]::before {
    display: none;
  }

  .az-mobile-card-table tbody td a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 10px;
    background: #185fa5;
    color: #fff !important;
    text-decoration: none;
  }

  .az-mobile-card-table + .az-table-swipe-hint,
  .az-mobile-card-wrap > .az-table-swipe-hint {
    display: none;
  }
}

