.office-expense-layout{min-width:0;height:100dvh;display:flex}.expense-main{flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.expense-main .page-header{flex-wrap:wrap}.expense-context,.expense-filters,.expense-notice{padding:12px 24px}.expense-context p{margin:4px 0}.expense-filters{border-block:1px solid var(--border);gap:16px;display:flex}.expense-filters label{flex-direction:column;gap:6px;display:flex}.expense-work-area{flex:1;min-height:0;display:flex;overflow:hidden}.expense-list{flex:1;min-width:0;overflow:auto}.expense-list>p,.expense-list>[role=alert]{padding:16px}.expense-row{border:0;border-bottom:1px solid var(--border);text-align:left;border-radius:0;justify-content:space-between;align-items:flex-start;gap:16px;width:100%;padding:18px 24px;display:flex}.expense-row[aria-current=page]{border-left:3px solid var(--brand-action);background:#fff0f0}.expense-row strong{overflow-wrap:anywhere;display:block}.expense-row small{color:var(--text-muted);margin-top:6px;display:block}.expense-row>span:first-child{min-width:0}.expense-row>span:last-child{white-space:nowrap}.expense-editor{border-left:1px solid var(--border);flex-shrink:0;width:440px;padding:24px;overflow:auto}.expense-editor header h2{margin-block:16px 8px}.expense-editor label{flex-direction:column;gap:6px;margin:14px 0;display:flex}.expense-editor input,.expense-editor select,.expense-editor textarea{width:100%;min-width:0}.expense-editor fieldset{border:0;min-width:0;margin:0;padding:0}.expense-editor legend{margin-top:16px;font-weight:600}.expense-money{gap:12px;display:flex}.expense-money label:first-child{flex:1;min-width:0}.expense-money label:last-child{width:110px}.expense-company{padding-block:12px}.expense-company summary{cursor:pointer;padding:8px 0}.expense-actions{flex-wrap:wrap;gap:12px;margin-block:20px;display:flex}.expense-empty{border-left:1px solid var(--border);width:440px;padding:30px}.expense-history article{border-bottom:1px solid var(--border);overflow-wrap:anywhere;padding-block:12px}.expense-history small{margin-top:6px;display:block}.expense-save-state{font-size:14px}.expense-category-page{max-width:1100px;margin:auto;padding:24px}.expense-category-page form{border:1px solid var(--border);margin-block:20px;padding:20px}.expense-category-page label{flex-direction:column;gap:6px;margin-block:12px;display:flex}.expense-category-page .category-row{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:12px;padding:12px;display:flex}@media (width<=2199px) and (width>=1280px){.expense-editor{flex:0 0 520px;width:520px}}@media (width<=1279px) and (width>=768px){.expense-selected .expense-list{display:none}.expense-editor{flex:1;width:100%}}@media (width<=767px){.office-expense-layout{flex-direction:column}.office-expense-layout .sidebar{height:auto}.expense-context,.expense-filters,.expense-notice{padding:12px 16px}.expense-filters{flex-wrap:wrap}.expense-filters label{flex:1;min-width:120px}.expense-main .page-header{gap:12px}.expense-work-area{display:block;overflow:auto}.expense-selected .expense-list{display:none}.expense-editor{border:0;width:100%;padding:18px 16px;overflow:visible}.expense-empty{display:none}.expense-row{flex-wrap:wrap;padding:16px}.expense-category-page{padding:16px}.expense-category-page input,.expense-category-page button,.expense-editor button,.expense-filters input,.expense-filters select{min-height:44px}}.office-expense-layout .mobile-menu{display:none}@media (width<=767px){.office-expense-layout .mobile-menu{display:inline-flex}.office-expense-layout .sidebar.open{width:min(290px,90vw);top:0}}.expense-photos{border-top:1px solid var(--border);margin-top:20px;padding-top:12px}.expense-photo-pickers{flex-wrap:wrap;gap:12px;display:flex}.expense-photo-pickers label{flex:1;min-width:140px}.expense-photo-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.expense-photo-list a{overflow-wrap:anywhere;flex-direction:column;gap:6px;display:flex}.expense-photo-list img{object-fit:contain;border:1px solid var(--border);border-radius:4px;width:100%;height:130px}.expense-photo-list small{color:var(--text-muted)}:root{--brand-red:red;--brand-action:#c40000;--brand-action-hover:#a80000;--brand-soft:#fff0f0;--anthracite:#191919;--surface:#fff;--surface-muted:#f3f3f3;--surface-subtle:#fafafa;--surface-hover:#f7f7f7;--text:#191919;--text-muted:#626262;--border:#dedede;--border-soft:#ededed;--border-strong:#919191;--focus:#b80000;--error:#b80000;--warning-surface:#fff8e8;--warning-border:#dfc889;--shadow-dialog:#19191929;--shadow-panel:#19191914;--shadow-menu:#19191920;--backdrop:#19191980;color:var(--text);background:var(--surface-muted);font-synthesis:none;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-size:14px;font-weight:400;line-height:1.45}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,.button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:7px 11px;text-decoration:none;display:inline-flex}button:hover,.button:hover{background:var(--surface-muted)}button:disabled{cursor:default;opacity:.5}a{color:var(--brand-action)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.primary{background:var(--brand-action);color:var(--surface);border-color:var(--brand-action);font-weight:600}.primary:hover{background:var(--brand-action-hover)}input,select,textarea{border:1px solid var(--border);background:var(--surface);border-radius:5px;min-width:0;padding:7px 9px}input[type=checkbox],input[type=radio]{accent-color:var(--brand-action)}textarea{resize:vertical}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.6px;margin:3px 0 0;font-size:26px;font-weight:650}h1>span{color:var(--text-muted);background:var(--surface-muted);vertical-align:middle;border-radius:5px;margin-left:8px;padding:2px 7px;font-size:14px;font-weight:500}h2{letter-spacing:-.35px;font-size:21px}h3{text-transform:uppercase;letter-spacing:.7px;color:var(--text-muted);margin:24px 0 12px;font-size:13px}.eyebrow,.nav-label{text-transform:uppercase;letter-spacing:1.2px;color:var(--text-muted);font-size:11px;font-weight:600}.shell{height:100dvh;display:flex;position:relative;overflow:hidden}.sidebar{background:var(--anthracite);border-right:1px solid var(--border);border-top:3px solid var(--brand-red);width:184px;color:var(--surface);flex-direction:column;flex-shrink:0;padding:26px 14px;display:flex}.brand{flex-direction:column;align-items:flex-start;gap:8px;min-width:0;margin:0 0 32px;display:flex}.brand img{background:var(--surface);border-radius:4px;width:100%;height:auto;display:block}.brand span{letter-spacing:1.8px;color:var(--text-muted);font-size:10px;font-weight:650}.sidebar .brand span{color:#bdbdbd;padding-left:10px}.sidebar .nav-label{color:#bdbdbd}.nav-label{margin-bottom:10px;padding:0 10px}.sidebar>button,.sidebar>.button{color:#e3e3e3;background:0 0;border:0;border-left:3px solid #0000;justify-content:flex-start;gap:10px;min-height:38px;font-weight:600}.sidebar :focus-visible,.mobile-header :focus-visible{outline-color:var(--brand-red)}.sidebar>button:hover,.sidebar>.button:hover{color:var(--surface);background:#303030}.sidebar>button[aria-current]{border-left-color:var(--brand-red);color:var(--surface);background:#353535}.settings-tabs>button[aria-current]{background:var(--brand-soft);color:var(--brand-action)}.sidebar-bottom{overflow-wrap:anywhere;border-top:1px solid #414141;align-items:center;gap:9px;margin-top:auto;padding:16px 3px 0;font-size:12px;display:flex}.sidebar-bottom small{color:#bdbdbd;font-size:10px;display:block}.avatar{color:var(--surface);background:#353535;border:1px solid #626262;border-radius:50%;flex-shrink:0;place-items:center;width:30px;height:30px;display:grid}.companies-main{background:var(--surface);flex-direction:column;flex:1;min-width:0;display:flex}.page-header{justify-content:space-between;align-items:center;gap:16px;padding:26px 28px 23px;display:flex}.toolbar{flex-wrap:wrap;align-items:center;gap:8px;padding:0 28px 18px;display:flex}.search{flex:1;min-width:180px;max-width:360px;display:flex;position:relative}.search input{background:var(--surface-subtle);width:100%;padding-right:30px}.search kbd{color:var(--text-muted);position:absolute;top:7px;right:10px}.grid-scroll{flex:1;min-height:0;overflow:auto}table{border-collapse:separate;border-spacing:0;table-layout:fixed;width:100%}th{background:var(--surface-muted);z-index:1;text-align:left;color:var(--text-muted);border-top:1px solid var(--border);border-bottom:1px solid var(--border);height:36px;padding:4px 16px;font-size:12px;font-weight:500;position:sticky;top:0}th button{color:inherit;background:0 0;border:0;padding:3px 0;font-size:12px}td{border-bottom:1px solid var(--border-soft);text-overflow:ellipsis;white-space:nowrap;height:36px;padding:3px 16px;overflow:hidden}tr[aria-selected=true]{background:var(--brand-soft)}tr[aria-selected=true] td:first-child{box-shadow:inset 3px 0 var(--brand-red)}tbody tr:not([aria-selected=true]):hover{background:var(--surface-hover)}.column-name{width:27%}.column-statusCodes{width:20%}.column-email{width:24%}.column-phone{width:16%}.column-lastActivityAt{width:13%}.company-name{align-items:center;gap:7px;display:flex}.company-name>button{text-overflow:ellipsis;white-space:nowrap;background:0 0;border:0;justify-content:start;padding:2px 0;font-weight:550;display:block;overflow:hidden}.company-name>small{display:none}.cell-edit{text-overflow:ellipsis;text-align:left;background:0 0;border:0;max-width:100%;padding:1px 0;display:block;overflow:hidden}.cell-edit:disabled{opacity:1}.chips{gap:4px;display:flex;overflow:hidden}.chip{background:var(--surface-muted);color:var(--text-muted);border:1px solid var(--border);border-radius:4px;padding:0 6px;font-size:11px;line-height:20px}.stale{color:var(--text-muted);font-size:10px}.pagination{border-top:1px solid var(--border);color:var(--text-muted);align-items:center;gap:10px;padding:12px 24px;font-size:12px;display:flex}.pagination>span:first-child{margin-right:auto}.pagination select{padding:4px}.inspector{background:var(--surface);border-left:1px solid var(--border);flex-direction:column;flex-shrink:0;width:460px;min-width:360px;max-width:640px;display:flex;overflow:hidden}.inspector-header{border-bottom:1px solid var(--border);justify-content:space-between;gap:8px;padding:14px 18px;display:flex}.inspector-header button{font-size:12px}.record-heading{padding:24px 24px 12px}.record-heading h2{overflow-wrap:anywhere;margin:8px 0}.save-state{color:var(--text-muted);margin:0;font-size:12px}.tabs{border-bottom:1px solid var(--border);gap:24px;padding:0 24px;display:flex}.tabs button{color:var(--text-muted);border:0;border-bottom:2px solid #0000;border-radius:0;padding:10px 0}.tabs button[aria-current]{color:var(--brand-action);border-bottom-color:var(--brand-red);font-weight:600}.detail-body{flex:1;min-height:0;padding:22px 24px;overflow:auto}.field{margin-bottom:12px}.field label>span{color:var(--text-muted);margin-bottom:4px;font-size:12px;display:block}.field input,.field textarea{border-color:var(--border);background:var(--surface-subtle);width:100%}.field input:hover,.field textarea:hover{border-color:var(--border-strong)}.field input[readonly],.field textarea[readonly]{background:var(--surface-muted);color:var(--text-muted)}.field.invalid input{border-color:var(--error)}.field small,.error{color:var(--error)}.field button{margin-top:4px;font-size:12px}td .field{margin:0}td .field label>span{display:none}td .field input{height:28px;padding:2px 5px}td .field small{white-space:normal;font-size:10px}.status-options{flex-wrap:wrap;gap:8px 12px;display:flex}.status-options label{align-items:center;gap:4px;font-size:12px;display:flex}fieldset{border:0;margin:0;padding:0}legend{color:var(--text-muted);margin-bottom:8px;font-size:12px}.record-meta{color:var(--text-muted);padding:18px 0;font-size:11px}.notice,.pending-tray{background:var(--warning-surface);border-top:1px solid var(--warning-border);padding:8px 24px;font-size:12px}.pending-tray button,.notice button{margin-left:5px;font-size:12px}.empty{color:var(--text-muted);text-align:center;padding:60px 30px}.empty h2{color:var(--text);font-size:19px}.recovery{background:var(--warning-surface);border:1px solid var(--warning-border);border-radius:6px;max-height:40vh;margin:12px 0;padding:12px;font-size:12px;overflow:auto}.recovery p{margin:6px 0}.recovery button{margin:5px 4px 0 0;font-size:11px}.conflict-field{border-top:1px solid var(--warning-border);align-items:start;gap:6px;margin-top:8px;padding-top:8px;display:flex}.conflict-field small{overflow-wrap:anywhere;display:block}.history-event{border-bottom:1px solid var(--border)}.history-toggle{text-align:left;overflow-wrap:anywhere;border:0;flex-direction:column;align-items:start;gap:3px;width:100%;padding:12px 0;font-size:12px;display:flex}.history-toggle span,.history-toggle time,.history-toggle small{color:var(--text-muted)}.diff{gap:12px;font-size:11px;display:grid}.diff pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-muted);border-radius:4px;padding:10px}dialog{border:1px solid var(--border);width:min(440px,100vw - 32px);box-shadow:0 20px 90px var(--shadow-dialog);border-radius:12px;padding:24px}dialog::backdrop{background:var(--backdrop)}dialog form>label{margin:18px 0;font-size:12px;display:block}dialog input,dialog select{width:100%;margin-top:6px;display:block}.dialog-heading{justify-content:space-between;align-items:center;display:flex}.dialog-heading h2{margin:0}dialog footer{justify-content:flex-end;gap:8px;margin-top:24px;display:flex}.session-banner{background:var(--warning-surface);padding:12px 24px}.session-banner a,.session-banner button{margin-left:12px}.session-banner+.shell{height:calc(100dvh - 72px)}.sign-in{background:var(--surface);border:1px solid var(--border);border-top:4px solid var(--brand-red);border-radius:8px;max-width:480px;margin:12vh auto;padding:32px}.sign-in .brand{width:224px;max-width:100%;margin-bottom:32px}.sign-in p{color:var(--text-muted)}.sign-in a,.sign-in button{margin:14px 8px 0 0}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.mobile-header{display:none}.settings-brandbar{background:var(--anthracite);border-top:3px solid var(--brand-red);flex-shrink:0;align-items:center;height:54px;padding:5px 18px;display:flex}.settings-shell .sidebar+.settings-main .settings-brandbar{display:none}.mobile-header .brand,.settings-brandbar .brand{flex-direction:row;align-items:center;gap:12px;margin:0}.mobile-header .brand img,.settings-brandbar .brand img{width:110px}.mobile-header .brand span,.settings-brandbar .brand span{color:#e3e3e3}.show-full .companies-main{display:none}.show-full .inspector{flex:1;width:auto;max-width:none}.show-full .detail-body{width:100%;max-width:900px;margin:auto}.show-full .record-heading{padding-left:32px}@media (width>=2200px){.sidebar{width:200px}.inspector{resize:horizontal;direction:rtl;width:440px}.inspector>*{direction:ltr}}@media (width>=1280px) and (width<=2199px){.inspector:not(.full-detail){height:100%;box-shadow:-10px 0 28px var(--shadow-panel);width:460px;position:absolute;top:0;right:0}.has-detail .companies-main{padding-right:0}.has-detail .grid-scroll,.has-detail .page-header,.has-detail .toolbar,.has-detail .pagination{margin-right:460px}.has-detail .column-email{display:none}.has-detail .column-name{width:35%}.has-detail .column-statusCodes{width:25%}.has-detail .column-phone{width:23%}.has-detail .column-lastActivityAt{width:17%}}@media (width<=1279px){.has-detail .companies-main{display:none}.inspector{flex:1;width:auto;max-width:none}.expand-detail{display:none}.detail-body{width:100%;max-width:800px;margin:auto}}@media (width<=767px){.shell{flex-direction:column}.mobile-header{border-top:3px solid var(--brand-red);height:54px;color:var(--surface);border-bottom:1px solid var(--border);background:var(--anthracite);flex-shrink:0;align-items:center;gap:15px;padding:5px 15px;display:flex}.mobile-header button{background:0 0;border:0}.sidebar>button,.sidebar>.button{min-height:44px}.sidebar{display:none}.sidebar.open{z-index:5;box-shadow:10px 0 30px var(--shadow-menu);display:flex;position:absolute;top:54px;bottom:0;left:0}.companies-main{min-height:0}.page-header{gap:8px;padding:18px 16px}.page-header h1{font-size:23px}.page-header .eyebrow{display:none}.toolbar{gap:8px;padding:0 16px 16px}.search{min-width:180px;max-width:none}.toolbar select{max-width:155px}.toolbar kbd{display:none}button,input,select{min-height:44px}td{white-space:normal;height:66px;padding:8px 16px}.column-email,.column-phone,.column-lastActivityAt{display:none}.column-name{width:62%}.column-statusCodes{width:38%}.company-name{display:block}.company-name>button{max-width:100%;min-height:24px}.company-name>small{color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:11px;display:block;overflow:hidden}.chips{flex-wrap:wrap}.pagination{flex-wrap:wrap;gap:6px;padding:8px 12px}.pagination label{display:none}.inspector{border-left:0;min-width:0}.inspector-header{padding:8px 16px}.record-heading{padding:20px 18px 10px}.detail-body{padding:18px}.tabs{padding:0 18px}.recovery{max-height:32vh}.pending-tray,.notice{padding:8px 12px}.session-banner{padding:10px;font-size:12px}.session-banner+.shell{height:calc(100dvh - 140px)}.sign-in{margin:8vh 16px;padding:24px}.show-full .record-heading{padding-left:18px}}.settings-main{background:var(--surface);flex-direction:column;flex:1;min-width:0;display:flex}.settings-workspace{border-top:1px solid var(--border);flex:1;grid-template-columns:minmax(260px,340px) minmax(360px,760px);min-height:0;display:grid}.settings-label{margin-top:28px}.settings-tabs{display:none}.admin-list{border-right:1px solid var(--border);overflow:auto}.admin-list .toolbar{padding:18px}.admin-list .toolbar input{flex:1;width:180px}.admin-row{text-align:left;border:0;border-bottom:1px solid var(--border);overflow-wrap:anywhere;border-radius:0;flex-direction:column;align-items:flex-start;width:100%;padding:14px 20px;display:flex}.admin-row[aria-current]{background:var(--brand-soft)}.admin-row span,.admin-row small{color:var(--text-muted);font-size:12px}.admin-editor{padding:24px 32px;overflow:auto}.admin-editor form>fieldset>label:not(.check-label),.identity-settings label:not(.check-label){color:var(--text-muted);margin:14px 0;font-size:12px;display:block}.admin-editor label>input:not([type=checkbox]){width:100%;margin-top:6px;display:block}.admin-editor footer{gap:8px;margin:22px 0;display:flex}.check-label{align-items:center;gap:8px;min-height:36px;font-size:13px;display:flex}.check-label small{color:var(--text-muted)}.hint{color:var(--text-muted);font-size:12px}.admin-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 16px;margin:8px 0 20px;display:grid}.admin-choices.permissions{grid-template-columns:1fr}.identity-settings{border-top:1px solid var(--border);margin-top:24px}.identity{overflow-wrap:anywhere;flex-direction:column;margin:14px 0;font-size:12px;display:flex}.identity span{color:var(--text-muted)}.identity-settings summary{cursor:pointer;padding:10px 0}.copy-draft{margin:16px 0}@media (width<=767px){.settings-shell .sidebar+.settings-main .settings-brandbar{display:flex}.settings-tabs{flex-wrap:wrap;gap:8px;padding:0 16px 12px;display:flex}.settings-main{overflow:auto}.settings-workspace{flex-direction:column;min-height:auto;display:flex}.admin-list{border-right:0;border-bottom:1px solid var(--border);flex-shrink:0;min-height:180px;max-height:260px}.admin-editor{padding:20px 18px;overflow:visible}.admin-choices{grid-template-columns:1fr}.check-label{min-height:44px}.settings-main>.page-header h1{font-size:22px}.admin-editor .recovery{max-height:40vh}.permissions span{overflow-wrap:anywhere;min-width:0}}.contact-children{margin:24px 0}.child-row{border:1px solid var(--border);border-radius:6px;margin:10px 0;padding:12px}.child-row label{color:var(--text-muted);margin:8px 0;font-size:12px;display:block}.child-row input,.child-row select{width:100%;margin-top:4px;display:block}.child-numbers{grid-template-columns:1fr 1fr;gap:10px;display:grid}.child-numbers>label{min-width:0}.child-actions{flex-wrap:wrap;gap:8px;display:flex}.admin-editor label>select{margin-top:6px;display:block}.chip[data-color=slate]{background:var(--surface-muted);color:var(--text-muted)}.chip[data-color=blue]{color:#28537f;background:#e3eef9}.chip[data-color=green]{color:#315d42;background:#e1eee5}.chip[data-color=amber]{color:#745319;background:#fff0d6}.chip[data-color=red]{color:#813c3c;background:#fae4e4}.chip[data-color=purple]{color:#654584;background:#eee5f8}.relationships{border-top:1px solid var(--border);margin:16px 0;padding-top:12px}.relationships fieldset{min-width:0}.relationship-row{border:1px solid var(--border);border-radius:6px;margin:12px 0;padding:12px}.relationship-row legend{font-weight:600}.relationship-row label,.relationship-search label{flex-direction:column;gap:5px;margin:8px 0;display:flex}.relationship-row .check-label{flex-direction:row;align-items:center}.relationship-row input:not([type=checkbox]),.relationship-row select,.relationship-row textarea,.relationship-search input{width:100%;min-width:0}.relationship-choice{text-align:left;white-space:normal;width:100%;margin:6px 0;display:block}.relationship-search{flex-wrap:wrap;align-items:end;gap:8px;display:flex}.relationship-search label{flex:180px}.related-contact{border-top:1px solid var(--border);margin-top:16px;padding-top:12px}.catalogue-kind,.catalogue-price>label,.price-inputs>label{flex-direction:column;gap:6px;margin-bottom:12px;display:flex}.price-inputs{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;display:grid}.price-inputs input,.price-inputs select,.catalogue-kind select{width:100%;min-width:0}.catalogue-price>button{margin-bottom:6px;margin-right:6px}.opportunity-stage label,.opportunity-links label{flex-direction:column;gap:6px;margin:12px 0;display:flex}.opportunity-stage input,.opportunity-stage select,.opportunity-stage textarea,.opportunity-links input,.opportunity-links select{width:100%;min-width:0}.opportunity-links details{margin:16px 0}.opportunity-links summary{cursor:pointer}.opportunity-links button{margin:4px 6px 4px 0}.column-title{width:29%}.column-primaryCompanyName{width:22%}.column-responsibleUserName{width:20%}.column-expectedAmount{width:18%}@media (width<=700px){.column-primaryCompanyName,.column-responsibleUserName{display:none}.column-title{width:65%}.column-expectedAmount{width:35%}}.opportunity-lines{min-width:0;margin-top:1rem}.opportunity-line{border:1px solid var(--border);min-width:0;margin:.75rem 0;padding:.75rem}.opportunity-line label,.line-picker label{gap:.25rem;min-width:0;display:grid}.opportunity-line textarea{width:100%;min-height:4rem}.line-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin:.5rem 0;display:grid}.line-values input,.line-picker input,.line-picker select{width:100%;min-width:0}.line-pages{flex-wrap:wrap;gap:.5rem;margin:.5rem 0;display:flex}@media (width>=1800px){.full-detail .line-values{grid-template-columns:repeat(5,minmax(0,1fr))}}.activity-fields{gap:12px;min-width:0;margin:12px 0;display:grid}.activity-fields>label{gap:5px;display:grid}.activity-fields input,.activity-fields select,.activity-fields textarea{box-sizing:border-box;width:100%;min-width:0}.activity-fields textarea{resize:vertical;min-height:100px}.activity-fields ul{overflow-wrap:anywhere;padding-left:18px}.activity-actions{flex-wrap:wrap;gap:8px;display:flex}.activity-list{padding:0;list-style:none}.activity-list li{border-bottom:1px solid var(--border);gap:5px;padding:10px 0;display:grid}.activity-list li>button{text-align:left;overflow-wrap:anywhere}.activity-list time,.activity-list span{font-size:12px}.activity-editor header{justify-content:space-between;gap:12px;display:flex}.activity-editor h3{overflow-wrap:anywhere}.attachment-source{display:block}.inactivity-notice{color:var(--text-muted);margin:.5rem 0 0;font-size:.85rem}.history-values{margin:.5rem 0;font-size:.85rem}.history-values>div{border-bottom:1px solid var(--border);padding:.5rem 0}.history-values dt{color:var(--text-muted)}.history-values dd{white-space:pre-wrap;overflow-wrap:anywhere;margin:.2rem 0 0}.history-values dl{margin:0}.history-values ul{margin:0;padding-left:1rem}.mobile-sync-content{box-sizing:border-box;width:100%;max-width:850px;padding:24px;overflow:auto}.sync-card{border:1px solid var(--border);background:var(--surface);border-radius:10px;margin-bottom:20px;padding:22px}.sync-card h2{margin-top:0}.sync-card label{gap:7px;margin:18px 0;display:grid}.sync-card input{box-sizing:border-box;width:100%;min-width:0}.sync-card dd{overflow-wrap:anywhere;margin:6px 0 18px}.sync-actions{flex-wrap:wrap;gap:10px;display:flex}@media (width<=600px){.mobile-sync-content{padding:14px}.sync-card{padding:16px}}.history-conflict{grid-column:1/-1}.history-conflict>div{overflow-wrap:anywhere;margin-block:1rem}.integration-page{max-width:1100px;margin:auto;padding:24px}.integration-panel{border:1px solid var(--border);border-radius:8px;margin-top:24px;padding:20px}.integration-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;display:grid}.integration-metrics dt{font-size:.85rem}.integration-metrics dd{margin:6px 0 0;font-weight:600}.integration-row{border-top:1px solid var(--border);overflow-wrap:anywhere;justify-content:space-between;align-items:center;gap:18px;padding:16px 0;display:flex}.integration-row p{margin:6px 0}.integration-row button{flex-shrink:0}.integration-confirm{align-items:center;gap:8px;margin:20px 0 12px;display:flex}.integration-confirm input{width:auto}@media (width<=600px){.integration-page{padding:16px}.integration-metrics{grid-template-columns:1fr}.integration-row{flex-direction:column;align-items:flex-start}}.global-search-button{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.global-search-button kbd{opacity:.65;font-size:.7rem}dialog.global-search{width:min(640px,100vw - 2rem);max-height:calc(100dvh - 2rem);overflow:auto}.search-input-label{gap:.5rem;display:grid}.search-archive{align-items:center;gap:.5rem;margin-top:1rem;display:flex}.search-archive input{width:auto}.global-search h3{margin:1rem 0 .4rem;font-size:.85rem}.global-result{cursor:pointer;overflow-wrap:anywhere;border-radius:.4rem;padding:.65rem}.global-result[aria-selected=true]{background:var(--brand-soft);outline:2px solid var(--focus);outline-offset:-2px}.global-result small{color:var(--text-muted);display:block}.global-result .badge{margin-left:.5rem}.search-empty{color:var(--text-muted);font-size:.85rem}.search-view-all{flex-wrap:wrap;gap:.5rem;margin:1rem 0;display:flex}@media (width<=900px){.mobile-header .global-search-button kbd{display:none}}.sidebar>.global-search-button{display:none}.show-full .sidebar>.global-search-button{display:flex}.page-header>.global-search-button{order:1;margin-left:auto}.page-header>.primary{order:2}@media (width<=767px){.companies-main .page-header>.global-search-button{display:none}.mobile-header{gap:8px;padding-inline:8px}.mobile-header .brand{gap:5px}.mobile-header .brand img{width:80px}.mobile-header>.button{padding-inline:6px;font-size:12px}.mobile-header .brand span{display:none}}.sidebar{overflow-y:auto}.office-crm-navigation{flex-shrink:0;margin:4px 0 16px}.office-crm-navigation summary{cursor:pointer;min-height:44px;padding:11px;font-weight:600}.office-crm-navigation>button{color:#e3e3e3;background:0 0;border:0;border-left:3px solid #0000;justify-content:flex-start;width:100%;min-height:44px;font-weight:600;display:flex}.office-crm-navigation>button:hover{background:#303030}.office-crm-navigation>button[aria-current]{border-left-color:var(--brand-red);color:var(--surface);background:#353535}.office-crm-search{flex-wrap:wrap;gap:3px;margin-bottom:16px;display:flex}.office-crm-search>span{color:inherit;font-size:11px}.office-crm-search .global-search-button{max-width:100%;min-height:44px}.office-mode{min-width:0;margin-left:auto}.office-mode [role=group]{flex-wrap:wrap;gap:4px;display:flex}.office-mode button{min-height:44px}.office-mode button[aria-pressed=true]{border-color:var(--brand-action);color:var(--brand-action);background:var(--brand-soft)}.office-mode small{display:block}.office-preference-recovery{max-width:420px;color:var(--error);margin-top:10px}.office-preference-recovery p{margin-bottom:8px}.office-preference-recovery button{margin:3px}.office-main{min-width:0;overflow:auto}.office-main .page-header{flex-wrap:wrap;align-items:flex-start}.office-main .page-header p{margin-top:8px;margin-bottom:0}.office-section{border:1px solid var(--border);background:var(--surface);border-radius:8px;max-width:1100px;margin:0 28px 24px;padding:24px}.office-section h2{margin-bottom:12px;font-size:18px}.office-section h3{font-size:14px}.office-shortcuts,.office-workspaces{flex-wrap:wrap;gap:12px;margin:0;padding:0;list-style:none;display:flex}.office-shortcuts a,.office-workspaces a{align-items:center;min-height:44px;display:inline-flex}.office-workspaces li{flex-direction:column;min-width:120px;display:flex}.office-workspaces span{color:var(--text-muted);font-size:12px}.office-start-label{flex-direction:column;gap:8px;max-width:360px;margin-bottom:20px;display:flex}.office-start-label select{min-height:44px}.office-section fieldset{border:1px solid var(--border);flex-wrap:wrap;gap:4px 24px;padding:12px;display:flex}.office-pin{align-items:center;gap:8px;min-height:44px;display:flex}.office-pin input{width:20px;height:20px}.office-pin-order{max-width:420px;padding-left:24px}.office-pin-order li{padding:4px}.office-pin-order li>span{min-width:120px;display:inline-block}.office-pin-order button,.office-section summary{min-height:44px}.office-section details{margin-top:12px}.office-section summary{cursor:pointer;align-items:center;display:flex}.office-section>.button{min-height:44px;margin-right:8px}@media (width<=767px){.office-section{margin:0 16px 16px;padding:16px}.office-main .page-header{padding-bottom:16px}.office-mode{margin-left:0}.companies-main .page-header{flex-wrap:wrap}.companies-main .page-header .office-mode{flex-basis:100%;order:4}.office-shell .mobile-header .office-crm-search>span{display:none}.office-shell .mobile-header .office-crm-search{margin-bottom:0}.office-shell .sidebar.open{width:min(290px,90vw)}}.sidebar .office-crm-search .global-search-button{color:#e3e3e3;background:0 0;border-color:#414141;justify-content:flex-start;width:100%;min-height:44px}.sidebar .office-crm-search .global-search-button:hover{background:#303030}
