/* complementos.js: Calculadora, Aviso (Estou ciente), Atenção (erros), Clientes da CDE / Ocorrências, Bandeiras */
.cmp-vazio { grid-column: 1 / -1; padding: 18px; color: #777; text-align: center; font-size: 12px; }

/* ── TFCALCULADORA (AdvSmoothCalculator: fundo branco, visor azul, teclas #f5f5f7 com contorno #005e8c) ── */
.cmp-janela-calc .erp-janela-corpo { padding: 0; }
.cmp-calc { width: 361px; height: 482px; box-sizing: border-box; padding: 12px; background: #fff; border: 1px solid #b8b9b9; display: flex; flex-direction: column; gap: 10px; }
.cmp-calc-visor { height: 82px; box-sizing: border-box; border: 1px solid #c9d3de; border-radius: 4px; background: #fff; padding: 6px 10px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 18px 1fr; align-items: end; }
.cmp-calc-mem { grid-row: 1; grid-column: 1; color: #808080; font: 700 12px Tahoma, Arial, sans-serif; }
.cmp-calc-op { grid-row: 1; grid-column: 2; text-align: right; color: #808080; font: 12px Tahoma, Arial, sans-serif; }
.cmp-calc-num { grid-row: 2; grid-column: 1 / 3; text-align: right; font: 700 34px 'Consolas', 'Courier New', monospace; letter-spacing: 1px;
  background: linear-gradient(90deg, #004080, #269fda); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; overflow: hidden; }
.cmp-calc-teclas { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(6, 1fr); gap: 6px; }
.cmp-calc-t { border: 1px solid #005e8c; border-radius: 4px; background: linear-gradient(#ffffff, #f5f5f7 55%, #e4e9ef); color: #003c5a; font: 700 15px Tahoma, Arial, sans-serif; cursor: pointer; padding: 0; }
.cmp-calc-t:hover { background: linear-gradient(#fff6d9, #ffd975); border-color: #c58a00; }
.cmp-calc-t:active { background: linear-gradient(#ffc04d, #ffde8a); }
.cmp-calc-t.num { color: #000; }
.cmp-calc-t.op { color: #b0001e; }
.cmp-calc-t.igual { grid-row: span 2; }
.cmp-calc-t.zero { grid-column: span 2; }

/* ── TFINFORME "Aviso!!!" ── */
.cmp-janela-informe .erp-janela-corpo { padding: 0; }
.cmp-informe { width: 797px; height: 408px; display: flex; flex-direction: column; background: #fff; }
.cmp-informe-titulo { flex: 0 0 42px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; text-align: center; background: #004566; color: #fff; font: 700 13px Arial, sans-serif; line-height: 1.3; padding: 2px 6px; }
.cmp-informe-cartoes { flex: 1; overflow: auto; padding: 7px; display: grid; grid-template-columns: repeat(auto-fill, minmax(375px, 1fr)); gap: 7px; align-content: start; background: #f2f2f2; }
.cmp-informe-cartao { background: #fff; border: 1px solid #99b4d1; display: flex; flex-direction: column; }
.cmp-informe-topico { text-align: center; font: 700 12px Tahoma, Arial, sans-serif; color: #1f4e79; padding: 4px; border-bottom: 1px solid #dfe7f0; min-height: 15px; }
.cmp-informe-msg { border: 0; resize: none; font: 11px Tahoma, Arial, sans-serif; padding: 4px 6px; color: #000; background: #fff; outline: none; }
.cmp-informe-ok { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: #ffff80; font: 11px Tahoma, Arial, sans-serif; color: #000; border-top: 1px solid #dfe7f0; cursor: pointer; }

/* ── TFAVISOERROS "** A T E N Ç Ã O **" ── */
.cmp-janela-avisoerros .erp-janela-corpo { padding: 0; }
.cmp-avisoerros { width: 945px; height: 390px; box-sizing: border-box; padding: 3px; display: flex; flex-direction: column; gap: 6px; background: #f0f0f0; }
.cmp-avisoerros-mens { flex: 0 0 49px; display: flex; align-items: center; justify-content: center; background: #f00; color: #fff; font: 700 15px Tahoma, Arial, sans-serif; border: 1px solid #000; }
.cmp-avisoerros-lista { flex: 1; resize: none; border: 0; background: #fff; color: #f00; font: 700 11px Tahoma, Arial, sans-serif; padding: 6px 6px 6px 18px; outline: none; }

/* ── TFCLIENTESCDE / TFOCORRENCIAS ── */
.cmp-ocor { width: 1127px; }
.cmp-ocor-grupo { margin: 0; }
.cmp-ocor-topo { display: flex; align-items: center; gap: 12px; height: 33px; }
.cmp-ocor-cliente { font: 700 12px Tahoma, Arial, sans-serif; color: var(--erp-azul, #1f4e79); }
.cmp-ocor-st { color: #777; font-style: normal; }

/* ── TFBANDEIRAS / TFCADBANDEIRA ── */
.cmp-bandeiras { max-width: 525px; }
.cmp-band-cartoes { flex: 1; min-height: 306px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, 147px); gap: 7px; align-content: start; padding: 7px; background: #fff; border: 1px solid #c9d3de; outline: none; }
.cmp-band-cartao { border: 1px solid #99b4d1; background: #fff; cursor: default; display: flex; flex-direction: column; }
.cmp-band-cartao.sel { border-color: #c58a00; box-shadow: 0 0 0 1px #ffd975 inset; background: #fffbe6; }
.cmp-band-nome { text-align: center; font: 700 12px Tahoma, Arial, sans-serif; padding: 4px; border-bottom: 1px solid #e3e9f0; }
.cmp-band-logo { height: 70px; display: flex; align-items: center; justify-content: center; padding: 4px; }
.cmp-band-logo img { max-width: 100%; max-height: 100%; }
.cmp-band-rodape { display: flex; justify-content: flex-end; padding: 3px 0; }
.cmp-cadband { width: 331px; }
.cmp-cadband-rot { display: block; color: var(--erp-azul, #1f4e79); font-size: 12px; margin: 2px 0; }
.cmp-cadband-logo { margin-top: 6px; display: flex; gap: 6px; }
.cmp-cadband-botoes { display: flex; flex-direction: column; gap: 4px; }
.cmp-cadband-img { flex: 1; height: 114px; border: 1px solid #c9d3de; display: flex; align-items: center; justify-content: center; background: #fff; }
.cmp-cadband-img img { max-width: 100%; max-height: 100%; }
