@tailwind base;@tailwind components;@tailwind utilities;html,body,#root{height:100%;min-height:100dvh}:root{--bg: #f8fafc;--card: #ffffff;--card-soft: #f1f5f9;--text: #0f172a;--muted: #64748b;--border: #e2e8f0;--primary: #2563eb;--sidebar: #0f172a}html.dark{--bg: #020617;--card: #0f172a;--card-soft: #111827;--text: #f8fafc;--muted: #94a3b8;--border: #1e293b;--primary: #3b82f6;--sidebar: #020617}body{margin:0;padding:0;overflow-x:hidden;-webkit-text-size-adjust:100%;background-color:var(--bg);color:var(--text);overscroll-behavior:none;-webkit-overflow-scrolling:touch;transition:background-color .25s ease,color .25s ease}input,select,textarea{font-size:16px}html.dark .bg-slate-50{background-color:var(--bg)!important}html.dark .bg-white{background-color:var(--card)!important}html.dark .bg-slate-100{background-color:var(--card-soft)!important}html.dark .bg-slate-900{background-color:var(--sidebar)!important}html.dark .bg-slate-800{background-color:#111827!important}html.dark .bg-blue-50{background-color:#3b82f624!important}html.dark .bg-emerald-50{background-color:#10b98124!important}html.dark .bg-amber-50{background-color:#f59e0b24!important}html.dark .text-slate-900,html.dark .text-slate-800{color:var(--text)!important}html.dark .text-slate-700{color:#dbeafe!important}html.dark .text-slate-600{color:#cbd5e1!important}html.dark .text-slate-500{color:var(--muted)!important}html.dark .text-slate-400{color:#94a3b8!important}html.dark .border-slate-200,html.dark .border-slate-100{border-color:var(--border)!important}html.dark .border-slate-300{border-color:#334155!important}html.dark .shadow-sm,html.dark .shadow,html.dark .shadow-md,html.dark .shadow-lg,html.dark .shadow-xl,html.dark .shadow-2xl{box-shadow:0 10px 30px #00000059!important}html.dark .hover\:bg-slate-50:hover,html.dark .hover\:bg-slate-100:hover{background-color:#162033!important}html.dark .hover\:border-slate-300:hover{border-color:#475569!important}.theme-bg{background-color:var(--bg)!important}.theme-card{background-color:var(--card)!important;border-color:var(--border)!important;color:var(--text)!important}.theme-soft{background-color:var(--card-soft)!important;border-color:var(--border)!important;color:var(--text)!important}.theme-text{color:var(--text)!important}.theme-muted{color:var(--muted)!important}.theme-border{border-color:var(--border)!important}

