/* crm-theme-light-fixes.bundle.css — generated by scripts/build_crm_light_fixes_bundle.sh */
/* DO NOT EDIT — modifica i part_* e rigenera; facade @import resta per audit */
/* === BEGIN crm-theme-light-fixes_part_01.css === */
/* crm-theme-light-fixes_part_01.css — tokens + remap pastelli Tailwind (Fase 1bis) */

/**
 * Correzioni leggibilità SOLO preset CRM «Light soft» (data-preset="light").
 * Non modificare regole globali dark: tutti i selettori sono scoped su [data-preset="light"].
 */

html[data-preset="light"],
body[data-preset="light"] {
  --ui-subtle: var(--crm-text-2, #334155);
  --ui-muted: var(--crm-text-3, #64748b);
}

/* Tailwind utility — testo su card chiare */
html[data-preset="light"] .text-white,
body[data-preset="light"] .text-white {
  --tw-text-opacity: 1;
  color: rgb(15 23 42 / var(--tw-text-opacity, 1)) !important;
}

/* ========== FASE 1BIS — remap globale pastelli dark→light (tutto CRM) ==========
 * Utility Tailwind 100–300 pensate per fondo scuro: su light sono illeggibili
 * (es. KPI «Ricerca AI» text-sky-200 su card grigia). Scope: tutto il preset light,
 * non solo .ui-card, così copre dashboard, modali, settings, report, detail.
 */
html[data-preset="light"] .text-sky-100,
html[data-preset="light"] .text-sky-200,
html[data-preset="light"] .text-sky-300,
html[data-preset="light"] .text-cyan-100,
html[data-preset="light"] .text-cyan-200,
html[data-preset="light"] .text-cyan-300,
html[data-preset="light"] .text-blue-100,
html[data-preset="light"] .text-blue-200,
html[data-preset="light"] .text-blue-300,
body[data-preset="light"] .text-sky-100,
body[data-preset="light"] .text-sky-200,
body[data-preset="light"] .text-sky-300,
body[data-preset="light"] .text-cyan-100,
body[data-preset="light"] .text-cyan-200,
body[data-preset="light"] .text-cyan-300,
body[data-preset="light"] .text-blue-100,
body[data-preset="light"] .text-blue-200,
body[data-preset="light"] .text-blue-300 {
  --tw-text-opacity: 1;
  color: rgb(3 105 161 / var(--tw-text-opacity, 1)) !important; /* sky-700 */
}

html[data-preset="light"] .text-indigo-100,
html[data-preset="light"] .text-indigo-200,
html[data-preset="light"] .text-indigo-300,
html[data-preset="light"] .text-violet-100,
html[data-preset="light"] .text-violet-200,
html[data-preset="light"] .text-violet-300,
html[data-preset="light"] .text-purple-100,
html[data-preset="light"] .text-purple-200,
html[data-preset="light"] .text-purple-300,
body[data-preset="light"] .text-indigo-100,
body[data-preset="light"] .text-indigo-200,
body[data-preset="light"] .text-indigo-300,
body[data-preset="light"] .text-violet-100,
body[data-preset="light"] .text-violet-200,
body[data-preset="light"] .text-violet-300,
body[data-preset="light"] .text-purple-100,
body[data-preset="light"] .text-purple-200,
body[data-preset="light"] .text-purple-300 {
  --tw-text-opacity: 1;
  color: rgb(91 33 182 / var(--tw-text-opacity, 1)) !important; /* violet-800 */
}

html[data-preset="light"] .text-emerald-100,
html[data-preset="light"] .text-emerald-200,
html[data-preset="light"] .text-emerald-300,
html[data-preset="light"] .text-green-100,
html[data-preset="light"] .text-green-200,
html[data-preset="light"] .text-green-300,
html[data-preset="light"] .text-teal-100,
html[data-preset="light"] .text-teal-200,
html[data-preset="light"] .text-teal-300,
html[data-preset="light"] .text-lime-100,
html[data-preset="light"] .text-lime-200,
html[data-preset="light"] .text-lime-300,
body[data-preset="light"] .text-emerald-100,
body[data-preset="light"] .text-emerald-200,
body[data-preset="light"] .text-emerald-300,
body[data-preset="light"] .text-green-100,
body[data-preset="light"] .text-green-200,
body[data-preset="light"] .text-green-300,
body[data-preset="light"] .text-teal-100,
body[data-preset="light"] .text-teal-200,
body[data-preset="light"] .text-teal-300,
body[data-preset="light"] .text-lime-100,
body[data-preset="light"] .text-lime-200,
body[data-preset="light"] .text-lime-300 {
  --tw-text-opacity: 1;
  color: rgb(4 120 87 / var(--tw-text-opacity, 1)) !important; /* emerald-700 */
}

html[data-preset="light"] .text-amber-100,
html[data-preset="light"] .text-amber-200,
html[data-preset="light"] .text-amber-300,
html[data-preset="light"] .text-yellow-100,
html[data-preset="light"] .text-yellow-200,
html[data-preset="light"] .text-yellow-300,
html[data-preset="light"] .text-orange-100,
html[data-preset="light"] .text-orange-200,
html[data-preset="light"] .text-orange-300,
body[data-preset="light"] .text-amber-100,
body[data-preset="light"] .text-amber-200,
body[data-preset="light"] .text-amber-300,
body[data-preset="light"] .text-yellow-100,
body[data-preset="light"] .text-yellow-200,
body[data-preset="light"] .text-yellow-300,
body[data-preset="light"] .text-orange-100,
body[data-preset="light"] .text-orange-200,
body[data-preset="light"] .text-orange-300 {
  --tw-text-opacity: 1;
  color: rgb(180 83 9 / var(--tw-text-opacity, 1)) !important; /* amber-700 */
}

html[data-preset="light"] .text-rose-100,
html[data-preset="light"] .text-rose-200,
html[data-preset="light"] .text-rose-300,
html[data-preset="light"] .text-red-100,
html[data-preset="light"] .text-red-200,
html[data-preset="light"] .text-red-300,
html[data-preset="light"] .text-pink-100,
html[data-preset="light"] .text-pink-200,
html[data-preset="light"] .text-pink-300,
html[data-preset="light"] .text-fuchsia-100,
html[data-preset="light"] .text-fuchsia-200,
html[data-preset="light"] .text-fuchsia-300,
body[data-preset="light"] .text-rose-100,
body[data-preset="light"] .text-rose-200,
body[data-preset="light"] .text-rose-300,
body[data-preset="light"] .text-red-100,
body[data-preset="light"] .text-red-200,
body[data-preset="light"] .text-red-300,
body[data-preset="light"] .text-pink-100,
body[data-preset="light"] .text-pink-200,
body[data-preset="light"] .text-pink-300,
body[data-preset="light"] .text-fuchsia-100,
body[data-preset="light"] .text-fuchsia-200,
body[data-preset="light"] .text-fuchsia-300 {
  --tw-text-opacity: 1;
  color: rgb(190 18 60 / var(--tw-text-opacity, 1)) !important; /* rose-700 */
}

html[data-preset="light"] .text-slate-100,
html[data-preset="light"] .text-slate-200,
html[data-preset="light"] .text-gray-100,
html[data-preset="light"] .text-gray-200,
html[data-preset="light"] .text-zinc-100,
html[data-preset="light"] .text-zinc-200,
html[data-preset="light"] .text-neutral-100,
html[data-preset="light"] .text-neutral-200,
body[data-preset="light"] .text-slate-100,
body[data-preset="light"] .text-slate-200,
body[data-preset="light"] .text-gray-100,
body[data-preset="light"] .text-gray-200,
body[data-preset="light"] .text-zinc-100,
body[data-preset="light"] .text-zinc-200,
body[data-preset="light"] .text-neutral-100,
body[data-preset="light"] .text-neutral-200 {
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1)) !important; /* slate-700 */
}

html[data-preset="light"] .text-slate-300,
html[data-preset="light"] .text-slate-400,
html[data-preset="light"] .text-gray-300,
html[data-preset="light"] .text-gray-400,
html[data-preset="light"] .text-zinc-300,
html[data-preset="light"] .text-zinc-400,
body[data-preset="light"] .text-slate-300,
body[data-preset="light"] .text-slate-400,
body[data-preset="light"] .text-gray-300,
body[data-preset="light"] .text-gray-400,
body[data-preset="light"] .text-zinc-300,
body[data-preset="light"] .text-zinc-400 {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1)) !important; /* slate-600 */
}

/* Opacity variants (text-sky-300/80) */
html[data-preset="light"] [class*="text-sky-"][class*="/"],
html[data-preset="light"] [class*="text-cyan-"][class*="/"],
html[data-preset="light"] [class*="text-blue-"][class*="/"],
body[data-preset="light"] [class*="text-sky-"][class*="/"],
body[data-preset="light"] [class*="text-cyan-"][class*="/"],
body[data-preset="light"] [class*="text-blue-"][class*="/"] {
  color: #0369a1 !important;
}

/* Badge/pill sky (agenzie, SEO AI-ready) */
html[data-preset="light"] [class*="border-sky-400"][class*="text-sky-"],
html[data-preset="light"] [class*="bg-sky-500/10"][class*="text-sky-"],
html[data-preset="light"] [class*="bg-sky-400/10"][class*="text-sky-"],
body[data-preset="light"] [class*="border-sky-400"][class*="text-sky-"],
body[data-preset="light"] [class*="bg-sky-500/10"][class*="text-sky-"],
body[data-preset="light"] [class*="bg-sky-400/10"][class*="text-sky-"] {
  border-color: rgba(3, 105, 161, 0.28) !important;
  background: rgba(14, 165, 233, 0.12) !important;
  color: #0369a1 !important;
}

html[data-preset="light"] .ui-card .text-slate-300,
html[data-preset="light"] .ui-panel .text-slate-300,
body[data-preset="light"] .ui-card .text-slate-300,
body[data-preset="light"] .ui-panel .text-slate-300 {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1)) !important;
}

html[data-preset="light"] .ui-card .text-slate-400,
html[data-preset="light"] .ui-panel .text-slate-400,
body[data-preset="light"] .ui-card .text-slate-400,
body[data-preset="light"] .ui-panel .text-slate-400 {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1)) !important;
}

/* Richieste immobili */
html[data-preset="light"] .crm-req-contact__link:hover,
body[data-preset="light"] .crm-req-contact__link:hover {
  color: #0f172a !important;
}

/* «Apri task» è ui-btn-primary: testo BIANCO (non blu scuro sul blu) */
html[data-preset="light"] .crm-req-card__task-link.ui-btn-primary,
html[data-preset="light"] a.ui-btn.ui-btn-primary.crm-req-card__task-link,
body[data-preset="light"] .crm-req-card__task-link.ui-btn-primary,
body[data-preset="light"] a.ui-btn.ui-btn-primary.crm-req-card__task-link {
  color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
  filter: none !important;
}

html[data-preset="light"] .crm-req-card__task-link.ui-btn-primary:hover,
html[data-preset="light"] a.ui-btn.ui-btn-primary.crm-req-card__task-link:hover,
body[data-preset="light"] .crm-req-card__task-link.ui-btn-primary:hover,
body[data-preset="light"] a.ui-btn.ui-btn-primary.crm-req-card__task-link:hover {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Link task non-primary (fallback) */
html[data-preset="light"] .crm-req-card__task-link:not(.ui-btn-primary),
body[data-preset="light"] .crm-req-card__task-link:not(.ui-btn-primary) {
  color: #1d4ed8 !important;
}

html[data-preset="light"] .crm-req-message__text,
body[data-preset="light"] .crm-req-message__text {
  background: #f1f5f9 !important;
  border-left-color: rgba(37, 99, 235, 0.55) !important;
  color: #0f172a !important;
}

html[data-preset="light"] .crm-req-message__label,
body[data-preset="light"] .crm-req-message__label {
  color: #64748b !important;
}

/* Profilo agenzia — subnav inline */
html[data-preset="light"] .agency-settings-subnav,
body[data-preset="light"] .agency-settings-subnav {
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: rgba(15, 23, 42, 0.04) !important;
}

html[data-preset="light"] .agency-settings-subnav a,
body[data-preset="light"] .agency-settings-subnav a {
  color: #64748b !important;
}

html[data-preset="light"] .agency-settings-subnav a:hover,
html[data-preset="light"] .agency-settings-subnav a.is-active,
body[data-preset="light"] .agency-settings-subnav a:hover,
body[data-preset="light"] .agency-settings-subnav a.is-active {
  color: #0f172a !important;
  background: rgba(15, 23, 42, 0.07) !important;
}

html[data-preset="light"] .agency-profile-logo-thumb,
body[data-preset="light"] .agency-profile-logo-thumb {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: rgba(15, 23, 42, 0.04) !important;
}

html[data-preset="light"] .agency-profile-registry-divider,
body[data-preset="light"] .agency-profile-registry-divider {
  border-top-color: rgba(15, 23, 42, 0.1) !important;
}

/* Guida CRM */
html[data-preset="light"] .crm-help-search,
body[data-preset="light"] .crm-help-search {
  color: #0f172a !important;
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-preset="light"] .crm-help-toc a,
html[data-preset="light"] .crm-help-quick-links a,
html[data-preset="light"] .crm-help-toolbar-btn,
body[data-preset="light"] .crm-help-toc a,
body[data-preset="light"] .crm-help-quick-links a,
body[data-preset="light"] .crm-help-toolbar-btn {
  color: #0f172a !important;
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-preset="light"] .crm-help-toc a:hover,
html[data-preset="light"] .crm-help-quick-links a:hover,
html[data-preset="light"] .crm-help-toolbar-btn:hover,
body[data-preset="light"] .crm-help-toc a:hover,
body[data-preset="light"] .crm-help-quick-links a:hover,
body[data-preset="light"] .crm-help-toolbar-btn:hover {
  background: #f1f5f9 !important;
}

html[data-preset="light"] .crm-help-faq details,
html[data-preset="light"] .crm-help-path-card,
body[data-preset="light"] .crm-help-faq details,
body[data-preset="light"] .crm-help-path-card {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-preset="light"] .crm-help-faq-answer,
body[data-preset="light"] .crm-help-faq-answer {
  border-top-color: #e2e8f0 !important;
  color: #475569 !important;
}

html[data-preset="light"] .crm-help-empty,
body[data-preset="light"] .crm-help-empty {
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}

html[data-preset="light"] .crm-help-hint,
body[data-preset="light"] .crm-help-hint {
  background: rgba(15, 23, 42, 0.05) !important;
  color: #475569 !important;
}

html[data-preset="light"] .crm-help-tip,
body[data-preset="light"] .crm-help-tip {
  background: #ecfdf5 !important;
  border-color: #bbf7d0 !important;
  color: #166534 !important;
}

/* Task detail / checklist upload */
html[data-preset="light"] form[action*="/checklist/"][enctype],
body[data-preset="light"] form[action*="/checklist/"][enctype] {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: rgba(15, 23, 42, 0.03) !important;
}

html[data-preset="light"] form[action*="/checklist/"][enctype] input[type="file"],
body[data-preset="light"] form[action*="/checklist/"][enctype] input[type="file"] {
  color: #334155 !important;
}

html[data-preset="light"] form[action*="/checklist/"][enctype] input[type="file"]::file-selector-button,
html[data-preset="light"] .checklist-attach-upload-form input[type="file"]::file-selector-button,
body[data-preset="light"] form[action*="/checklist/"][enctype] input[type="file"]::file-selector-button,
body[data-preset="light"] .checklist-attach-upload-form input[type="file"]::file-selector-button {
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}

html[data-preset="light"] .task-attachment-card,
body[data-preset="light"] .task-attachment-card {
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: rgba(15, 23, 42, 0.03) !important;
}

html[data-preset="light"] .ui-btn.ui-btn-primary.task-attachment-btn,
body[data-preset="light"] .ui-btn.ui-btn-primary.task-attachment-btn {
  background: rgba(15, 23, 42, 0.08) !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
}

html[data-preset="light"] .ui-btn.ui-btn-ghost.task-attachment-btn,
body[data-preset="light"] .ui-btn.ui-btn-ghost.task-attachment-btn {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

/* Import Getrix preview */
html[data-preset="light"] #getrix-preview-upload-card,
body[data-preset="light"] #getrix-preview-upload-card {
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 107, 75, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)) !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
}

