/* The product theme owns appearance; inherited files provide layout mechanics. */
@layer overrides, legacy, theme, components;
@import url('/vendor/bootstrap/css/bootstrap-grid.min.css') layer(legacy);
@import url('/css/app.css') layer(legacy);
@import url('/css/controls.css') layer(legacy);
@import url('/css/erp.css') layer(legacy);
@import url('/css/soft1.css') layer(legacy);
@import url('/css/workspace-ui.css') layer(legacy);
@import url('/css/erp-grid.css') layer(legacy);
@import url('/css/records.css') layer(legacy);
@import url('/css/register.css') layer(legacy);
@import url('/css/settings.css') layer(legacy);
@import url('/css/leads.css') layer(legacy);
@import url('/css/standalone.css?v=20261113-rounded') layer(theme);
@import url('/css/components.css?v=20261113-company-corners') layer(components);
@import url('/css/header.css?v=20261113-rounded') layer(components);
@import url('/css/elevation.css?v=20261113-rounded') layer(components);
@import url('/css/prospecting.css?v=20261104-record-badges') layer(components);
@import url('/css/organization.css?v=20261106-company-api') layer(components);
@import url('/css/company-search.css?v=20261106') layer(components);
@import url('/css/production-v1.css?v=1') layer(components);
@import url('/css/account-settings.css?v=20261113-rounded') layer(components);
@import url('/css/lead-import.css?v=20261113-quick-list') layer(components);
@import url('/css/scrollbars.css?v=20261113-scrollbars');

/* First layer deliberately owns the legacy important shape/paint exceptions. */
@layer overrides {
  @media (max-width: 600px) {
    /* A frozen company column can obscure every other field on small screens. */
    body.leads-standalone .leads-company-table .erp-grid-sticky-first { position: static !important; }
  }
  :is(body.leads-standalone, body.leads-login) [hidden] { display: none !important; }
  :is(body.leads-standalone, body.leads-login) :is(input, textarea):is(:disabled, [readonly]) { color: var(--leads-muted) !important; }
  :is(body.leads-standalone, body.leads-login) :where(button, .btn, summary, .app-select-control, .app-date-input, .app-time-input, .app-date-toggle, .app-time-toggle, input:not([type='checkbox']):not([type='radio']):not([type='hidden']), textarea, .workspace-tab) {
    border-radius: var(--ui-radius-control) !important;
  }
  body.leads-standalone :is(.app-control-popover, .leads-activity-list, .erp-grid-menu-panel, .account-popover) { border-radius: var(--ui-radius-menu) !important; }
  body.leads-standalone :is(.app-control-popover, .leads-activity-list) :is(button, .app-select-option, .app-select-search-field) { border-radius: var(--ui-radius-pill) !important; }
  :is(body.leads-standalone, body.leads-login) :is(.btn, .circle, .account-trigger, .app-nav-link, .workspace-tab, .erp-phase-tabs > a, .inline-search, .workspace-date, .erp-grid-columns-button, .erp-grid-menu > summary, .erp-grid-reset, .erp-grid-page-button, .avatar, .date-icon, .leads-panel-symbol, .login-symbol) { border-radius: var(--ui-radius-pill) !important; }
  body.leads-standalone :is(.inline-search input[type='search'], .workspace-tab > [role='tab'], .work-tab-close) { border-radius: var(--ui-radius-pill) !important; }
  body.leads-standalone :is(.app-date-input, .app-time-input) { border-radius: var(--ui-radius-control) 0 0 var(--ui-radius-control) !important; }
  body.leads-standalone :is(.app-date-toggle, .app-time-toggle) { border-radius: 0 var(--ui-radius-control) var(--ui-radius-control) 0 !important; }
  body.leads-standalone .leads-filter-options :where(input:not(.app-native-control):not([type='hidden']), .app-select-control),
  body.leads-standalone .insight-people-filters .app-select-control { border-radius: var(--ui-radius-pill) !important; }
  body.leads-login .leads-login-panel input:not([type='hidden']) { border-radius: var(--ui-radius-pill) !important; }
  body.leads-standalone .prospect-save-search input:not([type='hidden']) { border-radius: var(--ui-radius-pill) !important; }
  body.leads-standalone .leads-filter-options .app-date-input { min-height: 42px !important; height: 42px !important; border-radius: var(--ui-radius-pill) 0 0 var(--ui-radius-pill) !important; }
  body.leads-standalone .leads-filter-options .app-date-toggle { min-height: 36px !important; height: 36px !important; border-radius: var(--ui-radius-pill) !important; }
  body.leads-standalone .leads-company-table .erp-grid-sticky-first { background: var(--leads-card) !important; }
  body.leads-standalone .register thead th { background: var(--leads-card) !important; }
  body.leads-standalone .leads-company-table tbody tr:has([data-leads-check]:checked) > td { background: var(--leads-warm) !important; }
}
