.legalflow-ui .email-page{min-width:0;font-family:var(--av-font);font-size:var(--av-fs-md);color:var(--av-text);line-height:var(--av-lh)}.legalflow-ui :is(.email-page,.email-settings,.received-invoices) :is(button,a,summary,input,select,textarea):focus-visible{outline:none;box-shadow:var(--av-focus)}.legalflow-ui .email-page .email-status-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--av-s2) var(--av-s4);margin:0 0 var(--av-s4);color:var(--av-muted);font-size:var(--av-fs-sm)}.legalflow-ui .email-page .email-status-line>span:first-child{display:inline-flex;align-items:center;gap:var(--av-s2);color:var(--av-ink);font-weight:550;overflow-wrap:anywhere}.legalflow-ui .email-page .email-status-actions{display:inline-flex;flex-wrap:wrap;gap:var(--av-s2)}.legalflow-ui :is(.email-page,.email-settings) .email-progress{display:flex;align-items:center;gap:var(--av-s2);margin:0 0 var(--av-s3);padding:var(--av-s2) var(--av-s3);border:1px solid var(--av-border);border-left:3px solid var(--av-info);border-radius:var(--av-r-sm);background:var(--av-info-soft);color:var(--av-text);font-size:var(--av-fs-sm)}.legalflow-ui .email-page>.error-message{margin:0 0 var(--av-s4)}.legalflow-ui .email-page .email-list-card{padding:0;overflow:hidden;background:var(--av-surface);border:1px solid var(--av-border);border-radius:var(--av-r-lg);box-shadow:var(--av-shadow-sm)}.legalflow-ui .email-page .email-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--av-s3);padding:var(--av-s4) var(--av-s5) var(--av-s3);border-bottom:1px solid var(--av-border)}.legalflow-ui .email-page .email-toolbar .search{flex:1 1 280px;max-width:420px}.legalflow-ui .email-page .toolbar-count{color:var(--av-subtle);font-size:var(--av-fs-sm);font-variant-numeric:tabular-nums}.legalflow-ui .email-page .email-help{margin:0;padding:var(--av-s3) var(--av-s5);background:var(--av-surface-2);border-bottom:1px solid var(--av-border);color:var(--av-muted);font-size:var(--av-fs-sm)}.legalflow-ui .email-page .email-list-card>:is(.error-message,.skeleton-wrap){margin:var(--av-s4) var(--av-s5)}.legalflow-ui .email-page .email-list{list-style:none;margin:0;padding:0}.legalflow-ui .email-page .email-row{display:flex;flex-direction:column;gap:var(--av-s2);padding:var(--av-s4) var(--av-s5);border-bottom:1px solid var(--av-border)}.legalflow-ui .email-page .email-row:last-child{border-bottom:0}.legalflow-ui .email-page .email-row[data-status=review]{border-left:3px solid var(--av-gold)}.legalflow-ui .email-page .email-row-head{display:flex;flex-wrap:wrap;align-items:center;gap:var(--av-s2) var(--av-s3)}.legalflow-ui .email-page .email-sender{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 var(--av-s2);flex:1 1 240px;min-width:0}.legalflow-ui .email-page .email-sender strong{color:var(--av-ink);font-weight:600;overflow-wrap:anywhere}.legalflow-ui .email-page .email-sender span{color:var(--av-subtle);font-size:var(--av-fs-sm);overflow-wrap:anywhere}.legalflow-ui .email-page .email-row-head time{color:var(--av-muted);font-size:var(--av-fs-sm);font-variant-numeric:tabular-nums;white-space:nowrap}.legalflow-ui .email-page .email-subject{margin:0;color:var(--av-ink);font-family:var(--av-font);font-size:var(--av-fs-base);font-weight:600;line-height:1.4;overflow-wrap:anywhere}.legalflow-ui .email-page .email-snippet{margin:0;color:var(--av-muted);font-size:var(--av-fs-sm);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.legalflow-ui .email-page .email-reason{display:flex;align-items:flex-start;gap:var(--av-s2);margin:0;color:var(--av-text);font-size:var(--av-fs-sm)}.legalflow-ui .email-page .email-reason svg{flex:none;margin-top:2px;color:var(--av-gold-ink)}.legalflow-ui .email-page .email-files{display:flex;flex-wrap:wrap;gap:var(--av-s2);list-style:none;margin:0;padding:0}.legalflow-ui .email-page .email-files a{display:inline-flex;align-items:center;gap:6px;max-width:320px;min-height:30px;padding:0 var(--av-s3);border:1px solid var(--av-border);border-radius:var(--av-r-pill);background:var(--av-surface-2);color:var(--av-gold-ink);font-size:var(--av-fs-sm);font-weight:550;text-decoration:none}.legalflow-ui .email-page .email-files a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legalflow-ui .email-page .email-files a:hover{background:var(--av-surface-3);color:var(--av-ink)}.legalflow-ui .email-page .email-links{display:flex;flex-wrap:wrap;gap:var(--av-s1) var(--av-s4);margin:0;color:var(--av-subtle);font-size:var(--av-fs-sm)}.legalflow-ui .email-page .email-links a{color:var(--av-gold-ink);font-weight:550}.legalflow-ui .email-page .email-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--av-s2) var(--av-s4);margin-top:var(--av-s1)}.legalflow-ui .email-page .email-assign{display:flex;flex-wrap:wrap;align-items:center;gap:var(--av-s2);flex:1 1 520px}.legalflow-ui .email-page .email-assign .input{flex:1 1 200px;width:auto;min-width:0}.legalflow-ui .email-page .email-secondary-actions{display:flex;flex-wrap:wrap;gap:var(--av-s2)}.legalflow-ui .email-page .email-pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--av-s3);padding:var(--av-s3) var(--av-s5);border-top:1px solid var(--av-border);color:var(--av-muted);font-size:var(--av-fs-sm);font-variant-numeric:tabular-nums}.legalflow-ui .email-page .email-pill{display:inline-flex;align-items:center;gap:6px;padding:2px var(--av-s2) 2px 7px;border-radius:var(--av-r-pill);font-size:var(--av-fs-xs);font-weight:600;line-height:1.5;white-space:nowrap}.legalflow-ui .email-page .email-pill:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.legalflow-ui .email-page .email-pill-review{background:var(--av-warning-soft);color:var(--av-warning-ink)}.legalflow-ui .email-page .email-pill-filed{background:var(--av-success-soft);color:var(--av-success-ink)}.legalflow-ui .email-page .email-pill-invoice{background:var(--av-gold-soft);color:var(--av-gold-ink)}.legalflow-ui .email-page .email-pill-ignored{background:var(--av-surface-3);color:var(--av-muted)}.legalflow-ui .email-page .email-pill-failed{background:var(--av-danger-soft);color:var(--av-danger-ink)}.legalflow-ui .email-settings .email-steps{margin:0;padding-left:var(--av-s5);display:flex;flex-direction:column;gap:var(--av-s2);color:var(--av-text)}.legalflow-ui .email-settings .email-steps a{display:inline-flex;align-items:center;gap:3px;color:var(--av-gold-ink);font-weight:550;overflow-wrap:anywhere}.legalflow-ui .email-settings .email-connect h3{margin:0;color:var(--av-ink);font-size:var(--av-fs-base);font-weight:600}.legalflow-ui .email-settings .email-connect>p{margin:0}.legalflow-ui .email-settings .email-counts{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:var(--av-s3)}.legalflow-ui .email-settings .email-counts>div{display:flex;flex-direction:column;gap:2px;padding:var(--av-s3) var(--av-s4);border:1px solid var(--av-border);border-radius:var(--av-r);background:var(--av-surface-2)}.legalflow-ui .email-settings .email-counts strong{color:var(--av-ink);font-size:var(--av-fs-h3);font-weight:600;font-variant-numeric:tabular-nums}.legalflow-ui .email-settings .email-counts span{color:var(--av-subtle);font-size:var(--av-fs-sm)}.legalflow-ui .email-settings .email-settings-actions{display:flex;flex-wrap:wrap;gap:var(--av-s2)}.legalflow-ui .email-settings .email-disconnect{color:var(--av-danger-ink)}.legalflow-ui .finance-page .received-intro{margin:0;color:var(--av-muted);font-size:var(--av-fs-sm)}.legalflow-ui .finance-page .received-supplier{min-width:200px}.legalflow-ui .finance-page .received-supplier strong{display:block;color:var(--av-ink);font-weight:600;overflow-wrap:anywhere}.legalflow-ui .finance-page .received-supplier span{display:block;color:var(--av-subtle);font-size:var(--av-fs-xs);overflow-wrap:anywhere}.legalflow-ui .finance-page .received-supplier a{color:var(--av-gold-ink)}.legalflow-ui .finance-page .received-overdue{color:var(--av-danger-ink);font-weight:550}.legalflow-ui .finance-page .finance-tabs{margin-bottom:var(--av-s4)}.legalflow-ui .received-invoice-form .received-fieldset{border:0;margin:0;padding:0;min-width:0}@media (max-width:640px){.legalflow-ui .email-page .email-row{padding:var(--av-s4)}.legalflow-ui .email-page .email-assign .input{flex-basis:100%}.legalflow-ui .email-page :is(.email-actions,.email-status-line,.email-pager) .button,.legalflow-ui .email-settings .email-settings-actions .button{min-height:44px}}.legalflow-ui .email-page .email-list-card:has(.client-picker .case-client-select-menu){overflow:visible}.legalflow-ui .dialog-content:has(>:is(.lf-clients-form,.case-form)){display:flex;flex-direction:column;gap:0;width:min(560px,calc(100vw - 32px));max-width:560px;max-height:calc(100dvh - 48px);padding:0;overflow:hidden;border:1px solid var(--av-border);border-radius:12px;background:var(--av-surface);box-shadow:0 20px 70px #1F1D2029}.legalflow-ui .dialog-content:has(>:is(.lf-clients-form,.case-form))>.dialog-heading{flex-shrink:0;align-items:center;margin:0;padding:20px 24px;border-bottom:1px solid var(--av-border)}.legalflow-ui .dialog-content:has(>:is(.lf-clients-form,.case-form)) .dialog-title{margin:0;font:600 20px/1.3 var(--av-font);letter-spacing:-.025em}.legalflow-ui .dialog-content:has(>:is(.lf-clients-form,.case-form)) .dialog-description{margin-top:5px;color:var(--av-muted);font-size:13px;line-height:1.6}.legalflow-ui .dialog-content:has(>:is(.lf-clients-form,.case-form))>.dialog-heading>.button{width:32px;height:32px;min-height:32px;padding:0;border-radius:6px;color:var(--av-muted);flex-shrink:0}.legalflow-ui .dialog-content>:is(.lf-clients-form,.case-form){min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px 0;scrollbar-width:thin;scrollbar-color:#D7C9B2 transparent}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form) .form-grid{gap:14px 16px}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form) .field{gap:6px;margin:0;min-width:0}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form) :is(.field>label,.form-label){font-size:12px;font-weight:500;color:var(--av-text)}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form) .input{min-height:40px;padding:9px 11px;border:1px solid var(--av-border);border-radius:7px;background:#fff;box-shadow:none;font:400 13px/1.5 var(--av-font)}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form) textarea.input{min-height:88px;resize:vertical}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form) .field-hint{margin:0;font-size:12px;line-height:1.5;color:var(--av-muted)}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form) .button{min-height:36px;font-size:12px;border-radius:7px;box-shadow:none}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form)>.form-actions{position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;gap:8px;margin:20px 0 0;padding:16px 0;background:var(--av-surface);border-top:1px solid var(--av-border)}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form)>.form-actions .button{flex:none;min-width:90px;min-height:38px;padding:0 16px;font-size:13px}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form)>.form-actions .button-primary{background:#4D4845;border-color:#4D4845;color:#FFFEFA}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form)>.form-actions .button-primary:hover:not(:disabled){background:#3E3936}.legalflow-ui .dialog-content .lf-clients-form .lf-clients-kind{display:inline-flex;width:auto;gap:3px;padding:3px;border:1px solid var(--av-border);border-radius:8px;background:#F7F5F0}.legalflow-ui .dialog-content .lf-clients-form .lf-clients-kind .button{min-width:108px;min-height:34px;padding:0 14px;font-size:12px}.legalflow-ui .dialog-content .lf-clients-form .lf-clients-kind .button[aria-pressed=true]{background:#D7C9B2;box-shadow:none}.legalflow-ui .dialog-content .lf-clients-form .lf-clients-help{margin:10px 0 18px;font-size:12px;line-height:1.5;color:var(--av-muted)}.legalflow-ui .dialog-content :is(.lf-clients-optional,.case-advanced){margin-top:18px;border:1px solid var(--av-border);border-radius:8px;background:transparent}.legalflow-ui .dialog-content :is(.lf-clients-optional,.case-advanced)>summary{padding:0 12px;font-size:12px}.legalflow-ui .dialog-content :is(.lf-clients-optional,.case-advanced)>.form-grid{padding:16px}.legalflow-ui .dialog-content .case-form .case-client-options{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));max-height:150px;padding:4px;border-radius:8px}.legalflow-ui .dialog-content .case-form .case-client-options label{min-height:40px;font-weight:400}.legalflow-ui .dialog-content .case-form .case-client-options label:has(input:checked){background:#F1ECDC}.legalflow-ui .dialog-content .case-form .inline-heading{align-items:center;gap:12px}@media(max-width:650px){.legalflow-ui .dialog-content:has(>:is(.lf-clients-form,.case-form)){width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:10px}.legalflow-ui .dialog-content:has(>:is(.lf-clients-form,.case-form))>.dialog-heading{padding:16px}.legalflow-ui .dialog-content>:is(.lf-clients-form,.case-form){padding:16px 16px 0}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form) .input{font-size:16px;min-height:44px}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form)>.form-actions .button{min-height:44px}.legalflow-ui .dialog-content .case-form .case-client-options{grid-template-columns:1fr}.legalflow-ui .dialog-content .lf-clients-form .lf-clients-kind .button{min-height:40px}}.legalflow-ui .dialog-content .lf-clients-form .lf-clients-kind{position:relative;z-index:1;display:flex;justify-content:center;width:max-content;max-width:100%;gap:0;margin:0 auto -1px;padding:0;border:0;border-radius:0;background:transparent}.legalflow-ui .dialog-content .lf-clients-form .lf-clients-kind .button{position:relative;min-width:112px;min-height:40px;padding:0 18px;border:1px solid var(--av-border);border-radius:8px 8px 0 0;background:#F0EDE6;color:var(--av-muted);font-weight:500;box-shadow:none}.legalflow-ui .dialog-content .lf-clients-form .lf-clients-kind .button+.button{margin-left:-1px}.legalflow-ui .dialog-content .lf-clients-form .lf-clients-kind .button[aria-pressed=true]{z-index:1;border-bottom-color:var(--av-surface);background:var(--av-surface);color:var(--av-text)}.legalflow-ui .dialog-content .lf-clients-form .lf-client-type-panel{padding:18px;border:1px solid var(--av-border);border-radius:8px;background:var(--av-surface)}.legalflow-ui .dialog-content .lf-clients-form .lf-client-type-panel>.lf-clients-help{margin:0 0 16px}@media(max-width:650px){.legalflow-ui .dialog-content .lf-clients-form .lf-clients-kind .button{min-height:44px}.legalflow-ui .dialog-content .lf-clients-form .lf-client-type-panel{padding:14px}}.legalflow-ui .dialog-content:has(>.lf-clients-form){height:min(650px,calc(100dvh - 48px))}.legalflow-ui .dialog-content:has(>.case-form){height:min(820px,calc(100dvh - 48px))}.legalflow-ui .dialog-content>:is(.lf-clients-form,.case-form){flex:1;display:flex;flex-direction:column}.legalflow-ui .dialog-content :is(.lf-clients-fieldset,.case-form-fields){flex-shrink:0}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form)>.form-actions{flex-shrink:0;margin-top:auto}.legalflow-ui .dialog-content :is(.lf-clients-optional,.case-advanced){margin-top:16px;border:0;border-top:1px solid var(--av-border);border-radius:0}.legalflow-ui .dialog-content :is(.lf-clients-optional,.case-advanced)>summary{min-height:42px;padding:0;font-weight:500;color:var(--av-muted);border:0;border-radius:0}.legalflow-ui .dialog-content :is(.lf-clients-optional,.case-advanced)[open]>summary{border-bottom:0;border-radius:0;color:var(--av-text)}.legalflow-ui .dialog-content :is(.lf-clients-optional,.case-advanced)>.form-grid{padding:2px 0 14px;gap:12px 14px}.legalflow-ui .dialog-content .lf-clients-optional .field.full{grid-column:auto}.legalflow-ui .dialog-content .lf-clients-optional .field:has(textarea){grid-column:1/-1}.legalflow-ui .dialog-content .case-form .case-party-form{padding:12px;gap:12px;margin-top:10px}@media(max-width:650px){.legalflow-ui .dialog-content:has(>.lf-clients-form){height:min(650px,calc(100dvh - 24px))}.legalflow-ui .dialog-content:has(>.case-form){height:calc(100dvh - 24px)}.legalflow-ui .dialog-content .lf-clients-optional .field.full{grid-column:1/-1}}.legalflow-ui .dialog-content .lf-clients-form .lf-client-type-panel{padding:18px 0 0;border:0;border-top:1px solid var(--av-border);border-radius:0}.legalflow-ui .dialog-content :is(.lf-clients-optional,.case-advanced).form-section-content{margin-top:18px;padding-top:14px;border:0;border-top:1px solid var(--av-border);border-radius:0}.legalflow-ui .dialog-content .form-extra-heading{display:flex;align-items:baseline;gap:8px;margin:0 0 14px;font-size:12px;font-weight:500;color:var(--av-text)}.legalflow-ui .dialog-content .form-extra-heading span{font-size:11px;font-weight:400;color:var(--av-muted)}.legalflow-ui .dialog-content :is(.lf-clients-optional,.case-advanced).form-section-content>.form-grid{padding:0 0 14px}.legalflow-ui .dialog-content:has(>.lf-clients-form){width:min(640px,calc(100vw - 32px));max-width:640px;height:auto}.legalflow-ui .dialog-content:has(>.case-form){width:min(1040px,calc(100vw - 32px));max-width:1040px;height:auto}.legalflow-ui .dialog-content:has(>:is(.lf-clients-form,.case-form)){overflow-y:auto}.legalflow-ui .dialog-content>:is(.lf-clients-form,.case-form){flex:none;overflow:visible}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form)>.form-actions{position:static;margin-top:16px}@media(min-width:1000px){.legalflow-ui .dialog-content .case-form .case-form-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.legalflow-ui .dialog-content .case-form .case-advanced.form-section-content{margin:0;padding:0 0 0 24px;border-top:0;border-left:1px solid var(--av-border)}}@media(max-width:650px){.legalflow-ui .dialog-content:has(>:is(.lf-clients-form,.case-form)){width:calc(100vw - 24px);height:auto}}.legalflow-ui .dialog-content .lf-clients-optional .field.full:has(textarea){grid-column:1/-1}.legalflow-ui .dialog-content .lf-clients-form textarea[name=notes]{width:100%;max-width:100%;min-height:88px}.legalflow-ui .dialog-content:has(>:is(.lf-clients-form,.case-form))>.dialog-heading{padding:16px 20px}.legalflow-ui .dialog-content:has(>:is(.lf-clients-form,.case-form)) .dialog-title{font-size:18px}.legalflow-ui .dialog-content>:is(.lf-clients-form,.case-form){padding:14px 20px 0}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form) .form-grid{gap:10px 14px}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form) .field{gap:4px}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form) .input{min-height:36px;padding:7px 10px}.legalflow-ui .dialog-content .lf-clients-form .lf-client-type-panel{padding-top:12px}.legalflow-ui .dialog-content .lf-clients-form .lf-client-type-panel>.lf-clients-help{margin:0 0 12px}.legalflow-ui .dialog-content :is(.lf-clients-optional,.case-advanced).form-section-content{margin-top:12px;padding-top:10px}.legalflow-ui .dialog-content .form-extra-heading{margin-bottom:10px}.legalflow-ui .dialog-content :is(.lf-clients-optional,.case-advanced).form-section-content>.form-grid{padding-bottom:4px;gap:10px 14px}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form) textarea.input{min-height:64px}.legalflow-ui .dialog-content .lf-clients-form textarea[name=notes]{min-height:64px;height:64px}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form)>.form-actions{margin-top:12px;padding:12px 0}@media(min-width:651px){.legalflow-ui .dialog-content .lf-clients-form .lf-client-type-panel>.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.legalflow-ui .dialog-content .lf-clients-form .lf-client-type-panel>.form-grid .field:has(input[name=phone]){grid-column:auto}}@media(min-width:1000px){.legalflow-ui .dialog-content .case-form .case-advanced.form-section-content{margin-top:0;padding-top:0}}@media(max-width:650px){.legalflow-ui .dialog-content:has(>:is(.lf-clients-form,.case-form))>.dialog-heading{padding:14px 16px}.legalflow-ui .dialog-content>:is(.lf-clients-form,.case-form){padding:14px 16px 0}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form) .input{min-height:44px}}@media(min-width:651px){.legalflow-ui .dialog-content .lf-clients-form .lf-client-type-panel>.form-grid:has(input[name=businessName]){grid-template-columns:2fr 1fr}.legalflow-ui .dialog-content .lf-clients-form .lf-client-type-panel>.form-grid .field.full:has(input[name=businessName]){grid-column:auto}}.legalflow-ui .dialog-content :is(.lf-clients-form,.case-form) :is(input,textarea)::placeholder{color:#A39E96;opacity:1;font-weight:400}.legalflow-ui .dialog-content:has(>.case-form){width:min(980px,calc(100vw - 32px));max-width:980px}.legalflow-ui .dialog-content .case-form .case-basic-heading{grid-column:1/-1;margin:0 0 2px;font-size:13px;font-weight:600;line-height:20px}.legalflow-ui .dialog-content .case-form .form-extra-heading{min-height:20px;margin-bottom:12px;font-size:13px;font-weight:600}.legalflow-ui .dialog-content .case-form .case-add-client{min-height:28px;padding:0 7px;gap:5px;border:0;background:transparent;color:#6E5E48;font-size:13px}.legalflow-ui .dialog-content .case-form .case-client-options{grid-template-columns:1fr;margin-top:4px;max-height:124px;padding:3px;background:#FCFBF8}.legalflow-ui .dialog-content .case-form .case-client-options label{min-height:36px;padding:6px 8px;font-size:13px}.legalflow-ui .dialog-content .case-form .case-client-options label>span{flex-direction:row;align-items:baseline;gap:8px;flex-wrap:wrap}.legalflow-ui .dialog-content .case-form .case-client-options .subtext{font-size:12px}.legalflow-ui .dialog-content .case-form .case-documents-drop{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;padding:12px;border:1px dashed #d7c9b2;border-radius:8px;background:#FCFBF8;min-height:0}.legalflow-ui .dialog-content .case-form .case-documents-drop>svg{width:18px;height:18px}.legalflow-ui .dialog-content .case-form .case-documents-drop>p{margin:0}.legalflow-ui .dialog-content .case-form .case-documents-buttons{display:flex;justify-content:center;gap:8px;width:100%;margin:0}.legalflow-ui .dialog-content .case-form .case-documents-buttons .button{min-height:30px;padding:0 9px;font-size:13px;gap:5px}.legalflow-ui .dialog-content .case-form .case-documents>.field-hint{font-size:12px;line-height:1.5}.legalflow-ui .dialog-content .case-form .case-advanced .inline-heading>.button{min-height:28px;padding:0 7px;font-size:13px;background:transparent}.legalflow-ui .dialog-content .case-form .case-party-form{gap:10px}.legalflow-ui .dialog-content .case-form .case-advanced textarea[name=description]{height:76px;min-height:76px}@media(min-width:1000px){.legalflow-ui .dialog-content .case-form .case-form-fields{grid-template-columns:1.08fr 1fr;gap:22px}.legalflow-ui .dialog-content .case-form .case-advanced.form-section-content{padding-left:22px}}@media(max-width:650px){.legalflow-ui .dialog-content:has(>.case-form){width:calc(100vw - 24px)}.legalflow-ui .dialog-content .case-form .case-add-client,.legalflow-ui .dialog-content .case-form .case-documents-buttons .button{min-height:40px}}.legalflow-ui .dialog-content .case-form{font:400 13px/1.5 var(--av-font)}.legalflow-ui .dialog-content .case-form :is(.field>label,.form-label){font-size:13px;line-height:1.5;font-weight:500}.legalflow-ui .dialog-content .case-form :is(button,.button,select,input,textarea){font-family:var(--av-font);font-size:13px;line-height:1.5}.legalflow-ui .dialog-content .case-form :is(.field-hint,.muted,.subtext,.form-extra-heading span){font-size:12px;line-height:1.5;font-weight:400;color:var(--av-muted)}.legalflow-ui .dialog-content .case-form .case-documents-drop>p{font-size:12px;line-height:1.5}.legalflow-ui .dialog-content .case-form .case-add-client,.legalflow-ui .dialog-content .case-form .case-advanced .inline-heading>.button,.legalflow-ui .dialog-content .case-form .case-documents-buttons .button{min-height:34px}.legalflow-ui .dialog-content .case-form :is(.case-documents-summary,.case-documents-list li,.case-documents-rejected,.case-documents-ignored){font-size:12px;line-height:1.5}@media(max-width:650px){.legalflow-ui .dialog-content .case-form :is(input,textarea,select){font-size:16px}.legalflow-ui .dialog-content .case-form .case-add-client,.legalflow-ui .dialog-content .case-form .case-advanced .inline-heading>.button,.legalflow-ui .dialog-content .case-form .case-documents-buttons .button{min-height:44px}}.legalflow-ui .dialog-content:has(>.case-form){width:min(680px,calc(100vw - 32px));max-width:680px}.legalflow-ui .dialog-content .case-form .case-form-fields{display:block}.legalflow-ui .dialog-content .case-form .case-advanced[hidden]{display:none}.legalflow-ui .dialog-content .case-form .case-basic-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 4px}.legalflow-ui .dialog-content .case-form .case-extra-toggle{min-height:32px;padding:0 8px;border:0;background:transparent;color:var(--av-muted);gap:6px;box-shadow:none}.legalflow-ui .dialog-content .case-form .case-extra-toggle:hover{background:#F7F5F0;color:var(--av-text)}.legalflow-ui .dialog-content .case-form .case-extra-toggle svg{transition:transform .15s ease}.legalflow-ui .dialog-content .case-form .case-extra-toggle[aria-expanded=true] svg{transform:rotate(180deg)}.legalflow-ui .dialog-content .case-form .case-advanced.form-section-content{margin-top:16px;padding:16px 0 0;border-left:0;border-top:1px solid var(--av-border)}@media(min-width:1000px){.legalflow-ui .dialog-content:has(>.case-extra-open){width:min(980px,calc(100vw - 32px));max-width:980px}.legalflow-ui .dialog-content .case-extra-open .case-form-fields{display:grid;grid-template-columns:1.08fr 1fr;gap:22px;align-items:start}.legalflow-ui .dialog-content .case-extra-open .case-advanced.form-section-content{margin:0;padding:0 0 0 22px;border-top:0;border-left:1px solid var(--av-border)}}@media(max-width:650px){.legalflow-ui .dialog-content:has(>.case-form){width:calc(100vw - 24px)}.legalflow-ui .dialog-content .case-form .case-extra-toggle{min-height:44px}}@media(min-width:1000px){.legalflow-ui .dialog-content:has(>.case-form){left:50%;top:50%;transform:translate(-50%,-50%);width:600px;max-width:calc(100vw - 32px);transition:width .18s ease}.legalflow-ui .dialog-content:has(>.case-extra-open){width:1040px}.legalflow-ui .dialog-content .case-form .case-form-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;align-items:start}.legalflow-ui .dialog-content .case-extra-open .case-form-fields{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.legalflow-ui .dialog-content .case-extra-open .case-advanced.form-section-content{min-width:0;padding-left:22px}}.legalflow-ui .dialog-content .case-form .case-extra-toggle{border:1px solid var(--av-border);border-radius:6px;padding:0 10px;background:#fff}.legalflow-ui .dialog-content .case-form .case-client-select{position:relative;min-width:0}.legalflow-ui .dialog-content .case-form .case-client-select-trigger{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;min-height:38px;padding:8px 11px;border:1px solid var(--av-border);border-radius:7px;background:#fff;color:var(--av-text);text-align:left}.legalflow-ui .dialog-content .case-form .case-client-select-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legalflow-ui .dialog-content .case-form .case-client-select-trigger svg{flex-shrink:0;color:var(--av-muted)}.legalflow-ui .dialog-content .case-form .case-client-select-menu{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:10;border:1px solid var(--av-border);border-radius:8px;background:#fff;box-shadow:0 8px 24px #1F1D201A;overflow:hidden}.legalflow-ui .dialog-content .case-form .case-client-search{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--av-border);color:var(--av-muted)}.legalflow-ui .dialog-content .case-form .case-client-search input{width:100%;min-width:0;border:0;outline:none;background:transparent;padding:0;box-shadow:none}.legalflow-ui .dialog-content .case-form .case-client-select-options{max-height:210px;overflow-y:auto;padding:4px}.legalflow-ui .dialog-content .case-form .case-client-select-options button[role=checkbox]{display:flex;align-items:center;gap:9px;min-height:40px;padding:7px 9px;border-radius:4px;cursor:pointer}.legalflow-ui .dialog-content .case-form .case-client-select-options input{width:15px;height:15px;accent-color:#4D4845}.legalflow-ui .dialog-content .case-form .case-client-select-options .case-client-option-name{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:13px}.legalflow-ui .dialog-content .case-form .case-client-select-options small{font-size:12px;color:var(--av-muted)}.legalflow-ui .dialog-content .case-form .case-client-select-options>p{padding:12px;font-size:12px;color:var(--av-muted)}.legalflow-ui .dialog-content .case-form .case-client-select-footer{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;border-top:1px solid var(--av-border);font-size:12px;color:var(--av-muted)}.legalflow-ui .dialog-content .case-form .case-client-select-footer button{border:0;border-radius:4px;padding:4px 8px;background:#F1ECDC;color:var(--av-text);font-size:12px}@media(max-width:650px){.legalflow-ui .dialog-content .case-form .case-client-select-options button[role=checkbox],.legalflow-ui .dialog-content .case-form .case-client-select-trigger{min-height:44px}}@media(prefers-reduced-motion:reduce){.legalflow-ui .dialog-content:has(>.case-form){transition:none}}.legalflow-ui .dialog-content:has(>.case-form){height:min(720px,calc(100dvh - 48px));overflow:hidden;transition:width .32s cubic-bezier(.2,.75,.25,1)}.legalflow-ui .dialog-content>.case-form{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}.legalflow-ui .dialog-content .case-form .case-form-fields{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:8px;scrollbar-color:#D7C9B2 transparent}.legalflow-ui .dialog-content .case-form>.form-actions{flex-shrink:0;position:static;margin-top:8px}.legalflow-ui .dialog-content .case-extra-open .case-advanced:not([hidden]){animation:case-extra-reveal .24s ease-out}@keyframes case-extra-reveal{0%{opacity:0;transform:translateX(8px)}to{opacity:1;transform:translateX(0)}}.legalflow-ui .dialog-content .case-form .case-parties-list{max-height:190px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#D7C9B2 transparent}.legalflow-ui .dialog-content .case-form .case-parties-list:empty{display:none}.legalflow-ui .dialog-content .case-form .case-party-form{position:relative;display:grid;align-items:start;gap:8px;margin:8px 0 0;padding:10px;border:1px solid var(--av-border);background:#FCFBF8;border-radius:7px}.legalflow-ui .dialog-content .case-form .case-party-form>.field:nth-child(3){grid-column:auto}.legalflow-ui .dialog-content .case-form .case-party-form>.button{grid-column:3;grid-row:1;min-width:28px;width:28px;height:36px;min-height:36px;padding:0;margin-top:22px;border:0;background:transparent}.legalflow-ui .dialog-content .case-form .case-party-form .field>label{font-size:12px}.legalflow-ui .dialog-content .case-form .case-party-notes{grid-column:1/-1;margin:0;border:0;background:transparent}.legalflow-ui .dialog-content .case-form .case-party-notes summary{width:max-content;padding:2px 0;cursor:pointer;font-size:12px;color:var(--av-muted)}.legalflow-ui .dialog-content .case-form .case-party-notes .field{margin-top:6px}.legalflow-ui .dialog-content .case-form .case-party-notes textarea{min-height:56px;height:56px}@media(min-width:1100px){.legalflow-ui .dialog-content .case-form .case-form-fields{grid-template-columns:558px;overflow-x:hidden}.legalflow-ui .dialog-content .case-extra-open .case-form-fields{grid-template-columns:558px minmax(0,1fr)}.legalflow-ui .dialog-content .case-extra-open .case-advanced{overflow:hidden}}@media(max-width:650px){.legalflow-ui .dialog-content:has(>.case-form){height:calc(100dvh - 24px)}}@media(prefers-reduced-motion:reduce){.legalflow-ui .dialog-content:has(>.case-form){transition:none}.legalflow-ui .dialog-content .case-extra-open .case-advanced:not([hidden]){animation:none}}.legalflow-ui .dialog-content:has(>.case-form){left:50%;top:50%;transform:translate(-50%,-50%);width:min(760px,calc(100vw - 32px));max-width:760px;height:min(600px,calc(100dvh - 48px));transition:height .3s cubic-bezier(.2,.75,.25,1)}.legalflow-ui .dialog-content:has(>.case-extra-open){width:min(760px,calc(100vw - 32px))}.legalflow-ui .dialog-content .case-extra-open .case-form-fields,.legalflow-ui .dialog-content .case-form .case-form-fields{display:block;overflow-x:hidden}.legalflow-ui .dialog-content .case-extra-open .case-advanced.form-section-content{margin:18px 0 0;padding:16px 0 0;border-left:0;border-top:1px solid var(--av-border);overflow:visible;animation:case-extra-vertical .22s ease-out}.legalflow-ui .dialog-content .case-form .case-extra-toggle{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 12px;border:1px solid #d7c9b2;border-radius:7px;background:#F7F5F0;color:#4D4845;font-size:12px;font-weight:500}.legalflow-ui .dialog-content .case-form .case-extra-toggle:hover{background:#F1ECDC;border-color:#B8AA96}.legalflow-ui .dialog-content .case-form .case-extra-toggle[aria-expanded=true]{background:#F1ECDC}.legalflow-ui .dialog-content .case-form .case-extra-toggle svg{transform:none}.legalflow-ui .dialog-content .case-form .case-party-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 28px;padding:10px 0;border:0;border-top:1px solid var(--av-border);border-radius:0;background:transparent}.legalflow-ui .dialog-content .case-form .case-party-form>.field.case-party-notes-field{grid-column:1/3}.legalflow-ui .dialog-content .case-form .case-party-notes-field>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.legalflow-ui .dialog-content .case-form .case-party-notes-field .input{min-height:32px;background:#FCFBF8;font-size:12px}@keyframes case-extra-vertical{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}@media(max-width:650px){.legalflow-ui .dialog-content:has(>.case-extra-open),.legalflow-ui .dialog-content:has(>.case-form){width:calc(100vw - 24px);height:min(680px,calc(100dvh - 24px))}.legalflow-ui .dialog-content .case-form .case-extra-toggle{min-height:44px}.legalflow-ui .dialog-content .case-form .case-party-notes-field .input{min-height:44px;font-size:16px}}@media(prefers-reduced-motion:reduce){.legalflow-ui .dialog-content:has(>.case-form){transition:none}.legalflow-ui .dialog-content .case-extra-open .case-advanced.form-section-content{animation:none}}.legalflow-ui .dialog-content:has(>.case-form){height:min(680px,calc(100dvh - 48px))}.legalflow-ui .dialog-content:has(>.case-extra-open){height:min(880px,calc(100dvh - 48px))}.legalflow-ui .dialog-content .case-form .case-form-fields{scrollbar-width:thin;scrollbar-color:#C8BEAF transparent}.legalflow-ui .dialog-content .case-form .case-client-select-options::-webkit-scrollbar,.legalflow-ui .dialog-content .case-form .case-form-fields::-webkit-scrollbar,.legalflow-ui .dialog-content .case-form .case-parties-list::-webkit-scrollbar{width:5px}.legalflow-ui .dialog-content .case-form .case-client-select-options::-webkit-scrollbar-track,.legalflow-ui .dialog-content .case-form .case-form-fields::-webkit-scrollbar-track,.legalflow-ui .dialog-content .case-form .case-parties-list::-webkit-scrollbar-track{background:transparent}.legalflow-ui .dialog-content .case-form .case-client-select-options::-webkit-scrollbar-thumb,.legalflow-ui .dialog-content .case-form .case-form-fields::-webkit-scrollbar-thumb,.legalflow-ui .dialog-content .case-form .case-parties-list::-webkit-scrollbar-thumb{background:#C8BEAF;border-radius:10px}.legalflow-ui .dialog-content .case-form .case-client-select-options{scrollbar-width:thin;scrollbar-color:#C8BEAF transparent}.legalflow-ui .dialog-content .case-extra-open .case-form-fields{padding-right:8px}@media(max-width:650px){.legalflow-ui .dialog-content:has(>.case-form){height:min(740px,calc(100dvh - 24px))}.legalflow-ui .dialog-content:has(>.case-extra-open){height:calc(100dvh - 24px)}}.legalflow-ui .dialog-content .case-form .case-client-select-options button[role=checkbox]{width:100%;border:0;background:transparent;text-align:left;color:var(--av-text);font-weight:400}.legalflow-ui .dialog-content .case-form .case-client-select-options button[role=checkbox][aria-checked=true]{background:#F1ECDC}.legalflow-ui .dialog-content .case-form .case-client-select-options button[role=checkbox]:hover{background:#F7F5F0}.legalflow-ui .dialog-content .case-form .case-client-check{display:grid;place-items:center;flex:0 0 15px;width:15px;height:15px;border:1px solid #b8aa96;border-radius:3px;background:white}.legalflow-ui .dialog-content .case-form [aria-checked=true]>.case-client-check{background:#4D4845;border-color:#4D4845;color:white}.legalflow-ui .dialog-content .case-form .case-documents-drop>.case-documents-list{width:100%;min-width:0;margin:0;border:0;border-radius:0;background:transparent;text-align:left}.legalflow-ui .dialog-content .case-form .case-documents-drop .case-documents-summary{padding:0 0 7px;background:transparent;font-size:12px;font-weight:400;gap:8px}.legalflow-ui .dialog-content .case-form .case-documents-drop .case-documents-summary>.button{min-height:26px;padding:0 4px;font-size:11px}.legalflow-ui .dialog-content .case-form .case-documents-drop .case-documents-list ul{max-height:120px;padding:4px 0 0;scrollbar-width:thin;scrollbar-color:#C8BEAF transparent}.legalflow-ui .dialog-content .case-form .case-documents-drop .case-documents-list li{min-width:0;padding:5px 8px;border:1px solid var(--av-border);border-radius:6px;background:#fff;font-size:12px}.legalflow-ui .dialog-content .case-form .case-documents-drop .case-documents-list li+li{margin-top:5px}.legalflow-ui .dialog-content .case-form .case-documents-drop .case-documents-list li .button{min-width:26px;width:26px;min-height:26px;height:26px;padding:0}.legalflow-ui .dialog-content .case-form .case-documents-drop .case-documents-list li .subtext{font-size:11px}@media (max-width:780px){.legalflow-ui .office-home .home-recent-cases .table-scroll{overflow:visible}.legalflow-ui .office-home .home-recent-cases table{min-width:0;white-space:normal}.legalflow-ui .office-home .home-recent-cases thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.legalflow-ui .office-home .home-recent-cases :is(table,tbody){display:block;width:100%}.legalflow-ui .office-home .home-recent-cases tbody tr.home-case-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:var(--av-s2);padding:8px var(--av-s4) 9px;border-bottom:1px solid var(--av-border)}.legalflow-ui .office-home .home-recent-cases tbody tr.home-case-row:last-child{border-bottom:0;border-radius:0 0 var(--av-r-lg) var(--av-r-lg)}.legalflow-ui .office-home .home-recent-cases tbody tr.home-case-row:hover{background:transparent}.legalflow-ui .office-home .home-recent-cases tbody tr.home-case-row:active{background:var(--av-surface-3)}.legalflow-ui .office-home .home-recent-cases tbody tr.home-case-row>td{display:block;min-width:0;padding:0;border:0}.legalflow-ui .office-home .home-recent-cases td.home-case-main{grid-column:1/-1;grid-row:1}.legalflow-ui .office-home .home-recent-cases td.home-case-main strong{display:block;max-width:calc(100% - 112px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--av-fs-md);font-weight:600;line-height:22px;font-variant-numeric:tabular-nums}.legalflow-ui .office-home .home-recent-cases td.home-case-main .subtext{max-width:none;margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--av-text);font-size:var(--av-fs-md);line-height:1.45}.legalflow-ui .office-home .home-recent-cases td.home-case-status{grid-column:2;grid-row:1;align-self:start;line-height:1}.legalflow-ui .office-home .home-recent-cases td.home-case-status .badge{padding:2px 8px 2px 7px}.legalflow-ui .office-home .home-recent-cases td.home-case-clients{grid-column:1/-1;grid-row:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--av-muted);font-size:var(--av-fs-xs);line-height:1.5}.legalflow-ui .office-home .home-recent-cases td.home-case-open{grid-area:1/1;position:static;width:0;height:0;overflow:visible}.legalflow-ui .office-home .home-recent-cases td.home-case-open .button{position:absolute;inset:0;z-index:1;width:auto;height:auto;min-height:0;padding:0;border:0;border-radius:inherit;background:transparent;box-shadow:none;color:transparent;font-size:0;overflow:hidden}.legalflow-ui .office-home .home-recent-cases td.home-case-open .button:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--av-gold-ink)}.legalflow-ui .office-home .home-recent-cases .card-head .button-ghost{min-height:44px;margin-block:-6px}}.legalflow-ui .office-home{padding-bottom:12px}.legalflow-ui .home-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:10px}.legalflow-ui .home-heading h1{font-size:26px;letter-spacing:-.035em;line-height:1.25;font-weight:600}.legalflow-ui .home-heading p{margin-top:8px;font-size:13px;color:var(--av-muted);line-height:1.6}.legalflow-ui .home-heading-actions{display:flex;gap:8px;flex-shrink:0}.legalflow-ui .home-heading-actions .button{min-height:38px;font-size:12px;padding-inline:13px}.legalflow-ui .home-heading-actions .button-primary{background:#4D4845;border-color:#4D4845;color:#FFFEFA}.legalflow-ui .home-heading-actions .button-primary:hover{background:#3E3936}.legalflow-ui .office-home .home-stats{gap:0;margin-bottom:20px;padding:0;border:1px solid var(--av-border);border-radius:10px;background:var(--av-surface);overflow:hidden}.legalflow-ui .office-home .home-stat{position:relative;gap:14px;padding:20px 22px;border:0;border-radius:0;background:transparent;box-shadow:none}.legalflow-ui .office-home .home-stat+.home-stat{border-left:1px solid var(--av-border)}.legalflow-ui .office-home .home-stat-label{font-size:12px;color:var(--av-muted);font-weight:500}.legalflow-ui .office-home .home-stat-label svg{color:#847866;width:17px;height:17px;stroke-width:1.5}.legalflow-ui .office-home .home-stat-value{font-family:var(--av-font);font-size:32px;line-height:1.1;font-weight:550;letter-spacing:-.045em}.legalflow-ui .office-home .home-work-grid{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:0;margin-bottom:18px;align-items:stretch;border:1px solid var(--av-border);border-radius:10px;background:var(--av-surface);overflow:hidden}.legalflow-ui .office-home .home-work-grid>.card{border:0;border-radius:0;background:transparent;box-shadow:none;min-width:0;overflow:hidden}.legalflow-ui .office-home .home-work-grid>.card+.card{border-left:1px solid var(--av-border)}.legalflow-ui .office-home .home-work-grid:last-child{margin-bottom:0}.legalflow-ui .office-home .card-head{min-height:62px;padding:14px 22px;gap:12px;align-items:center;background:var(--av-surface)}.legalflow-ui .office-home .card-head h2{font-size:14px;font-weight:600;letter-spacing:-.025em}.legalflow-ui .office-home .card-head>.button{font-size:12px;padding:0;white-space:nowrap}.legalflow-ui .office-home .card-head>svg{color:var(--av-subtle)}.legalflow-ui .office-home th{padding:11px 22px;background:var(--av-surface-2);font-size:12px;font-weight:500;color:var(--av-muted)}.legalflow-ui .office-home td{padding:17px 22px;font-size:13px}.legalflow-ui .office-home td:first-child strong{font-size:12px;font-weight:600}.legalflow-ui .office-home td .subtext{font-size:12px;margin-top:5px}.legalflow-ui .office-home td .button-outline{font-size:12px;min-height:28px;border-color:var(--av-border);padding-inline:10px;background:transparent;box-shadow:none}.legalflow-ui .office-home .badge{font-size:12px;padding:3px 8px}.legalflow-ui .office-home .empty{min-height:200px;justify-content:center;padding:28px 22px}.legalflow-ui .office-home .empty-icon{width:38px;height:38px;border:0;background:var(--av-surface-3);border-radius:8px;margin-bottom:12px;color:var(--av-muted)}.legalflow-ui .office-home .empty-icon svg{width:18px;height:18px;stroke-width:1.5}.legalflow-ui .office-home .empty h3{font-size:12px;font-weight:550}.legalflow-ui .office-home .empty p{font-size:12px;max-width:32ch;line-height:1.7}@media(min-width:781px){.legalflow-ui .office-home .home-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1200px){.legalflow-ui .home-heading{align-items:flex-start}.legalflow-ui .home-heading h1{font-size:24px}.legalflow-ui .office-home .home-stat{padding:20px 16px}.legalflow-ui .office-home .home-work-grid{grid-template-columns:minmax(0,1fr)}.legalflow-ui .office-home .home-work-grid>.card+.card{border-left:0;border-top:1px solid var(--av-border)}}@media(max-width:780px){.legalflow-ui .home-heading{flex-direction:column;gap:12px;margin-bottom:10px}.legalflow-ui .home-heading h1{font-size:24px}.legalflow-ui .home-heading-actions{width:100%}.legalflow-ui .home-heading-actions .button{min-height:42px;flex:1}.legalflow-ui .office-home .home-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.legalflow-ui .office-home .home-stat:nth-child(3){border-left:0}.legalflow-ui .office-home .home-stat:nth-child(n+3){border-top:1px solid var(--av-border)}.legalflow-ui .office-home .home-stat{padding:18px;gap:12px}.legalflow-ui .office-home .home-stat-value{font-size:28px}.legalflow-ui .office-home .card-head{padding:16px;min-height:76px}}.legalflow-ui .office-home .home-quick-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:0;margin-bottom:20px;border:0}.legalflow-ui .office-home .home-quick-tools-label{grid-column:1/-1;margin-bottom:2px;color:var(--av-muted);font-size:12px;font-weight:500}.legalflow-ui .office-home .home-quick-tools .button{min-width:0;min-height:48px;justify-content:flex-start;padding:0 14px;gap:10px;border:0;border-bottom:1px solid #b8aa96;border-radius:0;background:transparent;font-size:13px;font-weight:500;color:var(--av-text);white-space:normal;text-align:left}.legalflow-ui .office-home .home-quick-tools .button:hover:not(:disabled){background:transparent;border-bottom-color:var(--av-gold-ink);color:var(--av-gold-ink)}.legalflow-ui .office-home .home-quick-tools .button:disabled{background:transparent}.legalflow-ui .office-home .home-quick-tools .button svg{color:var(--av-muted);stroke-width:1.6}@media(max-width:780px){.legalflow-ui .office-home .home-stat{padding:14px 16px}.legalflow-ui .office-home .card-head{min-height:60px}.legalflow-ui .office-home .home-quick-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.legalflow-ui .office-home .home-quick-tools-label{margin-bottom:2px}.legalflow-ui .office-home .home-quick-tools .button{min-height:48px;padding-inline:12px}}.legalflow-ui .office-home .home-heading{align-items:flex-start;padding:0;gap:20px}.legalflow-ui .office-home .home-heading h1{display:flex;align-items:center;min-height:38px;margin:0;padding:0;font:600 26px/1.25 var(--av-font);letter-spacing:-.035em}.legalflow-ui .office-home .home-heading-actions{align-items:center;align-self:flex-start;gap:8px;margin:0;padding:0}.legalflow-ui .office-home .home-heading-actions .button{min-height:38px;height:38px;padding:0 14px;margin:0;font-size:13px;font-weight:500;line-height:1;border-radius:7px;gap:7px}.legalflow-ui .office-home .home-heading-actions .button svg{width:16px;height:16px}@media(max-width:780px){.legalflow-ui .office-home .home-heading{flex-direction:column;gap:14px}.legalflow-ui .office-home .home-heading h1{min-height:30px;font-size:24px}.legalflow-ui .office-home .home-heading-actions{width:auto}.legalflow-ui .office-home .home-heading-actions .button{height:44px;min-height:44px;flex:none}}.legalflow-ui .app-shell .page-content .office-home :is(.home-stats,.home-insights,.home-work-grid){border-radius:24px;border-color:#E6E0D7;background:#FFF}.legalflow-ui .app-shell .office-home .home-stat-label{color:#7B7369}.legalflow-ui .app-shell .office-home .home-stat-value{color:#1F1D20}.legalflow-ui .app-shell .office-home .home-stat-value.is-alert{color:var(--av-danger-ink)}.legalflow-ui .app-shell .office-home .home-work-grid>.card{background:transparent;box-shadow:none}.legalflow-ui .app-shell .office-home .home-work-grid .card-head{border-bottom-color:#E6E0D7}.legalflow-ui .app-shell .office-home .home-work-grid .button{border-radius:999px}.legalflow-ui .app-shell .office-home .home-work-grid .button-outline{background:#F7F5F0;border-color:#E6E0D7;color:#4D4845}.legalflow-ui .app-shell .office-home .home-work-grid .button-outline:hover{background:#F1ECDC;border-color:#D7C9B2}.legalflow-ui .app-shell .office-home .home-quick-tools .button:hover:not(:disabled){background:transparent;border-bottom-color:var(--av-gold-ink);color:var(--av-gold-ink)}@media(min-width:1101px){.legalflow-ui .app-shell .office-home .home-quick-tools{grid-template-columns:repeat(6,minmax(0,1fr))}}@media(min-width:781px) and (max-width:1100px){.legalflow-ui .app-shell .office-home .home-quick-tools{grid-template-columns:repeat(3,minmax(0,1fr))}}.legalflow-ui .app-shell .page-content .office-home .home-stats.kpi-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0;border:0;border-radius:0;background:transparent;margin-bottom:20px;overflow:visible}.legalflow-ui .app-shell .office-home .kpi-summary .home-stat{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 34px;align-content:center;align-items:center;gap:8px 16px;min-width:0;min-height:96px;padding:16px 20px;text-decoration:none;cursor:pointer;border:1px solid #e6e0d7;border-radius:20px;background:#FFF;box-shadow:none;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}.legalflow-ui .app-shell .office-home .kpi-summary .home-stat:hover{border-color:#D7C9B2}.legalflow-ui .app-shell .office-home .kpi-summary .home-stat-label{grid-column:1/-1;grid-row:1;display:block;min-height:0;padding:0;font-size:13px;font-weight:500;line-height:1.4;color:#7B7369}.legalflow-ui .app-shell .office-home .kpi-summary .home-stat-value{grid-column:1;grid-row:2;min-width:0;font-size:30px;font-weight:600;line-height:1.1;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:#1F1D20;overflow-wrap:anywhere}.legalflow-ui .app-shell .office-home .kpi-summary .home-stat-placeholder{grid-column:1;grid-row:2}.legalflow-ui .app-shell .office-home .kpi-summary .kpi-description{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.legalflow-ui .app-shell .office-home .kpi-summary .has-overdue .home-stat-value{color:var(--av-danger-ink)}@media(max-width:1200px){.legalflow-ui .app-shell .page-content .office-home .home-stats.kpi-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.legalflow-ui .app-shell .page-content .office-home .home-stats.kpi-summary{grid-template-columns:1fr;gap:10px}}@media(prefers-reduced-motion:reduce){.legalflow-ui .app-shell .office-home .kpi-summary .home-stat{transition:none}}.legalflow-ui .app-shell .office-home .kpi-summary .kpi-open-arrow{position:absolute;right:20px;bottom:22px;color:var(--wt-accent,#4D4845);opacity:0;transform:translateX(-4px);transition:opacity .17s ease,transform .17s ease}.legalflow-ui .app-shell .office-home .kpi-summary .home-stat:focus-visible{outline:2px solid var(--av-muted);outline-offset:3px}.legalflow-ui .app-shell .office-home .kpi-summary .home-stat:is(:hover,:focus-visible) .kpi-open-arrow{opacity:1;transform:none}@media(hover:hover) and (pointer:fine){.legalflow-ui .app-shell .office-home .kpi-summary .home-stat:hover{transform:translateY(-2px);box-shadow:0 7px 22px #1F1D2010}}.legalflow-ui .app-shell .office-home .kpi-summary .home-stat:active{transform:none;box-shadow:none}@media(prefers-reduced-motion:reduce){.legalflow-ui .app-shell .office-home .kpi-summary .kpi-open-arrow{transition:none}.legalflow-ui .app-shell .office-home .kpi-summary .home-stat:hover{transform:none}}.legalflow-ui .app-shell .office-home .home-quick-tools .button{position:relative;justify-content:center;text-align:center;border:0;border-bottom:1px solid var(--wt-border-strong,#b8aa96);border-radius:0;background:transparent;color:var(--wt-text,#1F1D20)}.legalflow-ui .app-shell .office-home .home-quick-tools .button:after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--wt-text,#1F1D20);transform:scaleX(0);transform-origin:left;transition:transform .24s cubic-bezier(.22,1,.36,1);pointer-events:none}.legalflow-ui .app-shell .office-home .home-quick-tools .button:is(:hover,:focus-visible):not(:disabled){background:transparent;color:var(--wt-text,#1F1D20);border-bottom-color:var(--wt-border-strong,#B8AA96)}.legalflow-ui .app-shell .office-home .home-quick-tools .button:is(:hover,:focus-visible):not(:disabled):after{transform:scaleX(1)}.legalflow-ui .app-shell .office-home .home-quick-tools .button:focus-visible{outline:2px solid var(--av-muted);outline-offset:3px}@media(prefers-reduced-motion:reduce){.legalflow-ui .app-shell .office-home .home-quick-tools .button:after{transition:none}}.legalflow-ui .office-home .home-insights{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);margin-bottom:20px;border:1px solid var(--av-border);border-radius:10px;background:var(--av-surface);overflow:hidden}.legalflow-ui .office-home .home-insights>section{min-width:0;padding:20px 22px 14px}.legalflow-ui .office-home .insight-cases{border-left:1px solid var(--av-border)}.legalflow-ui .office-home .insight-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.legalflow-ui .office-home .insight-heading h2{font-size:14px;font-weight:600;letter-spacing:-.02em}.legalflow-ui .office-home .insight-heading p{margin-top:5px;color:var(--av-muted);font-size:12px;line-height:1.5}.legalflow-ui .office-home .insight-period{display:flex;gap:2px;padding:3px;border:1px solid var(--av-border);border-radius:6px;background:var(--av-surface-2);flex-shrink:0}.legalflow-ui .office-home .insight-period button{border:0;background:transparent;color:var(--av-muted);border-radius:4px;font-size:12px;padding:5px 8px;min-height:28px}.legalflow-ui .office-home .insight-period button[aria-pressed=true]{background:#4D4845;color:#FFFFFF}.legalflow-ui .office-home .insight-chart-summary{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px 48px;margin:18px 0 8px;color:var(--av-muted);font-size:12px}.legalflow-ui .office-home .insight-chart-summary>span{display:inline-flex;align-items:center;gap:7px}.legalflow-ui .office-home .insight-chart-summary strong{color:var(--av-text);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}.legalflow-ui .office-home .case-distribution-legend i,.legalflow-ui .office-home .insight-chart-summary i{width:8px;height:8px;border-radius:2px;flex-shrink:0}.legalflow-ui .office-home .bar-events,.legalflow-ui .office-home .legend-events{background:#4D4845}.legalflow-ui .office-home .bar-deadlines,.legalflow-ui .office-home .legend-deadlines{background:#B8A17B}.legalflow-ui .office-home .schedule-chart{display:flex;gap:12px;height:168px;margin-top:24px;margin-bottom:12px}.legalflow-ui .office-home .schedule-axis{display:flex;flex-direction:column;justify-content:space-between;padding-bottom:27px;width:14px;color:var(--av-subtle);font-size:12px}.legalflow-ui .office-home .schedule-columns{display:grid;flex:1;gap:8px;min-width:0;background:repeating-linear-gradient(0deg,transparent 0,transparent 57px,#EDE8DF 0,#EDE8DF 58px);background-size:100% calc(100% - 27px);background-repeat:no-repeat}.legalflow-ui .office-home .schedule-day{display:flex;flex-direction:column;min-width:0;gap:10px}.legalflow-ui .office-home .schedule-bars{display:flex;gap:3px;align-items:flex-end;justify-content:center;flex:1;min-height:0;border-bottom:1px solid var(--av-border)}.legalflow-ui .office-home .schedule-bar{display:block;max-width:14px;width:40%;border-radius:3px 3px 0 0}.legalflow-ui .office-home .schedule-date{text-align:center;font-size:12px;color:var(--av-subtle);height:17px}.legalflow-ui .office-home .schedule-day.is-today .schedule-date{font-weight:650;color:var(--av-ink)}.legalflow-ui .office-home .schedule-day:hover .schedule-bars{background:#F1ECDC55}.legalflow-ui .office-home .insight-footnote{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--av-border);font-size:12px;color:var(--av-muted);line-height:1.6;min-height:32px}.legalflow-ui .office-home .insight-footnote a{display:inline-flex;align-items:center;gap:4px;color:var(--av-gold-ink);white-space:nowrap}.legalflow-ui .office-home .insight-error{padding-top:20px}@media(max-width:1250px){.legalflow-ui .office-home .home-insights{grid-template-columns:1fr}.legalflow-ui .office-home .insight-cases{border-left:0;border-top:1px solid var(--av-border)}.legalflow-ui .office-home .case-distribution{min-height:185px;gap:28px}.legalflow-ui .office-home .case-distribution-legend{max-width:320px}}@media(max-width:780px){.legalflow-ui .office-home .home-insights>section{padding:16px}.legalflow-ui .office-home .insight-heading{gap:8px}.legalflow-ui .office-home .insight-heading p{max-width:24ch}.legalflow-ui .office-home .schedule-columns{gap:4px}.legalflow-ui .office-home .schedule-bars{gap:2px}.legalflow-ui .office-home .insight-footnote{flex-wrap:wrap;font-size:12px}.legalflow-ui .office-home .case-distribution{gap:18px}.legalflow-ui .office-home .insight-period button{min-height:36px}.legalflow-ui .office-home .case-distribution-legend a{min-height:40px}}.legalflow-ui .office-home .case-distribution{display:flex;align-items:center;justify-content:center;gap:28px;min-height:228px}.legalflow-ui .office-home .case-donut{position:relative;flex:0 0 164px;width:164px;height:164px;min-width:164px;min-height:164px}.legalflow-ui .office-home .case-donut svg{width:100%;height:100%}.legalflow-ui .office-home .case-donut>div{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.legalflow-ui .office-home .case-donut strong{font-size:29px;font-weight:550;line-height:1.3;letter-spacing:-.04em}.legalflow-ui .office-home .case-donut span{font-size:12px;color:var(--av-muted)}.legalflow-ui .office-home .case-distribution-legend{list-style:none;padding:0;margin:0;display:grid;justify-items:start;gap:6px;min-width:0}.legalflow-ui .office-home .case-distribution-legend a{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:3px 6px;border-radius:5px;font-size:12px}.legalflow-ui .office-home .case-distribution-legend a:hover{background:var(--av-surface-2)}.legalflow-ui .office-home .case-distribution-legend i{width:7px;height:7px;flex:none;border-radius:50%}.legalflow-ui .office-home .case-distribution-legend span{color:var(--av-muted);white-space:nowrap}.legalflow-ui .office-home .case-distribution-legend strong{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--av-ink)}@media(max-width:780px){.legalflow-ui .office-home .case-distribution{gap:18px;min-height:210px}.legalflow-ui .office-home .case-donut{flex-basis:164px;width:164px;height:164px}.legalflow-ui .office-home .case-distribution-legend a{min-height:40px}}.legalflow-ui .lf-client-delete,.legalflow-ui .lf-clients-form,.legalflow-ui .lf-clients-page{min-width:0;color:var(--av-text);font-family:var(--av-font);font-size:var(--av-fs-md)}.legalflow-ui .lf-client-delete :is(button,input):focus-visible,.legalflow-ui .lf-clients-form :is(button,summary,input,select,textarea):focus-visible,.legalflow-ui .lf-clients-page :is(button,a,summary,[tabindex]):focus-visible{outline:none;box-shadow:var(--av-focus)}.legalflow-ui .lf-clients-page [data-client-list-heading]:focus{outline:none}.legalflow-ui .lf-clients-readonly{margin:0 0 var(--av-s5);padding:var(--av-s3) var(--av-s4);background:var(--av-warning-soft);color:var(--av-warning-ink);border:1px solid var(--av-border);border-radius:var(--av-r);font-size:var(--av-fs-sm)}.legalflow-ui .lf-clients-card{padding:0;overflow:hidden;background:var(--av-surface);border:1px solid var(--av-border);border-radius:var(--av-r-lg);box-shadow:var(--av-shadow-sm)}.legalflow-ui .lf-clients-page .lf-clients-filters{display:inline-flex;width:auto;max-width:calc(100% - 2 * var(--av-s5));flex-wrap:wrap;gap:2px;margin:var(--av-s5) var(--av-s5) 0;padding:3px;background:var(--av-surface-2);border:1px solid var(--av-border);border-radius:var(--av-r)}.legalflow-ui .lf-clients-page .lf-clients-filters .button{min-height:32px;padding:0 var(--av-s3);border:0;border-radius:var(--av-r-sm);background:transparent;color:var(--av-muted);font-size:var(--av-fs-sm);font-weight:500;box-shadow:none}.legalflow-ui .lf-clients-page .lf-clients-filters .button:hover{background:var(--av-surface-3);color:var(--av-ink)}.legalflow-ui .lf-clients-page .lf-clients-filters .button[aria-pressed=true]{background:var(--av-sand);color:var(--av-ink);font-weight:600}.legalflow-ui .lf-clients-page .lf-clients-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:var(--av-s3) var(--av-s4);margin:0;padding:var(--av-s4) var(--av-s5) var(--av-s5);border-bottom:1px solid var(--av-border);background:transparent}.legalflow-ui .lf-clients-page .lf-clients-toolbar .field{margin:0;gap:6px}.legalflow-ui .lf-clients-page .lf-clients-toolbar .field>label{font-size:var(--av-fs-xs);font-weight:500;color:var(--av-subtle)}.legalflow-ui .lf-clients-page .lf-clients-toolbar .input{font-size:var(--av-fs-md);min-height:var(--av-control-h)}.legalflow-ui .lf-clients-page .lf-clients-toolbar .lf-clients-search{flex:1 1 280px;min-width:0}.legalflow-ui .lf-clients-page .lf-clients-toolbar .field:not(.lf-clients-search){flex:0 1 220px;min-width:180px}.legalflow-ui .lf-clients-page .lf-clients-toolbar .toolbar-count{display:inline-flex;align-items:center;min-height:var(--av-control-h);margin-left:auto;padding:0;color:var(--av-subtle);font-size:var(--av-fs-sm);font-variant-numeric:tabular-nums;white-space:nowrap}.legalflow-ui .lf-clients-page .lf-clients-toolbar>.button{min-height:var(--av-control-h)}.legalflow-ui .lf-clients-resource-error{display:grid;justify-items:start;gap:var(--av-s3);padding:var(--av-s4) var(--av-s5)}.legalflow-ui .lf-clients-card>.button,.legalflow-ui .lf-clients-card>.error-message{margin:var(--av-s4) var(--av-s5) 0}.legalflow-ui .lf-clients-card>.skeleton-wrap{padding:var(--av-s5)}.legalflow-ui .lf-clients-card .table-scroll{max-width:100%;overflow-x:auto;border:0;border-radius:0}.legalflow-ui .lf-clients-card table{width:100%;min-width:900px;border-collapse:collapse}.legalflow-ui .lf-clients-card td{vertical-align:middle;overflow-wrap:anywhere}.legalflow-ui .lf-clients-card :is(td,th):last-child{text-align:right}.legalflow-ui .lf-clients-card :is(td,th):nth-child(4){text-align:right}.legalflow-ui .lf-clients-entity{display:flex;align-items:center;gap:var(--av-s3);min-width:0}.legalflow-ui .lf-clients-avatar{width:34px;height:34px;min-width:34px;display:grid;place-items:center;border-radius:var(--av-r-pill);background:var(--av-surface-3);color:var(--av-muted);border:1px solid var(--av-border)}.legalflow-ui .lf-clients-avatar-business{border-radius:var(--av-r-sm);background:var(--av-gold-soft);color:var(--av-gold-ink);border-color:transparent}.legalflow-ui .lf-clients-entity-copy{display:flex;flex-direction:column;min-width:0}.legalflow-ui .lf-clients-page .lf-clients-name{display:inline;min-height:0;padding:0;border:0;background:none;text-align:left;font:inherit;font-size:var(--av-fs-md);font-weight:600;line-height:1.4;color:var(--av-ink);cursor:pointer;border-radius:4px}.legalflow-ui .lf-clients-page .lf-clients-name:hover{color:var(--av-gold-ink);text-decoration:underline;text-underline-offset:3px}.legalflow-ui .lf-clients-page .lf-clients-kind-label{margin:2px 0 0;font-size:var(--av-fs-xs);color:var(--av-subtle)}.legalflow-ui .lf-clients-page .lf-clients-contact{color:var(--av-text);text-decoration:none;font-variant-numeric:tabular-nums}.legalflow-ui .lf-clients-page .lf-clients-contact:hover{color:var(--av-gold-ink);text-decoration:underline;text-underline-offset:3px}.legalflow-ui .lf-clients-page .lf-clients-missing{color:var(--av-subtle)}.legalflow-ui .lf-clients-page .lf-clients-count{font-variant-numeric:tabular-nums;font-weight:500;color:var(--av-ink)}.legalflow-ui .lf-clients-status{display:inline-flex;align-items:center;gap:6px;padding:2px 10px 2px 8px;border-radius:var(--av-r-pill);font-size:var(--av-fs-xs);font-weight:600;line-height:20px;white-space:nowrap}.legalflow-ui .lf-clients-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}.legalflow-ui .lf-clients-status-active{color:var(--av-success-ink);background:var(--av-success-soft)}.legalflow-ui .lf-clients-status-inactive{color:var(--av-danger-ink);background:var(--av-danger-soft)}.legalflow-ui .lf-clients-status-unknown{color:var(--av-subtle);font-size:var(--av-fs-sm)}.legalflow-ui .lf-clients-row-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:4px}.legalflow-ui .lf-clients-page .lf-clients-row-actions .button{min-height:32px;padding:0 10px;gap:6px;font-size:var(--av-fs-sm);white-space:nowrap;box-shadow:none}.legalflow-ui .lf-clients-page .lf-clients-row-actions .button>svg{width:15px;height:15px}.legalflow-ui .lf-clients-page .lf-clients-row-actions .button-ghost{color:var(--av-muted)}.legalflow-ui .lf-clients-page .lf-clients-row-actions .button-ghost:hover:not(:disabled){color:var(--av-ink);background:var(--av-surface-3)}.legalflow-ui .lf-clients-page .lf-clients-row-actions .lf-clients-delete-action:hover:not(:disabled){color:var(--av-danger-ink);background:var(--av-danger-soft)}.legalflow-ui .lf-clients-fieldset{border:0;padding:0;margin:0;min-width:0}.legalflow-ui .lf-clients-kind{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;background:var(--av-surface-2);border:1px solid var(--av-border);border-radius:var(--av-r)}.legalflow-ui .lf-clients-form .lf-clients-kind .button{min-height:40px;border:0;border-radius:var(--av-r-sm);background:transparent;color:var(--av-muted);font-weight:500;box-shadow:none}.legalflow-ui .lf-clients-form .lf-clients-kind .button:hover{color:var(--av-ink);background:var(--av-surface-3)}.legalflow-ui .lf-clients-form .lf-clients-kind .button[aria-pressed=true]{background:var(--av-surface);color:var(--av-ink);font-weight:600;box-shadow:var(--av-shadow-sm),inset 0 0 0 1px var(--av-border-strong)}.legalflow-ui .lf-clients-form .lf-clients-kind .button[aria-pressed=true]>svg{color:var(--av-gold-ink)}.legalflow-ui .lf-clients-form .lf-clients-kind .button>svg{width:17px;height:17px}.legalflow-ui .lf-clients-help{color:var(--av-muted);font-size:var(--av-fs-sm);line-height:1.6;margin:var(--av-s3) 0 var(--av-s4)}.legalflow-ui .lf-clients-optional{margin-top:var(--av-s5);border:1px solid var(--av-border);border-radius:var(--av-r);background:var(--av-surface)}.legalflow-ui .lf-clients-optional summary{display:flex;align-items:center;gap:var(--av-s2);cursor:pointer;min-height:44px;padding:0 var(--av-s4);font-size:var(--av-fs-md);font-weight:600;color:var(--av-ink);list-style:none;border-radius:var(--av-r)}.legalflow-ui .lf-clients-optional summary::-webkit-details-marker{display:none}.legalflow-ui .lf-clients-optional summary:before{content:"";width:7px;height:7px;border-right:1.5px solid var(--av-muted);border-bottom:1.5px solid var(--av-muted);transform:rotate(-45deg);transition:transform .15s var(--av-ease);flex:none}.legalflow-ui .lf-clients-optional[open] summary:before{transform:rotate(45deg)}.legalflow-ui .lf-clients-optional[open] summary{border-bottom:1px solid var(--av-border);border-radius:var(--av-r) var(--av-r) 0 0}.legalflow-ui .lf-clients-optional .form-grid{padding:var(--av-s4)}.legalflow-ui .lf-client-delete{display:grid;gap:var(--av-s4)}.legalflow-ui .lf-client-delete-callout{display:flex;align-items:flex-start;gap:var(--av-s3);margin:0;padding:var(--av-s4);border:1px solid var(--av-danger-soft);border-left:3px solid var(--av-danger);border-radius:var(--av-r);background:var(--av-danger-soft);color:var(--av-text)}.legalflow-ui .lf-client-delete-icon{width:36px;height:36px;min-width:36px;display:grid;place-items:center;border-radius:var(--av-r-pill);background:var(--av-surface);color:var(--av-danger-ink)}.legalflow-ui .lf-client-delete-callout>div{display:grid;gap:var(--av-s2);min-width:0;overflow-wrap:anywhere}.legalflow-ui .lf-client-delete-callout p{margin:0;font-size:var(--av-fs-md);line-height:1.55;color:var(--av-text)}.legalflow-ui .lf-client-delete-callout strong{color:var(--av-ink);font-weight:600}.legalflow-ui .lf-client-delete-callout .muted{color:var(--av-muted);font-size:var(--av-fs-sm)}.legalflow-ui .lf-client-delete-counts{list-style:none;margin:var(--av-s1) 0 0;padding:0;border:1px solid var(--av-border);border-radius:var(--av-r-sm);background:var(--av-surface);overflow:hidden}.legalflow-ui .lf-client-delete-counts li{display:flex;align-items:baseline;gap:var(--av-s3);padding:var(--av-s2) var(--av-s3);font-size:var(--av-fs-md);color:var(--av-text)}.legalflow-ui .lf-client-delete-counts li+li{border-top:1px solid var(--av-border)}.legalflow-ui .lf-client-delete-counts strong{min-width:2.5ch;text-align:right;font-variant-numeric:tabular-nums;color:var(--av-danger-ink)}.legalflow-ui .lf-client-delete-blocked{padding:var(--av-s2) var(--av-s3);border-radius:var(--av-r-sm);background:var(--av-warning-soft);color:var(--av-warning-ink)}.legalflow-ui .lf-client-delete-blocked strong{color:var(--av-warning-ink)}.legalflow-ui .lf-client-delete .lf-client-delete-confirm{display:flex;align-items:flex-start;gap:var(--av-s3);margin:0;min-height:44px;padding:var(--av-s3) var(--av-s4);border:1px solid var(--av-border-strong);border-radius:var(--av-r);background:var(--av-surface-2);cursor:pointer;font-size:var(--av-fs-md);font-weight:500;color:var(--av-ink)}.legalflow-ui .lf-client-delete .lf-client-delete-confirm:has(input:checked){border-color:var(--av-danger);background:var(--av-surface)}.legalflow-ui .lf-client-delete .lf-client-delete-confirm input{width:18px;height:18px;min-width:18px;margin:2px 0 0;accent-color:var(--av-danger);cursor:pointer}.legalflow-ui .lf-client-delete .form-actions{margin-top:0}.legalflow-ui .lf-client-delete .button-danger:disabled{opacity:1;background:var(--av-danger-soft);border-color:var(--av-danger-soft);color:var(--av-muted);cursor:not-allowed}@media(max-width:1100px){.legalflow-ui .lf-clients-page .lf-clients-toolbar .toolbar-count{margin-left:0}}@media(max-width:780px){.legalflow-ui .lf-clients-form :is(.input,input,select,textarea),.legalflow-ui .lf-clients-page .lf-clients-toolbar .input{font-size:16px}.legalflow-ui .lf-client-delete .form-actions{flex-direction:column-reverse}.legalflow-ui .lf-client-delete .form-actions .button{width:100%;min-height:44px}}.legalflow-ui .lf-client-merge{display:grid;gap:var(--av-s4);min-width:0;color:var(--av-text);font-family:var(--av-font);font-size:var(--av-fs-md)}.legalflow-ui .lf-client-merge :is(button,input):focus-visible{outline:none;box-shadow:var(--av-focus)}.legalflow-ui .lf-client-merge-lead{margin:0}.legalflow-ui .lf-client-merge-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--av-s1);max-height:min(46vh,420px);overflow:auto}.legalflow-ui .lf-client-merge-group{padding:var(--av-s2) 2px 0;color:var(--av-muted);font-size:var(--av-fs-sm);font-weight:600}.legalflow-ui .lf-client-merge-option{width:100%;display:flex;align-items:center;gap:var(--av-s3);padding:var(--av-s3);border:1px solid var(--av-border);border-radius:var(--av-r);background:var(--av-surface);color:var(--av-text);text-align:left;cursor:pointer;font:inherit}.legalflow-ui .lf-client-merge-option:focus-visible,.legalflow-ui .lf-client-merge-option:hover{border-color:var(--av-ink);outline:none;box-shadow:var(--av-focus)}.legalflow-ui .lf-client-merge-option.similar{border-color:var(--av-ink)}.legalflow-ui .lf-client-merge-choice span,.legalflow-ui .lf-client-merge-option span{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}.legalflow-ui .lf-client-merge-choice small,.legalflow-ui .lf-client-merge-option small{color:var(--av-muted);font-size:var(--av-fs-sm)}.legalflow-ui .lf-client-merge-keep{display:grid;gap:var(--av-s2);margin:0;padding:0;border:0;min-width:0}.legalflow-ui .lf-client-merge-keep legend{margin-bottom:var(--av-s2);font-weight:600;color:var(--av-ink)}.legalflow-ui .lf-client-merge-choice{display:flex;align-items:flex-start;gap:var(--av-s3);padding:var(--av-s3);border:1px solid var(--av-border);border-radius:var(--av-r);cursor:pointer}.legalflow-ui .lf-client-merge-choice.selected{border-color:var(--av-ink);background:var(--av-surface-2)}.legalflow-ui .lf-client-merge-choice input{margin-top:4px;accent-color:var(--av-ink)}.legalflow-ui .lf-client-merge-summary{display:grid;gap:var(--av-s2);padding:var(--av-s4);border:1px solid var(--av-border);border-radius:var(--av-r)}.legalflow-ui .lf-client-merge-summary p{margin:0;line-height:1.55}.legalflow-ui .lf-client-merge-counts{margin:0;padding-left:1.2em;display:grid;gap:2px}.legalflow-ui .lf-client-merge .form-actions{margin-top:0}@media(max-width:780px){.legalflow-ui .lf-client-merge-choice,.legalflow-ui .lf-client-merge-option{min-height:44px}.legalflow-ui .lf-client-merge .form-actions{flex-direction:column-reverse}.legalflow-ui .lf-client-merge .form-actions .button{width:100%;min-height:44px}}.legalflow-ui .lf-clients-page .lf-clients-card .row-menu{display:contents;color:inherit}.legalflow-ui .lf-clients-page .lf-clients-card :is(.row-menu-trigger,.row-menu-title,.row-menu-close){display:none}@media (max-width:780px){.legalflow-ui .lf-clients-page{padding-bottom:0}.legalflow-ui .lf-clients-page:has(.lf-clients-new:not(:disabled)){padding-bottom:76px}.legalflow-ui .lf-clients-page .page-heading{flex-direction:row;align-items:center;justify-content:space-between;gap:var(--av-s3);margin-bottom:var(--av-s3)}.legalflow-ui .lf-clients-page .page-heading p{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.legalflow-ui .lf-clients-page .lf-clients-readonly{margin-bottom:var(--av-s3)}.legalflow-ui .lf-clients-page .page-heading .lf-clients-new:not(:disabled){position:fixed;right:var(--av-s4);bottom:calc(var(--av-s4) + env(safe-area-inset-bottom, 0px));z-index:35;width:auto;min-height:48px;padding:0 var(--av-s5) 0 var(--av-s4);gap:var(--av-s2);border-radius:var(--av-r-pill);font-size:var(--av-fs-base);box-shadow:var(--av-shadow-lg)}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-filters{display:flex;width:auto;max-width:none;flex-wrap:nowrap;margin:var(--av-s3) var(--av-s3) 0}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-filters .button{flex:1 1 0;min-height:44px;padding:0 var(--av-s2)}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:var(--av-s2);padding:var(--av-s2) var(--av-s3) var(--av-s3)}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-toolbar .field{position:relative;margin:0;gap:0}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-toolbar .field>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-toolbar .lf-clients-search{order:1;flex:1 1 0;min-width:0}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-toolbar:after{content:"";order:3;flex:0 0 100%;height:0}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-toolbar .field:not(.lf-clients-search){order:2;flex:0 0 auto;min-width:0;max-width:56%;width:auto}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-toolbar .field:not(.lf-clients-search) select{padding-right:32px}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-toolbar .input{min-height:44px}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-toolbar .toolbar-count{order:4;flex:1 1 auto;min-height:0;margin:0;padding:0 2px;font-size:var(--av-fs-xs);line-height:1.4}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-toolbar>.button{order:5;flex:0 0 auto;min-height:44px;padding:0 var(--av-s3);font-size:var(--av-fs-sm)}.legalflow-ui .lf-clients-page .lf-clients-card .table-scroll{overflow:visible}.legalflow-ui .lf-clients-page .lf-clients-card table{display:block;width:100%;min-width:0}.legalflow-ui .lf-clients-page .lf-clients-card thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.legalflow-ui .lf-clients-page .lf-clients-card tbody{display:block;width:100%}.legalflow-ui .lf-clients-page .lf-clients-card tbody tr{position:relative;display:flex;flex-wrap:wrap;align-items:center;min-height:62px;padding:10px 50px 10px 60px;border-bottom:1px solid var(--av-border)}.legalflow-ui .lf-clients-page .lf-clients-card tbody tr:last-child{border-bottom:0}.legalflow-ui .lf-clients-page .lf-clients-card tbody tr:hover,.legalflow-ui .lf-clients-page .lf-clients-card tbody tr:hover td{background:transparent}.legalflow-ui .lf-clients-page .lf-clients-card tbody tr:has(.lf-clients-open-action:active),.legalflow-ui .lf-clients-page .lf-clients-card tbody tr:has(.lf-clients-open-action:active) td{background:var(--av-surface-3)}.legalflow-ui .lf-clients-page .lf-clients-card tbody tr:after{content:"";order:3;flex:0 0 100%;height:0}.legalflow-ui .lf-clients-page .lf-clients-card tbody td{display:block;width:auto;min-width:0;padding:0;border:0;text-align:left!important;font-size:var(--av-fs-sm);line-height:1.45;overflow-wrap:normal}.legalflow-ui .lf-clients-page .lf-clients-card tbody td.lf-clients-entity-cell{order:1;flex:1 1 0}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-entity{display:block;min-width:0}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-avatar{position:absolute;left:var(--av-s4);top:50%;width:32px;height:32px;min-width:32px;transform:translateY(-50%)}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-avatar svg{width:16px;height:16px}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-entity-copy{display:block}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-name{display:block;max-width:100%;min-height:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--av-fs-base);font-weight:600;line-height:1.35}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-kind-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.legalflow-ui .lf-clients-page .lf-clients-card tbody td.lf-clients-status-cell{order:2;flex:0 1 auto;max-width:45%;margin-left:var(--av-s2)}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-status{padding:1px 8px 1px 7px;line-height:18px;font-size:11.5px}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-status-unknown{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--av-fs-xs)}.legalflow-ui .lf-clients-page .lf-clients-card tbody td[data-label]{margin-top:2px;color:var(--av-muted);white-space:nowrap}.legalflow-ui .lf-clients-page .lf-clients-card tbody td[data-label=Telefoni]{order:4;flex:0 0 auto}.legalflow-ui .lf-clients-page .lf-clients-card tbody td[data-label=Email]{order:5;flex:1 1 1px;overflow:hidden;text-overflow:ellipsis}.legalflow-ui .lf-clients-page .lf-clients-card tbody td.lf-clients-count{order:6;flex:0 0 auto;margin-left:auto;padding-left:var(--av-s3);font-weight:400;color:var(--av-subtle)}.legalflow-ui .lf-clients-page .lf-clients-card tbody td[data-label]:has(.lf-clients-missing){display:none}.legalflow-ui .lf-clients-page .lf-clients-card tbody td[data-label] .lf-clients-contact{display:inline;min-height:0;color:inherit}.legalflow-ui .lf-clients-page .lf-clients-card tbody td[data-label=Telefoni]:not(:has(.lf-clients-missing))+td[data-label=Email]:before{content:"·";margin:0 6px;color:var(--av-subtle)}.legalflow-ui .lf-clients-page .lf-clients-card tbody td.lf-clients-count:before{content:attr(data-label) ": "}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-row-actions,.legalflow-ui .lf-clients-page .lf-clients-card tbody td.lf-clients-actions-cell{display:contents}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-row-actions .lf-clients-open-action,.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-row-actions .lf-clients-open-action:is(:hover,:active){position:absolute;inset:0;z-index:1;display:block;width:auto;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:transparent;font-size:0;box-shadow:none;cursor:pointer;-webkit-tap-highlight-color:transparent}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-row-actions .lf-clients-open-action>svg{display:none}.legalflow-ui .lf-clients-page .lf-clients-card .lf-clients-row-actions .lf-clients-open-action:focus-visible{outline:2px solid var(--av-gold-ink);outline-offset:-2px;box-shadow:none}}@media (max-width:780px){@supports selector(:popover-open){.legalflow-ui .lf-clients-page .lf-clients-card .row-menu-trigger{position:absolute;top:50%;right:3px;z-index:2;display:grid;place-items:center;width:44px;height:44px;padding:0;transform:translateY(-50%);border:0;border-radius:var(--av-r);background:transparent;color:var(--av-muted);cursor:pointer}.legalflow-ui .lf-clients-page .lf-clients-card .row-menu-trigger:hover{background:var(--av-surface-3);color:var(--av-ink)}.legalflow-ui .lf-clients-page .lf-clients-card .row-menu-trigger:focus-visible{outline:none;box-shadow:var(--av-focus)}.legalflow-ui .lf-clients-page .lf-clients-card .row-menu:not(:popover-open){display:none}.legalflow-ui .lf-clients-page .lf-clients-card .row-menu:popover-open{position:fixed;inset:auto var(--av-s3) calc(var(--av-s3) + env(safe-area-inset-bottom, 0px)) var(--av-s3);display:flex;flex-direction:column;gap:2px;width:auto;max-height:min(70dvh,460px);margin:0;padding:var(--av-s2);overflow:auto;border:1px solid var(--av-border);border-radius:var(--av-r-lg);background:var(--av-surface);color:var(--av-text);box-shadow:var(--av-shadow-lg)}.legalflow-ui .lf-clients-page .lf-clients-card .row-menu::backdrop{background:color-mix(in srgb,var(--av-ink) 30%,transparent)}.legalflow-ui .lf-clients-page .lf-clients-card .row-menu:popover-open .row-menu-title{display:block;padding:var(--av-s2) var(--av-s3) var(--av-s3);margin-bottom:var(--av-s1);border-bottom:1px solid var(--av-border);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--av-fs-sm);font-weight:600;color:var(--av-ink)}.legalflow-ui .lf-clients-page .lf-clients-card .row-menu:popover-open .button{display:flex;justify-content:flex-start;width:100%;min-height:48px;padding:0 var(--av-s3);gap:var(--av-s3);border:0;border-radius:var(--av-r);background:transparent;color:var(--av-ink);font-size:var(--av-fs-base);font-weight:500;box-shadow:none}.legalflow-ui .lf-clients-page .lf-clients-card .row-menu:popover-open .button:not(:disabled):hover{background:var(--av-surface-3)}.legalflow-ui .lf-clients-page .lf-clients-card .row-menu:popover-open .button>svg{width:18px;height:18px;color:var(--av-muted)}.legalflow-ui .lf-clients-page .lf-clients-card .row-menu:popover-open .lf-clients-delete-action,.legalflow-ui .lf-clients-page .lf-clients-card .row-menu:popover-open .lf-clients-delete-action>svg{color:var(--av-danger-ink)}.legalflow-ui .lf-clients-page .lf-clients-card .row-menu:popover-open .row-menu-close{justify-content:center;margin-top:var(--av-s1);border-top:1px solid var(--av-border);border-radius:0 0 var(--av-r) var(--av-r);color:var(--av-muted)}}}