html[data-preset="light"] #getrix-preview-upload-card h2,
body[data-preset="light"] #getrix-preview-upload-card h2 {
  color: #0f172a !important;
}

html[data-preset="light"] #getrix-preview-upload-card .getrix-desc,
html[data-preset="light"] #getrix-preview-upload-card .getrix-kicker,
html[data-preset="light"] #getrix-preview-upload-card .getrix-help,
body[data-preset="light"] #getrix-preview-upload-card .getrix-desc,
body[data-preset="light"] #getrix-preview-upload-card .getrix-kicker,
body[data-preset="light"] #getrix-preview-upload-card .getrix-help {
  color: #64748b !important;
}

html[data-preset="light"] #getrix-preview-upload-card .getrix-mini,
body[data-preset="light"] #getrix-preview-upload-card .getrix-mini {
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #64748b !important;
}

html[data-preset="light"] #getrix-preview-upload-card .getrix-mini strong,
body[data-preset="light"] #getrix-preview-upload-card .getrix-mini strong {
  color: #0f172a !important;
}

html[data-preset="light"] #getrix-preview-upload-card .getrix-upload-box,
body[data-preset="light"] #getrix-preview-upload-card .getrix-upload-box {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-preset="light"] #getrix-preview-upload-card .getrix-label,
body[data-preset="light"] #getrix-preview-upload-card .getrix-label {
  color: #334155 !important;
}

html[data-preset="light"] #getrix-preview-upload-card input[type="file"],
body[data-preset="light"] #getrix-preview-upload-card input[type="file"] {
  background: #fff !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

/* Report venditori — tabella legacy */
html[data-preset="light"] .seller-report-shell .text-slate-400,
body[data-preset="light"] .seller-report-shell .text-slate-400 {
  color: #64748b !important;
}

html[data-preset="light"] .seller-report-shell > .rounded-2xl,
body[data-preset="light"] .seller-report-shell > .rounded-2xl {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

html[data-preset="light"] .seller-report-shell thead,
body[data-preset="light"] .seller-report-shell thead {
  background: rgba(15, 23, 42, 0.05) !important;
  color: #334155 !important;
}

html[data-preset="light"] .seller-report-shell tbody,
body[data-preset="light"] .seller-report-shell tbody {
  color: #0f172a !important;
}

html[data-preset="light"] .seller-report-shell .divide-white\/10 > :not([hidden]) ~ :not([hidden]),
body[data-preset="light"] .seller-report-shell .divide-white\/10 > :not([hidden]) ~ :not([hidden]) {
  border-color: rgba(15, 23, 42, 0.08) !important;
}

/* Page hero CRM — preset light soft */
html[data-preset="light"] .app-page-hero,
body[data-preset="light"] .app-page-hero {
  color: #0f172a;
}

html[data-preset="light"] .app-page-hero-brand,
body[data-preset="light"] .app-page-hero-brand {
  color: #64748b !important;
}

html[data-preset="light"] .app-page-hero-title,
body[data-preset="light"] .app-page-hero-title {
  color: #0f172a !important;
}

html[data-preset="light"] .app-page-hero-user,
body[data-preset="light"] .app-page-hero-user {
  color: #475569 !important;
}

/* === END crm-theme-light-fixes_part_01.css === */
/* === BEGIN crm-theme-light-fixes_part_02.css === */
/* crm-theme-light-fixes_part_02.css — badge/chip/utility globali light */

/* =============================================================================
   LEGGIBILITÀ GLOBALE — preset light (layer finale, dopo extra_head)
   Corregge utility Tailwind pensate per tema scuro e override bianchi globali.
   ============================================================================= */

/* Badge / chip: annulla body[data-theme] .ui-badge { color:#fff } */
html[data-preset="light"] .ui-badge,
body[data-preset="light"] .ui-badge {
  color: #334155 !important;
  background: rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-preset="light"] .ui-badge-success,
body[data-preset="light"] .ui-badge-success {
  color: #166534 !important;
  background: #ecfdf5 !important;
  border-color: rgba(22, 101, 52, 0.22) !important;
}

html[data-preset="light"] .ui-badge-danger,
body[data-preset="light"] .ui-badge-danger {
  color: #b91c1c !important;
  background: #fef2f2 !important;
  border-color: rgba(185, 28, 28, 0.2) !important;
}

html[data-preset="light"] .ui-badge-info,
body[data-preset="light"] .ui-badge-info {
  color: #0e7490 !important;
  background: #ecfeff !important;
  border-color: rgba(14, 116, 144, 0.2) !important;
}

html[data-preset="light"] .ui-badge-warning,
body[data-preset="light"] .ui-badge-warning {
  color: #b45309 !important;
  background: #fffbeb !important;
  border-color: rgba(180, 83, 9, 0.2) !important;
}

html[data-preset="light"] .crm-property-chip,
html[data-preset="light"] .crm-property-state-pill,
body[data-preset="light"] .crm-property-chip,
body[data-preset="light"] .crm-property-state-pill {
  color: #334155 !important;
}

/* Deal badge: su light resta contrasto su pillola colorata (non forzare slate). */
html[data-preset="light"] .crm-property-deal.is-sale,
body[data-preset="light"] .crm-property-deal.is-sale {
  background: linear-gradient(180deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border-color: rgba(5, 150, 105, 0.55) !important;
}

html[data-preset="light"] .crm-property-deal.is-rent,
body[data-preset="light"] .crm-property-deal.is-rent {
  background: linear-gradient(180deg, #3b82f6, #2563eb) !important;
  color: #ffffff !important;
  border-color: rgba(37, 99, 235, 0.55) !important;
}

/* Utility Tailwind «scuro» su superfici chiare */
html[data-preset="light"] main .text-slate-200,
html[data-preset="light"] .ui-card .text-slate-200,
html[data-preset="light"] .ui-panel .text-slate-200,
html[data-preset="light"] .crm-property-fold .text-slate-200,
html[data-preset="light"] .crm-intelligence-modal .text-slate-200,
body[data-preset="light"] main .text-slate-200,
body[data-preset="light"] .ui-card .text-slate-200,
body[data-preset="light"] .ui-panel .text-slate-200,
body[data-preset="light"] .crm-property-fold .text-slate-200,
body[data-preset="light"] .crm-intelligence-modal .text-slate-200 {
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1)) !important;
}

html[data-preset="light"] main .text-slate-300,
html[data-preset="light"] .ui-card .text-slate-300,
html[data-preset="light"] .ui-panel .text-slate-300,
html[data-preset="light"] .crm-property-fold .text-slate-300,
html[data-preset="light"] .crm-intelligence-modal .text-slate-300,
html[data-preset="light"] .agency-list-card .text-slate-300,
html[data-preset="light"] .agency-card .text-slate-300,
body[data-preset="light"] main .text-slate-300,
body[data-preset="light"] .ui-card .text-slate-300,
body[data-preset="light"] .ui-panel .text-slate-300,
body[data-preset="light"] .crm-property-fold .text-slate-300,
body[data-preset="light"] .crm-intelligence-modal .text-slate-300,
body[data-preset="light"] .agency-list-card .text-slate-300,
body[data-preset="light"] .agency-card .text-slate-300 {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1)) !important;
}

html[data-preset="light"] main .text-emerald-300,
html[data-preset="light"] .ui-card .text-emerald-300,
html[data-preset="light"] .ui-panel .text-emerald-300,
html[data-preset="light"] .crm-property-fold .text-emerald-300,
html[data-preset="light"] .agency-list-card .text-emerald-300,
body[data-preset="light"] main .text-emerald-300,
body[data-preset="light"] .ui-card .text-emerald-300,
body[data-preset="light"] .ui-panel .text-emerald-300,
body[data-preset="light"] .crm-property-fold .text-emerald-300,
body[data-preset="light"] .agency-list-card .text-emerald-300 {
  --tw-text-opacity: 1;
  color: rgb(4 120 87 / var(--tw-text-opacity, 1)) !important;
}

html[data-preset="light"] main .text-emerald-400,
html[data-preset="light"] .ui-card .text-emerald-400,
html[data-preset="light"] .ui-panel .text-emerald-400,
html[data-preset="light"] .crm-property-fold .text-emerald-400,
body[data-preset="light"] main .text-emerald-400,
body[data-preset="light"] .ui-card .text-emerald-400,
body[data-preset="light"] .ui-panel .text-emerald-400,
body[data-preset="light"] .crm-property-fold .text-emerald-400 {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1)) !important;
}

html[data-preset="light"] main .text-amber-300,
html[data-preset="light"] .ui-card .text-amber-300,
html[data-preset="light"] .ui-panel .text-amber-300,
html[data-preset="light"] .crm-property-fold .text-amber-300,
body[data-preset="light"] main .text-amber-300,
body[data-preset="light"] .ui-card .text-amber-300,
body[data-preset="light"] .ui-panel .text-amber-300,
body[data-preset="light"] .crm-property-fold .text-amber-300 {
  --tw-text-opacity: 1;
  color: rgb(180 83 9 / var(--tw-text-opacity, 1)) !important;
}

html[data-preset="light"] main .text-amber-400,
html[data-preset="light"] .ui-card .text-amber-400,
html[data-preset="light"] .ui-panel .text-amber-400,
html[data-preset="light"] .crm-property-fold .text-amber-400,
body[data-preset="light"] main .text-amber-400,
body[data-preset="light"] .ui-card .text-amber-400,
body[data-preset="light"] .ui-panel .text-amber-400,
body[data-preset="light"] .crm-property-fold .text-amber-400 {
  --tw-text-opacity: 1;
  color: rgb(217 119 6 / var(--tw-text-opacity, 1)) !important;
}

/* Banner messaggi errore (crm-page-messages) */
html[data-preset="light"] main .text-rose-300,
html[data-preset="light"] .ui-card .text-rose-300,
html[data-preset="light"] .ui-panel .text-rose-300,
html[data-preset="light"] .crm-property-fold .text-rose-300,
body[data-preset="light"] main .text-rose-300,
body[data-preset="light"] .ui-card .text-rose-300,
body[data-preset="light"] .ui-panel .text-rose-300,
body[data-preset="light"] .crm-property-fold .text-rose-300 {
  --tw-text-opacity: 1;
  color: rgb(190 18 60 / var(--tw-text-opacity, 1)) !important;
}

/* Pill stato (Incarico, SEO, agenzie) */
html[data-preset="light"] main [class*="border-emerald-400/20"][class*="text-emerald-300"],
html[data-preset="light"] .ui-card [class*="border-emerald-400/20"][class*="text-emerald-300"],
body[data-preset="light"] main [class*="border-emerald-400/20"][class*="text-emerald-300"],
body[data-preset="light"] .ui-card [class*="border-emerald-400/20"][class*="text-emerald-300"] {
  border-color: rgba(5, 150, 105, 0.28) !important;
  background: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
}

html[data-preset="light"] main [class*="border-amber-400/20"][class*="text-amber-300"],
html[data-preset="light"] .ui-card [class*="border-amber-400/20"][class*="text-amber-300"],
body[data-preset="light"] main [class*="border-amber-400/20"][class*="text-amber-300"],
body[data-preset="light"] .ui-card [class*="border-amber-400/20"][class*="text-amber-300"] {
  border-color: rgba(217, 119, 6, 0.28) !important;
  background: rgba(245, 158, 11, 0.12) !important;
  color: #b45309 !important;
}

html[data-preset="light"] main [class*="border-rose-400/20"][class*="text-rose-300"],
html[data-preset="light"] .ui-card [class*="border-rose-400/20"][class*="text-rose-300"],
body[data-preset="light"] main [class*="border-rose-400/20"][class*="text-rose-300"],
body[data-preset="light"] .ui-card [class*="border-rose-400/20"][class*="text-rose-300"] {
  border-color: rgba(190, 18, 60, 0.28) !important;
  background: rgba(244, 63, 94, 0.12) !important;
  color: #be123c !important;
}

html[data-preset="light"] main [class*="bg-white/"][class*="text-slate-"],
html[data-preset="light"] .ui-card [class*="bg-white/"][class*="text-slate-"],
body[data-preset="light"] main [class*="bg-white/"][class*="text-slate-"],
body[data-preset="light"] .ui-card [class*="bg-white/"][class*="text-slate-"] {
  background: rgba(15, 23, 42, 0.06) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #334155 !important;
}

/* Pipeline */
html[data-preset="light"] .pipeline-title,
body[data-preset="light"] .pipeline-title {
  color: #0f172a !important;
}

html[data-preset="light"] .pipeline-subtitle,
html[data-preset="light"] .pipeline-card-title,
html[data-preset="light"] .pipeline-card-count,
html[data-preset="light"] .pipeline-card-value,
body[data-preset="light"] .pipeline-subtitle,
body[data-preset="light"] .pipeline-card-title,
body[data-preset="light"] .pipeline-card-count,
body[data-preset="light"] .pipeline-card-value {
  color: #334155 !important;
}

