/* ════════════════════════════════════════════════════════════
   SmartPay Admin Layout System — sp-layout.css
   Prefix: sp-   (avoids WordPress admin conflicts)
   Import via components.css — compiled by PostCSS / Tailwind
   ════════════════════════════════════════════════════════════ */

/* ── Brand tokens ─────────────────────────────────────────── */
:root {
  --sp-brand:         #293c81;
  --sp-brand-dark:    #1e2f6e;
  --sp-brand-light:   #eef0f9;
  --sp-brand-ring:    rgba(41, 60, 129, 0.2);

  --sp-surface:       #ffffff;
  --sp-surface-muted: #f9fafb;
  --sp-border:        #e5e7eb;
  --sp-border-strong: #d1d5db;

  --sp-text:          #111827;
  --sp-text-muted:    #6b7280;
  --sp-text-subtle:   #9ca3af;

  --sp-radius:        8px;
  --sp-radius-sm:     5px;
  --sp-radius-lg:     12px;
  --sp-shadow:        0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --sp-shadow-md:     0 4px 16px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* ── Override primary button to brand indigo ──────────────── */
.sp-btn--primary {
  background-color: var(--sp-brand) !important;
  border-color:     var(--sp-brand) !important;
  color:            #fff !important;
}
.sp-btn--primary:hover,
.sp-btn--primary:focus {
  background-color: var(--sp-brand-dark) !important;
  border-color:     var(--sp-brand-dark) !important;
  color:            #fff !important;
}

/* ════════════════════════════════════════════════════════════
   PAGE TITLE  (inside sp-layout, top of content area)
   ════════════════════════════════════════════════════════════ */

.sp-page-title__inner {
  margin-bottom: 20px;
  border-bottom: 1px dashed #d0d3d7;
  padding-bottom: 10px;
}

.sp-page-title__heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--sp-text);
  margin: 0 0 4px;
  line-height: 1.2;
}

.sp-page-title__sub {
  font-size: 13px;
  color: var(--sp-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════
   PAGE LAYOUT
   ════════════════════════════════════════════════════════════ */

/* Main page wrapper — matches header inner width + alignment */
.sp-layout {
  max-width: 80rem;        /* same as .smartpay-page-header__inner */
  margin: 0 auto;          /* center within WP content area */
  padding: 28px 1rem 48px; /* top gap below header, 1rem sides match header, generous bottom */
  box-sizing: border-box;
}

/* ── Page head: breadcrumb + title + actions ──────────────── */
.sp-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 20px;
}

.sp-page-head__breadcrumb {
  font-size: 11px;
  font-weight: 600;
  color: var(--sp-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-page-head__breadcrumb span + span::before {
  content: '›';
  margin-right: 6px;
  opacity: 0.5;
}

.sp-page-head__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--sp-text);
  line-height: 1.15;
  margin: 0 0 5px;
}

.sp-page-head__subtitle {
  font-size: 13.5px;
  color: var(--sp-text-muted);
  margin: 0;
  line-height: 1.5;
}

.sp-page-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-top: 2px;
}

/* ════════════════════════════════════════════════════════════
   FILTER TABS  (pill style with count badge)
   ════════════════════════════════════════════════════════════ */

.sp-filter-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sp-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sp-text-muted);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  text-decoration: none;
  line-height: 1.4;
}

.sp-filter-tab:hover {
  background: var(--sp-surface-muted);
  color: var(--sp-text);
  border-color: var(--sp-border);
  text-decoration: none;
}

.sp-filter-tab--active {
  background: var(--sp-text);
  color: #fff;
  border-color: var(--sp-text);
}

.sp-filter-tab--active:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
}

.sp-filter-tab__count {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.72;
  line-height: 1;
}

.sp-filter-tab--active .sp-filter-tab__count {
  opacity: 0.88;
}

/* ════════════════════════════════════════════════════════════
   TOOLBAR  (search + filter dropdowns + extra buttons)
   ════════════════════════════════════════════════════════════ */

.sp-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Search input with magnifier icon */
.sp-search {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 300px;
}

.sp-search__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--sp-text-subtle);
  pointer-events: none;
}

