/* Private CRM. All rules scoped to CRM content. */
.crm-workspace{max-width:1200px;min-width:0}.crm-header,.crm-list-header{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:10px 0 20px}.crm-header p{color:#56616b;margin-top:10px}.crm-entities{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.crm-entities a{display:inline-flex;min-height:44px;align-items:center;padding:8px 14px;border:1px solid #cad3df;border-radius:7px;background:white;text-decoration:none;color:#17212b}.crm-entities a[aria-current=page]{background:#e9efff;border-color:#2454ce;color:#2454ce;font-weight:bold}.crm-list-header h2{font-size:22px}.crm-filter-form{background:white;border:1px solid #dfe3e8;border-radius:9px;padding:16px;margin:16px 0}.crm-filter-form>label{display:block;font-weight:600;font-size:14px;margin-bottom:6px}.crm-filter-form input,.crm-filter-form select{background:white;border:1px solid #aab4c3;border-radius:6px;min-height:44px;font:inherit;padding:8px;max-width:100%;color:#17212b}.crm-filter-form>input{width:100%}.crm-filter-grid{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin-top:14px}.crm-filter-grid label{display:grid;font-size:13px;gap:6px}.crm-filter-grid>label{display:block}.crm-filter-grid a,.crm-filter-grid button{min-height:44px;display:inline-flex;align-items:center}.crm-count{font-size:14px;margin:18px 0}.crm-table-wrap{overflow:auto;background:white;border:1px solid #dfe3e8;border-radius:9px}.crm-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.crm-table caption{padding:14px;text-align:left;color:#56616b;font-size:13px}.crm-table th,.crm-table td{vertical-align:top;padding:16px;border-top:1px solid #dfe3e8;font-weight:400}.crm-table thead th{font-weight:bold;background:#f4f6fa}.crm-table tbody th>a{font-size:17px;line-height:24px;font-weight:bold;display:inline-flex;min-height:44px;align-items:center}.crm-table tbody th{min-width:220px}.crm-list-context{font-size:12px;line-height:20px;font-weight:400;color:#56616b}.crm-badges{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.crm-mobile-list{display:none}.crm-card,.crm-detail,.crm-confirm{background:white;border:1px solid #dfe3e8;border-radius:10px;padding:24px;margin:20px 0;min-width:0;overflow-wrap:anywhere}.crm-detail{max-width:900px}.crm-card h2{font-size:19px;line-height:27px;margin:10px 0}.crm-card h2>a{display:inline-flex;min-height:44px;align-items:center}.crm-card p,.crm-detail p,.crm-confirm p{font-size:15px;line-height:24px;margin:12px 0}.crm-detail h1,.crm-confirm h1{font-size:30px;line-height:38px;margin:20px 0}.crm-detail h2,.crm-confirm h2{font-size:21px;margin-top:30px}.crm-record-meta{color:#56616b;font-size:12px!important}.crm-detail-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.crm-detail-actions a{display:inline-flex;min-height:44px;align-items:center;padding:8px 14px;border:1px solid #aab4c3;border-radius:6px;font-weight:bold}.crm-links{padding-left:24px}.crm-links li{margin:8px 0;font-size:15px;line-height:24px}.crm-links a{display:inline-flex;min-height:44px;align-items:center}.crm-detail summary{min-height:44px;cursor:pointer;color:#2454ce;padding-top:12px}.crm-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%}.crm-form{max-width:850px;background:white;border:1px solid #dfe3e8;border-radius:10px;padding:24px;margin:20px 0}.crm-form fieldset{border:1px solid #dfe3e8;border-radius:8px;padding:20px;margin:20px 0}.crm-form legend{font-size:18px;font-weight:bold;padding:0 8px}.crm-form label{display:block;font-size:14px;font-weight:600;margin-top:18px;margin-bottom:7px}.crm-form :is(input:not([type=checkbox]),textarea,select){display:block;width:100%;min-height:44px;border:1px solid #aab4c3;border-radius:6px;padding:10px;font:inherit;background:white;color:#17212b;min-width:0;max-width:100%}.crm-form textarea{min-height:100px;resize:vertical}.crm-form .crm-check{display:flex;gap:10px;align-items:center;min-height:44px;margin:6px 0;line-height:23px;font-weight:400}.crm-check input[type=checkbox]{width:20px;height:20px;flex-shrink:0}.crm-source-form summary{min-height:44px;cursor:pointer;color:#2454ce;padding-top:12px}.crm-draft-status{font-size:13px;color:#56616b}.crm-form-actions{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:24px}.crm-form-actions a{display:inline-flex;min-height:44px;align-items:center}.crm-trash-action{border:1px solid #9a6450;border-radius:7px;color:#86482c;padding:10px 16px;min-height:44px}.crm-picker-options{max-height:420px;overflow-y:auto;padding:4px;border:1px solid #dfe3e8;border-radius:6px;margin-top:10px}.crm-picker-option{border-bottom:1px solid #dfe3e8;padding:8px}.crm-picker-option:last-child{border:0}.crm-picker-option[hidden]{display:none}.crm-picker-option>label:not(.crm-check){font-size:12px;font-weight:400;margin-top:4px}.crm-picker-option>input:not([type=checkbox]){min-height:44px}.crm-form-errors{background:#fff0ed;border:1px solid #c68c7e;color:#922c27;padding:16px;border-radius:6px}.crm-form [aria-invalid=true]{border:2px solid #922c27}.crm-form [disabled]{opacity:.6}.crm-workspace :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #2454ce;outline-offset:3px}.crm-history{padding-left:22px}.crm-history li{margin:20px 0}.crm-confirm .crm-form{border:0;padding:0}.crm-workspace .form-hint{font-size:12px;line-height:20px;color:#56616b}.crm-filter-grid>select{min-width:140px;max-width:220px}.crm-form input[type=date],.crm-form input[type=datetime-local]{min-width:0}
@media(max-width:899px){.crm-header{display:block}.crm-header button{min-height:44px;margin-top:10px;padding-left:0}.crm-entities{gap:6px}.crm-entities a{padding:8px 10px;font-size:13px}.crm-list-header{gap:12px;align-items:start}.crm-list-header h2{font-size:21px}.crm-list-header .primary-action{padding:10px 12px;font-size:13px}.crm-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.crm-filter-grid>*{min-width:0;max-width:none!important}.crm-filter-grid select{width:100%}.crm-filter-grid a,.crm-filter-grid button{justify-content:center}.crm-table-wrap{display:none}.crm-mobile-list{display:block}.crm-card,.crm-detail,.crm-confirm{padding:16px}.crm-detail h1,.crm-confirm h1{font-size:25px;line-height:32px}.crm-form{padding:16px}.crm-form fieldset{padding:14px}.crm-form legend{font-size:16px}.crm-form .crm-check{font-size:14px}.crm-picker-option{padding:6px}.crm-detail-actions{gap:8px}.crm-card p,.crm-detail p,.crm-confirm p{font-size:15px;line-height:24px}.crm-detail h2{font-size:20px}.crm-workspace h1{overflow-wrap:anywhere}}
/* CRM controller recovery and dirty navigation */
.crm-client-panel{background:white;border:1px solid #cbd3df;border-radius:10px;padding:20px;margin:20px 0;overflow-wrap:anywhere}.crm-client-panel h2{font-size:20px}.crm-client-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:360px;overflow:auto;background:#f3f5fa;padding:12px}.crm-client-panel details>summary{min-height:44px;cursor:pointer;color:#2454ce}.crm-client-panel label{display:block;margin:12px 0}.crm-client-panel textarea{display:block;width:100%;min-height:80px;font:inherit}.crm-client-panel button{min-height:44px;margin-right:12px;color:#2454ce}.crm-unconfirmed,.crm-conflict,.crm-duplicate{border-color:#ad792b;background:#fff9ec}.crm-dirty-dialog{max-width:560px;width:calc(100% - 32px);border:1px solid #aab4c3;border-radius:12px;padding:24px;color:#17212b}.crm-dirty-dialog::backdrop{background:#17212b88}.crm-dirty-dialog h2{font-size:22px}.crm-dirty-dialog button{display:block;min-height:44px;margin:12px 0;color:#2454ce}.crm-draft-note{font-size:13px;color:#78540b;background:#fff5dd;padding:12px}.crm-form-errors{background:#fff0ed;color:#922c27;padding:12px;scroll-margin-bottom:calc(var(--nav-clearance) + 20px)}
@media(max-width:899px){.bottom-navigation[data-count="7"]{grid-template-columns:repeat(4,minmax(44px,1fr))}.bottom-navigation[data-count="7"][data-columns="3"]{grid-template-columns:repeat(3,minmax(44px,1fr))}.crm-client-panel{padding:16px}}
.crm-field-difference{border-top:1px solid #d8dad9;padding-top:12px;margin:16px 0}.crm-field-difference h3{font-size:17px}.crm-field-difference dl{display:grid;grid-template-columns:1fr 1fr;gap:20px}.crm-field-difference dt{font-weight:600;font-size:13px;color:#56616b}.crm-field-difference dd{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:24px}@media(max-width:599px){.crm-field-difference dl{grid-template-columns:1fr;gap:8px}}
