/* =====================================================
   Calculadora Trabalhista 2026 — Estilos do Plugin
   Compatível com Astra, GeneratePress, OceanWP, Kadence
   ===================================================== */

/* Reset interno */
.calct-wrap *,
.calct-wrap *::before,
.calct-wrap *::after {
  box-sizing: border-box;
}

/* Container principal */
.calct-wrap {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0 2rem;
  max-width: 800px;
}

/* Cabeçalho */
.calct-header {
  margin-bottom: 1.75rem;
}

.calct-title {
  font-size: 1.35rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin: 0 0 0.5rem !important;
  padding: 0 !important;
  border: none !important;
  line-height: 1.3 !important;
}

.calct-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.55;
}

/* Grid de campos */
.calct-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .calct-row {
    grid-template-columns: 1fr;
  }
  .calct-wrap {
    padding: 1.25rem;
  }
}

.calct-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.calct-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.calct-field input,
.calct-field select {
  height: 42px;
  padding: 0 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.calct-field input:focus,
.calct-field select:focus {
  outline: none;
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.calct-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Botão calcular */
.calct-btn {
  width: 100%;
  height: 46px;
  background: #1d4ed8;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}

.calct-btn:hover {
  background: #1e40af;
}

.calct-btn:active {
  transform: scale(0.99);
}

/* Área de resultado */
.calct-result {
  margin-top: 1.75rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.75rem;
}

/* Grid de cards de resultado */
.calct-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.calct-result-card {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 0.875rem 1rem;
}

.calct-result-card .r-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calct-result-card .r-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.calct-result-card.highlight .r-value { color: #1d4ed8; }
.calct-result-card.green   .r-value { color: #15803d; }
.calct-result-card.red     .r-value { color: #b91c1c; }

/* Detalhamento */
.calct-breakdown {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.calct-breakdown h4 {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.875rem !important;
  padding: 0 !important;
  border: none !important;
}

.calct-bd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.calct-bd-row:last-child {
  border-bottom: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding-top: 0.625rem;
  margin-top: 0.25rem;
}

.calct-bd-row span.pos { color: #15803d; font-weight: 500; }
.calct-bd-row span.neg { color: #b91c1c; font-weight: 500; }

/* Aviso de saque FGTS */
.calct-notice {
  margin-top: 0.875rem;
  padding: 0.75rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #15803d;
  line-height: 1.5;
}

/* Tabelas de referência */
.calct-tabelas {
  max-width: 100%;
}

.calct-table-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  border: none !important;
}

.calct-table-wrap {
  overflow-x: auto;
}

.calct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.calct-table thead tr {
  background: #f1f5f9;
}

.calct-table th {
  text-align: left;
  padding: 0.625rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #e2e8f0;
}

.calct-table td {
  padding: 0.625rem 0.875rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.calct-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.calct-table .calct-table-total td {
  font-weight: 600;
  color: #1e293b;
  background: #eff6ff;
}

.calct-table-note {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.75rem;
  margin-bottom: 0;
}
