:root { --pp-surface:#fff; --pp-border:#e4e4e7; --pp-text:#18181b; --pp-muted:#71717a; --pp-soft:#f8fafc; }
.dark { --pp-surface:#18181b; --pp-border:#2f2f33; --pp-text:#fafafa; --pp-muted:#a1a1aa; --pp-soft:#111113; }
.process-panel { display:flex; width:100%; flex-direction:column; gap:22px; color:var(--pp-text); }
.process-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; padding:28px; border:1px solid var(--pp-border); border-radius:20px; background:var(--pp-surface); box-shadow:0 1px 3px rgba(0,0,0,.06); }
.process-hero-main { min-width:0; }
.process-kicker { display:flex; flex-wrap:wrap; align-items:center; gap:10px; color:var(--pp-muted); font-size:12px; font-weight:650; }
.process-status { display:inline-flex; padding:5px 9px; border-radius:999px; background:#e0f2fe; color:#0369a1; }
.dark .process-status { background:#082f49; color:#7dd3fc; }
.process-hero h1 { margin:12px 0 0; overflow:hidden; font-size:clamp(23px,3vw,34px); line-height:1.15; font-weight:750; text-overflow:ellipsis; text-wrap:balance; }
.process-hero p { margin:9px 0 0; color:var(--pp-muted); font-size:14px; line-height:1.5; text-wrap:pretty; }
.process-hero-actions { display:flex; flex-shrink:0; gap:10px; }
.process-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.process-metric { min-height:104px; padding:20px; border:1px solid var(--pp-border); border-top:3px solid #64748b; border-radius:16px; background:var(--pp-surface); box-shadow:0 1px 3px rgba(0,0,0,.05); }
.process-metric span { display:block; color:var(--pp-muted); font-size:13px; font-weight:600; }
.process-metric strong { display:block; margin-top:10px; overflow:hidden; font-size:25px; line-height:1.1; font-weight:750; font-variant-numeric:tabular-nums; text-overflow:ellipsis; }
.process-metric[data-tone="blue"] { border-top-color:#3b82f6; }.process-metric[data-tone="rose"] { border-top-color:#e11d48; }.process-metric[data-tone="green"] { border-top-color:#10b981; }.process-metric[data-tone="amber"] { border-top-color:#f59e0b; }
.next-action { display:flex; align-items:center; gap:16px; padding:18px 20px; border:1px solid #bfdbfe; border-radius:16px; background:#eff6ff; }
.dark .next-action { border-color:#1e3a5f; background:#0c1d31; }
.next-action.is-overdue { border-color:#fecdd3; background:#fff1f2; }.dark .next-action.is-overdue { border-color:#881337; background:#310812; }
.next-action-icon { display:flex; width:38px; height:38px; flex:0 0 38px; align-items:center; justify-content:center; border-radius:50%; background:#2563eb; color:white; font-size:18px; font-weight:800; }
.is-overdue .next-action-icon { background:#e11d48; }
.next-action-copy { min-width:0; flex:1; }.next-action-copy > span { color:#2563eb; font-size:10px; font-weight:750; }.is-overdue .next-action-copy > span { color:#be123c; }
.next-action h2 { margin:3px 0 0; overflow:hidden; font-size:15px; font-weight:700; text-overflow:ellipsis; }.next-action p { margin:2px 0 0; color:var(--pp-muted); font-size:12px; }
.process-layout { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(290px,.8fr); gap:20px; align-items:start; }
.process-main,.process-sidebar { display:flex; min-width:0; flex-direction:column; gap:20px; }
.process-card { overflow:hidden; border:1px solid var(--pp-border); border-radius:18px; background:var(--pp-surface); box-shadow:0 1px 3px rgba(0,0,0,.05); }
.process-card-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:18px 20px; border-bottom:1px solid var(--pp-border); }
.process-card-header h2 { margin:0; font-size:16px; font-weight:720; }.process-card-header p { margin:4px 0 0; color:var(--pp-muted); font-size:12px; line-height:1.4; }
.process-count { display:inline-flex; min-width:28px; height:28px; align-items:center; justify-content:center; padding:0 8px; border-radius:999px; background:#f4f4f5; color:#52525b; font-size:12px; font-weight:700; font-variant-numeric:tabular-nums; }.dark .process-count { background:#27272a; color:#d4d4d8; }
.process-items > * + * { border-top:1px solid var(--pp-border); }
.process-item { display:flex; align-items:center; gap:14px; padding:16px 20px; border-left:3px solid transparent; }.process-item.is-overdue { border-left-color:#e11d48; }
.process-date { display:flex; width:48px; flex:0 0 48px; flex-direction:column; align-items:center; padding:7px 4px; border-radius:10px; background:var(--pp-soft); }.process-date strong { font-size:18px; line-height:1; font-variant-numeric:tabular-nums; }.process-date span { margin-top:3px; color:var(--pp-muted); font-size:10px; text-transform:uppercase; }
.process-item-copy { min-width:0; flex:1; }.process-item-copy h3 { margin:0; overflow:hidden; font-size:14px; font-weight:680; text-overflow:ellipsis; white-space:nowrap; }.process-item-copy p { margin:4px 0 0; color:var(--pp-muted); font-size:12px; }
.task-check { width:18px; height:18px; flex:0 0 18px; border:2px solid #cbd5e1; border-radius:50%; }.dark .task-check { border-color:#52525b; }
.process-empty { padding:34px 20px; text-align:center; }.process-empty p { margin:0; color:var(--pp-muted); font-size:13px; }.process-empty a { display:inline-block; margin-top:8px; color:#2563eb; font-size:13px; font-weight:650; text-decoration:none; }
.process-documents > * + * { border-top:1px solid var(--pp-border); }
.process-document { display:flex; align-items:center; gap:13px; padding:15px 20px; }
.process-document-icon { display:flex; width:42px; height:42px; flex:0 0 42px; align-items:center; justify-content:center; border-radius:10px; background:#eff6ff; color:#2563eb; font-size:9px; font-weight:800; }
.dark .process-document-icon { background:#172554; color:#93c5fd; }
.process-document > div { min-width:0; flex:1; }.process-document h3 { margin:0; overflow:hidden; font-size:13px; font-weight:680; text-overflow:ellipsis; white-space:nowrap; }.process-document p { margin:4px 0 0; color:var(--pp-muted); font-size:11px; }
.process-document-actions { display:flex; gap:8px; }
.process-card-link { color:#2563eb; font-size:12px; font-weight:650; text-decoration:none; }
.timeline { padding:4px 20px 18px; }.timeline-item { position:relative; display:grid; grid-template-columns:16px 1fr; gap:12px; padding-top:18px; }.timeline-item::before { position:absolute; top:0; bottom:-18px; left:7px; width:1px; background:var(--pp-border); content:""; }.timeline-item:last-child::before { bottom:auto; height:25px; }
.timeline-dot { position:relative; z-index:1; width:9px; height:9px; margin:5px 0 0 3px; border:2px solid var(--pp-surface); border-radius:50%; background:#64748b; box-shadow:0 0 0 1px #94a3b8; }.timeline-item[data-type="agenda"] .timeline-dot { background:#3b82f6; }.timeline-item[data-type="tarefa"] .timeline-dot { background:#f59e0b; }
.timeline time { color:var(--pp-muted); font-size:10px; font-variant-numeric:tabular-nums; }.timeline h3 { margin:2px 0 0; font-size:13px; font-weight:680; }.timeline p { margin:3px 0 0; color:var(--pp-muted); font-size:12px; }
.process-details dl { margin:0; padding:4px 20px 16px; }.process-details dl > div { display:grid; grid-template-columns:90px 1fr; gap:12px; padding:12px 0; border-bottom:1px solid var(--pp-border); }.process-details dl > div:last-child { border-bottom:0; }.process-details dt { color:var(--pp-muted); font-size:12px; }.process-details dd { margin:0; overflow-wrap:anywhere; font-size:12px; font-weight:650; text-align:right; }
.finance-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; background:var(--pp-soft); }.finance-summary span { color:var(--pp-muted); font-size:12px; }.finance-summary strong { font-size:15px; font-variant-numeric:tabular-nums; }
.finance-installments { padding:6px 20px 14px; }.finance-installments > div { display:grid; grid-template-columns:1fr auto; gap:4px 12px; padding:10px 0; border-bottom:1px solid var(--pp-border); font-size:12px; }.finance-installments > div:last-child { border-bottom:0; }.finance-installments strong { font-variant-numeric:tabular-nums; }.finance-installments small { grid-column:1/-1; color:#b45309; }.finance-installments small[data-status="paid"] { color:#047857; }.finance-installments small[data-status="overdue"] { color:#be123c; }.finance-empty { margin:0; padding:18px 0; color:var(--pp-muted); font-size:12px; text-align:center; }
@media(max-width:1050px){.process-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.process-layout{grid-template-columns:1fr}.process-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
@media(max-width:640px){.process-panel{gap:15px}.process-hero{align-items:stretch;flex-direction:column;padding:20px;border-radius:16px}.process-hero-actions{width:100%;flex-direction:column}.process-hero-actions>*{width:100%}.process-metrics{gap:10px}.process-metric{min-height:90px;padding:14px}.process-metric strong{font-size:20px}.next-action{align-items:flex-start;flex-wrap:wrap}.next-action-copy{min-width:calc(100% - 58px)}.next-action> :last-child{width:100%}.process-sidebar{display:flex}.process-item{align-items:flex-start;flex-wrap:wrap;padding:15px}.process-item-copy{min-width:calc(100% - 70px)}.process-item> :last-child{width:100%}.process-details dl>div{grid-template-columns:1fr}.process-details dd{text-align:left}}
