/* public/css/list-view.css */
.listview-container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0001;
  margin: 32px auto;
  max-width: 1100px;
  padding: 24px 18px 18px 18px;
}
.listview-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.listview-search {
  flex: 1 1 250px;
  max-width: 320px;
  margin-left: 16px;
}
@media (max-width: 700px) {
  .listview-header { flex-direction: column; align-items: stretch; }
  .listview-search { margin-left: 0; margin-top: 12px; }
  .listview-container { padding: 10px 2px; }
}
#listview-table-area {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
#listview-table-area .table {
  background: #fafbfc;
  border-radius: 6px;
  overflow: hidden;
}
#listview-table-area tr:hover {
  background: #f0f4fa;
}
#listview-table-area td, #listview-table-area th {
  vertical-align: middle;
}
#listview-pagination {
  margin-top: 18px;
}
.listview-container td img {
  display: block;
  margin: 0 auto;
}
.listview-container .social-icon {
  width: 22px;
  height: 22px;
  font-size: 12px;
  min-width: 22px;
  min-height: 22px;
} 
/* Responsive: Tabloyu yatayda kaydırılabilir yap */
@media (max-width: 1100px) {
  #listview-table-area {
    overflow-x: auto;
  }
  .listview-container table {
    min-width: 700px;
  }
}

/* 700px altı: Sütun başlıklarını ve paddingleri küçült */
@media (max-width: 700px) {
  .listview-container table th, .listview-container table td {
    padding: 4px 6px;
    font-size: 13px;
  }
  .listview-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .listview-search {
    flex: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
}

/* 500px altı: Social Media ve Website sütunlarını gizle */
@media (max-width: 500px) {
  /* Organizations tabı */
  .org-list-table th:nth-child(4),
  .org-list-table td:nth-child(4),
  .org-list-table th:nth-child(5),
  .org-list-table td:nth-child(5) {
    display: none;
  }
  /* People tabı */
  .people-list-table th:nth-child(2),
  .people-list-table td:nth-child(2),
  .people-list-table th:nth-child(4),
  .people-list-table td:nth-child(4),
  .people-list-table th:nth-child(5),
  .people-list-table td:nth-child(5) {
    display: none;
  }
}

/* Tablar ve arama kutusu üstte dikey dizilsin */
@media (max-width: 700px) {
  .listview-header {
    flex-direction: column;
    align-items: stretch;
  }
} 

/* Social media icon row for people tablosu */
.social-icons-row {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.social-icon.active {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: box-shadow 0.15s;
}
.social-icon.active i {
  font-size: 16px;
  line-height: 1;
}
.social-icon.active[data-bgcolor] {
  background: attr(data-bgcolor color, #888);
}
.social-icon:visited {
  color: #fff;
}
.social-icon.inactive {
  background: #e0e0e0;
  color: #9e9e9e;
} 