html[data-preset="light"] .pipeline-summary-pill,
html[data-preset="light"] .pipeline-card,
body[data-preset="light"] .pipeline-summary-pill,
body[data-preset="light"] .pipeline-card {
  color: #0f172a !important;
}

/* Lista immobili */
html[data-preset="light"] .crm-property-quality strong,
body[data-preset="light"] .crm-property-quality strong {
  color: #166534 !important;
  text-shadow: none !important;
}

html[data-preset="light"] .crm-property-buyer-alert,
body[data-preset="light"] .crm-property-buyer-alert {
  background: #ecfdf5 !important;
  border-color: rgba(22, 163, 74, 0.28) !important;
  color: #166534 !important;
}

/* Export portali — badge stato e titoli */
html[data-preset="light"] .pe-title,
html[data-preset="light"] .pe-stat-v,
html[data-preset="light"] .pe-annuncio-title,
html[data-preset="light"] .pe-date,
html[data-preset="light"] .pe-count,
html[data-preset="light"] .pe-quality-percent,
html[data-preset="light"] .pe-portal-name,
html[data-preset="light"] .pe-modal-title,
html[data-preset="light"] .pe-notebox-title,
body[data-preset="light"] .pe-title,
body[data-preset="light"] .pe-stat-v,
body[data-preset="light"] .pe-annuncio-title,
body[data-preset="light"] .pe-date,
body[data-preset="light"] .pe-count,
body[data-preset="light"] .pe-quality-percent,
body[data-preset="light"] .pe-portal-name,
body[data-preset="light"] .pe-modal-title,
body[data-preset="light"] .pe-notebox-title {
  color: #0f172a !important;
}

html[data-preset="light"] .pe-eyebrow,
html[data-preset="light"] .pe-sub,
html[data-preset="light"] .pe-stat-k,
html[data-preset="light"] .pe-annuncio-addr,
html[data-preset="light"] .pe-quality-meta,
body[data-preset="light"] .pe-eyebrow,
body[data-preset="light"] .pe-sub,
body[data-preset="light"] .pe-stat-k,
body[data-preset="light"] .pe-annuncio-addr,
body[data-preset="light"] .pe-quality-meta {
  color: #64748b !important;
}

html[data-preset="light"] .pe-quality-green,
body[data-preset="light"] .pe-quality-green {
  color: #047857 !important;
}

html[data-preset="light"] .pe-quality-yellow,
body[data-preset="light"] .pe-quality-yellow {
  color: #b45309 !important;
}

html[data-preset="light"] .pe-quality-red,
body[data-preset="light"] .pe-quality-red {
  color: #be123c !important;
}

