/* One profile screen with separate personal and facility notification settings. */
#manager-app .manager-profile-notifications [data-profile-notification-panel][hidden] { display:none!important; }
#manager-app .manager-profile-notification-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0; }
#manager-app .manager-profile-automatic-notifications { margin:0; padding:0; border:0; background:transparent; box-shadow:none; }
#manager-app .manager-profile-automatic-notifications > .desktop-panel-head { padding:0; margin:0 0 20px; gap:16px; }
#manager-app .manager-profile-automatic-notifications .desktop-notification-tabs { margin:0 0 24px; padding:0; }
#manager-app .manager-profile-automatic-notifications .desktop-notification-rules { margin:0; }
#manager-app .manager-profile-automatic-notifications .desktop-notification-sms { margin-top:20px; }
#manager-app .manager-profile-notifications zreev-account-preferences { margin-bottom:0; }
@media(max-width:600px) {
  #manager-app .manager-profile-automatic-notifications > .desktop-panel-head { align-items:flex-start; flex-wrap:wrap; }
}

/* Match the white offer card and its table rhythm in both notification tabs. */
#manager-app .manager-profile-notifications {
  box-sizing:border-box;
  padding:24px 0;
  background:#fff;
  border:1px solid #e0e7f0;
  border-radius:12px;
}
#manager-app .manager-profile-notifications > .zreev-notification-heading,
#manager-app .manager-profile-notification-tabs { margin-left:24px; margin-right:24px; }
#manager-app .manager-profile-notifications > .zreev-notification-heading { margin-top:0; }
#manager-app .manager-profile-notification-tabs { margin-top:24px; margin-bottom:24px; }
#manager-app .manager-profile-automatic-notifications > .desktop-panel-head { margin:0 24px 20px; }
#manager-app .manager-profile-automatic-notifications .desktop-panel-head h2 {
  margin:0; font-size:1rem; line-height:1.5; font-weight:600;
}
#manager-app .manager-profile-automatic-notifications .desktop-notification-tabs { margin:0 24px 16px; }
#manager-app .manager-profile-notifications .desktop-notification-table-head {
  padding:16px 24px; background:#fff; color:#64748b; font-size:.75rem; font-weight:400;
  border-bottom:1px solid var(--z-row-separator,#f1f3f5);
}
#manager-app .manager-profile-notifications .desktop-notification-rule {
  padding:18px 24px; background:#fff; font-size:.875rem; line-height:1.5;
  border-top:0; border-bottom:1px solid var(--z-row-separator,#f1f3f5);
}
#manager-app .manager-profile-notifications .desktop-notification-audience > .desktop-notification-rule:last-child { border-bottom:0; }
#manager-app .manager-profile-notifications .desktop-notification-rule :is(strong,.desktop-notification-rule-meta > span) {
  font-size:.875rem; line-height:1.5; font-weight:400; color:#172033;
}
#manager-app .manager-profile-notifications .desktop-notification-topic,
#manager-app .manager-profile-notifications .desktop-notification-topic strong { font-size:.875rem; font-weight:500; color:#2f6bff; }
#manager-app .manager-profile-automatic-notifications .desktop-notification-sms {
  margin:0; padding:20px 24px 0; background:#fff; border-top:1px solid var(--z-row-separator,#f1f3f5);
}
#manager-app .manager-profile-notifications .desktop-notification-sms :is(strong,b) { font-size:.875rem; font-weight:500; }
#manager-app .manager-profile-notifications .desktop-notification-sms small { font-size:.75rem; line-height:1.5; }
#manager-app .manager-profile-notifications .zreev-profile-section-title { margin:24px 24px 12px; font-size:1rem; line-height:1.5; font-weight:600; }
#manager-app .manager-profile-notifications zreev-account-preferences[data-section="notifications"] .zreev-account-preferences-form {
  margin:0; padding:0; background:#fff; border:0; border-radius:0;
}
#manager-app .manager-profile-notifications zreev-account-preferences[data-section="notifications"] .zreev-preference-toggle {
  padding:18px 24px; margin:0; background:#fff; border:0;
  font-size:.875rem; line-height:1.5;
}
#manager-app .manager-profile-notifications zreev-account-preferences[data-section="notifications"] .zreev-preference-toggle + .zreev-preference-toggle { border-top:1px solid var(--z-row-separator,#f1f3f5); }
#manager-app .manager-profile-notifications .zreev-preference-toggle strong { font-size:.875rem; line-height:1.5; font-weight:400; }
#manager-app .manager-profile-notifications .zreev-preference-toggle:last-child { border-bottom:0; }
@media(max-width:600px) {
  #manager-app .manager-profile-notifications { padding:16px 0; }
  #manager-app .manager-profile-notifications > .zreev-notification-heading,
  #manager-app .manager-profile-notification-tabs { margin-left:16px; margin-right:16px; }
  #manager-app .manager-profile-automatic-notifications > .desktop-panel-head { margin-left:16px; margin-right:16px; }
  #manager-app .manager-profile-automatic-notifications .desktop-notification-tabs { margin-left:16px; margin-right:16px; }
  #manager-app .manager-profile-notifications .zreev-profile-section-title { margin-left:16px; margin-right:16px; }
  #manager-app .manager-profile-notifications :is(.desktop-notification-table-head,.desktop-notification-rule,.desktop-notification-sms),
  #manager-app .manager-profile-notifications zreev-account-preferences[data-section="notifications"] .zreev-preference-toggle { padding-left:16px; padding-right:16px; }
}

