/* 專案週報（v1.5）：顧問手機版的週報頁 #/manage/:id/weekly（public/app/pages/manage-weekly.js）
   客戶看到的內容（.wr-*）的樣式在 /client/weekly-doc.css，載入元件時自動加進網頁
   顏色一律用 /assets/base.css 的變數 */

/* ---------- 專案與週別 ---------- */
.wrp-head { display: flex; flex-direction: column; gap: 2px; }
.wrp-pick { display: flex; align-items: center; gap: 4px; margin: 12px -6px 0; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); }
.wrp-pick .icon-btn { flex: none; }
.wrp-pick .icon-btn:disabled { opacity: .35; }
.wrp-range { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.4; }
.wrp-range b { font-size: 16px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wrp-range span { font-size: 12.5px; color: var(--muted); min-height: 1.4em; }
.wrp-quick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wrp-quick .btn { min-height: 40px; min-width: 64px; }
.wrp-st { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.7; white-space: nowrap; }
.wrp-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.wrp-st-shared { background: var(--green-bg); color: var(--green); }
.wrp-st-draft { background: var(--amber-bg); color: var(--amber); }
.wrp-st-none { background: var(--gray-bg); color: var(--gray); }

/* ---------- 已分享 ---------- */
.wrp-shared { display: flex; flex-direction: column; gap: 10px; border-color: color-mix(in srgb, var(--green) 30%, var(--line)); }
.wrp-shared-h { display: flex; align-items: center; gap: 12px; }
.wrp-shared-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--green-bg); color: var(--green); }
.wrp-shared-h > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; }
.wrp-shared-h b { font-size: 15.5px; color: var(--ink); }
.wrp-shared-h small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.wrp-shared .notice { margin: 0; font-size: 13.5px; }
.wrp-shared .acts { margin-top: 0; }
.wrp-shared .acts .btn { min-height: 42px; }

/* ---------- 本週重點 ---------- */
.wrp-edit { display: flex; flex-direction: column; gap: 8px; }
.wrp-lab { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.wrp-lab span { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.wrp-edit textarea { min-height: 128px; font-size: 15.5px; line-height: 1.75; }
.wrp-count { font-size: 12.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.wrp-count.wrp-full { color: var(--red); }
.wrp-edit .notice { font-size: 13.5px; }
.wrp-edit .acts { margin-top: 2px; }
.wrp-edit .acts .btn { min-height: 46px; }
.wrp-print { display: inline-flex; align-items: center; gap: 5px; align-self: center; min-height: 40px; padding: 0 8px; font-size: 13.5px; color: var(--brand); }

/* ---------- 這個專案的週報 ---------- */
.wrp-hist a.wrp-on { background: var(--brand-50); }
.wrp-hist a.wrp-on b { color: var(--brand); }
.wrp-hist small { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* 客戶看到的內容：在手機上和其他卡片一樣的圓角與陰影 */
.m-main > .wr { border-radius: var(--radius-lg); }
