
.upload-panel.is-dragging {
  border-color: #93c5fd;
  background: #eff6ff;
}

.icon-xs.is-success,
.icon-sm.is-success,
.icon-md.is-success {
  color: #16a34a;
}


.custom-dropdown {
  border-radius: 12px;
  padding: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-width: 260px;
  display: none;
  z-index: 120;
}

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

.custom-dropdown .dropdown-item {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

.custom-dropdown .dropdown-item:hover {
  background: #f9fafb;
}

.dropdown-section-title {
  letter-spacing: 0.06em;
}



.filter-section-title {
  letter-spacing: 0.08em;
}

.filter-checkbox input {
  margin: 0;
}



.action-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(220%);
  opacity: 0;
  pointer-events: none;
  background: #111827;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  z-index: 80;
}

.action-bar.is-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.action-bar .icon-button {
  background: transparent;
  color: #fff;
}

.action-bar .icon-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.action-bar .icon-button:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.action-bar .divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

.image-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 200;
  overflow: hidden;
  overscroll-behavior: contain;
}

.image-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.modal-open {
  overflow: hidden;
}

.image-modal-shell {
  width: min(1400px, 96vw);
  height: min(92vh, 920px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid #fcd34d;
  background: #fef3c7;
  color: #92400e;
}

.privacy-pill.is-public {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.download-dropdown .download-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
  padding: 6px;
  display: none;
  z-index: 500;
}

.download-dropdown.is-open .download-menu {
  display: block;
}

.download-dropdown--card .download-menu {
  right: 0;
  left: auto;
  min-width: 200px;
}

.download-dropdown--left .download-menu {
  left: 0;
  right: auto;
}

.download-dropdown--action .download-menu {
  right: 0;
  left: auto;
  min-width: 240px;
  bottom: calc(100% + 6px);
  top: auto;
  visibility: hidden;
}

.download-dropdown--action.is-open .download-menu {
  visibility: visible;
}

.download-menu-item {
  color: #111827;
}

.download-menu-item:hover {
  background: #f3f4f6;
}

.download-menu-item.dropdown-item:hover,
.download-menu-item.dropdown-item:active {
  background: #f3f4f6;
  color: inherit;
}

.download-menu-item.dropdown-item:not(.text-danger) {
  color: #374151;
}

.download-menu-item.dropdown-item:not(.text-danger):hover,
.download-menu-item.dropdown-item:not(.text-danger):active {
  color: #374151;
}

.download-menu-item.is-danger {
  color: #dc2626;
}

.download-menu-item.is-danger:hover {
  background: #fef2f2;
}

.download-menu-item.is-disabled {
  opacity: 1;
  color: #9ca3af;
  pointer-events: auto;
}

.download-menu-label {
  font-size: 0.7rem;
}

.download-status {
  font-size: 0.78rem;
}

.download-status .status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.download-status[data-tooltip] {
  position: relative;
  cursor: default;
}

.download-status[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: normal;
  min-width: 220px;
  max-width: 280px;
  line-height: 1.3;
  text-align: left;
  word-break: normal;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translateX(-50%) translateY(4px);
  z-index: 10;
}

.download-status[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #111827;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 9;
}

.download-menu:not(:hover) .download-status[data-tooltip]::after,
.download-menu:not(:hover) .download-status[data-tooltip]::before {
  opacity: 0;
}

.download-status[data-tooltip]:hover::after,
.download-status[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.download-menu:not(.is-ready) .download-status[data-tooltip]::after,
.download-menu:not(.is-ready) .download-status[data-tooltip]::before {
  opacity: 0 !important;
}

.download-menu-item[data-tooltip] {
  position: relative;
}

.download-menu-item[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: #111827;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: normal;
  min-width: 220px;
  max-width: 280px;
  line-height: 1.3;
  text-align: left;
  word-break: normal;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translateX(-50%) translateY(4px);
  z-index: 10;
}

.download-menu-item[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #111827;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 9;
}

.download-menu-item[data-tooltip]:hover::after,
.download-menu-item[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.download-menu-item.is-disabled .download-status {
  pointer-events: auto;
}

.download-status.is-ok {
  color: #16a34a;
}

.download-status.is-warn {
  color: #f59e0b;
}

.download-status.is-bad {
  color: #dc2626;
}

.download-menu-item span {
  white-space: nowrap;
}

.image-modal-alert.is-visible {
  display: block;
}

.modal-view {
  display: none;
  flex: 1;
}

.modal-view.is-active {
  display: flex;
}

.modal-view-main {
  flex: 1;
}

.modal-view-main.is-active {
  display: flex;
}

.image-modal-body {
  min-height: 0;
}

.modal-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.modal-image-wrap img {
  max-width: 100%;
  max-height: calc(92vh - 220px);
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.modal-image-wrap.is-loading img {
  opacity: 0;
}

.modal-image-loader {
  position: absolute;
  width: 40px;
  height: 40px;
  opacity: 0;
  pointer-events: none;
}

.modal-image-wrap.is-loading .modal-image-loader {
  opacity: 1;
}

.image-nav-row {
  z-index: 2;
}

.image-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
}

.image-nav-btn {
  height: 28px;
  padding: 0 10px;
  min-width: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.image-nav-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.modal-sidebar {
  width: 360px;
  overscroll-behavior: contain;
}

@media (max-width: 991.98px) {
  .image-modal-overlay {
    align-items: stretch;
    overflow-y: auto;
  }

  .image-modal-shell {
    margin: 0 auto;
    height: auto;
    min-height: 100vh;
    max-height: none;
  }

  .image-modal-body {
    overflow: visible;
  }

  .modal-view-main {
    flex-direction: column;
    min-height: 0;
    height: auto;
  }

  .modal-image-area {
    width: 100%;
    flex: 0 0 auto;
  }

  .modal-sidebar {
    width: 100%;
    min-width: 100%;
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid #e5e7eb;
  }
}

.modal-sidebar.is-editing .field-value {
  display: none;
}

.modal-sidebar.is-editing .field-input {
  display: block;
}

.field-actions {
  display: none;
  justify-content: flex-start;
}

.modal-sidebar.is-editing .field-actions {
  display: flex;
}

.variation-preview {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  margin-bottom: 20px;
}

.variation-header .link {
  color: #2563eb;
  font-weight: 600;
}

.variation-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.variation-thumbs img {
  width: 52px;
  height: 52px;
  border-radius: 0;
  object-fit: contain;
  border: 1px solid #e5e7eb;
}

.sidebar-section .section-title {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 12px;
}

.modal-sidebar.is-editing .field-edit-link {
  display: none;
}



.modal-versions {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.modal-versions-preview {
  flex: 1;
  background: #faf9f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.modal-versions-preview .version-preview-wrap {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-versions-preview img {
  max-width: 100%;
  max-height: calc(95vh - 200px);
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.modal-versions-panel {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e5e7eb;
}

.modal-versions-header .icon-split-off {
  display: none;
}

.modal-versions.is-collapsed .modal-versions-preview {
  display: none;
}

.modal-versions.is-collapsed .modal-versions-panel {
  border-left: none;
}

.modal-versions.is-collapsed .icon-split-on {
  display: none;
}

.modal-versions.is-collapsed .icon-split-off {
  display: inline-block;
}

.modal-versions-list {
  flex: 1;
  padding: 0 32px 32px;
  display: grid;
  gap: 24px;
  overflow-y: auto;
}

.version-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.version-row.is-current {
  background: #f9fafb;
}

.modal-versions.is-split .version-row {
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.modal-versions.is-split .version-row:hover {
  background: #f9fafb;
}

.modal-versions.is-split .version-row.is-selected {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.version-thumb {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 0;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.version-info {
  flex: 1;
}

.version-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

.version-title.is-current {
  font-weight: 700;
}

.version-meta {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: #6b7280;
}

.version-meta span {
  color: #111827;
  font-weight: 600;
}

.version-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.version-row-deleted {
  padding: 14px 18px;
  margin: 6px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
  border: 1px dashed #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.modal-variations {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.modal-variations-preview {
  flex: 1;
  background: #faf9f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.modal-variations-preview .variation-preview-wrap {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-variations-preview img {
  max-width: 100%;
  max-height: calc(95vh - 200px);
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.modal-variations-panel {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #e5e7eb;
}

 .modal-variations-header .icon-split-off {
  display: none;
 }

.modal-variations.is-collapsed .modal-variations-preview {
  display: none;
}

.modal-variations.is-collapsed .modal-variations-panel {
  border-left: none;
}

.modal-variations.is-collapsed .icon-split-on {
  display: none;
}

.modal-variations.is-collapsed .icon-split-off {
  display: inline-block;
}

.modal-variations-list {
  flex: 1;
  padding: 0 32px 32px;
  display: grid;
  gap: 24px;
  overflow-y: auto;
}

.variation-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  position: relative;
}

.variation-row.is-primary {
  background: #f9fafb;
}

.modal-variations.is-split .variation-row {
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.modal-variations.is-split .variation-row:hover {
  background: #f9fafb;
}

.modal-variations.is-split .variation-row.is-selected {
  border-color: #60a5fa;
  position: relative;
  z-index: 3;
}

.modal-variations.is-split .variation-row.is-selected::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.55);
  pointer-events: none;
}

.variation-thumb {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 0;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.variation-info {
  flex: 1;
}

.variation-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

.variation-title.is-primary {
  font-weight: 700;
}

.variation-meta {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: #6b7280;
}

.variation-meta span {
  color: #111827;
  font-weight: 600;
}

.variation-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.variation-actions .btn {
  min-height: 30px;
}

.variation-actions .download-dropdown {
  width: 100%;
}

.variation-actions .download-dropdown .btn {
  width: 100%;
  /* padding: 4px 8px; */
  /* font-size: 0.72rem; */
}

.variation-more {
  position: relative;
}

.variation-more-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  min-width: 220px;
  padding: 6px 0;
  display: none;
  z-index: 40;
}

.variation-more.is-dropup .variation-more-menu {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: 6px;
}

.variation-more.is-open .variation-more-menu {
  display: block;
}

.variation-more-menu button {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.85rem;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 10px;
}

.variation-more-menu button:hover {
  background: #f9fafb;
}

.variation-more-menu button:active {
  background: transparent;
}

.variation-more-menu .danger {
  color: #dc2626;
}

.modal-variations .btn.btn-outline-secondary:focus,
.modal-variations .btn.btn-outline-secondary:active {
  background: #fff;
  border-color: #e5e7eb;
  color: #374151;
  box-shadow: none;
}

.variation-more-divider {
  height: 1px;
  margin: 6px 0;
  background: #e5e7eb;
}

.results-toolbar-actions .icon-button.is-active {
  background: #e5e7eb;
}

.grid-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.image-card {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card img.fit-mode {
  object-fit: contain;
  background: #f9fafb;
}

.image-card .badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 8px;
  font-size: 0.65rem;
  color: #fff;
  background: rgba(15, 23, 42, 0.6);
  z-index: 3;
}

.image-card .badge.variations {
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.35);
}

.image-card .badge.status {
  top: 8px;
  left: 8px;
  background: #06b6d4;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.image-card .badge.status.changes {
  background: #f59e0b;
}

.image-card .badge.status.rejected {
  background: #ef4444;
}

.image-card .badge.status.archived {
  background: #4b5563;
}

.image-card .check-toggle {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.image-card:hover .check-toggle {
  opacity: 1;
}

.image-card .check-toggle i {
  opacity: 0;
}

.image-card.is-checked {
  outline: none;
}

.image-card.is-checked .check-toggle {
  background: #3b82f6;
}

.image-card.is-checked .check-toggle i {
  opacity: 1;
  color: #fff;
}

.image-card.is-checked::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  box-shadow: inset 0 0 0 5px #3b82f6;
  pointer-events: none;
  z-index: 1;
}

.image-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.35), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  z-index: 1;
  pointer-events: auto;
}

.image-card:hover .overlay {
  opacity: 1;
}

.image-card .file-type {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.65rem;
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 6px;
  border-radius: 6px;
}

.image-card .overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
}

.image-card .overlay-info p {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.image-card .overlay-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.image-card .overlay-actions .icon-button {
  background: rgba(255, 255, 255, 0.9);
  width: 32px;
  height: 32px;
}

.list-view {
  display: none;
}
.list-view.is-active {
  display: block;
}

.table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.all-collections-table .table tbody td,
.all-collections-table .table tbody td a,
.all-collections-table .table tbody td button {
  font-size: 0.85rem;
}

.thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: #ede9fe;
  color: #6d28d9;
}

.tab-button {
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  color: #6b7280;
}

.tab-button.is-active {
  border-bottom-color: #111827;
  color: #111827;
}

.all-collections-table .table thead th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  background: #f9fafb;
}

.all-collections-table .table tbody tr:hover {
  background: #f3f4f6;
}

.collection-link:hover {
  text-decoration: underline;
  color: #2563eb;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  color: #4b5563;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 0.8rem;
}

.link-pill span {
  line-height: 1.2;
}

.link-pill-text:hover {
  text-decoration: underline;
  color: #2563eb;
}

.link-pill .icon-button {
  background: transparent;
}

@media (max-width: 1200px) {
  .grid-cols-6 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-cols-6,
  .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.add-collection-modal .modal-body {
  padding: 0;
}

.create-record-body .modal-view-main {
  flex: 1;
}

.create-record-sidebar {
  width: 380px;
}

.create-record-preview {
  max-height: 100%;
  object-fit: contain;
}

.create-record-sidebar .sidebar-section {
  padding: 24px;
}


.create-record-modal .modal-header-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #fff;
}

.create-record-modal .privacy-pill {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

#update-metadata-modal .info-alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 12px;
}


.info-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}


.settings-modal-card {
  background: #f9fafb;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  border: none;
}

.settings-field label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 6px;
}

.settings-field .form-control,
.settings-field .form-select {
  background: #fff;
  border-color: #d1d5db;
}

.settings-help {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 6px 0 0;
  display: none;
}

.settings-help.is-active {
  display: block;
}


.settings-modal-footer .btn-outline-primary {
  border-color: #93c5fd;
  color: #2563eb;
}

#collection-settings-modal .is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

#collection-settings-modal .is-disabled.btn-ghost {
  border-color: transparent;
  background: transparent;
}

