/* css/workflow.css — User Workflow: Users / Owner / System tabs (2026-10-22).
   Project Log card styles stay injected by js/workflow.js. */
.wf-hidden { display: none !important; }
.wf-loading, .wf-empty { padding: 28px; text-align: center; color: #94a3b8; font-size: 13px; }
.wf-err { padding: 18px; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; font-size: 13px; }
.wf-muted { color: #94a3b8; }
.wf-sub { font-size: 11px; color: #64748b; margin-top: 2px; }
.wf-nowrap { white-space: nowrap; }
.wf-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wf-btn { padding: 7px 14px; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: 13px; background: #fff; color: #475569; cursor: pointer; font-weight: 600; }
.wf-btn:hover { border-color: #94a3b8; color: #1e293b; }

/* range bar */
.wf-range-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.wf-presets { display: flex; gap: 4px; background: #f1f5f9; border-radius: 10px; padding: 3px; }
.wf-preset { border: none; background: none; padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: #64748b; cursor: pointer; }
.wf-preset.active { background: #fff; color: #0f172a; box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.wf-custom { display: flex; align-items: center; gap: 6px; }
.wf-custom input[type="date"] { width: auto; padding: 6px 8px; font-size: 12.5px; }
.wf-r-label { margin-left: auto; font-size: 13px; font-weight: 700; color: #334155; }

/* KPI cards */
.wf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.wf-kpis-sm .wf-kpi { padding: 10px 12px; }
.wf-kpi { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; }
.wf-kpi-v { font-size: 22px; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
.wf-kpi-of { font-size: 14px; color: #94a3b8; font-weight: 700; }
.wf-kpi-l { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .4px; margin-top: 2px; }
.wf-kpi-s { font-size: 11px; color: #94a3b8; margin-top: 2px; }

.wf-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.wf-card-flush { padding: 0; overflow-x: auto; }
.wf-card-h { font-size: 12px; font-weight: 800; color: #334155; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 10px; }
.wf-note, .wf-foot { font-size: 12px; color: #64748b; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; }
.wf-foot { margin-top: 6px; }

/* online strip */
.wf-online-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.wf-strip-h { font-size: 12px; font-weight: 800; color: #166534; text-transform: uppercase; letter-spacing: .4px; display: inline-flex; align-items: center; gap: 6px; }
.wf-online-chip { display: inline-flex; align-items: center; gap: 6px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 20px; padding: 4px 12px; font-size: 12.5px; }
.wf-online-chip .wf-sub { margin: 0; }
.wf-on-dot, .wf-off-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.wf-on-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.wf-off-dot { background: #cbd5e1; }
.wf-on { color: #15803d; }

/* bars (width in 5% steps — no inline styles) */
.wf-bars { display: flex; flex-direction: column; gap: 4px; }
.wf-bar-row { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 10px; font-size: 12px; }
.wf-bar-lbl { color: #475569; white-space: nowrap; }
.wf-bar-track { height: 12px; background: #f1f5f9; border-radius: 6px; overflow: hidden; }
.wf-bar { display: block; height: 100%; background: #3b82f6; border-radius: 6px; }
.wf-bar-val { text-align: right; color: #0f172a; font-weight: 700; font-variant-numeric: tabular-nums; }
.wf-w-0 { width: 0; } .wf-w-1 { width: 5%; } .wf-w-2 { width: 10%; } .wf-w-3 { width: 15%; } .wf-w-4 { width: 20%; }
.wf-w-5 { width: 25%; } .wf-w-6 { width: 30%; } .wf-w-7 { width: 35%; } .wf-w-8 { width: 40%; } .wf-w-9 { width: 45%; }
.wf-w-10 { width: 50%; } .wf-w-11 { width: 55%; } .wf-w-12 { width: 60%; } .wf-w-13 { width: 65%; } .wf-w-14 { width: 70%; }
.wf-w-15 { width: 75%; } .wf-w-16 { width: 80%; } .wf-w-17 { width: 85%; } .wf-w-18 { width: 90%; } .wf-w-19 { width: 95%; }
.wf-w-20 { width: 100%; }

/* people table */
.wf-ptbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.wf-ptbl th { text-align: left; font-size: 11px; font-weight: 800; color: #64748b; text-transform: uppercase; letter-spacing: .4px; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; background: #f8fafc; white-space: nowrap; }
.wf-ptbl td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.wf-prow { cursor: pointer; }
.wf-prow:hover td { background: #f8fafc; }
.wf-prow.wf-sel td { background: #eff6ff; }
.wf-prow.wf-idle td { color: #94a3b8; }
.wf-pname { font-weight: 700; color: #0f172a; }
.wf-prow.wf-idle .wf-pname { color: #64748b; }
.wf-pmeta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.wf-role, .wf-dlr { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
.wf-role { background: #f1f5f9; color: #475569; }
.wf-role-financier { background: #dbeafe; color: #1d4ed8; }
.wf-role-data_entry { background: #fef3c7; color: #92400e; }
.wf-role-cc_rep { background: #ede9fe; color: #6d28d9; }
.wf-role-admin { background: #fee2e2; color: #b91c1c; }
.wf-dlr { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.wf-chip { display: inline-block; font-size: 11.5px; background: #f1f5f9; color: #334155; border-radius: 6px; padding: 2px 7px; margin: 1px 3px 1px 0; white-space: nowrap; }
.wf-chip b { color: #0f172a; }
.wf-chip-more { color: #64748b; }
.wf-chips-row { display: flex; flex-wrap: wrap; gap: 4px; }
.wf-arrow { color: #cbd5e1; margin: 0 1px; }
.wf-act { font-weight: 700; color: #1e293b; }
.wf-detail { color: #475569; }

/* person panel + day blocks */
.wf-person-h { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.wf-person-name { font-size: 18px; font-weight: 800; color: #0f172a; margin-right: 6px; }
.wf-x { border: none; background: #f1f5f9; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; color: #475569; }
.wf-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-bottom: 14px; font-size: 12.5px; }
.wf-fact-l { display: block; font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px; }
.wf-day { border-top: 1px solid #e2e8f0; padding: 12px 0 6px; }
.wf-day:first-child { border-top: none; padding-top: 0; }
.wf-day-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.wf-day-name { font-weight: 800; color: #0f172a; font-size: 14px; }
.wf-day-sum { font-size: 12.5px; color: #475569; }
.wf-stbl { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-bottom: 8px; }
.wf-stbl th { text-align: left; font-size: 10.5px; color: #94a3b8; font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-bottom: 1px solid #f1f5f9; }
.wf-stbl td { padding: 6px 8px; border-bottom: 1px solid #f8fafc; vertical-align: top; }
.wf-stbl tr.wf-live td { background: #f0fdf4; }
.wf-pages { line-height: 1.9; }
.wf-work { background: #f8fafc; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.wf-work-h { font-size: 11px; font-weight: 800; color: #64748b; text-transform: uppercase; margin-bottom: 4px; }
.wf-work-row { display: grid; grid-template-columns: 70px 130px 1fr; gap: 8px; font-size: 12.5px; padding: 2px 0; }
.wf-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #475569; margin-bottom: 12px; }
.wf-check input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; width: 16px; height: 16px; padding: 0; margin: 0; accent-color: #3b82f6; }

@media (max-width: 760px) {
  .wf-facts { grid-template-columns: 1fr; }
  .wf-r-label { margin-left: 0; }
  .wf-work-row { grid-template-columns: 60px 1fr; }
}