.sp-search__input,
input.sp-search__input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 32px;
  border: 1px solid var(--sp-border) !important;
  border-radius: var(--sp-radius-sm) !important;
  background: var(--sp-surface) !important;
  font-size: 13px !important;
  color: var(--sp-text) !important;
  outline: none !important;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: none !important;
  min-height: unset !important;
}

.sp-search__input::placeholder {
  color: var(--sp-text-subtle);
}

.sp-search__input:focus {
  border-color: var(--sp-brand) !important;
  box-shadow: 0 0 0 3px var(--sp-brand-ring) !important;
}

/* Filter dropdown selects */
.sp-filter-select,
select.sp-filter-select {
  height: 36px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--sp-border) !important;
  border-radius: var(--sp-radius-sm) !important;
  background: var(--sp-surface) !important;
  font-size: 13px !important;
  color: var(--sp-text) !important;
  cursor: pointer;
  outline: none !important;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 9px center !important;
  box-shadow: none !important;
  min-height: unset !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sp-filter-select:focus {
  border-color: var(--sp-brand) !important;
  box-shadow: 0 0 0 3px var(--sp-brand-ring) !important;
}

/* "More filters" or any toolbar icon-button */
.sp-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  background: var(--sp-surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--sp-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s, color 0.12s;
  text-decoration: none;
}

.sp-filter-btn:hover {
  border-color: var(--sp-border-strong);
  color: var(--sp-text);
  text-decoration: none;
}

.sp-filter-btn--active {
  border-color: var(--sp-brand);
  color: var(--sp-brand);
  background: var(--sp-brand-light);
}

/* Push items after this to the right */
.sp-toolbar__spacer {
  flex: 1;
}

/* ════════════════════════════════════════════════════════════
   TABLE  (card wrapper + table styles)
   ════════════════════════════════════════════════════════════ */

.sp-table-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  overflow: hidden;
  box-shadow: var(--sp-shadow);
}

.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

/* thead */
.sp-table thead,
.sp-table > thead {
  background: var(--sp-surface-muted);
  border-bottom: 1px solid var(--sp-border);
}

.sp-table th,
.sp-table thead th {
  padding: 13px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--sp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  background: transparent;
  border: none;
  box-shadow: none;
  vertical-align: middle;
}

/* Column modifiers */
.sp-col--check {
  width: 42px !important;
  padding-right: 4px !important;
}

.sp-col--actions {
  width: 50px;
  text-align: right !important;
}

.sp-col--num {
  text-align: right !important;
}

.sp-col--nowrap {
  white-space: nowrap;
}

/* tbody rows */
.sp-table tbody tr,
.sp-table > tbody > tr {
  border-bottom: 1px solid var(--sp-border);
  transition: background 0.1s;
  background: transparent;
}

.sp-table tbody tr:last-child {
  border-bottom: none;
}

.sp-table tbody tr:hover {
  background: var(--sp-surface-muted);
}

.sp-table tbody tr.sp-row--selected {
  background: var(--sp-brand-light);
}

/* td */
.sp-table td,
.sp-table tbody td {
  padding: 18px 18px;
  color: var(--sp-text);
  vertical-align: middle;
  border: none;
  box-shadow: none;
}

.sp-table td.sp-cell--muted   { color: var(--sp-text-muted); font-size: 12.5px; }
.sp-table td.sp-cell--mono    { font-family: ui-monospace, 'SF Mono', monospace; font-size: 12px; color: var(--sp-text-muted); }
.sp-table td.sp-cell--num     { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.sp-table td.sp-cell--actions { text-align: right; padding-right: 10px; }

/* ════════════════════════════════════════════════════════════
   CHECKBOX  (custom styled — !important overrides WP admin)
   ════════════════════════════════════════════════════════════ */

input[type="checkbox"].sp-checkbox {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1.5px solid var(--sp-border-strong) !important;
  border-radius: 4px !important;
  background: var(--sp-surface) !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  vertical-align: middle;
  transition: background 0.12s, border-color 0.12s;
}

input[type="checkbox"].sp-checkbox:hover {
  border-color: var(--sp-brand) !important;
}

/* Checked — solid white SVG checkmark via background-image */
input[type="checkbox"].sp-checkbox:checked {
  background-color: var(--sp-brand) !important;
  border-color: var(--sp-brand) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5L6.5 12L13 5' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* Hide WP admin's blue ::before SVG and our own ::after — background-image handles it */
input[type="checkbox"].sp-checkbox:checked::before,
input[type="checkbox"].sp-checkbox:checked::after {
  display: none !important;
}

/* Indeterminate — solid white dash via background-image */
input[type="checkbox"].sp-checkbox:indeterminate {
  background-color: var(--sp-brand) !important;
  border-color: var(--sp-brand) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8H12' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 11px 11px !important;
}

input[type="checkbox"].sp-checkbox:indeterminate::before,
input[type="checkbox"].sp-checkbox:indeterminate::after {
  display: none !important;
}

/* Focus — subtle ring only, no shadow */
input[type="checkbox"].sp-checkbox:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sp-brand) !important;
}

