/* =========================
   Editor de Range v2
   ========================= */

.ep-range-v2-container {
  padding: 20px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.ep-range-v2-container h1 {
  margin: 10px 0 15px;
  font-size: 34px;
  font-weight: 700;
}

/* =========================
   Toolbar
   ========================= */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 18px;
}

.toolbar label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.toolbar input {
  height: 26px;
  padding: 0 8px;
  border: 1px solid #bfbfbf;
  border-radius: 3px;
  width: 180px;
  box-sizing: border-box;
}

.toolbar button {
  height: 28px;
  padding: 0 10px;
  border: 1px solid #aaa;
  background: #f7f7f7;
  border-radius: 3px;
  cursor: pointer;
}

.toolbar button:hover {
  background: #ededed;
}

/* =========================
   Grid + Quick Apply
   ========================= */

.range-wrapper{
  display: flex;
  gap: 25px;
  align-items: flex-start;
  flex-wrap: nowrap; /* <- importante: não quebrar linha antes do grid */
}

@media (max-width: 1100px){
  .range-wrapper{
    flex-wrap: wrap; /* mobile quebra */
  }
}


/* GRID */
#rangeGrid2 {
  border-collapse: collapse;
  border-spacing: 0;
}

#rangeGrid2 td {
  width: 46px;
  height: 36px;
  border: 1px solid #2a2a2a;
  text-align: center;
  cursor: pointer;

  /* default (fold) */
  background: #1b2836;
  color: #fff;

  position: relative;
  user-select: none;
}

/* label central */
#rangeGrid2 .texto-central {
  line-height: 36px;
  font-size: 13px;
  font-weight: 700;
}

/* s/o menorzinho */
#rangeGrid2 .sweted {
  font-size: 11px;
  opacity: 0.9;
  position: relative;
  top: -1px;
}

/* hover */
#rangeGrid2 td:hover {
  outline: 2px solid rgba(255,255,255,0.25);
  outline-offset: -2px;
}

/* QUICK APPLY */
.quick-apply {
  min-width: 230px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 14px 14px;
  box-sizing: border-box;
  background: #fff;
}

.quick-apply h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.quick-apply label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.qa-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 12px;
}

.qa-actions label {
  margin: 0;
}

/* input do valor padrão */
#qa2_value {
  height: 26px;
  width: 110px;
  padding: 0 8px;
  border: 1px solid #bfbfbf;
  border-radius: 3px;
}

/* =========================
   Summary Row (rodapé)
   ========================= */

.summary-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.bloco {
  width: 110px;
  height: 70px;
  display: flex;
}

.rodape-quadro {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  position: relative;
  box-sizing: border-box;
  padding: 8px;
  color: #fff;
  font-weight: 700;
}

/* label tipo Call/RG... */
.fqz {
  font-size: 14px;
  margin-bottom: 4px;
}

/* combos */
.combos {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.95;
}

/* % no canto */
.numero {
  position: absolute;
  right: 20px;
  bottom: 6px;
  font-size: 14px;
}

.simbolo {
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 14px;
}

/* =========================
   Dialog (modal)
   ========================= */

#freqDialog2 {
  border: 1px solid #333;
  border-radius: 10px;
  padding: 18px;
  max-width: 420px;
}

#freqDialog2::backdrop {
  background: rgba(0,0,0,0.4);
}

#freqDialog2 h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.freq-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-bottom: 10px;
}

.freq-row label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.freq-row input {
  width: 90px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #bfbfbf;
  border-radius: 4px;
  box-sizing: border-box;
}

.freq-hint {
  font-size: 12px;
  margin: 0 0 12px;
  opacity: 0.85;
}

.freq-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

#applyFreq2,
#closeFreq2 {
  height: 30px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid #aaa;
  cursor: pointer;
}

#applyFreq2 {
  background: #f7f7f7;
}

#applyFreq2:hover,
#closeFreq2:hover {
  background: #ededed;
}

/* =========================
   Responsivo
   ========================= */

@media (max-width: 900px) {
  .toolbar input {
    width: 150px;
  }

  .quick-apply {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 560px) {
  .ep-range-v2-container h1 {
    font-size: 26px;
  }

  #rangeGrid2 td {
    width: 34px;
    height: 28px;
  }

  #rangeGrid2 .texto-central {
    line-height: 28px;
    font-size: 11px;
  }
}


/* =========================
   FIX DEFINITIVO: grid sempre visível
   (protege contra CSS do Elementor/tema)
   ========================= */

#rangeGrid2 {
  display: table !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;

  /* garante que não colapse */
  min-width: 620px !important;
  width: auto !important;

  /* garante que não fique escondido */
  visibility: visible !important;
  opacity: 1 !important;
}

#rangeGrid2 tr {
  display: table-row !important;
}

#rangeGrid2 td {
  display: table-cell !important;

  width: 46px !important;
  height: 36px !important;
  min-width: 46px !important;
  min-height: 36px !important;

  border: 1px solid #2a2a2a !important;
  text-align: center !important;
  vertical-align: middle !important;

  background: #1b2836; /* default fold */
  color: #fff !important;

  /* evita “sumir texto” */
  font-size: 13px !important;
  line-height: 36px !important;

  /* evita efeitos do Elementor */
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

#rangeGrid2 .texto-central {
  display: block !important;
  line-height: 36px !important;
  font-weight: 700 !important;
}

#rangeGrid2 td:hover {
  outline: 2px solid rgba(255,255,255,0.25) !important;
  outline-offset: -2px !important;
}
