/* CLENA BEAUTY PRO — MONOCROMO PREMIUM
   Tema opcional do painel administrativo. Mantém fluxo, dados, página
   pública e cores de estados de negócio independentes da aparência.
   Carregado por último para superar estilos legados (inclusive mobile). */

html[data-beauty-theme="monocromo"]{
  color-scheme:light;
  --skin-bg:#f5f5f4;
  --skin-surface:#fff;
  --skin-alt:#f1f1f0;
  --skin-ink:#171717;
  --skin-muted:#585858;
  --skin-border:#dededc;
  --skin-accent:#141414;
  --skin-accent-hover:#343434;
  --skin-soft:#eaeae8;
  --skin-on-accent:#fff;
  --skin-sidebar:#101010;
  --skin-side-ink:#f6f6f5;
  --skin-line:#cececb;
  --skin-hero:#171717;
  --skin-hero-secondary:#292929;
  --skin-hero-text:#fff;
  --skin-shadow:0 7px 27px rgba(0,0,0,.055);
  --skin-input:#fff;
  --skin-toast:#fff;
  --skin-progress:#dededb;
  --ui-page:#f5f5f4;
  --ui-text:#171717;
  --ui-muted:#585858;
  --ui-line:#dededc;
  --ui-line-strong:#cececb;
  --ui-shadow:0 7px 27px rgba(0,0,0,.055);
  --bg:#f5f5f4;
  --surface:#fff;
  --surface-soft:#fafafa;
  --surface-muted:#f1f1f0;
  --text:#171717;
  --muted:#585858;
  --border:#dededc;
  --primary:#141414!important;
  --primary-rgb:20,20,20!important;
  --primary-dark:#333!important;
  --primary-soft:#e9e9e7;
  --sidebar:#101010;
  --sidebar-card:#202020;
  --sidebar-border:#414141;
  --mb-bg:#f5f5f4;
  --mb-card:#fff;
  --mb-ink:#171717;
  --mb-muted:#606060;
  --mb-muted-strong:#4e4e4e;
  --mb-border:#dededc;
  --mb-brand-safe:#141414;
  --mb-shadow:0 6px 21px rgba(0,0,0,.055);
  --read-title:#151515;
  --read-body:#282828;
  --read-muted:#565656;
  --read-placeholder:#676767;
  --read-accent:#171717;
  --read-accent-rgb:23,23,23;
  --read-on-accent:#fff;
  --read-input:#fff;
  --read-panel:#fff;
  --read-raised:#f1f1ef;
  --finance-deep:#191919;
  --finance-deep-2:#282828;
}

/* O modo monocromático não altera o tema da página pública do cliente. */
html[data-beauty-theme="monocromo"],
html[data-beauty-theme="monocromo"] body,
html[data-beauty-theme="monocromo"] :is(.app-shell,.workspace,.content,.editor-section,.auth-form-panel,.page-loader,.fatal-state){
  background:#f5f5f4!important;
  color:#171717!important;
}
html[data-beauty-theme="monocromo"] :is(.panel,.item-card,.stats-grid article,.table-wrap,.calendar-shell,.day-agenda,.finance-summary-card,.finance-month-card,.finance-filterbar,.finance-entry,.report-filter,.report-kpis article,.agenda-metric,.customer-list-wrap,.modal-card,.auth-card,.fatal-card,.clena-theme-setting,.service-form-section,.day-row,.check-item,.empty-state,.toggle-row,.customer-stat-cell,.rank-row){
  background:#fff!important;
  color:#171717!important;
  border-color:#dededc!important;
  box-shadow:0 6px 24px rgba(0,0,0,.04)!important;
}
html[data-beauty-theme="monocromo"] :is(.section-header h2,.panel-head h3,.panel h3,.stats-grid strong,.report-kpis strong,.finance-main h4,.finance-value strong,.finance-month-copy strong,.day-agenda-head h3,.item-main h4,.customer-identity strong,.appointment-customer-line h4,.clena-theme-choice-label strong,.clena-theme-setting h3){
  color:#151515!important;
}
html[data-beauty-theme="monocromo"] :is(.section-header p,.item-main p,.item-main small,.stats-grid small,.customer-identity small,.appointment-time small,.appointment-meta small,.finance-main small,.finance-main p,.report-kpis small,.day-agenda-head p,.clena-theme-setting p,.empty-state,.field small,.toggle-row small,.finance-due small,.helper-box){
  color:#5d5d5d!important;
}