/* ClimaTech Dashboard Premium V5 - visual only */
.ct-dashboard-premium{position:relative;overflow:hidden;background:
radial-gradient(circle at 12% 0%,rgba(37,99,235,.14),transparent 30%),
radial-gradient(circle at 82% 7%,rgba(124,58,237,.10),transparent 26%),
var(--bg)!important;padding-top:28px!important}
.ct-dashboard-premium:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(148,163,184,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(148,163,184,.025) 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to bottom,black,transparent 70%)}
.ct-dashboard-premium>*{position:relative;z-index:1}
.ct-dashboard-premium .ct-dashboard-hero{background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(15,23,42,.86))!important;border:1px solid rgba(59,130,246,.20)!important;box-shadow:0 18px 50px rgba(2,6,23,.28)!important;padding:24px 28px!important}
html:not(.dark) .ct-dashboard-premium .ct-dashboard-hero{background:linear-gradient(135deg,#fff,#f8fbff)!important;border-color:#dbeafe!important;box-shadow:0 18px 45px rgba(15,23,42,.08)!important}
.ct-dashboard-premium .ct-dashboard-hero>div:first-child>div:first-child{background:linear-gradient(135deg,#2563eb,#7c3aed)!important;box-shadow:0 12px 30px rgba(37,99,235,.34)}
.ct-dashboard-premium .ct-dashboard-hero h1{font-size:28px!important;letter-spacing:-.03em}
.ct-dashboard-premium .ct-dashboard-hero button{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.ct-dashboard-premium .ct-dashboard-hero button:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(2,6,23,.20)}
.ct-dashboard-premium .ct-kpi-grid{gap:16px!important;align-items:stretch}
.ct-dashboard-premium .ct-kpi-grid>div{position:relative;overflow:hidden;min-height:190px;border:1px solid rgba(148,163,184,.14)!important;box-shadow:0 16px 36px rgba(2,6,23,.20)!important;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.ct-dashboard-premium .ct-kpi-grid>div:hover{transform:translateY(-4px);box-shadow:0 22px 48px rgba(2,6,23,.28)!important;border-color:rgba(96,165,250,.35)!important}
.ct-dashboard-premium .ct-kpi-grid>div:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;right:-65px;top:-70px;background:rgba(255,255,255,.07);filter:blur(1px);pointer-events:none}
.ct-dashboard-premium .ct-kpi-grid>div:nth-child(1){background:linear-gradient(135deg,#0b2a63 0%,#123f8c 55%,#0f172a 100%)!important}
.ct-dashboard-premium .ct-kpi-grid>div:nth-child(2){background:linear-gradient(135deg,#063d35 0%,#075a49 55%,#0f172a 100%)!important}
.ct-dashboard-premium .ct-kpi-grid>div:nth-child(3){background:linear-gradient(135deg,#4b2b08 0%,#633809 55%,#0f172a 100%)!important}
.ct-dashboard-premium .ct-kpi-grid>div:nth-child(4){background:linear-gradient(135deg,#3d1b6d 0%,#51258b 55%,#0f172a 100%)!important}
.ct-dashboard-premium .ct-kpi-grid>div:nth-child(5){background:linear-gradient(135deg,#063751 0%,#07506f 55%,#0f172a 100%)!important}
.ct-dashboard-premium .ct-kpi-grid>div p{position:relative;z-index:1;color:#dbeafe!important}
.ct-dashboard-premium .ct-kpi-grid>div p.text-3xl{font-size:32px!important;color:#fff!important;letter-spacing:-.04em;text-shadow:0 4px 16px rgba(0,0,0,.18)}
.ct-dashboard-premium .ct-kpi-grid>div .text-slate-500,.ct-dashboard-premium .ct-kpi-grid>div .text-slate-600{color:#bfdbfe!important}
.ct-dashboard-premium .ct-kpi-grid>div>div:first-child>div:first-child{box-shadow:0 10px 24px rgba(0,0,0,.20);backdrop-filter:blur(10px)}
.ct-dashboard-premium .bg-white.rounded-\[28px\]{border-color:rgba(148,163,184,.13)!important;box-shadow:0 14px 34px rgba(2,6,23,.16)!important}
html.dark .ct-dashboard-premium .bg-white.rounded-\[28px\]{background:linear-gradient(145deg,rgba(15,23,42,.98),rgba(10,18,34,.98))!important}
.ct-dashboard-premium h2{letter-spacing:-.02em}
.ct-dashboard-premium .rounded-2xl{transition:border-color .18s ease,background-color .18s ease,transform .18s ease}
.ct-dashboard-premium button.rounded-2xl,.ct-dashboard-premium a.rounded-2xl{font-weight:800!important}
.ct-dashboard-premium button.rounded-2xl:hover,.ct-dashboard-premium a.rounded-2xl:hover{transform:translateY(-1px)}
.ct-dashboard-premium .xl\:col-span-2.bg-white{position:relative;overflow:hidden}
.ct-dashboard-premium .xl\:col-span-2.bg-white:before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:linear-gradient(90deg,#2563eb,#7c3aed,#10b981);opacity:.8}
.ct-dashboard-premium select{cursor:pointer}
@media (min-width:1280px){.ct-dashboard-premium{padding-left:34px!important;padding-right:34px!important}.ct-dashboard-premium .ct-kpi-grid{grid-template-columns:2fr repeat(4,1fr)!important}}
@media (max-width:767px){.ct-dashboard-premium{padding:16px!important}.ct-dashboard-premium .ct-dashboard-hero{padding:20px!important}.ct-dashboard-premium .ct-dashboard-hero h1{font-size:24px!important}.ct-dashboard-premium .ct-kpi-grid>div{min-height:160px}.ct-dashboard-premium .ct-kpi-grid>div p.text-3xl{font-size:28px!important}}

/* V6 dashboard functional quick actions */
.ct-dashboard-premium .ct-quick-actions{position:relative;z-index:2}
.ct-dashboard-premium .ct-quick-action{display:flex;align-items:center;gap:.65rem;min-height:52px;padding:.85rem 1rem;border-radius:18px;border:1px solid rgba(148,163,184,.16);background:linear-gradient(145deg,rgba(15,23,42,.9),rgba(17,24,39,.72));color:#e5edf9;font-size:.78rem;font-weight:800;letter-spacing:.01em;box-shadow:0 10px 30px rgba(2,6,23,.18);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.ct-dashboard-premium .ct-quick-action:hover{transform:translateY(-2px);border-color:rgba(59,130,246,.42);box-shadow:0 14px 35px rgba(2,6,23,.28)}
.ct-dashboard-premium .ct-quick-dot{width:10px;height:10px;border-radius:999px;box-shadow:0 0 16px currentColor;flex:0 0 auto}
.ct-dashboard-premium .ct-kpi-click{cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.ct-dashboard-premium .ct-kpi-click:hover{transform:translateY(-3px);border-color:rgba(59,130,246,.3)!important;box-shadow:0 18px 45px rgba(2,6,23,.22)!important}
.ct-dashboard-premium .ct-kpi-click:focus-visible,.ct-dashboard-premium .ct-quick-action:focus-visible{outline:2px solid #3b82f6;outline-offset:3px}

/* ClimaTech V7 - dashboard premium responsive + CRM mobile repair */
.ct-dashboard-premium{max-width:1500px;margin:0 auto!important;padding:clamp(14px,2.2vw,32px)!important;background:
radial-gradient(700px 360px at 8% -5%,rgba(37,99,235,.17),transparent 64%),
radial-gradient(620px 300px at 92% 0%,rgba(124,58,237,.13),transparent 66%),
var(--bg)!important}
.ct-dashboard-premium .ct-dashboard-hero{border-radius:26px!important;min-height:112px;background:linear-gradient(115deg,rgba(14,29,58,.98),rgba(15,23,42,.98) 60%,rgba(22,34,64,.98))!important;border:1px solid rgba(96,165,250,.18)!important;box-shadow:0 22px 55px rgba(2,6,23,.32)!important}
.ct-dashboard-premium .ct-dashboard-hero h1{font-size:clamp(24px,2.2vw,34px)!important;font-weight:950!important;color:#fff!important}
.ct-dashboard-premium .ct-dashboard-hero p{color:#93c5fd!important}
.ct-dashboard-premium .ct-dashboard-hero select{color:#e2e8f0!important}
.ct-dashboard-premium .ct-dashboard-hero option{color:#0f172a!important}
.ct-dashboard-premium .ct-quick-actions{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;margin-top:16px!important;gap:10px!important}
.ct-dashboard-premium .ct-quick-action{min-width:0!important;justify-content:center!important;background:linear-gradient(145deg,rgba(17,32,58,.96),rgba(8,18,38,.96))!important;border-color:rgba(96,165,250,.18)!important;color:#dbeafe!important}
.ct-dashboard-premium .ct-kpi-grid{display:grid!important;grid-template-columns:2fr repeat(4,minmax(0,1fr))!important;gap:14px!important;margin-top:18px!important}
.ct-dashboard-premium .ct-kpi-grid>button{min-width:0!important;min-height:184px!important;border-radius:24px!important;padding:22px!important;overflow:hidden!important;isolation:isolate!important}
.ct-dashboard-premium .ct-kpi-grid>button:nth-child(1){grid-column:auto!important;background:linear-gradient(135deg,#0b3a78 0%,#0d59bb 55%,#11203e 100%)!important}
.ct-dashboard-premium .ct-kpi-grid>button:nth-child(2){background:linear-gradient(135deg,#063d35,#08765f 60%,#102235)!important}
.ct-dashboard-premium .ct-kpi-grid>button:nth-child(3){background:linear-gradient(135deg,#51300c,#8a4c08 60%,#202033)!important}
.ct-dashboard-premium .ct-kpi-grid>button:nth-child(4){background:linear-gradient(135deg,#401b70,#6d32b8 60%,#1b2040)!important}
.ct-dashboard-premium .ct-kpi-grid>button:nth-child(5){background:linear-gradient(135deg,#07506c,#087e9f 60%,#17273b)!important}
.ct-dashboard-premium .ct-kpi-grid>button p{color:#dbeafe!important}
.ct-dashboard-premium .ct-kpi-grid>button p.text-3xl{color:#fff!important;font-size:clamp(28px,2.1vw,36px)!important}
.ct-dashboard-premium .ct-kpi-grid>button .text-slate-900{color:#fff!important}
.ct-dashboard-premium .ct-kpi-grid>button .text-slate-500,.ct-dashboard-premium .ct-kpi-grid>button .text-slate-600{color:#bfdbfe!important}
.ct-dashboard-premium>.bg-white.rounded-\[28px\]:not(.ct-dashboard-hero){background:linear-gradient(145deg,rgba(15,23,42,.96),rgba(10,18,33,.98))!important;border:1px solid rgba(96,165,250,.14)!important;box-shadow:0 16px 42px rgba(2,6,23,.24)!important}
html:not(.dark) .ct-dashboard-premium>.bg-white.rounded-\[28px\]:not(.ct-dashboard-hero){background:#fff!important}

/* CRM/client cards */
.ct-crm-page .ct-client-list{border-radius:24px!important}
.ct-crm-page .ct-client-row{transition:background-color .18s ease}
.ct-crm-page .ct-client-name{font-size:15px!important}
.ct-crm-page .ct-client-meta span{min-width:0;overflow-wrap:anywhere}
.ct-crm-page .ct-client-actions{flex:0 0 auto}

@media (max-width:1100px){
  .ct-dashboard-premium .ct-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .ct-dashboard-premium .ct-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .ct-dashboard-premium .ct-kpi-grid>button:first-child{grid-column:span 2!important}
}

@media (max-width:767px){
  .ct-dashboard-premium{padding:12px!important;overflow:visible!important}
  .ct-dashboard-premium .ct-dashboard-hero{padding:16px!important;border-radius:22px!important;gap:14px!important}
  .ct-dashboard-premium .ct-dashboard-hero>div:first-child{width:100%!important}
  .ct-dashboard-premium .ct-dashboard-hero>div:last-child{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;gap:8px!important}
  .ct-dashboard-premium .ct-dashboard-hero>div:last-child>div:first-child{grid-column:1/-1!important;width:100%!important;display:grid!important;grid-template-columns:1fr auto 1fr!important}
  .ct-dashboard-premium .ct-dashboard-hero button{width:100%!important;min-height:44px!important;padding:10px 9px!important;justify-content:center!important;font-size:11px!important;white-space:nowrap!important}
  .ct-dashboard-premium .ct-dashboard-hero h1{font-size:24px!important}
  .ct-dashboard-premium .ct-quick-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:10px!important}
  .ct-dashboard-premium .ct-quick-action{min-height:46px!important;padding:9px 10px!important;font-size:10px!important;border-radius:14px!important;justify-content:flex-start!important}
  .ct-dashboard-premium .ct-quick-dot{width:8px!important;height:8px!important}
  .ct-dashboard-premium .ct-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin-top:12px!important}
  .ct-dashboard-premium .ct-kpi-grid>button{min-height:148px!important;padding:15px!important;border-radius:19px!important}
  .ct-dashboard-premium .ct-kpi-grid>button:first-child{grid-column:1/-1!important;min-height:162px!important}
  .ct-dashboard-premium .ct-kpi-grid>button:last-child{grid-column:1/-1!important;min-height:145px!important}
  .ct-dashboard-premium .ct-kpi-grid>button .w-12.h-12{width:38px!important;height:38px!important;border-radius:13px!important}
  .ct-dashboard-premium .ct-kpi-grid>button p.mt-4{margin-top:10px!important;font-size:11px!important;line-height:1.25!important}
  .ct-dashboard-premium .ct-kpi-grid>button p.text-3xl{font-size:26px!important;line-height:1.05!important}
  .ct-dashboard-premium .ct-kpi-grid>button p.text-xs{font-size:9.5px!important;line-height:1.35!important}
  .ct-dashboard-premium>.mt-6.bg-white.rounded-\[28px\]{margin-top:12px!important;padding:16px!important;border-radius:20px!important}
  .ct-dashboard-premium>.mt-6.bg-white.rounded-\[28px\] h2{font-size:16px!important}

  .ct-crm-page{gap:16px!important}
  .ct-crm-page .ct-crm-header{flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  .ct-crm-page .ct-crm-header>div:first-child{min-width:0!important}
  .ct-crm-page .ct-crm-header h1{font-size:22px!important;line-height:1.1!important}
  .ct-crm-page .ct-crm-header>button{width:100%!important;justify-content:center!important}
  .ct-crm-page .ct-client-list>div:first-child{padding:14px 16px!important}
  .ct-crm-page .ct-client-row{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;align-items:start!important;gap:12px!important;padding:16px!important}
  .ct-crm-page .ct-client-avatar{width:48px!important;height:48px!important;border-radius:15px!important;grid-row:1/span 2!important}
  .ct-crm-page .ct-client-info{width:100%!important;min-width:0!important;overflow:hidden!important}
  .ct-crm-page .ct-client-name{font-size:15px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important}
  .ct-crm-page .ct-client-meta{display:grid!important;grid-template-columns:1fr!important;gap:3px!important;font-size:11px!important;line-height:1.35!important;margin-top:6px!important}
  .ct-crm-page .ct-client-meta span{display:block!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .ct-crm-page .ct-client-info>p:last-child{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;font-size:10.5px!important}
  .ct-crm-page .ct-client-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,1fr) 44px 44px!important;width:100%!important;gap:8px!important;margin-top:4px!important;justify-content:stretch!important}
  .ct-crm-page .ct-client-actions button{height:42px!important;min-width:0!important}
  .ct-crm-page .ct-client-actions button:first-child{width:100%!important;justify-content:center!important}
}

@media (max-width:390px){
  .ct-dashboard-premium .ct-dashboard-hero>div:last-child{grid-template-columns:1fr!important}
  .ct-dashboard-premium .ct-dashboard-hero>div:last-child>div:first-child{grid-column:1!important}
  .ct-dashboard-premium .ct-kpi-grid{grid-template-columns:1fr 1fr!important}
  .ct-dashboard-premium .ct-kpi-grid>button{padding:13px!important}
  .ct-dashboard-premium .ct-kpi-grid>button p.text-3xl{font-size:23px!important}
}


/* ClimaTech V8 - definitive mobile CRM + notification-safe visual */
@media (max-width: 767px){
  /* Client list: independent of parent wrapper, prevents any overlap */
  .ct-client-row{
    display:grid!important;
    grid-template-columns:52px minmax(0,1fr)!important;
    grid-template-areas:"avatar info" "actions actions"!important;
    align-items:start!important;
    column-gap:12px!important;
    row-gap:12px!important;
    padding:18px 14px!important;
    min-width:0!important;
  }
  .ct-client-avatar{grid-area:avatar!important;width:52px!important;height:52px!important;margin:0!important;align-self:start!important}
  .ct-client-info{grid-area:info!important;width:100%!important;min-width:0!important;overflow:visible!important}
  .ct-client-name{display:block!important;font-size:16px!important;line-height:1.25!important;white-space:normal!important;word-break:break-word!important;overflow:visible!important;text-overflow:clip!important;margin:0 0 7px!important}
  .ct-client-meta{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;width:100%!important;min-width:0!important;margin-top:0!important;font-size:12px!important;line-height:1.4!important}
  .ct-client-meta span{display:block!important;width:100%!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .ct-client-info>p:last-child{display:block!important;width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;overflow:visible!important;text-overflow:clip!important;margin-top:5px!important;font-size:11px!important;line-height:1.35!important}
  .ct-client-actions{grid-area:actions!important;display:grid!important;grid-template-columns:minmax(0,1fr) 46px 46px!important;gap:8px!important;width:100%!important;min-width:0!important;margin:0!important;justify-content:stretch!important}
  .ct-client-actions button{height:44px!important;min-width:0!important;margin:0!important}
  .ct-client-actions button:first-child{width:100%!important;justify-content:center!important;padding-left:10px!important;padding-right:10px!important}

  /* CRM header and search */
  .ct-client-page .ct-crm-header{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important}
  .ct-client-page .ct-crm-header>div:first-child{min-width:0!important}
  .ct-client-page .ct-crm-header>button{width:100%!important;justify-content:center!important;min-height:46px!important}
  .ct-client-page .ct-client-list{border-radius:20px!important;overflow:hidden!important}

  /* Dashboard: premium, compact and actually mobile-first */
  .ct-dashboard-premium{width:100%!important;max-width:none!important;padding:10px!important;margin:0!important}
  .ct-dashboard-premium .ct-dashboard-hero{border-radius:20px!important;padding:14px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important}
  .ct-dashboard-premium .ct-dashboard-hero>div:first-child{width:100%!important}
  .ct-dashboard-premium .ct-dashboard-hero>div:last-child{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .ct-dashboard-premium .ct-dashboard-hero>div:last-child>div:first-child{grid-column:1/-1!important;width:100%!important}
  .ct-dashboard-premium .ct-dashboard-hero button{min-width:0!important;width:100%!important;font-size:10px!important;padding:10px 7px!important;white-space:nowrap!important}
  .ct-dashboard-premium .ct-quick-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:10px!important}
  .ct-dashboard-premium .ct-quick-action{display:flex!important;min-width:0!important;min-height:48px!important;padding:10px!important;font-size:10px!important;border-radius:14px!important;overflow:hidden!important}
  .ct-dashboard-premium .ct-quick-action span:last-child{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .ct-dashboard-premium .ct-kpi-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin-top:10px!important}
  .ct-dashboard-premium .ct-kpi-grid>button{width:100%!important;min-width:0!important;min-height:145px!important;padding:14px!important;border-radius:18px!important}
  .ct-dashboard-premium .ct-kpi-grid>button:first-child{grid-column:1/-1!important;min-height:165px!important}
  .ct-dashboard-premium .ct-kpi-grid>button:last-child{grid-column:1/-1!important;min-height:135px!important}
  .ct-dashboard-premium .ct-kpi-grid>button p{max-width:100%!important;overflow-wrap:anywhere!important}
  .ct-dashboard-premium .ct-kpi-grid>button p.text-3xl{font-size:24px!important;line-height:1.05!important}
}
@media (max-width: 390px){
  .ct-client-row{grid-template-columns:46px minmax(0,1fr)!important;padding:15px 12px!important;column-gap:10px!important}
  .ct-client-avatar{width:46px!important;height:46px!important}
  .ct-client-actions{grid-template-columns:minmax(0,1fr) 42px 42px!important}
  .ct-dashboard-premium .ct-dashboard-hero>div:last-child{grid-template-columns:1fr!important}
  .ct-dashboard-premium .ct-dashboard-hero>div:last-child>div:first-child{grid-column:1!important}
  .ct-dashboard-premium .ct-kpi-grid{grid-template-columns:1fr!important}
  .ct-dashboard-premium .ct-kpi-grid>button,.ct-dashboard-premium .ct-kpi-grid>button:first-child,.ct-dashboard-premium .ct-kpi-grid>button:last-child{grid-column:1!important;min-height:132px!important}
  .ct-dashboard-premium .ct-quick-actions{grid-template-columns:1fr 1fr!important}
}

/* V31 - login premium ClimaTech */
.ct31-login-shell{
  min-height:100vh!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr)!important;
  align-items:stretch!important;
  background:#080b12!important;
}
.ct31-showcase{
  position:relative;
  overflow:hidden;
  min-height:100vh;
  color:#fff;
  background:
    radial-gradient(circle at 18% 18%,rgba(73,91,255,.20),transparent 30%),
    radial-gradient(circle at 78% 82%,rgba(77,47,210,.16),transparent 35%),
    linear-gradient(180deg,#080b13 0%,#080b12 100%);
  border-right:1px solid rgba(119,138,255,.12);
}
.ct31-showcase:before{
  content:"";
  position:absolute;inset:0;pointer-events:none;opacity:.24;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:34px 34px;
}
.ct31-showcase-inner{
  position:relative;z-index:1;
  min-height:100vh;
  display:flex;flex-direction:column;
  padding:48px 54px 34px;
}
.ct31-brand{display:flex;align-items:center;gap:14px}
.ct31-brand-icon{
  width:48px;height:48px;border-radius:15px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#2f63f5,#6b4aff);
  font-size:25px;font-weight:900;
  box-shadow:0 18px 40px rgba(48,79,255,.28)
}
.ct31-brand-name{font-size:23px;font-weight:900;letter-spacing:-.03em}
.ct31-brand-name b{color:#5d84ff}
.ct31-copy{margin:auto 0;max-width:760px}
.ct31-kicker{
  color:#728cff;font-size:12px;font-weight:900;
  letter-spacing:.16em;margin-bottom:16px
}
.ct31-copy h2{
  margin:0;color:#fff;
  font-size:clamp(40px,4.8vw,72px);
  line-height:.98;letter-spacing:-.06em;
  font-weight:900
}
.ct31-copy h2 strong{color:#5e82ff}
.ct31-copy p{
  max-width:650px;margin:24px 0 0;
  color:#9ca8bc;font-size:16px;line-height:1.7
}
.ct31-features{
  margin-top:34px;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px
}
.ct31-feature{
  display:flex;gap:14px;align-items:flex-start;
  padding:17px;border-radius:18px;
  border:1px solid rgba(109,132,255,.14);
  background:rgba(17,23,39,.66);
  backdrop-filter:blur(14px)
}
.ct31-feature i{
  flex:0 0 auto;width:34px;height:34px;border-radius:11px;
  display:grid;place-items:center;font-style:normal;font-weight:900;
  color:#86a4ff;background:rgba(69,96,255,.13)
}
.ct31-feature strong{display:block;color:#fff;font-size:14px;margin-bottom:5px}
.ct31-feature span{display:block;color:#8793a8;font-size:12px;line-height:1.45}
.ct31-footer{color:#687489;font-size:11px;letter-spacing:.02em}
.ct31-login-card{
  max-width:none!important;
  width:auto!important;
  min-height:100vh!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  margin:0!important;
  padding:clamp(42px,7vw,100px)!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  background:#0d0f15!important;
}
.ct31-login-card h1,.ct31-login-card h2{color:#fff!important}
.ct31-login-card p,.ct31-login-card button:not([type="submit"]){color:#98a4b9!important}
.ct31-login-card input{
  background:#141820!important;
  color:#f8fafc!important;
  border:1px solid #262c38!important;
}
.ct31-login-card input::placeholder{color:#687386!important}
.ct31-login-card button[type="submit"]{
  border-radius:14px!important;
  background:linear-gradient(90deg,#4b5fd0,#5869dc)!important;
  box-shadow:0 14px 30px rgba(69,87,200,.20)!important;
}
.ct31-login-card > div:first-child{
  margin-bottom:34px!important
}
@media(max-width:899px){
  .ct31-login-shell{
    display:block!important;
    min-height:100vh!important;
    background:#0d0f15!important
  }
  .ct31-showcase{display:none!important}
  .ct31-login-card{
    min-height:100vh!important;
    padding:30px 22px!important;
    justify-content:center!important
  }
}

/* CLIMATECH BLACK & GOLD THEME — light and dark */
:root{--bg:#fffdf5;--card:#fff;--card-soft:#fff8dc;--text:#171717;--muted:#737373;--border:#eadfae;--primary:#d4a900;--sidebar:#171717;--ct-gold:#f2c500;--ct-gold-dark:#b88d00;--ct-black:#171717}
html.dark{--bg:#101010;--card:#1b1b1b;--card-soft:#252525;--text:#fff9df;--muted:#c4bda5;--border:#494126;--primary:#f2c500;--sidebar:#080808}
body{background:var(--bg)!important;color:var(--text)!important}
html:not(.dark) .bg-slate-50{background-color:#fffdf5!important}html:not(.dark) .bg-white{background-color:#fff!important}html:not(.dark) .bg-slate-100{background-color:#fff8dc!important}html:not(.dark) .bg-slate-900{background-color:#171717!important}
html:not(.dark) .text-blue-500,html:not(.dark) .text-blue-600,html:not(.dark) .text-blue-700{color:#a98200!important}
html:not(.dark) .bg-blue-500,html:not(.dark) .bg-blue-600,html:not(.dark) .bg-blue-700{background-color:#e0b400!important;color:#171717!important}
html:not(.dark) .border-blue-500,html:not(.dark) .border-blue-600{border-color:#d4a900!important}html:not(.dark) .ring-blue-500{--tw-ring-color:#d4a900!important}
html:not(.dark) button[class*="bg-blue"],html:not(.dark) a[class*="bg-blue"]{background:#e0b400!important;color:#171717!important;border-color:#d4a900!important}
html:not(.dark) button[class*="text-blue"],html:not(.dark) a[class*="text-blue"]{color:#9a7600!important}
html.dark .bg-blue-50{background-color:#f2c50020!important}html.dark .bg-blue-500,html.dark .bg-blue-600,html.dark .bg-blue-700{background-color:#f2c500!important;color:#171717!important}
html.dark .text-blue-400,html.dark .text-blue-500,html.dark .text-blue-600,html.dark .text-blue-700{color:#f2c500!important}
html.dark .border-blue-400,html.dark .border-blue-500,html.dark .border-blue-600{border-color:#d6ad00!important}html.dark .ring-blue-500{--tw-ring-color:#f2c500!important}
html.dark button[class*="bg-blue"],html.dark a[class*="bg-blue"]{background:#f2c500!important;color:#171717!important;border-color:#d6ad00!important}html.dark button[class*="text-blue"],html.dark a[class*="text-blue"]{color:#f2c500!important}
html.dark .bg-slate-50{background-color:var(--bg)!important}html.dark .bg-white{background-color:var(--card)!important}html.dark .bg-slate-100{background-color:var(--card-soft)!important}html.dark .bg-slate-900{background-color:#080808!important}
html.dark .text-slate-900,html.dark .text-slate-800{color:#fff9df!important}html.dark .text-slate-700,html.dark .text-slate-600{color:#e6dfc7!important}
html.dark .border-slate-200,html.dark .border-slate-100,html.dark .border-slate-300{border-color:var(--border)!important}
html:not(.dark) aside,html:not(.dark) [class*="sidebar"]{background:#171717!important}html.dark aside,html.dark [class*="sidebar"]{background:#080808!important}
.ct-dashboard-premium{background:radial-gradient(circle at 12% 0%,rgba(242,197,0,.13),transparent 30%),radial-gradient(circle at 82% 7%,rgba(212,169,0,.08),transparent 26%),var(--bg)!important}
.ct-dashboard-premium .ct-dashboard-hero>div:first-child>div:first-child{background:linear-gradient(135deg,#f2c500,#b88d00)!important;box-shadow:0 12px 30px rgba(212,169,0,.25)!important}
html:not(.dark) .ct-dashboard-premium .ct-dashboard-hero{background:linear-gradient(135deg,#fffdf5,#fff8dc)!important;border-color:#eadfae!important}html.dark .ct-dashboard-premium .ct-dashboard-hero{background:linear-gradient(135deg,#171717,#252525)!important;border-color:#494126!important}


/* CLIMA TECH — acabamento preto + dourado âmbar */
:root{
  --bg:#fffdf8;
  --card:#ffffff;
  --card-soft:#fff7e7;
  --text:#171717;
  --muted:#756f63;
  --border:#eadfc8;
  --primary:#c9952e;
  --sidebar:#101010;
  --ct-gold:#c9952e;
  --ct-gold-dark:#ae781b;
  --ct-gold-light:#f7e8c2;
}
html.dark{
  --bg:#101010;
  --card:#1b1b1b;
  --card-soft:#25221b;
  --text:#fffaf0;
  --muted:#c7bda8;
  --border:#4a3d25;
  --primary:#d2a13b;
  --sidebar:#080808;
}
body{background-color:var(--bg)!important;color:var(--text)}
/* Modo claro: substitui o azul por dourado âmbar moderado */
html:not(.dark) .bg-blue-500,
html:not(.dark) .bg-blue-600,
html:not(.dark) .bg-blue-700,
html:not(.dark) button[class*="bg-blue"],
html:not(.dark) a[class*="bg-blue"]{
  background-color:#c9952e!important;color:#17130b!important;border-color:#b98224!important;
}
html:not(.dark) .text-blue-400,
html:not(.dark) .text-blue-500,
html:not(.dark) .text-blue-600,
html:not(.dark) .text-blue-700,
html:not(.dark) button[class*="text-blue"],
html:not(.dark) a[class*="text-blue"]{color:#a87518!important}
html:not(.dark) .border-blue-400,
html:not(.dark) .border-blue-500,
html:not(.dark) .border-blue-600{border-color:#c9952e!important}
html:not(.dark) .ring-blue-500{--tw-ring-color:#c9952e!important}
html:not(.dark) .bg-blue-50{background-color:#fff7e7!important}
html:not(.dark) .bg-slate-50{background-color:#fffdf8!important}
html:not(.dark) .bg-slate-100{background-color:#fff7e7!important}
html:not(.dark) .bg-slate-900{background-color:#101010!important}
html:not(.dark) aside,
html:not(.dark) [class*="sidebar"]{background-color:#101010!important}
/* Modo escuro: dourado mais quente, com contraste confortável */
html.dark .bg-blue-500,
html.dark .bg-blue-600,
html.dark .bg-blue-700,
html.dark button[class*="bg-blue"],
html.dark a[class*="bg-blue"]{
  background-color:#d2a13b!important;color:#17130b!important;border-color:#b98224!important;
}
html.dark .text-blue-300,
html.dark .text-blue-400,
html.dark .text-blue-500,
html.dark .text-blue-600,
html.dark .text-blue-700,
html.dark button[class*="text-blue"],
html.dark a[class*="text-blue"]{color:#e0b85f!important}
html.dark .border-blue-400,
html.dark .border-blue-500,
html.dark .border-blue-600{border-color:#b98b32!important}
html.dark .ring-blue-500{--tw-ring-color:#d2a13b!important}
html.dark .bg-blue-50{background-color:#d2a13b20!important}
html.dark .bg-slate-50{background-color:#101010!important}
html.dark .bg-white{background-color:#1b1b1b!important}
html.dark .bg-slate-100{background-color:#25221b!important}
html.dark .bg-slate-900{background-color:#080808!important}
html.dark .text-slate-900,
html.dark .text-slate-800{color:#fffaf0!important}
html.dark .text-slate-700,
html.dark .text-slate-600{color:#e5dcc9!important}
html.dark .border-slate-100,
html.dark .border-slate-200,
html.dark .border-slate-300{border-color:#4a3d25!important}
html.dark aside,
html.dark [class*="sidebar"]{background-color:#080808!important}
/* Cartões, campos e realces */
html:not(.dark) input:focus,
html:not(.dark) select:focus,
html:not(.dark) textarea:focus{--tw-ring-color:#c9952e!important;border-color:#c9952e!important}
html.dark input:focus,
html.dark select:focus,
html.dark textarea:focus{--tw-ring-color:#d2a13b!important;border-color:#d2a13b!important}


/* =========================================================
   CLIMA TECH — DASHBOARD PROFISSIONAL MOBILE-FIRST
   Preto + dourado âmbar | mantém os componentes e ações atuais
   ========================================================= */
.ct-dashboard-premium{
  background:
    radial-gradient(ellipse at 85% 0%,rgba(201,149,46,.13),transparent 34%),
    linear-gradient(180deg,#f7f7f5 0%,#fff 48%,#f8f7f3 100%)!important;
  padding-bottom:calc(28px + env(safe-area-inset-bottom))!important;
}
html.dark .ct-dashboard-premium{
  background:
    radial-gradient(ellipse at 85% 0%,rgba(210,161,59,.12),transparent 34%),
    linear-gradient(180deg,#111 0%,#171717 55%,#101010 100%)!important;
}
/* Hero de boas-vindas */
.ct-dashboard-premium .ct-dashboard-hero{
  position:relative!important;overflow:hidden!important;
  border:1px solid rgba(201,149,46,.28)!important;
  border-radius:26px!important;
  background:linear-gradient(115deg,#111 0%,#202020 58%,#382a12 100%)!important;
  color:#fff!important;
  box-shadow:0 14px 34px rgba(20,20,20,.13)!important;
}
.ct-dashboard-premium .ct-dashboard-hero:after{
  content:"";position:absolute;right:-55px;top:-95px;width:270px;height:270px;
  border:1px solid rgba(225,178,75,.22);border-radius:50%;
  box-shadow:0 0 0 22px rgba(225,178,75,.035),0 0 0 48px rgba(225,178,75,.025);
  pointer-events:none;
}
.ct-dashboard-premium .ct-dashboard-hero h1,
.ct-dashboard-premium .ct-dashboard-hero h2{color:#fff!important}
.ct-dashboard-premium .ct-dashboard-hero p{color:#e7dfcf!important}
.ct-dashboard-premium .ct-dashboard-hero button{
  border-radius:15px!important;font-weight:850!important;min-height:46px!important;
}
.ct-dashboard-premium .ct-dashboard-hero button[class*="bg-blue"],
.ct-dashboard-premium .ct-dashboard-hero button[class*="bg-emerald"]{
  background:linear-gradient(135deg,#e2b84f,#bd8725)!important;color:#17130b!important;
  box-shadow:0 7px 18px rgba(201,149,46,.2)!important;
}
.ct-dashboard-premium .ct-dashboard-hero button[class*="bg-violet"]{
  background:#292929!important;color:#f3d58a!important;border:1px solid #8b6a2c!important;
}
.ct-dashboard-premium .ct-dashboard-hero button[class*="bg-white"]{
  background:#fff!important;color:#1b1b1b!important;border:1px solid #e8dfcc!important;
}
/* Atalhos rápidos */
.ct-dashboard-premium .ct-quick-actions{gap:10px!important}
.ct-dashboard-premium .ct-quick-action{
  min-height:68px!important;padding:14px 13px!important;border-radius:17px!important;
  background:linear-gradient(145deg,#202020,#101010)!important;
  color:#fff!important;border:1px solid rgba(201,149,46,.38)!important;
  box-shadow:0 7px 18px rgba(0,0,0,.10)!important;
  font-size:13px!important;font-weight:800!important;line-height:1.25!important;
  transition:transform .16s ease,box-shadow .16s ease!important;
}
.ct-dashboard-premium .ct-quick-action:active{transform:scale(.98)!important}
.ct-dashboard-premium .ct-quick-dot{
  background:#d2a13b!important;box-shadow:0 0 0 5px rgba(210,161,59,.13)!important;
  flex:0 0 9px!important;
}
/* Indicadores */
.ct-dashboard-premium .ct-kpi-grid{gap:13px!important}
.ct-dashboard-premium .ct-kpi-click{
  border:1px solid #e9e3d7!important;border-radius:22px!important;
  box-shadow:0 8px 22px rgba(25,25,25,.055)!important;
  padding:19px!important;min-width:0!important;
  transition:transform .16s ease,box-shadow .16s ease!important;
}
.ct-dashboard-premium .ct-kpi-click:active{transform:scale(.99)!important}
.ct-dashboard-premium .ct-kpi-click:first-child{
  background:linear-gradient(135deg,#fff 0%,#fffaf0 100%)!important;
  border-color:#e7d4a8!important;
}
.ct-dashboard-premium .ct-kpi-click:first-child>div:first-child>div:first-child{
  background:#fff2cf!important;color:#a87518!important;
}
.ct-dashboard-premium .ct-kpi-click p{line-height:1.35!important}
html.dark .ct-dashboard-premium .ct-kpi-click{
  background:linear-gradient(145deg,#202020,#171717)!important;
  border-color:#4b3b20!important;box-shadow:0 8px 24px rgba(0,0,0,.22)!important;
}
html.dark .ct-dashboard-premium .ct-kpi-click p{color:#eee5d2!important}
html.dark .ct-dashboard-premium .ct-kpi-click p.text-slate-900{color:#fffaf0!important}
/* Cabeçalho e seletor de período */
.ct-dashboard-premium select{
  min-height:40px!important;border-radius:11px!important;
}
.ct-dashboard-premium button{touch-action:manipulation}
.ct-dashboard-premium button:focus-visible{
  outline:3px solid rgba(201,149,46,.55)!important;outline-offset:2px!important;
}
/* Tablet e celular: prioridade a toque e leitura em campo */
@media(max-width:767px){
  .ct-dashboard-premium{padding:12px!important}
  .ct-dashboard-premium .ct-dashboard-hero{
    padding:17px!important;border-radius:21px!important;margin-bottom:13px!important;
  }
  .ct-dashboard-premium .ct-dashboard-hero h1{font-size:21px!important;line-height:1.15!important}
  .ct-dashboard-premium .ct-dashboard-hero p{font-size:12px!important}
  .ct-dashboard-premium .ct-dashboard-hero button{
    min-height:48px!important;padding:11px 12px!important;font-size:12px!important;
  }
  .ct-dashboard-premium .ct-quick-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;margin-top:13px!important;
  }
  .ct-dashboard-premium .ct-quick-action{
    min-height:62px!important;padding:12px!important;justify-content:flex-start!important;
    text-align:left!important;font-size:12px!important;
  }
  .ct-dashboard-premium .ct-kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin-top:14px!important;
  }
  .ct-dashboard-premium .ct-kpi-click{
    border-radius:18px!important;padding:14px!important;
  }
  .ct-dashboard-premium .ct-kpi-click:first-child{
    grid-column:1/-1!important;
  }
  .ct-dashboard-premium .ct-kpi-click:first-child .text-3xl{
    font-size:27px!important;
  }
  .ct-dashboard-premium .ct-kpi-click:not(:first-child) .text-3xl{
    font-size:25px!important;
  }
  .ct-dashboard-premium .ct-kpi-click .w-12.h-12{
    width:39px!important;height:39px!important;border-radius:13px!important;
  }
  .ct-dashboard-premium .ct-kpi-click p.mt-4{margin-top:10px!important;font-size:12px!important}
}
@media(min-width:768px) and (max-width:1100px){
  .ct-dashboard-premium .ct-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .ct-dashboard-premium .ct-kpi-click:first-child{grid-column:span 2!important}
}


/* CORREÇÃO VISUAL DIRETA — contraste e dashboard realmente reorganizada */
.ct-dashboard-premium .ct-dashboard-hero{
  background:linear-gradient(120deg,#fffdf8 0%,#fff8e8 100%)!important;
  border:1px solid #e6d3a5!important;
  color:#171717!important;
  box-shadow:0 10px 28px rgba(35,27,12,.07)!important;
}
.ct-dashboard-premium .ct-dashboard-hero h1,
.ct-dashboard-premium .ct-dashboard-hero h2,
.ct-dashboard-premium .ct-dashboard-hero p,
.ct-dashboard-premium .ct-dashboard-hero b{
  color:#171717!important;
  opacity:1!important;
}
.ct-dashboard-premium .ct-dashboard-hero .text-slate-500,
.ct-dashboard-premium .ct-dashboard-hero .text-slate-400{color:#625a4b!important}
.ct-dashboard-premium .ct-dashboard-hero .bg-slate-900{
  background:#171717!important;color:#e0b34f!important;
}
.ct-dashboard-premium .ct-dashboard-hero button[class*="bg-violet"],
.ct-dashboard-premium .ct-dashboard-hero button[class*="bg-emerald"],
.ct-dashboard-premium .ct-dashboard-hero button[class*="bg-blue"]{
  background:linear-gradient(135deg,#d9ad49,#bd8a27)!important;
  color:#17130b!important;border:1px solid #b98524!important;
}
.ct-dashboard-premium .ct-dashboard-hero button,
.ct-dashboard-premium .ct-dashboard-hero button *{
  opacity:1!important;
}
.ct-dashboard-premium .ct-quick-action{
  background:linear-gradient(145deg,#222 0%,#111 100%)!important;
  color:#fff!important;border:1px solid #b98a2c!important;
}
.ct-dashboard-premium .ct-quick-action span:last-child{color:#fff!important}
.ct-dashboard-premium .ct-quick-dot{background:#d6a83e!important}

/* Neutraliza os cartões azuis, verdes, roxos e marrons antigos.
   Todos os indicadores passam a ter a mesma leitura clara e profissional. */
.ct-dashboard-premium .ct-kpi-grid .ct-kpi-click,
.ct-dashboard-premium .ct-kpi-click{
  background:#fff!important;
  background-image:linear-gradient(145deg,#fff 0%,#fffdf8 100%)!important;
  color:#171717!important;
  border:1px solid #e8dfce!important;
  box-shadow:0 8px 22px rgba(28,23,14,.07)!important;
}
.ct-dashboard-premium .ct-kpi-click *,
.ct-dashboard-premium .ct-kpi-click p,
.ct-dashboard-premium .ct-kpi-click .text-slate-900,
.ct-dashboard-premium .ct-kpi-click .text-slate-800,
.ct-dashboard-premium .ct-kpi-click .text-slate-700,
.ct-dashboard-premium .ct-kpi-click .text-slate-600,
.ct-dashboard-premium .ct-kpi-click .text-slate-500{
  color:#171717!important;
  opacity:1!important;
}
.ct-dashboard-premium .ct-kpi-click .text-emerald-600,
.ct-dashboard-premium .ct-kpi-click .text-emerald-700{color:#187849!important}
.ct-dashboard-premium .ct-kpi-click .text-red-600,
.ct-dashboard-premium .ct-kpi-click .text-red-700{color:#b42318!important}
.ct-dashboard-premium .ct-kpi-click .bg-emerald-50{background:#e9f7ef!important}
.ct-dashboard-premium .ct-kpi-click .bg-red-50{background:#fff0ef!important}
.ct-dashboard-premium .ct-kpi-click .bg-blue-50,
.ct-dashboard-premium .ct-kpi-click .bg-amber-50,
.ct-dashboard-premium .ct-kpi-click .bg-violet-50,
.ct-dashboard-premium .ct-kpi-click .bg-sky-50{
  background:#fff4d9!important;color:#a87518!important;
}
.ct-dashboard-premium .ct-kpi-click svg{color:#a87518!important}

/* Avisos e gráficos também preservam contraste no tema claro */
.ct-dashboard-premium .text-slate-900,
.ct-dashboard-premium .text-slate-800,
.ct-dashboard-premium .text-slate-700,
.ct-dashboard-premium .text-slate-600{color:#171717!important}
.ct-dashboard-premium .text-slate-500{color:#625a4b!important}
.ct-dashboard-premium .ct-kpi-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.ct-dashboard-premium .ct-kpi-grid .ct-kpi-click:first-child{grid-column:span 1!important}
@media(min-width:1280px){
  .ct-dashboard-premium .ct-kpi-grid .ct-kpi-click:first-child{grid-column:span 2!important}
}
@media(max-width:767px){
  .ct-dashboard-premium .ct-dashboard-hero{
    background:linear-gradient(135deg,#fffdf8,#fff6df)!important;
    padding:15px!important;
  }
  .ct-dashboard-premium .ct-dashboard-hero h1{color:#171717!important}
  .ct-dashboard-premium .ct-dashboard-hero p{color:#625a4b!important}
  .ct-dashboard-premium .ct-dashboard-hero>div:first-child{align-items:flex-start!important}
  .ct-dashboard-premium .ct-dashboard-hero>div:last-child{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;gap:8px!important;
  }
  .ct-dashboard-premium .ct-dashboard-hero>div:last-child>div:first-child{
    grid-column:1/-1!important;
  }
  .ct-dashboard-premium .ct-dashboard-hero button{
    width:100%!important;justify-content:center!important;min-height:48px!important;
    font-size:12px!important;padding:10px 8px!important;
  }
  .ct-dashboard-premium .ct-quick-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .ct-dashboard-premium .ct-kpi-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .ct-dashboard-premium .ct-kpi-grid .ct-kpi-click:first-child{
    grid-column:1/-1!important;
  }
}
html.dark .ct-dashboard-premium .ct-dashboard-hero{
  background:linear-gradient(120deg,#171717,#242018)!important;
  border-color:#665126!important;color:#fff!important;
}
html.dark .ct-dashboard-premium .ct-dashboard-hero h1,
html.dark .ct-dashboard-premium .ct-dashboard-hero h2,
html.dark .ct-dashboard-premium .ct-dashboard-hero p,
html.dark .ct-dashboard-premium .ct-dashboard-hero b{color:#fff8e8!important}
html.dark .ct-dashboard-premium .ct-kpi-grid .ct-kpi-click,
html.dark .ct-dashboard-premium .ct-kpi-click{
  background:linear-gradient(145deg,#242424,#191919)!important;
  border-color:#514225!important;color:#fff8e8!important;
}
html.dark .ct-dashboard-premium .ct-kpi-click *,
html.dark .ct-dashboard-premium .ct-kpi-click p,
html.dark .ct-dashboard-premium .ct-kpi-click .text-slate-900,
html.dark .ct-dashboard-premium .ct-kpi-click .text-slate-800,
html.dark .ct-dashboard-premium .ct-kpi-click .text-slate-700,
html.dark .ct-dashboard-premium .ct-kpi-click .text-slate-600,
html.dark .ct-dashboard-premium .ct-kpi-click .text-slate-500{color:#fff8e8!important}


/* CLIMA TECH — dashboard profissional preto, branco e dourado */
.ct-dashboard-v2{background:radial-gradient(ellipse at 85% 0%,rgba(211,161,48,.13),transparent 34%),#101010;color:#f8fafc;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,sans-serif}
.ct-dashboard-v2 *{box-sizing:border-box}
.ct-dashboard-v2 .ct-welcome-panel{background:linear-gradient(120deg,#080808 0%,#191919 65%,#242016 100%);border:1px solid rgba(211,161,48,.5);box-shadow:0 18px 45px rgba(0,0,0,.28);position:relative;overflow:hidden}
.ct-dashboard-v2 .ct-welcome-panel:after{content:"";position:absolute;width:360px;height:360px;border:1px solid rgba(222,174,54,.18);border-radius:50%;right:-100px;top:-230px;box-shadow:0 0 0 36px rgba(222,174,54,.025),0 0 0 72px rgba(222,174,54,.02);pointer-events:none}
.ct-dashboard-v2 .ct-eyebrow{font-size:10px;letter-spacing:.22em;font-weight:900;color:#d6ad51}
.ct-dashboard-v2 .ct-gold-text{color:#e2b84e}
.ct-dashboard-v2 .ct-muted{color:#aeb4bf}
.ct-dashboard-v2 .ct-filter-box{background:#111;border:1px solid #514323}
.ct-dashboard-v2 .ct-filter-select{background:#171717;color:#f8fafc;border:1px solid #5a4925;border-radius:10px;padding:9px 11px;font-size:12px;font-weight:800;outline:none;max-width:140px}
.ct-dashboard-v2 .ct-filter-select option{background:#171717;color:#fff}
.ct-dashboard-v2 .ct-chart-filter{background:#171717}
.ct-dashboard-v2 .ct-secondary-action{display:inline-flex;align-items:center;gap:8px;background:#fff;color:#111;border:1px solid #e5e7eb;border-radius:12px;padding:11px 15px;font-size:12px;font-weight:900;transition:.2s}
.ct-dashboard-v2 .ct-secondary-action:hover{background:#f3e8c7}
.ct-dashboard-v2 .ct-primary-action,.ct-dashboard-v2 .ct-action-card{display:flex;align-items:center;justify-content:flex-start;gap:15px;text-align:left;border-radius:17px;padding:17px 18px;min-height:78px;transition:transform .18s,box-shadow .18s,border-color .18s}
.ct-dashboard-v2 .ct-primary-action{background:linear-gradient(135deg,#f5c12d,#d49c19);color:#111;border:1px solid #f7d36a;box-shadow:0 8px 22px rgba(211,161,48,.18)}
.ct-dashboard-v2 .ct-action-card{background:linear-gradient(145deg,#202020,#111);color:#fff;border:1px solid #66501e}
.ct-dashboard-v2 .ct-action-card>svg{color:#e2b84e;flex-shrink:0}
.ct-dashboard-v2 .ct-primary-action strong,.ct-dashboard-v2 .ct-action-card strong{display:block;font-size:14px;font-weight:950;line-height:1.2}
.ct-dashboard-v2 .ct-primary-action small,.ct-dashboard-v2 .ct-action-card small{display:block;font-size:11px;font-weight:600;margin-top:4px;opacity:.78}
.ct-dashboard-v2 .ct-primary-action:hover,.ct-dashboard-v2 .ct-action-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(0,0,0,.28);border-color:#e5b83e}
.ct-dashboard-v2 .ct-stat-card{background:#fff;color:#111;border:1px solid #e5e7eb;border-radius:18px;padding:17px 16px;min-height:150px;text-align:left;box-shadow:0 8px 24px rgba(0,0,0,.16);transition:transform .18s,box-shadow .18s}
.ct-dashboard-v2 .ct-stat-card:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(0,0,0,.24)}
.ct-dashboard-v2 .ct-stat-heading{display:flex;align-items:center;gap:9px;color:#8b671b;font-size:12px;font-weight:900;min-height:26px}
.ct-dashboard-v2 .ct-stat-value{font-size:clamp(19px,2vw,26px);font-weight:950;letter-spacing:-.04em;margin-top:15px;color:#101010;overflow-wrap:anywhere}
.ct-dashboard-v2 .ct-stat-foot{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #ececec;padding-top:10px;margin-top:11px;font-size:11px;color:#626262}
.ct-dashboard-v2 .ct-stat-foot strong{color:#087b4b;font-size:13px}
.ct-dashboard-v2 .ct-stat-note{font-size:11px;color:#777;margin-top:10px}
.ct-dashboard-v2 .ct-panel{background:linear-gradient(145deg,#202020,#151515);border:1px solid #3b3424;box-shadow:0 10px 30px rgba(0,0,0,.2);color:#fff}
.ct-dashboard-v2 .ct-panel-title{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:950;color:#fff}
.ct-dashboard-v2 .ct-panel-title svg{color:#e4b83f}
.ct-dashboard-v2 .ct-link-action{font-size:12px;font-weight:900;color:#e7b83e;white-space:nowrap}
.ct-dashboard-v2 .ct-link-action:hover{color:#ffda72}
.ct-dashboard-v2 .ct-chart-wrap{border:1px solid #3a3427;border-radius:15px;padding:14px;background:rgba(0,0,0,.2);overflow-x:auto}
.ct-dashboard-v2 .ct-chart-bars{display:flex;align-items:flex-end;gap:12px;min-width:500px;height:205px}
.ct-dashboard-v2 .ct-chart-col{display:flex;flex:1;min-width:35px;height:100%;align-items:center;justify-content:flex-end;flex-direction:column;gap:6px}
.ct-dashboard-v2 .ct-chart-amount{font-size:9px;color:#e8e8e8;font-weight:800;white-space:nowrap}
.ct-dashboard-v2 .ct-chart-track{height:145px;width:min(100%,42px);background:#333;border-radius:8px 8px 3px 3px;display:flex;align-items:flex-end;overflow:hidden}
.ct-dashboard-v2 .ct-chart-bar{width:100%;background:linear-gradient(180deg,#ffcf43,#c28a13);border-radius:8px 8px 3px 3px;box-shadow:0 0 16px rgba(218,168,43,.18)}
.ct-dashboard-v2 .ct-chart-label{font-size:10px;color:#f5f5f5;font-weight:800}
.ct-dashboard-v2 .ct-chart-count{font-size:9px;color:#9da3ad}
.ct-dashboard-v2 .ct-chart-summary{display:flex;justify-content:space-between;gap:12px;color:#bfc3ca;font-size:11px}
.ct-dashboard-v2 .ct-chart-summary b{color:#f0c34e}
.ct-dashboard-v2 .ct-appointment-row,.ct-dashboard-v2 .ct-simple-row{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #353535;background:#111;border-radius:12px;color:#fff;min-width:0}
.ct-dashboard-v2 .ct-appointment-time{background:#f0c13c;color:#111;border-radius:10px;padding:7px 9px;text-align:center;min-width:54px}
.ct-dashboard-v2 .ct-appointment-time strong{display:block;font-size:13px;font-weight:950}
.ct-dashboard-v2 .ct-appointment-time small{display:block;font-size:8px;font-weight:950;letter-spacing:.1em}
.ct-dashboard-v2 .ct-whatsapp-mini{background:#087b4b;color:#fff;border-radius:9px;padding:8px 10px;font-size:10px;font-weight:900;white-space:nowrap}
.ct-dashboard-v2 .ct-empty-state{border:1px dashed #51482f;border-radius:12px;padding:20px;color:#aeb4bf;text-align:center;font-size:12px}
.ct-dashboard-v2 .ct-quotes-table{width:100%;border-collapse:separate;border-spacing:0;min-width:680px;font-size:12px;color:#151515;background:#fff;border-radius:12px;overflow:hidden}
.ct-dashboard-v2 .ct-quotes-table th{background:#d9aa36;color:#171717;text-align:left;padding:12px 13px;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.ct-dashboard-v2 .ct-quotes-table td{padding:12px 13px;border-bottom:1px solid #ececec;white-space:nowrap}
.ct-dashboard-v2 .ct-quotes-table tbody tr:last-child td{border-bottom:0}
.ct-dashboard-v2 .ct-quotes-table tbody tr:nth-child(even){background:#f7f7f7}
.ct-dashboard-v2 .ct-status-pill{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:9px;font-weight:950;text-transform:uppercase;white-space:nowrap}
.ct-dashboard-v2 .ct-status-pill.is-done,.ct-dashboard-v2 .ct-status-pill.is-approved{background:#d9fbe8;color:#087443}
.ct-dashboard-v2 .ct-status-pill.is-sent{background:#dbeafe;color:#1d4ed8}
.ct-dashboard-v2 .ct-status-pill.is-open{background:#fff0c2;color:#8a5a00}
.ct-dashboard-v2 .ct-pmoc-summary{display:grid;grid-template-columns:1fr auto;gap:10px;padding:15px;background:#111;border:1px solid #3a3427;border-radius:12px}
.ct-dashboard-v2 .ct-pmoc-summary span{font-size:11px;color:#aeb4bf}
.ct-dashboard-v2 .ct-pmoc-summary strong{font-size:18px;color:#efc044;text-align:right}
@media(max-width:640px){
 .ct-dashboard-v2{padding:12px}
 .ct-dashboard-v2 .ct-welcome-panel{padding:17px}
 .ct-dashboard-v2 .ct-stat-card{padding:13px;min-height:132px}
 .ct-dashboard-v2 .ct-stat-heading{align-items:flex-start;font-size:10px}
 .ct-dashboard-v2 .ct-stat-value{font-size:18px;margin-top:12px}
 .ct-dashboard-v2 .ct-primary-action,.ct-dashboard-v2 .ct-action-card{min-height:70px;padding:13px;gap:10px}
 .ct-dashboard-v2 .ct-primary-action strong,.ct-dashboard-v2 .ct-action-card strong{font-size:12px}
 .ct-dashboard-v2 .ct-primary-action small,.ct-dashboard-v2 .ct-action-card small{font-size:9px}
 .ct-dashboard-v2 .ct-appointment-row{gap:8px;padding:9px}
 .ct-dashboard-v2 .ct-whatsapp-mini{padding:7px;font-size:9px}
}

/* Navegação principal alinhada à identidade preta e dourada */
aside.bg-slate-900,aside.bg-\[\#020817\]{background:#090909!important;border-right:1px solid #302718!important}
aside .bg-blue-600{background:linear-gradient(135deg,#f2c23e,#c99420)!important;color:#111!important;box-shadow:0 8px 22px rgba(211,161,48,.18)!important}
aside .text-blue-500,aside .text-blue-400{color:#e4b83f!important}
aside nav button.bg-blue-600,aside nav a.bg-blue-600{background:linear-gradient(135deg,#f2c23e,#c99420)!important;color:#111!important}
aside nav button:hover,aside nav a:hover{border-color:rgba(220,175,62,.45)!important}

/* V44 — tela de login aprovada: branco, preto e amarelo. Somente login. */
.ct44-login-shell{
  min-height:100vh!important;padding:0!important;display:grid!important;
  grid-template-columns:minmax(0,1.04fr) minmax(440px,.96fr)!important;
  align-items:stretch!important;background:#fff!important;color:#111!important;
}
.ct44-showcase{
  min-height:100vh!important;position:relative!important;overflow:hidden!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  padding:clamp(34px,5vw,82px)!important;background:#fff!important;color:#111!important;
  border-right:2px solid #efb900!important;
}
.ct44-showcase:before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.22;
  background-image:linear-gradient(rgba(0,0,0,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(0,0,0,.035) 1px,transparent 1px);
  background-size:34px 34px;
}
.ct44-showcase:after{
  content:"";position:absolute;left:-8%;right:-8%;bottom:-92px;height:150px;
  border-top:15px solid #f4bd00;border-radius:50% 50% 0 0/48% 48% 0 0;
  box-shadow:0 -12px 0 #111;transform:rotate(-2deg);pointer-events:none;
}
.ct44-showcase-inner{position:relative!important;z-index:1!important;min-height:calc(100vh - 90px)!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
.ct44-brand{display:flex!important;align-items:center!important;gap:15px!important;margin-bottom:34px!important}
.ct44-brand-icon{width:62px!important;height:62px!important;border-radius:16px!important;display:grid!important;place-items:center!important;background:#ffc400!important;color:#111!important;font-size:34px!important;font-weight:950!important;box-shadow:none!important}
.ct44-brand-name{font-size:clamp(25px,2.4vw,38px)!important;line-height:1!important;font-weight:950!important;letter-spacing:-.05em!important;color:#111!important}
.ct44-brand-name b{color:#e6aa00!important}
.ct44-copy{margin:0!important;max-width:800px!important}
.ct44-kicker{font-size:12px!important;font-weight:950!important;letter-spacing:.15em!important;color:#111!important;margin-bottom:22px!important}
.ct44-copy h2{margin:0!important;color:#111!important;font-size:clamp(38px,4.5vw,70px)!important;line-height:.99!important;letter-spacing:-.055em!important;font-weight:950!important}
.ct44-copy h2 strong{color:#111!important;background:#ffc400!important;border-radius:12px!important;padding:0 .12em!important;box-decoration-break:clone!important;-webkit-box-decoration-break:clone!important}
.ct44-copy p{max-width:680px!important;margin:22px 0 0!important;color:#222!important;font-size:clamp(15px,1.25vw,19px)!important;line-height:1.55!important;font-weight:550!important}
.ct44-features{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin-top:32px!important}
.ct44-feature{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:10px!important;min-height:132px!important;padding:15px 10px!important;border:2px solid #efb900!important;border-radius:18px!important;background:#fff!important;backdrop-filter:none!important}
.ct44-feature i{width:43px!important;height:43px!important;display:grid!important;place-items:center!important;border-radius:11px!important;background:#ffc400!important;color:#111!important;font-size:22px!important;font-style:normal!important;font-weight:950!important}
.ct44-feature strong{display:block!important;color:#111!important;font-size:13px!important;line-height:1.2!important;font-weight:950!important}
.ct44-feature span{display:none!important}
.ct44-footer{margin-top:32px!important;color:#333!important;font-size:11px!important;font-weight:800!important;letter-spacing:.04em!important}
.ct44-login-card{
  width:auto!important;max-width:none!important;min-height:100vh!important;margin:0!important;
  padding:clamp(34px,5vw,82px)!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;background:#fff!important;color:#111!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;
}
.ct44-login-card h1,.ct44-login-card h2,.ct44-login-card h3,.ct44-login-card label,
.ct44-login-card p,.ct44-login-card span,.ct44-login-card a{color:#111!important}
.ct44-login-card h1{font-weight:950!important}
.ct44-login-card input{background:#fff!important;color:#111!important;border:1.5px solid #252525!important;border-radius:18px!important;min-height:62px!important;font-weight:750!important;box-shadow:none!important}
.ct44-login-card input::placeholder{color:#333!important;opacity:1!important}
.ct44-login-card button[type="submit"]{min-height:62px!important;border:1px solid #e6b000!important;border-radius:17px!important;background:#ffc400!important;color:#111!important;font-weight:950!important;letter-spacing:.06em!important;box-shadow:none!important}
.ct44-login-card button[type="submit"] *{color:#111!important}
.ct44-login-card a{color:#9a7100!important;font-weight:950!important}
.ct44-login-card svg{color:#111!important}
@media(max-width:900px){
  .ct44-login-shell{display:flex!important;flex-direction:column!important;min-height:100vh!important}
  .ct44-showcase{min-height:auto!important;padding:34px 24px 38px!important;border-right:0!important;border-bottom:2px solid #efb900!important}
  .ct44-showcase-inner{min-height:auto!important}
  .ct44-showcase:after{display:none!important}
  .ct44-brand{margin-bottom:22px!important}
  .ct44-copy h2{font-size:clamp(34px,8vw,52px)!important}
  .ct44-copy p{font-size:15px!important;margin-top:15px!important}
  .ct44-features{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin-top:22px!important}
  .ct44-feature{min-height:100px!important}
  .ct44-footer{margin-top:18px!important}
  .ct44-login-card{min-height:auto!important;padding:34px 24px 48px!important}
}
@media(max-width:420px){
  .ct44-showcase{padding:26px 18px 30px!important}
  .ct44-brand-icon{width:50px!important;height:50px!important;font-size:27px!important}
  .ct44-brand-name{font-size:25px!important}
  .ct44-features{gap:8px!important}
  .ct44-feature{padding:12px 7px!important;min-height:92px!important}
  .ct44-feature strong{font-size:12px!important}
  .ct44-login-card{padding:30px 18px 40px!important}
}

/* V44 — atalho de orçamento rápido, com prioridade em telas móveis */
.ct-dashboard-v2 .ct-quick-quote-action{position:relative;isolation:isolate;min-height:84px;border:2px solid #e2b84e;box-shadow:0 10px 26px rgba(211,161,48,.24)}
.ct-dashboard-v2 .ct-quick-quote-action>svg{color:#111;flex-shrink:0}
.ct-dashboard-v2 .ct-quick-quote-action small{color:#30250b}
@media(max-width:640px){.ct-dashboard-v2 .ct-quick-quote-action{width:100%;min-height:88px;padding:18px 20px;border-radius:18px}.ct-dashboard-v2 .ct-quick-quote-action strong{font-size:16px}.ct-dashboard-v2 .ct-quick-quote-action small{font-size:12px}}

/* CLIMATECH V47 - mobile polish and full-bleed dark dashboard */
html, body, #root { width:100%; min-width:0; }
html.dark, html.dark body, html.dark #root {
  background:#050505 !important;
}
html.dark #root main,
html.dark #root main > div,
html.dark #root main > section {
  background:#050505 !important;
}
html.dark #root main {
  min-height:100dvh;
}
@media (max-width: 639px) {
  /* Keep the theme switch visible in the compact mobile header. */
  #root header button[title^="Trocar para modo"] {
    display:flex !important;
    flex:0 0 auto !important;
    transform:scale(.88);
    transform-origin:left center;
    margin-left:-6px;
  }
  #root header { gap:8px; padding-top:12px !important; padding-bottom:12px !important; }
}

/* V48 — dashboard full-bleed: remove outer white gutters without changing cards */
html:has(.ct-dashboard-v2),
body:has(.ct-dashboard-v2),
body:has(.ct-dashboard-v2) #root {
  min-height:100%;
  background:#0b0b0b !important;
}
body:has(.ct-dashboard-v2) #root { width:100%; max-width:none; margin:0; padding:0; }
.ct-dashboard-v2 {
  box-sizing:border-box !important;
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
.ct-dashboard-v2, .ct-dashboard-v2 * { box-sizing:border-box; }
@media (max-width: 900px) {
  html:has(.ct-dashboard-v2), body:has(.ct-dashboard-v2), body:has(.ct-dashboard-v2) #root {
    width:100% !important;
    min-width:0 !important;
    overflow-x:hidden !important;
    background:#0b0b0b !important;
  }
  .ct-dashboard-v2 {
    width:100vw !important;
    max-width:100vw !important;
    margin:0 !important;
    border-radius:0 !important;
  }
}


/* CLIMATECH V49 — correção estrutural full-bleed e dashboard mobile */
html, body { margin:0 !important; padding:0 !important; width:100% !important; min-width:0 !important; }
html:has(.ct-dashboard-v2), body:has(.ct-dashboard-v2) {
  background:#101010 !important; min-height:100% !important; overflow-x:hidden !important;
}
body:has(.ct-dashboard-v2) { background:#101010 !important; }
body:has(.ct-dashboard-v2) #root,
body:has(.ct-dashboard-v2) #root > div,
body:has(.ct-dashboard-v2) #root main,
body:has(.ct-dashboard-v2) #root main > div,
body:has(.ct-dashboard-v2) #root main > section {
  background-color:#101010 !important; width:100% !important; max-width:none !important;
  min-width:0 !important; margin-left:0 !important; margin-right:0 !important;
}
/* Dashboard breaks out of any centered/max-width content wrapper. */
.ct-dashboard-v2 {
  display:block !important; position:relative !important; left:50% !important;
  width:100vw !important; max-width:100vw !important;
  margin-left:-50vw !important; margin-right:-50vw !important;
  min-height:100vh !important; min-height:100dvh !important;
  padding:clamp(14px,2.2vw,32px) !important;
  background:radial-gradient(ellipse at 85% 0%,rgba(211,161,48,.13),transparent 34%),#101010 !important;
  color:#f8fafc !important; box-sizing:border-box !important;
}
.ct-dashboard-v2 > section { min-width:0 !important; max-width:none !important; }
.ct-dashboard-v2, .ct-dashboard-v2 * { box-sizing:border-box !important; }
@media (max-width: 767px) {
  html:has(.ct-dashboard-v2), body:has(.ct-dashboard-v2),
  body:has(.ct-dashboard-v2) #root,
  body:has(.ct-dashboard-v2) #root > div,
  body:has(.ct-dashboard-v2) #root main,
  body:has(.ct-dashboard-v2) #root main > div {
    width:100% !important; max-width:100% !important; min-width:0 !important;
    margin:0 !important; padding-left:0 !important; padding-right:0 !important;
    overflow-x:hidden !important; background:#101010 !important;
  }
  .ct-dashboard-v2 {
    left:0 !important; width:100% !important; max-width:100% !important;
    margin:0 !important; padding:12px !important; min-height:100dvh !important;
  }
  .ct-dashboard-v2 .ct-welcome-panel { padding:16px !important; border-radius:18px !important; }
  .ct-dashboard-v2 .ct-welcome-panel h1 { font-size:clamp(22px,6vw,30px) !important; line-height:1.15 !important; }
  .ct-dashboard-v2 .ct-welcome-panel > div { min-width:0 !important; }
  .ct-dashboard-v2 .ct-filter-box { display:flex !important; flex-wrap:wrap !important; width:100% !important; }
  .ct-dashboard-v2 .ct-filter-select { flex:1 1 110px !important; max-width:none !important; min-width:0 !important; }
  .ct-dashboard-v2 .ct-secondary-action { justify-content:center !important; flex:1 1 100% !important; min-height:44px !important; }
  /* Atalhos em duas colunas, com orçamento rápido em destaque. */
  .ct-dashboard-v2 > section:nth-of-type(2) {
    display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important; margin-top:12px !important;
  }
  .ct-dashboard-v2 > section:nth-of-type(2) > button:first-child {
    grid-column:1 / -1 !important;
  }
  .ct-dashboard-v2 .ct-primary-action,
  .ct-dashboard-v2 .ct-action-card {
    width:100% !important; min-width:0 !important; min-height:82px !important;
    padding:12px !important; gap:9px !important; border-radius:15px !important;
  }
  .ct-dashboard-v2 .ct-primary-action strong,
  .ct-dashboard-v2 .ct-action-card strong { font-size:13px !important; line-height:1.2 !important; }
  .ct-dashboard-v2 .ct-primary-action small,
  .ct-dashboard-v2 .ct-action-card small { font-size:10px !important; line-height:1.3 !important; }
  .ct-dashboard-v2 .ct-stat-card { min-width:0 !important; padding:12px !important; min-height:125px !important; }
  .ct-dashboard-v2 .ct-stat-value { font-size:clamp(16px,4.5vw,21px) !important; overflow-wrap:anywhere !important; }
  .ct-dashboard-v2 .ct-panel { min-width:0 !important; }
  .ct-dashboard-v2 .ct-chart-wrap { max-width:100% !important; }
}
@media (max-width:380px) {
  .ct-dashboard-v2 { padding:9px !important; }
  .ct-dashboard-v2 > section:nth-of-type(2) { gap:8px !important; }
  .ct-dashboard-v2 .ct-primary-action, .ct-dashboard-v2 .ct-action-card { padding:10px !important; gap:7px !important; }
  .ct-dashboard-v2 .ct-primary-action strong, .ct-dashboard-v2 .ct-action-card strong { font-size:12px !important; }
}


/* =====================================================================
   CLIMATECH V51 — dashboard responsiva e otimizada para celular
   ===================================================================== */

/* 1) Estrutura: remove o "breakout" 100vw da v49 (desalinhava com o menu lateral).
      O padding do wrapper só é zerado quando ele contém a dashboard. */
div:has(> .ct-dashboard-v2){ padding:0 !important; }
body .ct-dashboard-v2{
  position:relative !important; left:auto !important;
  width:100% !important; max-width:1680px !important;
  margin:0 auto !important; min-height:0 !important;
  padding:clamp(12px,2.2vw,32px) !important;
}
#root main{ padding-left:env(safe-area-inset-left,0px); padding-right:env(safe-area-inset-right,0px); padding-bottom:env(safe-area-inset-bottom,0px); }
.ct-dashboard-v2 section > *{ min-width:0; }
.ct-dashboard-v2 button,.ct-dashboard-v2 a,.ct-dashboard-v2 select{ touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.ct-dashboard-v2 .ct-filter-select{ min-height:42px; }
.ct-dashboard-v2 .ct-link-action{ min-height:40px; display:inline-flex; align-items:center; }
.ct-dashboard-v2 .ct-amt-short{ display:none; }
.ct-dashboard-v2 .ct-stat-card:active,.ct-dashboard-v2 .ct-action-card:active,.ct-dashboard-v2 .ct-primary-action:active{ transform:scale(.98); }
@media (hover:none){
  .ct-dashboard-v2 .ct-stat-card:hover,.ct-dashboard-v2 .ct-primary-action:hover,.ct-dashboard-v2 .ct-action-card:hover{ transform:none; }
}
@media (prefers-reduced-motion:reduce){ .ct-dashboard-v2 *{ transition:none !important; } }

/* 2) Grades por largura: sem cartão órfão em tablet/celular, 5 colunas só em tela larga */
@media (max-width:1279px){
  body .ct-dashboard-v2 > section:nth-of-type(2){ display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; }
  body .ct-dashboard-v2 > section:nth-of-type(2) > button:first-child{ grid-column:1 / -1 !important; }
  body .ct-dashboard-v2 > section:nth-of-type(3) > .ct-stat-card:first-child{ grid-column:1 / -1 !important; }
}
@media (min-width:1280px){
  body .ct-dashboard-v2 > section:nth-of-type(2),
  body .ct-dashboard-v2 > section:nth-of-type(3){ grid-template-columns:repeat(5,minmax(0,1fr)) !important; }
  body .ct-dashboard-v2 > section:nth-of-type(4){ grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) !important; }
}

/* 3) Celular */
@media (max-width:767px){
  #root header{ padding-top:max(10px,env(safe-area-inset-top,0px)) !important; padding-bottom:10px !important; }
  body .ct-dashboard-v2{ padding:12px !important; }
  body .ct-dashboard-v2 .ct-stat-card{ min-height:108px !important; padding:14px !important; }
  body .ct-dashboard-v2 .ct-stat-heading{ font-size:11px !important; min-height:0 !important; }
  body .ct-dashboard-v2 .ct-stat-value{ font-size:clamp(17px,5vw,22px) !important; margin-top:10px !important; }
  body .ct-dashboard-v2 .ct-stat-card:first-child .ct-stat-value{ font-size:clamp(26px,8.5vw,34px) !important; white-space:nowrap; }
  body .ct-dashboard-v2 .ct-stat-note{ font-size:11px !important; }
  body .ct-dashboard-v2 .ct-panel-title{ font-size:15px !important; }
  body .ct-dashboard-v2 .ct-whatsapp-mini{ min-height:40px; display:inline-flex !important; align-items:center; padding:0 12px !important; font-size:11px !important; }
  body .ct-dashboard-v2 .ct-status-pill{ font-size:10px !important; }

  /* Gráfico: colunas compactas, valores abreviados e rolagem iniciando no dado mais recente */
  body .ct-dashboard-v2 .ct-chart-wrap{ direction:rtl; padding:12px 6px 8px !important; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; scrollbar-width:thin; scrollbar-color:#6b5420 transparent; }
  body .ct-dashboard-v2 .ct-chart-bars{ direction:ltr; min-width:100% !important; width:max-content; gap:4px !important; height:196px !important; }
  body .ct-dashboard-v2 .ct-chart-col{ flex:1 0 36px !important; min-width:36px !important; }
  body .ct-dashboard-v2 .ct-chart-track{ width:min(100%,26px) !important; }
  body .ct-dashboard-v2 .ct-amt-full{ display:none !important; }
  body .ct-dashboard-v2 .ct-amt-short{ display:block !important; font-size:10px !important; font-weight:900; }
  body .ct-dashboard-v2 .ct-chart-label{ font-size:10px !important; }
  body .ct-dashboard-v2 .ct-chart-count{ font-size:9px !important; }
  body .ct-dashboard-v2 .ct-chart-summary{ flex-wrap:wrap; gap:4px 14px; font-size:12px !important; }
}
@media (max-width:359px){
  body .ct-dashboard-v2 > section:nth-of-type(2){ grid-template-columns:1fr !important; }
}

/* 4) Tabela "Últimos orçamentos" vira lista de cartões no celular (sem rolagem lateral) */
@media (max-width:640px){
  body .ct-dashboard-v2 .overflow-x-auto{ overflow:visible !important; }
  body .ct-dashboard-v2 .ct-quotes-table{ display:block; min-width:0 !important; background:transparent !important; border-radius:0 !important; }
  .ct-dashboard-v2 .ct-quotes-table thead{ display:none; }
  .ct-dashboard-v2 .ct-quotes-table tbody{ display:flex; flex-direction:column; gap:10px; }
  .ct-dashboard-v2 .ct-quotes-table tbody tr{
    display:grid !important; grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"cli val" "tit sta" "num dat";
    gap:6px 12px; align-items:center; background:#fff !important; border-radius:14px; padding:13px 14px;
  }
  .ct-dashboard-v2 .ct-quotes-table td{ display:block; padding:0 !important; border:0 !important; white-space:normal !important; min-width:0; }
  .ct-dashboard-v2 .ct-quotes-table td:nth-child(1){ grid-area:num; font-size:11px; color:#777; }
  .ct-dashboard-v2 .ct-quotes-table td:nth-child(2){ grid-area:cli; font-size:14px; font-weight:800; white-space:nowrap !important; overflow:hidden; text-overflow:ellipsis; }
  .ct-dashboard-v2 .ct-quotes-table td:nth-child(3){ grid-area:tit; font-size:12px; color:#555; white-space:nowrap !important; overflow:hidden; text-overflow:ellipsis; }
  .ct-dashboard-v2 .ct-quotes-table td:nth-child(4){ grid-area:val; font-size:15px; text-align:right; }
  .ct-dashboard-v2 .ct-quotes-table td:nth-child(5){ grid-area:dat; font-size:11px; color:#777; text-align:right; }
  .ct-dashboard-v2 .ct-quotes-table td:nth-child(6){ grid-area:sta; text-align:right; }
  .ct-dashboard-v2 .ct-quotes-table td:only-child{ grid-area:auto !important; grid-column:1 / -1; text-align:center; color:#555; padding:14px 0 !important; }
}

/* 5) Celular deitado: libera altura ocupada pelo cabeçalho fixo */
@media (max-height:500px) and (orientation:landscape){ #root header{ position:static !important; } }


/* =====================================================================
   CLIMATECH V52 — telas internas: legibilidade, toque e modais (todas as páginas)
   ===================================================================== */

/* 1) Legibilidade: textos minúsculos maiores e pesos menos "borrados" */
#root main{ font-variant-numeric:tabular-nums; }
#root main .text-\[9px\]{ font-size:11px; line-height:1.35; }
#root main .text-\[10px\]{ font-size:12px; line-height:1.4; }
#root main .text-\[11px\]{ font-size:12.5px; }
#root main .text-xs{ font-size:13px; line-height:1.45; }
#root main :is(.text-\[9px\],.text-\[10px\]).font-black{ font-weight:800; }
aside nav .text-\[10px\]{ font-size:12px; }
aside nav .text-\[9px\]{ font-size:11px; }
aside nav button{ min-height:48px; }

/* 2) Contraste dos cinzas fracos (o slate-400 no tema claro tinha ~2,6:1) */
html:not(.dark) #root main .text-slate-400:not(:is(.ct-dashboard-v2,[class*="bg-slate-9"],[class*="bg-slate-8"],[class*="bg-black"],[class*="bg-gradient"],[class*="bg-[#0"],[class*="bg-[#1"]) *){ color:#667085; }
html:not(.dark) #root main .text-slate-500:not(:is(.ct-dashboard-v2,[class*="bg-slate-9"],[class*="bg-slate-8"],[class*="bg-black"],[class*="bg-gradient"],[class*="bg-[#0"],[class*="bg-[#1"]) *){ color:#4b5563; }
html.dark #root main .text-slate-500{ color:#a9b1bf; }
html.dark #root main .text-slate-400{ color:#b8c0cd; }
html:not(.dark) #root main ::placeholder{ color:#7a8496; opacity:1; }
html.dark #root main ::placeholder{ color:#9aa3b2; opacity:1; }

/* 3) Campos mais visíveis e foco claro (mantém borda vermelha de erro) */
html:not(.dark) #root main :is(input,select,textarea):not([type=checkbox],[type=radio],[type=range],[type=file],[type=color],[class*="border-red"],[class*="border-rose"]){ border-color:#cdbf9f; }
html.dark #root main :is(input,select,textarea):not([type=checkbox],[type=radio],[type=range],[type=file],[type=color],[class*="border-red"],[class*="border-rose"]){ border-color:#6a5a35; }
#root main :is(input,select,textarea):focus{ outline:none; box-shadow:0 0 0 3px rgba(201,149,46,.38) !important; }
#root main :is(button,a):focus-visible{ outline:2px solid #c9952e; outline-offset:2px; }

/* 4) Acabamento dos cartões no tema claro */
html:not(.dark) #root main .theme-card,
html:not(.dark) #root main .bg-white[class*="rounded-"]{ box-shadow:0 1px 2px rgba(16,16,16,.05),0 6px 20px rgba(16,16,16,.05); }

/* 5) Celular */
@media (max-width:767px){
  #root main{ overflow-x:hidden; }
  #root main > div.p-6{ padding:14px 12px 28px !important; }
  #root main .p-10{ padding:20px; }
  #root main .p-8{ padding:18px; }
  #root main .px-8{ padding-left:16px; padding-right:16px; }
  #root main h1.text-3xl,#root main h1.text-4xl{ font-size:24px; line-height:1.2; }
  #root main .tracking-widest{ letter-spacing:.05em; }
  #root main img,#root main video,#root main canvas{ max-width:100%; }

  /* Campos e botões confortáveis para o toque */
  #root main :is(input,select,textarea):not([type=checkbox],[type=radio],[type=range],[type=file],[type=color]){ min-height:46px; font-size:16px; }
  #root main textarea{ min-height:96px; }
  #root main button:not([class*="h-"]):not([role=switch]){ min-height:40px; }

  /* Cabeçalhos de página (título + ações) quebram linha em vez de espremer */
  #root main div.flex:has(> h1, > div > h1, > h2, > div > h2){ flex-wrap:wrap; gap:12px; }

  /* Modais: centralizam quando cabem e rolam quando não cabem (sem cortar o topo/rodapé) */
  #root [class*="fixed"][class*="inset-0"][class*="items-center"]{
    align-items:flex-start; overflow-y:auto; overscroll-behavior:contain;
    padding-top:max(12px,env(safe-area-inset-top,0px)); padding-bottom:max(12px,env(safe-area-inset-bottom,0px));
    padding-left:12px; padding-right:12px;
  }
  #root [class*="fixed"][class*="inset-0"][class*="items-center"] > *{ margin-top:auto; margin-bottom:auto; max-width:100%; }
}


/* =====================================================================
   CLIMATECH V53 — barra inferior (somente celular) e cartão "Hoje"
   ===================================================================== */
.ct-bottom-nav,.ct-bn-backdrop,.ct-bn-sheet,.ct-today-card{ display:none; }

/* Corrige a V52: o wrapper da dashboard não deve ter margem extra (já tem a própria) */
@media (max-width:767px){
  #root main > div.p-6:has(> .ct-dashboard-v2){ padding:0 0 calc(92px + env(safe-area-inset-bottom,0px)) !important; }
  #root main > div.p-6{ padding-bottom:calc(92px + env(safe-area-inset-bottom,0px)) !important; }

  .ct-bottom-nav{ display:grid; grid-template-columns:repeat(5,1fr); align-items:end; position:fixed; left:0; right:0; bottom:0; z-index:38;
    height:calc(64px + env(safe-area-inset-bottom,0px)); padding:0 4px env(safe-area-inset-bottom,0px);
    background:#161616; border-top:1px solid #302718; box-shadow:0 -6px 20px rgba(0,0,0,.25); }
  #root:has(input:focus,textarea:focus,select:focus) .ct-bottom-nav{ display:none; }
  .ct-bn-item{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-height:64px !important; color:#aeb4bf; font-size:11px; font-weight:700; background:none; border:0; }
  .ct-bn-item.is-active{ color:#e2b84e; }
  .ct-bn-fab{ justify-self:center; align-self:start; margin-top:-22px; width:58px; height:58px; min-height:58px !important; border-radius:50%; background:#e2b84e; color:#111; border:4px solid #101010;
    font-size:34px; line-height:1; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 20px rgba(0,0,0,.35); transition:transform .2s; }
  .ct-bn-fab span{ margin-top:-3px; }
  .ct-bn-fab.is-open{ transform:rotate(45deg); }
  .ct-bn-backdrop{ display:block; position:fixed; inset:0; z-index:36; background:rgba(0,0,0,.55); }
  .ct-bn-sheet{ display:block; position:fixed; left:0; right:0; bottom:calc(64px + env(safe-area-inset-bottom,0px)); z-index:37;
    background:#1b1b1b; border-top:1px solid #4a3d25; border-radius:22px 22px 0 0; padding:10px 14px 36px; color:#fff; }
  .ct-bn-grip{ width:40px; height:4px; border-radius:99px; background:#4a3d25; margin:0 auto 12px; }
  .ct-bn-sheet-primary{ width:100%; display:flex; align-items:center; gap:12px; text-align:left; background:linear-gradient(135deg,#f5c12d,#d49c19); color:#111; border:2px solid #e2b84e; border-radius:16px; padding:14px 16px; min-height:68px; }
  .ct-bn-sheet-primary strong{ display:block; font-size:16px; font-weight:800; }
  .ct-bn-sheet-primary small{ display:block; font-size:12px; color:#30250b; }
  .ct-bn-sheet-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:10px; }
  .ct-bn-sheet-btn{ display:flex; align-items:center; gap:10px; min-height:56px; padding:0 14px; background:#25221b; border:1px solid #66501e; border-radius:14px; color:#fff; font-size:14px; font-weight:700; text-align:left; }
  .ct-bn-sheet-btn svg{ color:#e2b84e; flex-shrink:0; }

  /* Cartão "Hoje" no topo da dashboard (no celular substitui o painel de agendamentos) */
  .ct-today-card{ display:block; background:linear-gradient(120deg,#080808,#1f1c14); border:1px solid #6b5420; border-radius:18px; padding:14px; margin-bottom:12px; }
  .ct-today-head{ display:flex; justify-content:space-between; align-items:center; }
  .ct-today-tag{ font-size:12px; letter-spacing:.1em; color:#d6ad51; font-weight:800; }
  .ct-today-date{ font-size:12px; color:#aeb4bf; text-transform:capitalize; }
  .ct-today-count{ font-size:22px; font-weight:800; margin:4px 0 10px; color:#fff; }
  .ct-today-next{ display:flex; align-items:center; gap:12px; background:#e2b84e; color:#111; border-radius:14px; padding:12px; }
  .ct-today-time{ text-align:center; min-width:54px; }
  .ct-today-time strong{ display:block; font-size:18px; font-weight:800; }
  .ct-today-time small{ font-size:11px; font-weight:800; }
  .ct-today-info{ flex:1; min-width:0; }
  .ct-today-info strong{ display:block; font-size:15px; font-weight:800; }
  .ct-today-info span{ display:block; font-size:13px; }
  .ct-today-info em{ display:block; font-size:12px; font-style:normal; opacity:.8; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ct-today-map{ background:#111; color:#e2b84e; border-radius:10px; min-height:44px; min-width:56px; display:inline-flex; align-items:center; justify-content:center; font-size:13px; font-weight:800; }
  .ct-today-wa{ display:flex; align-items:center; justify-content:center; min-height:46px; margin-top:10px; background:#087b4b; color:#fff; border-radius:12px; font-size:14px; font-weight:800; }
  .ct-today-rest{ margin-top:10px; display:flex; flex-direction:column; gap:6px; }
  .ct-today-row{ display:flex; align-items:center; gap:10px; min-height:46px; background:#111; border:1px solid #353535; border-radius:12px; padding:0 8px 0 12px; font-size:14px; color:#fff; }
  .ct-today-row b{ color:#e2b84e; min-width:46px; }
  .ct-today-row span{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .ct-today-row a{ color:#fff; background:#087b4b; border-radius:9px; min-height:36px; display:inline-flex; align-items:center; padding:0 12px; font-size:12px; font-weight:800; }
  .ct-today-link,.ct-today-cta{ display:flex; align-items:center; justify-content:center; width:100%; min-height:44px; margin-top:8px; color:#e7b83e; font-size:13px; font-weight:800; }
  .ct-today-cta{ background:#e2b84e; color:#111; border-radius:12px; }
  .ct-today-empty{ display:flex; flex-direction:column; gap:8px; color:#cfd3da; font-size:14px; }
  body .ct-dashboard-v2 > section:nth-of-type(4) > .ct-panel:nth-child(2){ display:none; }
}