/* Dashboard — pill e badge */
html[data-preset="light"] .dash-shell .dash-pill,
html[data-preset="light"] .dash-shell .dash-badge,
html[data-preset="light"] .dash-shell .dash-group-title,
body[data-preset="light"] .dash-shell .dash-pill,
body[data-preset="light"] .dash-shell .dash-badge,
body[data-preset="light"] .dash-shell .dash-group-title {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

html[data-preset="light"] .dash-shell .dash-badge b,
body[data-preset="light"] .dash-shell .dash-badge b {
  color: #0f172a !important;
}

/* Modali agency credentials */
html[data-preset="light"] .agency-portal-credentials-modal .text-slate-200,
body[data-preset="light"] .agency-portal-credentials-modal .text-slate-200 {
  color: #334155 !important;
  background: rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

/* === END crm-theme-light-fixes_part_02.css === */
/* === BEGIN crm-theme-light-fixes_part_03.css === */
/* crm-theme-light-fixes_part_03.css — superfici critiche Fase 1 (richieste, immobili, …) */

/* ========== Fase 1 audit light (2026-09-10) — superfici critiche ========== */

/* Inbox richieste — bordi/search pensati per dark */
html[data-preset="light"] .crm-req-search-group,
body[data-preset="light"] .crm-req-search-group {
  border-bottom-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-preset="light"] .crm-req-inbox-empty__title,
body[data-preset="light"] .crm-req-inbox-empty__title {
  color: #0f172a !important;
}

html[data-preset="light"] .crm-req-inbox-empty__text,
html[data-preset="light"] .crm-req-search__hint,
html[data-preset="light"] .crm-req-filters__label,
html[data-preset="light"] .crm-req-inbox__help,
body[data-preset="light"] .crm-req-inbox-empty__text,
body[data-preset="light"] .crm-req-search__hint,
body[data-preset="light"] .crm-req-filters__label,
body[data-preset="light"] .crm-req-inbox__help {
  color: #64748b !important;
}

/* Filtri Canale/Stato — ghost leggibili, primary con testo bianco nitido */
html[data-preset="light"] .crm-req-filters .ui-btn-ghost,
body[data-preset="light"] .crm-req-filters .ui-btn-ghost {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  text-shadow: none !important;
  filter: none !important;
}

html[data-preset="light"] .crm-req-filters .ui-btn-primary,
html[data-preset="light"] .crm-req-search .ui-btn-primary,
body[data-preset="light"] .crm-req-filters .ui-btn-primary,
body[data-preset="light"] .crm-req-search .ui-btn-primary {
  color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28) !important;
  filter: none !important;
}

html[data-preset="light"] .crm-req-filter__count,
body[data-preset="light"] .crm-req-filter__count {
  background: rgba(15, 23, 42, 0.08) !important;
  color: inherit !important;
}

html[data-preset="light"] .crm-req-filters .ui-btn-primary .crm-req-filter__count,
body[data-preset="light"] .crm-req-filters .ui-btn-primary .crm-req-filter__count {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

html[data-preset="light"] .crm-req-search .ui-input,
body[data-preset="light"] .crm-req-search .ui-input {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-preset="light"] .crm-req-search .ui-input::placeholder,
body[data-preset="light"] .crm-req-search .ui-input::placeholder {
  color: #94a3b8 !important;
}

html[data-preset="light"] .crm-req-card,
body[data-preset="light"] .crm-req-card {
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

html[data-preset="light"] .crm-req-card__title,
html[data-preset="light"] .crm-req-contact dd,
body[data-preset="light"] .crm-req-card__title,
body[data-preset="light"] .crm-req-contact dd {
  color: #0f172a !important;
}

html[data-preset="light"] .crm-req-contact dt,
html[data-preset="light"] .crm-req-contact__row dt,
body[data-preset="light"] .crm-req-contact dt,
body[data-preset="light"] .crm-req-contact__row dt {
  color: #475569 !important;
}

html[data-preset="light"] .crm-req-contact__row,
body[data-preset="light"] .crm-req-contact__row {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-preset="light"] .crm-req-card__time,
html[data-preset="light"] .crm-req-card__fallback-lines,
body[data-preset="light"] .crm-req-card__time,
body[data-preset="light"] .crm-req-card__fallback-lines {
  color: #64748b !important;
}

html[data-preset="light"] .crm-req-card__form--secondary,
body[data-preset="light"] .crm-req-card__form--secondary {
  border-top-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-preset="light"] .crm-req-routing-callout,
body[data-preset="light"] .crm-req-routing-callout {
  background: #fffbeb !important;
  border-color: rgba(180, 83, 9, 0.28) !important;
  color: #92400e !important;
}

html[data-preset="light"] .crm-req-routing-callout p,
html[data-preset="light"] .crm-req-routing-callout__hint,
body[data-preset="light"] .crm-req-routing-callout p,
body[data-preset="light"] .crm-req-routing-callout__hint {
  color: #78350f !important;
}

html[data-preset="light"] .crm-req-routing-callout strong,
html[data-preset="light"] .crm-req-routing-callout__title,
body[data-preset="light"] .crm-req-routing-callout strong,
body[data-preset="light"] .crm-req-routing-callout__title {
  color: #92400e !important;
}

html[data-preset="light"] .crm-req-assignee-chip,
html[data-preset="light"] .crm-req-assignee-now,
body[data-preset="light"] .crm-req-assignee-chip,
body[data-preset="light"] .crm-req-assignee-now {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-preset="light"] .crm-req-assignee-chip__label,
html[data-preset="light"] .crm-req-assignee-now__label,
html[data-preset="light"] .crm-req-assignee-hint,
html[data-preset="light"] .crm-req-assign-form__label,
body[data-preset="light"] .crm-req-assignee-chip__label,
body[data-preset="light"] .crm-req-assignee-now__label,
body[data-preset="light"] .crm-req-assignee-hint,
body[data-preset="light"] .crm-req-assign-form__label {
  color: #64748b !important;
}

html[data-preset="light"] .crm-req-assignee-chip__name,
html[data-preset="light"] .crm-req-assignee-now__name,
body[data-preset="light"] .crm-req-assignee-chip__name,
body[data-preset="light"] .crm-req-assignee-now__name {
  color: #0f172a !important;
}

html[data-preset="light"] .crm-req-card__sidebar,
body[data-preset="light"] .crm-req-card__sidebar {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: #f8fafc !important;
}

/* Lista immobili — titoli e meta su riga */
html[data-preset="light"] .crm-property-title,
html[data-preset="light"] .crm-property-row a.crm-property-title,
body[data-preset="light"] .crm-property-title,
body[data-preset="light"] .crm-property-row a.crm-property-title {
  color: #0f172a !important;
}

html[data-preset="light"] .crm-property-sub,
html[data-preset="light"] .crm-property-meta,
html[data-preset="light"] .crm-property-updated,
body[data-preset="light"] .crm-property-sub,
body[data-preset="light"] .crm-property-meta,
body[data-preset="light"] .crm-property-updated {
  color: #64748b !important;
}

html[data-preset="light"] .crm-property-row,
body[data-preset="light"] .crm-property-row {
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

html[data-preset="light"] .crm-property-code,
body[data-preset="light"] .crm-property-code {
  background: rgba(15, 23, 42, 0.82) !important;
  color: #ffffff !important;
}

/* Contatti */
html[data-preset="light"] .crm-contact-row,
html[data-preset="light"] .crm-contacts-table,
body[data-preset="light"] .crm-contact-row,
body[data-preset="light"] .crm-contacts-table {
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-preset="light"] .crm-contact-name,
html[data-preset="light"] .crm-contacts-table th,
html[data-preset="light"] .crm-contacts-table td,
body[data-preset="light"] .crm-contact-name,
body[data-preset="light"] .crm-contacts-table th,
body[data-preset="light"] .crm-contacts-table td {
  color: #0f172a !important;
}

/* Task detail — superfici upload/checklist già patchate; testo residuo */
html[data-preset="light"] .task-detail-shell,
html[data-preset="light"] .task-detail-section,
body[data-preset="light"] .task-detail-shell,
body[data-preset="light"] .task-detail-section {
  color: #0f172a !important;
}

html[data-preset="light"] .task-detail-shell .ui-subtle,
html[data-preset="light"] .task-detail-section .ui-subtle,
body[data-preset="light"] .task-detail-shell .ui-subtle,
body[data-preset="light"] .task-detail-section .ui-subtle {
  color: #64748b !important;
}

/* Dashboard KPI / titoli forzati #fff in CSS legacy */
html[data-preset="light"] .dash-shell h1,
html[data-preset="light"] .dash-shell h2,
html[data-preset="light"] .dash-shell h3,
html[data-preset="light"] .dash-shell .dash-title,
html[data-preset="light"] .dash-shell .dash-kpi-value,
html[data-preset="light"] .dash-shell .dash-kpi-label,
body[data-preset="light"] .dash-shell h1,
body[data-preset="light"] .dash-shell h2,
body[data-preset="light"] .dash-shell h3,
body[data-preset="light"] .dash-shell .dash-title,
body[data-preset="light"] .dash-shell .dash-kpi-value,
body[data-preset="light"] .dash-shell .dash-kpi-label {
  color: #0f172a !important;
}

html[data-preset="light"] .dash-shell .dash-kpi,
html[data-preset="light"] .dash-shell .dash-card,
body[data-preset="light"] .dash-shell .dash-kpi,
body[data-preset="light"] .dash-shell .dash-card {
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #0f172a !important;
}

/* Select / spotlight su light */
html[data-preset="light"] .crm-ui-select-trigger,
html[data-preset="light"] .crm-ui-select-menu,
body[data-preset="light"] .crm-ui-select-trigger,
body[data-preset="light"] .crm-ui-select-menu {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-preset="light"] .crm-spotlight,
html[data-preset="light"] .crm-spotlight-input,
body[data-preset="light"] .crm-spotlight,
body[data-preset="light"] .crm-spotlight-input {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-preset="light"] .crm-spotlight-hint,
html[data-preset="light"] .crm-spotlight-empty,
body[data-preset="light"] .crm-spotlight-hint,
body[data-preset="light"] .crm-spotlight-empty {
  color: #64748b !important;
}

/* Eventi / agenda */
html[data-preset="light"] .crm-events-list,
html[data-preset="light"] .crm-event-row,
body[data-preset="light"] .crm-events-list,
body[data-preset="light"] .crm-event-row {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

/* === END crm-theme-light-fixes_part_03.css === */
/* === BEGIN crm-theme-light-fixes_part_04.css === */
/* crm-theme-light-fixes_part_04.css — KPI/hex/coach/pipeline hex (Fase 1bis) */

/* ========== FASE 1BIS — hex pastello hardcoded + box/modali ========== */

/* Dashboard KPI numero (override anche se Tailwind perde o è inline) */
html[data-preset="light"] .dash-shell .dash-kpi-number,
body[data-preset="light"] .dash-shell .dash-kpi-number {
  color: #0f172a !important;
}

html[data-preset="light"] .dash-shell .dash-kpi-number.text-sky-100,
html[data-preset="light"] .dash-shell .dash-kpi-number.text-sky-200,
html[data-preset="light"] .dash-shell .dash-kpi-number.text-sky-300,
html[data-preset="light"] .dash-shell .dash-kpi-number.text-cyan-100,
html[data-preset="light"] .dash-shell .dash-kpi-number.text-cyan-200,
body[data-preset="light"] .dash-shell .dash-kpi-number.text-sky-100,
body[data-preset="light"] .dash-shell .dash-kpi-number.text-sky-200,
body[data-preset="light"] .dash-shell .dash-kpi-number.text-sky-300,
body[data-preset="light"] .dash-shell .dash-kpi-number.text-cyan-100,
body[data-preset="light"] .dash-shell .dash-kpi-number.text-cyan-200 {
  color: #0369a1 !important;
}

html[data-preset="light"] .dash-shell .dash-kpi-number.text-amber-200,
html[data-preset="light"] .dash-shell .dash-kpi-number.text-amber-300,
html[data-preset="light"] .dash-shell .dash-kpi-number.text-amber-100,
body[data-preset="light"] .dash-shell .dash-kpi-number.text-amber-200,
body[data-preset="light"] .dash-shell .dash-kpi-number.text-amber-300,
body[data-preset="light"] .dash-shell .dash-kpi-number.text-amber-100 {
  color: #b45309 !important;
}

html[data-preset="light"] .dash-shell .dash-kpi-note,
html[data-preset="light"] .dash-shell .dash-attention-link,
body[data-preset="light"] .dash-shell .dash-kpi-note,
body[data-preset="light"] .dash-shell .dash-attention-link {
  color: #64748b !important;
}

html[data-preset="light"] .dash-shell .dash-attention-link:hover,
body[data-preset="light"] .dash-shell .dash-attention-link:hover {
  color: #1d4ed8 !important;
}

/* Task badges (#93c5fd / #6ee7b7 / #fcd34d) */
html[data-preset="light"] .crm-tasks-kind-badge[data-kind="pipeline"],
body[data-preset="light"] .crm-tasks-kind-badge[data-kind="pipeline"] {
  color: #1d4ed8 !important;
  background: rgba(37, 99, 235, 0.1) !important;
  border-color: rgba(37, 99, 235, 0.28) !important;
}

html[data-preset="light"] .crm-tasks-kind-badge[data-kind="property_todo"],
body[data-preset="light"] .crm-tasks-kind-badge[data-kind="property_todo"] {
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.28) !important;
}

html[data-preset="light"] .crm-tasks-kind-badge[data-kind="activity"],
body[data-preset="light"] .crm-tasks-kind-badge[data-kind="activity"] {
  color: #b45309 !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}

html[data-preset="light"] .crm-tasks-import-badge,
body[data-preset="light"] .crm-tasks-import-badge {
  color: #9a3412 !important;
  background: rgba(216, 78, 46, 0.1) !important;
  border-color: rgba(216, 78, 46, 0.28) !important;
}

/* Contatti — lead badge */
html[data-preset="light"] .crm-lead-badge--qualified,
body[data-preset="light"] .crm-lead-badge--qualified {
  color: #1d4ed8 !important;
}

html[data-preset="light"] .crm-lead-badge--new,
html[data-preset="light"] .crm-lead-badge--cold,
body[data-preset="light"] .crm-lead-badge--new,
body[data-preset="light"] .crm-lead-badge--cold {
  color: #334155 !important;
}

/* Agent activity / coach / portal imports / catasto */
html[data-preset="light"] .agent-activity-table-banner,
body[data-preset="light"] .agent-activity-table-banner {
  color: #0f172a !important;
  background: rgba(37, 99, 235, 0.08) !important;
  border-bottom-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-preset="light"] .agent-activity-table-banner__clear,
html[data-preset="light"] a.agent-kpi-goal-card__link:hover,
body[data-preset="light"] .agent-activity-table-banner__clear,
body[data-preset="light"] a.agent-kpi-goal-card__link:hover {
  color: #1d4ed8 !important;
}

html[data-preset="light"] .agent-activity-shell,
html[data-preset="light"] .agent-activity-kpis,
html[data-preset="light"] .agent-kpi-goal-card,
body[data-preset="light"] .agent-activity-shell,
body[data-preset="light"] .agent-activity-kpis,
body[data-preset="light"] .agent-kpi-goal-card {
  color: #0f172a !important;
}

/* Coach Rullo su Light soft: testo scuro su sfondo chiaro (allineato al tema). */
html[data-preset="light"] .crm-coach__balloon,
body[data-preset="light"] .crm-coach__balloon {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

html[data-preset="light"] .crm-coach__balloon::after,
body[data-preset="light"] .crm-coach__balloon::after {
  background: #ffffff !important;
  border-right-color: rgba(15, 23, 42, 0.14) !important;
  border-bottom-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-preset="light"] .crm-coach__greeting,
body[data-preset="light"] .crm-coach__greeting {
  color: #475569 !important;
}

html[data-preset="light"] .crm-coach__suggestions,
body[data-preset="light"] .crm-coach__suggestions {
  scrollbar-color: rgba(100, 116, 139, 0.45) transparent !important;
}

html[data-preset="light"] .crm-coach__suggestions::-webkit-scrollbar-thumb,
body[data-preset="light"] .crm-coach__suggestions::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.4) !important;
}

html[data-preset="light"] .crm-coach__link,
body[data-preset="light"] .crm-coach__link {
  color: #0f172a !important;
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
}

html[data-preset="light"] .crm-coach__link:hover,
html[data-preset="light"] .crm-coach__link:focus-visible,
body[data-preset="light"] .crm-coach__link:hover,
body[data-preset="light"] .crm-coach__link:focus-visible {
  background: #ecfdf5 !important;
  border-color: rgba(5, 150, 105, 0.35) !important;
}

html[data-preset="light"] .crm-coach__link-title,
body[data-preset="light"] .crm-coach__link-title {
  color: #047857 !important; /* emerald-700 su chiaro */
}

html[data-preset="light"] .crm-coach__link-body,
body[data-preset="light"] .crm-coach__link-body {
  color: #334155 !important;
}

html[data-preset="light"] .crm-coach__link--strategy,
body[data-preset="light"] .crm-coach__link--strategy {
  background: #ecfdf5 !important;
  border-color: rgba(5, 150, 105, 0.28) !important;
  border-left-color: #059669 !important;
}

html[data-preset="light"] .crm-coach__link--strategy .crm-coach__link-title,
body[data-preset="light"] .crm-coach__link--strategy .crm-coach__link-title {
  color: #047857 !important;
}

html[data-preset="light"] .crm-coach__link--fact,
body[data-preset="light"] .crm-coach__link--fact {
  background: #f0f9ff !important;
  border-color: rgba(3, 105, 161, 0.22) !important;
  border-left-color: #0284c7 !important;
}

html[data-preset="light"] .crm-coach__link--fact .crm-coach__link-title,
body[data-preset="light"] .crm-coach__link--fact .crm-coach__link-title {
  color: #0369a1 !important;
}

html[data-preset="light"] .crm-coach__link--focus-media,
body[data-preset="light"] .crm-coach__link--focus-media {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.28) !important;
}

html[data-preset="light"] .crm-coach__link--focus-doc,
body[data-preset="light"] .crm-coach__link--focus-doc {
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.35) !important;
}

html[data-preset="light"] .crm-coach__link--focus-visual_ai,
body[data-preset="light"] .crm-coach__link--focus-visual_ai {
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.3) !important;
}

html[data-preset="light"] .crm-coach__go,
body[data-preset="light"] .crm-coach__go {
  color: #047857 !important;
  background: #d1fae5 !important;
  border: 1px solid rgba(5, 150, 105, 0.3) !important;
}

html[data-preset="light"] .crm-coach__go:hover,
body[data-preset="light"] .crm-coach__go:hover {
  background: #a7f3d0 !important;
}

html[data-preset="light"] .crm-coach--focus-media .crm-coach__go,
body[data-preset="light"] .crm-coach--focus-media .crm-coach__go {
  color: #1d4ed8 !important;
  background: #dbeafe !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
}

html[data-preset="light"] .crm-coach--focus-doc .crm-coach__go,
body[data-preset="light"] .crm-coach--focus-doc .crm-coach__go {
  color: #b45309 !important;
  background: #fef3c7 !important;
  border-color: rgba(217, 119, 6, 0.35) !important;
}

html[data-preset="light"] .crm-coach--focus-visual_ai .crm-coach__go,
body[data-preset="light"] .crm-coach--focus-visual_ai .crm-coach__go {
  color: #6d28d9 !important;
  background: #ede9fe !important;
  border-color: rgba(124, 58, 237, 0.3) !important;
}

html[data-preset="light"] .crm-coach--approve .crm-coach__balloon,
body[data-preset="light"] .crm-coach--approve .crm-coach__balloon {
  border-color: rgba(5, 150, 105, 0.45) !important;
}

html[data-preset="light"] .crm-coach__settings,
body[data-preset="light"] .crm-coach__settings {
  color: #64748b !important;
}

html[data-preset="light"] .crm-coach__settings:hover,
body[data-preset="light"] .crm-coach__settings:hover {
  color: #0f172a !important;
}

html[data-preset="light"] .crm-coach__dismiss,
body[data-preset="light"] .crm-coach__dismiss {
  color: #0f172a !important;
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

html[data-preset="light"] .crm-coach__dismiss:hover,
body[data-preset="light"] .crm-coach__dismiss:hover {
  background: #e2e8f0 !important;
}

html[data-preset="light"] .crm-coach__name,
body[data-preset="light"] .crm-coach__name {
  color: #0369a1 !important;
}

html[data-preset="light"] .crm-portal-imports,
html[data-preset="light"] .pi-shell,
html[data-preset="light"] .pi-title,
html[data-preset="light"] .pi-stat,
body[data-preset="light"] .crm-portal-imports,
body[data-preset="light"] .pi-shell,
body[data-preset="light"] .pi-title,
body[data-preset="light"] .pi-stat {
  color: #0f172a !important;
}

html[data-preset="light"] .crm-portal-imports a,
html[data-preset="light"] .pi-shell a,
html[data-preset="light"] .cometa-preview-badge,
body[data-preset="light"] .crm-portal-imports a,
body[data-preset="light"] .pi-shell a,
body[data-preset="light"] .cometa-preview-badge {
  color: #0369a1 !important;
}

html[data-preset="light"] .crm-catasto-map a,
html[data-preset="light"] .crm-catasto-panel a,
body[data-preset="light"] .crm-catasto-map a,
body[data-preset="light"] .crm-catasto-panel a {
  color: #1d4ed8 !important;
}

/* Nota: non forzare color globale su .crm-catasto-map / .catasto-map-shell
 * (rompe contrasti su box dark residui). Testi Catasto → part_06. */

html[data-preset="light"] .crm-provisioning-readiness,
html[data-preset="light"] .crm-provisioning-form,
html[data-preset="light"] .crm-provisioning-stat,
html[data-preset="light"] .crm-provisioning-shell,
body[data-preset="light"] .crm-provisioning-readiness,
body[data-preset="light"] .crm-provisioning-form,
body[data-preset="light"] .crm-provisioning-stat,
body[data-preset="light"] .crm-provisioning-shell {
  color: #0f172a !important;
}

/* Settings home — errori #fecaca e card */
html[data-preset="light"] .crm-settings-home,
html[data-preset="light"] .settings-home-card,
html[data-preset="light"] .settings-tile,
html[data-preset="light"] .crm-settings-tile,
body[data-preset="light"] .crm-settings-home,
body[data-preset="light"] .settings-home-card,
body[data-preset="light"] .settings-tile,
body[data-preset="light"] .crm-settings-tile {
  color: #0f172a !important;
}

html[data-preset="light"] .crm-settings-home .text-rose-200,
html[data-preset="light"] .crm-settings-home .text-red-200,
html[data-preset="light"] .settings-home-error,
body[data-preset="light"] .crm-settings-home .text-rose-200,
body[data-preset="light"] .crm-settings-home .text-red-200,
body[data-preset="light"] .settings-home-error {
  color: #be123c !important;
}

/* Pipeline board — #fff su light */
html[data-preset="light"] .pipeline-board,
html[data-preset="light"] .pipeline-column,
html[data-preset="light"] .pipeline-column-title,
html[data-preset="light"] .pipeline-deal,
html[data-preset="light"] .pipeline-deal-title,
html[data-preset="light"] .pipeline-deal-meta,
body[data-preset="light"] .pipeline-board,
body[data-preset="light"] .pipeline-column,
body[data-preset="light"] .pipeline-column-title,
body[data-preset="light"] .pipeline-deal,
body[data-preset="light"] .pipeline-deal-title,
body[data-preset="light"] .pipeline-deal-meta {
  color: #0f172a !important;
}

html[data-preset="light"] .pipeline-deal-meta,
html[data-preset="light"] .pipeline-column-count,
body[data-preset="light"] .pipeline-deal-meta,
body[data-preset="light"] .pipeline-column-count {
  color: #64748b !important;
}

/* Modali unificate / intelligence / visual AI / valuator / credentials */
html[data-preset="light"] .crm-modal,
html[data-preset="light"] .crm-modal-title,
html[data-preset="light"] .crm-modal-body,
html[data-preset="light"] .crm-modal-header,
html[data-preset="light"] .ui-modal,
html[data-preset="light"] .ui-modal-title,
html[data-preset="light"] .ui-modal-body,
html[data-preset="light"] .crm-intelligence-modal,
html[data-preset="light"] .crm-visual-ai-modal,
html[data-preset="light"] .agency-portal-credentials-modal,
html[data-preset="light"] .pe-modal,
html[data-preset="light"] .pi-modal,
html[data-preset="light"] .crm-valuator-modal,
body[data-preset="light"] .crm-modal,
body[data-preset="light"] .crm-modal-title,
body[data-preset="light"] .crm-modal-body,
body[data-preset="light"] .crm-modal-header,
body[data-preset="light"] .ui-modal,
body[data-preset="light"] .ui-modal-title,
body[data-preset="light"] .ui-modal-body,
body[data-preset="light"] .crm-intelligence-modal,
body[data-preset="light"] .crm-visual-ai-modal,
body[data-preset="light"] .agency-portal-credentials-modal,
body[data-preset="light"] .pe-modal,
body[data-preset="light"] .pi-modal,
body[data-preset="light"] .crm-valuator-modal {
  color: #0f172a !important;
}

html[data-preset="light"] .crm-modal .ui-subtle,
html[data-preset="light"] .crm-modal-body .ui-subtle,
html[data-preset="light"] .crm-intelligence-modal .ui-subtle,
html[data-preset="light"] .agency-portal-credentials-modal .ui-subtle,
body[data-preset="light"] .crm-modal .ui-subtle,
body[data-preset="light"] .crm-modal-body .ui-subtle,
body[data-preset="light"] .crm-intelligence-modal .ui-subtle,
body[data-preset="light"] .agency-portal-credentials-modal .ui-subtle {
  color: #64748b !important;
}

html[data-preset="light"] .crm-modal a,
html[data-preset="light"] .crm-intelligence-modal a,
html[data-preset="light"] .crm-visual-ai-modal a,
html[data-preset="light"] .agency-portal-credentials-modal a,
body[data-preset="light"] .crm-modal a,
body[data-preset="light"] .crm-intelligence-modal a,
body[data-preset="light"] .crm-visual-ai-modal a,
body[data-preset="light"] .agency-portal-credentials-modal a {
  color: #1d4ed8 !important;
}

/* Property detail — fold/box/KPI inline */
html[data-preset="light"] .crm-property-fold,
html[data-preset="light"] .crm-property-fold__title,
html[data-preset="light"] .crm-property-detail,
html[data-preset="light"] .crm-property-side,
body[data-preset="light"] .crm-property-fold,
body[data-preset="light"] .crm-property-fold__title,
body[data-preset="light"] .crm-property-detail,
body[data-preset="light"] .crm-property-side {
  color: #0f172a !important;
}

html[data-preset="light"] .crm-property-fold .ui-subtle,
html[data-preset="light"] .crm-property-side .ui-subtle,
body[data-preset="light"] .crm-property-fold .ui-subtle,
body[data-preset="light"] .crm-property-side .ui-subtle {
  color: #64748b !important;
}

/* Ai search readiness / commercial report boxes */
html[data-preset="light"] .ai-search-shell,
html[data-preset="light"] .ai-search-card,
html[data-preset="light"] .ai-search-kpi,
body[data-preset="light"] .ai-search-shell,
body[data-preset="light"] .ai-search-card,
body[data-preset="light"] .ai-search-kpi {
  color: #0f172a !important;
}

/* Tabular KPI generici (text-3xl + pastello) già coperti da remap utility */
html[data-preset="light"] .tabular-nums.text-sky-200,
html[data-preset="light"] .tabular-nums.text-sky-300,
html[data-preset="light"] .font-bold.tabular-nums.text-sky-200,
body[data-preset="light"] .tabular-nums.text-sky-200,
body[data-preset="light"] .tabular-nums.text-sky-300,
body[data-preset="light"] .font-bold.tabular-nums.text-sky-200 {
  color: #0369a1 !important;
}

/* Eccezione deal badge: .crm-property-deal.is-sale/.is-rent restano bianco su verde/blu (regole sopra) */

/* === END crm-theme-light-fixes_part_04.css === */
/* === BEGIN crm-theme-light-fixes_part_05.css === */
/* crm-theme-light-fixes_part_05.css — modal custom + catasto light (Fase 1bis) */

/* ========== FASE 1BIS — modal custom + catasto (sfondo chiaro, testo scuro) ========== */

/* Lista opportunità + Quick valuator */
html[data-preset="light"] .qso-modal,
html[data-preset="light"] .qsv-modal,
body[data-preset="light"] .qso-modal,
body[data-preset="light"] .qsv-modal {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16) !important;
}

html[data-preset="light"] .qso-modal-head h3,
html[data-preset="light"] .qsv-modal-head h3,
body[data-preset="light"] .qso-modal-head h3,
body[data-preset="light"] .qsv-modal-head h3 {
  color: #0f172a !important;
}

html[data-preset="light"] .qso-modal-sub,
html[data-preset="light"] .qsv-modal-sub,
html[data-preset="light"] .qso-item-meta,
html[data-preset="light"] .qso-contact-name,
html[data-preset="light"] .qso-badge,
body[data-preset="light"] .qso-modal-sub,
body[data-preset="light"] .qsv-modal-sub,
body[data-preset="light"] .qso-item-meta,
body[data-preset="light"] .qso-contact-name,
body[data-preset="light"] .qso-badge {
  color: #64748b !important;
}

html[data-preset="light"] .qso-search-status,
html[data-preset="light"] .qso-map-picker-hint,
html[data-preset="light"] .qso-list .qs-empty,
html[data-preset="light"] .qso-list .dash-empty,
body[data-preset="light"] .qso-search-status,
body[data-preset="light"] .qso-map-picker-hint,
body[data-preset="light"] .qso-list .qs-empty,
body[data-preset="light"] .qso-list .dash-empty {
  color: #334155 !important;
}

html[data-preset="light"] .qso-modal .ui-subtle:not(.qso-item-meta):not(.qso-badge):not(.qso-contact-name),
body[data-preset="light"] .qso-modal .ui-subtle:not(.qso-item-meta):not(.qso-badge):not(.qso-contact-name) {
  color: #475569 !important;
}

html[data-preset="light"] .qso-agency-link,
body[data-preset="light"] .qso-agency-link {
  color: #475569 !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: #f8fafc !important;
}

html[data-preset="light"] .qso-agency-link.is-active,
body[data-preset="light"] .qso-agency-link.is-active {
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.45) !important;
  background: #eff6ff !important;
}

