.crm-settings.qf-center{box-sizing:border-box;width:100%;max-width:none;min-width:0;margin-inline:0;color:#182d43}.qf-heading,.qf-search,.qf-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.qf-heading h1{font-size:24px;margin:0}.qf-heading p,.qf-hint{color:#53677a;font-size:13px}.qf-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:20px 0}.qf-center button,.qf-dialog button{border:1px solid #cbdce2;border-radius:8px;background:white;color:#183744;padding:10px 14px;cursor:pointer;min-height:44px}.qf-filters button[aria-pressed=true],.qf-dialog .crm-save{background:#0b817e;color:white;border-color:#0b817e}.qf-center button:disabled,.qf-dialog button:disabled{opacity:.5;cursor:default}.qf-search{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center}.qf-search input{box-sizing:border-box;width:100%;min-width:0;max-width:none;min-height:44px;padding:10px;border:1px solid #cbdce2;border-radius:8px}.qf-table-scroll{width:100%;max-width:100%;min-width:0;overflow:auto;margin:16px 0;border:1px solid #dbe5ec;border-radius:12px}.qf-center table{width:100%;min-width:1120px;table-layout:fixed;border-collapse:collapse;font-size:13px;background:#fff}.qf-center th{background:#eef7f6;text-align:left;padding:14px 12px;white-space:nowrap}.qf-center td{padding:14px 12px;border-top:1px solid #e3eaf0;vertical-align:middle;max-width:none;overflow-wrap:anywhere}.qf-center td small{display:block;color:#52667c;margin-top:6px}.qf-center td p{margin:0 0 8px;white-space:pre-wrap}.qf-center tr[data-overdue=true]{background:#fff8ed}.qf-center td:last-child button{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:44px;min-height:44px;padding:4px 8px;font-size:12px;margin:0 0 8px!important;white-space:normal;line-height:16px}.qf-center td:last-child button:last-child{margin-bottom:0!important}.qf-dialog{box-sizing:border-box;inset:0;margin:auto;width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #cbdce2;border-radius:16px;background:#fff;color:#182d43;overflow:hidden}.qf-dialog[open]{display:flex;flex-direction:column}.qf-dialog::backdrop{background:#102b426b}.qf-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;border-bottom:1px solid #dbe5ec;flex-shrink:0}.qf-dialog h2{font-size:19px;margin:0}.qf-dialog>header button{font-size:26px}.qf-dialog-body{overflow:auto;padding:20px;min-height:0}.qf-dialog form{display:grid;gap:14px}.qf-dialog label{display:grid;gap:7px;font-size:14px}.qf-dialog :is(input,select,textarea){box-sizing:border-box;width:100%;padding:10px;border:1px solid #b9cbd6;border-radius:7px;background:#fff;color:#182d43;caret-color:#182d43;font:inherit}.qf-dialog textarea{resize:vertical}.qf-summary{background:#f3f8fa;padding:14px;border-radius:10px;margin-bottom:16px}.qf-summary p{margin:6px 0;font-size:14px}.qf-dialog .qf-check{display:flex;align-items:center}.qf-dialog .qf-check input{width:20px;height:20px}.qf-dialog article{border-top:1px solid #dbe5ec;padding:12px 0;font-size:13px;white-space:pre-wrap}.qf-center :focus-visible,.qf-dialog :focus-visible{outline:2px solid #087e7b;outline-offset:2px}@media(max-width:600px){.qf-dialog-body{padding:14px}.qf-dialog :is(input,select,textarea){font-size:16px}.qf-heading h1{font-size:21px}.qf-filters button{flex:1 1 45%}}

/* Fluid workspace with stable table columns and aligned actions. */
.qf-center table :is(th,td):nth-child(1){width:23%}
.qf-center table :is(th,td):nth-child(2){width:15%}
.qf-center table :is(th,td):nth-child(3){width:12%}
.qf-center table :is(th,td):nth-child(4){width:10%}
.qf-center table :is(th,td):nth-child(5){width:10%}
.qf-center table :is(th,td):nth-child(6){width:17%}
.qf-center table :is(th,td):nth-child(7){width:13%}
.qf-center table :is(th,td){box-sizing:border-box;vertical-align:middle!important}
.qf-center td p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.qf-center .qf-filters>button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-width:0;height:44px;min-height:44px;padding:4px 8px;line-height:18px;white-space:normal;text-align:center}
@media(max-width:900px){.qf-center .qf-filters>button{height:56px;min-height:56px}}
@media(max-width:640px){.qf-heading{align-items:flex-start}.qf-heading>div{width:100%}.qf-search{grid-template-columns:1fr 1fr}.qf-search input{grid-column:1/-1}.qf-search button{width:100%}.qf-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.qf-filters button{min-width:0;width:100%}.qf-table-scroll{overscroll-behavior-x:contain}}

