/* ===== Modo escuro das telas internas do CRM (ativa com <html data-theme="dark">) ===== */
html[data-theme="dark"] body{background:#14171b!important;color:#e7edf0!important;}
html[data-theme="dark"] .crm-shell-nav,html[data-theme="dark"] aside,html[data-theme="dark"] .sidebar{background:#1a1f25!important;border-color:rgba(255,255,255,.08)!important;}
html[data-theme="dark"] .crm-shell-link,html[data-theme="dark"] .crm-shell-label,html[data-theme="dark"] .crm-mobile-link,html[data-theme="dark"] .crm-shell-toggle,html[data-theme="dark"] .nav-icon{color:#c4ccd2!important;}
html[data-theme="dark"] .crm-shell-link.active,html[data-theme="dark"] .crm-shell-link:hover,html[data-theme="dark"] .nav-icon.active,html[data-theme="dark"] .nav-icon:hover{background:rgba(237,164,32,.14)!important;color:#EDA420!important;}
html[data-theme="dark"] .crm-mobile-nav,html[data-theme="dark"] .crm-mobile-more,html[data-theme="dark"] .crm-mobile-sheet{background:#1a1f25!important;color:#c4ccd2!important;border-color:rgba(255,255,255,.08)!important;}
html[data-theme="dark"] .card,html[data-theme="dark"] .panel,html[data-theme="dark"] .box,html[data-theme="dark"] .detail,html[data-theme="dark"] .note,html[data-theme="dark"] .modal,html[data-theme="dark"] .sheet,html[data-theme="dark"] .dropdown,html[data-theme="dark"] .menu,html[data-theme="dark"] .col,html[data-theme="dark"] .column,html[data-theme="dark"] .kanban-col,html[data-theme="dark"] .k-col,html[data-theme="dark"] .stage,html[data-theme="dark"] .lead-card,html[data-theme="dark"] .drawer,html[data-theme="dark"] .popover,html[data-theme="dark"] .widget,html[data-theme="dark"] .tile,html[data-theme="dark"] .cardx,html[data-theme="dark"] .block{background:#1e242b!important;color:#e7edf0!important;border-color:rgba(255,255,255,.08)!important;}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#20262d!important;color:#eef2f5!important;border-color:rgba(255,255,255,.14)!important;}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8a97a0!important;}
html[data-theme="dark"] .filter,html[data-theme="dark"] .btn-hoje,html[data-theme="dark"] .day-nav,html[data-theme="dark"] .view-toggle,html[data-theme="dark"] .btn-ghost,html[data-theme="dark"] .btn-sec,html[data-theme="dark"] .chip,html[data-theme="dark"] .pill{background:#20262d!important;color:#dbe3e8!important;border-color:rgba(255,255,255,.12)!important;}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,html[data-theme="dark"] .title-block h1,html[data-theme="dark"] .page-title,html[data-theme="dark"] .hero h1,html[data-theme="dark"] .hero h2,html[data-theme="dark"] .page-head h1{color:#f0f4f6!important;}
html[data-theme="dark"] .subtitle,html[data-theme="dark"] .muted,html[data-theme="dark"] .text-mute,html[data-theme="dark"] small,html[data-theme="dark"] .hint{color:#aeb8bf!important;}
html[data-theme="dark"] .hour-row,html[data-theme="dark"] .slot,html[data-theme="dark"] .slots,html[data-theme="dark"] .row,html[data-theme="dark"] .v,html[data-theme="dark"] strong,html[data-theme="dark"] .detail-section,html[data-theme="dark"] td,html[data-theme="dark"] th,html[data-theme="dark"] label,html[data-theme="dark"] p,html[data-theme="dark"] li{color:#e7edf0;}
html[data-theme="dark"] .hour-row,html[data-theme="dark"] table,html[data-theme="dark"] td,html[data-theme="dark"] th,html[data-theme="dark"] .divider,html[data-theme="dark"] hr{border-color:rgba(255,255,255,.07)!important;}
html[data-theme="dark"] .now-time{background:#EDA420!important;color:#14171b!important;}
html[data-theme="dark"] ::-webkit-scrollbar-thumb{background:#394049;}
html[data-theme="dark"] ::-webkit-scrollbar-track{background:#14171b;}

/* --- lapidacao telas mantidas --- */
html[data-theme="dark"] .pp-topnav,html[data-theme="dark"] .pp-bell-btn,html[data-theme="dark"] .pp-bell-drop,html[data-theme="dark"] .pp-reldrop,html[data-theme="dark"] .tn{background:#1a1f25!important;color:#dbe3e8!important;border-color:rgba(255,255,255,.08)!important;}
html[data-theme="dark"] .pp-topnav a,html[data-theme="dark"] .pp-topnav .tn,html[data-theme="dark"] .pp-bell-drop a{color:#c4ccd2!important;}
html[data-theme="dark"] .pp-topnav a.active,html[data-theme="dark"] .tn.active{color:#EDA420!important;}
html[data-theme="dark"] .crm-ciente-card{background:#1e242b!important;color:#e7edf0!important;border-color:rgba(255,255,255,.1)!important;}
html[data-theme="dark"] .fcard,html[data-theme="dark"] .fro,html[data-theme="dark"] .csb,html[data-theme="dark"] .nl,html[data-theme="dark"] .jf,html[data-theme="dark"] .open,html[data-theme="dark"] .clr{background:#1e242b!important;color:#e7edf0!important;border-color:rgba(255,255,255,.08)!important;}
html[data-theme="dark"] .finp,html[data-theme="dark"] .fta{background:#20262d!important;color:#eef2f5!important;border-color:rgba(255,255,255,.14)!important;}
html[data-theme="dark"] .finp::placeholder,html[data-theme="dark"] .fta::placeholder{color:#8a97a0!important;}
html[data-theme="dark"] .msg,html[data-theme="dark"] .bubble,html[data-theme="dark"] .conv-item,html[data-theme="dark"] .thread-item,html[data-theme="dark"] .task,html[data-theme="dark"] .task-card,html[data-theme="dark"] .stat,html[data-theme="dark"] .kpi,html[data-theme="dark"] .metric,html[data-theme="dark"] .section,html[data-theme="dark"] .form-section{background:#1e242b!important;color:#e7edf0!important;border-color:rgba(255,255,255,.08)!important;}