/* ════════════════════════════════════════════════════════════
   TOOLBAR — SELECTION COUNT + BUTTON STATES
   ════════════════════════════════════════════════════════════ */

/* Pill showing "N selected" inside the toolbar */
.sp-selection-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  background: var(--sp-brand-light);
  border: 1px solid #bfcbf0;
  border-radius: var(--sp-radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-brand);
  white-space: nowrap;
}

.sp-selection-count__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(41, 60, 129, 0.12);
  border: none;
  cursor: pointer;
  color: var(--sp-brand);
  font-size: 10px;
  line-height: 1;
  padding: 0;
  transition: background 0.12s;
}

.sp-selection-count__clear:hover {
  background: rgba(41, 60, 129, 0.22);
}

/* Select Action dropdown trigger */
.sp-action-dropdown {
  position: relative;
  display: inline-block;
}

.sp-action-dropdown .sp-dropdown {
  right: auto;
  left: 0;
  min-width: 180px;
}

/* ── Base button ───────────────────────────────────────────── */
.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--sp-radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  border: 1px solid transparent;
}

.sp-btn--outline {
  background: var(--sp-surface);
  border-color: var(--sp-border);
  color: var(--sp-text);
}
.sp-btn--outline:hover {
  border-color: var(--sp-border-strong);
  background: var(--sp-surface-muted);
}

.sp-btn--icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--sp-border);
  background: var(--sp-surface);
  color: var(--sp-text-muted);
  border-radius: var(--sp-radius-sm);
}
.sp-btn--icon:hover {
  border-color: var(--sp-border-strong);
  color: var(--sp-text);
  background: var(--sp-surface-muted);
}

