#tab-categories{color:#0d2347}.categoriesFunnelsHeader{align-items:center;background:linear-gradient(110deg,#fff 58%,#f2f8ff);border-bottom:1px solid #dbe7f3;display:flex;gap:20px;justify-content:space-between;padding:18px 20px}.categoriesFunnelsHeader h2{font-size:30px;line-height:1;margin:0 0 8px}.categoriesFunnelsHeader p{color:#637695;margin:0}.categoriesFunnelsHeader>div:last-child{display:flex;gap:10px}.categoriesFunnelsHeader button{background:#fff;border:1px solid #c8d7e7;border-radius:9px;color:#19355c;font-weight:800;padding:12px 18px}.categoriesFunnelsHeader #saveCategoriesWorkspaceBtn{background:#126cea;border-color:#126cea;color:#fff;min-width:160px}.cfMetrics{display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr));padding:14px 16px}.cfMetricCard{align-items:center;background:#fff;border:1px solid #dce7f2;border-radius:14px;box-shadow:0 4px 14px rgba(31,75,122,.05);display:grid;grid-template-columns:62px minmax(0,1fr) 105px;min-height:92px;overflow:hidden;padding:15px;position:relative}.cfMetricCard>i{align-items:center;background:#eaf4ff;border-radius:50%;color:#126cea;display:flex;height:54px;justify-content:center;width:54px}.cfMetricCard.purple>i{background:#f0eaff;color:#7444ec}.cfMetricCard.green>i{background:#dff8eb;color:#14a864}.cfMetricCard svg{fill:none;height:32px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2;width:32px}.cfMetricCard span{color:#385171;display:block;font-size:13px;font-weight:800}.cfMetricCard strong{display:block;font-size:27px;line-height:1.1;margin-top:4px}.cfMetricCard small{color:#6f819d}.cfSpark{align-self:end;height:42px!important;stroke-width:3!important;width:105px!important}.cfSpark path{fill:none}.cfSpark.green{stroke:#48ca94}.cfSpark.purple{stroke:#9a71fb}.cfSpark.blue{stroke:#58b6f8}.cfPrimaryGrid,.cfSecondaryGrid{display:grid;gap:14px;grid-template-columns:minmax(0,1.85fr) minmax(370px,1fr);padding:0 16px 14px}.cfWorkspacePanel{background:#fff;border:1px solid #dbe7f2;border-radius:14px;box-shadow:0 4px 16px rgba(31,75,122,.05);min-width:0;overflow:hidden}.cfWorkspacePanel>header{align-items:center;display:flex;gap:16px;justify-content:space-between;padding:16px 18px}.cfTitle{align-items:center;display:flex;gap:12px}.cfTitle>i{color:#126cea;display:flex}.cfTitle svg,.cfOutline svg{fill:none;height:25px;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:2;width:25px}.cfTitle h3{font-size:19px;margin:0 0 3px}.cfTitle p{color:#667996;margin:0}.cfInlineFilters{display:flex;gap:8px}.cfInlineFilters label{position:relative}.cfInlineFilters label span{color:#71839e;left:11px;position:absolute;top:10px}.cfInlineFilters input,.cfInlineFilters select{border:1px solid #cbd8e7;border-radius:8px;color:#2e4565;height:38px;padding:0 12px}.cfInlineFilters label input{padding-left:32px;width:180px}.cfTableScroll{border:1px solid #dbe6f1;border-radius:9px;margin:0 16px 14px;overflow-x:auto}.cfTableScroll table{border-collapse:collapse;min-width:770px;width:100%}.cfTableScroll th,.cfTableScroll td{border-bottom:1px solid #e0e8f1;color:#415775;font-size:12px;padding:10px 12px;text-align:left;white-space:nowrap}.cfTableScroll th{background:#edf4fa;color:#253b5b;font-weight:900}.cfTableScroll tbody tr{cursor:pointer}.cfTableScroll tbody tr:hover,.cfTableScroll tbody tr[aria-selected="true"]{background:#e5f2ff}.cfRoleName,.cfCategoryName{color:#173657!important}.cfFunnelPill{background:#e7f3ff;border-radius:999px;color:#1764cf;font-weight:800;padding:6px 10px}.cfStatus{align-items:center;background:#ddf7e9;border-radius:999px;color:#14804b;display:inline-flex;font-weight:800;gap:6px;padding:6px 10px}.cfStatus i{background:#18b566;border-radius:50%;height:7px;width:7px}.cfStatus.inactive{background:#ffe8e9;color:#bf3e48}.cfStatus.inactive i{background:#df4853}.cfIconBtn,.cfOutline{align-items:center;background:#fff;border:1px solid #c7d9eb;border-radius:8px;color:#126cea;display:inline-flex;font-weight:800;gap:5px;padding:7px 10px}.cfIconBtn svg{fill:none;height:18px;stroke:currentColor;stroke-width:2;width:18px}.cfFunnelSummary{align-items:center;border-top:1px solid #e0e9f2;display:flex;justify-content:space-between;padding:16px 20px}.cfFunnelSummary input{border:0;color:#16345b;font-size:16px;font-weight:900;max-width:330px;width:100%}.cfFunnelSummary p{color:#697d99;margin:8px 0 0}.cfDonut{align-items:center;background:conic-gradient(#7747ef 0 var(--donut),#4aacf0 var(--donut) 72%,#48c88d 72% 90%,#d8e0eb 90%);border-radius:50%;display:flex;height:92px;justify-content:center;position:relative;width:92px}.cfDonut:before{background:#fff;border-radius:50%;content:"";height:58px;position:absolute;width:58px}.cfDonut b{font-size:18px;position:relative;text-align:center}.cfDonut small{display:block;font-size:10px}.cfSubheading{align-items:center;display:flex;gap:8px;margin:0;padding:4px 20px 10px}.cfSubheading svg{fill:none;height:18px;stroke:#126cea;stroke-width:2;width:18px}.cfStages{border:1px solid #dbe6f1;border-radius:8px;margin:0 16px;overflow:auto}.cfStageHead,.cfStageRow{align-items:center;display:grid;gap:7px;grid-template-columns:28px minmax(145px,1fr) 105px 90px 28px;min-width:430px;padding:7px 10px}.cfStageHead{background:#edf4fa;color:#263c5b;font-size:11px;font-weight:900}.cfStageRow{border-top:1px solid #e1e9f1}.cfStageRow select,.cfStageRow input{border:1px solid #d4dfeb;border-radius:6px;min-width:0;padding:7px}.cfStageRow button{background:none;border:0;color:#d1434d;font-size:18px}.cfWorkspacePanel>footer{display:flex;gap:8px;justify-content:flex-end;padding:14px 16px}.cfPrimary,.cfDanger{border:0;border-radius:8px;color:#fff;font-weight:800;padding:10px 16px}.cfPrimary{background:#126cea}.cfDanger{background:#e4515b}.cfCategoriesTable .cfType{background:#e8eef5;border-radius:999px;padding:5px 8px}.cfCategoriesTable .cfType.countable{background:#dcf8e9;color:#16804d}.cfRoleChip{background:#e8f1ff;border-radius:999px;color:#2569cf;font-size:10px;font-weight:900;margin-right:3px;padding:5px 7px}.cfCategoryHeading{align-items:center;display:flex;font-size:17px;gap:10px;padding:0 20px 14px}.cfCategoryForm{display:grid;gap:12px;grid-template-columns:1fr 1fr;padding:0 20px 16px}.cfCategoryForm label,.cfCreateForm label{color:#203958;font-size:12px;font-weight:900}.cfCategoryForm input:not([type=checkbox]),.cfCategoryForm select,.cfCreateForm input{border:1px solid #ccd9e7;border-radius:8px;color:#2a405f;height:40px;margin-top:6px;padding:0 11px;width:100%}.cfCategoryForm .span2{grid-column:1/-1}.cfToggle{align-items:center;display:flex!important;gap:7px}.cfToggle input{position:absolute;opacity:0}.cfToggle span{background:#d5dfeb;border-radius:999px;height:23px;position:relative;width:42px}.cfToggle span:after{background:#fff;border-radius:50%;content:"";height:17px;left:3px;position:absolute;top:3px;transition:.15s;width:17px}.cfToggle input:checked+span{background:#126cea}.cfToggle input:checked+span:after{left:22px}.cfRolesEditor{display:flex;flex-wrap:wrap;gap:7px}.cfRolesEditor>b{width:100%}.cfRolesEditor label{position:relative}.cfRolesEditor input{position:absolute;opacity:0}.cfRolesEditor span{background:#eef4ff;border:1px solid #d6e4f8;border-radius:8px;color:#58708e;display:block;padding:8px 10px}.cfRolesEditor input:checked+span{background:#e3efff;color:#1766d2}.cfCreateForm{display:grid;gap:14px;padding:20px}.cfCreateForm button{justify-self:end}.cfEmpty{color:#6d7e98;padding:28px 20px;text-align:center}.cfFunnelDetail>.roleFunnelSelect,.cfFunnelDetail>.assignRoleFunnelBtn{margin:0 20px 18px}.cfFunnelDetail>.roleFunnelSelect{border:1px solid #cbd8e7;border-radius:8px;height:40px;max-width:250px}.cfWorkspacePanel button{cursor:pointer}
@media(max-width:1100px){.cfMetrics{grid-template-columns:repeat(2,1fr)}.cfPrimaryGrid,.cfSecondaryGrid{grid-template-columns:1fr}.cfInlineFilters{flex-wrap:wrap}}
@media(max-width:620px){.categoriesFunnelsHeader{align-items:stretch;flex-direction:column}.categoriesFunnelsHeader h2{font-size:26px}.categoriesFunnelsHeader>div:last-child{display:grid;grid-template-columns:1fr 1fr}.categoriesFunnelsHeader #saveCategoriesWorkspaceBtn{grid-column:1/-1}.cfMetrics{grid-template-columns:1fr;padding:10px}.cfMetricCard{grid-template-columns:58px 1fr 90px}.cfPrimaryGrid,.cfSecondaryGrid{grid-template-columns:1fr;padding:0 10px 10px}.cfWorkspacePanel>header{align-items:flex-start;flex-direction:column}.cfInlineFilters{width:100%}.cfInlineFilters label,.cfInlineFilters input,.cfInlineFilters select{width:100%!important}.cfTableScroll{margin:0 12px 12px}.cfCategoryForm{grid-template-columns:1fr}.cfCategoryForm .span2{grid-column:auto}.cfFunnelSummary{align-items:flex-start}.cfDonut{height:76px;min-width:76px;width:76px}}

/* This administrative workspace owns a light, accessible palette. Tenant and
   dark-theme tokens may color the surrounding shell, but never white-on-white
   text inside these fixed white management surfaces. */
#tab-categories{color-scheme:light;background:#f4f8fd!important;color:#0d2347!important}
#tab-categories :is(.categoriesFunnelsHeader,.cfMetricCard,.cfWorkspacePanel,.cfTableScroll){background-color:#fff!important}
#tab-categories :is(.categoriesFunnelsHeader h2,.cfMetricCard strong,.cfTitle h3,.cfFunnelSummary input,.cfDonut b,.cfSubheading,.cfCategoryHeading,.cfRolesEditor>b){color:#0d2347!important;-webkit-text-fill-color:#0d2347!important}
#tab-categories :is(.categoriesFunnelsHeader p,.cfMetricCard small,.cfTitle p,.cfFunnelSummary p,.cfEmpty){color:#637695!important;-webkit-text-fill-color:#637695!important}
#tab-categories .cfMetricCard span{color:#385171!important;-webkit-text-fill-color:#385171!important}
#tab-categories .cfTableScroll th{background:#edf4fa!important;color:#253b5b!important;-webkit-text-fill-color:#253b5b!important}
#tab-categories .cfTableScroll td{background:#fff!important;color:#415775!important;-webkit-text-fill-color:#415775!important}
#tab-categories .cfTableScroll tbody tr:hover td,#tab-categories .cfTableScroll tbody tr[aria-selected="true"] td{background:#e5f2ff!important}
#tab-categories :is(.cfRoleName,.cfCategoryName,.cfRoleName b,.cfCategoryName b){color:#173657!important;-webkit-text-fill-color:#173657!important}
#tab-categories :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea){background:#fff!important;color:#2a405f!important;-webkit-text-fill-color:#2a405f!important;border-color:#aebfd3!important}
#tab-categories :is(input,textarea)::placeholder{color:#71839e!important;-webkit-text-fill-color:#71839e!important;opacity:1}
#tab-categories .cfFunnelPill{color:#1764cf!important;-webkit-text-fill-color:#1764cf!important}
#tab-categories .cfStatus{color:#14804b!important;-webkit-text-fill-color:#14804b!important}
#tab-categories .cfStatus.inactive{color:#bf3e48!important;-webkit-text-fill-color:#bf3e48!important}
#tab-categories .cfCategoriesTable .cfType{color:#415775!important;-webkit-text-fill-color:#415775!important}
#tab-categories .cfCategoriesTable .cfType.countable{color:#16804d!important;-webkit-text-fill-color:#16804d!important}
#tab-categories .cfRoleChip{color:#2569cf!important;-webkit-text-fill-color:#2569cf!important}
#tab-categories .cfRolesEditor span{color:#58708e!important;-webkit-text-fill-color:#58708e!important}
#tab-categories .cfRolesEditor input:checked+span{color:#1766d2!important;-webkit-text-fill-color:#1766d2!important}
#tab-categories :is(.categoriesFunnelsHeader button,.cfIconBtn,.cfOutline){background:#fff!important;color:#19355c!important;-webkit-text-fill-color:#19355c!important}
#tab-categories :is(#saveCategoriesWorkspaceBtn,.cfPrimary,.cfDanger){color:#fff!important;-webkit-text-fill-color:#fff!important}
#tab-categories #saveCategoriesWorkspaceBtn,#tab-categories .cfPrimary{background:#126cea!important;border-color:#126cea!important}
#tab-categories .cfDanger{background:#e4515b!important;border-color:#e4515b!important}

/* The approved category grid has ten columns. Keep long category names and
   technical codes readable without allowing either cell to paint over the
   next column; the panel owns its horizontal scroll on narrow viewports. */
#tab-categories .cfCategoriesTable{min-width:1180px!important;table-layout:fixed}
#tab-categories .cfCategoriesTable th:nth-child(1){width:178px}
#tab-categories .cfCategoriesTable th:nth-child(2){width:170px}
#tab-categories .cfCategoriesTable th:nth-child(3){width:122px}
#tab-categories .cfCategoriesTable th:nth-child(4){width:145px}
#tab-categories .cfCategoriesTable th:nth-child(5),#tab-categories .cfCategoriesTable th:nth-child(6){width:74px}
#tab-categories .cfCategoriesTable th:nth-child(7),#tab-categories .cfCategoriesTable th:nth-child(8){width:112px}
#tab-categories .cfCategoriesTable th:nth-child(9){width:116px}
#tab-categories .cfCategoriesTable th:nth-child(10){width:108px}
#tab-categories .cfCategoriesTable :is(.cfCategoryName,.cfCategoryCode){overflow:hidden;text-overflow:ellipsis}
#tab-categories .cfCategoryType{background:#f0eaff;border-radius:999px;color:#6844c7!important;-webkit-text-fill-color:#6844c7!important;font-weight:800;padding:5px 8px}
#tab-categories .cfCreateForm select{border:1px solid #aebfd3!important;border-radius:8px;background:#fff!important;color:#2a405f!important;-webkit-text-fill-color:#2a405f!important;height:40px;margin-top:6px;padding:0 11px;width:100%}
#tab-categories :is(.cfCategoryForm label,.cfCreateForm label,.cfToggle,.cfRolesEditor>b){color:#0d2347!important;-webkit-text-fill-color:#0d2347!important}
