/* NiseBella custom select + switch */
.nb-select {
  position: relative;
  width: 100%;
  min-width: 11rem;
}
.nb-select > select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  appearance: none !important;
  background: none !important;
  max-width: none !important;
}
.nb-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  text-align: left;
  cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--ink, #1c1917) 14%, transparent);
  background: color-mix(in srgb, var(--card, #fffaf3) 70%, #fff);
  color: var(--ink, #1c1917);
  border-radius: 14px;
  padding: .8rem 1rem;
  min-height: 48px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 2px rgba(28,25,23,.04);
  font: inherit;
}
.nb-select-btn:hover { border-color: color-mix(in srgb, var(--ink, #1c1917) 22%, var(--line, #eadfcf)); }
.nb-select.is-open .nb-select-btn {
  border-color: var(--nb-secondary, #b45309);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nb-secondary, #b45309) 18%, transparent);
}
.nb-select-value { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-select.is-multi .nb-select-value { white-space: normal; }
.nb-select-value.is-placeholder { color: var(--ink-soft, #8a7d6d); }
.nb-select-chevron {
  width: 10px; height: 10px; flex: 0 0 auto;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .55;
}
.nb-select.is-open .nb-select-chevron { transform: rotate(225deg) translateY(-2px); }
.nb-select-panel {
  display: none;
  position: absolute;
  z-index: 80;
  left: 0; right: 0; top: calc(100% + 6px);
  background: var(--card, #fffaf3);
  border: 1px solid var(--line, #eadfcf);
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(28,25,23,.14);
  padding: .4rem;
  max-height: 280px;
  overflow: auto;
}
.nb-select.is-open .nb-select-panel { display: block; }
.nb-select.is-flip .nb-select-panel {
  top: auto;
  bottom: calc(100% + 6px);
}
.nb-select-search {
  width: 100%;
  border: 0;
  background: var(--bg-2, #efe6d6);
  border-radius: 10px;
  padding: .55rem .7rem;
  margin-bottom: .35rem;
  color: inherit;
  font: inherit;
}
.nb-select-opt {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: .55rem .65rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  min-height: auto;
  box-shadow: none;
}
.nb-select-opt:hover,
.nb-select-opt.is-active { background: var(--bg-2, #efe6d6); }
.nb-select-opt.is-selected { font-weight: 600; }
.nb-select-check {
  width: 16px; height: 16px; border-radius: 5px;
  border: 1.5px solid var(--line, #c4b8a8);
  display: grid; place-items: center; flex: 0 0 auto;
}
.nb-select-opt.is-selected .nb-select-check {
  background: var(--ink, #1c1917);
  border-color: var(--ink, #1c1917);
}
.nb-select-opt.is-selected .nb-select-check::after {
  content: "";
  width: 4px; height: 8px;
  border: solid #f7f1e7;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.nb-select:not(.is-multi) .nb-select-check { display: none; }
.nb-select:not(.is-multi) .nb-select-opt {
  padding-left: .85rem;
  border-left: 3px solid transparent;
  border-radius: 10px;
}
.nb-select:not(.is-multi) .nb-select-opt.is-selected {
  border-left-color: var(--nb-secondary, #b45309);
  background: var(--bg-2, #efe6d6);
}
.nb-select-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.nb-chip {
  background: var(--bg-2, #efe6d6);
  border-radius: 999px;
  padding: .15rem .55rem;
  font-size: .78rem;
}
[data-mode="dark"] .nb-select-btn,
[data-mode="dark"] .nb-select-panel {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}
[data-mode="dark"] .nb-select-opt:hover,
[data-mode="dark"] .nb-select-opt.is-active,
[data-mode="dark"] .nb-select-search,
[data-mode="dark"] .nb-chip { background: var(--bg-2); }
[data-mode="dark"] .nb-select-opt.is-selected .nb-select-check {
  background: var(--ink);
  border-color: var(--ink);
}

.nb-switch {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: .7rem;
  cursor: pointer;
  user-select: none;
  grid-template-columns: none !important;
}
.nb-switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.nb-switch i {
  width: 42px; height: 24px; border-radius: 999px;
  background: #d6cbb8;
  position: relative;
  flex: 0 0 auto;
  transition: background .2s ease;
}
.nb-switch i::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .2s ease;
}
.nb-switch input:checked + i { background: #1c1917; }
.nb-switch input:checked + i::after { transform: translateX(18px); }
.nb-switch input:focus-visible + i { outline: 2px solid #b45309; outline-offset: 3px; }

.nb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  align-items: stretch;
  margin: 0 0 1.6rem;
}
.nb-filters .nb-select { width: auto; min-width: 200px; flex: 0 1 240px; }
.nb-filters input[type="search"] {
  flex: 1 1 220px;
  min-width: 180px;
  border: 1px solid var(--line, #eadfcf);
  background: var(--card, #fffaf3);
  color: inherit;
  border-radius: 12px;
  padding: .75rem 1rem;
}
.nb-filters > button,
.nb-filters button[type="submit"] {
  border: 0;
  background: var(--nb-primary, #1c1917);
  color: #f7f1e7;
  border-radius: 12px;
  padding: .75rem 1.1rem;
  cursor: pointer;
}

.adm .nb-select-btn,
.adm .nb-select-opt {
  background: #fff !important;
  color: var(--adm-ink, #1c1917) !important;
  box-shadow: none !important;
}
.adm .nb-select-btn {
  border: 1px solid #eadfcf !important;
  justify-content: space-between;
  display: flex !important;
  width: 100%;
  padding: .75rem 1rem !important;
}
.adm .nb-select-opt {
  background: transparent;
  border: 0;
  border-radius: 10px;
  padding: .55rem .65rem;
  width: 100%;
}
.adm .nb-select-opt:hover,
.adm .nb-select-opt.is-active { background: #efe6d6 !important; color: inherit !important; }
.adm .nb-select-panel { background: #fffaf3; border-color: #eadfcf; }
.adm .nb-filters .nb-select { max-width: none; }

.adm-file {
  display: flex !important;
  flex-direction: column;
  gap: .4rem;
}
.adm-file input[type="file"] {
  padding: .55rem;
  background: #fff;
  border: 1px dashed #d9cbb6;
  max-width: none;
}
