@media (max-width:780px){.legalflow-ui .app-shell .main-column,.legalflow-ui .app-shell .page-content,.legalflow-ui .app-shell .workspace-pages>:is(.cases-workspace,.documents-page,.finance-page,.calendar-page,.simple-reports,.settings-page,.staff-page,.imports-page,.email-page){min-width:0}.legalflow-ui .app-shell .cases-workspace .cases-list-card{overflow:visible;margin-bottom:0}.legalflow-ui .app-shell .cases-workspace .cases-list-card .table-scroll{display:block;width:100%;max-width:100%;margin:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.legalflow-ui .app-shell .cases-workspace .cases-list-card table{display:table;width:max(100%,920px);min-width:920px;border-collapse:collapse;white-space:nowrap}.legalflow-ui .app-shell .cases-workspace .cases-list-card thead{position:static;display:table-header-group;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}.legalflow-ui .app-shell .cases-workspace .cases-list-card tbody{display:table-row-group;width:auto}.legalflow-ui .app-shell .cases-workspace .cases-list-card tbody tr.case-row{position:static;display:table-row;min-height:0;padding:0;border:0;grid-template-areas:none;grid-template-columns:none}.legalflow-ui .app-shell .cases-workspace .cases-list-card .table-scroll tbody tr.case-row>td,.legalflow-ui .app-shell .cases-workspace .cases-list-card .table-scroll tbody tr.case-row>td:is(.case-clients-cell,.case-court-cell,.case-next-cell,.case-actions-cell,.case-status-cell,.case-title-cell,.case-number){display:table-cell;order:0;width:auto;max-width:none;min-width:0;margin:0;padding:10px 12px;border-bottom:1px solid var(--av-border);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;text-align:left;grid-area:auto;grid-column:auto;grid-row:auto}.legalflow-ui .app-shell .cases-workspace .cases-list-card .case-mobile-meta{display:none}.legalflow-ui .app-shell .cases-workspace .cases-list-card .case-category{display:block}.legalflow-ui .app-shell .cases-workspace .cases-list-card .case-row-actions{display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:12px}.legalflow-ui .app-shell .cases-workspace .cases-list-card .case-row-actions>.button{position:static;inset:auto;display:inline-flex;width:auto;height:auto;min-height:32px;padding:0 2px;border:0;border-radius:0;background:transparent;color:var(--av-muted);font-size:12px;box-shadow:none;overflow:visible}.legalflow-ui .app-shell .cases-workspace .cases-list-card .case-row-menu{display:none}.legalflow-ui .app-shell .page-content:has(>.cases-workspace){padding-top:12px}.legalflow-ui .app-shell .cases-workspace .cases-heading{margin:0 0 8px}.legalflow-ui .app-shell .cases-workspace .cases-status-filter,.legalflow-ui .app-shell .cases-workspace .cases-status-filter .client-filter{position:relative;z-index:6}.legalflow-ui .app-shell .cases-workspace .client-filter-menu{position:absolute;top:calc(100% + 6px);right:0;bottom:auto;z-index:40}.legalflow-ui .app-shell .finance-page .finance-list{min-width:0}.legalflow-ui .app-shell .finance-page .finance-list>.table-scroll{grid-column:1/-1;width:100%;max-width:100%;margin:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.legalflow-ui .app-shell .finance-page .finance-list table{display:table;width:max(100%,860px);min-width:860px;border-collapse:collapse}.legalflow-ui .app-shell .finance-page .finance-list thead{position:static;display:table-header-group;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal}.legalflow-ui .app-shell .finance-page .finance-list tbody{display:table-row-group;width:auto}.legalflow-ui .app-shell .finance-page .finance-list tbody tr{position:static;display:table-row;min-height:0;padding:0;border:0}.legalflow-ui .app-shell .finance-page .finance-list tbody tr:after{content:none;display:none}.legalflow-ui .app-shell .finance-page .finance-list .table-scroll tbody td{display:table-cell;order:0;width:auto;max-width:none;margin:0;padding:10px 12px;border-bottom:1px solid var(--av-border);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;font-size:13px}.legalflow-ui .app-shell .finance-page .finance-list .finance-row-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:10px}.legalflow-ui .app-shell .finance-page .finance-list .row-menu-trigger{position:static;top:auto;right:auto;transform:none;width:32px;height:32px;min-height:32px}.legalflow-ui .app-shell .finance-page>.page-heading .office-actions .finance-new{position:static;right:auto;bottom:auto;z-index:auto;box-shadow:none}.legalflow-ui .app-shell .finance-page .finance-payments .table-scroll{width:100%;max-width:100%;margin-inline:0;overflow-x:auto}.legalflow-ui .app-shell .finance-page .finance-ledger{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.legalflow-ui .app-shell .finance-page .finance-ledger .card{min-width:0;padding:12px}.legalflow-ui .app-shell .finance-page .finance-ledger strong{font-size:18px}.legalflow-ui .app-shell .finance-page .detail-actions{width:100%;justify-content:flex-start}.legalflow-ui .app-shell .finance-page .office-two-columns{grid-template-columns:minmax(0,1fr)}.legalflow-ui .app-shell .documents-page .documents-row{min-width:0}.legalflow-ui .app-shell .calendar-page .calendar-month-card,.legalflow-ui .app-shell .calendar-page .calendar-month-table{min-width:0;max-width:100%}.legalflow-ui .app-shell .calendar-page .calendar-month-card{overflow-x:auto}.legalflow-ui .app-shell .simple-reports .office-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.legalflow-ui .app-shell .simple-reports .metric-card{min-width:0;padding:14px}.legalflow-ui .app-shell .staff-page .staff-audit .table-scroll,.legalflow-ui .app-shell .staff-page .table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.legalflow-ui .app-shell .email-page .email-row{min-width:0}.legalflow-ui .app-shell .email-page :is(.email-actions,.email-assign){flex-wrap:wrap}.legalflow-ui .app-shell .imports-page .imports-summary ul{max-width:100%}.legalflow-ui .app-shell .legal-assistant{min-width:0;max-width:100%}.legalflow-ui .app-shell :is(.lf-clients-page.lf-clients-luxury .lf-clients-luxury-hero-content,.cases-workspace .cases-heading,.documents-page>.page-heading,.finance-page>.page-heading,.calendar-page>.page-heading,.simple-reports>.page-heading,.settings-page>.page-heading,.staff-page>.page-heading,.imports-page .page-heading,.email-page>.page-heading){display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;padding:0;min-width:0}.legalflow-ui .app-shell :is(.lf-clients-title-block,.cases-title-block,.page-heading>div:first-child){flex:0 0 auto;width:max-content;max-width:58%;min-width:0;margin:0;padding:0}.legalflow-ui .app-shell :is(.lf-clients-page.lf-clients-luxury .lf-clients-title-block h1,.cases-workspace .cases-title-block h1,.documents-page>.page-heading h1,.finance-page>.page-heading h1,.calendar-page>.page-heading h1,.simple-reports>.page-heading h1,.settings-page>.page-heading h1,.staff-page>.page-heading h1,.imports-page .page-heading h1,.email-page>.page-heading h1){margin:0;padding:0;font-size:23px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.legalflow-ui .app-shell :is(.lf-clients-page.lf-clients-luxury .lf-clients-title-block p,.cases-workspace .cases-title-block p,.documents-page>.page-heading p,.finance-page>.page-heading p,.calendar-page>.page-heading p,.simple-reports>.page-heading p,.settings-page>.page-heading p,.staff-page>.page-heading p,.imports-page .page-heading p,.email-page>.page-heading p){display:none}.legalflow-ui .app-shell :is(.lf-clients-heading-actions,.page-heading>.button,.documents-page>.page-heading .documents-heading-actions,.finance-page>.page-heading .office-actions,.calendar-page>.page-heading .calendar-heading-actions){display:flex;flex:1 1 auto;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:8px;width:auto;max-width:100%;min-width:0;margin:0;padding:0;overflow-x:auto;scrollbar-width:none}.legalflow-ui .app-shell :is(.simple-reports>.page-heading>.button,.staff-page>.page-heading>.button,.email-page>.page-heading>.button){position:static;flex:0 0 auto;height:40px;min-height:40px;margin:0;padding:0 14px;border-radius:999px;font-size:13px;line-height:1;white-space:nowrap;box-shadow:none}.legalflow-ui .app-shell .page-content.workspace-pages:has(>.documents-page){padding:12px 20px 0}.legalflow-ui .app-shell .documents-page{gap:8px}.legalflow-ui .app-shell .workspace-pages .documents-page>.page-heading{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0;overflow:visible}.legalflow-ui .app-shell .workspace-pages .documents-page>.page-heading>div:first-child{flex:1 1 auto;width:auto;max-width:none;min-width:0;margin:0;padding:0}.legalflow-ui .app-shell .workspace-pages .documents-page>.page-heading .documents-heading-actions{flex:0 0 auto;gap:8px;width:auto;max-width:100%;margin:0;padding:0;overflow:visible}.legalflow-ui .app-shell .workspace-pages .documents-page>.page-heading .documents-heading-actions>.button{width:auto;flex:0 0 auto;height:auto;min-height:44px;margin:0;padding:0 14px}.legalflow-ui .app-shell .workspace-pages .documents-page>.page-heading .documents-heading-actions>.documents-ai-import{position:relative;z-index:5;flex:0 0 44px;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;margin:0;padding:0;gap:0;font-size:0;line-height:0;justify-content:center;overflow:visible}.legalflow-ui .app-shell .workspace-pages .documents-page>.page-heading .documents-heading-actions>.documents-ai-import .documents-ai-label{position:absolute;top:calc(100% + 6px);left:50%;z-index:50;width:max-content;max-width:none;height:auto;margin:0;padding:6px 10px;border-radius:8px;background:#1F1D20;color:#fff;font-size:12px;font-weight:500;line-height:1.2;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;transform:translateX(-50%)}.legalflow-ui .app-shell .workspace-pages .documents-page>.page-heading .documents-heading-actions>.documents-ai-import:is(:hover,:focus-visible) .documents-ai-label{opacity:1;visibility:visible}.legalflow-ui .app-shell .documents-page .documents-card{overflow:visible}.legalflow-ui .app-shell .documents-page .documents-filters,.legalflow-ui .app-shell .documents-page .documents-filters:has(.documents-clear-filters){position:relative;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:12px}.legalflow-ui .app-shell .documents-page .documents-filters>.client-filter:last-of-type,.legalflow-ui .app-shell .documents-page .documents-filters>.search{grid-column:1/-1}.legalflow-ui .app-shell .documents-page .documents-filters:has(.documents-clear-filters)>.client-filter:last-of-type{width:calc(100% - 44px);justify-self:start}.legalflow-ui .app-shell .documents-page .documents-filters>.documents-clear-filters{position:absolute;right:12px;bottom:12px;z-index:2;width:36px;min-width:36px;height:44px;min-height:44px;margin:0;padding:0}.legalflow-ui .app-shell .page-content.workspace-pages:has(>.calendar-page){padding:12px 20px 0}.legalflow-ui .app-shell .calendar-page{gap:8px}.legalflow-ui .app-shell .workspace-pages .calendar-page>.page-heading{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0;overflow:visible}.legalflow-ui .app-shell .workspace-pages .calendar-page>.page-heading>div:first-child{flex:1 1 auto;width:auto;max-width:none;min-width:0;margin:0;padding:0}.legalflow-ui .app-shell .workspace-pages .calendar-page>.page-heading h1{margin:0;font-size:23px;line-height:1.2}.legalflow-ui .app-shell .workspace-pages .calendar-page>.page-heading .calendar-heading-actions{display:none}.legalflow-ui .app-shell .calendar-page .calendar-month-card{overflow:visible}.legalflow-ui .app-shell .calendar-page .calendar-month-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 12px 8px}.legalflow-ui .app-shell .calendar-page .calendar-month-controls{width:auto;min-width:0;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:4px}.legalflow-ui .app-shell .calendar-page .calendar-month-controls h2{grid-column:auto;min-width:0;margin:0;font-size:16px}.legalflow-ui .app-shell .calendar-page .calendar-month-controls .calendar-month-picker{order:2;min-width:0;flex:0 1 auto}.legalflow-ui .app-shell .calendar-page .calendar-month-controls .calendar-month-picker-trigger{min-width:0;max-width:100%;padding-right:0;overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.legalflow-ui .app-shell .calendar-page .calendar-month-controls>.button:first-child{order:1}.legalflow-ui .app-shell .calendar-page .calendar-month-controls>.button:nth-child(3){order:3}.legalflow-ui .app-shell .calendar-page .calendar-month-controls>.button:first-child,.legalflow-ui .app-shell .calendar-page .calendar-month-controls>.button:nth-child(3){width:36px;min-width:36px;height:36px;min-height:36px;padding:0;gap:0;font-size:0}.legalflow-ui .app-shell .calendar-page .calendar-month-controls>.button:nth-child(4){order:4;height:36px;min-height:36px;padding:0 10px}.legalflow-ui .app-shell .calendar-page .calendar-month-controls>.button:first-child svg,.legalflow-ui .app-shell .calendar-page .calendar-month-controls>.button:nth-child(3) svg,.legalflow-ui .app-shell .calendar-page .calendar-view-controls .button svg{width:16px;height:16px}.legalflow-ui .app-shell .calendar-page .calendar-view-controls{width:auto}.legalflow-ui .app-shell .calendar-page .calendar-view-controls .button{flex:0 0 36px;width:36px;min-width:36px;height:36px;min-height:36px;padding:0;gap:0;font-size:0}.legalflow-ui .app-shell .calendar-page .calendar-month-toolbar>.calendar-create-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0}.legalflow-ui .app-shell .calendar-page .calendar-month-toolbar>.calendar-create-actions .button{grid-column:auto;width:100%;min-width:0;height:40px;min-height:40px;padding:0 6px;gap:4px;font-size:13px;white-space:nowrap}.legalflow-ui .app-shell .calendar-page .calendar-month-scroll{padding:0 8px 8px}.legalflow-ui .app-shell .calendar-page .calendar-month-table{min-width:0}.legalflow-ui .app-shell .calendar-page .calendar-month-table th{padding:6px 0;text-align:center}.legalflow-ui .app-shell .calendar-page .calendar-month-table th .calendar-weekday-full{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.legalflow-ui .app-shell .calendar-page .calendar-month-table th .calendar-weekday-short{display:inline;text-transform:capitalize}.legalflow-ui .app-shell .calendar-page .calendar-month-table td{height:auto;padding:1px 0 4px;border-right:0}.legalflow-ui .app-shell .calendar-page .calendar-month-table td.calendar-selected{box-shadow:none}.legalflow-ui .app-shell .calendar-page .calendar-date-button{position:relative;inset:auto;height:auto;min-height:44px;align-items:center;justify-content:center;padding:0}.legalflow-ui .app-shell .calendar-page .calendar-date-number{min-width:32px;height:32px}.legalflow-ui .app-shell .calendar-page .calendar-today{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.legalflow-ui .app-shell .calendar-page .calendar-date-summary{flex-direction:row;justify-content:center;gap:3px;min-height:6px;margin-top:0;overflow:visible}.legalflow-ui .app-shell .calendar-page .calendar-month-activity{width:6px;height:6px;padding:0;border-radius:50%;background:var(--chip-bar,var(--av-ink));font-size:0;line-height:0;overflow:hidden}.legalflow-ui .app-shell .calendar-page .calendar-month-activity:before,.legalflow-ui .app-shell .calendar-page .calendar-month-activity>*{display:none}.legalflow-ui .app-shell .calendar-page .calendar-more{width:6px;height:6px;padding:0;border-radius:50%;background:var(--av-border-strong);font-size:0;overflow:hidden}.legalflow-ui .app-shell .calendar-page .calendar-type-legend{gap:10px;padding:8px 12px}.legalflow-ui .app-shell .calendar-page .calendar-day-panel{display:none}.legalflow-ui .app-shell .calendar-page .calendar-day-backdrop{display:block;position:fixed;inset:0;z-index:49;margin:0;padding:0;border:0;background:#1F1D2059}.legalflow-ui .app-shell .calendar-page .calendar-workspace.calendar-day-open .calendar-day-panel{display:flex;flex-direction:column;position:fixed;z-index:50;top:50%;left:50%;right:auto;bottom:auto;width:min(440px,calc(100vw - 16px));max-height:min(78dvh,calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));margin:0;overflow:auto;border-radius:16px;box-shadow:0 16px 48px #1F1D2033;transform:translate(-50%,-50%)}.legalflow-ui .app-shell .calendar-page .calendar-day-sheet .calendar-panel-heading{position:sticky;top:0;z-index:1;padding:12px;background:var(--av-surface)}.legalflow-ui .app-shell .calendar-page .calendar-day-sheet .calendar-panel-heading h2{font-size:18px}.legalflow-ui .app-shell .calendar-page .calendar-day-sheet .calendar-day-toggle{height:36px;min-height:36px;padding:0 12px}.legalflow-ui .app-shell .calendar-page .calendar-day-sheet .calendar-activity-item{padding:12px 12px 12px 18px;gap:4px}.legalflow-ui .app-shell .calendar-page .calendar-day-sheet .empty{padding:16px}.legalflow-ui .app-shell .calendar-page .calendar-day-sheet .calendar-row-actions{flex-wrap:nowrap}.legalflow-ui .app-shell .calendar-page .calendar-row-actions .button{flex:0 0 auto;width:auto;height:auto;min-height:40px}.legalflow-ui .app-shell .page-content.workspace-pages:has(>.finance-page){padding:12px 20px 0}.legalflow-ui .app-shell .finance-page{gap:8px;padding-bottom:0}.legalflow-ui .app-shell .finance-page:has(.finance-new){padding-bottom:0}.legalflow-ui .app-shell .workspace-pages .finance-page>.page-heading{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:flex-start;gap:10px;margin:0;padding:0;overflow:visible}.legalflow-ui .app-shell .workspace-pages .finance-page>.page-heading>div:first-child{position:static;flex:0 0 auto;width:max-content;max-width:none;min-width:max-content;height:auto;margin:0;padding:0;overflow:visible;clip-path:none;white-space:nowrap}.legalflow-ui .app-shell .workspace-pages .finance-page>.page-heading h1{margin:0;overflow:visible;font-size:23px;line-height:1.2;white-space:nowrap;text-overflow:clip}.legalflow-ui .app-shell .workspace-pages .finance-page>.page-heading .office-actions{flex:0 0 auto;width:auto;max-width:none;gap:8px;margin-left:auto;padding:0;overflow:visible}.legalflow-ui .app-shell .workspace-pages .finance-page>.page-heading .office-actions>.button{width:auto;flex:0 0 auto;height:auto;min-height:44px;margin:0;padding:0 14px}.legalflow-ui .app-shell .workspace-pages .finance-page>.page-heading .office-actions>:is(.finance-refresh,.finance-settings){position:relative;z-index:5;flex:0 0 44px;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:0;gap:0;font-size:0;line-height:0;letter-spacing:0;justify-content:center;overflow:visible;color:transparent}.legalflow-ui .app-shell .workspace-pages .finance-page>.page-heading .office-actions>:is(.finance-refresh,.finance-settings) svg{width:16px;height:16px;color:var(--av-ink)}.legalflow-ui .app-shell .workspace-pages .finance-page>.page-heading .office-actions>:is(.finance-refresh,.finance-settings) .finance-icon-label{position:absolute;top:calc(100% + 6px);left:50%;z-index:50;width:max-content;height:auto;margin:0;padding:6px 10px;overflow:visible;clip:auto;border-radius:8px;background:#1F1D20;color:#fff;font-size:12px;font-weight:500;line-height:1.2;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;transform:translateX(-50%)}.legalflow-ui .app-shell .workspace-pages .finance-page>.page-heading .office-actions>:is(.finance-refresh,.finance-settings):is(:hover,:focus-visible) .finance-icon-label{opacity:1;visibility:visible}.legalflow-ui .app-shell .finance-page .finance-filters{display:none}.legalflow-ui .app-shell .finance-page .finance-list{display:flex;flex-direction:column;overflow:visible}.legalflow-ui .app-shell .finance-page .finance-list>.finance-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px}.legalflow-ui .app-shell .finance-page .finance-toolbar>.finance-status-filter,.legalflow-ui .app-shell .finance-page .finance-toolbar>.received-intro,.legalflow-ui .app-shell .finance-page .finance-toolbar>.search{flex:1 1 100%;width:100%;min-width:0;margin:0}.legalflow-ui .app-shell .finance-page .finance-status-filter{display:block;position:relative;z-index:6}.legalflow-ui .app-shell .finance-page .finance-status-filter .client-filter-menu{z-index:40}.legalflow-ui .app-shell .finance-page .finance-detail{gap:8px}.legalflow-ui .app-shell .finance-page .finance-detail .detail-header{gap:4px;margin:0;align-items:center}.legalflow-ui .app-shell .finance-page .finance-detail .detail-header .button{width:auto;height:auto;min-height:44px;padding:0 12px}.legalflow-ui .app-shell .finance-page .finance-detail>.page-heading{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0}.legalflow-ui .app-shell .finance-page .finance-detail>.page-heading h1{margin:0;font-size:22px;line-height:1.2}.legalflow-ui .app-shell .finance-page .finance-detail>.page-heading p{display:block;margin:2px 0 0;font-size:13px}.legalflow-ui .app-shell .finance-page .finance-detail .detail-actions{display:flex;flex-wrap:nowrap;justify-content:flex-start;width:100%;max-width:100%;gap:8px;margin:0;overflow-x:auto}.legalflow-ui .app-shell .finance-page .finance-detail .detail-actions .button{flex:0 0 auto;width:auto;height:auto;min-height:44px;margin:0;padding:0 12px}.legalflow-ui .app-shell .finance-page .finance-ledger{grid-template-columns:minmax(0,1fr)}.legalflow-ui .app-shell .finance-page .detail-panel{padding:12px}.legalflow-ui .app-shell .finance-page .finance-data div{grid-template-columns:minmax(0,1fr);gap:2px}.legalflow-ui .app-shell .finance-page .finance-payments .table-scroll,.legalflow-ui .app-shell .finance-page .invoice-lines-panel .table-scroll{max-width:100%;margin-inline:0;overflow-x:auto}.legalflow-ui .app-shell .finance-page .invoice-pdf-panel .invoice-pdf-frame{height:46vh}.legalflow-ui .app-shell .page-content.workspace-pages:has(>.imports-page){padding:12px 20px 0}.legalflow-ui .app-shell .imports-page{gap:8px}.legalflow-ui .app-shell .workspace-pages .imports-page .imports-detail-head>.page-heading,.legalflow-ui .app-shell .workspace-pages .imports-page>.page-heading{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0}.legalflow-ui .app-shell .workspace-pages .imports-page .page-heading>div:first-child{flex:1 1 auto;width:auto;max-width:none;min-width:0;margin:0;padding:0}.legalflow-ui .app-shell .workspace-pages .imports-page .page-heading h1{margin:0;font-size:23px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.legalflow-ui .app-shell .workspace-pages .imports-page .page-heading p{display:none}.legalflow-ui .app-shell .imports-page .imports-detail-head{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin:0;padding:0}.legalflow-ui .app-shell .imports-page .imports-back{width:auto;align-self:flex-start;height:auto;min-height:44px;margin:0;padding:0 8px 0 0}.legalflow-ui .app-shell .imports-page .imports-dropzone{flex-direction:row;align-items:center}.legalflow-ui .app-shell .imports-page .imports-dropzone .imports-pick,.legalflow-ui .app-shell .imports-page .imports-upload-buttons,.legalflow-ui .app-shell .imports-page .imports-upload-buttons .button{width:auto;flex:0 0 auto;height:auto;min-height:44px;padding:0 14px}.legalflow-ui .app-shell .imports-page .imports-footer-buttons,.legalflow-ui .app-shell .imports-page .imports-outcome .detail-actions{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;width:auto;max-width:100%;margin-left:auto;gap:8px;overflow-x:auto}.legalflow-ui .app-shell .imports-page .imports-footer-buttons .button,.legalflow-ui .app-shell .imports-page .imports-outcome .detail-actions .button{width:auto;flex:0 0 auto;grid-column:auto;order:0;height:auto;min-height:44px;margin:0;padding:0 14px}.legalflow-ui .app-shell .imports-page :is(.input,textarea,select){font-size:16px}.legalflow-ui .app-shell .documents-page .documents-filters .client-filter{position:relative;z-index:6}.legalflow-ui .app-shell .documents-page .client-filter-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:40}.legalflow-ui .app-shell .page-content:has(>.lf-clients-page){padding-top:12px}.legalflow-ui .app-shell .lf-clients-page.lf-clients-luxury .lf-clients-luxury-hero{margin:0 0 8px}.legalflow-ui .app-shell .lf-clients-page.lf-clients-luxury .lf-clients-luxury-hero-content{margin:0;align-items:center}.legalflow-ui .app-shell :is(.lf-clients-page.lf-clients-luxury .lf-clients-heading-actions>.button:first-child,.cases-workspace .cases-heading>.button,.documents-page>.page-heading .documents-heading-actions>.button:first-child,.finance-page>.page-heading .office-actions>.button:first-child,.calendar-page>.page-heading .calendar-heading-actions>.button:first-child,.simple-reports>.page-heading>.button,.staff-page>.page-heading>.button,.email-page>.page-heading>.button){margin-left:auto}.legalflow-ui .dialog-content:has(>:is(.case-form,.calendar-form,.finance-form,.documents-form,.settings-dialog)){width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:auto;max-height:calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));padding:0;border-radius:12px;overflow-y:auto}.legalflow-ui .dialog-content:has(>:is(.case-form,.calendar-form,.finance-form,.documents-form,.settings-dialog))>.dialog-heading{padding:8px 12px;margin:0;gap:8px}.legalflow-ui .dialog-content:has(>:is(.case-form,.calendar-form,.finance-form,.documents-form,.settings-dialog)) .dialog-title{font-size:16px}.legalflow-ui .dialog-content:has(>:is(.case-form,.calendar-form,.finance-form,.documents-form,.settings-dialog))>.dialog-heading>.button{width:32px;height:32px;min-height:32px}.legalflow-ui .dialog-content>:is(.case-form,.calendar-form,.finance-form,.documents-form,.settings-dialog){padding:8px 12px 0;overflow:visible}.legalflow-ui .dialog-content :is(.case-form,.calendar-form,.finance-form,.documents-form) :is(.input,.select,.textarea,.case-client-select-trigger){min-height:36px;height:auto;font-size:16px}.legalflow-ui .dialog-content :is(.case-form,.calendar-form,.finance-form,.documents-form) textarea{min-height:48px;height:48px}.legalflow-ui .dialog-content :is(.case-form,.calendar-form,.finance-form,.documents-form,.settings-dialog)>.form-actions{justify-content:flex-end;flex-wrap:nowrap;margin-top:8px;padding:8px 0;gap:8px}.legalflow-ui .dialog-content .finance-form .form-actions .button,.legalflow-ui .dialog-content :is(.case-form,.calendar-form,.finance-form,.documents-form,.settings-dialog)>.form-actions .button{flex:0 0 auto;width:auto;min-width:84px;min-height:36px}.legalflow-ui .dialog-content:has(>.invoice-editor){width:min(440px,calc(100vw - 16px));max-width:calc(100vw - 16px);height:auto;max-height:calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));overflow-x:hidden;overflow-y:auto}.legalflow-ui .dialog-content .invoice-editor :is(.form-grid,.invoice-meta-grid,.invoice-id-pair,.invoice-type-choice,.invoice-editor-bottom){grid-template-columns:minmax(0,1fr)}.legalflow-ui .dialog-content .invoice-editor .invoice-type-card{min-height:0;padding:12px}.legalflow-ui .dialog-content .invoice-editor .invoice-line{grid-template-columns:minmax(0,1fr)}.legalflow-ui .dialog-content .invoice-editor .invoice-line-nr{display:none}.legalflow-ui .dialog-content .invoice-editor .invoice-line-text,.legalflow-ui .dialog-content .invoice-editor .invoice-line>input,.legalflow-ui .dialog-content .invoice-editor .invoice-line>output{grid-column:1/-1;grid-row:auto;width:100%;text-align:left}.legalflow-ui .dialog-content .invoice-editor .invoice-line>.button{grid-column:1/-1;grid-row:auto;width:36px;min-width:36px;justify-self:end}.legalflow-ui .dialog-content .finance-form .form-grid{grid-template-columns:minmax(0,1fr)}.legalflow-ui .dialog-content .invoice-editor .invoice-id-pair{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.legalflow-ui .dialog-content:has(>.case-extra-open),.legalflow-ui .dialog-content:has(>.case-form){display:block;width:min(440px,calc(100vw - 16px));height:auto;max-height:calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));overflow-x:hidden;overflow-y:auto}.legalflow-ui .dialog-content>.case-form{display:block;flex:none;min-height:0;overflow:visible;padding:0 12px}.legalflow-ui .dialog-content .case-extra-open .case-form-fields,.legalflow-ui .dialog-content .case-form .case-form-fields{display:block;flex:none;max-height:none;overflow:visible;padding:4px 0 0}.legalflow-ui .dialog-content .case-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px}.legalflow-ui .dialog-content .case-form .form-grid>.field:not(.full){grid-column:auto;min-width:0}.legalflow-ui .dialog-content .case-form :is(.field.full,.case-basic-heading,.case-documents){grid-column:1/-1;min-width:0}.legalflow-ui .dialog-content .case-form .field{gap:3px}.legalflow-ui .dialog-content .case-form .case-basic-heading,.legalflow-ui .dialog-content .case-form .inline-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 8px}.legalflow-ui .dialog-content .case-form .case-extra-toggle{flex:1 1 160px;height:auto;min-height:36px;margin:0;padding:6px 10px;white-space:normal;line-height:1.2;justify-content:center}.legalflow-ui .dialog-content .case-form .case-advanced.form-section-content{margin-top:8px;padding:8px 0 0;border-left:0}.legalflow-ui .dialog-content .case-form .form-extra-heading{margin-bottom:6px}.legalflow-ui .dialog-content .case-form .field-hint{margin:0}.legalflow-ui .dialog-content .case-form .lf-client-status-choice>div{gap:6px}.legalflow-ui .dialog-content .case-form .lf-client-status-choice label{min-height:32px;padding:0 10px}.legalflow-ui .dialog-content .case-form .case-documents-drop{padding:10px}.legalflow-ui .dialog-content .case-form .case-documents-buttons{flex-wrap:wrap}.legalflow-ui .dialog-content .case-form .case-documents-buttons .button{flex:1 1 140px;min-height:36px}.legalflow-ui .dialog-content .case-form .case-parties-list{max-height:none;overflow:visible}.legalflow-ui .dialog-content .case-form .case-parties-list .case-party-form{grid-template-columns:minmax(0,1fr);gap:8px;padding:10px 0}.legalflow-ui .dialog-content .case-form .case-party-form>.field,.legalflow-ui .dialog-content .case-form .case-party-form>.field.case-party-notes-field{grid-column:1/-1;grid-row:auto}.legalflow-ui .dialog-content .case-form .case-party-notes-field>label{position:static;width:auto;height:auto;margin:0;overflow:visible;clip-path:none}.legalflow-ui .dialog-content .case-form .case-party-form>.button{grid-column:1/-1;grid-row:auto;width:auto;min-width:36px;height:36px;min-height:36px;margin:0;justify-self:end}.legalflow-ui .dialog-content .case-form>.form-actions{position:static;margin-top:2px;padding:8px 0}.legalflow-ui .dialog-content:has(>.documents-preview){width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:12px;border-radius:12px}}@media (max-width:420px){.legalflow-ui .app-shell .finance-page .finance-ledger{grid-template-columns:minmax(0,1fr)}}.legalflow-ui .app-shell .cases-view-tabs{display:none}html[data-workspace-palette=neutral] .legalflow-ui .app-shell .cases-view-tabs button[aria-selected=true]{background:var(--wt-accent)!important;border-color:var(--wt-accent)!important;color:var(--wt-on-accent)!important}@media (max-width:780px){.legalflow-ui .app-shell .cases-workspace .cases-view-tabs{display:flex;align-items:center;justify-content:center;flex:0 0 90px;width:90px;min-width:90px;height:44px;margin-left:auto;padding:0;gap:0;border:1px solid #e6e0d7;border-radius:999px;background:#F7F5F0}.legalflow-ui .app-shell .cases-workspace .cases-view-tabs button{display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;border:1px solid transparent;border-radius:50%;background:transparent;color:#7B7369;box-shadow:none}.legalflow-ui .app-shell .cases-workspace .cases-view-tabs button[aria-selected=true]{background:#fff;border-color:#D7C9B2;color:#1F1D20}.legalflow-ui .app-shell .cases-workspace .cases-view-tabs button svg{width:18px;height:18px}.legalflow-ui .app-shell .cases-workspace .cases-card-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:12px}.legalflow-ui .app-shell .cases-workspace .cases-card{display:flex;flex-direction:column;gap:10px;min-width:0;padding:14px;border:1px solid var(--av-border);border-radius:16px;background:var(--av-surface);cursor:pointer}.legalflow-ui .app-shell .cases-workspace .cases-card-head{display:flex;align-items:center;gap:10px;min-width:0}.legalflow-ui .app-shell .cases-workspace .cases-card-mark{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:#F1ECDC;color:#4D4845}.legalflow-ui .app-shell .cases-workspace .cases-card-identity{min-width:0;flex:1}.legalflow-ui .app-shell .cases-workspace .cases-card-title{display:block;width:100%;margin:0;padding:0;border:0;background:transparent;text-align:left;font:550 14px/1.35 var(--av-font);color:var(--av-ink);overflow-wrap:anywhere}.legalflow-ui .app-shell .cases-workspace .cases-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:0;margin-top:4px}.legalflow-ui .app-shell .cases-workspace .cases-card-meta p{margin:0;font-size:12px;line-height:1.5;color:var(--av-muted)}.legalflow-ui .app-shell .cases-workspace .cases-card-status{display:inline-flex;align-items:center;margin-left:10px;padding-left:10px;border-left:1px solid var(--av-border)}.legalflow-ui .app-shell .cases-workspace .cases-card-facts{display:grid;gap:4px;min-width:0}.legalflow-ui .app-shell .cases-workspace .cases-card-facts p{display:flex;align-items:center;gap:8px;min-width:0;margin:0;font-size:13px;line-height:1.4;color:var(--av-muted);overflow-wrap:anywhere}.legalflow-ui .app-shell .cases-workspace .cases-card-facts svg{flex:none;color:#7B7369}.legalflow-ui .app-shell .cases-workspace .cases-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:8px;border-top:1px solid var(--av-border)}.legalflow-ui .app-shell .cases-workspace .cases-card-footer>span{min-width:0;font-size:12px;color:var(--av-muted);overflow-wrap:anywhere}.legalflow-ui .app-shell .cases-workspace .cases-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}.legalflow-ui .app-shell .cases-workspace .cases-card-actions .button{min-height:44px;height:auto;padding:0 10px;border:1px solid var(--av-border);border-radius:10px;background:var(--av-surface);font-size:13px}.legalflow-ui .app-shell .cases-workspace .cases-card-actions .cases-card-delete{color:var(--av-danger-ink)}}.legalflow-ui .app-shell .cases-workspace .cases-toolbar>.search>.input,.legalflow-ui .app-shell .lf-clients-page.lf-clients-luxury .lf-clients-card .lf-clients-toolbar .search>.input,.legalflow-ui .app-shell .search>.input{padding-left:38px}.legalflow-ui .app-shell .cases-workspace .cases-list-card{overflow:visible}.legalflow-ui .app-shell .cases-workspace .cases-status-filter,.legalflow-ui .app-shell .cases-workspace .cases-status-filter .client-filter{position:relative;z-index:6}.legalflow-ui .app-shell .cases-workspace .client-filter-menu{position:absolute;top:calc(100% + 6px);right:0;bottom:auto;z-index:40}.legalflow-ui .finance-page .finance-status-filter{display:none}.legalflow-ui .finance-page .finance-icon-label{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.legalflow-ui .calendar-page .calendar-day-backdrop,.legalflow-ui .calendar-page .calendar-month-toolbar>.calendar-create-actions{display:none}@media (max-width:780px){body.legalflow-ui .app-shell .finance-page .table-scroll .finance-row-actions .finance-open-action{position:static;inset:auto;width:auto;height:auto;min-height:32px;padding:0 2px;border:0;background:transparent!important;color:var(--av-muted)!important;font-size:12px;box-shadow:none}}@media (max-width:1023px){.legalflow-ui .app-shell .finance-page .finance-list{padding:0;overflow:visible}.legalflow-ui .app-shell .finance-page .finance-list>:is(.empty,.skeleton-wrap){width:auto;max-width:100%;margin:0;border-top:0}.legalflow-ui .app-shell .finance-page .finance-list>.finance-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin:0;width:auto;min-width:0;padding:12px;border-bottom:1px solid var(--av-border)}.legalflow-ui .app-shell .finance-page .finance-toolbar>:is(.search,.received-intro){grid-column:1/-1;width:100%;min-width:0;max-width:none;margin:0}.legalflow-ui .app-shell .finance-page .finance-toolbar>.finance-status-filter{display:flex;align-items:center;gap:8px;position:relative;z-index:6;grid-column:1;width:100%;min-width:0;margin:0}.legalflow-ui .app-shell .finance-page .finance-toolbar :is(.input,.client-filter-trigger){width:100%;height:44px;min-height:44px;border:1px solid var(--av-border);border-radius:999px;background:var(--av-surface-2);color:var(--av-text);box-shadow:none}.legalflow-ui .app-shell .finance-page .finance-toolbar .search>.input{padding-left:38px;padding-right:14px;font-size:16px}.legalflow-ui .app-shell .finance-page .finance-toolbar .client-filter-trigger{gap:12px;padding-inline:16px;font-size:16px;font-weight:400}.legalflow-ui .app-shell .finance-page .finance-toolbar .client-filter-trigger>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.legalflow-ui .app-shell .finance-page .finance-toolbar .toolbar-count{grid-column:2;grid-row:2;margin:0;font-size:12px;white-space:nowrap}.legalflow-ui .app-shell .finance-page .finance-status-filter .client-filter-menu{position:absolute;top:calc(100% + 6px);right:0;bottom:auto;z-index:40;max-height:min(320px,50dvh);overflow-y:auto;overscroll-behavior:contain;border-radius:12px;background:var(--av-surface)}.legalflow-ui .app-shell .finance-page .finance-status-filter .client-filter-menu button{min-height:44px;border-radius:8px}.legalflow-ui .app-shell .finance-page .finance-status-filter .client-filter-menu button[aria-selected=true]{background:var(--av-surface-3);color:var(--av-ink)}}@media (min-width:781px) and (max-width:1023px){.legalflow-ui .app-shell .finance-page .finance-filters{display:none}.legalflow-ui .app-shell .finance-page .finance-list>.finance-toolbar{grid-template-columns:minmax(0,1fr) minmax(160px,220px) auto}.legalflow-ui .app-shell .finance-page .finance-toolbar>:is(.search,.received-intro){grid-column:1}.legalflow-ui .app-shell .finance-page .finance-toolbar>.finance-status-filter{grid-column:2}.legalflow-ui .app-shell .finance-page .finance-toolbar .toolbar-count{grid-column:3;grid-row:1}}@media (max-width:360px){.legalflow-ui .app-shell .workspace-pages .finance-page>.page-heading .office-actions>.finance-new{width:44px;min-width:44px;padding:0;gap:0;font-size:0}}@media (max-width:1023px){.legalflow-ui .app-shell .finance-page .finance-status-filter>.client-filter{flex:1;min-width:0}.legalflow-ui .app-shell .finance-page .finance-toolbar .finance-clear-filters{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0}.legalflow-ui .app-shell .finance-page .finance-status-filter[data-filter-active=false] .client-filter-trigger>span{color:var(--av-muted)}.legalflow-ui .app-shell .finance-page .finance-toolbar .search>.input::placeholder{color:var(--av-muted);opacity:1;font-weight:400}}@media (max-width:780px){.legalflow-ui .app-shell .finance-page .finance-list>.finance-toolbar{grid-template-columns:minmax(0,1fr)}.legalflow-ui .app-shell .finance-page .finance-toolbar>.finance-status-filter{grid-column:1/-1}.legalflow-ui .app-shell .finance-page .finance-toolbar .toolbar-count{grid-column:1/-1;grid-row:auto}}@media (max-width:780px){.legalflow-ui .app-shell .workspace-pages :is(.calendar-page,.imports-page)>.page-heading{min-height:44px;align-items:center;margin:0;padding:0}}.legalflow-ui .dialog-content:has(>.invoice-editor){display:flex;flex-direction:column;width:min(1000px,calc(100vw - 32px));max-width:1000px;height:min(820px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);padding:0;overflow:hidden;border-radius:20px}.legalflow-ui .dialog-content:has(>.invoice-editor)>.dialog-heading{flex:0 0 auto;align-items:center;margin:0;padding:16px 24px;border-bottom:1px solid var(--av-border)}.legalflow-ui .dialog-content:has(>.invoice-editor) .dialog-title{font-size:20px}.legalflow-ui .dialog-content:has(>.invoice-editor)>.dialog-heading>.button{width:44px;height:44px;min-height:44px;margin:0;padding:0}.legalflow-ui .dialog-content>.invoice-editor{display:flex;flex:1;flex-direction:column;min-height:0;max-height:none;padding:0;overflow:hidden}.legalflow-ui .dialog-content .invoice-editor .invoice-form-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:20px 24px;scrollbar-width:thin}.legalflow-ui .dialog-content .invoice-editor>.form-actions{position:static;flex:0 0 auto;justify-content:flex-end;flex-wrap:nowrap;gap:10px;margin:0;padding:14px 24px;background:var(--av-surface);border-top:1px solid var(--av-border)}.legalflow-ui .dialog-content .invoice-editor>.form-actions .button{flex:0 0 auto;min-height:44px;padding-inline:20px;border-radius:12px}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-body{display:grid;gap:20px;min-width:0}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-top{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:24px;align-items:start}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-section{min-width:0}.legalflow-ui .dialog-content .invoice-editor .invoice-client-section{padding-left:24px;border-left:1px solid var(--av-border)}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-heading{margin:0 0 16px;padding:0;border:0;font-size:15px;font-weight:600;letter-spacing:-.01em;text-transform:none}.legalflow-ui .dialog-content .invoice-editor :is(.form-grid,.invoice-meta-grid){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.legalflow-ui .dialog-content .invoice-editor .field{min-width:0;margin:0;gap:6px}.legalflow-ui .dialog-content .invoice-editor .field>label{font-size:12px;line-height:1.5;font-weight:500}.legalflow-ui .dialog-content .invoice-editor .field-hint{font-size:11px;line-height:1.5}.legalflow-ui .dialog-content .invoice-editor :is(.input,.select,.textarea){width:100%;min-width:0;min-height:42px;border-radius:10px;font-size:13px}.legalflow-ui .dialog-content .invoice-editor .invoice-id-pair{gap:8px}.legalflow-ui .dialog-content .invoice-editor .invoice-services-section{padding-top:20px;border-top:1px solid var(--av-border)}.legalflow-ui .dialog-content .invoice-editor .invoice-line{padding:12px;gap:10px;border-radius:14px;background:var(--av-surface-2)}.legalflow-ui .dialog-content .invoice-editor .invoice-line-head{padding:0 12px;border:0;background:transparent}.legalflow-ui .dialog-content .invoice-editor .is-monthly .invoice-line{grid-template-columns:24px minmax(0,1fr) 140px 130px 44px}.legalflow-ui .dialog-content .invoice-editor .is-hourly .invoice-line{grid-template-columns:24px minmax(0,1fr) 80px 110px 100px 44px}.legalflow-ui .dialog-content .invoice-editor .invoice-line-field{display:grid;gap:6px;min-width:0}.legalflow-ui .dialog-content .invoice-editor .invoice-line-field>span{display:none;font-size:12px;font-weight:500;color:var(--av-muted)}.legalflow-ui .dialog-content .invoice-editor .invoice-line>.button{width:44px;height:44px;min-height:44px;padding:0}.legalflow-ui .dialog-content .invoice-editor .invoice-line-text .textarea{min-height:60px}.legalflow-ui .dialog-content .invoice-editor .invoice-add-line{min-height:44px;margin-top:4px}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-bottom{grid-template-columns:minmax(0,1fr) minmax(260px,320px);margin:0;gap:24px}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-totals{padding:12px 16px;border-radius:14px;font-size:13px}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-grand :is(dt,dd){font-size:18px}.legalflow-ui .dialog-content .invoice-editor .invoice-change-type{font-size:13px}.legalflow-ui .dialog-content .invoice-editor .invoice-change-type summary{display:list-item;width:fit-content;padding-block:10px;color:var(--av-muted);cursor:pointer}.legalflow-ui .dialog-content .invoice-editor .invoice-change-type .field{margin:4px 0 12px;max-width:300px}.legalflow-ui .dialog-content:has(.invoice-editor .invoice-type-choice){width:min(640px,calc(100vw - 32px));height:auto}.legalflow-ui .dialog-content .invoice-editor .invoice-type-choice{gap:14px}.legalflow-ui .dialog-content .invoice-editor .invoice-type-card{min-height:172px;padding:20px;border-radius:16px}.legalflow-ui .dialog-content .invoice-editor .invoice-type-card strong{font-size:16px}@media (max-width:780px){.legalflow-ui .dialog-content:has(>.invoice-editor){width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));border-radius:18px}.legalflow-ui .dialog-content:has(.invoice-editor .invoice-type-choice){height:auto}.legalflow-ui .dialog-content:has(>.invoice-editor)>.dialog-heading{padding:12px 16px}.legalflow-ui .dialog-content:has(>.invoice-editor) .dialog-title{font-size:18px}.legalflow-ui .dialog-content .invoice-editor .invoice-form-scroll{padding:16px}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-top{grid-template-columns:minmax(0,1fr);gap:20px}.legalflow-ui .dialog-content .invoice-editor .invoice-client-section{padding:20px 0 0;border-left:0;border-top:1px solid var(--av-border)}.legalflow-ui .dialog-content .invoice-editor :is(.input,.select,.textarea){min-height:44px;font-size:16px}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-bottom{grid-template-columns:minmax(0,1fr);gap:20px}.legalflow-ui .dialog-content .invoice-editor .invoice-type-card{min-height:0;padding:16px}.legalflow-ui .dialog-content .invoice-editor :is(.is-monthly,.is-hourly) .invoice-line{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.legalflow-ui .dialog-content .invoice-editor .invoice-line-head{display:none}.legalflow-ui .dialog-content .invoice-editor .invoice-line-text{grid-column:1/-1}.legalflow-ui .dialog-content .invoice-editor .invoice-line-field>span{display:block}.legalflow-ui .dialog-content .invoice-editor .invoice-line>.invoice-line-amount{grid-column:1;align-self:center;font-size:16px}.legalflow-ui .dialog-content .invoice-editor .invoice-line>.button{grid-column:2;grid-row:auto;width:44px;min-width:44px;justify-self:end}.legalflow-ui .dialog-content .invoice-editor>.form-actions{padding:12px 16px}.legalflow-ui .dialog-content .invoice-editor>.form-actions .button{min-width:0;padding-inline:16px}}@media (max-width:480px){.legalflow-ui .dialog-content .invoice-editor .form-grid{grid-template-columns:minmax(0,1fr)}.legalflow-ui .dialog-content .invoice-editor .invoice-id-pair{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}}.legalflow-ui .dialog-content:has(.invoice-editor .invoice-type-choice){width:min(520px,calc(100vw - 24px))}.legalflow-ui .dialog-content .invoice-editor .invoice-type-choice{grid-template-columns:minmax(0,1fr);gap:12px}.legalflow-ui .dialog-content .invoice-editor .invoice-type-card{display:grid;grid-template-columns:44px minmax(0,1fr) 18px;grid-template-rows:auto auto;align-items:center;gap:4px 14px;min-height:96px;padding:16px;background:var(--av-surface);box-shadow:none}.legalflow-ui .dialog-content .invoice-editor .invoice-type-card:hover{background:var(--av-surface-2);border-color:var(--av-border-strong)}.legalflow-ui .dialog-content .invoice-editor .invoice-type-card .invoice-choice-icon{display:grid;place-items:center;grid-column:1;grid-row:1/3;width:44px;height:44px;border-radius:12px;background:var(--av-surface-2)}.legalflow-ui .dialog-content .invoice-editor .invoice-type-card strong{grid-column:2;grid-row:1;align-self:end;font-size:15px;line-height:1.4}.legalflow-ui .dialog-content .invoice-editor .invoice-type-card .invoice-choice-description{grid-column:2;grid-row:2;align-self:start;font-size:13px;line-height:1.5}.legalflow-ui .dialog-content .invoice-editor .invoice-type-card .invoice-choice-arrow{grid-column:3;grid-row:1/3;color:var(--av-muted)}@media (max-width:780px){.legalflow-ui .dialog-content .invoice-editor .invoice-line>.invoice-line-text{grid-column:1/-1;grid-row:1;width:100%}.legalflow-ui .dialog-content .invoice-editor .invoice-line>.invoice-line-field:nth-child(3){grid-column:1;grid-row:2}.legalflow-ui .dialog-content .invoice-editor .invoice-line>.invoice-line-field:nth-child(4){grid-column:2;grid-row:2}.legalflow-ui .dialog-content .invoice-editor .invoice-line>.invoice-line-amount{grid-column:1;grid-row:3}.legalflow-ui .dialog-content .invoice-editor .invoice-line>.button{grid-column:2;grid-row:3}.legalflow-ui .dialog-content .invoice-editor .invoice-line-text .textarea{min-height:88px;height:88px}}@media (max-width:360px){.legalflow-ui .dialog-content .invoice-editor .invoice-type-card{grid-template-columns:36px minmax(0,1fr) 16px;gap:4px 10px;padding:12px}.legalflow-ui .dialog-content .invoice-editor .invoice-type-card .invoice-choice-icon{width:36px;height:36px}}@media (min-width:481px){.legalflow-ui .dialog-content .invoice-editor .invoice-client-section .field>label{display:flex;align-items:flex-end;min-height:3em}}@media (min-width:1024px){.legalflow-ui .dialog-content .invoice-editor .invoice-editor-top{grid-template-columns:minmax(0,1fr);gap:20px}.legalflow-ui .dialog-content .invoice-editor .invoice-meta-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.legalflow-ui .dialog-content .invoice-editor .invoice-meta-grid .field>label{display:flex;align-items:flex-end;min-height:1.5em}.legalflow-ui .dialog-content .invoice-editor .invoice-client-section{padding:20px 0 0;border-left:0;border-top:1px solid var(--av-border)}.legalflow-ui .dialog-content .invoice-editor .invoice-client-section .field>label{min-height:1.5em}.legalflow-ui .dialog-content .invoice-editor .invoice-client-section>.form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.legalflow-ui .dialog-content .invoice-editor .invoice-client-section .field:has([name=billToAddress]){grid-column:2/-1}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-bottom{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px 24px;align-items:start;padding-top:20px;border-top:1px solid var(--av-border)}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-notes{display:contents}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-notes>.field:has([name=vatPercent]){display:grid;grid-template-columns:120px minmax(0,1fr);grid-column:1;grid-row:1;gap:6px 14px;align-items:center}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-notes>.field:has([name=vatPercent])>label{grid-column:1;grid-row:1}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-notes [name=vatPercent]{grid-column:1;grid-row:2;max-width:120px}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-notes>.field:has([name=vatPercent]) .field-hint{grid-column:2;grid-row:2;margin:0}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-notes>.field:has([name=notes]){grid-column:1;grid-row:2}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-notes [name=notes]{min-height:120px;height:120px}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-notes .finance-advanced{grid-column:2;grid-row:1;min-width:0;margin:0;padding:0;border:0;background:transparent}.legalflow-ui .dialog-content .invoice-editor .finance-advanced summary{display:none}.legalflow-ui .dialog-content .invoice-editor .finance-advanced .field{padding:0}.legalflow-ui .dialog-content .invoice-editor .invoice-editor-totals{grid-column:2;grid-row:2;min-height:160px;padding:12px 16px}.legalflow-ui .dialog-content .invoice-editor .invoice-change-type{grid-column:1/-1;grid-row:3;padding-top:4px;border-top:1px solid var(--av-border)}.legalflow-ui .dialog-content .invoice-editor .invoice-change-type summary{min-height:36px;padding-block:8px;font-size:12px}}@media (max-width:1023px){.legalflow-ui .dialog-content .invoice-editor .invoice-change-type{order:-1}}.legalflow-ui .av-calendar-picker{display:none;position:fixed;inset:auto;margin:0;padding:12px;width:min(336px,calc(100vw - 24px));box-sizing:border-box;overflow:auto;overscroll-behavior:contain;z-index:100;border:1px solid var(--wt-border,var(--av-border));border-radius:18px;background:var(--wt-surface,var(--av-surface));color:var(--wt-text,var(--av-text));font:400 13px/1.4 var(--av-font);box-shadow:0 14px 44px #1F1D2026;scrollbar-width:thin}.legalflow-ui .av-calendar-picker[data-open]{display:block;animation:av-picker-enter .14s ease-out}.legalflow-ui .av-calendar-picker button{display:inline-flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:40px;margin:0;padding:0 6px;border:1px solid transparent;border-radius:10px;background:transparent;color:inherit;font:inherit;cursor:pointer;box-shadow:none;transition:background-color .12s ease}.legalflow-ui .av-calendar-picker button:hover:not(:disabled){background:var(--wt-hover,var(--av-surface-3))}.legalflow-ui .av-calendar-picker button:focus-visible{outline:2px solid var(--wt-accent,var(--av-ink));outline-offset:-2px}.legalflow-ui .av-calendar-picker button:disabled{opacity:.35;cursor:not-allowed}.legalflow-ui .av-calendar-picker .av-picker-heading{display:grid;grid-template-columns:36px minmax(0,1fr) 36px 32px;align-items:center;gap:2px;padding-bottom:10px}.legalflow-ui .av-calendar-picker .av-picker-heading button{min-height:36px}.legalflow-ui .av-calendar-picker .av-picker-title{font-size:14px;font-weight:600}.legalflow-ui .av-calendar-picker .av-picker-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.legalflow-ui .av-calendar-picker [role=columnheader]{display:grid;place-items:center;height:30px;color:var(--wt-muted,var(--av-muted));font-size:11px;font-weight:500}.legalflow-ui .av-calendar-picker [role=gridcell]{display:block;min-width:0}.legalflow-ui .av-calendar-picker [data-picker-date]{font-variant-numeric:tabular-nums}.legalflow-ui .av-calendar-picker [data-outside]{color:var(--wt-muted,var(--av-muted));opacity:.6}.legalflow-ui .av-calendar-picker [aria-current=date]{border-color:var(--wt-border-strong,var(--av-border-strong));font-weight:600}.legalflow-ui .av-calendar-picker button[aria-pressed=true]{background:var(--wt-accent,var(--av-ink));color:var(--wt-on-accent,var(--av-surface));opacity:1;font-weight:600}.legalflow-ui .av-calendar-picker .av-picker-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:6px}.legalflow-ui .av-calendar-picker .av-picker-options button{min-height:44px}.legalflow-ui .av-calendar-picker .av-picker-footer{display:flex;justify-content:space-between;gap:8px;padding-top:10px;margin-top:10px;border-top:1px solid var(--wt-border,var(--av-border))}.legalflow-ui .av-calendar-picker .av-picker-footer button{width:auto;padding-inline:12px;font-size:12px;font-weight:500}.legalflow-ui .date-input .date-input-button{width:36px;height:36px;right:3px}@media (max-width:780px){.legalflow-ui .av-calendar-picker button{min-height:42px}.legalflow-ui .av-calendar-picker .av-picker-heading button{min-height:40px}.legalflow-ui .av-calendar-picker .av-picker-footer button{min-height:44px}}@keyframes av-picker-enter{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.legalflow-ui .av-calendar-picker[data-open]{animation:none}.legalflow-ui .av-calendar-picker button{transition:none}}@media (max-width:1023px){body.legalflow-ui :is(input:not([type=hidden],[type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit],[type=reset]),textarea,select,.client-filter-trigger,.case-client-select-trigger,[role=combobox]){font-size:14px!important;line-height:1.5!important}body.legalflow-ui :is(input,textarea)::placeholder{font-family:inherit;font-size:inherit!important;font-weight:400;line-height:inherit;color:var(--wt-muted,var(--av-muted));opacity:1}body.legalflow-ui :is(.field>label,.form-label){font-size:12px!important}body.legalflow-ui :is(.field-hint,.form-hint){font-size:12px!important;line-height:1.5}}@supports (font-size-adjust:.48){@media (max-width:1023px) and (hover:none) and (pointer:coarse){body.legalflow-ui :is(input:not([type=hidden],[type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit],[type=reset]),textarea,select){font-size:16px!important;font-size-adjust:.48}}}.staff-member-identity{display:contents}.staff-back-icon,.staff-member-avatar,.staff-open-icon{display:none}@media (max-width:1023px){body.legalflow-ui .app-shell .page-content.workspace-pages:has(>.settings-page){padding:12px 20px 0}body.legalflow-ui .app-shell .workspace-pages .settings-page{min-width:0;gap:8px}body.legalflow-ui .app-shell .workspace-pages .settings-page>.page-heading{min-height:44px;flex-wrap:nowrap;align-items:center;margin:0;padding:0}body.legalflow-ui .app-shell .settings-page>.page-heading h1{font-size:23px}body.legalflow-ui .app-shell .settings-page>.page-heading p{display:none}body.legalflow-ui .app-shell .workspace-pages .settings-page .settings-categories{display:flex;flex-wrap:nowrap;align-items:stretch;gap:8px;width:100%;max-width:100%;min-width:0;margin:0;padding:2px 0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;scroll-padding-inline:2px;-webkit-overflow-scrolling:touch}body.legalflow-ui .app-shell .settings-page .settings-categories::-webkit-scrollbar{display:none}body.legalflow-ui .app-shell .workspace-pages .settings-page .settings-categories .settings-category{flex:0 0 auto;width:auto;min-width:max-content;min-height:44px;padding:8px 6px;gap:8px;border:0;border-bottom:1px solid var(--av-border-strong);border-radius:0;background:transparent;color:var(--av-muted);font-size:13px;line-height:1.4;white-space:nowrap}body.legalflow-ui .app-shell .workspace-pages .settings-page .settings-categories .settings-category:after{display:block;background:var(--av-ink)}body.legalflow-ui .app-shell .workspace-pages .settings-page .settings-categories .settings-category:is(:hover,:focus-visible,[aria-current=page]){background:transparent;border-color:transparent;border-bottom-color:var(--av-border-strong);color:var(--av-ink)}body.legalflow-ui .app-shell .settings-page .settings-category-icon{flex:none}body.legalflow-ui .app-shell .settings-page .settings-category:focus-visible{outline-offset:-3px}body.legalflow-ui .app-shell .settings-page :is(.settings-content,.settings-stack,.settings-profile-grid,.settings-form-grid,.card-body,.avatar-uploader-body){min-width:0}body.legalflow-ui .app-shell .settings-page .settings-profile-grid{grid-template-columns:minmax(0,1fr);gap:14px}body.legalflow-ui .app-shell .settings-page :is(.card,.settings-profile-grid>.card){min-width:0;border-radius:18px}body.legalflow-ui .app-shell .settings-page .card-head{gap:10px;padding:14px 16px}body.legalflow-ui .app-shell .settings-page .card>.card-head:first-child{border-top-left-radius:17px;border-top-right-radius:17px}body.legalflow-ui .app-shell .settings-page .card-head h2{font-size:16px}body.legalflow-ui .app-shell .settings-page :is(.card-body,.subscription-card .card-body){padding:16px}body.legalflow-ui .app-shell .settings-page .settings-profile-grid>.card>:is(.card-body,form){display:flex;flex-direction:column;gap:16px}body.legalflow-ui .app-shell .settings-page .settings-form-grid,body.legalflow-ui .app-shell .settings-page .settings-stack{gap:16px}body.legalflow-ui .app-shell .settings-page .settings-profile-form .input,body.legalflow-ui .app-shell .settings-page .settings-role dd{min-height:44px}body.legalflow-ui .app-shell .settings-page :is(.avatar-uploader,.profile-summary){align-items:flex-start;gap:12px;margin:0}body.legalflow-ui .app-shell .settings-page .profile-avatar{width:56px;min-width:56px;height:56px;font-size:22px}body.legalflow-ui .app-shell .settings-page :is(.avatar-uploader h3,.profile-summary h3){font-size:15px;overflow-wrap:anywhere}body.legalflow-ui .app-shell .settings-page :is(.avatar-uploader p,.profile-summary p,.settings-details dd,.settings-note){overflow-wrap:anywhere}body.legalflow-ui .app-shell .settings-page .avatar-uploader-actions{flex-wrap:wrap;gap:8px}body.legalflow-ui .app-shell .settings-page .avatar-uploader-actions .button{flex:1 1 auto;width:auto;min-height:44px;padding-inline:12px}body.legalflow-ui .app-shell .settings-page .settings-security-block{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px 0}body.legalflow-ui .app-shell .settings-page .settings-security-block .settings-security{grid-template-columns:32px minmax(0,1fr);gap:10px}body.legalflow-ui .app-shell .settings-page .settings-security p{font-size:13px;line-height:1.6}body.legalflow-ui .app-shell .settings-page .settings-security-block .button{justify-self:stretch;width:100%;min-height:44px;margin:0;padding-inline:12px;white-space:normal}body.legalflow-ui .app-shell .settings-page .settings-inline-actions{flex-wrap:wrap;gap:12px}body.legalflow-ui .app-shell .settings-page .settings-inline-actions .button{min-height:44px;padding-inline:16px;white-space:normal}body.legalflow-ui .app-shell .settings-page .settings-office fieldset>.settings-form-grid{grid-template-columns:minmax(0,1fr);gap:20px}body.legalflow-ui .app-shell .settings-page .settings-field-group{min-width:0;padding-top:16px;border-top:1px solid var(--av-border)}body.legalflow-ui .app-shell .settings-page .settings-field-group h3{margin:0 0 12px;font-size:14px}body.legalflow-ui .app-shell .settings-page .settings-subscription-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:0}body.legalflow-ui .app-shell .settings-page .settings-subscription-summary>div{min-width:0;padding:12px 8px;border:0}body.legalflow-ui .app-shell .settings-page .settings-subscription-summary>div:first-child{grid-column:1/-1;padding-top:0;border-bottom:1px solid var(--av-border)}body.legalflow-ui .app-shell .settings-page .settings-subscription-summary>div:last-child{border-left:1px solid var(--av-border)}body.legalflow-ui .app-shell .settings-page .settings-subscription-summary strong{font-size:13px;overflow-wrap:anywhere}body.legalflow-ui .app-shell .settings-page .plans-grid{grid-template-columns:minmax(0,1fr);gap:12px}body.legalflow-ui .app-shell .settings-page .plan-card{padding:16px;gap:10px}body.legalflow-ui .app-shell .settings-page .plan-card>.button{min-height:44px;height:auto}body.legalflow-ui .app-shell .settings-page .subscription-card .settings-inline-actions{flex-direction:column;align-items:stretch}body.legalflow-ui .app-shell .settings-page .settings-notifications>li{padding:14px;overflow-wrap:anywhere}body.legalflow-ui .app-shell .settings-page .settings-notifications .button{min-height:44px;height:auto}body.legalflow-ui .app-shell .settings-page .settings-help>div+div{margin-top:16px;padding-top:16px}body.legalflow-ui .app-shell .settings-page .settings-help p{line-height:1.6}body.legalflow-ui .app-shell .staff-page{gap:10px}body.legalflow-ui .app-shell .staff-page>.settings-inline-actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px;margin:0;padding:0}body.legalflow-ui .app-shell .staff-page>.settings-inline-actions h2{min-width:0;margin:0;font-size:15px;line-height:1.4}body.legalflow-ui .app-shell .staff-page .table-scroll{position:relative;width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}body.legalflow-ui .app-shell .staff-page table{min-width:600px}body.legalflow-ui .app-shell .settings-page .email-settings-actions{flex-wrap:wrap;gap:8px}body.legalflow-ui .app-shell .settings-page .email-settings-actions .button{flex:1 1 auto;min-height:44px}body.legalflow-ui .app-shell .settings-page .email-connect :is(form,.form-grid,.settings-form-grid){min-width:0}body.legalflow-ui:has(.settings-page,.staff-page) .dialog-content{width:min(520px,calc(100vw - 24px));max-width:520px;top:calc(var(--settings-viewport-top,0px) + var(--settings-viewport-height,100dvh) / 2);max-height:calc(var(--settings-viewport-height,100dvh) - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:0;overflow-x:hidden;overflow-y:auto;border-radius:18px;scroll-padding-block:80px}body.legalflow-ui:has(.settings-page,.staff-page) .dialog-content>.dialog-heading{position:sticky;top:0;z-index:2;align-items:flex-start;gap:12px;margin:0;padding:16px;border-bottom:1px solid var(--av-border);background:var(--av-surface)}body.legalflow-ui:has(.settings-page,.staff-page) .dialog-content .dialog-title{font-size:18px;line-height:1.4}body.legalflow-ui:has(.settings-page,.staff-page) .dialog-content .dialog-description{font-size:12px;line-height:1.6}body.legalflow-ui:has(.settings-page,.staff-page) .dialog-content>.dialog-heading>.button{flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:0}body.legalflow-ui:has(.settings-page,.staff-page) .dialog-content>:not(.dialog-heading){padding:16px}body.legalflow-ui:has(.settings-page,.staff-page) .settings-dialog{min-width:0}body.legalflow-ui:has(.settings-page,.staff-page) .settings-dialog :is(.form-grid,.form-stack){grid-template-columns:minmax(0,1fr);gap:16px}body.legalflow-ui:has(.settings-page,.staff-page) .settings-dialog :is(input,select){min-height:44px}body.legalflow-ui:has(.settings-page,.staff-page) .settings-dialog .form-actions{position:sticky;bottom:-16px;z-index:1;display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;padding:12px 0 0;background:var(--av-surface)}body.legalflow-ui:has(.settings-page,.staff-page) .settings-dialog .form-actions .button{flex:1 1 120px;min-width:0;min-height:44px;height:auto;padding:10px 12px;white-space:normal;line-height:1.4}body.legalflow-ui:has(.settings-page,.staff-page) .settings-dialog :is(p,code){overflow-wrap:anywhere}body.legalflow-ui:has(.settings-page,.staff-page) .settings-dialog code{white-space:pre-wrap;font-size:12px}body.legalflow-ui:has(.settings-page,.staff-page) .mfa-secret-row{flex-wrap:wrap}}@media (max-width:600px){body.legalflow-ui .app-shell .settings-page .settings-details,body.legalflow-ui .app-shell .settings-page .settings-form-grid{grid-template-columns:minmax(0,1fr)}}@media (max-width:1023px){body.legalflow-ui .app-shell .staff-page>.settings-inline-actions>.button{min-height:44px;padding-inline:12px;gap:6px;font-size:12px;white-space:nowrap}body.legalflow-ui .app-shell .staff-page>.settings-inline-actions>.staff-quiet-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;gap:6px;font-size:12px}body.legalflow-ui .app-shell .staff-page>.card{padding:0}body.legalflow-ui .app-shell .staff-page .toolbar{padding:10px;gap:8px}body.legalflow-ui .app-shell .staff-page .toolbar :is(.input,.client-filter-trigger){min-height:44px;height:44px}}@media (max-width:600px){body.legalflow-ui .app-shell .staff-page .staff-open-label{display:none}body.legalflow-ui .app-shell .staff-page .staff-open-icon{display:block}body.legalflow-ui .app-shell .staff-page>.settings-inline-actions>.staff-quiet-link{width:44px;padding:0;border:1px solid var(--av-border);border-radius:12px;background:var(--av-surface);color:var(--av-ink)}body.legalflow-ui .app-shell .staff-page .staff-members-card .table-scroll{overflow:visible}body.legalflow-ui .app-shell .staff-page .staff-members-card table{display:block;width:100%;min-width:0}body.legalflow-ui .app-shell .staff-page .staff-members-card thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}body.legalflow-ui .app-shell .staff-page .staff-members-card tbody{display:block}body.legalflow-ui .app-shell .staff-page .staff-members-card tbody tr{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto 44px;align-items:center;gap:6px 8px;padding:12px;border-bottom:1px solid var(--av-border)}body.legalflow-ui .app-shell .staff-page .staff-members-card tbody tr:last-child{border-bottom:0}body.legalflow-ui .app-shell .staff-page .staff-members-card tbody td{display:block;min-width:0;width:auto;padding:0;border:0;white-space:normal;font-size:12px}body.legalflow-ui .app-shell .staff-page .staff-members-card tbody td:first-child{grid-column:1/3;grid-row:1}body.legalflow-ui .app-shell .staff-page .staff-members-card tbody td:nth-child(2){grid-column:1;grid-row:2;color:var(--av-muted)}body.legalflow-ui .app-shell .staff-page .staff-members-card tbody td:nth-child(2):before{content:"Roli: "}body.legalflow-ui .app-shell .staff-page .staff-members-card tbody td:nth-child(3){grid-column:2;grid-row:2}body.legalflow-ui .app-shell .staff-page .staff-members-card tbody td:last-child{grid-column:3;grid-row:1/3}body.legalflow-ui .app-shell .staff-page .staff-person>span:first-child{flex-wrap:wrap;gap:4px 8px;font-size:13px}body.legalflow-ui .app-shell .staff-page .staff-email{overflow-wrap:anywhere}body.legalflow-ui .app-shell .staff-page .staff-actions-trigger{width:44px;height:44px;min-height:44px}body.legalflow-ui .app-shell .staff-page .staff-action-reason{top:0;left:0}}@media (max-width:1023px){body.legalflow-ui .app-shell .page-content.workspace-pages:has(>.staff-page){padding:12px 20px 0}body.legalflow-ui .app-shell .workspace-pages>.staff-page{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;min-width:0}body.legalflow-ui .app-shell .workspace-pages>.staff-page>*{grid-column:1/-1;min-width:0}body.legalflow-ui .app-shell .workspace-pages>.staff-page>.staff-back{display:inline-flex;justify-content:center;align-items:center;grid-column:1;grid-row:1;align-self:center;width:36px;height:44px;margin:0;padding:0;border:1px solid var(--av-border);border-radius:10px;background:var(--av-surface)}body.legalflow-ui .app-shell .workspace-pages>.staff-page .staff-back-icon{display:block}body.legalflow-ui .app-shell .workspace-pages>.staff-page .staff-back-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}body.legalflow-ui .app-shell .workspace-pages>.staff-page>.page-heading{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;grid-column:2;grid-row:1;gap:10px;min-height:44px;margin:0;padding:0}body.legalflow-ui .app-shell .workspace-pages>.staff-page>.page-heading h1{font-size:23px}body.legalflow-ui .app-shell .workspace-pages>.staff-page>.page-heading p{display:none}body.legalflow-ui .app-shell .workspace-pages>.staff-page>.page-heading .button{min-height:44px;padding-inline:12px;white-space:nowrap;font-size:12px}body.legalflow-ui .app-shell .staff-page .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:10px}body.legalflow-ui .app-shell .staff-page .toolbar>.search{grid-column:1/-1;width:100%;max-width:none;min-width:0}body.legalflow-ui .app-shell .staff-page .toolbar>.client-filter{min-width:0;width:100%}body.legalflow-ui .app-shell .staff-page .staff-count{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--av-muted);font-size:12px;white-space:nowrap}body.legalflow-ui .app-shell .staff-page .staff-count .info-hint-button{width:28px;height:32px;min-height:32px}body.legalflow-ui .app-shell .staff-page .staff-count .info-hint-button svg{width:16px;height:16px}body.legalflow-ui .app-shell .workspace-pages>.staff-page>.card{min-width:0;border-radius:18px}body.legalflow-ui .app-shell .staff-page .staff-audit summary{min-height:48px;padding:12px;font-size:14px}body.legalflow-ui .app-shell .staff-page .staff-roles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:12px}body.legalflow-ui .app-shell .staff-page .staff-roles p{overflow-wrap:anywhere}}@media (max-width:600px){body.legalflow-ui .app-shell .staff-page .staff-members-card tbody tr{gap:10px 8px;padding:14px 12px}body.legalflow-ui .app-shell .staff-page .staff-member-identity{display:flex;align-items:center;gap:10px;min-width:0}body.legalflow-ui .app-shell .staff-page .staff-member-avatar{display:inline-grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:var(--av-surface-2);color:var(--av-ink);font-size:12px;font-weight:500}body.legalflow-ui .app-shell .staff-page .staff-person{min-width:0;gap:4px}body.legalflow-ui .app-shell .staff-page .staff-person>span:first-child{font-size:13px;line-height:1.4}body.legalflow-ui .app-shell .staff-page .staff-members-card tbody td:nth-child(2):before{content:none}body.legalflow-ui .app-shell .staff-page .staff-members-card tbody td:nth-child(2){padding-left:48px;font-weight:500}body.legalflow-ui .app-shell .staff-page .staff-members-card tbody tr,body.legalflow-ui .app-shell .staff-page .staff-members-card tbody tr td{background:transparent!important}body.legalflow-ui .app-shell .staff-page .staff-members-card tbody tr:last-child{border-bottom-left-radius:17px;border-bottom-right-radius:17px}}body.legalflow-ui .info-hint .info-hint-pop{display:none;position:fixed;inset:auto;width:min(280px,calc(100vw - 24px));max-width:none;margin:0;padding:12px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--wt-border,var(--av-border));border-radius:12px;background:var(--wt-surface,var(--av-surface));color:var(--wt-text,var(--av-text));box-shadow:0 8px 28px #1F1D2026;font:400 12px/1.5 var(--av-font);white-space:normal;overflow-wrap:anywhere;text-align:left;z-index:100}body.legalflow-ui .info-hint .info-hint-pop[data-open]{display:block}@media (max-width:1023px){body.legalflow-ui .app-shell .page-content.workspace-pages:has(>.simple-reports){padding:12px 20px 0}body.legalflow-ui .app-shell .simple-reports{gap:12px;min-width:0}body.legalflow-ui .app-shell .workspace-pages .simple-reports>.page-heading{flex-direction:row;flex-wrap:nowrap;align-items:center;min-height:44px;margin:0;padding:0;gap:12px}body.legalflow-ui .app-shell .simple-reports .page-heading h1{margin:0;font-size:23px}body.legalflow-ui .app-shell .simple-reports .page-heading p{display:none}body.legalflow-ui .app-shell .simple-reports .page-heading>.button{display:inline-flex;justify-content:center;align-items:center;flex:0 0 auto;min-height:44px;height:44px;margin:0;padding-inline:14px}body.legalflow-ui .app-shell .simple-reports .office-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}body.legalflow-ui .app-shell .simple-reports .office-metrics>article,body.legalflow-ui .app-shell .simple-reports .office-metrics>article:nth-child(n+4){grid-column:auto;min-width:0}body.legalflow-ui .app-shell .simple-reports .office-metrics>article:last-child{grid-column:1/-1}body.legalflow-ui .app-shell .simple-reports .metric-card{display:grid;grid-template-columns:minmax(0,1fr) 32px;grid-template-areas:"label label" "value icon" "description description";align-content:start;align-items:center;gap:10px 8px;min-height:154px;padding:16px;border-radius:18px;box-shadow:none}body.legalflow-ui .app-shell .simple-reports .metric-card h2{grid-area:label;min-height:34px;margin:0;font-size:12px;line-height:1.4;font-weight:500;color:var(--av-muted)}body.legalflow-ui .app-shell .simple-reports .metric-card strong{grid-area:value;margin:0;font:600 30px/1.1 var(--av-font);letter-spacing:-.035em;font-variant-numeric:tabular-nums}body.legalflow-ui .app-shell .simple-reports .metric-icon{grid-area:icon;width:32px;height:32px;margin:0;border-radius:10px;background:var(--av-surface-2);color:var(--av-muted)}body.legalflow-ui .app-shell .simple-reports .metric-card>p{grid-area:description;margin:0;font-size:12px;line-height:1.5;overflow-wrap:anywhere}body.legalflow-ui .app-shell .simple-reports .metric-card>.metric-availability{grid-area:auto;grid-column:1/-1}body.legalflow-ui .app-shell .simple-reports .metric-income{min-height:128px}body.legalflow-ui .app-shell .simple-reports .metric-income h2{min-height:0}body.legalflow-ui .app-shell .simple-reports .report-note{margin:0;padding:14px 16px;border:1px solid var(--av-border);border-radius:14px;background:var(--av-surface-2);color:var(--av-muted);font-size:12px;line-height:1.6}body.legalflow-ui .app-shell .simple-reports .report-loading{margin:0;font-size:12px;line-height:1.5}}@media (max-width:600px){body.legalflow-ui .app-shell .simple-reports .page-heading>.button{width:44px;min-width:44px;padding:0;gap:0;font-size:0}body.legalflow-ui .app-shell .simple-reports .page-heading>.button:has(.spin)>svg:not(.spin){display:none}body.legalflow-ui .app-shell .simple-reports .metric-card{padding:14px;gap:8px}}