/* One mutually exclusive, compact filter strip; All/history is the single complete view. */
.qf-center .qf-filters{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;width:100%;max-width:100%;box-sizing:border-box;min-width:0;margin:16px 0;padding:2px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#b2d8d7 transparent}
.qf-center .qf-filters>button{display:flex;gap:4px;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;width:100%;height:40px;min-height:40px;padding:3px 7px;border:1px solid #d8e6e9;border-radius:10px;background:#fff;color:#365968;font-size:12px;font-weight:400;line-height:15px;text-align:center;box-shadow:0 2px 6px #08404a0a;transition:background .15s,border-color .15s}
.qf-filter-label{min-width:0;white-space:normal;overflow-wrap:anywhere}.qf-filter-count{flex:0 0 auto;padding:1px 4px;border-radius:5px;font-size:10px;line-height:14px;background:#edf4f5;font-variant-numeric:tabular-nums}
.qf-center .qf-filters>[data-filter=lost]{background:#fff1f2;color:#b42336;border-color:#fecdd3}.qf-center .qf-filters>[data-filter=hold]{background:#fff8e8;color:#94620a;border-color:#f5dba3}
.qf-center .qf-filters>button[aria-pressed=true]{background:#088a87;border-color:#088a87;color:#fff}.qf-center .qf-filters>[aria-pressed=true] .qf-filter-count{background:#ffffff30;color:#fff}
.qf-center .qf-filters>button:hover:not(:disabled){border-color:#088a87}.qf-center .qf-filters>button:focus-visible{outline:2px solid #088a87;outline-offset:-3px}
@media(max-width:900px){.qf-center .qf-filters{grid-template-columns:repeat(8,140px);gap:8px;padding-bottom:8px;overscroll-behavior-x:contain}.qf-center .qf-filters>button{height:40px;min-height:40px}}

.qf-heading .qf-document-view{max-width:100%;min-width:0;width:auto;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;font-weight:600;min-height:44px;padding:6px 28px 6px 0;cursor:pointer}.qf-heading>div{min-width:0;max-width:100%}.qf-heading .qf-document-view:focus-visible{outline:2px solid #088a87;outline-offset:2px}@media(max-width:600px){.qf-heading .qf-document-view{font-size:18px;width:100%}}

.qf-visible-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px;align-items:end;box-sizing:border-box;width:100%;padding:14px;border:1px solid #e8dcc4;border-radius:14px;background:#fffcf5;margin:16px 0}.qf-visible-filters label{display:grid;gap:8px;min-width:0;color:#687d99;font-size:12px}.qf-visible-filters select{box-sizing:border-box;width:100%;min-width:0;min-height:44px;border:1px solid #e8dcc4;border-radius:9px;background:#fff;color:#36516b;padding:10px 12px;font:inherit;font-size:13px}.qf-visible-filters>button{min-height:44px;white-space:nowrap}@media(max-width:760px){.qf-visible-filters{grid-template-columns:1fr;gap:12px}.qf-visible-filters select{font-size:16px}.qf-visible-filters>button{width:100%}}

/* Title scope matches the approved Sales header dropdown. */
.crm-title-scope{appearance:auto;display:block;width:auto;max-width:100%;border:0!important;border-radius:6px;background:transparent!important;color:#17243b!important;font:inherit!important;font-weight:700!important;padding:2px 28px 2px 0!important;cursor:pointer;min-height:42px;box-shadow:none!important}.crm-title-scope:focus-visible{outline:2px solid #916300;outline-offset:4px}.qf-heading,.crm-so-page-title{background:#fff;border:1px solid #eadfc6;border-radius:16px;padding:24px;gap:18px}.qf-heading h1{margin:0;font-size:28px}.qf-heading p{display:none}.qf-visible-filters{background:#fffcf5;border-color:#eadfc6}.qf-center .qf-heading button{background:#fff8e9;color:#916300;border-color:#eadfc6}@media(max-width:760px){.crm-title-scope{font-size:20px!important;min-width:0;width:100%}.qf-heading,.crm-so-page-title{padding:16px}.qf-heading>div,.crm-sales-title{min-width:0;max-width:100%}}
