#calculadora-embargo {
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-width: 100%;
  width: 100%;
  margin: auto;
  box-sizing: border-box;
}

#resultado-sal-eb {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100%;
  gap: 1rem !important;
  margin-top: 2rem;
  padding: 0;
}

.calculator-header h2 {
  color: #0073e6;
}

.field-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

input,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

.button-group {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
}

.field-hint {
  font-size: 0.85rem;
  color: #666;
}

body {
  margin: 0;
  padding: 0;
}

.btn {
  margin-top: 1rem;
  background-color: #0073e6;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.btn:hover {
  background-color: #005bb5;
}

.calculator-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.calculator-result div {
  margin: 0.5rem 0;
  font-size: 1rem;
  white-space: pre;
}

.result-separator {
  border-top: 1px solid #ccc;
  margin: 1rem 0;
}

.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.valor-rojo {
  color: #d00000;
  font-weight: normal;
}

.valor-verde {
  color: #009e0f;
  font-weight: normal;
}

#grupo-tipo-salario .radio-inline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

#grupo-tipo-salario .radio-inline label {
  display: flex;
  align-items: center;
  margin: 0;
  font-weight: normal;
}

#grupo-tipo-salario .radio-inline input[type="radio"] {
  margin: 0;
  margin-right: 0.25rem;
}

@media (max-width: 480px) {

  input,
  select,
  .btn {
    font-size: 1rem;
    padding: 0.5rem;
  }
}

.bloque-resultado {
  border: 1px solid #cce5ff;
  background-color: #f4faff;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.bloque-resultado div {
  margin: 0.25rem 0;
  font-size: 1rem;
}

.azul {
  color: #0056b3;
  font-weight: bold;
}

.embargo-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.75rem;
  line-height: 1.4;
  font-family: "Verdana", sans-serif;
  width: 100%;
  word-break: break-word;
}

.embargo-box {
  border: 1px solid #ccc;
  background-color: #fff;
  padding: 1rem;
  border-radius: 6px;
  min-width: 300px;
  text-align: center;
  font-family: "Verdana", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 9 !important;
  padding: 0.1rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1;
  height: 115px;
  overflow: hidden;
}

.embargo-line-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-family: "Verdana", sans-serif;
  margin-bottom: 0.5rem;
}

.embargo-line-bottom {
  text-align: center;
  font-size: 0.85rem;
  font-family: "Verdana", sans-serif;
}

.embargo-label {
  font-weight: bold;
  color: #0056b3;
}

#form-sal-eb {
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

#calcular-sal-eb,
#imprimir-resultado {
  margin-right: 0;
}

#calcular-sal-eb,
#imprimir-resultado {
  display: inline-block;
  margin: 0;
}

#reiniciar {
  display: inline-block;
  margin: 0;
  margin-left: auto;
}

#form-sal-eb::after {
  content: "";
  display: table;
  clear: both;
}

@media print {
  body * {
    visibility: hidden;
  }

  #print-template,
  #print-template * {
    visibility: visible;
  }

  #print-template {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
  }

  @page {
    margin: 1cm;
  }
}

