/* Estilos das telas do sistema. A base visual (Bootstrap + classes do tema) está em theme.css. */
.app-body { background: var(--kt-gray-100, #f5f8fa); min-height: 100vh; display: flex; flex-direction: column; }
.app-body > main { flex: 1; }

.app-header { color: #fff; }
.app-nav-link {
  color: rgba(255, 255, 255, .75); padding: .5rem .85rem; border-radius: .475rem; font-weight: 500;
}
.app-nav-link:hover, .app-nav-link.active { color: #fff; background: rgba(255, 255, 255, .15); }
.app-nav-link .bi { color: inherit; }
.app-user-btn { color: #fff; background: rgba(255, 255, 255, .15); }
.app-user-btn:hover { color: #fff; background: rgba(255, 255, 255, .25); }

/* Tela de login */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-logo { max-height: 60px; max-width: 220px; }

.color-swatch { width: 48px; height: 38px; padding: 2px; }
.preview-logo { max-height: 60px; max-width: 220px; background: var(--kt-gray-200); padding: 6px; border-radius: 6px; }

/* Faixa do "entrar como cliente" (modo suporte) */
.app-support-bar { background: #ffc700; color: #1e1e2d; font-weight: 500; }

/* Barra de uso do plano */
.usage-bar { height: 8px; }

/* Contador no menu */
.app-nav-badge {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px;
  background: #f1416c; color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600;
}

/* ---------- Dashboard ---------- */
.stat-card { transition: transform .15s ease, box-shadow .15s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
.stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat-icon .bi { color: inherit; }

.status-bar { display: flex; width: 260px; height: 10px; border-radius: 5px; overflow: hidden; background: var(--kt-gray-200); }
.status-bar span { display: block; height: 100%; }

/* Planilha "estilo Excel" */
.sheet-wrap { overflow-x: auto; border: 1px solid var(--kt-gray-300, #e4e6ef); border-radius: 10px; }
.sheet { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { border-right: 1px solid var(--kt-gray-200, #eff2f5); border-bottom: 1px solid var(--kt-gray-200, #eff2f5); padding: 11px 16px; white-space: nowrap; }
.sheet th:last-child, .sheet td:last-child { border-right: 0; }
.sheet thead th {
  position: sticky; top: 0; z-index: 1; background: var(--kt-gray-100, #f5f8fa); color: var(--kt-gray-700, #5e6278);
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 2px solid var(--col, var(--kt-gray-300, #e4e6ef));
}
.sheet-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--col); margin-right: 6px; vertical-align: 1px; }
.sheet-name { text-align: left; font-weight: 600; min-width: 220px; }
.sheet-num { text-align: center; width: 120px; }
.sheet tbody tr:nth-child(even) .sheet-name { background: rgba(0, 0, 0, .015); }
.sheet tbody tr:hover td { box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, .025); }
.sheet td.sheet-num a { display: block; color: var(--kt-gray-900, #181c32); font-weight: 600; }
.sheet td.sheet-num a:hover { text-decoration: underline; }
.sheet-zero { color: var(--kt-gray-400, #b5b5c3); }
.sheet .sheet-total { background: var(--kt-gray-100, #f5f8fa); font-weight: 700; }
.sheet tfoot td { background: var(--kt-gray-100, #f5f8fa); font-weight: 700; border-bottom: 0; border-top: 2px solid var(--kt-gray-300, #e4e6ef); }
.sheet-pct { font-size: 11px; font-weight: 500; color: var(--kt-gray-600, #7e8299); }
.sheet-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 10px;
  border-radius: 50%; background: var(--kt-primary-light); color: var(--kt-primary); font-size: 12px; font-weight: 700;
}

/* ---------- Importação ---------- */
.import-errors { max-height: 320px; overflow-y: auto; padding-left: 18px; }
.import-errors li { margin-bottom: 4px; }

/* ---------- Central ---------- */
.aviso-card { border-left: 4px solid var(--kt-primary); }
.aviso-texto { white-space: normal; word-break: break-word; }
.video-frame { border-radius: 10px; overflow: hidden; background: #000; }
.cursor-pointer { cursor: pointer; }
.chat { display: flex; flex-direction: column; gap: 18px; }
.chat-msg { max-width: 85%; }
.chat-msg.chat-mine { align-self: flex-end; text-align: right; }
.chat-meta { font-size: 12px; margin-bottom: 4px; }
.chat-bubble {
  display: inline-block; text-align: left; padding: 12px 16px; border-radius: 12px; border-top-left-radius: 2px;
  background: var(--kt-gray-100, #f5f8fa); word-break: break-word;
}
.chat-mine .chat-bubble { background: var(--kt-primary-light); border-top-left-radius: 12px; border-top-right-radius: 2px; }

/* ---------- Ponto ---------- */
.ponto-card { border-top: 4px solid var(--kt-gray-300, #e4e6ef); }
.ponto-card.ponto-on { border-top-color: #50cd89; }
.ponto-clock { font-size: 56px; font-weight: 700; letter-spacing: 2px; line-height: 1.1; margin: 8px 0 16px; font-variant-numeric: tabular-nums; }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #50cd89; margin-right: 6px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(80, 205, 137, .6); } 70% { box-shadow: 0 0 0 8px rgba(80, 205, 137, 0); } 100% { box-shadow: 0 0 0 0 rgba(80, 205, 137, 0); } }

/* ---------- Onboarding ---------- */
.onb-modulo { overflow: hidden; }
.onb-modulo-head { display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; user-select: none; }
.onb-modulo-head:hover { background: var(--kt-gray-100, #f5f8fa); }
.onb-num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--kt-primary); color: #fff; font-weight: 700; font-size: 16px;
}
.onb-chevron { font-size: 16px; transition: transform .2s ease; }
.collapsed > .onb-chevron { transform: rotate(-90deg); }
.onb-modulo-body { padding: 4px 24px 20px 80px; }
.onb-aula { border: 1px solid var(--kt-gray-200, #eff2f5); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.onb-aula-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; user-select: none; }
.onb-aula-head:hover { background: var(--kt-gray-100, #f5f8fa); }
.onb-aula-num { color: var(--kt-primary); font-weight: 700; min-width: 32px; }
.onb-tipos .bi { margin-left: 6px; font-size: 15px; }
.onb-aula-body { padding: 6px 18px 20px 62px; }
.onb-img { max-width: 100%; max-height: 480px; border-radius: 10px; border: 1px solid var(--kt-gray-200, #eff2f5); }
@media (max-width: 767px) {
  .onb-modulo-body { padding: 4px 16px 16px; }
  .onb-aula-body { padding: 6px 16px 16px; }
  .ponto-clock { font-size: 44px; }
}

.auth-card-wide { max-width: 820px; }
.legal-text { white-space: normal; line-height: 1.7; font-size: 14px; max-height: 60vh; overflow-y: auto; }

.chat-fotos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chat-fotos img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--kt-gray-300, #e4e6ef); }

/* ---------- Sininho ---------- */
.app-bell { padding: 4px 10px; }
.app-bell-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: #f1416c; color: #fff; font-size: 11px; line-height: 18px; font-weight: 700; text-align: center;
}
.notif-menu { width: 360px; max-width: calc(100vw - 32px); }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif-list-page { max-height: none; }
.notif-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; color: var(--kt-gray-800, #3f4254); border-bottom: 1px solid var(--kt-gray-100, #f5f8fa); }
.notif-item:hover { background: var(--kt-gray-100, #f5f8fa); color: var(--kt-gray-900, #181c32); }
.notif-item.unread { background: var(--kt-primary-light); }
.notif-item.unread .notif-title { font-weight: 700; }
.notif-icon { font-size: 18px; color: var(--kt-primary); margin-top: 2px; }

/* ---------- Cadastro ---------- */
.signup-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.plan-option { display: block; cursor: pointer; margin: 0; }
.plan-option input { position: absolute; opacity: 0; }
.plan-box { display: block; height: 100%; padding: 18px; border: 2px solid var(--kt-gray-300, #e4e6ef); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.plan-option:hover .plan-box { border-color: var(--kt-primary); }
.plan-option input:checked + .plan-box { border-color: var(--kt-primary); box-shadow: 0 0 0 4px var(--kt-primary-light); }
.plan-option input:focus-visible + .plan-box { outline: 2px solid var(--kt-primary); outline-offset: 2px; }

.cpf-cnpj-hint { font-size: 12.5px; color: var(--kt-gray-700, #5e6278); background: var(--kt-gray-100, #f5f8fa); border-radius: 8px; padding: 8px 12px; }
.cpf-cnpj-hint .bi { color: var(--kt-primary); margin-right: 4px; }

.perm-disabled { opacity: .5; pointer-events: none; }

.audit-changes { font-size: 12px; max-width: 420px; word-break: break-word; }
.audit-changes .bi { font-size: 10px; color: var(--kt-gray-500, #a1a5b7); }

/* ---------- Métricas (área master) ---------- */
.metric-hero { font-size: clamp(30px, 2.6vw, 44px); font-weight: 700; line-height: 1.1; margin: 6px 0 4px; color: var(--kt-gray-900, #181c32); white-space: nowrap; }
.metric-value { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 6px 0 4px; color: var(--kt-gray-900, #181c32); }
.metric-card .text-warning .bi, .metric-card .text-danger .bi { margin-right: 2px; }

/* colunas: uma série; barras finas, topo arredondado, base reta, grade fina e discreta */
.colchart { --col-color: #0b7fc7; display: flex; gap: 8px; height: 220px; margin: 22px 0 28px; }
.colchart-axis { position: relative; width: 74px; flex: 0 0 auto; }
.colchart-axis span { position: absolute; right: 0; transform: translateY(50%); font-size: 11px; color: var(--kt-gray-600, #7e8299); white-space: nowrap; }
.colchart-plot { position: relative; flex: 1; display: flex; align-items: stretch; }
.colchart-grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--kt-gray-200, #eff2f5); }
.colchart-grid.colchart-base { border-top-color: var(--kt-gray-300, #e4e6ef); }
.colchart-col { position: relative; flex: 1; display: flex; justify-content: center; align-items: flex-end; outline: none; cursor: default; }
.colchart-bar { width: min(24px, 60%); min-height: 0; background: var(--col-color); border-radius: 4px 4px 0 0; transition: filter .12s; }
.colchart-col.is-hover .colchart-bar, .colchart-col:focus-visible .colchart-bar { filter: brightness(1.18); }
.colchart-col:focus-visible { box-shadow: inset 0 0 0 2px var(--kt-gray-300, #e4e6ef); border-radius: 6px; }
.colchart-x { position: absolute; bottom: -22px; font-size: 11px; color: var(--kt-gray-600, #7e8299); white-space: nowrap; }
.colchart-label { position: absolute; font-size: 11px; font-weight: 600; color: var(--kt-gray-800, #3f4254); white-space: nowrap; }
.colchart-tip { position: absolute; top: -8px; background: #1e1e2d; color: #fff; border-radius: 6px; padding: 6px 10px; font-size: 12px; pointer-events: none; white-space: nowrap; z-index: 2; }
.colchart-tip strong { display: block; font-size: 13px; }
.colchart-tip span { color: #b5b5c3; }
.meter { height: 8px; border-radius: 4px; background: #dbeaf5; overflow: hidden; }
.meter span { display: block; height: 100%; background: #0b7fc7; border-radius: 4px; }

/* ---------- Domínio próprio ---------- */
.domain-steps { display: flex; flex-direction: column; gap: 16px; }
.domain-step { display: flex; gap: 12px; }
.domain-step-icon { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--kt-gray-100, #f5f8fa); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--kt-gray-600, #7e8299); }
.domain-step.done .domain-step-icon { background: #e8fff3; color: #47be7d; }
.dns-table th { font-weight: 600; background: var(--kt-gray-100, #f5f8fa); }
.dns-table code { font-size: 12px; word-break: break-all; }

/* menu do topo: todos os itens (inclusive os suspensos) na mesma linha */
.app-header nav { align-items: center; }
.app-nav-link { display: inline-flex; align-items: center; gap: .35rem; line-height: 1.5; }
.app-header nav .dropdown { display: flex; }
.app-nav-link.dropdown-toggle::after { margin-left: .15rem; }

/* receita perdida (métricas) */
.loss-card { border-left: 4px solid var(--kt-danger, #f1416c); }
.loss-part { background: var(--kt-gray-100, #f5f8fa); border-radius: 10px; padding: 14px 16px; height: 100%; }

/* ---------- RH ---------- */
.rh-pedido { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--kt-gray-200, #eff2f5); }
.rh-pedido:last-child { border-bottom: 0; }
.rh-dia { width: 36px; height: 36px; border-radius: 8px; background: var(--kt-primary-light); color: var(--kt-primary); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rh-hoje { background: var(--kt-primary-light); border-radius: 8px; padding-left: 6px !important; padding-right: 6px !important; }
.dia-chip { margin: 0; cursor: pointer; }
.dia-chip input { position: absolute; opacity: 0; }
.dia-chip span { display: inline-block; min-width: 46px; text-align: center; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--kt-gray-300, #e4e6ef); color: var(--kt-gray-600, #7e8299); font-weight: 600; }
.dia-chip input:checked + span { background: var(--kt-primary); border-color: var(--kt-primary); color: #fff; }
.dia-chip input:focus-visible + span { outline: 2px solid var(--kt-primary); outline-offset: 2px; }

/* ---------- Módulos (área master) ---------- */
.modulo-toggle { display: block; margin: 0; cursor: pointer; height: 100%; }
.modulo-toggle input { position: absolute; opacity: 0; }
.modulo-box { display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border: 1px solid var(--kt-gray-300, #e4e6ef); border-radius: 10px; transition: border-color .15s, background .15s; }
.modulo-box > .bi { font-size: 20px; color: var(--kt-gray-500, #a1a5b7); }
.modulo-toggle input:checked + .modulo-box { border-color: var(--kt-primary); background: var(--kt-primary-light); }
.modulo-toggle input:checked + .modulo-box > .bi { color: var(--kt-primary); }
.modulo-toggle input:focus-visible + .modulo-box { outline: 2px solid var(--kt-primary); outline-offset: 2px; }
.modulo-switch { pointer-events: none; display: inline-block; }
.modulo-toggle input:checked + .modulo-box .modulo-switch { background-color: var(--kt-primary); border-color: var(--kt-primary); background-position: right center; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"); }

/* ---------- Vendas ---------- */
.funil-kpi { background: #fff; border-radius: 12px; padding: 12px 18px; box-shadow: 0 0 20px 0 rgba(76,87,125,.03); min-width: 190px; }
.funil-kpi span, .funil-kpi small { display: block; color: var(--kt-gray-600, #7e8299); font-size: 12px; }
.funil-kpi strong { display: block; font-size: 20px; color: var(--kt-gray-900, #181c32); }
.funil { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.funil-col { background: var(--kt-gray-100, #f5f8fa); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; min-height: 320px; border-top: 3px solid var(--kt-gray-300, #e4e6ef); transition: background .15s; }
.funil-col.funil-info { border-top-color: var(--kt-info, #7239ea); }
.funil-col.funil-primary { border-top-color: var(--kt-primary); }
.funil-col.funil-warning { border-top-color: var(--kt-warning, #ffc700); }
.funil-col.funil-success { border-top-color: var(--kt-success, #50cd89); }
.funil-col.funil-danger { border-top-color: var(--kt-danger, #f1416c); }
.funil-col.is-over { background: var(--kt-primary-light); }
.funil-head { padding: 4px 4px 10px; }
.funil-list { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.funil-card { display: block; background: #fff; border-radius: 10px; padding: 10px 12px; color: var(--kt-gray-800, #3f4254); box-shadow: 0 1px 3px rgba(0,0,0,.06); cursor: grab; border: 1px solid transparent; }
.funil-card:hover { border-color: var(--kt-primary); color: var(--kt-gray-800, #3f4254); }
.funil-card.is-dragging { opacity: .4; }
.funil-vazio { border: 2px dashed var(--kt-gray-300, #e4e6ef); border-radius: 10px; padding: 18px; text-align: center; color: var(--kt-gray-500, #a1a5b7); font-size: 12px; }
.pedido-itens td { vertical-align: top; padding-top: 10px; padding-bottom: 10px; }
.pedido-resumo { position: sticky; top: 16px; }
tr.row-link { cursor: pointer; }

/* impressão (orçamento/pedido, etiquetas): só o documento */
@media print {
  .app-header, .app-support-bar, footer, .no-print, .alert, main > .d-flex:first-child > div { display: none !important; }
  body, .app-body { background: #fff !important; }
  main { padding: 0 !important; max-width: none !important; }
  .print-sheet { box-shadow: none !important; border: 0 !important; }
  .row > [class*="col-xl-8"] { width: 100% !important; }
  .print-sheet .card-body { padding: 0 !important; }
}

/* ---------- Logística ---------- */
.print-only { display: none; }
.etiqueta { border: 2px solid #000; border-radius: 8px; padding: 24px; max-width: 600px; }
.timeline-simple { display: flex; flex-direction: column; gap: 14px; }
.tl-item { display: flex; gap: 10px; }
.tl-dot { flex: 0 0 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
@media print {
  .print-only { display: block !important; }
  main h1 { display: none; }
}

/* ---------- Precificação ---------- */
.stackbar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; gap: 2px; background: #fff; }
.stackbar span { display: block; min-width: 2px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px; }

/* ---------- Marketing ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { text-align: center; font-size: 12px; font-weight: 700; color: var(--kt-gray-600, #7e8299); padding: 4px 0; }
.cal-dia { background: #fff; border-radius: 10px; min-height: 118px; padding: 6px; display: flex; flex-direction: column; gap: 4px; border: 2px solid transparent; min-width: 0; }
.cal-fora { background: var(--kt-gray-100, #f5f8fa); }
.cal-fora .cal-num { color: var(--kt-gray-400, #b5b5c3); }
.cal-hoje { border-color: var(--kt-primary); }
.cal-dia.is-over { background: var(--kt-primary-light); }
.cal-num { font-weight: 700; font-size: 13px; }
.cal-add { color: var(--kt-gray-400, #b5b5c3); opacity: 0; font-size: 16px; line-height: 1; }
.cal-dia:hover .cal-add, .cal-add:focus-visible { opacity: 1; }
.cal-item { display: block; font-size: 11.5px; line-height: 1.3; padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--kt-gray-800, #3f4254); border-left: 3px solid var(--kt-gray-400, #b5b5c3); background: var(--kt-gray-100, #f5f8fa); }
.cal-item.cal-info { border-left-color: var(--kt-info, #7239ea); background: var(--kt-info-light, #f8f5ff); }
.cal-item.cal-warning { border-left-color: var(--kt-warning, #ffc700); background: var(--kt-warning-light, #fff8dd); }
.cal-item.cal-primary { border-left-color: var(--kt-primary); background: var(--kt-primary-light); }
.cal-item.cal-success { border-left-color: var(--kt-success, #50cd89); background: var(--kt-success-light, #e8fff3); }
@media (max-width: 767px) { .cal-dia { min-height: 70px; } .cal-item { font-size: 10px; padding: 2px 4px; } .cal-item .bi { display: none; } }
.cupom-codigo { font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: .5px; border: 1px dashed var(--kt-primary); color: var(--kt-primary); border-radius: 6px; padding: 2px 8px; }
.email-previa { background: var(--kt-gray-100, #f5f8fa); border-radius: 10px; padding: 16px; }
.email-previa-corpo { background: #fff; border-radius: 8px; overflow: hidden; }
.email-previa-topo { color: #fff; font-weight: 700; padding: 14px 24px; }
.lead-card { width: 100%; max-width: 520px; margin: 0 auto; }
.lead-embed { background: transparent !important; }
.lead-embed .lead-card { max-width: none; border: 0; }

/* menu com muitos módulos: segunda linha só para o menu */
.app-header-2rows .container-xxl { row-gap: .5rem !important; padding-bottom: .5rem !important; }
.app-header-2rows nav { order: 3; flex-basis: 100%; margin-left: -.85rem; }
.app-header-2rows nav + .dropdown { margin-left: auto; }
.pedido-itens { min-width: 720px; }

/* escalas de comissão: degraus */
.escala-faixas { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; }
.escala-degrau { display: flex; flex-direction: column; justify-content: flex-end; min-width: 120px; padding: 10px 12px; border-radius: 8px;
  background: var(--kt-success-light, #e8fff3); border-bottom: 3px solid var(--kt-success, #50cd89); min-height: calc(64px + var(--n) * 14px); }
.escala-degrau strong { font-size: 14px; }

/* leitura de código de barras pela câmera */
.scan-overlay { position: fixed; inset: 0; background: #000; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.scan-overlay video { width: 100%; height: 100%; object-fit: cover; }
.scan-mira { position: absolute; width: min(80vw, 420px); height: 160px; border: 3px solid rgba(255,255,255,.85); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); }
.scan-fechar { position: absolute; top: 16px; right: 16px; }
.scan-dica { position: absolute; bottom: 32px; color: #fff; font-weight: 600; }
.abc-letra { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; flex: 0 0 44px; }
.dropdown-menu { max-height: calc(100vh - 120px); overflow-y: auto; }

/* financeiro: janela de baixa */
.baixa-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1050; display: flex; align-items: center; justify-content: center; padding: 16px; }
.baixa-overlay[hidden] { display: none; }
.baixa-card { width: 100%; max-width: 460px; }
.meter-entrada span { background: #2f9e6b; } .meter-entrada { background: #dcf3e8; }
.meter-saida span { background: #d9214e; } .meter-saida { background: #fbe1e7; }
.dre-total td { background: var(--kt-gray-100, #f5f8fa); }
/* muitos módulos: itens do topo mais compactos; em telas médias, só o texto (os ícones continuam nos submenus) */
.app-header-2rows .app-nav-link { padding: .45rem .6rem; }
@media (max-width: 1499.98px) { .app-header-2rows nav > a > .bi, .app-header-2rows nav > .dropdown > .app-nav-link > .bi { display: none; } }

/* ------------------------------------------------------------ confecção */
.cor-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); vertical-align: -2px; margin-right: 2px; }
.cor-opcao input { position: absolute; opacity: 0; pointer-events: none; }
.cor-opcao span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--bs-gray-300, #e1e3ea); border-radius: 20px; cursor: pointer; font-size: .85rem; }
.cor-opcao input:checked + span { border-color: var(--bs-primary, #009ef7); background: rgba(0,158,247,.08); font-weight: 600; }
.cor-opcao input:focus-visible + span { outline: 2px solid var(--bs-primary, #009ef7); }
.modelo-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.modelo-thumb-vazio { background: var(--bs-gray-100, #f5f8fa); color: var(--bs-gray-400, #b5b5c3); }
.modelo-foto { max-width: 100%; max-height: 160px; border-radius: 8px; }
.conf-grade td, .conf-grade th { min-width: 54px; }
.conf-grade .grade-in { min-width: 52px; padding-left: 2px; padding-right: 2px; }
.fs-9 { font-size: .7rem !important; }
.op-kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.op-card { border: 1px solid var(--bs-gray-200, #eff2f5); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: var(--bs-body-bg, #fff); }
.op-card:hover { border-color: var(--bs-primary, #009ef7); }
.op-etapas { list-style: none; padding: 0; margin: 0; }
.op-etapas li { position: relative; padding: 0 0 18px 28px; }
.op-etapas li::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--bs-gray-200, #eff2f5); }
.op-etapas li:last-child::before { display: none; }
.op-etapas .dot { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--bs-gray-300, #e1e3ea); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; }
.op-etapas .dot.ok { background: var(--bs-success, #50cd89); }
.op-etapas .dot.and { background: var(--bs-primary, #009ef7); }
.progress-op { height: 6px; }
/* frente de caixa */
.pdv-busca { font-size: 1.2rem; height: 52px; }
.pdv-itens { max-height: calc(100vh - 360px); min-height: 220px; overflow-y: auto; }
.pdv-total { font-size: 2.4rem; font-weight: 700; line-height: 1.1; }
.pdv-sugestoes { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; max-height: 360px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.pdv-sugestoes .list-group-item { cursor: pointer; }
.pdv-forma { min-width: 0; }
.pdv-devolvido td { background: rgba(241,65,108,.05); }
/* etiquetas */
.etiquetas { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 4mm; }
.etiqueta { border: 1px dashed #bbb; border-radius: 3px; padding: 2.5mm 3mm; font-family: Arial, sans-serif; color: #000; background: #fff; break-inside: avoid; page-break-inside: avoid; min-height: 30mm; }
.etiqueta .marca { font-weight: 700; font-size: 9pt; text-transform: uppercase; letter-spacing: .5px; }
.etiqueta .nome { font-size: 8pt; line-height: 1.2; }
.etiqueta .tam { font-size: 14pt; font-weight: 700; }
.etiqueta .preco { font-size: 12pt; font-weight: 700; }
.etiqueta .barcode { width: 100%; height: auto; max-height: 15mm; display: block; margin-top: 1mm; }
.cupom { width: 80mm; margin: 0 auto; font-family: 'Courier New', monospace; font-size: 11px; color: #000; background: #fff; padding: 4mm; }
.cupom hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; opacity: 1; }
@media print {
  .etiqueta { border-color: #eee; }
  .no-print { display: none !important; }
}
/* indicadores do financeiro */
.kpi-card .bi-info-circle { cursor: help; opacity: .6; }
@media print {
  .kpi-card { border: 1px solid #ddd !important; box-shadow: none !important; }
  .card { box-shadow: none !important; border: 1px solid #e5e5e5 !important; break-inside: avoid; }
  .meter span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .progress-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* propostas */
.proposta-doc { max-width: 880px; margin: 0 auto; }
.proposta-logo { max-height: 56px; max-width: 220px; }
.proposta-total { border-top: 2px solid var(--bs-gray-300, #e1e3ea); padding-top: 12px; max-width: 420px; margin-left: auto; }
.proposta-itens td, .proposta-itens th { padding-left: 0 !important; }
@media print { .proposta-doc { max-width: none; } .proposta-acoes { display: none !important; } }

/* ponto pelo celular: prévia da câmera (espelhada, como um espelho) e da foto */
.ponto-video { width: 100%; max-width: 360px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: #111; }
video.ponto-video { transform: scaleX(-1); }

/* app no celular (PWA): topo simples, conteúdo e menu fixo embaixo */
.app-mobile { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.app-mobile-top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); }
.app-mobile-main { width: 100%; max-width: 720px; margin: 0 auto; }
.app-mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: #fff; border-top: 1px solid #eff2f5; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px rgba(0,0,0,.04); }
.app-mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px; color: #a1a5b7; font-size: 11px; font-weight: 600; }
.app-mobile-nav a i { font-size: 21px; }
.app-mobile-nav a.active { color: var(--bs-primary, #3e97ff); }
.app-big-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.app-pagamentos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.app-pagamentos label { margin: 0; }
.app-pagamentos input { display: none; }
.app-pagamentos span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid #e4e6ef; border-radius: 10px; font-size: 12px; text-align: center; cursor: pointer; }
.app-pagamentos span i { font-size: 20px; }
.app-pagamentos input:checked + span { border-color: var(--bs-primary, #3e97ff); background: rgba(62,151,255,.08); color: var(--bs-primary, #3e97ff); font-weight: 600; }
.app-venda-total { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; box-shadow: 0 2px 14px rgba(0,0,0,.08); }
/* agenda do dia: uma coluna por profissional, blocos posicionados pela hora */
.ag-grade { display: flex; overflow-x: auto; }
.ag-horas { position: relative; width: 56px; flex: 0 0 56px; margin-top: 42px; }
.ag-hora { position: absolute; right: 8px; font-size: 11px; color: #a1a5b7; transform: translateY(-7px); }
.ag-col { flex: 1 0 210px; border-left: 1px solid #eff2f5; }
.ag-col-head { height: 42px; display: flex; align-items: center; gap: 6px; padding: 0 10px; font-weight: 600; border-bottom: 1px solid #eff2f5; }
.ag-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.ag-col-body { position: relative; background: #f5f5f8; }
.ag-aberto { position: absolute; left: 0; right: 0; background: #fff; }
.ag-linha { position: absolute; left: 0; right: 0; border-top: 1px dashed #e4e6ef; z-index: 1; }
.ag-fechado { position: absolute; left: 0; right: 0; display: flex; align-items: center; justify-content: center; color: #b5b5c3; font-size: 12px; }
.ag-bloq { position: absolute; left: 2px; right: 2px; background: repeating-linear-gradient(45deg, #f1f1f4, #f1f1f4 6px, #e4e6ef 6px, #e4e6ef 12px); font-size: 11px; color: #7e8299; padding: 2px 6px; border-radius: 4px; z-index: 2; overflow: hidden; }
.ag-item { position: absolute; left: 4px; right: 4px; z-index: 3; text-align: left; background: #eef6ff; color: #181c32; border: 0; border-left: 4px solid; border-radius: 6px; padding: 3px 7px; font-size: 12px; overflow: hidden; line-height: 1.25; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.ag-item:hover { filter: brightness(.97); }
.ag-confirmado { background: #e8fff3; } .ag-concluido { background: #e8fff3; opacity: .7; } .ag-cancelado { background: #f5f5f5; opacity: .5; text-decoration: line-through; } .ag-faltou { background: #fff5f8; }

/* onboarding: cartões dos módulos, lista de aulas, provas */
.onb-card { transition: transform .15s, box-shadow .15s; }
.onb-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.onb-num.ok { background: #2f9e6b; }
.onb-anel { --p: 0; width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--kt-primary, #0b7fc7) calc(var(--p) * 1%), #e6eef6 0); }
.onb-anel.ok { background: conic-gradient(#2f9e6b calc(var(--p) * 1%), #dcf3e8 0); }
.onb-anel.nao { background: conic-gradient(#e5484d calc(var(--p) * 1%), #fde7e7 0); }
.onb-anel span { width: 66px; height: 66px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.onb-linha { display: flex; align-items: center; padding: 12px 14px; border: 1px solid var(--kt-gray-200, #eff2f5); border-radius: 12px; margin-bottom: 8px; gap: 8px; }
.onb-linha:hover { border-color: var(--kt-primary, #0b7fc7); }
.onb-linha.mini { padding: 8px 10px; border-radius: 10px; margin-bottom: 6px; gap: 10px; }
.onb-linha.atual { border-color: var(--kt-primary, #0b7fc7); background: #f1f7fd; }
.onb-check { flex: none; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #eef3f8; color: var(--kt-primary, #0b7fc7); }
.onb-linha.mini .onb-check { min-width: 26px; height: 26px; font-size: 11px; }
.onb-linha.ok .onb-check { background: #2f9e6b; color: #fff; }
.onb-q legend { float: none; }
.onb-op { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--kt-gray-200, #eff2f5); border-radius: 12px; margin-bottom: 8px; }
.onb-op.escolher { cursor: pointer; }
.onb-op.escolher:hover { border-color: var(--kt-primary, #0b7fc7); }
.onb-op.escolher input { position: absolute; opacity: 0; pointer-events: none; }
.onb-op.on { border-color: var(--kt-primary, #0b7fc7); background: #f1f7fd; }
.onb-op.on .onb-letra { background: var(--kt-primary, #0b7fc7); color: #fff; }
.onb-op.escolher:focus-within { box-shadow: 0 0 0 3px rgba(11, 127, 199, .2); }
.onb-op.certa { border-color: #2f9e6b; background: #ecf8f2; }
.onb-op.certa .onb-letra { background: #2f9e6b; color: #fff; }
.onb-op.errada { border-color: #e5484d; background: #fdf0f0; }
.onb-op.errada .onb-letra { background: #e5484d; color: #fff; }
.onb-letra { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: #eef3f8; }

/* FAQ */
.faq-lista { display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--kt-gray-200, #eff2f5); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.faq-item[open] { border-color: var(--kt-primary, #0b7fc7); box-shadow: 0 6px 18px rgba(15, 23, 42, .05); }
.faq-item summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #eef3f8; color: var(--kt-primary, #0b7fc7); font-size: 17px; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-r { padding: 0 18px 16px; line-height: 1.7; }
.faq-mod { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px; border: 1px solid var(--kt-gray-200, #eff2f5); border-radius: 12px; }
.faq-mod > .bi { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #eef3f8; color: var(--kt-primary, #0b7fc7); font-size: 19px; }

/* reservas: linha do tempo das salas */
.res-grade { overflow-x: auto; }
.res-linha { display: flex; align-items: stretch; min-width: 720px; border-bottom: 1px solid var(--kt-gray-200, #eff2f5); }
.res-nome { width: 170px; flex: none; padding: 10px 12px 10px 0; }
.res-trilha { position: relative; flex: 1; min-height: 56px; }
.res-horas .res-trilha { min-height: 22px; }
.res-horas span { position: absolute; top: 2px; font-size: 11px; color: #a1a5b7; transform: translateX(-50%); }
.res-fechado { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(45deg, #f5f8fa, #f5f8fa 6px, #eef1f5 6px, #eef1f5 12px); }
.res-bloco { position: absolute; top: 8px; bottom: 8px; border-radius: 8px; padding: 4px 8px; font-size: 12px; color: #fff; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: #3e97ff; }
.res-bloco:hover { color: #fff; filter: brightness(.95); }
.res-bloco.confirmada { background: #2f9e6b; }
.res-bloco.concluida { background: #a1a5b7; }
/* obras: cronograma */
.gantt-linha { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--kt-gray-200, #eff2f5); }
.gantt-nome { width: 200px; flex: none; }
.gantt-trilha { position: relative; flex: 1; height: 26px; background: #f5f8fa; border-radius: 6px; }
.gantt-barra { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; background: #cfe3fb; overflow: hidden; }
.gantt-barra span { display: block; height: 100%; background: #3e97ff; }
.gantt-barra b { position: absolute; left: 6px; top: 1px; font-size: 11px; color: #0f172a; }
.gantt-barra.ok { background: #dcf3e8; } .gantt-barra.ok span { background: #2f9e6b; }
.gantt-barra.atraso { background: #fde7e7; } .gantt-barra.atraso span { background: #e5484d; }
.gantt-hoje { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #e5484d; }
.meter-atraso span { background: #e5484d; }
@media (max-width: 767px) { .gantt-nome { width: 110px; } }
/* imóveis: foto do cartão */
.imovel-foto { position: relative; height: 170px; background: #eef3f8 center/cover no-repeat; display: grid; place-items: center; font-size: 44px; color: #b5c2d1; }
.imovel-foto span { position: absolute; top: 10px; left: 10px; font-size: 14px; }

/* CRM */
.crm-tipo.active { background: var(--bs-primary, #3e97ff) !important; color: #fff !important; }
.crm-tl { position: relative; }
.crm-tl-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed #e4e8ef; }
.crm-tl-item.pend { background: rgba(62, 151, 255, .05); margin: 0 -12px; padding: 12px; border-radius: 8px; }
.crm-tl-item.atras { background: rgba(241, 65, 108, .06); }
.crm-tl-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #f1f4f9; color: var(--bs-primary, #3e97ff); }
.crm-barra { height: 10px; border-radius: 6px; background: #f1f4f9; overflow: hidden; }
.crm-barra span { display: block; height: 100%; border-radius: 6px; }
