.tsf-ticker-list,
.tsf-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tsf-filters {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tsf-filter-form .tsf-filter-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.tsf-filter-field {
  flex: 1;
  min-width: 160px;
}

.tsf-filter-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.25rem;
}

.tsf-filter-field input,
.tsf-filter-field select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  background: #fff;
}

.tsf-search-field {
  max-width: 350px;
  margin-bottom: 1rem;
}

.tsf-checkbox-filters {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tsf-checkbox-group {
  flex: 1;
  min-width: 250px;
}

.tsf-checkbox-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.5rem;
}

.tsf-checkbox-list {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.35rem 0.5rem;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  column-gap: 0.25rem;
}

.tsf-checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.75rem;
  white-space: nowrap;
  width: calc(50% - 0.25rem);
  box-sizing: border-box;
}

.tsf-checkbox-item:hover {
  background: #f0f0f0;
}

.tsf-checkbox-item input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin: 0;
  cursor: pointer;
}

.tsf-checkbox-item span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tsf-filter-buttons {
  flex: 0 0 auto;
  min-width: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.tsf-filter-buttons button {
  padding: 0.5rem 1.5rem;
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
}

.tsf-filter-buttons button:hover {
  background: #2a2a4e;
}

.tsf-clear-filters {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #dc2626;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #dc2626;
  border-radius: 4px;
  white-space: nowrap;
}

.tsf-clear-filters:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.tsf-result-count {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #666;
}

.tsf-ticker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tsf-ticker-table th {
  text-align: left;
  padding: 0.75rem;
  background: #1a1a2e;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tsf-ticker-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #eee;
}

.tsf-ticker-table tbody tr:hover {
  background: #f5f5f5;
}

.tsf-ticker-symbol a {
  font-weight: 700;
  color: #0e7c6b !important;
  text-decoration: none;
}

.tsf-ticker-symbol a:hover {
  text-decoration: underline;
}

.tsf-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ====== Registration form ====== */

.tsf-reg-section {
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1a1a2e;
  font-size: 1.1rem;
  color: #1a1a2e;
}

.tsf-reg-disclaimer-intro {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.9rem;
  color: #555;
}

/* ====== Ticker List Block ====== */

.tsf-ticker-list-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.tsf-ticker-list-controls .tsf-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tsf-ticker-list-controls .tsf-search-field input {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  min-width: 200px;
}

.tsf-ticker-list-status {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

/* ====== Pagination ====== */

.tsf-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.tsf-pagination button {
  padding: 0.35rem 0.7rem;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  min-width: 2rem;
  text-align: center;
}

.tsf-pagination button:hover:not(:disabled) {
  background: #f0f0f0;
  border-color: #999;
}

.tsf-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.tsf-pagination button.tsf-page-active {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

.tsf-page-ellipsis {
  padding: 0 0.25rem;
  color: #999;
}

/* Sort header cursor */
.tsf-ticker-table th[data-sort] {
  cursor: pointer;
  user-select: none;
}
.tsf-ticker-table th[data-sort]:hover {
  background: rgba(0,0,0,0.04);
}

/* ====== Reusable card wrappers for blocks placed via Block Layout UI ====== */

.tsf-card-primary {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: #8b1a1a;
  color: #fff;
  border-radius: 8px;
}

.tsf-card-primary h2,
.tsf-card-primary h3,
.tsf-card-primary p,
.tsf-card-primary li {
  color: #fff;
}

.tsf-card-primary a {
  color: #ffd700 !important;
  text-decoration: underline;
}

.tsf-card-default {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tsf-card-default h2,
.tsf-card-default h3 {
  color: #1a1a2e;
}

.tsf-card-default a {
  color: #0e7c6b !important;
}

.tsf-no-block-title .block-title,
.tsf-no-block-title > h2:first-child {
  display: none;
}