html[data-preset="light"] .qso-item,
html[data-preset="light"] .qso-map-picker,
body[data-preset="light"] .qso-item,
body[data-preset="light"] .qso-map-picker {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

html[data-preset="light"] .qso-item-title,
body[data-preset="light"] .qso-item-title {
  color: #0f172a !important;
}

html[data-preset="light"] .qso-search-input,
html[data-preset="light"] .qso-search-radius,
html[data-preset="light"] .qsv-field input,
html[data-preset="light"] .qsv-field select,
body[data-preset="light"] .qso-search-input,
body[data-preset="light"] .qso-search-radius,
body[data-preset="light"] .qsv-field input,
body[data-preset="light"] .qsv-field select {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-preset="light"] .qsv-field,
body[data-preset="light"] .qsv-field {
  color: #475569 !important;
}

html[data-preset="light"] .qso-contact-phone,
html[data-preset="light"] .qso-item-link,
body[data-preset="light"] .qso-contact-phone,
body[data-preset="light"] .qso-item-link {
  color: #1d4ed8 !important;
}

/* Export portali modal (hardcoded #020617) */
html[data-preset="light"] .pe-modal,
body[data-preset="light"] .pe-modal {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16) !important;
}

html[data-preset="light"] .pe-modal-head,
body[data-preset="light"] .pe-modal-head {
  border-bottom-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-preset="light"] .pe-modal-title,
html[data-preset="light"] .pe-portal-name,
html[data-preset="light"] .pe-notebox-title,
html[data-preset="light"] .pe-super summary,
html[data-preset="light"] .pe-switch label,
body[data-preset="light"] .pe-modal-title,
body[data-preset="light"] .pe-portal-name,
body[data-preset="light"] .pe-notebox-title,
body[data-preset="light"] .pe-super summary,
body[data-preset="light"] .pe-switch label {
  color: #0f172a !important;
}

html[data-preset="light"] .pe-modal-sub,
html[data-preset="light"] .pe-portal-sub,
html[data-preset="light"] .pe-switch-date,
html[data-preset="light"] .pe-notebox p,
html[data-preset="light"] .pe-notebox li,
body[data-preset="light"] .pe-modal-sub,
body[data-preset="light"] .pe-portal-sub,
body[data-preset="light"] .pe-switch-date,
body[data-preset="light"] .pe-notebox p,
body[data-preset="light"] .pe-notebox li {
  color: #64748b !important;
}

html[data-preset="light"] .pe-portal-card,
html[data-preset="light"] .pe-notebox,
html[data-preset="light"] .pe-switch,
body[data-preset="light"] .pe-portal-card,
body[data-preset="light"] .pe-notebox,
body[data-preset="light"] .pe-switch {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

/* Import wizard / credentials modal */
html[data-preset="light"] .import-wizard-modal,
body[data-preset="light"] .import-wizard-modal {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16) !important;
}

html[data-preset="light"] .import-wizard-field,
body[data-preset="light"] .import-wizard-field {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-preset="light"] .cometa-section-toggle,
body[data-preset="light"] .cometa-section-toggle {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  color: #0f172a !important;
}

/* Quickview / intelligence / visual AI / contact matches — dialog chiaro */
html[data-preset="light"] .crm-quickview-modal__box,
html[data-preset="light"] .crm-intelligence-modal__dialog,
html[data-preset="light"] .crm-visual-ai-modal__dialog,
html[data-preset="light"] .crm-contact-matches-modal__dialog,
body[data-preset="light"] .crm-quickview-modal__box,
body[data-preset="light"] .crm-intelligence-modal__dialog,
body[data-preset="light"] .crm-visual-ai-modal__dialog,
body[data-preset="light"] .crm-contact-matches-modal__dialog {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-preset="light"] .crm-intelligence-modal__title,
html[data-preset="light"] .crm-visual-ai-modal__title,
html[data-preset="light"] .crm-contact-matches-modal__title,
html[data-preset="light"] .crm-simple-iframe-modal__title,
body[data-preset="light"] .crm-intelligence-modal__title,
body[data-preset="light"] .crm-visual-ai-modal__title,
body[data-preset="light"] .crm-contact-matches-modal__title,
body[data-preset="light"] .crm-simple-iframe-modal__title {
  color: #0f172a !important;
}

html[data-preset="light"] .crm-intelligence-modal__eyebrow,
html[data-preset="light"] .crm-visual-ai-modal__eyebrow,
html[data-preset="light"] .crm-contact-matches-modal__eyebrow,
html[data-preset="light"] .crm-simple-iframe-modal__eyebrow,
body[data-preset="light"] .crm-intelligence-modal__eyebrow,
body[data-preset="light"] .crm-visual-ai-modal__eyebrow,
body[data-preset="light"] .crm-contact-matches-modal__eyebrow,
body[data-preset="light"] .crm-simple-iframe-modal__eyebrow {
  color: #64748b !important;
}

html[data-preset="light"] .crm-intelligence-modal__body,
html[data-preset="light"] .crm-visual-ai-modal__body,
html[data-preset="light"] .crm-contact-matches-modal__body,
body[data-preset="light"] .crm-intelligence-modal__body,
body[data-preset="light"] .crm-visual-ai-modal__body,
body[data-preset="light"] .crm-contact-matches-modal__body {
  color: #0f172a !important;
  background: #ffffff !important;
}