.settings-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: #374151;
  font-weight: 600;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.settings-tab:hover {
  background: #f3f4f6;
}

.settings-tab.is-active {
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.settings-panel {
  display: none;
}

.settings-panel.is-active {
  display: block;
}

#collection-settings-modal .is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

#collection-settings-modal .is-disabled.btn-ghost {
  border-color: transparent;
  background: transparent;
}

.settings-subfield {
  display: none;
}

.settings-subfield.is-active {
  display: block;
}

.manage-users-role-btn {
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.manage-users-role-btn.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.manage-users-role-btn.is-disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
}

.merge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
}

.merge-item img.thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.merge-item.is-selected {
  background: #eff6ff;
  border-color: #93c5fd;
}

.merge-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.merge-primary {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid #93c5fd;
  color: #2563eb;
  background: #eff6ff;
  opacity: 0;
}

.merge-item.is-selected .merge-primary {
  opacity: 1;
}


.manage-tags-field-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.manage-tags-expanded .manage-tags-field-clamp {
  -webkit-line-clamp: initial;
  overflow: visible;
}



.manage-teams-bs-list.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.manage-users-bs-list.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
.modal-sidebar .field-input {
  display: none;
}
.app-header,
header {
  position: sticky;
  top: 0;
  /* z-index: 5000; */
  z-index:190;
  isolation: isolate;
}

.access-denied-card {
  width: min(840px, 94vw);
}

.access-denied-logo {
  max-height: 160px;
  opacity: 0.8;
}

.text-ink {
  color: #111827;
}

.header-select-all {
  margin-bottom: 0;
  cursor: pointer;
}

.header-select-all-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.header-select-all-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.header-select-all-input:checked + .header-select-all-box {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: inset 0 0 0 2px #ffffff;
}

.results-select-all {
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}

.results-select-all-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.results-select-all-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.results-select-all-input:checked + .results-select-all-box {
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: inset 0 0 0 2px #ffffff;
}

.results-select-all-text {
  font-size: 0.85rem;
  color: #6b7280;
}
