@font-face{font-family:"Nunito Sans";src:url("../fonts/NunitoSans-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url("../fonts/NunitoSans-Semibold.ttf") format("truetype");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url("../fonts/NunitoSans-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}
/* New portal shell, inspired by the shared Praetor/Aureus interface palette. */
:root{--portal-ink:#292d31;--portal-muted:#68747d;--portal-accent:#a66f1e;--portal-header:#eceff1;--portal-line:#d5dade;--font-body:"Nunito Sans", "Segoe UI", Arial, sans-serif;--font-title:var(--font-body)}
body{background:#f5f6f7!important;color:var(--portal-ink)}
body,h1,h2,h3,h4,h5,h6,button,input,select,textarea,.font-sans{font-family:var(--font-body)!important}
button,a,input,textarea,select{outline-offset:3px}button:focus-visible,a:focus-visible{outline:2px solid #a66f1e}
.portal-kicker{font-size:12px;letter-spacing:1.5px;font-weight:700;color:var(--portal-accent);display:block;text-transform:uppercase}
.portal-shell{position:relative;padding-left:232px;min-height:100vh}
.portal-shell.hidden{display:none!important}
.portal-shell .prestige-topbar{background:#eceff1!important;border-bottom:1px solid #b6bec5!important;height:76px;padding:0 30px!important}
.portal-shell .prestige-topbar>div{max-width:none!important}
.portal-shell .prestige-topbar .brand-title{color:#292d31!important;font-size:15px;letter-spacing:1px!important}
.portal-shell .prestige-topbar .brand-subtitle{color:#68747d!important;font-size:11px}
.portal-shell .prestige-topbar :is(.text-white,.text-slate-300){color:#292d31!important}
.portal-shell .prestige-topbar .user-profile-capsule{background:#fff!important;border:1px solid #cbd1d5!important;border-radius:3px!important;box-shadow:none!important}
.portal-shell .user-avatar-square{background:#f4f5f6!important;border-color:#d5dade!important;color:#a66f1e!important;box-shadow:none!important;border-radius:3px!important}
.portal-shell .user-profile-capsule span:not(.user-online-beacon){color:#68747d!important}
.user-online-beacon{display:none!important}
.portal-shell .btn-logout{color:#444e56!important;border:1px solid #b6bec5!important;background:transparent!important}
.portal-shell .command-subnav{position:absolute;top:0;bottom:0;left:0;width:232px;height:auto;padding:36px 18px!important;background:#202529!important;border:0!important;border-right:1px solid #343a40!important;display:flex;flex-direction:column;overflow:visible!important}
.portal-shell .command-subnav>div:not(.portal-nav-heading):not(.portal-nav-footer){margin:30px 0!important;display:flex;flex-direction:column;align-items:stretch!important;justify-content:flex-start!important;max-width:none!important;min-width:0!important;height:auto!important;gap:24px!important}
.portal-shell .command-subnav>div>div{display:flex;flex-direction:column;align-items:stretch!important;gap:6px!important}
.portal-shell .command-subnav .tab-nav-badge{margin-left:auto;background:#40494f!important;border:0!important;color:#e6e9eb!important;border-radius:3px!important}
.portal-nav-heading{padding:0 12px 24px;border-bottom:1px solid #41484e}.portal-nav-heading .portal-kicker{color:#c4a56c}.portal-nav-heading strong{font-size:18px;font-weight:600;color:#fff;display:block;margin-top:9px}
.portal-nav-footer{margin-top:auto;padding:30px 12px 0;border-top:1px solid #41484e;color:#c5cdd2;font-size:14px;display:grid;gap:6px}.portal-nav-footer small{color:#919da5}.portal-nav-footer a{margin-top:14px;font-size:13px;color:#ccb88f}
.portal-shell>main{max-width:1450px!important;padding:30px 34px 50px!important;margin-inline:auto!important}
.portal-page-heading{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--portal-line);border-left:3px solid #b99556;padding:26px 30px;margin-bottom:24px!important}
.portal-page-heading h1{font-size:28px;letter-spacing:-.6px;font-weight:600;color:#292d31;margin:6px 0}.portal-page-heading p{font-size:13px;color:#68747d;line-height:1.65}.portal-heading-mark{font-size:38px;letter-spacing:-3px;color:#d7dcdf;font-weight:600}.portal-heading-mark span{font-size:24px;color:#b9a078;margin:0 3px}
.card-kpi-neutral{border:1px solid #d5dade!important;border-radius:3px!important;background:#fff!important;box-shadow:none!important;padding:18px 22px!important}.card-kpi-neutral:before,.card-kpi-neutral:after{display:none!important}.kpi-neutral-num{font-size:27px!important;color:#292d31!important}.kpi-neutral-label{font-size:13px!important;letter-spacing:.5px!important;color:#68747d!important}.kpi-neutral-icon-box{background:#f3f4f5!important;color:#8d774d!important;border:1px solid #e0e4e6!important;box-shadow:none!important}.portal-field-label{font-size:12px;letter-spacing:.7px;text-transform:uppercase;color:#68747d}.portal-empty{padding:48px;border:1px solid #d5dade;background:#fff;text-align:center}.portal-empty h3{font-size:20px}.portal-empty p{margin:10px 0 24px;color:#68747d}
.workspace-primary,.btn-executive-primary,.btn-executive-gold{background:#303a42!important;border:1px solid #303a42!important;border-left:0!important;border-radius:3px!important;color:#fff!important;box-shadow:none!important;font-weight:600!important}.workspace-primary:hover{background:#46545e!important}
.workspace-text-button{color:#866025;font-size:14px}.tag-executive,.workspace-status{font-size:13px!important;padding:5px 9px!important;background:#f4f1e9!important;color:#80632f!important;border:1px solid #ded6c6!important;border-radius:3px!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important}
.card-clean,.client-case-row-card{border:1px solid #d5dade!important;border-radius:3px!important;box-shadow:none!important;background:#fff!important;color:#292d31}.client-case-row-card h3{font-size:21px!important;letter-spacing:0!important}
.process-navigation{display:flex;gap:4px;align-items:center;padding:6px;background:#eceff1;border:1px solid #cbd2d7;border-radius:3px;margin:18px 0!important;position:sticky;top:0;z-index:5}
.process-navigation button{padding:10px 18px;border:1px solid transparent;border-radius:3px;color:#68747d;background:transparent;font-size:13px;font-weight:600;min-height:40px}.process-navigation button[aria-pressed=true]{background:#fff;border-color:#cbd2d7;color:#292d31;box-shadow:0 2px 4px #20252908}.process-navigation button:hover{color:#866025}
[data-case-tab=overview] [data-process-area]:not([data-process-area=overview]),[data-case-tab=movements] [data-process-area]:not([data-process-area=movements]),[data-case-tab=tasks] [data-process-area]:not([data-process-area=tasks]),[data-case-tab=documents] [data-process-area]:not([data-process-area=documents]){display:none!important}
.case-workspace{border:0!important;background:transparent!important;padding:0!important;margin:18px 0!important;border-radius:3px!important}.case-workspace .workspace-heading{margin-bottom:12px}.case-workspace h3{font-size:20px;margin:4px 0 8px}.case-workspace .workspace-summary-grid>div{background:#fff;border:1px solid #d5dade;padding:20px}.workspace-summary-grid span{font-size:13px;color:#80632f;text-transform:uppercase;letter-spacing:.5px}.workspace-summary-grid p{font-size:13px;line-height:1.8;color:#47545c}.workspace-summary-grid .workspace-action{border-top:2px solid #b99556;background:#fffdf8}.workspace-dates{font-size:13px}.workspace-editor{background:#fff;border:1px solid #d5dade;padding:12px 18px;border-radius:3px}.workspace-fields{grid-template-columns:1fr 1fr;gap:16px}.workspace-fields label:has(textarea){grid-column:1/-1}.workspace-stage-editor{grid-template-columns:repeat(3,1fr)}.workspace-section{background:white;border:1px solid #d5dade!important;padding:26px!important;margin:0!important;border-radius:3px}.workspace-section h4{font-size:20px}.workspace-task{background:#f8f9fa;border:1px solid #d5dade;padding:20px}.workspace-task.pending{border-left:3px solid #b99556}.workspace-task-actions{display:flex;gap:16px;flex-wrap:wrap}.workspace-upload{padding:20px;background:#f5f6f7;border:1px dashed #b6bec5;grid-template-columns:1fr 1fr}.workspace-document-list>div{padding:16px 0}.workspace-document-list button{font-size:14px}.workspace-history{background:white;border:1px solid #d5dade;padding:18px}.process-facts{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:18px 22px;background:#eceff1;border:1px solid #d5dade;border-radius:3px;margin:18px 0!important}.process-facts span{display:block;font-size:12px;color:#68747d;text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px}.process-facts strong{font-size:14px;font-weight:600;color:#3b454d}
.process-stage-panel{background:white!important;border:1px solid #d5dade!important;padding:24px!important;border-radius:3px;margin:18px 0!important}.modern-stepper-container{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;overflow:visible!important;margin:18px 0 0!important;padding:0!important}.modern-step-node{display:grid!important;grid-template-columns:32px 1fr;column-gap:12px;min-width:0!important;width:auto!important;align-content:start;text-align:left!important;background:#f8f9fa;padding:15px!important;border:1px solid #d5dade;border-radius:3px}.modern-step-line{display:none!important}.modern-step-circle{grid-column:1;grid-row:1/4;width:32px!important;height:32px!important;margin:0!important;font-size:13px!important;background:#fff!important;border:1px solid #b6bec5!important;color:#68747d!important;border-radius:50%!important}.modern-step-label{grid-column:2;font-size:14px!important;font-weight:700!important;line-height:1.5;color:#3b454d!important;margin:0!important}.step-description{grid-column:2;font-size:12px;color:#68747d;margin-top:4px;line-height:1.5}.modern-step-status{grid-column:2;font-size:12px!important;margin:8px 0 0!important}.modern-step-node.completed{background:#f3f8f6;border-color:#c8dcd4}.modern-step-node.completed .modern-step-circle{background:#e4efea!important;border-color:#89ad9e!important;color:#247363!important}.modern-step-node.completed .modern-step-status{color:#247363!important;font-weight:700}.modern-step-node.active{background:#fcf8ef;border:1px solid #b99556}.modern-step-node.active .modern-step-circle{background:#b99556!important;color:white!important;border-color:#b99556!important}.modern-step-node.active .modern-step-status{color:#866025!important;font-weight:700}.modern-step-node.pending .modern-step-status{color:#7e8a92!important}
.meta-ribbon-divided{border:1px solid #d5dade!important;background:white!important;border-radius:3px}.meta-ribbon-cell{padding:18px!important}.meta-ribbon-cell span:first-child{color:#68747d!important;letter-spacing:.4px!important}.info-section-title-card{border:1px solid #d5dade!important;background:#eceff1!important;border-radius:3px;box-shadow:none!important}.title-card-heading{font-size:15px!important;letter-spacing:0!important;text-transform:none!important;color:#292d31!important}.title-card-subheading{font-size:13px!important;color:#68747d!important}
.modal-backdrop{background:#202529a8!important;backdrop-filter:blur(3px);padding:24px!important}.modal-box{border:1px solid #b6bec5!important;border-radius:3px!important;box-shadow:0 25px 80px #10182040!important}.modal-prestige-header{background:#202529!important;border-bottom:1px solid #b6bec5!important;box-shadow:none!important;padding:22px 26px!important}.modal-prestige-header:before,.modal-prestige-header:after{display:none!important}.modal-prestige-title{font-size:20px!important;color:#292d31!important;text-transform:none!important;letter-spacing:0!important}.modal-prestige-sub{color:#68747d!important;font-size:14px!important}.modal-prestige-icon-capsule{background:white!important;border:1px solid #cbd2d7!important;color:#a66f1e!important;border-radius:3px!important;box-shadow:none!important}.modal-prestige-icon-capsule svg{color:#a66f1e!important}.modal-prestige-close-btn{color:#48535b!important;border:1px solid #b6bec5!important;background:white!important;border-radius:3px!important;box-shadow:none!important}.modal-body{background:#f8f9fa;padding:24px!important}.modal-footer{background:#eceff1!important;border-top:1px solid #d5dade!important}.input-clean{background:#fff!important;border:1px solid #b6bec5!important;border-radius:3px!important;font-size:13px!important;padding:10px 12px!important;min-height:40px}.input-clean:focus{border-color:#a66f1e!important;outline:2px solid #b9955622!important}#modal-case-history-list{max-height:none!important;overflow:visible!important}#modal-case-history-list>div{border-color:#d5dade!important;border-radius:3px!important;box-shadow:none!important}#modal-form-add-update{display:grid;gap:16px}#modal-form-add-update .workspace-fields{margin-bottom:0}#modal-form-add-update .workspace-fields label{font-size:13px}.clean-timeline-card{border:1px solid #d5dade!important;padding:22px!important;box-shadow:none!important}.clean-timeline-card p{font-size:13px!important}
.chat-messages-container{background:#f5f6f7!important}.workspace-chat-context{background:#eceff1;border-color:#d5dade;padding:14px 20px}.workspace-chat-context select{border-color:#b6bec5;border-radius:3px;font-size:14px}.chat-bubble{box-shadow:none!important;border-radius:3px!important}.animate-pulse{animation:none!important}
#view-login{background:#202529!important;min-height:100vh}#view-login .login-topbar{background:transparent;border-color:#41484e;padding:24px 6vw!important}#view-login main{display:grid!important;grid-template-columns:minmax(320px,1fr) 440px;align-items:center!important;gap:70px;width:min(1200px,90vw);margin:0 auto;padding:55px 0!important}#view-login main>div[class*=blur]{display:none!important}.portal-login-intro{color:#fff;padding:25px 0}.portal-login-intro .portal-kicker{color:#ceb784;font-size:13px}.portal-login-intro h1{font-size:44px;line-height:1.2;letter-spacing:-1px;font-weight:600;margin:24px 0}.portal-login-intro>p{max-width:420px;line-height:1.9;color:#b2bcc3;font-size:15px}.login-intro-features{margin-top:36px;display:grid;gap:22px}.login-intro-features>div{display:grid;grid-template-columns:32px 1fr;column-gap:14px}.login-intro-features span{grid-row:1/3;color:#bda36d;border:1px solid #586168;width:30px;height:30px;border-radius:3px;display:grid;place-items:center;font-size:13px}.login-intro-features strong{font-size:13px;font-weight:600;color:#dce1e4}.login-intro-features p{font-size:14px;color:#929fa8;margin-top:5px}.portal-login-intro>small{display:block;margin-top:40px;font-size:13px;color:#929fa8}
#view-login .login-card-executive{border:1px solid #b6bec5!important;border-top:3px solid #b99556!important;border-radius:3px!important;max-width:440px!important;padding:0!important;box-shadow:0 24px 70px #0002!important}#view-login .login-card-inner-frame{padding:36px!important}.portal-login-heading{text-align:left;margin-bottom:30px}.portal-login-heading h2{font-size:28px;font-weight:600;color:#292d31;margin:10px 0}.portal-login-heading p{font-size:13px;color:#68747d;line-height:1.7}#view-login label{font-size:14px!important;text-transform:none!important;letter-spacing:0!important;font-weight:600!important}#view-login input{font-size:14px!important;padding:12px!important;min-height:46px;border-color:#b6bec5!important}#view-login .btn-login-gold-outline{border:1px solid #303a42!important;border-left:0!important;background:#303a42!important;color:#fff!important;border-radius:3px!important;min-height:46px;text-transform:none;font-size:13px}#view-login .btn-login-gold-outline svg{color:#ccb88f!important}.login-footer{border-color:#41484e!important;background:transparent!important}body>footer{font-size:13px!important;background:#f5f6f7!important;border-color:#d5dade!important}
@media(max-width:1250px){.portal-shell>main{padding:26px 24px 40px!important}.portal-shell .prestige-topbar>div>div:first-child>span{display:none!important}}
@media(max-width:1000px){.portal-shell{padding-left:190px}.portal-shell .command-subnav{width:190px;padding:26px 12px!important}.portal-nav-heading{padding:0 8px 20px}.portal-nav-heading strong{font-size:16px}.portal-page-heading{padding:22px}.portal-page-heading h1{font-size:25px}.portal-heading-mark{display:none}.workspace-summary-grid{grid-template-columns:1fr!important}.modern-stepper-container{grid-template-columns:repeat(2,minmax(0,1fr))!important}.workspace-stage-editor{grid-template-columns:repeat(2,1fr)}#view-login main{gap:35px;grid-template-columns:1fr 410px}.portal-login-intro h1{font-size:34px}}
@media(max-width:760px){.portal-shell{padding-left:0}.portal-shell .command-subnav{position:static;width:auto;padding:12px 16px!important;border-bottom:1px solid #cbd2d7!important;background:#fff!important}.portal-nav-heading,.portal-nav-footer{display:none}.portal-shell .command-subnav>div:not(.portal-nav-heading):not(.portal-nav-footer){margin:0!important;gap:12px!important}.portal-shell .command-subnav>div>div{flex-direction:row;gap:6px!important;flex-wrap:wrap}.portal-shell .command-subnav .text-xs.hidden{display:none!important}.portal-shell .prestige-topbar{height:70px;padding:0 16px!important}.portal-shell>main{padding:20px 16px 35px!important}.portal-page-heading{padding:20px;margin-bottom:18px!important}.portal-page-heading h1{font-size:24px}.portal-page-heading p{font-size:14px}.portal-page-heading .portal-kicker{font-size:11px}.process-facts{grid-template-columns:1fr;gap:14px}.process-navigation{gap:2px;padding:4px;overflow:auto}.process-navigation button{font-size:13px;padding:8px 10px;white-space:nowrap;flex:1}.workspace-fields,.workspace-upload{grid-template-columns:1fr!important}.workspace-fields label{grid-column:auto!important}.workspace-section{padding:20px!important}.client-case-row-card{padding:20px!important}.modal-backdrop{padding:10px!important}.modal-prestige-header{padding:18px!important}.modal-prestige-title{font-size:17px!important}.modal-body{padding:18px!important}#view-login main{display:block!important;max-width:440px;width:calc(100% - 32px);padding:30px 0!important}.portal-login-intro{padding:0 4px 26px}.portal-login-intro h1{font-size:28px;margin:14px 0}.portal-login-intro>p{font-size:13px}.login-intro-features,.portal-login-intro>small{display:none}#view-login .login-card-inner-frame{padding:28px!important}.portal-login-heading h2{font-size:25px}#view-login .login-topbar{padding:20px 16px!important}#view-login .login-topbar>a{font-size:12px;max-width:100px;text-align:right}.portal-shell .brand-title,.portal-shell .brand-subtitle{display:none!important}.portal-shell .prestige-topbar .user-profile-capsule{max-width:190px}.portal-shell .prestige-topbar .h-6,.portal-shell .prestige-topbar .h-7{display:none!important}}
@media(max-width:440px){.modern-stepper-container{grid-template-columns:1fr!important}.workspace-stage-editor{grid-template-columns:1fr}.modern-step-node{padding:14px!important}.process-stage-panel{padding:18px!important}.workspace-heading{gap:8px;margin-bottom:14px}.process-navigation button{font-size:12px;padding:8px}}

.portal-shell .prestige-topbar>div>div:first-child>span{color:#68747d!important}.portal-shell .command-subnav .tab-nav-badge-alert{box-shadow:none!important;background:#665536!important;color:#efe5d0!important}
#sector-cases>.card-clean:has(#filter-cases-search){display:grid!important;grid-template-columns:minmax(230px,1fr) auto!important;gap:14px!important;align-items:center!important}#sector-cases>.card-clean:has(#filter-cases-search)>div{width:auto!important;min-width:0!important;overflow:visible!important;flex-wrap:wrap!important}#sector-cases>.card-clean:has(#filter-cases-search)>div:last-child{grid-column:1/-1;justify-content:flex-start!important}
.portal-page-heading{padding-block:20px}.user-profile-capsule{box-shadow:none!important}#client-tab-chat>div>div:first-child{background:#eceff1!important}.workspace-task-heading h5{font-size:15px}
@media(max-width:1000px){#sector-cases>.card-clean:has(#filter-cases-search){grid-template-columns:1fr!important}}@media(max-width:760px){.portal-shell .command-subnav>div>div.hidden{display:none!important}}

.portal-client-search{display:flex;gap:16px;align-items:center;margin:18px 0 24px;font-size:14px}.portal-client-search label{font-weight:700;white-space:nowrap}.portal-client-search input{border:1px solid #b6bec5;border-radius:3px;background:#fff;min-height:42px;padding:10px 14px;flex:1}.portal-client-search span{color:#68747d;font-size:13px}
.chat-client-card{border:1px solid #d5dade!important;background:#fff!important;border-radius:3px!important;box-shadow:none!important;margin:8px!important;padding:16px!important}.chat-client-card.active{background:#eceff1!important;border-color:#aeb8bf!important;border-left:3px solid #b99556!important}.chat-client-card.active .client-name{color:#292d31!important}.chat-client-card.active .client-time{color:#68747d!important}.chat-bubble-lawyer{background:#e9edef!important;color:#292d31!important;box-shadow:none!important;border:1px solid #cbd2d7!important;border-radius:3px!important}.chat-bubble-lawyer :is(p,.chat-user-name){color:#292d31!important}.chat-bubble-client{background:white!important;box-shadow:none!important;border:1px solid #d5dade!important;border-radius:3px!important}.chat-bubble-client :is(p,.chat-user-name){color:#292d31!important}
@media(max-width:760px){.portal-client-search{flex-wrap:wrap;gap:10px}.portal-client-search input{min-width:100%}.portal-client-search span{width:100%}#client-tab-chat form,#sector-chat form{flex-wrap:wrap}#client-tab-chat form input,#sector-chat form input{min-width:100%}#client-tab-chat form button,#sector-chat form button{width:100%;justify-content:center}}

#view-client main:has(#client-view-detail:not(.hidden))>.portal-page-heading{display:none!important}.portal-shell .tab-nav-badge-alert{box-shadow:none!important}.portal-shell .tab-nav-badge{background-image:none!important}#client-case-number{overflow-wrap:anywhere}#modal-case-client-name{text-transform:none!important}


.portal-shell .command-subnav>div>.text-xs{color:#bcc5cc!important;font-size:13px!important;line-height:1.7;padding:12px}.portal-shell .command-subnav .tab-nav-button.active .tab-nav-badge{background:#586168!important;color:#f2f4f5!important;box-shadow:none!important}
/* Controls: machined edges, restrained depth and a consistent action hierarchy. */
.workspace-primary,.btn-executive-primary,.btn-executive-gold{background:linear-gradient(145deg,#41494e,#23292d)!important;border:1px solid #303a40!important;border-top-color:#647079!important;color:#fff!important;box-shadow:inset 0 1px 0 #ffffff20,0 3px 6px #18232b18!important;border-radius:3px!important;padding:11px 18px!important;font-weight:700!important;letter-spacing:.015em;transition:background .2s,box-shadow .2s,transform .2s!important;display:inline-flex;align-items:center;justify-content:center;gap:12px;text-decoration:none!important}
.workspace-primary:hover,.btn-executive-primary:hover,.btn-executive-gold:hover{background:linear-gradient(145deg,#505b61,#303b42)!important;box-shadow:inset 0 1px 0 #ffffff30,0 5px 12px #18232b26!important;transform:translateY(-1px)}
.workspace-primary span[aria-hidden],.btn-executive-primary span[aria-hidden]{border-left:1px solid #ffffff38;padding-left:12px;color:#d4b679}
.workspace-text-button,.btn-executive-secondary,.portal-nav-footer a{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;padding:9px 13px!important;border:1px solid #ced5d9!important;border-radius:3px!important;background:linear-gradient(#fff,#f2f4f5)!important;color:#39474f!important;box-shadow:inset 0 1px 0 #fff,0 2px 3px #18232b09!important;text-decoration:none!important;font-weight:700!important;transition:border-color .2s,box-shadow .2s!important}
.workspace-text-button:hover,.btn-executive-secondary:hover{border-color:#a88c59!important;box-shadow:0 3px 8px #18232b14!important;color:#795b2c!important}
.portal-nav-footer a{background:linear-gradient(145deg,#444c51,#30383e)!important;color:#eee4d3!important;border-color:#667077!important;border-bottom-color:#ad8e52!important;margin-top:16px!important;box-shadow:inset 0 1px 0 #ffffff15,0 4px 8px #0002!important}
button:focus-visible,a:focus-visible{outline:3px solid #c6a464!important;outline-offset:3px}
button:disabled{opacity:.55;cursor:wait;transform:none!important}
.registration-modal .modal-box{width:min(1020px,96vw)!important;max-width:1020px!important;border-radius:3px!important;overflow:hidden;box-shadow:0 28px 90px #121c2860!important;border:1px solid #687077!important;max-height:94dvh}
.registration-modal .modal-prestige-header{background:#202529!important;padding:24px 28px!important;border-bottom:2px solid #b29764!important}
.registration-modal .modal-prestige-title{color:#fff!important;font-size:23px!important;font-weight:700!important;letter-spacing:0!important}
.registration-modal .modal-prestige-sub{color:#c3cbd0!important;font-size:13px!important;margin-top:6px!important}
.registration-modal .modal-prestige-icon-capsule{background:#ffffff0e!important;border:1px solid #ffffff20!important;color:#d8bf8f!important;border-radius:3px!important}
.registration-modal .modal-prestige-close-btn{background:#ffffff0c!important;border:1px solid #ffffff25!important;color:#fff!important;border-radius:3px!important;min-width:34px;min-height:34px}
.registration-form{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.registration-layout{display:grid;grid-template-columns:minmax(0,1fr);flex:1;min-height:0;overflow:hidden}
.registration-modal .modal-body{background:#f8fafb!important;padding:24px!important;overflow:auto;min-height:0;flex:1}
.registration-section{padding:14px!important;margin:0 0 12px!important;background:#fff!important;border:1px solid #dce2e6!important;border-radius:3px!important;box-shadow:0 2px 4px #26374705}
.registration-section header{display:flex;align-items:center;gap:10px;margin-bottom:18px}
.registration-section header>span{font-size:13px;color:#937a48;font-weight:800;border:1px solid #ded5c4;padding:5px 7px;border-radius:3px}
.registration-section h4{font-size:15px;font-weight:800;color:#303e48}
.registration-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.registration-modal label{font-size:14px!important;font-weight:700!important;color:#51616b!important;line-height:1.6;white-space:normal!important;height:auto!important}
.registration-modal input:not([type=checkbox]):not([type=hidden]),.registration-modal select,.registration-modal textarea{display:block;width:100%!important;margin-top:6px;padding:11px 12px!important;font-size:14px!important;line-height:1.5!important;color:#293943!important;background:#fbfcfd!important;border:1px solid #ced7dd!important;border-radius:3px!important;box-shadow:inset 0 1px 2px #20304105!important;font-family:inherit!important}
.registration-modal input:focus,.registration-modal select:focus,.registration-modal textarea:focus{outline:2px solid #bc9d61!important;outline-offset:1px}
.registration-note{font-size:14px;color:#72818b;margin-top:14px;line-height:1.6}
.password-reveal{color:#7f683d;font-size:13px;font-weight:700;margin-top:7px;padding:4px 0;background:none;border:0}
.registration-modal .modal-footer{background:#fff!important;padding:17px 26px!important;border-top:1px solid #d7dfe5!important;flex-shrink:0;gap:12px}
.registration-modal .btn-nature-tab{border-radius:3px!important;padding:11px 14px!important;font-size:14px!important;white-space:normal!important}
.registration-modal .tab-nature-grain-active{background:#34424b!important;color:#fff!important;box-shadow:inset 0 1px 0 #ffffff22,0 3px 6px #20304018!important;border:1px solid #34424b!important}
.registration-modal .tab-nature-grain-inactive{background:#f3f5f7!important;color:#596973!important;border:1px solid #d2dce3!important}
#modal-edit-process{z-index:10010}
#process-edit-error{color:#a53030;font-size:13px;margin-top:12px}
@media(max-width:760px){.registration-layout{display:block;overflow:auto}.registration-modal .modal-body{padding:14px!important}.registration-modal .modal-prestige-header{padding:18px!important}.registration-modal .modal-prestige-title{font-size:19px!important}.registration-fields{grid-template-columns:1fr}.registration-section{padding:14px!important}.registration-modal .modal-footer{padding:14px!important}.registration-modal .modal-footer button{font-size:14px!important}.registration-modal .modal-box{max-height:96dvh}}
@media(min-width:761px){#modal-new-case .registration-section .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
/* Keep navigation bounded by the viewport rather than the process history. */
@media(min-width:761px){
 .portal-shell{--portal-sidebar-width:clamp(180px,16vw,208px);padding-left:var(--portal-sidebar-width)}
 .portal-shell .command-subnav{position:fixed;inset:0 auto auto 0;width:var(--portal-sidebar-width);height:100vh;height:100dvh;max-height:100dvh;box-sizing:border-box;margin:0!important;padding:24px 14px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#69737b #202529;z-index:30}
 .portal-shell .command-subnav>div{flex-shrink:0}
 .portal-shell .command-subnav>div:not(.portal-nav-heading):not(.portal-nav-footer){margin:18px 0!important;gap:18px!important}
 .portal-nav-heading{padding:0 8px 18px}.portal-nav-heading strong{font-size:16px}
 .portal-nav-footer{padding:18px 8px 0}
}
@media(min-width:761px) and (max-height:700px){
 .portal-shell .command-subnav{padding:16px 12px!important}
 .portal-shell .command-subnav>div:not(.portal-nav-heading):not(.portal-nav-footer){margin:12px 0!important;gap:12px!important}
 .portal-nav-heading{padding-bottom:12px}.portal-nav-footer{padding-top:12px}
}
/* Navigation hover changes paint only; geometry and scrollbar space stay stable. */
.portal-shell .command-subnav{transition:none!important;transform:none!important;scrollbar-gutter:stable}
.portal-shell .command-subnav::-webkit-scrollbar{width:6px;height:6px}
.portal-shell .command-subnav::-webkit-scrollbar-thumb{background:#69737b;border-radius:3px}
.portal-shell .command-subnav::-webkit-scrollbar-track{background:transparent}
@media(min-width:761px){
 .portal-shell .command-subnav{min-width:var(--portal-sidebar-width);max-width:var(--portal-sidebar-width)}
}
/* Summary indicators are informational: no hover border growth or animation. */
.portal-shell .card-kpi-neutral,.portal-shell .card-kpi-neutral:hover{border:1px solid #d5dade!important;background:#fff!important;box-shadow:none!important;transform:none!important;transition:none!important}
/* The conversation fills remaining viewport space; only lists and messages scroll. */
#view-lawyer:has(#sector-chat:not(.hidden)){display:flex;flex-direction:column;height:100vh;height:100dvh;min-height:0;overflow:hidden}
#view-lawyer:has(#sector-chat:not(.hidden))>.prestige-topbar{flex-shrink:0}
#view-lawyer:has(#sector-chat:not(.hidden))>main{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;box-sizing:border-box;padding-bottom:20px!important;overflow:hidden}
#view-lawyer:has(#sector-chat:not(.hidden)) .portal-page-heading{flex-shrink:0;padding-block:16px;margin-bottom:18px!important}
body:has(#view-lawyer:not(.hidden) #sector-chat:not(.hidden))>footer{display:none}
#view-lawyer:has(#sector-chat:not(.hidden))>main{padding-top:20px!important}
#view-lawyer:has(#sector-chat:not(.hidden)) .portal-page-heading{padding-block:12px}
#view-lawyer:has(#sector-chat:not(.hidden)) .portal-page-heading h1{font-size:25px}
#sector-chat:not(.hidden){display:flex;flex-direction:column;flex:1;min-height:0}
#sector-chat{margin-top:0!important}
#sector-chat>.card-clean{flex:1 1 0;width:100%;height:auto;min-height:0!important;grid-template-columns:minmax(220px,30%) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
#sector-chat>.card-clean>div{min-width:0;min-height:0;overflow:hidden;grid-column:auto!important}
#sector-chat>.card-clean>div:first-child>div:first-child,#sector-chat>.card-clean>div:last-child>div:not(#lawyer-chat-messages),#sector-chat form{flex-shrink:0}
#lawyer-chat-clients-list{min-height:0;overflow-y:auto;overscroll-behavior:contain}
#sector-chat #lawyer-chat-messages{height:auto!important;min-height:0!important;max-height:none!important;flex:1 1 0;overflow-y:auto!important;padding:14px}
#sector-chat>.card-clean>div:last-child>div:first-child{flex-wrap:wrap;gap:10px;padding:12px 16px!important}
#sector-chat>.card-clean>div:last-child>div:first-child>div:first-child{min-width:0;flex:1 1 220px}
#sector-chat>.card-clean>div:last-child>div:first-child>div:first-child>div{flex-wrap:wrap}
#sector-chat .workspace-chat-context{flex-wrap:wrap;gap:8px 12px;padding:10px 16px;min-height:0;max-height:110px;overflow-y:auto}
#sector-chat .workspace-chat-context select{max-width:100%;min-width:0}
#sector-chat .conversation-status-control{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#lawyer-chat-quick-replies{padding:8px 12px!important;max-width:100%;min-width:0}
#sector-chat form{padding:12px 16px!important;min-width:0}
#lawyer-chat-input{min-width:0;flex:1}
#lawyer-chat-client-whatsapp,#btn-clear-chat-conversation{border-radius:3px!important;padding:8px 12px!important;min-height:36px;box-sizing:border-box;font:700 14px var(--font-body)!important;gap:8px!important;align-items:center;justify-content:center;text-decoration:none!important;box-shadow:0 2px 4px #18232b0a!important;transition:background-color .18s ease,border-color .18s ease,color .18s ease!important}
#lawyer-chat-client-whatsapp,#btn-clear-chat-conversation:not(.hidden){display:inline-flex!important}
#lawyer-chat-client-whatsapp{background:#f0f8f3!important;border:1px solid #a9d2b8!important;color:#267348!important}
#lawyer-chat-client-whatsapp:hover{background:#287d4d!important;border-color:#287d4d!important;color:#fff!important;box-shadow:0 3px 8px #287d4d24!important}
#btn-clear-chat-conversation{background:#fcf2f2!important;border:1px solid #e1b4b4!important;color:#a33c3c!important}
#btn-clear-chat-conversation:hover{background:#ab4343!important;border-color:#ab4343!important;color:#fff!important;box-shadow:0 3px 8px #ab434324!important}
#btn-clear-chat-conversation svg{color:currentColor!important}
@media(max-width:760px){
 #view-lawyer:has(#sector-chat:not(.hidden))>.command-subnav{flex-shrink:0}
 #view-lawyer:has(#sector-chat:not(.hidden))>main{padding:12px 12px 14px!important}
 #view-lawyer:has(#sector-chat:not(.hidden)) .portal-page-heading{padding:10px 14px;margin-bottom:12px!important}
 #view-lawyer:has(#sector-chat:not(.hidden)) .portal-page-heading p{display:none}
 #sector-chat>.card-clean{grid-template-columns:minmax(0,1fr);grid-template-rows:110px minmax(0,1fr)}
 #sector-chat>.card-clean>div:first-child{border-right:0;border-bottom:1px solid #d5dade}
 #sector-chat>.card-clean>div:first-child>div:first-child{padding:8px 10px!important;display:flex;gap:8px;align-items:center}
 #sector-chat>.card-clean>div:first-child>div:first-child>span{font-size:11px;max-width:65px;margin:0}
 #lawyer-chat-clients-list{display:flex;overflow-x:auto;overflow-y:hidden}
 #lawyer-chat-clients-list .chat-client-card{flex:0 0 180px;margin:4px!important;padding:8px 10px!important}
 #sector-chat .workspace-chat-context{padding:6px 10px;gap:5px;font-size:12px}
 #sector-chat .workspace-chat-context select{font-size:13px;padding:5px}
 #sector-chat .workspace-chat-context>select{flex:1}
 #sector-chat .conversation-status-control{width:100%;justify-content:space-between}
 #sector-chat>.card-clean>div:last-child>div:first-child{padding:8px 10px!important;gap:8px}
 #sector-chat>.card-clean>div:last-child>div:first-child>div:first-child{flex:1 0 100%}
 #sector-chat>.card-clean>div:last-child>div:first-child>div:first-child>span{display:none}
 #sector-chat>.card-clean>div:last-child>div:first-child>div:last-child{width:100%}
 #lawyer-chat-current-client-name{font-size:14px}#lawyer-chat-current-client-cpf{font-size:12px}
 #sector-chat form{flex-wrap:nowrap!important;padding:8px 10px!important;gap:6px}
 #sector-chat form input{min-width:0!important}
 #sector-chat form button{width:auto!important;font-size:13px!important;padding:10px!important}
 #sector-chat form button svg{display:none}
 #lawyer-chat-quick-replies>span{display:none}
}
@media(max-width:760px) and (max-height:700px){
 #view-lawyer:has(#sector-chat:not(.hidden)) .portal-page-heading{display:none}
 #sector-chat>.card-clean{grid-template-rows:80px minmax(0,1fr)}
 #sector-chat .workspace-chat-context{max-height:70px;overflow-y:auto}
 #lawyer-chat-quick-replies{padding-block:4px!important}
}
@media(min-width:761px) and (max-height:700px){
 #view-lawyer:has(#sector-chat:not(.hidden))>main{padding-top:12px!important;padding-bottom:12px!important}
 #view-lawyer:has(#sector-chat:not(.hidden)) .portal-page-heading{padding-block:8px;margin-bottom:12px!important}
 #view-lawyer:has(#sector-chat:not(.hidden)) .portal-page-heading h1{font-size:22px}
 #view-lawyer:has(#sector-chat:not(.hidden)) .portal-page-heading p{display:none}
}
.portal-shell .btn-logout{border-radius:3px;box-shadow:0 2px 4px #18232b0a!important;transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease!important}
.portal-shell .btn-logout[title="Verificação em duas etapas"]{background:#fff9e9!important;border-color:#dbc58b!important;color:#8e6a14!important}
.portal-shell .btn-logout[title="Verificação em duas etapas"]:hover{background:#f2d176!important;border-color:#c9a447!important;color:#5d4711!important;box-shadow:0 3px 8px #c9a44726!important}
.portal-shell .btn-logout[onclick="handleLogout()"]{background:#fcf2f2!important;border-color:#ddb6b6!important;color:#9f3a3a!important}
.portal-shell .btn-logout[onclick="handleLogout()"]:hover{background:#b24242!important;border-color:#b24242!important;color:#fff!important;box-shadow:0 3px 8px #b2424226!important}
#btn-clear-chat-conversation:disabled,#btn-clear-chat-conversation:disabled:hover{background:#f4f5f6!important;border-color:#d4d9dd!important;color:#8a949c!important;box-shadow:none!important;opacity:.65;cursor:not-allowed;transform:none!important}
.modal-prestige-close-btn{transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease!important}
.modal-prestige-close-btn:hover,.registration-modal .modal-prestige-close-btn:hover{background:#b24242!important;border-color:#b24242!important;color:#fff!important;box-shadow:0 3px 8px #b2424226!important}
.modal-prestige-close-btn:hover svg{color:inherit!important}
.portal-shell .command-subnav .sidebar-office-contact{align-items:flex-start;gap:10px;padding:14px 10px;border:1px solid #41494e;border-radius:3px;background:#282f34;text-decoration:none;transition:background-color .18s,border-color .18s}
.sidebar-contact-icon{display:flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0;color:#c4a56c}
.sidebar-contact-copy{display:flex;flex-direction:column;gap:6px;min-width:0}
.sidebar-contact-label{font-size:11px;letter-spacing:.6px;color:#abb5bc;font-weight:600}
.sidebar-contact-copy strong{font-size:14px;font-weight:700;color:#edf0f2;white-space:nowrap;font-variant-numeric:tabular-nums}
.sidebar-contact-action{font-size:11px;color:#c4a56c}
.portal-shell .command-subnav .sidebar-office-contact:hover{background:#30383e;border-color:#82714f}
.sidebar-office-contact:focus-visible{outline:2px solid #c4a56c;outline-offset:3px}
#view-login .workspace-text-button[aria-controls="login-pass"]{margin-top:10px!important}
.btn-nature-filter{display:inline-block;min-height:34px;padding:7px 12px;border-radius:3px;background:#fff;color:#5a6770;border:1px solid #d3d9de;box-shadow:none;transition:background-color .18s ease,border-color .18s ease,color .18s ease}
.btn-nature-filter:hover{background:#f5f2ec;border-color:#bda67e;color:#6b552e}
.btn-nature-filter.active{background:#303a42!important;border-color:#303a42!important;color:#fff!important;box-shadow:none!important}
.btn-nature-filter.active span{color:#fff!important}
.btn-nature-filter.active:hover{background:#3b464e!important;border-color:#3b464e!important}
.clean-timeline-dot{width:16px;height:16px;left:-2px;top:5px;border-radius:50%!important;background:#fff!important;border:1px solid #b8c2c9!important;box-shadow:0 0 0 4px #f5f6f7!important;display:grid;place-items:center}
.clean-timeline-dot:after{content:'';width:6px;height:6px;border-radius:50%;background:#b8c2c9}
.clean-timeline-dot.active{border-color:#b99556!important;background:#fffaf1!important;box-shadow:0 0 0 4px #f5f6f7!important}
.clean-timeline-dot.active:after{background:#ae8541}
.clean-timeline-line{width:1px!important;left:5px!important;background:#d5dade!important}
.portal-shell .portal-nav-footer{gap:5px;padding:20px 8px 4px;border-top:1px solid #41494f}
.portal-shell .portal-nav-footer a{min-height:38px;margin-top:13px;padding:10px 12px!important;border:1px solid #59636a!important;border-radius:3px!important;background:linear-gradient(120deg,#343e45,#293137)!important;color:#ddc9a3!important;box-shadow:0 2px 5px #00000012!important;font-size:13px;font-weight:700;transition:background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease!important}
.portal-shell .portal-nav-footer a:hover{background:linear-gradient(120deg,#42483e,#343b37)!important;border-color:#b99556!important;color:#f0dfbc!important;box-shadow:0 3px 10px #00000024!important}
.portal-shell .portal-nav-footer a:focus-visible{outline:2px solid #c4a56c;outline-offset:3px}
:is(#modal-manage-case,#client-view-detail)>.modal-box{display:flex;flex-direction:column;height:calc(100vh - 48px)!important;height:calc(100dvh - 48px)!important;max-height:calc(100dvh - 48px)!important;overflow:hidden!important}
:is(#modal-manage-case,#client-view-detail)>.modal-box>.modal-prestige-header,:is(#modal-manage-case,#client-view-detail)>.modal-box>.modal-footer{flex:0 0 auto}
:is(#modal-manage-case,#client-view-detail)>.modal-box>.modal-body{flex:1 1 0;min-height:0;overflow-y:auto!important;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:contain}
#view-lawyer .prestige-topbar button.user-profile-capsule{gap:12px;padding:9px 12px!important;background:#fff!important;border:1px solid #cbd2d7!important;border-radius:3px!important;transition:background-color .18s,border-color .18s!important}
#view-lawyer .prestige-topbar button.user-profile-capsule:hover{background:#f8f6f1!important;border-color:#b99556!important}
#view-lawyer .user-profile-capsule .user-avatar-square{width:36px;height:36px;background:#303a42!important;border-color:#303a42!important;color:#e3cfaa!important;border-radius:3px!important;font-weight:700}
.lawyer-profile-copy{display:flex;flex-direction:column;gap:4px}
#view-lawyer .prestige-topbar button.user-profile-capsule{padding:6px 10px!important;gap:10px;min-height:0;height:46px;box-sizing:border-box}
#view-lawyer .user-profile-capsule .lawyer-profile-eyebrow{display:none!important}
#view-lawyer .user-profile-capsule .user-avatar-square{width:30px;height:30px}
#view-lawyer .lawyer-profile-copy{gap:3px}
#view-lawyer .user-profile-capsule .lawyer-profile-eyebrow{font-size:11px;font-weight:700;letter-spacing:1px;color:#947a4c!important}
#view-lawyer #topbar-lawyer-name{font-size:13px!important;color:#29363f!important}
#view-lawyer #topbar-lawyer-oab{font-size:12px!important;color:#77858f!important}
#modal-lawyer-profile>.modal-box{width:100%;max-width:620px!important;max-height:calc(100dvh - 48px)!important;display:flex;flex-direction:column;overflow:hidden!important;border-radius:3px!important}
#modal-lawyer-profile .modal-prestige-header{flex-shrink:0;background:#202529!important;border-bottom:1px solid #b99556!important;padding:18px 20px!important}
#modal-lawyer-profile .modal-prestige-title{color:#fff!important;font-size:19px!important;font-weight:700}
#modal-lawyer-profile .modal-prestige-sub{color:#c4cdd3!important}
#modal-lawyer-profile .modal-prestige-icon-capsule{background:#ffffff0c!important;border-color:#ffffff25!important;border-radius:3px!important}
#modal-lawyer-profile .modal-prestige-icon-capsule svg{color:#dbc59f!important}
#modal-lawyer-profile .modal-prestige-close-btn{background:#ffffff0c!important;border-color:#ffffff25!important;color:#fff!important}
#modal-lawyer-profile .modal-prestige-close-btn:hover{background:#b24242!important;border-color:#b24242!important}
#modal-lawyer-profile form{display:flex;flex-direction:column;min-height:0}
#modal-lawyer-profile .lawyer-profile-body{overflow-y:auto;min-height:0;padding:18px 20px!important;display:flex;flex-direction:column;gap:12px;scrollbar-gutter:stable}
.profile-form-section{border:1px solid #d7dee3;border-radius:3px;padding:14px;background:#fff;box-shadow:0 2px 5px #26364004}
.profile-form-section>header{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.profile-form-section>header>span{display:grid;place-items:center;width:28px;height:28px;border:1px solid #dbc9aa;border-radius:3px;font-size:12px;font-weight:700;color:#94713a}
.profile-form-section h4{font-size:14px;font-weight:700;color:#34434e;margin:0}
.profile-form-section header p{font-size:13px;color:#7b8a95;margin:4px 0 0}
.profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.profile-form-grid label{display:flex;flex-direction:column;gap:7px;color:#536570;font-size:13px;font-weight:600;min-width:0}
.profile-form-grid .profile-field-wide{grid-column:1/-1}
.profile-form-grid input{font-size:13px!important;min-height:43px!important;background:#fbfcfd!important;border-color:#ccd7df!important;border-radius:3px!important}
.profile-access-section{border:1px solid #d7dee3;border-radius:3px;padding:16px 20px;background:#f1f4f6}
.profile-access-section summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;font-size:14px;font-weight:700;color:#41535f}
.profile-access-section summary::-webkit-details-marker{display:none}
.profile-access-section summary small{font-size:12px;font-weight:500;color:#788993}
.profile-access-section summary:after{content:'+';font-size:17px;color:#927444}
.profile-access-section[open] summary:after{content:'−'}
.profile-access-section>p{margin:14px 0;font-size:13px;color:#788993}
#modal-lawyer-profile .modal-footer{flex-shrink:0;background:#fff!important;padding:14px 20px!important}
@media(max-width:760px){#modal-lawyer-profile>.modal-box{max-height:calc(100dvh - 20px)!important}#modal-lawyer-profile .modal-prestige-header{padding:18px 20px!important}#modal-lawyer-profile .modal-prestige-title{font-size:19px!important}#modal-lawyer-profile .lawyer-profile-body{padding:18px 20px!important}.profile-form-grid{grid-template-columns:1fr}.profile-form-section{padding:14px}.profile-access-section{padding:14px}.profile-access-section summary{flex-wrap:wrap}#view-lawyer .user-profile-capsule .lawyer-profile-eyebrow{display:none}#view-lawyer #topbar-lawyer-name{font-size:13px!important}#view-lawyer .prestige-topbar button.user-profile-capsule{gap:8px;padding:7px 9px!important}}
@media(max-width:760px){:is(#modal-manage-case,#client-view-detail)>.modal-box{height:calc(100vh - 20px)!important;height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important}}
.client-case-new{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid #a4cfb5;border-radius:3px;background:#eaf6ee;color:#237448;font-size:11px;letter-spacing:.9px;font-weight:800;animation:client-update-pulse 1.8s ease-in-out infinite}
.client-case-new:before{content:'';width:5px;height:5px;border-radius:50%;background:#288954}
@media(min-width:761px){#view-client.portal-shell{--portal-sidebar-width:220px}#client-tab-cases-btn{white-space:nowrap!important}#client-tab-cases-btn>span:not(.tab-nav-badge){white-space:nowrap}}
@keyframes client-update-pulse{0%,100%{opacity:1}50%{opacity:.4}}
@media(prefers-reduced-motion:reduce){.client-case-new{animation:none}}
#view-client:has(#client-tab-chat:not(.hidden)){flex:0 0 auto!important;height:100vh;height:100dvh;min-height:0;overflow:hidden}
#view-client:has(#client-tab-chat:not(.hidden))>header{flex-shrink:0}
#view-client:has(#client-tab-chat:not(.hidden))>main{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;padding-bottom:calc(32px + env(safe-area-inset-bottom,0px))!important}
#view-client:has(#client-tab-chat:not(.hidden))>main>div:not(#client-tab-chat),#view-client:has(#client-tab-chat:not(.hidden)) .portal-page-heading{flex-shrink:0}
#client-tab-chat:not(.hidden){display:flex;flex:1;min-height:0}
#client-tab-chat>.card-clean{display:flex;flex-direction:column;flex:1;min-height:0;width:100%}
#client-tab-chat>.card-clean>div:not(#client-chat-messages),#client-tab-chat form{flex-shrink:0}
#client-chat-messages{height:auto!important;min-height:0!important;flex:1;overflow-y:auto}
body:has(#view-client:not(.hidden) #client-tab-chat:not(.hidden))>footer{display:none}
@media(max-width:760px){#view-client:has(#client-tab-chat:not(.hidden))>main{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))!important}#client-tab-chat form{flex-wrap:nowrap!important}#client-tab-chat form input{min-width:0!important}#client-tab-chat form button{width:auto!important;padding-inline:12px!important}#client-tab-chat form button svg{display:none}#client-tab-chat>.card-clean>div:first-child{flex-wrap:wrap;gap:8px}}
@media(max-height:700px){#view-client:has(#client-tab-chat:not(.hidden)) .portal-page-heading{padding-block:10px;margin-bottom:12px!important}#view-client:has(#client-tab-chat:not(.hidden)) .portal-page-heading p{display:none}}
/* Sidebar controls: one geometry, one creation style, no layout movement. */
.portal-shell .command-subnav .sidebar-button{
 display:flex;position:relative;isolation:isolate;align-items:center;justify-content:flex-start;
 width:100%;height:44px;min-height:44px;box-sizing:border-box;flex-shrink:0;gap:10px;
 padding:0 12px!important;border:1px solid transparent!important;border-radius:3px!important;
 font-family:var(--font-body)!important;font-size:13px!important;font-weight:600!important;
 line-height:1.2!important;letter-spacing:0!important;text-align:left;white-space:nowrap;
 background:transparent!important;color:#c4cdd2!important;box-shadow:none!important;
 transform:none!important;transition:background-color .2s ease,color .2s ease,border-color .2s ease!important;
}
.portal-shell .command-subnav .sidebar-button>svg{width:16px;height:16px;min-width:16px;flex:0 0 16px;color:inherit!important;display:block!important}
.portal-shell .command-subnav .sidebar-button>span:not(.tab-nav-badge){min-width:0}
.portal-shell .command-subnav .sidebar-button:hover{background:#303a41!important;color:#f6f1e8!important;border-color:#4c595f!important}
.portal-shell .command-subnav .sidebar-button.active{background:#30393f!important;color:#fff!important;border:1px solid #526068!important;box-shadow:inset 2px 0 #c4a56c!important}
.portal-shell .command-subnav .sidebar-button-create{justify-content:flex-start;background:#3c5e7740!important;border-color:#577184!important;color:#dce7ee!important;box-shadow:0 2px 5px #0002!important}
.portal-shell .command-subnav .sidebar-button-create:hover{background:#d9bd86!important;border-color:#e6cca0!important;color:#292f33!important}
.portal-shell .command-subnav .portal-nav-footer{padding-inline:0}.portal-shell .command-subnav .sidebar-button-office{justify-content:center;background:#2a3339!important;border-color:#4c595f!important;color:#dfcba6!important}
.portal-shell .command-subnav .sidebar-button:focus-visible{outline:2px solid #e5c98f;outline-offset:3px}
.portal-shell .command-subnav .sidebar-shine{position:relative;overflow:hidden;isolation:isolate;transform:none!important}
.portal-shell .command-subnav .sidebar-shine::before{content:none!important}
.portal-shell .command-subnav .sidebar-shine::after{content:''!important;position:absolute!important;inset:0!important;width:auto!important;height:auto!important;border:0!important;pointer-events:none!important;background:linear-gradient(105deg,transparent 25%,#fff3 49%,transparent 73%)!important;opacity:1!important;transform:translateX(-130%)!important;transition:transform .65s ease!important;box-shadow:none!important}
.portal-shell .command-subnav .sidebar-shine:hover::after{transform:translateX(130%)!important}
@media(max-width:1000px){.portal-shell .command-subnav .sidebar-button{font-size:14px!important;padding-inline:10px!important;gap:8px}}
@media(max-width:760px){
 .portal-shell .command-subnav .sidebar-button{width:auto;flex:1;min-width:0;justify-content:center;color:#596a74!important;white-space:normal;font-size:14px!important}
 .portal-shell .command-subnav .sidebar-button:hover{background:#edf1f3!important;border-color:#cad3d9!important;color:#263b47!important}
 .portal-shell .command-subnav .sidebar-button.active{background:#e8edef!important;color:#263b47!important;border-color:#c6d0d7!important;box-shadow:inset 0 -2px #b99556!important}
 .portal-shell .command-subnav .sidebar-button-create{background:#3c5e7714!important;border-color:#b8c9d4!important;color:#3d5b6e!important;white-space:nowrap}
 .portal-shell .command-subnav .sidebar-button-create:hover{background:#d9bd86!important;border-color:#e6cca0!important;color:#292f33!important}
}
@media(max-width:440px){.portal-shell .command-subnav .sidebar-button.tab-nav-button{padding-inline:8px!important;gap:6px}.portal-shell .command-subnav .sidebar-button.tab-nav-button>svg{display:none!important}}
@media(prefers-reduced-motion:reduce){.portal-shell .command-subnav .sidebar-shine::after{display:none!important}.portal-shell .command-subnav .sidebar-button{transition:none!important}}
.portal-shell .command-subnav .portal-nav-heading{text-align:center}
.portal-shell .command-subnav .sidebar-navigation{padding-bottom:18px;border-bottom:1px solid #41484e}
.portal-shell .command-subnav .sidebar-actions{padding-top:10px}
.portal-shell .command-subnav .portal-nav-footer a{margin-top:0!important}
@media(max-width:760px){.portal-shell .command-subnav .sidebar-navigation{padding-bottom:12px;border-bottom-color:#d7dfe4}.portal-shell .command-subnav .sidebar-actions{padding-top:4px}}
/* Account drawer. Closed content is hidden and inert. */
/* Compact profile, keeping every original field and submit handler. */
#modal-lawyer-profile .profile-form-section header p{display:none}
#modal-lawyer-profile .profile-form-grid{gap:12px}
#modal-lawyer-profile .input-clean{min-height:38px;padding:8px 10px!important;font-size:14px!important}
#modal-lawyer-profile .profile-access-section{padding:12px 14px}
/* Client selector. */
#modal-client-preview>.modal-box{width:100%;max-width:540px!important;max-height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden;border-radius:3px!important}
#modal-client-preview .modal-prestige-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 22px!important;flex-shrink:0}
#modal-client-preview .modal-prestige-title{font-size:19px!important;text-transform:none!important;letter-spacing:0!important}
#modal-client-preview .modal-body{padding:20px 22px;min-height:0;overflow:auto}
#preview-client-search{margin-top:7px}
.preview-client-list{display:grid;gap:8px;margin-top:16px}
.preview-client-option{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;padding:14px 16px;border:1px solid #d6dfe4;border-radius:3px;background:#fff;text-align:left;transition:background .18s,border-color .18s}
.preview-client-option:hover{background:#fbf8f1;border-color:#c7b184}
.preview-client-option>span{font-size:13px;font-weight:600;color:#34434d}
.preview-client-option small{font-size:13px;color:#8a979e;white-space:nowrap}
.preview-client-option[hidden]{display:none!important}
#modal-client-preview .registration-note{margin-top:16px;font-size:13px;color:#87949e}
/* Same client interface; only mutation controls are disabled. */
#client-preview-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff9ea;border-bottom:1px solid #e4d8b6;padding:14px 26px}
#client-preview-bar[hidden]{display:none!important}
#client-preview-bar>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#client-preview-bar span{font-size:11px;letter-spacing:1px;font-weight:700;color:#9a7b36}
#client-preview-bar strong{font-size:13px;color:#75613a}
#client-preview-bar small{font-size:12px;color:#9d8d70}
#client-preview-bar button{border:1px solid #cdb888;border-radius:3px;background:transparent;color:#876c36;padding:9px 13px;white-space:nowrap;font-size:13px;font-weight:600}
#client-preview-bar button:hover{background:#f6ecd3}
.client-preview-active #view-client :is(button[title="Verificação em duas etapas"],.btn-logout){display:none!important}
@media(max-width:760px){#client-preview-bar{padding:12px 16px;align-items:flex-start}#client-preview-bar>div{display:grid;gap:4px}#client-preview-bar small{font-size:11px}#client-preview-bar button{font-size:12px;padding:8px 10px}#modal-client-preview .modal-body{padding:18px}}
/* Compact account menu, anchored directly below its trigger. */
.portal-shell .prestige-topbar{overflow:visible!important;position:relative;z-index:45}
.account-menu-anchor{position:relative;display:inline-flex;min-width:0}
.account-dropdown{position:absolute;top:calc(100% + 7px);right:0;width:190px;max-width:calc(100vw - 24px);padding:5px;background:#fff;border:1px solid #d5dce0;border-top-color:#c7b184;border-radius:3px;box-shadow:0 7px 18px #1d2c371c;z-index:60;opacity:0;transform:translateY(-7px) scaleY(.94);transform-origin:top right;transition:opacity .15s ease,transform .15s ease;color:#3b4850;font-family:var(--font-body)}
.account-dropdown[hidden]{display:none!important}
.account-drawer-open .account-dropdown{opacity:1;transform:translateY(0) scaleY(1)}
.account-dropdown>button{display:flex;align-items:center;gap:10px;width:100%;height:36px;padding:0 10px;border:1px solid transparent;border-radius:3px;background:transparent;font-family:var(--font-body);font-size:14px;font-weight:600;color:#3b4850;text-align:left;transition:background .15s,border-color .15s}
.account-dropdown>button+button{margin-top:3px}
.account-dropdown>button:hover,.account-dropdown>button:focus-visible{background:#f8f4eb;border-color:#e3d5b9;outline:none}
.account-dropdown svg{width:15px;height:15px;flex:0 0 15px;color:#9a8050}
@media(prefers-reduced-motion:reduce){.account-dropdown{transition:none}}
/* Shared popup system: compact geometry, sidebar-colored headers, outline actions. */
:is(.modal-backdrop,#office-security-dialog){--popup-ink:#202529;--popup-red:#b3434c;--popup-line:#d8dfe2;--popup-gap:12px}
:is(.modal-backdrop,#office-security-dialog) :is(.modal-prestige-header,.office-security-heading){background:#202529!important;background-image:none!important;color:#fff!important;padding:16px 20px!important;border-bottom:1px solid #7e704f!important;box-shadow:none!important;flex-shrink:0}
:is(.modal-backdrop,#office-security-dialog) :is(.modal-prestige-title,.modal-prestige-header h2,.modal-prestige-header h3,.office-security-heading h2){color:#f4f6f7!important;font-family:var(--font-body)!important;font-size:18px!important;font-weight:600!important;line-height:1.3!important;letter-spacing:0!important;text-transform:none!important}
:is(.modal-backdrop,#office-security-dialog) :is(.modal-prestige-sub,.office-security-heading p){color:#b8c4cb!important;font-size:13px!important;line-height:1.5!important;margin-top:4px!important}
:is(.modal-backdrop,#office-security-dialog) :is(.modal-prestige-icon-capsule,.office-security-icon){width:34px!important;height:34px!important;min-width:34px!important;background:#ffffff08!important;border:1px solid #ffffff29!important;color:#d4be91!important;border-radius:3px!important;box-shadow:none!important}
:is(.modal-backdrop,#office-security-dialog) :is(.modal-prestige-icon-capsule,.office-security-icon) svg{width:18px!important;height:18px!important;color:inherit!important}
:is(.modal-backdrop,#office-security-dialog) .modal-body{padding:18px 20px!important;min-height:0;overflow-y:auto}
:is(.modal-backdrop,#office-security-dialog) .modal-footer{padding:12px 20px!important;gap:10px!important;background:#fff!important;border-top:1px solid var(--popup-line)!important;flex-shrink:0}
:is(.modal-backdrop,#office-security-dialog) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select){height:34px!important;min-height:34px!important;padding:6px 10px!important;font-family:var(--font-body)!important;font-size:14px!important;line-height:20px!important;border-radius:3px!important;box-sizing:border-box}
:is(.modal-backdrop,#office-security-dialog) textarea{min-height:64px!important;height:auto;padding:8px 10px!important;font-family:var(--font-body)!important;font-size:14px!important;line-height:18px!important;border-radius:3px!important}
:is(.modal-backdrop,#office-security-dialog) label{font-size:13px!important;line-height:1.45!important;font-weight:600}
:is(.modal-backdrop,#office-security-dialog) :is(.registration-fields,.profile-form-grid){gap:12px!important}
:is(.modal-backdrop,#office-security-dialog) .registration-section{padding:14px!important;margin-bottom:12px!important;box-shadow:none!important}
:is(.modal-backdrop,#office-security-dialog) .registration-section header{margin-bottom:12px!important;gap:8px!important}
:is(.modal-backdrop,#office-security-dialog) .registration-section h4{font-size:13px!important;font-weight:600!important}
:is(.modal-backdrop,#office-security-dialog) :is(.registration-note,.profile-form-section header p){font-size:12px!important}
:is(.modal-backdrop,#office-security-dialog) .popup-password-field{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:6px 8px;width:100%;max-width:420px;align-items:start}:is(.modal-backdrop,#office-security-dialog) .popup-password-field>label{grid-column:1/-1;margin-bottom:0!important}:is(.modal-backdrop,#office-security-dialog) .popup-password-field>input{margin:0!important;align-self:start}
:is(.modal-backdrop,#office-security-dialog) .popup-password-field>.password-reveal{margin:0!important;height:34px!important;min-height:34px!important;max-height:34px!important;padding:0 10px!important;white-space:nowrap!important;align-self:start;box-sizing:border-box}
.registration-layout{grid-template-columns:minmax(0,1fr)!important}
#modal-new-client>.modal-box{width:100%;max-width:640px!important}
#modal-new-case>.modal-box{width:100%;max-width:820px!important}
#modal-edit-update>.modal-box{width:100%;max-width:680px!important}
#modal-edit-process>.modal-box{width:100%;max-width:760px!important}
#modal-lawyer-profile .lawyer-profile-body{gap:12px!important}
#modal-lawyer-profile .profile-form-section{padding:14px!important}
#modal-lawyer-profile .profile-form-section>header{margin-bottom:10px!important}
#modal-lawyer-profile .profile-access-section{padding:12px 14px!important}
:is(.modal-backdrop,#office-security-dialog) form[class*="space-y-"]:not(.registration-form){display:flex!important;flex-direction:column;gap:10px!important}:is(.modal-backdrop,#office-security-dialog) form[class*="space-y-"]:not(.registration-form)>:not([hidden]){margin-top:0!important;margin-bottom:0!important}
.modal-box>.registration-form{min-height:0;display:flex;flex-direction:column;overflow:hidden}
#modal-first-login-password form{padding:18px 20px!important}
#modal-first-login-password form>div:first-child{padding:12px!important}
#office-security-dialog{padding:20px!important;background:#fff!important}
#office-security-dialog .office-security-heading{margin:-20px -20px 16px!important}
#office-security-dialog #office-mfa-status{padding:10px 12px!important;font-size:14px!important;line-height:1.5!important;margin-bottom:12px!important}
#office-security-dialog .office-security-actions{margin-top:14px!important;padding-top:12px!important;gap:10px!important;justify-content:flex-end}
#office-security-dialog .office-security-actions .popup-button{min-width:120px}
/* Confirmation and cancellation use the same geometry and light sweep. */
:is(.modal-backdrop,#office-security-dialog) .popup-button{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:8px!important;height:34px!important;min-height:34px!important;align-self:end;box-sizing:border-box;padding:7px 12px!important;border:1px solid #a3afb7!important;border-radius:3px!important;background:transparent!important;background-image:none!important;color:#202529!important;font-family:var(--font-body)!important;font-size:14px!important;font-weight:600!important;line-height:18px!important;letter-spacing:0!important;text-decoration:none!important;box-shadow:none!important;transform:none!important;transition:background-color .18s,color .18s,border-color .18s!important}
:is(.modal-backdrop,#office-security-dialog) .popup-button::before{content:none!important}
:is(.modal-backdrop,#office-security-dialog) .popup-button::after{content:''!important;position:absolute!important;inset:0!important;width:auto!important;height:auto!important;border:0!important;pointer-events:none!important;background:linear-gradient(105deg,transparent 25%,#fff4 49%,transparent 73%)!important;opacity:1!important;transform:translateX(-130%)!important;transition:transform .55s ease!important;box-shadow:none!important}
:is(.modal-backdrop,#office-security-dialog) .popup-button:not(:disabled):hover::after{transform:translateX(130%)!important}
:is(.modal-backdrop,#office-security-dialog) .popup-button-confirm{color:#202529!important;border-color:#75828a!important;background:transparent!important}
:is(.modal-backdrop,#office-security-dialog) .popup-button-confirm:not(:disabled):hover{background:#202529!important;border-color:#202529!important;color:#fff!important}
:is(.modal-backdrop,#office-security-dialog) .popup-button-close{color:#b3434c!important;border-color:#d8a6ac!important;background:transparent!important}
:is(.modal-backdrop,#office-security-dialog) .popup-button-close:not(:disabled):hover{background:#b3434c!important;border-color:#b3434c!important;color:#fff!important}
:is(.modal-backdrop,#office-security-dialog) .modal-prestige-header .popup-button-close{color:#f0b8bd!important;border-color:#a66970!important}
:is(.modal-backdrop,#office-security-dialog) .modal-prestige-header .popup-button-close:not(:disabled):hover{color:#fff!important;border-color:#bd565e!important;background:#b3434c!important}
:is(.modal-backdrop,#office-security-dialog) .popup-button-tab:not(:disabled):hover{background:#e9edef!important;color:#202529!important}
:is(.modal-backdrop,#office-security-dialog) .popup-button :is(span,strong,small){color:inherit!important}
:is(.modal-backdrop,#office-security-dialog) .popup-button-tab:is(.tab-nature-grain-active,[aria-pressed="true"]){background:#e9edef!important;border-color:#91a0a9!important;color:#202529!important}
:is(.modal-backdrop,#office-security-dialog) .popup-button svg{width:15px!important;height:15px!important;color:inherit!important}
:is(.modal-backdrop,#office-security-dialog) .popup-button-icon{width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;padding:6px!important}
:is(.modal-backdrop,#office-security-dialog) .modal-footer .popup-button{min-width:120px}
:is(.modal-backdrop,#office-security-dialog) .popup-button:focus-visible{outline:2px solid #b49b69;outline-offset:3px}
:is(.modal-backdrop,#office-security-dialog) .popup-button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:760px){.modal-backdrop{padding:10px!important}:is(.modal-backdrop,#office-security-dialog) :is(.modal-body,.modal-prestige-header){padding:14px 16px!important}:is(.modal-backdrop,#office-security-dialog) .modal-footer{padding:12px 16px!important}:is(.modal-backdrop,#office-security-dialog) :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),select){height:38px!important;min-height:38px!important;font-size:16px!important}:is(.modal-backdrop,#office-security-dialog) .popup-button{height:38px!important;min-height:38px!important}:is(.modal-backdrop,#office-security-dialog) .popup-button-icon{height:30px!important;min-height:30px!important}:is(.modal-backdrop,#office-security-dialog) .registration-fields{grid-template-columns:1fr!important}.registration-layout{display:block!important;overflow:auto!important}}
@media(prefers-reduced-motion:reduce){:is(.modal-backdrop,#office-security-dialog) .popup-button::after{display:none!important}}









/* Nature selectors retain their own color and selected state. */
#modal-new-case #tab-nature-judicial{--nature-color:#315f9b;border-color:var(--nature-color)!important;background:transparent!important;color:var(--nature-color)!important}
#modal-new-case #tab-nature-extrajudicial{--nature-color:#8863a6;border-color:var(--nature-color)!important;background:transparent!important;color:var(--nature-color)!important}
#modal-new-case :is(#tab-nature-judicial,#tab-nature-extrajudicial).tab-nature-grain-active{background:var(--nature-color)!important;color:#fff!important}
#modal-new-case #tab-nature-judicial:not(.tab-nature-grain-active):hover{background:#315f9b12!important}
#modal-new-case #tab-nature-extrajudicial:not(.tab-nature-grain-active):hover{background:#8863a612!important}
#modal-new-client .registration-section:has(#modal-cli-pass) .registration-note{margin-top:8px!important}
@media(max-width:760px){:is(.modal-backdrop,#office-security-dialog) .popup-password-field>input{margin:0!important;align-self:start}
:is(.modal-backdrop,#office-security-dialog) .popup-password-field>.password-reveal{height:38px!important;min-height:38px!important;max-height:38px!important}}
/* Office case center. No sidebar, account-menu or popup styles. */
#view-lawyer:has(#sector-cases:not(.hidden))>.portal-page-heading{margin-bottom:16px}
#view-lawyer:has(#sector-cases:not(.hidden))>main{padding-top:24px!important}
:is(#view-lawyer,#view-client) .portal-page-heading{min-height:112px;padding:20px 24px!important;margin-bottom:18px!important;border:1px solid #d6dfe4!important;border-left:2px solid #b99556!important;border-radius:3px;background:#fff!important;box-shadow:0 2px 5px #243c4704!important}
:is(#view-lawyer,#view-client) .portal-page-heading h1{font-size:26px!important;font-weight:600!important;letter-spacing:-.5px;line-height:1.3}
:is(#view-lawyer,#view-client) .portal-page-heading p{margin-top:6px;color:#7b8992;font-size:14px}
:is(#view-lawyer,#view-client) .portal-page-heading .portal-heading-mark{display:none}
#sector-cases:not(.hidden){display:flex;flex-direction:column;gap:14px}
#sector-cases>*{margin-top:0!important;margin-bottom:0!important;min-width:0}
#sector-cases .office-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
#sector-cases .office-stat{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:14px;min-height:76px;padding:16px 18px;background:#fff;border:1px solid #d6dfe4;border-radius:3px;box-shadow:0 2px 4px #243b4503}
#sector-cases .office-stat>div:first-child{display:contents}
#sector-cases .office-stat-label{grid-column:2;grid-row:1;font-size:12px;letter-spacing:.45px;font-weight:600;text-transform:uppercase;color:#6c7d88;line-height:1.5}
#sector-cases .office-stat-value{grid-column:3;grid-row:1;font-size:25px;font-weight:600;line-height:1;color:#263842;justify-self:end}
#sector-cases .office-stat-icon{grid-column:1;grid-row:1;width:34px;height:34px;display:grid;place-items:center;border:1px solid #e1e6e8;background:#f8faf9;border-radius:3px;color:#a18b60}
#sector-cases .office-stat-icon svg{width:19px;height:19px}
#sector-cases .workspace-office-overview{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:10px 22px;padding:14px 18px;background:#fff;border:1px solid #d6dfe4;border-radius:3px}
#sector-cases .office-priority-heading .portal-kicker{font-size:11px;letter-spacing:1px;color:#a18b60}
#sector-cases .office-priority-heading h3{font-size:15px;line-height:1.3;font-weight:600;color:#344b57;margin-top:5px}
#sector-cases .office-priority-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#sector-cases .office-priority-metric{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;text-align:left;padding:7px 12px;border:1px solid #e1e7e9;border-radius:3px;background:#fcfdfd;transition:background .18s,border-color .18s}
#sector-cases .office-priority-metric:hover{background:#f6f3ec;border-color:#c6b38a}
#sector-cases .office-priority-metric>span{font-size:13px;color:#5d727e;line-height:1.35;font-weight:600}
#sector-cases .office-priority-metric small{display:block;font-size:11px;line-height:1.4;color:#8b99a1;margin-top:3px;font-weight:400}
#sector-cases .office-priority-metric strong{font-size:21px;line-height:1;font-weight:600;color:#8a9aa4}
#sector-cases .office-priority-metric[data-attention="true"] strong{color:#a17b3d}
#sector-cases .office-review-details{grid-column:1/-1;border-top:1px solid #e7ecee;padding-top:9px;font-size:12px;color:#7c8d98}
#sector-cases .office-review-details>summary{cursor:pointer;width:max-content;max-width:100%;line-height:1.5;color:#6b7f8b}
#sector-cases .workspace-review-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:12px}
#sector-cases .office-review-link{display:flex;align-items:center;gap:10px;text-align:left;border:1px solid #dce4e7;background:transparent;border-radius:3px;min-height:34px;padding:7px 10px;font-size:12px;color:#657985}
#sector-cases .office-review-link:hover{background:#f0f4f5;border-color:#a1b2bd}
#sector-cases .office-review-link strong{font-weight:600;color:#38515e}
#sector-cases .office-review-link span{color:#84939c}
/* Unified filters, with their existing IDs and native event handlers. */
#sector-cases .office-filter-panel{display:grid;grid-template-columns:minmax(190px,1.2fr) minmax(260px,1.3fr) minmax(150px,1fr) minmax(150px,1fr);gap:14px;align-items:end;padding:14px 16px;background:#fff;border:1px solid #d6dfe4;border-radius:3px}
#sector-cases .office-filter-panel label,#sector-cases .office-control-label{display:block;margin:0 0 6px;font-size:12px;line-height:1.3;font-weight:600;color:#778995}
#sector-cases .office-filter-panel :is(input,select){display:block;width:100%!important;height:36px!important;min-height:36px!important;margin:0!important;padding:7px 10px!important;background:#fff;border:1px solid #cbd6dd;border-radius:3px;font:14px/20px var(--font-body);color:#385361;box-shadow:none}
#sector-cases .office-filter-panel :is(input,select):focus{outline:none;border-color:#91a8b6;box-shadow:0 0 0 2px #91a8b614}
#sector-cases .office-search-field{position:relative}
#sector-cases .office-search-field svg{position:absolute;left:10px;top:10px;width:16px;height:16px;color:#8a9ca7;pointer-events:none}
#sector-cases .office-search-field input{padding-left:33px!important}
#sector-cases .office-search-field input::placeholder{color:#99a6ae}
#sector-cases .office-nature-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
#sector-cases .office-nature-options .btn-nature-filter{min-width:0;height:36px;min-height:36px;padding:7px 6px!important;display:inline-flex;align-items:center;justify-content:center;gap:3px;border:1px solid #cbd6dd!important;border-radius:3px!important;background:transparent!important;color:#6f808b!important;font:600 13px/18px var(--font-body)!important;white-space:nowrap;box-shadow:none!important;transition:background .18s,color .18s,border-color .18s}
#sector-cases .office-nature-options .btn-nature-filter:hover{background:#f0f4f5!important;border-color:#a6b6bf!important}
#sector-cases .office-nature-options .btn-nature-filter.active{background:#202529!important;border-color:#202529!important;color:#fff!important}
#sector-cases .office-nature-options .btn-nature-filter[data-nature="judicial"]{border-color:#abc1db!important;color:#315f9b!important}
#sector-cases .office-nature-options .btn-nature-filter[data-nature="judicial"].active{background:#315f9b!important;border-color:#315f9b!important;color:#fff!important}
#sector-cases .office-nature-options .btn-nature-filter[data-nature="extrajudicial"]{border-color:#c8b6d8!important;color:#8863a6!important}
#sector-cases .office-nature-options .btn-nature-filter[data-nature="extrajudicial"].active{background:#8863a6!important;border-color:#8863a6!important;color:#fff!important}
#sector-cases .office-focus-bar{display:block;margin:0;padding:0;border:0;background:none}
#sector-cases .office-list-toolbar{display:flex;align-items:center;gap:14px;min-height:24px;padding:0 2px}
#sector-cases .office-list-toolbar h2{font-size:14px;font-weight:600;color:#425b69}
#sector-cases #office-results{margin-left:auto;font-size:13px;color:#91a0a9}
#sector-cases #office-reset-filters{min-height:30px;padding:4px 9px;border:1px solid #d1dce1;border-radius:3px;background:transparent;color:#718793;font-size:12px}
#sector-cases #office-reset-filters:hover{background:#fff;border-color:#9fb1bc}
#sector-cases #office-reset-filters[hidden]{display:none!important}
/* Process dossier cards. Nature, client and current status are distinct. */
#sector-cases .office-case-list{display:grid;gap:14px}
#sector-cases .office-case{--case-accent:#315f9b;display:block;padding:0;margin:0;background:#fff;border:1px solid #d3dee4;border-radius:3px;box-shadow:0 2px 5px #243c4704;overflow:hidden;transition:border-color .18s,box-shadow .18s}
#sector-cases .office-case[data-nature="extrajudicial"]{--case-accent:#8863a6}
#sector-cases .office-case:hover{border-color:#a3b5c1;box-shadow:0 4px 12px #243c4708}
#sector-cases .office-case-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 20px;border-bottom:1px solid #e8edef;box-shadow:inset 2px 0 var(--case-accent)}
#sector-cases .office-case-heading{display:flex;align-items:center;gap:12px;min-width:0}
#sector-cases .office-case-nature{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border:1px solid #d7e2ed;background:#f6f9fc;border-radius:3px;color:var(--case-accent);font-size:11px;letter-spacing:.4px;font-weight:600;text-transform:uppercase;flex-shrink:0}
#sector-cases .office-case[data-nature="extrajudicial"] .office-case-nature{background:#faf7fc;border-color:#e2d8eb}
#sector-cases .office-case h3{margin:0;font-size:16px;font-weight:600;letter-spacing:-.2px;line-height:1.4;color:#2d4654;overflow-wrap:anywhere}
#sector-cases .office-case-status{display:inline-block;border:1px solid #dce5e9;border-radius:3px;background:#f7fafb;padding:4px 8px;font-size:12px;color:#6d828e;line-height:1.4;text-align:center;flex-shrink:0}
#sector-cases .office-case[data-status="concluido"] .office-case-status{color:#438162;border-color:#c7dfd0;background:#f2f8f3}
#sector-cases .office-case[data-status="aguardando_cliente"] .office-case-status{color:#a38242;border-color:#e5d8b6;background:#fcfaf2}
#sector-cases .office-case-body{display:grid;grid-template-columns:1.15fr 1fr 1.15fr;gap:20px;padding:17px 20px}
#sector-cases .office-case-body>div{display:grid;align-content:start;gap:5px;min-width:0}
#sector-cases .office-field-label{font-size:11px;font-weight:600;letter-spacing:.35px;color:#91a0aa;text-transform:uppercase}
#sector-cases .office-case-client strong{font-size:14px;font-weight:600;color:#344f5c;line-height:1.4}
#sector-cases .office-case-client p{font-size:14px;color:#7e909b;line-height:1.5}
#sector-cases .office-case-stage strong{font-size:14px;font-weight:600;color:#58717f;line-height:1.5}
#sector-cases .office-case-stage small{font-size:12px;color:#8e9ca5;line-height:1.5}
#sector-cases .office-case-latest time{font-size:13px;font-weight:600;color:#5f7d8d;line-height:1.5}
#sector-cases .office-case-latest p{font-size:14px;color:#687f8d;line-height:1.5}
#sector-cases .office-case-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:11px 20px;background:#fafcfc;border-top:1px solid #e8edef}
#sector-cases .office-pending{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#90a198;line-height:1.4}
#sector-cases .office-pending::before{content:'';width:4px;height:4px;border-radius:50%;background:currentColor;flex-shrink:0}
#sector-cases .office-pending.awaiting{color:#a2864e}
#sector-cases .office-pending.review{color:#6c7fb1}
#sector-cases .office-case-actions{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:7px;min-width:410px}
#sector-cases .office-case-button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 13px;border:1px solid #cbd6dc;border-radius:3px;background:transparent;color:#6b808e;font:600 13px/18px var(--font-body);white-space:nowrap;box-shadow:none;position:relative;overflow:hidden;transition:background .18s,color .18s,border-color .18s,box-shadow .18s}
#sector-cases .office-case-button-primary{--action-color:#315f9b;--action-border:#a4bddd;--action-glow:#315f9b26}
#sector-cases .office-case-button-edit{--action-color:#8b681a;--action-border:#d9bf7d;--action-glow:#d6ad392b;--action-fill:#e3c15d;--action-ink:#493b13}
#sector-cases .office-case-button-chat{--action-color:#28754e;--action-border:#9ccbb0;--action-glow:#28754e26}
#sector-cases .office-case-button:is(.office-case-button-primary,.office-case-button-edit,.office-case-button-chat){border-color:var(--action-border);color:var(--action-color)}
#sector-cases .office-case-button:hover{background:var(--action-fill,var(--action-color,#202529));color:var(--action-ink,#fff);border-color:var(--action-fill,var(--action-color,#202529));box-shadow:0 2px 10px var(--action-glow,#20252920)}
#sector-cases .office-case-button::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 25%,#fff4 49%,transparent 73%);transform:translateX(-130%);transition:transform .55s}
#sector-cases .office-case-button:hover::after{transform:translateX(130%)}
#sector-cases :is(button,input,select,summary):focus-visible{outline:2px solid #c2ab79;outline-offset:2px}
#sector-cases .portal-empty{padding:36px 20px;border:1px dashed #cbd9df;border-radius:3px;background:#fff;text-align:center;color:#8397a3}
#sector-cases .portal-empty h3{font-size:16px;font-weight:600;color:#536f7e;margin-bottom:6px}
#sector-cases .portal-empty p{font-size:14px;margin-bottom:16px}
@media(max-width:1249px){#sector-cases .office-filter-panel{grid-template-columns:repeat(2,minmax(0,1fr))}#sector-cases .workspace-office-overview{grid-template-columns:155px minmax(0,1fr);column-gap:12px}#sector-cases .office-priority-metric{padding:7px 9px;gap:7px}#sector-cases .office-priority-metric small{font-size:11px}#sector-cases .office-case-actions{min-width:375px}}
@media(max-width:960px){#sector-cases .workspace-office-overview{grid-template-columns:1fr}#sector-cases .office-priority-heading{display:flex;align-items:center;justify-content:space-between}#sector-cases .office-priority-heading h3{margin:0}#sector-cases .office-case-body{gap:14px}#sector-cases .office-case-footer{flex-wrap:wrap;gap:10px}#sector-cases .office-case-actions{width:100%;min-width:0}#sector-cases .office-stat{gap:9px;padding:14px 12px}#sector-cases .office-stat-label{font-size:11px}}
@media(max-width:760px){
 :is(#view-lawyer,#view-client) .portal-page-heading{margin-bottom:16px!important;min-height:104px;padding:16px 18px!important}
 :is(#view-lawyer,#view-client) .portal-page-heading h1{font-size:23px!important}
 :is(#view-lawyer,#view-client) .portal-page-heading p{font-size:13px;line-height:1.6}
 #sector-cases:not(.hidden){gap:12px}#sector-cases .office-stats{gap:8px}#sector-cases .office-stat{grid-template-columns:1fr;grid-template-rows:auto auto;gap:5px;min-height:78px;padding:12px 8px;text-align:center}
 #sector-cases .office-stat-icon{display:none}#sector-cases .office-stat-value{grid-column:1;grid-row:1;justify-self:center;font-size:23px}#sector-cases .office-stat-label{grid-column:1;grid-row:2;font-size:11px;letter-spacing:0}
 #sector-cases .workspace-office-overview{padding:12px;gap:10px}#sector-cases .office-priority-heading .portal-kicker{font-size:11px}#sector-cases .office-priority-heading h3{font-size:13px}#sector-cases .office-priority-metrics{gap:6px}
 #sector-cases .office-priority-metric{flex-direction:column-reverse;text-align:center;justify-content:center;gap:6px;min-height:72px;padding:8px 4px}#sector-cases .office-priority-metric>span{font-size:11px}#sector-cases .office-priority-metric small{display:none}#sector-cases .office-priority-metric strong{font-size:19px}
 #sector-cases .workspace-review-list{grid-template-columns:1fr}#sector-cases .office-review-link{flex-direction:column;align-items:flex-start;gap:3px}
 #sector-cases .office-filter-panel{padding:12px;gap:12px 10px}#sector-cases .office-filter-search,#sector-cases .office-filter-nature{grid-column:1/-1}#sector-cases .office-filter-panel :is(input,select){height:38px!important;min-height:38px!important;font-size:13px}#sector-cases .office-nature-options .btn-nature-filter{height:38px;min-height:38px;font-size:13px!important}
 #sector-cases .office-list-toolbar{gap:8px;flex-wrap:wrap}#sector-cases .office-list-toolbar h2{font-size:13px}#sector-cases #office-results{font-size:12px}
 #sector-cases .office-case-top{padding:13px 14px;gap:10px;align-items:flex-start}#sector-cases .office-case-heading{flex-direction:column;align-items:flex-start;gap:7px}#sector-cases .office-case h3{font-size:14px}#sector-cases .office-case-status{max-width:125px;font-size:11px;padding:4px 6px}
 #sector-cases .office-case-body{grid-template-columns:1fr 1fr;gap:15px;padding:15px 14px}#sector-cases .office-case-client{grid-column:1/-1}#sector-cases .office-case-client strong{font-size:14px}#sector-cases .office-case-stage strong,#sector-cases .office-case-latest p{font-size:13px}#sector-cases .office-field-label{font-size:11px}
 #sector-cases .office-case-footer{padding:11px 14px;gap:10px}#sector-cases .office-case-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#sector-cases .office-case-button{padding:8px 5px;min-height:38px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){#sector-cases .office-case-button::after{display:none}}
/* Process dialog: one reading column and stable dimensions. */
:is(#modal-manage-case,#client-view-detail)>.modal-box{max-width:1000px!important}
:is(#modal-manage-case,#client-view-detail) .modal-prestige-header{padding:16px 22px!important}
:is(#modal-manage-case,#client-view-detail) .modal-prestige-title{font-size:18px!important;line-height:1.4}
:is(#modal-manage-case,#client-view-detail) .modal-prestige-sub{font-size:13px!important;margin-top:3px}
:is(#modal-manage-case,#client-view-detail) .modal-body{padding:0 22px 20px!important;background:#f7f9fa}
:is(#modal-manage-case,#client-view-detail) .modal-body>*+*{margin-top:14px!important}
:is(#modal-manage-case,#client-view-detail) .process-navigation{position:sticky;top:0;z-index:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 -22px!important;padding:12px 22px;background:#f7f9fa;border:0;border-bottom:1px solid #dce3e7;border-radius:0;box-shadow:none}
:is(#modal-manage-case,#client-view-detail) .process-navigation button{height:34px;min-height:34px;padding:5px 8px!important;font-size:14px!important;border:1px solid #d0dbe1!important;background:transparent!important;color:#637b89!important;border-radius:3px!important;box-shadow:none!important}
:is(#modal-manage-case,#client-view-detail) .process-navigation button[aria-pressed=true]{background:#202529!important;border-color:#202529!important;color:#fff!important}
:is(#modal-manage-case,#client-view-detail) .process-navigation button:hover{border-color:#a2b4c0!important;background:#edf1f3!important}
:is(#modal-manage-case,#client-view-detail) .process-navigation button[aria-pressed=true]:hover{background:#303a40!important}
:is(#modal-manage-case,#client-view-detail) .workspace-heading{margin-bottom:12px;align-items:center}
:is(#modal-manage-case,#client-view-detail) .workspace-heading h3{font-size:17px;margin:0;line-height:1.4}
:is(#modal-manage-case,#client-view-detail) .workspace-status{padding:5px 9px;font-size:12px;background:#fff;border:1px solid #d5dfe5;border-radius:3px}
:is(#modal-manage-case,#client-view-detail) .workspace-summary-grid{gap:10px}
:is(#modal-manage-case,#client-view-detail) .workspace-summary-grid>div{padding:14px;border:1px solid #dce4e8;border-radius:3px;background:#fff;min-width:0}
:is(#modal-manage-case,#client-view-detail) .workspace-summary-grid .workspace-action{border-top:2px solid #b99556}
:is(#modal-manage-case,#client-view-detail) .workspace-summary-grid span{font-size:11px;letter-spacing:.3px}
:is(#modal-manage-case,#client-view-detail) .workspace-summary-grid p{font-size:14px;line-height:1.65;margin-top:7px}
:is(#modal-manage-case,#client-view-detail) .workspace-dates{font-size:12px;gap:12px;margin:10px 0;color:#81939e}
:is(#modal-manage-case,#client-view-detail) :is(.workspace-editor,.case-registration-details,.workspace-history,.case-new-update){padding:0;border:1px solid #d5dfe5;background:#fff;border-radius:3px;margin:12px 0 0}
:is(#modal-manage-case,#client-view-detail) :is(.workspace-editor,.case-registration-details,.workspace-history,.case-new-update)>summary{padding:11px 14px;font-size:14px;font-weight:600;color:#49616e;cursor:pointer}
:is(#modal-manage-case,#client-view-detail) :is(.workspace-editor,.workspace-history)>:not(summary){margin:0 14px 14px}
:is(#modal-manage-case,#client-view-detail) .process-stage-panel{padding:14px!important;margin:14px 0!important}
:is(#modal-manage-case,#client-view-detail) .process-stage-panel>div:first-child>span:first-child{font-size:13px;letter-spacing:0;text-transform:none}
:is(#modal-manage-case,#client-view-detail) .case-movement-panel{display:grid;gap:14px}
:is(#modal-manage-case,#client-view-detail) .case-new-update{margin:0}
:is(#modal-manage-case,#client-view-detail) .case-update-form-panel{padding:0 14px 14px}
:is(#modal-manage-case,#client-view-detail) #modal-form-add-update{gap:10px}
:is(#modal-manage-case,#client-view-detail) #modal-form-add-update>div{margin:0!important}
:is(#modal-manage-case,#client-view-detail) #modal-form-add-update .workspace-fields{gap:8px 12px;margin-top:10px}
:is(#modal-manage-case,#client-view-detail) .case-history-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:4px 0 10px}
:is(#modal-manage-case,#client-view-detail) .case-history-heading h4{font-size:13px;font-weight:600;color:#49616e}
:is(#modal-manage-case,#client-view-detail) .case-history-heading>span{font-size:12px;color:#81939e}
:is(#modal-manage-case,#client-view-detail) #modal-case-history-list>div{padding:14px!important}
:is(#modal-manage-case,#client-view-detail) #modal-case-history-list strong{font-size:13px}
:is(#modal-manage-case,#client-view-detail) .workspace-section{padding:16px!important}
:is(#modal-manage-case,#client-view-detail) .workspace-section h4{font-size:16px}
:is(#modal-manage-case,#client-view-detail) .workspace-task{padding:13px}
:is(#modal-manage-case,#client-view-detail) .workspace-upload{padding:12px;gap:12px}
:is(#modal-manage-case,#client-view-detail) .workspace-document-list>div{padding:10px 0}
:is(#modal-manage-case,#client-view-detail) .workspace-document-list button{font-size:14px}
:is(#modal-manage-case,#client-view-detail) .modal-footer{padding:10px 22px!important}
@media(max-width:760px){
 :is(#modal-manage-case,#client-view-detail) .modal-prestige-header{padding:14px!important}
 :is(#modal-manage-case,#client-view-detail) .modal-prestige-header>div:first-child{gap:9px}
 :is(#modal-manage-case,#client-view-detail) .modal-prestige-icon-capsule{display:none}
 :is(#modal-manage-case,#client-view-detail) .modal-prestige-title{font-size:16px!important}
 :is(#modal-manage-case,#client-view-detail) .modal-prestige-sub{overflow-wrap:anywhere;font-size:12px!important}
 :is(#modal-manage-case,#client-view-detail) .modal-body{padding:0 12px 14px!important}
 :is(#modal-manage-case,#client-view-detail) .process-navigation{margin:0 -12px!important;padding:10px 12px;gap:4px}
 :is(#modal-manage-case,#client-view-detail) .process-navigation button{font-size:12px!important;padding:5px 3px!important;height:38px;min-height:38px}
 :is(#modal-manage-case,#client-view-detail) .workspace-summary-grid{grid-template-columns:1fr;gap:8px}
 :is(#modal-manage-case,#client-view-detail) .workspace-summary-grid>div{padding:12px}
 :is(#modal-manage-case,#client-view-detail) .workspace-heading{flex-wrap:wrap;gap:8px}
 :is(#modal-manage-case,#client-view-detail) .case-history-heading{flex-wrap:wrap}
 :is(#modal-manage-case,#client-view-detail) .modal-footer{padding:10px 12px!important}
}
/* Connected stage timeline: horizontal desktop, vertical mobile. */
:is(#modal-case-stepper,#client-rite-stepper).case-stage-timeline{display:grid!important;grid-template-columns:repeat(var(--stage-count),minmax(110px,1fr))!important;gap:0!important;overflow-x:auto!important;margin:14px 0 0!important;padding:6px 0 10px!important;align-items:start}
:is(#modal-case-stepper,#client-rite-stepper) .case-stage-point{position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;padding:0 8px;min-width:0;text-align:center}
:is(#modal-case-stepper,#client-rite-stepper) .case-stage-connector{position:absolute;top:14px;left:50%;width:100%;height:2px;background:#dce3e7}
:is(#modal-case-stepper,#client-rite-stepper) .case-stage-point:last-child .case-stage-connector{display:none}
:is(#modal-case-stepper,#client-rite-stepper) .case-stage-marker{position:relative;z-index:1;display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;border:2px solid #cbd5dc;border-radius:50%;background:#fff;color:#8a9aa4;font-size:13px;font-weight:700;box-shadow:0 0 0 5px #fff}
:is(#modal-case-stepper,#client-rite-stepper) .case-stage-label{font-size:13px;font-weight:600;line-height:1.45;color:#6d818e;overflow-wrap:anywhere}
:is(#modal-case-stepper,#client-rite-stepper) .case-stage-status{font-size:11px;line-height:1.4;color:#97a5ad}
:is(#modal-case-stepper,#client-rite-stepper) .case-stage-point.completed .case-stage-marker{color:#28745b;background:#edf6f1;border-color:#76ac95}
:is(#modal-case-stepper,#client-rite-stepper) .case-stage-point.completed .case-stage-connector{background:#87b6a1}
:is(#modal-case-stepper,#client-rite-stepper) .case-stage-point.completed .case-stage-status{color:#28745b}
:is(#modal-case-stepper,#client-rite-stepper) .case-stage-point.active .case-stage-marker{background:#b99556;border-color:#b99556;color:#fff;box-shadow:0 0 0 4px #f4eddf}
:is(#modal-case-stepper,#client-rite-stepper) .case-stage-point.active .case-stage-label{color:#66502c}
:is(#modal-case-stepper,#client-rite-stepper) .case-stage-point.active .case-stage-status{color:#9a7435;font-weight:700}
@media(max-width:760px){
 :is(#modal-case-stepper,#client-rite-stepper).case-stage-timeline{grid-template-columns:1fr!important;overflow:visible!important;padding:6px 0!important}
 :is(#modal-case-stepper,#client-rite-stepper) .case-stage-point{display:grid;grid-template-columns:30px minmax(0,1fr);gap:4px 14px;text-align:left;align-items:start;padding:0 0 22px;min-height:68px}
 :is(#modal-case-stepper,#client-rite-stepper) .case-stage-point:last-child{padding-bottom:0;min-height:34px}
 :is(#modal-case-stepper,#client-rite-stepper) .case-stage-connector{top:15px;left:14px;width:2px;height:100%}
 :is(#modal-case-stepper,#client-rite-stepper) .case-stage-marker{grid-column:1;grid-row:1/3}
 :is(#modal-case-stepper,#client-rite-stepper) .case-stage-label{grid-column:2;padding-top:1px;font-size:14px}
 :is(#modal-case-stepper,#client-rite-stepper) .case-stage-status{grid-column:2;font-size:12px}
}
/* Registration details use one consistent field grid. */
#case-registration-details>summary{border-bottom:1px solid transparent}
#case-registration-details[open]>summary{border-bottom-color:#e2e8ec;background:#f8fafb}
#case-registration-details .case-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;padding:4px 18px 10px}
#case-registration-details :is(.meta-ribbon-divided,.process-facts){display:contents!important}
#case-registration-details :is(.meta-ribbon-cell,.process-facts>div){padding:13px 0!important;border:0!important;border-bottom:1px solid #edf1f3!important;min-width:0;align-self:stretch;justify-self:stretch}
#case-registration-details :is(.meta-ribbon-cell>span,.process-facts span){display:block;margin:0 0 6px!important;color:#82939d!important;font-size:11px!important;font-weight:600!important;letter-spacing:.35px!important;text-transform:uppercase}
#case-registration-details :is(.meta-ribbon-cell strong,.process-facts strong){display:block;font-size:14px!important;line-height:1.6!important;font-weight:600!important;color:#3e5664!important;overflow-wrap:anywhere}
#case-registration-details .case-data-actions{display:flex;justify-content:flex-end;padding:10px 18px;border-top:1px solid #e1e8ec;background:#fafcfc}
:is(.modal-backdrop,#office-security-dialog) .popup-button-edit{color:#8b681a!important;border-color:#d9bf7d!important;background:transparent!important}
:is(.modal-backdrop,#office-security-dialog) .popup-button-edit:not(:disabled):hover{color:#493b13!important;border-color:#e3c15d!important;background:#e3c15d!important;box-shadow:0 2px 10px #d6ad392b!important}
.popup-button-edit svg{color:inherit!important}
@media(max-width:760px){#case-registration-details .case-data-grid{grid-template-columns:1fr;padding:2px 14px 10px}#case-registration-details .case-data-actions{padding:10px 14px}}
/* Client directory. Case content remains in its own sector. */
#sector-clients:not(.hidden){display:block}
#sector-clients .clients-directory{background:#fff;border:1px solid #d6dfe4;border-radius:3px;overflow:hidden}
#sector-clients .clients-directory-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #e3eaee}
#sector-clients .clients-directory-header h2{font-size:16px;font-weight:600;color:#3e5664}
#sector-clients .clients-directory-header p{font-size:13px;color:#8a9ba5;margin-top:4px}
#sector-clients .client-new-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:7px 15px;border:1px solid #9cb6d5;border-radius:3px;background:transparent;color:#315f9b;font-size:14px;font-weight:600;position:relative;overflow:hidden;white-space:nowrap;transition:background .18s,color .18s,box-shadow .18s}
#sector-clients .client-new-button:hover{background:#315f9b;color:#fff;box-shadow:0 2px 10px #315f9b26}
#sector-clients .client-new-button::after,#sector-clients .client-action::after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,transparent 25%,#fff4 49%,transparent 73%);transform:translateX(-130%);transition:transform .55s;pointer-events:none}
#sector-clients .client-new-button:hover::after,#sector-clients .client-action:hover::after{transform:translateX(130%)}
#sector-clients .portal-client-search{display:grid;grid-template-columns:minmax(200px,380px) 1fr;gap:5px 16px;padding:14px 20px;border:0;border-bottom:1px solid #e3eaee;background:#fafcfc;margin:0}
#sector-clients .portal-client-search label{grid-column:1;font-size:12px;font-weight:600;color:#7a8d98}
#sector-clients .portal-client-search input{grid-column:1;width:100%;min-height:36px;height:36px;padding:7px 10px;border:1px solid #ccd7de;border-radius:3px;background:#fff;font-size:14px}
#sector-clients #portal-client-results{grid-column:2;grid-row:2;align-self:center;justify-self:end;font-size:13px;color:#8b9ca6}
#sector-clients .clients-table-wrap{overflow-x:auto}
#sector-clients table{width:100%;text-align:center;border-collapse:collapse;font-size:14px}
#sector-clients th{padding:12px 16px;background:#f7f9fa;border-bottom:1px solid #dde5e9;font-size:12px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:#667e8c;white-space:nowrap}
#sector-clients td{padding:16px;border-bottom:1px solid #e9eef1;vertical-align:middle;color:#607a89;font-size:13px;line-height:1.5}
#sector-clients tr:last-child td{border-bottom:0}
#sector-clients tbody tr:hover{background:#fbfcfd}
#sector-clients td strong{display:block;color:#365160;font-size:13px;font-weight:600}
#sector-clients td small{display:block;font-size:12px;color:#96a4ad;margin-top:4px}
#sector-clients .client-count{white-space:nowrap;font-size:12px;color:#7a8f9b}
#sector-clients .client-row-actions{display:flex;justify-content:center;gap:6px}
#sector-clients .client-action{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:6px 10px;border:1px solid var(--client-border);border-radius:3px;color:var(--client-color);background:transparent;font-size:12px;font-weight:600;white-space:nowrap;transition:background .18s,color .18s}
#sector-clients .client-action-chat{--client-color:#28754e;--client-border:#9ccbb0}
#sector-clients .client-action-delete{--client-color:#ad3345;--client-border:#d898a2}
#sector-clients .client-action-edit{--client-color:#8b681a;--client-border:#d9bf7d}
#sector-clients .client-action-edit:hover{background:#e3c15d!important;border-color:#e3c15d!important;color:#493b13!important}
#sector-clients .client-action-case{--client-color:#315f9b;--client-border:#a4bddd}
#sector-clients .client-action:hover{background:var(--client-color);border-color:var(--client-color);color:#fff}
#sector-clients .client-action span{background:#b3434c;color:#fff;padding:0 4px;border-radius:3px}
#sector-clients .clients-empty td{text-align:center;padding:35px 20px;color:#8a9ba6}
#sector-clients tr[hidden]{display:none!important}
@media(max-width:1050px){#sector-clients .client-row-actions{flex-direction:column}#sector-clients td,#sector-clients th{padding:12px}}
@media(max-width:760px){
 #sector-clients .clients-directory-header{padding:14px;align-items:flex-start}
 #sector-clients .clients-directory-header h2{font-size:14px}
 #sector-clients .clients-directory-header p{font-size:12px;line-height:1.5}
 #sector-clients .client-new-button{height:38px;padding:7px 10px;font-size:13px}
 #sector-clients .portal-client-search{grid-template-columns:1fr;padding:12px 14px}
 #sector-clients #portal-client-results{grid-column:1;grid-row:3;justify-self:start;font-size:12px}
 #sector-clients table,#sector-clients tbody{display:block}
 #sector-clients thead{display:none}
 #sector-clients tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 14px;border-bottom:1px solid #dde5e9}
 #sector-clients tbody td{display:block;padding:0;border:0;min-width:0;overflow-wrap:anywhere}
 #sector-clients td:first-child,#sector-clients td:last-child{grid-column:1/-1}
 #sector-clients td:not(:first-child)::before{content:attr(data-label);display:block;font-size:11px;color:#9aa9b2;margin-bottom:4px}
 #sector-clients td:last-child::before{display:none}
 #sector-clients .client-row-actions{flex-direction:row;justify-content:stretch;padding-top:4px}
 #sector-clients .client-action{flex:1;min-height:38px;font-size:13px}
 #sector-clients .clients-empty td{grid-column:1/-1;padding:15px 0}
}


#modal-edit-client .client-edit-box{max-width:650px!important}
#client-edit-error{color:#b3434c;font-size:14px;margin-top:10px}
/* Client process cards, with the same hierarchy as the office. */
#client-hub-cases-list{display:grid;gap:14px}
#client-hub-cases-list .client-dossier{--case-accent:#315f9b;padding:0!important;margin:0!important;border:1px solid #d3dee4!important;border-radius:3px!important;background:#fff!important;box-shadow:0 2px 5px #243c4704!important;overflow:hidden}
#client-hub-cases-list .client-dossier[data-nature=extrajudicial]{--case-accent:#8863a6}
.client-dossier-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 20px;border-bottom:1px solid #e5ecef;box-shadow:inset 2px 0 var(--case-accent)}
.client-dossier-header>div{display:flex;align-items:center;gap:12px;min-width:0}
.client-dossier-nature{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.35px;color:var(--case-accent);padding:4px 7px;border:1px solid #dce3eb;border-radius:3px;background:#f8fafc}
.client-dossier-header h3{font-size:17px!important;font-weight:600!important;line-height:1.4;letter-spacing:0!important;color:#2d4654!important;margin:0!important;overflow-wrap:anywhere}
.client-dossier-body{display:grid;grid-template-columns:1.2fr 1fr 1.2fr;gap:22px;padding:18px 20px}
.client-dossier-body>div{display:grid;align-content:start;gap:7px;min-width:0}
.client-dossier-body>div>span{font-size:11px;text-transform:uppercase;letter-spacing:.35px;font-weight:600;color:#91a0aa;line-height:1.5}
.client-dossier-body time{display:block;margin-top:4px;font-size:12px;color:#678290;letter-spacing:0}
.client-dossier-body strong{font-size:14px;font-weight:600;line-height:1.65;color:#547080}
.client-dossier-body .client-dossier-subject strong{font-size:14px;color:#344f5c}
.client-dossier-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px 20px;background:#fafcfc;border-top:1px solid #e5ecef}
.client-dossier-footer-info{display:grid;gap:6px;min-width:0}
.client-dossier-footer-info small{font-size:12px;color:#8c9ba4;line-height:1.5}
.client-dossier .workspace-card-meta{padding:0;margin:0;border:0;display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:#658073}
.client-dossier .workspace-card-meta .pending{color:#a2864d}
.client-dossier .workspace-card-meta .workspace-muted{font-size:12px;color:#8b9da7}
.client-dossier-open{flex-shrink:0;position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 16px;border:1px solid #a4bddd;border-radius:3px;background:transparent;color:#315f9b;font-size:14px;font-weight:600;transition:background .18s,color .18s,box-shadow .18s}
.client-dossier-open:hover{background:#315f9b;color:#fff;border-color:#315f9b;box-shadow:0 2px 10px #315f9b26}
.client-dossier-open::after{content:'';position:absolute;inset:0;background:linear-gradient(105deg,transparent 25%,#fff4 49%,transparent 73%);transform:translateX(-130%);transition:transform .55s;pointer-events:none}
.client-dossier-open:hover::after{transform:translateX(130%)}
#client-view-detail .modal-body{flex:1 1 0;min-height:0;overflow-y:auto!important;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:contain}
#client-view-detail{margin:0!important}
#client-view-detail .modal-box{display:flex;flex-direction:column;height:calc(100dvh - 48px)!important;max-height:calc(100dvh - 48px)!important;overflow:hidden!important}
#client-view-detail .modal-prestige-header,#client-view-detail .modal-footer{flex:0 0 auto}
#client-view-detail .process-stage-panel>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:10px}
#client-view-detail .process-stage-panel>div:first-child>span:first-child{font-size:13px;font-weight:600;color:#49616e}
#client-view-detail .client-process-identification{min-width:0}
#client-view-detail .modal-prestige-title{overflow-wrap:anywhere;font-size:18px!important}
#client-view-detail .modal-prestige-sub{display:block;text-transform:none;letter-spacing:0}
#client-view-detail .modal-footer{display:flex;justify-content:space-between;align-items:center;gap:12px}
#client-process-data .client-process-data-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;padding:4px 16px 12px}
#client-process-data .meta-ribbon-divided{display:contents!important}
#client-process-data .meta-ribbon-cell,#client-process-data .client-process-data-grid>div:not(.meta-ribbon-divided){padding:12px 0!important;border:0!important;border-bottom:1px solid #e8edef!important;min-width:0}
#client-process-data .meta-ribbon-cell>span:first-child,#client-process-data .client-process-data-grid>div>span:first-child{display:block;font-size:11px!important;font-weight:600;line-height:1.5;color:#82939d!important;text-transform:uppercase;letter-spacing:.3px;margin-bottom:6px}
#client-process-data .meta-ribbon-cell>span:last-child,#client-process-data .client-responsible{font-size:14px!important;font-weight:600!important;line-height:1.6;color:#49616e!important;overflow-wrap:anywhere}
#client-process-data #client-case-rite-label{font-size:13px!important;line-height:1.5;white-space:normal}
#client-view-detail .client-movements-panel{background:#fff;border:1px solid #dce4e8;border-radius:3px;padding:16px}
#client-view-detail .client-movements-panel>div:first-child{border-bottom:1px solid #e4ebef;margin-bottom:16px;padding-bottom:12px}
#client-view-detail .client-movements-panel h4{font-size:15px;font-weight:600;color:#49616e}
#client-view-detail .client-movements-panel p{font-size:14px;line-height:1.65}
#client-view-detail .client-movements-panel>div:first-child p{font-size:13px;color:#8b9da7;margin-top:4px}
#client-view-detail .clean-timeline-card{padding:14px!important}
#client-view-detail .clean-timeline-card p{font-size:14px!important}
@media(max-width:760px){
 .client-dossier-header{padding:14px;align-items:flex-start;gap:8px}
 .client-dossier-header>div{display:grid;gap:8px;justify-items:start}
 .client-dossier-header h3{font-size:15px!important}
 .client-dossier-header .client-case-new{font-size:11px;letter-spacing:.2px;padding:4px 6px;white-space:nowrap}
 .client-dossier-body{grid-template-columns:1fr 1fr;gap:15px;padding:15px 14px}
 .client-dossier-subject{grid-column:1/-1}
 .client-dossier-body strong{font-size:13px}
 .client-dossier-body .client-dossier-subject strong{font-size:13px}
 .client-dossier-footer{flex-direction:column;align-items:stretch;padding:12px 14px;gap:12px}
 .client-dossier-open{min-height:40px}
 #client-view-detail .modal-box{height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important}
 #client-view-detail .modal-prestige-title{font-size:15px!important}
 #client-view-detail .process-navigation button{line-height:12px!important;white-space:normal!important}
 #client-process-data .client-process-data-grid{grid-template-columns:1fr;padding:4px 14px 12px}
 #client-view-detail .process-stage-panel>div:first-child{align-items:flex-start}
 #client-view-detail .modal-footer button{font-size:13px!important;min-width:0}
}
@media(prefers-reduced-motion:reduce){.client-dossier-open::after{display:none}}



/* Current guidance: two reading blocks and two writing fields. */
.workspace-summary-grid.workspace-two-blocks{grid-template-columns:1.2fr 1fr!important}
.workspace-summary-grid.workspace-two-blocks p{white-space:pre-line;overflow-wrap:anywhere}
.workspace-editor .workspace-guidance-fields{display:flex!important;flex-direction:column;gap:7px;margin:0}
.workspace-editor .workspace-guidance-fields label{font-size:13px;font-weight:600;color:#627b89;margin-top:7px}
.workspace-editor .workspace-guidance-fields textarea{width:100%;min-height:86px;line-height:1.6;resize:vertical;margin:0!important}
.workspace-editor .workspace-guidance-fields #ws-status{max-width:360px}
.workspace-stage-options{border:1px solid #dce4e8;border-radius:3px;padding:10px 12px;margin:12px 0;background:#fafcfc}
.workspace-stage-options>summary{font-size:13px;font-weight:600;color:#718794;cursor:pointer}
.workspace-stage-options .workspace-stage-editor{margin-top:12px}
@media(max-width:760px){.workspace-summary-grid.workspace-two-blocks{grid-template-columns:1fr!important}.workspace-editor .workspace-guidance-fields #ws-status{max-width:none}}

.workspace-custom-stages{border:1px solid #d5dfe5;border-radius:3px;background:#fff;margin-top:12px;padding:12px 14px}
.workspace-custom-stages>summary,.workspace-add-stage>summary{font-size:14px;font-weight:600;color:#49616e;cursor:pointer}
.workspace-custom-stages form{display:grid;gap:10px;margin-top:12px}
.workspace-custom-stages label{display:grid;gap:6px;font-size:13px;color:#627b89}
.workspace-custom-stages :is(input:not([type=checkbox]),select){width:100%;height:34px;padding:6px 9px;border:1px solid #cbd6dd;border-radius:3px;background:white;font-size:14px}
.workspace-phase-current{grid-template-columns:1fr auto;align-items:end}
.workspace-add-stage{padding-top:12px;margin-top:12px;border-top:1px solid #e4ebef}
.workspace-custom-stages .workspace-check{display:flex;align-items:center;gap:7px}
.workspace-custom-stages form>button{justify-self:start}
@media(max-width:760px){.workspace-phase-current{grid-template-columns:1fr}}

.movement-entry-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.movement-entry-fields>label{display:grid;grid-column:1/-1;gap:6px;font-size:13px;font-weight:600;color:#627b89}
.movement-entry-fields>div{margin:0!important}
.movement-entry-fields textarea{width:100%;min-height:92px!important;line-height:1.6;white-space:pre-wrap;resize:vertical}
#modal-edit-update .movement-entry-fields>div{grid-column:1/-1}
#client-timeline .clean-timeline-card>p,#modal-case-history-list>div>p{white-space:pre-line}
@media(max-width:760px){.movement-entry-fields{grid-template-columns:1fr}}



/* Client removal uses the existing dialog palette and keeps linked history intact. */


#modal-remove-client .client-removal-box{width:min(600px,94vw)!important;max-width:600px!important;border-radius:3px!important;max-height:94dvh;overflow:hidden}
#modal-remove-client .modal-body{padding:24px;display:grid;gap:18px;overflow-y:auto}
#modal-remove-client .modal-body p{margin:0;font-size:14px;line-height:1.6;color:#405363}
#modal-remove-client .client-removal-summary{display:grid;gap:6px;padding:16px;border:1px solid #cbd6df;background:#f5f8fa;border-radius:2px}
#modal-remove-client .client-removal-summary strong{font-size:17px;color:#263e4f}
#modal-remove-client .client-removal-summary span{font-size:13px;color:#637588}
#modal-remove-client .client-removal-check{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid #cfb273;border-radius:2px;background:#fffaf0;cursor:pointer;font-size:14px;line-height:1.5;color:#715520}
#modal-remove-client .client-removal-check input{margin:3px 0 0;accent-color:#a87921;flex:none;width:17px;height:17px}
#modal-remove-client .modal-footer{display:flex;justify-content:flex-end;gap:12px;padding:18px 24px;border-top:1px solid #d4dee5;background:#fff}
#modal-remove-client .modal-footer button{height:42px;padding:8px 16px;border-radius:2px;border:1px solid #ce8995;transition:background .2s,color .2s;cursor:pointer;color:#ad3345;background:#fff}
#modal-remove-client .modal-footer button:hover{background:#ad3345;color:#fff}
#modal-remove-client .modal-footer button:disabled{opacity:.45;cursor:not-allowed}
#modal-remove-client #client-removal-error{color:#ad3345}