/* Paid SMS belongs to its reminder, alongside the standard channels. */
#manager-app .manager-reminder-sms-option { display:flex; align-items:center; gap:8px; margin:8px 0 0; color:#172033; cursor:pointer; }
#manager-app .manager-reminder-sms-option input { width:16px; height:16px; margin:0; accent-color:#2f6bff; }
#manager-app .manager-reminder-sms-option:has(input:disabled) { color:#64748b; cursor:default; }
#manager-app .manager-reminder-sms-fee { display:block; margin-top:4px; font-size:.75rem; line-height:1.5; color:#64748b; }

#manager-app .manager-profile-notifications .desktop-notification-topic {
  display:inline-flex; align-items:center; gap:8px; cursor:pointer;
}
#manager-app .manager-profile-notifications .desktop-notification-topic:is(:hover,:focus-visible) strong {
  text-decoration:underline; text-underline-offset:3px;
}
#manager-app .manager-profile-notifications .desktop-notification-topic:focus-visible {
  outline:2px solid #2f6bff; outline-offset:4px; border-radius:3px;
}
#manager-app .manager-profile-notifications .manager-notification-chevron { flex:none; }
#manager-app .manager-profile-notifications .desktop-notification-topic[aria-expanded="true"] .manager-notification-chevron {
  transform:rotate(180deg);
}

/* Separate channel previews and keep field labels on one line. */
#manager-app .manager-profile-notifications .desktop-notification-email-preview {
  display:grid; gap:24px; padding:24px 0 0; margin-top:20px;
}
#manager-app .manager-profile-notifications .manager-notification-preview-section {
  display:grid; gap:16px; min-width:0; margin:0; padding:0;
}
#manager-app .manager-profile-notifications .manager-notification-preview-section + .manager-notification-preview-section {
  border-top:1px solid var(--z-row-separator,#f1f3f5); padding-top:24px;
}
#manager-app .manager-profile-notifications .manager-notification-preview-section h4 {
  margin:0; font-size:.875rem; line-height:1.5; font-weight:600; color:#172033;
}
#manager-app .manager-profile-notifications .manager-notification-preview-section > span {
  display:grid; grid-template-columns:112px minmax(0,1fr); align-items:start; gap:24px;
}
#manager-app .manager-profile-notifications .manager-notification-preview-section > span > b {
  white-space:nowrap; font-size:.875rem; line-height:1.6; font-weight:400; color:#64748b;
}
#manager-app .manager-profile-notifications .manager-notification-preview-section > span > :is(p,strong) {
  min-width:0; margin:0; font-size:.875rem; line-height:1.6; font-weight:400;
  white-space:pre-line; overflow-wrap:anywhere;
}
#manager-app .manager-profile-notifications .manager-notification-preview-section > small {
  margin:0 0 0 136px; color:#64748b; font-size:.75rem; line-height:1.6;
}
@media(max-width:600px) {
  #manager-app .manager-profile-notifications .manager-notification-preview-section > span {
    grid-template-columns:80px minmax(0,1fr); gap:16px;
  }
  #manager-app .manager-profile-notifications .manager-notification-preview-section > small { margin-left:96px; }
}


