
/* STOREDX AI — Creator mobile cards V2.
   Desktop/tablet layouts remain unchanged. */

@media screen and (max-width: 767px) {

  #content .sx-kd-table-scroll {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #content table.sx-kd-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: auto !important;
    border: 0 !important;
  }

  #content .sx-kd-table thead {
    display: none !important;
  }

  #content .sx-kd-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  #content .sx-kd-table tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 13px !important;
    gap: 0 !important;
    border: 1px solid #dce6f5 !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(15,40,80,.04);
    overflow: hidden !important;
  }

  #content .sx-kd-table tbody td {
    display: block !important;
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    padding: 11px 7px !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #edf1f7 !important;
    background: transparent !important;
    box-shadow: none !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    text-align: left !important;
  }

  #content .sx-kd-table tbody td::before {
    display: block !important;
    margin-bottom: 6px !important;
    color: #667b9b !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .045em;
  }

  #content .sx-kd-table tbody td:nth-child(1) {
    grid-column: 1 / -1 !important;
    padding: 2px 0 13px !important;
    border-bottom: 1px solid #dae6f8 !important;
  }

  #content .sx-kd-table tbody td:nth-child(1)::before {
    display: none !important;
  }

  #content .sx-kd-table tbody td:nth-child(2)::before {
    content: "Historical GMV";
  }
  #content .sx-kd-table tbody td:nth-child(3)::before {
    content: "Items Sold Evidence";
  }
  #content .sx-kd-table tbody td:nth-child(4)::before {
    content: "Followers";
  }
  #content .sx-kd-table tbody td:nth-child(5)::before {
    content: "Follower Change";
  }
  #content .sx-kd-table tbody td:nth-child(6)::before {
    content: "Linked Products";
  }
  #content .sx-kd-table tbody td:nth-child(7)::before {
    content: "Revenue Trend";
  }
  #content .sx-kd-table tbody td:nth-child(8)::before {
    content: "Recorded Likes";
  }
  #content .sx-kd-table tbody td:nth-child(9)::before {
    content: "Views Trend";
  }
  #content .sx-kd-table tbody td:nth-child(10)::before {
    content: "Rank";
  }
  #content .sx-kd-table tbody td:nth-child(11)::before {
    content: "Evidence Date";
  }

  #content .sx-kd-table tbody td:nth-child(12) {
    grid-column: 1 / -1 !important;
    padding: 12px 0 0 !important;
    border: 0 !important;
  }

  #content .sx-kd-table tbody td:nth-child(12)::before {
    display: none !important;
  }

  #content .sx-kd-person {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  #content .sx-kd-person-text {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  #content .sx-kd-person-text strong {
    display: block;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  #content .sx-kd-table tbody td strong {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  #content .sx-kd-table tbody td small {
    display: block;
    margin-top: 4px;
    line-height: 1.35;
  }

  #content .sx-kd-sparkline,
  #content .sx-kd-sparkline svg {
    max-width: 100% !important;
  }

  #content .sx-kd-history-open {
    width: 100% !important;
    min-height: 42px !important;
    display: block !important;
  }

  #content .sx-kd-table tbody td:nth-child(2) strong {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  #content .sx-kd-results-range {
    text-align: left !important;
  }

  #content .sx-kd-table tbody td:nth-child(6) img {
    max-width: 44px !important;
    max-height: 44px !important;
  }
}