/* Consistent button height across toolbar */
.sp-toolbar .sp-btn {
  height: 36px;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════
   CUSTOMER CELL  (avatar + name + email)
   ════════════════════════════════════════════════════════════ */

.sp-customer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sp-customer__info {
  min-width: 0;
}

.sp-customer__name {
  font-weight: 600;
  color: var(--sp-text);
  font-size: 13.5px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-customer__email {
  font-size: 12px;
  color: var(--sp-text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ════════════════════════════════════════════════════════════
   AVATAR / INITIALS  (data-color 0-7)
   ════════════════════════════════════════════════════════════ */

.sp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  user-select: none;
  background: var(--sp-surface-muted);
  color: var(--sp-text-muted);
}

.sp-avatar[data-color="0"] { background: #dbeafe; color: #1d4ed8; }
.sp-avatar[data-color="1"] { background: #d1fae5; color: #065f46; }
.sp-avatar[data-color="2"] { background: #fce7f3; color: #9d174d; }
.sp-avatar[data-color="3"] { background: #e0e7ff; color: #4338ca; }
.sp-avatar[data-color="4"] { background: #fef3c7; color: #92400e; }
.sp-avatar[data-color="5"] { background: #fee2e2; color: #991b1b; }
.sp-avatar[data-color="6"] { background: #f3e8ff; color: #6b21a8; }
.sp-avatar[data-color="7"] { background: #ccfbf1; color: #134e4a; }

/* Deterministic color from string: use data-initial first char code % 8 */
.sp-avatar--sm { width: 26px; height: 26px; font-size: 10px; }
.sp-avatar--lg { width: 40px; height: 40px; font-size: 14px; }

/* ════════════════════════════════════════════════════════════
   STATUS BADGES  (extends .sp-badge from components.css)
   ════════════════════════════════════════════════════════════ */

/* Dot variants — add color modifier classes alongside .sp-badge */
.sp-badge--active   { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.sp-badge--pastdue  { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.sp-badge--failed   { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.sp-badge--pending  { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.sp-badge--expired  { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.sp-badge--trial    { background: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; }
.sp-badge--paused   { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }


/* Risk / severity */
.sp-badge--low  { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.sp-badge--med  { background: #fffbeb; color: #d97706; border-color: #fde68a; }
.sp-badge--high { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* ════════════════════════════════════════════════════════════
   ROW ACTIONS  (three-dot trigger + dropdown)
   ════════════════════════════════════════════════════════════ */

.sp-row-actions {
  position: relative;
  display: inline-block;
}

.sp-row-actions__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--sp-radius-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--sp-text-subtle);
  transition: background 0.12s, color 0.12s;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
}

.sp-row-actions__trigger:hover,
.sp-row-actions--open .sp-row-actions__trigger {
  background: var(--sp-surface-muted);
  color: var(--sp-text);
}

/* ════════════════════════════════════════════════════════════
   DROPDOWN  (shared — used by row actions + filter menus)
   ════════════════════════════════════════════════════════════ */

.sp-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  min-width: 168px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow-md);
  z-index: 9999;
  padding: 4px;
  display: none;
  animation: sp-dropdown-in 0.1s ease;
}

@keyframes sp-dropdown-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sp-dropdown--open {
  display: block;
}

.sp-dropdown--left {
  right: auto;
  left: 0;
}

.sp-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: var(--sp-radius-sm);
  border: none;
  background: transparent;
  font-size: 13px;
  color: var(--sp-text);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.1s;
  box-sizing: border-box;
}

.sp-dropdown__item:hover {
  background: var(--sp-surface-muted);
  color: var(--sp-text);
  text-decoration: none;
}

.sp-dropdown__item--destructive {
  color: #dc2626;
}

.sp-dropdown__item--destructive:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.sp-dropdown__item--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.sp-dropdown__divider {
  height: 1px;
  background: var(--sp-border);
  margin: 4px 0;
}

.sp-dropdown__label {
  padding: 6px 10px 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--sp-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ════════════════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════════════════ */

.sp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--sp-border);
}

.sp-pagination__info {
  font-size: 12.5px;
  color: var(--sp-text-muted);
}

.sp-pagination__nav {
  display: flex;
  align-items: center;
  gap: 3px;
}

.sp-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  background: var(--sp-surface);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--sp-text-muted);
  transition: border-color 0.12s, color 0.12s, background 0.12s;
  text-decoration: none;
}

.sp-pagination__btn:hover {
  border-color: var(--sp-brand);
  color: var(--sp-brand);
  text-decoration: none;
}

.sp-pagination__btn--active {
  background: var(--sp-brand);
  border-color: var(--sp-brand);
  color: #fff;
}

.sp-pagination__btn--active:hover {
  color: #fff;
}

.sp-pagination__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════
   STAT CARDS  (dashboard KPIs)
   ════════════════════════════════════════════════════════════ */

.sp-stat {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 20px 22px;
  box-shadow: var(--sp-shadow);
}

.sp-stat__label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 10px;
}

.sp-stat__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sp-text);
  line-height: 1;
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}

.sp-stat__change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
}

.sp-stat__change--up   { color: #16a34a; }
.sp-stat__change--down { color: #dc2626; }
.sp-stat__change--flat { color: var(--sp-text-muted); }

.sp-stat__subtext {
  font-size: 12px;
  color: var(--sp-text-subtle);
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════
   DETAIL PAGE  (single record: main + side panel)
   ════════════════════════════════════════════════════════════ */

.sp-detail {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

.sp-detail__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.sp-detail__side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Panel (card for detail sections) */
.sp-panel {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  overflow: hidden;
  box-shadow: var(--sp-shadow);
}

.sp-panel__head {
  padding: 13px 18px;
  border-bottom: 1px solid var(--sp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sp-panel__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-text);
  margin: 0;
}

.sp-panel__body {
  padding: 16px 18px;
}

.sp-panel__body--flush {
  padding: 0;
}

.sp-panel__footer {
  padding: 12px 18px;
  border-top: 1px solid var(--sp-border);
  background: var(--sp-surface-muted);
}

/* Key-value rows inside panel */
.sp-kv {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-kv__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--sp-border);
  font-size: 13px;
}

.sp-kv__row:last-child {
  border-bottom: none;
}

.sp-kv__label {
  color: var(--sp-text-muted);
  flex-shrink: 0;
  padding-top: 1px;
}

.sp-kv__value {
  color: var(--sp-text);
  font-weight: 500;
  text-align: right;
  min-width: 0;
  word-break: break-word;
}

/* ════════════════════════════════════════════════════════════
   SETTINGS / FORM LAYOUT
   ════════════════════════════════════════════════════════════ */

.sp-settings-wrap {
  max-width: 760px;
}

.sp-settings-section {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--sp-border);
  margin-bottom: 32px;
}

.sp-settings-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sp-settings-section__head {
  margin-bottom: 20px;
}

.sp-settings-section__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--sp-text);
  margin: 0 0 4px;
}

.sp-settings-section__desc {
  font-size: 13px;
  color: var(--sp-text-muted);
  margin: 0;
  line-height: 1.5;
}

.sp-settings-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px 28px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--sp-border);
}

.sp-settings-row:last-child {
  border-bottom: none;
}

.sp-settings-row__left {
  padding-top: 7px;
}

.sp-settings-row__label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sp-text);
  display: block;
  margin-bottom: 2px;
}

.sp-settings-row__desc {
  font-size: 12px;
  color: var(--sp-text-muted);
  line-height: 1.5;
  margin: 0;
}

.sp-settings-row__control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ════════════════════════════════════════════════════════════
   EMPTY STATE
   ════════════════════════════════════════════════════════════ */

.sp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}

.sp-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 14px;
  opacity: 0.45;
  line-height: 1;
}

.sp-empty__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--sp-text);
  margin: 0 0 6px;
}

