/* Settings — Custom Field Configuration */

.scf-page .scf-body {
  padding: 16px 16px 32px;
}

.scf-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.scf-back {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #25b7a7;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}

.scf-back svg { width: 16px; height: 16px; }
.scf-back:hover { background: #1a9e8f; }

.scf-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.scf-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
  padding: 8px 18px 22px;
  min-height: 420px;
}

.scf-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 18px;
}

.scf-tab {
  border: 0;
  background: transparent;
  padding: 12px 2px 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.scf-tab:hover { color: #0e7490; }
.scf-tab.is-active {
  color: #25b7a7;
  border-bottom-color: #25b7a7;
}

.scf-pane[hidden] { display: none !important; }

.scf-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.scf-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  min-width: min(280px, 100%);
  color: #64748b;
}

.scf-search svg { width: 16px; height: 16px; flex-shrink: 0; }

.scf-search input {
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: #1e293b;
  width: 100%;
}

.scf-export {
  height: 36px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.scf-export svg { width: 15px; height: 15px; }
.scf-export:hover { border-color: #25b7a7; color: #0e7490; }

.scf-table-wrap {
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.scf-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  font-size: 13px;
}

.scf-table th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.scf-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2f7;
  color: #1e293b;
  vertical-align: middle;
}

.scf-table tbody tr:nth-child(even) { background: #fafbfc; }

.scf-status {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.scf-status input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.scf-status span {
  display: block;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #cfd6dc;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}

.scf-status span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .2s;
}

.scf-status input:checked + span { background: #25B7A7; }
.scf-status input:checked + span::after { transform: translateX(18px); }

.scf-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.scf-icon-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.scf-icon-btn svg { width: 16px; height: 16px; }
.scf-icon-btn--edit { color: #25B7A7; }
.scf-icon-btn--del { color: #ef4444; }
.scf-icon-btn:hover { background: #f1f5f9; }

.scf-add-head {
  margin-bottom: 18px;
}

.scf-toast-stack {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scf-toast {
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .25);
  font-size: 13px;
}

.scf-toast strong {
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 700px) {
  .scf-add-head .cf-add-btn { margin-left: 0; }
}
