.notif-components-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  backdrop-filter: blur(2px);
}

.notif-components-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.notif-components-drawer {
  position: fixed;
  top: var(--header-height);
  right: -460px;
  z-index: 1210;
  display: flex;
  flex-direction: column;
  width: 460px;
  max-width: 100%;
  height: calc(100vh - var(--header-height));
  background: #ffffff;
  box-shadow: -4px 0 30px rgba(15, 23, 42, 0.08);
  transition: right 0.28s ease;
  overflow: hidden;
}

.notif-components-drawer.active {
  right: 0;
}

.notif-components-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid #edf2f7;
  flex-shrink: 0;
}

.notif-components-drawer-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.notif-components-drawer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.notif-components-drawer-subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7280;
}

.notif-components-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
  cursor: pointer;
  transition: 0.2s ease;
}

.notif-components-drawer-close:hover {
  background: #e5e7eb;
}

.notif-components-drawer-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 18px;
  scrollbar-width: thin;
}

.notif-components-drawer-content::-webkit-scrollbar {
  width: 6px;
}

.notif-components-drawer-content::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

.notif-components-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.notif-components-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notif-components-section-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #6b7280;
}

.notif-components-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.notif-components-grid-single {
  grid-template-columns: 1fr;
}

.notif-components-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notif-components-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.notif-components-required {
  color: #dc2626;
}

.notif-components-input,
.notif-components-select,
.notif-components-textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  background: #ffffff;
  color: #111827;
  transition: 0.2s ease;
}

.notif-components-input,
.notif-components-select {
  height: 42px;
  padding: 0 14px;
  font-size: 13px;
}

.notif-components-textarea {
  min-height: 110px;
  padding: 12px 14px;
  resize: vertical;
  font-size: 13px;
  line-height: 1.5;
}

.notif-components-input:focus,
.notif-components-select:focus,
.notif-components-textarea:focus {
  border-color: var(--color_primario);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03);
}

.notif-components-input-group {
  position: relative;
}

.notif-components-input-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  font-size: 13px;
  color: #9ca3af;
}

.notif-components-input-group .notif-components-input {
  padding-left: 36px;
}

.notif-components-priority-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notif-components-priority-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.notif-components-priority-btn.active {
  border-color: var(--color_primario);
  background: rgba(0, 0, 0, 0.04);
  color: var(--color_primario);
}

.notif-components-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-components-channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  background: #ffffff;
}

.notif-components-channel-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.notif-components-channel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f3f4f6;
  color: var(--color_primario);
  font-size: 16px;
}

.notif-components-channel-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.notif-components-channel-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.notif-components-channel-description {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #6b7280;
}

.notif-components-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  background: #ffffff;
}

.notif-components-switch-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notif-components-switch-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.notif-components-switch-text {
  font-size: 11px;
  color: #6b7280;
}

.notif-components-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 18px;
  background: #ffffff;
}

.notif-components-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.notif-components-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.notif-components-btn-secondary:hover {
  background: #e5e7eb;
}

.notif-components-btn-primary {
  background: var(--color_primario);
  color: #ffffff;
}

.notif-components-btn-primary:hover {
  opacity: 0.92;
}

.notif-components-btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.notif-components-btn-danger:hover {
  opacity: 0.92;
}

.notif-components-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 64px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.notif-components-badge-success {
  background: #ecfdf3;
  color: #027a48;
}

.notif-components-badge-warning {
  background: #fff7ed;
  color: #ea580c;
}

.notif-components-badge-danger {
  background: #fef2f2;
  color: #dc2626;
}

.notif-components-help {
  font-size: 11px;
  line-height: 1.5;
  color: #6b7280;
}

.notif-components-separator {
  width: 100%;
  height: 1px;
  background: #edf2f7;
}

@media (max-width: 768px) {
  .notif-components-drawer {
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .notif-components-grid {
    grid-template-columns: 1fr;
  }

  .notif-components-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .notif-components-btn {
    width: 100%;
  }
}