.sp-empty__desc {
  font-size: 13px;
  color: var(--sp-text-muted);
  margin: 0 0 24px;
  max-width: 340px;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════
   DETAIL PAGE  (sp-back-btn, sp-detail-*, sp-kv-table,
                 sp-timeline, sp-note-*)
   ════════════════════════════════════════════════════════════ */

/* Back navigation */
.sp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sp-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 18px;
  text-decoration: none;
  transition: color 0.12s;
}
.sp-back-btn:hover {
  color: var(--sp-brand);
  text-decoration: none;
}
.sp-back-btn__arrow {
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
}

/* Two-column detail grid */
.sp-detail-grid {
  display: grid;
  grid-template-columns: 1fr 276px;
  gap: 20px;
  align-items: start;
}

/* Detail card */
.sp-detail-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
  overflow: hidden;
  margin-bottom: 16px;
}
.sp-detail-card:last-child {
  margin-bottom: 0;
}

.sp-detail-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--sp-border);
  background: var(--sp-surface-muted);
}

.sp-detail-card__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--sp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0;
}

.sp-detail-card__badge {
  font-size: 11px;
  color: var(--sp-text-subtle);
  font-family: monospace;
  background: var(--sp-border);
  padding: 1px 7px;
  border-radius: 20px;
}

.sp-detail-card__body {
  padding: 20px;
}

/* Amount + status hero row */
.sp-detail-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--sp-border);
  flex-wrap: wrap;
}

.sp-detail-amount {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sp-text);
  line-height: 1;
}

/* Horizontal fields row */
.sp-detail-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
}

.sp-detail-field__label {
  font-size: 11px;
  font-weight: 600;
  color: var(--sp-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
  white-space: nowrap;
}

.sp-detail-field__value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sp-text);
  line-height: 1.3;
}

.sp-detail-field__value a {
  color: var(--sp-brand);
  text-decoration: none;
}
.sp-detail-field__value a:hover {
  text-decoration: underline;
}

/* Key-value table */
.sp-kv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sp-kv-table tr {
  border-bottom: 1px solid var(--sp-border);
}
.sp-kv-table tr:last-child {
  border-bottom: none;
}
.sp-kv-table td {
  padding: 9px 0;
  vertical-align: top;
  line-height: 1.45;
}
.sp-kv-table td:first-child {
  width: 38%;
  color: var(--sp-text-muted);
  font-weight: 500;
  padding-right: 12px;
}
.sp-kv-table td:last-child {
  color: var(--sp-text);
  font-weight: 500;
}
.sp-kv-table a {
  color: var(--sp-brand);
  text-decoration: none;
}
.sp-kv-table a:hover { text-decoration: underline; }