/* One shared header names each channel; each rule contains only its controls. */
#manager-app .manager-profile-notifications .desktop-notification-table-head,
#manager-app .manager-notification-channel-row {
 display:grid; grid-template-columns:minmax(220px,1fr) repeat(4,minmax(62px,.22fr)) 90px;
 gap:16px; align-items:center;
}
#manager-app .manager-notification-channel-row>* { min-width:0; }
#manager-app .manager-notification-channel-row .desktop-notification-topic { justify-content:flex-start; align-items:baseline; text-align:left; white-space:normal; }
#manager-app .manager-notification-channels { display:contents; }
#manager-app .manager-notification-channels label { display:flex; align-items:center; justify-content:center; margin:0; cursor:pointer; min-height:32px; }
#manager-app .manager-notification-channel-heading,
#manager-app .manager-notification-channel-unavailable { text-align:center; }
#manager-app .manager-notification-channels input { appearance:auto; flex:none; width:18px; height:18px; min-height:0; margin:0; padding:0; accent-color:#2f6bff; }
#manager-app .manager-notification-channels label:has(input:disabled) { cursor:default; color:#64748b; }
#manager-app .manager-notification-channels input:focus-visible { outline:2px solid #2f6bff; outline-offset:3px; }
#manager-app .manager-notification-variable { display:inline-block; vertical-align:baseline; padding:1px 6px; border-radius:5px; background:#eaf1ff; color:#245bd5; font:inherit; line-height:1.5; white-space:nowrap; }
#manager-app .manager-notification-variable:focus-visible { outline:2px solid #2f6bff; outline-offset:2px; }
#manager-app .manager-profile-notifications .desktop-notification-rules { min-width:0; overflow:visible; }
#manager-app .manager-profile-notifications .desktop-notification-table-head { min-width:0; }
#manager-app .manager-profile-notifications .desktop-notification-rule { display:block; min-width:0; width:100%; box-sizing:border-box; }
#manager-app .manager-profile-notifications .desktop-notification-email-preview { min-width:0; }
@media(max-width:1100px) {
 #manager-app .manager-profile-notifications .desktop-notification-table-head,
 #manager-app .manager-notification-channel-row { grid-template-columns:minmax(180px,1fr) repeat(4,minmax(48px,.2fr)) 80px; gap:10px; }
}
@media(max-width:760px) {
 #manager-app .manager-profile-notifications .desktop-notification-table-head,
 #manager-app .manager-notification-channel-row { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
 #manager-app .manager-profile-notifications .manager-notification-topic-heading,
 #manager-app .manager-profile-notifications .manager-notification-required-heading { display:none; }
 #manager-app .manager-notification-channel-row .desktop-notification-topic { grid-column:1/-1; }
 #manager-app .manager-notification-channel-row>.desktop-notification-required { grid-column:1/-1; }
 #manager-app .manager-notification-channel-row>.desktop-notification-required::before { content:"Obowiązkowe: "; }
 #manager-app .manager-profile-notifications .manager-notification-preview-section > span { grid-template-columns:minmax(0,1fr); gap:4px; }
 #manager-app .manager-profile-notifications .manager-notification-preview-section > small { margin-left:0; }
 #manager-app .manager-notification-variable { max-width:100%; box-sizing:border-box; white-space:normal; overflow-wrap:anywhere; }
}