html[data-preset="light"] .crm-intelligence-modal__close,
html[data-preset="light"] .crm-visual-ai-modal__close,
html[data-preset="light"] .crm-contact-matches-modal__close,
html[data-preset="light"] .crm-quickview-modal__close,
body[data-preset="light"] .crm-intelligence-modal__close,
body[data-preset="light"] .crm-visual-ai-modal__close,
body[data-preset="light"] .crm-contact-matches-modal__close,
body[data-preset="light"] .crm-quickview-modal__close {
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

/* Pipeline blocked panel (elemento morto, sempre display:none — vedi
   crm-base-bundle.css "kill residual pipeline overlay"). NON includere
   .pipeline-modal qui: e' il backdrop fisso a schermo intero, deve restare
   lo scrim semitrasparente scuro definito in crm-pipeline-board.css anche
   in tema light, altrimenti copre la pagina sotto invece di attenuarla e
   annulla l'effetto vetro di .pipeline-modal-card (vedi part_08). */
html[data-preset="light"] .pipeline-blocked-modal,
body[data-preset="light"] .pipeline-blocked-modal {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

/* --- Catasto: pannelli, ricerca, risultati --- */
html[data-preset="light"] .catasto-panel,
html[data-preset="light"] .catasto-brand,
html[data-preset="light"] .catasto-chip,
html[data-preset="light"] .catasto-statusbar,
body[data-preset="light"] .catasto-panel,
body[data-preset="light"] .catasto-brand,
body[data-preset="light"] .catasto-chip,
body[data-preset="light"] .catasto-statusbar {
  background: rgba(255, 255, 255, 0.94) !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-preset="light"] .catasto-panel-title,
html[data-preset="light"] .catasto-brand-title,
html[data-preset="light"] .catasto-search-block-title,
html[data-preset="light"] .catasto-layer-name,
html[data-preset="light"] .catasto-ref-code,
html[data-preset="light"] .catasto-openapi-card-title strong,
html[data-preset="light"] .catasto-openapi-row-value,
html[data-preset="light"] .catasto-openapi-owner-name,
body[data-preset="light"] .catasto-panel-title,
body[data-preset="light"] .catasto-brand-title,
body[data-preset="light"] .catasto-search-block-title,
body[data-preset="light"] .catasto-layer-name,
body[data-preset="light"] .catasto-ref-code,
body[data-preset="light"] .catasto-openapi-card-title strong,
body[data-preset="light"] .catasto-openapi-row-value,
body[data-preset="light"] .catasto-openapi-owner-name {
  color: #0f172a !important;
}

html[data-preset="light"] .catasto-intro,
html[data-preset="light"] .catasto-search-block-desc,
html[data-preset="light"] .catasto-field-label,
html[data-preset="light"] .catasto-layer-desc,
html[data-preset="light"] .catasto-or-divider,
html[data-preset="light"] .catasto-opt,
html[data-preset="light"] .catasto-panel-kicker,
html[data-preset="light"] .catasto-label,
body[data-preset="light"] .catasto-intro,
body[data-preset="light"] .catasto-search-block-desc,
body[data-preset="light"] .catasto-field-label,
body[data-preset="light"] .catasto-layer-desc,
body[data-preset="light"] .catasto-or-divider,
body[data-preset="light"] .catasto-opt,
body[data-preset="light"] .catasto-panel-kicker,
body[data-preset="light"] .catasto-label {
  color: #64748b !important;
}

html[data-preset="light"] .catasto-search-block,
html[data-preset="light"] .catasto-layer-item,
html[data-preset="light"] .catasto-ade-opacity,
html[data-preset="light"] .catasto-openapi-card,
html[data-preset="light"] .catasto-openapi-result,
html[data-preset="light"] .catasto-openapi-owner,
html[data-preset="light"] .catasto-openapi-forecast-card,
body[data-preset="light"] .catasto-search-block,
body[data-preset="light"] .catasto-layer-item,
body[data-preset="light"] .catasto-ade-opacity,
body[data-preset="light"] .catasto-openapi-card,
body[data-preset="light"] .catasto-openapi-result,
body[data-preset="light"] .catasto-openapi-owner,
body[data-preset="light"] .catasto-openapi-forecast-card {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

html[data-preset="light"] .catasto-layer-item.is-on,
body[data-preset="light"] .catasto-layer-item.is-on {
  background: #ecfdf5 !important;
  border-color: rgba(5, 150, 105, 0.35) !important;
}

html[data-preset="light"] .catasto-input,
html[data-preset="light"] .catasto-panel input,
html[data-preset="light"] .catasto-panel select,
html[data-preset="light"] .catasto-panel textarea,
body[data-preset="light"] .catasto-input,
body[data-preset="light"] .catasto-panel input,
body[data-preset="light"] .catasto-panel select,
body[data-preset="light"] .catasto-panel textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-preset="light"] .catasto-input::placeholder,
html[data-preset="light"] .catasto-panel input::placeholder,
body[data-preset="light"] .catasto-input::placeholder,
body[data-preset="light"] .catasto-panel input::placeholder {
  color: #94a3b8 !important;
}

html[data-preset="light"] .catasto-req,
body[data-preset="light"] .catasto-req {
  color: #be123c !important;
}

html[data-preset="light"] .catasto-ade-opacity-val,
body[data-preset="light"] .catasto-ade-opacity-val {
  color: #047857 !important;
}

html[data-preset="light"] .catasto-openapi-chip,
body[data-preset="light"] .catasto-openapi-chip {
  color: #0f172a !important;
  background: #e2e8f0 !important;
}

html[data-preset="light"] .catasto-openapi-sub,
html[data-preset="light"] .catasto-openapi-sub-toggle,
body[data-preset="light"] .catasto-openapi-sub,
body[data-preset="light"] .catasto-openapi-sub-toggle {
  color: #475569 !important;
}

html[data-preset="light"] .catasto-openapi-forecast-head strong,
html[data-preset="light"] .catasto-openapi-forecast-metric-value,
body[data-preset="light"] .catasto-openapi-forecast-head strong,
body[data-preset="light"] .catasto-openapi-forecast-metric-value {
  color: #0f172a !important;
}

/* Niente color globale sulla shell mappa: eredità #0f172a rompe box ancora scuri (OpenAPI/env). */

/* === END crm-theme-light-fixes_part_05.css === */
/* === BEGIN crm-theme-light-fixes_part_06.css === */
/* crm-theme-light-fixes_part_06.css — Catasto: brand/storico/ricerca/risultati/OpenAPI (solo light) */
/* Tutti i selettori: [data-preset="light"]. Non tocca il tema dark. */

/* Brand topbar — «Dati Agenzia delle Entrate» */
html[data-preset="light"] .catasto-brand-sub,
body[data-preset="light"] .catasto-brand-sub {
  color: #475569 !important;
}

html[data-preset="light"] .catasto-brand-title,
body[data-preset="light"] .catasto-brand-title {
  color: #0f172a !important;
}

/* Hint / istruzioni ricerca (zoom, OSM/AdE, admin) */
html[data-preset="light"] .catasto-hint,
html[data-preset="light"] .catasto-ade-opacity-hint,
html[data-preset="light"] .catasto-history-admin-hint,
html[data-preset="light"] .catasto-history-search-hint,
html[data-preset="light"] .catasto-draft-agency-hint,
html[data-preset="light"] .catasto-search-block-desc,
html[data-preset="light"] .catasto-intro,
body[data-preset="light"] .catasto-hint,
body[data-preset="light"] .catasto-ade-opacity-hint,
body[data-preset="light"] .catasto-history-admin-hint,
body[data-preset="light"] .catasto-history-search-hint,
body[data-preset="light"] .catasto-draft-agency-hint,
body[data-preset="light"] .catasto-search-block-desc,
body[data-preset="light"] .catasto-intro {
  color: #475569 !important;
}

html[data-preset="light"] .catasto-hint strong,
body[data-preset="light"] .catasto-hint strong {
  color: #0f172a !important;
}

/* Status bar footer */
html[data-preset="light"] .catasto-statusbar,
body[data-preset="light"] .catasto-statusbar {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

html[data-preset="light"] .catasto-status-item,
html[data-preset="light"] .catasto-status-label,
body[data-preset="light"] .catasto-status-item,
body[data-preset="light"] .catasto-status-label {
  color: #475569 !important;
}

/* Ghost / secondary buttons (Torna alla ricerca, Crea bozza, …) */
html[data-preset="light"] .catasto-btn-ghost,
body[data-preset="light"] .catasto-btn-ghost {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  text-shadow: none !important;
}

html[data-preset="light"] .catasto-btn-ghost:hover,
body[data-preset="light"] .catasto-btn-ghost:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

html[data-preset="light"] .catasto-btn-primary,
body[data-preset="light"] .catasto-btn-primary {
  color: #ffffff !important;
}

/* Storico consultazioni — card/select chiari + testo scuro */
html[data-preset="light"] .catasto-history-label,
html[data-preset="light"] .catasto-history-heading,
html[data-preset="light"] .catasto-panel-kicker,
body[data-preset="light"] .catasto-history-label,
body[data-preset="light"] .catasto-history-heading,
body[data-preset="light"] .catasto-panel-kicker {
  color: #64748b !important;
}

html[data-preset="light"] .catasto-history-select,
html[data-preset="light"] .catasto-history-search,
html[data-preset="light"] .catasto-draft-agency-select,
body[data-preset="light"] .catasto-history-select,
body[data-preset="light"] .catasto-history-search,
body[data-preset="light"] .catasto-draft-agency-select {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
}

html[data-preset="light"] .catasto-history-item,
html[data-preset="light"] .catasto-history-card,
html[data-preset="light"] .catasto-history-row,
body[data-preset="light"] .catasto-history-item,
body[data-preset="light"] .catasto-history-card,
body[data-preset="light"] .catasto-history-row {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

html[data-preset="light"] .catasto-history-card-title,
html[data-preset="light"] .catasto-history-ref,
body[data-preset="light"] .catasto-history-card-title,
body[data-preset="light"] .catasto-history-ref {
  color: #0f172a !important;
}

html[data-preset="light"] .catasto-history-card-line,
html[data-preset="light"] .catasto-history-card-meta,
html[data-preset="light"] .catasto-history-meta,
body[data-preset="light"] .catasto-history-card-line,
body[data-preset="light"] .catasto-history-card-meta,
body[data-preset="light"] .catasto-history-meta {
  color: #475569 !important;
}

html[data-preset="light"] .catasto-history-doc,
html[data-preset="light"] .catasto-history-open,
body[data-preset="light"] .catasto-history-doc,
body[data-preset="light"] .catasto-history-open {
  color: #1d4ed8 !important;
}

/* Dettaglio particella — ref stats su chiaro */
html[data-preset="light"] .catasto-ref-card,
body[data-preset="light"] .catasto-ref-card {
  background: linear-gradient(135deg, #eff6ff, #ecfdf5) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
}

html[data-preset="light"] .catasto-ref-code,
body[data-preset="light"] .catasto-ref-code {
  color: #0f172a !important;
}

html[data-preset="light"] .catasto-ref-stat,
body[data-preset="light"] .catasto-ref-stat {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
}

html[data-preset="light"] .catasto-ref-stat-label,
html[data-preset="light"] .catasto-field-row span:first-child,
body[data-preset="light"] .catasto-ref-stat-label,
body[data-preset="light"] .catasto-field-row span:first-child {
  color: #64748b !important;
}

html[data-preset="light"] .catasto-ref-stat-value,
html[data-preset="light"] .catasto-field-row span:last-child,
body[data-preset="light"] .catasto-ref-stat-value,
body[data-preset="light"] .catasto-field-row span:last-child {
  color: #0f172a !important;
}

/* OpenAPI / documenti / forecast — niente dark-on-dark su light */
html[data-preset="light"] .catasto-openapi-env-banner,
html[data-preset="light"] .catasto-openapi-archive-banner,
html[data-preset="light"] .catasto-openapi-cost-hint,
body[data-preset="light"] .catasto-openapi-env-banner,
body[data-preset="light"] .catasto-openapi-archive-banner,
body[data-preset="light"] .catasto-openapi-cost-hint {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #334155 !important;
}

html[data-preset="light"] .catasto-openapi-env-title,
html[data-preset="light"] .catasto-openapi-archive-title,
html[data-preset="light"] .catasto-openapi-docs-label,
html[data-preset="light"] .catasto-openapi-immobili-kicker,
body[data-preset="light"] .catasto-openapi-env-title,
body[data-preset="light"] .catasto-openapi-archive-title,
body[data-preset="light"] .catasto-openapi-docs-label,
body[data-preset="light"] .catasto-openapi-immobili-kicker {
  color: #0f172a !important;
}

html[data-preset="light"] .catasto-openapi-env-desc,
html[data-preset="light"] .catasto-openapi-archive-desc,
html[data-preset="light"] .catasto-openapi-cost-hint,
html[data-preset="light"] .catasto-openapi-forecast-hint,
html[data-preset="light"] .catasto-openapi-sub-hint,
html[data-preset="light"] .catasto-openapi-owner-meta,
html[data-preset="light"] .catasto-openapi-warn,
body[data-preset="light"] .catasto-openapi-env-desc,
body[data-preset="light"] .catasto-openapi-archive-desc,
body[data-preset="light"] .catasto-openapi-cost-hint,
body[data-preset="light"] .catasto-openapi-forecast-hint,
body[data-preset="light"] .catasto-openapi-sub-hint,
body[data-preset="light"] .catasto-openapi-owner-meta,
body[data-preset="light"] .catasto-openapi-warn {
  color: #475569 !important;
}

html[data-preset="light"] .catasto-openapi-env-desc strong,
html[data-preset="light"] .catasto-openapi-cache-hint,
body[data-preset="light"] .catasto-openapi-env-desc strong,
body[data-preset="light"] .catasto-openapi-cache-hint {
  color: #047857 !important;
}

html[data-preset="light"] .catasto-openapi-pdf-link,
html[data-preset="light"] .catasto-openapi-actions a,
body[data-preset="light"] .catasto-openapi-pdf-link,
body[data-preset="light"] .catasto-openapi-actions a {
  color: #1d4ed8 !important;
}

html[data-preset="light"] .catasto-openapi-sub,
html[data-preset="light"] .catasto-openapi-card,
html[data-preset="light"] .catasto-openapi-forecast-card,
body[data-preset="light"] .catasto-openapi-sub,
body[data-preset="light"] .catasto-openapi-card,
body[data-preset="light"] .catasto-openapi-forecast-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

html[data-preset="light"] .catasto-openapi-sub-toggle,
html[data-preset="light"] .catasto-openapi-card-title,
html[data-preset="light"] .catasto-openapi-card-title strong,
html[data-preset="light"] .catasto-openapi-row-value,
html[data-preset="light"] .catasto-openapi-owner-name,
html[data-preset="light"] .catasto-openapi-forecast-head strong,
html[data-preset="light"] .catasto-openapi-forecast-metric-value,
body[data-preset="light"] .catasto-openapi-sub-toggle,
body[data-preset="light"] .catasto-openapi-card-title,
body[data-preset="light"] .catasto-openapi-card-title strong,
body[data-preset="light"] .catasto-openapi-row-value,
body[data-preset="light"] .catasto-openapi-owner-name,
body[data-preset="light"] .catasto-openapi-forecast-head strong,
body[data-preset="light"] .catasto-openapi-forecast-metric-value {
  color: #0f172a !important;
}

html[data-preset="light"] .catasto-openapi-forecast-metric,
body[data-preset="light"] .catasto-openapi-forecast-metric {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-preset="light"] .catasto-openapi-forecast-metric-label,
html[data-preset="light"] .catasto-openapi-forecast-foot,
body[data-preset="light"] .catasto-openapi-forecast-metric-label,
body[data-preset="light"] .catasto-openapi-forecast-foot {
  color: #64748b !important;
}

html[data-preset="light"] .catasto-openapi-forecast-metric-sub,
body[data-preset="light"] .catasto-openapi-forecast-metric-sub {
  color: #047857 !important;
}

html[data-preset="light"] .catasto-openapi-forecast-card--omi,
body[data-preset="light"] .catasto-openapi-forecast-card--omi {
  background: #fffbeb !important;
  border-color: rgba(180, 83, 9, 0.28) !important;
}

html[data-preset="light"] .catasto-openapi-esito,
body[data-preset="light"] .catasto-openapi-esito {
  color: #047857 !important;
}

/* Street view chrome — superficie chiara (niente box navy residuo) */
html[data-preset="light"] .catasto-streetview,
body[data-preset="light"] .catasto-streetview {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-preset="light"] .catasto-streetview-head,
body[data-preset="light"] .catasto-streetview-head {
  border-bottom-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-preset="light"] .catasto-streetview-kicker,
body[data-preset="light"] .catasto-streetview-kicker {
  color: #0369a1 !important;
}

html[data-preset="light"] .catasto-streetview-msg,
body[data-preset="light"] .catasto-streetview-msg {
  color: #475569 !important;
}

html[data-preset="light"] .catasto-streetview-title,
body[data-preset="light"] .catasto-streetview-title {
  color: #0f172a !important;
}

html[data-preset="light"] .catasto-streetview-btn,
body[data-preset="light"] .catasto-streetview-btn {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-preset="light"] .catasto-streetview-btn:hover,
body[data-preset="light"] .catasto-streetview-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* X chiudi dettaglio — non bianca su pannello bianco */
html[data-preset="light"] .catasto-icon-btn,
body[data-preset="light"] .catasto-icon-btn {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.22) !important;
}

html[data-preset="light"] .catasto-icon-btn:hover,
body[data-preset="light"] .catasto-icon-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
/* === END crm-theme-light-fixes_part_06.css === */
/* === BEGIN crm-theme-light-fixes_part_07.css === */
/* crm-theme-light-fixes_part_07.css — Agenda FullCalendar + Valutatore form (solo light) */
/* Tutti i selettori: [data-preset="light"]. Non tocca il tema dark. */

/* ========== Agenda / FullCalendar ========== */
/* Non toccare .crm-events-calendar-wrap .fc-event background/border/color:
 * i colori arrivano inline da FullCalendar (hex Google Calendar). */
html[data-preset="light"] .crm-events-calendar-wrap .fc-daygrid-day-number,
html[data-preset="light"] .crm-events-calendar-wrap .fc-col-header-cell-cushion,
html[data-preset="light"] .crm-events-calendar-wrap .fc-list-day-text,
html[data-preset="light"] .crm-events-calendar-wrap .fc-list-day-side-text,
html[data-preset="light"] .crm-events-calendar-wrap .fc-toolbar-title,
body[data-preset="light"] .crm-events-calendar-wrap .fc-daygrid-day-number,
body[data-preset="light"] .crm-events-calendar-wrap .fc-col-header-cell-cushion,
body[data-preset="light"] .crm-events-calendar-wrap .fc-list-day-text,
body[data-preset="light"] .crm-events-calendar-wrap .fc-list-day-side-text,
body[data-preset="light"] .crm-events-calendar-wrap .fc-toolbar-title {
  color: #0f172a !important;
}

html[data-preset="light"] .crm-events-calendar-wrap .fc-day-other .fc-daygrid-day-number,
body[data-preset="light"] .crm-events-calendar-wrap .fc-day-other .fc-daygrid-day-number {
  color: #64748b !important;
}

html[data-preset="light"] .crm-events-calendar-wrap .fc-daygrid-more-link,
body[data-preset="light"] .crm-events-calendar-wrap .fc-daygrid-more-link {
  color: #1d4ed8 !important;
  background: #e2e8f0 !important;
}

html[data-preset="light"] .crm-events-calendar-wrap .fc-daygrid-more-link:hover,
body[data-preset="light"] .crm-events-calendar-wrap .fc-daygrid-more-link:hover {
  background: #cbd5e1 !important;
  color: #1e3a8a !important;
}

html[data-preset="light"] .crm-events-calendar-wrap .fc-button:not(.fc-button-active),
body[data-preset="light"] .crm-events-calendar-wrap .fc-button:not(.fc-button-active) {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
}

html[data-preset="light"] .crm-events-calendar-wrap .fc-list-event-title,
html[data-preset="light"] .crm-events-calendar-wrap .fc-list-event-time,
body[data-preset="light"] .crm-events-calendar-wrap .fc-list-event-title,
body[data-preset="light"] .crm-events-calendar-wrap .fc-list-event-time {
  color: #0f172a !important;
}

/* ========== Valutatore (form modifica immobile) ========== */
html[data-preset="light"] #valuator-box,
html[data-preset="light"] #valuator-box .crm-property-fold-body,
html[data-preset="light"] #valuator-box .font-semibold,
html[data-preset="light"] #valuator-box .text-sm,
html[data-preset="light"] #valuator-box .text-lg,
html[data-preset="light"] #valuator-box strong,
body[data-preset="light"] #valuator-box,
body[data-preset="light"] #valuator-box .crm-property-fold-body,
body[data-preset="light"] #valuator-box .font-semibold,
body[data-preset="light"] #valuator-box .text-sm,
body[data-preset="light"] #valuator-box .text-lg,
body[data-preset="light"] #valuator-box strong {
  color: #0f172a !important;
}

html[data-preset="light"] #valuator-box .ui-subtle,
html[data-preset="light"] #valuator-box .text-xs,
html[data-preset="light"] #valuator-box [data-valuator-placeholder],
body[data-preset="light"] #valuator-box .ui-subtle,
body[data-preset="light"] #valuator-box .text-xs,
body[data-preset="light"] #valuator-box [data-valuator-placeholder] {
  color: #475569 !important;
}

html[data-preset="light"] #valuator-box #omi-box,
html[data-preset="light"] #valuator-box #internal-valuation-box,
html[data-preset="light"] #valuator-box #web-benchmark-box,
html[data-preset="light"] #valuator-box #valuation-forecast-inline,
html[data-preset="light"] #valuator-box .rounded-2xl,
html[data-preset="light"] #valuator-box .rounded-xl,
body[data-preset="light"] #valuator-box #omi-box,
body[data-preset="light"] #valuator-box #internal-valuation-box,
body[data-preset="light"] #valuator-box #web-benchmark-box,
body[data-preset="light"] #valuator-box #valuation-forecast-inline,
body[data-preset="light"] #valuator-box .rounded-2xl,
body[data-preset="light"] #valuator-box .rounded-xl {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}

html[data-preset="light"] #valuator-box .ui-btn-ghost,
body[data-preset="light"] #valuator-box .ui-btn-ghost {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
}

html[data-preset="light"] #valuator-box .ui-btn-ghost:hover,
body[data-preset="light"] #valuator-box .ui-btn-ghost:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

html[data-preset="light"] #valuator-box .crm-property-fold-icon,
body[data-preset="light"] #valuator-box .crm-property-fold-icon {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
}