/* Activity timeline */
.sp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sp-timeline__item {
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
  position: relative;
}
.sp-timeline__item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 26px;
  bottom: 0;
  width: 1px;
  background: var(--sp-border);
}
.sp-timeline__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  background: var(--sp-brand-light);
  color: var(--sp-brand);
  letter-spacing: 0;
}
.sp-timeline__dot--green  { background: #dcfce7; color: #16a34a; }
.sp-timeline__dot--red    { background: #fee2e2; color: #dc2626; }
.sp-timeline__dot--amber  { background: #fef3c7; color: #d97706; }
.sp-timeline__dot--gray   { background: #f3f4f6; color: #6b7280; }
.sp-timeline__dot--indigo { background: var(--sp-brand-light); color: var(--sp-brand); }

.sp-timeline__body {
  flex: 1;
  min-width: 0;
}
.sp-timeline__action {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sp-text);
  line-height: 1.3;
}
.sp-timeline__note {
  font-size: 12.5px;
  color: var(--sp-text-muted);
  margin-top: 2px;
  line-height: 1.4;
}
.sp-timeline__meta {
  text-align: right;
  flex-shrink: 0;
}
.sp-timeline__user {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--sp-text-muted);
  display: block;
  margin-bottom: 2px;
}
.sp-timeline__time {
  font-size: 11.5px;
  color: var(--sp-text-subtle);
  white-space: nowrap;
  display: block;
}

/* Add-note form */
.sp-note-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--sp-border);
}
.sp-note-input,
input.sp-note-input {
  flex: 1;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--sp-border) !important;
  border-radius: var(--sp-radius-sm) !important;
  font-size: 13px !important;
  color: var(--sp-text) !important;
  background: var(--sp-surface) !important;
  outline: none !important;
  box-shadow: none !important;
  min-height: unset !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sp-note-input:focus {
  border-color: var(--sp-brand) !important;
  box-shadow: 0 0 0 3px var(--sp-brand-ring) !important;
}

/* Sidebar status select — full width override */
.sp-detail-sidebar .sp-filter-select {
  width: 100%;
  height: 36px;
  margin-bottom: 8px;
  display: block;
}
.sp-detail-sidebar .sp-btn {
  width: 100%;
  justify-content: center;
}

/* ════════════════════════════════════════════════════════════
   SETTINGS PAGE  (PHP-rendered, WP Settings API)
   ════════════════════════════════════════════════════════════ */

/* Tab nav spacing */
.sp-settings-tabs  { margin-bottom: 20px; }
.sp-settings-subtabs { margin-bottom: 16px; }
.sp-filter-tab--sm { font-size: 12px !important; padding: 4px 11px !important; }

/* Stacked card list */
.sp-settings-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

/* Override sp-detail-card body padding (rows handle their own) */
.sp-settings-card .sp-settings-card__body { padding: 0 !important; }

/* Row: label-left + control-right */
.sp-settings-card .sp-settings-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 28px;
  align-items: start;
  padding: 14px 20px;
  border-bottom: 1px solid var(--sp-border);
}
.sp-settings-card .sp-settings-row--last  { border-bottom: none; }
.sp-settings-card .sp-settings-row--fullwidth {
  grid-template-columns: 1fr;
  gap: 8px 0;
}

