.portal-shell{max-width:1180px;margin:0 auto;padding:0 32px 48px}.portal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:27px 0;border-bottom:1px solid var(--line)}.portal-brand{width:178px}.portal-header .top-actions{flex-wrap:wrap}.portal-nav{display:flex;gap:7px;overflow-x:auto;padding:22px 0 14px;scrollbar-width:thin}.portal-nav button{white-space:nowrap;padding:10px 17px;border:1px solid var(--line);border-radius:24px;background:var(--white);color:var(--muted);font-size:12px;min-height:44px}.portal-nav button.active{background:var(--olive);border-color:var(--olive);color:white}.portal-shell main{padding:23px 0;max-width:none;margin:0;min-height:60vh}.portal-greeting{margin-bottom:30px}.portal-greeting h1{font-size:clamp(32px,4vw,52px)}.portal-greeting p{max-width:620px;color:var(--muted);margin-top:14px;line-height:1.8}.portal-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:28px}.portal-metric{border:1px solid var(--line);padding:23px;background:var(--white);border-radius:9px;text-align:left}.portal-metric b{display:block;font-family:var(--serif);font-weight:400;font-size:37px;line-height:1.2}.portal-metric span{font-size:12px;color:var(--muted)}.portal-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:24px;align-items:start}.portal-panel{padding:25px;background:var(--white);border:1px solid var(--line);border-radius:9px;margin-bottom:20px;min-width:0}.portal-panel h2{font-family:var(--serif);font-weight:400;font-size:28px;margin:0 0 15px;line-height:1.25}.portal-panel h3{font-size:16px;font-weight:600;margin:0 0 8px}.portal-muted{font-size:12px;color:var(--muted);line-height:1.8}.portal-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9;margin:12px 0}.portal-case-picker{max-width:480px;margin:0 0 24px}.portal-case-picker select{width:100%}.timeline-entry{border-left:1px solid var(--line);padding:0 0 25px 24px;margin-left:6px;position:relative}.timeline-entry:last-child{padding-bottom:0}.timeline-entry::before{content:"";position:absolute;width:9px;height:9px;border-radius:50%;background:var(--olive);left:-5px;top:5px}.timeline-entry h3{margin:9px 0;font-size:18px;font-weight:500}.portal-file{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:17px 0;border-top:1px solid var(--line)}.portal-file>div{min-width:0}.portal-file strong{display:block;overflow-wrap:anywhere;font-weight:500}.portal-file a{flex:none}.portal-files{margin-top:12px}.portal-form{display:grid;gap:15px}.portal-form .field{margin:0}.portal-form .button{justify-self:start}.portal-auth-copy{max-width:450px}.portal-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6;margin:15px 0}.portal-check input{width:18px;height:18px;flex:none;accent-color:var(--olive);margin-top:3px}.portal-message{max-width:85%;padding:17px 20px;border:1px solid var(--line);border-radius:9px;background:var(--paper);margin:15px 0}.portal-message.mine{margin-left:auto;background:var(--cream)}.portal-message .portal-body{margin:7px 0}.portal-conversation{max-height:520px;overflow-y:auto;padding-right:5px;scrollbar-width:thin}.portal-notification{display:flex;gap:15px;padding:18px 0;border-bottom:1px solid var(--line);align-items:center;justify-content:space-between}.portal-notification.unread strong::before{content:"";display:inline-block;width:7px;height:7px;background:var(--olive);border-radius:50%;margin-right:8px}.portal-notification strong{display:block;font-size:14px;font-weight:500}.portal-quiet{padding:28px 0;font-size:14px;color:var(--muted);line-height:1.8}.portal-footer{border-top:1px solid var(--line);padding-top:24px;display:flex;gap:20px;justify-content:space-between;color:var(--muted);font-size:11px;line-height:1.8}.portal-footer a{text-decoration:underline}.portal-actions{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.portal-chip{display:inline-block;border:1px solid var(--line);border-radius:20px;padding:4px 10px;font-size:10px;color:var(--olive)}.portal-auth-top{position:absolute;top:22px;right:25px}.portal-error{background:#f8eae4;padding:15px;border-radius:6px;color:#823a27;font-size:13px;margin:15px 0}.portal-help{max-width:540px;margin-top:18px}.access-link{word-break:break-all;font-size:12px;border:1px solid var(--line);padding:15px;background:var(--cream);border-radius:6px}.mail-job{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px 0;border-top:1px solid var(--line)}.mail-job p{overflow-wrap:anywhere}.member-checks{display:grid;grid-template-columns:repeat(2,1fr);gap:5px 22px}.admin-cols{display:grid;grid-template-columns:1fr 1fr;gap:24px}.client-line{display:flex;justify-content:space-between;gap:15px;padding:20px 0;border-top:1px solid var(--line)}.client-line p{overflow-wrap:anywhere}.portal-admin-title{font-family:var(--serif);font-size:clamp(30px,4vw,48px);font-weight:400;line-height:1.15;margin:15px 0}.portal-admin-head{margin-bottom:25px}.portal-form select[multiple]{min-height:170px}.portal-admin-back{display:flex;align-items:center;gap:12px}.portal-admin-back>a{font-size:12px;color:var(--olive)}.document-visibility{max-width:340px}pre.cron-command{overflow-x:auto;background:var(--cream);border:1px solid var(--line);padding:18px;border-radius:6px;font-size:11px;white-space:pre-wrap;word-break:break-word}.portal-request-item{border-top:1px solid var(--line);padding:20px 0}.portal-request-item:first-of-type{border-top:0}.portal-avatar{height:36px;width:36px;display:grid;place-items:center;background:var(--cream);color:var(--olive);border-radius:50%;font-size:12px}.portal-header-user{font-size:12px;color:var(--muted)}
@media(max-width:760px){.portal-shell{padding:0 20px 30px}.portal-header{padding:21px 0;gap:12px}.portal-brand{width:145px}.portal-header-user{display:none}.portal-grid,.admin-cols{grid-template-columns:1fr}.portal-nav{gap:6px;padding-top:18px}.portal-nav button{font-size:11px;padding:9px 13px}.portal-shell main{padding-top:18px}.portal-metrics{gap:9px}.portal-metric{padding:16px 12px}.portal-metric b{font-size:30px}.portal-metric span{font-size:10px}.portal-panel{padding:21px}.portal-file{align-items:flex-start;gap:12px}.portal-file strong{font-size:13px}.portal-file .button{padding:9px 12px;font-size:10px}.portal-message{max-width:95%;padding:14px}.member-checks{grid-template-columns:1fr}.portal-footer{flex-direction:column;gap:8px}.portal-panel h2{font-size:25px}.portal-actions .button{font-size:11px}.portal-auth-top{top:15px;right:15px}.client-line{flex-direction:column}.portal-header .top-actions{gap:4px}.portal-admin-back .portal-brand{width:125px}.portal-admin-back>a{font-size:10px}}

.client-case-checks{max-height:280px;overflow:auto;border:1px solid var(--line);border-radius:6px;padding:5px 14px}.client-delete-panel{border-color:#a5523d}.client-delete-link{color:#a34c3b}.mail-warning{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:15px 18px;border:1px solid var(--line);border-radius:6px;background:var(--cream);margin-bottom:22px}.mail-warning strong{display:block;font-size:13px}.mail-warning p{font-size:12px;color:var(--muted);margin:4px 0}.portal-panel .portal-metric b{font-size:clamp(21px,2vw,31px)}@media(max-width:760px){.mail-warning{flex-direction:column;align-items:flex-start}.portal-panel .portal-metrics{grid-template-columns:1fr}.client-case-checks{max-height:240px}}

.financial-metrics .portal-metric b{font-size:clamp(21px,3vw,35px)}@media(max-width:540px){.financial-metrics{grid-template-columns:1fr}}

/* SAGA 3.7.4 — assinaturas pendentes em destaque no portal, sem revelar tokens. */
.portal-signature-callout{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:18px 0 24px;padding:22px 25px;border:1px solid #718169;border-radius:12px;background:linear-gradient(115deg,rgba(74,99,70,.2),rgba(84,100,70,.08))}.portal-signature-callout h2{font-size:clamp(19px,2.1vw,25px);margin:8px 0}.portal-signature-callout p{opacity:.83}.portal-signature-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 0;border-bottom:1px solid rgba(170,190,160,.2)}.portal-signature-row h3{font-size:19px;margin:8px 0}.portal-signature-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.portal-signature-row button{flex-shrink:0}@media(max-width:760px){.portal-signature-callout,.portal-signature-row{flex-direction:column;align-items:stretch}.portal-signature-callout .button,.portal-signature-row button{width:100%}}