/* Badge signal/affidabilità già remappati via utility; rinforzo contenitori */
html[data-preset="light"] #valuator-box .bg-cyan-400\/10,
html[data-preset="light"] #valuator-box .bg-amber-400\/10,
html[data-preset="light"] #valuator-box .bg-cyan-400\/5,
body[data-preset="light"] #valuator-box .bg-cyan-400\/10,
body[data-preset="light"] #valuator-box .bg-amber-400\/10,
body[data-preset="light"] #valuator-box .bg-cyan-400\/5 {
  background: #ecfeff !important;
}

html[data-preset="light"] #valuator-box .bg-amber-400\/10,
body[data-preset="light"] #valuator-box .bg-amber-400\/10 {
  background: #fffbeb !important;
}

/* ========== Foto / Documenti (modifica immobile) ========== */
html[data-preset="light"] .crm-property-media-panel,
html[data-preset="light"] .crm-property-media-panel .font-semibold,
html[data-preset="light"] .crm-property-media-panel .text-sm,
body[data-preset="light"] .crm-property-media-panel,
body[data-preset="light"] .crm-property-media-panel .font-semibold,
body[data-preset="light"] .crm-property-media-panel .text-sm {
  color: #0f172a !important;
}

html[data-preset="light"] .crm-property-media-panel .ui-subtle,
body[data-preset="light"] .crm-property-media-panel .ui-subtle {
  color: #475569 !important;
}

html[data-preset="light"] .crm-property-form-shell .crm-property-photos-scroll,
html[data-preset="light"] .crm-property-form-shell .crm-property-documents-scroll,
body[data-preset="light"] .crm-property-form-shell .crm-property-photos-scroll,
body[data-preset="light"] .crm-property-form-shell .crm-property-documents-scroll {
  background: #f1f5f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

html[data-preset="light"] .crm-property-form-shell .crm-property-photo-item,
html[data-preset="light"] .crm-property-form-shell .crm-property-document-item,
body[data-preset="light"] .crm-property-form-shell .crm-property-photo-item,
body[data-preset="light"] .crm-property-form-shell .crm-property-document-item {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12) !important;
}

html[data-preset="light"] .crm-property-form-shell .crm-property-photo-item-field .ui-input,
html[data-preset="light"] .crm-property-form-shell .crm-property-document-item__type .ui-input,
html[data-preset="light"] .crm-property-form-shell .crm-property-document-item__custom,
body[data-preset="light"] .crm-property-form-shell .crm-property-photo-item-field .ui-input,
body[data-preset="light"] .crm-property-form-shell .crm-property-document-item__type .ui-input,
body[data-preset="light"] .crm-property-form-shell .crm-property-document-item__custom {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-preset="light"] .crm-property-form-shell .crm-property-photos-empty,
html[data-preset="light"] .crm-property-document-item__name,
body[data-preset="light"] .crm-property-form-shell .crm-property-photos-empty,
body[data-preset="light"] .crm-property-document-item__name {
  color: #334155 !important;
}

html[data-preset="light"] .crm-property-media-panel .ui-btn-ghost,
html[data-preset="light"] .crm-property-form-shell .crm-property-photo-item-field .ui-btn,
body[data-preset="light"] .crm-property-media-panel .ui-btn-ghost,
body[data-preset="light"] .crm-property-form-shell .crm-property-photo-item-field .ui-btn {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
}

html[data-preset="light"] .crm-property-form-shell .crm-property-photo-cover-tag,
body[data-preset="light"] .crm-property-form-shell .crm-property-photo-cover-tag {
  color: #ffffff !important;
}

html[data-preset="light"] .crm-property-form-shell .crm-property-photo-action,
body[data-preset="light"] .crm-property-form-shell .crm-property-photo-action {
  color: #f8fafc !important;
}

html[data-preset="light"] .crm-upload-dropzone,
body[data-preset="light"] .crm-upload-dropzone {
  background: #ecfdf5 !important;
  border-color: rgba(5, 150, 105, 0.45) !important;
  color: #0f172a !important;
}

html[data-preset="light"] .crm-upload-dropzone .ui-subtle,
html[data-preset="light"] .crm-upload-dropzone-dragline,
html[data-preset="light"] .crm-upload-file-type-name,
body[data-preset="light"] .crm-upload-dropzone .ui-subtle,
body[data-preset="light"] .crm-upload-dropzone-dragline,
body[data-preset="light"] .crm-upload-file-type-name {
  color: #334155 !important;
}

html[data-preset="light"] .crm-upload-file-type-row,
body[data-preset="light"] .crm-upload-file-type-row {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
/* === END crm-theme-light-fixes_part_07.css === */
/* === BEGIN crm-theme-light-fixes_part_08.css === */
/* crm-theme-light-fixes_part_08.css — A0 lista / inbox / dashboard / task (solo light) */
/* Tutti i selettori: [data-preset="light"]. Non tocca il tema dark. */
/* Non toccare .crm-property-deal.is-sale/.is-rent (restano bianco su verde/blu). */

/* ========== A0 — Inbox richieste ========== */
/* Hover del link task non-primary: il CSS pagina forza #fff, illeggibile su card chiara. */
html[data-preset="light"] .crm-req-card__task-link:not(.ui-btn-primary):hover,
body[data-preset="light"] .crm-req-card__task-link:not(.ui-btn-primary):hover {
  color: #1d4ed8 !important;
  text-decoration: underline !important;
}

/* ========== A0 — Task list ========== */
html[data-preset="light"] .crm-tasks-filter-label,
body[data-preset="light"] .crm-tasks-filter-label {
  color: #64748b !important;
}

html[data-preset="light"] .crm-tasks-results.ui-card,
body[data-preset="light"] .crm-tasks-results.ui-card {
  color: #0f172a !important;
}

/* ========== A0 — Task detail (box upload vetro scuro) ========== */
html[data-preset="light"] .task-upload-current,
html[data-preset="light"] .checklist-upload-current,
html[data-preset="light"] .current-upload-box,
html[data-preset="light"] .checklist-upload-form,
body[data-preset="light"] .task-upload-current,
body[data-preset="light"] .checklist-upload-current,
body[data-preset="light"] .current-upload-box,
body[data-preset="light"] .checklist-upload-form {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: #f8fafc !important;
  color: #0f172a !important;
}

html[data-preset="light"] .checklist-upload-form input[type="file"],
html[data-preset="light"] .task-upload-current a,
html[data-preset="light"] .checklist-upload-current a,
html[data-preset="light"] .current-upload-box a,
body[data-preset="light"] .checklist-upload-form input[type="file"],
body[data-preset="light"] .task-upload-current a,
body[data-preset="light"] .checklist-upload-current a,
body[data-preset="light"] .current-upload-box a {
  color: #1d4ed8 !important;
}

html[data-preset="light"] .checklist-upload-form input[type="file"]::file-selector-button,
html[data-preset="light"] .checklist-attach-upload-form input[type="file"]::file-selector-button,
body[data-preset="light"] .checklist-upload-form input[type="file"]::file-selector-button,
body[data-preset="light"] .checklist-attach-upload-form input[type="file"]::file-selector-button {
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

/* ========== A0 — Lista immobili (riga vetro: titolo già in part_03) ========== */
html[data-preset="light"] .crm-property-list-compact .crm-property-row,
body[data-preset="light"] .crm-property-list-compact .crm-property-row {
  color: #0f172a !important;
}

html[data-preset="light"] .crm-property-next-action-text,
body[data-preset="light"] .crm-property-next-action-text {
  color: #475569 !important;
}

/* ========== A0 — Dashboard tabelle attenzione (testo su riga chiara) ========== */
html[data-preset="light"] .dash-shell .dash-table td,
html[data-preset="light"] .dash-shell .dash-attention-table-body td,
body[data-preset="light"] .dash-shell .dash-table td,
body[data-preset="light"] .dash-shell .dash-attention-table-body td {
  color: #0f172a !important;
}

html[data-preset="light"] .dash-shell .dash-table td.name,
html[data-preset="light"] .dash-shell .dash-attention-table-body td.name,
body[data-preset="light"] .dash-shell .dash-table td.name,
body[data-preset="light"] .dash-shell .dash-attention-table-body td.name {
  color: #020617 !important;
}

/* A1 tapbar (visibile solo <768px): testo scuro su fondo chiaro */
html[data-preset="light"] .crm-req-card__tapbar,
body[data-preset="light"] .crm-req-card__tapbar {
  border-top-color: rgba(15, 23, 42, 0.1) !important;
  background: #f1f5f9 !important;
}

html[data-preset="light"] .crm-req-tap,
body[data-preset="light"] .crm-req-tap {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: #fff !important;
}

/* A3 coda immobili (visibile solo <768px): chip scuri illeggibili su Light */
html[data-preset="light"] .crm-property-gap-chip,
body[data-preset="light"] .crm-property-gap-chip {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: #fff !important;
}

html[data-preset="light"] .crm-property-gap-chip.is-active,
body[data-preset="light"] .crm-property-gap-chip.is-active {
  color: #0f172a !important;
  border-color: #0284c7 !important;
  background: #e0f2fe !important;
}

/* A4 coda posta (visibile solo <768px) */
html[data-preset="light"] .crm-mailbox-link-tap,
body[data-preset="light"] .crm-mailbox-link-tap {
  border-top-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-preset="light"] .crm-mailbox-link-tap__btn,
body[data-preset="light"] .crm-mailbox-link-tap__btn {
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: #fff !important;
}

/* Tooltip qualità annuncio (hover %) */
html[data-preset="light"] .crm-property-quality-tooltip,
body[data-preset="light"] .crm-property-quality-tooltip {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14) !important;
}
html[data-preset="light"] .crm-property-quality-tooltip-sub,
body[data-preset="light"] .crm-property-quality-tooltip-sub {
  color: #475569 !important;
}
html[data-preset="light"] .crm-property-quality-breakdown,
html[data-preset="light"] .crm-property-quality-components,
body[data-preset="light"] .crm-property-quality-breakdown,
body[data-preset="light"] .crm-property-quality-components {
  background: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}
html[data-preset="light"] .crm-property-quality-breakdown-row,
html[data-preset="light"] .crm-property-quality-component-row,
html[data-preset="light"] .crm-property-quality-details,
body[data-preset="light"] .crm-property-quality-breakdown-row,
body[data-preset="light"] .crm-property-quality-component-row,
body[data-preset="light"] .crm-property-quality-details {
  color: #334155 !important;
}
html[data-preset="light"] .crm-property-quality-ok,
body[data-preset="light"] .crm-property-quality-ok {
  color: #15803d !important;
}
html[data-preset="light"] .crm-property-quality-no,
body[data-preset="light"] .crm-property-quality-no {
  color: #b91c1c !important;
}

/* ========== Form task/evento + box in modal/embed: stesso vetro sidebar ========== */
html[data-preset="light"],
body[data-preset="light"] {
  --crm-sidebar-glass-bg:
    radial-gradient(circle at 0% 0%, rgba(15, 107, 75, 0.06), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(241, 245, 249, 0.48)),
    rgba(255, 255, 255, 0.54);
  --crm-sidebar-glass-border: rgba(255, 255, 255, 0.72);
  --crm-sidebar-glass-shadow:
    0 18px 46px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-preset="light"] .crm-activity-form-card.ui-card,
body[data-preset="light"] .crm-activity-form-card.ui-card,
html[data-preset="light"] body.crm-embed .ui-card,
body[data-preset="light"].crm-embed .ui-card,
html[data-preset="light"] .crm-simple-iframe-modal__dialog,
body[data-preset="light"] .crm-simple-iframe-modal__dialog,
html[data-preset="light"] .crm-catasto-iframe-modal__dialog,
body[data-preset="light"] .crm-catasto-iframe-modal__dialog,
html[data-preset="light"] .crm-accesso-atti-modal__dialog,
body[data-preset="light"] .crm-accesso-atti-modal__dialog,
html[data-preset="light"] .crm-intelligence-modal__dialog,
body[data-preset="light"] .crm-intelligence-modal__dialog,
html[data-preset="light"] .crm-visual-ai-modal__dialog,
body[data-preset="light"] .crm-visual-ai-modal__dialog,
html[data-preset="light"] .crm-contact-matches-modal__dialog,
body[data-preset="light"] .crm-contact-matches-modal__dialog,
html[data-preset="light"] .crm-quickview-modal__box,
body[data-preset="light"] .crm-quickview-modal__box,
html[data-preset="light"] .pe-modal,
body[data-preset="light"] .pe-modal,
html[data-preset="light"] .qso-modal,
body[data-preset="light"] .qso-modal,
html[data-preset="light"] .pipeline-modal-card,
body[data-preset="light"] .pipeline-modal-card {
  background: var(--crm-sidebar-glass-bg) !important;
  border: 1px solid var(--crm-sidebar-glass-border) !important;
  box-shadow: var(--crm-sidebar-glass-shadow) !important;
  backdrop-filter: blur(24px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.08) !important;
}

html[data-preset="light"] body.crm-embed,
body[data-preset="light"].crm-embed {
  background:
    radial-gradient(circle at 12% 0%, rgba(15, 107, 75, 0.04), transparent 40%),
    #f1f5f9 !important;
}

html[data-preset="light"] .crm-simple-iframe-modal__header,
body[data-preset="light"] .crm-simple-iframe-modal__header {
  background: transparent !important;
}
/* === END crm-theme-light-fixes_part_08.css === */
/* === BEGIN crm-theme-light-fixes_part_09.css === */
/* crm-theme-light-fixes_part_09.css — Editor report venditore (solo light) */
/* Tutti i selettori: [data-preset="light"]. Non tocca il tema dark. */

html[data-preset="light"] .report-editor,
body[data-preset="light"] .report-editor {
  color: #0f172a !important;
}

html[data-preset="light"] .report-editor .hero-title,
html[data-preset="light"] .report-editor .hero-title input[type="text"],
body[data-preset="light"] .report-editor .hero-title,
body[data-preset="light"] .report-editor .hero-title input[type="text"] {
  color: #0f172a !important;
}

html[data-preset="light"] .report-editor .info-card,
html[data-preset="light"] .report-editor .section-card,
html[data-preset="light"] .report-editor .mini-card,
html[data-preset="light"] .report-editor .money-row,
html[data-preset="light"] .report-editor-shell,
html[data-preset="light"] .seller-report-digital-kpi,
html[data-preset="light"] .seller-report-events,
body[data-preset="light"] .report-editor .info-card,
body[data-preset="light"] .report-editor .section-card,
body[data-preset="light"] .report-editor .mini-card,
body[data-preset="light"] .report-editor .money-row,
body[data-preset="light"] .report-editor-shell,
body[data-preset="light"] .seller-report-digital-kpi,
body[data-preset="light"] .seller-report-events {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

html[data-preset="light"] .report-editor .info-card.ui-card,
html[data-preset="light"] .report-editor .section-card.ui-card,
html[data-preset="light"] .report-editor .seller-report-digital-section.ui-card,
html[data-preset="light"] .report-editor-shell.ui-card,
body[data-preset="light"] .report-editor .info-card.ui-card,
body[data-preset="light"] .report-editor .section-card.ui-card,
body[data-preset="light"] .report-editor .seller-report-digital-section.ui-card,
body[data-preset="light"] .report-editor-shell.ui-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-preset="light"] .report-editor input[type="text"],
html[data-preset="light"] .report-editor input[type="number"],
html[data-preset="light"] .report-editor select,
html[data-preset="light"] .report-editor textarea,
body[data-preset="light"] .report-editor input[type="text"],
body[data-preset="light"] .report-editor input[type="number"],
body[data-preset="light"] .report-editor select,
body[data-preset="light"] .report-editor textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-preset="light"] .report-editor .hero-title input[type="text"],
body[data-preset="light"] .report-editor .hero-title input[type="text"] {
  background: transparent !important;
  border: none !important;
}

