/* ============================================
   SuperSelling — Global Filament Custom Styles
   ============================================ */

/* -- Stat Cards -- */
.stat-card { display: flex; align-items: center; gap: 0.75rem; padding: 1.25rem; border-radius: 0.75rem; border: 1px solid #E5E7EB; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.stat-icon { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 0.625rem; flex-shrink: 0; }
.stat-label { font-size: 0.75rem; font-weight: 500; color: #6B7280; }
.stat-value { font-size: 1.25rem; font-weight: 700; color: #111827; font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 0.75rem; font-weight: 400; color: #9CA3AF; margin-left: 2px; }
.stat-sub { display: flex; gap: 0.75rem; margin-top: 0.25rem; font-size: 0.7rem; }
.stat-sub .green { color: #16A34A; font-weight: 500; }
.stat-sub .red { color: #DC2626; font-weight: 500; }

/* -- Filter Bar -- */
.filter-bar { display: flex; gap: 0.75rem; align-items: flex-end; padding: 1rem; background: #F9FAFB; border-radius: 0.5rem; border: 1px solid #F3F4F6; margin-bottom: 1.5rem; }
.filter-field { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-label { font-size: 0.7rem; font-weight: 500; color: #6B7280; text-transform: uppercase; letter-spacing: 0.05em; }
.field-label { display: block; font-size: 0.75rem; font-weight: 500; color: #6B7280; margin-bottom: 0.25rem; }

/* -- Tables -- */
.ss-table { width: 100%; font-size: 0.875rem; border-collapse: collapse; }
.ss-table thead { background: #F9FAFB; }
.ss-table th { padding: 0.75rem; text-align: left; font-size: 0.7rem; font-weight: 600; color: #6B7280; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid #E5E7EB; }
.ss-table td { padding: 0.75rem; border-bottom: 1px solid #F3F4F6; vertical-align: middle; }
.ss-table tbody tr:hover { background: #F9FAFB; }
.ss-table .mono { font-family: ui-monospace, monospace; font-size: 0.75rem; }
.ss-table .muted { font-size: 0.75rem; color: #9CA3AF; }
.ss-table .bold { font-weight: 600; color: #111827; }
.ss-table .num { font-variant-numeric: tabular-nums; }
.ss-table .truncate-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-wrap { overflow-x: auto; border-radius: 0.5rem; border: 1px solid #E5E7EB; }

/* -- Result Cards -- */
.result-card { border-radius: 0.5rem; padding: 0.75rem; text-align: center; border: 1px solid #E5E7EB; }
.result-card .result-value { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.result-card .result-label { font-size: 0.7rem; color: #6B7280; margin-top: 0.125rem; }

/* -- Detail Box -- */
.detail-box { background: #F9FAFB; border-radius: 0.5rem; padding: 1rem; border: 1px solid #F3F4F6; }
.detail-box .detail-row { display: flex; gap: 0.5rem; font-size: 0.875rem; padding: 0.25rem 0; }
.detail-box .detail-row .detail-key { font-weight: 500; color: #374151; min-width: 4.5rem; }
.detail-box .detail-row .detail-val { color: #6B7280; }

/* -- Error List -- */
.error-list { font-size: 0.875rem; color: #EF4444; }
.error-title { font-weight: 500; margin-bottom: 0.5rem; }

/* -- Schedule Box -- */
.schedule-box { background: #F9FAFB; border-radius: 0.5rem; padding: 0.75rem; border: 1px solid #F3F4F6; }
.schedule-box code { font-size: 0.75rem; color: #374151; }
.schedule-box p { font-size: 0.75rem; color: #6B7280; margin-top: 0.25rem; }
.schedule-row { display: flex; align-items: center; gap: 0.5rem; }

/* -- Tabs -- */
.ss-tabs { display: flex; gap: 0; border-bottom: 2px solid #E5E7EB; margin-bottom: 1.5rem; }
.ss-tab { padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 500; color: #6B7280; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; background: none; border-top: none; border-left: none; border-right: none; }
.ss-tab:hover { color: #374151; }
.ss-tab.active { color: #3B82F6; border-bottom-color: #3B82F6; font-weight: 600; }
.ss-tab .tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; padding: 0 0.375rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 600; margin-left: 0.375rem; }
.ss-tab .tab-count.blue { background: #EFF6FF; color: #2563EB; }
.ss-tab .tab-count.default { background: #F3F4F6; color: #6B7280; }

/* -- Member Card -- */
.member-card { border-radius: 0.5rem; border: 1px solid #E5E7EB; background: #FFFFFF; padding: 1.25rem; transition: box-shadow 0.15s; }
.member-card:hover { box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.member-header { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.member-name { font-size: 0.875rem; font-weight: 600; color: #3B82F6; text-decoration: none; }
.member-name:hover { text-decoration: underline; }
.member-meta { font-size: 0.75rem; color: #9CA3AF; }
.member-market-id { font-size: 0.875rem; color: #374151; }
.member-market-id-label { font-size: 0.7rem; color: #9CA3AF; margin-right: 0.25rem; }
.member-stats { display: flex; gap: 1.5rem; margin-bottom: 0.75rem; font-size: 0.875rem; color: #6B7280; }
.member-stats strong { font-weight: 600; color: #111827; font-variant-numeric: tabular-nums; }
.member-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid #F3F4F6; }
.member-divider { height: 1px; background: #E5E7EB; margin: 0.5rem 0; }
.count-select { font-size: 0.75rem; border: 1px solid #D1D5DB; border-radius: 0.375rem; padding: 0.25rem 0.5rem; color: #374151; background: #FFFFFF; outline: none; }
.count-select:focus { border-color: #3B82F6; box-shadow: 0 0 0 1px #3B82F6; }

/* -- Pagination -- */
.paging-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #E5E7EB; }
.paging-info { font-size: 0.875rem; color: #6B7280; }
.paging-info strong { font-weight: 600; color: #111827; }

/* -- Empty State -- */
.empty-state { padding: 3rem 0; text-align: center; color: #9CA3AF; font-size: 0.875rem; }

/* -- Pulse Dot -- */
.pulse-dot { position: relative; display: inline-flex; width: 0.5rem; height: 0.5rem; }
.pulse-dot::before { content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%; background: #10B981; animation: pulse-ring 1.5s infinite; }
.pulse-dot::after { content: ''; position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; background: #10B981; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.5); opacity: 0; } }

/* -- Spinner -- */
.spinner { animation: spin 1s linear infinite; width: 1rem; height: 1rem; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
