.nextlist-formulario-checklist {
  width: 100%;
  padding: 20px 0 ;
}

.nextlist-formulario-checklist .page-header {
  margin-bottom: 2rem;
}

.nextlist-formulario-checklist .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nextlist-formulario-checklist .header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nextlist-formulario-checklist .header-right {
  display: flex;
  gap: 0.75rem;
}

.nextlist-formulario-checklist .btn-link {
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  transition: all 0.2s;
  width: 44px;
  height: 44px;
}

.nextlist-formulario-checklist .btn-link i {
  font-size: 1.1rem;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nextlist-formulario-checklist .btn-link:hover i {
  background-color: var(--primary-color);
  color: #fff;
   transition: all 0.4s ease;
}

.nextlist-formulario-checklist .page-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary, #1f2937);
  margin: 0;
}

.nextlist-formulario-checklist .page-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary, #6b7280);
  margin: 0;
}

.nextlist-formulario-checklist .btn {
  padding: 10px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.nextlist-formulario-checklist .btn-primary {
  background-color: var(--primary-color);
  color: var(--btn-secundary-text-color);
  margin-bottom: 1rem;
}

.nextlist-formulario-checklist .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.nextlist-formulario-checklist .btn-secondary {
  background-color: var(--btn-secundary-color);
  color: var(--btn-secundary-text-color);
  border: var(--border-type);
}

.nextlist-formulario-checklist .btn-secondary:hover {
  opacity: 0.9;
}

.nextlist-formulario-checklist .formulario-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border, #e5e7eb);
  margin-bottom: 2rem;
}

.nextlist-formulario-checklist .tab-button {
  background: none;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary, #6b7280);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nextlist-formulario-checklist .tab-button:hover {
  color: var(--text-primary, #1f2937);
}

.nextlist-formulario-checklist .tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.nextlist-formulario-checklist .tab-button i {
  font-size: 0.875rem;
}

.nextlist-formulario-checklist .tab-content {
  display: none;
}

.nextlist-formulario-checklist .tab-content.active {
  display: block;
}

.nextlist-formulario-checklist .section-title {
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  width: auto;  
  align-self: flex-start;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  min-height: 60px;
  border-bottom-right-radius: 65px;
}

.nextlist-formulario-checklist .form-group {
  margin-bottom: 1.5rem;
}

.nextlist-formulario-checklist .form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary, #1f2937);
  margin-bottom: 0.5rem;
}

.nextlist-formulario-checklist .required {
  color: #dc2626;
  margin-left: 3px;
}

.nextlist-formulario-checklist .form-input,
.nextlist-formulario-checklist .form-select,
.nextlist-formulario-checklist .form-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--background-inputs-light-mode);
  color: var(--text-primary, #1f2937);
  transition: all 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.nextlist-formulario-checklist .form-input:focus,
.nextlist-formulario-checklist .form-select:focus,
.nextlist-formulario-checklist .form-textarea:focus {
  outline: none;
  border: 2px solid var(--primary-color);
  padding: 9px 11px;
}

.nextlist-formulario-checklist .form-input:disabled,
.nextlist-formulario-checklist .form-select:disabled {
  background-color: var();
  cursor: not-allowed;
  opacity: 0.7;
}

.nextlist-formulario-checklist .form-textarea {
  resize: vertical;
  min-height: 100px;
}

.nextlist-formulario-checklist .form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.nextlist-formulario-checklist .form-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-secondary, #6b7280);
  margin-top: 0.375rem;
  line-height: 1.4;
}

.nextlist-formulario-checklist .form-error {
  display: none;
  font-size: 0.8125rem;
  color: #dc2626;
  margin-top: 0.375rem;
}

.nextlist-formulario-checklist .form-input--readonly {
  background-color: var(--background-inputs-light-mode);
  cursor: not-allowed;
  color: var(--text-secondary, #6b7280);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nextlist-formulario-checklist .toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nextlist-formulario-checklist .toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.nextlist-formulario-checklist .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.nextlist-formulario-checklist .toggle-slider {
  position: absolute;
  inset: 0;
  background-color: #d1d5db;
  border-radius: 28px;
  cursor: pointer;
  transition: background-color 0.25s;
}

.nextlist-formulario-checklist .toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.nextlist-formulario-checklist .toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary-color);
}