html[data-preset="light"] .report-editor .muted-label,
html[data-preset="light"] .report-editor .toggle,
html[data-preset="light"] .seller-report-digital-kpi-label,
body[data-preset="light"] .report-editor .muted-label,
body[data-preset="light"] .report-editor .toggle,
body[data-preset="light"] .seller-report-digital-kpi-label {
  color: #475569 !important;
}

html[data-preset="light"] .report-editor .report-editor-track,
body[data-preset="light"] .report-editor .report-editor-track {
  background: #e2e8f0 !important;
}

html[data-preset="light"] .crm-file-upload--property-media .crm-upload-dropzone--property-media,
body[data-preset="light"] .crm-file-upload--property-media .crm-upload-dropzone--property-media {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.22) !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06) !important;
}

html[data-preset="light"] .crm-file-upload--property-media .crm-upload-dropzone--property-media .crm-upload-dropzone-icon,
body[data-preset="light"] .crm-file-upload--property-media .crm-upload-dropzone--property-media .crm-upload-dropzone-icon {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.1) !important;
}

html[data-preset="light"] .crm-file-upload--property-media .crm-upload-dropzone--property-media .crm-upload-dropzone-dragline,
html[data-preset="light"] .crm-file-upload--property-media .crm-upload-dropzone--property-media .crm-upload-dropzone-property-title,
body[data-preset="light"] .crm-file-upload--property-media .crm-upload-dropzone--property-media .crm-upload-dropzone-dragline,
body[data-preset="light"] .crm-file-upload--property-media .crm-upload-dropzone--property-media .crm-upload-dropzone-property-title {
  color: #0f172a !important;
}
/* === END crm-theme-light-fixes_part_09.css === */
/* === BEGIN crm-theme-light-fixes_part_10.css === */
/* crm-theme-light-fixes_part_10.css — Guida CRM help (solo light) */
/* Tutti i selettori: [data-preset="light"]. Non tocca il tema dark. */

html[data-preset="light"] .crm-help-search,
html[data-preset="light"] .crm-help-quick-links a,
html[data-preset="light"] .crm-help-toc a,
html[data-preset="light"] .crm-help-toolbar-btn,
body[data-preset="light"] .crm-help-search,
body[data-preset="light"] .crm-help-quick-links a,
body[data-preset="light"] .crm-help-toc a,
body[data-preset="light"] .crm-help-toolbar-btn {
  border-color: rgba(15, 23, 42, 0.14) !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

html[data-preset="light"] .crm-help-search:focus,
body[data-preset="light"] .crm-help-search:focus {
  outline-color: rgba(37, 99, 235, 0.45) !important;
}

html[data-preset="light"] .crm-help-quick-links a:hover,
html[data-preset="light"] .crm-help-toc a:hover,
html[data-preset="light"] .crm-help-toolbar-btn:hover,
body[data-preset="light"] .crm-help-quick-links a:hover,
body[data-preset="light"] .crm-help-toc a:hover,
body[data-preset="light"] .crm-help-toolbar-btn:hover {
  background: #f1f5f9 !important;
}

html[data-preset="light"] .crm-help-faq details,
html[data-preset="light"] .crm-help-path-card,
html[data-preset="light"] .crm-help-empty,
html[data-preset="light"] .crm-help-hint,
body[data-preset="light"] .crm-help-faq details,
body[data-preset="light"] .crm-help-path-card,
body[data-preset="light"] .crm-help-empty,
body[data-preset="light"] .crm-help-hint {
  border-color: rgba(15, 23, 42, 0.12) !important;
  background: #ffffff !important;
  color: #0f172a !important;
}

html[data-preset="light"] .crm-help-faq-answer,
body[data-preset="light"] .crm-help-faq-answer {
  border-top-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-preset="light"] .crm-help-meta,
html[data-preset="light"] .crm-help-search-label,
html[data-preset="light"] .crm-help-section-count,
html[data-preset="light"] .crm-help-section-intro,
html[data-preset="light"] .crm-help-paths-kicker,
html[data-preset="light"] .crm-help-paths-lead,
html[data-preset="light"] .crm-help-path-card p,
body[data-preset="light"] .crm-help-meta,
body[data-preset="light"] .crm-help-search-label,
body[data-preset="light"] .crm-help-section-count,
body[data-preset="light"] .crm-help-section-intro,
body[data-preset="light"] .crm-help-paths-kicker,
body[data-preset="light"] .crm-help-paths-lead,
body[data-preset="light"] .crm-help-path-card p {
  color: #475569 !important;
  opacity: 1 !important;
}

html[data-preset="light"] .crm-help-tip,
body[data-preset="light"] .crm-help-tip {
  border-color: rgba(5, 150, 105, 0.28) !important;
  background: #ecfdf5 !important;
  color: #065f46 !important;
}
/* === END crm-theme-light-fixes_part_10.css === */
/* === BEGIN crm-theme-light-fixes_part_11.css === */
/* crm-theme-light-fixes_part_11.css — Settings + import wizard (solo light) */
/* Tutti i selettori: [data-preset="light"]. Non tocca il tema dark. */

html[data-preset="light"] .crm-settings-hero,
html[data-preset="light"] .crm-provisioning-readiness,
html[data-preset="light"] .crm-provisioning-form,
html[data-preset="light"] .crm-theme-panel,
html[data-preset="light"] .crm-settings-card,
html[data-preset="light"] .crm-theme-preset-card,
body[data-preset="light"] .crm-settings-hero,
body[data-preset="light"] .crm-provisioning-readiness,
body[data-preset="light"] .crm-provisioning-form,
body[data-preset="light"] .crm-theme-panel,
body[data-preset="light"] .crm-settings-card,
body[data-preset="light"] .crm-theme-preset-card {
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
  color: #0f172a !important;
}

html[data-preset="light"] .crm-settings-shell .ui-btn-ghost,
body[data-preset="light"] .crm-settings-shell .ui-btn-ghost {
  background: #f8fafc !important;
  color: #0f172a !important;
  box-shadow: none !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

html[data-preset="light"] .crm-settings-context,
body[data-preset="light"] .crm-settings-context {
  background: #f8fafc !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}

html[data-preset="light"] .crm-settings-alert.is-success,
body[data-preset="light"] .crm-settings-alert.is-success {
  background: #ecfdf5 !important;
  color: #047857 !important;
}

html[data-preset="light"] .crm-settings-alert.is-error,
body[data-preset="light"] .crm-settings-alert.is-error {
  background: #fff1f2 !important;
  color: #be123c !important;
}

html[data-preset="light"] .crm-settings-alert.is-warning,
body[data-preset="light"] .crm-settings-alert.is-warning {
  background: #fffbeb !important;
  color: #b45309 !important;
}

html[data-preset="light"] .crm-settings-alert.is-info,
body[data-preset="light"] .crm-settings-alert.is-info {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

html[data-preset="light"] .crm-choice-card.is-module-disabled,
body[data-preset="light"] .crm-choice-card.is-module-disabled {
  background: #f1f5f9 !important;
  opacity: 1 !important;
  color: #64748b !important;
}

html[data-preset="light"] .crm-module-cascade-feedback,
body[data-preset="light"] .crm-module-cascade-feedback {
  color: #c2410c !important;
}

html[data-preset="light"] .crm-settings-shell .ui-input,
html[data-preset="light"] .crm-settings-shell input,
html[data-preset="light"] .crm-settings-shell select,
html[data-preset="light"] .crm-settings-shell textarea,
body[data-preset="light"] .crm-settings-shell .ui-input,
body[data-preset="light"] .crm-settings-shell input,
body[data-preset="light"] .crm-settings-shell select,
body[data-preset="light"] .crm-settings-shell textarea {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12) !important;
}

html[data-preset="light"] .import-wizard-card,
html[data-preset="light"] .import-wizard-soft,
html[data-preset="light"] .import-wizard-modal,
html[data-preset="light"] .cometa-section-toggle,
body[data-preset="light"] .import-wizard-card,
body[data-preset="light"] .import-wizard-soft,
body[data-preset="light"] .import-wizard-modal,
body[data-preset="light"] .cometa-section-toggle {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08) !important;
}

html[data-preset="light"] .import-wizard-field,
body[data-preset="light"] .import-wizard-field {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
}

/* Anteprima report venditore (templates/reports/seller_report_preview.html):
   mai toccata dai giri precedenti, autrice originale in soli colori scuri
   (bg-slate-950/30, bg-white/5, text-slate-200/400) — su sfondo chiaro
   diventava un riquadro grigio poco leggibile (segnalato da Michele). */
html[data-preset="light"] .seller-report-preview-shell .print-card,
html[data-preset="light"] .seller-report-preview-shell [class*="bg-slate-950"],
body[data-preset="light"] .seller-report-preview-shell .print-card,
body[data-preset="light"] .seller-report-preview-shell [class*="bg-slate-950"] {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-preset="light"] .seller-report-preview-shell [class*="bg-white/5"],
html[data-preset="light"] .seller-report-preview-shell [class*="bg-white/10"],
body[data-preset="light"] .seller-report-preview-shell [class*="bg-white/5"],
body[data-preset="light"] .seller-report-preview-shell [class*="bg-white/10"] {
  background: #f1f5f9 !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}

html[data-preset="light"] .seller-report-preview-shell .print-bar-track,
body[data-preset="light"] .seller-report-preview-shell .print-bar-track {
  background: #e2e8f0 !important;
}

html[data-preset="light"] .seller-report-preview-shell .text-slate-400,
body[data-preset="light"] .seller-report-preview-shell .text-slate-400 {
  color: #64748b !important;
}

html[data-preset="light"] .seller-report-preview-shell .text-slate-200,
html[data-preset="light"] .seller-report-preview-shell h2,
html[data-preset="light"] .seller-report-preview-shell h3,
html[data-preset="light"] .seller-report-preview-shell dd,
html[data-preset="light"] .seller-report-preview-shell .font-medium,
html[data-preset="light"] .seller-report-preview-shell .font-semibold,
body[data-preset="light"] .seller-report-preview-shell .text-slate-200,
body[data-preset="light"] .seller-report-preview-shell h2,
body[data-preset="light"] .seller-report-preview-shell h3,
body[data-preset="light"] .seller-report-preview-shell dd,
body[data-preset="light"] .seller-report-preview-shell .font-medium,
body[data-preset="light"] .seller-report-preview-shell .font-semibold {
  color: #0f172a !important;
}

/* Pulsante "Torna all'editor" e badge "email mancante": stessa cura. */
html[data-preset="light"] .seller-report-preview-shell a[href*="edit"],
body[data-preset="light"] .seller-report-preview-shell a[href*="edit"] {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}
/* === END crm-theme-light-fixes_part_11.css === */