/* Label + description */
.sp-settings-row__left  { padding-top: 3px; }
.sp-settings-row__label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--sp-text);
  margin-bottom: 2px;
}
.sp-settings-row__desc {
  font-size: 12px;
  color: var(--sp-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Control area */
.sp-settings-row__control { padding-top: 3px; }

/* Native WP inputs inside settings rows */
.sp-settings-row__control input[type="text"],
.sp-settings-row__control input[type="email"],
.sp-settings-row__control input[type="url"],
.sp-settings-row__control select,
.sp-settings-row__control textarea {
  max-width: 100% !important;
  width: 100% !important;
  min-height: unset !important;
  height: 36px;
  padding: 0 10px !important;
  border: 1px solid var(--sp-border) !important;
  border-radius: var(--sp-radius-sm) !important;
  font-size: 13px !important;
  color: var(--sp-text) !important;
  background: var(--sp-surface) !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sp-settings-row__control input[type="text"]:focus,
.sp-settings-row__control input[type="email"]:focus,
.sp-settings-row__control select:focus {
  border-color: var(--sp-brand) !important;
  box-shadow: 0 0 0 3px var(--sp-brand-ring) !important;
}
/* Textarea doesn't have fixed height */
.sp-settings-row__control textarea {
  height: auto !important;
  padding: 8px 10px !important;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  resize: vertical;
}
/* WP regular-text / large-text width override */
.sp-settings-row__control input.regular-text { width: 100% !important; max-width: 100% !important; }
.sp-settings-row__control textarea.large-text { width: 100% !important; }

/* Callback description (small.form-text) */
.sp-settings-row__control small.form-text,
.sp-settings-row__control .form-text {
  display: block;
  font-size: 11.5px;
  color: var(--sp-text-muted);
  margin-top: 5px;
  line-height: 1.5;
}

/* Checkbox inside rows */
.sp-settings-row__control input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 6px 0 0 !important;
  vertical-align: middle;
  accent-color: var(--sp-brand);
  cursor: pointer;
}

/* Switch (Bootstrap custom-switch compat) */
.sp-settings-row__control .custom-control { padding-left: 2.5rem; }
.sp-settings-row__control .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--sp-brand) !important;
  border-color: var(--sp-brand) !important;
}
.sp-settings-row__control .custom-switch .custom-control-label::before {
  border-radius: 0.75rem;
}

/* Segmented control (Sandbox / Live) */
.sp-seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #f1f5f9;
  border: 1px solid var(--sp-border);
  border-radius: 9px;
}
.sp-seg__btn {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  border-radius: 6px;
  color: var(--sp-text-muted);
  transition: color 0.12s, background 0.12s, box-shadow 0.12s;
}
.sp-seg__btn:hover:not(.sp-seg__btn--active) {
  color: var(--sp-text);
}
.sp-seg__btn:disabled { cursor: default; }
.sp-seg__btn--active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
}
.sp-seg__btn--sandbox.sp-seg__btn--active { color: var(--sp-text); }
.sp-seg__btn--live.sp-seg__btn--active    { color: #16a34a; }
.sp-seg__btn:focus-visible {
  outline: 2px solid var(--sp-brand-ring);
  outline-offset: 1px;
}

/* Multi-checkbox list (gateways type) */
.sp-settings-row__control .mb-2 { margin-bottom: 6px; }
.sp-settings-row__control .mb-2 label { font-size: 13px; color: var(--sp-text); cursor: pointer; }
.sp-settings-row__control .badge { font-size: 10px; font-weight: 600; }

/* Save / clear actions row */
.sp-settings-actions {
  display: flex;
  justify-content: flex-end;
  padding: 16px 0 8px;
  border-top: 1px solid var(--sp-border);
  margin-top: 30px;
}

/* ════════════════════════════════════════════════════════════
   INTEGRATIONS PAGE
   ════════════════════════════════════════════════════════════ */

.sp-integ-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.sp-integ-toolbar .sp-filter-tabs {
  margin-bottom: 0;
}

.sp-integ-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1200px) {
  .sp-integ-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .sp-integ-grid { grid-template-columns: repeat(2, 1fr); }
}

.sp-integ-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s;
}

.sp-integ-card:hover {
  border-color: #9ca3af;
}

.sp-integ-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 16px 16px 0;
}

.sp-integ-card__logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.sp-integ-card__body {
  padding: 10px 16px 8px;
  flex: 1;
}

.sp-integ-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-text);
  margin: 0 0 4px;
  line-height: 1.3;
}

.sp-integ-card__desc {
  font-size: 12px;
  color: var(--sp-text-muted);
  line-height: 1.5;
  margin: 0;
}

.sp-integ-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 16px;
}

.sp-integ-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--sp-border);
  margin-top: auto;
}

.sp-integ-card__status {
  font-size: 12px;
  color: var(--sp-text-muted);
}

