@import url("./gx-crm-workbench.css");
.gx-panel{min-width:0}
.gx-sales-customer-stats{margin-top:16px}
.gx-sales-customer-stats .section-title{gap:12px;flex-wrap:wrap;margin-bottom:12px;align-items:flex-start}
.gx-sales-customer-stats .section-title h3{margin:0}
.gx-sales-customer-stats .section-title p{margin:6px 0 0}
.gx-sales-stats-table{width:100%;overflow-wrap:anywhere}
.gx-sales-stats-table :is(th,td){vertical-align:middle}
.gx-sales-stats-table th:nth-child(n+2){white-space:nowrap;width:1%}
.gx-sales-stats-detail td:nth-child(n+2){min-width:5em}
.gx-sales-stats-table button.gx-sales-stats-link{min-height:28px;padding:3px 4px;border-color:transparent;background:transparent;color:var(--brand);text-align:left;text-decoration:underline;text-underline-offset:3px;white-space:normal}
.gx-sales-stats-table button.gx-sales-stats-link:hover{background:#edf4fb}
.gx-editor-owner{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 12px;margin:0 0 14px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:#f7faff;font-size:14px}
.gx-editor-owner :is(span,small){color:var(--muted)}
.gx-record-table [data-gx-column="ownerId"] .gx-cell{min-width:4em}
.gx-record-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.gx-void-box-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.gx-void-notice{padding:12px 14px;border:1px solid #f1d4cc;border-radius:8px;background:#fff7f4;color:#853229;font-size:14px;line-height:1.6}
.gx-void-notice .gx-detail-grid{margin:8px 0}
.gx-contract-new{position:relative}
.gx-contract-new-menu:not([hidden]){position:absolute;z-index:5;inset-inline-end:0;top:calc(100% + 6px);display:grid;width:max-content;min-width:190px;max-width:min(280px,calc(100vw - 40px));max-height:260px;overflow:auto;padding:4px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 5px 16px #24355124}
.gx-contract-new-menu>button{border-color:transparent;text-align:left;font-size:13px;padding:8px 10px;overflow-wrap:anywhere}
.gx-contract-new-menu>p{margin:0;padding:8px 10px;color:var(--muted);font-size:13px}
.gx-template-download{position:relative;white-space:nowrap}
.gx-template-download>summary{display:flex;align-items:center;gap:7px;list-style:none;cursor:pointer;padding:6px 9px;border:1px solid var(--line);border-radius:8px;color:var(--brand);background:#fff;font-size:12px}
.gx-template-download>summary::-webkit-details-marker{display:none}
.gx-template-download>summary::after{content:"";width:5px;height:5px;border:solid currentColor;border-width:0 1px 1px 0;transform:translateY(-1px) rotate(45deg)}
.gx-template-download[open]>summary,.gx-template-download>summary:hover{border-color:#7fa3cd;background:#edf4fb}
.gx-template-formats{position:absolute;z-index:3;inset-inline-end:0;top:calc(100% + 6px);min-width:150px;padding:4px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 5px 16px #24355124}
.gx-template-formats a{display:block;padding:8px 10px;border-radius:5px;color:inherit;text-decoration:none;font-size:13px}
.gx-template-formats a:hover,.gx-template-formats a:focus-visible{background:#edf4fb;color:var(--brand)}
.gx-import-result{margin-top:12px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:#f4f8ff;font-size:13px}
.gx-import-result.gx-import-error{color:#9f2522;background:#fff6f4;border-color:#efc3bc}
.gx-record-card .gx-import-result p{margin:0}
.gx-import-result ul{margin:6px 0 0;padding-left:1.5em;max-height:13em;overflow:auto}
.gx-customer-bulk-grade{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin:10px 0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#f7faff;font-size:13px}
.gx-customer-bulk-grade label{font-weight:600}
.gx-customer-bulk-grade select{width:auto;min-width:110px}
.gx-customer-bulk-grade :is(select,button){padding:6px 9px;font-size:13px}
.gx-customer-bulk-grade [data-gx-bulk-grade-count]{color:var(--muted)}
.gx-customer-grade-message{flex-basis:100%;margin:0;color:#9f2522}
#gx-crm .gx-record-table .gx-bulk-grade-column{width:38px;min-width:38px;padding-inline:6px;text-align:center}
.gx-bulk-grade-column input[type=checkbox]{width:16px;min-width:16px;height:16px;margin:2px 0 0;accent-color:var(--brand)}
.gx-customer-grade-summary{margin:10px 0 14px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f7faff;font-size:13px}
.gx-customer-grade-summary[hidden]{display:none}
.gx-grade-totals,.gx-grade-groups{display:flex;align-items:center;gap:7px 14px;flex-wrap:wrap}
.gx-grade-groups{margin-top:8px;gap:6px}
.gx-grade-groups button{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;background:#fff;font-size:12px;white-space:nowrap}
.gx-grade-groups button strong{color:var(--brand)}
#gx-crm .gx-record-table [data-gx-column="customerGrade"]{white-space:nowrap}
@media(max-width:600px){.gx-record-actions{justify-content:flex-start;margin-top:8px}.gx-template-formats,.gx-contract-new-menu:not([hidden]){inset-inline:0 auto}}
#gx-crm .gx-record-table-compact{min-width:750px}
#gx-crm .gx-record-table-compact :is(th,td){padding:5px 6px}
#gx-crm .gx-record-table-compact .gx-cell{min-width:0}
#gx-crm .gx-record-table-compact .gx-index{width:32px;min-width:32px}
#gx-crm .gx-record-table-compact .gx-row-actions{width:105px;min-width:100px}
#gx-crm .gx-record-table-opportunities [data-gx-column="stage"]{min-width:7.5em}
#gx-crm .gx-record-table-opportunities :is([data-gx-column="status"],[data-gx-column="expectedDate"]){white-space:nowrap}
#gx-crm .gx-record-table-compact .gx-followup-add-column{width:32px;min-width:32px;max-width:32px;text-align:center;padding:4px 2px}
#gx-crm .gx-record-table-followups{min-width:75rem}
#gx-crm .gx-record-table-followups [data-gx-column="customerId"]{min-width:10.5rem}
#gx-crm .gx-record-table-followups [data-gx-column="content"]{min-width:17rem}
#gx-crm .gx-record-table-followups [data-gx-column="nextAction"]{min-width:9rem}
#gx-crm .gx-record-table-followups :is([data-gx-column="date"],[data-gx-column="nextDate"]){min-width:7.5rem;white-space:nowrap}
#gx-crm .gx-record-table-followups [data-gx-column="status"]{min-width:4rem;white-space:nowrap}
#gx-crm .gx-record-table-followups :is([data-gx-column="date"],[data-gx-column="nextDate"],[data-gx-column="status"]) .gx-cell{white-space:nowrap}
#gx-crm .gx-record-table-followups [data-gx-column="ownerId"]{min-width:4.5rem}
#gx-crm .gx-record-table-followups td[rowspan]{vertical-align:top}
#gx-crm .gx-record-table-followups [data-gx-followup-group]+[data-gx-followup-group]>tr:first-child>td{border-top:2px solid var(--line)}
.gx-opportunity-stage-control select{width:100%;min-width:7em;padding:4px 19px 4px 5px;font-size:12px}
.gx-opportunity-stage-control [data-gx-opportunity-review]{margin-top:4px;padding:3px 5px;font-size:12px}
.gx-opportunity-stage-control [data-gx-opportunity-loss]:not([hidden]){display:grid;gap:5px;margin-top:6px;min-width:175px}
.gx-opportunity-stage-control textarea{width:100%;min-height:60px}
.gx-opportunity-stage-control .gx-error:empty{display:none}
.gx-followup-context{display:block;margin-top:4px;color:var(--muted);overflow-wrap:anywhere}
.gx-followup-inline-actions{display:flex;gap:4px;align-items:center;margin-top:4px}
.gx-followup-inline-actions:empty{display:none}
.gx-followup-inline-actions button{font-size:12px;padding:2px 5px;min-height:24px}
.gx-followup-inline-actions .gx-followup-plus{font-size:16px;font-weight:650;min-width:24px;padding:0 3px}
.gx-followup-inline-form{margin:3px 0;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f7faff}
.gx-followup-inline-form .section-title{margin:0 0 8px}
.gx-followup-inline-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.gx-followup-inline-fields label{display:grid;gap:4px;font-size:13px;min-width:0}
.gx-followup-inline-fields .gx-followup-inline-wide{grid-column:1/-1}
.gx-followup-inline-fields .gx-followup-inline-check{display:flex;align-items:center;gap:5px}
.gx-followup-inline-buttons{display:flex;gap:6px;justify-content:flex-end}
@media(max-width:650px){.gx-followup-inline-fields{grid-template-columns:1fr}}
.gx-followup-create{display:inline-block;max-width:100%}
.gx-followup-create>summary{display:grid;place-items:center;width:25px;height:25px;padding:0;border:1px solid #a8bee5;border-radius:7px;background:#f1f6ff;color:#244f96;font-size:19px;font-weight:600;line-height:1;cursor:pointer;list-style:none}
.gx-followup-create>summary::-webkit-details-marker{display:none}
.gx-followup-create>summary:focus-visible{outline:2px solid #3e75c5;outline-offset:3px}
.gx-followup-create>div{gap:4px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:6px}
.gx-followup-create>div:popover-open{position:fixed;inset:auto;margin:0;display:grid;box-shadow:0 6px 18px #24355132}
.gx-followup-create button{padding:6px 8px;font-size:12px;white-space:nowrap;text-align:left;color:#254b83;background:#fff;border:1px solid #d8e3f3;border-radius:6px}
.gx-business-section{border:0;border-top:1px solid #e2e8f0;padding:18px 0 8px;margin:22px 0 0;min-width:0}
.gx-payment-heading,.gx-payment-actions,.gx-payment-preset{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:12px 0}
.gx-payment-heading label,.gx-payment-preset label{flex:1;min-width:180px}
.gx-payment-row{padding:12px;margin:12px 0;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}
.gx-payment-row .gx-contact-section-title{margin-bottom:12px}
.gx-payment-editor [data-gx-payment-total]{display:block;margin-top:12px;color:#52637c}
.gx-payment-preset{padding:12px;border:1px solid #cddcf1;border-radius:8px}
.gx-file-preview{display:block;max-width:160px;max-height:120px;object-fit:contain;border-radius:6px}
.gx-followup-files{grid-column:1/-1;width:100%}
.gx-receivable-summary{padding:12px 16px;background:#f2f7ff;border:1px solid #d6e4f6;border-radius:8px;margin:12px 0}
.gx-business-section legend{padding:0 12px 0 0;font-size:15px;font-weight:650;color:#334155}
.gx-business-template .gx-form-grid{gap:14px 20px}
.gx-business-template .gx-form-grid label,.gx-business-template .gx-reference-field>label{position:relative}
.gx-business-template .gx-required{color:#dc2626;position:absolute;left:-10px;top:0}
.gx-business-template textarea{min-height:78px}
.gx-business-template .gx-reference-field{min-width:0}
.gx-business-template .gx-reference-field>label{display:block;margin-bottom:7px;font-size:14px;color:#475569}
.gx-clause-field{display:grid;gap:7px;min-width:0}
.gx-clause-field select{max-width:28rem}
.gx-contract-export{display:flex;flex-wrap:wrap;gap:8px;margin:-5px 0 14px}
.gx-contract-export a{display:inline-flex;align-items:center;min-height:34px;padding:5px 12px;border:1px solid #b9cce5;border-radius:7px;color:#254b83;background:#fff;text-decoration:none;font-size:13px;font-weight:600}
.gx-contract-export a:hover{background:#eef5ff}
.gx-business-extra,.gx-business-system{border-top:1px solid #e2e8f0;margin:20px 0 0;padding-top:14px}
.gx-business-extra>summary,.gx-business-system>summary{cursor:pointer;font-weight:600;font-size:14px;color:#475569;margin-bottom:14px}
.gx-business-system .gx-detail-grid{margin:12px 0;font-size:13px}
.gx-section-hint,.gx-product-editor .muted{font-size:12px;color:#64748b;line-height:1.6;margin:0 0 12px}
.gx-product-editor{margin-top:8px;min-width:0}
.gx-product-entry{margin:12px 0;padding:14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:9px;min-width:0}
.gx-product-entry>.gx-contact-section-title{align-items:center;margin-bottom:12px}
.gx-product-entry select{margin-top:6px}
.gx-product-entry .gx-form-grid label .gx-required{position:static}
.gx-product-total{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:14px}
.gx-product-editor button{font-size:12px;padding:7px 10px}
.gx-file-uploader{margin-top:16px;padding-top:14px;border-top:1px solid #e2e8f0;display:flex;gap:10px;align-items:end;flex-wrap:wrap}
.gx-file-uploader label{display:grid;gap:7px;font-size:13px;flex:1;min-width:180px}
.gx-file-uploader input{max-width:100%;box-sizing:border-box;font-size:12px}
.gx-file-uploader small,.gx-file-uploader p{flex-basis:100%;font-size:12px;line-height:1.5;margin:0;color:#64748b;overflow-wrap:anywhere}
.gx-phone-editor{min-width:0}.gx-phone-editor .muted{font-size:12px;color:#64748b;line-height:1.5}
.gx-phone-editor button{font-size:12px;padding:7px 10px}.gx-phone-entry{margin:10px 0}
.gx-workspace{display:grid;gap:16px;padding-top:24px}.gx-intro{display:flex;align-items:center;justify-content:space-between;gap:24px}.gx-intro h2{font-size:27px;margin:6px 0}.gx-intro p{margin:8px 0;font-size:16px}.gx-intro small,.gx-eyebrow{color:#64748b}.gx-eyebrow{font-size:11px;font-weight:700;letter-spacing:1.7px}.gx-tabs{display:flex;flex-wrap:wrap;gap:8px}.gx-tabs button{min-width:75px}.gx-record-card .section-title{align-items:flex-start;gap:18px}.gx-record-card .section-title h3{margin:0}.gx-record-card .section-title p{margin:8px 0 0}.gx-query-form{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:22px 0 12px}.gx-query-form label{display:grid;gap:6px;font-size:13px;color:#64748b;min-width:135px}.gx-query-form .gx-search{flex:1;min-width:240px;max-width:480px}.gx-query-form input,.gx-query-form select{min-height:40px;width:100%;box-sizing:border-box}.gx-query-form button{min-height:40px}.gx-query-status{font-size:13px;color:#64748b;margin:14px 0}.gx-state{padding:38px 20px;text-align:center;color:#64748b}.gx-state h3{color:#334155;margin-top:0}.gx-error{color:#b42318}.gx-table-wrap{margin-top:14px;overflow-x:auto}.gx-record-table{table-layout:fixed;min-width:1120px;width:100%}.gx-record-table th,.gx-record-table td{padding:13px 14px;vertical-align:top}.gx-record-table th{font-size:13px}.gx-cell{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;min-width:115px;max-width:32em}.gx-record-table .gx-index{width:45px;min-width:45px;text-align:center;padding-left:8px;padding-right:8px}.gx-record-table .gx-row-actions{width:124px;min-width:124px}.gx-row-actions button{padding:5px 9px;margin:0 5px 5px 0;font-size:13px}.gx-row-actions .badge{display:inline-block;margin-top:5px}.gx-pagination{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:18px;font-size:13px;color:#64748b}.gx-footnote{font-size:12px;color:#64748b;line-height:1.7;margin:18px 0 0}.gx-editor{width:min(1060px,calc(100vw - 40px));max-width:1060px;max-height:90vh;overflow:auto;box-sizing:border-box}.gx-dialog-title{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:20px}.gx-dialog-title h2{margin-top:0;margin-bottom:8px}.gx-dialog-title p{margin:0;color:#64748b;overflow-wrap:anywhere;line-height:1.5}.gx-dialog-title>button{font-size:22px;min-width:34px;line-height:1.2}.gx-form-grid,.gx-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.gx-form-grid label{display:flex;flex-direction:column;gap:7px;min-width:0;color:#475569;font-size:14px}.gx-form-grid input,.gx-form-grid textarea,.gx-form-grid select{width:100%;box-sizing:border-box;min-width:0}.gx-form-grid input,.gx-form-grid select:not([multiple]){min-height:42px}.gx-form-grid textarea{resize:vertical;min-height:92px;line-height:1.6}.gx-form-grid small{font-size:12px;color:#64748b;line-height:1.5}.gx-wide{grid-column:1/-1}.gx-sharing{border:1px solid #e2e8f0;border-radius:10px;padding:18px;margin:24px 0 12px}.gx-sharing legend{padding:0 8px;font-size:14px;color:#475569}.gx-sharing .gx-form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gx-sharing p{font-size:13px;color:#64748b;overflow-wrap:anywhere}.gx-sharing select[multiple]{min-height:112px}.gx-amount-warning{margin-bottom:20px;color:#92400e;background:#fffbeb;border:1px solid #fde68a;line-height:1.6;padding:14px;border-radius:8px}.gx-amount-confirm{display:flex;align-items:flex-start;gap:9px;padding:14px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;margin-top:18px;font-size:13px;line-height:1.6}.gx-amount-confirm input[type=checkbox]{width:18px;min-width:18px;min-height:18px;flex:none;margin:3px 0 0}.gx-conflict{padding:14px;color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:8px}.gx-conflict[hidden]{display:none}.gx-business-chain{padding:18px;background:#f8fafc;border-radius:10px;margin-bottom:20px}.gx-business-chain h3{font-size:15px;margin:0 0 8px}.gx-business-chain p{font-size:13px;line-height:1.6}.gx-reference-links{display:flex;flex-wrap:wrap;gap:16px}.gx-reference-links>div{display:grid;gap:6px;max-width:300px}.gx-reference-links small{color:#64748b;font-size:12px}.gx-reference-links button,.gx-reference-links span{white-space:normal;overflow-wrap:anywhere;text-align:left;line-height:1.5}.gx-detail-grid{margin:20px 0}.gx-detail-grid>div{min-width:0;border-bottom:1px solid #edf2f7;padding-bottom:14px}.gx-detail-grid dt{font-size:12px;color:#64748b;margin-bottom:6px}.gx-detail-grid dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;color:#1e293b;font-size:14px}.gx-original{margin:18px 0;padding:14px;border:1px solid #e2e8f0;border-radius:8px;font-size:13px}.gx-original summary,.gx-migration summary{cursor:pointer;font-weight:600}.gx-original p{color:#64748b;line-height:1.6}.gx-original pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto;font-size:12px;line-height:1.6;background:#f8fafc;padding:14px}.gx-migration-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:16px 0}.gx-migration-grid>div{display:grid;gap:8px;background:#f8fafc;padding:14px;border-radius:8px;min-width:0}.gx-migration-grid strong,.gx-migration-grid small{font-size:12px;color:#64748b}.gx-migration-grid b{font-size:18px}.gx-migration p{font-size:13px;line-height:1.6}.gx-editor .dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.gx-reference-field input[type=search]{background:#f8fafc}.gx-reference-field select{font-size:14px}
@media(max-width:900px){.gx-intro{align-items:flex-start}.gx-migration-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.gx-sharing .gx-form-grid{grid-template-columns:1fr}.gx-sharing select[multiple]{min-height:90px}.gx-pagination{justify-content:center}.gx-record-table{min-width:1000px}}
@media(max-width:600px){.gx-intro{display:block}.gx-intro>button{margin-top:18px}.gx-intro p{font-size:14px;line-height:1.7}.gx-form-grid,.gx-detail-grid{grid-template-columns:1fr}.gx-wide{grid-column:auto}.gx-editor{width:calc(100vw - 20px);padding:20px}.gx-tabs{gap:6px}.gx-tabs button{font-size:12px;min-width:64px}.gx-query-form .gx-search{min-width:100%;max-width:none}.gx-record-card .section-title{display:block}.gx-record-card .section-title>button{margin-top:12px}.gx-migration-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.gx-customer-rules{padding:13px 16px;margin:18px 0;background:#f0f6ff;border:1px solid #dbe7f6;border-radius:8px;color:#365273;font-size:13px;line-height:1.7}.gx-customer-rules strong{font-size:13px}.gx-customer-rules p{margin:5px 0 0}.gx-customer-check{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 16px;margin:20px 0;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;font-size:13px;line-height:1.6;color:#475569}.gx-customer-check p{margin:0 0 4px;overflow-wrap:anywhere}.gx-customer-check small{font-size:12px;color:#64748b}.gx-customer-check button{flex:none;font-size:13px}.gx-customer-check[data-state=duplicate]{color:#a12622;background:#fff5f5;border-color:#fecaca}.gx-customer-check[data-state=clear]{color:#166534;background:#f0fdf4;border-color:#bbf7d0}.gx-customer-check[data-state=error]{color:#92400e;background:#fffbeb;border-color:#fde68a}@media(max-width:600px){.gx-customer-check{align-items:flex-start;flex-direction:column;gap:10px}}
.gx-customer-check{flex-wrap:wrap}.gx-customer-matches{flex-basis:100%;width:100%;display:grid;gap:14px;color:#334155}.gx-customer-matches:empty{display:none}.gx-duplicate-company,.gx-duplicate-own{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:16px;min-width:0}.gx-duplicate-company strong{overflow-wrap:anywhere}.gx-duplicate-company p{font-size:12px;margin-top:7px}.gx-duplicate-own details{margin-top:15px}.gx-duplicate-own summary{cursor:pointer;font-weight:600;font-size:13px}.gx-duplicate-own .gx-detail-grid{margin:12px 0;gap:13px}.gx-customer-contacts{border-top:1px solid #e2e8f0;padding-top:22px;margin:22px 0}.gx-contact-section-title,.gx-contact-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}.gx-contact-section-title h3{margin:0 0 7px;font-size:17px}.gx-contact-section-title p{margin:0 0 15px;font-size:12px;line-height:1.6}.gx-contact-section-title>div:last-child{display:flex;gap:9px;flex-wrap:wrap}.gx-contact-cards{display:grid;gap:14px;margin-top:14px}.gx-contact-card{padding:16px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;min-width:0}.gx-contact-card-title{align-items:center;justify-content:flex-start}.gx-contact-card-title strong{flex:1;min-width:100px;overflow-wrap:anywhere}.gx-contact-card-title button{font-size:12px;padding:6px 10px}.gx-contact-card .gx-detail-grid{margin-bottom:0}.gx-primary-note{padding:13px 16px;background:#f0f6ff;border:1px solid #dbe7f6;border-radius:8px;color:#365273;font-size:13px;line-height:1.7}.gx-query-form label small{font-size:11px;max-width:250px;line-height:1.5}.gx-query-form [data-gx-customer-filter]{max-width:320px}@media(max-width:650px){.gx-customer-matches .gx-detail-grid{grid-template-columns:1fr}.gx-duplicate-own,.gx-duplicate-company,.gx-contact-card{padding:12px}.gx-contact-section-title>div:last-child{margin-bottom:10px}}
.gx-files{margin:18px 0;padding:16px;border:1px solid var(--line,#dbe3ee);border-radius:12px}.gx-files h3{margin:0 0 8px}.gx-file-items{list-style:none;margin:12px 0 0;padding:0}.gx-file-items li{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:10px 0;border-top:1px solid var(--line,#e6edf5)}.gx-file-items li>div{min-width:0;overflow-wrap:anywhere}.gx-file-items strong{display:block;white-space:normal}.gx-file-items small{display:block;color:var(--muted,#6b7280);margin-top:3px}.gx-file-items a{flex-shrink:0;color:var(--primary,#2563eb);text-decoration:underline}

.gx-source-products{margin:18px 0;padding-top:12px;border-top:1px solid #dce5ef}.gx-product-lines-scroll{overflow-x:auto}.gx-source-products table{min-width:760px;width:100%;border-collapse:collapse;font-size:13px}.gx-source-products th,.gx-source-products td{padding:9px 10px;text-align:left;vertical-align:top;border-bottom:1px solid #e7edf4}.gx-source-products th{background:#f5f8fc;white-space:nowrap}.gx-source-products td:nth-child(2){min-width:170px;max-width:260px;overflow-wrap:anywhere}.gx-source-products td:last-child{min-width:150px;max-width:260px;overflow-wrap:anywhere}.gx-source-products small{display:block;color:#68778b;margin-top:4px}

#gx-crm.gx-workspace {
  grid-template-columns: 164px minmax(0, 1fr);
  align-items: start;
}

#gx-crm .gx-navigation {
  position: sticky;
  top: 16px;
  min-width: 0;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.gx-flow-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.gx-flow-actions button,.gx-flow-order button:not(.table-name),.gx-flow-content>[data-gx-flow-retry]{font-size:13px;padding:7px 10px}
.gx-lifecycle{margin:0 0 20px;border:1px solid #dbe4f0;border-radius:12px;background:#fbfdff}
.gx-lifecycle>summary{cursor:pointer;padding:14px 16px;font-weight:700;color:#243b63}
.gx-flow-content{padding:0 16px 16px;display:grid;gap:12px}
.gx-flow-empty,.gx-flow-content small{color:#475569;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.gx-flow-empty{margin:0}
.gx-flow-counts{display:flex;flex-wrap:wrap;gap:8px;font-size:13px}
.gx-flow-counts>span{padding:5px 8px;border-radius:6px;background:#ecf2fa;color:#334155}
.gx-flow-deals{display:grid;gap:10px}
.gx-flow-deal{min-width:0;border:1px solid #dbe4f0;border-radius:8px;background:#fff}
.gx-flow-deal>summary{cursor:pointer;padding:11px 12px;overflow-wrap:anywhere;line-height:1.7}
.gx-flow-deal>summary .badge,.gx-flow-deal>summary small{margin-inline-start:8px}
.gx-flow-deal-body{display:grid;gap:10px;padding:0 12px 12px}
.gx-flow-order{display:grid;gap:8px;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}
.gx-flow-order-heading,.gx-flow-quote-ref{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.gx-flow-order-heading strong,.gx-flow-opportunity strong{font-size:14px}
.gx-flow-order-heading>[data-gx-flow-repeat]{margin-inline-start:auto}
.gx-flow-stages{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px;margin:0}
.gx-flow-stages>div{padding:8px;border-radius:6px;background:#eef3fa;min-width:0}
.gx-flow-stages dt{color:#475569;font-size:12px;margin:0 0 4px}
.gx-flow-stages dd{font-size:13px;font-weight:600;margin:0;overflow-wrap:anywhere}
.gx-flow-lines{display:grid;gap:4px;font-size:13px}
.gx-flow-lines>div>[data-gx-flow-plan]{margin-top:5px}
.gx-flow-record{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-width:0;padding:3px 0;font-size:13px}
.gx-flow-record>.table-name,.gx-flow-quote-ref>.table-name{white-space:normal;overflow-wrap:anywhere;text-align:left}
.gx-flow-record>span:last-child{font-variant-numeric:tabular-nums}
.gx-flow-plan-status{margin:0;padding:6px 8px;border-radius:6px;background:#edf4ff;color:#334e72;font-size:13px;line-height:1.5}
@media(max-width:600px){
 .gx-flow-content{padding-inline:9px}
 .gx-flow-deal-body,.gx-flow-order{padding-inline:8px}
 .gx-flow-order-heading>[data-gx-flow-repeat]{margin-inline-start:0}
}

#gx-crm .gx-tabs,
#gx-crm .gx-primary-tabs,
#gx-crm .gx-secondary-tabs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
}

#gx-crm .gx-tabs button {
  width: 100%;
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  text-align: left;
  font-size: 14px;
  white-space: normal;
}

#gx-crm .gx-tabs button:hover { background: #eff6ff; }
#gx-crm .gx-tabs button.primary { background: #2563eb; color: #fff; font-weight: 600; }
#gx-crm .gx-tabs button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
#gx-crm .gx-more-tabs { margin-top: 6px; padding-top: 8px; border-top: 1px solid #e2e8f0; }
#gx-crm .gx-more-tabs summary { padding: 8px 12px; color: #64748b; font-size: 12px; cursor: pointer; }
#gx-crm .gx-secondary-tabs { margin-top: 6px; }

@media (max-width: 900px) {
  #gx-crm.gx-workspace { grid-template-columns: 140px minmax(0, 1fr); gap: 12px; }
  #gx-crm .gx-navigation { padding: 8px; }
  #gx-crm .gx-tabs button { padding: 7px 10px; }
}

@media (max-width: 600px) {
  #gx-crm.gx-workspace { grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
  #gx-crm .gx-navigation { padding: 5px; }
  #gx-crm .gx-tabs button { padding: 7px 6px; font-size: 12px; }
  #gx-crm .gx-more-tabs summary { padding: 8px 6px; }
}

/* Dense CRM lists keep full text and readable minimum column widths. */
#gx-crm .gx-record-card { padding: 14px; }
#gx-crm .gx-record-card .section-title { margin: 0 0 10px; gap: 10px; }
#gx-crm .gx-record-card .section-title p { margin-top: 4px; font-size: 12px; line-height: 1.4; }
#gx-crm .gx-query-form { margin: 12px 0 8px; gap: 8px; }
#gx-crm .gx-query-form label { gap: 4px; }
#gx-crm .gx-query-form :is(input, select, button) { min-height: 32px; padding: 6px 9px; font-size: 13px; }
#gx-crm .gx-query-status { margin: 8px 0; }
#gx-crm .gx-customer-rules { padding: 8px 10px; margin: 10px 0; font-size: 12px; line-height: 1.4; }
#gx-crm .gx-customer-rules p { margin: 3px 0 0; }
#gx-crm .gx-pagination { gap: 10px; margin-top: 10px; }
#gx-crm .gx-pagination button { padding: 5px 9px; min-height: 30px; }
#gx-crm .gx-footnote { margin-top: 10px; line-height: 1.4; }
#gx-crm table { font-size: 13px; }
#gx-crm table :is(th, td), .gx-editor .gx-source-products :is(th, td) {
  padding: 6px 9px;
  line-height: 1.4;
  vertical-align: top;
}
#gx-crm table thead th, .gx-editor .gx-source-products th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f5f8fc;
  box-shadow: 0 1px 0 #dce5ef;
  font-size: 12px;
}
#gx-crm .gx-record-table { table-layout: auto; }
#gx-crm .gx-cell { line-height: 1.4; }
#gx-crm table p { margin: 3px 0; line-height: 1.4; }
#gx-crm table .badge { padding: 2px 6px; }
#gx-crm .gx-row-actions button { padding: 3px 7px; margin: 0 4px 0 0; min-height: 26px; font-size: 12px; line-height: 1.35; }
#gx-crm .gx-row-actions .badge { margin-top: 3px; }
#gx-crm button[data-gx-delete], .gx-editor button[data-gx-delete] { color: #a62620; border-color: #ddb1ad; }
#gx-crm button[data-gx-delete]:hover:not(:disabled), .gx-editor button[data-gx-delete]:hover:not(:disabled) { background: #fff2f1; }
#gx-crm .gxw-table { font-size: 12px; }
#gx-crm .gxw-table th { background: #1b2848; box-shadow: 0 1px 0 #34476d; }
#gx-crm .gxw-table caption { padding: 6px 9px; }
#gx-crm .gxw-cell-sub { margin-top: 3px; line-height: 1.4; }
#gx-crm .gxw-cell-separator { margin-top: 5px; padding-top: 4px; }
#gx-crm .gxw-inline-details { margin-top: 5px; }
#gx-crm .gxw-opportunity { padding: 6px 0; }
#gx-crm .gxw-rank { margin-bottom: 0; }
#gx-crm .gxw-wrap, #gx-crm .gxw-record-link { line-height: 1.4; }
#gx-crm .sales-staff p { margin: 3px 0; }
.gx-editor .gx-source-products small { margin-top: 2px; }

/* Keep the lower scrollbar reachable, with a matching bar above wide tables. */
#gx-crm .table-wrap, #gx-crm .gxw-scroll, .gx-editor .gx-product-lines-scroll {
  max-height: min(64vh, 640px);
  overflow: auto;
  overflow-x: scroll;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: var(--gx-scroll-thumb, #7087a6) var(--gx-scroll-track, #e4ebf4);
}
#gx-crm .gxw {
  --gx-scroll-thumb: #8ba9e0;
  --gx-scroll-track: #253454;
  --gx-scroll-surface: #16203a;
  --gx-scroll-text: #b6c9ef;
  --gx-scroll-border: #34476d;
}
.gx-table-scroll-frame { min-width: 0; max-width: 100%; margin: 8px 0; }
.gx-table-scroll-frame > :is(.table-wrap, .table-scroll, .service-scroll, .gx-table-wrap, .gxw-scroll, .gx-product-lines-scroll, .priority-table-wrap, .wr-table-wrap) { margin-top: 0; }
.gx-table-navigation {
  position: sticky;
  top: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid var(--gx-scroll-border, #dce5ef);
  border-radius: 6px 6px 0 0;
  background: var(--gx-scroll-surface, #f5f8fc);
  color: var(--gx-scroll-text, #52667e);
  font-size: 11px;
}
.gx-table-navigation[hidden] { display: none; }
.gx-table-navigation > span { flex: none; white-space: nowrap; }
.gx-table-scrollbar {
  flex: 1;
  min-width: 0;
  height: 18px;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: auto;
  scrollbar-color: var(--gx-scroll-thumb, #7087a6) var(--gx-scroll-track, #e4ebf4);
}
.gx-table-scroll-space { height: 1px; }
.gx-table-scrollbar:focus-visible { outline: 2px solid #4d82ff; outline-offset: 2px; }
.gx-editor .gx-reference-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.gx-editor .gx-reference-search-row { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.gx-editor .gx-reference-search-row input { flex: 1; min-width: 0; }
.gx-editor .gx-product-choice .search-choice::before { content: ""; position: absolute; inset: 15px 15px auto auto; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); pointer-events: none; }
.gx-editor .gx-product-choice input { padding-right: 34px; }
.gx-editor .gx-add-reference { flex: none; width: 42px; height: 42px; padding: 0; border-color: #2563eb; background: #2563eb; color: white; font-size: 24px; line-height: 1; }
.gx-editor .gx-add-contract-customer { width: auto; padding: 0 10px; font-size: inherit; white-space: nowrap; }
.gx-editor .gx-add-reference:hover { background: #1d4ed8; }
.gx-editor .gx-create-related { flex: none; min-height: 42px; padding: 8px 12px; color: #2455a6; background: #eef4ff; border-color: #aec5eb; white-space: nowrap; }
.gx-editor .gx-add-reference:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.gx-editor .gx-inline-create-note { padding: 10px 12px; border-radius: 8px; background: #eff6ff; color: #365273; font-size: 13px; line-height: 1.5; }
#gx-crm :is(.table-wrap, .gxw-scroll)::-webkit-scrollbar,
.gx-editor .gx-product-lines-scroll::-webkit-scrollbar,
.gx-table-scrollbar::-webkit-scrollbar { width: 14px; height: 14px; }
#gx-crm :is(.table-wrap, .gxw-scroll)::-webkit-scrollbar-track,
.gx-editor .gx-product-lines-scroll::-webkit-scrollbar-track,
.gx-table-scrollbar::-webkit-scrollbar-track { background: var(--gx-scroll-track, #e4ebf4); }
#gx-crm :is(.table-wrap, .gxw-scroll)::-webkit-scrollbar-thumb,
.gx-editor .gx-product-lines-scroll::-webkit-scrollbar-thumb,
.gx-table-scrollbar::-webkit-scrollbar-thumb {
  background: var(--gx-scroll-thumb, #7087a6);
  border: 2px solid var(--gx-scroll-track, #e4ebf4);
  border-radius: 8px;
}
.gx-required{color:#dc2626;font-weight:700;margin-right:4px}.gx-editor .gx-form-grid label:has(>.gx-required){position:relative}.gx-editor .gx-form-grid label>.gx-required{position:absolute;left:-10px;top:0}.gx-customer-name{grid-template-columns:1fr;margin:6px 0 20px}.gx-customer-section{min-width:0;border:0;border-top:1px solid #e2e8f0;padding:18px 0 0;margin:20px 0}.gx-customer-section>legend{padding:0 14px 0 0;font-weight:650;color:#334155;font-size:16px}.gx-customer-template .gx-sharing{padding:16px;margin:20px 0}.gx-customer-template .gx-form-grid{gap:14px 22px}.gx-customer-template input[readonly]{background:#f8fafc;color:#64748b}.gx-customer-contact-editor{margin-top:20px}.gx-customer-contact-editor h3{font-size:15px;margin:0}.gx-customer-contact-editor .muted{font-size:12px;line-height:1.5;margin:6px 0}.gx-customer-contact-entry{padding:14px 16px;margin-top:12px;background:#f8fafc;border:1px solid #dce5ef;border-radius:10px}.gx-customer-contact-heading{display:flex;align-items:center;gap:14px;margin-bottom:12px;font-size:13px}.gx-customer-contact-heading>button,.gx-customer-contact-heading>.muted{margin-left:auto}.gx-customer-contact-heading .gx-primary-choice{display:flex;flex-direction:row;align-items:center;gap:6px;color:#475569}.gx-primary-choice input[type=radio]{width:16px;height:16px;min-height:16px;margin:0;accent-color:#2563eb}.gx-contact-more{margin-top:10px}.gx-contact-more>summary,.gx-customer-extra>summary{cursor:pointer;font-size:13px;color:#475569}.gx-contact-more>.gx-form-grid{margin-top:12px}.gx-contact-more textarea{min-height:64px}.gx-industry-field{display:grid;align-content:start;gap:7px;font-size:14px;color:#475569;min-width:0}.gx-industry-select{display:flex;gap:8px;align-items:center}.gx-industry-select select{flex:1;width:0;min-width:0}.gx-industry-select button{flex:none;padding:9px 10px;white-space:nowrap}.gx-industry-create{display:flex;gap:6px;flex-wrap:wrap}.gx-industry-create[hidden]{display:none}.gx-industry-create input{flex:1;min-width:150px!important}.gx-industry-field small{font-size:12px;color:#64748b}.gx-customer-extra{border:1px solid #e2e8f0;border-radius:8px;padding:14px;margin-top:20px}.gx-customer-extra>.gx-form-grid{margin-top:14px}.gx-customer-categories{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.gx-customer-categories button{padding:6px 12px;border-radius:18px;font-size:13px}.gx-customer-template .gx-contact-section-title{gap:12px;align-items:center}.gx-customer-template .gx-contact-section-title>button{white-space:nowrap;flex-shrink:0}
@media(max-width:700px){.gx-customer-template .gx-form-grid{grid-template-columns:1fr}.gx-customer-template .gx-sharing .gx-form-grid{grid-template-columns:1fr}.gx-customer-template .gx-contact-section-title{flex-wrap:wrap}.gx-customer-contact-entry{padding:12px}.gx-customer-contact-heading{gap:8px;flex-wrap:wrap}.gx-industry-select{flex-wrap:wrap}.gx-industry-select select{min-width:130px}}
.gx-customer-more-fields{margin-top:20px}
.gx-customer-contact-summary{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px}
.gx-customer-contact-summary>div:first-child{margin-right:auto;overflow-wrap:anywhere}
.gx-customer-contact-summary .gx-primary-choice{display:flex;align-items:center;gap:6px;font-size:13px;color:#475569}
.gx-customer-contact-summary button,.gx-production-lines button{padding:6px 10px;font-size:13px}
.gx-customer-contact-dialog{width:min(730px,calc(100vw - 24px))}
.gx-customer-contact-dialog .gx-dialog-title h2{margin-bottom:0}
.gx-customer-contact-dialog input[readonly]{background:#f8fafc;color:#475569}
.gx-production-lines{min-width:0;padding:14px;border:1px solid #e2e8f0;border-radius:8px}
.gx-production-line{display:grid;grid-template-columns:2fr 2fr 1fr auto;align-items:end;gap:10px;margin-top:12px}
.gx-production-line>button{min-height:42px}
@media(max-width:600px){.gx-production-line{grid-template-columns:repeat(2,minmax(0,1fr))}}
.gx-customer-template .gx-customer-name{grid-template-columns:1fr}
.gx-contract-templates{margin:12px 0 18px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;background:#f8fbff}
.gx-contract-template-add>summary{cursor:pointer;font-weight:650;color:var(--brand)}
.gx-contract-templates>h3{margin:0 0 12px}
.gx-contract-template-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:9px;margin-top:10px}
.gx-contract-template-grid article{padding:11px 12px;background:#fff;border:1px solid var(--line);border-radius:8px;min-width:0;overflow-wrap:anywhere}
.gx-contract-template-grid article>small{display:block;margin-top:5px;color:var(--muted)}
.gx-contract-template-grid .gx-contract-export{margin:9px 0 0}
.gx-contract-template-add{margin-top:12px}
.gx-contract-template-add input[type=file]{padding:8px 4px;min-width:0}
.gx-contract-import-sheet{display:inline-flex;align-items:center;border:1px solid var(--line);padding:6px 9px;border-radius:8px;background:#fff;text-decoration:none;white-space:nowrap;font-size:12px}
.gx-contract-template-field{max-width:480px;margin:13px 0 20px}
.gx-contract-template-field .error:empty,.gx-invoice-actions>small:empty{display:none}
.gx-invoice-actions{display:grid;gap:6px;min-width:0;align-content:start}
.gx-invoice-actions>button{justify-self:start}
.gx-invoice-actions>small{color:var(--muted)}
.gx-line-buttons{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.gx-editor .gx-product-entry .gx-line-gift{display:flex;flex-direction:row;align-items:center;gap:8px}
.gx-editor .gx-product-entry .gx-line-gift input{width:16px;height:16px;min-height:16px}
.gx-product-total [data-gx-line-uppercase]{color:var(--muted)}
.gx-quote-form{display:grid;gap:18px}
.gx-quote-parties{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.gx-quote-section{min-width:0;margin:0;padding:14px 16px;border:1px solid var(--line);border-radius:10px}
.gx-quote-section legend,.gx-quote-section summary{color:#314761;font-weight:650}
.gx-quote-section legend{padding:0 6px}
.gx-quote-section summary{cursor:pointer}
.gx-quote-section[open]>.gx-form-grid{margin-top:16px}
.gx-quote-section .gx-quote-recipient{grid-template-columns:1fr;gap:10px}
.gx-quote-sender{margin:0;display:grid;gap:12px}
.gx-quote-sender>div{display:grid;gap:4px}
.gx-quote-sender dt{font-size:13px;color:var(--muted)}
.gx-quote-sender dd{margin:0;min-height:1.5em;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:650px){.gx-quote-parties{grid-template-columns:1fr}}
