/* Shared notice/feed UI for both services and all authenticated roles. */
.goal-announcement .goal-metric-heading { gap:6px; padding-inline:10px; }
.notice-more { flex:none; margin-left:auto; border:0; padding:3px 0; background:none; color:var(--theme-blue,#3976da); font-size:10px; cursor:pointer; }
.notice-preview { min-height:0; max-height:144px; overflow:auto; scrollbar-width:thin; }
.notice-row { display:grid; grid-template-columns:16px minmax(0,1fr) 32px 62px; align-items:center; gap:8px; min-height:46px; padding:9px 10px; border-bottom:1px solid var(--theme-line,#e5ebf5); }
.notice-row:last-child { border-bottom:0; }
.notice-marker { display:grid; place-items:center; width:16px; height:16px; justify-self:center; }
.notice-marker::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--theme-muted,#8090a6); }
.notice-marker.is-pending::before { background:#ee5868; box-shadow:0 0 0 2px #ee58680d; }
.notice-marker.is-complete { border-radius:50%; color:#fff; background:var(--theme-green,#21ac76); }
.notice-marker.is-complete::before { content:none; }
.notice-marker svg { width:100%; height:100%; }
.notice-main { min-width:0; }
.notice-main h4 { margin:0; color:var(--theme-text,#263752); font-size:11px; font-weight:650; line-height:1.65; overflow-wrap:anywhere; }
.notice-main h4 a { color:var(--theme-text,#263752); text-decoration:none; }
.notice-main h4 a:hover { text-decoration:underline; }
.notice-note { color:var(--theme-muted,#8090a6); font-size:inherit; font-weight:450; }
.notice-published { color:var(--theme-muted,#8090a6); font-size:10px; font-weight:500; font-variant-numeric:tabular-nums; text-align:center; white-space:nowrap; }
.notice-actions { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; }
.notice-actions .btn { padding:4px 7px; font-size:10px; white-space:nowrap; }
.notice-action { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; width:100%; min-height:29px; padding:4px 7px; border:1px solid; border-radius:6px; font-size:11px; font-weight:600; line-height:1.5; white-space:nowrap; }
.notice-fill { color:var(--theme-blue,#3976da); border-color:color-mix(in srgb,var(--theme-blue,#3976da) 48%,var(--theme-surface,#fff)); background:var(--theme-blue-soft,#edf5ff); box-shadow:0 1px 2px #254a7410; }
.notice-fill:hover { background:color-mix(in srgb,var(--theme-blue,#3976da) 15%,var(--theme-surface,#fff)); text-decoration:none; }
.notice-completed { color:var(--theme-green,#25966b); border-color:color-mix(in srgb,var(--theme-green,#25966b) 20%,var(--theme-surface,#fff)); background:var(--theme-green-soft,#e9f8f2); }
.notice-confirm { border:0; padding:0; background:none; color:var(--theme-blue,#3976da); font:inherit; font-size:10px; line-height:1.5; cursor:pointer; white-space:nowrap; }
.notice-confirm:hover { text-decoration:underline; }
.notice-confirm:disabled { opacity:.6; cursor:wait; }
.notice-state { font-size:10px; color:var(--theme-muted,#8090a6); text-align:center; }
.notice-overdue { color:var(--theme-red,#c85f54); }
.notice-empty { margin:0; padding:24px 10px; text-align:center; font-size:12px; color:var(--theme-muted,#8090a6); }
.announcements-dialog { width:min(900px,96vw); }
.announcements-dialog .expanded-data { padding:0 16px 16px; }
.notices-toolbar { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; padding:12px 0 0; font-size:13px; }
.notices-toolbar > div { display:flex; flex-wrap:wrap; gap:8px; }
.notices-help { margin:10px 0; font-size:12px; line-height:1.6; color:var(--theme-muted,#8090a6); }
.notices-list .notice-row { grid-template-columns:22px minmax(0,1fr) 46px 88px; min-height:70px; gap:14px; padding:15px 0; }
.notices-list .notice-marker { width:22px; height:22px; }
.notices-list .notice-marker::before { width:8px; height:8px; }
.notices-list .notice-main h4 { font-size:14px; }
.notices-list .notice-published { font-size:13px; }
.notices-list .notice-action { min-height:36px; border-radius:7px; font-size:14px; padding:6px 10px; }
.notices-list .notice-confirm { font-size:12px; }
.notices-list .notice-actions .btn { font-size:12px; padding:6px 10px; }
.notice-row.notice-assignment { grid-template-columns:16px minmax(0,1fr) 62px; }
.notice-assignment .notice-main small { display:flex; flex-wrap:wrap; gap:2px 6px; margin-top:3px; color:var(--theme-muted,#8090a6); font-size:10px; line-height:1.6; }
.notice-assignment .notice-actions { grid-column:3; min-width:0; }
.notices-list .notice-row.notice-assignment { grid-template-columns:22px minmax(0,1fr) 88px; }
.notices-list .notice-assignment .notice-main small { font-size:12px; }
@media(max-width:600px) {
  .announcements-dialog .expanded-data { padding-inline:12px; }
  .notices-list .notice-row { grid-template-columns:16px minmax(0,1fr) 32px 66px; gap:8px; min-height:62px; padding:12px 0; }
  .notices-list .notice-marker { width:17px; height:17px; }
  .notices-list .notice-main h4 { font-size:12px; }
  .notices-list .notice-published { font-size:10px; }
  .notices-list .notice-action { min-height:32px; padding:5px 7px; font-size:12px; }
  .notices-list .notice-row.notice-assignment { grid-template-columns:16px minmax(0,1fr) 66px; }
}
.announcement-editor { width:min(720px,calc(100vw - 24px)); padding:0; border:1px solid var(--theme-line,#e5ebf5); border-radius:12px; background:var(--theme-surface,#fff); color:var(--theme-text,#263752); }
.announcement-editor::backdrop { background:#15223c66; }
.announcement-editor > header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 18px; border-bottom:1px solid var(--theme-line,#e5ebf5); }
.announcement-editor h2 { margin:0; font-size:17px; }
.notice-editor-form { display:flex; flex-direction:column; gap:14px; padding:18px; }
.notice-editor-form label { display:flex; flex-direction:column; gap:6px; min-width:0; font-size:12px; }
.notice-editor-form input:not([type=checkbox]),.notice-editor-form select { width:100%; min-width:0; padding:9px; border:1px solid var(--theme-line,#e5ebf5); border-radius:7px; background:var(--theme-surface,#fff); color:inherit; font:inherit; }
.notice-form-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.notice-editor-form .notice-check { flex-direction:row; align-items:center; }
.notice-editor-form .notices-help { margin:0; }
.notice-form-error { margin:0; color:var(--theme-red,#c85f54); font-size:12px; }
.notice-editor-form footer { display:flex; gap:8px; justify-content:flex-end; }
.notice-recipient-picker { display:flex; flex-direction:column; gap:8px; min-width:0; }
.recipient-picker-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; font-size:12px; }
.recipient-summary { margin:0; font-size:11px; color:var(--theme-blue,#3976da); }
.recipient-tree { max-height:260px; min-height:48px; overflow:auto; border:1px solid var(--theme-line,#e5ebf5); border-radius:8px; scrollbar-width:thin; }
.recipient-tree-heading,.recipient-node { display:grid; grid-template-columns:minmax(0,1fr) 44px 44px; align-items:center; gap:4px; }
.recipient-tree-heading { padding:0 8px; color:var(--theme-muted,#8090a6); font-size:11px; }
.recipient-tree-heading > span:not(:first-child) { text-align:center; }
.recipient-node { min-height:34px; padding:4px 8px; border-bottom:1px solid var(--theme-line,#e5ebf5); }
.recipient-node:last-child { border-bottom:0; }
.recipient-expand,.recipient-person { display:flex; align-items:center; gap:5px; min-width:0; padding:2px 0 2px calc(var(--recipient-depth)*12px); font-size:12px; text-align:left; }
.recipient-expand { border:0; background:none; color:inherit; cursor:pointer; }
.recipient-expand i { width:10px; flex:none; font-style:normal; color:var(--theme-muted,#8090a6); }
.recipient-expand span,.recipient-person span { min-width:0; overflow-wrap:anywhere; }
.recipient-person { padding-left:calc(var(--recipient-depth)*12px + 8px); }
.recipient-node small { flex:none; font-size:10px; color:var(--theme-muted,#8090a6); }
.recipient-node input[type=checkbox] { width:16px; height:16px; margin:0; justify-self:center; accent-color:var(--theme-blue,#3976da); cursor:pointer; }
.recipient-node input:disabled { cursor:default; }
