.crm{min-width:0}.crm .card{min-width:0;max-width:none}.crm-nav{border-bottom:1px solid var(--border);max-width:100%;margin:0 0 16px;overflow-x:auto}.crm-nav ul{white-space:nowrap;gap:8px;padding:0 0 6px;list-style:none;display:flex}.crm-nav li{flex:none}.crm-nav a{color:var(--text);border-radius:8px;min-height:44px;padding:8px 12px;text-decoration:none;display:inline-block}.crm-nav a:hover{background:var(--surface-2)}@media (min-width:768px){.crm-nav{overflow-x:visible}.crm-nav ul{white-space:normal;flex-wrap:wrap}}.crm-nav a[aria-current=page]{background:var(--btn-primary);color:var(--on-primary)}.crm h1.page-title{margin-bottom:4px}.crm-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;display:flex}.crm-head>*{min-width:0}.crm-flash{max-width:none;margin-bottom:12px}.crm-ok{background:var(--surface-2);color:var(--text);border-color:var(--primary)}.crm-table-wrap{max-width:100%;overflow-x:auto}.crm-table{border-collapse:collapse;width:100%;font-size:.9375rem}.crm-table th,.crm-table td{border-bottom:1px solid var(--border);text-align:left;vertical-align:top;padding:8px 10px}.crm-table th{white-space:nowrap;font-weight:600}.crm-table td.num,.crm-table th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.crm-table .sub{color:var(--text-muted);overflow-wrap:anywhere;font-size:.8125rem;display:block}.crm-table caption{text-align:left;color:var(--text-muted);padding-bottom:6px}.crm-pills{flex-wrap:wrap;gap:8px;margin-bottom:12px;padding:0;list-style:none;display:flex}.crm-pills a{border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:9999px;align-items:center;gap:6px;min-height:44px;padding:6px 12px;text-decoration:none;display:inline-flex}.crm-pills a[aria-current=true],.crm-pills a[aria-current=page]{background:var(--btn-primary);border-color:var(--btn-primary);color:var(--on-primary)}.crm-pills b{font-variant-numeric:tabular-nums}.crm-filter{flex-wrap:wrap;align-items:flex-end;gap:8px;margin-bottom:12px;display:flex}.crm-filter .f-field{flex:10rem;margin-bottom:0}.crm-badge{border:1px solid var(--border);background:var(--surface-2);white-space:nowrap;border-radius:9999px;padding:1px 8px;font-size:.8125rem;display:inline-block}.crm-s-active{color:#146c2e;border-color:#146c2e}.crm-s-expiring,.crm-s-awaiting_payment,.crm-s-approved,.crm-s-applied{background:var(--warning-bg);color:var(--warning);border-color:var(--warning)}.crm-s-expired,.crm-s-declined,.crm-s-cancelled{background:var(--error-bg);color:var(--error);border-color:var(--error)}:root[data-theme=dark] .crm-s-active{color:#6fdc8c;border-color:#6fdc8c}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .crm-s-active{color:#6fdc8c;border-color:#6fdc8c}}.crm-kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:12px;margin-bottom:16px;display:grid}.crm-kpi{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow-wrap:anywhere;min-width:0;padding:12px 14px}.crm-kpi .l{color:var(--text-muted);font-size:.875rem}.crm-kpi .l a{align-items:center;min-height:44px;display:inline-flex}.crm-kpi .v{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;font-size:clamp(1.25rem,6vw,1.625rem);font-weight:700;line-height:1.2}.crm-task{border-bottom:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.crm-task:last-child{border-bottom:0}.crm-task>div{min-width:0}.crm-undo{background:var(--surface-2);border:1px solid var(--primary);border-radius:10px;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:12px;padding:10px 14px;display:flex}.crm-actions{flex-wrap:wrap;align-items:flex-start;gap:8px;display:flex}.crm-actions form{margin:0}.crm-bulk{gap:8px;margin:12px 0;display:grid}.crm-bulk details{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:8px 12px}.crm-bulk summary{cursor:pointer;align-items:center;min-height:44px;font-weight:600;display:flex}.crm-bulkbar{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:8px 0 12px;padding:8px 12px;display:flex}.crm-bulkbar-count{align-items:center;min-height:44px;margin:0;font-weight:600;display:flex}.crm-bulkbar-actions{flex-wrap:wrap;gap:8px;display:flex}.crm-bulkbar .btn{min-height:44px}.crm-bulkbar .btn:disabled{opacity:.6;cursor:not-allowed}.crm-bulkbar .f-hint{flex-basis:100%;margin:0}.crm-sec{scroll-margin-top:16px}.crm-two{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;display:grid}.crm-two>.card{margin-bottom:0}.crm-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface-2);font:inherit;border-radius:8px;padding:12px}.crm-note{color:var(--text-muted);font-size:.9375rem}.crm-dl{grid-template-columns:minmax(0,max-content) minmax(0,1fr);gap:6px 16px;display:grid}.crm-dl dt{color:var(--text-muted)}.crm-dl dd{overflow-wrap:anywhere}.crm-dl .src{color:var(--text-muted);font-size:.8125rem;display:block}.crm-checks{flex-wrap:wrap;gap:6px 16px;display:flex}.crm-checks .f-check{margin-bottom:0}.crm-app{border-top:1px solid var(--border);padding:16px 0}.crm-app:first-of-type{border-top:0}@media (max-width:600px){.crm .card{padding:14px}.crm-dl{grid-template-columns:minmax(0,1fr)}.crm-dl dt{margin-top:6px}.crm-actions .btn{flex:100%}}.crm .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}.crm-dl .contents{display:contents}.crm-import-scroll{overflow-x:auto}.crm-import-dedup,.crm-import-templates{margin-top:1rem}.crm-import-tpl-row{gap:.5rem;margin-top:.5rem;display:flex}.crm-import-tpl-row .f-input{flex:1}.crm-import-run{margin-top:1.5rem}.crm-import-rollback{border-top:1px solid var(--border);margin-top:1rem;padding-top:1rem}.crm-progress{width:100%}.crm-tasks-list{flex-direction:column;gap:12px;display:flex}.crm-task-item{border:1px solid var(--border);background:var(--bg);border-radius:8px;padding:12px 16px}.crm-task-item.crm-task-overdue{border-left:3px solid var(--error,#d32f2f)}.crm-task-title{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:4px;display:flex}.crm-task-title a.crm-link{font-weight:600}.crm-task-meta{color:var(--text-muted);flex-wrap:wrap;gap:12px;margin-bottom:4px;font-size:.875rem;display:flex}.crm-task-overdue-date{color:var(--error,#d32f2f);font-weight:600}.crm-task-actions{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.crm-tabs{flex-wrap:wrap;gap:4px;margin-bottom:16px;display:flex}.crm-task-new-row{margin-bottom:1rem}.crm-title-badge{margin-left:.75rem}.crm-prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.crm-inline-form{display:inline}.crm-task-actions-top{margin-top:1rem}.help-article{gap:16px;display:grid}.help-article .card{margin-bottom:0}.help-topics{gap:8px;max-width:36rem;padding:0;list-style:none;display:grid}.help-topic-link{border:1px solid var(--border);border-radius:var(--radius);color:var(--text);background:var(--surface);min-height:44px;padding:12px 16px;text-decoration:none;display:block}.help-topic-link:hover{background:var(--surface-2)}.help-list{margin:8px 0 0;padding-left:1.25rem}.help-list li{margin-bottom:6px}.help-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.875rem}.crm-icon-h1{vertical-align:-3px;color:var(--text-muted);flex:none;margin-right:10px;display:inline-block}.crm-icon-inline{vertical-align:-3px;color:var(--text-muted);flex:none;margin-right:8px;display:inline-block}.crm-meta-icon{vertical-align:-2px;color:var(--text-muted);flex:none;margin-right:6px;display:inline-block}.crm .btn,.crm .btn-sm,.crm .btn-xs{justify-content:center;align-items:center;gap:8px;min-height:44px;display:inline-flex}.crm .back-link a,.crm-back,.crm-task-title a.crm-link,.crm-table td a{align-items:center;gap:6px;min-height:44px;display:inline-flex}.crm summary{cursor:pointer;align-items:center;min-height:44px;display:flex}.crm a:focus-visible,.crm button:focus-visible,.crm summary:focus-visible,.crm select:focus-visible,.crm-nav a:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:6px}.crm .f-empty .btn-row,.crm-empty-actions{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}@media (max-width:600px){#members-table,#members-table thead,#members-table tbody,#members-table tr,#members-table td{display:block}#members-table thead{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}#members-table tr{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);margin-bottom:12px;padding:8px 12px}#members-table td{border-bottom:0;padding:4px 0}#members-table td[data-label]:before{content:attr(data-label) ": ";color:var(--text-muted)}}.crm-sublinks{flex-wrap:wrap;gap:4px 20px;margin:0 0 12px;display:flex}.crm-sublinks a{align-items:center;min-height:44px;display:inline-flex}.crm-banner-icon{align-items:center;gap:8px;display:flex}.crm-banner-icon .crm-icon-inline{color:inherit;margin-right:0}.crm .f-empty .btn{margin-top:4px}@media (max-width:600px){.crm-cards,.crm-cards thead,.crm-cards tbody,.crm-cards tr,.crm-cards td{display:block}.crm-cards thead{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.crm-cards tr{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);margin-bottom:12px;padding:8px 12px}.crm-cards td,.crm-cards td.num{text-align:left;white-space:normal;border-bottom:0;padding:4px 0}.crm-cards td[data-label]:before{content:attr(data-label) ": ";color:var(--text-muted)}.crm-filter .btn{flex:100%}}.pos-table .btn,.fld-table .btn,.fld-table summary{min-height:44px}.fld-actions{flex-wrap:wrap;align-items:flex-start;gap:8px;display:flex}.fld-actions details{min-width:0;max-width:100%}.fld-actions form{margin:0}.pos-empty,.fld-empty{padding:24px 8px}.crm details>summary.btn{width:fit-content;max-width:100%}.crm-icon-inline+*{min-width:0}.crm h1 .crm-icon-inline,.crm h2 .crm-icon-inline{color:var(--primary)}.crm .f-field input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.crm .f-field select,.crm .f-field textarea{box-sizing:border-box;min-height:44px}.crm .f-field input[type=checkbox],.crm .f-field input[type=radio]{min-width:24px;min-height:24px}.crm .crm-hit,.cs .crm-hit{cursor:pointer;justify-content:center;align-items:center;min-width:44px;min-height:44px;display:inline-flex}.crm .crm-hit input{width:24px;height:24px;margin:0}:is(.crm label.f-check,.crm .f-field>label:has(>input[type=checkbox])){align-items:center;gap:8px;min-height:44px;display:flex}.crm .f-input,.crm .f-select,.crm .f-textarea{min-height:44px}.crm .f-check{align-items:center;min-height:44px}.crm .f-textarea{min-height:88px}.crm .help-topic-link{align-items:center;gap:12px;display:flex}.crm .help-topic-link .help-topic-icon{color:var(--primary);flex:none}.crm .help-topic-link .help-topic-chev{color:var(--text-muted);flex:none;margin-left:auto}.crm .help-topic-link:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.crm .help-article h2{align-items:center;gap:8px;display:flex}.crm .help-article h2 svg{color:var(--primary);flex:none}.crm .help-article .btn{margin-top:4px}.crm .help-back{margin-top:16px}.app-empty,.exp-empty{box-shadow:none;padding:24px 8px}.exp-meta{align-items:center;gap:6px;display:flex}.crm .crm-app h2 a{align-items:center;min-height:44px;display:inline-flex}.crm .crm-table-wrap:focus-visible,.crm .f-check input:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:6px}.crm .help-topics{grid-template-columns:repeat(auto-fill,minmax(min(100%,20rem),1fr));gap:12px;max-width:none;margin:16px 0 0}.crm .help-topic-link{min-height:64px;box-shadow:var(--shadow-sm,none);padding:14px 16px}.crm .help-topic-link:hover{border-color:var(--primary)}.crm .help-topic-link .help-topic-icon{box-sizing:content-box;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:8px}.crm .help-article{max-width:52rem}.crm .help-article h2 svg{box-sizing:content-box;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;padding:6px}.crm .help-article p:last-child{margin-bottom:0}.crm .help-article .help-list{padding-left:1.5rem}.crm .help-code{white-space:pre;max-width:100%;overflow-x:auto}.crm .help-code:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:6px}.crm .help-back .crm-back{padding-inline:4px}.crm .ty-icon{color:var(--text-muted)}.crm-badge .crm-meta-icon{vertical-align:-2px;margin-right:4px}.crm-note .crm-meta-icon{margin-right:6px}.crm .crm-app details>summary.btn{width:auto;display:inline-flex}.crm .f-select,.crm .f-input:not([type=checkbox]){min-height:44px}@media (max-width:600px){.crm-cards select{width:100%}}.crm-table th a.crm-sort{color:inherit;align-items:center;min-height:44px;text-decoration:none;display:inline-flex}.crm-table th a.crm-sort:hover,.crm-table th a.crm-sort:focus-visible{text-decoration:underline}.crm-timeline{gap:8px;margin:0;padding:0;list-style:none;display:grid}.crm-timeline li{display:block}.crm-timeline time{margin-left:4px;font-size:.8125rem}.crm-cols{margin-bottom:12px}.crm-cols-form{padding:4px 0 8px}.crm-cols .f-check{min-height:44px}
