/* JR View Shared Memories (Invitee) — aligned columns + JR-style card table */

.jrvsmi-wrap{
  margin: 1.25rem auto;
  max-width: 1200px;
  padding: 0 12px;
}

.jrvsmi-title{
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 800;
  text-align: center;
}

.jrvsmi-card{
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0,0,0,.08);
  padding: 14px;
}

/* Make the table behave consistently across themes */
.jrvsmi-table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.jrvsmi-table thead th{
  background: transparent;
  border: 0;
  padding: 10px 12px;
  font-weight: 800;
  color: #111827;
  text-align: left;
  font-size: 14px;
}

.jrvsmi-table tbody td{
  border-top: 1px solid rgba(17,24,39,.08);
  padding: 12px;
  vertical-align: middle;
  font-size: 14px;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jrvsmi-table th:nth-child(1),
.jrvsmi-table td:nth-child(1){ width: 22%; }

.jrvsmi-table th:nth-child(2),
.jrvsmi-table td:nth-child(2){ width: 34%; }

.jrvsmi-table th:nth-child(3),
.jrvsmi-table td:nth-child(3){ width: 10%; }

.jrvsmi-table th:nth-child(4),
.jrvsmi-table td:nth-child(4){ width: 10%; }

.jrvsmi-table th:nth-child(5),
.jrvsmi-table td:nth-child(5){ width: 16%; }

.jrvsmi-table th:nth-child(6),
.jrvsmi-table td:nth-child(6){ width: 8%; }

.jrvsmi-col-title{
  white-space: normal;
  overflow: visible;
}

.jrvsmi-link{
  text-decoration: none;
  font-weight: 700;
}

.jrvsmi-col-actions{
  white-space: nowrap;
}
.jrvsmi-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(17,24,39,.04);
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  margin-right: 6px;
}
.jrvsmi-btn:hover{
  background: rgba(17,24,39,.07);
}

.jrvsmi-notice{
  padding: .9rem 1rem;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 12px;
}

.jrvsmi-meta{
  margin-top: 10px;
  color: rgba(17,24,39,.55);
  font-size: 12px;
  text-align: right;
}

@media (max-width: 820px){
  .jrvsmi-card{ padding: 10px; }

  .jrvsmi-table thead{ display:none; }

  .jrvsmi-table,
  .jrvsmi-table tbody,
  .jrvsmi-table tr,
  .jrvsmi-table td{
    display:block;
    width:100%;
  }

  .jrvsmi-table tr{
    border-top: 1px solid rgba(17,24,39,.10);
    padding: 10px 0;
  }

  .jrvsmi-table tbody td{
    border: 0;
    padding: 6px 8px;
    white-space: normal;
  }

  .jrvsmi-table tbody td:before{
    display:block;
    font-size: 12px;
    font-weight: 800;
    color: rgba(17,24,39,.60);
    margin-bottom: 2px;
  }

  .jrvsmi-table tbody td:nth-child(1):before{ content: "Sender"; }
  .jrvsmi-table tbody td:nth-child(2):before{ content: "Memory Title"; }
  .jrvsmi-table tbody td:nth-child(3):before{ content: "Link"; }
  .jrvsmi-table tbody td:nth-child(4):before{ content: "Page ID"; }
  .jrvsmi-table tbody td:nth-child(5):before{ content: "Date & Time"; }
  .jrvsmi-table tbody td:nth-child(6):before{ content: "Actions"; }

  .jrvsmi-meta{ text-align:left; }
}
