/* Quarterly Review Summary — uses the Ari design-system tokens defined in styles.css */

.notice { display: flex; align-items: center; gap: 14px; background: var(--ari-surface); border-radius: var(--ari-radius-card); padding: 16px 20px; margin-bottom: 16px; text-decoration: none; color: inherit; transition: var(--ari-transition-select); }
.notice:hover { background: var(--ari-surface-hover); color: inherit; }
.notice > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.notice strong { color: var(--ari-ink); }
.notice-dot, .dot-new { width: 10px; height: 10px; border-radius: 50%; background: var(--ari-flag-hot-fg); flex: none; display: inline-block; }
.dot-new { width: 8px; height: 8px; vertical-align: middle; margin-left: 4px; }

/* Same look as the section tabs on the person pages (.sec-tabs in styles.css). */
.qtabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 20px; background: var(--ari-surface); border-radius: 12px; overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: 100%; }
.qtabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; min-height: 38px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ari-ink-500); text-decoration: none; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.qtabs a:hover { color: var(--ari-ink); }
.qtabs a.active, .qtabs a.active:hover { background: var(--ari-surface-raised); color: var(--ari-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), inset 0 0 0 1px var(--ari-border); border: none; }

.rs-doc { background: var(--ari-surface-raised); border: 1px solid var(--ari-border); border-radius: var(--ari-radius-card); overflow: hidden; }
.rs-head { display: flex; justify-content: space-between; gap: 16px; background: var(--ari-inverse-bg); color: var(--ari-inverse-fg); padding: 24px; }
.rs-head h2 { color: var(--ari-inverse-fg); margin-bottom: 8px; }
.rs-head .muted { color: var(--ari-inverse-ink-600); margin: 0; }
.rs-head .eyebrow { color: var(--ari-inverse-ink-600); margin-bottom: 8px; }
.rs-logo { color: var(--ari-inverse-fg); }
.rs-logo .logo-mark, .rs-logo .logo-sub { color: var(--ari-inverse-fg); }
.rs-sec { padding: 20px 24px; border-top: 1px solid var(--ari-border); }
.rs-sec:first-of-type { border-top: none; }
.rs-sec h3 { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ari-ink-500); margin-bottom: 12px; }
.rs-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.rs-table th, .rs-table td { padding: 6px 8px 6px 0; text-align: left; }
.rs-table thead th { font-size: 12px; color: var(--ari-ink-500); font-weight: 600; }
.rs-table tbody th { font-weight: 600; color: var(--ari-ink); }
.rs-level { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.rs-founds { list-style: none; margin: 0; padding: 0; }
.rs-founds li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; }
.rs-summary { font-size: 16px; line-height: 1.6; margin: 0; color: var(--ari-ink-800); }
.rs-focus { margin: 0; padding-left: 20px; font-size: 15px; color: var(--ari-ink-800); }
.rs-focus li { margin-bottom: 4px; }

.rs-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.rs-form { padding: 24px; margin: 0; }
.rs-form-h { margin: 28px 0 4px; }
.rs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ari-ink-100); flex-wrap: wrap; }
.rs-row-label { display: flex; flex-direction: column; }
.rs-row-label strong { color: var(--ari-ink); }
.rs-row .seg-opt { padding: 6px 12px; font-size: 13px; }
.seg-levels .seg-opt { min-width: 44px; }
.lvseg-1.selected { background: var(--l1-bg); border-color: var(--l1-bg); color: var(--l1-fg); }
.lvseg-2.selected { background: var(--l2-bg); border-color: var(--l2-bg); color: var(--l2-fg); }
.lvseg-3.selected { background: var(--l3-bg); border-color: var(--l3-bg); color: var(--l3-fg); }
.lvseg-4.selected { background: var(--l4-bg); border-color: var(--l4-bg); color: var(--l4-fg); }
.lvseg-5.selected { background: var(--l5-bg); border-color: var(--l5-bg); color: var(--l5-fg); }
.rs-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--ari-border); }
.save-status-inline { font-size: 13px; color: var(--ari-ink-500); }
.rs-preview { position: sticky; top: 84px; }
.rs-preview-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ari-ink-500); margin-bottom: 8px; }

.ack { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.ack > div { flex: 1; }
.ack p { margin: 4px 0 0; }
.ack-done { background: var(--ari-positive-bg); border-color: var(--ari-positive-border); }
.done-icon.sm { width: 36px; height: 36px; font-size: 18px; margin: 0; flex: none; background: var(--ari-surface-raised); }
.print-row { text-align: right; margin-top: 12px; }

@media (max-width: 960px) {
  .rs-editor { grid-template-columns: 1fr; }
  .rs-preview { position: static; }
  .duo { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .notice { flex-wrap: wrap; }
  .rs-head { padding: 18px 16px; }
  .rs-logo { display: none; }
  .rs-sec { padding: 16px; }
  .rs-form { padding: 16px; }
  .ack { flex-direction: column; align-items: flex-start; }
}
@media print {
  .qtabs, .ack button, .print-row { display: none !important; }
  .rs-head { background: #fff; color: #000; border-bottom: 2px solid #000; }
  .rs-head h2, .rs-logo .logo-mark, .rs-logo .logo-sub { color: #000; }
}

/* ---------- dashboard: updates panel ----------
   All new notices sit in one tinted panel with thin dividers, instead of a stack of separate boxes. */
.notice-stack { background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent-line); border-radius: var(--ari-radius-card); padding: 6px 8px; margin-bottom: 20px; }
.notice-stack-h { display: flex; align-items: center; gap: 2px; margin: 0; padding: 10px 12px 6px; font-size: .7rem; font-weight: 760; text-transform: uppercase; letter-spacing: .08em; color: var(--ari-warning-fg, var(--ari-ink-600)); }
.notice-stack-h .nav-count { font-size: 11px; letter-spacing: 0; }
.notice-stack .notice, .notice-stack .notice:hover { background: transparent; box-shadow: none; margin: 0; padding: 12px; border-radius: var(--ari-radius-md); }
.notice-stack .notice + .notice { border-top: 1px solid var(--accent-line); border-radius: 0; }
.notice-stack a.notice:hover { background: var(--accent-tint-hover); }
.notice-stack .notice > span:nth-child(2) strong { font-size: 15px; }
.notice-stack .notice .btn { min-width: 96px; justify-content: center; }
.notice-stack .notice.notice-warn, .notice-stack .notice.notice-warn:hover { background: var(--ari-negative-bg, #fdecea); box-shadow: inset 0 0 0 1px var(--ari-negative, #c0392b); border-radius: var(--ari-radius-md); border-top-color: transparent; margin: 4px 0; }
.notice-stack .notice-warn .notice-dot { background: var(--ari-negative, #c0392b); box-shadow: none; }
@media (max-width: 760px) {
  .notice-stack { padding: 4px 6px; }
  .notice-stack .notice { display: grid; grid-template-columns: 10px 1fr auto; gap: 6px 12px; align-items: start; padding: 12px 10px; }
  .notice-stack .notice-dot { margin-top: 6px; }
  .notice-stack .notice > span:nth-child(2) strong { font-size: 14px; }
  /* The whole row is the link on phones: a chevron replaces the button. */
  .notice-stack a.notice > .btn { display: none; }
  .notice-stack a.notice::after { content: '›'; font-size: 22px; line-height: 1; color: var(--ari-ink-500); align-self: center; }
  .notice-stack .notice > .notice-btns { grid-column: 2 / -1; justify-self: start; margin-left: 0; }
}
