/* u109-reminders-ui — Growth → Reminders (Update 109). .rm-* classes and #view-reminders only.
   Builds on styles.css, components.css and debtors-v2.css (.dv-*). Cobalt for anything clickable,
   orange only for attention, hairlines for depth (DESIGN-SYSTEM.md). Remove the <link> to drop it. */

/* Page header and pill tabs: the U95 card look Debtors uses (look.css § 3) */
#view-reminders { padding: 0 8px 40px; }
#view-reminders > .topbar {
  position: static; background: transparent; border: 0; margin: 0 0 18px; padding: 28px 0 0; min-height: 0; height: auto;
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 6px;
}
#view-reminders > .topbar::before { content: "Growth / Reminders"; order: 0; flex: 1 1 100%; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
#view-reminders > .topbar > * { order: 2; }
#view-reminders > .topbar > .dv-title { order: 1; display: flex; align-items: center; gap: 10px; flex: 1 1 auto; flex-wrap: wrap; }
#view-reminders > .topbar h1 { font-family: var(--font-display, inherit); font-size: 32px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: var(--text); margin: 0; }
#view-reminders > .topbar .counts { font-size: 13px; color: var(--ink-3); white-space: normal; flex: 1 1 100%; }
#view-reminders > .topbar > .topbar-right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
#view-reminders .seg-control { background: transparent; border: 0; border-radius: 0; padding: 0; gap: 8px; display: flex; flex-wrap: wrap; box-shadow: none; }
#view-reminders .seg-control > button { height: 34px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 500; box-shadow: none; cursor: pointer; }
#view-reminders .seg-control > button.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); font-weight: 600; }
#view-reminders .seg-control > button b { font-weight: 600; margin-left: 4px; font-variant-numeric: tabular-nums; }
#view-reminders .on-tabs { overflow-x: auto; flex-wrap: nowrap; display: flex; }
#view-reminders .on-tabs button { white-space: nowrap; }
#view-reminders .dv-card { margin-bottom: 14px; }
#view-reminders a[data-rmsetup], #view-reminders a[data-wctopen] { cursor: pointer; color: var(--accent-ink); }

/* banner, loading, toast */
.rm-banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); border-radius: var(--r); font-size: 13px; flex-wrap: wrap; }
.rm-banner > span { flex: 1 1 260px; }
.rm-banner.is-attn { border-color: var(--amber); background: var(--amber-soft); color: var(--text); }
.rm-loading { padding: 30px; color: var(--ink-3); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.rm-loading .ti { animation: rm-spin 1s linear infinite; }
@keyframes rm-spin { to { transform: rotate(360deg); } }
.rm-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--text); color: var(--surface); padding: 10px 16px; border-radius: var(--r); font-size: 13px; box-shadow: var(--shadow-pop); z-index: 1200; transition: opacity .18s, transform .18s; max-width: calc(100vw - 32px); }
.rm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.rm-toast.is-bad { background: var(--red); }

/* modal (debtors overlay look) */
.rm-overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, .38); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 1100; overflow: auto; }
.rm-modal { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-pop); width: 100%; max-width: 480px; display: flex; flex-direction: column; }
.rm-modal.is-wide { max-width: 860px; }
.rm-modal textarea.dv-in { height: auto; padding: 8px; line-height: 1.45; resize: vertical; }
.rm-pre { white-space: pre-wrap; font-family: var(--font-body); font-size: 13px; line-height: 1.5; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; margin: 0; max-height: 50vh; overflow: auto; }

/* layout */
.rm-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.rm-grid2.is-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rm-grid2 > *, .rm-split > * { min-width: 0; }
.rm-grid2 > .dv-card { margin-top: 0; }
.rm-profiles td:first-child, .rm-profiles th:first-child { min-width: 200px; }
.rm-stack { display: flex; flex-direction: column; gap: 10px; }
.rm-row { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.rm-row > .dv-field { flex: 1 1 160px; }
.rm-small { font-size: 13px; }
.rm-p { margin: 0; font-size: 13px; color: var(--text-2); }
.rm-mt { margin-top: 14px; }
.rm-nomb { margin-bottom: 0; }
.rm-pad { padding: 8px 14px 12px; }
.rm-wide { grid-column: 1 / -1; }
.rm-time { white-space: nowrap; color: var(--text-2); width: 72px; }
.rm-segrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rm-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.rm-inline .dv-in { width: 150px; height: 32px; }
.rm-click { cursor: pointer; }
.rm-click:hover td { background: var(--bg); }
tr.is-dim td { opacity: .6; }
.rm-sub-h { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); margin: 12px 0 2px; }
#view-reminders .dv-field textarea.dv-in { height: auto; padding: 8px; line-height: 1.45; resize: vertical; }