.sp-integ-card__settings {
  margin-left: auto;
  color: var(--sp-text-muted);
  transition: color 0.12s;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sp-integ-card__settings:hover {
  color: var(--sp-text);
}

/* Toggle switch for integration cards */
.sp-integ-card .custom-control { padding-left: 2.5rem; }
.sp-integ-card .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--sp-brand) !important;
  border-color: var(--sp-brand) !important;
}
.sp-integ-card .custom-switch .custom-control-label::before {
  border-radius: 0.75rem;
}

/* ════════════════════════════════════════════════════════════
   ACCORDION  (collapsible sections inside cards)
   ════════════════════════════════════════════════════════════ */

.sp-accordion-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-text);
  text-align: left;
  transition: background 0.1s;
}
.sp-accordion-btn:hover { background: var(--sp-surface-muted); }

.sp-accordion-btn__chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.sp-accordion-btn--open .sp-accordion-btn__chevron {
  transform: rotate(180deg);
}

/* ════════════════════════════════════════════════════════════
   SUPPORT PAGE  (resource link rows, version tag)
   ════════════════════════════════════════════════════════════ */

.sp-support-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--sp-border);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}
.sp-support-link:last-child { border-bottom: none; }
.sp-support-link:hover {
  background: var(--sp-surface-muted);
  text-decoration: none;
  color: inherit;
}

.sp-support-link__icon {
  color: var(--sp-brand);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.sp-support-link__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sp-text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.sp-support-link__desc {
  font-size: 12.5px;
  color: var(--sp-text-muted);
  line-height: 1.4;
}

.sp-support-link__arrow {
  color: var(--sp-text-subtle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-left: auto;
  transition: color 0.1s, transform 0.1s;
}
.sp-support-link:hover .sp-support-link__arrow {
  color: var(--sp-brand);
  transform: translate(1px, -1px);
}

.sp-version-tag {
  display: inline-block;
  background: var(--sp-brand-light);
  color: var(--sp-brand);
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  padding: 2px 8px;
  border-radius: var(--sp-radius-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@keyframes sp-spin {
  to { transform: rotate(360deg); }
}

/* ─── Gateway toggle switch (Settings › Payment Gateways › General) ──── */
/* Matches shadcn <Switch> appearance — CSS-only, no JS required          */

.sp-gw-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.sp-gw-toggle__chk {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.sp-gw-toggle__track {
  display: inline-flex;
  align-items: center;
  width: 2rem;       /* w-8 = 32px */
  height: 1.15rem;   /* ~18.4px */
  border-radius: 9999px;
  border: 1px solid transparent;
  background-color: var(--color-input, #e2e8f0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transition: background-color 0.15s;
  cursor: pointer;
  padding: 1px;
  box-sizing: border-box;
}

.sp-gw-toggle__thumb {
  display: block;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
  transition: transform 0.15s;
  flex-shrink: 0;
}

.sp-gw-toggle__chk:checked + .sp-gw-toggle__track {
  background-color: var(--color-primary, var(--sp-brand));
}

.sp-gw-toggle__chk:checked + .sp-gw-toggle__track .sp-gw-toggle__thumb {
  transform: translateX(calc(100% - 2px));
}

/* Status text spans inside sp-integ-card__footer (settings gateway grid) */
.sp-integ-card__footer .sp-gw-status-off { display: inline; }
.sp-integ-card__footer .sp-gw-status-on  { display: none; }
.sp-integ-card__footer:has(.custom-control-input:checked) .sp-gw-status-off { display: none; }
.sp-integ-card__footer:has(.custom-control-input:checked) .sp-gw-status-on  { display: inline; }

/* Gear icon link in card footer */
.sp-gw-settings-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--sp-radius-sm);
  color: var(--sp-text-muted);
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
  line-height: 1;
}

.sp-gw-settings-link:hover {
  background: var(--sp-surface-muted);
  color: var(--sp-text);
}

.sp-gw-settings-link .dashicons {
  font-size: 16px !important;
  width: 16px !important;
  height: 16px !important;
  line-height: 1 !important;
  margin: 0 !important;
}

/* Footer note below the grid */
.sp-gw-footer-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--sp-text-muted);
  line-height: 1.5;
}

.sp-gw-footer-note a {
  color: var(--sp-brand);
  text-decoration: none;
}

.sp-gw-footer-note a:hover { text-decoration: underline; }
