/* agent-creator-subscribers-list.css */
/* ファン一覧（エージェント所属クリエイターのファン一覧） - creator-profile-container と併用 */

.agent-subscribers-list-wrap .agent-subscribers-list-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.agent-subscribers-list-wrap .agent-subscribers-list-info {
    margin: 0.5rem 0;
    color: #4b5563;
}

/* エラーメッセージ（creator-profile-container 内で使用・所属クリエイター一覧と同一） */
.creator-profile-container .access-denied-message,
.creator-profile-container .error-message {
    text-align: center;
    padding: 2em;
}

.creator-profile-container .access-denied-message h2,
.creator-profile-container .error-message h2 {
    margin-bottom: 0.5em;
}

/* クリエイター選択フォーム（縦並び：ラベル → セレクト → ボタン） */
.agent-subscribers-list-wrap .creator-select {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.agent-subscribers-list-wrap .creator-select-form .creator-select-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.agent-subscribers-list-wrap .creator-select-field {
    margin-bottom: 0.75rem;
}

.agent-subscribers-list-wrap .creator-select select {
    display: block;
    width: 100%;
    padding: 0.5em 0.8em;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 1em;
}

.agent-subscribers-list-wrap .creator-select-submit {
    margin-top: 0.25rem;
    text-align: center;
}

.agent-subscribers-list-wrap .agent-subscribers-submit-btn {
    padding: 0.5em 1em;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.agent-subscribers-list-wrap .agent-subscribers-submit-btn:hover {
    opacity: 0.9;
}

/* 絞り込みフォーム */
.agent-subscribers-list-wrap .filter-form {
    margin-bottom: 1rem;
}

.agent-subscribers-list-wrap .filter-form select {
    padding: 0.4em 0.8em;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.9em;
}

/* テーブル */
.agent-subscribers-list-wrap .table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.agent-subscribers-list-wrap .subscribers-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
}

.agent-subscribers-list-wrap .subscribers-table thead tr {
    background: #f9fafb;
}

.agent-subscribers-list-wrap .subscribers-table th,
.agent-subscribers-list-wrap .subscribers-table td {
    padding: 0.875rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.agent-subscribers-list-wrap .subscribers-table th {
    text-align: center;
    font-weight: bold;
    color: #1f2937;
}

.agent-subscribers-list-wrap .subscribers-table .avatar-column {
    width: 60px;
    text-align: center;
}

.agent-subscribers-list-wrap .avatar-cell {
    text-align: center;
}

.agent-subscribers-list-wrap .subscriber-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* ページネーション（所属クリエイター一覧と同一） */
.agent-subscribers-list-wrap .pagination-wrapper {
    margin-top: 1.5rem;
    text-align: center;
}

.agent-subscribers-list-wrap .page-link {
    display: inline-block;
    padding: 0.5em 0.8em;
    margin: 0 0.2em;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s;
}

.agent-subscribers-list-wrap .page-link:not(.current-page) {
    background: #f3f4f6;
    color: #374151;
}

.agent-subscribers-list-wrap .page-link:not(.current-page):hover {
    background: #e5e7eb;
}

.agent-subscribers-list-wrap .page-link.current-page {
    background: #3b82f6;
    color: white;
}

/* 空メッセージ */
.agent-subscribers-list-wrap .empty-message {
    text-align: center;
    padding: 2em 0;
    color: #6b7280;
}

.agent-subscribers-list-wrap .empty-message p {
    margin: 0.5em 0;
}


/* Renewal mobile supporter cards */
@media(max-width:700px){
  .agent-subscribers-list-wrap .table-wrapper{overflow:visible}
  .agent-subscribers-list-wrap .subscribers-table,.agent-subscribers-list-wrap .subscribers-table tbody{display:block;width:100%;border:0}
  .agent-subscribers-list-wrap .subscribers-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .agent-subscribers-list-wrap .subscribers-table tr{display:grid;grid-template-columns:48px minmax(0,1fr);gap:7px 10px;margin-bottom:10px;padding:13px;border:1px solid #e5ebf2;border-radius:14px;background:#fff}
  .agent-subscribers-list-wrap .subscribers-table td{display:block;padding:0;border:0;overflow-wrap:anywhere}
  .agent-subscribers-list-wrap .subscribers-table td:first-child{grid-row:1/4}
  .agent-subscribers-list-wrap .subscribers-table td:nth-child(n+3){grid-column:2}
  .agent-subscribers-list-wrap .subscribers-table td:nth-child(3)::before{content:"サポーターNo. ";color:#667085;font-size:.72rem;font-weight:700}
  .agent-subscribers-list-wrap .subscribers-table td:nth-child(4)::before{content:"コミュニティ ";color:#667085;font-size:.72rem;font-weight:700}
  .agent-subscribers-list-wrap .subscribers-table td:nth-child(5)::before{content:"金額 ";color:#667085;font-size:.72rem;font-weight:700}
  .agent-subscribers-list-wrap .subscribers-table td:nth-child(6)::before{content:"開始日 ";color:#667085;font-size:.72rem;font-weight:700}
  .agent-subscribers-list-wrap .subscribers-table td:nth-child(7)::before{content:"状態 ";color:#667085;font-size:.72rem;font-weight:700}
  .agent-subscribers-list-wrap .agent-subscribers-submit-btn,.agent-subscribers-list-wrap .creator-select select{min-height:44px}
}

.supporter-shipping-address{min-width:210px;line-height:1.55}
.supporter-message-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 10px;border:1px solid #efbfd5;border-radius:999px;color:#b52c70;text-decoration:none!important;font-size:.78rem;font-weight:800;white-space:nowrap}
@media(max-width:700px){
  .agent-subscribers-list-wrap .subscribers-table td:nth-child(8)::before{content:"配送先住所 ";color:#667085;font-size:.72rem;font-weight:700}
  .agent-subscribers-list-wrap .subscribers-table td:nth-child(9)::before{content:"連絡 ";color:#667085;font-size:.72rem;font-weight:700}
  .agent-subscribers-list-wrap .subscribers-table td:nth-child(n+3){grid-column:2}
  .supporter-shipping-address{min-width:0}
  .supporter-message-button{width:100%;box-sizing:border-box;margin-top:4px}
}


/* Second-stage Organizer renewal: keep supporter facts, replace legacy admin styling. */
.agent-subscribers-list-wrap .creator-select,
.agent-subscribers-list-wrap .filter-form{
  border:1px solid #e5ebf2!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
.agent-subscribers-list-wrap .creator-select select,
.agent-subscribers-list-wrap .filter-form select{
  min-height:42px;
  border-color:#d8e1ea;
  border-radius:10px;
  background:#fff;
  color:#334155;
}
.agent-subscribers-list-wrap .agent-subscribers-submit-btn{
  min-height:40px;
  padding:7px 14px;
  border-radius:999px;
  background:#ec4899;
  font-weight:800;
}
.agent-subscribers-list-wrap .subscribers-count{
  display:inline-flex;
  min-height:32px;
  align-items:center;
  padding:4px 10px;
  border:1px solid #e5ebf2;
  border-radius:999px;
  background:#f8fbfd;
  color:#667085;
  font-size:.74rem;
}
.agent-subscribers-list-wrap .subscribers-table{
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid #e5ebf2;
  border-radius:14px;
  background:#fff;
}
.agent-subscribers-list-wrap .subscribers-table th,
.agent-subscribers-list-wrap .subscribers-table td{
  border:0;
  border-bottom:1px solid #edf1f5;
  padding:11px 10px;
}
.agent-subscribers-list-wrap .subscribers-table th{
  background:#f8fafc;
  color:#526173;
  font-size:.72rem;
}
.agent-subscribers-list-wrap .subscribers-table tbody tr:last-child td{
  border-bottom:0;
}
.agent-subscribers-list-wrap .subscribers-table tbody tr:hover{
  background:#fffafd;
}
.agent-subscribers-list-wrap .page-link.current-page{
  background:#ec4899;
}
@media(max-width:700px){
  .agent-subscribers-list-wrap .subscribers-count{
    width:100%;
    box-sizing:border-box;
    justify-content:center;
  }
  .agent-subscribers-list-wrap .subscribers-table{
    overflow:visible;
    border:0;
    background:transparent;
  }
  .agent-subscribers-list-wrap .subscribers-table tr{
    box-shadow:0 4px 14px rgba(50,78,108,.035);
  }
}