/* Cabeçalho e navegação: preto carvão e branco, sem gradientes coloridos. */
html[data-beauty-theme="monocromo"] .topbar{
  background:#101010!important;
  color:#fff!important;
  border-color:#2d2d2d!important;
  box-shadow:0 4px 18px rgba(0,0,0,.12)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
html[data-beauty-theme="monocromo"] .topbar :is(h1,.topbar-title,.topbar-title small,.save-state,.topbar-title i){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html[data-beauty-theme="monocromo"] .topbar :is(.icon-btn,#mobileMenu,.profile-pill){
  background:#272727!important;
  border:1px solid #474747!important;
  color:#fff!important;
}
html[data-beauty-theme="monocromo"] .topbar :is(.icon-btn,#mobileMenu,.profile-pill) :is(i,span){color:#fff!important}
html[data-beauty-theme="monocromo"] #sendToClientsButton{
  background:#fff!important;
  background-image:none!important;
  color:#101010!important;
  -webkit-text-fill-color:#101010!important;
  border:1px solid #fff!important;
  box-shadow:none!important;
}
html[data-beauty-theme="monocromo"] #sendToClientsButton :is(i,span){color:#101010!important}
html[data-beauty-theme="monocromo"] #sendToClientsButton:hover{background:#e8e8e8!important}
html[data-beauty-theme="monocromo"] .sidebar,
html[data-beauty-theme="monocromo"] .mobile-bottom-nav{
  background:#111!important;
  border-color:#333!important;
  color:#f7f7f7!important;
  box-shadow:none!important;
}
html[data-beauty-theme="monocromo"] .sidebar :is(.brand,.nav-item,.back-link,.business-mini strong,.business-mini small,.clena-autosave-label),
html[data-beauty-theme="monocromo"] .mobile-bottom-nav button{
  color:#ededed!important;
  -webkit-text-fill-color:#ededed!important;
}
html[data-beauty-theme="monocromo"] .sidebar :is(.nav-item,.nav-item:hover,.nav-item.is-active),
html[data-beauty-theme="monocromo"] .mobile-bottom-nav button.is-active{
  background:#f7f7f7!important;
  background-image:none!important;
  color:#111!important;
  border-color:transparent!important;
}
html[data-beauty-theme="monocromo"] .sidebar :is(.nav-item:hover,.nav-item.is-active) :is(i,span,small),
html[data-beauty-theme="monocromo"] .mobile-bottom-nav button.is-active :is(i,span,small,b){
  color:#111!important;
  -webkit-text-fill-color:#111!important;
}
html[data-beauty-theme="monocromo"] .sidebar .business-mini{
  background:#202020!important;
  border-color:#363636!important;
}
html[data-beauty-theme="monocromo"] .clena-mobile-sidebar-quick button{color:#f5f5f5!important}
html[data-beauty-theme="monocromo"] :is(.brand-mark,.auth-mini-logo,.auth-brand-logo){
  background:#fff!important;
  background-image:none!important;
  color:#111!important;
  border:1px solid #e0e0e0!important;
  box-shadow:none!important;
}
html[data-beauty-theme="monocromo"] :is(.brand-mark img,.splash-logo img){filter:grayscale(1) contrast(1.08)}

/* Hero, chamada para ação e indicadores. */
html[data-beauty-theme="monocromo"] :is(.hero-card,.overview-premium .hero-card){
  background:linear-gradient(135deg,#111 0%,#282828 100%)!important;
  color:#fff!important;
  box-shadow:0 15px 34px rgba(0,0,0,.12)!important;
}
html[data-beauty-theme="monocromo"] .hero-card :is(h2,p,.eyebrow,.hero-visual,.section-header p){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
html[data-beauty-theme="monocromo"] .hero-card .primary-btn{
  background:#fff!important;
  background-image:none!important;
  color:#111!important;
  -webkit-text-fill-color:#111!important;
  border:1px solid #fff!important;
}
html[data-beauty-theme="monocromo"] .hero-card .primary-btn :is(i,span){color:#111!important}
html[data-beauty-theme="monocromo"] .hero-card .secondary-btn{
  background:#333!important;
  color:#fff!important;
  border:1px solid #666!important;
}
html[data-beauty-theme="monocromo"] :is(.primary-btn,.auth-submit,.finance-new-btn,.whatsapp-purple,.whatsapp-send-btn){
  background:#111!important;
  background-image:none!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border:1px solid #111!important;
  box-shadow:none!important;
}
html[data-beauty-theme="monocromo"] :is(.primary-btn,.auth-submit,.finance-new-btn,.whatsapp-purple,.whatsapp-send-btn) :is(i,span){
  color:inherit!important;
  -webkit-text-fill-color:inherit!important;
}
html[data-beauty-theme="monocromo"] :is(.primary-btn,.auth-submit,.finance-new-btn):hover:not(:disabled){background:#303030!important}
html[data-beauty-theme="monocromo"] :is(.secondary-btn,.text-btn,.icon-btn,.finance-select,.finance-filterbar button,.profile-menu button){
  background:#f2f2f1!important;
  background-image:none!important;
  color:#222!important;
  border-color:#d9d9d7!important;
  box-shadow:none!important;
}
html[data-beauty-theme="monocromo"] :is(.secondary-btn,.text-btn,.icon-btn) :is(i,span){color:inherit!important}
html[data-beauty-theme="monocromo"] :is(.stats-grid article>span,.report-kpis article>span,.agenda-metric>span){
  background:#ededeb!important;
  color:#171717!important;
  box-shadow:none!important;
}
html[data-beauty-theme="monocromo"] :is(.progress,.progress-track){
  background:#dfdfdc!important;
}
html[data-beauty-theme="monocromo"] :is(.progress span,.progress-fill,#setupBar){
  background:#151515!important;
  background-image:none!important;
}
html[data-beauty-theme="monocromo"] :is(.eyebrow,.badge.info,.clena-theme-kicker){
  background:#ededeb!important;
  color:#292929!important;
  border-color:#d2d2cf!important;
}

/* Formulários, filtros, cartões e tabelas em todas as telas. */
html[data-beauty-theme="monocromo"] :is(.field input,.field select,.field textarea,.toolbar input,.toolbar select,.calendar-filters input,.calendar-filters select,.quick-status select,.finance-search,.finance-select,.finance-search input,.finance-select select,.slug-input,.slug-input input,.auth-input,.auth-input input,.day-times input,.report-filter input,.report-filter select,#modalBody input,#modalBody select,#modalBody textarea){
  background:#fff!important;
  background-image:none!important;
  border:1px solid #cececb!important;
  color:#171717!important;
  -webkit-text-fill-color:#171717!important;
  box-shadow:none!important;
}
html[data-beauty-theme="monocromo"] :is(input,textarea)::placeholder{
  color:#717171!important;
  -webkit-text-fill-color:#717171!important;
  opacity:1!important;
}
html[data-beauty-theme="monocromo"] :is(input,select,textarea):focus{
  border-color:#111!important;
  outline-color:#111!important;
  box-shadow:0 0 0 3px rgba(17,17,17,.12)!important;
}
html[data-beauty-theme="monocromo"] :is(.field>span,.field>b,.toggle-row b,.service-section-head strong,.finance-filterbar label,.report-filter label){
  color:#242424!important;
}
html[data-beauty-theme="monocromo"] :is(.check-item,.service-form-section,.customer-stat-cell,.rank-row,.helper-box,.calendar-toolbar,.modal-footer,.payment-mode-grid label span,.finance-filterbar,.finance-search,.finance-select,.toggle-row){
  background:#f6f6f5!important;
  border-color:#dededc!important;
  color:#252525!important;
}
html[data-beauty-theme="monocromo"] :is(.calendar-event,.day-agenda,.calendar-day,.day-row,.finance-entry,.appointment-row,.customer-row,.report-kpis article){
  border-color:#ddd!important;
}
html[data-beauty-theme="monocromo"] :is(.calendar-event.is-selected,.calendar-day.is-selected,[aria-selected="true"],.filter-chip.is-active){
  border-color:#111!important;
  box-shadow:0 0 0 1px #111!important;
}
html[data-beauty-theme="monocromo"] :is(.screen-finance .finance-summary-shell,.finance-summary-shell){
  background:#1a1a1a!important;
  background-image:linear-gradient(130deg,#151515,#303030)!important;
  border-color:#343434!important;
}
html[data-beauty-theme="monocromo"] .finance-summary-shell :is(h2,h3,strong,b,.finance-month-copy,.finance-month-copy small){
  color:#fff!important;
}
html[data-beauty-theme="monocromo"] .finance-summary-shell :is(.finance-summary-card,.finance-month-card){
  background:#fff!important;
  color:#171717!important;
  border-color:#dededc!important;
}
html[data-beauty-theme="monocromo"] .finance-summary-shell :is(.finance-summary-card,.finance-month-card) :is(strong,b,small,span){
  color:#171717!important;
}

/* Modal, menu e autenticação com contraste real e sem azul residual. */
html[data-beauty-theme="monocromo"] :is(.modal-card,.modal-card header,.modal-card #modalBody,.modal-footer,.profile-menu,.auth-card){
  background:#fff!important;
  color:#171717!important;
  border-color:#d9d9d7!important;
}
html[data-beauty-theme="monocromo"] .auth-brand-panel{
  background:#111!important;
  background-image:linear-gradient(150deg,#101010,#252525)!important;
  color:#fff!important;
}
html[data-beauty-theme="monocromo"] .auth-brand-panel :is(h1,h2,p,small,span,b,strong){color:#fff!important}
html[data-beauty-theme="monocromo"] .auth-card :is(h2,strong,b){color:#111!important}
html[data-beauty-theme="monocromo"] .auth-card :is(p,small){color:#555!important}
html[data-beauty-theme="monocromo"] .auth-link{color:#111!important}

/* Splash e loading usam o mesmo tema, desde o primeiro frame. */
html[data-beauty-theme="monocromo"] .app-splash{
  background:#f5f5f4!important;
  background-image:radial-gradient(circle at 50% 28%,#fff 0%,#f5f5f4 70%)!important;
  color:#141414!important;
  border:0!important;
}
html[data-beauty-theme="monocromo"] .app-splash :is(strong,small){color:#1c1c1c!important}
html[data-beauty-theme="monocromo"] .splash-logo{
  background:#fff!important;
  border:1px solid #dadad8!important;
  box-shadow:0 13px 38px rgba(0,0,0,.08)!important;
}
html[data-beauty-theme="monocromo"] .page-loader{
  background:#f5f5f4!important;
  color:#4d4d4d!important;
}
html[data-beauty-theme="monocromo"] .page-loader p{color:#4d4d4d!important}
html[data-beauty-theme="monocromo"] .loader-dot{
  width:45px;height:45px;
  background:transparent!important;
  border:3px solid #dededb!important;
  border-top-color:#111!important;
  animation:spin .85s linear infinite!important;
}
html[data-beauty-theme="monocromo"] .fatal-card{background:#fff!important;color:#171717!important}

/* Seletor visual: quarto tema sem apertar os cartões. */
html[data-beauty-theme] .clena-theme-setting{display:grid!important}
html[data-beauty-theme] .clena-theme-choices{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.clena-theme-choice[data-theme-choice="monocromo"] .clena-theme-swatch{
  background:#f5f5f4!important;border-color:#b8b8b6!important;
}
.clena-theme-choice[data-theme-choice="monocromo"] .clena-theme-swatch-sidebar{background:#141414!important}
.clena-theme-choice[data-theme-choice="monocromo"] .clena-theme-swatch-page i:first-child{background:#151515!important}
.clena-theme-choice[data-theme-choice="monocromo"] .clena-theme-swatch-page i:last-child{background:#d1d1ce!important}
html[data-beauty-theme="monocromo"] .clena-theme-choice[aria-checked="true"]{
  border-color:#111!important;
  box-shadow:0 0 0 1px #111!important;
}

/* Somente o modo monocromático: correção dos estilos azuis finais legados. */
@media(max-width:760px){
  html[data-beauty-theme="monocromo"],
  html[data-beauty-theme="monocromo"] body,
  html[data-beauty-theme="monocromo"] :is(.workspace,.content,.app-shell){background:#f5f5f4!important}
  html[data-beauty-theme="monocromo"] .topbar{
    background:#101010!important;
    border-bottom:1px solid #292929!important;
    box-shadow:0 4px 16px rgba(0,0,0,.1)!important;
  }
  html[data-beauty-theme="monocromo"] .topbar h1{color:#fff!important}
  html[data-beauty-theme="monocromo"] :is(.section-header h2,.section-header p){color:#1c1c1c!important}
  html[data-beauty-theme="monocromo"] :is(.panel,.finance-entry,.finance-summary-card,.finance-month-card,.calendar-shell,.day-agenda,.agenda-metric,.stats-grid article,.item-card,.customer-list-wrap){
    background:#fff!important;border-color:#dededc!important;
  }
  html[data-beauty-theme="monocromo"] .mobile-bottom-nav{
    background:#111!important;
    border:1px solid #333!important;
  }
  html[data-beauty-theme="monocromo"] .mobile-bottom-nav button.is-active{
    background:#f5f5f4!important;color:#111!important;
  }
  html[data-beauty-theme] .clena-theme-choices{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  html[data-beauty-theme="monocromo"] .topbar .primary-btn{background:#fff!important;color:#111!important}
}
@media(prefers-reduced-motion:reduce){
  html[data-beauty-theme="monocromo"] .loader-dot{animation-duration:2.4s!important}
}
@media print{
  html[data-beauty-theme="monocromo"] :is(.editor-section,.panel,.table-wrap,.report-kpis article,.finance-entry){
    background:#fff!important;color:#111!important;box-shadow:none!important;
  }
}
