/* Modais do ERP com componentes próprios (cancelamento de endereço, troca de plano/vencimento) - 20/10/2026.
   Tudo dentro de .cx; os componentes (cx-data, cx-moeda, filtro cxBrl) ficam no fim do app/app.js. */
.cx { --cx-texto: #1f2937; --cx-suave: #6b7280; --cx-borda: #e5e7eb; --cx-fundo: #f8fafc; --cx-perigo: #dc2626; --cx-ok: #16a34a; --cx-foco: #2563eb;
      color: var(--cx-texto); font-size: 14px; }
.cx * { box-sizing: border-box; }
.cx .material-icons { font-size: 20px; line-height: 1; vertical-align: middle; }

/* topo */
.cx-topo { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: linear-gradient(135deg, #b91c1c, #ef4444); color: #fff; border-radius: 6px 6px 0 0; }
.cx-topo-icone { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; flex: none; }
.cx-topo-icone .material-icons { font-size: 26px; }
.cx-topo-txt { flex: 1; min-width: 0; }
.cx-topo-txt h4 { margin: 0; font-size: 18px; font-weight: 600; color: #fff; }
.cx-topo-nome { font-size: 13px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-fechar { border: 0; background: rgba(255,255,255,.15); color: #fff; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.cx-fechar:hover { background: rgba(255,255,255,.28); }

.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; background: var(--cx-fundo); border-bottom: 1px solid var(--cx-borda); }
.cx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--cx-borda); font-size: 12.5px; color: #374151; max-width: 100%; }
.cx-chip .material-icons { font-size: 16px; color: var(--cx-suave); }
.cx-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* corpo */
.cx-corpo { padding: 16px 20px; }
.cx-grade { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cx-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cx-card { background: #fff; border: 1px solid var(--cx-borda); border-radius: 12px; padding: 14px; }
.cx-card-titulo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; margin-bottom: 12px; color: #111827; }
.cx-card-titulo .cx-ic { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #eef2ff; color: #4f46e5; }
.cx-card-titulo .cx-ic .material-icons { font-size: 18px; }
.cx-ic.vermelho { background: #fef2f2 !important; color: var(--cx-perigo) !important; }
.cx-ic.verde { background: #f0fdf4 !important; color: var(--cx-ok) !important; }
.cx-ic.ambar { background: #fffbeb !important; color: #d97706 !important; }
.cx-ic.azul { background: #eff6ff !important; color: var(--cx-foco) !important; }
.cx-rotulo { display: block; font-size: 12px; color: var(--cx-suave); margin-bottom: 6px; font-weight: 500; }
.cx-dica { font-size: 12px; color: var(--cx-suave); margin-top: 6px; }
.cx-duas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }

/* campos */
.cx-campo { width: 100%; height: 42px; border: 1px solid #d1d5db; border-radius: 10px; background: #fff; padding: 0 12px; font-size: 14px; color: var(--cx-texto);
            outline: none; box-shadow: none; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.cx-campo:focus, .cx-campo.foco { border-color: var(--cx-foco); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.cx-campo:disabled { background: #f3f4f6; color: #9ca3af; }
.cx-campo::placeholder { color: #9ca3af; }
textarea.cx-campo { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; line-height: 1.4; }
.cx-campo.erro { border-color: var(--cx-perigo); }

.cx-numero { display: flex; flex-direction: column; justify-content: center; height: 42px; }
.cx-numero b { font-size: 22px; font-weight: 700; line-height: 1; }
.cx-numero span { font-size: 11.5px; color: var(--cx-suave); }

.cx-stepper { display: flex; align-items: stretch; height: 42px; border: 1px solid #d1d5db; border-radius: 10px; overflow: hidden; background: #fff; }
.cx-stepper button { width: 42px; border: 0; background: var(--cx-fundo); color: #374151; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cx-stepper button:hover:not(:disabled) { background: #eef2ff; color: #4f46e5; }
.cx-stepper button:disabled { color: #d1d5db; cursor: default; }
.cx-stepper input { flex: 1; min-width: 0; border: 0; text-align: center; font-size: 16px; font-weight: 600; outline: none; background: #fff; color: var(--cx-texto); }

.cx-seg { display: flex; padding: 4px; background: #f3f4f6; border-radius: 12px; gap: 4px; margin-bottom: 12px; }
.cx-seg button { flex: 1; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--cx-suave); font-weight: 600; font-size: 13px; cursor: pointer;
                 display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, color .15s; }
.cx-seg button.ativo { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.cx-seg button.ativo.desc { color: var(--cx-ok); }
.cx-seg button.ativo.adic { color: var(--cx-perigo); }

.cx-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; margin: 0; font-size: 13.5px; color: #374151; font-weight: 500; }
.cx-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.cx-switch-trilho { width: 40px; height: 22px; border-radius: 999px; background: #d1d5db; position: relative; transition: background .15s; flex: none; }
.cx-switch-trilho::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.cx-switch input:checked + .cx-switch-trilho { background: var(--cx-perigo); }
.cx-switch input:checked + .cx-switch-trilho::after { transform: translateX(18px); }
.cx-switch input:focus-visible + .cx-switch-trilho { box-shadow: 0 0 0 3px rgba(37,99,235,.25); }
.cx-switch input:checked + .cx-switch-trilho.cx-switch-azul { background: var(--cx-foco); }
.cx-email { display: flex; align-items: center; gap: 6px; margin-top: 10px; word-break: break-all; }
.cx-email .material-icons { font-size: 16px; }
.cx-email.alerta { color: #b45309; }

/* calendário */
.cx-data { position: relative; }
.cx-data-btn { display: flex; align-items: center; gap: 8px; text-align: left; cursor: pointer; }
.cx-data-btn .material-icons { color: var(--cx-suave); }
.cx-data-btn span { flex: 1; }
.cx-data-btn .vazio { color: #9ca3af; }
.cx-cal { position: absolute; z-index: 30; top: 48px; left: 0; width: 280px; max-width: calc(100vw - 48px); background: #fff; border: 1px solid var(--cx-borda); border-radius: 14px;
          box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 10px; }
.cx-cal-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-weight: 600; text-transform: capitalize; }
.cx-cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cx-cal-sem { text-align: center; font-size: 11px; color: #9ca3af; padding: 4px 0; font-weight: 600; }
.cx-cal-dia { height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; color: var(--cx-texto); cursor: pointer; }
.cx-cal-dia:hover:not(:disabled) { background: #eef2ff; }
.cx-cal-dia.fora { color: #c4c8cf; }
.cx-cal-dia.hoje { box-shadow: inset 0 0 0 1px var(--cx-foco); }
.cx-cal-dia.sel { background: var(--cx-foco); color: #fff; font-weight: 600; }
.cx-cal-dia:disabled { color: #e5e7eb; cursor: default; }
.cx-icone-btn { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #374151; }
.cx-icone-btn:hover { background: #f3f4f6; }

/* resumo */
.cx-resumo { position: sticky; top: 8px; }
.cx-linha { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #edf0f3; font-size: 13.5px; }
.cx-linha:last-child { border-bottom: 0; }
.cx-linha > .material-icons { color: #9ca3af; font-size: 18px; flex: none; }
.cx-linha .cx-l-txt { flex: 1; min-width: 0; }
.cx-linha .cx-l-txt small { display: block; color: var(--cx-suave); font-size: 11.5px; }
.cx-linha .cx-l-val { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.cx-linha.sub { padding: 4px 0 4px 28px; font-size: 12.5px; color: var(--cx-suave); border-bottom: 0; }
.cx-l-val.neg { color: var(--cx-ok); }
.cx-total { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #111827; color: #fff; }
.cx-total span { font-size: 13px; opacity: .8; }
.cx-total b { font-size: 22px; font-variant-numeric: tabular-nums; }
.cx-venc { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: #374151; background: var(--cx-fundo); border: 1px solid var(--cx-borda); padding: 4px 10px; border-radius: 999px; }
.cx-venc .material-icons { font-size: 16px; color: var(--cx-suave); }
.cx-nde { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff7ed; color: #9a3412; font-size: 13px; }
.cx-nde b { margin-left: auto; white-space: nowrap; }
.cx-aberta { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f3f5; font-size: 13px; }
.cx-aberta:last-child { border-bottom: 0; }
.cx-aberta .material-icons { color: #9ca3af; font-size: 18px; }
.cx-aberta .cx-a-txt { flex: 1; min-width: 0; }
.cx-aberta .cx-a-txt div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cx-suave); font-size: 12px; }
.cx-aberta .cx-a-val { white-space: nowrap; text-decoration: line-through; color: var(--cx-suave); }

/* avisos */
.cx-aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 13.5px; }
.cx-aviso .material-icons { flex: none; }
.cx-aviso.perigo { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.cx-aviso.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.cx-aviso.alerta { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.cx-esqueleto { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #f1f3f5, #e5e7eb, #f1f3f5); margin: 10px 0; }

/* rodapé */
.cx-rodape { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: #fff; border-top: 1px solid var(--cx-borda); border-radius: 0 0 6px 6px; }
.cx-rodape-info { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--cx-suave); }
.cx-rodape-info .material-icons { font-size: 18px; }
.cx-rodape-total { display: none; }
.cx-btn { height: 42px; padding: 0 18px; border-radius: 10px; border: 0; font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.cx-btn-sec { background: #f3f4f6; color: #374151; }
.cx-btn-sec:hover { background: #e5e7eb; }
.cx-btn-perigo { background: var(--cx-perigo); color: #fff; box-shadow: 0 4px 12px rgba(220,38,38,.3); }
.cx-btn-perigo:hover:not(:disabled) { background: #b91c1c; }
.cx-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

@media (max-width: 767px) {
    .cx-topo { padding: 14px 16px; }
    .cx-chips, .cx-corpo { padding-left: 14px; padding-right: 14px; }
    .cx-grade { grid-template-columns: minmax(0, 1fr); }
    .cx-resumo { position: static; }
    .cx-rodape { flex-wrap: wrap; padding: 10px 14px; gap: 8px; }
    .cx-rodape-info { display: none; }
    .cx-rodape-total { display: flex; flex-direction: column; flex: 1; font-size: 11.5px; color: var(--cx-suave); line-height: 1.2; }
    .cx-rodape-total b { font-size: 18px; color: var(--cx-texto); }
    .cx-btn { padding: 0 14px; }
    .cx-btn-sec { width: 42px; padding: 0; }
    .cx-btn-sec .cx-btn-txt { display: none; }
    .cx-btn-perigo { flex: 1 1 100%; }
    .cx-chip { font-size: 12px; padding: 4px 9px; }
}

/* ===== troca de plano / vencimento ===== */
.cx-topo.azul { background: linear-gradient(135deg, #3730a3, #6366f1); }
.cx-btn-primario { background: #4f46e5; color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.cx-btn-primario:hover:not(:disabled) { background: #4338ca; }
.cx-tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #f3f4f6; color: #4b5563; margin-left: 6px; white-space: nowrap; }
.cx-tag.atual { background: #eef2ff; color: #4338ca; }
.cx-tag.inativo { background: #fef2f2; color: #b91c1c; }
.cx-tag.novo { background: #f0fdf4; color: #15803d; }
.cx-tag.chip { background: #fffbeb; color: #b45309; }

.cx-planos { display: flex; flex-direction: column; gap: 8px; max-height: 280px; overflow-y: auto; padding-right: 2px; }
.cx-plano { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--cx-borda); border-radius: 12px; background: #fff; padding: 10px 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.cx-plano:hover { border-color: #c7d2fe; }
.cx-plano.sel { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.15); background: #fafaff; }
.cx-plano .cx-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d1d5db; flex: none; position: relative; }
.cx-plano.sel .cx-radio { border-color: #6366f1; }
.cx-plano.sel .cx-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #6366f1; }
.cx-plano .cx-p-txt { flex: 1; min-width: 0; }
.cx-plano .cx-p-nome { font-weight: 600; font-size: 13.5px; }
.cx-plano .cx-p-vel { font-size: 12px; color: var(--cx-suave); display: flex; gap: 10px; margin-top: 2px; }
.cx-plano .cx-p-vel .material-icons { font-size: 14px; }
.cx-plano .cx-p-valor { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

.cx-dias { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-dia { min-width: 52px; height: 44px; border: 1px solid var(--cx-borda); border-radius: 12px; background: #fff; font-weight: 700; font-size: 16px; cursor: pointer; position: relative; color: var(--cx-texto); }
.cx-dia:hover { border-color: #c7d2fe; }
.cx-dia.sel { border-color: #6366f1; background: #6366f1; color: #fff; }
.cx-dia small { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 700; background: #eef2ff; color: #4338ca; padding: 0 5px; border-radius: 999px; white-space: nowrap; }

.cx-adic { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f1f3f5; font-size: 13px; }
.cx-adic:last-child { border-bottom: 0; }
.cx-adic .cx-a-txt { flex: 1; min-width: 0; }
.cx-adic .cx-a-txt small { display: block; color: var(--cx-suave); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-adic .cx-a-valor { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 500; }
.cx-adic.encerrado .cx-a-txt, .cx-adic.encerrado .cx-a-valor { text-decoration: line-through; color: #9ca3af; }
.cx-adic .cx-icone-btn { flex: none; }
.cx-novo-adic { margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--cx-fundo); border: 1px dashed #d1d5db; display: grid; gap: 10px; }
.cx-novo-adic .cx-tres { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cx-btn-link { border: 0; background: transparent; color: #4f46e5; font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; }
.cx-btn-link:hover { color: #3730a3; }
.cx-btn-mini { height: 36px; padding: 0 14px; border-radius: 10px; border: 0; background: #4f46e5; color: #fff; font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cx-btn-mini:disabled { opacity: .5; cursor: not-allowed; }

.cx-lista { padding: 6px; max-height: 260px; overflow-y: auto; width: 100%; min-width: 220px; }
.cx-lista-item { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: transparent; text-align: left; padding: 9px 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer; color: var(--cx-texto); }
.cx-lista-item:hover { background: #eef2ff; }
.cx-lista-item.sel { color: #4338ca; font-weight: 600; }
.cx-lista-item .material-icons { font-size: 18px; }

.cx-l-val.pos { color: var(--cx-texto); }
.cx-mantida .cx-a-val { text-decoration: none; }

@media (max-width: 767px) {
    .cx-novo-adic .cx-tres { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cx-novo-adic .cx-tres > div:last-child { grid-column: 1 / -1; }
    .cx-btn-primario { flex: 1 1 100%; }
    .cx-planos { max-height: none; }
}
/* ===== computador: mais largo e mais compacto (pedido de 20/10/2026: caber na tela sem tanta rolagem) ===== */
@media (min-width: 992px) {
    .cx-modal-largo .modal-lg { max-width: 960px; }
}
@media (min-width: 1280px) {
    .cx-modal-largo .modal-lg { max-width: 1180px; }
}

/* 3 áreas (a | b | resumo): troca e cancelamento */
.cx-grade-3 { grid-template-areas: "a c" "b c"; }
.cx-grade-3 .cx-area-a { grid-area: a; }
.cx-grade-3 .cx-area-b { grid-area: b; }
.cx-grade-3 .cx-area-c { grid-area: c; }
@media (min-width: 1280px) {
    .cx-grade-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "a b c"; }
}

@media (min-width: 768px) {
    .cx { font-size: 13px; }
    .cx .material-icons { font-size: 18px; }
    .cx-topo { padding: 10px 16px; gap: 10px; }
    .cx-topo-icone { width: 34px; height: 34px; border-radius: 10px; }
    .cx-topo-icone .material-icons { font-size: 20px; }
    .cx-topo-txt h4 { font-size: 16px; }
    .cx-topo-nome { font-size: 12px; }
    .cx-fechar { width: 30px; height: 30px; border-radius: 8px; }
    .cx-chips { padding: 6px 16px; gap: 6px; }
    .cx-chip { padding: 2px 8px; font-size: 11.5px; }
    .cx-chip .material-icons { font-size: 14px; }
    .cx-corpo { padding: 10px 16px; }
    .cx-grade { gap: 10px; }
    .cx-col { gap: 8px; }
    .cx-card { padding: 9px 11px; border-radius: 10px; }
    .cx-card-titulo { margin-bottom: 7px; font-size: 12.5px; gap: 6px; }
    .cx-card-titulo .cx-ic { width: 22px; height: 22px; border-radius: 6px; }
    .cx-card-titulo .cx-ic .material-icons { font-size: 15px; }
    .cx-rotulo { font-size: 11px; margin-bottom: 3px; }
    .cx-dica { font-size: 11px; margin-top: 4px; }
    .cx-duas { gap: 8px; }
    .cx-campo { height: 34px; font-size: 13px; padding: 0 10px; border-radius: 8px; }
    textarea.cx-campo { min-height: 48px; padding: 7px 10px; }
    .cx-numero { height: 34px; }
    .cx-numero b { font-size: 18px; }
    .cx-stepper { height: 34px; border-radius: 8px; }
    .cx-stepper button { width: 34px; }
    .cx-stepper input { font-size: 14px; }
    .cx-seg { padding: 3px; margin-bottom: 8px; border-radius: 10px; }
    .cx-seg button { height: 28px; font-size: 12px; border-radius: 7px; }
    .cx-switch { font-size: 12.5px; gap: 8px; }
    .cx-switch-trilho { width: 34px; height: 19px; }
    .cx-switch-trilho::after { width: 13px; height: 13px; }
    .cx-switch input:checked + .cx-switch-trilho::after { transform: translateX(15px); }
    .cx-cal-dia { height: 30px; font-size: 12.5px; }
    .cx-linha { padding: 5px 0; font-size: 12.5px; gap: 8px; }
    .cx-linha > .material-icons { font-size: 16px; }
    .cx-linha .cx-l-txt small { font-size: 11px; }
    .cx-total { margin-top: 8px; padding: 8px 12px; border-radius: 10px; }
    .cx-total b { font-size: 18px; }
    .cx-venc { margin-top: 8px; font-size: 11.5px; padding: 3px 8px; }
    .cx-nde { margin-top: 8px; padding: 7px 10px; font-size: 12px; }
    .cx-aberta { padding: 5px 0; font-size: 12px; }
    .cx-aviso { padding: 7px 10px; margin-bottom: 6px; font-size: 12.5px; border-radius: 10px; }
    .cx-esqueleto { margin: 6px 0; }
    .cx-rodape { padding: 8px 16px; }
    .cx-rodape-info { font-size: 11.5px; }
    .cx-btn { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
    .cx-btn-mini { height: 30px; font-size: 12px; padding: 0 10px; border-radius: 8px; }
    .cx-btn-link { font-size: 12px; padding: 4px 0; }
    .cx-email { margin-top: 6px; }

    .cx-planos { gap: 6px; max-height: 196px; }
    .cx-plano { padding: 6px 10px; gap: 10px; border-radius: 10px; }
    .cx-plano .cx-radio { width: 15px; height: 15px; }
    .cx-plano .cx-p-nome { font-size: 12.5px; }
    .cx-plano .cx-p-vel { font-size: 11px; margin-top: 1px; }
    .cx-plano .cx-p-vel .material-icons { font-size: 12px; }
    .cx-tag { font-size: 10px; padding: 0 6px; margin-left: 4px; }
    .cx-dias { gap: 6px; }
    .cx-dia { min-width: 40px; height: 32px; font-size: 13.5px; border-radius: 9px; }
    .cx-dia small { font-size: 8.5px; top: -7px; }
    .cx-adic { padding: 5px 0; font-size: 12.5px; gap: 8px; }
    .cx-adic .cx-a-txt small { font-size: 10.5px; }
    .cx-adic .cx-icone-btn { width: 28px; height: 28px; }
    .cx-novo-adic { margin-top: 8px; padding: 9px; gap: 8px; border-radius: 10px; }
    .cx-novo-adic .cx-tres { gap: 8px; }
}
/* celular: uma coluna só (vem depois das áreas para valer) */
@media (max-width: 767px) {
    .cx-grade-3 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "c"; }
}

/* ===== painel do chip (27/10/2026): app/views/endereco/detalhe/internet4G/informacoesInternet4G.html e a aba Móvel/Chip ===== */
.cx-topo.verde { background: linear-gradient(135deg, #15803d, #22c55e); }
.cx-topo.ambar { background: linear-gradient(135deg, #b45309, #f59e0b); }
.cx-topo.cinza { background: linear-gradient(135deg, #374151, #6b7280); }
.cx-topo .cx-fechar:disabled { opacity: .5; cursor: default; }
.cxc-apelido { font-weight: 400; opacity: .85; margin-left: 6px; }
.cxc-apelido::before { content: "· "; }

.cxc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #f3f4f6; color: #374151; }
.cxc-pill > i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.cxc-pill.ativo { background: #f0fdf4; color: #15803d; }
.cxc-pill.bloq { background: #fffbeb; color: #b45309; }
.cxc-pill.canc { background: #f3f4f6; color: #6b7280; }
.cxc-pill.esp { background: #eff6ff; color: #1d4ed8; }

.cxc-abas { max-width: 420px; }
.cxc-abas button .material-icons { font-size: 17px; }
.cxc-abas button:disabled { opacity: .45; cursor: not-allowed; }
.cxc-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.cxc-grade-acoes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }

.cxc-kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed #edf0f3; font-size: 13px; }
.cxc-kv:last-child { border-bottom: 0; }
.cxc-kv > span { color: var(--cx-suave); flex: none; }
.cxc-kv > b { font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.cxc-kv > b small { display: block; width: 100%; color: var(--cx-suave); font-weight: 400; font-size: 11.5px; }
.cxc-mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.cxc-lapis { width: 26px; height: 26px; margin-left: auto; }
.cxc-lapis .material-icons { font-size: 16px !important; color: var(--cx-suave); }
.cxc-edicao { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.cxc-obs { white-space: pre-wrap; font-size: 12.5px; color: #374151; max-height: 180px; overflow-y: auto; }

.cxc-saldo { display: flex; align-items: baseline; gap: 6px; }
.cxc-saldo b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cxc-saldo span { color: var(--cx-suave); font-size: 12.5px; }
.cxc-medidor { height: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden; margin: 10px 0 4px; }
.cxc-medidor > div { height: 100%; border-radius: 999px; background: #4f46e5; }
.cxc-medidor > div.alto { background: #d97706; }
.cxc-pacote { display: flex; align-items: center; gap: 8px; padding: 6px 0 0; font-size: 12.5px; }
.cxc-pacote .material-icons { color: #9ca3af; font-size: 16px; }
.cxc-pacote small { display: block; color: var(--cx-suave); font-size: 11.5px; }

/* consumo */
.cxc-mes { max-width: 260px; margin-bottom: 10px; }
.cxc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.cxc-tile { background: #fff; border: 1px solid var(--cx-borda); border-radius: 10px; padding: 9px 12px; display: flex; flex-direction: column; gap: 2px; }
.cxc-tile span { font-size: 11.5px; color: var(--cx-suave); }
.cxc-tile b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cxc-tile small { font-size: 11.5px; color: var(--cx-suave); }
.cxc-sub { font-weight: 400; color: var(--cx-suave); margin-left: 4px; }
.cxc-grafico { position: relative; display: flex; gap: 8px; height: 150px; }
.cxc-grade-y { display: flex; flex-direction: column; justify-content: space-between; font-size: 10.5px; color: #9ca3af; text-align: right; min-width: 52px; padding-bottom: 1px; }
.cxc-barras { flex: 1; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid #e5e7eb;
              background: linear-gradient(#f1f3f5 1px, transparent 1px) 0 0 / 100% 50%; }
.cxc-col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: pointer; min-width: 0; }
.cxc-barra { width: 100%; max-width: 18px; margin: 0 auto; background: #6366f1; border-radius: 4px 4px 0 0; transition: background .1s; }
.cxc-col:hover .cxc-barra, .cxc-col.sel .cxc-barra { background: #3730a3; }
.cxc-eixo-x { display: flex; gap: 2px; margin-left: 60px; font-size: 10.5px; color: #9ca3af; }
.cxc-eixo-x span { flex: 1; text-align: center; min-width: 0; overflow: visible; white-space: nowrap; }
.cxc-dia { min-height: 22px; margin-top: 6px; font-size: 12.5px; color: #374151; }
.cxc-dia b { margin-right: 6px; }
.cxc-tabela { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 4px; }
.cxc-tabela th { text-align: right; font-weight: 600; color: var(--cx-suave); font-size: 11.5px; padding: 4px 6px; border-bottom: 1px solid var(--cx-borda); }
.cxc-tabela td { text-align: right; padding: 4px 6px; border-bottom: 1px solid #f1f3f5; font-variant-numeric: tabular-nums; }
.cxc-tabela th:first-child, .cxc-tabela td:first-child { text-align: left; }

/* ações */
.cxc-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.cxc-acao { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--cx-borda); background: #fff; color: #1f2937; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cxc-acao .material-icons { color: #4f46e5; font-size: 17px; }
.cxc-acao:hover:not(:disabled) { border-color: #c7d2fe; background: #fafaff; }
.cxc-acao.sel { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,.15); background: #fafaff; }
.cxc-acao.perigo .material-icons { color: var(--cx-perigo); }
.cxc-acao.perigo.sel { border-color: var(--cx-perigo); box-shadow: 0 0 0 3px rgba(220,38,38,.12); background: #fff; }
.cxc-acao:disabled { color: #9ca3af; cursor: not-allowed; background: #f9fafb; }
.cxc-acao:disabled .material-icons { color: #d1d5db; }
.cxc-form { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--cx-fundo); border: 1px solid var(--cx-borda); font-size: 13px; }
.cxc-form-botoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.cxc-busca { display: flex; align-items: center; gap: 8px; }
.cxc-destinos { margin-top: 8px; max-height: 260px; }
.cx-plano.cxcoff { cursor: not-allowed; background: #f9fafb; }
.cx-plano.cxcoff .cx-p-nome { color: #6b7280; }
.cxc-motivo { display: block; font-size: 11.5px; color: #b45309; margin-top: 2px; }
.cxc-recarga { display: flex; align-items: center; gap: 14px; }
.cxc-recarga .cx-stepper { width: 160px; }

/* aba Móvel/Chip do endereço */
.cxc-aba-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cxc-aba-topo b { font-size: 14px; }
.cxc-aba-topo small { color: var(--cx-suave); margin-left: 6px; }
.cxc-lista { display: flex; flex-direction: column; gap: 6px; }
.cxc-linha { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--cx-borda); border-radius: 10px; background: #fff; padding: 8px 10px; cursor: pointer; color: var(--cx-texto); }
.cxc-linha:hover { border-color: #c7d2fe; background: #fafaff; }
.cxc-linha.cancelado { opacity: .7; }
.cxc-linha-ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex: none; background: #eff6ff; color: #1d4ed8; }
.cxc-linha-ic.ativo { background: #f0fdf4; color: #15803d; }
.cxc-linha-ic.bloq { background: #fffbeb; color: #b45309; }
.cxc-linha-ic.canc { background: #f3f4f6; color: #6b7280; }
.cxc-linha-txt { flex: 1; min-width: 0; }
.cxc-linha-num { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.cxc-linha-txt small { display: block; color: var(--cx-suave); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cxc-seta { color: #9ca3af; }

@media (max-width: 1279px) {
    .cxc-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .cxc-grade, .cxc-grade-acoes { grid-template-columns: minmax(0, 1fr); }
    .cxc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cxc-abas { max-width: none; }
    .cxc-linha { gap: 8px; }
    .cxc-linha .cxc-pill { font-size: 11px; padding: 2px 7px; }
    .cxc-linha .cxc-seta { display: none; }
    .cxc-grade-y { min-width: 40px; }
    .cxc-eixo-x { margin-left: 48px; }
    .cxc-tabela th:nth-child(3), .cxc-tabela td:nth-child(3), .cxc-tabela th:nth-child(4), .cxc-tabela td:nth-child(4) { display: none; }
}
/* aba Chips do painel do cliente: um grupo por endereço */
.cxc-grupo { margin-bottom: 12px; }
.cxc-grupo-titulo { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12.5px; font-weight: 600; color: #374151; margin: 0 0 6px 2px; }
.cxc-grupo-titulo .material-icons { font-size: 16px; color: #9ca3af; }
.cxc-grupo-titulo small { color: var(--cx-suave); font-weight: 400; margin-left: 4px; }
