/* 发送通知 — 对齐系统设置卡片 / 活动中心 Tab / 部门树样式 */
.send-notice-panel {
  display: grid;
  gap: 14px;
  max-width: 1080px;
}

.send-notice-panel > .settings-wizard-lead {
  margin-bottom: 0;
}

.sn-perm-banner {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #fde68a;
  background: linear-gradient(90deg, #fffbeb 0%, #fff 100%);
}

.sn-perm-banner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #6b5a2e;
}

.sn-perm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fef3c7;
  color: #b45309;
  font-size: 14px;
  font-weight: 700;
}

.sn-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.sn-card {
  border: 1px solid #dfe7f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 42, 67, 0.04);
  overflow: hidden;
}

.sn-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid #edf2f7;
  background: linear-gradient(180deg, #fbfdff 0%, #fff 100%);
}

.sn-card-head h4 {
  margin: 0;
  font-size: 16px;
  color: #102033;
}

.sn-card-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6b7f97;
  line-height: 1.45;
}

.sn-card-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1677ff;
  font-size: 11px;
  font-weight: 600;
}

.sn-scope-tabs {
  display: flex;
  gap: 0;
  padding: 0 18px;
  border-bottom: 1px solid #edf2f7;
  background: #fff;
}

.sn-scope-tab {
  position: relative;
  flex: 1;
  height: 40px;
  padding: 0 4px 8px;
  border: 0;
  background: transparent;
  color: #607086;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.sn-scope-tab:hover:not(:disabled) {
  color: #2f4057;
}

.sn-scope-tab.active {
  color: #1677ff;
  font-weight: 700;
}

.sn-scope-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: #1677ff;
}

.sn-scope-tab.is-locked,
.sn-scope-tab:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.sn-scope-body {
  padding: 14px 18px 18px;
}

.sn-target-panel[hidden] {
  display: none !important;
}

.sn-dept-search-wrap {
  margin-bottom: 10px;
}

.sn-dept-search {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}

.sn-dept-tree {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px 4px;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  background: #fafbfc;
}

.sn-dept-tree .mdp-tree-node {
  min-height: 34px;
}

.sn-dept-tree .sn-dept-root {
  font-weight: 600;
  color: #2f4057;
  cursor: pointer;
}

.sn-dept-tree .sn-dept-root .mdp-tree-caret {
  cursor: pointer;
}

.sn-dept-company-block + .sn-dept-company-block {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e8eef5;
}

.sn-dept-selected-hint {
  margin: 8px 2px 0;
  font-size: 11px;
  color: #607086;
}

.sn-dept-selected-hint.is-empty {
  color: #a8b4c2;
}

.sn-tree-empty {
  margin: 0;
  padding: 16px 12px;
  text-align: center;
  color: #8aa0b8;
  font-size: 12px;
}

.sn-all-banner {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #fecaca;
  background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
}

.sn-all-banner b {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #991b1b;
}

.sn-all-banner p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #7f1d1d;
}

.sn-all-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  font-size: 16px;
}

.sn-compose-grid {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
}

.sn-title-field {
  display: grid;
  gap: 6px;
}

.sn-title-field span,
.sn-rich-label {
  font-size: 12px;
  color: #5a6a85;
  font-weight: 600;
}

.sn-title-field input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dfe7f2;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2a37;
  background: #fff;
}

.sn-title-field input:focus {
  border-color: #1677ff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

.sn-rich-field {
  display: grid;
  gap: 8px;
}

.sn-rich-shell {
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.sn-rich-shell.rich-editor-shell.is-ready {
  border-color: #dfe7f2;
}

.sn-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid #edf2f7;
  background: #fbfdff;
}

.sn-status {
  min-height: 18px;
  font-size: 12px;
  color: #6b7f97;
}

.sn-send-btn {
  min-width: 132px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(22, 119, 255, 0.18);
}

.sn-send-btn:disabled {
  box-shadow: none;
  opacity: 0.55;
}

/* 系统消息富文本展示 */
.wac-notice-rich {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  word-break: break-word;
}

.wac-notice-rich p {
  margin: 0 0 6px;
}

.wac-notice-rich p:last-child {
  margin-bottom: 0;
}

.wac-notice-rich ul,
.wac-notice-rich ol {
  margin: 4px 0;
  padding-left: 18px;
}

.wac-notice-rich a {
  color: var(--blue);
}

.wac-notice-rich img {
  max-width: 100%;
  border-radius: 6px;
}

@media (max-width: 960px) {
  .sn-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