.nextlist-formulario-checklist .toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.nextlist-formulario-checklist .toggle-label {
  font-size: 0.875rem;
  color: var(--text-primary, #1f2937);
  font-weight: 500;
}

.nextlist-formulario-checklist .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, #e5e7eb);
}

.nextlist-formulario-checklist .campos-placeholder,
.nextlist-formulario-checklist .preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background-color: var(--card-bg, #ffffff);
  border: 2px dashed var(--border, #e5e7eb);
  border-radius: 12px;
  text-align: center;
}

.nextlist-formulario-checklist .placeholder-text {
  font-size: 0.95rem;
  color: var(--text-secondary, #6b7280);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nextlist-formulario-checklist .placeholder-text i {
  color: var(--primary-color);
  font-size: 1.25rem;
}

.nextlist-formulario-checklist .loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.nextlist-formulario-checklist .loading-content {
  background-color: var(--card-bg, #ffffff);
  border-radius: 12px;
  padding: 2rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.nextlist-formulario-checklist .loading-content i {
  font-size: 2rem;
  color: var(--primary-color);
  animation: spin 1s linear infinite;
}

.nextlist-formulario-checklist .loading-content p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary, #1f2937);
  font-weight: 500;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.nextlist-formulario-checklist .section-description {
  font-size: 0.875rem;
  color: var(--text-secondary, #6b7280);
  margin: -1rem 0 1.5rem 0;
}

.nextlist-formulario-checklist .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary, #6b7280);
  font-size: 0.875rem;
}

.nextlist-formulario-checklist .search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  font-size: 14px;
  background-color: var(--background-inputs-light-mode);
  color: var(--text-primary, #1f2937);
  transition: all 0.2s;
  text-transform: uppercase;
  margin: 0;
}

.nextlist-formulario-checklist .search-input:focus {
  outline: none;
  border: 2px solid var(--primary-color);
  padding-left: 35px;
}

.nextlist-formulario-checklist .usuarios-lista {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  max-height: 320px;
  overflow-y: auto;
  margin: 0 0.5rem;
}

.nextlist-formulario-checklist .usuario-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
   margin-bottom: 4px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.15s;
  border-bottom: 1px solid var(--border, #e5e7eb);
}

.nextlist-formulario-checklist .usuario-item:last-child {
  border-bottom: none;
}

.nextlist-formulario-checklist .usuario-item:hover {
  background-color: var(--surface-hover, #f9fafb);
}

.nextlist-formulario-checklist .usuario-item.selected {
  background-color: color-mix(in srgb, var(--primary-color) 8%, transparent);
}

.nextlist-formulario-checklist .usuario-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nextlist-formulario-checklist .usuario-avatar--sm {
  width: 26px;
  height: 26px;
  font-size: 0.6875rem;
}

.nextlist-formulario-checklist .usuario-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nextlist-formulario-checklist .usuario-nome {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary, #1f2937);
}

.nextlist-formulario-checklist .usuario-username {
  font-size: 0.8125rem;
  color: var(--text-secondary, #6b7280);
}

.nextlist-formulario-checklist .usuario-check {
  color: var(--border, #d1d5db);
  font-size: 1.125rem;
  transition: color 0.15s;
}

.nextlist-formulario-checklist .usuario-item.selected .usuario-check {
  color: var(--primary-color);
}

.nextlist-formulario-checklist .usuarios-loading,
.nextlist-formulario-checklist .usuarios-empty,
.nextlist-formulario-checklist .usuarios-error {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary, #6b7280);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.nextlist-formulario-checklist .usuarios-selecionados-wrapper {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: var(--surface-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.nextlist-formulario-checklist .usuarios-selecionados-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nextlist-formulario-checklist .usuarios-count {
  background-color: var(--primary-color);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.nextlist-formulario-checklist .usuarios-selecionados {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nextlist-formulario-checklist .usuario-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px 4px 4px;
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.nextlist-formulario-checklist .usuario-tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary, #6b7280);
  padding: 0;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  margin-left: 2px;
}

.nextlist-formulario-checklist .usuario-tag-remove:hover {
  color: #dc2626;
}

html.dark-theme .nextlist-formulario-checklist .usuarios-lista,
html.dark-theme .nextlist-formulario-checklist .usuarios-selecionados-wrapper {
  background-color: #1e1e1e;
  border-color: #555555;
}

html.dark-theme .nextlist-formulario-checklist .usuario-item {
  border-bottom-color: #555555;
}

html.dark-theme .nextlist-formulario-checklist .usuario-item:hover {
  background-color: #2c2c2c;
}

html.dark-theme .nextlist-formulario-checklist .usuario-item.selected {
  background-color: var(--background-dark-mode);
}

html.dark-theme .nextlist-formulario-checklist .usuario-nome,
html.dark-theme .nextlist-formulario-checklist .usuarios-selecionados-title {
  color: #f0f0f0;
}

html.dark-theme .nextlist-formulario-checklist .usuario-tag {
  background-color: #2c2c2c;
  border-color: #555555;
  color: #f0f0f0;
}

html.dark-theme .nextlist-formulario-checklist .search-input {
  background-color: var(--background-dark-mode);
  color: #f0f0f0;
  border-color: #555555;
 
}

html.dark-theme .nextlist-formulario-checklist .page-title,
html.dark-theme .nextlist-formulario-checklist .section-title,
html.dark-theme .nextlist-formulario-checklist .form-label,
html.dark-theme .nextlist-formulario-checklist .toggle-label {
  color: #f0f0f0;
}

html.dark-theme .nextlist-formulario-checklist .page-subtitle,
html.dark-theme .nextlist-formulario-checklist .form-hint,
html.dark-theme .nextlist-formulario-checklist .placeholder-text {
  color: #b0b0b0;
}

html.dark-theme .nextlist-formulario-checklist .form-container,
html.dark-theme .nextlist-formulario-checklist .campos-placeholder,
html.dark-theme .nextlist-formulario-checklist .preview-placeholder,
html.dark-theme .nextlist-formulario-checklist .loading-content {
  background-color: #2c2c2c;
  border-color: #555555;
}

html.dark-theme .nextlist-formulario-checklist .form-input,
html.dark-theme .nextlist-formulario-checklist .form-select,
html.dark-theme .nextlist-formulario-checklist .form-textarea {
  background-color: var(--background-dark-mode);
  color: #f0f0f0;
  border-color: #555555;
}

html.dark-theme .nextlist-formulario-checklist .form-input--readonly,
html.dark-theme .nextlist-formulario-checklist .form-input:disabled,
html.dark-theme .nextlist-formulario-checklist .form-select:disabled {
  background-color: #3a3a3a;
  color: #9ca3af;
}

html.dark-theme .nextlist-formulario-checklist .tab-button:hover {
  color: #f0f0f0;
}

html.dark-theme .nextlist-formulario-checklist .btn-link:hover {
  background-color: #3a3a3a;
}

html.dark-theme .nextlist-formulario-checklist .formulario-tabs {
  border-bottom-color: #555555;
}

html.dark-theme .nextlist-formulario-checklist .section-title {
  border-bottom-color: #555555;
}

html.dark-theme .nextlist-formulario-checklist .form-actions {
  border-top-color: #555555;
}

@media (max-width: 768px) {
  .nextlist-formulario-checklist {
    padding: 15px;
  }

  .nextlist-formulario-checklist .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .nextlist-formulario-checklist .header-right {
    width: 100%;
  }

  .nextlist-formulario-checklist .btn {
    width: 100%;
    justify-content: center;
  }

  .nextlist-formulario-checklist .formulario-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nextlist-formulario-checklist .tab-button {
    white-space: nowrap;
  }

  .nextlist-formulario-checklist .form-actions {
    flex-direction: column-reverse;
  }

  .nextlist-formulario-checklist .form-actions .btn {
    width: 100%;
  }
}

.nextlist-formulario-checklist .header-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nextlist-formulario-checklist .header-center {
  text-align: center;
}

.nextlist-formulario-checklist .header-right {
  display: flex;
  justify-content: flex-end;
}

.nextlist-formulario-checklist .page-breadcrumb {
  font-size: 0.8rem;
  color: var(--text-secondary, #6b7280);
  margin: 2px 0 0 0;
}

.nextlist-formulario-checklist .form-container {
  padding: 0;
  overflow: hidden;
  border: 2px solid var( --border-light-mode);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px ;
}

.nextlist-formulario-checklist .form-section {
  border-radius: inherit;
  padding: 0 !important;
}

.nextlist-formulario-checklist .form-group {
  padding: 0 1.5rem;
}

.nextlist-formulario-checklist .form-actions {
  padding: 1.5rem 1.5rem 1.5rem;
  margin-top: 2rem;
}

.nextlist-formulario-checklist .usuarios-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary, #6b7280);
  margin: 4px 0 0 0;
  padding: 0;
}