/* CENTRAR WRAPPERS */
.calc-wrapper { 
  display: flex; 
  justify-content: center; 
  padding: 20px 0; 
}

/* TARJETA */
.credencial { 
  width: 1050px; 
  max-width: 100%; 
  background-color: #fff; 
  border-radius: 20px; 
  color: #0B3C5D; 
  padding: 25px; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.15); 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
}

/* ENCABEZADO */
.pdf-header {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 2px solid #0B3C5D;
  padding-bottom: 15px;
}
.logo-circle { width: 70px; height: 70px; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.logo-circle img { width: 100%; height: 100%; object-fit: contain; }
.title-group { display: flex; flex-direction: column; width: 100%; }
.title { font-size: 24px; font-weight: bold; color: #0B3C5D; }
.subtitle { font-size: 14px; color:#555; }

/* SECCIÓN DE OPCIONES Y SELECTOR */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid rgba(11,60,93,0.1);
}
.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #0B3C5D;
  cursor: pointer;
}
.select-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid rgba(11,60,93,0.1);
  padding-top: 10px;
}
.select-row label {
  font-size: 13px;
  font-weight: 600;
  color: #0B3C5D;
}
.select-row select {
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid rgba(11,60,93,0.3);
  outline: none;
  background: #fff;
  color: #0B3C5D;
}

/* CAMPOS DE ENTRADA */
.inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}
.input-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-field label {
  font-size: 13px;
  font-weight: 600;
  color: #0B3C5D;
}
.input-field input, .input-field select {
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid rgba(11,60,93,0.3);
  outline: none;
  background: #fff;
  color: #0B3C5D;
}
.input-field input:focus, .input-field select:focus {
  border-color: #0B3C5D;
  box-shadow: 0 0 0 2px rgba(11,60,93,0.1);
}

/* BOTONES */
.calc-buttons { 
  display: flex; 
  gap: 10px; 
  justify-content: center; 
  flex-wrap: wrap; 
}
.calc-buttons button { 
  flex: 1 1 130px; 
  min-width: 130px; 
  padding: 10px 14px; 
  font-size: 14px; 
  font-weight: 600;
  border-radius: 8px; 
  border: none; 
  cursor: pointer; 
  transition: background 0.2s;
}
.btn-primary { background: #0B3C5D; color: #fff; }
.btn-primary:hover { background: #072a42; }
.btn-secondary { background: #e2e8f0; color: #0B3C5D; }
.btn-secondary:hover { background: #cbd5e1; }
.btn-pdf { background: #dc2626; color: #fff; }
.btn-pdf:hover { background: #b91c1c; }

/* ESTILO PARA EL BOTÓN DE ENLACE "MÁS CALCULADORAS" */
.btn-link-extra {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px;
  background-color: #f1f5f9;
  color: #0B3C5D;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(11,60,93,0.2);
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.btn-link-extra:hover {
  background-color: #0B3C5D;
  color: #fff;
  border-color: #0B3C5D;
}

/* TABLA DE RESULTADOS */
.tabla-container {
  overflow-x: auto;
  margin-top: 10px;
}
.tabla-sdi {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  text-align: center;
}
.tabla-sdi th, .tabla-sdi td {
  padding: 8px 4px;
  border-bottom: 1px solid #e2e8f0;
}
.tabla-sdi th {
  background: #0B3C5D;
  color: #fff;
  font-weight: 600;
  text-align: center;
}
.tabla-sdi th:nth-child(2), .tabla-sdi td:nth-child(2) {
  text-align: left;
}
.tabla-sdi tbody tr:hover {
  background-color: #f8fafc;
}
.tabla-sdi tfoot tr {
  background-color: #f1f5f9;
  font-weight: bold;
}
.tabla-sdi tfoot td {
  border-top: 2px solid #0B3C5D;
  border-bottom: 2px solid #0B3C5D;
  color: #0B3C5D;
}
.badge-mono {
  font-family: monospace;
  font-weight: bold;
  background: #f1f5f9;
  padding: 2px 4px;
  border-radius: 4px;
  color: #0B3C5D;
  font-size: 10px;
}
.badge-neto {
  font-family: monospace;
  font-weight: bold;
  background: #e2e8f0;
  padding: 2px 4px;
  border-radius: 4px;
  color: #0B3C5D;
  font-size: 10px;
}

/* ACCIONES DE TABLA */
.btn-action {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
}
.btn-action:hover {
  background: #e2e8f0;
}

/* NOTA / DISCLAIMER */
.calc-disclaimer {
  font-size: 11px;
  color: #555;
  margin-top: 15px;
  text-align: justify;
  line-height: 1.4;
  border-top: 1px dashed rgba(11,60,93,0.2);
  padding-top: 10px;
}

#calc-error-nomina {
  color: #dc2626;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  display: none;
}
