/* Demonstração do sistema (topo do site). Cores do tema escuro do AlphaSac. */

.demo {
  --d-page: #090e11;
  --d-side: #0d1318;
  --d-card: #0f1a2e;
  --d-elev: #1e293b;
  --d-line: rgba(255, 255, 255, .06);
  --d-line2: rgba(255, 255, 255, .10);
  --d-t1: #e2e8f0;
  --d-t2: #94a3b8;
  --d-t3: #64748b;
  --d-t4: #475569;
  --d-pri: #0ea5e9;

  position: relative; z-index: 2;
  font-family: 'Inter', system-ui, sans-serif;
  border-radius: 18px; overflow: hidden; text-align: left;
  background: var(--d-page); color: var(--d-t1); font-size: 13px; line-height: 1.45;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 212, 255, .35), 0 0 60px -20px rgba(0, 212, 255, .45);
}
.demo button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
.demo svg { width: 100%; height: 100%; }

/* Barra do navegador */
.d-bar { display: flex; align-items: center; gap: 6px; padding: 11px 16px; background: #111c2b; }
.d-bar > i { width: 11px; height: 11px; border-radius: 50%; }
.d-bar > i:nth-child(1) { background: #f43f5e; }
.d-bar > i:nth-child(2) { background: #fbbf24; }
.d-bar > i:nth-child(3) { background: #14b8a6; }
.d-url { margin: 0 auto; padding: 4px 18px; border-radius: 8px; background: rgba(255, 255, 255, .06); color: var(--d-t2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; }

.d-body { display: flex; height: clamp(520px, calc(100vh - 190px), 640px); }
@media (min-width: 1600px) { .d-body { height: clamp(560px, calc(100vh - 220px), 720px); } }

/* ── Sidebar expandida (igual ao AppLayout) ── */
.d-side { width: 236px; flex: none; background: var(--d-side); border-right: 1px solid var(--d-line); display: flex; flex-direction: column; }
.d-logo { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--d-line); }
.d-logo b { font-size: 15px; letter-spacing: .3px; }
.d-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--d-line); }
.d-user__av {
  position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f, #0ea5e9); display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.d-user__av i { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid var(--d-side); box-shadow: 0 0 5px rgba(34, 197, 94, .6); }
.d-user > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.d-user small { font-size: 10px; font-weight: 600; color: var(--d-t3); letter-spacing: .4px; }
.d-user b { font-size: 14px; }
.d-user span { font-size: 11px; color: var(--d-t2); }
.d-user .d-user__t { color: var(--d-t3); display: flex; gap: 4px; align-items: center; }
.d-user__bell { position: relative; width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--d-line); display: grid; place-items: center; color: var(--d-t3); align-self: flex-start; }
.d-user__bell em { position: absolute; top: -5px; right: -5px; min-width: 16px; height: 16px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 9.5px; font-style: normal; font-weight: 700; display: grid; place-items: center; }

.d-nav { flex: 1; overflow-y: auto; padding: 6px 0; scrollbar-width: none; }
.d-nav::-webkit-scrollbar { display: none; }
.d-si {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 20px;
  color: var(--d-t2); font-size: 14px; font-weight: 500; transition: color .15s, background .15s;
}
.d-si:hover { color: var(--d-t1); background: rgba(255, 255, 255, .04); }
.d-si.is-active { margin: 0 8px; width: calc(100% - 16px); padding: 10px 12px; border-radius: 10px; background: #1d4ed8; color: #fff; }
.d-si__i { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.d-si__i .mdi { font-size: 22px; line-height: 1; }
.d-si__arr { margin-left: auto; width: 16px; height: 16px; transition: transform .2s; }
.d-si__arr.is-open { transform: rotate(180deg); }
.d-sch { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.d-sch.is-open { grid-template-rows: 1fr; }
.d-sch > div { overflow: hidden; min-height: 0; }
.d-sc { display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px 20px 7px 54px; color: var(--d-t3); font-size: 13px; font-weight: 500; transition: color .15s; }
.d-sc:hover { color: var(--d-t1); }
.d-sc .mdi { font-size: 13px; color: var(--d-t3); }
.d-sc.is-active, .d-sc.is-active .mdi { color: #38bdf8; }
.d-sc em { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 10px; background: var(--d-pri); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; text-align: center; }
.d-sdiv { height: 1px; background: rgba(255, 255, 255, .05); margin: 2px 16px; }
.d-foot { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--d-line); }
.d-foot > i { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, .7); }
.d-foot div { display: flex; flex-direction: column; }
.d-foot b { font-size: 12px; font-weight: 600; color: var(--d-t2); }
.d-foot small { font-size: 10.5px; color: var(--d-t4); }

/* Menu recolhido (só no celular) */
.d-rail { display: none; }

/* ── Área das telas ── */
.d-main { flex: 1; min-width: 0; overflow-y: auto; padding: 16px; container-type: inline-size; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .08) transparent; }
.d-screen { display: flex; flex-direction: column; gap: 14px; min-height: 100%; }
.d-screen.is-enter { animation: d-enter .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes d-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Peças comuns */
.d-av {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px;
}
.d-av .mdi { font-size: 17px; }
.d-av em { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--d-page); display: grid; place-items: center; }
.d-av em .mdi { font-size: 9px; color: #fff; }
.d-av--xl { width: 62px; height: 62px; font-size: 20px; }
.d-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; white-space: nowrap; }
.d-tag--hot { background: rgba(244, 63, 94, .18); color: #fda4af; }
.d-tag--warm { background: rgba(251, 191, 36, .18); color: #fde68a; }
.d-tag--cold { background: rgba(14, 165, 233, .18); color: #7dd3fc; }
.d-tag--ok { background: rgba(34, 197, 94, .18); color: #86efac; }
.d-lbl { display: inline-block; font-size: 10.5px; padding: 2px 8px; border-radius: 6px; background: rgba(139, 92, 246, .2); color: #c4b5fd; margin: 0 4px 2px 0; }
.d-lbl--y { background: rgba(251, 191, 36, .16); color: #fde68a; }
.d-pill { font-size: 11px; font-weight: 700; color: #38bdf8; background: rgba(14, 165, 233, .12); padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.d-search { display: flex; align-items: center; gap: 8px; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 10px; padding: 8px 12px; color: var(--d-t3); font-size: 12.5px; }
.d-search--grow { flex: 1; min-width: 180px; }
.d-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--d-line2); color: var(--d-t2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.d-chip em { font-style: normal; opacity: .7; }
.d-chip.is-active { background: rgba(14, 165, 233, .15); border-color: rgba(14, 165, 233, .4); color: #38bdf8; }
.d-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.d-card { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 14px; padding: 16px; }
.d-card--flush { padding: 0; overflow: hidden; }
.d-card--list { padding: 4px 16px; }
.d-muted { color: var(--d-t3); }
.d-sec { margin: 4px 0 -4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--d-t3); display: flex; gap: 6px; align-items: center; }
.d-sec .mdi { color: #fbbf24; }

/* Cabeçalho colorido das telas */
.d-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-radius: 16px; padding: 16px 20px; }
.d-head__l { display: flex; align-items: center; gap: 14px; }
.d-head__ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .15); display: grid; place-items: center; font-size: 24px; color: #fff; }
.d-head h3 { margin: 0; font-size: 19px; font-weight: 700; color: #fff; letter-spacing: 0; }
.d-head p { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.d-head__r { display: flex; align-items: center; gap: 8px; }
.d-hbtn { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; font-size: 18px; }
.d-hnew { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 10px; background: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.d-hsel { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 12.5px; white-space: nowrap; }

/* ── Dashboard (DashboardView) ── */
.d-dbtools { align-self: flex-end; display: flex; align-items: center; gap: 4px; background: var(--d-side); border: 1px solid var(--d-line); border-radius: 50px; padding: 5px 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, .5); }
.d-dbtools__g { display: flex; gap: 2px; }
.d-dbtools__g span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: rgba(148, 163, 184, .85); font-size: 17px; }
.d-dbtools__sep { width: 1px; height: 24px; background: rgba(255, 255, 255, .1); margin: 0 8px; }
.d-dbtools__u { display: flex; align-items: center; gap: 8px; }
.d-dbtools__av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #1e3a5f, #0ea5e9); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.d-dbtools__u b { display: block; font-size: 12.5px; line-height: 1.1; }
.d-dbtools__u small { font-size: 10.5px; color: var(--d-t3); }
.d-dbtools__u em { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 5px rgba(34, 197, 94, .6); }
.d-cmd { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 18px; border-radius: 14px; background: linear-gradient(115deg, #1a56db 0%, #1d4ed8 45%, #1e3a8a 100%); }
.d-cmd::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 78% 50%, rgba(255, 255, 255, .08) 0%, transparent 60%); }
.d-cmd > * { position: relative; }
.d-cmd__t b { display: block; font-size: 18px; color: #fff; }
.d-cmd__t small { font-size: 11.5px; color: rgba(255, 255, 255, .66); }
.d-cmd__p { display: flex; gap: 5px; flex: 1; justify-content: center; flex-wrap: wrap; }
.d-cmd__p span { padding: 5px 11px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .78); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.d-cmd__p span.is-active { background: #fff; color: #1d4ed8; border-color: #fff; font-weight: 700; }
.d-cmd__a { display: flex; align-items: center; gap: 6px; }
.d-cmd__ia { display: flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .2); color: #fff; padding: 7px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.d-cmd__ib { width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; font-size: 15px; }
.d-cmd__tm { font-size: 11.5px; color: rgba(255, 255, 255, .8); background: rgba(0, 0, 0, .2); padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.d-health { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.d-hi { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 12px; background: var(--d-card); border: 1px solid var(--d-line); border-left-width: 3px; }
.d-hi > .mdi { font-size: 21px; }
.d-hi > b { font-size: 24px; line-height: 1; }
.d-hi > b small { font-size: 14px; font-weight: 600; color: var(--d-t3); }
.d-hi span { display: flex; flex-direction: column; font-size: 12px; font-weight: 600; color: var(--d-t2); line-height: 1.25; }
.d-hi span small { font-size: 10.5px; font-weight: 400; color: var(--d-t3); }
.d-hi.is-ok { border-left-color: #22c55e; }
.d-hi.is-ok > .mdi { color: #22c55e; }
.d-hi.is-warn { border-left-color: #eab308; }
.d-hi.is-warn > .mdi { color: #eab308; }
.d-g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.d-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.d-kpi { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 14px; padding: 16px 16px 12px; transition: transform .25s, border-color .25s; }
.d-kpi:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .18); }
.d-kpi__ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.d-kpi__ico .mdi { font-size: 21px; transform: rotate(-15deg); }
.d-kpi__trend { position: absolute; top: 12px; right: 12px; height: 22px; padding: 0 7px; border-radius: 8px; display: flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; background: rgba(34, 197, 94, .15); color: #22c55e; z-index: 1; }
.d-kpi__trend.is-bad { background: rgba(239, 68, 68, .15); color: #f87171; }
.d-kpi__ghost { position: absolute; right: -8px; bottom: -8px; font-size: 104px; line-height: 1; transform: rotate(-15deg); pointer-events: none; }
.d-kpi__body { display: flex; flex-direction: column; gap: 2px; position: relative; }
.d-kpi__label { font-size: 10.5px; font-weight: 600; color: var(--d-t3); letter-spacing: .4px; }
.d-kpi__val { font-size: 28px; font-weight: 700; line-height: 1.1; }
.d-kpi__sub { font-size: 10.5px; color: var(--d-t4); }
.d-secbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 14px; padding: 12px 16px; }
.d-secbar__l { display: flex; align-items: center; gap: 12px; }
.d-secbar__l > span { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; }
.d-secbar__l b { display: block; font-size: 15.5px; }
.d-secbar__l small { font-size: 11.5px; color: var(--d-t3); }
.d-secbar__btn { display: flex; align-items: center; gap: 6px; background: #1d4ed8; color: #fff; padding: 8px 16px; border-radius: 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.d-dcard { position: relative; overflow: hidden; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 14px; padding: 16px 18px; }
.d-dcard__bg { position: absolute; right: 14px; top: 10px; font-size: 76px; line-height: 1; pointer-events: none; }
.d-card__h { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.d-card__h b { display: block; font-size: 14px; }
.d-card__h small { display: block; font-size: 11.5px; color: var(--d-t3); }
.d-card__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; flex: none; }
.d-qas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.d-qa { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.d-qa > div { display: flex; align-items: baseline; gap: 8px; }
.d-qa > div b { font-size: 27px; line-height: 1; }
.d-qa small { font-size: 11px; color: var(--d-t3); }
.d-qa > span { font-size: 12px; font-weight: 600; color: var(--d-t2); }
.d-qa > i { height: 5px; border-radius: 3px; background: rgba(148, 163, 184, .14); overflow: hidden; }
.d-qa > i em { display: block; height: 100%; border-radius: 3px; }
.d-donut { display: grid; place-items: center; }
.d-donut svg { width: 160px; height: 160px; }
.d-donut__n { fill: var(--d-t1); font-size: 15px; font-weight: 700; }
.d-donut__l { fill: var(--d-t3); font-size: 7.5px; }
.d-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 12px; font-size: 11.5px; color: var(--d-t2); }
.d-legend span { display: flex; align-items: center; gap: 6px; }
.d-legend i { width: 9px; height: 9px; border-radius: 50%; }
.d-line { width: 100%; height: auto; display: block; }
.d-line__grid line { stroke: rgba(255, 255, 255, .05); }
.d-line__ax text { fill: var(--d-t3); font-size: 10px; }

/* ── Tickets e chat interno ── */
.d-tk { display: grid; grid-template-columns: 250px 1fr 210px; gap: 0; margin: -16px; height: calc(100% + 32px); min-height: 608px; }
.d-tk--chat { grid-template-columns: 250px 1fr; }
.d-tk__list { border-right: 1px solid var(--d-line); padding: 12px 8px; overflow: hidden; background: #0b1116; }
.d-tk__tabs { display: flex; gap: 4px; margin: 0 4px 10px; }
.d-tk__tabs span { padding: 5px 10px; border-radius: 8px; color: var(--d-t2); font-size: 12px; font-weight: 600; }
.d-tk__tabs span.is-active { background: #1d4ed8; color: #fff; }
.d-tk__tabs em { font-style: normal; opacity: .75; }
.d-tk__list .d-search { margin: 0 4px 8px; }
.d-ti { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; }
.d-ti.is-active { background: rgba(14, 165, 233, .12); }
.d-ti__m { min-width: 0; flex: 1; }
.d-ti__m b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-ti__m small { display: block; font-size: 11.5px; color: var(--d-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-ti__r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.d-ti__r small { font-size: 10.5px; color: var(--d-t4); }
.d-ti__r em { min-width: 18px; height: 18px; border-radius: 9px; background: #22c55e; color: #fff; font-size: 10px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
.d-tk__chat { display: flex; flex-direction: column; min-width: 0; padding: 12px 16px; background: #0e1621 url('chat-bg.webp') repeat; }
.d-tk__ch { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--d-line); }
.d-tk__ch > div { flex: 1; min-width: 0; }
.d-tk__ch b { display: block; font-size: 13.5px; }
.d-tk__ch small { color: var(--d-t3); font-size: 11.5px; }
.d-tk__acts { display: flex; gap: 6px; }
.d-tk__acts .d-hbtn { width: 30px; height: 30px; font-size: 16px; background: var(--d-card); border: 1px solid var(--d-line); color: var(--d-t2); }
.d-msgs { display: flex; flex-direction: column; gap: 9px; padding: 14px 0; flex: 1; }
.d-b { position: relative; max-width: 72%; padding: 8px 12px 16px; border-radius: 12px; font-size: 12.5px; line-height: 1.45; }
.d-b small { position: absolute; right: 9px; bottom: 3px; font-size: 9.5px; color: rgba(255, 255, 255, .5); }
.d-b small .mdi { color: #38bdf8; }
.d-b--in { background: #1e2535; border-top-left-radius: 3px; align-self: flex-start; }
.d-b--out { background: #075e54; border-top-right-radius: 3px; align-self: flex-end; }
.d-b--bot { background: rgba(251, 191, 36, .12); border: 1px dashed rgba(251, 191, 36, .45); color: #fde68a; align-self: flex-end; }
.d-sys { align-self: center; font-size: 11px; color: var(--d-t2); background: rgba(255, 255, 255, .05); padding: 3px 12px; border-radius: 99px; }
.d-input { display: flex; align-items: center; gap: 12px; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 12px; padding: 10px 12px; color: var(--d-t3); }
.d-input .mdi { font-size: 18px; }
.d-input span { flex: 1; font-size: 12.5px; }
.d-input em { font-style: normal; color: var(--d-t4); font-size: 11px; }
.d-input__mic { width: 32px; height: 32px; border-radius: 50%; background: var(--d-pri); color: #fff; display: grid; place-items: center; font-size: 16px !important; }
.d-tk__info { border-left: 1px solid var(--d-line); padding: 22px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; background: #0b1116; }
.d-tk__info > b { margin-top: 10px; font-size: 14.5px; }
.d-tk__info > small { color: var(--d-t3); }
.d-tk__info dl { width: 100%; margin: 18px 0 0; text-align: left; }
.d-tk__info dt { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--d-t3); margin-top: 12px; }
.d-tk__info dd { margin: 3px 0 0; font-size: 12.5px; }
.d-im { display: flex; gap: 8px; align-items: flex-end; }
.d-im.is-me { justify-content: flex-end; }
.d-im .d-av { width: 28px; height: 28px; font-size: 10.5px; }
.d-im .d-b { max-width: 78%; }
.d-im__n { display: block; font-size: 11px; margin-bottom: 2px; }
.d-mention { background: rgba(14, 165, 233, .2); color: #7dd3fc; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ── Tickets (ConversationsView) ── */
.d-cvl { display: flex; margin: -16px; height: calc(100% + 32px); min-height: 608px; }
.d-cvl__left { width: 300px; flex: none; display: flex; flex-direction: column; background: var(--d-side); border-right: 1px solid var(--d-line); overflow: hidden; }
.d-cvl__top { display: flex; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--d-line); }
.d-cvl__top span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 4px; border-radius: 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; background: var(--tc); border-bottom: 2px solid var(--td); color: rgba(255, 255, 255, .5); opacity: .45; }
.d-cvl__top span.is-active { color: #fff; opacity: 1; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.d-cvl__top .mdi { font-size: 13px; }
.d-cvl__f { display: flex; align-items: center; gap: 1px; padding: 5px 8px; border-bottom: 1px solid var(--d-line); }
.d-fb { position: relative; width: 27px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--d-t3); font-size: 16px; flex: none; }
.d-fb em { position: absolute; top: 0; right: -3px; font-size: 8px; font-style: normal; font-weight: 700; background: var(--d-elev); color: var(--d-t2); border-radius: 6px; padding: 0 3px; }
.d-uc { display: flex; align-items: center; gap: 3px; background: rgba(255, 255, 255, .05); border: 1px solid var(--d-line); border-radius: 8px; padding: 3px 5px; color: var(--d-t3); font-size: 13px; margin: 0 1px; }
.d-uc em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--d-t3); }
.d-uc em.is-on { color: #fff; background: #ef4444; border-radius: 6px; padding: 0 4px; }
.d-cvl__sub { display: flex; border-bottom: 1px solid var(--d-line); }
.d-cvl__sub span { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px 0; color: var(--d-t4); font-size: 9px; font-weight: 700; letter-spacing: .03em; }
.d-cvl__sub .mdi { font-size: 16px; }
.d-cvl__sub em { position: absolute; top: 4px; right: 12px; min-width: 15px; height: 15px; border-radius: 8px; background: #ef4444; color: #fff; font-size: 8.5px; font-style: normal; display: grid; place-items: center; padding: 0 3px; }
.d-cvl__sub b { display: block; width: 100%; height: 2px; margin-top: 5px; border-radius: 2px 2px 0 0; }
.d-cvl__sub span.is-active { color: var(--c); }
.d-cvl__sub span.is-active b { background: var(--c); }
.d-cvl__list { flex: 1; overflow: hidden; }
.d-cv { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-bottom: 1px solid var(--d-line); }
.d-cv.is-active { background: rgba(124, 58, 237, .1); border-left: 2px solid #7c3aed; padding-left: 10px; }
.d-cv__av { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 17px; font-weight: 700; }
.d-cv__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.d-cv__r1 { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.d-cv__r1 b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-tb { font-size: 9.5px; font-weight: 700; border-radius: 6px; padding: 2px 6px; flex: none; }
.d-tb--new { background: rgba(34, 197, 94, .15); color: #4ade80; }
.d-tb--mid { background: rgba(234, 179, 8, .15); color: #fbbf24; }
.d-tb--old { background: rgba(249, 115, 22, .15); color: #fb923c; }
.d-cv__r2 { display: flex; align-items: center; gap: 3px; font-size: 13px; }
.d-cv__tk { font-size: 9.5px; font-weight: 700; color: #a78bfa; background: rgba(124, 58, 237, .12); border-radius: 4px; padding: 1px 5px; }
.d-cv__lead { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.d-cv__nolbl { color: #334155; }
.d-cv__r2 em { margin-left: auto; min-width: 19px; height: 19px; border-radius: 10px; background: #7c3aed; color: #fff; font-size: 9.5px; font-weight: 700; font-style: normal; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 2px 6px rgba(124, 58, 237, .4); }
.d-cv__pv { font-size: 11px; color: var(--d-t4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-cv__pv .mdi { color: #7c3aed; opacity: .7; margin-right: 3px; }
.d-cv__meta { display: flex; gap: 3px; overflow: hidden; }
.d-cv__meta span { display: flex; align-items: center; gap: 3px; font-size: 9.5px; color: var(--d-t3); background: var(--d-elev); border: 1px solid var(--d-line); border-radius: 5px; padding: 1px 5px; white-space: nowrap; flex: none; }
.d-cv__meta .d-cv__ag { color: #818cf8; border-color: rgba(129, 140, 248, .2); background: rgba(129, 140, 248, .07); }
.d-cv__ch { width: 26px; height: 26px; flex: none; align-self: flex-start; border-radius: 8px; background: var(--d-elev); border: 1px solid var(--d-line2); display: grid; place-items: center; font-size: 15px; }
.d-cvl__conn { display: flex; gap: 4px; padding: 8px 10px; border-top: 1px solid rgba(255, 255, 255, .07); }
.d-cvl__conn span { position: relative; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1px solid var(--d-line2); display: grid; place-items: center; font-size: 16px; }
.d-cvl__conn em { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; border: 2px solid var(--d-side); }
.d-cvl__right { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.d-ch { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--d-side); border-bottom: 1px solid var(--d-line); min-height: 60px; }
.d-ch__av { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #f43f5e; display: grid; place-items: center; font-size: 16px; font-weight: 700; box-shadow: 0 0 0 2px rgba(124, 58, 237, .2); }
.d-ch__info { flex: 1; min-width: 0; }
.d-ch__row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.d-ch__row b { font-size: 13.5px; }
.d-ch__tk { font-size: 9.5px; font-weight: 700; color: #a78bfa; background: rgba(124, 58, 237, .15); border: 1px solid rgba(124, 58, 237, .2); border-radius: 5px; padding: 1px 7px; }
.d-ch__ad { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; color: #60a5fa; background: rgba(37, 99, 235, .14); }
.d-ch__win { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; color: #4ade80; background: rgba(34, 197, 94, .12); }
.d-ch__sub { display: flex; font-size: 11px; color: var(--d-t3); margin-top: 2px; }
.d-ch__prot { display: flex; align-items: center; gap: 3px; color: #818cf8; font-weight: 600; font-size: 10.5px; }
.d-ch__acts { display: flex; gap: 5px; }
.d-ch__acts span { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--d-line); background: rgba(255, 255, 255, .04); display: grid; place-items: center; font-size: 16px; }
.d-chat { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: #0e1621 url('chat-bg.webp') repeat; overflow: hidden; }
.d-mr { display: flex; align-items: flex-end; gap: 8px; max-width: 70%; }
.d-mr--in { align-self: flex-start; }
.d-mr--out, .d-mr--bot { align-self: flex-end; flex-direction: row-reverse; }
.d-mr--sys { align-self: center; opacity: .65; max-width: none; }
.d-mr__av { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.d-mr__av--bot { background: rgba(22, 78, 99, .8); color: #22d3ee; font-size: 16px; }
.d-mr__col { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.d-mr--out .d-mr__col, .d-mr--bot .d-mr__col { align-items: flex-end; }
.d-mr__n { font-size: 10.5px; font-weight: 600; color: var(--d-t2); padding: 0 6px; }
.d-mb { display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; background: var(--d-card); border: 1px solid var(--d-line); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); font-size: 12.5px; line-height: 1.55; }
.d-mb--in { border-left: 3px solid #6366f1; border-radius: 4px 12px 12px 12px; }
.d-mb--out { border-right: 3px solid #6366f1; border-radius: 12px 4px 12px 12px; }
.d-mb--bot { border-right: 3px solid #22d3ee; border-radius: 12px 4px 12px 12px; }
.d-mb--sys { background: rgba(255, 255, 255, .05); border-radius: 8px; padding: 4px 12px; font-size: 11.5px; }
.d-mb__m { align-self: flex-end; font-size: 9.5px; color: rgba(255, 255, 255, .4); }
.d-mb__m .mdi { color: #38bdf8; font-size: 12px; }
.d-ibar { display: flex; align-items: center; gap: 2px; padding: 10px 14px 12px; background: var(--d-page); }
.d-ib { width: 30px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; color: var(--d-t4); font-size: 19px; }
.d-ib--gif { font-size: 9.5px; font-weight: 800; }
.d-ib--send { background: #6366f1; color: #fff; font-size: 16px; margin-left: 4px; }
.d-ibar__in { flex: 1; min-width: 0; background: var(--d-card); border: 1px solid var(--d-line2); border-radius: 14px; padding: 9px 14px; color: var(--d-t3); font-size: 12.5px; white-space: nowrap; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.d-ibar__in em { font-style: normal; color: var(--d-t4); font-size: 11px; }

/* ── Painel de Atendimentos ── */
.d-pa__k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.d-pa__k .d-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; }
.d-pa__k small { font-size: 11.5px; color: var(--d-t3); display: flex; gap: 5px; align-items: center; }
.d-pa__k b { font-size: 26px; line-height: 1.15; }
.d-pa__k span { font-size: 11px; color: var(--d-t4); }
.d-pa__gh { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--d-line); background: rgba(255, 255, 255, .02); }
.d-pa__gh b { font-size: 13px; }
.d-pa__gh em { font-style: normal; font-size: 11px; font-weight: 700; background: var(--d-elev); color: var(--d-t2); border-radius: 20px; padding: 1px 8px; }
.d-pa__gh .mdi { margin-left: auto; color: var(--d-t3); }
.d-pa__row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--d-line); }
.d-pa__row:last-child { border-bottom: 0; }
.d-pa__av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.d-pa__m { flex: 1; min-width: 0; }
.d-pa__m b { display: block; font-size: 12.5px; }
.d-pa__m small { display: block; font-size: 11px; color: var(--d-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-pa__st { font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.d-pa__t { font-size: 11px; font-weight: 700; width: 48px; text-align: right; }

/* ── Notas ── */
.d-seg2 { display: flex; background: rgba(255, 255, 255, .12); border-radius: 10px; padding: 3px; }
.d-seg2 span { width: 32px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: rgba(255, 255, 255, .7); font-size: 17px; }
.d-seg2 span.is-active { background: #fff; color: #1565c0; }
.d-nts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; padding-top: 6px; }
.d-nt { position: relative; color: #3a3520; border-radius: 10px; padding: 16px 14px 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.d-nt__tape { position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(-2deg); width: 64px; height: 15px; background: rgba(0, 0, 0, .12); border-radius: 2px; }
.d-nt p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; }
.d-nt__i { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.d-nt__c { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: rgba(0, 0, 0, .06); color: #5b5436; }
.d-nt__c--tk { color: #6d28d9; }
.d-nt__m { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed rgba(0, 0, 0, .15); font-size: 10.5px; color: #6b6440; }

/* ── Mensagens rápidas ── */
.d-qr__tabs { display: flex; border-bottom: 1px solid var(--d-line); }
.d-qr__tabs span { position: relative; display: flex; align-items: center; gap: 7px; padding: 10px 14px; color: var(--d-t3); font-size: 11.5px; font-weight: 700; letter-spacing: .05em; }
.d-qr__tabs span.is-active { color: #fff; }
.d-qr__tabs span.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #eab308; border-radius: 2px 2px 0 0; }
.d-qr__add { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: #d97706; color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.d-qr__sc { display: inline-flex; align-items: center; gap: 1px; padding: 2px 9px; border-radius: 6px; background: rgba(234, 179, 8, .12); color: #eab308; border: 1px solid rgba(234, 179, 8, .25); font-size: 11.5px; font-weight: 700; font-family: ui-monospace, monospace; }
.d-qr__tx { white-space: normal !important; color: var(--d-t2); max-width: 260px; }
.d-table .d-hbtn { width: 28px; height: 28px; font-size: 14px; background: var(--d-elev); color: var(--d-t2); }

/* ── Storage ── */
.d-st__meter { min-width: 220px; display: flex; flex-direction: column; gap: 5px; }
.d-st__meter > div { display: flex; align-items: baseline; gap: 6px; color: #fff; }
.d-st__meter b { font-size: 17px; }
.d-st__meter small { font-size: 11px; color: rgba(255, 255, 255, .75); }
.d-st__meter > i { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.d-st__meter > i em { display: block; height: 100%; background: #fff; border-radius: 4px; }
.d-st__crumb { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 9px; background: rgba(14, 165, 233, .14); color: #38bdf8; font-size: 12.5px; font-weight: 600; }
.d-st { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.d-st__c { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 12px; border-radius: 12px; background: var(--d-elev); border: 1px solid var(--d-line2); text-align: center; min-width: 0; }
.d-st__c b { width: 100%; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-st__c small { font-size: 10.5px; color: var(--d-t3); }
.d-st__f { font-size: 44px; color: #38bdf8; line-height: 1; }
.d-st__f.is-priv { color: #fbbf24; }

/* ── Contatos ── */
.d-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.d-table th { text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--d-t3); padding: 11px 14px; border-bottom: 1px solid var(--d-line); background: rgba(255, 255, 255, .02); }
.d-table td { padding: 9px 14px; border-bottom: 1px solid var(--d-line); white-space: nowrap; }
.d-table tr:last-child td { border-bottom: 0; }
.d-cell { display: flex; align-items: center; gap: 10px; }
.d-cell .d-av { width: 30px; height: 30px; font-size: 11px; }
.d-chs .mdi { font-size: 17px; margin-right: 4px; }

/* ── Kanban ── */
.d-kanban { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.d-kcol { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 10px; }
.d-kcol__h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 3px solid; border-radius: 10px 10px 0 0; border-bottom: 1px solid var(--d-line); }
.d-kcol__h > i { width: 9px; height: 9px; border-radius: 50%; }
.d-kcol__h b { flex: 1; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-kcol__h em { background: var(--d-elev); color: var(--d-t2); border-radius: 20px; font-size: 11px; font-weight: 700; font-style: normal; padding: 1px 8px; }
.d-kcol__sum { padding: 6px 12px 0; font-size: 11.5px; font-weight: 700; color: #4ade80; }
.d-kcol__b { padding: 8px; display: grid; gap: 8px; }
.d-kc { background: var(--d-elev); border-radius: 9px; padding: 10px; border: 1px solid var(--d-line); }
.d-kc__t { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.d-kc__t b { font-size: 12.5px; }
.d-kc > small { display: block; font-size: 11px; color: var(--d-t3); margin: 2px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-kc__f { display: flex; justify-content: space-between; align-items: center; }
.d-kc__v { font-size: 12px; font-weight: 700; }
.d-kc__ia { display: inline-flex; gap: 4px; align-items: center; margin-top: 8px; font-size: 10.5px; color: #fde68a; background: rgba(251, 191, 36, .1); padding: 2px 7px; border-radius: 6px; }

/* ── Barra de navegação de período (Agenda e Posts) ── */
.d-agbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-agbar__nav { display: flex; align-items: center; gap: 8px; }
.d-agbar__nav b { font-size: 14px; margin-left: 4px; }
.d-nb { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--d-line2); background: var(--d-card); display: grid; place-items: center; font-size: 17px; }
.d-nb--txt { width: auto; padding: 0 12px; font-size: 12.5px; font-weight: 600; }
.d-seg { display: flex; background: var(--d-card); border: 1px solid var(--d-line2); border-radius: 10px; padding: 3px; }
.d-seg span { padding: 5px 12px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--d-t2); }
.d-seg span.is-active { background: #075985; color: #fff; }

/* bolinha dos submenus sem ícone (sb-child-dot) */
.d-sc__dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; margin: 0 4px; }

/* ── Agenda: mês (AgendaView) ── */
.d-seg span.is-active { background: var(--d-pri); color: #fff; }
.d-month { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 14px; overflow: hidden; }
.d-month__h { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--d-elev); }
.d-month__h span { padding: 7px; text-align: center; font-size: 10.5px; font-weight: 700; color: var(--d-t3); text-transform: uppercase; }
.d-month__g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(84px, 1fr); }
.d-mc { border-top: 1px solid var(--d-line); border-left: 1px solid var(--d-line); padding: 4px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.d-mc:nth-child(7n+1) { border-left: 0; }
.d-mc.is-other { opacity: .4; }
.d-mc__n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: var(--d-t2); }
.d-mc.is-today .d-mc__n { background: var(--d-pri); color: #fff; }
.d-mc__chip { color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-mc__more { font-size: 10px; color: var(--d-t3); padding-left: 4px; }

/* ── Status WhatsApp ── */
.d-wss { display: flex; align-items: center; gap: 14px; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 12px; padding: 12px 14px; }
.d-wss.is-dim { opacity: .6; }
.d-wss__t { width: 42px; height: 42px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 21px; }
.d-wss__t--text { background: rgba(99, 102, 241, .12); color: #818cf8; }
.d-wss__t--image { background: rgba(14, 165, 233, .12); color: #38bdf8; }
.d-wss__t--video { background: rgba(239, 68, 68, .12); color: #f87171; }
.d-wss__i { flex: 1; min-width: 0; }
.d-wss__ch { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--d-t2); font-weight: 600; }
.d-wss__ch .mdi { color: #25d366; font-size: 14px; }
.d-wss__i p { margin: 2px 0; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-wss__i small { font-size: 11px; color: var(--d-t3); }
.d-wss__r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.d-wss__r > div { display: flex; gap: 4px; }
.d-wss__r .d-hbtn { width: 28px; height: 28px; font-size: 15px; background: var(--d-elev); color: var(--d-t2); }
.d-wss__b { font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.d-wss__b--scheduled { background: rgba(99, 102, 241, .15); color: #a5b4fc; }
.d-wss__b--sent { background: rgba(34, 197, 94, .15); color: #4ade80; }

/* ── Posts do Instagram ── */
.d-seg--ig span.is-active { background: #c026a3; }
.d-igw { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; flex: 1; }
.d-wcol { background: var(--d-card); border: 1px solid var(--d-line); border-radius: 10px; display: flex; flex-direction: column; min-width: 0; }
.d-wcol__h { display: flex; flex-direction: column; align-items: center; padding: 7px 0; background: var(--d-elev); border-radius: 10px 10px 0 0; }
.d-wcol__h small { font-size: 10px; font-weight: 700; color: var(--d-t3); text-transform: uppercase; }
.d-wcol__h b { font-size: 16px; }
.d-wcol__h.is-today { background: rgba(14, 165, 233, .15); }
.d-wcol__b { padding: 6px; display: grid; gap: 6px; align-content: start; min-height: 300px; }
.d-wcol__vazio { text-align: center; color: var(--d-t4); padding-top: 16px; }
.d-igc { background: var(--d-elev); border-radius: 8px; overflow: hidden; border: 1px solid var(--d-line); }
.d-igc__th { position: relative; aspect-ratio: 4 / 5; display: grid; place-items: center; color: rgba(255, 255, 255, .85); font-size: 26px; }
.d-igc__th span { position: absolute; left: 5px; top: 5px; font-size: 9px; font-weight: 700; background: rgba(0, 0, 0, .45); padding: 1px 6px; border-radius: 6px; }
.d-igc__i { padding: 6px; }
.d-igc__i > div { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.d-igc__i b { font-size: 11px; }
.d-igc__i p { margin: 3px 0 0; font-size: 10px; color: var(--d-t3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d-igc__st { font-size: 8.5px; font-weight: 700; padding: 1px 5px; border-radius: 99px; }
.d-igc__st--sch { background: rgba(99, 102, 241, .18); color: #a5b4fc; }
.d-igc__st--pub { background: rgba(34, 197, 94, .18); color: #4ade80; }

/* ── Mensagens agendadas ── */
.d-sms__st { font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; }
.d-sms__st--pending { color: #d97706; background: rgba(245, 158, 11, .15); }
.d-sms__st--sent { color: #16a34a; background: rgba(34, 197, 94, .15); }
.d-sms__st--cancelled { color: var(--d-t3); background: rgba(148, 163, 184, .15); }
.d-sms__ty { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--d-t3); }
.d-sms__ty.is-rec { color: #8b5cf6; }
.d-sms__sub { display: block; font-size: 10.5px; color: var(--d-t3); }
.d-sms__ch { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; }

/* ── Campanhas (CampaignsView) ── */
.d-cpks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.d-cpk { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; color: #fff; min-width: 0; }
.d-cpk > .mdi { font-size: 26px; opacity: .9; }
.d-cpk b { display: block; font-size: 21px; line-height: 1.1; }
.d-cpk span { display: block; font-size: 11px; opacity: .85; margin-top: 2px; }
.d-cps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 9px 14px; border-radius: 10px; background: var(--d-card); border: 1px solid var(--d-line2); font-size: 12px; color: var(--d-t2); }
.d-cps b { color: var(--d-t1); }
.d-cps small { color: var(--d-t3); font-size: 10.5px; }
.d-cps__res { color: #fbbf24; }
.d-cps__t { font-size: 10.5px; color: var(--d-t3); }
.d-cps__buy { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 7px; border: 1px solid #a855f7; background: rgba(168, 85, 247, .12); color: #c084fc; font-size: 11.5px; }
.d-cpc { padding: 14px 16px; border-radius: 14px; background: var(--d-card); border: 1px solid var(--d-line2); }
.d-cpc--list { padding: 14px 0 0; }
.d-cpc__t { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--d-t3); margin-bottom: 10px; }
.d-cpst { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.d-cpst > div { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--d-line2); background: var(--d-elev); min-width: 0; }
.d-cpst .mdi { font-size: 18px; }
.d-cpst b { font-size: 17px; }
.d-cpst span { font-size: 11px; color: var(--d-t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-cpm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.d-cpm > div { padding: 10px 12px; border-radius: 10px; background: var(--d-elev); border: 1px solid var(--d-line); }
.d-cpm b { display: block; font-size: 12.5px; font-weight: 600; color: #38bdf8; margin-bottom: 6px; }
.d-cpm p { display: flex; justify-content: space-between; margin: 0; padding: 2px 0; font-size: 11.5px; color: var(--d-t3); }
.d-cpm em { font-style: normal; font-weight: 700; color: var(--d-t1); }
.d-cpl__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 0 16px 12px; }
.d-cpl__h .d-cpc__t { margin-bottom: 2px; }
.d-cpl__h small { font-size: 11.5px; color: var(--d-t3); }
.d-cpl__a { display: flex; gap: 6px; }
.d-cpl__add { display: inline-flex; align-items: center; gap: 5px; padding: 0 14px; height: 32px; border-radius: 8px; background: #2563eb; color: #fff; font-size: 12.5px; font-weight: 600; }
.d-cpl__w { overflow-x: auto; border-top: 1px solid var(--d-line); }
.d-table .d-n { text-align: right; }
.d-cpb { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.d-cp-fail { color: #f87171; }
.d-cp-reply { color: #34d399; font-weight: 700; }
.d-cp-reply small { color: var(--d-t3); font-weight: 400; }
.d-cp-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--d-elev); color: var(--d-t2); font-size: 15px; margin-left: 4px; }
.d-table--cp td { padding: 9px 12px; }
.d-table--cp th { padding: 10px 12px; }

/* ── Campanhas Externas ── */
.d-ec__orf { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--d-card); border: 1px solid var(--d-line2); }
.d-ec__orf > .mdi { font-size: 22px; color: #fbbf24; }
.d-ec__orf b { font-size: 13px; }
.d-ec__orf p { margin: 2px 0 8px; font-size: 12px; color: var(--d-t3); }
.d-ec__orf > div > div { display: flex; flex-wrap: wrap; gap: 6px; }
.d-ec__o { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--d-line2); background: var(--d-elev); color: var(--d-t2); font-size: 11.5px; }
.d-ec__o em { font-style: normal; font-weight: 700; color: #fbbf24; }
.d-ec__o .mdi { color: #14b8a6; }
.d-ec__tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--d-line2); }
.d-ec__tabs span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-bottom: 2px solid transparent; color: var(--d-t3); font-size: 12.5px; font-weight: 600; }
.d-ec__tabs span.is-active { color: #14b8a6; border-bottom-color: #14b8a6; }
.d-ec__tabs em { font-style: normal; min-width: 20px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; background: var(--d-elev); color: var(--d-t3); text-align: center; }
.d-ec__or { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.d-ec__ms { display: flex; flex-wrap: wrap; gap: 4px; }
.d-ec__m { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; background: var(--d-elev); color: var(--d-t3); border: 1px solid var(--d-line2); }
.d-ec__m.is-auto { color: #22c55e; border-color: color-mix(in srgb, #22c55e 35%, transparent); background: color-mix(in srgb, #22c55e 14%, transparent); }

/* ── Relatórios (ReportsHubView + SettingsCard) ── */
.d-rh { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 14px; }
.d-rh__t { display: flex; align-items: center; gap: 12px; }
.d-rh__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 23px; color: #38bdf8; background: rgba(14, 165, 233, .12); border: 1px solid rgba(14, 165, 233, .22); }
.d-rh__t b { display: block; font-size: 17px; }
.d-rh__t small { font-size: 12px; color: var(--d-t3); }
.d-rh__s { display: flex; align-items: center; gap: 8px; width: 300px; max-width: 100%; height: 38px; padding: 0 12px; background: var(--d-page); border: 1px solid var(--d-line); border-radius: 10px; color: var(--d-t3); font-size: 12.5px; }
.d-rh__s span { flex: 1; }
.d-rh__s kbd { font: inherit; font-size: 11px; padding: 0 6px; border: 1px solid var(--d-line2); border-radius: 5px; color: var(--d-t4); }
.d-rsec { display: flex; align-items: center; gap: 8px; margin: 2px 0 -4px; font-size: 10.5px; font-weight: 700; color: var(--d-t4); text-transform: uppercase; letter-spacing: .06em; }
.d-rsec .mdi { font-size: 15px; }
.d-rsec em { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: 0; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 20px; padding: 0 7px; }
.d-rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.d-rc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--d-card); border: 1px solid var(--d-line); border-radius: 12px; transition: border-color .18s, transform .18s; }
.d-rc:hover { border-color: var(--accent); transform: translateY(-2px); }
.d-rc__i { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 19px; }
.d-rc__b { flex: 1; min-width: 0; }
.d-rc__b b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 1px; }
.d-rc__b small { display: block; font-size: 11px; color: var(--d-t3); line-height: 1.35; }
.d-rc__star { font-size: 16px; color: var(--d-t4); opacity: 0; transition: opacity .16s; }
.d-rc:hover .d-rc__star, .d-rc__star.is-on { opacity: 1; }
.d-rc__star.is-on { color: #f59e0b; }
.d-rc__arr { font-size: 19px; color: var(--d-t3); transition: color .18s, transform .18s; }
.d-rc:hover .d-rc__arr { color: var(--accent); transform: translateX(3px); }

/* ── Cadastro de Templates (WhatsAppTemplatesView) ── */
.d-wt { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: start; }
.d-wt__col { display: grid; gap: 12px; }
.d-wt__card { background: var(--d-card); border: 1px solid var(--d-line2); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; }
.d-wt__ch { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.d-wt__ch > span { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; color: #25d366; background: rgba(37, 211, 102, .12); }
.d-wt__ch b { display: block; font-size: 13.5px; }
.d-wt__ch small { font-size: 11px; color: var(--d-t3); }
.d-wt__card label { font-size: 11.5px; font-weight: 600; color: var(--d-t2); margin: 8px 0 5px; }
.d-wt__card label em { font-style: normal; font-weight: 400; color: var(--d-t4); }
.d-wt__in { display: flex; justify-content: space-between; align-items: center; background: var(--d-elev); border: 1px solid var(--d-line2); border-radius: 9px; padding: 8px 11px; font-size: 12.5px; }
.d-wt__ta { display: block; line-height: 1.5; min-height: 70px; }
.d-wt__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.d-wt__row > div { display: flex; flex-direction: column; }
.d-wt__type { display: flex; gap: 6px; flex-wrap: wrap; }
.d-wt__type span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--d-line2); font-size: 11.5px; color: var(--d-t2); }
.d-wt__type span.is-active { background: rgba(37, 211, 102, .12); border-color: rgba(37, 211, 102, .45); color: #4ade80; }
.d-wt__send { align-self: flex-end; margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 9px; background: #16a34a; color: #fff; font-size: 12.5px; font-weight: 700; }
.d-wt__prev { padding: 14px; border-radius: 10px; background: #0b141a url('chat-bg.webp') repeat; }
.d-wt__prev > div { position: relative; max-width: 88%; padding: 8px 10px 16px; border-radius: 8px 8px 8px 2px; background: #202c33; font-size: 12px; line-height: 1.5; }
.d-wt__prev small { position: absolute; right: 8px; bottom: 3px; font-size: 9.5px; color: rgba(255, 255, 255, .45); }
.d-wt__tpl { padding: 10px 0; border-top: 1px solid var(--d-line); }
.d-wt__tpl:first-of-type { border-top: 0; padding-top: 0; }
.d-wt__th { display: flex; align-items: center; gap: 7px; }
.d-wt__th b { flex: 1; font-size: 12.5px; font-family: ui-monospace, monospace; }
.d-wt__dot { width: 8px; height: 8px; border-radius: 50%; }
.d-wt__dot--approved { background: #22c55e; }
.d-wt__dot--pending { background: #f59e0b; }
.d-wt__st { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.d-wt__st--approved { background: rgba(34, 197, 94, .15); color: #4ade80; }
.d-wt__st--pending { background: rgba(245, 158, 11, .15); color: #fbbf24; }
.d-wt__tpl p { margin: 5px 0 6px; font-size: 11.5px; color: var(--d-t2); }
.d-wt__tags { display: flex; gap: 5px; }
.d-wt__tags span { font-size: 10px; font-weight: 600; padding: 1px 8px; border-radius: 6px; background: rgba(99, 102, 241, .15); color: #a5b4fc; }
.d-wt__tags span.is-soft { background: var(--d-elev); color: var(--d-t3); }

/* ── Telas estreitas (container query: vale pela largura da área da tela) ── */
@container (max-width: 820px) {
  .d-cpks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d-cpst { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d-cvl__left { width: 260px; }
  .d-ch__acts span:nth-child(n+5) { display: none; }
  .d-pa__k { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .d-tk { grid-template-columns: 230px 1fr; }
  .d-tk__info { display: none; }
  .d-g4 { grid-template-columns: repeat(2, 1fr); }
  .d-health { grid-template-columns: repeat(2, 1fr); }
  .d-g2 { grid-template-columns: 1fr; }
  .d-igw { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .d-igw .d-wcol:nth-child(n+5) { display: none; }
  .d-mc__chip { font-size: 9px; padding: 1px 4px; }
  .d-table--sms th:nth-child(2), .d-table--sms td:nth-child(2) { display: none; }
  .d-dbtools__g { display: none; }
  .d-dbtools__sep { display: none; }
  .d-cmd__p span:nth-child(n+4) { display: none; }
  .d-qas { grid-template-columns: 1fr; gap: 14px; }
}
@container (max-width: 560px) {
  .d-cpks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-cpk { padding: 10px; gap: 8px; }
  .d-cpk > .mdi { font-size: 20px; }
  .d-cpk b { font-size: 17px; }
  .d-cpst { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-cpm { grid-template-columns: 1fr; }
  .d-cps__t, .d-cps__buy { display: none; }
  .d-table--ec th:nth-child(n+3):not(:nth-child(5)), .d-table--ec td:nth-child(n+3):not(:nth-child(5)) { display: none; }
  .d-month__g { grid-auto-rows: minmax(52px, 1fr); }
  .d-month__h span { padding: 6px 0; font-size: 9px; letter-spacing: -.02em; }
  .d-mc__chip { font-size: 0; width: 7px; height: 7px; padding: 0; border-radius: 50%; display: inline-block; }
  .d-mc { flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 2px; }
  .d-mc__n { width: 100%; }
  .d-mc__more { display: none; }
  .d-igw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-igw .d-wcol:nth-child(n+3) { display: none; }
  .d-wss__r > div { display: none; }
  .d-table--sms th:nth-child(n+5), .d-table--sms td:nth-child(n+5), .d-table--sms th:nth-child(3), .d-table--sms td:nth-child(3) { display: none; }
  .d-cvl__left { display: none; }
  .d-ch__acts, .d-ch__win, .d-ch__sub { display: none; }
  .d-mr { max-width: 90%; }
  .d-ib:nth-child(n+3):not(.d-ib--send) { display: none; }
  .d-pa__k { grid-template-columns: 1fr; }
  .d-pa__k .d-card { flex-direction: row; align-items: baseline; gap: 10px; }
  .d-st__meter { display: none; }
  .d-st { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-qr__tabs span { padding: 10px 8px; font-size: 10.5px; }
  .d-table--qr th:nth-child(n+5), .d-table--qr td:nth-child(n+5), .d-table--qr th:nth-child(3), .d-table--qr td:nth-child(3) { display: none; }
  .d-tk, .d-tk--chat { grid-template-columns: 1fr; }
  .d-tk__list { display: none; }
  .d-tk__acts, .d-pill { display: none; }
  .d-b { max-width: 85%; }
  .d-head { padding: 12px 14px; }
  .d-head__ico { width: 38px; height: 38px; font-size: 20px; }
  .d-head h3 { font-size: 16px; }
  .d-head__r .d-hbtn, .d-head__r .d-hsel { display: none; }
  .d-hnew { padding: 7px 10px; font-size: 12px; }
  .d-kpi__val { font-size: 22px; }
  .d-kpi__ghost { font-size: 70px; }
  .d-cmd__p, .d-cmd__ib, .d-cmd__tm { display: none; }
  .d-health, .d-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-hi { padding: 10px; gap: 8px; }
  .d-hi span small { display: none; }
  .d-hi > b { font-size: 20px; }
  .d-kpi__label { font-size: 9.5px; }
  .d-secbar__btn { display: none; }
  .d-wt, .d-wt__row { grid-template-columns: 1fr; }
  .d-rgrid { grid-template-columns: 1fr; }
  .d-rh__s { width: 100%; }
  .d-kanban { grid-template-columns: repeat(4, 200px); }
  .d-table--ct th:nth-child(2), .d-table--ct td:nth-child(2), .d-table--ct th:nth-child(5), .d-table--ct td:nth-child(5) { display: none; }
  .d-agbar__nav b { font-size: 12.5px; }
}

/* ── Balões que saem de trás da tela ── */
.demo-floats { position: absolute; inset: 0; pointer-events: none; }
.df { z-index: 1; opacity: 0; animation: df-out .6s cubic-bezier(.2, .9, .3, 1.2) forwards; }
.df .ico .mdi { font-size: 20px; line-height: 1; }
.df--l  { left: 6%;  bottom: -50px; --dy: -70px; }
.df--r  { right: 4%; top: -52px;    --dy: 70px; }
.df--r2 { right: 6%; bottom: -50px; --dy: -70px; }
@keyframes df-out {
  0%   { opacity: 0; transform: translateY(var(--dy)) scale(.85); z-index: 1; }
  40%  { opacity: 1; }
  100% { opacity: 1; transform: none; z-index: 3; }
}

.demo-hint {
  position: absolute; left: 4%; top: -50px; z-index: 4;
  margin: 0; padding: 7px 16px; border-radius: 999px; white-space: nowrap;
  background: var(--cyan); color: #0a0f1c; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 10px 28px -8px rgba(0, 212, 255, .9);
  animation: hint-bob 2s ease-in-out infinite; transition: opacity .3s;
}
.demo-hint.is-hidden { opacity: 0; }
@keyframes hint-bob { 50% { transform: translateY(-4px); } }

/* ── Celular e tablet ── */
@media (max-width: 900px) {
  .d-side { display: none; }
  .d-rail {
    display: flex; flex-direction: column; align-items: center; gap: 6px; width: 58px; flex: none;
    padding: 10px 0; background: var(--d-side); border-right: 1px solid var(--d-line); overflow-y: auto;
  }
  .d-ri { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--d-t2); }
  .d-ri .mdi { font-size: 21px; }
  .d-ri svg { width: 21px; height: 21px; }
  .d-ri.is-active { background: #1d4ed8; color: #fff; }
}
@media (max-width: 760px) {
  .d-body { height: 560px; }
  .demo-floats { position: static; display: grid; gap: 10px; margin-top: 16px; }
  .df { position: static; animation-name: df-up; }
  .df .ico { width: 34px; height: 34px; }
  @keyframes df-up { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
  .demo-hint { font-size: 12.5px; left: 50%; top: -44px; transform: translateX(-50%); animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .df, .d-screen.is-enter, .demo-hint { animation: none; opacity: 1; }
}
