.notification-page {
  padding: 0 0 40px;
}

/* ── Header ── */
.notification-page .page-header-wrapper {
  background-color: var(--background-color-main-light);
  border: 1px solid var(--border-light-mode);
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  margin: 0 0 1.5rem 0;
  padding: 30px 20px;
}

html.dark-theme .notification-page .page-header-wrapper {
  background-color: var(--background-dark-mode-menu-lateral);
  border-color: var(--border-dark-mode);
}

.notification-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notification-header .page-header-center {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notification-page .page-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.notification-page .page-subtitle {
  font-size: 0.95rem;
  color: var(--text-thowine-light);
  margin: 0.25rem 0 0 0;
}

/* ── Botão voltar ── */
.notif-back-btn {
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-color-contrast);
  font-size: 14px;
  flex-shrink: 0;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.notif-back-btn:hover {
  background: var(--background-color-main-light-gray);
  color: var(--text-thowine-black-light);
}

html.dark-theme .notif-back-btn {
  color: var(--primary-color-contrast);
}

html.dark-theme .notif-back-btn:hover {
  background: var(--background-main-dark-mode);
  color: var(--text-thowine-dark);
}

/* ── Card do usuário ── */
.notif-user-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

html.dark-theme .notif-user-card {
  background: var(--background-dark-mode-menu-lateral);
  border-color: var(--border-dark-mode);
}

.notif-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f97316;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.notif-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.notif-user-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

html.dark-theme .notif-user-name {
  color: var(--text-thowine-dark);
}

.notif-user-email {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

html.dark-theme .notif-user-email {
  color: var(--text-thowine-light);
}

/* ── Seções ── */
.notif-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

html.dark-theme .notif-section {
  background: var(--background-main-dark-mode);
  border-color: var(--border-dark-mode);
}

.notif-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

html.dark-theme .notif-section-header {
  background: var(--background-dark-mode-menu-lateral);
  border-bottom-color: var(--border-dark-mode);
}

.notif-section-icon {
  color: #f97316;
  font-size: 15px;
}

.notif-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

html.dark-theme .notif-section-title {
  color: var(--text-thowine-dark);
}

.notif-section-body {
  padding: 20px;
}

/* ── Checkmark nas opções selecionadas ── */
.notification-page .cs-option--selected::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: auto;
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
}

html.dark-theme .notification-page .cs-option--selected::after {
  color: var(--background-dark-mode-menu-lateral);
}

/* ── Scrollbar do options scroll em dark mode ── */
html.dark-theme .ns-cl-options-scroll::-webkit-scrollbar {
  width: 6px;
}

html.dark-theme .ns-cl-options-scroll::-webkit-scrollbar-track {
  background: transparent;
}

html.dark-theme .ns-cl-options-scroll::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 3px;
}

/* ── Select de checklists — altura aumentada 20% ── */
.notification-page .cs-open .cs-dropdown {
  max-height: 312px;
}

/* ── Wrapper inline: select + busca ── */
.notif-select-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.notif-select-row .cs-container {
  flex: 1;
  min-width: 0;
}

.notif-search-wrap {
  display: none;
  flex: 1;
  min-width: 0;
  position: relative;
}

.notif-search-wrap::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 13px;
  pointer-events: none;
}

.notif-search-wrap--visible {
  display: flex;
}

.notif-inline-search {
  width: 100%;
  padding: 7px 12px 7px 34px;
  border: 1px solid var(--border-light-mode);
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--text-thowine-black-light);
  background: var(--background-input);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}


.notif-inline-search:focus {
  border-color: var(--primary-color);
}

html.dark-theme .notif-inline-search {
  background: var(--background-dark-mode-menu-lateral);
  border-color: var(--border-dark-mode);
  color: var(--text-thowine-dark);
}

html.dark-theme .notif-inline-search:focus {
  border-color: var(--primary-color);
}

.notif-cl-hint {
  position: sticky;
  bottom: 44px;
  z-index: 1;
  margin: 0;
  padding: 8px 14px;
  font-size: 13px;
  color: #9ca3af;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

html.dark-theme .notif-cl-hint {
  background: var(--background-main-dark-mode);
  border-top-color: var(--border-dark-mode);
  color: var(--text-thowine-light);
}

.notif-empty {
  font-size: 13px;
  color: #9ca3af;
  margin: 0;
}

/* ── Toggles de eventos ── */
.notif-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.notif-event-row:last-child {
  border-bottom: none;
}

.notif-event-row.notif-event-disabled {
  opacity: 0.45;
}

.notif-event-label {
  font-size: 13px;
  color: #374151;
}

html.dark-theme .notif-event-label {
  color: var(--text-thowine-dark);
}

html.dark-theme .notif-event-row {
  border-bottom-color: var(--border-dark-mode);
}

/* ── Rodapé com botão salvar ── */
.notif-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 0 0;
}

.notif-btn-cancel {
  padding: 10px 22px;
  border: 1.5px solid var(--border-light-mode);
  border-radius: 6px;
  background: var(--background-main);
  color: var(--text-thowine-black-light);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

html.dark-theme .notif-btn-cancel {
  background: var(--background-dark-mode-menu-lateral);
  color: var(--text-thowine-dark);
  border-color: var(--background-dark-mode-menu-lateral);
}

.notif-btn-save {
  padding: 10px 22px;
  border: none;
  border-radius: 6px;
  background: var(--primary-color);
  color: var(--primary-color-contrast);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.notif-btn-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
