/* =========================================================
   PF Dónde estamos — móvil (Supsystic oneColumn)
   page-id-87 en todos los países
   ========================================================= */

.page-id-87 .supsystic-tables-wrap,
.page-id-87 .dataTables_wrapper {
  max-width: 100%;
  box-sizing: border-box;
}

.page-id-87 .dataTables_wrapper .dataTables_length,
.page-id-87 .dataTables_wrapper .dataTables_filter {
  float: none !important;
  text-align: left !important;
  margin: 0 0 0.75rem !important;
}

.page-id-87 .dataTables_wrapper .dataTables_filter input {
  width: min(100%, 280px) !important;
  max-width: 100% !important;
  margin-left: 0.35rem !important;
}

@media (max-width: 767px) {
  .page-id-87 .supsystic-tables-wrap {
    padding: 0.85rem 0.7rem 1.25rem !important;
    margin: 0 auto 5.5rem !important; /* aire para Chaty */
    border-radius: 14px !important;
    overflow: hidden !important;
  }

  .page-id-87 .dataTables_wrapper {
    overflow-x: hidden !important;
  }

  .page-id-87 .dataTables_wrapper .dataTables_length,
  .page-id-87 .dataTables_wrapper .dataTables_filter {
    width: 100% !important;
  }

  .page-id-87 .dataTables_wrapper .dataTables_length label,
  .page-id-87 .dataTables_wrapper .dataTables_filter label {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.35rem 0.5rem !important;
    width: 100% !important;
    font-size: 0.88rem !important;
  }

  .page-id-87 .dataTables_wrapper .dataTables_filter input {
    flex: 1 1 160px !important;
    width: 100% !important;
    margin-left: 0 !important;
  }

  /* Cada tienda = tarjeta */
  .page-id-87 table.supsystic-table.oneColumn,
  .page-id-87 table.supsystic-table.oneColumn tbody,
  .page-id-87 table.supsystic-table.oneColumn tr,
  .page-id-87 table.supsystic-table.oneColumn td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-id-87 table.supsystic-table.oneColumn {
    border: 0 !important;
  }

  .page-id-87 table.supsystic-table.oneColumn tbody tr {
    margin: 0 0 0.95rem !important;
    padding: 0.15rem 0 0.35rem !important;
    border: 1px solid rgba(14, 102, 126, 0.16) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 6px 18px rgba(14, 102, 126, 0.07) !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .page-id-87 table.supsystic-table.oneColumn tbody tr:nth-child(even),
  .page-id-87 table.supsystic-table.oneColumn tbody tr:nth-child(even) td,
  .page-id-87 table.supsystic-table.oneColumn tbody tr:hover td {
    background: #fff !important;
  }

  /* Etiqueta ARRIBA + valor ABAJO (evita solapes del 50%/nowrap) */
  .page-id-87 table.supsystic-table.oneColumnWithLabels tr:not(.haveMergedCell) td,
  .page-id-87 table.supsystic-table.oneColumn tbody td {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.85rem 0.9rem 0.7rem !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(14, 102, 126, 0.08) !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    line-height: 1.4 !important;
    font-size: 0.92rem !important;
    color: #1b2a32 !important;
    background: transparent !important;
  }

  .page-id-87 table.supsystic-table.oneColumnWithLabels tr:not(.haveMergedCell) td:last-child,
  .page-id-87 table.supsystic-table.oneColumn tbody td:last-child {
    border-bottom: 0 !important;
  }

  .page-id-87 table.supsystic-table.oneColumnWithLabels tr:not(.haveMergedCell) td::before {
    position: absolute !important;
    top: 0.55rem !important;
    left: 0.9rem !important;
    right: 0.9rem !important;
    width: auto !important;
    max-width: calc(100% - 1.8rem) !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    line-height: 1.25 !important;
    color: #0e667e !important;
    text-align: left !important;
    float: none !important;
  }

  /* Enlaces GPS / mapas */
  .page-id-87 table.supsystic-table.oneColumn tbody td a,
  .page-id-87 a.pf-donde-map {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    margin-top: 0.15rem !important;
    padding: 0.55rem 0.85rem !important;
    border-radius: 999px !important;
    background: #0e667e !important;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    word-break: normal !important;
  }

  .page-id-87 .dataTables_info,
  .page-id-87 .dataTables_paginate {
    float: none !important;
    text-align: center !important;
    width: 100% !important;
    padding-top: 0.5rem !important;
  }
}
