/*
 * Help Center page styles.
 *
 * The rules intentionally follow the BestShopio Merchant list rhythm: one
 * white working surface, tabs on a hairline, then a compact filter bar and
 * table. Page-only styles stay out of the shared console shell.
 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.content-workspace { min-width: 0; }
.content-tabs { margin: 0 0 14px; }
.content-tabs .tab { gap: 0; padding: 10px 12px; text-decoration: none; }
.content-tabs .count-badge { margin-left: 6px; }

.content-table-card {
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(16 24 40 / 4%);
}
.content-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hair);
  background: #fff;
}
.content-filter-bar-compact { min-height: 58px; }
.content-search-field { flex: 1 1 320px; }
.content-filter-bar .ops-select { flex: 0 1 190px; }
.content-filter-bar .content-status-filter { max-width: 150px; }
.content-table-wrap { min-width: 0; overflow: hidden; }
.content-table-card .ops-table { min-width: 0 !important; table-layout: fixed; }
.content-table-card .ops-table th {
  padding: 12px 16px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--hair);
}
.content-table-card .ops-table td {
  padding: 12px 16px;
  color: var(--ink-body);
  font-size: 13px;
  border-top: 0;
  border-bottom: 1px solid var(--hair);
}
.content-table-card .ops-table tbody tr:last-child td { border-bottom: 0; }
.content-table-card .ops-table tbody tr:hover { background: var(--panel); }
.content-article-table th:nth-child(1) { width: 36%; }
.content-article-table th:nth-child(2) { width: 21%; }
.content-article-table th:nth-child(3) { width: 16%; }
.content-article-table th:nth-child(4) { width: 18%; }
.content-collection-table th:nth-child(1) { width: 37%; }
.content-collection-table th:nth-child(3) { width: 16%; }
.content-collection-table th:nth-child(4) { width: 10%; }
.content-space-table th:nth-child(1) { width: 30%; }
.content-space-table th:nth-child(2) { width: 18%; }
.content-space-table th:nth-child(3) { width: 18%; }
.content-space-table th:nth-child(4) { width: 20%; }
.content-article-cell .ops-row-link strong,
.content-collection-cell .ops-row-link strong { font-size: 13.5px; }
.content-article-cell .ops-row-link > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.content-article-cell .ops-row-link > span > span { display: inline; margin: 0; }
.content-space-cell .ops-meta { margin-top: 0; }
.content-tree-indent { display: inline-block; width: 18px; color: var(--ink-muted); }
.content-row-action { text-align: right; white-space: nowrap; }
.content-row-action .ops-row-actions { justify-content: flex-end; }
.content-icon-action { min-width: 16px; text-decoration: none !important; }
.content-table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 8px 16px;
  border-top: 1px solid var(--hair);
  color: var(--ink-muted);
  font-size: 12px;
}
.content-table-foot-note { text-align: right; }
.content-locale-list { display: flex; flex-wrap: wrap; gap: 4px; }
.content-locale-list span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--panel);
  color: var(--ink-muted);
  font-size: 11px;
}

.content-form-intro {
  max-width: 720px;
  margin: 6px 0 18px;
  color: var(--ink-muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.content-editor { gap: 20px; }
.content-editor-main { min-width: 0; }
.content-article-facts { margin-bottom: 18px; }
.content-locale-options { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 14px; }
.content-locale-option { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-body); font-size: 13px; cursor: pointer; }
.content-locale-option input { accent-color: var(--brand); }
.content-space-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.content-space-summary-grid > div { min-width: 0; padding: 10px 8px; border: 1px solid var(--hair); border-radius: 7px; background: var(--panel); text-align: center; }
.content-space-summary-grid strong { display: block; color: var(--ink); font-size: 17px; line-height: 1.2; }
.content-space-summary-grid span { display: block; margin-top: 3px; color: var(--ink-muted); font-size: 11px; }

.content-collection-picker { position: relative; min-width: 0; }
.content-collection-trigger {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid var(--ctl);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.content-collection-trigger:hover { border-color: #aab7cf; }
.content-collection-picker.is-open .content-collection-trigger,
.content-collection-trigger:focus-visible {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(35 95 210 / 10%);
}
.content-picker-caret { flex: 0 0 auto; color: var(--ink-muted); font-size: 16px; transform: translateY(-1px); }
.content-collection-picker.is-open .content-picker-caret { transform: rotate(180deg) translateY(1px); }
.content-collection-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  min-width: 248px;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 10px 28px rgb(20 35 65 / 16%);
}
.content-picker-search { padding: 8px; border-bottom: 1px solid var(--hair); }
.content-picker-search .input { width: 100%; min-height: 32px; box-sizing: border-box; }
.content-picker-options { max-height: 230px; overflow-y: auto; padding: 5px; }
.content-picker-option {
  width: 100%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  padding: 8px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-body);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.content-picker-option:hover,
.content-picker-option.selected { background: #edf3ff; color: var(--brand); }
.content-picker-option small { color: var(--ink-muted); font-size: 11.5px; line-height: 1.35; }
.content-picker-option.selected small { color: #5374ac; }
.content-picker-empty { padding: 12px 9px; color: var(--ink-muted); font-size: 12px; }
.content-picker-divider { height: 1px; background: var(--hair); }
.content-picker-create {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  background: #fff;
  color: var(--brand);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.content-picker-create:hover { background: #f4f8ff; }

@media (max-width: 1180px) {
  .content-editor { grid-template-columns: 1fr; }
  .content-table-card .hide-md { display: none; }
}
@media (max-width: 880px) {
  .content-filter-bar { align-items: stretch; }
  .content-filter-bar .ops-select { max-width: none; flex: 1 1 180px; }
  .content-search-field { flex-basis: 100%; }
  .content-table-foot { align-items: flex-start; flex-direction: column; }
  .content-table-foot-note { text-align: left; }
}
@media (max-width: 640px) {
  .content-tabs { overflow: visible; flex-wrap: wrap; }
  .content-tabs .tab { flex: 0 0 auto; }
  .content-filter-bar { padding: 11px; }
  .content-filter-bar .ops-select { flex-basis: 100%; width: 100%; }
  .content-table-card .ops-table th,
  .content-table-card .ops-table td { padding: 11px 10px; }
  .content-table-card .hide-sm { display: none; }
  .content-article-table th:nth-child(3),
  .content-article-table td:nth-child(3) { display: none; }
  .content-collection-table .ops-row-actions > button { display: none; }
  .content-row-action { padding-left: 4px !important; }
  .content-row-action .ops-link { font-size: 12px; }
  .content-collection-menu { min-width: 0; max-width: none; }
}