/* progress bar */
.rm-bar { display: block; height: 6px; border-radius: var(--r-pill); background: var(--sunken); overflow: hidden; margin-top: 4px; min-width: 60px; }
.rm-bar > span { display: block; height: 100%; background: var(--accent); border-radius: var(--r-pill); }
.rm-bar.is-good > span { background: var(--green); }
.rm-prog { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.rm-prog-i { display: inline-block; margin-right: 10px; }

/* open cycles */
.rm-cycs { display: flex; flex-direction: column; gap: 12px; }
.rm-cyc { border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; }
.rm-cyc:hover { border-color: var(--border-2); }
.rm-cyc-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.rm-cyc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; }
.rm-cyc-s { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rm-cyc-v { font-family: var(--font-display); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }

/* catch-up, calls and small rows */
.rm-catch { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.rm-catch:last-child { border-bottom: 0; padding-bottom: 0; }
.rm-catch > div:first-child { min-width: 0; }

/* approval queue */
.rm-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.rm-batches { display: flex; flex-direction: column; gap: 8px; }
.rm-batch { text-align: left; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); cursor: pointer; font-family: var(--font-body); font-size: 12px; color: var(--text-2); width: 100%; }
.rm-batch:hover { border-color: var(--border-2); }
.rm-batch.is-on { border-color: var(--accent-line); background: var(--accent-soft); }
.rm-batch-t { font-size: 14px; font-weight: 600; color: var(--text); }
.rm-batch-m { color: var(--text-2); }
.rm-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 20px; font-size: 13px; margin-bottom: 14px; }
.rm-facts > div { display: block; line-height: 1.6; min-width: 0; overflow-wrap: anywhere; }
.rm-facts .dv-k-l { display: block; }
.rm-cc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); font-size: 13px; margin-bottom: 14px; }
.rm-cc .dv-k-l { flex-basis: 100%; }
.rm-cc .dv-faint { flex-basis: 100%; }
.rm-pager { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 10px; flex-wrap: wrap; }
.rm-prev { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.rm-prev .dv-wa { margin-top: 0; }
.rm-prev .dv-mail-h { overflow-wrap: anywhere; }
.rm-mailframe { padding: 12px 14px; font-size: 13px; line-height: 1.55; max-height: 520px; overflow: auto; }
.rm-mailframe img { max-width: 100%; height: auto; }
.rm-mailframe table { max-width: 100%; }
.dv-bubble.is-dim { opacity: .5; margin-top: 8px; }
.rm-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* cycle board ticks */
.rm-board td { vertical-align: top; }
.rm-tick { white-space: nowrap; cursor: pointer; }
.rm-tick.is-na { cursor: default; }
.rm-tick:hover:not(.is-na) { background: var(--accent-soft); }
.rm-tick-m { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.rm-tick-s { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; white-space: normal; }
.rm-tick.is-done .rm-tick-m { color: var(--green); }
.rm-tick.is-wait .rm-tick-m, .rm-tick.is-na .rm-tick-m { color: var(--ink-4); }
.rm-tick.is-attn .rm-tick-m, .rm-tick.is-paused .rm-tick-m { color: var(--amber); }
.dv-selbar.hidden { display: none; }

/* calendar */
.rm-days { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.rm-day { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }
.rm-day.is-today { border-color: var(--accent-line); }
.rm-day-h { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 14px; flex-wrap: wrap; }
.rm-day-h + table { border-top: 1px solid var(--border); }
.rm-day.is-today .rm-day-h { background: var(--accent-soft); }
.rm-day table { table-layout: fixed; width: 100%; }
.rm-day .rm-time { width: 90px; }
.rm-c-p { width: 170px; }
.rm-c-r { width: 150px; }
.rm-w-st { width: 240px; }

/* set-up */
.rm-need { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding: 3px 0; }
.rm-role { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: var(--r-pill); border: 1px solid var(--border-2); font-size: 12px; color: var(--ink-3); background: var(--surface); min-width: 78px; }
.rm-role.is-on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.rm-role .ti { font-size: 12px; }
.rm-contacts td.is-top, .rm-bdays td { vertical-align: top; }
.rm-sel { height: 30px; font-size: 13px; min-width: 130px; width: auto; }
.rm-sel.is-s { min-width: 0; height: 26px; font-size: 12px; margin-top: 4px; }
.rm-in-s { width: 110px; }
.rm-in-m { width: 190px; }
.rm-century { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 4px; font-size: 12px; }
.rm-picks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.rm-sw { cursor: pointer; }
.rm-tpl { border: 1px solid var(--border); border-radius: var(--r); padding: 10px 12px; }
.rm-tpl summary { cursor: pointer; font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; }
.rm-tpl[open] summary { margin-bottom: 10px; }
.rm-tpl .dv-field + .dv-field { margin-top: 8px; }

/* phone width: nothing scrolls sideways except wide tables inside their card */
@media (max-width: 900px) {
  #view-reminders > .topbar { padding-top: 16px; }
  #view-reminders > .topbar h1 { font-size: 26px; }
  #view-reminders > .topbar > .topbar-right { margin-left: 0; }
  .rm-time, .rm-w-st, .rm-c-p, .rm-c-r { width: auto; }
  .rm-day table { table-layout: auto; }
  .rm-day { overflow-x: auto; }
  .rm-grid2, .rm-grid2.is-even, .rm-split, .rm-prev, .rm-facts { grid-template-columns: minmax(0, 1fr); }
  .rm-cyc-steps { grid-template-columns: 1fr 1fr; }
  #view-reminders .dv-card { overflow-x: auto; }
  #view-reminders .dv-score { flex-wrap: wrap; }
  #view-reminders .dv-score .dv-k { flex: 1 1 45%; border-bottom: 1px solid var(--border); }
  .dv-toolbar input[type="search"] { width: 100%; }
  .rm-inline .dv-in { width: 130px; }
  .rm-overlay { padding: 12px 8px; }
}

/* u112-client-details: Set-up → Client details (the Debtors billing-details look, .dv-* from debtors-v2.css) */
.rm-det col.rm-dw-client { width: 26%; }
.rm-det col.rm-dw-group { width: 128px; }
.rm-det col.rm-dw-name { width: 15%; }
.rm-det col.rm-dw-email { width: 22%; }
.rm-det col.rm-dw-wa { width: 14%; }
.rm-det col.rm-dw-act { width: 132px; }
.rm-det td.is-top { vertical-align: top; }
.rm-det .dv-in.is-empty::placeholder { color: var(--ink-4); }
.rm-det .btn-link { padding: 0; border: 0; background: none; color: var(--accent-ink); cursor: pointer; font-size: inherit; }
.rm-groups { align-items: center; margin-bottom: 10px; }
.rm-groups .dv-k-l { margin-right: 4px; }
.rm-dx { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 6px 0; }
.rm-dx .dv-k-l { display: block; margin-bottom: 4px; }
.rm-ul { margin: 0 0 10px; padding-left: 18px; font-size: 13px; line-height: 1.6; }
@media (max-width: 900px) {
  .rm-det { table-layout: auto; min-width: 860px; }
  .rm-dx { grid-template-columns: minmax(0, 1fr); }
}
#view-reminders .dv-chips { flex-wrap: wrap; }
#view-reminders .dv-note { flex-wrap: wrap; }
@media (max-width: 900px) { #view-reminders .dv-toolbar { flex-wrap: wrap; } #view-reminders .dv-toolbar input[type="search"] { width: 100%; } }
@media (max-width: 900px) { #view-reminders .dv-note .dv-note-t { flex: 1 1 100%; } }

.rm-det .dv-faint { overflow-wrap: anywhere; }
.rm-letter { font-size: 12.5px; color: var(--text-2); }
.rm-letter .ti { font-size: 13px; }

/* u113-1-rem-signature */
.rm-sigprev { border: 1px dashed var(--border, #dde3ea); border-radius: 8px; padding: 8px; background: #fff; overflow: hidden; }
.rm-file { cursor: pointer; align-self: flex-end; }

/* u113-5-email-format: the B / I / U bar above an email box */
.rm-fmt { display: flex; align-items: center; gap: 4px; margin: 2px 0 4px; flex-wrap: wrap; }
.rm-fmt button { min-width: 30px; height: 28px; border: 1px solid var(--border, #dde3ea); background: #fff; border-radius: 6px; cursor: pointer; font-size: 13px; }
.rm-fmt button:hover { background: var(--accent-soft, #eef4ff); }
.rm-fmt .dv-faint { margin-left: 6px; font-size: 11.5px; }

/* u113-7-greeting-check */
.rm-gbad td { background: #FDF3E7; }
.rm-gin { width: 140px; }
.rm-gline { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.rm-gline .dv-in { margin: 0; }
