/* Only the approved shell and presentation colors; original business controls retain IDs. */
.crm-theme-converted{font-family:"Segoe UI",sans-serif;color:var(--ink);background:var(--workspace);}
.crm-theme-converted>.sidebar{position:static;width:auto;min-width:0;height:auto;padding:0;box-shadow:none;}
.crm-theme-converted .theme-navigation .nav-list{padding:0;gap:0;}
.crm-theme-converted .theme-navigation-link:is(:hover,:focus-visible,.active,.is-active,.suite-current){color:var(--ink);}
.crm-theme-converted>.workspace{grid-area:workspace;min-width:0;min-height:0;margin:0;width:auto;max-width:none;background:var(--workspace);}
.crm-theme-converted>.topbar{grid-area:topbar;min-width:0;padding:0 1rem;display:flex;border-bottom:1px solid var(--line);color:var(--ink);background:var(--workspace);}
.crm-theme-converted>.workspace>.topbar{display:block;border:0;padding:0 0 1rem;background:transparent;}
.crm-theme-converted .theme-navigation-footer{display:flex;flex-direction:column;gap:.35rem;}
.crm-theme-converted.theme-navigation-collapsed .theme-navigation-footer,.crm-theme-converted.theme-navigation-top .theme-navigation-footer{display:none;}
.crm-theme-converted .nav-item[hidden],.crm-theme-converted [data-theme-restricted][hidden]{display:none!important;}
.crm-theme-converted .admin-subnav{display:none;} /* Same route links live in the real second column. */
.crm-theme-converted .panel,.crm-theme-converted .dashboard-action,.crm-theme-converted .dashboard-overview-panel,.crm-theme-converted .module,.crm-theme-converted .stat-card,.crm-theme-converted .pipeline-stage{background:var(--surface);color:var(--ink);border-color:var(--line);box-shadow:none;}
.crm-theme-converted input,.crm-theme-converted select,.crm-theme-converted textarea{color:var(--ink);background:var(--surface);border-color:var(--line);}
.crm-theme-converted h1,.crm-theme-converted h2,.crm-theme-converted h3{color:var(--ink);}
.crm-theme-converted>.workspace>.page-header{margin-bottom:1.5rem;}
.crm-theme-converted>.workspace>.page-header h1{font-size:1.5rem;font-weight:650;}
.crm-theme-converted .theme-section-card{display:block;}
.crm-theme-converted .theme-module-grid{margin:1rem 0 2rem;}
.crm-theme-converted .icon-sprite{position:absolute;width:0;height:0;overflow:hidden;}
/* THEME 1 controls and surfaces; workflow geometry is isolated in its own sheet. */
.crm-theme-converted [hidden]{display:none!important;}
.theme-business-content{color:var(--ink);--bg:var(--workspace);--page:var(--workspace);--panel:var(--surface);--panel-soft:var(--surface-soft);--text:var(--ink);--border:var(--line);--soft-line:var(--line);--teal:var(--accent);--teal-dark:var(--accent);--green:var(--success);--red:var(--danger);--amber:var(--muted);--shadow:none;}
.theme-business-content :is(.module,.detail-panel,.stage-column,.deal-card,.metric,.stat-card,.stack-card,.timeline-row,.detail-card,.dashboard-action,.analytics-summary article,.crm-schema-card,.client-sheet-card,.global-search-results){border:1px solid var(--line);border-radius:.55rem;background:var(--surface);color:var(--ink);box-shadow:none;}
.theme-business-content .stage-column{display:flex;flex-direction:column;}
.theme-business-content .column-actions{flex:none;align-items:center;}
.theme-business-content .stage-head{flex:none;}
.theme-business-content .stage-deals{flex:1;}
.theme-business-content :is(.stage-head,.panel-head,.detail-head,.module-head){padding:.85rem 1rem;border-bottom:1px solid var(--line);}
.theme-business-content :is(button,.button){align-self:start;font-size:.875rem;line-height:1.3;font-weight:500;}
.theme-business-content :is(button,.button):not(.button-primary):not(.button-danger){color:var(--ink);border-color:var(--line);background:var(--surface);}
.theme-business-content :is(button,.button):not(.button-primary):not(.button-danger):hover{background:var(--surface-soft);border-color:var(--muted);}
.theme-business-content :is(input,select,textarea){color:var(--ink);background:var(--surface);border-color:var(--line);}
.theme-business-content :is(input[type=checkbox],input[type=radio]){width:1.1rem;min-height:0;accent-color:var(--accent);}
.theme-business-content :is(.empty-state,.empty-stage,.detail-empty,.help-note,.analytics-note,.stage-head span,.metric span,.timeline-meta){color:var(--muted);}
.theme-business-content>.topbar{position:static;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;min-height:0;height:auto;padding:0 0 1rem;border:0;background:transparent;}
.theme-business-content .top-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;}
.theme-business-content :is(table,td,th){border-color:var(--line);color:var(--ink);}
.theme-business-content th{background:var(--surface-soft);}
.theme-business-content :is(.status-pill,.activity-kind-pill,.tag,.pill){display:inline-flex;align-items:center;padding:.18rem .48rem;border:1px solid var(--line);border-radius:99rem;color:var(--ink);background:var(--surface-soft);font-size:.75rem;}
.theme-business-dialog{width:min(440px,calc(100vw - 32px));padding:1.25rem;border:1px solid var(--line);}
.theme-business-dialog form,.theme-business-dialog label{display:grid;gap:.6rem;}
.theme-business-dialog form{gap:.85rem;}
.theme-business-dialog .panel-actions{display:flex;justify-content:flex-end;gap:.5rem;}
.theme-business-dialog [role=alert]:empty{display:none;}
.crm-theme-converted .theme-navigation-link svg{color:inherit;}
.crm-theme-converted.theme-navigation-top .theme-navigation-scroll>nav{flex-direction:row;}
.crm-theme-converted>.modal-backdrop.theme-business-content{position:fixed;inset:0;z-index:70;display:none;place-items:center;padding:1rem;background:rgb(78 85 96 / .45);}
.crm-theme-converted>.modal-backdrop.theme-business-content.open{display:grid;}
.theme-business-content .modal{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:.6rem;}
